Cloud DNS API . resourceRecordSets

Instance Methods

close()

Close httplib2 connections.

list(project, managedZone, name=None, maxResults=None, type=None, pageToken=None, x__xgafv=None)

Enumerate ResourceRecordSets that have been created but not yet deleted.

list_next(previous_request, previous_response)

Retrieves the next page of results.

Method Details

close()
Close httplib2 connections.
list(project, managedZone, name=None, maxResults=None, type=None, pageToken=None, x__xgafv=None)
Enumerate ResourceRecordSets that have been created but not yet deleted.

Args:
  project: string, Identifies the project addressed by this request. (required)
  managedZone: string, Identifies the managed zone addressed by this request. Can be the managed zone name or ID. (required)
  name: string, Restricts the list to return only records with this fully qualified domain name.
  maxResults: integer, Optional. Maximum number of results to be returned. If unspecified, the server will decide how many results to return.
  type: string, Restricts the list to return only records of this type. If present, the "name" parameter must also be present.
  pageToken: string, Optional. A tag returned by a previous list request that was truncated. Use this parameter to continue a previous list request.
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    {
    "nextPageToken": "A String", # The presence of this field indicates that there exist more results following your last page of results in pagination order. To fetch them, make another list request using this value as your pagination token. In this way you can retrieve the complete contents of even very large collections one page at a time. However, if the contents of the collection change between the first and last paginated list request, the set of all elements returned will be an inconsistent view of the collection. There is no way to retrieve a consistent snapshot of a collection larger than the maximum page size.
    "kind": "dns#resourceRecordSetsListResponse", # Type of resource.
    "rrsets": [ # The resource record set resources.
      { # A unit of data that will be returned by the DNS servers.
        "rrdatas": [ # As defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1) -- see examples.
          "A String",
        ],
        "type": "A String", # The identifier of a supported record type. See the list of Supported DNS record types.
        "routingPolicy": { # A RRSetRoutingPolicy represents ResourceRecordSet data that will be returned dynamically with the response varying based on configured properties such as geolocation or by weighted random selection. # Configures dynamic query responses based on geo location of querying user or a weighted round robin based routing policy. A ResourceRecordSet should only have either rrdata (static) or routing_policy(dynamic). An error is returned otherwise.
          "geoPolicy": {
            "failovers": [ # If the health check for the primary target for a geo location returns an unhealthy status, the failover target is returned instead. This failover configuration is not mandatory. If a failover is not provided, the primary target won't be healthchecked - we'll return the primarily configured rrdata irrespective of whether it is healthy or not.
              {
                "signatureRrdatas": [ # DNSSEC generated signatures for the above geo_rrdata.
                  "A String",
                ],
                "rrdatas": [
                  "A String",
                ],
                "location": "A String", # The geo-location granularity is a GCP region. This location string should correspond to a GCP region. e.g "us-east1", "southamerica-east1", "asia-east1", etc.
                "kind": "dns#rRSetRoutingPolicyGeoPolicyGeoPolicyItem",
              },
            ],
            "items": [ # The primary geo routing configuration. If there are multiple items with the same location, an error is returned instead.
              {
                "signatureRrdatas": [ # DNSSEC generated signatures for the above geo_rrdata.
                  "A String",
                ],
                "rrdatas": [
                  "A String",
                ],
                "location": "A String", # The geo-location granularity is a GCP region. This location string should correspond to a GCP region. e.g "us-east1", "southamerica-east1", "asia-east1", etc.
                "kind": "dns#rRSetRoutingPolicyGeoPolicyGeoPolicyItem",
              },
            ],
            "kind": "dns#rRSetRoutingPolicyGeoPolicy",
          },
          "kind": "dns#rRSetRoutingPolicy",
          "wrrPolicy": {
            "items": [
              {
                "rrdatas": [
                  "A String",
                ],
                "kind": "dns#rRSetRoutingPolicyWrrPolicyWrrPolicyItem",
                "weight": 3.14, # The weight corresponding to this subset of rrdata. When multiple WeightedRoundRobinPolicyItems are configured, the probability of returning an rrset is proportional to its weight relative to the sum of weights configured for all items. This weight should be a decimal in the range [0,1].
                "signatureRrdatas": [ # DNSSEC generated signatures for the above wrr_rrdata.
                  "A String",
                ],
              },
            ],
            "kind": "dns#rRSetRoutingPolicyWrrPolicy",
          },
        },
        "ttl": 42, # Number of seconds that this ResourceRecordSet can be cached by resolvers.
        "name": "A String", # For example, www.example.com.
        "kind": "dns#resourceRecordSet",
        "signatureRrdatas": [ # As defined in RFC 4034 (section 3.2).
          "A String",
        ],
      },
    ],
    "header": { # Elements common to every response.
      "operationId": "A String", # For mutating operation requests that completed successfully. This is the client_operation_id if the client specified it, otherwise it is generated by the server (output only).
    },
  }
list_next(previous_request, previous_response)
Retrieves the next page of results.

Args:
  previous_request: The request for the previous page. (required)
  previous_response: The response from the request for the previous page. (required)

Returns:
  A request object that you can call 'execute()' on to request the next
  page. Returns None if there are no more items in the collection.