Debian Codegraph @

docs/dyn/dns_v1.responsePolicyRules.html

raw
1 <html><body>
2 <style>
3
4 body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13 }
14
15 body {
16 font-size: 13px;
17 padding: 1em;
18 }
19
20 h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23 }
24
25 h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28 }
29
30 h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34 }
35
36 pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39 }
40
41 pre {
42 margin-top: 0.5em;
43 }
44
45 h1, h2, h3, p {
46 font-family: Arial, sans serif;
47 }
48
49 h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51 }
52
53 .toc_element {
54 margin-top: 0.5em;
55 }
56
57 .firstline {
58 margin-left: 2 em;
59 }
60
61 .method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66 }
67
68 .details {
69 font-weight: bold;
70 font-size: 14px;
71 }
72
73 </style>
74
75 <h1><a href="dns_v1.html">Cloud DNS API</a> . <a href="dns_v1.responsePolicyRules.html">responsePolicyRules</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="#close">close()</a></code></p>
79 <p class="firstline">Close httplib2 connections.</p>
80 <p class="toc_element">
81 <code><a href="#create">create(project, responsePolicy, body=None, clientOperationId=None, x__xgafv=None)</a></code></p>
82 <p class="firstline">Creates a new Response Policy Rule.</p>
83 <p class="toc_element">
84 <code><a href="#delete">delete(project, responsePolicy, responsePolicyRule, clientOperationId=None, x__xgafv=None)</a></code></p>
85 <p class="firstline">Deletes a previously created Response Policy Rule.</p>
86 <p class="toc_element">
87 <code><a href="#get">get(project, responsePolicy, responsePolicyRule, clientOperationId=None, x__xgafv=None)</a></code></p>
88 <p class="firstline">Fetches the representation of an existing Response Policy Rule.</p>
89 <p class="toc_element">
90 <code><a href="#list">list(project, responsePolicy, maxResults=None, pageToken=None, x__xgafv=None)</a></code></p>
91 <p class="firstline">Enumerates all Response Policy Rules associated with a project.</p>
92 <p class="toc_element">
93 <code><a href="#list_next">list_next()</a></code></p>
94 <p class="firstline">Retrieves the next page of results.</p>
95 <p class="toc_element">
96 <code><a href="#patch">patch(project, responsePolicy, responsePolicyRule, body=None, clientOperationId=None, x__xgafv=None)</a></code></p>
97 <p class="firstline">Applies a partial update to an existing Response Policy Rule.</p>
98 <p class="toc_element">
99 <code><a href="#update">update(project, responsePolicy, responsePolicyRule, body=None, clientOperationId=None, x__xgafv=None)</a></code></p>
100 <p class="firstline">Updates an existing Response Policy Rule.</p>
101 <h3>Method Details</h3>
102 <div class="method">
103 <code class="details" id="close">close()</code>
104 <pre>Close httplib2 connections.</pre>
105 </div>
106
107 <div class="method">
108 <code class="details" id="create">create(project, responsePolicy, body=None, clientOperationId=None, x__xgafv=None)</code>
109 <pre>Creates a new Response Policy Rule.
110
111 Args:
112 project: string, Identifies the project addressed by this request. (required)
113 responsePolicy: string, User assigned name of the Response Policy containing the Response Policy Rule. (required)
114 body: object, The request body.
115 The object takes the form of:
116
117 { # A Response Policy Rule is a selector that applies its behavior to queries that match the selector. Selectors are DNS names, which may be wildcards or exact matches. Each DNS query subject to a Response Policy matches at most one ResponsePolicyRule, as identified by the dns_name field with the longest matching suffix.
118 &quot;behavior&quot;: &quot;A String&quot;, # Answer this query with a behavior rather than DNS data.
119 &quot;dnsName&quot;: &quot;A String&quot;, # The DNS name (wildcard or exact) to apply this rule to. Must be unique within the Response Policy Rule.
120 &quot;kind&quot;: &quot;dns#responsePolicyRule&quot;,
121 &quot;localData&quot;: { # Answer this query directly with DNS data. These ResourceRecordSets override any other DNS behavior for the matched name; in particular they override private zones, the public internet, and GCP internal DNS. No SOA nor NS types are allowed.
122 &quot;localDatas&quot;: [ # All resource record sets for this selector, one per resource record type. The name must match the dns_name.
123 { # A unit of data that is returned by the DNS servers.
124 &quot;kind&quot;: &quot;dns#resourceRecordSet&quot;,
125 &quot;name&quot;: &quot;A String&quot;, # For example, www.example.com.
126 &quot;routingPolicy&quot;: { # 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).
127 &quot;geo&quot;: { # Configures a `RRSetRoutingPolicy` that routes based on the geo location of the querying user.
128 &quot;enableFencing&quot;: 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&#x27;t failover to the next nearest bucket; instead, we return all the items in the current bucket even when all targets are unhealthy.
129 &quot;items&quot;: [ # The primary geo routing configuration. If there are multiple items with the same location, an error is returned instead.
130 { # ResourceRecordSet data for one geo location.
131 &quot;healthCheckedTargets&quot;: { # HealthCheckTargets describes endpoints to health-check when responding to Routing Policy queries. Only the healthy endpoints will be included in the response. Set either `internal_load_balancer` or `external_endpoints`. Do not set both. # 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.
132 &quot;externalEndpoints&quot;: [ # 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)
133 &quot;A String&quot;,
134 ],
135 &quot;internalLoadBalancers&quot;: [ # Configuration for internal load balancers to be health checked.
136 { # The configuration for an individual load balancer to health check.
137 &quot;ipAddress&quot;: &quot;A String&quot;, # The frontend IP address of the load balancer to health check.
138 &quot;ipProtocol&quot;: &quot;A String&quot;, # The protocol of the load balancer to health check.
139 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyLoadBalancerTarget&quot;,
140 &quot;loadBalancerType&quot;: &quot;A String&quot;, # The type of load balancer specified by this target. This value must match the configuration of the load balancer located at the LoadBalancerTarget&#x27;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.
141 &quot;networkUrl&quot;: &quot;A String&quot;, # 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}`.
142 &quot;port&quot;: &quot;A String&quot;, # The configured port of the load balancer.
143 &quot;project&quot;: &quot;A String&quot;, # The project ID in which the load balancer is located.
144 &quot;region&quot;: &quot;A String&quot;, # The region in which the load balancer is located.
145 },
146 ],
147 },
148 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicyGeoPolicyItem&quot;,
149 &quot;location&quot;: &quot;A String&quot;, # The geo-location granularity is a GCP region. This location string should correspond to a GCP region. e.g. &quot;us-east1&quot;, &quot;southamerica-east1&quot;, &quot;asia-east1&quot;, etc.
150 &quot;rrdatas&quot;: [
151 &quot;A String&quot;,
152 ],
153 &quot;signatureRrdatas&quot;: [ # DNSSEC generated signatures for all the `rrdata` within this item. When using health-checked targets for DNSSEC-enabled zones, you can only use at most one health-checked IP address per item.
154 &quot;A String&quot;,
155 ],
156 },
157 ],
158 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicy&quot;,
159 },
160 &quot;healthCheck&quot;: &quot;A String&quot;, # The fully qualified URL of the HealthCheck to use for this RRSetRoutingPolicy. Format this URL like `https://www.googleapis.com/compute/v1/projects/{project}/global/healthChecks/{healthCheck}`. https://cloud.google.com/compute/docs/reference/rest/v1/healthChecks
161 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicy&quot;,
162 &quot;primaryBackup&quot;: { # 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.
163 &quot;backupGeoTargets&quot;: { # 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.
164 &quot;enableFencing&quot;: 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&#x27;t failover to the next nearest bucket; instead, we return all the items in the current bucket even when all targets are unhealthy.
165 &quot;items&quot;: [ # The primary geo routing configuration. If there are multiple items with the same location, an error is returned instead.
166 { # ResourceRecordSet data for one geo location.
167 &quot;healthCheckedTargets&quot;: { # HealthCheckTargets describes endpoints to health-check when responding to Routing Policy queries. Only the healthy endpoints will be included in the response. Set either `internal_load_balancer` or `external_endpoints`. Do not set both. # 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.
168 &quot;externalEndpoints&quot;: [ # 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)
169 &quot;A String&quot;,
170 ],
171 &quot;internalLoadBalancers&quot;: [ # Configuration for internal load balancers to be health checked.
172 { # The configuration for an individual load balancer to health check.
173 &quot;ipAddress&quot;: &quot;A String&quot;, # The frontend IP address of the load balancer to health check.
174 &quot;ipProtocol&quot;: &quot;A String&quot;, # The protocol of the load balancer to health check.
175 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyLoadBalancerTarget&quot;,
176 &quot;loadBalancerType&quot;: &quot;A String&quot;, # The type of load balancer specified by this target. This value must match the configuration of the load balancer located at the LoadBalancerTarget&#x27;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.
177 &quot;networkUrl&quot;: &quot;A String&quot;, # 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}`.
178 &quot;port&quot;: &quot;A String&quot;, # The configured port of the load balancer.
179 &quot;project&quot;: &quot;A String&quot;, # The project ID in which the load balancer is located.
180 &quot;region&quot;: &quot;A String&quot;, # The region in which the load balancer is located.
181 },
182 ],
183 },
184 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicyGeoPolicyItem&quot;,
185 &quot;location&quot;: &quot;A String&quot;, # The geo-location granularity is a GCP region. This location string should correspond to a GCP region. e.g. &quot;us-east1&quot;, &quot;southamerica-east1&quot;, &quot;asia-east1&quot;, etc.
186 &quot;rrdatas&quot;: [
187 &quot;A String&quot;,
188 ],
189 &quot;signatureRrdatas&quot;: [ # DNSSEC generated signatures for all the `rrdata` within this item. When using health-checked targets for DNSSEC-enabled zones, you can only use at most one health-checked IP address per item.
190 &quot;A String&quot;,
191 ],
192 },
193 ],
194 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicy&quot;,
195 },
196 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyPrimaryBackupPolicy&quot;,
197 &quot;primaryTargets&quot;: { # HealthCheckTargets describes endpoints to health-check when responding to Routing Policy queries. Only the healthy endpoints will be included in the response. Set either `internal_load_balancer` or `external_endpoints`. Do not set both. # 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`.
198 &quot;externalEndpoints&quot;: [ # 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)
199 &quot;A String&quot;,
200 ],
201 &quot;internalLoadBalancers&quot;: [ # Configuration for internal load balancers to be health checked.
202 { # The configuration for an individual load balancer to health check.
203 &quot;ipAddress&quot;: &quot;A String&quot;, # The frontend IP address of the load balancer to health check.
204 &quot;ipProtocol&quot;: &quot;A String&quot;, # The protocol of the load balancer to health check.
205 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyLoadBalancerTarget&quot;,
206 &quot;loadBalancerType&quot;: &quot;A String&quot;, # The type of load balancer specified by this target. This value must match the configuration of the load balancer located at the LoadBalancerTarget&#x27;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.
207 &quot;networkUrl&quot;: &quot;A String&quot;, # 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}`.
208 &quot;port&quot;: &quot;A String&quot;, # The configured port of the load balancer.
209 &quot;project&quot;: &quot;A String&quot;, # The project ID in which the load balancer is located.
210 &quot;region&quot;: &quot;A String&quot;, # The region in which the load balancer is located.
211 },
212 ],
213 },
214 &quot;trickleTraffic&quot;: 3.14, # When serving state is `PRIMARY`, this field provides the option of sending a small percentage of the traffic to the backup targets.
215 },
216 &quot;wrr&quot;: { # Configures a RRSetRoutingPolicy that routes in a weighted round robin fashion.
217 &quot;items&quot;: [
218 { # A routing block which contains the routing information for one WRR item.
219 &quot;healthCheckedTargets&quot;: { # HealthCheckTargets describes endpoints to health-check when responding to Routing Policy queries. Only the healthy endpoints will be included in the response. Set either `internal_load_balancer` or `external_endpoints`. Do not set both. # 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.
220 &quot;externalEndpoints&quot;: [ # 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)
221 &quot;A String&quot;,
222 ],
223 &quot;internalLoadBalancers&quot;: [ # Configuration for internal load balancers to be health checked.
224 { # The configuration for an individual load balancer to health check.
225 &quot;ipAddress&quot;: &quot;A String&quot;, # The frontend IP address of the load balancer to health check.
226 &quot;ipProtocol&quot;: &quot;A String&quot;, # The protocol of the load balancer to health check.
227 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyLoadBalancerTarget&quot;,
228 &quot;loadBalancerType&quot;: &quot;A String&quot;, # The type of load balancer specified by this target. This value must match the configuration of the load balancer located at the LoadBalancerTarget&#x27;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.
229 &quot;networkUrl&quot;: &quot;A String&quot;, # 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}`.
230 &quot;port&quot;: &quot;A String&quot;, # The configured port of the load balancer.
231 &quot;project&quot;: &quot;A String&quot;, # The project ID in which the load balancer is located.
232 &quot;region&quot;: &quot;A String&quot;, # The region in which the load balancer is located.
233 },
234 ],
235 },
236 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyWrrPolicyWrrPolicyItem&quot;,
237 &quot;rrdatas&quot;: [
238 &quot;A String&quot;,
239 ],
240 &quot;signatureRrdatas&quot;: [ # DNSSEC generated signatures for all the `rrdata` within this item. When using health-checked targets for DNSSEC-enabled zones, you can only use at most one health-checked IP address per item.
241 &quot;A String&quot;,
242 ],
243 &quot;weight&quot;: 3.14, # The weight corresponding to this `WrrPolicyItem` object. When multiple `WrrPolicyItem` objects are configured, the probability of returning an `WrrPolicyItem` object&#x27;s data is proportional to its weight relative to the sum of weights configured for all items. This weight must be non-negative.
244 },
245 ],
246 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyWrrPolicy&quot;,
247 },
248 },
249 &quot;rrdatas&quot;: [ # As defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1) -- see examples.
250 &quot;A String&quot;,
251 ],
252 &quot;signatureRrdatas&quot;: [ # As defined in RFC 4034 (section 3.2).
253 &quot;A String&quot;,
254 ],
255 &quot;ttl&quot;: 42, # Number of seconds that this `ResourceRecordSet` can be cached by resolvers.
256 &quot;type&quot;: &quot;A String&quot;, # The identifier of a supported record type. See the list of Supported DNS record types.
257 },
258 ],
259 },
260 &quot;ruleName&quot;: &quot;A String&quot;, # An identifier for this rule. Must be unique with the ResponsePolicy.
261 }
262
263 clientOperationId: string, For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
264 x__xgafv: string, V1 error format.
265 Allowed values
266 1 - v1 error format
267 2 - v2 error format
268
269 Returns:
270 An object of the form:
271
272 { # A Response Policy Rule is a selector that applies its behavior to queries that match the selector. Selectors are DNS names, which may be wildcards or exact matches. Each DNS query subject to a Response Policy matches at most one ResponsePolicyRule, as identified by the dns_name field with the longest matching suffix.
273 &quot;behavior&quot;: &quot;A String&quot;, # Answer this query with a behavior rather than DNS data.
274 &quot;dnsName&quot;: &quot;A String&quot;, # The DNS name (wildcard or exact) to apply this rule to. Must be unique within the Response Policy Rule.
275 &quot;kind&quot;: &quot;dns#responsePolicyRule&quot;,
276 &quot;localData&quot;: { # Answer this query directly with DNS data. These ResourceRecordSets override any other DNS behavior for the matched name; in particular they override private zones, the public internet, and GCP internal DNS. No SOA nor NS types are allowed.
277 &quot;localDatas&quot;: [ # All resource record sets for this selector, one per resource record type. The name must match the dns_name.
278 { # A unit of data that is returned by the DNS servers.
279 &quot;kind&quot;: &quot;dns#resourceRecordSet&quot;,
280 &quot;name&quot;: &quot;A String&quot;, # For example, www.example.com.
281 &quot;routingPolicy&quot;: { # 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).
282 &quot;geo&quot;: { # Configures a `RRSetRoutingPolicy` that routes based on the geo location of the querying user.
283 &quot;enableFencing&quot;: 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&#x27;t failover to the next nearest bucket; instead, we return all the items in the current bucket even when all targets are unhealthy.
284 &quot;items&quot;: [ # The primary geo routing configuration. If there are multiple items with the same location, an error is returned instead.
285 { # ResourceRecordSet data for one geo location.
286 &quot;healthCheckedTargets&quot;: { # HealthCheckTargets describes endpoints to health-check when responding to Routing Policy queries. Only the healthy endpoints will be included in the response. Set either `internal_load_balancer` or `external_endpoints`. Do not set both. # 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.
287 &quot;externalEndpoints&quot;: [ # 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)
288 &quot;A String&quot;,
289 ],
290 &quot;internalLoadBalancers&quot;: [ # Configuration for internal load balancers to be health checked.
291 { # The configuration for an individual load balancer to health check.
292 &quot;ipAddress&quot;: &quot;A String&quot;, # The frontend IP address of the load balancer to health check.
293 &quot;ipProtocol&quot;: &quot;A String&quot;, # The protocol of the load balancer to health check.
294 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyLoadBalancerTarget&quot;,
295 &quot;loadBalancerType&quot;: &quot;A String&quot;, # The type of load balancer specified by this target. This value must match the configuration of the load balancer located at the LoadBalancerTarget&#x27;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.
296 &quot;networkUrl&quot;: &quot;A String&quot;, # 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}`.
297 &quot;port&quot;: &quot;A String&quot;, # The configured port of the load balancer.
298 &quot;project&quot;: &quot;A String&quot;, # The project ID in which the load balancer is located.
299 &quot;region&quot;: &quot;A String&quot;, # The region in which the load balancer is located.
300 },
301 ],
302 },
303 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicyGeoPolicyItem&quot;,
304 &quot;location&quot;: &quot;A String&quot;, # The geo-location granularity is a GCP region. This location string should correspond to a GCP region. e.g. &quot;us-east1&quot;, &quot;southamerica-east1&quot;, &quot;asia-east1&quot;, etc.
305 &quot;rrdatas&quot;: [
306 &quot;A String&quot;,
307 ],
308 &quot;signatureRrdatas&quot;: [ # DNSSEC generated signatures for all the `rrdata` within this item. When using health-checked targets for DNSSEC-enabled zones, you can only use at most one health-checked IP address per item.
309 &quot;A String&quot;,
310 ],
311 },
312 ],
313 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicy&quot;,
314 },
315 &quot;healthCheck&quot;: &quot;A String&quot;, # The fully qualified URL of the HealthCheck to use for this RRSetRoutingPolicy. Format this URL like `https://www.googleapis.com/compute/v1/projects/{project}/global/healthChecks/{healthCheck}`. https://cloud.google.com/compute/docs/reference/rest/v1/healthChecks
316 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicy&quot;,
317 &quot;primaryBackup&quot;: { # 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.
318 &quot;backupGeoTargets&quot;: { # 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.
319 &quot;enableFencing&quot;: 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&#x27;t failover to the next nearest bucket; instead, we return all the items in the current bucket even when all targets are unhealthy.
320 &quot;items&quot;: [ # The primary geo routing configuration. If there are multiple items with the same location, an error is returned instead.
321 { # ResourceRecordSet data for one geo location.
322 &quot;healthCheckedTargets&quot;: { # HealthCheckTargets describes endpoints to health-check when responding to Routing Policy queries. Only the healthy endpoints will be included in the response. Set either `internal_load_balancer` or `external_endpoints`. Do not set both. # 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.
323 &quot;externalEndpoints&quot;: [ # 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)
324 &quot;A String&quot;,
325 ],
326 &quot;internalLoadBalancers&quot;: [ # Configuration for internal load balancers to be health checked.
327 { # The configuration for an individual load balancer to health check.
328 &quot;ipAddress&quot;: &quot;A String&quot;, # The frontend IP address of the load balancer to health check.
329 &quot;ipProtocol&quot;: &quot;A String&quot;, # The protocol of the load balancer to health check.
330 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyLoadBalancerTarget&quot;,
331 &quot;loadBalancerType&quot;: &quot;A String&quot;, # The type of load balancer specified by this target. This value must match the configuration of the load balancer located at the LoadBalancerTarget&#x27;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.
332 &quot;networkUrl&quot;: &quot;A String&quot;, # 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}`.
333 &quot;port&quot;: &quot;A String&quot;, # The configured port of the load balancer.
334 &quot;project&quot;: &quot;A String&quot;, # The project ID in which the load balancer is located.
335 &quot;region&quot;: &quot;A String&quot;, # The region in which the load balancer is located.
336 },
337 ],
338 },
339 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicyGeoPolicyItem&quot;,
340 &quot;location&quot;: &quot;A String&quot;, # The geo-location granularity is a GCP region. This location string should correspond to a GCP region. e.g. &quot;us-east1&quot;, &quot;southamerica-east1&quot;, &quot;asia-east1&quot;, etc.
341 &quot;rrdatas&quot;: [
342 &quot;A String&quot;,
343 ],
344 &quot;signatureRrdatas&quot;: [ # DNSSEC generated signatures for all the `rrdata` within this item. When using health-checked targets for DNSSEC-enabled zones, you can only use at most one health-checked IP address per item.
345 &quot;A String&quot;,
346 ],
347 },
348 ],
349 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicy&quot;,
350 },
351 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyPrimaryBackupPolicy&quot;,
352 &quot;primaryTargets&quot;: { # HealthCheckTargets describes endpoints to health-check when responding to Routing Policy queries. Only the healthy endpoints will be included in the response. Set either `internal_load_balancer` or `external_endpoints`. Do not set both. # 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`.
353 &quot;externalEndpoints&quot;: [ # 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)
354 &quot;A String&quot;,
355 ],
356 &quot;internalLoadBalancers&quot;: [ # Configuration for internal load balancers to be health checked.
357 { # The configuration for an individual load balancer to health check.
358 &quot;ipAddress&quot;: &quot;A String&quot;, # The frontend IP address of the load balancer to health check.
359 &quot;ipProtocol&quot;: &quot;A String&quot;, # The protocol of the load balancer to health check.
360 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyLoadBalancerTarget&quot;,
361 &quot;loadBalancerType&quot;: &quot;A String&quot;, # The type of load balancer specified by this target. This value must match the configuration of the load balancer located at the LoadBalancerTarget&#x27;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.
362 &quot;networkUrl&quot;: &quot;A String&quot;, # 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}`.
363 &quot;port&quot;: &quot;A String&quot;, # The configured port of the load balancer.
364 &quot;project&quot;: &quot;A String&quot;, # The project ID in which the load balancer is located.
365 &quot;region&quot;: &quot;A String&quot;, # The region in which the load balancer is located.
366 },
367 ],
368 },
369 &quot;trickleTraffic&quot;: 3.14, # When serving state is `PRIMARY`, this field provides the option of sending a small percentage of the traffic to the backup targets.
370 },
371 &quot;wrr&quot;: { # Configures a RRSetRoutingPolicy that routes in a weighted round robin fashion.
372 &quot;items&quot;: [
373 { # A routing block which contains the routing information for one WRR item.
374 &quot;healthCheckedTargets&quot;: { # HealthCheckTargets describes endpoints to health-check when responding to Routing Policy queries. Only the healthy endpoints will be included in the response. Set either `internal_load_balancer` or `external_endpoints`. Do not set both. # 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.
375 &quot;externalEndpoints&quot;: [ # 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)
376 &quot;A String&quot;,
377 ],
378 &quot;internalLoadBalancers&quot;: [ # Configuration for internal load balancers to be health checked.
379 { # The configuration for an individual load balancer to health check.
380 &quot;ipAddress&quot;: &quot;A String&quot;, # The frontend IP address of the load balancer to health check.
381 &quot;ipProtocol&quot;: &quot;A String&quot;, # The protocol of the load balancer to health check.
382 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyLoadBalancerTarget&quot;,
383 &quot;loadBalancerType&quot;: &quot;A String&quot;, # The type of load balancer specified by this target. This value must match the configuration of the load balancer located at the LoadBalancerTarget&#x27;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.
384 &quot;networkUrl&quot;: &quot;A String&quot;, # 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}`.
385 &quot;port&quot;: &quot;A String&quot;, # The configured port of the load balancer.
386 &quot;project&quot;: &quot;A String&quot;, # The project ID in which the load balancer is located.
387 &quot;region&quot;: &quot;A String&quot;, # The region in which the load balancer is located.
388 },
389 ],
390 },
391 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyWrrPolicyWrrPolicyItem&quot;,
392 &quot;rrdatas&quot;: [
393 &quot;A String&quot;,
394 ],
395 &quot;signatureRrdatas&quot;: [ # DNSSEC generated signatures for all the `rrdata` within this item. When using health-checked targets for DNSSEC-enabled zones, you can only use at most one health-checked IP address per item.
396 &quot;A String&quot;,
397 ],
398 &quot;weight&quot;: 3.14, # The weight corresponding to this `WrrPolicyItem` object. When multiple `WrrPolicyItem` objects are configured, the probability of returning an `WrrPolicyItem` object&#x27;s data is proportional to its weight relative to the sum of weights configured for all items. This weight must be non-negative.
399 },
400 ],
401 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyWrrPolicy&quot;,
402 },
403 },
404 &quot;rrdatas&quot;: [ # As defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1) -- see examples.
405 &quot;A String&quot;,
406 ],
407 &quot;signatureRrdatas&quot;: [ # As defined in RFC 4034 (section 3.2).
408 &quot;A String&quot;,
409 ],
410 &quot;ttl&quot;: 42, # Number of seconds that this `ResourceRecordSet` can be cached by resolvers.
411 &quot;type&quot;: &quot;A String&quot;, # The identifier of a supported record type. See the list of Supported DNS record types.
412 },
413 ],
414 },
415 &quot;ruleName&quot;: &quot;A String&quot;, # An identifier for this rule. Must be unique with the ResponsePolicy.
416 }</pre>
417 </div>
418
419 <div class="method">
420 <code class="details" id="delete">delete(project, responsePolicy, responsePolicyRule, clientOperationId=None, x__xgafv=None)</code>
421 <pre>Deletes a previously created Response Policy Rule.
422
423 Args:
424 project: string, Identifies the project addressed by this request. (required)
425 responsePolicy: string, User assigned name of the Response Policy containing the Response Policy Rule. (required)
426 responsePolicyRule: string, User assigned name of the Response Policy Rule addressed by this request. (required)
427 clientOperationId: string, For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
428 x__xgafv: string, V1 error format.
429 Allowed values
430 1 - v1 error format
431 2 - v2 error format
432 </pre>
433 </div>
434
435 <div class="method">
436 <code class="details" id="get">get(project, responsePolicy, responsePolicyRule, clientOperationId=None, x__xgafv=None)</code>
437 <pre>Fetches the representation of an existing Response Policy Rule.
438
439 Args:
440 project: string, Identifies the project addressed by this request. (required)
441 responsePolicy: string, User assigned name of the Response Policy containing the Response Policy Rule. (required)
442 responsePolicyRule: string, User assigned name of the Response Policy Rule addressed by this request. (required)
443 clientOperationId: string, For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
444 x__xgafv: string, V1 error format.
445 Allowed values
446 1 - v1 error format
447 2 - v2 error format
448
449 Returns:
450 An object of the form:
451
452 { # A Response Policy Rule is a selector that applies its behavior to queries that match the selector. Selectors are DNS names, which may be wildcards or exact matches. Each DNS query subject to a Response Policy matches at most one ResponsePolicyRule, as identified by the dns_name field with the longest matching suffix.
453 &quot;behavior&quot;: &quot;A String&quot;, # Answer this query with a behavior rather than DNS data.
454 &quot;dnsName&quot;: &quot;A String&quot;, # The DNS name (wildcard or exact) to apply this rule to. Must be unique within the Response Policy Rule.
455 &quot;kind&quot;: &quot;dns#responsePolicyRule&quot;,
456 &quot;localData&quot;: { # Answer this query directly with DNS data. These ResourceRecordSets override any other DNS behavior for the matched name; in particular they override private zones, the public internet, and GCP internal DNS. No SOA nor NS types are allowed.
457 &quot;localDatas&quot;: [ # All resource record sets for this selector, one per resource record type. The name must match the dns_name.
458 { # A unit of data that is returned by the DNS servers.
459 &quot;kind&quot;: &quot;dns#resourceRecordSet&quot;,
460 &quot;name&quot;: &quot;A String&quot;, # For example, www.example.com.
461 &quot;routingPolicy&quot;: { # 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).
462 &quot;geo&quot;: { # Configures a `RRSetRoutingPolicy` that routes based on the geo location of the querying user.
463 &quot;enableFencing&quot;: 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&#x27;t failover to the next nearest bucket; instead, we return all the items in the current bucket even when all targets are unhealthy.
464 &quot;items&quot;: [ # The primary geo routing configuration. If there are multiple items with the same location, an error is returned instead.
465 { # ResourceRecordSet data for one geo location.
466 &quot;healthCheckedTargets&quot;: { # HealthCheckTargets describes endpoints to health-check when responding to Routing Policy queries. Only the healthy endpoints will be included in the response. Set either `internal_load_balancer` or `external_endpoints`. Do not set both. # 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.
467 &quot;externalEndpoints&quot;: [ # 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)
468 &quot;A String&quot;,
469 ],
470 &quot;internalLoadBalancers&quot;: [ # Configuration for internal load balancers to be health checked.
471 { # The configuration for an individual load balancer to health check.
472 &quot;ipAddress&quot;: &quot;A String&quot;, # The frontend IP address of the load balancer to health check.
473 &quot;ipProtocol&quot;: &quot;A String&quot;, # The protocol of the load balancer to health check.
474 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyLoadBalancerTarget&quot;,
475 &quot;loadBalancerType&quot;: &quot;A String&quot;, # The type of load balancer specified by this target. This value must match the configuration of the load balancer located at the LoadBalancerTarget&#x27;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.
476 &quot;networkUrl&quot;: &quot;A String&quot;, # 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}`.
477 &quot;port&quot;: &quot;A String&quot;, # The configured port of the load balancer.
478 &quot;project&quot;: &quot;A String&quot;, # The project ID in which the load balancer is located.
479 &quot;region&quot;: &quot;A String&quot;, # The region in which the load balancer is located.
480 },
481 ],
482 },
483 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicyGeoPolicyItem&quot;,
484 &quot;location&quot;: &quot;A String&quot;, # The geo-location granularity is a GCP region. This location string should correspond to a GCP region. e.g. &quot;us-east1&quot;, &quot;southamerica-east1&quot;, &quot;asia-east1&quot;, etc.
485 &quot;rrdatas&quot;: [
486 &quot;A String&quot;,
487 ],
488 &quot;signatureRrdatas&quot;: [ # DNSSEC generated signatures for all the `rrdata` within this item. When using health-checked targets for DNSSEC-enabled zones, you can only use at most one health-checked IP address per item.
489 &quot;A String&quot;,
490 ],
491 },
492 ],
493 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicy&quot;,
494 },
495 &quot;healthCheck&quot;: &quot;A String&quot;, # The fully qualified URL of the HealthCheck to use for this RRSetRoutingPolicy. Format this URL like `https://www.googleapis.com/compute/v1/projects/{project}/global/healthChecks/{healthCheck}`. https://cloud.google.com/compute/docs/reference/rest/v1/healthChecks
496 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicy&quot;,
497 &quot;primaryBackup&quot;: { # 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.
498 &quot;backupGeoTargets&quot;: { # 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.
499 &quot;enableFencing&quot;: 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&#x27;t failover to the next nearest bucket; instead, we return all the items in the current bucket even when all targets are unhealthy.
500 &quot;items&quot;: [ # The primary geo routing configuration. If there are multiple items with the same location, an error is returned instead.
501 { # ResourceRecordSet data for one geo location.
502 &quot;healthCheckedTargets&quot;: { # HealthCheckTargets describes endpoints to health-check when responding to Routing Policy queries. Only the healthy endpoints will be included in the response. Set either `internal_load_balancer` or `external_endpoints`. Do not set both. # 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.
503 &quot;externalEndpoints&quot;: [ # 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)
504 &quot;A String&quot;,
505 ],
506 &quot;internalLoadBalancers&quot;: [ # Configuration for internal load balancers to be health checked.
507 { # The configuration for an individual load balancer to health check.
508 &quot;ipAddress&quot;: &quot;A String&quot;, # The frontend IP address of the load balancer to health check.
509 &quot;ipProtocol&quot;: &quot;A String&quot;, # The protocol of the load balancer to health check.
510 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyLoadBalancerTarget&quot;,
511 &quot;loadBalancerType&quot;: &quot;A String&quot;, # The type of load balancer specified by this target. This value must match the configuration of the load balancer located at the LoadBalancerTarget&#x27;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.
512 &quot;networkUrl&quot;: &quot;A String&quot;, # 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}`.
513 &quot;port&quot;: &quot;A String&quot;, # The configured port of the load balancer.
514 &quot;project&quot;: &quot;A String&quot;, # The project ID in which the load balancer is located.
515 &quot;region&quot;: &quot;A String&quot;, # The region in which the load balancer is located.
516 },
517 ],
518 },
519 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicyGeoPolicyItem&quot;,
520 &quot;location&quot;: &quot;A String&quot;, # The geo-location granularity is a GCP region. This location string should correspond to a GCP region. e.g. &quot;us-east1&quot;, &quot;southamerica-east1&quot;, &quot;asia-east1&quot;, etc.
521 &quot;rrdatas&quot;: [
522 &quot;A String&quot;,
523 ],
524 &quot;signatureRrdatas&quot;: [ # DNSSEC generated signatures for all the `rrdata` within this item. When using health-checked targets for DNSSEC-enabled zones, you can only use at most one health-checked IP address per item.
525 &quot;A String&quot;,
526 ],
527 },
528 ],
529 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicy&quot;,
530 },
531 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyPrimaryBackupPolicy&quot;,
532 &quot;primaryTargets&quot;: { # HealthCheckTargets describes endpoints to health-check when responding to Routing Policy queries. Only the healthy endpoints will be included in the response. Set either `internal_load_balancer` or `external_endpoints`. Do not set both. # 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`.
533 &quot;externalEndpoints&quot;: [ # 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)
534 &quot;A String&quot;,
535 ],
536 &quot;internalLoadBalancers&quot;: [ # Configuration for internal load balancers to be health checked.
537 { # The configuration for an individual load balancer to health check.
538 &quot;ipAddress&quot;: &quot;A String&quot;, # The frontend IP address of the load balancer to health check.
539 &quot;ipProtocol&quot;: &quot;A String&quot;, # The protocol of the load balancer to health check.
540 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyLoadBalancerTarget&quot;,
541 &quot;loadBalancerType&quot;: &quot;A String&quot;, # The type of load balancer specified by this target. This value must match the configuration of the load balancer located at the LoadBalancerTarget&#x27;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.
542 &quot;networkUrl&quot;: &quot;A String&quot;, # 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}`.
543 &quot;port&quot;: &quot;A String&quot;, # The configured port of the load balancer.
544 &quot;project&quot;: &quot;A String&quot;, # The project ID in which the load balancer is located.
545 &quot;region&quot;: &quot;A String&quot;, # The region in which the load balancer is located.
546 },
547 ],
548 },
549 &quot;trickleTraffic&quot;: 3.14, # When serving state is `PRIMARY`, this field provides the option of sending a small percentage of the traffic to the backup targets.
550 },
551 &quot;wrr&quot;: { # Configures a RRSetRoutingPolicy that routes in a weighted round robin fashion.
552 &quot;items&quot;: [
553 { # A routing block which contains the routing information for one WRR item.
554 &quot;healthCheckedTargets&quot;: { # HealthCheckTargets describes endpoints to health-check when responding to Routing Policy queries. Only the healthy endpoints will be included in the response. Set either `internal_load_balancer` or `external_endpoints`. Do not set both. # 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.
555 &quot;externalEndpoints&quot;: [ # 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)
556 &quot;A String&quot;,
557 ],
558 &quot;internalLoadBalancers&quot;: [ # Configuration for internal load balancers to be health checked.
559 { # The configuration for an individual load balancer to health check.
560 &quot;ipAddress&quot;: &quot;A String&quot;, # The frontend IP address of the load balancer to health check.
561 &quot;ipProtocol&quot;: &quot;A String&quot;, # The protocol of the load balancer to health check.
562 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyLoadBalancerTarget&quot;,
563 &quot;loadBalancerType&quot;: &quot;A String&quot;, # The type of load balancer specified by this target. This value must match the configuration of the load balancer located at the LoadBalancerTarget&#x27;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.
564 &quot;networkUrl&quot;: &quot;A String&quot;, # 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}`.
565 &quot;port&quot;: &quot;A String&quot;, # The configured port of the load balancer.
566 &quot;project&quot;: &quot;A String&quot;, # The project ID in which the load balancer is located.
567 &quot;region&quot;: &quot;A String&quot;, # The region in which the load balancer is located.
568 },
569 ],
570 },
571 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyWrrPolicyWrrPolicyItem&quot;,
572 &quot;rrdatas&quot;: [
573 &quot;A String&quot;,
574 ],
575 &quot;signatureRrdatas&quot;: [ # DNSSEC generated signatures for all the `rrdata` within this item. When using health-checked targets for DNSSEC-enabled zones, you can only use at most one health-checked IP address per item.
576 &quot;A String&quot;,
577 ],
578 &quot;weight&quot;: 3.14, # The weight corresponding to this `WrrPolicyItem` object. When multiple `WrrPolicyItem` objects are configured, the probability of returning an `WrrPolicyItem` object&#x27;s data is proportional to its weight relative to the sum of weights configured for all items. This weight must be non-negative.
579 },
580 ],
581 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyWrrPolicy&quot;,
582 },
583 },
584 &quot;rrdatas&quot;: [ # As defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1) -- see examples.
585 &quot;A String&quot;,
586 ],
587 &quot;signatureRrdatas&quot;: [ # As defined in RFC 4034 (section 3.2).
588 &quot;A String&quot;,
589 ],
590 &quot;ttl&quot;: 42, # Number of seconds that this `ResourceRecordSet` can be cached by resolvers.
591 &quot;type&quot;: &quot;A String&quot;, # The identifier of a supported record type. See the list of Supported DNS record types.
592 },
593 ],
594 },
595 &quot;ruleName&quot;: &quot;A String&quot;, # An identifier for this rule. Must be unique with the ResponsePolicy.
596 }</pre>
597 </div>
598
599 <div class="method">
600 <code class="details" id="list">list(project, responsePolicy, maxResults=None, pageToken=None, x__xgafv=None)</code>
601 <pre>Enumerates all Response Policy Rules associated with a project.
602
603 Args:
604 project: string, Identifies the project addressed by this request. (required)
605 responsePolicy: string, User assigned name of the Response Policy to list. (required)
606 maxResults: integer, Optional. Maximum number of results to be returned. If unspecified, the server decides how many results to return.
607 pageToken: string, Optional. A tag returned by a previous list request that was truncated. Use this parameter to continue a previous list request.
608 x__xgafv: string, V1 error format.
609 Allowed values
610 1 - v1 error format
611 2 - v2 error format
612
613 Returns:
614 An object of the form:
615
616 {
617 &quot;nextPageToken&quot;: &quot;A String&quot;, # 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&#x27;t retrieve a consistent snapshot of a collection larger than the maximum page size.
618 &quot;responsePolicyRules&quot;: [ # The Response Policy Rule resources.
619 { # A Response Policy Rule is a selector that applies its behavior to queries that match the selector. Selectors are DNS names, which may be wildcards or exact matches. Each DNS query subject to a Response Policy matches at most one ResponsePolicyRule, as identified by the dns_name field with the longest matching suffix.
620 &quot;behavior&quot;: &quot;A String&quot;, # Answer this query with a behavior rather than DNS data.
621 &quot;dnsName&quot;: &quot;A String&quot;, # The DNS name (wildcard or exact) to apply this rule to. Must be unique within the Response Policy Rule.
622 &quot;kind&quot;: &quot;dns#responsePolicyRule&quot;,
623 &quot;localData&quot;: { # Answer this query directly with DNS data. These ResourceRecordSets override any other DNS behavior for the matched name; in particular they override private zones, the public internet, and GCP internal DNS. No SOA nor NS types are allowed.
624 &quot;localDatas&quot;: [ # All resource record sets for this selector, one per resource record type. The name must match the dns_name.
625 { # A unit of data that is returned by the DNS servers.
626 &quot;kind&quot;: &quot;dns#resourceRecordSet&quot;,
627 &quot;name&quot;: &quot;A String&quot;, # For example, www.example.com.
628 &quot;routingPolicy&quot;: { # 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).
629 &quot;geo&quot;: { # Configures a `RRSetRoutingPolicy` that routes based on the geo location of the querying user.
630 &quot;enableFencing&quot;: 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&#x27;t failover to the next nearest bucket; instead, we return all the items in the current bucket even when all targets are unhealthy.
631 &quot;items&quot;: [ # The primary geo routing configuration. If there are multiple items with the same location, an error is returned instead.
632 { # ResourceRecordSet data for one geo location.
633 &quot;healthCheckedTargets&quot;: { # HealthCheckTargets describes endpoints to health-check when responding to Routing Policy queries. Only the healthy endpoints will be included in the response. Set either `internal_load_balancer` or `external_endpoints`. Do not set both. # 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.
634 &quot;externalEndpoints&quot;: [ # 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)
635 &quot;A String&quot;,
636 ],
637 &quot;internalLoadBalancers&quot;: [ # Configuration for internal load balancers to be health checked.
638 { # The configuration for an individual load balancer to health check.
639 &quot;ipAddress&quot;: &quot;A String&quot;, # The frontend IP address of the load balancer to health check.
640 &quot;ipProtocol&quot;: &quot;A String&quot;, # The protocol of the load balancer to health check.
641 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyLoadBalancerTarget&quot;,
642 &quot;loadBalancerType&quot;: &quot;A String&quot;, # The type of load balancer specified by this target. This value must match the configuration of the load balancer located at the LoadBalancerTarget&#x27;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.
643 &quot;networkUrl&quot;: &quot;A String&quot;, # 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}`.
644 &quot;port&quot;: &quot;A String&quot;, # The configured port of the load balancer.
645 &quot;project&quot;: &quot;A String&quot;, # The project ID in which the load balancer is located.
646 &quot;region&quot;: &quot;A String&quot;, # The region in which the load balancer is located.
647 },
648 ],
649 },
650 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicyGeoPolicyItem&quot;,
651 &quot;location&quot;: &quot;A String&quot;, # The geo-location granularity is a GCP region. This location string should correspond to a GCP region. e.g. &quot;us-east1&quot;, &quot;southamerica-east1&quot;, &quot;asia-east1&quot;, etc.
652 &quot;rrdatas&quot;: [
653 &quot;A String&quot;,
654 ],
655 &quot;signatureRrdatas&quot;: [ # DNSSEC generated signatures for all the `rrdata` within this item. When using health-checked targets for DNSSEC-enabled zones, you can only use at most one health-checked IP address per item.
656 &quot;A String&quot;,
657 ],
658 },
659 ],
660 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicy&quot;,
661 },
662 &quot;healthCheck&quot;: &quot;A String&quot;, # The fully qualified URL of the HealthCheck to use for this RRSetRoutingPolicy. Format this URL like `https://www.googleapis.com/compute/v1/projects/{project}/global/healthChecks/{healthCheck}`. https://cloud.google.com/compute/docs/reference/rest/v1/healthChecks
663 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicy&quot;,
664 &quot;primaryBackup&quot;: { # 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.
665 &quot;backupGeoTargets&quot;: { # 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.
666 &quot;enableFencing&quot;: 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&#x27;t failover to the next nearest bucket; instead, we return all the items in the current bucket even when all targets are unhealthy.
667 &quot;items&quot;: [ # The primary geo routing configuration. If there are multiple items with the same location, an error is returned instead.
668 { # ResourceRecordSet data for one geo location.
669 &quot;healthCheckedTargets&quot;: { # HealthCheckTargets describes endpoints to health-check when responding to Routing Policy queries. Only the healthy endpoints will be included in the response. Set either `internal_load_balancer` or `external_endpoints`. Do not set both. # 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.
670 &quot;externalEndpoints&quot;: [ # 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)
671 &quot;A String&quot;,
672 ],
673 &quot;internalLoadBalancers&quot;: [ # Configuration for internal load balancers to be health checked.
674 { # The configuration for an individual load balancer to health check.
675 &quot;ipAddress&quot;: &quot;A String&quot;, # The frontend IP address of the load balancer to health check.
676 &quot;ipProtocol&quot;: &quot;A String&quot;, # The protocol of the load balancer to health check.
677 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyLoadBalancerTarget&quot;,
678 &quot;loadBalancerType&quot;: &quot;A String&quot;, # The type of load balancer specified by this target. This value must match the configuration of the load balancer located at the LoadBalancerTarget&#x27;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.
679 &quot;networkUrl&quot;: &quot;A String&quot;, # 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}`.
680 &quot;port&quot;: &quot;A String&quot;, # The configured port of the load balancer.
681 &quot;project&quot;: &quot;A String&quot;, # The project ID in which the load balancer is located.
682 &quot;region&quot;: &quot;A String&quot;, # The region in which the load balancer is located.
683 },
684 ],
685 },
686 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicyGeoPolicyItem&quot;,
687 &quot;location&quot;: &quot;A String&quot;, # The geo-location granularity is a GCP region. This location string should correspond to a GCP region. e.g. &quot;us-east1&quot;, &quot;southamerica-east1&quot;, &quot;asia-east1&quot;, etc.
688 &quot;rrdatas&quot;: [
689 &quot;A String&quot;,
690 ],
691 &quot;signatureRrdatas&quot;: [ # DNSSEC generated signatures for all the `rrdata` within this item. When using health-checked targets for DNSSEC-enabled zones, you can only use at most one health-checked IP address per item.
692 &quot;A String&quot;,
693 ],
694 },
695 ],
696 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicy&quot;,
697 },
698 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyPrimaryBackupPolicy&quot;,
699 &quot;primaryTargets&quot;: { # HealthCheckTargets describes endpoints to health-check when responding to Routing Policy queries. Only the healthy endpoints will be included in the response. Set either `internal_load_balancer` or `external_endpoints`. Do not set both. # 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`.
700 &quot;externalEndpoints&quot;: [ # 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)
701 &quot;A String&quot;,
702 ],
703 &quot;internalLoadBalancers&quot;: [ # Configuration for internal load balancers to be health checked.
704 { # The configuration for an individual load balancer to health check.
705 &quot;ipAddress&quot;: &quot;A String&quot;, # The frontend IP address of the load balancer to health check.
706 &quot;ipProtocol&quot;: &quot;A String&quot;, # The protocol of the load balancer to health check.
707 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyLoadBalancerTarget&quot;,
708 &quot;loadBalancerType&quot;: &quot;A String&quot;, # The type of load balancer specified by this target. This value must match the configuration of the load balancer located at the LoadBalancerTarget&#x27;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.
709 &quot;networkUrl&quot;: &quot;A String&quot;, # 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}`.
710 &quot;port&quot;: &quot;A String&quot;, # The configured port of the load balancer.
711 &quot;project&quot;: &quot;A String&quot;, # The project ID in which the load balancer is located.
712 &quot;region&quot;: &quot;A String&quot;, # The region in which the load balancer is located.
713 },
714 ],
715 },
716 &quot;trickleTraffic&quot;: 3.14, # When serving state is `PRIMARY`, this field provides the option of sending a small percentage of the traffic to the backup targets.
717 },
718 &quot;wrr&quot;: { # Configures a RRSetRoutingPolicy that routes in a weighted round robin fashion.
719 &quot;items&quot;: [
720 { # A routing block which contains the routing information for one WRR item.
721 &quot;healthCheckedTargets&quot;: { # HealthCheckTargets describes endpoints to health-check when responding to Routing Policy queries. Only the healthy endpoints will be included in the response. Set either `internal_load_balancer` or `external_endpoints`. Do not set both. # 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.
722 &quot;externalEndpoints&quot;: [ # 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)
723 &quot;A String&quot;,
724 ],
725 &quot;internalLoadBalancers&quot;: [ # Configuration for internal load balancers to be health checked.
726 { # The configuration for an individual load balancer to health check.
727 &quot;ipAddress&quot;: &quot;A String&quot;, # The frontend IP address of the load balancer to health check.
728 &quot;ipProtocol&quot;: &quot;A String&quot;, # The protocol of the load balancer to health check.
729 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyLoadBalancerTarget&quot;,
730 &quot;loadBalancerType&quot;: &quot;A String&quot;, # The type of load balancer specified by this target. This value must match the configuration of the load balancer located at the LoadBalancerTarget&#x27;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.
731 &quot;networkUrl&quot;: &quot;A String&quot;, # 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}`.
732 &quot;port&quot;: &quot;A String&quot;, # The configured port of the load balancer.
733 &quot;project&quot;: &quot;A String&quot;, # The project ID in which the load balancer is located.
734 &quot;region&quot;: &quot;A String&quot;, # The region in which the load balancer is located.
735 },
736 ],
737 },
738 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyWrrPolicyWrrPolicyItem&quot;,
739 &quot;rrdatas&quot;: [
740 &quot;A String&quot;,
741 ],
742 &quot;signatureRrdatas&quot;: [ # DNSSEC generated signatures for all the `rrdata` within this item. When using health-checked targets for DNSSEC-enabled zones, you can only use at most one health-checked IP address per item.
743 &quot;A String&quot;,
744 ],
745 &quot;weight&quot;: 3.14, # The weight corresponding to this `WrrPolicyItem` object. When multiple `WrrPolicyItem` objects are configured, the probability of returning an `WrrPolicyItem` object&#x27;s data is proportional to its weight relative to the sum of weights configured for all items. This weight must be non-negative.
746 },
747 ],
748 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyWrrPolicy&quot;,
749 },
750 },
751 &quot;rrdatas&quot;: [ # As defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1) -- see examples.
752 &quot;A String&quot;,
753 ],
754 &quot;signatureRrdatas&quot;: [ # As defined in RFC 4034 (section 3.2).
755 &quot;A String&quot;,
756 ],
757 &quot;ttl&quot;: 42, # Number of seconds that this `ResourceRecordSet` can be cached by resolvers.
758 &quot;type&quot;: &quot;A String&quot;, # The identifier of a supported record type. See the list of Supported DNS record types.
759 },
760 ],
761 },
762 &quot;ruleName&quot;: &quot;A String&quot;, # An identifier for this rule. Must be unique with the ResponsePolicy.
763 },
764 ],
765 }</pre>
766 </div>
767
768 <div class="method">
769 <code class="details" id="list_next">list_next()</code>
770 <pre>Retrieves the next page of results.
771
772 Args:
773 previous_request: The request for the previous page. (required)
774 previous_response: The response from the request for the previous page. (required)
775
776 Returns:
777 A request object that you can call &#x27;execute()&#x27; on to request the next
778 page. Returns None if there are no more items in the collection.
779 </pre>
780 </div>
781
782 <div class="method">
783 <code class="details" id="patch">patch(project, responsePolicy, responsePolicyRule, body=None, clientOperationId=None, x__xgafv=None)</code>
784 <pre>Applies a partial update to an existing Response Policy Rule.
785
786 Args:
787 project: string, Identifies the project addressed by this request. (required)
788 responsePolicy: string, User assigned name of the Response Policy containing the Response Policy Rule. (required)
789 responsePolicyRule: string, User assigned name of the Response Policy Rule addressed by this request. (required)
790 body: object, The request body.
791 The object takes the form of:
792
793 { # A Response Policy Rule is a selector that applies its behavior to queries that match the selector. Selectors are DNS names, which may be wildcards or exact matches. Each DNS query subject to a Response Policy matches at most one ResponsePolicyRule, as identified by the dns_name field with the longest matching suffix.
794 &quot;behavior&quot;: &quot;A String&quot;, # Answer this query with a behavior rather than DNS data.
795 &quot;dnsName&quot;: &quot;A String&quot;, # The DNS name (wildcard or exact) to apply this rule to. Must be unique within the Response Policy Rule.
796 &quot;kind&quot;: &quot;dns#responsePolicyRule&quot;,
797 &quot;localData&quot;: { # Answer this query directly with DNS data. These ResourceRecordSets override any other DNS behavior for the matched name; in particular they override private zones, the public internet, and GCP internal DNS. No SOA nor NS types are allowed.
798 &quot;localDatas&quot;: [ # All resource record sets for this selector, one per resource record type. The name must match the dns_name.
799 { # A unit of data that is returned by the DNS servers.
800 &quot;kind&quot;: &quot;dns#resourceRecordSet&quot;,
801 &quot;name&quot;: &quot;A String&quot;, # For example, www.example.com.
802 &quot;routingPolicy&quot;: { # 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).
803 &quot;geo&quot;: { # Configures a `RRSetRoutingPolicy` that routes based on the geo location of the querying user.
804 &quot;enableFencing&quot;: 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&#x27;t failover to the next nearest bucket; instead, we return all the items in the current bucket even when all targets are unhealthy.
805 &quot;items&quot;: [ # The primary geo routing configuration. If there are multiple items with the same location, an error is returned instead.
806 { # ResourceRecordSet data for one geo location.
807 &quot;healthCheckedTargets&quot;: { # HealthCheckTargets describes endpoints to health-check when responding to Routing Policy queries. Only the healthy endpoints will be included in the response. Set either `internal_load_balancer` or `external_endpoints`. Do not set both. # 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.
808 &quot;externalEndpoints&quot;: [ # 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)
809 &quot;A String&quot;,
810 ],
811 &quot;internalLoadBalancers&quot;: [ # Configuration for internal load balancers to be health checked.
812 { # The configuration for an individual load balancer to health check.
813 &quot;ipAddress&quot;: &quot;A String&quot;, # The frontend IP address of the load balancer to health check.
814 &quot;ipProtocol&quot;: &quot;A String&quot;, # The protocol of the load balancer to health check.
815 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyLoadBalancerTarget&quot;,
816 &quot;loadBalancerType&quot;: &quot;A String&quot;, # The type of load balancer specified by this target. This value must match the configuration of the load balancer located at the LoadBalancerTarget&#x27;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.
817 &quot;networkUrl&quot;: &quot;A String&quot;, # 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}`.
818 &quot;port&quot;: &quot;A String&quot;, # The configured port of the load balancer.
819 &quot;project&quot;: &quot;A String&quot;, # The project ID in which the load balancer is located.
820 &quot;region&quot;: &quot;A String&quot;, # The region in which the load balancer is located.
821 },
822 ],
823 },
824 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicyGeoPolicyItem&quot;,
825 &quot;location&quot;: &quot;A String&quot;, # The geo-location granularity is a GCP region. This location string should correspond to a GCP region. e.g. &quot;us-east1&quot;, &quot;southamerica-east1&quot;, &quot;asia-east1&quot;, etc.
826 &quot;rrdatas&quot;: [
827 &quot;A String&quot;,
828 ],
829 &quot;signatureRrdatas&quot;: [ # DNSSEC generated signatures for all the `rrdata` within this item. When using health-checked targets for DNSSEC-enabled zones, you can only use at most one health-checked IP address per item.
830 &quot;A String&quot;,
831 ],
832 },
833 ],
834 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicy&quot;,
835 },
836 &quot;healthCheck&quot;: &quot;A String&quot;, # The fully qualified URL of the HealthCheck to use for this RRSetRoutingPolicy. Format this URL like `https://www.googleapis.com/compute/v1/projects/{project}/global/healthChecks/{healthCheck}`. https://cloud.google.com/compute/docs/reference/rest/v1/healthChecks
837 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicy&quot;,
838 &quot;primaryBackup&quot;: { # 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.
839 &quot;backupGeoTargets&quot;: { # 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.
840 &quot;enableFencing&quot;: 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&#x27;t failover to the next nearest bucket; instead, we return all the items in the current bucket even when all targets are unhealthy.
841 &quot;items&quot;: [ # The primary geo routing configuration. If there are multiple items with the same location, an error is returned instead.
842 { # ResourceRecordSet data for one geo location.
843 &quot;healthCheckedTargets&quot;: { # HealthCheckTargets describes endpoints to health-check when responding to Routing Policy queries. Only the healthy endpoints will be included in the response. Set either `internal_load_balancer` or `external_endpoints`. Do not set both. # 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.
844 &quot;externalEndpoints&quot;: [ # 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)
845 &quot;A String&quot;,
846 ],
847 &quot;internalLoadBalancers&quot;: [ # Configuration for internal load balancers to be health checked.
848 { # The configuration for an individual load balancer to health check.
849 &quot;ipAddress&quot;: &quot;A String&quot;, # The frontend IP address of the load balancer to health check.
850 &quot;ipProtocol&quot;: &quot;A String&quot;, # The protocol of the load balancer to health check.
851 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyLoadBalancerTarget&quot;,
852 &quot;loadBalancerType&quot;: &quot;A String&quot;, # The type of load balancer specified by this target. This value must match the configuration of the load balancer located at the LoadBalancerTarget&#x27;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.
853 &quot;networkUrl&quot;: &quot;A String&quot;, # 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}`.
854 &quot;port&quot;: &quot;A String&quot;, # The configured port of the load balancer.
855 &quot;project&quot;: &quot;A String&quot;, # The project ID in which the load balancer is located.
856 &quot;region&quot;: &quot;A String&quot;, # The region in which the load balancer is located.
857 },
858 ],
859 },
860 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicyGeoPolicyItem&quot;,
861 &quot;location&quot;: &quot;A String&quot;, # The geo-location granularity is a GCP region. This location string should correspond to a GCP region. e.g. &quot;us-east1&quot;, &quot;southamerica-east1&quot;, &quot;asia-east1&quot;, etc.
862 &quot;rrdatas&quot;: [
863 &quot;A String&quot;,
864 ],
865 &quot;signatureRrdatas&quot;: [ # DNSSEC generated signatures for all the `rrdata` within this item. When using health-checked targets for DNSSEC-enabled zones, you can only use at most one health-checked IP address per item.
866 &quot;A String&quot;,
867 ],
868 },
869 ],
870 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicy&quot;,
871 },
872 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyPrimaryBackupPolicy&quot;,
873 &quot;primaryTargets&quot;: { # HealthCheckTargets describes endpoints to health-check when responding to Routing Policy queries. Only the healthy endpoints will be included in the response. Set either `internal_load_balancer` or `external_endpoints`. Do not set both. # 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`.
874 &quot;externalEndpoints&quot;: [ # 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)
875 &quot;A String&quot;,
876 ],
877 &quot;internalLoadBalancers&quot;: [ # Configuration for internal load balancers to be health checked.
878 { # The configuration for an individual load balancer to health check.
879 &quot;ipAddress&quot;: &quot;A String&quot;, # The frontend IP address of the load balancer to health check.
880 &quot;ipProtocol&quot;: &quot;A String&quot;, # The protocol of the load balancer to health check.
881 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyLoadBalancerTarget&quot;,
882 &quot;loadBalancerType&quot;: &quot;A String&quot;, # The type of load balancer specified by this target. This value must match the configuration of the load balancer located at the LoadBalancerTarget&#x27;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.
883 &quot;networkUrl&quot;: &quot;A String&quot;, # 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}`.
884 &quot;port&quot;: &quot;A String&quot;, # The configured port of the load balancer.
885 &quot;project&quot;: &quot;A String&quot;, # The project ID in which the load balancer is located.
886 &quot;region&quot;: &quot;A String&quot;, # The region in which the load balancer is located.
887 },
888 ],
889 },
890 &quot;trickleTraffic&quot;: 3.14, # When serving state is `PRIMARY`, this field provides the option of sending a small percentage of the traffic to the backup targets.
891 },
892 &quot;wrr&quot;: { # Configures a RRSetRoutingPolicy that routes in a weighted round robin fashion.
893 &quot;items&quot;: [
894 { # A routing block which contains the routing information for one WRR item.
895 &quot;healthCheckedTargets&quot;: { # HealthCheckTargets describes endpoints to health-check when responding to Routing Policy queries. Only the healthy endpoints will be included in the response. Set either `internal_load_balancer` or `external_endpoints`. Do not set both. # 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.
896 &quot;externalEndpoints&quot;: [ # 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)
897 &quot;A String&quot;,
898 ],
899 &quot;internalLoadBalancers&quot;: [ # Configuration for internal load balancers to be health checked.
900 { # The configuration for an individual load balancer to health check.
901 &quot;ipAddress&quot;: &quot;A String&quot;, # The frontend IP address of the load balancer to health check.
902 &quot;ipProtocol&quot;: &quot;A String&quot;, # The protocol of the load balancer to health check.
903 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyLoadBalancerTarget&quot;,
904 &quot;loadBalancerType&quot;: &quot;A String&quot;, # The type of load balancer specified by this target. This value must match the configuration of the load balancer located at the LoadBalancerTarget&#x27;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.
905 &quot;networkUrl&quot;: &quot;A String&quot;, # 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}`.
906 &quot;port&quot;: &quot;A String&quot;, # The configured port of the load balancer.
907 &quot;project&quot;: &quot;A String&quot;, # The project ID in which the load balancer is located.
908 &quot;region&quot;: &quot;A String&quot;, # The region in which the load balancer is located.
909 },
910 ],
911 },
912 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyWrrPolicyWrrPolicyItem&quot;,
913 &quot;rrdatas&quot;: [
914 &quot;A String&quot;,
915 ],
916 &quot;signatureRrdatas&quot;: [ # DNSSEC generated signatures for all the `rrdata` within this item. When using health-checked targets for DNSSEC-enabled zones, you can only use at most one health-checked IP address per item.
917 &quot;A String&quot;,
918 ],
919 &quot;weight&quot;: 3.14, # The weight corresponding to this `WrrPolicyItem` object. When multiple `WrrPolicyItem` objects are configured, the probability of returning an `WrrPolicyItem` object&#x27;s data is proportional to its weight relative to the sum of weights configured for all items. This weight must be non-negative.
920 },
921 ],
922 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyWrrPolicy&quot;,
923 },
924 },
925 &quot;rrdatas&quot;: [ # As defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1) -- see examples.
926 &quot;A String&quot;,
927 ],
928 &quot;signatureRrdatas&quot;: [ # As defined in RFC 4034 (section 3.2).
929 &quot;A String&quot;,
930 ],
931 &quot;ttl&quot;: 42, # Number of seconds that this `ResourceRecordSet` can be cached by resolvers.
932 &quot;type&quot;: &quot;A String&quot;, # The identifier of a supported record type. See the list of Supported DNS record types.
933 },
934 ],
935 },
936 &quot;ruleName&quot;: &quot;A String&quot;, # An identifier for this rule. Must be unique with the ResponsePolicy.
937 }
938
939 clientOperationId: string, For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
940 x__xgafv: string, V1 error format.
941 Allowed values
942 1 - v1 error format
943 2 - v2 error format
944
945 Returns:
946 An object of the form:
947
948 {
949 &quot;responsePolicyRule&quot;: { # A Response Policy Rule is a selector that applies its behavior to queries that match the selector. Selectors are DNS names, which may be wildcards or exact matches. Each DNS query subject to a Response Policy matches at most one ResponsePolicyRule, as identified by the dns_name field with the longest matching suffix.
950 &quot;behavior&quot;: &quot;A String&quot;, # Answer this query with a behavior rather than DNS data.
951 &quot;dnsName&quot;: &quot;A String&quot;, # The DNS name (wildcard or exact) to apply this rule to. Must be unique within the Response Policy Rule.
952 &quot;kind&quot;: &quot;dns#responsePolicyRule&quot;,
953 &quot;localData&quot;: { # Answer this query directly with DNS data. These ResourceRecordSets override any other DNS behavior for the matched name; in particular they override private zones, the public internet, and GCP internal DNS. No SOA nor NS types are allowed.
954 &quot;localDatas&quot;: [ # All resource record sets for this selector, one per resource record type. The name must match the dns_name.
955 { # A unit of data that is returned by the DNS servers.
956 &quot;kind&quot;: &quot;dns#resourceRecordSet&quot;,
957 &quot;name&quot;: &quot;A String&quot;, # For example, www.example.com.
958 &quot;routingPolicy&quot;: { # 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).
959 &quot;geo&quot;: { # Configures a `RRSetRoutingPolicy` that routes based on the geo location of the querying user.
960 &quot;enableFencing&quot;: 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&#x27;t failover to the next nearest bucket; instead, we return all the items in the current bucket even when all targets are unhealthy.
961 &quot;items&quot;: [ # The primary geo routing configuration. If there are multiple items with the same location, an error is returned instead.
962 { # ResourceRecordSet data for one geo location.
963 &quot;healthCheckedTargets&quot;: { # HealthCheckTargets describes endpoints to health-check when responding to Routing Policy queries. Only the healthy endpoints will be included in the response. Set either `internal_load_balancer` or `external_endpoints`. Do not set both. # 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.
964 &quot;externalEndpoints&quot;: [ # 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)
965 &quot;A String&quot;,
966 ],
967 &quot;internalLoadBalancers&quot;: [ # Configuration for internal load balancers to be health checked.
968 { # The configuration for an individual load balancer to health check.
969 &quot;ipAddress&quot;: &quot;A String&quot;, # The frontend IP address of the load balancer to health check.
970 &quot;ipProtocol&quot;: &quot;A String&quot;, # The protocol of the load balancer to health check.
971 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyLoadBalancerTarget&quot;,
972 &quot;loadBalancerType&quot;: &quot;A String&quot;, # The type of load balancer specified by this target. This value must match the configuration of the load balancer located at the LoadBalancerTarget&#x27;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.
973 &quot;networkUrl&quot;: &quot;A String&quot;, # 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}`.
974 &quot;port&quot;: &quot;A String&quot;, # The configured port of the load balancer.
975 &quot;project&quot;: &quot;A String&quot;, # The project ID in which the load balancer is located.
976 &quot;region&quot;: &quot;A String&quot;, # The region in which the load balancer is located.
977 },
978 ],
979 },
980 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicyGeoPolicyItem&quot;,
981 &quot;location&quot;: &quot;A String&quot;, # The geo-location granularity is a GCP region. This location string should correspond to a GCP region. e.g. &quot;us-east1&quot;, &quot;southamerica-east1&quot;, &quot;asia-east1&quot;, etc.
982 &quot;rrdatas&quot;: [
983 &quot;A String&quot;,
984 ],
985 &quot;signatureRrdatas&quot;: [ # DNSSEC generated signatures for all the `rrdata` within this item. When using health-checked targets for DNSSEC-enabled zones, you can only use at most one health-checked IP address per item.
986 &quot;A String&quot;,
987 ],
988 },
989 ],
990 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicy&quot;,
991 },
992 &quot;healthCheck&quot;: &quot;A String&quot;, # The fully qualified URL of the HealthCheck to use for this RRSetRoutingPolicy. Format this URL like `https://www.googleapis.com/compute/v1/projects/{project}/global/healthChecks/{healthCheck}`. https://cloud.google.com/compute/docs/reference/rest/v1/healthChecks
993 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicy&quot;,
994 &quot;primaryBackup&quot;: { # 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.
995 &quot;backupGeoTargets&quot;: { # 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.
996 &quot;enableFencing&quot;: 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&#x27;t failover to the next nearest bucket; instead, we return all the items in the current bucket even when all targets are unhealthy.
997 &quot;items&quot;: [ # The primary geo routing configuration. If there are multiple items with the same location, an error is returned instead.
998 { # ResourceRecordSet data for one geo location.
999 &quot;healthCheckedTargets&quot;: { # HealthCheckTargets describes endpoints to health-check when responding to Routing Policy queries. Only the healthy endpoints will be included in the response. Set either `internal_load_balancer` or `external_endpoints`. Do not set both. # 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.
1000 &quot;externalEndpoints&quot;: [ # 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)
1001 &quot;A String&quot;,
1002 ],
1003 &quot;internalLoadBalancers&quot;: [ # Configuration for internal load balancers to be health checked.
1004 { # The configuration for an individual load balancer to health check.
1005 &quot;ipAddress&quot;: &quot;A String&quot;, # The frontend IP address of the load balancer to health check.
1006 &quot;ipProtocol&quot;: &quot;A String&quot;, # The protocol of the load balancer to health check.
1007 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyLoadBalancerTarget&quot;,
1008 &quot;loadBalancerType&quot;: &quot;A String&quot;, # The type of load balancer specified by this target. This value must match the configuration of the load balancer located at the LoadBalancerTarget&#x27;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.
1009 &quot;networkUrl&quot;: &quot;A String&quot;, # 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}`.
1010 &quot;port&quot;: &quot;A String&quot;, # The configured port of the load balancer.
1011 &quot;project&quot;: &quot;A String&quot;, # The project ID in which the load balancer is located.
1012 &quot;region&quot;: &quot;A String&quot;, # The region in which the load balancer is located.
1013 },
1014 ],
1015 },
1016 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicyGeoPolicyItem&quot;,
1017 &quot;location&quot;: &quot;A String&quot;, # The geo-location granularity is a GCP region. This location string should correspond to a GCP region. e.g. &quot;us-east1&quot;, &quot;southamerica-east1&quot;, &quot;asia-east1&quot;, etc.
1018 &quot;rrdatas&quot;: [
1019 &quot;A String&quot;,
1020 ],
1021 &quot;signatureRrdatas&quot;: [ # DNSSEC generated signatures for all the `rrdata` within this item. When using health-checked targets for DNSSEC-enabled zones, you can only use at most one health-checked IP address per item.
1022 &quot;A String&quot;,
1023 ],
1024 },
1025 ],
1026 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicy&quot;,
1027 },
1028 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyPrimaryBackupPolicy&quot;,
1029 &quot;primaryTargets&quot;: { # HealthCheckTargets describes endpoints to health-check when responding to Routing Policy queries. Only the healthy endpoints will be included in the response. Set either `internal_load_balancer` or `external_endpoints`. Do not set both. # 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`.
1030 &quot;externalEndpoints&quot;: [ # 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)
1031 &quot;A String&quot;,
1032 ],
1033 &quot;internalLoadBalancers&quot;: [ # Configuration for internal load balancers to be health checked.
1034 { # The configuration for an individual load balancer to health check.
1035 &quot;ipAddress&quot;: &quot;A String&quot;, # The frontend IP address of the load balancer to health check.
1036 &quot;ipProtocol&quot;: &quot;A String&quot;, # The protocol of the load balancer to health check.
1037 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyLoadBalancerTarget&quot;,
1038 &quot;loadBalancerType&quot;: &quot;A String&quot;, # The type of load balancer specified by this target. This value must match the configuration of the load balancer located at the LoadBalancerTarget&#x27;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.
1039 &quot;networkUrl&quot;: &quot;A String&quot;, # 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}`.
1040 &quot;port&quot;: &quot;A String&quot;, # The configured port of the load balancer.
1041 &quot;project&quot;: &quot;A String&quot;, # The project ID in which the load balancer is located.
1042 &quot;region&quot;: &quot;A String&quot;, # The region in which the load balancer is located.
1043 },
1044 ],
1045 },
1046 &quot;trickleTraffic&quot;: 3.14, # When serving state is `PRIMARY`, this field provides the option of sending a small percentage of the traffic to the backup targets.
1047 },
1048 &quot;wrr&quot;: { # Configures a RRSetRoutingPolicy that routes in a weighted round robin fashion.
1049 &quot;items&quot;: [
1050 { # A routing block which contains the routing information for one WRR item.
1051 &quot;healthCheckedTargets&quot;: { # HealthCheckTargets describes endpoints to health-check when responding to Routing Policy queries. Only the healthy endpoints will be included in the response. Set either `internal_load_balancer` or `external_endpoints`. Do not set both. # 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.
1052 &quot;externalEndpoints&quot;: [ # 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)
1053 &quot;A String&quot;,
1054 ],
1055 &quot;internalLoadBalancers&quot;: [ # Configuration for internal load balancers to be health checked.
1056 { # The configuration for an individual load balancer to health check.
1057 &quot;ipAddress&quot;: &quot;A String&quot;, # The frontend IP address of the load balancer to health check.
1058 &quot;ipProtocol&quot;: &quot;A String&quot;, # The protocol of the load balancer to health check.
1059 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyLoadBalancerTarget&quot;,
1060 &quot;loadBalancerType&quot;: &quot;A String&quot;, # The type of load balancer specified by this target. This value must match the configuration of the load balancer located at the LoadBalancerTarget&#x27;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.
1061 &quot;networkUrl&quot;: &quot;A String&quot;, # 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}`.
1062 &quot;port&quot;: &quot;A String&quot;, # The configured port of the load balancer.
1063 &quot;project&quot;: &quot;A String&quot;, # The project ID in which the load balancer is located.
1064 &quot;region&quot;: &quot;A String&quot;, # The region in which the load balancer is located.
1065 },
1066 ],
1067 },
1068 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyWrrPolicyWrrPolicyItem&quot;,
1069 &quot;rrdatas&quot;: [
1070 &quot;A String&quot;,
1071 ],
1072 &quot;signatureRrdatas&quot;: [ # DNSSEC generated signatures for all the `rrdata` within this item. When using health-checked targets for DNSSEC-enabled zones, you can only use at most one health-checked IP address per item.
1073 &quot;A String&quot;,
1074 ],
1075 &quot;weight&quot;: 3.14, # The weight corresponding to this `WrrPolicyItem` object. When multiple `WrrPolicyItem` objects are configured, the probability of returning an `WrrPolicyItem` object&#x27;s data is proportional to its weight relative to the sum of weights configured for all items. This weight must be non-negative.
1076 },
1077 ],
1078 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyWrrPolicy&quot;,
1079 },
1080 },
1081 &quot;rrdatas&quot;: [ # As defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1) -- see examples.
1082 &quot;A String&quot;,
1083 ],
1084 &quot;signatureRrdatas&quot;: [ # As defined in RFC 4034 (section 3.2).
1085 &quot;A String&quot;,
1086 ],
1087 &quot;ttl&quot;: 42, # Number of seconds that this `ResourceRecordSet` can be cached by resolvers.
1088 &quot;type&quot;: &quot;A String&quot;, # The identifier of a supported record type. See the list of Supported DNS record types.
1089 },
1090 ],
1091 },
1092 &quot;ruleName&quot;: &quot;A String&quot;, # An identifier for this rule. Must be unique with the ResponsePolicy.
1093 },
1094 }</pre>
1095 </div>
1096
1097 <div class="method">
1098 <code class="details" id="update">update(project, responsePolicy, responsePolicyRule, body=None, clientOperationId=None, x__xgafv=None)</code>
1099 <pre>Updates an existing Response Policy Rule.
1100
1101 Args:
1102 project: string, Identifies the project addressed by this request. (required)
1103 responsePolicy: string, User assigned name of the Response Policy containing the Response Policy Rule. (required)
1104 responsePolicyRule: string, User assigned name of the Response Policy Rule addressed by this request. (required)
1105 body: object, The request body.
1106 The object takes the form of:
1107
1108 { # A Response Policy Rule is a selector that applies its behavior to queries that match the selector. Selectors are DNS names, which may be wildcards or exact matches. Each DNS query subject to a Response Policy matches at most one ResponsePolicyRule, as identified by the dns_name field with the longest matching suffix.
1109 &quot;behavior&quot;: &quot;A String&quot;, # Answer this query with a behavior rather than DNS data.
1110 &quot;dnsName&quot;: &quot;A String&quot;, # The DNS name (wildcard or exact) to apply this rule to. Must be unique within the Response Policy Rule.
1111 &quot;kind&quot;: &quot;dns#responsePolicyRule&quot;,
1112 &quot;localData&quot;: { # Answer this query directly with DNS data. These ResourceRecordSets override any other DNS behavior for the matched name; in particular they override private zones, the public internet, and GCP internal DNS. No SOA nor NS types are allowed.
1113 &quot;localDatas&quot;: [ # All resource record sets for this selector, one per resource record type. The name must match the dns_name.
1114 { # A unit of data that is returned by the DNS servers.
1115 &quot;kind&quot;: &quot;dns#resourceRecordSet&quot;,
1116 &quot;name&quot;: &quot;A String&quot;, # For example, www.example.com.
1117 &quot;routingPolicy&quot;: { # 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).
1118 &quot;geo&quot;: { # Configures a `RRSetRoutingPolicy` that routes based on the geo location of the querying user.
1119 &quot;enableFencing&quot;: 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&#x27;t failover to the next nearest bucket; instead, we return all the items in the current bucket even when all targets are unhealthy.
1120 &quot;items&quot;: [ # The primary geo routing configuration. If there are multiple items with the same location, an error is returned instead.
1121 { # ResourceRecordSet data for one geo location.
1122 &quot;healthCheckedTargets&quot;: { # HealthCheckTargets describes endpoints to health-check when responding to Routing Policy queries. Only the healthy endpoints will be included in the response. Set either `internal_load_balancer` or `external_endpoints`. Do not set both. # 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.
1123 &quot;externalEndpoints&quot;: [ # 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)
1124 &quot;A String&quot;,
1125 ],
1126 &quot;internalLoadBalancers&quot;: [ # Configuration for internal load balancers to be health checked.
1127 { # The configuration for an individual load balancer to health check.
1128 &quot;ipAddress&quot;: &quot;A String&quot;, # The frontend IP address of the load balancer to health check.
1129 &quot;ipProtocol&quot;: &quot;A String&quot;, # The protocol of the load balancer to health check.
1130 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyLoadBalancerTarget&quot;,
1131 &quot;loadBalancerType&quot;: &quot;A String&quot;, # The type of load balancer specified by this target. This value must match the configuration of the load balancer located at the LoadBalancerTarget&#x27;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.
1132 &quot;networkUrl&quot;: &quot;A String&quot;, # 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}`.
1133 &quot;port&quot;: &quot;A String&quot;, # The configured port of the load balancer.
1134 &quot;project&quot;: &quot;A String&quot;, # The project ID in which the load balancer is located.
1135 &quot;region&quot;: &quot;A String&quot;, # The region in which the load balancer is located.
1136 },
1137 ],
1138 },
1139 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicyGeoPolicyItem&quot;,
1140 &quot;location&quot;: &quot;A String&quot;, # The geo-location granularity is a GCP region. This location string should correspond to a GCP region. e.g. &quot;us-east1&quot;, &quot;southamerica-east1&quot;, &quot;asia-east1&quot;, etc.
1141 &quot;rrdatas&quot;: [
1142 &quot;A String&quot;,
1143 ],
1144 &quot;signatureRrdatas&quot;: [ # DNSSEC generated signatures for all the `rrdata` within this item. When using health-checked targets for DNSSEC-enabled zones, you can only use at most one health-checked IP address per item.
1145 &quot;A String&quot;,
1146 ],
1147 },
1148 ],
1149 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicy&quot;,
1150 },
1151 &quot;healthCheck&quot;: &quot;A String&quot;, # The fully qualified URL of the HealthCheck to use for this RRSetRoutingPolicy. Format this URL like `https://www.googleapis.com/compute/v1/projects/{project}/global/healthChecks/{healthCheck}`. https://cloud.google.com/compute/docs/reference/rest/v1/healthChecks
1152 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicy&quot;,
1153 &quot;primaryBackup&quot;: { # 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.
1154 &quot;backupGeoTargets&quot;: { # 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.
1155 &quot;enableFencing&quot;: 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&#x27;t failover to the next nearest bucket; instead, we return all the items in the current bucket even when all targets are unhealthy.
1156 &quot;items&quot;: [ # The primary geo routing configuration. If there are multiple items with the same location, an error is returned instead.
1157 { # ResourceRecordSet data for one geo location.
1158 &quot;healthCheckedTargets&quot;: { # HealthCheckTargets describes endpoints to health-check when responding to Routing Policy queries. Only the healthy endpoints will be included in the response. Set either `internal_load_balancer` or `external_endpoints`. Do not set both. # 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.
1159 &quot;externalEndpoints&quot;: [ # 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)
1160 &quot;A String&quot;,
1161 ],
1162 &quot;internalLoadBalancers&quot;: [ # Configuration for internal load balancers to be health checked.
1163 { # The configuration for an individual load balancer to health check.
1164 &quot;ipAddress&quot;: &quot;A String&quot;, # The frontend IP address of the load balancer to health check.
1165 &quot;ipProtocol&quot;: &quot;A String&quot;, # The protocol of the load balancer to health check.
1166 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyLoadBalancerTarget&quot;,
1167 &quot;loadBalancerType&quot;: &quot;A String&quot;, # The type of load balancer specified by this target. This value must match the configuration of the load balancer located at the LoadBalancerTarget&#x27;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.
1168 &quot;networkUrl&quot;: &quot;A String&quot;, # 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}`.
1169 &quot;port&quot;: &quot;A String&quot;, # The configured port of the load balancer.
1170 &quot;project&quot;: &quot;A String&quot;, # The project ID in which the load balancer is located.
1171 &quot;region&quot;: &quot;A String&quot;, # The region in which the load balancer is located.
1172 },
1173 ],
1174 },
1175 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicyGeoPolicyItem&quot;,
1176 &quot;location&quot;: &quot;A String&quot;, # The geo-location granularity is a GCP region. This location string should correspond to a GCP region. e.g. &quot;us-east1&quot;, &quot;southamerica-east1&quot;, &quot;asia-east1&quot;, etc.
1177 &quot;rrdatas&quot;: [
1178 &quot;A String&quot;,
1179 ],
1180 &quot;signatureRrdatas&quot;: [ # DNSSEC generated signatures for all the `rrdata` within this item. When using health-checked targets for DNSSEC-enabled zones, you can only use at most one health-checked IP address per item.
1181 &quot;A String&quot;,
1182 ],
1183 },
1184 ],
1185 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicy&quot;,
1186 },
1187 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyPrimaryBackupPolicy&quot;,
1188 &quot;primaryTargets&quot;: { # HealthCheckTargets describes endpoints to health-check when responding to Routing Policy queries. Only the healthy endpoints will be included in the response. Set either `internal_load_balancer` or `external_endpoints`. Do not set both. # 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`.
1189 &quot;externalEndpoints&quot;: [ # 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)
1190 &quot;A String&quot;,
1191 ],
1192 &quot;internalLoadBalancers&quot;: [ # Configuration for internal load balancers to be health checked.
1193 { # The configuration for an individual load balancer to health check.
1194 &quot;ipAddress&quot;: &quot;A String&quot;, # The frontend IP address of the load balancer to health check.
1195 &quot;ipProtocol&quot;: &quot;A String&quot;, # The protocol of the load balancer to health check.
1196 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyLoadBalancerTarget&quot;,
1197 &quot;loadBalancerType&quot;: &quot;A String&quot;, # The type of load balancer specified by this target. This value must match the configuration of the load balancer located at the LoadBalancerTarget&#x27;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.
1198 &quot;networkUrl&quot;: &quot;A String&quot;, # 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}`.
1199 &quot;port&quot;: &quot;A String&quot;, # The configured port of the load balancer.
1200 &quot;project&quot;: &quot;A String&quot;, # The project ID in which the load balancer is located.
1201 &quot;region&quot;: &quot;A String&quot;, # The region in which the load balancer is located.
1202 },
1203 ],
1204 },
1205 &quot;trickleTraffic&quot;: 3.14, # When serving state is `PRIMARY`, this field provides the option of sending a small percentage of the traffic to the backup targets.
1206 },
1207 &quot;wrr&quot;: { # Configures a RRSetRoutingPolicy that routes in a weighted round robin fashion.
1208 &quot;items&quot;: [
1209 { # A routing block which contains the routing information for one WRR item.
1210 &quot;healthCheckedTargets&quot;: { # HealthCheckTargets describes endpoints to health-check when responding to Routing Policy queries. Only the healthy endpoints will be included in the response. Set either `internal_load_balancer` or `external_endpoints`. Do not set both. # 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.
1211 &quot;externalEndpoints&quot;: [ # 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)
1212 &quot;A String&quot;,
1213 ],
1214 &quot;internalLoadBalancers&quot;: [ # Configuration for internal load balancers to be health checked.
1215 { # The configuration for an individual load balancer to health check.
1216 &quot;ipAddress&quot;: &quot;A String&quot;, # The frontend IP address of the load balancer to health check.
1217 &quot;ipProtocol&quot;: &quot;A String&quot;, # The protocol of the load balancer to health check.
1218 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyLoadBalancerTarget&quot;,
1219 &quot;loadBalancerType&quot;: &quot;A String&quot;, # The type of load balancer specified by this target. This value must match the configuration of the load balancer located at the LoadBalancerTarget&#x27;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.
1220 &quot;networkUrl&quot;: &quot;A String&quot;, # 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}`.
1221 &quot;port&quot;: &quot;A String&quot;, # The configured port of the load balancer.
1222 &quot;project&quot;: &quot;A String&quot;, # The project ID in which the load balancer is located.
1223 &quot;region&quot;: &quot;A String&quot;, # The region in which the load balancer is located.
1224 },
1225 ],
1226 },
1227 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyWrrPolicyWrrPolicyItem&quot;,
1228 &quot;rrdatas&quot;: [
1229 &quot;A String&quot;,
1230 ],
1231 &quot;signatureRrdatas&quot;: [ # DNSSEC generated signatures for all the `rrdata` within this item. When using health-checked targets for DNSSEC-enabled zones, you can only use at most one health-checked IP address per item.
1232 &quot;A String&quot;,
1233 ],
1234 &quot;weight&quot;: 3.14, # The weight corresponding to this `WrrPolicyItem` object. When multiple `WrrPolicyItem` objects are configured, the probability of returning an `WrrPolicyItem` object&#x27;s data is proportional to its weight relative to the sum of weights configured for all items. This weight must be non-negative.
1235 },
1236 ],
1237 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyWrrPolicy&quot;,
1238 },
1239 },
1240 &quot;rrdatas&quot;: [ # As defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1) -- see examples.
1241 &quot;A String&quot;,
1242 ],
1243 &quot;signatureRrdatas&quot;: [ # As defined in RFC 4034 (section 3.2).
1244 &quot;A String&quot;,
1245 ],
1246 &quot;ttl&quot;: 42, # Number of seconds that this `ResourceRecordSet` can be cached by resolvers.
1247 &quot;type&quot;: &quot;A String&quot;, # The identifier of a supported record type. See the list of Supported DNS record types.
1248 },
1249 ],
1250 },
1251 &quot;ruleName&quot;: &quot;A String&quot;, # An identifier for this rule. Must be unique with the ResponsePolicy.
1252 }
1253
1254 clientOperationId: string, For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
1255 x__xgafv: string, V1 error format.
1256 Allowed values
1257 1 - v1 error format
1258 2 - v2 error format
1259
1260 Returns:
1261 An object of the form:
1262
1263 {
1264 &quot;responsePolicyRule&quot;: { # A Response Policy Rule is a selector that applies its behavior to queries that match the selector. Selectors are DNS names, which may be wildcards or exact matches. Each DNS query subject to a Response Policy matches at most one ResponsePolicyRule, as identified by the dns_name field with the longest matching suffix.
1265 &quot;behavior&quot;: &quot;A String&quot;, # Answer this query with a behavior rather than DNS data.
1266 &quot;dnsName&quot;: &quot;A String&quot;, # The DNS name (wildcard or exact) to apply this rule to. Must be unique within the Response Policy Rule.
1267 &quot;kind&quot;: &quot;dns#responsePolicyRule&quot;,
1268 &quot;localData&quot;: { # Answer this query directly with DNS data. These ResourceRecordSets override any other DNS behavior for the matched name; in particular they override private zones, the public internet, and GCP internal DNS. No SOA nor NS types are allowed.
1269 &quot;localDatas&quot;: [ # All resource record sets for this selector, one per resource record type. The name must match the dns_name.
1270 { # A unit of data that is returned by the DNS servers.
1271 &quot;kind&quot;: &quot;dns#resourceRecordSet&quot;,
1272 &quot;name&quot;: &quot;A String&quot;, # For example, www.example.com.
1273 &quot;routingPolicy&quot;: { # 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).
1274 &quot;geo&quot;: { # Configures a `RRSetRoutingPolicy` that routes based on the geo location of the querying user.
1275 &quot;enableFencing&quot;: 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&#x27;t failover to the next nearest bucket; instead, we return all the items in the current bucket even when all targets are unhealthy.
1276 &quot;items&quot;: [ # The primary geo routing configuration. If there are multiple items with the same location, an error is returned instead.
1277 { # ResourceRecordSet data for one geo location.
1278 &quot;healthCheckedTargets&quot;: { # HealthCheckTargets describes endpoints to health-check when responding to Routing Policy queries. Only the healthy endpoints will be included in the response. Set either `internal_load_balancer` or `external_endpoints`. Do not set both. # 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.
1279 &quot;externalEndpoints&quot;: [ # 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)
1280 &quot;A String&quot;,
1281 ],
1282 &quot;internalLoadBalancers&quot;: [ # Configuration for internal load balancers to be health checked.
1283 { # The configuration for an individual load balancer to health check.
1284 &quot;ipAddress&quot;: &quot;A String&quot;, # The frontend IP address of the load balancer to health check.
1285 &quot;ipProtocol&quot;: &quot;A String&quot;, # The protocol of the load balancer to health check.
1286 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyLoadBalancerTarget&quot;,
1287 &quot;loadBalancerType&quot;: &quot;A String&quot;, # The type of load balancer specified by this target. This value must match the configuration of the load balancer located at the LoadBalancerTarget&#x27;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.
1288 &quot;networkUrl&quot;: &quot;A String&quot;, # 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}`.
1289 &quot;port&quot;: &quot;A String&quot;, # The configured port of the load balancer.
1290 &quot;project&quot;: &quot;A String&quot;, # The project ID in which the load balancer is located.
1291 &quot;region&quot;: &quot;A String&quot;, # The region in which the load balancer is located.
1292 },
1293 ],
1294 },
1295 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicyGeoPolicyItem&quot;,
1296 &quot;location&quot;: &quot;A String&quot;, # The geo-location granularity is a GCP region. This location string should correspond to a GCP region. e.g. &quot;us-east1&quot;, &quot;southamerica-east1&quot;, &quot;asia-east1&quot;, etc.
1297 &quot;rrdatas&quot;: [
1298 &quot;A String&quot;,
1299 ],
1300 &quot;signatureRrdatas&quot;: [ # DNSSEC generated signatures for all the `rrdata` within this item. When using health-checked targets for DNSSEC-enabled zones, you can only use at most one health-checked IP address per item.
1301 &quot;A String&quot;,
1302 ],
1303 },
1304 ],
1305 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicy&quot;,
1306 },
1307 &quot;healthCheck&quot;: &quot;A String&quot;, # The fully qualified URL of the HealthCheck to use for this RRSetRoutingPolicy. Format this URL like `https://www.googleapis.com/compute/v1/projects/{project}/global/healthChecks/{healthCheck}`. https://cloud.google.com/compute/docs/reference/rest/v1/healthChecks
1308 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicy&quot;,
1309 &quot;primaryBackup&quot;: { # 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.
1310 &quot;backupGeoTargets&quot;: { # 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.
1311 &quot;enableFencing&quot;: 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&#x27;t failover to the next nearest bucket; instead, we return all the items in the current bucket even when all targets are unhealthy.
1312 &quot;items&quot;: [ # The primary geo routing configuration. If there are multiple items with the same location, an error is returned instead.
1313 { # ResourceRecordSet data for one geo location.
1314 &quot;healthCheckedTargets&quot;: { # HealthCheckTargets describes endpoints to health-check when responding to Routing Policy queries. Only the healthy endpoints will be included in the response. Set either `internal_load_balancer` or `external_endpoints`. Do not set both. # 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.
1315 &quot;externalEndpoints&quot;: [ # 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)
1316 &quot;A String&quot;,
1317 ],
1318 &quot;internalLoadBalancers&quot;: [ # Configuration for internal load balancers to be health checked.
1319 { # The configuration for an individual load balancer to health check.
1320 &quot;ipAddress&quot;: &quot;A String&quot;, # The frontend IP address of the load balancer to health check.
1321 &quot;ipProtocol&quot;: &quot;A String&quot;, # The protocol of the load balancer to health check.
1322 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyLoadBalancerTarget&quot;,
1323 &quot;loadBalancerType&quot;: &quot;A String&quot;, # The type of load balancer specified by this target. This value must match the configuration of the load balancer located at the LoadBalancerTarget&#x27;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.
1324 &quot;networkUrl&quot;: &quot;A String&quot;, # 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}`.
1325 &quot;port&quot;: &quot;A String&quot;, # The configured port of the load balancer.
1326 &quot;project&quot;: &quot;A String&quot;, # The project ID in which the load balancer is located.
1327 &quot;region&quot;: &quot;A String&quot;, # The region in which the load balancer is located.
1328 },
1329 ],
1330 },
1331 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicyGeoPolicyItem&quot;,
1332 &quot;location&quot;: &quot;A String&quot;, # The geo-location granularity is a GCP region. This location string should correspond to a GCP region. e.g. &quot;us-east1&quot;, &quot;southamerica-east1&quot;, &quot;asia-east1&quot;, etc.
1333 &quot;rrdatas&quot;: [
1334 &quot;A String&quot;,
1335 ],
1336 &quot;signatureRrdatas&quot;: [ # DNSSEC generated signatures for all the `rrdata` within this item. When using health-checked targets for DNSSEC-enabled zones, you can only use at most one health-checked IP address per item.
1337 &quot;A String&quot;,
1338 ],
1339 },
1340 ],
1341 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicy&quot;,
1342 },
1343 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyPrimaryBackupPolicy&quot;,
1344 &quot;primaryTargets&quot;: { # HealthCheckTargets describes endpoints to health-check when responding to Routing Policy queries. Only the healthy endpoints will be included in the response. Set either `internal_load_balancer` or `external_endpoints`. Do not set both. # 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`.
1345 &quot;externalEndpoints&quot;: [ # 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)
1346 &quot;A String&quot;,
1347 ],
1348 &quot;internalLoadBalancers&quot;: [ # Configuration for internal load balancers to be health checked.
1349 { # The configuration for an individual load balancer to health check.
1350 &quot;ipAddress&quot;: &quot;A String&quot;, # The frontend IP address of the load balancer to health check.
1351 &quot;ipProtocol&quot;: &quot;A String&quot;, # The protocol of the load balancer to health check.
1352 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyLoadBalancerTarget&quot;,
1353 &quot;loadBalancerType&quot;: &quot;A String&quot;, # The type of load balancer specified by this target. This value must match the configuration of the load balancer located at the LoadBalancerTarget&#x27;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.
1354 &quot;networkUrl&quot;: &quot;A String&quot;, # 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}`.
1355 &quot;port&quot;: &quot;A String&quot;, # The configured port of the load balancer.
1356 &quot;project&quot;: &quot;A String&quot;, # The project ID in which the load balancer is located.
1357 &quot;region&quot;: &quot;A String&quot;, # The region in which the load balancer is located.
1358 },
1359 ],
1360 },
1361 &quot;trickleTraffic&quot;: 3.14, # When serving state is `PRIMARY`, this field provides the option of sending a small percentage of the traffic to the backup targets.
1362 },
1363 &quot;wrr&quot;: { # Configures a RRSetRoutingPolicy that routes in a weighted round robin fashion.
1364 &quot;items&quot;: [
1365 { # A routing block which contains the routing information for one WRR item.
1366 &quot;healthCheckedTargets&quot;: { # HealthCheckTargets describes endpoints to health-check when responding to Routing Policy queries. Only the healthy endpoints will be included in the response. Set either `internal_load_balancer` or `external_endpoints`. Do not set both. # 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.
1367 &quot;externalEndpoints&quot;: [ # 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)
1368 &quot;A String&quot;,
1369 ],
1370 &quot;internalLoadBalancers&quot;: [ # Configuration for internal load balancers to be health checked.
1371 { # The configuration for an individual load balancer to health check.
1372 &quot;ipAddress&quot;: &quot;A String&quot;, # The frontend IP address of the load balancer to health check.
1373 &quot;ipProtocol&quot;: &quot;A String&quot;, # The protocol of the load balancer to health check.
1374 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyLoadBalancerTarget&quot;,
1375 &quot;loadBalancerType&quot;: &quot;A String&quot;, # The type of load balancer specified by this target. This value must match the configuration of the load balancer located at the LoadBalancerTarget&#x27;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.
1376 &quot;networkUrl&quot;: &quot;A String&quot;, # 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}`.
1377 &quot;port&quot;: &quot;A String&quot;, # The configured port of the load balancer.
1378 &quot;project&quot;: &quot;A String&quot;, # The project ID in which the load balancer is located.
1379 &quot;region&quot;: &quot;A String&quot;, # The region in which the load balancer is located.
1380 },
1381 ],
1382 },
1383 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyWrrPolicyWrrPolicyItem&quot;,
1384 &quot;rrdatas&quot;: [
1385 &quot;A String&quot;,
1386 ],
1387 &quot;signatureRrdatas&quot;: [ # DNSSEC generated signatures for all the `rrdata` within this item. When using health-checked targets for DNSSEC-enabled zones, you can only use at most one health-checked IP address per item.
1388 &quot;A String&quot;,
1389 ],
1390 &quot;weight&quot;: 3.14, # The weight corresponding to this `WrrPolicyItem` object. When multiple `WrrPolicyItem` objects are configured, the probability of returning an `WrrPolicyItem` object&#x27;s data is proportional to its weight relative to the sum of weights configured for all items. This weight must be non-negative.
1391 },
1392 ],
1393 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyWrrPolicy&quot;,
1394 },
1395 },
1396 &quot;rrdatas&quot;: [ # As defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1) -- see examples.
1397 &quot;A String&quot;,
1398 ],
1399 &quot;signatureRrdatas&quot;: [ # As defined in RFC 4034 (section 3.2).
1400 &quot;A String&quot;,
1401 ],
1402 &quot;ttl&quot;: 42, # Number of seconds that this `ResourceRecordSet` can be cached by resolvers.
1403 &quot;type&quot;: &quot;A String&quot;, # The identifier of a supported record type. See the list of Supported DNS record types.
1404 },
1405 ],
1406 },
1407 &quot;ruleName&quot;: &quot;A String&quot;, # An identifier for this rule. Must be unique with the ResponsePolicy.
1408 },
1409 }</pre>
1410 </div>
1411
1412 </body></html>