Class: OvirtSDK4::TemplateCdromService
- Defined in:
- lib/ovirtsdk4/services.rb,
lib/ovirtsdk4/services.rb more...
Instance Method Summary collapse
-
#get(opts = {}) ⇒ Cdrom
Returns the information about this CD-ROM device.
-
#service(path) ⇒ Service
Locates the service corresponding to the given path.
Methods inherited from Service
Instance Method Details
permalink #get(opts = {}) ⇒ Cdrom
Returns the information about this CD-ROM device.
For example, to get information about the CD-ROM device of template 123
send a request like:
GET /ovirt-engine/api/templates/123/cdroms/
27510 27511 27512 |
# File 'lib/ovirtsdk4/services.rb', line 27510 def get(opts = {}) internal_get(GET, opts) end |
permalink #service(path) ⇒ Service
Locates the service corresponding to the given path.
27521 27522 27523 27524 27525 27526 |
# File 'lib/ovirtsdk4/services.rb', line 27521 def service(path) if path.nil? || path == '' return self end raise Error.new("The path \"#{path}\" doesn't correspond to any service") end |