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
snapshot
service.
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.
7686 7687 7688 |
# File 'lib/ovirtsdk4/services.rb', line 7686 def list(opts = {}) internal_get(LIST, opts) end |
#service(path) ⇒ Service
Locates the service corresponding to the given path.
7708 7709 7710 7711 7712 7713 7714 7715 7716 7717 |
# File 'lib/ovirtsdk4/services.rb', line 7708 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.
7697 7698 7699 |
# File 'lib/ovirtsdk4/services.rb', line 7697 def snapshot_service(id) DiskSnapshotService.new(self, id) end |