class Fog::Compute::Vsphere::Snapshot
Public Instance Methods
child_snapshots(filters = {})
click to toggle source
# File lib/fog/vsphere/models/compute/snapshot.rb, line 22 def child_snapshots(filters = {}) service.snapshots( { :server_id => server_id, :parent_snapshot => self }.update(filters) ) end
destroy(remove_children = false)
click to toggle source
# File lib/fog/vsphere/models/compute/snapshot.rb, line 37 def destroy(remove_children = false) requires :server_id, :ref service.vm_remove_snapshot(server_id, ref, remove_children) end
get_child(snapshot_ref)
click to toggle source
# File lib/fog/vsphere/models/compute/snapshot.rb, line 28 def get_child(snapshot_ref) return self if ref == snapshot_ref child_snapshots().get(snapshot_ref) end
revert()
click to toggle source
# File lib/fog/vsphere/models/compute/snapshot.rb, line 33 def revert service.vm_revert_snapshot server_id, ref end