Class: OvirtSDK4::OpenstackNetworkService
- Defined in:
- lib/ovirtsdk4/services.rb,
lib/ovirtsdk4/services.rb
Instance Method Summary collapse
-
#get(opts = {}) ⇒ OpenStackNetwork
Returns the representation of the object managed by this service.
-
#import(opts = {}) ⇒ Object
This operation imports an external network into oVirt.
-
#service(path) ⇒ Service
Locates the service corresponding to the given path.
-
#subnets_service ⇒ OpenstackSubnetsService
Locates the
subnets
service.
Methods inherited from Service
Instance Method Details
#get(opts = {}) ⇒ OpenStackNetwork
Returns the representation of the object managed by this service.
16193 16194 16195 |
# File 'lib/ovirtsdk4/services.rb', line 16193 def get(opts = {}) internal_get(GET, opts) end |
#import(opts = {}) ⇒ Object
This operation imports an external network into oVirt. The network will be added to the data center specified.
16231 16232 16233 |
# File 'lib/ovirtsdk4/services.rb', line 16231 def import(opts = {}) internal_action(:import, nil, IMPORT, opts) end |
#service(path) ⇒ Service
Locates the service corresponding to the given path.
16251 16252 16253 16254 16255 16256 16257 16258 16259 16260 16261 16262 |
# File 'lib/ovirtsdk4/services.rb', line 16251 def service(path) if path.nil? || path == '' return self end if path == 'subnets' return subnets_service end if path.start_with?('subnets/') return subnets_service.service(path[8..-1]) end raise Error.new("The path \"#{path}\" doesn't correspond to any service") end |
#subnets_service ⇒ OpenstackSubnetsService
Locates the subnets
service.
16240 16241 16242 |
# File 'lib/ovirtsdk4/services.rb', line 16240 def subnets_service @subnets_service ||= OpenstackSubnetsService.new(self, 'subnets') end |