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)
gcloud.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 quots 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.
Create / interact with gcloud 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.