Class: OvirtSDK4::DataCenterNetworkService
- Defined in:
- lib/ovirtsdk4/services.rb,
lib/ovirtsdk4/services.rb
Instance Method Summary collapse
-
#get(opts = {}) ⇒ Network
Retrieves the data center network details.
-
#remove(opts = {}) ⇒ Object
Removes the network.
-
#service(path) ⇒ Service
Locates the service corresponding to the given path.
-
#update(network, opts = {}) ⇒ Network
Updates the network in the data center.
Methods inherited from Service
Instance Method Details
#get(opts = {}) ⇒ Network
Retrieves the data center network details.
6644 6645 6646 |
# File 'lib/ovirtsdk4/services.rb', line 6644 def get(opts = {}) internal_get(GET, opts) end |
#remove(opts = {}) ⇒ Object
Removes the network.
6667 6668 6669 |
# File 'lib/ovirtsdk4/services.rb', line 6667 def remove(opts = {}) internal_remove(REMOVE, opts) end |
#service(path) ⇒ Service
Locates the service corresponding to the given path.
6704 6705 6706 6707 6708 6709 |
# File 'lib/ovirtsdk4/services.rb', line 6704 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 data center.
6693 6694 6695 |
# File 'lib/ovirtsdk4/services.rb', line 6693 def update(network, opts = {}) internal_update(network, Network, UPDATE, opts) end |