Class: OvirtSDK4::DiskSnapshotsService
- Defined in:
- lib/ovirtsdk4/services.rb,
lib/ovirtsdk4/services.rb
Instance Method Summary collapse
-
#list(opts = {}) ⇒ Array<DiskSnapshot>
Returns the list of disk snapshots of the storage domain.
-
#service(path) ⇒ Service
Locates the service corresponding to the given path.
-
#snapshot_service(id) ⇒ DiskSnapshotService
Locates the
snapshotservice.
Methods inherited from Service
Instance Method Details
#list(opts = {}) ⇒ Array<DiskSnapshot>
Returns the list of disk snapshots of the storage domain.
The order of the returned list of disk snapshots isn’t guaranteed.
7639 7640 7641 |
# File 'lib/ovirtsdk4/services.rb', line 7639 def list(opts = {}) internal_get(LIST, opts) end |
#service(path) ⇒ Service
Locates the service corresponding to the given path.
7661 7662 7663 7664 7665 7666 7667 7668 7669 7670 |
# File 'lib/ovirtsdk4/services.rb', line 7661 def service(path) if path.nil? || path == '' return self end index = path.index('/') if index.nil? return snapshot_service(path) end return snapshot_service(path[0..(index - 1)]).service(path[(index + 1)..-1]) end |
#snapshot_service(id) ⇒ DiskSnapshotService
Locates the snapshot service.
7650 7651 7652 |
# File 'lib/ovirtsdk4/services.rb', line 7650 def snapshot_service(id) DiskSnapshotService.new(self, id) end |