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.
12909 12910 12911 |
# File 'lib/ovirtsdk4/services.rb', line 12909 def get(opts = {}) internal_get(GET, opts) end |
#remove(opts = {}) ⇒ Object
Remove the network interface from the instance type.
12934 12935 12936 |
# File 'lib/ovirtsdk4/services.rb', line 12934 def remove(opts = {}) internal_remove(REMOVE, opts) end |
#service(path) ⇒ Service
Locates the service corresponding to the given path.
12974 12975 12976 12977 12978 12979 |
# File 'lib/ovirtsdk4/services.rb', line 12974 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.
12963 12964 12965 |
# File 'lib/ovirtsdk4/services.rb', line 12963 def update(nic, opts = {}) internal_update(nic, Nic, UPDATE, opts) end |