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.
21093 21094 21095 |
# File 'lib/ovirtsdk4/services.rb', line 21093 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.
21082 21083 21084 |
# File 'lib/ovirtsdk4/services.rb', line 21082 def list(opts = {}) internal_get(LIST, opts) end |
#service(path) ⇒ Service
Locates the service corresponding to the given path.
21104 21105 21106 21107 21108 21109 21110 21111 21112 21113 |
# File 'lib/ovirtsdk4/services.rb', line 21104 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 |