blob: 1306f112b4f7577a7542af5e84a77459b0f671c4 [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;: {
yoshi-code-bota36e3b12021-07-27 00:20:26 -0700128 &quot;items&quot;: [ # The primary geo routing configuration. If there are multiple items with the same location, an error is returned instead.
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;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicy&quot;,
141 },
142 &quot;geoPolicy&quot;: {
yoshi-code-bota36e3b12021-07-27 00:20:26 -0700143 &quot;items&quot;: [ # The primary geo routing configuration. If there are multiple items with the same location, an error is returned instead.
144 {
145 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicyGeoPolicyItem&quot;,
146 &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.
147 &quot;rrdatas&quot;: [
148 &quot;A String&quot;,
149 ],
150 &quot;signatureRrdatas&quot;: [ # DNSSEC generated signatures for the above geo_rrdata.
151 &quot;A String&quot;,
152 ],
153 },
154 ],
155 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicy&quot;,
156 },
157 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicy&quot;,
158 &quot;wrr&quot;: {
159 &quot;items&quot;: [
160 {
161 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyWrrPolicyWrrPolicyItem&quot;,
162 &quot;rrdatas&quot;: [
163 &quot;A String&quot;,
164 ],
165 &quot;signatureRrdatas&quot;: [ # DNSSEC generated signatures for the above wrr_rrdata.
166 &quot;A String&quot;,
167 ],
168 &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.
169 },
170 ],
171 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyWrrPolicy&quot;,
172 },
173 &quot;wrrPolicy&quot;: {
174 &quot;items&quot;: [
175 {
176 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyWrrPolicyWrrPolicyItem&quot;,
177 &quot;rrdatas&quot;: [
178 &quot;A String&quot;,
179 ],
180 &quot;signatureRrdatas&quot;: [ # DNSSEC generated signatures for the above wrr_rrdata.
181 &quot;A String&quot;,
182 ],
183 &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.
184 },
185 ],
186 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyWrrPolicy&quot;,
187 },
188 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800189 &quot;rrdatas&quot;: [ # As defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1) -- see examples.
190 &quot;A String&quot;,
191 ],
192 &quot;signatureRrdatas&quot;: [ # As defined in RFC 4034 (section 3.2).
193 &quot;A String&quot;,
194 ],
195 &quot;ttl&quot;: 42, # Number of seconds that this ResourceRecordSet can be cached by resolvers.
196 &quot;type&quot;: &quot;A String&quot;, # The identifier of a supported record type. See the list of Supported DNS record types.
197 },
198 ],
199 },
200 &quot;ruleName&quot;: &quot;A String&quot;, # An identifier for this rule. Must be unique with the ResponsePolicy.
201}
202
203 clientOperationId: string, For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
204 x__xgafv: string, V1 error format.
205 Allowed values
206 1 - v1 error format
207 2 - v2 error format
208
209Returns:
210 An object of the form:
211
212 { # 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.
213 &quot;behavior&quot;: &quot;A String&quot;, # Answer this query with a behavior rather than DNS data.
214 &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.
215 &quot;kind&quot;: &quot;dns#responsePolicyRule&quot;,
216 &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.
217 &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 -0700218 { # A unit of data that is returned by the DNS servers.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800219 &quot;kind&quot;: &quot;dns#resourceRecordSet&quot;,
220 &quot;name&quot;: &quot;A String&quot;, # For example, www.example.com.
yoshi-code-bota36e3b12021-07-27 00:20:26 -0700221 &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.
222 &quot;geo&quot;: {
yoshi-code-bota36e3b12021-07-27 00:20:26 -0700223 &quot;items&quot;: [ # The primary geo routing configuration. If there are multiple items with the same location, an error is returned instead.
224 {
225 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicyGeoPolicyItem&quot;,
226 &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.
227 &quot;rrdatas&quot;: [
228 &quot;A String&quot;,
229 ],
230 &quot;signatureRrdatas&quot;: [ # DNSSEC generated signatures for the above geo_rrdata.
231 &quot;A String&quot;,
232 ],
233 },
234 ],
235 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicy&quot;,
236 },
237 &quot;geoPolicy&quot;: {
yoshi-code-bota36e3b12021-07-27 00:20:26 -0700238 &quot;items&quot;: [ # The primary geo routing configuration. If there are multiple items with the same location, an error is returned instead.
239 {
240 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicyGeoPolicyItem&quot;,
241 &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.
242 &quot;rrdatas&quot;: [
243 &quot;A String&quot;,
244 ],
245 &quot;signatureRrdatas&quot;: [ # DNSSEC generated signatures for the above geo_rrdata.
246 &quot;A String&quot;,
247 ],
248 },
249 ],
250 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicy&quot;,
251 },
252 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicy&quot;,
253 &quot;wrr&quot;: {
254 &quot;items&quot;: [
255 {
256 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyWrrPolicyWrrPolicyItem&quot;,
257 &quot;rrdatas&quot;: [
258 &quot;A String&quot;,
259 ],
260 &quot;signatureRrdatas&quot;: [ # DNSSEC generated signatures for the above wrr_rrdata.
261 &quot;A String&quot;,
262 ],
263 &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.
264 },
265 ],
266 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyWrrPolicy&quot;,
267 },
268 &quot;wrrPolicy&quot;: {
269 &quot;items&quot;: [
270 {
271 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyWrrPolicyWrrPolicyItem&quot;,
272 &quot;rrdatas&quot;: [
273 &quot;A String&quot;,
274 ],
275 &quot;signatureRrdatas&quot;: [ # DNSSEC generated signatures for the above wrr_rrdata.
276 &quot;A String&quot;,
277 ],
278 &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.
279 },
280 ],
281 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyWrrPolicy&quot;,
282 },
283 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800284 &quot;rrdatas&quot;: [ # As defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1) -- see examples.
285 &quot;A String&quot;,
286 ],
287 &quot;signatureRrdatas&quot;: [ # As defined in RFC 4034 (section 3.2).
288 &quot;A String&quot;,
289 ],
290 &quot;ttl&quot;: 42, # Number of seconds that this ResourceRecordSet can be cached by resolvers.
291 &quot;type&quot;: &quot;A String&quot;, # The identifier of a supported record type. See the list of Supported DNS record types.
292 },
293 ],
294 },
295 &quot;ruleName&quot;: &quot;A String&quot;, # An identifier for this rule. Must be unique with the ResponsePolicy.
296}</pre>
297</div>
298
299<div class="method">
300 <code class="details" id="delete">delete(project, responsePolicy, responsePolicyRule, clientOperationId=None, x__xgafv=None)</code>
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700301 <pre>Deletes a previously created Response Policy Rule.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800302
303Args:
304 project: string, Identifies the project addressed by this request. (required)
305 responsePolicy: string, User assigned name of the Response Policy containing the Response Policy Rule. (required)
306 responsePolicyRule: string, User assigned name of the Response Policy Rule addressed by this request. (required)
307 clientOperationId: string, For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
308 x__xgafv: string, V1 error format.
309 Allowed values
310 1 - v1 error format
311 2 - v2 error format
312</pre>
313</div>
314
315<div class="method">
316 <code class="details" id="get">get(project, responsePolicy, responsePolicyRule, clientOperationId=None, x__xgafv=None)</code>
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700317 <pre>Fetches the representation of an existing Response Policy Rule.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800318
319Args:
320 project: string, Identifies the project addressed by this request. (required)
321 responsePolicy: string, User assigned name of the Response Policy containing the Response Policy Rule. (required)
322 responsePolicyRule: string, User assigned name of the Response Policy Rule addressed by this request. (required)
323 clientOperationId: string, For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
324 x__xgafv: string, V1 error format.
325 Allowed values
326 1 - v1 error format
327 2 - v2 error format
328
329Returns:
330 An object of the form:
331
332 { # 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.
333 &quot;behavior&quot;: &quot;A String&quot;, # Answer this query with a behavior rather than DNS data.
334 &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.
335 &quot;kind&quot;: &quot;dns#responsePolicyRule&quot;,
336 &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.
337 &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 -0700338 { # A unit of data that is returned by the DNS servers.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800339 &quot;kind&quot;: &quot;dns#resourceRecordSet&quot;,
340 &quot;name&quot;: &quot;A String&quot;, # For example, www.example.com.
yoshi-code-bota36e3b12021-07-27 00:20:26 -0700341 &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.
342 &quot;geo&quot;: {
yoshi-code-bota36e3b12021-07-27 00:20:26 -0700343 &quot;items&quot;: [ # The primary geo routing configuration. If there are multiple items with the same location, an error is returned instead.
344 {
345 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicyGeoPolicyItem&quot;,
346 &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.
347 &quot;rrdatas&quot;: [
348 &quot;A String&quot;,
349 ],
350 &quot;signatureRrdatas&quot;: [ # DNSSEC generated signatures for the above geo_rrdata.
351 &quot;A String&quot;,
352 ],
353 },
354 ],
355 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicy&quot;,
356 },
357 &quot;geoPolicy&quot;: {
yoshi-code-bota36e3b12021-07-27 00:20:26 -0700358 &quot;items&quot;: [ # The primary geo routing configuration. If there are multiple items with the same location, an error is returned instead.
359 {
360 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicyGeoPolicyItem&quot;,
361 &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.
362 &quot;rrdatas&quot;: [
363 &quot;A String&quot;,
364 ],
365 &quot;signatureRrdatas&quot;: [ # DNSSEC generated signatures for the above geo_rrdata.
366 &quot;A String&quot;,
367 ],
368 },
369 ],
370 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicy&quot;,
371 },
372 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicy&quot;,
373 &quot;wrr&quot;: {
374 &quot;items&quot;: [
375 {
376 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyWrrPolicyWrrPolicyItem&quot;,
377 &quot;rrdatas&quot;: [
378 &quot;A String&quot;,
379 ],
380 &quot;signatureRrdatas&quot;: [ # DNSSEC generated signatures for the above wrr_rrdata.
381 &quot;A String&quot;,
382 ],
383 &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.
384 },
385 ],
386 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyWrrPolicy&quot;,
387 },
388 &quot;wrrPolicy&quot;: {
389 &quot;items&quot;: [
390 {
391 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyWrrPolicyWrrPolicyItem&quot;,
392 &quot;rrdatas&quot;: [
393 &quot;A String&quot;,
394 ],
395 &quot;signatureRrdatas&quot;: [ # DNSSEC generated signatures for the above wrr_rrdata.
396 &quot;A String&quot;,
397 ],
398 &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.
399 },
400 ],
401 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyWrrPolicy&quot;,
402 },
403 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800404 &quot;rrdatas&quot;: [ # As defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1) -- see examples.
405 &quot;A String&quot;,
406 ],
407 &quot;signatureRrdatas&quot;: [ # As defined in RFC 4034 (section 3.2).
408 &quot;A String&quot;,
409 ],
410 &quot;ttl&quot;: 42, # Number of seconds that this ResourceRecordSet can be cached by resolvers.
411 &quot;type&quot;: &quot;A String&quot;, # The identifier of a supported record type. See the list of Supported DNS record types.
412 },
413 ],
414 },
415 &quot;ruleName&quot;: &quot;A String&quot;, # An identifier for this rule. Must be unique with the ResponsePolicy.
416}</pre>
417</div>
418
419<div class="method">
420 <code class="details" id="list">list(project, responsePolicy, maxResults=None, pageToken=None, x__xgafv=None)</code>
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700421 <pre>Enumerates all Response Policy Rules associated with a project.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800422
423Args:
424 project: string, Identifies the project addressed by this request. (required)
425 responsePolicy: string, User assigned name of the Response Policy to list. (required)
426 maxResults: integer, Optional. Maximum number of results to be returned. If unspecified, the server decides how many results to return.
427 pageToken: string, Optional. A tag returned by a previous list request that was truncated. Use this parameter to continue a previous list request.
428 x__xgafv: string, V1 error format.
429 Allowed values
430 1 - v1 error format
431 2 - v2 error format
432
433Returns:
434 An object of the form:
435
436 {
437 &quot;header&quot;: { # Elements common to every response.
438 &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).
439 },
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700440 &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 -0800441 &quot;responsePolicyRules&quot;: [ # The Response Policy Rule resources.
442 { # 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.
443 &quot;behavior&quot;: &quot;A String&quot;, # Answer this query with a behavior rather than DNS data.
444 &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.
445 &quot;kind&quot;: &quot;dns#responsePolicyRule&quot;,
446 &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.
447 &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 -0700448 { # A unit of data that is returned by the DNS servers.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800449 &quot;kind&quot;: &quot;dns#resourceRecordSet&quot;,
450 &quot;name&quot;: &quot;A String&quot;, # For example, www.example.com.
yoshi-code-bota36e3b12021-07-27 00:20:26 -0700451 &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.
452 &quot;geo&quot;: {
yoshi-code-bota36e3b12021-07-27 00:20:26 -0700453 &quot;items&quot;: [ # The primary geo routing configuration. If there are multiple items with the same location, an error is returned instead.
454 {
455 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicyGeoPolicyItem&quot;,
456 &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.
457 &quot;rrdatas&quot;: [
458 &quot;A String&quot;,
459 ],
460 &quot;signatureRrdatas&quot;: [ # DNSSEC generated signatures for the above geo_rrdata.
461 &quot;A String&quot;,
462 ],
463 },
464 ],
465 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicy&quot;,
466 },
467 &quot;geoPolicy&quot;: {
yoshi-code-bota36e3b12021-07-27 00:20:26 -0700468 &quot;items&quot;: [ # The primary geo routing configuration. If there are multiple items with the same location, an error is returned instead.
469 {
470 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicyGeoPolicyItem&quot;,
471 &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.
472 &quot;rrdatas&quot;: [
473 &quot;A String&quot;,
474 ],
475 &quot;signatureRrdatas&quot;: [ # DNSSEC generated signatures for the above geo_rrdata.
476 &quot;A String&quot;,
477 ],
478 },
479 ],
480 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicy&quot;,
481 },
482 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicy&quot;,
483 &quot;wrr&quot;: {
484 &quot;items&quot;: [
485 {
486 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyWrrPolicyWrrPolicyItem&quot;,
487 &quot;rrdatas&quot;: [
488 &quot;A String&quot;,
489 ],
490 &quot;signatureRrdatas&quot;: [ # DNSSEC generated signatures for the above wrr_rrdata.
491 &quot;A String&quot;,
492 ],
493 &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.
494 },
495 ],
496 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyWrrPolicy&quot;,
497 },
498 &quot;wrrPolicy&quot;: {
499 &quot;items&quot;: [
500 {
501 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyWrrPolicyWrrPolicyItem&quot;,
502 &quot;rrdatas&quot;: [
503 &quot;A String&quot;,
504 ],
505 &quot;signatureRrdatas&quot;: [ # DNSSEC generated signatures for the above wrr_rrdata.
506 &quot;A String&quot;,
507 ],
508 &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.
509 },
510 ],
511 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyWrrPolicy&quot;,
512 },
513 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800514 &quot;rrdatas&quot;: [ # As defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1) -- see examples.
515 &quot;A String&quot;,
516 ],
517 &quot;signatureRrdatas&quot;: [ # As defined in RFC 4034 (section 3.2).
518 &quot;A String&quot;,
519 ],
520 &quot;ttl&quot;: 42, # Number of seconds that this ResourceRecordSet can be cached by resolvers.
521 &quot;type&quot;: &quot;A String&quot;, # The identifier of a supported record type. See the list of Supported DNS record types.
522 },
523 ],
524 },
525 &quot;ruleName&quot;: &quot;A String&quot;, # An identifier for this rule. Must be unique with the ResponsePolicy.
526 },
527 ],
528}</pre>
529</div>
530
531<div class="method">
532 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
533 <pre>Retrieves the next page of results.
534
535Args:
536 previous_request: The request for the previous page. (required)
537 previous_response: The response from the request for the previous page. (required)
538
539Returns:
540 A request object that you can call &#x27;execute()&#x27; on to request the next
541 page. Returns None if there are no more items in the collection.
542 </pre>
543</div>
544
545<div class="method">
546 <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 -0700547 <pre>Applies a partial update to an existing Response Policy Rule.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800548
549Args:
550 project: string, Identifies the project addressed by this request. (required)
551 responsePolicy: string, User assigned name of the Response Policy containing the Response Policy Rule. (required)
552 responsePolicyRule: string, User assigned name of the Response Policy Rule addressed by this request. (required)
553 body: object, The request body.
554 The object takes the form of:
555
556{ # 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.
557 &quot;behavior&quot;: &quot;A String&quot;, # Answer this query with a behavior rather than DNS data.
558 &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.
559 &quot;kind&quot;: &quot;dns#responsePolicyRule&quot;,
560 &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.
561 &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 -0700562 { # A unit of data that is returned by the DNS servers.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800563 &quot;kind&quot;: &quot;dns#resourceRecordSet&quot;,
564 &quot;name&quot;: &quot;A String&quot;, # For example, www.example.com.
yoshi-code-bota36e3b12021-07-27 00:20:26 -0700565 &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.
566 &quot;geo&quot;: {
yoshi-code-bota36e3b12021-07-27 00:20:26 -0700567 &quot;items&quot;: [ # The primary geo routing configuration. If there are multiple items with the same location, an error is returned instead.
568 {
569 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicyGeoPolicyItem&quot;,
570 &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.
571 &quot;rrdatas&quot;: [
572 &quot;A String&quot;,
573 ],
574 &quot;signatureRrdatas&quot;: [ # DNSSEC generated signatures for the above geo_rrdata.
575 &quot;A String&quot;,
576 ],
577 },
578 ],
579 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicy&quot;,
580 },
581 &quot;geoPolicy&quot;: {
yoshi-code-bota36e3b12021-07-27 00:20:26 -0700582 &quot;items&quot;: [ # The primary geo routing configuration. If there are multiple items with the same location, an error is returned instead.
583 {
584 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicyGeoPolicyItem&quot;,
585 &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.
586 &quot;rrdatas&quot;: [
587 &quot;A String&quot;,
588 ],
589 &quot;signatureRrdatas&quot;: [ # DNSSEC generated signatures for the above geo_rrdata.
590 &quot;A String&quot;,
591 ],
592 },
593 ],
594 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicy&quot;,
595 },
596 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicy&quot;,
597 &quot;wrr&quot;: {
598 &quot;items&quot;: [
599 {
600 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyWrrPolicyWrrPolicyItem&quot;,
601 &quot;rrdatas&quot;: [
602 &quot;A String&quot;,
603 ],
604 &quot;signatureRrdatas&quot;: [ # DNSSEC generated signatures for the above wrr_rrdata.
605 &quot;A String&quot;,
606 ],
607 &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.
608 },
609 ],
610 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyWrrPolicy&quot;,
611 },
612 &quot;wrrPolicy&quot;: {
613 &quot;items&quot;: [
614 {
615 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyWrrPolicyWrrPolicyItem&quot;,
616 &quot;rrdatas&quot;: [
617 &quot;A String&quot;,
618 ],
619 &quot;signatureRrdatas&quot;: [ # DNSSEC generated signatures for the above wrr_rrdata.
620 &quot;A String&quot;,
621 ],
622 &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.
623 },
624 ],
625 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyWrrPolicy&quot;,
626 },
627 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800628 &quot;rrdatas&quot;: [ # As defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1) -- see examples.
629 &quot;A String&quot;,
630 ],
631 &quot;signatureRrdatas&quot;: [ # As defined in RFC 4034 (section 3.2).
632 &quot;A String&quot;,
633 ],
634 &quot;ttl&quot;: 42, # Number of seconds that this ResourceRecordSet can be cached by resolvers.
635 &quot;type&quot;: &quot;A String&quot;, # The identifier of a supported record type. See the list of Supported DNS record types.
636 },
637 ],
638 },
639 &quot;ruleName&quot;: &quot;A String&quot;, # An identifier for this rule. Must be unique with the ResponsePolicy.
640}
641
642 clientOperationId: string, For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
643 x__xgafv: string, V1 error format.
644 Allowed values
645 1 - v1 error format
646 2 - v2 error format
647
648Returns:
649 An object of the form:
650
651 {
652 &quot;header&quot;: { # Elements common to every response.
653 &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).
654 },
655 &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.
656 &quot;behavior&quot;: &quot;A String&quot;, # Answer this query with a behavior rather than DNS data.
657 &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.
658 &quot;kind&quot;: &quot;dns#responsePolicyRule&quot;,
659 &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.
660 &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 -0700661 { # A unit of data that is returned by the DNS servers.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800662 &quot;kind&quot;: &quot;dns#resourceRecordSet&quot;,
663 &quot;name&quot;: &quot;A String&quot;, # For example, www.example.com.
yoshi-code-bota36e3b12021-07-27 00:20:26 -0700664 &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.
665 &quot;geo&quot;: {
yoshi-code-bota36e3b12021-07-27 00:20:26 -0700666 &quot;items&quot;: [ # The primary geo routing configuration. If there are multiple items with the same location, an error is returned instead.
667 {
668 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicyGeoPolicyItem&quot;,
669 &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.
670 &quot;rrdatas&quot;: [
671 &quot;A String&quot;,
672 ],
673 &quot;signatureRrdatas&quot;: [ # DNSSEC generated signatures for the above geo_rrdata.
674 &quot;A String&quot;,
675 ],
676 },
677 ],
678 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicy&quot;,
679 },
680 &quot;geoPolicy&quot;: {
yoshi-code-bota36e3b12021-07-27 00:20:26 -0700681 &quot;items&quot;: [ # The primary geo routing configuration. If there are multiple items with the same location, an error is returned instead.
682 {
683 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicyGeoPolicyItem&quot;,
684 &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.
685 &quot;rrdatas&quot;: [
686 &quot;A String&quot;,
687 ],
688 &quot;signatureRrdatas&quot;: [ # DNSSEC generated signatures for the above geo_rrdata.
689 &quot;A String&quot;,
690 ],
691 },
692 ],
693 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicy&quot;,
694 },
695 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicy&quot;,
696 &quot;wrr&quot;: {
697 &quot;items&quot;: [
698 {
699 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyWrrPolicyWrrPolicyItem&quot;,
700 &quot;rrdatas&quot;: [
701 &quot;A String&quot;,
702 ],
703 &quot;signatureRrdatas&quot;: [ # DNSSEC generated signatures for the above wrr_rrdata.
704 &quot;A String&quot;,
705 ],
706 &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.
707 },
708 ],
709 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyWrrPolicy&quot;,
710 },
711 &quot;wrrPolicy&quot;: {
712 &quot;items&quot;: [
713 {
714 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyWrrPolicyWrrPolicyItem&quot;,
715 &quot;rrdatas&quot;: [
716 &quot;A String&quot;,
717 ],
718 &quot;signatureRrdatas&quot;: [ # DNSSEC generated signatures for the above wrr_rrdata.
719 &quot;A String&quot;,
720 ],
721 &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.
722 },
723 ],
724 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyWrrPolicy&quot;,
725 },
726 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800727 &quot;rrdatas&quot;: [ # As defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1) -- see examples.
728 &quot;A String&quot;,
729 ],
730 &quot;signatureRrdatas&quot;: [ # As defined in RFC 4034 (section 3.2).
731 &quot;A String&quot;,
732 ],
733 &quot;ttl&quot;: 42, # Number of seconds that this ResourceRecordSet can be cached by resolvers.
734 &quot;type&quot;: &quot;A String&quot;, # The identifier of a supported record type. See the list of Supported DNS record types.
735 },
736 ],
737 },
738 &quot;ruleName&quot;: &quot;A String&quot;, # An identifier for this rule. Must be unique with the ResponsePolicy.
739 },
740}</pre>
741</div>
742
743<div class="method">
744 <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 -0700745 <pre>Updates an existing Response Policy Rule.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800746
747Args:
748 project: string, Identifies the project addressed by this request. (required)
749 responsePolicy: string, User assigned name of the Response Policy containing the Response Policy Rule. (required)
750 responsePolicyRule: string, User assigned name of the Response Policy Rule addressed by this request. (required)
751 body: object, The request body.
752 The object takes the form of:
753
754{ # 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.
755 &quot;behavior&quot;: &quot;A String&quot;, # Answer this query with a behavior rather than DNS data.
756 &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.
757 &quot;kind&quot;: &quot;dns#responsePolicyRule&quot;,
758 &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.
759 &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 -0700760 { # A unit of data that is returned by the DNS servers.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800761 &quot;kind&quot;: &quot;dns#resourceRecordSet&quot;,
762 &quot;name&quot;: &quot;A String&quot;, # For example, www.example.com.
yoshi-code-bota36e3b12021-07-27 00:20:26 -0700763 &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.
764 &quot;geo&quot;: {
yoshi-code-bota36e3b12021-07-27 00:20:26 -0700765 &quot;items&quot;: [ # The primary geo routing configuration. If there are multiple items with the same location, an error is returned instead.
766 {
767 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicyGeoPolicyItem&quot;,
768 &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.
769 &quot;rrdatas&quot;: [
770 &quot;A String&quot;,
771 ],
772 &quot;signatureRrdatas&quot;: [ # DNSSEC generated signatures for the above geo_rrdata.
773 &quot;A String&quot;,
774 ],
775 },
776 ],
777 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicy&quot;,
778 },
779 &quot;geoPolicy&quot;: {
yoshi-code-bota36e3b12021-07-27 00:20:26 -0700780 &quot;items&quot;: [ # The primary geo routing configuration. If there are multiple items with the same location, an error is returned instead.
781 {
782 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicyGeoPolicyItem&quot;,
783 &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.
784 &quot;rrdatas&quot;: [
785 &quot;A String&quot;,
786 ],
787 &quot;signatureRrdatas&quot;: [ # DNSSEC generated signatures for the above geo_rrdata.
788 &quot;A String&quot;,
789 ],
790 },
791 ],
792 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicy&quot;,
793 },
794 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicy&quot;,
795 &quot;wrr&quot;: {
796 &quot;items&quot;: [
797 {
798 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyWrrPolicyWrrPolicyItem&quot;,
799 &quot;rrdatas&quot;: [
800 &quot;A String&quot;,
801 ],
802 &quot;signatureRrdatas&quot;: [ # DNSSEC generated signatures for the above wrr_rrdata.
803 &quot;A String&quot;,
804 ],
805 &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.
806 },
807 ],
808 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyWrrPolicy&quot;,
809 },
810 &quot;wrrPolicy&quot;: {
811 &quot;items&quot;: [
812 {
813 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyWrrPolicyWrrPolicyItem&quot;,
814 &quot;rrdatas&quot;: [
815 &quot;A String&quot;,
816 ],
817 &quot;signatureRrdatas&quot;: [ # DNSSEC generated signatures for the above wrr_rrdata.
818 &quot;A String&quot;,
819 ],
820 &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.
821 },
822 ],
823 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyWrrPolicy&quot;,
824 },
825 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800826 &quot;rrdatas&quot;: [ # As defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1) -- see examples.
827 &quot;A String&quot;,
828 ],
829 &quot;signatureRrdatas&quot;: [ # As defined in RFC 4034 (section 3.2).
830 &quot;A String&quot;,
831 ],
832 &quot;ttl&quot;: 42, # Number of seconds that this ResourceRecordSet can be cached by resolvers.
833 &quot;type&quot;: &quot;A String&quot;, # The identifier of a supported record type. See the list of Supported DNS record types.
834 },
835 ],
836 },
837 &quot;ruleName&quot;: &quot;A String&quot;, # An identifier for this rule. Must be unique with the ResponsePolicy.
838}
839
840 clientOperationId: string, For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
841 x__xgafv: string, V1 error format.
842 Allowed values
843 1 - v1 error format
844 2 - v2 error format
845
846Returns:
847 An object of the form:
848
849 {
850 &quot;header&quot;: { # Elements common to every response.
851 &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).
852 },
853 &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.
854 &quot;behavior&quot;: &quot;A String&quot;, # Answer this query with a behavior rather than DNS data.
855 &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.
856 &quot;kind&quot;: &quot;dns#responsePolicyRule&quot;,
857 &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.
858 &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 -0700859 { # A unit of data that is returned by the DNS servers.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800860 &quot;kind&quot;: &quot;dns#resourceRecordSet&quot;,
861 &quot;name&quot;: &quot;A String&quot;, # For example, www.example.com.
yoshi-code-bota36e3b12021-07-27 00:20:26 -0700862 &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.
863 &quot;geo&quot;: {
yoshi-code-bota36e3b12021-07-27 00:20:26 -0700864 &quot;items&quot;: [ # The primary geo routing configuration. If there are multiple items with the same location, an error is returned instead.
865 {
866 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicyGeoPolicyItem&quot;,
867 &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.
868 &quot;rrdatas&quot;: [
869 &quot;A String&quot;,
870 ],
871 &quot;signatureRrdatas&quot;: [ # DNSSEC generated signatures for the above geo_rrdata.
872 &quot;A String&quot;,
873 ],
874 },
875 ],
876 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicy&quot;,
877 },
878 &quot;geoPolicy&quot;: {
yoshi-code-bota36e3b12021-07-27 00:20:26 -0700879 &quot;items&quot;: [ # The primary geo routing configuration. If there are multiple items with the same location, an error is returned instead.
880 {
881 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicyGeoPolicyItem&quot;,
882 &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.
883 &quot;rrdatas&quot;: [
884 &quot;A String&quot;,
885 ],
886 &quot;signatureRrdatas&quot;: [ # DNSSEC generated signatures for the above geo_rrdata.
887 &quot;A String&quot;,
888 ],
889 },
890 ],
891 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyGeoPolicy&quot;,
892 },
893 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicy&quot;,
894 &quot;wrr&quot;: {
895 &quot;items&quot;: [
896 {
897 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyWrrPolicyWrrPolicyItem&quot;,
898 &quot;rrdatas&quot;: [
899 &quot;A String&quot;,
900 ],
901 &quot;signatureRrdatas&quot;: [ # DNSSEC generated signatures for the above wrr_rrdata.
902 &quot;A String&quot;,
903 ],
904 &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.
905 },
906 ],
907 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyWrrPolicy&quot;,
908 },
909 &quot;wrrPolicy&quot;: {
910 &quot;items&quot;: [
911 {
912 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyWrrPolicyWrrPolicyItem&quot;,
913 &quot;rrdatas&quot;: [
914 &quot;A String&quot;,
915 ],
916 &quot;signatureRrdatas&quot;: [ # DNSSEC generated signatures for the above wrr_rrdata.
917 &quot;A String&quot;,
918 ],
919 &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.
920 },
921 ],
922 &quot;kind&quot;: &quot;dns#rRSetRoutingPolicyWrrPolicy&quot;,
923 },
924 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800925 &quot;rrdatas&quot;: [ # As defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1) -- see examples.
926 &quot;A String&quot;,
927 ],
928 &quot;signatureRrdatas&quot;: [ # As defined in RFC 4034 (section 3.2).
929 &quot;A String&quot;,
930 ],
931 &quot;ttl&quot;: 42, # Number of seconds that this ResourceRecordSet can be cached by resolvers.
932 &quot;type&quot;: &quot;A String&quot;, # The identifier of a supported record type. See the list of Supported DNS record types.
933 },
934 ],
935 },
936 &quot;ruleName&quot;: &quot;A String&quot;, # An identifier for this rule. Must be unique with the ResponsePolicy.
937 },
938}</pre>
939</div>
940
941</body></html>