blob: 2b10b9d485da3f3140f64d286bcd9a279f88230e [file] [log] [blame]
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001<html><body>
2<style>
3
4body, 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
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, 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>
yoshi-code-bota8b35b92021-03-31 13:33:30 -070085<p class="firstline">Deletes a previously created Response Policy Rule.</p>
yoshi-code-botb6dc1b92021-03-02 11:49:08 -080086<p class="toc_element">
87 <code><a href="#get">get(project, responsePolicy, responsePolicyRule, clientOperationId=None, x__xgafv=None)</a></code></p>
yoshi-code-bota8b35b92021-03-31 13:33:30 -070088<p class="firstline">Fetches the representation of an existing Response Policy Rule.</p>
yoshi-code-botb6dc1b92021-03-02 11:49:08 -080089<p class="toc_element">
90 <code><a href="#list">list(project, responsePolicy, maxResults=None, pageToken=None, x__xgafv=None)</a></code></p>
yoshi-code-bota8b35b92021-03-31 13:33:30 -070091<p class="firstline">Enumerates all Response Policy Rules associated with a project.</p>
yoshi-code-botb6dc1b92021-03-02 11:49:08 -080092<p class="toc_element">
93 <code><a href="#list_next">list_next(previous_request, previous_response)</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>
yoshi-code-bota8b35b92021-03-31 13:33:30 -070097<p class="firstline">Applies a partial update to an existing Response Policy Rule.</p>
yoshi-code-botb6dc1b92021-03-02 11:49:08 -080098<p class="toc_element">
99 <code><a href="#update">update(project, responsePolicy, responsePolicyRule, body=None, clientOperationId=None, x__xgafv=None)</a></code></p>
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700100<p class="firstline">Updates an existing Response Policy Rule.</p>
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800101<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
111Args:
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.
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700123 { # A unit of data that is returned by the DNS servers.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800124 &quot;kind&quot;: &quot;dns#resourceRecordSet&quot;,
125 &quot;name&quot;: &quot;A String&quot;, # For example, www.example.com.
yoshi-code-bota36e3b12021-07-27 00:20:26 -0700126 &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 geo location of querying user or a weighted round robin based routing policy. A ResourceRecordSet should only have either rrdata (static) or routing_policy (dynamic). An error is returned otherwise.
127 &quot;geo&quot;: {
128 &quot;failovers&quot;: [ # If the health check for the primary target for a geo location returns an unhealthy status, the failover target is returned instead. This failover configuration is not mandatory. If a failover is not provided, the primary target won&#x27;t be healthchecked, and it returns the primarily configured rrdata irrespective of whether it is healthy or not.
129 {
130 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicyGeoPolicyItem&quot;,
131 &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.
132 &quot;rrdatas&quot;: [
133 &quot;A String&quot;,
134 ],
135 &quot;signatureRrdatas&quot;: [ # DNSSEC generated signatures for the above geo_rrdata.
136 &quot;A String&quot;,
137 ],
138 },
139 ],
140 &quot;items&quot;: [ # The primary geo routing configuration. If there are multiple items with the same location, an error is returned instead.
141 {
142 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicyGeoPolicyItem&quot;,
143 &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.
144 &quot;rrdatas&quot;: [
145 &quot;A String&quot;,
146 ],
147 &quot;signatureRrdatas&quot;: [ # DNSSEC generated signatures for the above geo_rrdata.
148 &quot;A String&quot;,
149 ],
150 },
151 ],
152 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicy&quot;,
153 },
154 &quot;geoPolicy&quot;: {
155 &quot;failovers&quot;: [ # If the health check for the primary target for a geo location returns an unhealthy status, the failover target is returned instead. This failover configuration is not mandatory. If a failover is not provided, the primary target won&#x27;t be healthchecked, and it returns the primarily configured rrdata irrespective of whether it is healthy or not.
156 {
157 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicyGeoPolicyItem&quot;,
158 &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.
159 &quot;rrdatas&quot;: [
160 &quot;A String&quot;,
161 ],
162 &quot;signatureRrdatas&quot;: [ # DNSSEC generated signatures for the above geo_rrdata.
163 &quot;A String&quot;,
164 ],
165 },
166 ],
167 &quot;items&quot;: [ # The primary geo routing configuration. If there are multiple items with the same location, an error is returned instead.
168 {
169 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicyGeoPolicyItem&quot;,
170 &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.
171 &quot;rrdatas&quot;: [
172 &quot;A String&quot;,
173 ],
174 &quot;signatureRrdatas&quot;: [ # DNSSEC generated signatures for the above geo_rrdata.
175 &quot;A String&quot;,
176 ],
177 },
178 ],
179 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicy&quot;,
180 },
181 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicy&quot;,
182 &quot;wrr&quot;: {
183 &quot;items&quot;: [
184 {
185 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyWrrPolicyWrrPolicyItem&quot;,
186 &quot;rrdatas&quot;: [
187 &quot;A String&quot;,
188 ],
189 &quot;signatureRrdatas&quot;: [ # DNSSEC generated signatures for the above wrr_rrdata.
190 &quot;A String&quot;,
191 ],
192 &quot;weight&quot;: 3.14, # The weight corresponding to this subset of rrdata. When multiple WeightedRoundRobinPolicyItems are configured, the probability of returning an rrset is proportional to its weight relative to the sum of weights configured for all items. This weight should be non-negative.
193 },
194 ],
195 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyWrrPolicy&quot;,
196 },
197 &quot;wrrPolicy&quot;: {
198 &quot;items&quot;: [
199 {
200 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyWrrPolicyWrrPolicyItem&quot;,
201 &quot;rrdatas&quot;: [
202 &quot;A String&quot;,
203 ],
204 &quot;signatureRrdatas&quot;: [ # DNSSEC generated signatures for the above wrr_rrdata.
205 &quot;A String&quot;,
206 ],
207 &quot;weight&quot;: 3.14, # The weight corresponding to this subset of rrdata. When multiple WeightedRoundRobinPolicyItems are configured, the probability of returning an rrset is proportional to its weight relative to the sum of weights configured for all items. This weight should be non-negative.
208 },
209 ],
210 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyWrrPolicy&quot;,
211 },
212 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800213 &quot;rrdatas&quot;: [ # As defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1) -- see examples.
214 &quot;A String&quot;,
215 ],
216 &quot;signatureRrdatas&quot;: [ # As defined in RFC 4034 (section 3.2).
217 &quot;A String&quot;,
218 ],
219 &quot;ttl&quot;: 42, # Number of seconds that this ResourceRecordSet can be cached by resolvers.
220 &quot;type&quot;: &quot;A String&quot;, # The identifier of a supported record type. See the list of Supported DNS record types.
221 },
222 ],
223 },
224 &quot;ruleName&quot;: &quot;A String&quot;, # An identifier for this rule. Must be unique with the ResponsePolicy.
225}
226
227 clientOperationId: string, For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
228 x__xgafv: string, V1 error format.
229 Allowed values
230 1 - v1 error format
231 2 - v2 error format
232
233Returns:
234 An object of the form:
235
236 { # 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.
237 &quot;behavior&quot;: &quot;A String&quot;, # Answer this query with a behavior rather than DNS data.
238 &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.
239 &quot;kind&quot;: &quot;dns#responsePolicyRule&quot;,
240 &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.
241 &quot;localDatas&quot;: [ # All resource record sets for this selector, one per resource record type. The name must match the dns_name.
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700242 { # A unit of data that is returned by the DNS servers.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800243 &quot;kind&quot;: &quot;dns#resourceRecordSet&quot;,
244 &quot;name&quot;: &quot;A String&quot;, # For example, www.example.com.
yoshi-code-bota36e3b12021-07-27 00:20:26 -0700245 &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 geo location of querying user or a weighted round robin based routing policy. A ResourceRecordSet should only have either rrdata (static) or routing_policy (dynamic). An error is returned otherwise.
246 &quot;geo&quot;: {
247 &quot;failovers&quot;: [ # If the health check for the primary target for a geo location returns an unhealthy status, the failover target is returned instead. This failover configuration is not mandatory. If a failover is not provided, the primary target won&#x27;t be healthchecked, and it returns the primarily configured rrdata irrespective of whether it is healthy or not.
248 {
249 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicyGeoPolicyItem&quot;,
250 &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.
251 &quot;rrdatas&quot;: [
252 &quot;A String&quot;,
253 ],
254 &quot;signatureRrdatas&quot;: [ # DNSSEC generated signatures for the above geo_rrdata.
255 &quot;A String&quot;,
256 ],
257 },
258 ],
259 &quot;items&quot;: [ # The primary geo routing configuration. If there are multiple items with the same location, an error is returned instead.
260 {
261 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicyGeoPolicyItem&quot;,
262 &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.
263 &quot;rrdatas&quot;: [
264 &quot;A String&quot;,
265 ],
266 &quot;signatureRrdatas&quot;: [ # DNSSEC generated signatures for the above geo_rrdata.
267 &quot;A String&quot;,
268 ],
269 },
270 ],
271 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicy&quot;,
272 },
273 &quot;geoPolicy&quot;: {
274 &quot;failovers&quot;: [ # If the health check for the primary target for a geo location returns an unhealthy status, the failover target is returned instead. This failover configuration is not mandatory. If a failover is not provided, the primary target won&#x27;t be healthchecked, and it returns the primarily configured rrdata irrespective of whether it is healthy or not.
275 {
276 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicyGeoPolicyItem&quot;,
277 &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.
278 &quot;rrdatas&quot;: [
279 &quot;A String&quot;,
280 ],
281 &quot;signatureRrdatas&quot;: [ # DNSSEC generated signatures for the above geo_rrdata.
282 &quot;A String&quot;,
283 ],
284 },
285 ],
286 &quot;items&quot;: [ # The primary geo routing configuration. If there are multiple items with the same location, an error is returned instead.
287 {
288 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicyGeoPolicyItem&quot;,
289 &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.
290 &quot;rrdatas&quot;: [
291 &quot;A String&quot;,
292 ],
293 &quot;signatureRrdatas&quot;: [ # DNSSEC generated signatures for the above geo_rrdata.
294 &quot;A String&quot;,
295 ],
296 },
297 ],
298 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicy&quot;,
299 },
300 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicy&quot;,
301 &quot;wrr&quot;: {
302 &quot;items&quot;: [
303 {
304 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyWrrPolicyWrrPolicyItem&quot;,
305 &quot;rrdatas&quot;: [
306 &quot;A String&quot;,
307 ],
308 &quot;signatureRrdatas&quot;: [ # DNSSEC generated signatures for the above wrr_rrdata.
309 &quot;A String&quot;,
310 ],
311 &quot;weight&quot;: 3.14, # The weight corresponding to this subset of rrdata. When multiple WeightedRoundRobinPolicyItems are configured, the probability of returning an rrset is proportional to its weight relative to the sum of weights configured for all items. This weight should be non-negative.
312 },
313 ],
314 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyWrrPolicy&quot;,
315 },
316 &quot;wrrPolicy&quot;: {
317 &quot;items&quot;: [
318 {
319 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyWrrPolicyWrrPolicyItem&quot;,
320 &quot;rrdatas&quot;: [
321 &quot;A String&quot;,
322 ],
323 &quot;signatureRrdatas&quot;: [ # DNSSEC generated signatures for the above wrr_rrdata.
324 &quot;A String&quot;,
325 ],
326 &quot;weight&quot;: 3.14, # The weight corresponding to this subset of rrdata. When multiple WeightedRoundRobinPolicyItems are configured, the probability of returning an rrset is proportional to its weight relative to the sum of weights configured for all items. This weight should be non-negative.
327 },
328 ],
329 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyWrrPolicy&quot;,
330 },
331 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800332 &quot;rrdatas&quot;: [ # As defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1) -- see examples.
333 &quot;A String&quot;,
334 ],
335 &quot;signatureRrdatas&quot;: [ # As defined in RFC 4034 (section 3.2).
336 &quot;A String&quot;,
337 ],
338 &quot;ttl&quot;: 42, # Number of seconds that this ResourceRecordSet can be cached by resolvers.
339 &quot;type&quot;: &quot;A String&quot;, # The identifier of a supported record type. See the list of Supported DNS record types.
340 },
341 ],
342 },
343 &quot;ruleName&quot;: &quot;A String&quot;, # An identifier for this rule. Must be unique with the ResponsePolicy.
344}</pre>
345</div>
346
347<div class="method">
348 <code class="details" id="delete">delete(project, responsePolicy, responsePolicyRule, clientOperationId=None, x__xgafv=None)</code>
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700349 <pre>Deletes a previously created Response Policy Rule.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800350
351Args:
352 project: string, Identifies the project addressed by this request. (required)
353 responsePolicy: string, User assigned name of the Response Policy containing the Response Policy Rule. (required)
354 responsePolicyRule: string, User assigned name of the Response Policy Rule addressed by this request. (required)
355 clientOperationId: string, For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
356 x__xgafv: string, V1 error format.
357 Allowed values
358 1 - v1 error format
359 2 - v2 error format
360</pre>
361</div>
362
363<div class="method">
364 <code class="details" id="get">get(project, responsePolicy, responsePolicyRule, clientOperationId=None, x__xgafv=None)</code>
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700365 <pre>Fetches the representation of an existing Response Policy Rule.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800366
367Args:
368 project: string, Identifies the project addressed by this request. (required)
369 responsePolicy: string, User assigned name of the Response Policy containing the Response Policy Rule. (required)
370 responsePolicyRule: string, User assigned name of the Response Policy Rule addressed by this request. (required)
371 clientOperationId: string, For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
372 x__xgafv: string, V1 error format.
373 Allowed values
374 1 - v1 error format
375 2 - v2 error format
376
377Returns:
378 An object of the form:
379
380 { # 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.
381 &quot;behavior&quot;: &quot;A String&quot;, # Answer this query with a behavior rather than DNS data.
382 &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.
383 &quot;kind&quot;: &quot;dns#responsePolicyRule&quot;,
384 &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.
385 &quot;localDatas&quot;: [ # All resource record sets for this selector, one per resource record type. The name must match the dns_name.
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700386 { # A unit of data that is returned by the DNS servers.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800387 &quot;kind&quot;: &quot;dns#resourceRecordSet&quot;,
388 &quot;name&quot;: &quot;A String&quot;, # For example, www.example.com.
yoshi-code-bota36e3b12021-07-27 00:20:26 -0700389 &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 geo location of querying user or a weighted round robin based routing policy. A ResourceRecordSet should only have either rrdata (static) or routing_policy (dynamic). An error is returned otherwise.
390 &quot;geo&quot;: {
391 &quot;failovers&quot;: [ # If the health check for the primary target for a geo location returns an unhealthy status, the failover target is returned instead. This failover configuration is not mandatory. If a failover is not provided, the primary target won&#x27;t be healthchecked, and it returns the primarily configured rrdata irrespective of whether it is healthy or not.
392 {
393 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicyGeoPolicyItem&quot;,
394 &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.
395 &quot;rrdatas&quot;: [
396 &quot;A String&quot;,
397 ],
398 &quot;signatureRrdatas&quot;: [ # DNSSEC generated signatures for the above geo_rrdata.
399 &quot;A String&quot;,
400 ],
401 },
402 ],
403 &quot;items&quot;: [ # The primary geo routing configuration. If there are multiple items with the same location, an error is returned instead.
404 {
405 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicyGeoPolicyItem&quot;,
406 &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.
407 &quot;rrdatas&quot;: [
408 &quot;A String&quot;,
409 ],
410 &quot;signatureRrdatas&quot;: [ # DNSSEC generated signatures for the above geo_rrdata.
411 &quot;A String&quot;,
412 ],
413 },
414 ],
415 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicy&quot;,
416 },
417 &quot;geoPolicy&quot;: {
418 &quot;failovers&quot;: [ # If the health check for the primary target for a geo location returns an unhealthy status, the failover target is returned instead. This failover configuration is not mandatory. If a failover is not provided, the primary target won&#x27;t be healthchecked, and it returns the primarily configured rrdata irrespective of whether it is healthy or not.
419 {
420 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicyGeoPolicyItem&quot;,
421 &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.
422 &quot;rrdatas&quot;: [
423 &quot;A String&quot;,
424 ],
425 &quot;signatureRrdatas&quot;: [ # DNSSEC generated signatures for the above geo_rrdata.
426 &quot;A String&quot;,
427 ],
428 },
429 ],
430 &quot;items&quot;: [ # The primary geo routing configuration. If there are multiple items with the same location, an error is returned instead.
431 {
432 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicyGeoPolicyItem&quot;,
433 &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.
434 &quot;rrdatas&quot;: [
435 &quot;A String&quot;,
436 ],
437 &quot;signatureRrdatas&quot;: [ # DNSSEC generated signatures for the above geo_rrdata.
438 &quot;A String&quot;,
439 ],
440 },
441 ],
442 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicy&quot;,
443 },
444 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicy&quot;,
445 &quot;wrr&quot;: {
446 &quot;items&quot;: [
447 {
448 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyWrrPolicyWrrPolicyItem&quot;,
449 &quot;rrdatas&quot;: [
450 &quot;A String&quot;,
451 ],
452 &quot;signatureRrdatas&quot;: [ # DNSSEC generated signatures for the above wrr_rrdata.
453 &quot;A String&quot;,
454 ],
455 &quot;weight&quot;: 3.14, # The weight corresponding to this subset of rrdata. When multiple WeightedRoundRobinPolicyItems are configured, the probability of returning an rrset is proportional to its weight relative to the sum of weights configured for all items. This weight should be non-negative.
456 },
457 ],
458 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyWrrPolicy&quot;,
459 },
460 &quot;wrrPolicy&quot;: {
461 &quot;items&quot;: [
462 {
463 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyWrrPolicyWrrPolicyItem&quot;,
464 &quot;rrdatas&quot;: [
465 &quot;A String&quot;,
466 ],
467 &quot;signatureRrdatas&quot;: [ # DNSSEC generated signatures for the above wrr_rrdata.
468 &quot;A String&quot;,
469 ],
470 &quot;weight&quot;: 3.14, # The weight corresponding to this subset of rrdata. When multiple WeightedRoundRobinPolicyItems are configured, the probability of returning an rrset is proportional to its weight relative to the sum of weights configured for all items. This weight should be non-negative.
471 },
472 ],
473 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyWrrPolicy&quot;,
474 },
475 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800476 &quot;rrdatas&quot;: [ # As defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1) -- see examples.
477 &quot;A String&quot;,
478 ],
479 &quot;signatureRrdatas&quot;: [ # As defined in RFC 4034 (section 3.2).
480 &quot;A String&quot;,
481 ],
482 &quot;ttl&quot;: 42, # Number of seconds that this ResourceRecordSet can be cached by resolvers.
483 &quot;type&quot;: &quot;A String&quot;, # The identifier of a supported record type. See the list of Supported DNS record types.
484 },
485 ],
486 },
487 &quot;ruleName&quot;: &quot;A String&quot;, # An identifier for this rule. Must be unique with the ResponsePolicy.
488}</pre>
489</div>
490
491<div class="method">
492 <code class="details" id="list">list(project, responsePolicy, maxResults=None, pageToken=None, x__xgafv=None)</code>
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700493 <pre>Enumerates all Response Policy Rules associated with a project.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800494
495Args:
496 project: string, Identifies the project addressed by this request. (required)
497 responsePolicy: string, User assigned name of the Response Policy to list. (required)
498 maxResults: integer, Optional. Maximum number of results to be returned. If unspecified, the server decides how many results to return.
499 pageToken: string, Optional. A tag returned by a previous list request that was truncated. Use this parameter to continue a previous list request.
500 x__xgafv: string, V1 error format.
501 Allowed values
502 1 - v1 error format
503 2 - v2 error format
504
505Returns:
506 An object of the form:
507
508 {
509 &quot;header&quot;: { # Elements common to every response.
510 &quot;operationId&quot;: &quot;A String&quot;, # For mutating operation requests that completed successfully. This is the client_operation_id if the client specified it, otherwise it is generated by the server (output only).
511 },
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700512 &quot;nextPageToken&quot;: &quot;A String&quot;, # The presence of this field indicates that there exist more results following your last page of results in pagination order. To fetch them, make another list request using this value as your page token. This lets you the complete contents of even very large collections one page at a time. However, if the contents of the collection change between the first and last paginated list request, the set of all elements returned are an inconsistent view of the collection. You cannot retrieve a consistent snapshot of a collection larger than the maximum page size.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800513 &quot;responsePolicyRules&quot;: [ # The Response Policy Rule resources.
514 { # 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.
515 &quot;behavior&quot;: &quot;A String&quot;, # Answer this query with a behavior rather than DNS data.
516 &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.
517 &quot;kind&quot;: &quot;dns#responsePolicyRule&quot;,
518 &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.
519 &quot;localDatas&quot;: [ # All resource record sets for this selector, one per resource record type. The name must match the dns_name.
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700520 { # A unit of data that is returned by the DNS servers.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800521 &quot;kind&quot;: &quot;dns#resourceRecordSet&quot;,
522 &quot;name&quot;: &quot;A String&quot;, # For example, www.example.com.
yoshi-code-bota36e3b12021-07-27 00:20:26 -0700523 &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 geo location of querying user or a weighted round robin based routing policy. A ResourceRecordSet should only have either rrdata (static) or routing_policy (dynamic). An error is returned otherwise.
524 &quot;geo&quot;: {
525 &quot;failovers&quot;: [ # If the health check for the primary target for a geo location returns an unhealthy status, the failover target is returned instead. This failover configuration is not mandatory. If a failover is not provided, the primary target won&#x27;t be healthchecked, and it returns the primarily configured rrdata irrespective of whether it is healthy or not.
526 {
527 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicyGeoPolicyItem&quot;,
528 &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.
529 &quot;rrdatas&quot;: [
530 &quot;A String&quot;,
531 ],
532 &quot;signatureRrdatas&quot;: [ # DNSSEC generated signatures for the above geo_rrdata.
533 &quot;A String&quot;,
534 ],
535 },
536 ],
537 &quot;items&quot;: [ # The primary geo routing configuration. If there are multiple items with the same location, an error is returned instead.
538 {
539 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicyGeoPolicyItem&quot;,
540 &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.
541 &quot;rrdatas&quot;: [
542 &quot;A String&quot;,
543 ],
544 &quot;signatureRrdatas&quot;: [ # DNSSEC generated signatures for the above geo_rrdata.
545 &quot;A String&quot;,
546 ],
547 },
548 ],
549 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicy&quot;,
550 },
551 &quot;geoPolicy&quot;: {
552 &quot;failovers&quot;: [ # If the health check for the primary target for a geo location returns an unhealthy status, the failover target is returned instead. This failover configuration is not mandatory. If a failover is not provided, the primary target won&#x27;t be healthchecked, and it returns the primarily configured rrdata irrespective of whether it is healthy or not.
553 {
554 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicyGeoPolicyItem&quot;,
555 &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.
556 &quot;rrdatas&quot;: [
557 &quot;A String&quot;,
558 ],
559 &quot;signatureRrdatas&quot;: [ # DNSSEC generated signatures for the above geo_rrdata.
560 &quot;A String&quot;,
561 ],
562 },
563 ],
564 &quot;items&quot;: [ # The primary geo routing configuration. If there are multiple items with the same location, an error is returned instead.
565 {
566 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicyGeoPolicyItem&quot;,
567 &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.
568 &quot;rrdatas&quot;: [
569 &quot;A String&quot;,
570 ],
571 &quot;signatureRrdatas&quot;: [ # DNSSEC generated signatures for the above geo_rrdata.
572 &quot;A String&quot;,
573 ],
574 },
575 ],
576 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicy&quot;,
577 },
578 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicy&quot;,
579 &quot;wrr&quot;: {
580 &quot;items&quot;: [
581 {
582 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyWrrPolicyWrrPolicyItem&quot;,
583 &quot;rrdatas&quot;: [
584 &quot;A String&quot;,
585 ],
586 &quot;signatureRrdatas&quot;: [ # DNSSEC generated signatures for the above wrr_rrdata.
587 &quot;A String&quot;,
588 ],
589 &quot;weight&quot;: 3.14, # The weight corresponding to this subset of rrdata. When multiple WeightedRoundRobinPolicyItems are configured, the probability of returning an rrset is proportional to its weight relative to the sum of weights configured for all items. This weight should be non-negative.
590 },
591 ],
592 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyWrrPolicy&quot;,
593 },
594 &quot;wrrPolicy&quot;: {
595 &quot;items&quot;: [
596 {
597 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyWrrPolicyWrrPolicyItem&quot;,
598 &quot;rrdatas&quot;: [
599 &quot;A String&quot;,
600 ],
601 &quot;signatureRrdatas&quot;: [ # DNSSEC generated signatures for the above wrr_rrdata.
602 &quot;A String&quot;,
603 ],
604 &quot;weight&quot;: 3.14, # The weight corresponding to this subset of rrdata. When multiple WeightedRoundRobinPolicyItems are configured, the probability of returning an rrset is proportional to its weight relative to the sum of weights configured for all items. This weight should be non-negative.
605 },
606 ],
607 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyWrrPolicy&quot;,
608 },
609 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800610 &quot;rrdatas&quot;: [ # As defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1) -- see examples.
611 &quot;A String&quot;,
612 ],
613 &quot;signatureRrdatas&quot;: [ # As defined in RFC 4034 (section 3.2).
614 &quot;A String&quot;,
615 ],
616 &quot;ttl&quot;: 42, # Number of seconds that this ResourceRecordSet can be cached by resolvers.
617 &quot;type&quot;: &quot;A String&quot;, # The identifier of a supported record type. See the list of Supported DNS record types.
618 },
619 ],
620 },
621 &quot;ruleName&quot;: &quot;A String&quot;, # An identifier for this rule. Must be unique with the ResponsePolicy.
622 },
623 ],
624}</pre>
625</div>
626
627<div class="method">
628 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
629 <pre>Retrieves the next page of results.
630
631Args:
632 previous_request: The request for the previous page. (required)
633 previous_response: The response from the request for the previous page. (required)
634
635Returns:
636 A request object that you can call &#x27;execute()&#x27; on to request the next
637 page. Returns None if there are no more items in the collection.
638 </pre>
639</div>
640
641<div class="method">
642 <code class="details" id="patch">patch(project, responsePolicy, responsePolicyRule, body=None, clientOperationId=None, x__xgafv=None)</code>
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700643 <pre>Applies a partial update to an existing Response Policy Rule.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800644
645Args:
646 project: string, Identifies the project addressed by this request. (required)
647 responsePolicy: string, User assigned name of the Response Policy containing the Response Policy Rule. (required)
648 responsePolicyRule: string, User assigned name of the Response Policy Rule addressed by this request. (required)
649 body: object, The request body.
650 The object takes the form of:
651
652{ # 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.
653 &quot;behavior&quot;: &quot;A String&quot;, # Answer this query with a behavior rather than DNS data.
654 &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.
655 &quot;kind&quot;: &quot;dns#responsePolicyRule&quot;,
656 &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.
657 &quot;localDatas&quot;: [ # All resource record sets for this selector, one per resource record type. The name must match the dns_name.
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700658 { # A unit of data that is returned by the DNS servers.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800659 &quot;kind&quot;: &quot;dns#resourceRecordSet&quot;,
660 &quot;name&quot;: &quot;A String&quot;, # For example, www.example.com.
yoshi-code-bota36e3b12021-07-27 00:20:26 -0700661 &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 geo location of querying user or a weighted round robin based routing policy. A ResourceRecordSet should only have either rrdata (static) or routing_policy (dynamic). An error is returned otherwise.
662 &quot;geo&quot;: {
663 &quot;failovers&quot;: [ # If the health check for the primary target for a geo location returns an unhealthy status, the failover target is returned instead. This failover configuration is not mandatory. If a failover is not provided, the primary target won&#x27;t be healthchecked, and it returns the primarily configured rrdata irrespective of whether it is healthy or not.
664 {
665 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicyGeoPolicyItem&quot;,
666 &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.
667 &quot;rrdatas&quot;: [
668 &quot;A String&quot;,
669 ],
670 &quot;signatureRrdatas&quot;: [ # DNSSEC generated signatures for the above geo_rrdata.
671 &quot;A String&quot;,
672 ],
673 },
674 ],
675 &quot;items&quot;: [ # The primary geo routing configuration. If there are multiple items with the same location, an error is returned instead.
676 {
677 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicyGeoPolicyItem&quot;,
678 &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.
679 &quot;rrdatas&quot;: [
680 &quot;A String&quot;,
681 ],
682 &quot;signatureRrdatas&quot;: [ # DNSSEC generated signatures for the above geo_rrdata.
683 &quot;A String&quot;,
684 ],
685 },
686 ],
687 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicy&quot;,
688 },
689 &quot;geoPolicy&quot;: {
690 &quot;failovers&quot;: [ # If the health check for the primary target for a geo location returns an unhealthy status, the failover target is returned instead. This failover configuration is not mandatory. If a failover is not provided, the primary target won&#x27;t be healthchecked, and it returns the primarily configured rrdata irrespective of whether it is healthy or not.
691 {
692 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicyGeoPolicyItem&quot;,
693 &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.
694 &quot;rrdatas&quot;: [
695 &quot;A String&quot;,
696 ],
697 &quot;signatureRrdatas&quot;: [ # DNSSEC generated signatures for the above geo_rrdata.
698 &quot;A String&quot;,
699 ],
700 },
701 ],
702 &quot;items&quot;: [ # The primary geo routing configuration. If there are multiple items with the same location, an error is returned instead.
703 {
704 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicyGeoPolicyItem&quot;,
705 &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.
706 &quot;rrdatas&quot;: [
707 &quot;A String&quot;,
708 ],
709 &quot;signatureRrdatas&quot;: [ # DNSSEC generated signatures for the above geo_rrdata.
710 &quot;A String&quot;,
711 ],
712 },
713 ],
714 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicy&quot;,
715 },
716 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicy&quot;,
717 &quot;wrr&quot;: {
718 &quot;items&quot;: [
719 {
720 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyWrrPolicyWrrPolicyItem&quot;,
721 &quot;rrdatas&quot;: [
722 &quot;A String&quot;,
723 ],
724 &quot;signatureRrdatas&quot;: [ # DNSSEC generated signatures for the above wrr_rrdata.
725 &quot;A String&quot;,
726 ],
727 &quot;weight&quot;: 3.14, # The weight corresponding to this subset of rrdata. When multiple WeightedRoundRobinPolicyItems are configured, the probability of returning an rrset is proportional to its weight relative to the sum of weights configured for all items. This weight should be non-negative.
728 },
729 ],
730 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyWrrPolicy&quot;,
731 },
732 &quot;wrrPolicy&quot;: {
733 &quot;items&quot;: [
734 {
735 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyWrrPolicyWrrPolicyItem&quot;,
736 &quot;rrdatas&quot;: [
737 &quot;A String&quot;,
738 ],
739 &quot;signatureRrdatas&quot;: [ # DNSSEC generated signatures for the above wrr_rrdata.
740 &quot;A String&quot;,
741 ],
742 &quot;weight&quot;: 3.14, # The weight corresponding to this subset of rrdata. When multiple WeightedRoundRobinPolicyItems are configured, the probability of returning an rrset is proportional to its weight relative to the sum of weights configured for all items. This weight should be non-negative.
743 },
744 ],
745 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyWrrPolicy&quot;,
746 },
747 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800748 &quot;rrdatas&quot;: [ # As defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1) -- see examples.
749 &quot;A String&quot;,
750 ],
751 &quot;signatureRrdatas&quot;: [ # As defined in RFC 4034 (section 3.2).
752 &quot;A String&quot;,
753 ],
754 &quot;ttl&quot;: 42, # Number of seconds that this ResourceRecordSet can be cached by resolvers.
755 &quot;type&quot;: &quot;A String&quot;, # The identifier of a supported record type. See the list of Supported DNS record types.
756 },
757 ],
758 },
759 &quot;ruleName&quot;: &quot;A String&quot;, # An identifier for this rule. Must be unique with the ResponsePolicy.
760}
761
762 clientOperationId: string, For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
763 x__xgafv: string, V1 error format.
764 Allowed values
765 1 - v1 error format
766 2 - v2 error format
767
768Returns:
769 An object of the form:
770
771 {
772 &quot;header&quot;: { # Elements common to every response.
773 &quot;operationId&quot;: &quot;A String&quot;, # For mutating operation requests that completed successfully. This is the client_operation_id if the client specified it, otherwise it is generated by the server (output only).
774 },
775 &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.
776 &quot;behavior&quot;: &quot;A String&quot;, # Answer this query with a behavior rather than DNS data.
777 &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.
778 &quot;kind&quot;: &quot;dns#responsePolicyRule&quot;,
779 &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.
780 &quot;localDatas&quot;: [ # All resource record sets for this selector, one per resource record type. The name must match the dns_name.
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700781 { # A unit of data that is returned by the DNS servers.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800782 &quot;kind&quot;: &quot;dns#resourceRecordSet&quot;,
783 &quot;name&quot;: &quot;A String&quot;, # For example, www.example.com.
yoshi-code-bota36e3b12021-07-27 00:20:26 -0700784 &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 geo location of querying user or a weighted round robin based routing policy. A ResourceRecordSet should only have either rrdata (static) or routing_policy (dynamic). An error is returned otherwise.
785 &quot;geo&quot;: {
786 &quot;failovers&quot;: [ # If the health check for the primary target for a geo location returns an unhealthy status, the failover target is returned instead. This failover configuration is not mandatory. If a failover is not provided, the primary target won&#x27;t be healthchecked, and it returns the primarily configured rrdata irrespective of whether it is healthy or not.
787 {
788 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicyGeoPolicyItem&quot;,
789 &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.
790 &quot;rrdatas&quot;: [
791 &quot;A String&quot;,
792 ],
793 &quot;signatureRrdatas&quot;: [ # DNSSEC generated signatures for the above geo_rrdata.
794 &quot;A String&quot;,
795 ],
796 },
797 ],
798 &quot;items&quot;: [ # The primary geo routing configuration. If there are multiple items with the same location, an error is returned instead.
799 {
800 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicyGeoPolicyItem&quot;,
801 &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.
802 &quot;rrdatas&quot;: [
803 &quot;A String&quot;,
804 ],
805 &quot;signatureRrdatas&quot;: [ # DNSSEC generated signatures for the above geo_rrdata.
806 &quot;A String&quot;,
807 ],
808 },
809 ],
810 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicy&quot;,
811 },
812 &quot;geoPolicy&quot;: {
813 &quot;failovers&quot;: [ # If the health check for the primary target for a geo location returns an unhealthy status, the failover target is returned instead. This failover configuration is not mandatory. If a failover is not provided, the primary target won&#x27;t be healthchecked, and it returns the primarily configured rrdata irrespective of whether it is healthy or not.
814 {
815 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicyGeoPolicyItem&quot;,
816 &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.
817 &quot;rrdatas&quot;: [
818 &quot;A String&quot;,
819 ],
820 &quot;signatureRrdatas&quot;: [ # DNSSEC generated signatures for the above geo_rrdata.
821 &quot;A String&quot;,
822 ],
823 },
824 ],
825 &quot;items&quot;: [ # The primary geo routing configuration. If there are multiple items with the same location, an error is returned instead.
826 {
827 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicyGeoPolicyItem&quot;,
828 &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.
829 &quot;rrdatas&quot;: [
830 &quot;A String&quot;,
831 ],
832 &quot;signatureRrdatas&quot;: [ # DNSSEC generated signatures for the above geo_rrdata.
833 &quot;A String&quot;,
834 ],
835 },
836 ],
837 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicy&quot;,
838 },
839 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicy&quot;,
840 &quot;wrr&quot;: {
841 &quot;items&quot;: [
842 {
843 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyWrrPolicyWrrPolicyItem&quot;,
844 &quot;rrdatas&quot;: [
845 &quot;A String&quot;,
846 ],
847 &quot;signatureRrdatas&quot;: [ # DNSSEC generated signatures for the above wrr_rrdata.
848 &quot;A String&quot;,
849 ],
850 &quot;weight&quot;: 3.14, # The weight corresponding to this subset of rrdata. When multiple WeightedRoundRobinPolicyItems are configured, the probability of returning an rrset is proportional to its weight relative to the sum of weights configured for all items. This weight should be non-negative.
851 },
852 ],
853 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyWrrPolicy&quot;,
854 },
855 &quot;wrrPolicy&quot;: {
856 &quot;items&quot;: [
857 {
858 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyWrrPolicyWrrPolicyItem&quot;,
859 &quot;rrdatas&quot;: [
860 &quot;A String&quot;,
861 ],
862 &quot;signatureRrdatas&quot;: [ # DNSSEC generated signatures for the above wrr_rrdata.
863 &quot;A String&quot;,
864 ],
865 &quot;weight&quot;: 3.14, # The weight corresponding to this subset of rrdata. When multiple WeightedRoundRobinPolicyItems are configured, the probability of returning an rrset is proportional to its weight relative to the sum of weights configured for all items. This weight should be non-negative.
866 },
867 ],
868 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyWrrPolicy&quot;,
869 },
870 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800871 &quot;rrdatas&quot;: [ # As defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1) -- see examples.
872 &quot;A String&quot;,
873 ],
874 &quot;signatureRrdatas&quot;: [ # As defined in RFC 4034 (section 3.2).
875 &quot;A String&quot;,
876 ],
877 &quot;ttl&quot;: 42, # Number of seconds that this ResourceRecordSet can be cached by resolvers.
878 &quot;type&quot;: &quot;A String&quot;, # The identifier of a supported record type. See the list of Supported DNS record types.
879 },
880 ],
881 },
882 &quot;ruleName&quot;: &quot;A String&quot;, # An identifier for this rule. Must be unique with the ResponsePolicy.
883 },
884}</pre>
885</div>
886
887<div class="method">
888 <code class="details" id="update">update(project, responsePolicy, responsePolicyRule, body=None, clientOperationId=None, x__xgafv=None)</code>
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700889 <pre>Updates an existing Response Policy Rule.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800890
891Args:
892 project: string, Identifies the project addressed by this request. (required)
893 responsePolicy: string, User assigned name of the Response Policy containing the Response Policy Rule. (required)
894 responsePolicyRule: string, User assigned name of the Response Policy Rule addressed by this request. (required)
895 body: object, The request body.
896 The object takes the form of:
897
898{ # 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.
899 &quot;behavior&quot;: &quot;A String&quot;, # Answer this query with a behavior rather than DNS data.
900 &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.
901 &quot;kind&quot;: &quot;dns#responsePolicyRule&quot;,
902 &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.
903 &quot;localDatas&quot;: [ # All resource record sets for this selector, one per resource record type. The name must match the dns_name.
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700904 { # A unit of data that is returned by the DNS servers.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800905 &quot;kind&quot;: &quot;dns#resourceRecordSet&quot;,
906 &quot;name&quot;: &quot;A String&quot;, # For example, www.example.com.
yoshi-code-bota36e3b12021-07-27 00:20:26 -0700907 &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 geo location of querying user or a weighted round robin based routing policy. A ResourceRecordSet should only have either rrdata (static) or routing_policy (dynamic). An error is returned otherwise.
908 &quot;geo&quot;: {
909 &quot;failovers&quot;: [ # If the health check for the primary target for a geo location returns an unhealthy status, the failover target is returned instead. This failover configuration is not mandatory. If a failover is not provided, the primary target won&#x27;t be healthchecked, and it returns the primarily configured rrdata irrespective of whether it is healthy or not.
910 {
911 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicyGeoPolicyItem&quot;,
912 &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.
913 &quot;rrdatas&quot;: [
914 &quot;A String&quot;,
915 ],
916 &quot;signatureRrdatas&quot;: [ # DNSSEC generated signatures for the above geo_rrdata.
917 &quot;A String&quot;,
918 ],
919 },
920 ],
921 &quot;items&quot;: [ # The primary geo routing configuration. If there are multiple items with the same location, an error is returned instead.
922 {
923 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicyGeoPolicyItem&quot;,
924 &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.
925 &quot;rrdatas&quot;: [
926 &quot;A String&quot;,
927 ],
928 &quot;signatureRrdatas&quot;: [ # DNSSEC generated signatures for the above geo_rrdata.
929 &quot;A String&quot;,
930 ],
931 },
932 ],
933 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicy&quot;,
934 },
935 &quot;geoPolicy&quot;: {
936 &quot;failovers&quot;: [ # If the health check for the primary target for a geo location returns an unhealthy status, the failover target is returned instead. This failover configuration is not mandatory. If a failover is not provided, the primary target won&#x27;t be healthchecked, and it returns the primarily configured rrdata irrespective of whether it is healthy or not.
937 {
938 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicyGeoPolicyItem&quot;,
939 &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.
940 &quot;rrdatas&quot;: [
941 &quot;A String&quot;,
942 ],
943 &quot;signatureRrdatas&quot;: [ # DNSSEC generated signatures for the above geo_rrdata.
944 &quot;A String&quot;,
945 ],
946 },
947 ],
948 &quot;items&quot;: [ # The primary geo routing configuration. If there are multiple items with the same location, an error is returned instead.
949 {
950 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicyGeoPolicyItem&quot;,
951 &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.
952 &quot;rrdatas&quot;: [
953 &quot;A String&quot;,
954 ],
955 &quot;signatureRrdatas&quot;: [ # DNSSEC generated signatures for the above geo_rrdata.
956 &quot;A String&quot;,
957 ],
958 },
959 ],
960 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicy&quot;,
961 },
962 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicy&quot;,
963 &quot;wrr&quot;: {
964 &quot;items&quot;: [
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 the above wrr_rrdata.
971 &quot;A String&quot;,
972 ],
973 &quot;weight&quot;: 3.14, # The weight corresponding to this subset of rrdata. When multiple WeightedRoundRobinPolicyItems are configured, the probability of returning an rrset is proportional to its weight relative to the sum of weights configured for all items. This weight should be non-negative.
974 },
975 ],
976 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyWrrPolicy&quot;,
977 },
978 &quot;wrrPolicy&quot;: {
979 &quot;items&quot;: [
980 {
981 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyWrrPolicyWrrPolicyItem&quot;,
982 &quot;rrdatas&quot;: [
983 &quot;A String&quot;,
984 ],
985 &quot;signatureRrdatas&quot;: [ # DNSSEC generated signatures for the above wrr_rrdata.
986 &quot;A String&quot;,
987 ],
988 &quot;weight&quot;: 3.14, # The weight corresponding to this subset of rrdata. When multiple WeightedRoundRobinPolicyItems are configured, the probability of returning an rrset is proportional to its weight relative to the sum of weights configured for all items. This weight should be non-negative.
989 },
990 ],
991 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyWrrPolicy&quot;,
992 },
993 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800994 &quot;rrdatas&quot;: [ # As defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1) -- see examples.
995 &quot;A String&quot;,
996 ],
997 &quot;signatureRrdatas&quot;: [ # As defined in RFC 4034 (section 3.2).
998 &quot;A String&quot;,
999 ],
1000 &quot;ttl&quot;: 42, # Number of seconds that this ResourceRecordSet can be cached by resolvers.
1001 &quot;type&quot;: &quot;A String&quot;, # The identifier of a supported record type. See the list of Supported DNS record types.
1002 },
1003 ],
1004 },
1005 &quot;ruleName&quot;: &quot;A String&quot;, # An identifier for this rule. Must be unique with the ResponsePolicy.
1006}
1007
1008 clientOperationId: string, For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
1009 x__xgafv: string, V1 error format.
1010 Allowed values
1011 1 - v1 error format
1012 2 - v2 error format
1013
1014Returns:
1015 An object of the form:
1016
1017 {
1018 &quot;header&quot;: { # Elements common to every response.
1019 &quot;operationId&quot;: &quot;A String&quot;, # For mutating operation requests that completed successfully. This is the client_operation_id if the client specified it, otherwise it is generated by the server (output only).
1020 },
1021 &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.
1022 &quot;behavior&quot;: &quot;A String&quot;, # Answer this query with a behavior rather than DNS data.
1023 &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.
1024 &quot;kind&quot;: &quot;dns#responsePolicyRule&quot;,
1025 &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.
1026 &quot;localDatas&quot;: [ # All resource record sets for this selector, one per resource record type. The name must match the dns_name.
yoshi-code-bota8b35b92021-03-31 13:33:30 -07001027 { # A unit of data that is returned by the DNS servers.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001028 &quot;kind&quot;: &quot;dns#resourceRecordSet&quot;,
1029 &quot;name&quot;: &quot;A String&quot;, # For example, www.example.com.
yoshi-code-bota36e3b12021-07-27 00:20:26 -07001030 &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 geo location of querying user or a weighted round robin based routing policy. A ResourceRecordSet should only have either rrdata (static) or routing_policy (dynamic). An error is returned otherwise.
1031 &quot;geo&quot;: {
1032 &quot;failovers&quot;: [ # If the health check for the primary target for a geo location returns an unhealthy status, the failover target is returned instead. This failover configuration is not mandatory. If a failover is not provided, the primary target won&#x27;t be healthchecked, and it returns the primarily configured rrdata irrespective of whether it is healthy or not.
1033 {
1034 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicyGeoPolicyItem&quot;,
1035 &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.
1036 &quot;rrdatas&quot;: [
1037 &quot;A String&quot;,
1038 ],
1039 &quot;signatureRrdatas&quot;: [ # DNSSEC generated signatures for the above geo_rrdata.
1040 &quot;A String&quot;,
1041 ],
1042 },
1043 ],
1044 &quot;items&quot;: [ # The primary geo routing configuration. If there are multiple items with the same location, an error is returned instead.
1045 {
1046 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicyGeoPolicyItem&quot;,
1047 &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.
1048 &quot;rrdatas&quot;: [
1049 &quot;A String&quot;,
1050 ],
1051 &quot;signatureRrdatas&quot;: [ # DNSSEC generated signatures for the above geo_rrdata.
1052 &quot;A String&quot;,
1053 ],
1054 },
1055 ],
1056 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicy&quot;,
1057 },
1058 &quot;geoPolicy&quot;: {
1059 &quot;failovers&quot;: [ # If the health check for the primary target for a geo location returns an unhealthy status, the failover target is returned instead. This failover configuration is not mandatory. If a failover is not provided, the primary target won&#x27;t be healthchecked, and it returns the primarily configured rrdata irrespective of whether it is healthy or not.
1060 {
1061 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicyGeoPolicyItem&quot;,
1062 &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.
1063 &quot;rrdatas&quot;: [
1064 &quot;A String&quot;,
1065 ],
1066 &quot;signatureRrdatas&quot;: [ # DNSSEC generated signatures for the above geo_rrdata.
1067 &quot;A String&quot;,
1068 ],
1069 },
1070 ],
1071 &quot;items&quot;: [ # The primary geo routing configuration. If there are multiple items with the same location, an error is returned instead.
1072 {
1073 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicyGeoPolicyItem&quot;,
1074 &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.
1075 &quot;rrdatas&quot;: [
1076 &quot;A String&quot;,
1077 ],
1078 &quot;signatureRrdatas&quot;: [ # DNSSEC generated signatures for the above geo_rrdata.
1079 &quot;A String&quot;,
1080 ],
1081 },
1082 ],
1083 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicy&quot;,
1084 },
1085 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicy&quot;,
1086 &quot;wrr&quot;: {
1087 &quot;items&quot;: [
1088 {
1089 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyWrrPolicyWrrPolicyItem&quot;,
1090 &quot;rrdatas&quot;: [
1091 &quot;A String&quot;,
1092 ],
1093 &quot;signatureRrdatas&quot;: [ # DNSSEC generated signatures for the above wrr_rrdata.
1094 &quot;A String&quot;,
1095 ],
1096 &quot;weight&quot;: 3.14, # The weight corresponding to this subset of rrdata. When multiple WeightedRoundRobinPolicyItems are configured, the probability of returning an rrset is proportional to its weight relative to the sum of weights configured for all items. This weight should be non-negative.
1097 },
1098 ],
1099 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyWrrPolicy&quot;,
1100 },
1101 &quot;wrrPolicy&quot;: {
1102 &quot;items&quot;: [
1103 {
1104 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyWrrPolicyWrrPolicyItem&quot;,
1105 &quot;rrdatas&quot;: [
1106 &quot;A String&quot;,
1107 ],
1108 &quot;signatureRrdatas&quot;: [ # DNSSEC generated signatures for the above wrr_rrdata.
1109 &quot;A String&quot;,
1110 ],
1111 &quot;weight&quot;: 3.14, # The weight corresponding to this subset of rrdata. When multiple WeightedRoundRobinPolicyItems are configured, the probability of returning an rrset is proportional to its weight relative to the sum of weights configured for all items. This weight should be non-negative.
1112 },
1113 ],
1114 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyWrrPolicy&quot;,
1115 },
1116 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001117 &quot;rrdatas&quot;: [ # As defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1) -- see examples.
1118 &quot;A String&quot;,
1119 ],
1120 &quot;signatureRrdatas&quot;: [ # As defined in RFC 4034 (section 3.2).
1121 &quot;A String&quot;,
1122 ],
1123 &quot;ttl&quot;: 42, # Number of seconds that this ResourceRecordSet can be cached by resolvers.
1124 &quot;type&quot;: &quot;A String&quot;, # The identifier of a supported record type. See the list of Supported DNS record types.
1125 },
1126 ],
1127 },
1128 &quot;ruleName&quot;: &quot;A String&quot;, # An identifier for this rule. Must be unique with the ResponsePolicy.
1129 },
1130}</pre>
1131</div>
1132
1133</body></html>