Class: OvirtSDK4::VmCheckpointsService
- Defined in:
- lib/ovirtsdk4/services.rb,
lib/ovirtsdk4/services.rb
Instance Method Summary collapse
-
#checkpoint_service(id) ⇒ VmCheckpointService
Returns a reference to the service that manages a specific VM checkpoint.
-
#list(opts = {}) ⇒ Array<Checkpoint>
The list of virtual machine checkpoints.
-
#service(path) ⇒ Service
Locates the service corresponding to the given path.
Methods inherited from Service
Instance Method Details
#checkpoint_service(id) ⇒ VmCheckpointService
Returns a reference to the service that manages a specific VM checkpoint.
32293 32294 32295 |
# File 'lib/ovirtsdk4/services.rb', line 32293 def checkpoint_service(id) VmCheckpointService.new(self, id) end |
#list(opts = {}) ⇒ Array<Checkpoint>
The list of virtual machine checkpoints.
32282 32283 32284 |
# File 'lib/ovirtsdk4/services.rb', line 32282 def list(opts = {}) internal_get(LIST, opts) end |
#service(path) ⇒ Service
Locates the service corresponding to the given path.
32304 32305 32306 32307 32308 32309 32310 32311 32312 32313 |
# File 'lib/ovirtsdk4/services.rb', line 32304 def service(path) if path.nil? || path == '' return self end index = path.index('/') if index.nil? return checkpoint_service(path) end return checkpoint_service(path[0..(index - 1)]).service(path[(index + 1)..-1]) end |