Debian Codegraph @

docs/dyn/dns_v2.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_v2.html">Cloud DNS API</a> . <a href="dns_v2.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, location, 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, location, 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, location, 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, location, 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(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, location, 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, location, 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, location, 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 location: string, Specifies the location of the resource. This information will be used for routing and will be part of the resource name. (required)
114 body: object, The request body.
115 The object takes the form of:
116
117 { # A policy is a collection of DNS rules applied to one or more Virtual Private Cloud resources.
118 &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.
119 &quot;kind&quot;: &quot;dns#policyAlternativeNameServerConfig&quot;,
120 &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.
121 {
122 &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.
123 &quot;ipv4Address&quot;: &quot;A String&quot;, # IPv4 address to forward to.
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;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.
130 &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.
131 &quot;id&quot;: &quot;A String&quot;, # Unique identifier for the resource; defined by the server (output only).
132 &quot;kind&quot;: &quot;dns#policy&quot;,
133 &quot;name&quot;: &quot;A String&quot;, # User-assigned name for this policy.
134 &quot;networks&quot;: [ # List of network names specifying networks to which this policy is applied.
135 {
136 &quot;kind&quot;: &quot;dns#policyNetwork&quot;,
137 &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}
138 },
139 ],
140 }
141
142 clientOperationId: string, For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
143 x__xgafv: string, V1 error format.
144 Allowed values
145 1 - v1 error format
146 2 - v2 error format
147
148 Returns:
149 An object of the form:
150
151 { # A policy is a collection of DNS rules applied to one or more Virtual Private Cloud resources.
152 &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.
153 &quot;kind&quot;: &quot;dns#policyAlternativeNameServerConfig&quot;,
154 &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.
155 {
156 &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.
157 &quot;ipv4Address&quot;: &quot;A String&quot;, # IPv4 address to forward to.
158 &quot;kind&quot;: &quot;dns#policyAlternativeNameServerConfigTargetNameServer&quot;,
159 },
160 ],
161 },
162 &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.
163 &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.
164 &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.
165 &quot;id&quot;: &quot;A String&quot;, # Unique identifier for the resource; defined by the server (output only).
166 &quot;kind&quot;: &quot;dns#policy&quot;,
167 &quot;name&quot;: &quot;A String&quot;, # User-assigned name for this policy.
168 &quot;networks&quot;: [ # List of network names specifying networks to which this policy is applied.
169 {
170 &quot;kind&quot;: &quot;dns#policyNetwork&quot;,
171 &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}
172 },
173 ],
174 }</pre>
175 </div>
176
177 <div class="method">
178 <code class="details" id="delete">delete(project, location, policy, clientOperationId=None, x__xgafv=None)</code>
179 <pre>Deletes a previously created Policy. Fails if the policy is still being referenced by a network.
180
181 Args:
182 project: string, Identifies the project addressed by this request. (required)
183 location: string, Specifies the location of the resource. This information will be used for routing and will be part of the resource name. (required)
184 policy: string, User given friendly name of the policy addressed by this request. (required)
185 clientOperationId: string, For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
186 x__xgafv: string, V1 error format.
187 Allowed values
188 1 - v1 error format
189 2 - v2 error format
190 </pre>
191 </div>
192
193 <div class="method">
194 <code class="details" id="get">get(project, location, policy, clientOperationId=None, x__xgafv=None)</code>
195 <pre>Fetches the representation of an existing Policy.
196
197 Args:
198 project: string, Identifies the project addressed by this request. (required)
199 location: string, Specifies the location of the resource. This information will be used for routing and will be part of the resource name. (required)
200 policy: string, User given friendly name of the policy addressed by this request. (required)
201 clientOperationId: string, For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
202 x__xgafv: string, V1 error format.
203 Allowed values
204 1 - v1 error format
205 2 - v2 error format
206
207 Returns:
208 An object of the form:
209
210 { # A policy is a collection of DNS rules applied to one or more Virtual Private Cloud resources.
211 &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.
212 &quot;kind&quot;: &quot;dns#policyAlternativeNameServerConfig&quot;,
213 &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.
214 {
215 &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.
216 &quot;ipv4Address&quot;: &quot;A String&quot;, # IPv4 address to forward to.
217 &quot;kind&quot;: &quot;dns#policyAlternativeNameServerConfigTargetNameServer&quot;,
218 },
219 ],
220 },
221 &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.
222 &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.
223 &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.
224 &quot;id&quot;: &quot;A String&quot;, # Unique identifier for the resource; defined by the server (output only).
225 &quot;kind&quot;: &quot;dns#policy&quot;,
226 &quot;name&quot;: &quot;A String&quot;, # User-assigned name for this policy.
227 &quot;networks&quot;: [ # List of network names specifying networks to which this policy is applied.
228 {
229 &quot;kind&quot;: &quot;dns#policyNetwork&quot;,
230 &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}
231 },
232 ],
233 }</pre>
234 </div>
235
236 <div class="method">
237 <code class="details" id="list">list(project, location, maxResults=None, pageToken=None, x__xgafv=None)</code>
238 <pre>Enumerates all Policies associated with a project.
239
240 Args:
241 project: string, Identifies the project addressed by this request. (required)
242 location: string, Specifies the location of the resource. This information will be used for routing and will be part of the resource name. (required)
243 maxResults: integer, Optional. Maximum number of results to be returned. If unspecified, the server decides how many results to return.
244 pageToken: string, Optional. A tag returned by a previous list request that was truncated. Use this parameter to continue a previous list request.
245 x__xgafv: string, V1 error format.
246 Allowed values
247 1 - v1 error format
248 2 - v2 error format
249
250 Returns:
251 An object of the form:
252
253 {
254 &quot;header&quot;: { # Elements common to every response.
255 &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).
256 },
257 &quot;kind&quot;: &quot;dns#policiesListResponse&quot;, # Type of resource.
258 &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.
259 &quot;policies&quot;: [ # The policy resources.
260 { # A policy is a collection of DNS rules applied to one or more Virtual Private Cloud resources.
261 &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.
262 &quot;kind&quot;: &quot;dns#policyAlternativeNameServerConfig&quot;,
263 &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.
264 {
265 &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.
266 &quot;ipv4Address&quot;: &quot;A String&quot;, # IPv4 address to forward to.
267 &quot;kind&quot;: &quot;dns#policyAlternativeNameServerConfigTargetNameServer&quot;,
268 },
269 ],
270 },
271 &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.
272 &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.
273 &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.
274 &quot;id&quot;: &quot;A String&quot;, # Unique identifier for the resource; defined by the server (output only).
275 &quot;kind&quot;: &quot;dns#policy&quot;,
276 &quot;name&quot;: &quot;A String&quot;, # User-assigned name for this policy.
277 &quot;networks&quot;: [ # List of network names specifying networks to which this policy is applied.
278 {
279 &quot;kind&quot;: &quot;dns#policyNetwork&quot;,
280 &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}
281 },
282 ],
283 },
284 ],
285 }</pre>
286 </div>
287
288 <div class="method">
289 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
290 <pre>Retrieves the next page of results.
291
292 Args:
293 previous_request: The request for the previous page. (required)
294 previous_response: The response from the request for the previous page. (required)
295
296 Returns:
297 A request object that you can call &#x27;execute()&#x27; on to request the next
298 page. Returns None if there are no more items in the collection.
299 </pre>
300 </div>
301
302 <div class="method">
303 <code class="details" id="patch">patch(project, location, policy, body=None, clientOperationId=None, x__xgafv=None)</code>
304 <pre>Applies a partial update to an existing Policy.
305
306 Args:
307 project: string, Identifies the project addressed by this request. (required)
308 location: string, Specifies the location of the resource. This information will be used for routing and will be part of the resource name. (required)
309 policy: string, User given friendly name of the policy addressed by this request. (required)
310 body: object, The request body.
311 The object takes the form of:
312
313 { # A policy is a collection of DNS rules applied to one or more Virtual Private Cloud resources.
314 &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.
315 &quot;kind&quot;: &quot;dns#policyAlternativeNameServerConfig&quot;,
316 &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.
317 {
318 &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.
319 &quot;ipv4Address&quot;: &quot;A String&quot;, # IPv4 address to forward to.
320 &quot;kind&quot;: &quot;dns#policyAlternativeNameServerConfigTargetNameServer&quot;,
321 },
322 ],
323 },
324 &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.
325 &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.
326 &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.
327 &quot;id&quot;: &quot;A String&quot;, # Unique identifier for the resource; defined by the server (output only).
328 &quot;kind&quot;: &quot;dns#policy&quot;,
329 &quot;name&quot;: &quot;A String&quot;, # User-assigned name for this policy.
330 &quot;networks&quot;: [ # List of network names specifying networks to which this policy is applied.
331 {
332 &quot;kind&quot;: &quot;dns#policyNetwork&quot;,
333 &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}
334 },
335 ],
336 }
337
338 clientOperationId: string, For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
339 x__xgafv: string, V1 error format.
340 Allowed values
341 1 - v1 error format
342 2 - v2 error format
343
344 Returns:
345 An object of the form:
346
347 {
348 &quot;header&quot;: { # Elements common to every response.
349 &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).
350 },
351 &quot;policy&quot;: { # A policy is a collection of DNS rules applied to one or more Virtual Private Cloud resources.
352 &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.
353 &quot;kind&quot;: &quot;dns#policyAlternativeNameServerConfig&quot;,
354 &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.
355 {
356 &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.
357 &quot;ipv4Address&quot;: &quot;A String&quot;, # IPv4 address to forward to.
358 &quot;kind&quot;: &quot;dns#policyAlternativeNameServerConfigTargetNameServer&quot;,
359 },
360 ],
361 },
362 &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.
363 &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.
364 &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.
365 &quot;id&quot;: &quot;A String&quot;, # Unique identifier for the resource; defined by the server (output only).
366 &quot;kind&quot;: &quot;dns#policy&quot;,
367 &quot;name&quot;: &quot;A String&quot;, # User-assigned name for this policy.
368 &quot;networks&quot;: [ # List of network names specifying networks to which this policy is applied.
369 {
370 &quot;kind&quot;: &quot;dns#policyNetwork&quot;,
371 &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}
372 },
373 ],
374 },
375 }</pre>
376 </div>
377
378 <div class="method">
379 <code class="details" id="update">update(project, location, policy, body=None, clientOperationId=None, x__xgafv=None)</code>
380 <pre>Updates an existing Policy.
381
382 Args:
383 project: string, Identifies the project addressed by this request. (required)
384 location: string, Specifies the location of the resource. This information will be used for routing and will be part of the resource name. (required)
385 policy: string, User given friendly name of the policy addressed by this request. (required)
386 body: object, The request body.
387 The object takes the form of:
388
389 { # A policy is a collection of DNS rules applied to one or more Virtual Private Cloud resources.
390 &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.
391 &quot;kind&quot;: &quot;dns#policyAlternativeNameServerConfig&quot;,
392 &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.
393 {
394 &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.
395 &quot;ipv4Address&quot;: &quot;A String&quot;, # IPv4 address to forward to.
396 &quot;kind&quot;: &quot;dns#policyAlternativeNameServerConfigTargetNameServer&quot;,
397 },
398 ],
399 },
400 &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.
401 &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.
402 &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.
403 &quot;id&quot;: &quot;A String&quot;, # Unique identifier for the resource; defined by the server (output only).
404 &quot;kind&quot;: &quot;dns#policy&quot;,
405 &quot;name&quot;: &quot;A String&quot;, # User-assigned name for this policy.
406 &quot;networks&quot;: [ # List of network names specifying networks to which this policy is applied.
407 {
408 &quot;kind&quot;: &quot;dns#policyNetwork&quot;,
409 &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}
410 },
411 ],
412 }
413
414 clientOperationId: string, For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
415 x__xgafv: string, V1 error format.
416 Allowed values
417 1 - v1 error format
418 2 - v2 error format
419
420 Returns:
421 An object of the form:
422
423 {
424 &quot;header&quot;: { # Elements common to every response.
425 &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).
426 },
427 &quot;policy&quot;: { # A policy is a collection of DNS rules applied to one or more Virtual Private Cloud resources.
428 &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.
429 &quot;kind&quot;: &quot;dns#policyAlternativeNameServerConfig&quot;,
430 &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.
431 {
432 &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.
433 &quot;ipv4Address&quot;: &quot;A String&quot;, # IPv4 address to forward to.
434 &quot;kind&quot;: &quot;dns#policyAlternativeNameServerConfigTargetNameServer&quot;,
435 },
436 ],
437 },
438 &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.
439 &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.
440 &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.
441 &quot;id&quot;: &quot;A String&quot;, # Unique identifier for the resource; defined by the server (output only).
442 &quot;kind&quot;: &quot;dns#policy&quot;,
443 &quot;name&quot;: &quot;A String&quot;, # User-assigned name for this policy.
444 &quot;networks&quot;: [ # List of network names specifying networks to which this policy is applied.
445 {
446 &quot;kind&quot;: &quot;dns#policyNetwork&quot;,
447 &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}
448 },
449 ],
450 },
451 }</pre>
452 </div>
453
454 </body></html>