Class: OvirtSDK4::SnapshotCdromsService
- Defined in:
- lib/ovirtsdk4/services.rb,
lib/ovirtsdk4/services.rb
Instance Method Summary collapse
-
#cdrom_service(id) ⇒ SnapshotCdromService
Locates the
cdrom
service. -
#list(opts = {}) ⇒ Array<Cdrom>
Returns the list of CD-ROM devices of the snapshot.
-
#service(path) ⇒ Service
Locates the service corresponding to the given path.
Methods inherited from Service
Instance Method Details
#cdrom_service(id) ⇒ SnapshotCdromService
Locates the cdrom
service.
19637 19638 19639 |
# File 'lib/ovirtsdk4/services.rb', line 19637 def cdrom_service(id) SnapshotCdromService.new(self, id) end |
#list(opts = {}) ⇒ Array<Cdrom>
Returns the list of CD-ROM devices of the snapshot.
The order of the returned list of CD-ROM devices isn’t guaranteed.
19626 19627 19628 |
# File 'lib/ovirtsdk4/services.rb', line 19626 def list(opts = {}) internal_get(LIST, opts) end |
#service(path) ⇒ Service
Locates the service corresponding to the given path.
19648 19649 19650 19651 19652 19653 19654 19655 19656 19657 |
# File 'lib/ovirtsdk4/services.rb', line 19648 def service(path) if path.nil? || path == '' return self end index = path.index('/') if index.nil? return cdrom_service(path) end return cdrom_service(path[0..(index - 1)]).service(path[(index +1)..-1]) end |