class OvirtSDK4::QuotaClusterLimitsService

def add(limit, opts = {})

Returns:
  • (QuotaClusterLimit) -

Options Hash: (**opts)
  • :wait (Boolean) -- If `true` wait for the response.
  • :timeout (Integer) -- The timeout for this request, in seconds. If no value is explicitly
  • :query (Hash) -- Additional URL query parameters.
  • :headers (Hash) -- Additional HTTP headers.

Parameters:
  • opts (Hash) -- Additional options.
  • limit (QuotaClusterLimit) -- The `limit` to add.
def add(limit, opts = {})
  internal_add(limit, QuotaClusterLimit, ADD, opts)
end

def limit_service(id)

Returns:
  • (QuotaClusterLimitService) - A reference to the `limit` service.

Parameters:
  • id (String) -- The identifier of the `limit`.
def limit_service(id)
  QuotaClusterLimitService.new(self, id)
end

def list(opts = {})

Returns:
  • (Array) -

Options Hash: (**opts)
  • :wait (Boolean) -- If `true` wait for the response.
  • :timeout (Integer) -- The timeout for this request, in seconds. If no value is explicitly
  • :query (Hash) -- Additional URL query parameters.
  • :headers (Hash) -- Additional HTTP headers.
  • :max (Integer) -- Sets the maximum number of limits to return. If not specified all the limits are returned.
  • :follow (String) -- Indicates which inner links should be _followed_. The objects referenced by these links will be fetched as part

Parameters:
  • opts (Hash) -- Additional options.
def list(opts = {})
  internal_get(LIST, opts)
end

def service(path)

Returns:
  • (Service) - A reference to the service.

Parameters:
  • path (String) -- The path of the service.
def service(path)
  if path.nil? || path == ''
    return self
  end
  index = path.index('/')
  if index.nil?
    return limit_service(path)
  end
  return limit_service(path[0..(index - 1)]).service(path[(index + 1)..-1])
end