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.
19881 19882 19883 |
# File 'lib/ovirtsdk4/services.rb', line 19881 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.
19870 19871 19872 |
# File 'lib/ovirtsdk4/services.rb', line 19870 def list(opts = {}) internal_get(LIST, opts) end |
#service(path) ⇒ Service
Locates the service corresponding to the given path.
19892 19893 19894 19895 19896 19897 19898 19899 19900 19901 |
# File 'lib/ovirtsdk4/services.rb', line 19892 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 |