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.
5659 5660 5661 |
# File 'lib/ovirtsdk4/services.rb', line 5659 def get(opts = {}) internal_get(GET, opts) end |
#remove(opts = {}) ⇒ Object
Unassigns the network from a cluster.
5682 5683 5684 |
# File 'lib/ovirtsdk4/services.rb', line 5682 def remove(opts = {}) internal_remove(REMOVE, opts) end |
#service(path) ⇒ Service
Locates the service corresponding to the given path.
5719 5720 5721 5722 5723 5724 |
# File 'lib/ovirtsdk4/services.rb', line 5719 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.
5708 5709 5710 |
# File 'lib/ovirtsdk4/services.rb', line 5708 def update(network, opts = {}) internal_update(network, Network, UPDATE, opts) end |