Class: OvirtSDK4::TemplateNicService
- Defined in:
- lib/ovirtsdk4/services.rb,
lib/ovirtsdk4/services.rb
Instance Method Summary collapse
-
#get(opts = {}) ⇒ Nic
Returns the representation of the object managed by this service.
-
#remove(opts = {}) ⇒ Object
Deletes the object managed by this service.
-
#service(path) ⇒ Service
Locates the service corresponding to the given path.
-
#update(nic, opts = {}) ⇒ Nic
Update the specified network interface card attached to the template.
Methods inherited from Service
Instance Method Details
#get(opts = {}) ⇒ Nic
Returns the representation of the object managed by this service.
26488 26489 26490 |
# File 'lib/ovirtsdk4/services.rb', line 26488 def get(opts = {}) internal_get(GET, opts) end |
#remove(opts = {}) ⇒ Object
Deletes the object managed by this service.
26513 26514 26515 |
# File 'lib/ovirtsdk4/services.rb', line 26513 def remove(opts = {}) internal_remove(REMOVE, opts) end |
#service(path) ⇒ Service
Locates the service corresponding to the given path.
26553 26554 26555 26556 26557 26558 |
# File 'lib/ovirtsdk4/services.rb', line 26553 def service(path) if path.nil? || path == '' return self end raise Error.new("The path \"#{path}\" doesn't correspond to any service") end |
#update(nic, opts = {}) ⇒ Nic
Update the specified network interface card attached to the template.
26542 26543 26544 |
# File 'lib/ovirtsdk4/services.rb', line 26542 def update(nic, opts = {}) internal_update(nic, Nic, UPDATE, opts) end |