blob: 46c3f7a9b42dde5211a0c4ca58d84a7c09e92af2 [file] [log] [blame]
Bu Sun Kim65020912020-05-20 12:08:20 -07001<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
Bu Sun Kimd059ad82020-07-22 17:02:09 -070075<h1><a href="dns_v1.html">Cloud DNS API</a> . <a href="dns_v1.policies.html">policies</a></h1>
Bu Sun Kim65020912020-05-20 12:08:20 -070076<h2>Instance Methods</h2>
77<p class="toc_element">
Bu Sun Kimd059ad82020-07-22 17:02:09 -070078 <code><a href="#create">create(project, body=None, clientOperationId=None, x__xgafv=None)</a></code></p>
79<p class="firstline">Create a new Policy</p>
Bu Sun Kim65020912020-05-20 12:08:20 -070080<p class="toc_element">
Bu Sun Kimd059ad82020-07-22 17:02:09 -070081 <code><a href="#delete">delete(project, policy, clientOperationId=None, x__xgafv=None)</a></code></p>
82<p class="firstline">Delete a previously created Policy. Will fail if the policy is still being</p>
Bu Sun Kim65020912020-05-20 12:08:20 -070083<p class="toc_element">
Bu Sun Kimd059ad82020-07-22 17:02:09 -070084 <code><a href="#get">get(project, policy, clientOperationId=None, x__xgafv=None)</a></code></p>
85<p class="firstline">Fetch the representation of an existing Policy.</p>
Bu Sun Kim65020912020-05-20 12:08:20 -070086<p class="toc_element">
Bu Sun Kimd059ad82020-07-22 17:02:09 -070087 <code><a href="#list">list(project, pageToken=None, maxResults=None, x__xgafv=None)</a></code></p>
88<p class="firstline">Enumerate all Policies associated with a project.</p>
Bu Sun Kim65020912020-05-20 12:08:20 -070089<p class="toc_element">
90 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
91<p class="firstline">Retrieves the next page of results.</p>
92<p class="toc_element">
Bu Sun Kimd059ad82020-07-22 17:02:09 -070093 <code><a href="#patch">patch(project, policy, body=None, clientOperationId=None, x__xgafv=None)</a></code></p>
94<p class="firstline">Apply a partial update to an existing Policy.</p>
Bu Sun Kim65020912020-05-20 12:08:20 -070095<p class="toc_element">
Bu Sun Kimd059ad82020-07-22 17:02:09 -070096 <code><a href="#update">update(project, policy, body=None, clientOperationId=None, x__xgafv=None)</a></code></p>
97<p class="firstline">Update an existing Policy.</p>
Bu Sun Kim65020912020-05-20 12:08:20 -070098<h3>Method Details</h3>
99<div class="method">
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700100 <code class="details" id="create">create(project, body=None, clientOperationId=None, x__xgafv=None)</code>
101 <pre>Create a new Policy
Bu Sun Kim65020912020-05-20 12:08:20 -0700102
103Args:
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700104 project: string, Identifies the project addressed by this request. (required)
Bu Sun Kim65020912020-05-20 12:08:20 -0700105 body: object, The request body.
106 The object takes the form of:
107
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700108{ # A policy is a collection of DNS rules applied to one or more Virtual Private
109 # Cloud resources.
110 &quot;kind&quot;: &quot;dns#policy&quot;,
111 &quot;name&quot;: &quot;A String&quot;, # User assigned name for this policy.
112 &quot;id&quot;: &quot;A String&quot;, # Unique identifier for the resource; defined by the server (output only).
113 &quot;networks&quot;: [ # List of network names specifying networks to which this policy is applied.
114 {
115 &quot;kind&quot;: &quot;dns#policyNetwork&quot;,
116 &quot;networkUrl&quot;: &quot;A String&quot;, # The fully qualified URL of the VPC network to bind to.
117 # This should be formatted like
118 # https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}
119 },
120 ],
121 &quot;description&quot;: &quot;A String&quot;, # A mutable string of at most 1024 characters associated with this resource
122 # for the user&#x27;s convenience. Has no effect on the policy&#x27;s function.
123 &quot;enableLogging&quot;: True or False, # Controls whether logging is enabled for the networks bound to this policy.
124 # Defaults to no logging if not set.
125 &quot;enableInboundForwarding&quot;: True or False, # Allows networks bound to this policy to receive DNS queries sent by VMs or
126 # applications over VPN connections. When enabled, a virtual IP address will
127 # be allocated from each of the sub-networks that are bound to this policy.
128 &quot;alternativeNameServerConfig&quot;: { # Sets an alternative name server for the associated networks. When
129 # specified, all DNS queries are forwarded to a name server that you
130 # choose. Names such as .internal are not available when an alternative
131 # name server is specified.
132 &quot;kind&quot;: &quot;dns#policyAlternativeNameServerConfig&quot;,
133 &quot;targetNameServers&quot;: [ # Sets an alternative name server for the associated networks. When
134 # specified, all DNS queries are forwarded to a name server that you
135 # choose. Names such as .internal are not available when an alternative
136 # name server is specified.
Bu Sun Kim65020912020-05-20 12:08:20 -0700137 {
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700138 &quot;forwardingPath&quot;: &quot;A String&quot;, # Forwarding path for this TargetNameServer, if unset or set to DEFAULT,
139 # Cloud DNS will make forwarding decision based on address ranges,
140 # i.e. RFC1918 addresses go to the VPC, Non-RFC1918 addresses go to the
141 # Internet. When set to PRIVATE, Cloud DNS will always send queries
142 # through VPC for this target
143 &quot;kind&quot;: &quot;dns#policyAlternativeNameServerConfigTargetNameServer&quot;,
144 &quot;ipv4Address&quot;: &quot;A String&quot;, # IPv4 address to forward to.
Bu Sun Kim65020912020-05-20 12:08:20 -0700145 },
146 ],
147 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700148 }
149
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700150 clientOperationId: string, For mutating operation requests only. An optional identifier
151specified by the client. Must be unique for operation resources in the
152Operations collection.
153 x__xgafv: string, V1 error format.
154 Allowed values
155 1 - v1 error format
156 2 - v2 error format
Bu Sun Kim65020912020-05-20 12:08:20 -0700157
158Returns:
159 An object of the form:
160
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700161 { # A policy is a collection of DNS rules applied to one or more Virtual Private
162 # Cloud resources.
163 &quot;kind&quot;: &quot;dns#policy&quot;,
164 &quot;name&quot;: &quot;A String&quot;, # User assigned name for this policy.
165 &quot;id&quot;: &quot;A String&quot;, # Unique identifier for the resource; defined by the server (output only).
166 &quot;networks&quot;: [ # List of network names specifying networks to which this policy is applied.
167 {
168 &quot;kind&quot;: &quot;dns#policyNetwork&quot;,
169 &quot;networkUrl&quot;: &quot;A String&quot;, # The fully qualified URL of the VPC network to bind to.
170 # This should be formatted like
171 # https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}
172 },
173 ],
174 &quot;description&quot;: &quot;A String&quot;, # A mutable string of at most 1024 characters associated with this resource
175 # for the user&#x27;s convenience. Has no effect on the policy&#x27;s function.
176 &quot;enableLogging&quot;: True or False, # Controls whether logging is enabled for the networks bound to this policy.
177 # Defaults to no logging if not set.
178 &quot;enableInboundForwarding&quot;: True or False, # Allows networks bound to this policy to receive DNS queries sent by VMs or
179 # applications over VPN connections. When enabled, a virtual IP address will
180 # be allocated from each of the sub-networks that are bound to this policy.
181 &quot;alternativeNameServerConfig&quot;: { # Sets an alternative name server for the associated networks. When
182 # specified, all DNS queries are forwarded to a name server that you
183 # choose. Names such as .internal are not available when an alternative
184 # name server is specified.
185 &quot;kind&quot;: &quot;dns#policyAlternativeNameServerConfig&quot;,
186 &quot;targetNameServers&quot;: [ # Sets an alternative name server for the associated networks. When
187 # specified, all DNS queries are forwarded to a name server that you
188 # choose. Names such as .internal are not available when an alternative
189 # name server is specified.
Bu Sun Kim65020912020-05-20 12:08:20 -0700190 {
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700191 &quot;forwardingPath&quot;: &quot;A String&quot;, # Forwarding path for this TargetNameServer, if unset or set to DEFAULT,
192 # Cloud DNS will make forwarding decision based on address ranges,
193 # i.e. RFC1918 addresses go to the VPC, Non-RFC1918 addresses go to the
194 # Internet. When set to PRIVATE, Cloud DNS will always send queries
195 # through VPC for this target
196 &quot;kind&quot;: &quot;dns#policyAlternativeNameServerConfigTargetNameServer&quot;,
197 &quot;ipv4Address&quot;: &quot;A String&quot;, # IPv4 address to forward to.
Bu Sun Kim65020912020-05-20 12:08:20 -0700198 },
199 ],
200 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700201 }</pre>
202</div>
203
204<div class="method">
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700205 <code class="details" id="delete">delete(project, policy, clientOperationId=None, x__xgafv=None)</code>
206 <pre>Delete a previously created Policy. Will fail if the policy is still being
207referenced by a network.
Bu Sun Kim65020912020-05-20 12:08:20 -0700208
209Args:
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700210 project: string, Identifies the project addressed by this request. (required)
211 policy: string, User given friendly name of the policy addressed by this request. (required)
212 clientOperationId: string, For mutating operation requests only. An optional identifier
213specified by the client. Must be unique for operation resources in the
214Operations collection.
215 x__xgafv: string, V1 error format.
216 Allowed values
217 1 - v1 error format
218 2 - v2 error format
Bu Sun Kim65020912020-05-20 12:08:20 -0700219</pre>
220</div>
221
222<div class="method">
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700223 <code class="details" id="get">get(project, policy, clientOperationId=None, x__xgafv=None)</code>
224 <pre>Fetch the representation of an existing Policy.
Bu Sun Kim65020912020-05-20 12:08:20 -0700225
226Args:
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700227 project: string, Identifies the project addressed by this request. (required)
228 policy: string, User given friendly name of the policy addressed by this request. (required)
229 clientOperationId: string, For mutating operation requests only. An optional identifier
230specified by the client. Must be unique for operation resources in the
231Operations collection.
232 x__xgafv: string, V1 error format.
233 Allowed values
234 1 - v1 error format
235 2 - v2 error format
Bu Sun Kim65020912020-05-20 12:08:20 -0700236
237Returns:
238 An object of the form:
239
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700240 { # A policy is a collection of DNS rules applied to one or more Virtual Private
241 # Cloud resources.
242 &quot;kind&quot;: &quot;dns#policy&quot;,
243 &quot;name&quot;: &quot;A String&quot;, # User assigned name for this policy.
244 &quot;id&quot;: &quot;A String&quot;, # Unique identifier for the resource; defined by the server (output only).
245 &quot;networks&quot;: [ # List of network names specifying networks to which this policy is applied.
246 {
247 &quot;kind&quot;: &quot;dns#policyNetwork&quot;,
248 &quot;networkUrl&quot;: &quot;A String&quot;, # The fully qualified URL of the VPC network to bind to.
249 # This should be formatted like
250 # https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}
251 },
252 ],
253 &quot;description&quot;: &quot;A String&quot;, # A mutable string of at most 1024 characters associated with this resource
254 # for the user&#x27;s convenience. Has no effect on the policy&#x27;s function.
255 &quot;enableLogging&quot;: True or False, # Controls whether logging is enabled for the networks bound to this policy.
256 # Defaults to no logging if not set.
257 &quot;enableInboundForwarding&quot;: True or False, # Allows networks bound to this policy to receive DNS queries sent by VMs or
258 # applications over VPN connections. When enabled, a virtual IP address will
259 # be allocated from each of the sub-networks that are bound to this policy.
260 &quot;alternativeNameServerConfig&quot;: { # Sets an alternative name server for the associated networks. When
261 # specified, all DNS queries are forwarded to a name server that you
262 # choose. Names such as .internal are not available when an alternative
263 # name server is specified.
264 &quot;kind&quot;: &quot;dns#policyAlternativeNameServerConfig&quot;,
265 &quot;targetNameServers&quot;: [ # Sets an alternative name server for the associated networks. When
266 # specified, all DNS queries are forwarded to a name server that you
267 # choose. Names such as .internal are not available when an alternative
268 # name server is specified.
Bu Sun Kim65020912020-05-20 12:08:20 -0700269 {
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700270 &quot;forwardingPath&quot;: &quot;A String&quot;, # Forwarding path for this TargetNameServer, if unset or set to DEFAULT,
271 # Cloud DNS will make forwarding decision based on address ranges,
272 # i.e. RFC1918 addresses go to the VPC, Non-RFC1918 addresses go to the
273 # Internet. When set to PRIVATE, Cloud DNS will always send queries
274 # through VPC for this target
275 &quot;kind&quot;: &quot;dns#policyAlternativeNameServerConfigTargetNameServer&quot;,
276 &quot;ipv4Address&quot;: &quot;A String&quot;, # IPv4 address to forward to.
Bu Sun Kim65020912020-05-20 12:08:20 -0700277 },
278 ],
279 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700280 }</pre>
281</div>
282
283<div class="method">
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700284 <code class="details" id="list">list(project, pageToken=None, maxResults=None, x__xgafv=None)</code>
285 <pre>Enumerate all Policies associated with a project.
Bu Sun Kim65020912020-05-20 12:08:20 -0700286
287Args:
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700288 project: string, Identifies the project addressed by this request. (required)
289 pageToken: string, Optional. A tag returned by a previous list request that was truncated.
290Use this parameter to continue a previous list request.
291 maxResults: integer, Optional. Maximum number of results to be returned. If unspecified, the
292server will decide how many results to return.
293 x__xgafv: string, V1 error format.
294 Allowed values
295 1 - v1 error format
296 2 - v2 error format
Bu Sun Kim65020912020-05-20 12:08:20 -0700297
298Returns:
299 An object of the form:
300
301 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700302 &quot;kind&quot;: &quot;dns#policiesListResponse&quot;, # Type of resource.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700303 &quot;policies&quot;: [ # The policy resources.
304 { # A policy is a collection of DNS rules applied to one or more Virtual Private
305 # Cloud resources.
306 &quot;kind&quot;: &quot;dns#policy&quot;,
307 &quot;name&quot;: &quot;A String&quot;, # User assigned name for this policy.
308 &quot;id&quot;: &quot;A String&quot;, # Unique identifier for the resource; defined by the server (output only).
309 &quot;networks&quot;: [ # List of network names specifying networks to which this policy is applied.
310 {
311 &quot;kind&quot;: &quot;dns#policyNetwork&quot;,
312 &quot;networkUrl&quot;: &quot;A String&quot;, # The fully qualified URL of the VPC network to bind to.
313 # This should be formatted like
314 # https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}
315 },
316 ],
317 &quot;description&quot;: &quot;A String&quot;, # A mutable string of at most 1024 characters associated with this resource
318 # for the user&#x27;s convenience. Has no effect on the policy&#x27;s function.
319 &quot;enableLogging&quot;: True or False, # Controls whether logging is enabled for the networks bound to this policy.
320 # Defaults to no logging if not set.
321 &quot;enableInboundForwarding&quot;: True or False, # Allows networks bound to this policy to receive DNS queries sent by VMs or
322 # applications over VPN connections. When enabled, a virtual IP address will
323 # be allocated from each of the sub-networks that are bound to this policy.
324 &quot;alternativeNameServerConfig&quot;: { # Sets an alternative name server for the associated networks. When
325 # specified, all DNS queries are forwarded to a name server that you
326 # choose. Names such as .internal are not available when an alternative
327 # name server is specified.
328 &quot;kind&quot;: &quot;dns#policyAlternativeNameServerConfig&quot;,
329 &quot;targetNameServers&quot;: [ # Sets an alternative name server for the associated networks. When
330 # specified, all DNS queries are forwarded to a name server that you
331 # choose. Names such as .internal are not available when an alternative
332 # name server is specified.
Bu Sun Kim65020912020-05-20 12:08:20 -0700333 {
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700334 &quot;forwardingPath&quot;: &quot;A String&quot;, # Forwarding path for this TargetNameServer, if unset or set to DEFAULT,
335 # Cloud DNS will make forwarding decision based on address ranges,
336 # i.e. RFC1918 addresses go to the VPC, Non-RFC1918 addresses go to the
337 # Internet. When set to PRIVATE, Cloud DNS will always send queries
338 # through VPC for this target
339 &quot;kind&quot;: &quot;dns#policyAlternativeNameServerConfigTargetNameServer&quot;,
340 &quot;ipv4Address&quot;: &quot;A String&quot;, # IPv4 address to forward to.
Bu Sun Kim65020912020-05-20 12:08:20 -0700341 },
342 ],
343 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700344 },
345 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700346 &quot;nextPageToken&quot;: &quot;A String&quot;, # The presence of this field indicates that there exist more results
347 # following your last page of results in pagination order. To fetch them,
348 # make another list request using this value as your page token.
349 #
350 # In this way you can retrieve the complete contents of even very large
351 # collections one page at a time. However, if the contents of the collection
352 # change between the first and last paginated list request, the set of all
353 # elements returned will be an inconsistent view of the collection. There is
354 # no way to retrieve a consistent snapshot of a collection larger than the
355 # maximum page size.
356 &quot;header&quot;: { # Elements common to every response.
357 &quot;operationId&quot;: &quot;A String&quot;, # For mutating operation requests that completed successfully.
358 # This is the client_operation_id if the client specified it,
359 # otherwise it is generated by the server (output only).
360 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700361 }</pre>
362</div>
363
364<div class="method">
365 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
366 <pre>Retrieves the next page of results.
367
368Args:
369 previous_request: The request for the previous page. (required)
370 previous_response: The response from the request for the previous page. (required)
371
372Returns:
373 A request object that you can call &#x27;execute()&#x27; on to request the next
374 page. Returns None if there are no more items in the collection.
375 </pre>
376</div>
377
378<div class="method">
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700379 <code class="details" id="patch">patch(project, policy, body=None, clientOperationId=None, x__xgafv=None)</code>
380 <pre>Apply a partial update to an existing Policy.
Bu Sun Kim65020912020-05-20 12:08:20 -0700381
382Args:
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700383 project: string, Identifies the project addressed by this request. (required)
384 policy: string, User given friendly name of the policy addressed by this request. (required)
Bu Sun Kim65020912020-05-20 12:08:20 -0700385 body: object, The request body.
386 The object takes the form of:
387
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700388{ # A policy is a collection of DNS rules applied to one or more Virtual Private
389 # Cloud resources.
390 &quot;kind&quot;: &quot;dns#policy&quot;,
391 &quot;name&quot;: &quot;A String&quot;, # User assigned name for this policy.
392 &quot;id&quot;: &quot;A String&quot;, # Unique identifier for the resource; defined by the server (output only).
393 &quot;networks&quot;: [ # List of network names specifying networks to which this policy is applied.
394 {
395 &quot;kind&quot;: &quot;dns#policyNetwork&quot;,
396 &quot;networkUrl&quot;: &quot;A String&quot;, # The fully qualified URL of the VPC network to bind to.
397 # This should be formatted like
398 # https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}
399 },
400 ],
401 &quot;description&quot;: &quot;A String&quot;, # A mutable string of at most 1024 characters associated with this resource
402 # for the user&#x27;s convenience. Has no effect on the policy&#x27;s function.
403 &quot;enableLogging&quot;: True or False, # Controls whether logging is enabled for the networks bound to this policy.
404 # Defaults to no logging if not set.
405 &quot;enableInboundForwarding&quot;: True or False, # Allows networks bound to this policy to receive DNS queries sent by VMs or
406 # applications over VPN connections. When enabled, a virtual IP address will
407 # be allocated from each of the sub-networks that are bound to this policy.
408 &quot;alternativeNameServerConfig&quot;: { # Sets an alternative name server for the associated networks. When
409 # specified, all DNS queries are forwarded to a name server that you
410 # choose. Names such as .internal are not available when an alternative
411 # name server is specified.
412 &quot;kind&quot;: &quot;dns#policyAlternativeNameServerConfig&quot;,
413 &quot;targetNameServers&quot;: [ # Sets an alternative name server for the associated networks. When
414 # specified, all DNS queries are forwarded to a name server that you
415 # choose. Names such as .internal are not available when an alternative
416 # name server is specified.
Bu Sun Kim65020912020-05-20 12:08:20 -0700417 {
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700418 &quot;forwardingPath&quot;: &quot;A String&quot;, # Forwarding path for this TargetNameServer, if unset or set to DEFAULT,
419 # Cloud DNS will make forwarding decision based on address ranges,
420 # i.e. RFC1918 addresses go to the VPC, Non-RFC1918 addresses go to the
421 # Internet. When set to PRIVATE, Cloud DNS will always send queries
422 # through VPC for this target
423 &quot;kind&quot;: &quot;dns#policyAlternativeNameServerConfigTargetNameServer&quot;,
424 &quot;ipv4Address&quot;: &quot;A String&quot;, # IPv4 address to forward to.
Bu Sun Kim65020912020-05-20 12:08:20 -0700425 },
426 ],
427 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700428 }
429
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700430 clientOperationId: string, For mutating operation requests only. An optional identifier
431specified by the client. Must be unique for operation resources in the
432Operations collection.
433 x__xgafv: string, V1 error format.
434 Allowed values
435 1 - v1 error format
436 2 - v2 error format
Bu Sun Kim65020912020-05-20 12:08:20 -0700437
438Returns:
439 An object of the form:
440
441 {
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700442 &quot;header&quot;: { # Elements common to every response.
443 &quot;operationId&quot;: &quot;A String&quot;, # For mutating operation requests that completed successfully.
444 # This is the client_operation_id if the client specified it,
445 # otherwise it is generated by the server (output only).
Bu Sun Kim65020912020-05-20 12:08:20 -0700446 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700447 &quot;policy&quot;: { # A policy is a collection of DNS rules applied to one or more Virtual Private
448 # Cloud resources.
449 &quot;kind&quot;: &quot;dns#policy&quot;,
450 &quot;name&quot;: &quot;A String&quot;, # User assigned name for this policy.
451 &quot;id&quot;: &quot;A String&quot;, # Unique identifier for the resource; defined by the server (output only).
452 &quot;networks&quot;: [ # List of network names specifying networks to which this policy is applied.
453 {
454 &quot;kind&quot;: &quot;dns#policyNetwork&quot;,
455 &quot;networkUrl&quot;: &quot;A String&quot;, # The fully qualified URL of the VPC network to bind to.
456 # This should be formatted like
457 # https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}
458 },
459 ],
460 &quot;description&quot;: &quot;A String&quot;, # A mutable string of at most 1024 characters associated with this resource
461 # for the user&#x27;s convenience. Has no effect on the policy&#x27;s function.
462 &quot;enableLogging&quot;: True or False, # Controls whether logging is enabled for the networks bound to this policy.
463 # Defaults to no logging if not set.
464 &quot;enableInboundForwarding&quot;: True or False, # Allows networks bound to this policy to receive DNS queries sent by VMs or
465 # applications over VPN connections. When enabled, a virtual IP address will
466 # be allocated from each of the sub-networks that are bound to this policy.
467 &quot;alternativeNameServerConfig&quot;: { # Sets an alternative name server for the associated networks. When
468 # specified, all DNS queries are forwarded to a name server that you
469 # choose. Names such as .internal are not available when an alternative
470 # name server is specified.
471 &quot;kind&quot;: &quot;dns#policyAlternativeNameServerConfig&quot;,
472 &quot;targetNameServers&quot;: [ # Sets an alternative name server for the associated networks. When
473 # specified, all DNS queries are forwarded to a name server that you
474 # choose. Names such as .internal are not available when an alternative
475 # name server is specified.
Bu Sun Kim65020912020-05-20 12:08:20 -0700476 {
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700477 &quot;forwardingPath&quot;: &quot;A String&quot;, # Forwarding path for this TargetNameServer, if unset or set to DEFAULT,
478 # Cloud DNS will make forwarding decision based on address ranges,
479 # i.e. RFC1918 addresses go to the VPC, Non-RFC1918 addresses go to the
480 # Internet. When set to PRIVATE, Cloud DNS will always send queries
481 # through VPC for this target
482 &quot;kind&quot;: &quot;dns#policyAlternativeNameServerConfigTargetNameServer&quot;,
483 &quot;ipv4Address&quot;: &quot;A String&quot;, # IPv4 address to forward to.
Bu Sun Kim65020912020-05-20 12:08:20 -0700484 },
485 ],
486 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700487 },
488 }</pre>
489</div>
490
491<div class="method">
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700492 <code class="details" id="update">update(project, policy, body=None, clientOperationId=None, x__xgafv=None)</code>
493 <pre>Update an existing Policy.
Bu Sun Kim65020912020-05-20 12:08:20 -0700494
495Args:
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700496 project: string, Identifies the project addressed by this request. (required)
497 policy: string, User given friendly name of the policy addressed by this request. (required)
Bu Sun Kim65020912020-05-20 12:08:20 -0700498 body: object, The request body.
499 The object takes the form of:
500
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700501{ # A policy is a collection of DNS rules applied to one or more Virtual Private
502 # Cloud resources.
503 &quot;kind&quot;: &quot;dns#policy&quot;,
504 &quot;name&quot;: &quot;A String&quot;, # User assigned name for this policy.
505 &quot;id&quot;: &quot;A String&quot;, # Unique identifier for the resource; defined by the server (output only).
506 &quot;networks&quot;: [ # List of network names specifying networks to which this policy is applied.
507 {
508 &quot;kind&quot;: &quot;dns#policyNetwork&quot;,
509 &quot;networkUrl&quot;: &quot;A String&quot;, # The fully qualified URL of the VPC network to bind to.
510 # This should be formatted like
511 # https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}
512 },
513 ],
514 &quot;description&quot;: &quot;A String&quot;, # A mutable string of at most 1024 characters associated with this resource
515 # for the user&#x27;s convenience. Has no effect on the policy&#x27;s function.
516 &quot;enableLogging&quot;: True or False, # Controls whether logging is enabled for the networks bound to this policy.
517 # Defaults to no logging if not set.
518 &quot;enableInboundForwarding&quot;: True or False, # Allows networks bound to this policy to receive DNS queries sent by VMs or
519 # applications over VPN connections. When enabled, a virtual IP address will
520 # be allocated from each of the sub-networks that are bound to this policy.
521 &quot;alternativeNameServerConfig&quot;: { # Sets an alternative name server for the associated networks. When
522 # specified, all DNS queries are forwarded to a name server that you
523 # choose. Names such as .internal are not available when an alternative
524 # name server is specified.
525 &quot;kind&quot;: &quot;dns#policyAlternativeNameServerConfig&quot;,
526 &quot;targetNameServers&quot;: [ # Sets an alternative name server for the associated networks. When
527 # specified, all DNS queries are forwarded to a name server that you
528 # choose. Names such as .internal are not available when an alternative
529 # name server is specified.
Bu Sun Kim65020912020-05-20 12:08:20 -0700530 {
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700531 &quot;forwardingPath&quot;: &quot;A String&quot;, # Forwarding path for this TargetNameServer, if unset or set to DEFAULT,
532 # Cloud DNS will make forwarding decision based on address ranges,
533 # i.e. RFC1918 addresses go to the VPC, Non-RFC1918 addresses go to the
534 # Internet. When set to PRIVATE, Cloud DNS will always send queries
535 # through VPC for this target
536 &quot;kind&quot;: &quot;dns#policyAlternativeNameServerConfigTargetNameServer&quot;,
537 &quot;ipv4Address&quot;: &quot;A String&quot;, # IPv4 address to forward to.
Bu Sun Kim65020912020-05-20 12:08:20 -0700538 },
539 ],
540 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700541 }
542
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700543 clientOperationId: string, For mutating operation requests only. An optional identifier
544specified by the client. Must be unique for operation resources in the
545Operations collection.
546 x__xgafv: string, V1 error format.
547 Allowed values
548 1 - v1 error format
549 2 - v2 error format
Bu Sun Kim65020912020-05-20 12:08:20 -0700550
551Returns:
552 An object of the form:
553
554 {
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700555 &quot;header&quot;: { # Elements common to every response.
556 &quot;operationId&quot;: &quot;A String&quot;, # For mutating operation requests that completed successfully.
557 # This is the client_operation_id if the client specified it,
558 # otherwise it is generated by the server (output only).
Bu Sun Kim65020912020-05-20 12:08:20 -0700559 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700560 &quot;policy&quot;: { # A policy is a collection of DNS rules applied to one or more Virtual Private
561 # Cloud resources.
562 &quot;kind&quot;: &quot;dns#policy&quot;,
563 &quot;name&quot;: &quot;A String&quot;, # User assigned name for this policy.
564 &quot;id&quot;: &quot;A String&quot;, # Unique identifier for the resource; defined by the server (output only).
565 &quot;networks&quot;: [ # List of network names specifying networks to which this policy is applied.
566 {
567 &quot;kind&quot;: &quot;dns#policyNetwork&quot;,
568 &quot;networkUrl&quot;: &quot;A String&quot;, # The fully qualified URL of the VPC network to bind to.
569 # This should be formatted like
570 # https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}
571 },
572 ],
573 &quot;description&quot;: &quot;A String&quot;, # A mutable string of at most 1024 characters associated with this resource
574 # for the user&#x27;s convenience. Has no effect on the policy&#x27;s function.
575 &quot;enableLogging&quot;: True or False, # Controls whether logging is enabled for the networks bound to this policy.
576 # Defaults to no logging if not set.
577 &quot;enableInboundForwarding&quot;: True or False, # Allows networks bound to this policy to receive DNS queries sent by VMs or
578 # applications over VPN connections. When enabled, a virtual IP address will
579 # be allocated from each of the sub-networks that are bound to this policy.
580 &quot;alternativeNameServerConfig&quot;: { # Sets an alternative name server for the associated networks. When
581 # specified, all DNS queries are forwarded to a name server that you
582 # choose. Names such as .internal are not available when an alternative
583 # name server is specified.
584 &quot;kind&quot;: &quot;dns#policyAlternativeNameServerConfig&quot;,
585 &quot;targetNameServers&quot;: [ # Sets an alternative name server for the associated networks. When
586 # specified, all DNS queries are forwarded to a name server that you
587 # choose. Names such as .internal are not available when an alternative
588 # name server is specified.
Bu Sun Kim65020912020-05-20 12:08:20 -0700589 {
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700590 &quot;forwardingPath&quot;: &quot;A String&quot;, # Forwarding path for this TargetNameServer, if unset or set to DEFAULT,
591 # Cloud DNS will make forwarding decision based on address ranges,
592 # i.e. RFC1918 addresses go to the VPC, Non-RFC1918 addresses go to the
593 # Internet. When set to PRIVATE, Cloud DNS will always send queries
594 # through VPC for this target
595 &quot;kind&quot;: &quot;dns#policyAlternativeNameServerConfigTargetNameServer&quot;,
596 &quot;ipv4Address&quot;: &quot;A String&quot;, # IPv4 address to forward to.
Bu Sun Kim65020912020-05-20 12:08:20 -0700597 },
598 ],
599 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700600 },
601 }</pre>
602</div>
603
604</body></html>