Debian Codegraph @

docs/dyn/dns_v1.policies.html

raw
1 <html><body>
2 <style>
3
4 body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13 }
14
15 body {
16 font-size: 13px;
17 padding: 1em;
18 }
19
20 h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23 }
24
25 h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28 }
29
30 h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34 }
35
36 pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39 }
40
41 pre {
42 margin-top: 0.5em;
43 }
44
45 h1, h2, h3, p {
46 font-family: Arial, sans serif;
47 }
48
49 h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51 }
52
53 .toc_element {
54 margin-top: 0.5em;
55 }
56
57 .firstline {
58 margin-left: 2 em;
59 }
60
61 .method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66 }
67
68 .details {
69 font-weight: bold;
70 font-size: 14px;
71 }
72
73 </style>
74
75 <h1><a href="dns_v1.html">Cloud DNS API</a> . <a href="dns_v1.policies.html">policies</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, body=None, clientOperationId=None, x__xgafv=None)</a></code></p>
82 <p class="firstline">Creates a new policy.</p>
83 <p class="toc_element">
84 <code><a href="#delete">delete(project, policy, clientOperationId=None, x__xgafv=None)</a></code></p>
85 <p class="firstline">Deletes a previously created policy. Fails if the policy is still being referenced by a network.</p>
86 <p class="toc_element">
87 <code><a href="#get">get(project, policy, clientOperationId=None, x__xgafv=None)</a></code></p>
88 <p class="firstline">Fetches the representation of an existing policy.</p>
89 <p class="toc_element">
90 <code><a href="#list">list(project, maxResults=None, pageToken=None, x__xgafv=None)</a></code></p>
91 <p class="firstline">Enumerates all policies associated with a project.</p>
92 <p class="toc_element">
93 <code><a href="#list_next">list_next()</a></code></p>
94 <p class="firstline">Retrieves the next page of results.</p>
95 <p class="toc_element">
96 <code><a href="#patch">patch(project, policy, body=None, clientOperationId=None, x__xgafv=None)</a></code></p>
97 <p class="firstline">Applies a partial update to an existing policy.</p>
98 <p class="toc_element">
99 <code><a href="#update">update(project, policy, body=None, clientOperationId=None, x__xgafv=None)</a></code></p>
100 <p class="firstline">Updates an existing policy.</p>
101 <h3>Method Details</h3>
102 <div class="method">
103 <code class="details" id="close">close()</code>
104 <pre>Close httplib2 connections.</pre>
105 </div>
106
107 <div class="method">
108 <code class="details" id="create">create(project, body=None, clientOperationId=None, x__xgafv=None)</code>
109 <pre>Creates a new policy.
110
111 Args:
112 project: string, Identifies the project addressed by this request. (required)
113 body: object, The request body.
114 The object takes the form of:
115
116 { # A policy is a collection of DNS rules applied to one or more Virtual Private Cloud resources.
117 &quot;alternativeNameServerConfig&quot;: { # Sets an alternative name server for the associated networks. When specified, all DNS queries are forwarded to a name server that you choose. Names such as .internal are not available when an alternative name server is specified.
118 &quot;kind&quot;: &quot;dns#policyAlternativeNameServerConfig&quot;,
119 &quot;targetNameServers&quot;: [ # Sets an alternative name server for the associated networks. When specified, all DNS queries are forwarded to a name server that you choose. Names such as .internal are not available when an alternative name server is specified.
120 {
121 &quot;forwardingPath&quot;: &quot;A String&quot;, # Forwarding path for this TargetNameServer. If unset or set to DEFAULT, Cloud DNS makes forwarding decisions based on address ranges; that is, RFC1918 addresses go to the VPC network, non-RFC1918 addresses go to the internet. When set to PRIVATE, Cloud DNS always sends queries through the VPC network for this target.
122 &quot;ipv4Address&quot;: &quot;A String&quot;, # IPv4 address to forward queries to.
123 &quot;ipv6Address&quot;: &quot;A String&quot;, # IPv6 address to forward to. Does not accept both fields (ipv4 &amp; ipv6) being populated. Public preview as of November 2022.
124 &quot;kind&quot;: &quot;dns#policyAlternativeNameServerConfigTargetNameServer&quot;,
125 },
126 ],
127 },
128 &quot;description&quot;: &quot;A String&quot;, # A mutable string of at most 1024 characters associated with this resource for the user&#x27;s convenience. Has no effect on the policy&#x27;s function.
129 &quot;dns64Config&quot;: { # DNS64 policies # Configurations related to DNS64 for this policy.
130 &quot;kind&quot;: &quot;dns#policyDns64Config&quot;,
131 &quot;scope&quot;: { # The scope to which DNS64 config will be applied to.
132 &quot;allQueries&quot;: True or False, # Controls whether DNS64 is enabled globally for all networks bound to the policy.
133 &quot;kind&quot;: &quot;dns#policyDns64ConfigScope&quot;,
134 },
135 },
136 &quot;enableInboundForwarding&quot;: True or False, # Allows networks bound to this policy to receive DNS queries sent by VMs or applications over VPN connections. When enabled, a virtual IP address is allocated from each of the subnetworks that are bound to this policy.
137 &quot;enableLogging&quot;: True or False, # Controls whether logging is enabled for the networks bound to this policy. Defaults to no logging if not set.
138 &quot;id&quot;: &quot;A String&quot;, # Unique identifier for the resource; defined by the server (output only).
139 &quot;kind&quot;: &quot;dns#policy&quot;,
140 &quot;name&quot;: &quot;A String&quot;, # User-assigned name for this policy.
141 &quot;networks&quot;: [ # List of network names specifying networks to which this policy is applied.
142 {
143 &quot;kind&quot;: &quot;dns#policyNetwork&quot;,
144 &quot;networkUrl&quot;: &quot;A String&quot;, # The fully qualified URL of the VPC network to bind to. This should be formatted like https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}
145 },
146 ],
147 }
148
149 clientOperationId: string, For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
150 x__xgafv: string, V1 error format.
151 Allowed values
152 1 - v1 error format
153 2 - v2 error format
154
155 Returns:
156 An object of the form:
157
158 { # A policy is a collection of DNS rules applied to one or more Virtual Private Cloud resources.
159 &quot;alternativeNameServerConfig&quot;: { # Sets an alternative name server for the associated networks. When specified, all DNS queries are forwarded to a name server that you choose. Names such as .internal are not available when an alternative name server is specified.
160 &quot;kind&quot;: &quot;dns#policyAlternativeNameServerConfig&quot;,
161 &quot;targetNameServers&quot;: [ # Sets an alternative name server for the associated networks. When specified, all DNS queries are forwarded to a name server that you choose. Names such as .internal are not available when an alternative name server is specified.
162 {
163 &quot;forwardingPath&quot;: &quot;A String&quot;, # Forwarding path for this TargetNameServer. If unset or set to DEFAULT, Cloud DNS makes forwarding decisions based on address ranges; that is, RFC1918 addresses go to the VPC network, non-RFC1918 addresses go to the internet. When set to PRIVATE, Cloud DNS always sends queries through the VPC network for this target.
164 &quot;ipv4Address&quot;: &quot;A String&quot;, # IPv4 address to forward queries to.
165 &quot;ipv6Address&quot;: &quot;A String&quot;, # IPv6 address to forward to. Does not accept both fields (ipv4 &amp; ipv6) being populated. Public preview as of November 2022.
166 &quot;kind&quot;: &quot;dns#policyAlternativeNameServerConfigTargetNameServer&quot;,
167 },
168 ],
169 },
170 &quot;description&quot;: &quot;A String&quot;, # A mutable string of at most 1024 characters associated with this resource for the user&#x27;s convenience. Has no effect on the policy&#x27;s function.
171 &quot;dns64Config&quot;: { # DNS64 policies # Configurations related to DNS64 for this policy.
172 &quot;kind&quot;: &quot;dns#policyDns64Config&quot;,
173 &quot;scope&quot;: { # The scope to which DNS64 config will be applied to.
174 &quot;allQueries&quot;: True or False, # Controls whether DNS64 is enabled globally for all networks bound to the policy.
175 &quot;kind&quot;: &quot;dns#policyDns64ConfigScope&quot;,
176 },
177 },
178 &quot;enableInboundForwarding&quot;: True or False, # Allows networks bound to this policy to receive DNS queries sent by VMs or applications over VPN connections. When enabled, a virtual IP address is allocated from each of the subnetworks that are bound to this policy.
179 &quot;enableLogging&quot;: True or False, # Controls whether logging is enabled for the networks bound to this policy. Defaults to no logging if not set.
180 &quot;id&quot;: &quot;A String&quot;, # Unique identifier for the resource; defined by the server (output only).
181 &quot;kind&quot;: &quot;dns#policy&quot;,
182 &quot;name&quot;: &quot;A String&quot;, # User-assigned name for this policy.
183 &quot;networks&quot;: [ # List of network names specifying networks to which this policy is applied.
184 {
185 &quot;kind&quot;: &quot;dns#policyNetwork&quot;,
186 &quot;networkUrl&quot;: &quot;A String&quot;, # The fully qualified URL of the VPC network to bind to. This should be formatted like https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}
187 },
188 ],
189 }</pre>
190 </div>
191
192 <div class="method">
193 <code class="details" id="delete">delete(project, policy, clientOperationId=None, x__xgafv=None)</code>
194 <pre>Deletes a previously created policy. Fails if the policy is still being referenced by a network.
195
196 Args:
197 project: string, Identifies the project addressed by this request. (required)
198 policy: string, User given friendly name of the policy addressed by this request. (required)
199 clientOperationId: string, For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
200 x__xgafv: string, V1 error format.
201 Allowed values
202 1 - v1 error format
203 2 - v2 error format
204 </pre>
205 </div>
206
207 <div class="method">
208 <code class="details" id="get">get(project, policy, clientOperationId=None, x__xgafv=None)</code>
209 <pre>Fetches the representation of an existing policy.
210
211 Args:
212 project: string, Identifies the project addressed by this request. (required)
213 policy: string, User given friendly name of the policy addressed by this request. (required)
214 clientOperationId: string, For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
215 x__xgafv: string, V1 error format.
216 Allowed values
217 1 - v1 error format
218 2 - v2 error format
219
220 Returns:
221 An object of the form:
222
223 { # A policy is a collection of DNS rules applied to one or more Virtual Private Cloud resources.
224 &quot;alternativeNameServerConfig&quot;: { # Sets an alternative name server for the associated networks. When specified, all DNS queries are forwarded to a name server that you choose. Names such as .internal are not available when an alternative name server is specified.
225 &quot;kind&quot;: &quot;dns#policyAlternativeNameServerConfig&quot;,
226 &quot;targetNameServers&quot;: [ # Sets an alternative name server for the associated networks. When specified, all DNS queries are forwarded to a name server that you choose. Names such as .internal are not available when an alternative name server is specified.
227 {
228 &quot;forwardingPath&quot;: &quot;A String&quot;, # Forwarding path for this TargetNameServer. If unset or set to DEFAULT, Cloud DNS makes forwarding decisions based on address ranges; that is, RFC1918 addresses go to the VPC network, non-RFC1918 addresses go to the internet. When set to PRIVATE, Cloud DNS always sends queries through the VPC network for this target.
229 &quot;ipv4Address&quot;: &quot;A String&quot;, # IPv4 address to forward queries to.
230 &quot;ipv6Address&quot;: &quot;A String&quot;, # IPv6 address to forward to. Does not accept both fields (ipv4 &amp; ipv6) being populated. Public preview as of November 2022.
231 &quot;kind&quot;: &quot;dns#policyAlternativeNameServerConfigTargetNameServer&quot;,
232 },
233 ],
234 },
235 &quot;description&quot;: &quot;A String&quot;, # A mutable string of at most 1024 characters associated with this resource for the user&#x27;s convenience. Has no effect on the policy&#x27;s function.
236 &quot;dns64Config&quot;: { # DNS64 policies # Configurations related to DNS64 for this policy.
237 &quot;kind&quot;: &quot;dns#policyDns64Config&quot;,
238 &quot;scope&quot;: { # The scope to which DNS64 config will be applied to.
239 &quot;allQueries&quot;: True or False, # Controls whether DNS64 is enabled globally for all networks bound to the policy.
240 &quot;kind&quot;: &quot;dns#policyDns64ConfigScope&quot;,
241 },
242 },
243 &quot;enableInboundForwarding&quot;: True or False, # Allows networks bound to this policy to receive DNS queries sent by VMs or applications over VPN connections. When enabled, a virtual IP address is allocated from each of the subnetworks that are bound to this policy.
244 &quot;enableLogging&quot;: True or False, # Controls whether logging is enabled for the networks bound to this policy. Defaults to no logging if not set.
245 &quot;id&quot;: &quot;A String&quot;, # Unique identifier for the resource; defined by the server (output only).
246 &quot;kind&quot;: &quot;dns#policy&quot;,
247 &quot;name&quot;: &quot;A String&quot;, # User-assigned name for this policy.
248 &quot;networks&quot;: [ # List of network names specifying networks to which this policy is applied.
249 {
250 &quot;kind&quot;: &quot;dns#policyNetwork&quot;,
251 &quot;networkUrl&quot;: &quot;A String&quot;, # The fully qualified URL of the VPC network to bind to. This should be formatted like https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}
252 },
253 ],
254 }</pre>
255 </div>
256
257 <div class="method">
258 <code class="details" id="list">list(project, maxResults=None, pageToken=None, x__xgafv=None)</code>
259 <pre>Enumerates all policies associated with a project.
260
261 Args:
262 project: string, Identifies the project addressed by this request. (required)
263 maxResults: integer, Optional. Maximum number of results to be returned. If unspecified, the server decides how many results to return.
264 pageToken: string, Optional. A tag returned by a previous list request that was truncated. Use this parameter to continue a previous list request.
265 x__xgafv: string, V1 error format.
266 Allowed values
267 1 - v1 error format
268 2 - v2 error format
269
270 Returns:
271 An object of the form:
272
273 {
274 &quot;kind&quot;: &quot;dns#policiesListResponse&quot;, # Type of resource.
275 &quot;nextPageToken&quot;: &quot;A String&quot;, # This field indicates that more results are available beyond the last page displayed. To fetch the results, make another list request and use this value as your page token. This lets you retrieve the complete contents of a very large collection one page at a time. However, if the contents of the collection change between the first and last paginated list request, the set of all elements returned are an inconsistent view of the collection. You can&#x27;t retrieve a consistent snapshot of a collection larger than the maximum page size.
276 &quot;policies&quot;: [ # The policy resources.
277 { # A policy is a collection of DNS rules applied to one or more Virtual Private Cloud resources.
278 &quot;alternativeNameServerConfig&quot;: { # Sets an alternative name server for the associated networks. When specified, all DNS queries are forwarded to a name server that you choose. Names such as .internal are not available when an alternative name server is specified.
279 &quot;kind&quot;: &quot;dns#policyAlternativeNameServerConfig&quot;,
280 &quot;targetNameServers&quot;: [ # Sets an alternative name server for the associated networks. When specified, all DNS queries are forwarded to a name server that you choose. Names such as .internal are not available when an alternative name server is specified.
281 {
282 &quot;forwardingPath&quot;: &quot;A String&quot;, # Forwarding path for this TargetNameServer. If unset or set to DEFAULT, Cloud DNS makes forwarding decisions based on address ranges; that is, RFC1918 addresses go to the VPC network, non-RFC1918 addresses go to the internet. When set to PRIVATE, Cloud DNS always sends queries through the VPC network for this target.
283 &quot;ipv4Address&quot;: &quot;A String&quot;, # IPv4 address to forward queries to.
284 &quot;ipv6Address&quot;: &quot;A String&quot;, # IPv6 address to forward to. Does not accept both fields (ipv4 &amp; ipv6) being populated. Public preview as of November 2022.
285 &quot;kind&quot;: &quot;dns#policyAlternativeNameServerConfigTargetNameServer&quot;,
286 },
287 ],
288 },
289 &quot;description&quot;: &quot;A String&quot;, # A mutable string of at most 1024 characters associated with this resource for the user&#x27;s convenience. Has no effect on the policy&#x27;s function.
290 &quot;dns64Config&quot;: { # DNS64 policies # Configurations related to DNS64 for this policy.
291 &quot;kind&quot;: &quot;dns#policyDns64Config&quot;,
292 &quot;scope&quot;: { # The scope to which DNS64 config will be applied to.
293 &quot;allQueries&quot;: True or False, # Controls whether DNS64 is enabled globally for all networks bound to the policy.
294 &quot;kind&quot;: &quot;dns#policyDns64ConfigScope&quot;,
295 },
296 },
297 &quot;enableInboundForwarding&quot;: True or False, # Allows networks bound to this policy to receive DNS queries sent by VMs or applications over VPN connections. When enabled, a virtual IP address is allocated from each of the subnetworks that are bound to this policy.
298 &quot;enableLogging&quot;: True or False, # Controls whether logging is enabled for the networks bound to this policy. Defaults to no logging if not set.
299 &quot;id&quot;: &quot;A String&quot;, # Unique identifier for the resource; defined by the server (output only).
300 &quot;kind&quot;: &quot;dns#policy&quot;,
301 &quot;name&quot;: &quot;A String&quot;, # User-assigned name for this policy.
302 &quot;networks&quot;: [ # List of network names specifying networks to which this policy is applied.
303 {
304 &quot;kind&quot;: &quot;dns#policyNetwork&quot;,
305 &quot;networkUrl&quot;: &quot;A String&quot;, # The fully qualified URL of the VPC network to bind to. This should be formatted like https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}
306 },
307 ],
308 },
309 ],
310 }</pre>
311 </div>
312
313 <div class="method">
314 <code class="details" id="list_next">list_next()</code>
315 <pre>Retrieves the next page of results.
316
317 Args:
318 previous_request: The request for the previous page. (required)
319 previous_response: The response from the request for the previous page. (required)
320
321 Returns:
322 A request object that you can call &#x27;execute()&#x27; on to request the next
323 page. Returns None if there are no more items in the collection.
324 </pre>
325 </div>
326
327 <div class="method">
328 <code class="details" id="patch">patch(project, policy, body=None, clientOperationId=None, x__xgafv=None)</code>
329 <pre>Applies a partial update to an existing policy.
330
331 Args:
332 project: string, Identifies the project addressed by this request. (required)
333 policy: string, User given friendly name of the policy addressed by this request. (required)
334 body: object, The request body.
335 The object takes the form of:
336
337 { # A policy is a collection of DNS rules applied to one or more Virtual Private Cloud resources.
338 &quot;alternativeNameServerConfig&quot;: { # Sets an alternative name server for the associated networks. When specified, all DNS queries are forwarded to a name server that you choose. Names such as .internal are not available when an alternative name server is specified.
339 &quot;kind&quot;: &quot;dns#policyAlternativeNameServerConfig&quot;,
340 &quot;targetNameServers&quot;: [ # Sets an alternative name server for the associated networks. When specified, all DNS queries are forwarded to a name server that you choose. Names such as .internal are not available when an alternative name server is specified.
341 {
342 &quot;forwardingPath&quot;: &quot;A String&quot;, # Forwarding path for this TargetNameServer. If unset or set to DEFAULT, Cloud DNS makes forwarding decisions based on address ranges; that is, RFC1918 addresses go to the VPC network, non-RFC1918 addresses go to the internet. When set to PRIVATE, Cloud DNS always sends queries through the VPC network for this target.
343 &quot;ipv4Address&quot;: &quot;A String&quot;, # IPv4 address to forward queries to.
344 &quot;ipv6Address&quot;: &quot;A String&quot;, # IPv6 address to forward to. Does not accept both fields (ipv4 &amp; ipv6) being populated. Public preview as of November 2022.
345 &quot;kind&quot;: &quot;dns#policyAlternativeNameServerConfigTargetNameServer&quot;,
346 },
347 ],
348 },
349 &quot;description&quot;: &quot;A String&quot;, # A mutable string of at most 1024 characters associated with this resource for the user&#x27;s convenience. Has no effect on the policy&#x27;s function.
350 &quot;dns64Config&quot;: { # DNS64 policies # Configurations related to DNS64 for this policy.
351 &quot;kind&quot;: &quot;dns#policyDns64Config&quot;,
352 &quot;scope&quot;: { # The scope to which DNS64 config will be applied to.
353 &quot;allQueries&quot;: True or False, # Controls whether DNS64 is enabled globally for all networks bound to the policy.
354 &quot;kind&quot;: &quot;dns#policyDns64ConfigScope&quot;,
355 },
356 },
357 &quot;enableInboundForwarding&quot;: True or False, # Allows networks bound to this policy to receive DNS queries sent by VMs or applications over VPN connections. When enabled, a virtual IP address is allocated from each of the subnetworks that are bound to this policy.
358 &quot;enableLogging&quot;: True or False, # Controls whether logging is enabled for the networks bound to this policy. Defaults to no logging if not set.
359 &quot;id&quot;: &quot;A String&quot;, # Unique identifier for the resource; defined by the server (output only).
360 &quot;kind&quot;: &quot;dns#policy&quot;,
361 &quot;name&quot;: &quot;A String&quot;, # User-assigned name for this policy.
362 &quot;networks&quot;: [ # List of network names specifying networks to which this policy is applied.
363 {
364 &quot;kind&quot;: &quot;dns#policyNetwork&quot;,
365 &quot;networkUrl&quot;: &quot;A String&quot;, # The fully qualified URL of the VPC network to bind to. This should be formatted like https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}
366 },
367 ],
368 }
369
370 clientOperationId: string, For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
371 x__xgafv: string, V1 error format.
372 Allowed values
373 1 - v1 error format
374 2 - v2 error format
375
376 Returns:
377 An object of the form:
378
379 {
380 &quot;policy&quot;: { # A policy is a collection of DNS rules applied to one or more Virtual Private Cloud resources.
381 &quot;alternativeNameServerConfig&quot;: { # Sets an alternative name server for the associated networks. When specified, all DNS queries are forwarded to a name server that you choose. Names such as .internal are not available when an alternative name server is specified.
382 &quot;kind&quot;: &quot;dns#policyAlternativeNameServerConfig&quot;,
383 &quot;targetNameServers&quot;: [ # Sets an alternative name server for the associated networks. When specified, all DNS queries are forwarded to a name server that you choose. Names such as .internal are not available when an alternative name server is specified.
384 {
385 &quot;forwardingPath&quot;: &quot;A String&quot;, # Forwarding path for this TargetNameServer. If unset or set to DEFAULT, Cloud DNS makes forwarding decisions based on address ranges; that is, RFC1918 addresses go to the VPC network, non-RFC1918 addresses go to the internet. When set to PRIVATE, Cloud DNS always sends queries through the VPC network for this target.
386 &quot;ipv4Address&quot;: &quot;A String&quot;, # IPv4 address to forward queries to.
387 &quot;ipv6Address&quot;: &quot;A String&quot;, # IPv6 address to forward to. Does not accept both fields (ipv4 &amp; ipv6) being populated. Public preview as of November 2022.
388 &quot;kind&quot;: &quot;dns#policyAlternativeNameServerConfigTargetNameServer&quot;,
389 },
390 ],
391 },
392 &quot;description&quot;: &quot;A String&quot;, # A mutable string of at most 1024 characters associated with this resource for the user&#x27;s convenience. Has no effect on the policy&#x27;s function.
393 &quot;dns64Config&quot;: { # DNS64 policies # Configurations related to DNS64 for this policy.
394 &quot;kind&quot;: &quot;dns#policyDns64Config&quot;,
395 &quot;scope&quot;: { # The scope to which DNS64 config will be applied to.
396 &quot;allQueries&quot;: True or False, # Controls whether DNS64 is enabled globally for all networks bound to the policy.
397 &quot;kind&quot;: &quot;dns#policyDns64ConfigScope&quot;,
398 },
399 },
400 &quot;enableInboundForwarding&quot;: True or False, # Allows networks bound to this policy to receive DNS queries sent by VMs or applications over VPN connections. When enabled, a virtual IP address is allocated from each of the subnetworks that are bound to this policy.
401 &quot;enableLogging&quot;: True or False, # Controls whether logging is enabled for the networks bound to this policy. Defaults to no logging if not set.
402 &quot;id&quot;: &quot;A String&quot;, # Unique identifier for the resource; defined by the server (output only).
403 &quot;kind&quot;: &quot;dns#policy&quot;,
404 &quot;name&quot;: &quot;A String&quot;, # User-assigned name for this policy.
405 &quot;networks&quot;: [ # List of network names specifying networks to which this policy is applied.
406 {
407 &quot;kind&quot;: &quot;dns#policyNetwork&quot;,
408 &quot;networkUrl&quot;: &quot;A String&quot;, # The fully qualified URL of the VPC network to bind to. This should be formatted like https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}
409 },
410 ],
411 },
412 }</pre>
413 </div>
414
415 <div class="method">
416 <code class="details" id="update">update(project, policy, body=None, clientOperationId=None, x__xgafv=None)</code>
417 <pre>Updates an existing policy.
418
419 Args:
420 project: string, Identifies the project addressed by this request. (required)
421 policy: string, User given friendly name of the policy addressed by this request. (required)
422 body: object, The request body.
423 The object takes the form of:
424
425 { # A policy is a collection of DNS rules applied to one or more Virtual Private Cloud resources.
426 &quot;alternativeNameServerConfig&quot;: { # Sets an alternative name server for the associated networks. When specified, all DNS queries are forwarded to a name server that you choose. Names such as .internal are not available when an alternative name server is specified.
427 &quot;kind&quot;: &quot;dns#policyAlternativeNameServerConfig&quot;,
428 &quot;targetNameServers&quot;: [ # Sets an alternative name server for the associated networks. When specified, all DNS queries are forwarded to a name server that you choose. Names such as .internal are not available when an alternative name server is specified.
429 {
430 &quot;forwardingPath&quot;: &quot;A String&quot;, # Forwarding path for this TargetNameServer. If unset or set to DEFAULT, Cloud DNS makes forwarding decisions based on address ranges; that is, RFC1918 addresses go to the VPC network, non-RFC1918 addresses go to the internet. When set to PRIVATE, Cloud DNS always sends queries through the VPC network for this target.
431 &quot;ipv4Address&quot;: &quot;A String&quot;, # IPv4 address to forward queries to.
432 &quot;ipv6Address&quot;: &quot;A String&quot;, # IPv6 address to forward to. Does not accept both fields (ipv4 &amp; ipv6) being populated. Public preview as of November 2022.
433 &quot;kind&quot;: &quot;dns#policyAlternativeNameServerConfigTargetNameServer&quot;,
434 },
435 ],
436 },
437 &quot;description&quot;: &quot;A String&quot;, # A mutable string of at most 1024 characters associated with this resource for the user&#x27;s convenience. Has no effect on the policy&#x27;s function.
438 &quot;dns64Config&quot;: { # DNS64 policies # Configurations related to DNS64 for this policy.
439 &quot;kind&quot;: &quot;dns#policyDns64Config&quot;,
440 &quot;scope&quot;: { # The scope to which DNS64 config will be applied to.
441 &quot;allQueries&quot;: True or False, # Controls whether DNS64 is enabled globally for all networks bound to the policy.
442 &quot;kind&quot;: &quot;dns#policyDns64ConfigScope&quot;,
443 },
444 },
445 &quot;enableInboundForwarding&quot;: True or False, # Allows networks bound to this policy to receive DNS queries sent by VMs or applications over VPN connections. When enabled, a virtual IP address is allocated from each of the subnetworks that are bound to this policy.
446 &quot;enableLogging&quot;: True or False, # Controls whether logging is enabled for the networks bound to this policy. Defaults to no logging if not set.
447 &quot;id&quot;: &quot;A String&quot;, # Unique identifier for the resource; defined by the server (output only).
448 &quot;kind&quot;: &quot;dns#policy&quot;,
449 &quot;name&quot;: &quot;A String&quot;, # User-assigned name for this policy.
450 &quot;networks&quot;: [ # List of network names specifying networks to which this policy is applied.
451 {
452 &quot;kind&quot;: &quot;dns#policyNetwork&quot;,
453 &quot;networkUrl&quot;: &quot;A String&quot;, # The fully qualified URL of the VPC network to bind to. This should be formatted like https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}
454 },
455 ],
456 }
457
458 clientOperationId: string, For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
459 x__xgafv: string, V1 error format.
460 Allowed values
461 1 - v1 error format
462 2 - v2 error format
463
464 Returns:
465 An object of the form:
466
467 {
468 &quot;policy&quot;: { # A policy is a collection of DNS rules applied to one or more Virtual Private Cloud resources.
469 &quot;alternativeNameServerConfig&quot;: { # Sets an alternative name server for the associated networks. When specified, all DNS queries are forwarded to a name server that you choose. Names such as .internal are not available when an alternative name server is specified.
470 &quot;kind&quot;: &quot;dns#policyAlternativeNameServerConfig&quot;,
471 &quot;targetNameServers&quot;: [ # Sets an alternative name server for the associated networks. When specified, all DNS queries are forwarded to a name server that you choose. Names such as .internal are not available when an alternative name server is specified.
472 {
473 &quot;forwardingPath&quot;: &quot;A String&quot;, # Forwarding path for this TargetNameServer. If unset or set to DEFAULT, Cloud DNS makes forwarding decisions based on address ranges; that is, RFC1918 addresses go to the VPC network, non-RFC1918 addresses go to the internet. When set to PRIVATE, Cloud DNS always sends queries through the VPC network for this target.
474 &quot;ipv4Address&quot;: &quot;A String&quot;, # IPv4 address to forward queries to.
475 &quot;ipv6Address&quot;: &quot;A String&quot;, # IPv6 address to forward to. Does not accept both fields (ipv4 &amp; ipv6) being populated. Public preview as of November 2022.
476 &quot;kind&quot;: &quot;dns#policyAlternativeNameServerConfigTargetNameServer&quot;,
477 },
478 ],
479 },
480 &quot;description&quot;: &quot;A String&quot;, # A mutable string of at most 1024 characters associated with this resource for the user&#x27;s convenience. Has no effect on the policy&#x27;s function.
481 &quot;dns64Config&quot;: { # DNS64 policies # Configurations related to DNS64 for this policy.
482 &quot;kind&quot;: &quot;dns#policyDns64Config&quot;,
483 &quot;scope&quot;: { # The scope to which DNS64 config will be applied to.
484 &quot;allQueries&quot;: True or False, # Controls whether DNS64 is enabled globally for all networks bound to the policy.
485 &quot;kind&quot;: &quot;dns#policyDns64ConfigScope&quot;,
486 },
487 },
488 &quot;enableInboundForwarding&quot;: True or False, # Allows networks bound to this policy to receive DNS queries sent by VMs or applications over VPN connections. When enabled, a virtual IP address is allocated from each of the subnetworks that are bound to this policy.
489 &quot;enableLogging&quot;: True or False, # Controls whether logging is enabled for the networks bound to this policy. Defaults to no logging if not set.
490 &quot;id&quot;: &quot;A String&quot;, # Unique identifier for the resource; defined by the server (output only).
491 &quot;kind&quot;: &quot;dns#policy&quot;,
492 &quot;name&quot;: &quot;A String&quot;, # User-assigned name for this policy.
493 &quot;networks&quot;: [ # List of network names specifying networks to which this policy is applied.
494 {
495 &quot;kind&quot;: &quot;dns#policyNetwork&quot;,
496 &quot;networkUrl&quot;: &quot;A String&quot;, # The fully qualified URL of the VPC network to bind to. This should be formatted like https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}
497 },
498 ],
499 },
500 }</pre>
501 </div>
502
503 </body></html>