Returns the representation of the object managed by this service.
@param opts [Hash] Additional options.
@option opts [Hash] :headers ({}) Additional HTTP headers.
@option opts [Hash] :query ({}) Additional URL query parameters.
@option opts [Integer] :timeout (nil) The timeout for this request, in seconds. If no value is explicitly
given then the timeout set globally for the connection will be used.
@option opts [Boolean] :wait (true) If `true` wait for the response.
@return [OpenStackNetwork]
# File lib/ovirtsdk4/services.rb, line 16205 def get(opts = {}) internal_get(GET, opts) end
This operation imports an external network into oVirt. The network will be added to the data center specified.
@param opts [Hash] Additional options.
@option opts [Boolean] :async Indicates if the import should be performed asynchronously.
@option opts [DataCenter] :data_center The data center into which the network is to be imported.
Data center is mandatory, and can be specified using the `id` or `name` attributes, the rest of the attributes will be ignored.
@option opts [Hash] :headers ({}) Additional HTTP headers.
@option opts [Hash] :query ({}) Additional URL query parameters.
@option opts [Integer] :timeout (nil) The timeout for this request, in seconds. If no value is explicitly
given then the timeout set globally for the connection will be used.
@option opts [Boolean] :wait (true) If `true` wait for the response.
# File lib/ovirtsdk4/services.rb, line 16238 def import(opts = {}) internal_action(:import, nil, IMPORT, opts) end
Locates the service corresponding to the given path.
@param path [String] The path of the service.
@return [Service] A reference to the service.
# File lib/ovirtsdk4/services.rb, line 16258 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
Locates the `subnets` service.
@return [OpenstackSubnetsService] A reference to `subnets` service.
# File lib/ovirtsdk4/services.rb, line 16247 def subnets_service @subnets_service ||= OpenstackSubnetsService.new(self, 'subnets') end
Returns an string representation of this service.
@return [String]
# File lib/ovirtsdk4/services.rb, line 16276 def to_s "#<#{OpenstackNetworkService}:#{absolute_path}>" end