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.
13969 13970 13971 |
# File 'lib/ovirtsdk4/services.rb', line 13969 def get(opts = {}) internal_get(GET, opts) end |
#remove(opts = {}) ⇒ Object
Remove the network interface from the instance type.
13994 13995 13996 |
# File 'lib/ovirtsdk4/services.rb', line 13994 def remove(opts = {}) internal_remove(REMOVE, opts) end |
#service(path) ⇒ Service
Locates the service corresponding to the given path.
14034 14035 14036 14037 14038 14039 |
# File 'lib/ovirtsdk4/services.rb', line 14034 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.
14023 14024 14025 |
# File 'lib/ovirtsdk4/services.rb', line 14023 def update(nic, opts = {}) internal_update(nic, Nic, UPDATE, opts) end |