Close httplib2 connections.
create(project, managedZone, body=None, clientOperationId=None, x__xgafv=None)
Creates a new ResourceRecordSet.
delete(project, managedZone, name, type, clientOperationId=None, x__xgafv=None)
Deletes a previously created ResourceRecordSet.
get(project, managedZone, name, type, clientOperationId=None, x__xgafv=None)
Fetches the representation of an existing ResourceRecordSet.
list(project, managedZone, maxResults=None, name=None, pageToken=None, type=None, x__xgafv=None)
Enumerates ResourceRecordSets that you have created but not yet deleted.
Retrieves the next page of results.
patch(project, managedZone, name, type, body=None, clientOperationId=None, x__xgafv=None)
Applies a partial update to an existing ResourceRecordSet.
close()
Close httplib2 connections.
create(project, managedZone, body=None, clientOperationId=None, x__xgafv=None)
Creates a new ResourceRecordSet. 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) body: object, The request body. The object takes the form of: { # A unit of data that is returned by the DNS servers. "kind": "dns#resourceRecordSet", "name": "A String", # For example, www.example.com. "routingPolicy": { # A RRSetRoutingPolicy represents ResourceRecordSet data that is returned dynamically with the response varying based on configured properties such as geolocation or by weighted random selection. # Configures dynamic query responses based on either the geo location of the querying user or a weighted round robin based routing policy. A valid `ResourceRecordSet` contains only `rrdata` (for static resolution) or a `routing_policy` (for dynamic resolution). "geo": { # Configures a `RRSetRoutingPolicy` that routes based on the geo location of the querying user. "enableFencing": True or False, # Without fencing, if health check fails for all configured items in the current geo bucket, we failover to the next nearest geo bucket. With fencing, if health checking is enabled, as long as some targets in the current geo bucket are healthy, we return only the healthy targets. However, if all targets are unhealthy, we don't failover to the next nearest bucket; instead, we return all the items in the current bucket even when all targets are unhealthy. "items": [ # The primary geo routing configuration. If there are multiple items with the same location, an error is returned instead. { # ResourceRecordSet data for one geo location. "healthCheckedTargets": { # HealthCheckTargets describes endpoints to health-check when responding to Routing Policy queries. Only the healthy endpoints will be included in the response. # For A and AAAA types only. Endpoints to return in the query result only if they are healthy. These can be specified along with `rrdata` within this item. "externalEndpoints": [ # The Internet IP addresses to be health checked. The format matches the format of ResourceRecordSet.rrdata as defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1) "A String", ], "internalLoadBalancers": [ # Configuration for internal load balancers to be health checked. { # The configuration for an individual load balancer to health check. "ipAddress": "A String", # The frontend IP address of the load balancer to health check. "ipProtocol": "A String", # The protocol of the load balancer to health check. "kind": "dns#rRSetRoutingPolicyLoadBalancerTarget", "loadBalancerType": "A String", # The type of load balancer specified by this target. This value must match the configuration of the load balancer located at the LoadBalancerTarget's IP address, port, and region. Use the following: - *regionalL4ilb*: for a regional internal passthrough Network Load Balancer. - *regionalL7ilb*: for a regional internal Application Load Balancer. - *globalL7ilb*: for a global internal Application Load Balancer. "networkUrl": "A String", # The fully qualified URL of the network that the load balancer is attached to. This should be formatted like `https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}`. "port": "A String", # The configured port of the load balancer. "project": "A String", # The project ID in which the load balancer is located. "region": "A String", # The region in which the load balancer is located. }, ], }, "kind": "dns#rRSetRoutingPolicyGeoPolicyGeoPolicyItem", "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. "rrdatas": [ "A String", ], "signatureRrdatas": [ # DNSSEC generated signatures for all the `rrdata` within this item. If health checked targets are provided for DNSSEC enabled zones, there's a restriction of 1 IP address per item. "A String", ], }, ], "kind": "dns#rRSetRoutingPolicyGeoPolicy", }, "geoPolicy": { # Configures a `RRSetRoutingPolicy` that routes based on the geo location of the querying user. "enableFencing": True or False, # Without fencing, if health check fails for all configured items in the current geo bucket, we failover to the next nearest geo bucket. With fencing, if health checking is enabled, as long as some targets in the current geo bucket are healthy, we return only the healthy targets. However, if all targets are unhealthy, we don't failover to the next nearest bucket; instead, we return all the items in the current bucket even when all targets are unhealthy. "items": [ # The primary geo routing configuration. If there are multiple items with the same location, an error is returned instead. { # ResourceRecordSet data for one geo location. "healthCheckedTargets": { # HealthCheckTargets describes endpoints to health-check when responding to Routing Policy queries. Only the healthy endpoints will be included in the response. # For A and AAAA types only. Endpoints to return in the query result only if they are healthy. These can be specified along with `rrdata` within this item. "externalEndpoints": [ # The Internet IP addresses to be health checked. The format matches the format of ResourceRecordSet.rrdata as defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1) "A String", ], "internalLoadBalancers": [ # Configuration for internal load balancers to be health checked. { # The configuration for an individual load balancer to health check. "ipAddress": "A String", # The frontend IP address of the load balancer to health check. "ipProtocol": "A String", # The protocol of the load balancer to health check. "kind": "dns#rRSetRoutingPolicyLoadBalancerTarget", "loadBalancerType": "A String", # The type of load balancer specified by this target. This value must match the configuration of the load balancer located at the LoadBalancerTarget's IP address, port, and region. Use the following: - *regionalL4ilb*: for a regional internal passthrough Network Load Balancer. - *regionalL7ilb*: for a regional internal Application Load Balancer. - *globalL7ilb*: for a global internal Application Load Balancer. "networkUrl": "A String", # The fully qualified URL of the network that the load balancer is attached to. This should be formatted like `https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}`. "port": "A String", # The configured port of the load balancer. "project": "A String", # The project ID in which the load balancer is located. "region": "A String", # The region in which the load balancer is located. }, ], }, "kind": "dns#rRSetRoutingPolicyGeoPolicyGeoPolicyItem", "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. "rrdatas": [ "A String", ], "signatureRrdatas": [ # DNSSEC generated signatures for all the `rrdata` within this item. If health checked targets are provided for DNSSEC enabled zones, there's a restriction of 1 IP address per item. "A String", ], }, ], "kind": "dns#rRSetRoutingPolicyGeoPolicy", }, "healthCheck": "A String", # The selfLink attribute of the HealthCheck resource to use for this RRSetRoutingPolicy. https://cloud.google.com/compute/docs/reference/rest/v1/healthChecks "kind": "dns#rRSetRoutingPolicy", "primaryBackup": { # Configures a RRSetRoutingPolicy such that all queries are responded with the primary_targets if they are healthy. And if all of them are unhealthy, then we fallback to a geo localized policy. "backupGeoTargets": { # Configures a `RRSetRoutingPolicy` that routes based on the geo location of the querying user. # Backup targets provide a regional failover policy for the otherwise global primary targets. If serving state is set to `BACKUP`, this policy essentially becomes a geo routing policy. "enableFencing": True or False, # Without fencing, if health check fails for all configured items in the current geo bucket, we failover to the next nearest geo bucket. With fencing, if health checking is enabled, as long as some targets in the current geo bucket are healthy, we return only the healthy targets. However, if all targets are unhealthy, we don't failover to the next nearest bucket; instead, we return all the items in the current bucket even when all targets are unhealthy. "items": [ # The primary geo routing configuration. If there are multiple items with the same location, an error is returned instead. { # ResourceRecordSet data for one geo location. "healthCheckedTargets": { # HealthCheckTargets describes endpoints to health-check when responding to Routing Policy queries. Only the healthy endpoints will be included in the response. # For A and AAAA types only. Endpoints to return in the query result only if they are healthy. These can be specified along with `rrdata` within this item. "externalEndpoints": [ # The Internet IP addresses to be health checked. The format matches the format of ResourceRecordSet.rrdata as defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1) "A String", ], "internalLoadBalancers": [ # Configuration for internal load balancers to be health checked. { # The configuration for an individual load balancer to health check. "ipAddress": "A String", # The frontend IP address of the load balancer to health check. "ipProtocol": "A String", # The protocol of the load balancer to health check. "kind": "dns#rRSetRoutingPolicyLoadBalancerTarget", "loadBalancerType": "A String", # The type of load balancer specified by this target. This value must match the configuration of the load balancer located at the LoadBalancerTarget's IP address, port, and region. Use the following: - *regionalL4ilb*: for a regional internal passthrough Network Load Balancer. - *regionalL7ilb*: for a regional internal Application Load Balancer. - *globalL7ilb*: for a global internal Application Load Balancer. "networkUrl": "A String", # The fully qualified URL of the network that the load balancer is attached to. This should be formatted like `https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}`. "port": "A String", # The configured port of the load balancer. "project": "A String", # The project ID in which the load balancer is located. "region": "A String", # The region in which the load balancer is located. }, ], }, "kind": "dns#rRSetRoutingPolicyGeoPolicyGeoPolicyItem", "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. "rrdatas": [ "A String", ], "signatureRrdatas": [ # DNSSEC generated signatures for all the `rrdata` within this item. If health checked targets are provided for DNSSEC enabled zones, there's a restriction of 1 IP address per item. "A String", ], }, ], "kind": "dns#rRSetRoutingPolicyGeoPolicy", }, "kind": "dns#rRSetRoutingPolicyPrimaryBackupPolicy", "primaryTargets": { # HealthCheckTargets describes endpoints to health-check when responding to Routing Policy queries. Only the healthy endpoints will be included in the response. # Endpoints that are health checked before making the routing decision. Unhealthy endpoints are omitted from the results. If all endpoints are unhealthy, we serve a response based on the `backup_geo_targets`. "externalEndpoints": [ # The Internet IP addresses to be health checked. The format matches the format of ResourceRecordSet.rrdata as defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1) "A String", ], "internalLoadBalancers": [ # Configuration for internal load balancers to be health checked. { # The configuration for an individual load balancer to health check. "ipAddress": "A String", # The frontend IP address of the load balancer to health check. "ipProtocol": "A String", # The protocol of the load balancer to health check. "kind": "dns#rRSetRoutingPolicyLoadBalancerTarget", "loadBalancerType": "A String", # The type of load balancer specified by this target. This value must match the configuration of the load balancer located at the LoadBalancerTarget's IP address, port, and region. Use the following: - *regionalL4ilb*: for a regional internal passthrough Network Load Balancer. - *regionalL7ilb*: for a regional internal Application Load Balancer. - *globalL7ilb*: for a global internal Application Load Balancer. "networkUrl": "A String", # The fully qualified URL of the network that the load balancer is attached to. This should be formatted like `https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}`. "port": "A String", # The configured port of the load balancer. "project": "A String", # The project ID in which the load balancer is located. "region": "A String", # The region in which the load balancer is located. }, ], }, "trickleTraffic": 3.14, # When serving state is `PRIMARY`, this field provides the option of sending a small percentage of the traffic to the backup targets. }, "wrr": { # Configures a RRSetRoutingPolicy that routes in a weighted round robin fashion. "items": [ { # A routing block which contains the routing information for one WRR item. "healthCheckedTargets": { # HealthCheckTargets describes endpoints to health-check when responding to Routing Policy queries. Only the healthy endpoints will be included in the response. # Endpoints that are health checked before making the routing decision. The unhealthy endpoints are omitted from the result. If all endpoints within a bucket are unhealthy, we choose a different bucket (sampled with respect to its weight) for responding. If DNSSEC is enabled for this zone, only one of `rrdata` or `health_checked_targets` can be set. "externalEndpoints": [ # The Internet IP addresses to be health checked. The format matches the format of ResourceRecordSet.rrdata as defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1) "A String", ], "internalLoadBalancers": [ # Configuration for internal load balancers to be health checked. { # The configuration for an individual load balancer to health check. "ipAddress": "A String", # The frontend IP address of the load balancer to health check. "ipProtocol": "A String", # The protocol of the load balancer to health check. "kind": "dns#rRSetRoutingPolicyLoadBalancerTarget", "loadBalancerType": "A String", # The type of load balancer specified by this target. This value must match the configuration of the load balancer located at the LoadBalancerTarget's IP address, port, and region. Use the following: - *regionalL4ilb*: for a regional internal passthrough Network Load Balancer. - *regionalL7ilb*: for a regional internal Application Load Balancer. - *globalL7ilb*: for a global internal Application Load Balancer. "networkUrl": "A String", # The fully qualified URL of the network that the load balancer is attached to. This should be formatted like `https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}`. "port": "A String", # The configured port of the load balancer. "project": "A String", # The project ID in which the load balancer is located. "region": "A String", # The region in which the load balancer is located. }, ], }, "kind": "dns#rRSetRoutingPolicyWrrPolicyWrrPolicyItem", "rrdatas": [ "A String", ], "signatureRrdatas": [ # DNSSEC generated signatures for all the `rrdata` within this item. Note that if health checked targets are provided for DNSSEC enabled zones, there's a restriction of 1 IP address per item. "A String", ], "weight": 3.14, # The weight corresponding to this `WrrPolicyItem` object. When multiple `WrrPolicyItem` objects are configured, the probability of returning an `WrrPolicyItem` object's data is proportional to its weight relative to the sum of weights configured for all items. This weight must be non-negative. }, ], "kind": "dns#rRSetRoutingPolicyWrrPolicy", }, "wrrPolicy": { # Configures a RRSetRoutingPolicy that routes in a weighted round robin fashion. "items": [ { # A routing block which contains the routing information for one WRR item. "healthCheckedTargets": { # HealthCheckTargets describes endpoints to health-check when responding to Routing Policy queries. Only the healthy endpoints will be included in the response. # Endpoints that are health checked before making the routing decision. The unhealthy endpoints are omitted from the result. If all endpoints within a bucket are unhealthy, we choose a different bucket (sampled with respect to its weight) for responding. If DNSSEC is enabled for this zone, only one of `rrdata` or `health_checked_targets` can be set. "externalEndpoints": [ # The Internet IP addresses to be health checked. The format matches the format of ResourceRecordSet.rrdata as defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1) "A String", ], "internalLoadBalancers": [ # Configuration for internal load balancers to be health checked. { # The configuration for an individual load balancer to health check. "ipAddress": "A String", # The frontend IP address of the load balancer to health check. "ipProtocol": "A String", # The protocol of the load balancer to health check. "kind": "dns#rRSetRoutingPolicyLoadBalancerTarget", "loadBalancerType": "A String", # The type of load balancer specified by this target. This value must match the configuration of the load balancer located at the LoadBalancerTarget's IP address, port, and region. Use the following: - *regionalL4ilb*: for a regional internal passthrough Network Load Balancer. - *regionalL7ilb*: for a regional internal Application Load Balancer. - *globalL7ilb*: for a global internal Application Load Balancer. "networkUrl": "A String", # The fully qualified URL of the network that the load balancer is attached to. This should be formatted like `https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}`. "port": "A String", # The configured port of the load balancer. "project": "A String", # The project ID in which the load balancer is located. "region": "A String", # The region in which the load balancer is located. }, ], }, "kind": "dns#rRSetRoutingPolicyWrrPolicyWrrPolicyItem", "rrdatas": [ "A String", ], "signatureRrdatas": [ # DNSSEC generated signatures for all the `rrdata` within this item. Note that if health checked targets are provided for DNSSEC enabled zones, there's a restriction of 1 IP address per item. "A String", ], "weight": 3.14, # The weight corresponding to this `WrrPolicyItem` object. When multiple `WrrPolicyItem` objects are configured, the probability of returning an `WrrPolicyItem` object's data is proportional to its weight relative to the sum of weights configured for all items. This weight must be non-negative. }, ], "kind": "dns#rRSetRoutingPolicyWrrPolicy", }, }, "rrdatas": [ # As defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1) -- see examples. "A String", ], "signatureRrdatas": [ # As defined in RFC 4034 (section 3.2). "A String", ], "ttl": 42, # Number of seconds that this `ResourceRecordSet` can be cached by resolvers. "type": "A String", # The identifier of a supported record type. See the list of Supported DNS record types. } clientOperationId: string, For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection. x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { # A unit of data that is returned by the DNS servers. "kind": "dns#resourceRecordSet", "name": "A String", # For example, www.example.com. "routingPolicy": { # A RRSetRoutingPolicy represents ResourceRecordSet data that is returned dynamically with the response varying based on configured properties such as geolocation or by weighted random selection. # Configures dynamic query responses based on either the geo location of the querying user or a weighted round robin based routing policy. A valid `ResourceRecordSet` contains only `rrdata` (for static resolution) or a `routing_policy` (for dynamic resolution). "geo": { # Configures a `RRSetRoutingPolicy` that routes based on the geo location of the querying user. "enableFencing": True or False, # Without fencing, if health check fails for all configured items in the current geo bucket, we failover to the next nearest geo bucket. With fencing, if health checking is enabled, as long as some targets in the current geo bucket are healthy, we return only the healthy targets. However, if all targets are unhealthy, we don't failover to the next nearest bucket; instead, we return all the items in the current bucket even when all targets are unhealthy. "items": [ # The primary geo routing configuration. If there are multiple items with the same location, an error is returned instead. { # ResourceRecordSet data for one geo location. "healthCheckedTargets": { # HealthCheckTargets describes endpoints to health-check when responding to Routing Policy queries. Only the healthy endpoints will be included in the response. # For A and AAAA types only. Endpoints to return in the query result only if they are healthy. These can be specified along with `rrdata` within this item. "externalEndpoints": [ # The Internet IP addresses to be health checked. The format matches the format of ResourceRecordSet.rrdata as defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1) "A String", ], "internalLoadBalancers": [ # Configuration for internal load balancers to be health checked. { # The configuration for an individual load balancer to health check. "ipAddress": "A String", # The frontend IP address of the load balancer to health check. "ipProtocol": "A String", # The protocol of the load balancer to health check. "kind": "dns#rRSetRoutingPolicyLoadBalancerTarget", "loadBalancerType": "A String", # The type of load balancer specified by this target. This value must match the configuration of the load balancer located at the LoadBalancerTarget's IP address, port, and region. Use the following: - *regionalL4ilb*: for a regional internal passthrough Network Load Balancer. - *regionalL7ilb*: for a regional internal Application Load Balancer. - *globalL7ilb*: for a global internal Application Load Balancer. "networkUrl": "A String", # The fully qualified URL of the network that the load balancer is attached to. This should be formatted like `https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}`. "port": "A String", # The configured port of the load balancer. "project": "A String", # The project ID in which the load balancer is located. "region": "A String", # The region in which the load balancer is located. }, ], }, "kind": "dns#rRSetRoutingPolicyGeoPolicyGeoPolicyItem", "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. "rrdatas": [ "A String", ], "signatureRrdatas": [ # DNSSEC generated signatures for all the `rrdata` within this item. If health checked targets are provided for DNSSEC enabled zones, there's a restriction of 1 IP address per item. "A String", ], }, ], "kind": "dns#rRSetRoutingPolicyGeoPolicy", }, "geoPolicy": { # Configures a `RRSetRoutingPolicy` that routes based on the geo location of the querying user. "enableFencing": True or False, # Without fencing, if health check fails for all configured items in the current geo bucket, we failover to the next nearest geo bucket. With fencing, if health checking is enabled, as long as some targets in the current geo bucket are healthy, we return only the healthy targets. However, if all targets are unhealthy, we don't failover to the next nearest bucket; instead, we return all the items in the current bucket even when all targets are unhealthy. "items": [ # The primary geo routing configuration. If there are multiple items with the same location, an error is returned instead. { # ResourceRecordSet data for one geo location. "healthCheckedTargets": { # HealthCheckTargets describes endpoints to health-check when responding to Routing Policy queries. Only the healthy endpoints will be included in the response. # For A and AAAA types only. Endpoints to return in the query result only if they are healthy. These can be specified along with `rrdata` within this item. "externalEndpoints": [ # The Internet IP addresses to be health checked. The format matches the format of ResourceRecordSet.rrdata as defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1) "A String", ], "internalLoadBalancers": [ # Configuration for internal load balancers to be health checked. { # The configuration for an individual load balancer to health check. "ipAddress": "A String", # The frontend IP address of the load balancer to health check. "ipProtocol": "A String", # The protocol of the load balancer to health check. "kind": "dns#rRSetRoutingPolicyLoadBalancerTarget", "loadBalancerType": "A String", # The type of load balancer specified by this target. This value must match the configuration of the load balancer located at the LoadBalancerTarget's IP address, port, and region. Use the following: - *regionalL4ilb*: for a regional internal passthrough Network Load Balancer. - *regionalL7ilb*: for a regional internal Application Load Balancer. - *globalL7ilb*: for a global internal Application Load Balancer. "networkUrl": "A String", # The fully qualified URL of the network that the load balancer is attached to. This should be formatted like `https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}`. "port": "A String", # The configured port of the load balancer. "project": "A String", # The project ID in which the load balancer is located. "region": "A String", # The region in which the load balancer is located. }, ], }, "kind": "dns#rRSetRoutingPolicyGeoPolicyGeoPolicyItem", "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. "rrdatas": [ "A String", ], "signatureRrdatas": [ # DNSSEC generated signatures for all the `rrdata` within this item. If health checked targets are provided for DNSSEC enabled zones, there's a restriction of 1 IP address per item. "A String", ], }, ], "kind": "dns#rRSetRoutingPolicyGeoPolicy", }, "healthCheck": "A String", # The selfLink attribute of the HealthCheck resource to use for this RRSetRoutingPolicy. https://cloud.google.com/compute/docs/reference/rest/v1/healthChecks "kind": "dns#rRSetRoutingPolicy", "primaryBackup": { # Configures a RRSetRoutingPolicy such that all queries are responded with the primary_targets if they are healthy. And if all of them are unhealthy, then we fallback to a geo localized policy. "backupGeoTargets": { # Configures a `RRSetRoutingPolicy` that routes based on the geo location of the querying user. # Backup targets provide a regional failover policy for the otherwise global primary targets. If serving state is set to `BACKUP`, this policy essentially becomes a geo routing policy. "enableFencing": True or False, # Without fencing, if health check fails for all configured items in the current geo bucket, we failover to the next nearest geo bucket. With fencing, if health checking is enabled, as long as some targets in the current geo bucket are healthy, we return only the healthy targets. However, if all targets are unhealthy, we don't failover to the next nearest bucket; instead, we return all the items in the current bucket even when all targets are unhealthy. "items": [ # The primary geo routing configuration. If there are multiple items with the same location, an error is returned instead. { # ResourceRecordSet data for one geo location. "healthCheckedTargets": { # HealthCheckTargets describes endpoints to health-check when responding to Routing Policy queries. Only the healthy endpoints will be included in the response. # For A and AAAA types only. Endpoints to return in the query result only if they are healthy. These can be specified along with `rrdata` within this item. "externalEndpoints": [ # The Internet IP addresses to be health checked. The format matches the format of ResourceRecordSet.rrdata as defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1) "A String", ], "internalLoadBalancers": [ # Configuration for internal load balancers to be health checked. { # The configuration for an individual load balancer to health check. "ipAddress": "A String", # The frontend IP address of the load balancer to health check. "ipProtocol": "A String", # The protocol of the load balancer to health check. "kind": "dns#rRSetRoutingPolicyLoadBalancerTarget", "loadBalancerType": "A String", # The type of load balancer specified by this target. This value must match the configuration of the load balancer located at the LoadBalancerTarget's IP address, port, and region. Use the following: - *regionalL4ilb*: for a regional internal passthrough Network Load Balancer. - *regionalL7ilb*: for a regional internal Application Load Balancer. - *globalL7ilb*: for a global internal Application Load Balancer. "networkUrl": "A String", # The fully qualified URL of the network that the load balancer is attached to. This should be formatted like `https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}`. "port": "A String", # The configured port of the load balancer. "project": "A String", # The project ID in which the load balancer is located. "region": "A String", # The region in which the load balancer is located. }, ], }, "kind": "dns#rRSetRoutingPolicyGeoPolicyGeoPolicyItem", "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. "rrdatas": [ "A String", ], "signatureRrdatas": [ # DNSSEC generated signatures for all the `rrdata` within this item. If health checked targets are provided for DNSSEC enabled zones, there's a restriction of 1 IP address per item. "A String", ], }, ], "kind": "dns#rRSetRoutingPolicyGeoPolicy", }, "kind": "dns#rRSetRoutingPolicyPrimaryBackupPolicy", "primaryTargets": { # HealthCheckTargets describes endpoints to health-check when responding to Routing Policy queries. Only the healthy endpoints will be included in the response. # Endpoints that are health checked before making the routing decision. Unhealthy endpoints are omitted from the results. If all endpoints are unhealthy, we serve a response based on the `backup_geo_targets`. "externalEndpoints": [ # The Internet IP addresses to be health checked. The format matches the format of ResourceRecordSet.rrdata as defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1) "A String", ], "internalLoadBalancers": [ # Configuration for internal load balancers to be health checked. { # The configuration for an individual load balancer to health check. "ipAddress": "A String", # The frontend IP address of the load balancer to health check. "ipProtocol": "A String", # The protocol of the load balancer to health check. "kind": "dns#rRSetRoutingPolicyLoadBalancerTarget", "loadBalancerType": "A String", # The type of load balancer specified by this target. This value must match the configuration of the load balancer located at the LoadBalancerTarget's IP address, port, and region. Use the following: - *regionalL4ilb*: for a regional internal passthrough Network Load Balancer. - *regionalL7ilb*: for a regional internal Application Load Balancer. - *globalL7ilb*: for a global internal Application Load Balancer. "networkUrl": "A String", # The fully qualified URL of the network that the load balancer is attached to. This should be formatted like `https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}`. "port": "A String", # The configured port of the load balancer. "project": "A String", # The project ID in which the load balancer is located. "region": "A String", # The region in which the load balancer is located. }, ], }, "trickleTraffic": 3.14, # When serving state is `PRIMARY`, this field provides the option of sending a small percentage of the traffic to the backup targets. }, "wrr": { # Configures a RRSetRoutingPolicy that routes in a weighted round robin fashion. "items": [ { # A routing block which contains the routing information for one WRR item. "healthCheckedTargets": { # HealthCheckTargets describes endpoints to health-check when responding to Routing Policy queries. Only the healthy endpoints will be included in the response. # Endpoints that are health checked before making the routing decision. The unhealthy endpoints are omitted from the result. If all endpoints within a bucket are unhealthy, we choose a different bucket (sampled with respect to its weight) for responding. If DNSSEC is enabled for this zone, only one of `rrdata` or `health_checked_targets` can be set. "externalEndpoints": [ # The Internet IP addresses to be health checked. The format matches the format of ResourceRecordSet.rrdata as defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1) "A String", ], "internalLoadBalancers": [ # Configuration for internal load balancers to be health checked. { # The configuration for an individual load balancer to health check. "ipAddress": "A String", # The frontend IP address of the load balancer to health check. "ipProtocol": "A String", # The protocol of the load balancer to health check. "kind": "dns#rRSetRoutingPolicyLoadBalancerTarget", "loadBalancerType": "A String", # The type of load balancer specified by this target. This value must match the configuration of the load balancer located at the LoadBalancerTarget's IP address, port, and region. Use the following: - *regionalL4ilb*: for a regional internal passthrough Network Load Balancer. - *regionalL7ilb*: for a regional internal Application Load Balancer. - *globalL7ilb*: for a global internal Application Load Balancer. "networkUrl": "A String", # The fully qualified URL of the network that the load balancer is attached to. This should be formatted like `https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}`. "port": "A String", # The configured port of the load balancer. "project": "A String", # The project ID in which the load balancer is located. "region": "A String", # The region in which the load balancer is located. }, ], }, "kind": "dns#rRSetRoutingPolicyWrrPolicyWrrPolicyItem", "rrdatas": [ "A String", ], "signatureRrdatas": [ # DNSSEC generated signatures for all the `rrdata` within this item. Note that if health checked targets are provided for DNSSEC enabled zones, there's a restriction of 1 IP address per item. "A String", ], "weight": 3.14, # The weight corresponding to this `WrrPolicyItem` object. When multiple `WrrPolicyItem` objects are configured, the probability of returning an `WrrPolicyItem` object's data is proportional to its weight relative to the sum of weights configured for all items. This weight must be non-negative. }, ], "kind": "dns#rRSetRoutingPolicyWrrPolicy", }, "wrrPolicy": { # Configures a RRSetRoutingPolicy that routes in a weighted round robin fashion. "items": [ { # A routing block which contains the routing information for one WRR item. "healthCheckedTargets": { # HealthCheckTargets describes endpoints to health-check when responding to Routing Policy queries. Only the healthy endpoints will be included in the response. # Endpoints that are health checked before making the routing decision. The unhealthy endpoints are omitted from the result. If all endpoints within a bucket are unhealthy, we choose a different bucket (sampled with respect to its weight) for responding. If DNSSEC is enabled for this zone, only one of `rrdata` or `health_checked_targets` can be set. "externalEndpoints": [ # The Internet IP addresses to be health checked. The format matches the format of ResourceRecordSet.rrdata as defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1) "A String", ], "internalLoadBalancers": [ # Configuration for internal load balancers to be health checked. { # The configuration for an individual load balancer to health check. "ipAddress": "A String", # The frontend IP address of the load balancer to health check. "ipProtocol": "A String", # The protocol of the load balancer to health check. "kind": "dns#rRSetRoutingPolicyLoadBalancerTarget", "loadBalancerType": "A String", # The type of load balancer specified by this target. This value must match the configuration of the load balancer located at the LoadBalancerTarget's IP address, port, and region. Use the following: - *regionalL4ilb*: for a regional internal passthrough Network Load Balancer. - *regionalL7ilb*: for a regional internal Application Load Balancer. - *globalL7ilb*: for a global internal Application Load Balancer. "networkUrl": "A String", # The fully qualified URL of the network that the load balancer is attached to. This should be formatted like `https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}`. "port": "A String", # The configured port of the load balancer. "project": "A String", # The project ID in which the load balancer is located. "region": "A String", # The region in which the load balancer is located. }, ], }, "kind": "dns#rRSetRoutingPolicyWrrPolicyWrrPolicyItem", "rrdatas": [ "A String", ], "signatureRrdatas": [ # DNSSEC generated signatures for all the `rrdata` within this item. Note that if health checked targets are provided for DNSSEC enabled zones, there's a restriction of 1 IP address per item. "A String", ], "weight": 3.14, # The weight corresponding to this `WrrPolicyItem` object. When multiple `WrrPolicyItem` objects are configured, the probability of returning an `WrrPolicyItem` object's data is proportional to its weight relative to the sum of weights configured for all items. This weight must be non-negative. }, ], "kind": "dns#rRSetRoutingPolicyWrrPolicy", }, }, "rrdatas": [ # As defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1) -- see examples. "A String", ], "signatureRrdatas": [ # As defined in RFC 4034 (section 3.2). "A String", ], "ttl": 42, # Number of seconds that this `ResourceRecordSet` can be cached by resolvers. "type": "A String", # The identifier of a supported record type. See the list of Supported DNS record types. }
delete(project, managedZone, name, type, clientOperationId=None, x__xgafv=None)
Deletes a previously created ResourceRecordSet. 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, Fully qualified domain name. (required) type: string, RRSet type. (required) clientOperationId: string, For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection. x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format
get(project, managedZone, name, type, clientOperationId=None, x__xgafv=None)
Fetches the representation of an existing ResourceRecordSet. 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, Fully qualified domain name. (required) type: string, RRSet type. (required) clientOperationId: string, For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection. x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { # A unit of data that is returned by the DNS servers. "kind": "dns#resourceRecordSet", "name": "A String", # For example, www.example.com. "routingPolicy": { # A RRSetRoutingPolicy represents ResourceRecordSet data that is returned dynamically with the response varying based on configured properties such as geolocation or by weighted random selection. # Configures dynamic query responses based on either the geo location of the querying user or a weighted round robin based routing policy. A valid `ResourceRecordSet` contains only `rrdata` (for static resolution) or a `routing_policy` (for dynamic resolution). "geo": { # Configures a `RRSetRoutingPolicy` that routes based on the geo location of the querying user. "enableFencing": True or False, # Without fencing, if health check fails for all configured items in the current geo bucket, we failover to the next nearest geo bucket. With fencing, if health checking is enabled, as long as some targets in the current geo bucket are healthy, we return only the healthy targets. However, if all targets are unhealthy, we don't failover to the next nearest bucket; instead, we return all the items in the current bucket even when all targets are unhealthy. "items": [ # The primary geo routing configuration. If there are multiple items with the same location, an error is returned instead. { # ResourceRecordSet data for one geo location. "healthCheckedTargets": { # HealthCheckTargets describes endpoints to health-check when responding to Routing Policy queries. Only the healthy endpoints will be included in the response. # For A and AAAA types only. Endpoints to return in the query result only if they are healthy. These can be specified along with `rrdata` within this item. "externalEndpoints": [ # The Internet IP addresses to be health checked. The format matches the format of ResourceRecordSet.rrdata as defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1) "A String", ], "internalLoadBalancers": [ # Configuration for internal load balancers to be health checked. { # The configuration for an individual load balancer to health check. "ipAddress": "A String", # The frontend IP address of the load balancer to health check. "ipProtocol": "A String", # The protocol of the load balancer to health check. "kind": "dns#rRSetRoutingPolicyLoadBalancerTarget", "loadBalancerType": "A String", # The type of load balancer specified by this target. This value must match the configuration of the load balancer located at the LoadBalancerTarget's IP address, port, and region. Use the following: - *regionalL4ilb*: for a regional internal passthrough Network Load Balancer. - *regionalL7ilb*: for a regional internal Application Load Balancer. - *globalL7ilb*: for a global internal Application Load Balancer. "networkUrl": "A String", # The fully qualified URL of the network that the load balancer is attached to. This should be formatted like `https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}`. "port": "A String", # The configured port of the load balancer. "project": "A String", # The project ID in which the load balancer is located. "region": "A String", # The region in which the load balancer is located. }, ], }, "kind": "dns#rRSetRoutingPolicyGeoPolicyGeoPolicyItem", "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. "rrdatas": [ "A String", ], "signatureRrdatas": [ # DNSSEC generated signatures for all the `rrdata` within this item. If health checked targets are provided for DNSSEC enabled zones, there's a restriction of 1 IP address per item. "A String", ], }, ], "kind": "dns#rRSetRoutingPolicyGeoPolicy", }, "geoPolicy": { # Configures a `RRSetRoutingPolicy` that routes based on the geo location of the querying user. "enableFencing": True or False, # Without fencing, if health check fails for all configured items in the current geo bucket, we failover to the next nearest geo bucket. With fencing, if health checking is enabled, as long as some targets in the current geo bucket are healthy, we return only the healthy targets. However, if all targets are unhealthy, we don't failover to the next nearest bucket; instead, we return all the items in the current bucket even when all targets are unhealthy. "items": [ # The primary geo routing configuration. If there are multiple items with the same location, an error is returned instead. { # ResourceRecordSet data for one geo location. "healthCheckedTargets": { # HealthCheckTargets describes endpoints to health-check when responding to Routing Policy queries. Only the healthy endpoints will be included in the response. # For A and AAAA types only. Endpoints to return in the query result only if they are healthy. These can be specified along with `rrdata` within this item. "externalEndpoints": [ # The Internet IP addresses to be health checked. The format matches the format of ResourceRecordSet.rrdata as defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1) "A String", ], "internalLoadBalancers": [ # Configuration for internal load balancers to be health checked. { # The configuration for an individual load balancer to health check. "ipAddress": "A String", # The frontend IP address of the load balancer to health check. "ipProtocol": "A String", # The protocol of the load balancer to health check. "kind": "dns#rRSetRoutingPolicyLoadBalancerTarget", "loadBalancerType": "A String", # The type of load balancer specified by this target. This value must match the configuration of the load balancer located at the LoadBalancerTarget's IP address, port, and region. Use the following: - *regionalL4ilb*: for a regional internal passthrough Network Load Balancer. - *regionalL7ilb*: for a regional internal Application Load Balancer. - *globalL7ilb*: for a global internal Application Load Balancer. "networkUrl": "A String", # The fully qualified URL of the network that the load balancer is attached to. This should be formatted like `https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}`. "port": "A String", # The configured port of the load balancer. "project": "A String", # The project ID in which the load balancer is located. "region": "A String", # The region in which the load balancer is located. }, ], }, "kind": "dns#rRSetRoutingPolicyGeoPolicyGeoPolicyItem", "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. "rrdatas": [ "A String", ], "signatureRrdatas": [ # DNSSEC generated signatures for all the `rrdata` within this item. If health checked targets are provided for DNSSEC enabled zones, there's a restriction of 1 IP address per item. "A String", ], }, ], "kind": "dns#rRSetRoutingPolicyGeoPolicy", }, "healthCheck": "A String", # The selfLink attribute of the HealthCheck resource to use for this RRSetRoutingPolicy. https://cloud.google.com/compute/docs/reference/rest/v1/healthChecks "kind": "dns#rRSetRoutingPolicy", "primaryBackup": { # Configures a RRSetRoutingPolicy such that all queries are responded with the primary_targets if they are healthy. And if all of them are unhealthy, then we fallback to a geo localized policy. "backupGeoTargets": { # Configures a `RRSetRoutingPolicy` that routes based on the geo location of the querying user. # Backup targets provide a regional failover policy for the otherwise global primary targets. If serving state is set to `BACKUP`, this policy essentially becomes a geo routing policy. "enableFencing": True or False, # Without fencing, if health check fails for all configured items in the current geo bucket, we failover to the next nearest geo bucket. With fencing, if health checking is enabled, as long as some targets in the current geo bucket are healthy, we return only the healthy targets. However, if all targets are unhealthy, we don't failover to the next nearest bucket; instead, we return all the items in the current bucket even when all targets are unhealthy. "items": [ # The primary geo routing configuration. If there are multiple items with the same location, an error is returned instead. { # ResourceRecordSet data for one geo location. "healthCheckedTargets": { # HealthCheckTargets describes endpoints to health-check when responding to Routing Policy queries. Only the healthy endpoints will be included in the response. # For A and AAAA types only. Endpoints to return in the query result only if they are healthy. These can be specified along with `rrdata` within this item. "externalEndpoints": [ # The Internet IP addresses to be health checked. The format matches the format of ResourceRecordSet.rrdata as defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1) "A String", ], "internalLoadBalancers": [ # Configuration for internal load balancers to be health checked. { # The configuration for an individual load balancer to health check. "ipAddress": "A String", # The frontend IP address of the load balancer to health check. "ipProtocol": "A String", # The protocol of the load balancer to health check. "kind": "dns#rRSetRoutingPolicyLoadBalancerTarget", "loadBalancerType": "A String", # The type of load balancer specified by this target. This value must match the configuration of the load balancer located at the LoadBalancerTarget's IP address, port, and region. Use the following: - *regionalL4ilb*: for a regional internal passthrough Network Load Balancer. - *regionalL7ilb*: for a regional internal Application Load Balancer. - *globalL7ilb*: for a global internal Application Load Balancer. "networkUrl": "A String", # The fully qualified URL of the network that the load balancer is attached to. This should be formatted like `https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}`. "port": "A String", # The configured port of the load balancer. "project": "A String", # The project ID in which the load balancer is located. "region": "A String", # The region in which the load balancer is located. }, ], }, "kind": "dns#rRSetRoutingPolicyGeoPolicyGeoPolicyItem", "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. "rrdatas": [ "A String", ], "signatureRrdatas": [ # DNSSEC generated signatures for all the `rrdata` within this item. If health checked targets are provided for DNSSEC enabled zones, there's a restriction of 1 IP address per item. "A String", ], }, ], "kind": "dns#rRSetRoutingPolicyGeoPolicy", }, "kind": "dns#rRSetRoutingPolicyPrimaryBackupPolicy", "primaryTargets": { # HealthCheckTargets describes endpoints to health-check when responding to Routing Policy queries. Only the healthy endpoints will be included in the response. # Endpoints that are health checked before making the routing decision. Unhealthy endpoints are omitted from the results. If all endpoints are unhealthy, we serve a response based on the `backup_geo_targets`. "externalEndpoints": [ # The Internet IP addresses to be health checked. The format matches the format of ResourceRecordSet.rrdata as defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1) "A String", ], "internalLoadBalancers": [ # Configuration for internal load balancers to be health checked. { # The configuration for an individual load balancer to health check. "ipAddress": "A String", # The frontend IP address of the load balancer to health check. "ipProtocol": "A String", # The protocol of the load balancer to health check. "kind": "dns#rRSetRoutingPolicyLoadBalancerTarget", "loadBalancerType": "A String", # The type of load balancer specified by this target. This value must match the configuration of the load balancer located at the LoadBalancerTarget's IP address, port, and region. Use the following: - *regionalL4ilb*: for a regional internal passthrough Network Load Balancer. - *regionalL7ilb*: for a regional internal Application Load Balancer. - *globalL7ilb*: for a global internal Application Load Balancer. "networkUrl": "A String", # The fully qualified URL of the network that the load balancer is attached to. This should be formatted like `https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}`. "port": "A String", # The configured port of the load balancer. "project": "A String", # The project ID in which the load balancer is located. "region": "A String", # The region in which the load balancer is located. }, ], }, "trickleTraffic": 3.14, # When serving state is `PRIMARY`, this field provides the option of sending a small percentage of the traffic to the backup targets. }, "wrr": { # Configures a RRSetRoutingPolicy that routes in a weighted round robin fashion. "items": [ { # A routing block which contains the routing information for one WRR item. "healthCheckedTargets": { # HealthCheckTargets describes endpoints to health-check when responding to Routing Policy queries. Only the healthy endpoints will be included in the response. # Endpoints that are health checked before making the routing decision. The unhealthy endpoints are omitted from the result. If all endpoints within a bucket are unhealthy, we choose a different bucket (sampled with respect to its weight) for responding. If DNSSEC is enabled for this zone, only one of `rrdata` or `health_checked_targets` can be set. "externalEndpoints": [ # The Internet IP addresses to be health checked. The format matches the format of ResourceRecordSet.rrdata as defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1) "A String", ], "internalLoadBalancers": [ # Configuration for internal load balancers to be health checked. { # The configuration for an individual load balancer to health check. "ipAddress": "A String", # The frontend IP address of the load balancer to health check. "ipProtocol": "A String", # The protocol of the load balancer to health check. "kind": "dns#rRSetRoutingPolicyLoadBalancerTarget", "loadBalancerType": "A String", # The type of load balancer specified by this target. This value must match the configuration of the load balancer located at the LoadBalancerTarget's IP address, port, and region. Use the following: - *regionalL4ilb*: for a regional internal passthrough Network Load Balancer. - *regionalL7ilb*: for a regional internal Application Load Balancer. - *globalL7ilb*: for a global internal Application Load Balancer. "networkUrl": "A String", # The fully qualified URL of the network that the load balancer is attached to. This should be formatted like `https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}`. "port": "A String", # The configured port of the load balancer. "project": "A String", # The project ID in which the load balancer is located. "region": "A String", # The region in which the load balancer is located. }, ], }, "kind": "dns#rRSetRoutingPolicyWrrPolicyWrrPolicyItem", "rrdatas": [ "A String", ], "signatureRrdatas": [ # DNSSEC generated signatures for all the `rrdata` within this item. Note that if health checked targets are provided for DNSSEC enabled zones, there's a restriction of 1 IP address per item. "A String", ], "weight": 3.14, # The weight corresponding to this `WrrPolicyItem` object. When multiple `WrrPolicyItem` objects are configured, the probability of returning an `WrrPolicyItem` object's data is proportional to its weight relative to the sum of weights configured for all items. This weight must be non-negative. }, ], "kind": "dns#rRSetRoutingPolicyWrrPolicy", }, "wrrPolicy": { # Configures a RRSetRoutingPolicy that routes in a weighted round robin fashion. "items": [ { # A routing block which contains the routing information for one WRR item. "healthCheckedTargets": { # HealthCheckTargets describes endpoints to health-check when responding to Routing Policy queries. Only the healthy endpoints will be included in the response. # Endpoints that are health checked before making the routing decision. The unhealthy endpoints are omitted from the result. If all endpoints within a bucket are unhealthy, we choose a different bucket (sampled with respect to its weight) for responding. If DNSSEC is enabled for this zone, only one of `rrdata` or `health_checked_targets` can be set. "externalEndpoints": [ # The Internet IP addresses to be health checked. The format matches the format of ResourceRecordSet.rrdata as defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1) "A String", ], "internalLoadBalancers": [ # Configuration for internal load balancers to be health checked. { # The configuration for an individual load balancer to health check. "ipAddress": "A String", # The frontend IP address of the load balancer to health check. "ipProtocol": "A String", # The protocol of the load balancer to health check. "kind": "dns#rRSetRoutingPolicyLoadBalancerTarget", "loadBalancerType": "A String", # The type of load balancer specified by this target. This value must match the configuration of the load balancer located at the LoadBalancerTarget's IP address, port, and region. Use the following: - *regionalL4ilb*: for a regional internal passthrough Network Load Balancer. - *regionalL7ilb*: for a regional internal Application Load Balancer. - *globalL7ilb*: for a global internal Application Load Balancer. "networkUrl": "A String", # The fully qualified URL of the network that the load balancer is attached to. This should be formatted like `https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}`. "port": "A String", # The configured port of the load balancer. "project": "A String", # The project ID in which the load balancer is located. "region": "A String", # The region in which the load balancer is located. }, ], }, "kind": "dns#rRSetRoutingPolicyWrrPolicyWrrPolicyItem", "rrdatas": [ "A String", ], "signatureRrdatas": [ # DNSSEC generated signatures for all the `rrdata` within this item. Note that if health checked targets are provided for DNSSEC enabled zones, there's a restriction of 1 IP address per item. "A String", ], "weight": 3.14, # The weight corresponding to this `WrrPolicyItem` object. When multiple `WrrPolicyItem` objects are configured, the probability of returning an `WrrPolicyItem` object's data is proportional to its weight relative to the sum of weights configured for all items. This weight must be non-negative. }, ], "kind": "dns#rRSetRoutingPolicyWrrPolicy", }, }, "rrdatas": [ # As defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1) -- see examples. "A String", ], "signatureRrdatas": [ # As defined in RFC 4034 (section 3.2). "A String", ], "ttl": 42, # Number of seconds that this `ResourceRecordSet` can be cached by resolvers. "type": "A String", # The identifier of a supported record type. See the list of Supported DNS record types. }
list(project, managedZone, maxResults=None, name=None, pageToken=None, type=None, x__xgafv=None)
Enumerates ResourceRecordSets that you have 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) maxResults: integer, Optional. Maximum number of results to be returned. If unspecified, the server decides how many results to return. name: string, Restricts the list to return only records with this fully qualified domain name. pageToken: string, Optional. A tag returned by a previous list request that was truncated. Use this parameter to continue a previous list request. type: string, Restricts the list to return only records of this type. If present, the "name" parameter must also be present. x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { "kind": "dns#resourceRecordSetsListResponse", # Type of resource. "nextPageToken": "A String", # This field indicates that more results are available beyond the last page displayed. To fetch the results, make another list request and use this value as your page token. This lets you retrieve the complete contents of a very large collection 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 are an inconsistent view of the collection. You can't retrieve a consistent snapshot of a collection larger than the maximum page size. "rrsets": [ # The resource record set resources. { # A unit of data that is returned by the DNS servers. "kind": "dns#resourceRecordSet", "name": "A String", # For example, www.example.com. "routingPolicy": { # A RRSetRoutingPolicy represents ResourceRecordSet data that is returned dynamically with the response varying based on configured properties such as geolocation or by weighted random selection. # Configures dynamic query responses based on either the geo location of the querying user or a weighted round robin based routing policy. A valid `ResourceRecordSet` contains only `rrdata` (for static resolution) or a `routing_policy` (for dynamic resolution). "geo": { # Configures a `RRSetRoutingPolicy` that routes based on the geo location of the querying user. "enableFencing": True or False, # Without fencing, if health check fails for all configured items in the current geo bucket, we failover to the next nearest geo bucket. With fencing, if health checking is enabled, as long as some targets in the current geo bucket are healthy, we return only the healthy targets. However, if all targets are unhealthy, we don't failover to the next nearest bucket; instead, we return all the items in the current bucket even when all targets are unhealthy. "items": [ # The primary geo routing configuration. If there are multiple items with the same location, an error is returned instead. { # ResourceRecordSet data for one geo location. "healthCheckedTargets": { # HealthCheckTargets describes endpoints to health-check when responding to Routing Policy queries. Only the healthy endpoints will be included in the response. # For A and AAAA types only. Endpoints to return in the query result only if they are healthy. These can be specified along with `rrdata` within this item. "externalEndpoints": [ # The Internet IP addresses to be health checked. The format matches the format of ResourceRecordSet.rrdata as defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1) "A String", ], "internalLoadBalancers": [ # Configuration for internal load balancers to be health checked. { # The configuration for an individual load balancer to health check. "ipAddress": "A String", # The frontend IP address of the load balancer to health check. "ipProtocol": "A String", # The protocol of the load balancer to health check. "kind": "dns#rRSetRoutingPolicyLoadBalancerTarget", "loadBalancerType": "A String", # The type of load balancer specified by this target. This value must match the configuration of the load balancer located at the LoadBalancerTarget's IP address, port, and region. Use the following: - *regionalL4ilb*: for a regional internal passthrough Network Load Balancer. - *regionalL7ilb*: for a regional internal Application Load Balancer. - *globalL7ilb*: for a global internal Application Load Balancer. "networkUrl": "A String", # The fully qualified URL of the network that the load balancer is attached to. This should be formatted like `https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}`. "port": "A String", # The configured port of the load balancer. "project": "A String", # The project ID in which the load balancer is located. "region": "A String", # The region in which the load balancer is located. }, ], }, "kind": "dns#rRSetRoutingPolicyGeoPolicyGeoPolicyItem", "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. "rrdatas": [ "A String", ], "signatureRrdatas": [ # DNSSEC generated signatures for all the `rrdata` within this item. If health checked targets are provided for DNSSEC enabled zones, there's a restriction of 1 IP address per item. "A String", ], }, ], "kind": "dns#rRSetRoutingPolicyGeoPolicy", }, "geoPolicy": { # Configures a `RRSetRoutingPolicy` that routes based on the geo location of the querying user. "enableFencing": True or False, # Without fencing, if health check fails for all configured items in the current geo bucket, we failover to the next nearest geo bucket. With fencing, if health checking is enabled, as long as some targets in the current geo bucket are healthy, we return only the healthy targets. However, if all targets are unhealthy, we don't failover to the next nearest bucket; instead, we return all the items in the current bucket even when all targets are unhealthy. "items": [ # The primary geo routing configuration. If there are multiple items with the same location, an error is returned instead. { # ResourceRecordSet data for one geo location. "healthCheckedTargets": { # HealthCheckTargets describes endpoints to health-check when responding to Routing Policy queries. Only the healthy endpoints will be included in the response. # For A and AAAA types only. Endpoints to return in the query result only if they are healthy. These can be specified along with `rrdata` within this item. "externalEndpoints": [ # The Internet IP addresses to be health checked. The format matches the format of ResourceRecordSet.rrdata as defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1) "A String", ], "internalLoadBalancers": [ # Configuration for internal load balancers to be health checked. { # The configuration for an individual load balancer to health check. "ipAddress": "A String", # The frontend IP address of the load balancer to health check. "ipProtocol": "A String", # The protocol of the load balancer to health check. "kind": "dns#rRSetRoutingPolicyLoadBalancerTarget", "loadBalancerType": "A String", # The type of load balancer specified by this target. This value must match the configuration of the load balancer located at the LoadBalancerTarget's IP address, port, and region. Use the following: - *regionalL4ilb*: for a regional internal passthrough Network Load Balancer. - *regionalL7ilb*: for a regional internal Application Load Balancer. - *globalL7ilb*: for a global internal Application Load Balancer. "networkUrl": "A String", # The fully qualified URL of the network that the load balancer is attached to. This should be formatted like `https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}`. "port": "A String", # The configured port of the load balancer. "project": "A String", # The project ID in which the load balancer is located. "region": "A String", # The region in which the load balancer is located. }, ], }, "kind": "dns#rRSetRoutingPolicyGeoPolicyGeoPolicyItem", "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. "rrdatas": [ "A String", ], "signatureRrdatas": [ # DNSSEC generated signatures for all the `rrdata` within this item. If health checked targets are provided for DNSSEC enabled zones, there's a restriction of 1 IP address per item. "A String", ], }, ], "kind": "dns#rRSetRoutingPolicyGeoPolicy", }, "healthCheck": "A String", # The selfLink attribute of the HealthCheck resource to use for this RRSetRoutingPolicy. https://cloud.google.com/compute/docs/reference/rest/v1/healthChecks "kind": "dns#rRSetRoutingPolicy", "primaryBackup": { # Configures a RRSetRoutingPolicy such that all queries are responded with the primary_targets if they are healthy. And if all of them are unhealthy, then we fallback to a geo localized policy. "backupGeoTargets": { # Configures a `RRSetRoutingPolicy` that routes based on the geo location of the querying user. # Backup targets provide a regional failover policy for the otherwise global primary targets. If serving state is set to `BACKUP`, this policy essentially becomes a geo routing policy. "enableFencing": True or False, # Without fencing, if health check fails for all configured items in the current geo bucket, we failover to the next nearest geo bucket. With fencing, if health checking is enabled, as long as some targets in the current geo bucket are healthy, we return only the healthy targets. However, if all targets are unhealthy, we don't failover to the next nearest bucket; instead, we return all the items in the current bucket even when all targets are unhealthy. "items": [ # The primary geo routing configuration. If there are multiple items with the same location, an error is returned instead. { # ResourceRecordSet data for one geo location. "healthCheckedTargets": { # HealthCheckTargets describes endpoints to health-check when responding to Routing Policy queries. Only the healthy endpoints will be included in the response. # For A and AAAA types only. Endpoints to return in the query result only if they are healthy. These can be specified along with `rrdata` within this item. "externalEndpoints": [ # The Internet IP addresses to be health checked. The format matches the format of ResourceRecordSet.rrdata as defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1) "A String", ], "internalLoadBalancers": [ # Configuration for internal load balancers to be health checked. { # The configuration for an individual load balancer to health check. "ipAddress": "A String", # The frontend IP address of the load balancer to health check. "ipProtocol": "A String", # The protocol of the load balancer to health check. "kind": "dns#rRSetRoutingPolicyLoadBalancerTarget", "loadBalancerType": "A String", # The type of load balancer specified by this target. This value must match the configuration of the load balancer located at the LoadBalancerTarget's IP address, port, and region. Use the following: - *regionalL4ilb*: for a regional internal passthrough Network Load Balancer. - *regionalL7ilb*: for a regional internal Application Load Balancer. - *globalL7ilb*: for a global internal Application Load Balancer. "networkUrl": "A String", # The fully qualified URL of the network that the load balancer is attached to. This should be formatted like `https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}`. "port": "A String", # The configured port of the load balancer. "project": "A String", # The project ID in which the load balancer is located. "region": "A String", # The region in which the load balancer is located. }, ], }, "kind": "dns#rRSetRoutingPolicyGeoPolicyGeoPolicyItem", "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. "rrdatas": [ "A String", ], "signatureRrdatas": [ # DNSSEC generated signatures for all the `rrdata` within this item. If health checked targets are provided for DNSSEC enabled zones, there's a restriction of 1 IP address per item. "A String", ], }, ], "kind": "dns#rRSetRoutingPolicyGeoPolicy", }, "kind": "dns#rRSetRoutingPolicyPrimaryBackupPolicy", "primaryTargets": { # HealthCheckTargets describes endpoints to health-check when responding to Routing Policy queries. Only the healthy endpoints will be included in the response. # Endpoints that are health checked before making the routing decision. Unhealthy endpoints are omitted from the results. If all endpoints are unhealthy, we serve a response based on the `backup_geo_targets`. "externalEndpoints": [ # The Internet IP addresses to be health checked. The format matches the format of ResourceRecordSet.rrdata as defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1) "A String", ], "internalLoadBalancers": [ # Configuration for internal load balancers to be health checked. { # The configuration for an individual load balancer to health check. "ipAddress": "A String", # The frontend IP address of the load balancer to health check. "ipProtocol": "A String", # The protocol of the load balancer to health check. "kind": "dns#rRSetRoutingPolicyLoadBalancerTarget", "loadBalancerType": "A String", # The type of load balancer specified by this target. This value must match the configuration of the load balancer located at the LoadBalancerTarget's IP address, port, and region. Use the following: - *regionalL4ilb*: for a regional internal passthrough Network Load Balancer. - *regionalL7ilb*: for a regional internal Application Load Balancer. - *globalL7ilb*: for a global internal Application Load Balancer. "networkUrl": "A String", # The fully qualified URL of the network that the load balancer is attached to. This should be formatted like `https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}`. "port": "A String", # The configured port of the load balancer. "project": "A String", # The project ID in which the load balancer is located. "region": "A String", # The region in which the load balancer is located. }, ], }, "trickleTraffic": 3.14, # When serving state is `PRIMARY`, this field provides the option of sending a small percentage of the traffic to the backup targets. }, "wrr": { # Configures a RRSetRoutingPolicy that routes in a weighted round robin fashion. "items": [ { # A routing block which contains the routing information for one WRR item. "healthCheckedTargets": { # HealthCheckTargets describes endpoints to health-check when responding to Routing Policy queries. Only the healthy endpoints will be included in the response. # Endpoints that are health checked before making the routing decision. The unhealthy endpoints are omitted from the result. If all endpoints within a bucket are unhealthy, we choose a different bucket (sampled with respect to its weight) for responding. If DNSSEC is enabled for this zone, only one of `rrdata` or `health_checked_targets` can be set. "externalEndpoints": [ # The Internet IP addresses to be health checked. The format matches the format of ResourceRecordSet.rrdata as defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1) "A String", ], "internalLoadBalancers": [ # Configuration for internal load balancers to be health checked. { # The configuration for an individual load balancer to health check. "ipAddress": "A String", # The frontend IP address of the load balancer to health check. "ipProtocol": "A String", # The protocol of the load balancer to health check. "kind": "dns#rRSetRoutingPolicyLoadBalancerTarget", "loadBalancerType": "A String", # The type of load balancer specified by this target. This value must match the configuration of the load balancer located at the LoadBalancerTarget's IP address, port, and region. Use the following: - *regionalL4ilb*: for a regional internal passthrough Network Load Balancer. - *regionalL7ilb*: for a regional internal Application Load Balancer. - *globalL7ilb*: for a global internal Application Load Balancer. "networkUrl": "A String", # The fully qualified URL of the network that the load balancer is attached to. This should be formatted like `https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}`. "port": "A String", # The configured port of the load balancer. "project": "A String", # The project ID in which the load balancer is located. "region": "A String", # The region in which the load balancer is located. }, ], }, "kind": "dns#rRSetRoutingPolicyWrrPolicyWrrPolicyItem", "rrdatas": [ "A String", ], "signatureRrdatas": [ # DNSSEC generated signatures for all the `rrdata` within this item. Note that if health checked targets are provided for DNSSEC enabled zones, there's a restriction of 1 IP address per item. "A String", ], "weight": 3.14, # The weight corresponding to this `WrrPolicyItem` object. When multiple `WrrPolicyItem` objects are configured, the probability of returning an `WrrPolicyItem` object's data is proportional to its weight relative to the sum of weights configured for all items. This weight must be non-negative. }, ], "kind": "dns#rRSetRoutingPolicyWrrPolicy", }, "wrrPolicy": { # Configures a RRSetRoutingPolicy that routes in a weighted round robin fashion. "items": [ { # A routing block which contains the routing information for one WRR item. "healthCheckedTargets": { # HealthCheckTargets describes endpoints to health-check when responding to Routing Policy queries. Only the healthy endpoints will be included in the response. # Endpoints that are health checked before making the routing decision. The unhealthy endpoints are omitted from the result. If all endpoints within a bucket are unhealthy, we choose a different bucket (sampled with respect to its weight) for responding. If DNSSEC is enabled for this zone, only one of `rrdata` or `health_checked_targets` can be set. "externalEndpoints": [ # The Internet IP addresses to be health checked. The format matches the format of ResourceRecordSet.rrdata as defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1) "A String", ], "internalLoadBalancers": [ # Configuration for internal load balancers to be health checked. { # The configuration for an individual load balancer to health check. "ipAddress": "A String", # The frontend IP address of the load balancer to health check. "ipProtocol": "A String", # The protocol of the load balancer to health check. "kind": "dns#rRSetRoutingPolicyLoadBalancerTarget", "loadBalancerType": "A String", # The type of load balancer specified by this target. This value must match the configuration of the load balancer located at the LoadBalancerTarget's IP address, port, and region. Use the following: - *regionalL4ilb*: for a regional internal passthrough Network Load Balancer. - *regionalL7ilb*: for a regional internal Application Load Balancer. - *globalL7ilb*: for a global internal Application Load Balancer. "networkUrl": "A String", # The fully qualified URL of the network that the load balancer is attached to. This should be formatted like `https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}`. "port": "A String", # The configured port of the load balancer. "project": "A String", # The project ID in which the load balancer is located. "region": "A String", # The region in which the load balancer is located. }, ], }, "kind": "dns#rRSetRoutingPolicyWrrPolicyWrrPolicyItem", "rrdatas": [ "A String", ], "signatureRrdatas": [ # DNSSEC generated signatures for all the `rrdata` within this item. Note that if health checked targets are provided for DNSSEC enabled zones, there's a restriction of 1 IP address per item. "A String", ], "weight": 3.14, # The weight corresponding to this `WrrPolicyItem` object. When multiple `WrrPolicyItem` objects are configured, the probability of returning an `WrrPolicyItem` object's data is proportional to its weight relative to the sum of weights configured for all items. This weight must be non-negative. }, ], "kind": "dns#rRSetRoutingPolicyWrrPolicy", }, }, "rrdatas": [ # As defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1) -- see examples. "A String", ], "signatureRrdatas": [ # As defined in RFC 4034 (section 3.2). "A String", ], "ttl": 42, # Number of seconds that this `ResourceRecordSet` can be cached by resolvers. "type": "A String", # The identifier of a supported record type. See the list of Supported DNS record types. }, ], }
list_next()
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.
patch(project, managedZone, name, type, body=None, clientOperationId=None, x__xgafv=None)
Applies a partial update to an existing ResourceRecordSet. 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, Fully qualified domain name. (required) type: string, RRSet type. (required) body: object, The request body. The object takes the form of: { # A unit of data that is returned by the DNS servers. "kind": "dns#resourceRecordSet", "name": "A String", # For example, www.example.com. "routingPolicy": { # A RRSetRoutingPolicy represents ResourceRecordSet data that is returned dynamically with the response varying based on configured properties such as geolocation or by weighted random selection. # Configures dynamic query responses based on either the geo location of the querying user or a weighted round robin based routing policy. A valid `ResourceRecordSet` contains only `rrdata` (for static resolution) or a `routing_policy` (for dynamic resolution). "geo": { # Configures a `RRSetRoutingPolicy` that routes based on the geo location of the querying user. "enableFencing": True or False, # Without fencing, if health check fails for all configured items in the current geo bucket, we failover to the next nearest geo bucket. With fencing, if health checking is enabled, as long as some targets in the current geo bucket are healthy, we return only the healthy targets. However, if all targets are unhealthy, we don't failover to the next nearest bucket; instead, we return all the items in the current bucket even when all targets are unhealthy. "items": [ # The primary geo routing configuration. If there are multiple items with the same location, an error is returned instead. { # ResourceRecordSet data for one geo location. "healthCheckedTargets": { # HealthCheckTargets describes endpoints to health-check when responding to Routing Policy queries. Only the healthy endpoints will be included in the response. # For A and AAAA types only. Endpoints to return in the query result only if they are healthy. These can be specified along with `rrdata` within this item. "externalEndpoints": [ # The Internet IP addresses to be health checked. The format matches the format of ResourceRecordSet.rrdata as defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1) "A String", ], "internalLoadBalancers": [ # Configuration for internal load balancers to be health checked. { # The configuration for an individual load balancer to health check. "ipAddress": "A String", # The frontend IP address of the load balancer to health check. "ipProtocol": "A String", # The protocol of the load balancer to health check. "kind": "dns#rRSetRoutingPolicyLoadBalancerTarget", "loadBalancerType": "A String", # The type of load balancer specified by this target. This value must match the configuration of the load balancer located at the LoadBalancerTarget's IP address, port, and region. Use the following: - *regionalL4ilb*: for a regional internal passthrough Network Load Balancer. - *regionalL7ilb*: for a regional internal Application Load Balancer. - *globalL7ilb*: for a global internal Application Load Balancer. "networkUrl": "A String", # The fully qualified URL of the network that the load balancer is attached to. This should be formatted like `https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}`. "port": "A String", # The configured port of the load balancer. "project": "A String", # The project ID in which the load balancer is located. "region": "A String", # The region in which the load balancer is located. }, ], }, "kind": "dns#rRSetRoutingPolicyGeoPolicyGeoPolicyItem", "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. "rrdatas": [ "A String", ], "signatureRrdatas": [ # DNSSEC generated signatures for all the `rrdata` within this item. If health checked targets are provided for DNSSEC enabled zones, there's a restriction of 1 IP address per item. "A String", ], }, ], "kind": "dns#rRSetRoutingPolicyGeoPolicy", }, "geoPolicy": { # Configures a `RRSetRoutingPolicy` that routes based on the geo location of the querying user. "enableFencing": True or False, # Without fencing, if health check fails for all configured items in the current geo bucket, we failover to the next nearest geo bucket. With fencing, if health checking is enabled, as long as some targets in the current geo bucket are healthy, we return only the healthy targets. However, if all targets are unhealthy, we don't failover to the next nearest bucket; instead, we return all the items in the current bucket even when all targets are unhealthy. "items": [ # The primary geo routing configuration. If there are multiple items with the same location, an error is returned instead. { # ResourceRecordSet data for one geo location. "healthCheckedTargets": { # HealthCheckTargets describes endpoints to health-check when responding to Routing Policy queries. Only the healthy endpoints will be included in the response. # For A and AAAA types only. Endpoints to return in the query result only if they are healthy. These can be specified along with `rrdata` within this item. "externalEndpoints": [ # The Internet IP addresses to be health checked. The format matches the format of ResourceRecordSet.rrdata as defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1) "A String", ], "internalLoadBalancers": [ # Configuration for internal load balancers to be health checked. { # The configuration for an individual load balancer to health check. "ipAddress": "A String", # The frontend IP address of the load balancer to health check. "ipProtocol": "A String", # The protocol of the load balancer to health check. "kind": "dns#rRSetRoutingPolicyLoadBalancerTarget", "loadBalancerType": "A String", # The type of load balancer specified by this target. This value must match the configuration of the load balancer located at the LoadBalancerTarget's IP address, port, and region. Use the following: - *regionalL4ilb*: for a regional internal passthrough Network Load Balancer. - *regionalL7ilb*: for a regional internal Application Load Balancer. - *globalL7ilb*: for a global internal Application Load Balancer. "networkUrl": "A String", # The fully qualified URL of the network that the load balancer is attached to. This should be formatted like `https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}`. "port": "A String", # The configured port of the load balancer. "project": "A String", # The project ID in which the load balancer is located. "region": "A String", # The region in which the load balancer is located. }, ], }, "kind": "dns#rRSetRoutingPolicyGeoPolicyGeoPolicyItem", "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. "rrdatas": [ "A String", ], "signatureRrdatas": [ # DNSSEC generated signatures for all the `rrdata` within this item. If health checked targets are provided for DNSSEC enabled zones, there's a restriction of 1 IP address per item. "A String", ], }, ], "kind": "dns#rRSetRoutingPolicyGeoPolicy", }, "healthCheck": "A String", # The selfLink attribute of the HealthCheck resource to use for this RRSetRoutingPolicy. https://cloud.google.com/compute/docs/reference/rest/v1/healthChecks "kind": "dns#rRSetRoutingPolicy", "primaryBackup": { # Configures a RRSetRoutingPolicy such that all queries are responded with the primary_targets if they are healthy. And if all of them are unhealthy, then we fallback to a geo localized policy. "backupGeoTargets": { # Configures a `RRSetRoutingPolicy` that routes based on the geo location of the querying user. # Backup targets provide a regional failover policy for the otherwise global primary targets. If serving state is set to `BACKUP`, this policy essentially becomes a geo routing policy. "enableFencing": True or False, # Without fencing, if health check fails for all configured items in the current geo bucket, we failover to the next nearest geo bucket. With fencing, if health checking is enabled, as long as some targets in the current geo bucket are healthy, we return only the healthy targets. However, if all targets are unhealthy, we don't failover to the next nearest bucket; instead, we return all the items in the current bucket even when all targets are unhealthy. "items": [ # The primary geo routing configuration. If there are multiple items with the same location, an error is returned instead. { # ResourceRecordSet data for one geo location. "healthCheckedTargets": { # HealthCheckTargets describes endpoints to health-check when responding to Routing Policy queries. Only the healthy endpoints will be included in the response. # For A and AAAA types only. Endpoints to return in the query result only if they are healthy. These can be specified along with `rrdata` within this item. "externalEndpoints": [ # The Internet IP addresses to be health checked. The format matches the format of ResourceRecordSet.rrdata as defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1) "A String", ], "internalLoadBalancers": [ # Configuration for internal load balancers to be health checked. { # The configuration for an individual load balancer to health check. "ipAddress": "A String", # The frontend IP address of the load balancer to health check. "ipProtocol": "A String", # The protocol of the load balancer to health check. "kind": "dns#rRSetRoutingPolicyLoadBalancerTarget", "loadBalancerType": "A String", # The type of load balancer specified by this target. This value must match the configuration of the load balancer located at the LoadBalancerTarget's IP address, port, and region. Use the following: - *regionalL4ilb*: for a regional internal passthrough Network Load Balancer. - *regionalL7ilb*: for a regional internal Application Load Balancer. - *globalL7ilb*: for a global internal Application Load Balancer. "networkUrl": "A String", # The fully qualified URL of the network that the load balancer is attached to. This should be formatted like `https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}`. "port": "A String", # The configured port of the load balancer. "project": "A String", # The project ID in which the load balancer is located. "region": "A String", # The region in which the load balancer is located. }, ], }, "kind": "dns#rRSetRoutingPolicyGeoPolicyGeoPolicyItem", "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. "rrdatas": [ "A String", ], "signatureRrdatas": [ # DNSSEC generated signatures for all the `rrdata` within this item. If health checked targets are provided for DNSSEC enabled zones, there's a restriction of 1 IP address per item. "A String", ], }, ], "kind": "dns#rRSetRoutingPolicyGeoPolicy", }, "kind": "dns#rRSetRoutingPolicyPrimaryBackupPolicy", "primaryTargets": { # HealthCheckTargets describes endpoints to health-check when responding to Routing Policy queries. Only the healthy endpoints will be included in the response. # Endpoints that are health checked before making the routing decision. Unhealthy endpoints are omitted from the results. If all endpoints are unhealthy, we serve a response based on the `backup_geo_targets`. "externalEndpoints": [ # The Internet IP addresses to be health checked. The format matches the format of ResourceRecordSet.rrdata as defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1) "A String", ], "internalLoadBalancers": [ # Configuration for internal load balancers to be health checked. { # The configuration for an individual load balancer to health check. "ipAddress": "A String", # The frontend IP address of the load balancer to health check. "ipProtocol": "A String", # The protocol of the load balancer to health check. "kind": "dns#rRSetRoutingPolicyLoadBalancerTarget", "loadBalancerType": "A String", # The type of load balancer specified by this target. This value must match the configuration of the load balancer located at the LoadBalancerTarget's IP address, port, and region. Use the following: - *regionalL4ilb*: for a regional internal passthrough Network Load Balancer. - *regionalL7ilb*: for a regional internal Application Load Balancer. - *globalL7ilb*: for a global internal Application Load Balancer. "networkUrl": "A String", # The fully qualified URL of the network that the load balancer is attached to. This should be formatted like `https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}`. "port": "A String", # The configured port of the load balancer. "project": "A String", # The project ID in which the load balancer is located. "region": "A String", # The region in which the load balancer is located. }, ], }, "trickleTraffic": 3.14, # When serving state is `PRIMARY`, this field provides the option of sending a small percentage of the traffic to the backup targets. }, "wrr": { # Configures a RRSetRoutingPolicy that routes in a weighted round robin fashion. "items": [ { # A routing block which contains the routing information for one WRR item. "healthCheckedTargets": { # HealthCheckTargets describes endpoints to health-check when responding to Routing Policy queries. Only the healthy endpoints will be included in the response. # Endpoints that are health checked before making the routing decision. The unhealthy endpoints are omitted from the result. If all endpoints within a bucket are unhealthy, we choose a different bucket (sampled with respect to its weight) for responding. If DNSSEC is enabled for this zone, only one of `rrdata` or `health_checked_targets` can be set. "externalEndpoints": [ # The Internet IP addresses to be health checked. The format matches the format of ResourceRecordSet.rrdata as defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1) "A String", ], "internalLoadBalancers": [ # Configuration for internal load balancers to be health checked. { # The configuration for an individual load balancer to health check. "ipAddress": "A String", # The frontend IP address of the load balancer to health check. "ipProtocol": "A String", # The protocol of the load balancer to health check. "kind": "dns#rRSetRoutingPolicyLoadBalancerTarget", "loadBalancerType": "A String", # The type of load balancer specified by this target. This value must match the configuration of the load balancer located at the LoadBalancerTarget's IP address, port, and region. Use the following: - *regionalL4ilb*: for a regional internal passthrough Network Load Balancer. - *regionalL7ilb*: for a regional internal Application Load Balancer. - *globalL7ilb*: for a global internal Application Load Balancer. "networkUrl": "A String", # The fully qualified URL of the network that the load balancer is attached to. This should be formatted like `https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}`. "port": "A String", # The configured port of the load balancer. "project": "A String", # The project ID in which the load balancer is located. "region": "A String", # The region in which the load balancer is located. }, ], }, "kind": "dns#rRSetRoutingPolicyWrrPolicyWrrPolicyItem", "rrdatas": [ "A String", ], "signatureRrdatas": [ # DNSSEC generated signatures for all the `rrdata` within this item. Note that if health checked targets are provided for DNSSEC enabled zones, there's a restriction of 1 IP address per item. "A String", ], "weight": 3.14, # The weight corresponding to this `WrrPolicyItem` object. When multiple `WrrPolicyItem` objects are configured, the probability of returning an `WrrPolicyItem` object's data is proportional to its weight relative to the sum of weights configured for all items. This weight must be non-negative. }, ], "kind": "dns#rRSetRoutingPolicyWrrPolicy", }, "wrrPolicy": { # Configures a RRSetRoutingPolicy that routes in a weighted round robin fashion. "items": [ { # A routing block which contains the routing information for one WRR item. "healthCheckedTargets": { # HealthCheckTargets describes endpoints to health-check when responding to Routing Policy queries. Only the healthy endpoints will be included in the response. # Endpoints that are health checked before making the routing decision. The unhealthy endpoints are omitted from the result. If all endpoints within a bucket are unhealthy, we choose a different bucket (sampled with respect to its weight) for responding. If DNSSEC is enabled for this zone, only one of `rrdata` or `health_checked_targets` can be set. "externalEndpoints": [ # The Internet IP addresses to be health checked. The format matches the format of ResourceRecordSet.rrdata as defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1) "A String", ], "internalLoadBalancers": [ # Configuration for internal load balancers to be health checked. { # The configuration for an individual load balancer to health check. "ipAddress": "A String", # The frontend IP address of the load balancer to health check. "ipProtocol": "A String", # The protocol of the load balancer to health check. "kind": "dns#rRSetRoutingPolicyLoadBalancerTarget", "loadBalancerType": "A String", # The type of load balancer specified by this target. This value must match the configuration of the load balancer located at the LoadBalancerTarget's IP address, port, and region. Use the following: - *regionalL4ilb*: for a regional internal passthrough Network Load Balancer. - *regionalL7ilb*: for a regional internal Application Load Balancer. - *globalL7ilb*: for a global internal Application Load Balancer. "networkUrl": "A String", # The fully qualified URL of the network that the load balancer is attached to. This should be formatted like `https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}`. "port": "A String", # The configured port of the load balancer. "project": "A String", # The project ID in which the load balancer is located. "region": "A String", # The region in which the load balancer is located. }, ], }, "kind": "dns#rRSetRoutingPolicyWrrPolicyWrrPolicyItem", "rrdatas": [ "A String", ], "signatureRrdatas": [ # DNSSEC generated signatures for all the `rrdata` within this item. Note that if health checked targets are provided for DNSSEC enabled zones, there's a restriction of 1 IP address per item. "A String", ], "weight": 3.14, # The weight corresponding to this `WrrPolicyItem` object. When multiple `WrrPolicyItem` objects are configured, the probability of returning an `WrrPolicyItem` object's data is proportional to its weight relative to the sum of weights configured for all items. This weight must be non-negative. }, ], "kind": "dns#rRSetRoutingPolicyWrrPolicy", }, }, "rrdatas": [ # As defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1) -- see examples. "A String", ], "signatureRrdatas": [ # As defined in RFC 4034 (section 3.2). "A String", ], "ttl": 42, # Number of seconds that this `ResourceRecordSet` can be cached by resolvers. "type": "A String", # The identifier of a supported record type. See the list of Supported DNS record types. } clientOperationId: string, For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection. x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { # A unit of data that is returned by the DNS servers. "kind": "dns#resourceRecordSet", "name": "A String", # For example, www.example.com. "routingPolicy": { # A RRSetRoutingPolicy represents ResourceRecordSet data that is returned dynamically with the response varying based on configured properties such as geolocation or by weighted random selection. # Configures dynamic query responses based on either the geo location of the querying user or a weighted round robin based routing policy. A valid `ResourceRecordSet` contains only `rrdata` (for static resolution) or a `routing_policy` (for dynamic resolution). "geo": { # Configures a `RRSetRoutingPolicy` that routes based on the geo location of the querying user. "enableFencing": True or False, # Without fencing, if health check fails for all configured items in the current geo bucket, we failover to the next nearest geo bucket. With fencing, if health checking is enabled, as long as some targets in the current geo bucket are healthy, we return only the healthy targets. However, if all targets are unhealthy, we don't failover to the next nearest bucket; instead, we return all the items in the current bucket even when all targets are unhealthy. "items": [ # The primary geo routing configuration. If there are multiple items with the same location, an error is returned instead. { # ResourceRecordSet data for one geo location. "healthCheckedTargets": { # HealthCheckTargets describes endpoints to health-check when responding to Routing Policy queries. Only the healthy endpoints will be included in the response. # For A and AAAA types only. Endpoints to return in the query result only if they are healthy. These can be specified along with `rrdata` within this item. "externalEndpoints": [ # The Internet IP addresses to be health checked. The format matches the format of ResourceRecordSet.rrdata as defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1) "A String", ], "internalLoadBalancers": [ # Configuration for internal load balancers to be health checked. { # The configuration for an individual load balancer to health check. "ipAddress": "A String", # The frontend IP address of the load balancer to health check. "ipProtocol": "A String", # The protocol of the load balancer to health check. "kind": "dns#rRSetRoutingPolicyLoadBalancerTarget", "loadBalancerType": "A String", # The type of load balancer specified by this target. This value must match the configuration of the load balancer located at the LoadBalancerTarget's IP address, port, and region. Use the following: - *regionalL4ilb*: for a regional internal passthrough Network Load Balancer. - *regionalL7ilb*: for a regional internal Application Load Balancer. - *globalL7ilb*: for a global internal Application Load Balancer. "networkUrl": "A String", # The fully qualified URL of the network that the load balancer is attached to. This should be formatted like `https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}`. "port": "A String", # The configured port of the load balancer. "project": "A String", # The project ID in which the load balancer is located. "region": "A String", # The region in which the load balancer is located. }, ], }, "kind": "dns#rRSetRoutingPolicyGeoPolicyGeoPolicyItem", "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. "rrdatas": [ "A String", ], "signatureRrdatas": [ # DNSSEC generated signatures for all the `rrdata` within this item. If health checked targets are provided for DNSSEC enabled zones, there's a restriction of 1 IP address per item. "A String", ], }, ], "kind": "dns#rRSetRoutingPolicyGeoPolicy", }, "geoPolicy": { # Configures a `RRSetRoutingPolicy` that routes based on the geo location of the querying user. "enableFencing": True or False, # Without fencing, if health check fails for all configured items in the current geo bucket, we failover to the next nearest geo bucket. With fencing, if health checking is enabled, as long as some targets in the current geo bucket are healthy, we return only the healthy targets. However, if all targets are unhealthy, we don't failover to the next nearest bucket; instead, we return all the items in the current bucket even when all targets are unhealthy. "items": [ # The primary geo routing configuration. If there are multiple items with the same location, an error is returned instead. { # ResourceRecordSet data for one geo location. "healthCheckedTargets": { # HealthCheckTargets describes endpoints to health-check when responding to Routing Policy queries. Only the healthy endpoints will be included in the response. # For A and AAAA types only. Endpoints to return in the query result only if they are healthy. These can be specified along with `rrdata` within this item. "externalEndpoints": [ # The Internet IP addresses to be health checked. The format matches the format of ResourceRecordSet.rrdata as defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1) "A String", ], "internalLoadBalancers": [ # Configuration for internal load balancers to be health checked. { # The configuration for an individual load balancer to health check. "ipAddress": "A String", # The frontend IP address of the load balancer to health check. "ipProtocol": "A String", # The protocol of the load balancer to health check. "kind": "dns#rRSetRoutingPolicyLoadBalancerTarget", "loadBalancerType": "A String", # The type of load balancer specified by this target. This value must match the configuration of the load balancer located at the LoadBalancerTarget's IP address, port, and region. Use the following: - *regionalL4ilb*: for a regional internal passthrough Network Load Balancer. - *regionalL7ilb*: for a regional internal Application Load Balancer. - *globalL7ilb*: for a global internal Application Load Balancer. "networkUrl": "A String", # The fully qualified URL of the network that the load balancer is attached to. This should be formatted like `https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}`. "port": "A String", # The configured port of the load balancer. "project": "A String", # The project ID in which the load balancer is located. "region": "A String", # The region in which the load balancer is located. }, ], }, "kind": "dns#rRSetRoutingPolicyGeoPolicyGeoPolicyItem", "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. "rrdatas": [ "A String", ], "signatureRrdatas": [ # DNSSEC generated signatures for all the `rrdata` within this item. If health checked targets are provided for DNSSEC enabled zones, there's a restriction of 1 IP address per item. "A String", ], }, ], "kind": "dns#rRSetRoutingPolicyGeoPolicy", }, "healthCheck": "A String", # The selfLink attribute of the HealthCheck resource to use for this RRSetRoutingPolicy. https://cloud.google.com/compute/docs/reference/rest/v1/healthChecks "kind": "dns#rRSetRoutingPolicy", "primaryBackup": { # Configures a RRSetRoutingPolicy such that all queries are responded with the primary_targets if they are healthy. And if all of them are unhealthy, then we fallback to a geo localized policy. "backupGeoTargets": { # Configures a `RRSetRoutingPolicy` that routes based on the geo location of the querying user. # Backup targets provide a regional failover policy for the otherwise global primary targets. If serving state is set to `BACKUP`, this policy essentially becomes a geo routing policy. "enableFencing": True or False, # Without fencing, if health check fails for all configured items in the current geo bucket, we failover to the next nearest geo bucket. With fencing, if health checking is enabled, as long as some targets in the current geo bucket are healthy, we return only the healthy targets. However, if all targets are unhealthy, we don't failover to the next nearest bucket; instead, we return all the items in the current bucket even when all targets are unhealthy. "items": [ # The primary geo routing configuration. If there are multiple items with the same location, an error is returned instead. { # ResourceRecordSet data for one geo location. "healthCheckedTargets": { # HealthCheckTargets describes endpoints to health-check when responding to Routing Policy queries. Only the healthy endpoints will be included in the response. # For A and AAAA types only. Endpoints to return in the query result only if they are healthy. These can be specified along with `rrdata` within this item. "externalEndpoints": [ # The Internet IP addresses to be health checked. The format matches the format of ResourceRecordSet.rrdata as defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1) "A String", ], "internalLoadBalancers": [ # Configuration for internal load balancers to be health checked. { # The configuration for an individual load balancer to health check. "ipAddress": "A String", # The frontend IP address of the load balancer to health check. "ipProtocol": "A String", # The protocol of the load balancer to health check. "kind": "dns#rRSetRoutingPolicyLoadBalancerTarget", "loadBalancerType": "A String", # The type of load balancer specified by this target. This value must match the configuration of the load balancer located at the LoadBalancerTarget's IP address, port, and region. Use the following: - *regionalL4ilb*: for a regional internal passthrough Network Load Balancer. - *regionalL7ilb*: for a regional internal Application Load Balancer. - *globalL7ilb*: for a global internal Application Load Balancer. "networkUrl": "A String", # The fully qualified URL of the network that the load balancer is attached to. This should be formatted like `https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}`. "port": "A String", # The configured port of the load balancer. "project": "A String", # The project ID in which the load balancer is located. "region": "A String", # The region in which the load balancer is located. }, ], }, "kind": "dns#rRSetRoutingPolicyGeoPolicyGeoPolicyItem", "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. "rrdatas": [ "A String", ], "signatureRrdatas": [ # DNSSEC generated signatures for all the `rrdata` within this item. If health checked targets are provided for DNSSEC enabled zones, there's a restriction of 1 IP address per item. "A String", ], }, ], "kind": "dns#rRSetRoutingPolicyGeoPolicy", }, "kind": "dns#rRSetRoutingPolicyPrimaryBackupPolicy", "primaryTargets": { # HealthCheckTargets describes endpoints to health-check when responding to Routing Policy queries. Only the healthy endpoints will be included in the response. # Endpoints that are health checked before making the routing decision. Unhealthy endpoints are omitted from the results. If all endpoints are unhealthy, we serve a response based on the `backup_geo_targets`. "externalEndpoints": [ # The Internet IP addresses to be health checked. The format matches the format of ResourceRecordSet.rrdata as defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1) "A String", ], "internalLoadBalancers": [ # Configuration for internal load balancers to be health checked. { # The configuration for an individual load balancer to health check. "ipAddress": "A String", # The frontend IP address of the load balancer to health check. "ipProtocol": "A String", # The protocol of the load balancer to health check. "kind": "dns#rRSetRoutingPolicyLoadBalancerTarget", "loadBalancerType": "A String", # The type of load balancer specified by this target. This value must match the configuration of the load balancer located at the LoadBalancerTarget's IP address, port, and region. Use the following: - *regionalL4ilb*: for a regional internal passthrough Network Load Balancer. - *regionalL7ilb*: for a regional internal Application Load Balancer. - *globalL7ilb*: for a global internal Application Load Balancer. "networkUrl": "A String", # The fully qualified URL of the network that the load balancer is attached to. This should be formatted like `https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}`. "port": "A String", # The configured port of the load balancer. "project": "A String", # The project ID in which the load balancer is located. "region": "A String", # The region in which the load balancer is located. }, ], }, "trickleTraffic": 3.14, # When serving state is `PRIMARY`, this field provides the option of sending a small percentage of the traffic to the backup targets. }, "wrr": { # Configures a RRSetRoutingPolicy that routes in a weighted round robin fashion. "items": [ { # A routing block which contains the routing information for one WRR item. "healthCheckedTargets": { # HealthCheckTargets describes endpoints to health-check when responding to Routing Policy queries. Only the healthy endpoints will be included in the response. # Endpoints that are health checked before making the routing decision. The unhealthy endpoints are omitted from the result. If all endpoints within a bucket are unhealthy, we choose a different bucket (sampled with respect to its weight) for responding. If DNSSEC is enabled for this zone, only one of `rrdata` or `health_checked_targets` can be set. "externalEndpoints": [ # The Internet IP addresses to be health checked. The format matches the format of ResourceRecordSet.rrdata as defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1) "A String", ], "internalLoadBalancers": [ # Configuration for internal load balancers to be health checked. { # The configuration for an individual load balancer to health check. "ipAddress": "A String", # The frontend IP address of the load balancer to health check. "ipProtocol": "A String", # The protocol of the load balancer to health check. "kind": "dns#rRSetRoutingPolicyLoadBalancerTarget", "loadBalancerType": "A String", # The type of load balancer specified by this target. This value must match the configuration of the load balancer located at the LoadBalancerTarget's IP address, port, and region. Use the following: - *regionalL4ilb*: for a regional internal passthrough Network Load Balancer. - *regionalL7ilb*: for a regional internal Application Load Balancer. - *globalL7ilb*: for a global internal Application Load Balancer. "networkUrl": "A String", # The fully qualified URL of the network that the load balancer is attached to. This should be formatted like `https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}`. "port": "A String", # The configured port of the load balancer. "project": "A String", # The project ID in which the load balancer is located. "region": "A String", # The region in which the load balancer is located. }, ], }, "kind": "dns#rRSetRoutingPolicyWrrPolicyWrrPolicyItem", "rrdatas": [ "A String", ], "signatureRrdatas": [ # DNSSEC generated signatures for all the `rrdata` within this item. Note that if health checked targets are provided for DNSSEC enabled zones, there's a restriction of 1 IP address per item. "A String", ], "weight": 3.14, # The weight corresponding to this `WrrPolicyItem` object. When multiple `WrrPolicyItem` objects are configured, the probability of returning an `WrrPolicyItem` object's data is proportional to its weight relative to the sum of weights configured for all items. This weight must be non-negative. }, ], "kind": "dns#rRSetRoutingPolicyWrrPolicy", }, "wrrPolicy": { # Configures a RRSetRoutingPolicy that routes in a weighted round robin fashion. "items": [ { # A routing block which contains the routing information for one WRR item. "healthCheckedTargets": { # HealthCheckTargets describes endpoints to health-check when responding to Routing Policy queries. Only the healthy endpoints will be included in the response. # Endpoints that are health checked before making the routing decision. The unhealthy endpoints are omitted from the result. If all endpoints within a bucket are unhealthy, we choose a different bucket (sampled with respect to its weight) for responding. If DNSSEC is enabled for this zone, only one of `rrdata` or `health_checked_targets` can be set. "externalEndpoints": [ # The Internet IP addresses to be health checked. The format matches the format of ResourceRecordSet.rrdata as defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1) "A String", ], "internalLoadBalancers": [ # Configuration for internal load balancers to be health checked. { # The configuration for an individual load balancer to health check. "ipAddress": "A String", # The frontend IP address of the load balancer to health check. "ipProtocol": "A String", # The protocol of the load balancer to health check. "kind": "dns#rRSetRoutingPolicyLoadBalancerTarget", "loadBalancerType": "A String", # The type of load balancer specified by this target. This value must match the configuration of the load balancer located at the LoadBalancerTarget's IP address, port, and region. Use the following: - *regionalL4ilb*: for a regional internal passthrough Network Load Balancer. - *regionalL7ilb*: for a regional internal Application Load Balancer. - *globalL7ilb*: for a global internal Application Load Balancer. "networkUrl": "A String", # The fully qualified URL of the network that the load balancer is attached to. This should be formatted like `https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}`. "port": "A String", # The configured port of the load balancer. "project": "A String", # The project ID in which the load balancer is located. "region": "A String", # The region in which the load balancer is located. }, ], }, "kind": "dns#rRSetRoutingPolicyWrrPolicyWrrPolicyItem", "rrdatas": [ "A String", ], "signatureRrdatas": [ # DNSSEC generated signatures for all the `rrdata` within this item. Note that if health checked targets are provided for DNSSEC enabled zones, there's a restriction of 1 IP address per item. "A String", ], "weight": 3.14, # The weight corresponding to this `WrrPolicyItem` object. When multiple `WrrPolicyItem` objects are configured, the probability of returning an `WrrPolicyItem` object's data is proportional to its weight relative to the sum of weights configured for all items. This weight must be non-negative. }, ], "kind": "dns#rRSetRoutingPolicyWrrPolicy", }, }, "rrdatas": [ # As defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1) -- see examples. "A String", ], "signatureRrdatas": [ # As defined in RFC 4034 (section 3.2). "A String", ], "ttl": 42, # Number of seconds that this `ResourceRecordSet` can be cached by resolvers. "type": "A String", # The identifier of a supported record type. See the list of Supported DNS record types. }