libcloud.dns.drivers.rackspace module

class libcloud.dns.drivers.rackspace.RackspaceDNSConnection(*args, **kwargs)[source]

Bases: OpenStack_1_1_Connection, PollingConnection

Rackspace DNS Connection class.

Initialize user_id and key; set secure to an int based on passed value.

XML_NAMESPACE = None
auth_url: str = 'https://identity.api.rackspacecloud.com'
get_endpoint()[source]

Selects the endpoint to use based on provider specific values, or overrides passed in by the user when setting up the driver.

Returns:

url of the relevant endpoint for the driver

get_poll_request_kwargs(response, context, request_kwargs)[source]

Return keyword arguments which are passed to the request() method when polling for the job status.

Parameters:
  • response (dict) – Response object returned by poll request.

  • request_kwargs – Kwargs previously used to initiate the poll request.

:return dict Keyword arguments

has_completed(response)[source]

Return job completion status.

Parameters:

response (HTTPResponse) – Response object returned by poll request.

:return bool True if the job has completed, False otherwise.

poll_interval = 2.5
responseCls

alias of RackspaceDNSResponse

timeout: int | float | None = 30
class libcloud.dns.drivers.rackspace.RackspaceDNSResponse(*args, **kwargs)[source]

Bases: OpenStack_1_1_Response

Rackspace DNS Response class.

Parameters:
  • response (httplib.HTTPResponse) – HTTP response object. (optional)

  • connection (Connection) – Parent connection object.

parse_error()[source]

Parse the error messages.

Override in a provider’s subclass.

Returns:

Parsed error.

Return type:

str