Class: Fog::Compute::Vsphere::Snapshot
- Inherits:
-
Model
- Object
- Model
- Fog::Compute::Vsphere::Snapshot
- Defined in:
- lib/fog/vsphere/models/compute/snapshot.rb
Instance Method Summary collapse
Instance Method Details
#child_snapshots(filters = {}) ⇒ Object
22 23 24 25 26 |
# 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 |
#get_child(snapshot_ref) ⇒ Object
28 29 30 31 |
# 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 |