Class: OvirtSDK4::SnapshotCdromsService
- Defined in:
- lib/ovirtsdk4/services.rb,
lib/ovirtsdk4/services.rb
Instance Method Summary collapse
-
#cdrom_service(id) ⇒ SnapshotCdromService
Locates the
cdromservice. -
#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.
19686 19687 19688 |
# File 'lib/ovirtsdk4/services.rb', line 19686 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.
19675 19676 19677 |
# File 'lib/ovirtsdk4/services.rb', line 19675 def list(opts = {}) internal_get(LIST, opts) end |
#service(path) ⇒ Service
Locates the service corresponding to the given path.
19697 19698 19699 19700 19701 19702 19703 19704 19705 19706 |
# File 'lib/ovirtsdk4/services.rb', line 19697 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 |