Class: OvirtSDK4::ClusterNetworkService
- Defined in:
- lib/ovirtsdk4/services.rb,
lib/ovirtsdk4/services.rb
Instance Method Summary collapse
-
#get(opts = {}) ⇒ Network
Retrieves the cluster network details.
-
#remove(opts = {}) ⇒ Object
Unassigns the network from a cluster.
-
#service(path) ⇒ Service
Locates the service corresponding to the given path.
-
#update(network, opts = {}) ⇒ Network
Updates the network in the cluster.
Methods inherited from Service
Instance Method Details
#get(opts = {}) ⇒ Network
Retrieves the cluster network details.
5000 5001 5002 |
# File 'lib/ovirtsdk4/services.rb', line 5000 def get(opts = {}) internal_get(GET, opts) end |
#remove(opts = {}) ⇒ Object
Unassigns the network from a cluster.
5023 5024 5025 |
# File 'lib/ovirtsdk4/services.rb', line 5023 def remove(opts = {}) internal_remove(REMOVE, opts) end |
#service(path) ⇒ Service
Locates the service corresponding to the given path.
5060 5061 5062 5063 5064 5065 |
# File 'lib/ovirtsdk4/services.rb', line 5060 def service(path) if path.nil? || path == '' return self end raise Error.new("The path \"#{path}\" doesn't correspond to any service") end |
#update(network, opts = {}) ⇒ Network
Updates the network in the cluster.
5049 5050 5051 |
# File 'lib/ovirtsdk4/services.rb', line 5049 def update(network, opts = {}) internal_update(network, Network, UPDATE, opts) end |