class Fog::Compute::Vsphere::Snapshots
Public Instance Methods
all(filters = {})
click to toggle source
# File lib/fog/vsphere/models/compute/snapshots.rb, line 12 def all(filters = {}) if parent_snapshot load service.list_child_snapshots(parent_snapshot, filters) else requires :server_id load service.list_vm_snapshots(server_id, filters) end end
get(snapshot_ref)
click to toggle source
# File lib/fog/vsphere/models/compute/snapshots.rb, line 21 def get(snapshot_ref) all.find { |snapshot| snapshot.get_child(snapshot_ref) } end