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.
6920 6921 6922 |
# File 'lib/ovirtsdk4/services.rb', line 6920 def list(opts = {}) internal_get(LIST, opts) end |
#service(path) ⇒ Service
Locates the service corresponding to the given path.
6942 6943 6944 6945 6946 6947 6948 6949 6950 6951 |
# File 'lib/ovirtsdk4/services.rb', line 6942 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.
6931 6932 6933 |
# File 'lib/ovirtsdk4/services.rb', line 6931 def snapshot_service(id) DiskSnapshotService.new(self, id) end |