Class: OvirtSDK4::TemplateNicService
- Defined in:
- lib/ovirtsdk4/services.rb,
lib/ovirtsdk4/services.rb more...
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
permalink #get(opts = {}) ⇒ Nic
Returns the representation of the object managed by this service.
28372 28373 28374 |
# File 'lib/ovirtsdk4/services.rb', line 28372 def get(opts = {}) internal_get(GET, opts) end |
permalink #remove(opts = {}) ⇒ Object
Deletes the object managed by this service.
28397 28398 28399 |
# File 'lib/ovirtsdk4/services.rb', line 28397 def remove(opts = {}) internal_remove(REMOVE, opts) end |
permalink #service(path) ⇒ Service
Locates the service corresponding to the given path.
28437 28438 28439 28440 28441 28442 |
# File 'lib/ovirtsdk4/services.rb', line 28437 def service(path) if path.nil? || path == '' return self end raise Error.new("The path \"#{path}\" doesn't correspond to any service") end |
permalink #update(nic, opts = {}) ⇒ Nic
Update the specified network interface card attached to the template.
28426 28427 28428 |
# File 'lib/ovirtsdk4/services.rb', line 28426 def update(nic, opts = {}) internal_update(nic, Nic, UPDATE, opts) end |