Class: OvirtSDK4::InstanceTypeNicService
- Defined in:
- lib/ovirtsdk4/services.rb,
lib/ovirtsdk4/services.rb
Instance Method Summary collapse
-
#get(opts = {}) ⇒ Nic
Gets network interface configuration of the instance type.
-
#remove(opts = {}) ⇒ Object
Remove the network interface from the instance type.
-
#service(path) ⇒ Service
Locates the service corresponding to the given path.
-
#update(nic, opts = {}) ⇒ Nic
Updates the network interface configuration of the instance type.
Methods inherited from Service
Instance Method Details
#get(opts = {}) ⇒ Nic
Gets network interface configuration of the instance type.
13926 13927 13928 |
# File 'lib/ovirtsdk4/services.rb', line 13926 def get(opts = {}) internal_get(GET, opts) end |
#remove(opts = {}) ⇒ Object
Remove the network interface from the instance type.
13951 13952 13953 |
# File 'lib/ovirtsdk4/services.rb', line 13951 def remove(opts = {}) internal_remove(REMOVE, opts) end |
#service(path) ⇒ Service
Locates the service corresponding to the given path.
13991 13992 13993 13994 13995 13996 |
# File 'lib/ovirtsdk4/services.rb', line 13991 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
Updates the network interface configuration of the instance type.
13980 13981 13982 |
# File 'lib/ovirtsdk4/services.rb', line 13980 def update(nic, opts = {}) internal_update(nic, Nic, UPDATE, opts) end |