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.
28013 28014 28015 |
# File 'lib/ovirtsdk4/services.rb', line 28013 def get(opts = {}) internal_get(GET, opts) end |
#remove(opts = {}) ⇒ Object
Deletes the object managed by this service.
28038 28039 28040 |
# File 'lib/ovirtsdk4/services.rb', line 28038 def remove(opts = {}) internal_remove(REMOVE, opts) end |
#service(path) ⇒ Service
Locates the service corresponding to the given path.
28078 28079 28080 28081 28082 28083 |
# File 'lib/ovirtsdk4/services.rb', line 28078 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.
28067 28068 28069 |
# File 'lib/ovirtsdk4/services.rb', line 28067 def update(nic, opts = {}) internal_update(nic, Nic, UPDATE, opts) end |