class OvirtSDK4::VmPoolService

def allocate_vm(opts = {})

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.
  • :async (Boolean) -- Indicates if the allocation should be performed asynchronously.

Parameters:
  • opts (Hash) -- Additional options.
def allocate_vm(opts = {})
  internal_action(:allocatevm, nil, ALLOCATE_VM, opts)
end

def get(opts = {})

Returns:
  • (VmPool) -

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.
  • :follow (String) -- Indicates which inner links should be _followed_. The objects referenced by these links will be fetched as part
  • :filter (Boolean) -- Indicates if the results should be filtered according to the permissions of the user.

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

def permissions_service

Returns:
  • (AssignedPermissionsService) - A reference to `permissions` service.
def permissions_service
  @permissions_service ||= AssignedPermissionsService.new(self, 'permissions')
end

def remove(opts = {})

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.
  • :async (Boolean) -- Indicates if the remove should be performed asynchronously.

Parameters:
  • opts (Hash) -- Additional options.
def remove(opts = {})
  internal_remove(REMOVE, 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
  if path == 'permissions'
    return permissions_service
  end
  if path.start_with?('permissions/')
    return permissions_service.service(path[12..-1])
  end
  raise Error.new("The path \"#{path}\" doesn't correspond to any service")
end

def update(pool, opts = {})

Returns:
  • (VmPool) -

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.
  • :seal (Boolean) -- Specifies if virtual machines created for the pool should be sealed after creation.
  • :async (Boolean) -- Indicates if the update should be performed asynchronously.

Parameters:
  • opts (Hash) -- Additional options.
  • pool (VmPool) -- The virtual machine pool that is being updated.
def update(pool, opts = {})
  internal_update(pool, VmPool, UPDATE, opts)
end