class Fog::Proxmox::Compute::Snapshots
class Snapshots
Collection of snapshots
Public Instance Methods
all()
click to toggle source
# File lib/fog/proxmox/compute/models/snapshots.rb, line 36 def all path_params = { node: node_id, type: server_type, vmid: server_id } load service.list_snapshots(path_params) end
get(name)
click to toggle source
# File lib/fog/proxmox/compute/models/snapshots.rb, line 41 def get(name) all.find { |snapshot| snapshot.identity === name } end
new(new_attributes = {})
click to toggle source
Calls superclass method
# File lib/fog/proxmox/compute/models/snapshots.rb, line 32 def new(new_attributes = {}) super({ node_id: node_id, server_id: server_id, server_type: server_type }.merge(new_attributes)) end