Debian Codegraph @

docs/dyn/dns_v1beta2.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_v1beta2.html">Cloud DNS API</a> . <a href="dns_v1beta2.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;geoPolicy&quot;: { # Configures a `RRSetRoutingPolicy` that routes based on the geo location of the querying user.
161 &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.
162 &quot;items&quot;: [ # The primary geo routing configuration. If there are multiple items with the same location, an error is returned instead.
163 { # ResourceRecordSet data for one geo location.
164 &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.
165 &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)
166 &quot;A String&quot;,
167 ],
168 &quot;internalLoadBalancers&quot;: [ # Configuration for internal load balancers to be health checked.
169 { # The configuration for an individual load balancer to health check.
170 &quot;ipAddress&quot;: &quot;A String&quot;, # The frontend IP address of the load balancer to health check.
171 &quot;ipProtocol&quot;: &quot;A String&quot;, # The protocol of the load balancer to health check.
172 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyLoadBalancerTarget&quot;,
173 &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.
174 &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}`.
175 &quot;port&quot;: &quot;A String&quot;, # The configured port of the load balancer.
176 &quot;project&quot;: &quot;A String&quot;, # The project ID in which the load balancer is located.
177 &quot;region&quot;: &quot;A String&quot;, # The region in which the load balancer is located.
178 },
179 ],
180 },
181 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicyGeoPolicyItem&quot;,
182 &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.
183 &quot;rrdatas&quot;: [
184 &quot;A String&quot;,
185 ],
186 &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.
187 &quot;A String&quot;,
188 ],
189 },
190 ],
191 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicy&quot;,
192 },
193 &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
194 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicy&quot;,
195 &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.
196 &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.
197 &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.
198 &quot;items&quot;: [ # The primary geo routing configuration. If there are multiple items with the same location, an error is returned instead.
199 { # ResourceRecordSet data for one geo location.
200 &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.
201 &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)
202 &quot;A String&quot;,
203 ],
204 &quot;internalLoadBalancers&quot;: [ # Configuration for internal load balancers to be health checked.
205 { # The configuration for an individual load balancer to health check.
206 &quot;ipAddress&quot;: &quot;A String&quot;, # The frontend IP address of the load balancer to health check.
207 &quot;ipProtocol&quot;: &quot;A String&quot;, # The protocol of the load balancer to health check.
208 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyLoadBalancerTarget&quot;,
209 &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.
210 &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}`.
211 &quot;port&quot;: &quot;A String&quot;, # The configured port of the load balancer.
212 &quot;project&quot;: &quot;A String&quot;, # The project ID in which the load balancer is located.
213 &quot;region&quot;: &quot;A String&quot;, # The region in which the load balancer is located.
214 },
215 ],
216 },
217 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicyGeoPolicyItem&quot;,
218 &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.
219 &quot;rrdatas&quot;: [
220 &quot;A String&quot;,
221 ],
222 &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.
223 &quot;A String&quot;,
224 ],
225 },
226 ],
227 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicy&quot;,
228 },
229 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyPrimaryBackupPolicy&quot;,
230 &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`.
231 &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)
232 &quot;A String&quot;,
233 ],
234 &quot;internalLoadBalancers&quot;: [ # Configuration for internal load balancers to be health checked.
235 { # The configuration for an individual load balancer to health check.
236 &quot;ipAddress&quot;: &quot;A String&quot;, # The frontend IP address of the load balancer to health check.
237 &quot;ipProtocol&quot;: &quot;A String&quot;, # The protocol of the load balancer to health check.
238 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyLoadBalancerTarget&quot;,
239 &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.
240 &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}`.
241 &quot;port&quot;: &quot;A String&quot;, # The configured port of the load balancer.
242 &quot;project&quot;: &quot;A String&quot;, # The project ID in which the load balancer is located.
243 &quot;region&quot;: &quot;A String&quot;, # The region in which the load balancer is located.
244 },
245 ],
246 },
247 &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.
248 },
249 &quot;wrr&quot;: { # Configures a RRSetRoutingPolicy that routes in a weighted round robin fashion.
250 &quot;items&quot;: [
251 { # A routing block which contains the routing information for one WRR item.
252 &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.
253 &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)
254 &quot;A String&quot;,
255 ],
256 &quot;internalLoadBalancers&quot;: [ # Configuration for internal load balancers to be health checked.
257 { # The configuration for an individual load balancer to health check.
258 &quot;ipAddress&quot;: &quot;A String&quot;, # The frontend IP address of the load balancer to health check.
259 &quot;ipProtocol&quot;: &quot;A String&quot;, # The protocol of the load balancer to health check.
260 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyLoadBalancerTarget&quot;,
261 &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.
262 &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}`.
263 &quot;port&quot;: &quot;A String&quot;, # The configured port of the load balancer.
264 &quot;project&quot;: &quot;A String&quot;, # The project ID in which the load balancer is located.
265 &quot;region&quot;: &quot;A String&quot;, # The region in which the load balancer is located.
266 },
267 ],
268 },
269 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyWrrPolicyWrrPolicyItem&quot;,
270 &quot;rrdatas&quot;: [
271 &quot;A String&quot;,
272 ],
273 &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.
274 &quot;A String&quot;,
275 ],
276 &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.
277 },
278 ],
279 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyWrrPolicy&quot;,
280 },
281 &quot;wrrPolicy&quot;: { # Configures a RRSetRoutingPolicy that routes in a weighted round robin fashion.
282 &quot;items&quot;: [
283 { # A routing block which contains the routing information for one WRR item.
284 &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.
285 &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)
286 &quot;A String&quot;,
287 ],
288 &quot;internalLoadBalancers&quot;: [ # Configuration for internal load balancers to be health checked.
289 { # The configuration for an individual load balancer to health check.
290 &quot;ipAddress&quot;: &quot;A String&quot;, # The frontend IP address of the load balancer to health check.
291 &quot;ipProtocol&quot;: &quot;A String&quot;, # The protocol of the load balancer to health check.
292 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyLoadBalancerTarget&quot;,
293 &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.
294 &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}`.
295 &quot;port&quot;: &quot;A String&quot;, # The configured port of the load balancer.
296 &quot;project&quot;: &quot;A String&quot;, # The project ID in which the load balancer is located.
297 &quot;region&quot;: &quot;A String&quot;, # The region in which the load balancer is located.
298 },
299 ],
300 },
301 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyWrrPolicyWrrPolicyItem&quot;,
302 &quot;rrdatas&quot;: [
303 &quot;A String&quot;,
304 ],
305 &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.
306 &quot;A String&quot;,
307 ],
308 &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.
309 },
310 ],
311 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyWrrPolicy&quot;,
312 },
313 },
314 &quot;rrdatas&quot;: [ # As defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1) -- see examples.
315 &quot;A String&quot;,
316 ],
317 &quot;signatureRrdatas&quot;: [ # As defined in RFC 4034 (section 3.2).
318 &quot;A String&quot;,
319 ],
320 &quot;ttl&quot;: 42, # Number of seconds that this `ResourceRecordSet` can be cached by resolvers.
321 &quot;type&quot;: &quot;A String&quot;, # The identifier of a supported record type. See the list of Supported DNS record types.
322 },
323 ],
324 },
325 &quot;ruleName&quot;: &quot;A String&quot;, # An identifier for this rule. Must be unique with the ResponsePolicy.
326 }
327
328 clientOperationId: string, For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
329 x__xgafv: string, V1 error format.
330 Allowed values
331 1 - v1 error format
332 2 - v2 error format
333
334 Returns:
335 An object of the form:
336
337 { # 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.
338 &quot;behavior&quot;: &quot;A String&quot;, # Answer this query with a behavior rather than DNS data.
339 &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.
340 &quot;kind&quot;: &quot;dns#responsePolicyRule&quot;,
341 &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.
342 &quot;localDatas&quot;: [ # All resource record sets for this selector, one per resource record type. The name must match the dns_name.
343 { # A unit of data that is returned by the DNS servers.
344 &quot;kind&quot;: &quot;dns#resourceRecordSet&quot;,
345 &quot;name&quot;: &quot;A String&quot;, # For example, www.example.com.
346 &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).
347 &quot;geo&quot;: { # Configures a `RRSetRoutingPolicy` that routes based on the geo location of the querying user.
348 &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.
349 &quot;items&quot;: [ # The primary geo routing configuration. If there are multiple items with the same location, an error is returned instead.
350 { # ResourceRecordSet data for one geo location.
351 &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.
352 &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)
353 &quot;A String&quot;,
354 ],
355 &quot;internalLoadBalancers&quot;: [ # Configuration for internal load balancers to be health checked.
356 { # The configuration for an individual load balancer to health check.
357 &quot;ipAddress&quot;: &quot;A String&quot;, # The frontend IP address of the load balancer to health check.
358 &quot;ipProtocol&quot;: &quot;A String&quot;, # The protocol of the load balancer to health check.
359 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyLoadBalancerTarget&quot;,
360 &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.
361 &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}`.
362 &quot;port&quot;: &quot;A String&quot;, # The configured port of the load balancer.
363 &quot;project&quot;: &quot;A String&quot;, # The project ID in which the load balancer is located.
364 &quot;region&quot;: &quot;A String&quot;, # The region in which the load balancer is located.
365 },
366 ],
367 },
368 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicyGeoPolicyItem&quot;,
369 &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.
370 &quot;rrdatas&quot;: [
371 &quot;A String&quot;,
372 ],
373 &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.
374 &quot;A String&quot;,
375 ],
376 },
377 ],
378 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicy&quot;,
379 },
380 &quot;geoPolicy&quot;: { # Configures a `RRSetRoutingPolicy` that routes based on the geo location of the querying user.
381 &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.
382 &quot;items&quot;: [ # The primary geo routing configuration. If there are multiple items with the same location, an error is returned instead.
383 { # ResourceRecordSet data for one geo location.
384 &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.
385 &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)
386 &quot;A String&quot;,
387 ],
388 &quot;internalLoadBalancers&quot;: [ # Configuration for internal load balancers to be health checked.
389 { # The configuration for an individual load balancer to health check.
390 &quot;ipAddress&quot;: &quot;A String&quot;, # The frontend IP address of the load balancer to health check.
391 &quot;ipProtocol&quot;: &quot;A String&quot;, # The protocol of the load balancer to health check.
392 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyLoadBalancerTarget&quot;,
393 &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.
394 &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}`.
395 &quot;port&quot;: &quot;A String&quot;, # The configured port of the load balancer.
396 &quot;project&quot;: &quot;A String&quot;, # The project ID in which the load balancer is located.
397 &quot;region&quot;: &quot;A String&quot;, # The region in which the load balancer is located.
398 },
399 ],
400 },
401 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicyGeoPolicyItem&quot;,
402 &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.
403 &quot;rrdatas&quot;: [
404 &quot;A String&quot;,
405 ],
406 &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.
407 &quot;A String&quot;,
408 ],
409 },
410 ],
411 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicy&quot;,
412 },
413 &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
414 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicy&quot;,
415 &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.
416 &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.
417 &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.
418 &quot;items&quot;: [ # The primary geo routing configuration. If there are multiple items with the same location, an error is returned instead.
419 { # ResourceRecordSet data for one geo location.
420 &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.
421 &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)
422 &quot;A String&quot;,
423 ],
424 &quot;internalLoadBalancers&quot;: [ # Configuration for internal load balancers to be health checked.
425 { # The configuration for an individual load balancer to health check.
426 &quot;ipAddress&quot;: &quot;A String&quot;, # The frontend IP address of the load balancer to health check.
427 &quot;ipProtocol&quot;: &quot;A String&quot;, # The protocol of the load balancer to health check.
428 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyLoadBalancerTarget&quot;,
429 &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.
430 &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}`.
431 &quot;port&quot;: &quot;A String&quot;, # The configured port of the load balancer.
432 &quot;project&quot;: &quot;A String&quot;, # The project ID in which the load balancer is located.
433 &quot;region&quot;: &quot;A String&quot;, # The region in which the load balancer is located.
434 },
435 ],
436 },
437 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicyGeoPolicyItem&quot;,
438 &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.
439 &quot;rrdatas&quot;: [
440 &quot;A String&quot;,
441 ],
442 &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.
443 &quot;A String&quot;,
444 ],
445 },
446 ],
447 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicy&quot;,
448 },
449 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyPrimaryBackupPolicy&quot;,
450 &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`.
451 &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)
452 &quot;A String&quot;,
453 ],
454 &quot;internalLoadBalancers&quot;: [ # Configuration for internal load balancers to be health checked.
455 { # The configuration for an individual load balancer to health check.
456 &quot;ipAddress&quot;: &quot;A String&quot;, # The frontend IP address of the load balancer to health check.
457 &quot;ipProtocol&quot;: &quot;A String&quot;, # The protocol of the load balancer to health check.
458 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyLoadBalancerTarget&quot;,
459 &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.
460 &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}`.
461 &quot;port&quot;: &quot;A String&quot;, # The configured port of the load balancer.
462 &quot;project&quot;: &quot;A String&quot;, # The project ID in which the load balancer is located.
463 &quot;region&quot;: &quot;A String&quot;, # The region in which the load balancer is located.
464 },
465 ],
466 },
467 &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.
468 },
469 &quot;wrr&quot;: { # Configures a RRSetRoutingPolicy that routes in a weighted round robin fashion.
470 &quot;items&quot;: [
471 { # A routing block which contains the routing information for one WRR item.
472 &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.
473 &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)
474 &quot;A String&quot;,
475 ],
476 &quot;internalLoadBalancers&quot;: [ # Configuration for internal load balancers to be health checked.
477 { # The configuration for an individual load balancer to health check.
478 &quot;ipAddress&quot;: &quot;A String&quot;, # The frontend IP address of the load balancer to health check.
479 &quot;ipProtocol&quot;: &quot;A String&quot;, # The protocol of the load balancer to health check.
480 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyLoadBalancerTarget&quot;,
481 &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.
482 &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}`.
483 &quot;port&quot;: &quot;A String&quot;, # The configured port of the load balancer.
484 &quot;project&quot;: &quot;A String&quot;, # The project ID in which the load balancer is located.
485 &quot;region&quot;: &quot;A String&quot;, # The region in which the load balancer is located.
486 },
487 ],
488 },
489 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyWrrPolicyWrrPolicyItem&quot;,
490 &quot;rrdatas&quot;: [
491 &quot;A String&quot;,
492 ],
493 &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.
494 &quot;A String&quot;,
495 ],
496 &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.
497 },
498 ],
499 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyWrrPolicy&quot;,
500 },
501 &quot;wrrPolicy&quot;: { # Configures a RRSetRoutingPolicy that routes in a weighted round robin fashion.
502 &quot;items&quot;: [
503 { # A routing block which contains the routing information for one WRR item.
504 &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.
505 &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)
506 &quot;A String&quot;,
507 ],
508 &quot;internalLoadBalancers&quot;: [ # Configuration for internal load balancers to be health checked.
509 { # The configuration for an individual load balancer to health check.
510 &quot;ipAddress&quot;: &quot;A String&quot;, # The frontend IP address of the load balancer to health check.
511 &quot;ipProtocol&quot;: &quot;A String&quot;, # The protocol of the load balancer to health check.
512 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyLoadBalancerTarget&quot;,
513 &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.
514 &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}`.
515 &quot;port&quot;: &quot;A String&quot;, # The configured port of the load balancer.
516 &quot;project&quot;: &quot;A String&quot;, # The project ID in which the load balancer is located.
517 &quot;region&quot;: &quot;A String&quot;, # The region in which the load balancer is located.
518 },
519 ],
520 },
521 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyWrrPolicyWrrPolicyItem&quot;,
522 &quot;rrdatas&quot;: [
523 &quot;A String&quot;,
524 ],
525 &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.
526 &quot;A String&quot;,
527 ],
528 &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.
529 },
530 ],
531 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyWrrPolicy&quot;,
532 },
533 },
534 &quot;rrdatas&quot;: [ # As defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1) -- see examples.
535 &quot;A String&quot;,
536 ],
537 &quot;signatureRrdatas&quot;: [ # As defined in RFC 4034 (section 3.2).
538 &quot;A String&quot;,
539 ],
540 &quot;ttl&quot;: 42, # Number of seconds that this `ResourceRecordSet` can be cached by resolvers.
541 &quot;type&quot;: &quot;A String&quot;, # The identifier of a supported record type. See the list of Supported DNS record types.
542 },
543 ],
544 },
545 &quot;ruleName&quot;: &quot;A String&quot;, # An identifier for this rule. Must be unique with the ResponsePolicy.
546 }</pre>
547 </div>
548
549 <div class="method">
550 <code class="details" id="delete">delete(project, responsePolicy, responsePolicyRule, clientOperationId=None, x__xgafv=None)</code>
551 <pre>Deletes a previously created Response Policy Rule.
552
553 Args:
554 project: string, Identifies the project addressed by this request. (required)
555 responsePolicy: string, User assigned name of the Response Policy containing the Response Policy Rule. (required)
556 responsePolicyRule: string, User assigned name of the Response Policy Rule addressed by this request. (required)
557 clientOperationId: string, For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
558 x__xgafv: string, V1 error format.
559 Allowed values
560 1 - v1 error format
561 2 - v2 error format
562 </pre>
563 </div>
564
565 <div class="method">
566 <code class="details" id="get">get(project, responsePolicy, responsePolicyRule, clientOperationId=None, x__xgafv=None)</code>
567 <pre>Fetches the representation of an existing Response Policy Rule.
568
569 Args:
570 project: string, Identifies the project addressed by this request. (required)
571 responsePolicy: string, User assigned name of the Response Policy containing the Response Policy Rule. (required)
572 responsePolicyRule: string, User assigned name of the Response Policy Rule addressed by this request. (required)
573 clientOperationId: string, For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
574 x__xgafv: string, V1 error format.
575 Allowed values
576 1 - v1 error format
577 2 - v2 error format
578
579 Returns:
580 An object of the form:
581
582 { # 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.
583 &quot;behavior&quot;: &quot;A String&quot;, # Answer this query with a behavior rather than DNS data.
584 &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.
585 &quot;kind&quot;: &quot;dns#responsePolicyRule&quot;,
586 &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.
587 &quot;localDatas&quot;: [ # All resource record sets for this selector, one per resource record type. The name must match the dns_name.
588 { # A unit of data that is returned by the DNS servers.
589 &quot;kind&quot;: &quot;dns#resourceRecordSet&quot;,
590 &quot;name&quot;: &quot;A String&quot;, # For example, www.example.com.
591 &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).
592 &quot;geo&quot;: { # Configures a `RRSetRoutingPolicy` that routes based on the geo location of the querying user.
593 &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.
594 &quot;items&quot;: [ # The primary geo routing configuration. If there are multiple items with the same location, an error is returned instead.
595 { # ResourceRecordSet data for one geo location.
596 &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.
597 &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)
598 &quot;A String&quot;,
599 ],
600 &quot;internalLoadBalancers&quot;: [ # Configuration for internal load balancers to be health checked.
601 { # The configuration for an individual load balancer to health check.
602 &quot;ipAddress&quot;: &quot;A String&quot;, # The frontend IP address of the load balancer to health check.
603 &quot;ipProtocol&quot;: &quot;A String&quot;, # The protocol of the load balancer to health check.
604 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyLoadBalancerTarget&quot;,
605 &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.
606 &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}`.
607 &quot;port&quot;: &quot;A String&quot;, # The configured port of the load balancer.
608 &quot;project&quot;: &quot;A String&quot;, # The project ID in which the load balancer is located.
609 &quot;region&quot;: &quot;A String&quot;, # The region in which the load balancer is located.
610 },
611 ],
612 },
613 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicyGeoPolicyItem&quot;,
614 &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.
615 &quot;rrdatas&quot;: [
616 &quot;A String&quot;,
617 ],
618 &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.
619 &quot;A String&quot;,
620 ],
621 },
622 ],
623 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicy&quot;,
624 },
625 &quot;geoPolicy&quot;: { # Configures a `RRSetRoutingPolicy` that routes based on the geo location of the querying user.
626 &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.
627 &quot;items&quot;: [ # The primary geo routing configuration. If there are multiple items with the same location, an error is returned instead.
628 { # ResourceRecordSet data for one geo location.
629 &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.
630 &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)
631 &quot;A String&quot;,
632 ],
633 &quot;internalLoadBalancers&quot;: [ # Configuration for internal load balancers to be health checked.
634 { # The configuration for an individual load balancer to health check.
635 &quot;ipAddress&quot;: &quot;A String&quot;, # The frontend IP address of the load balancer to health check.
636 &quot;ipProtocol&quot;: &quot;A String&quot;, # The protocol of the load balancer to health check.
637 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyLoadBalancerTarget&quot;,
638 &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.
639 &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}`.
640 &quot;port&quot;: &quot;A String&quot;, # The configured port of the load balancer.
641 &quot;project&quot;: &quot;A String&quot;, # The project ID in which the load balancer is located.
642 &quot;region&quot;: &quot;A String&quot;, # The region in which the load balancer is located.
643 },
644 ],
645 },
646 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicyGeoPolicyItem&quot;,
647 &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.
648 &quot;rrdatas&quot;: [
649 &quot;A String&quot;,
650 ],
651 &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.
652 &quot;A String&quot;,
653 ],
654 },
655 ],
656 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicy&quot;,
657 },
658 &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
659 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicy&quot;,
660 &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.
661 &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.
662 &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.
663 &quot;items&quot;: [ # The primary geo routing configuration. If there are multiple items with the same location, an error is returned instead.
664 { # ResourceRecordSet data for one geo location.
665 &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.
666 &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)
667 &quot;A String&quot;,
668 ],
669 &quot;internalLoadBalancers&quot;: [ # Configuration for internal load balancers to be health checked.
670 { # The configuration for an individual load balancer to health check.
671 &quot;ipAddress&quot;: &quot;A String&quot;, # The frontend IP address of the load balancer to health check.
672 &quot;ipProtocol&quot;: &quot;A String&quot;, # The protocol of the load balancer to health check.
673 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyLoadBalancerTarget&quot;,
674 &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.
675 &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}`.
676 &quot;port&quot;: &quot;A String&quot;, # The configured port of the load balancer.
677 &quot;project&quot;: &quot;A String&quot;, # The project ID in which the load balancer is located.
678 &quot;region&quot;: &quot;A String&quot;, # The region in which the load balancer is located.
679 },
680 ],
681 },
682 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicyGeoPolicyItem&quot;,
683 &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.
684 &quot;rrdatas&quot;: [
685 &quot;A String&quot;,
686 ],
687 &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.
688 &quot;A String&quot;,
689 ],
690 },
691 ],
692 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicy&quot;,
693 },
694 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyPrimaryBackupPolicy&quot;,
695 &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`.
696 &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)
697 &quot;A String&quot;,
698 ],
699 &quot;internalLoadBalancers&quot;: [ # Configuration for internal load balancers to be health checked.
700 { # The configuration for an individual load balancer to health check.
701 &quot;ipAddress&quot;: &quot;A String&quot;, # The frontend IP address of the load balancer to health check.
702 &quot;ipProtocol&quot;: &quot;A String&quot;, # The protocol of the load balancer to health check.
703 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyLoadBalancerTarget&quot;,
704 &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.
705 &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}`.
706 &quot;port&quot;: &quot;A String&quot;, # The configured port of the load balancer.
707 &quot;project&quot;: &quot;A String&quot;, # The project ID in which the load balancer is located.
708 &quot;region&quot;: &quot;A String&quot;, # The region in which the load balancer is located.
709 },
710 ],
711 },
712 &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.
713 },
714 &quot;wrr&quot;: { # Configures a RRSetRoutingPolicy that routes in a weighted round robin fashion.
715 &quot;items&quot;: [
716 { # A routing block which contains the routing information for one WRR item.
717 &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.
718 &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)
719 &quot;A String&quot;,
720 ],
721 &quot;internalLoadBalancers&quot;: [ # Configuration for internal load balancers to be health checked.
722 { # The configuration for an individual load balancer to health check.
723 &quot;ipAddress&quot;: &quot;A String&quot;, # The frontend IP address of the load balancer to health check.
724 &quot;ipProtocol&quot;: &quot;A String&quot;, # The protocol of the load balancer to health check.
725 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyLoadBalancerTarget&quot;,
726 &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.
727 &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}`.
728 &quot;port&quot;: &quot;A String&quot;, # The configured port of the load balancer.
729 &quot;project&quot;: &quot;A String&quot;, # The project ID in which the load balancer is located.
730 &quot;region&quot;: &quot;A String&quot;, # The region in which the load balancer is located.
731 },
732 ],
733 },
734 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyWrrPolicyWrrPolicyItem&quot;,
735 &quot;rrdatas&quot;: [
736 &quot;A String&quot;,
737 ],
738 &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.
739 &quot;A String&quot;,
740 ],
741 &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.
742 },
743 ],
744 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyWrrPolicy&quot;,
745 },
746 &quot;wrrPolicy&quot;: { # Configures a RRSetRoutingPolicy that routes in a weighted round robin fashion.
747 &quot;items&quot;: [
748 { # A routing block which contains the routing information for one WRR item.
749 &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.
750 &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)
751 &quot;A String&quot;,
752 ],
753 &quot;internalLoadBalancers&quot;: [ # Configuration for internal load balancers to be health checked.
754 { # The configuration for an individual load balancer to health check.
755 &quot;ipAddress&quot;: &quot;A String&quot;, # The frontend IP address of the load balancer to health check.
756 &quot;ipProtocol&quot;: &quot;A String&quot;, # The protocol of the load balancer to health check.
757 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyLoadBalancerTarget&quot;,
758 &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.
759 &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}`.
760 &quot;port&quot;: &quot;A String&quot;, # The configured port of the load balancer.
761 &quot;project&quot;: &quot;A String&quot;, # The project ID in which the load balancer is located.
762 &quot;region&quot;: &quot;A String&quot;, # The region in which the load balancer is located.
763 },
764 ],
765 },
766 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyWrrPolicyWrrPolicyItem&quot;,
767 &quot;rrdatas&quot;: [
768 &quot;A String&quot;,
769 ],
770 &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.
771 &quot;A String&quot;,
772 ],
773 &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.
774 },
775 ],
776 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyWrrPolicy&quot;,
777 },
778 },
779 &quot;rrdatas&quot;: [ # As defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1) -- see examples.
780 &quot;A String&quot;,
781 ],
782 &quot;signatureRrdatas&quot;: [ # As defined in RFC 4034 (section 3.2).
783 &quot;A String&quot;,
784 ],
785 &quot;ttl&quot;: 42, # Number of seconds that this `ResourceRecordSet` can be cached by resolvers.
786 &quot;type&quot;: &quot;A String&quot;, # The identifier of a supported record type. See the list of Supported DNS record types.
787 },
788 ],
789 },
790 &quot;ruleName&quot;: &quot;A String&quot;, # An identifier for this rule. Must be unique with the ResponsePolicy.
791 }</pre>
792 </div>
793
794 <div class="method">
795 <code class="details" id="list">list(project, responsePolicy, maxResults=None, pageToken=None, x__xgafv=None)</code>
796 <pre>Enumerates all Response Policy Rules associated with a project.
797
798 Args:
799 project: string, Identifies the project addressed by this request. (required)
800 responsePolicy: string, User assigned name of the Response Policy to list. (required)
801 maxResults: integer, Optional. Maximum number of results to be returned. If unspecified, the server decides how many results to return.
802 pageToken: string, Optional. A tag returned by a previous list request that was truncated. Use this parameter to continue a previous list request.
803 x__xgafv: string, V1 error format.
804 Allowed values
805 1 - v1 error format
806 2 - v2 error format
807
808 Returns:
809 An object of the form:
810
811 {
812 &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.
813 &quot;responsePolicyRules&quot;: [ # The Response Policy Rule resources.
814 { # 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.
815 &quot;behavior&quot;: &quot;A String&quot;, # Answer this query with a behavior rather than DNS data.
816 &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.
817 &quot;kind&quot;: &quot;dns#responsePolicyRule&quot;,
818 &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.
819 &quot;localDatas&quot;: [ # All resource record sets for this selector, one per resource record type. The name must match the dns_name.
820 { # A unit of data that is returned by the DNS servers.
821 &quot;kind&quot;: &quot;dns#resourceRecordSet&quot;,
822 &quot;name&quot;: &quot;A String&quot;, # For example, www.example.com.
823 &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).
824 &quot;geo&quot;: { # Configures a `RRSetRoutingPolicy` that routes based on the geo location of the querying user.
825 &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.
826 &quot;items&quot;: [ # The primary geo routing configuration. If there are multiple items with the same location, an error is returned instead.
827 { # ResourceRecordSet data for one geo location.
828 &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.
829 &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)
830 &quot;A String&quot;,
831 ],
832 &quot;internalLoadBalancers&quot;: [ # Configuration for internal load balancers to be health checked.
833 { # The configuration for an individual load balancer to health check.
834 &quot;ipAddress&quot;: &quot;A String&quot;, # The frontend IP address of the load balancer to health check.
835 &quot;ipProtocol&quot;: &quot;A String&quot;, # The protocol of the load balancer to health check.
836 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyLoadBalancerTarget&quot;,
837 &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.
838 &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}`.
839 &quot;port&quot;: &quot;A String&quot;, # The configured port of the load balancer.
840 &quot;project&quot;: &quot;A String&quot;, # The project ID in which the load balancer is located.
841 &quot;region&quot;: &quot;A String&quot;, # The region in which the load balancer is located.
842 },
843 ],
844 },
845 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicyGeoPolicyItem&quot;,
846 &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.
847 &quot;rrdatas&quot;: [
848 &quot;A String&quot;,
849 ],
850 &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.
851 &quot;A String&quot;,
852 ],
853 },
854 ],
855 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicy&quot;,
856 },
857 &quot;geoPolicy&quot;: { # Configures a `RRSetRoutingPolicy` that routes based on the geo location of the querying user.
858 &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.
859 &quot;items&quot;: [ # The primary geo routing configuration. If there are multiple items with the same location, an error is returned instead.
860 { # ResourceRecordSet data for one geo location.
861 &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.
862 &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)
863 &quot;A String&quot;,
864 ],
865 &quot;internalLoadBalancers&quot;: [ # Configuration for internal load balancers to be health checked.
866 { # The configuration for an individual load balancer to health check.
867 &quot;ipAddress&quot;: &quot;A String&quot;, # The frontend IP address of the load balancer to health check.
868 &quot;ipProtocol&quot;: &quot;A String&quot;, # The protocol of the load balancer to health check.
869 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyLoadBalancerTarget&quot;,
870 &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.
871 &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}`.
872 &quot;port&quot;: &quot;A String&quot;, # The configured port of the load balancer.
873 &quot;project&quot;: &quot;A String&quot;, # The project ID in which the load balancer is located.
874 &quot;region&quot;: &quot;A String&quot;, # The region in which the load balancer is located.
875 },
876 ],
877 },
878 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicyGeoPolicyItem&quot;,
879 &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.
880 &quot;rrdatas&quot;: [
881 &quot;A String&quot;,
882 ],
883 &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.
884 &quot;A String&quot;,
885 ],
886 },
887 ],
888 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicy&quot;,
889 },
890 &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
891 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicy&quot;,
892 &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.
893 &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.
894 &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.
895 &quot;items&quot;: [ # The primary geo routing configuration. If there are multiple items with the same location, an error is returned instead.
896 { # ResourceRecordSet data for one geo location.
897 &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.
898 &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)
899 &quot;A String&quot;,
900 ],
901 &quot;internalLoadBalancers&quot;: [ # Configuration for internal load balancers to be health checked.
902 { # The configuration for an individual load balancer to health check.
903 &quot;ipAddress&quot;: &quot;A String&quot;, # The frontend IP address of the load balancer to health check.
904 &quot;ipProtocol&quot;: &quot;A String&quot;, # The protocol of the load balancer to health check.
905 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyLoadBalancerTarget&quot;,
906 &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.
907 &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}`.
908 &quot;port&quot;: &quot;A String&quot;, # The configured port of the load balancer.
909 &quot;project&quot;: &quot;A String&quot;, # The project ID in which the load balancer is located.
910 &quot;region&quot;: &quot;A String&quot;, # The region in which the load balancer is located.
911 },
912 ],
913 },
914 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicyGeoPolicyItem&quot;,
915 &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.
916 &quot;rrdatas&quot;: [
917 &quot;A String&quot;,
918 ],
919 &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.
920 &quot;A String&quot;,
921 ],
922 },
923 ],
924 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicy&quot;,
925 },
926 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyPrimaryBackupPolicy&quot;,
927 &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`.
928 &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)
929 &quot;A String&quot;,
930 ],
931 &quot;internalLoadBalancers&quot;: [ # Configuration for internal load balancers to be health checked.
932 { # The configuration for an individual load balancer to health check.
933 &quot;ipAddress&quot;: &quot;A String&quot;, # The frontend IP address of the load balancer to health check.
934 &quot;ipProtocol&quot;: &quot;A String&quot;, # The protocol of the load balancer to health check.
935 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyLoadBalancerTarget&quot;,
936 &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.
937 &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}`.
938 &quot;port&quot;: &quot;A String&quot;, # The configured port of the load balancer.
939 &quot;project&quot;: &quot;A String&quot;, # The project ID in which the load balancer is located.
940 &quot;region&quot;: &quot;A String&quot;, # The region in which the load balancer is located.
941 },
942 ],
943 },
944 &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.
945 },
946 &quot;wrr&quot;: { # Configures a RRSetRoutingPolicy that routes in a weighted round robin fashion.
947 &quot;items&quot;: [
948 { # A routing block which contains the routing information for one WRR item.
949 &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.
950 &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)
951 &quot;A String&quot;,
952 ],
953 &quot;internalLoadBalancers&quot;: [ # Configuration for internal load balancers to be health checked.
954 { # The configuration for an individual load balancer to health check.
955 &quot;ipAddress&quot;: &quot;A String&quot;, # The frontend IP address of the load balancer to health check.
956 &quot;ipProtocol&quot;: &quot;A String&quot;, # The protocol of the load balancer to health check.
957 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyLoadBalancerTarget&quot;,
958 &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.
959 &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}`.
960 &quot;port&quot;: &quot;A String&quot;, # The configured port of the load balancer.
961 &quot;project&quot;: &quot;A String&quot;, # The project ID in which the load balancer is located.
962 &quot;region&quot;: &quot;A String&quot;, # The region in which the load balancer is located.
963 },
964 ],
965 },
966 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyWrrPolicyWrrPolicyItem&quot;,
967 &quot;rrdatas&quot;: [
968 &quot;A String&quot;,
969 ],
970 &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.
971 &quot;A String&quot;,
972 ],
973 &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.
974 },
975 ],
976 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyWrrPolicy&quot;,
977 },
978 &quot;wrrPolicy&quot;: { # Configures a RRSetRoutingPolicy that routes in a weighted round robin fashion.
979 &quot;items&quot;: [
980 { # A routing block which contains the routing information for one WRR item.
981 &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.
982 &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)
983 &quot;A String&quot;,
984 ],
985 &quot;internalLoadBalancers&quot;: [ # Configuration for internal load balancers to be health checked.
986 { # The configuration for an individual load balancer to health check.
987 &quot;ipAddress&quot;: &quot;A String&quot;, # The frontend IP address of the load balancer to health check.
988 &quot;ipProtocol&quot;: &quot;A String&quot;, # The protocol of the load balancer to health check.
989 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyLoadBalancerTarget&quot;,
990 &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.
991 &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}`.
992 &quot;port&quot;: &quot;A String&quot;, # The configured port of the load balancer.
993 &quot;project&quot;: &quot;A String&quot;, # The project ID in which the load balancer is located.
994 &quot;region&quot;: &quot;A String&quot;, # The region in which the load balancer is located.
995 },
996 ],
997 },
998 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyWrrPolicyWrrPolicyItem&quot;,
999 &quot;rrdatas&quot;: [
1000 &quot;A String&quot;,
1001 ],
1002 &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.
1003 &quot;A String&quot;,
1004 ],
1005 &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.
1006 },
1007 ],
1008 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyWrrPolicy&quot;,
1009 },
1010 },
1011 &quot;rrdatas&quot;: [ # As defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1) -- see examples.
1012 &quot;A String&quot;,
1013 ],
1014 &quot;signatureRrdatas&quot;: [ # As defined in RFC 4034 (section 3.2).
1015 &quot;A String&quot;,
1016 ],
1017 &quot;ttl&quot;: 42, # Number of seconds that this `ResourceRecordSet` can be cached by resolvers.
1018 &quot;type&quot;: &quot;A String&quot;, # The identifier of a supported record type. See the list of Supported DNS record types.
1019 },
1020 ],
1021 },
1022 &quot;ruleName&quot;: &quot;A String&quot;, # An identifier for this rule. Must be unique with the ResponsePolicy.
1023 },
1024 ],
1025 }</pre>
1026 </div>
1027
1028 <div class="method">
1029 <code class="details" id="list_next">list_next()</code>
1030 <pre>Retrieves the next page of results.
1031
1032 Args:
1033 previous_request: The request for the previous page. (required)
1034 previous_response: The response from the request for the previous page. (required)
1035
1036 Returns:
1037 A request object that you can call &#x27;execute()&#x27; on to request the next
1038 page. Returns None if there are no more items in the collection.
1039 </pre>
1040 </div>
1041
1042 <div class="method">
1043 <code class="details" id="patch">patch(project, responsePolicy, responsePolicyRule, body=None, clientOperationId=None, x__xgafv=None)</code>
1044 <pre>Applies a partial update to an existing Response Policy Rule.
1045
1046 Args:
1047 project: string, Identifies the project addressed by this request. (required)
1048 responsePolicy: string, User assigned name of the Response Policy containing the Response Policy Rule. (required)
1049 responsePolicyRule: string, User assigned name of the Response Policy Rule addressed by this request. (required)
1050 body: object, The request body.
1051 The object takes the form of:
1052
1053 { # 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.
1054 &quot;behavior&quot;: &quot;A String&quot;, # Answer this query with a behavior rather than DNS data.
1055 &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.
1056 &quot;kind&quot;: &quot;dns#responsePolicyRule&quot;,
1057 &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.
1058 &quot;localDatas&quot;: [ # All resource record sets for this selector, one per resource record type. The name must match the dns_name.
1059 { # A unit of data that is returned by the DNS servers.
1060 &quot;kind&quot;: &quot;dns#resourceRecordSet&quot;,
1061 &quot;name&quot;: &quot;A String&quot;, # For example, www.example.com.
1062 &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).
1063 &quot;geo&quot;: { # Configures a `RRSetRoutingPolicy` that routes based on the geo location of the querying user.
1064 &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.
1065 &quot;items&quot;: [ # The primary geo routing configuration. If there are multiple items with the same location, an error is returned instead.
1066 { # ResourceRecordSet data for one geo location.
1067 &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.
1068 &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)
1069 &quot;A String&quot;,
1070 ],
1071 &quot;internalLoadBalancers&quot;: [ # Configuration for internal load balancers to be health checked.
1072 { # The configuration for an individual load balancer to health check.
1073 &quot;ipAddress&quot;: &quot;A String&quot;, # The frontend IP address of the load balancer to health check.
1074 &quot;ipProtocol&quot;: &quot;A String&quot;, # The protocol of the load balancer to health check.
1075 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyLoadBalancerTarget&quot;,
1076 &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.
1077 &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}`.
1078 &quot;port&quot;: &quot;A String&quot;, # The configured port of the load balancer.
1079 &quot;project&quot;: &quot;A String&quot;, # The project ID in which the load balancer is located.
1080 &quot;region&quot;: &quot;A String&quot;, # The region in which the load balancer is located.
1081 },
1082 ],
1083 },
1084 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicyGeoPolicyItem&quot;,
1085 &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.
1086 &quot;rrdatas&quot;: [
1087 &quot;A String&quot;,
1088 ],
1089 &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.
1090 &quot;A String&quot;,
1091 ],
1092 },
1093 ],
1094 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicy&quot;,
1095 },
1096 &quot;geoPolicy&quot;: { # Configures a `RRSetRoutingPolicy` that routes based on the geo location of the querying user.
1097 &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.
1098 &quot;items&quot;: [ # The primary geo routing configuration. If there are multiple items with the same location, an error is returned instead.
1099 { # ResourceRecordSet data for one geo location.
1100 &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.
1101 &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)
1102 &quot;A String&quot;,
1103 ],
1104 &quot;internalLoadBalancers&quot;: [ # Configuration for internal load balancers to be health checked.
1105 { # The configuration for an individual load balancer to health check.
1106 &quot;ipAddress&quot;: &quot;A String&quot;, # The frontend IP address of the load balancer to health check.
1107 &quot;ipProtocol&quot;: &quot;A String&quot;, # The protocol of the load balancer to health check.
1108 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyLoadBalancerTarget&quot;,
1109 &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.
1110 &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}`.
1111 &quot;port&quot;: &quot;A String&quot;, # The configured port of the load balancer.
1112 &quot;project&quot;: &quot;A String&quot;, # The project ID in which the load balancer is located.
1113 &quot;region&quot;: &quot;A String&quot;, # The region in which the load balancer is located.
1114 },
1115 ],
1116 },
1117 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicyGeoPolicyItem&quot;,
1118 &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.
1119 &quot;rrdatas&quot;: [
1120 &quot;A String&quot;,
1121 ],
1122 &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.
1123 &quot;A String&quot;,
1124 ],
1125 },
1126 ],
1127 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicy&quot;,
1128 },
1129 &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
1130 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicy&quot;,
1131 &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.
1132 &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.
1133 &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.
1134 &quot;items&quot;: [ # The primary geo routing configuration. If there are multiple items with the same location, an error is returned instead.
1135 { # ResourceRecordSet data for one geo location.
1136 &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.
1137 &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)
1138 &quot;A String&quot;,
1139 ],
1140 &quot;internalLoadBalancers&quot;: [ # Configuration for internal load balancers to be health checked.
1141 { # The configuration for an individual load balancer to health check.
1142 &quot;ipAddress&quot;: &quot;A String&quot;, # The frontend IP address of the load balancer to health check.
1143 &quot;ipProtocol&quot;: &quot;A String&quot;, # The protocol of the load balancer to health check.
1144 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyLoadBalancerTarget&quot;,
1145 &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.
1146 &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}`.
1147 &quot;port&quot;: &quot;A String&quot;, # The configured port of the load balancer.
1148 &quot;project&quot;: &quot;A String&quot;, # The project ID in which the load balancer is located.
1149 &quot;region&quot;: &quot;A String&quot;, # The region in which the load balancer is located.
1150 },
1151 ],
1152 },
1153 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicyGeoPolicyItem&quot;,
1154 &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.
1155 &quot;rrdatas&quot;: [
1156 &quot;A String&quot;,
1157 ],
1158 &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.
1159 &quot;A String&quot;,
1160 ],
1161 },
1162 ],
1163 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicy&quot;,
1164 },
1165 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyPrimaryBackupPolicy&quot;,
1166 &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`.
1167 &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)
1168 &quot;A String&quot;,
1169 ],
1170 &quot;internalLoadBalancers&quot;: [ # Configuration for internal load balancers to be health checked.
1171 { # The configuration for an individual load balancer to health check.
1172 &quot;ipAddress&quot;: &quot;A String&quot;, # The frontend IP address of the load balancer to health check.
1173 &quot;ipProtocol&quot;: &quot;A String&quot;, # The protocol of the load balancer to health check.
1174 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyLoadBalancerTarget&quot;,
1175 &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.
1176 &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}`.
1177 &quot;port&quot;: &quot;A String&quot;, # The configured port of the load balancer.
1178 &quot;project&quot;: &quot;A String&quot;, # The project ID in which the load balancer is located.
1179 &quot;region&quot;: &quot;A String&quot;, # The region in which the load balancer is located.
1180 },
1181 ],
1182 },
1183 &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.
1184 },
1185 &quot;wrr&quot;: { # Configures a RRSetRoutingPolicy that routes in a weighted round robin fashion.
1186 &quot;items&quot;: [
1187 { # A routing block which contains the routing information for one WRR item.
1188 &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.
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;kind&quot;: &quot;dns#rRSetRoutingPolicyWrrPolicyWrrPolicyItem&quot;,
1206 &quot;rrdatas&quot;: [
1207 &quot;A String&quot;,
1208 ],
1209 &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.
1210 &quot;A String&quot;,
1211 ],
1212 &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.
1213 },
1214 ],
1215 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyWrrPolicy&quot;,
1216 },
1217 &quot;wrrPolicy&quot;: { # Configures a RRSetRoutingPolicy that routes in a weighted round robin fashion.
1218 &quot;items&quot;: [
1219 { # A routing block which contains the routing information for one WRR item.
1220 &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.
1221 &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)
1222 &quot;A String&quot;,
1223 ],
1224 &quot;internalLoadBalancers&quot;: [ # Configuration for internal load balancers to be health checked.
1225 { # The configuration for an individual load balancer to health check.
1226 &quot;ipAddress&quot;: &quot;A String&quot;, # The frontend IP address of the load balancer to health check.
1227 &quot;ipProtocol&quot;: &quot;A String&quot;, # The protocol of the load balancer to health check.
1228 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyLoadBalancerTarget&quot;,
1229 &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.
1230 &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}`.
1231 &quot;port&quot;: &quot;A String&quot;, # The configured port of the load balancer.
1232 &quot;project&quot;: &quot;A String&quot;, # The project ID in which the load balancer is located.
1233 &quot;region&quot;: &quot;A String&quot;, # The region in which the load balancer is located.
1234 },
1235 ],
1236 },
1237 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyWrrPolicyWrrPolicyItem&quot;,
1238 &quot;rrdatas&quot;: [
1239 &quot;A String&quot;,
1240 ],
1241 &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.
1242 &quot;A String&quot;,
1243 ],
1244 &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.
1245 },
1246 ],
1247 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyWrrPolicy&quot;,
1248 },
1249 },
1250 &quot;rrdatas&quot;: [ # As defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1) -- see examples.
1251 &quot;A String&quot;,
1252 ],
1253 &quot;signatureRrdatas&quot;: [ # As defined in RFC 4034 (section 3.2).
1254 &quot;A String&quot;,
1255 ],
1256 &quot;ttl&quot;: 42, # Number of seconds that this `ResourceRecordSet` can be cached by resolvers.
1257 &quot;type&quot;: &quot;A String&quot;, # The identifier of a supported record type. See the list of Supported DNS record types.
1258 },
1259 ],
1260 },
1261 &quot;ruleName&quot;: &quot;A String&quot;, # An identifier for this rule. Must be unique with the ResponsePolicy.
1262 }
1263
1264 clientOperationId: string, For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
1265 x__xgafv: string, V1 error format.
1266 Allowed values
1267 1 - v1 error format
1268 2 - v2 error format
1269
1270 Returns:
1271 An object of the form:
1272
1273 {
1274 &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.
1275 &quot;behavior&quot;: &quot;A String&quot;, # Answer this query with a behavior rather than DNS data.
1276 &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.
1277 &quot;kind&quot;: &quot;dns#responsePolicyRule&quot;,
1278 &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.
1279 &quot;localDatas&quot;: [ # All resource record sets for this selector, one per resource record type. The name must match the dns_name.
1280 { # A unit of data that is returned by the DNS servers.
1281 &quot;kind&quot;: &quot;dns#resourceRecordSet&quot;,
1282 &quot;name&quot;: &quot;A String&quot;, # For example, www.example.com.
1283 &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).
1284 &quot;geo&quot;: { # Configures a `RRSetRoutingPolicy` that routes based on the geo location of the querying user.
1285 &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.
1286 &quot;items&quot;: [ # The primary geo routing configuration. If there are multiple items with the same location, an error is returned instead.
1287 { # ResourceRecordSet data for one geo location.
1288 &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.
1289 &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)
1290 &quot;A String&quot;,
1291 ],
1292 &quot;internalLoadBalancers&quot;: [ # Configuration for internal load balancers to be health checked.
1293 { # The configuration for an individual load balancer to health check.
1294 &quot;ipAddress&quot;: &quot;A String&quot;, # The frontend IP address of the load balancer to health check.
1295 &quot;ipProtocol&quot;: &quot;A String&quot;, # The protocol of the load balancer to health check.
1296 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyLoadBalancerTarget&quot;,
1297 &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.
1298 &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}`.
1299 &quot;port&quot;: &quot;A String&quot;, # The configured port of the load balancer.
1300 &quot;project&quot;: &quot;A String&quot;, # The project ID in which the load balancer is located.
1301 &quot;region&quot;: &quot;A String&quot;, # The region in which the load balancer is located.
1302 },
1303 ],
1304 },
1305 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicyGeoPolicyItem&quot;,
1306 &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.
1307 &quot;rrdatas&quot;: [
1308 &quot;A String&quot;,
1309 ],
1310 &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.
1311 &quot;A String&quot;,
1312 ],
1313 },
1314 ],
1315 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicy&quot;,
1316 },
1317 &quot;geoPolicy&quot;: { # Configures a `RRSetRoutingPolicy` that routes based on the geo location of the querying user.
1318 &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.
1319 &quot;items&quot;: [ # The primary geo routing configuration. If there are multiple items with the same location, an error is returned instead.
1320 { # ResourceRecordSet data for one geo location.
1321 &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.
1322 &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)
1323 &quot;A String&quot;,
1324 ],
1325 &quot;internalLoadBalancers&quot;: [ # Configuration for internal load balancers to be health checked.
1326 { # The configuration for an individual load balancer to health check.
1327 &quot;ipAddress&quot;: &quot;A String&quot;, # The frontend IP address of the load balancer to health check.
1328 &quot;ipProtocol&quot;: &quot;A String&quot;, # The protocol of the load balancer to health check.
1329 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyLoadBalancerTarget&quot;,
1330 &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.
1331 &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}`.
1332 &quot;port&quot;: &quot;A String&quot;, # The configured port of the load balancer.
1333 &quot;project&quot;: &quot;A String&quot;, # The project ID in which the load balancer is located.
1334 &quot;region&quot;: &quot;A String&quot;, # The region in which the load balancer is located.
1335 },
1336 ],
1337 },
1338 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicyGeoPolicyItem&quot;,
1339 &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.
1340 &quot;rrdatas&quot;: [
1341 &quot;A String&quot;,
1342 ],
1343 &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.
1344 &quot;A String&quot;,
1345 ],
1346 },
1347 ],
1348 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicy&quot;,
1349 },
1350 &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
1351 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicy&quot;,
1352 &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.
1353 &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.
1354 &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.
1355 &quot;items&quot;: [ # The primary geo routing configuration. If there are multiple items with the same location, an error is returned instead.
1356 { # ResourceRecordSet data for one geo location.
1357 &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.
1358 &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)
1359 &quot;A String&quot;,
1360 ],
1361 &quot;internalLoadBalancers&quot;: [ # Configuration for internal load balancers to be health checked.
1362 { # The configuration for an individual load balancer to health check.
1363 &quot;ipAddress&quot;: &quot;A String&quot;, # The frontend IP address of the load balancer to health check.
1364 &quot;ipProtocol&quot;: &quot;A String&quot;, # The protocol of the load balancer to health check.
1365 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyLoadBalancerTarget&quot;,
1366 &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.
1367 &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}`.
1368 &quot;port&quot;: &quot;A String&quot;, # The configured port of the load balancer.
1369 &quot;project&quot;: &quot;A String&quot;, # The project ID in which the load balancer is located.
1370 &quot;region&quot;: &quot;A String&quot;, # The region in which the load balancer is located.
1371 },
1372 ],
1373 },
1374 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicyGeoPolicyItem&quot;,
1375 &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.
1376 &quot;rrdatas&quot;: [
1377 &quot;A String&quot;,
1378 ],
1379 &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.
1380 &quot;A String&quot;,
1381 ],
1382 },
1383 ],
1384 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicy&quot;,
1385 },
1386 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyPrimaryBackupPolicy&quot;,
1387 &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`.
1388 &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)
1389 &quot;A String&quot;,
1390 ],
1391 &quot;internalLoadBalancers&quot;: [ # Configuration for internal load balancers to be health checked.
1392 { # The configuration for an individual load balancer to health check.
1393 &quot;ipAddress&quot;: &quot;A String&quot;, # The frontend IP address of the load balancer to health check.
1394 &quot;ipProtocol&quot;: &quot;A String&quot;, # The protocol of the load balancer to health check.
1395 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyLoadBalancerTarget&quot;,
1396 &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.
1397 &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}`.
1398 &quot;port&quot;: &quot;A String&quot;, # The configured port of the load balancer.
1399 &quot;project&quot;: &quot;A String&quot;, # The project ID in which the load balancer is located.
1400 &quot;region&quot;: &quot;A String&quot;, # The region in which the load balancer is located.
1401 },
1402 ],
1403 },
1404 &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.
1405 },
1406 &quot;wrr&quot;: { # Configures a RRSetRoutingPolicy that routes in a weighted round robin fashion.
1407 &quot;items&quot;: [
1408 { # A routing block which contains the routing information for one WRR item.
1409 &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.
1410 &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)
1411 &quot;A String&quot;,
1412 ],
1413 &quot;internalLoadBalancers&quot;: [ # Configuration for internal load balancers to be health checked.
1414 { # The configuration for an individual load balancer to health check.
1415 &quot;ipAddress&quot;: &quot;A String&quot;, # The frontend IP address of the load balancer to health check.
1416 &quot;ipProtocol&quot;: &quot;A String&quot;, # The protocol of the load balancer to health check.
1417 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyLoadBalancerTarget&quot;,
1418 &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.
1419 &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}`.
1420 &quot;port&quot;: &quot;A String&quot;, # The configured port of the load balancer.
1421 &quot;project&quot;: &quot;A String&quot;, # The project ID in which the load balancer is located.
1422 &quot;region&quot;: &quot;A String&quot;, # The region in which the load balancer is located.
1423 },
1424 ],
1425 },
1426 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyWrrPolicyWrrPolicyItem&quot;,
1427 &quot;rrdatas&quot;: [
1428 &quot;A String&quot;,
1429 ],
1430 &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.
1431 &quot;A String&quot;,
1432 ],
1433 &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.
1434 },
1435 ],
1436 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyWrrPolicy&quot;,
1437 },
1438 &quot;wrrPolicy&quot;: { # Configures a RRSetRoutingPolicy that routes in a weighted round robin fashion.
1439 &quot;items&quot;: [
1440 { # A routing block which contains the routing information for one WRR item.
1441 &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.
1442 &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)
1443 &quot;A String&quot;,
1444 ],
1445 &quot;internalLoadBalancers&quot;: [ # Configuration for internal load balancers to be health checked.
1446 { # The configuration for an individual load balancer to health check.
1447 &quot;ipAddress&quot;: &quot;A String&quot;, # The frontend IP address of the load balancer to health check.
1448 &quot;ipProtocol&quot;: &quot;A String&quot;, # The protocol of the load balancer to health check.
1449 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyLoadBalancerTarget&quot;,
1450 &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.
1451 &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}`.
1452 &quot;port&quot;: &quot;A String&quot;, # The configured port of the load balancer.
1453 &quot;project&quot;: &quot;A String&quot;, # The project ID in which the load balancer is located.
1454 &quot;region&quot;: &quot;A String&quot;, # The region in which the load balancer is located.
1455 },
1456 ],
1457 },
1458 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyWrrPolicyWrrPolicyItem&quot;,
1459 &quot;rrdatas&quot;: [
1460 &quot;A String&quot;,
1461 ],
1462 &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.
1463 &quot;A String&quot;,
1464 ],
1465 &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.
1466 },
1467 ],
1468 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyWrrPolicy&quot;,
1469 },
1470 },
1471 &quot;rrdatas&quot;: [ # As defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1) -- see examples.
1472 &quot;A String&quot;,
1473 ],
1474 &quot;signatureRrdatas&quot;: [ # As defined in RFC 4034 (section 3.2).
1475 &quot;A String&quot;,
1476 ],
1477 &quot;ttl&quot;: 42, # Number of seconds that this `ResourceRecordSet` can be cached by resolvers.
1478 &quot;type&quot;: &quot;A String&quot;, # The identifier of a supported record type. See the list of Supported DNS record types.
1479 },
1480 ],
1481 },
1482 &quot;ruleName&quot;: &quot;A String&quot;, # An identifier for this rule. Must be unique with the ResponsePolicy.
1483 },
1484 }</pre>
1485 </div>
1486
1487 <div class="method">
1488 <code class="details" id="update">update(project, responsePolicy, responsePolicyRule, body=None, clientOperationId=None, x__xgafv=None)</code>
1489 <pre>Updates an existing Response Policy Rule.
1490
1491 Args:
1492 project: string, Identifies the project addressed by this request. (required)
1493 responsePolicy: string, User assigned name of the Response Policy containing the Response Policy Rule. (required)
1494 responsePolicyRule: string, User assigned name of the Response Policy Rule addressed by this request. (required)
1495 body: object, The request body.
1496 The object takes the form of:
1497
1498 { # 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.
1499 &quot;behavior&quot;: &quot;A String&quot;, # Answer this query with a behavior rather than DNS data.
1500 &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.
1501 &quot;kind&quot;: &quot;dns#responsePolicyRule&quot;,
1502 &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.
1503 &quot;localDatas&quot;: [ # All resource record sets for this selector, one per resource record type. The name must match the dns_name.
1504 { # A unit of data that is returned by the DNS servers.
1505 &quot;kind&quot;: &quot;dns#resourceRecordSet&quot;,
1506 &quot;name&quot;: &quot;A String&quot;, # For example, www.example.com.
1507 &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).
1508 &quot;geo&quot;: { # Configures a `RRSetRoutingPolicy` that routes based on the geo location of the querying user.
1509 &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.
1510 &quot;items&quot;: [ # The primary geo routing configuration. If there are multiple items with the same location, an error is returned instead.
1511 { # ResourceRecordSet data for one geo location.
1512 &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.
1513 &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)
1514 &quot;A String&quot;,
1515 ],
1516 &quot;internalLoadBalancers&quot;: [ # Configuration for internal load balancers to be health checked.
1517 { # The configuration for an individual load balancer to health check.
1518 &quot;ipAddress&quot;: &quot;A String&quot;, # The frontend IP address of the load balancer to health check.
1519 &quot;ipProtocol&quot;: &quot;A String&quot;, # The protocol of the load balancer to health check.
1520 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyLoadBalancerTarget&quot;,
1521 &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.
1522 &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}`.
1523 &quot;port&quot;: &quot;A String&quot;, # The configured port of the load balancer.
1524 &quot;project&quot;: &quot;A String&quot;, # The project ID in which the load balancer is located.
1525 &quot;region&quot;: &quot;A String&quot;, # The region in which the load balancer is located.
1526 },
1527 ],
1528 },
1529 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicyGeoPolicyItem&quot;,
1530 &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.
1531 &quot;rrdatas&quot;: [
1532 &quot;A String&quot;,
1533 ],
1534 &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.
1535 &quot;A String&quot;,
1536 ],
1537 },
1538 ],
1539 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicy&quot;,
1540 },
1541 &quot;geoPolicy&quot;: { # Configures a `RRSetRoutingPolicy` that routes based on the geo location of the querying user.
1542 &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.
1543 &quot;items&quot;: [ # The primary geo routing configuration. If there are multiple items with the same location, an error is returned instead.
1544 { # ResourceRecordSet data for one geo location.
1545 &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.
1546 &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)
1547 &quot;A String&quot;,
1548 ],
1549 &quot;internalLoadBalancers&quot;: [ # Configuration for internal load balancers to be health checked.
1550 { # The configuration for an individual load balancer to health check.
1551 &quot;ipAddress&quot;: &quot;A String&quot;, # The frontend IP address of the load balancer to health check.
1552 &quot;ipProtocol&quot;: &quot;A String&quot;, # The protocol of the load balancer to health check.
1553 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyLoadBalancerTarget&quot;,
1554 &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.
1555 &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}`.
1556 &quot;port&quot;: &quot;A String&quot;, # The configured port of the load balancer.
1557 &quot;project&quot;: &quot;A String&quot;, # The project ID in which the load balancer is located.
1558 &quot;region&quot;: &quot;A String&quot;, # The region in which the load balancer is located.
1559 },
1560 ],
1561 },
1562 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicyGeoPolicyItem&quot;,
1563 &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.
1564 &quot;rrdatas&quot;: [
1565 &quot;A String&quot;,
1566 ],
1567 &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.
1568 &quot;A String&quot;,
1569 ],
1570 },
1571 ],
1572 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicy&quot;,
1573 },
1574 &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
1575 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicy&quot;,
1576 &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.
1577 &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.
1578 &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.
1579 &quot;items&quot;: [ # The primary geo routing configuration. If there are multiple items with the same location, an error is returned instead.
1580 { # ResourceRecordSet data for one geo location.
1581 &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.
1582 &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)
1583 &quot;A String&quot;,
1584 ],
1585 &quot;internalLoadBalancers&quot;: [ # Configuration for internal load balancers to be health checked.
1586 { # The configuration for an individual load balancer to health check.
1587 &quot;ipAddress&quot;: &quot;A String&quot;, # The frontend IP address of the load balancer to health check.
1588 &quot;ipProtocol&quot;: &quot;A String&quot;, # The protocol of the load balancer to health check.
1589 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyLoadBalancerTarget&quot;,
1590 &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.
1591 &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}`.
1592 &quot;port&quot;: &quot;A String&quot;, # The configured port of the load balancer.
1593 &quot;project&quot;: &quot;A String&quot;, # The project ID in which the load balancer is located.
1594 &quot;region&quot;: &quot;A String&quot;, # The region in which the load balancer is located.
1595 },
1596 ],
1597 },
1598 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicyGeoPolicyItem&quot;,
1599 &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.
1600 &quot;rrdatas&quot;: [
1601 &quot;A String&quot;,
1602 ],
1603 &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.
1604 &quot;A String&quot;,
1605 ],
1606 },
1607 ],
1608 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicy&quot;,
1609 },
1610 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyPrimaryBackupPolicy&quot;,
1611 &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`.
1612 &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)
1613 &quot;A String&quot;,
1614 ],
1615 &quot;internalLoadBalancers&quot;: [ # Configuration for internal load balancers to be health checked.
1616 { # The configuration for an individual load balancer to health check.
1617 &quot;ipAddress&quot;: &quot;A String&quot;, # The frontend IP address of the load balancer to health check.
1618 &quot;ipProtocol&quot;: &quot;A String&quot;, # The protocol of the load balancer to health check.
1619 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyLoadBalancerTarget&quot;,
1620 &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.
1621 &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}`.
1622 &quot;port&quot;: &quot;A String&quot;, # The configured port of the load balancer.
1623 &quot;project&quot;: &quot;A String&quot;, # The project ID in which the load balancer is located.
1624 &quot;region&quot;: &quot;A String&quot;, # The region in which the load balancer is located.
1625 },
1626 ],
1627 },
1628 &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.
1629 },
1630 &quot;wrr&quot;: { # Configures a RRSetRoutingPolicy that routes in a weighted round robin fashion.
1631 &quot;items&quot;: [
1632 { # A routing block which contains the routing information for one WRR item.
1633 &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.
1634 &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)
1635 &quot;A String&quot;,
1636 ],
1637 &quot;internalLoadBalancers&quot;: [ # Configuration for internal load balancers to be health checked.
1638 { # The configuration for an individual load balancer to health check.
1639 &quot;ipAddress&quot;: &quot;A String&quot;, # The frontend IP address of the load balancer to health check.
1640 &quot;ipProtocol&quot;: &quot;A String&quot;, # The protocol of the load balancer to health check.
1641 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyLoadBalancerTarget&quot;,
1642 &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.
1643 &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}`.
1644 &quot;port&quot;: &quot;A String&quot;, # The configured port of the load balancer.
1645 &quot;project&quot;: &quot;A String&quot;, # The project ID in which the load balancer is located.
1646 &quot;region&quot;: &quot;A String&quot;, # The region in which the load balancer is located.
1647 },
1648 ],
1649 },
1650 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyWrrPolicyWrrPolicyItem&quot;,
1651 &quot;rrdatas&quot;: [
1652 &quot;A String&quot;,
1653 ],
1654 &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.
1655 &quot;A String&quot;,
1656 ],
1657 &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.
1658 },
1659 ],
1660 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyWrrPolicy&quot;,
1661 },
1662 &quot;wrrPolicy&quot;: { # Configures a RRSetRoutingPolicy that routes in a weighted round robin fashion.
1663 &quot;items&quot;: [
1664 { # A routing block which contains the routing information for one WRR item.
1665 &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.
1666 &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)
1667 &quot;A String&quot;,
1668 ],
1669 &quot;internalLoadBalancers&quot;: [ # Configuration for internal load balancers to be health checked.
1670 { # The configuration for an individual load balancer to health check.
1671 &quot;ipAddress&quot;: &quot;A String&quot;, # The frontend IP address of the load balancer to health check.
1672 &quot;ipProtocol&quot;: &quot;A String&quot;, # The protocol of the load balancer to health check.
1673 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyLoadBalancerTarget&quot;,
1674 &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.
1675 &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}`.
1676 &quot;port&quot;: &quot;A String&quot;, # The configured port of the load balancer.
1677 &quot;project&quot;: &quot;A String&quot;, # The project ID in which the load balancer is located.
1678 &quot;region&quot;: &quot;A String&quot;, # The region in which the load balancer is located.
1679 },
1680 ],
1681 },
1682 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyWrrPolicyWrrPolicyItem&quot;,
1683 &quot;rrdatas&quot;: [
1684 &quot;A String&quot;,
1685 ],
1686 &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.
1687 &quot;A String&quot;,
1688 ],
1689 &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.
1690 },
1691 ],
1692 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyWrrPolicy&quot;,
1693 },
1694 },
1695 &quot;rrdatas&quot;: [ # As defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1) -- see examples.
1696 &quot;A String&quot;,
1697 ],
1698 &quot;signatureRrdatas&quot;: [ # As defined in RFC 4034 (section 3.2).
1699 &quot;A String&quot;,
1700 ],
1701 &quot;ttl&quot;: 42, # Number of seconds that this `ResourceRecordSet` can be cached by resolvers.
1702 &quot;type&quot;: &quot;A String&quot;, # The identifier of a supported record type. See the list of Supported DNS record types.
1703 },
1704 ],
1705 },
1706 &quot;ruleName&quot;: &quot;A String&quot;, # An identifier for this rule. Must be unique with the ResponsePolicy.
1707 }
1708
1709 clientOperationId: string, For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
1710 x__xgafv: string, V1 error format.
1711 Allowed values
1712 1 - v1 error format
1713 2 - v2 error format
1714
1715 Returns:
1716 An object of the form:
1717
1718 {
1719 &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.
1720 &quot;behavior&quot;: &quot;A String&quot;, # Answer this query with a behavior rather than DNS data.
1721 &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.
1722 &quot;kind&quot;: &quot;dns#responsePolicyRule&quot;,
1723 &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.
1724 &quot;localDatas&quot;: [ # All resource record sets for this selector, one per resource record type. The name must match the dns_name.
1725 { # A unit of data that is returned by the DNS servers.
1726 &quot;kind&quot;: &quot;dns#resourceRecordSet&quot;,
1727 &quot;name&quot;: &quot;A String&quot;, # For example, www.example.com.
1728 &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).
1729 &quot;geo&quot;: { # Configures a `RRSetRoutingPolicy` that routes based on the geo location of the querying user.
1730 &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.
1731 &quot;items&quot;: [ # The primary geo routing configuration. If there are multiple items with the same location, an error is returned instead.
1732 { # ResourceRecordSet data for one geo location.
1733 &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.
1734 &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)
1735 &quot;A String&quot;,
1736 ],
1737 &quot;internalLoadBalancers&quot;: [ # Configuration for internal load balancers to be health checked.
1738 { # The configuration for an individual load balancer to health check.
1739 &quot;ipAddress&quot;: &quot;A String&quot;, # The frontend IP address of the load balancer to health check.
1740 &quot;ipProtocol&quot;: &quot;A String&quot;, # The protocol of the load balancer to health check.
1741 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyLoadBalancerTarget&quot;,
1742 &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.
1743 &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}`.
1744 &quot;port&quot;: &quot;A String&quot;, # The configured port of the load balancer.
1745 &quot;project&quot;: &quot;A String&quot;, # The project ID in which the load balancer is located.
1746 &quot;region&quot;: &quot;A String&quot;, # The region in which the load balancer is located.
1747 },
1748 ],
1749 },
1750 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicyGeoPolicyItem&quot;,
1751 &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.
1752 &quot;rrdatas&quot;: [
1753 &quot;A String&quot;,
1754 ],
1755 &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.
1756 &quot;A String&quot;,
1757 ],
1758 },
1759 ],
1760 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicy&quot;,
1761 },
1762 &quot;geoPolicy&quot;: { # Configures a `RRSetRoutingPolicy` that routes based on the geo location of the querying user.
1763 &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.
1764 &quot;items&quot;: [ # The primary geo routing configuration. If there are multiple items with the same location, an error is returned instead.
1765 { # ResourceRecordSet data for one geo location.
1766 &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.
1767 &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)
1768 &quot;A String&quot;,
1769 ],
1770 &quot;internalLoadBalancers&quot;: [ # Configuration for internal load balancers to be health checked.
1771 { # The configuration for an individual load balancer to health check.
1772 &quot;ipAddress&quot;: &quot;A String&quot;, # The frontend IP address of the load balancer to health check.
1773 &quot;ipProtocol&quot;: &quot;A String&quot;, # The protocol of the load balancer to health check.
1774 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyLoadBalancerTarget&quot;,
1775 &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.
1776 &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}`.
1777 &quot;port&quot;: &quot;A String&quot;, # The configured port of the load balancer.
1778 &quot;project&quot;: &quot;A String&quot;, # The project ID in which the load balancer is located.
1779 &quot;region&quot;: &quot;A String&quot;, # The region in which the load balancer is located.
1780 },
1781 ],
1782 },
1783 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicyGeoPolicyItem&quot;,
1784 &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.
1785 &quot;rrdatas&quot;: [
1786 &quot;A String&quot;,
1787 ],
1788 &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.
1789 &quot;A String&quot;,
1790 ],
1791 },
1792 ],
1793 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicy&quot;,
1794 },
1795 &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
1796 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicy&quot;,
1797 &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.
1798 &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.
1799 &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.
1800 &quot;items&quot;: [ # The primary geo routing configuration. If there are multiple items with the same location, an error is returned instead.
1801 { # ResourceRecordSet data for one geo location.
1802 &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.
1803 &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)
1804 &quot;A String&quot;,
1805 ],
1806 &quot;internalLoadBalancers&quot;: [ # Configuration for internal load balancers to be health checked.
1807 { # The configuration for an individual load balancer to health check.
1808 &quot;ipAddress&quot;: &quot;A String&quot;, # The frontend IP address of the load balancer to health check.
1809 &quot;ipProtocol&quot;: &quot;A String&quot;, # The protocol of the load balancer to health check.
1810 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyLoadBalancerTarget&quot;,
1811 &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.
1812 &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}`.
1813 &quot;port&quot;: &quot;A String&quot;, # The configured port of the load balancer.
1814 &quot;project&quot;: &quot;A String&quot;, # The project ID in which the load balancer is located.
1815 &quot;region&quot;: &quot;A String&quot;, # The region in which the load balancer is located.
1816 },
1817 ],
1818 },
1819 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicyGeoPolicyItem&quot;,
1820 &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.
1821 &quot;rrdatas&quot;: [
1822 &quot;A String&quot;,
1823 ],
1824 &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.
1825 &quot;A String&quot;,
1826 ],
1827 },
1828 ],
1829 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicy&quot;,
1830 },
1831 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyPrimaryBackupPolicy&quot;,
1832 &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`.
1833 &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)
1834 &quot;A String&quot;,
1835 ],
1836 &quot;internalLoadBalancers&quot;: [ # Configuration for internal load balancers to be health checked.
1837 { # The configuration for an individual load balancer to health check.
1838 &quot;ipAddress&quot;: &quot;A String&quot;, # The frontend IP address of the load balancer to health check.
1839 &quot;ipProtocol&quot;: &quot;A String&quot;, # The protocol of the load balancer to health check.
1840 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyLoadBalancerTarget&quot;,
1841 &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.
1842 &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}`.
1843 &quot;port&quot;: &quot;A String&quot;, # The configured port of the load balancer.
1844 &quot;project&quot;: &quot;A String&quot;, # The project ID in which the load balancer is located.
1845 &quot;region&quot;: &quot;A String&quot;, # The region in which the load balancer is located.
1846 },
1847 ],
1848 },
1849 &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.
1850 },
1851 &quot;wrr&quot;: { # Configures a RRSetRoutingPolicy that routes in a weighted round robin fashion.
1852 &quot;items&quot;: [
1853 { # A routing block which contains the routing information for one WRR item.
1854 &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.
1855 &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)
1856 &quot;A String&quot;,
1857 ],
1858 &quot;internalLoadBalancers&quot;: [ # Configuration for internal load balancers to be health checked.
1859 { # The configuration for an individual load balancer to health check.
1860 &quot;ipAddress&quot;: &quot;A String&quot;, # The frontend IP address of the load balancer to health check.
1861 &quot;ipProtocol&quot;: &quot;A String&quot;, # The protocol of the load balancer to health check.
1862 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyLoadBalancerTarget&quot;,
1863 &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.
1864 &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}`.
1865 &quot;port&quot;: &quot;A String&quot;, # The configured port of the load balancer.
1866 &quot;project&quot;: &quot;A String&quot;, # The project ID in which the load balancer is located.
1867 &quot;region&quot;: &quot;A String&quot;, # The region in which the load balancer is located.
1868 },
1869 ],
1870 },
1871 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyWrrPolicyWrrPolicyItem&quot;,
1872 &quot;rrdatas&quot;: [
1873 &quot;A String&quot;,
1874 ],
1875 &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.
1876 &quot;A String&quot;,
1877 ],
1878 &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.
1879 },
1880 ],
1881 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyWrrPolicy&quot;,
1882 },
1883 &quot;wrrPolicy&quot;: { # Configures a RRSetRoutingPolicy that routes in a weighted round robin fashion.
1884 &quot;items&quot;: [
1885 { # A routing block which contains the routing information for one WRR item.
1886 &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.
1887 &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)
1888 &quot;A String&quot;,
1889 ],
1890 &quot;internalLoadBalancers&quot;: [ # Configuration for internal load balancers to be health checked.
1891 { # The configuration for an individual load balancer to health check.
1892 &quot;ipAddress&quot;: &quot;A String&quot;, # The frontend IP address of the load balancer to health check.
1893 &quot;ipProtocol&quot;: &quot;A String&quot;, # The protocol of the load balancer to health check.
1894 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyLoadBalancerTarget&quot;,
1895 &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.
1896 &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}`.
1897 &quot;port&quot;: &quot;A String&quot;, # The configured port of the load balancer.
1898 &quot;project&quot;: &quot;A String&quot;, # The project ID in which the load balancer is located.
1899 &quot;region&quot;: &quot;A String&quot;, # The region in which the load balancer is located.
1900 },
1901 ],
1902 },
1903 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyWrrPolicyWrrPolicyItem&quot;,
1904 &quot;rrdatas&quot;: [
1905 &quot;A String&quot;,
1906 ],
1907 &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.
1908 &quot;A String&quot;,
1909 ],
1910 &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.
1911 },
1912 ],
1913 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyWrrPolicy&quot;,
1914 },
1915 },
1916 &quot;rrdatas&quot;: [ # As defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1) -- see examples.
1917 &quot;A String&quot;,
1918 ],
1919 &quot;signatureRrdatas&quot;: [ # As defined in RFC 4034 (section 3.2).
1920 &quot;A String&quot;,
1921 ],
1922 &quot;ttl&quot;: 42, # Number of seconds that this `ResourceRecordSet` can be cached by resolvers.
1923 &quot;type&quot;: &quot;A String&quot;, # The identifier of a supported record type. See the list of Supported DNS record types.
1924 },
1925 ],
1926 },
1927 &quot;ruleName&quot;: &quot;A String&quot;, # An identifier for this rule. Must be unique with the ResponsePolicy.
1928 },
1929 }</pre>
1930 </div>
1931
1932 </body></html>