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.
20957 20958 20959 |
# File 'lib/ovirtsdk4/services.rb', line 20957 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.
20946 20947 20948 |
# File 'lib/ovirtsdk4/services.rb', line 20946 def list(opts = {}) internal_get(LIST, opts) end |
#service(path) ⇒ Service
Locates the service corresponding to the given path.
20968 20969 20970 20971 20972 20973 20974 20975 20976 20977 |
# File 'lib/ovirtsdk4/services.rb', line 20968 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 |