Class: OvirtSDK4::TemplateCdromService
- Defined in:
- lib/ovirtsdk4/services.rb,
lib/ovirtsdk4/services.rb
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
#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/ HTTP/1.1
27151 27152 27153 |
# File 'lib/ovirtsdk4/services.rb', line 27151 def get(opts = {}) internal_get(GET, opts) end |
#service(path) ⇒ Service
Locates the service corresponding to the given path.
27162 27163 27164 27165 27166 27167 |
# File 'lib/ovirtsdk4/services.rb', line 27162 def service(path) if path.nil? || path == '' return self end raise Error.new("The path \"#{path}\" doesn't correspond to any service") end |