Client for interacting with the Google Cloud DNS API.
Client(project=None, credentials=None, http=None)#
Client to bundle configuration needed for API requests.
- project (string) – the project which the client acts on behalf of. Will be passed when creating a zone. If not passed, falls back to the default inferred from the environment.
- credentials (
NoneType) – The OAuth2 Credentials to use for the connection owned by this client. If not passed (and if no
httpobject is passed), falls back to the default inferred from the environment.
- http (
httplib2.Httpor class that defines
request().) – An optional HTTP object to make requests. If not passed, an
httpobject is created that is bound to the
credentialsfor the current object.
List zones for the project associated with this client.
Parameters: Return type:
tuple, (list, str)
google.cloud.dns.zone.ManagedZone, plus a “next page token” string: if the token is not None, indicates that more zones can be retrieved with another call (pass that value as
Return DNS quotas for the project associated with this client.
Return type: mapping Returns: keys for the mapping correspond to those of the
quotasub-mapping of the project resource.
zone(name, dns_name=None, description=None)#
Construct a zone bound to this client.
- name (string) – Name of the zone.
- dns_name (string or
NoneType) – DNS name of the zone. If not passed, then calls to
- description (string or
NoneType) – the description for the zone. If not passed, defaults to the value of ‘dns_name’.
Return type: Returns:
Create / interact with Google Cloud DNS connections.
A connection to Google Cloud DNS via the JSON REST API.
The base of the API call URL.
A template for the URL of a particular API call.
The version of the API, used in building the API call’s URL.
The scopes required for authenticating as a Cloud DNS consumer.