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.
7729 7730 7731 |
# File 'lib/ovirtsdk4/services.rb', line 7729 def list(opts = {}) internal_get(LIST, opts) end |
#service(path) ⇒ Service
Locates the service corresponding to the given path.
7751 7752 7753 7754 7755 7756 7757 7758 7759 7760 |
# File 'lib/ovirtsdk4/services.rb', line 7751 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.
7740 7741 7742 |
# File 'lib/ovirtsdk4/services.rb', line 7740 def snapshot_service(id) DiskSnapshotService.new(self, id) end |