blob: 0194d7f948f400268b7d12e705cf9d55e7c2821c [file] [log] [blame]
Bu Sun Kim715bd7f2019-06-14 16:50:42 -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_v1beta2.html">Cloud DNS API</a> . <a href="dns_v1beta2.policies.html">policies</a></h1>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -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 Kim715bd7f2019-06-14 16:50:42 -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 Kim715bd7f2019-06-14 16:50:42 -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 Kim715bd7f2019-06-14 16:50:42 -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 Kim715bd7f2019-06-14 16:50:42 -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 Kim715bd7f2019-06-14 16:50:42 -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 Kim715bd7f2019-06-14 16:50:42 -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 Kim715bd7f2019-06-14 16:50:42 -0700102
103Args:
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700104 project: string, Identifies the project addressed by this request. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700105 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700106 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;id&quot;: &quot;A String&quot;, # Unique identifier for the resource; defined by the server (output only).
112 &quot;networks&quot;: [ # List of network names specifying networks to which this policy is applied.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700113 {
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700114 &quot;networkUrl&quot;: &quot;A String&quot;, # The fully qualified URL of the VPC network to bind to.
115 # This should be formatted like
116 # https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}
117 &quot;kind&quot;: &quot;dns#policyNetwork&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700118 },
119 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700120 &quot;description&quot;: &quot;A String&quot;, # A mutable string of at most 1024 characters associated with this resource
121 # for the user&#x27;s convenience. Has no effect on the policy&#x27;s function.
122 &quot;enableInboundForwarding&quot;: True or False, # Allows networks bound to this policy to receive DNS queries sent by VMs or
123 # applications over VPN connections. When enabled, a virtual IP address will
124 # be allocated from each of the sub-networks that are bound to this policy.
125 &quot;alternativeNameServerConfig&quot;: { # Sets an alternative name server for the associated networks. When
126 # specified, all DNS queries are forwarded to a name server that you
127 # choose. Names such as .internal are not available when an alternative
128 # name server is specified.
129 &quot;targetNameServers&quot;: [ # Sets an alternative name server for the associated networks. When
130 # specified, all DNS queries are forwarded to a name server that you
131 # choose. Names such as .internal are not available when an alternative
132 # name server is specified.
133 {
134 &quot;kind&quot;: &quot;dns#policyAlternativeNameServerConfigTargetNameServer&quot;,
135 &quot;forwardingPath&quot;: &quot;A String&quot;, # Forwarding path for this TargetNameServer, if unset or set to DEFAULT,
136 # Cloud DNS will make forwarding decision based on address ranges,
137 # i.e. RFC1918 addresses go to the VPC, Non-RFC1918 addresses go to the
138 # Internet. When set to PRIVATE, Cloud DNS will always send queries
139 # through VPC for this target
140 &quot;ipv4Address&quot;: &quot;A String&quot;, # IPv4 address to forward to.
141 },
142 ],
143 &quot;kind&quot;: &quot;dns#policyAlternativeNameServerConfig&quot;,
144 },
145 &quot;name&quot;: &quot;A String&quot;, # User assigned name for this policy.
146 &quot;enableLogging&quot;: True or False, # Controls whether logging is enabled for the networks bound to this policy.
147 # Defaults to no logging if not set.
Bu Sun Kim65020912020-05-20 12:08:20 -0700148 }
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700149
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 Kim715bd7f2019-06-14 16:50:42 -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;id&quot;: &quot;A String&quot;, # Unique identifier for the resource; defined by the server (output only).
165 &quot;networks&quot;: [ # List of network names specifying networks to which this policy is applied.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700166 {
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700167 &quot;networkUrl&quot;: &quot;A String&quot;, # The fully qualified URL of the VPC network to bind to.
168 # This should be formatted like
169 # https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}
170 &quot;kind&quot;: &quot;dns#policyNetwork&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700171 },
172 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700173 &quot;description&quot;: &quot;A String&quot;, # A mutable string of at most 1024 characters associated with this resource
174 # for the user&#x27;s convenience. Has no effect on the policy&#x27;s function.
175 &quot;enableInboundForwarding&quot;: True or False, # Allows networks bound to this policy to receive DNS queries sent by VMs or
176 # applications over VPN connections. When enabled, a virtual IP address will
177 # be allocated from each of the sub-networks that are bound to this policy.
178 &quot;alternativeNameServerConfig&quot;: { # Sets an alternative name server for the associated networks. When
179 # specified, all DNS queries are forwarded to a name server that you
180 # choose. Names such as .internal are not available when an alternative
181 # name server is specified.
182 &quot;targetNameServers&quot;: [ # Sets an alternative name server for the associated networks. When
183 # specified, all DNS queries are forwarded to a name server that you
184 # choose. Names such as .internal are not available when an alternative
185 # name server is specified.
186 {
187 &quot;kind&quot;: &quot;dns#policyAlternativeNameServerConfigTargetNameServer&quot;,
188 &quot;forwardingPath&quot;: &quot;A String&quot;, # Forwarding path for this TargetNameServer, if unset or set to DEFAULT,
189 # Cloud DNS will make forwarding decision based on address ranges,
190 # i.e. RFC1918 addresses go to the VPC, Non-RFC1918 addresses go to the
191 # Internet. When set to PRIVATE, Cloud DNS will always send queries
192 # through VPC for this target
193 &quot;ipv4Address&quot;: &quot;A String&quot;, # IPv4 address to forward to.
194 },
195 ],
196 &quot;kind&quot;: &quot;dns#policyAlternativeNameServerConfig&quot;,
197 },
198 &quot;name&quot;: &quot;A String&quot;, # User assigned name for this policy.
199 &quot;enableLogging&quot;: True or False, # Controls whether logging is enabled for the networks bound to this policy.
200 # Defaults to no logging if not set.
Bu Sun Kim65020912020-05-20 12:08:20 -0700201 }</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700202</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 Kim715bd7f2019-06-14 16:50:42 -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 Kim715bd7f2019-06-14 16:50:42 -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 Kim715bd7f2019-06-14 16:50:42 -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 Kim715bd7f2019-06-14 16:50:42 -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;id&quot;: &quot;A String&quot;, # Unique identifier for the resource; defined by the server (output only).
244 &quot;networks&quot;: [ # List of network names specifying networks to which this policy is applied.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700245 {
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700246 &quot;networkUrl&quot;: &quot;A String&quot;, # The fully qualified URL of the VPC network to bind to.
247 # This should be formatted like
248 # https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}
249 &quot;kind&quot;: &quot;dns#policyNetwork&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700250 },
251 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700252 &quot;description&quot;: &quot;A String&quot;, # A mutable string of at most 1024 characters associated with this resource
253 # for the user&#x27;s convenience. Has no effect on the policy&#x27;s function.
254 &quot;enableInboundForwarding&quot;: True or False, # Allows networks bound to this policy to receive DNS queries sent by VMs or
255 # applications over VPN connections. When enabled, a virtual IP address will
256 # be allocated from each of the sub-networks that are bound to this policy.
257 &quot;alternativeNameServerConfig&quot;: { # Sets an alternative name server for the associated networks. When
258 # specified, all DNS queries are forwarded to a name server that you
259 # choose. Names such as .internal are not available when an alternative
260 # name server is specified.
261 &quot;targetNameServers&quot;: [ # Sets an alternative name server for the associated networks. When
262 # specified, all DNS queries are forwarded to a name server that you
263 # choose. Names such as .internal are not available when an alternative
264 # name server is specified.
265 {
266 &quot;kind&quot;: &quot;dns#policyAlternativeNameServerConfigTargetNameServer&quot;,
267 &quot;forwardingPath&quot;: &quot;A String&quot;, # Forwarding path for this TargetNameServer, if unset or set to DEFAULT,
268 # Cloud DNS will make forwarding decision based on address ranges,
269 # i.e. RFC1918 addresses go to the VPC, Non-RFC1918 addresses go to the
270 # Internet. When set to PRIVATE, Cloud DNS will always send queries
271 # through VPC for this target
272 &quot;ipv4Address&quot;: &quot;A String&quot;, # IPv4 address to forward to.
273 },
274 ],
275 &quot;kind&quot;: &quot;dns#policyAlternativeNameServerConfig&quot;,
276 },
277 &quot;name&quot;: &quot;A String&quot;, # User assigned name for this policy.
278 &quot;enableLogging&quot;: True or False, # Controls whether logging is enabled for the networks bound to this policy.
279 # Defaults to no logging if not set.
Bu Sun Kim65020912020-05-20 12:08:20 -0700280 }</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700281</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 Kim715bd7f2019-06-14 16:50:42 -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 Kim715bd7f2019-06-14 16:50:42 -0700297
298Returns:
299 An object of the form:
300
301 {
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700302 &quot;header&quot;: { # Elements common to every response.
303 &quot;operationId&quot;: &quot;A String&quot;, # For mutating operation requests that completed successfully.
304 # This is the client_operation_id if the client specified it,
305 # otherwise it is generated by the server (output only).
Bu Sun Kim65020912020-05-20 12:08:20 -0700306 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700307 &quot;policies&quot;: [ # The policy resources.
308 { # A policy is a collection of DNS rules applied to one or more Virtual Private
309 # Cloud resources.
310 &quot;kind&quot;: &quot;dns#policy&quot;,
311 &quot;id&quot;: &quot;A String&quot;, # Unique identifier for the resource; defined by the server (output only).
312 &quot;networks&quot;: [ # List of network names specifying networks to which this policy is applied.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700313 {
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700314 &quot;networkUrl&quot;: &quot;A String&quot;, # The fully qualified URL of the VPC network to bind to.
315 # This should be formatted like
316 # https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}
317 &quot;kind&quot;: &quot;dns#policyNetwork&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700318 },
319 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700320 &quot;description&quot;: &quot;A String&quot;, # A mutable string of at most 1024 characters associated with this resource
321 # for the user&#x27;s convenience. Has no effect on the policy&#x27;s function.
322 &quot;enableInboundForwarding&quot;: True or False, # Allows networks bound to this policy to receive DNS queries sent by VMs or
323 # applications over VPN connections. When enabled, a virtual IP address will
324 # be allocated from each of the sub-networks that are bound to this policy.
325 &quot;alternativeNameServerConfig&quot;: { # Sets an alternative name server for the associated networks. When
326 # specified, all DNS queries are forwarded to a name server that you
327 # choose. Names such as .internal are not available when an alternative
328 # name server is specified.
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.
333 {
334 &quot;kind&quot;: &quot;dns#policyAlternativeNameServerConfigTargetNameServer&quot;,
335 &quot;forwardingPath&quot;: &quot;A String&quot;, # Forwarding path for this TargetNameServer, if unset or set to DEFAULT,
336 # Cloud DNS will make forwarding decision based on address ranges,
337 # i.e. RFC1918 addresses go to the VPC, Non-RFC1918 addresses go to the
338 # Internet. When set to PRIVATE, Cloud DNS will always send queries
339 # through VPC for this target
340 &quot;ipv4Address&quot;: &quot;A String&quot;, # IPv4 address to forward to.
341 },
342 ],
343 &quot;kind&quot;: &quot;dns#policyAlternativeNameServerConfig&quot;,
344 },
345 &quot;name&quot;: &quot;A String&quot;, # User assigned name for this policy.
346 &quot;enableLogging&quot;: True or False, # Controls whether logging is enabled for the networks bound to this policy.
347 # Defaults to no logging if not set.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700348 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700349 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700350 &quot;kind&quot;: &quot;dns#policiesListResponse&quot;, # Type of resource.
351 &quot;nextPageToken&quot;: &quot;A String&quot;, # The presence of this field indicates that there exist more results
352 # following your last page of results in pagination order. To fetch them,
353 # make another list request using this value as your page token.
354 #
355 # In this way you can retrieve the complete contents of even very large
356 # collections one page at a time. However, if the contents of the collection
357 # change between the first and last paginated list request, the set of all
358 # elements returned will be an inconsistent view of the collection. There is
359 # no way to retrieve a consistent snapshot of a collection larger than the
360 # maximum page size.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -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:
Bu Sun Kim65020912020-05-20 12:08:20 -0700373 A request object that you can call &#x27;execute()&#x27; on to request the next
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700374 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 Kim715bd7f2019-06-14 16:50:42 -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)
Dan O'Mearadd494642020-05-01 07:42:23 -0700385 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700386 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;id&quot;: &quot;A String&quot;, # Unique identifier for the resource; defined by the server (output only).
392 &quot;networks&quot;: [ # List of network names specifying networks to which this policy is applied.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700393 {
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700394 &quot;networkUrl&quot;: &quot;A String&quot;, # The fully qualified URL of the VPC network to bind to.
395 # This should be formatted like
396 # https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}
397 &quot;kind&quot;: &quot;dns#policyNetwork&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700398 },
399 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700400 &quot;description&quot;: &quot;A String&quot;, # A mutable string of at most 1024 characters associated with this resource
401 # for the user&#x27;s convenience. Has no effect on the policy&#x27;s function.
402 &quot;enableInboundForwarding&quot;: True or False, # Allows networks bound to this policy to receive DNS queries sent by VMs or
403 # applications over VPN connections. When enabled, a virtual IP address will
404 # be allocated from each of the sub-networks that are bound to this policy.
405 &quot;alternativeNameServerConfig&quot;: { # Sets an alternative name server for the associated networks. When
406 # specified, all DNS queries are forwarded to a name server that you
407 # choose. Names such as .internal are not available when an alternative
408 # name server is specified.
409 &quot;targetNameServers&quot;: [ # Sets an alternative name server for the associated networks. When
410 # specified, all DNS queries are forwarded to a name server that you
411 # choose. Names such as .internal are not available when an alternative
412 # name server is specified.
413 {
414 &quot;kind&quot;: &quot;dns#policyAlternativeNameServerConfigTargetNameServer&quot;,
415 &quot;forwardingPath&quot;: &quot;A String&quot;, # Forwarding path for this TargetNameServer, if unset or set to DEFAULT,
416 # Cloud DNS will make forwarding decision based on address ranges,
417 # i.e. RFC1918 addresses go to the VPC, Non-RFC1918 addresses go to the
418 # Internet. When set to PRIVATE, Cloud DNS will always send queries
419 # through VPC for this target
420 &quot;ipv4Address&quot;: &quot;A String&quot;, # IPv4 address to forward to.
421 },
422 ],
423 &quot;kind&quot;: &quot;dns#policyAlternativeNameServerConfig&quot;,
424 },
425 &quot;name&quot;: &quot;A String&quot;, # User assigned name for this policy.
426 &quot;enableLogging&quot;: True or False, # Controls whether logging is enabled for the networks bound to this policy.
427 # Defaults to no logging if not set.
Bu Sun Kim65020912020-05-20 12:08:20 -0700428 }
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700429
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 Kim715bd7f2019-06-14 16:50:42 -0700437
438Returns:
439 An object of the form:
440
441 {
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700442 &quot;policy&quot;: { # A policy is a collection of DNS rules applied to one or more Virtual Private
443 # Cloud resources.
444 &quot;kind&quot;: &quot;dns#policy&quot;,
445 &quot;id&quot;: &quot;A String&quot;, # Unique identifier for the resource; defined by the server (output only).
446 &quot;networks&quot;: [ # List of network names specifying networks to which this policy is applied.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700447 {
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700448 &quot;networkUrl&quot;: &quot;A String&quot;, # The fully qualified URL of the VPC network to bind to.
449 # This should be formatted like
450 # https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}
451 &quot;kind&quot;: &quot;dns#policyNetwork&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700452 },
453 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700454 &quot;description&quot;: &quot;A String&quot;, # A mutable string of at most 1024 characters associated with this resource
455 # for the user&#x27;s convenience. Has no effect on the policy&#x27;s function.
456 &quot;enableInboundForwarding&quot;: True or False, # Allows networks bound to this policy to receive DNS queries sent by VMs or
457 # applications over VPN connections. When enabled, a virtual IP address will
458 # be allocated from each of the sub-networks that are bound to this policy.
459 &quot;alternativeNameServerConfig&quot;: { # Sets an alternative name server for the associated networks. When
460 # specified, all DNS queries are forwarded to a name server that you
461 # choose. Names such as .internal are not available when an alternative
462 # name server is specified.
463 &quot;targetNameServers&quot;: [ # Sets an alternative name server for the associated networks. When
464 # specified, all DNS queries are forwarded to a name server that you
465 # choose. Names such as .internal are not available when an alternative
466 # name server is specified.
467 {
468 &quot;kind&quot;: &quot;dns#policyAlternativeNameServerConfigTargetNameServer&quot;,
469 &quot;forwardingPath&quot;: &quot;A String&quot;, # Forwarding path for this TargetNameServer, if unset or set to DEFAULT,
470 # Cloud DNS will make forwarding decision based on address ranges,
471 # i.e. RFC1918 addresses go to the VPC, Non-RFC1918 addresses go to the
472 # Internet. When set to PRIVATE, Cloud DNS will always send queries
473 # through VPC for this target
474 &quot;ipv4Address&quot;: &quot;A String&quot;, # IPv4 address to forward to.
475 },
476 ],
477 &quot;kind&quot;: &quot;dns#policyAlternativeNameServerConfig&quot;,
478 },
479 &quot;name&quot;: &quot;A String&quot;, # User assigned name for this policy.
480 &quot;enableLogging&quot;: True or False, # Controls whether logging is enabled for the networks bound to this policy.
481 # Defaults to no logging if not set.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700482 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700483 &quot;header&quot;: { # Elements common to every response.
484 &quot;operationId&quot;: &quot;A String&quot;, # For mutating operation requests that completed successfully.
485 # This is the client_operation_id if the client specified it,
486 # otherwise it is generated by the server (output only).
487 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700488 }</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 Kim715bd7f2019-06-14 16:50:42 -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)
Dan O'Mearadd494642020-05-01 07:42:23 -0700498 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700499 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;id&quot;: &quot;A String&quot;, # Unique identifier for the resource; defined by the server (output only).
505 &quot;networks&quot;: [ # List of network names specifying networks to which this policy is applied.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700506 {
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700507 &quot;networkUrl&quot;: &quot;A String&quot;, # The fully qualified URL of the VPC network to bind to.
508 # This should be formatted like
509 # https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}
510 &quot;kind&quot;: &quot;dns#policyNetwork&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700511 },
512 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700513 &quot;description&quot;: &quot;A String&quot;, # A mutable string of at most 1024 characters associated with this resource
514 # for the user&#x27;s convenience. Has no effect on the policy&#x27;s function.
515 &quot;enableInboundForwarding&quot;: True or False, # Allows networks bound to this policy to receive DNS queries sent by VMs or
516 # applications over VPN connections. When enabled, a virtual IP address will
517 # be allocated from each of the sub-networks that are bound to this policy.
518 &quot;alternativeNameServerConfig&quot;: { # Sets an alternative name server for the associated networks. When
519 # specified, all DNS queries are forwarded to a name server that you
520 # choose. Names such as .internal are not available when an alternative
521 # name server is specified.
522 &quot;targetNameServers&quot;: [ # Sets an alternative name server for the associated networks. When
523 # specified, all DNS queries are forwarded to a name server that you
524 # choose. Names such as .internal are not available when an alternative
525 # name server is specified.
526 {
527 &quot;kind&quot;: &quot;dns#policyAlternativeNameServerConfigTargetNameServer&quot;,
528 &quot;forwardingPath&quot;: &quot;A String&quot;, # Forwarding path for this TargetNameServer, if unset or set to DEFAULT,
529 # Cloud DNS will make forwarding decision based on address ranges,
530 # i.e. RFC1918 addresses go to the VPC, Non-RFC1918 addresses go to the
531 # Internet. When set to PRIVATE, Cloud DNS will always send queries
532 # through VPC for this target
533 &quot;ipv4Address&quot;: &quot;A String&quot;, # IPv4 address to forward to.
534 },
535 ],
536 &quot;kind&quot;: &quot;dns#policyAlternativeNameServerConfig&quot;,
537 },
538 &quot;name&quot;: &quot;A String&quot;, # User assigned name for this policy.
539 &quot;enableLogging&quot;: True or False, # Controls whether logging is enabled for the networks bound to this policy.
540 # Defaults to no logging if not set.
Bu Sun Kim65020912020-05-20 12:08:20 -0700541 }
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700542
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 Kim715bd7f2019-06-14 16:50:42 -0700550
551Returns:
552 An object of the form:
553
554 {
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700555 &quot;policy&quot;: { # A policy is a collection of DNS rules applied to one or more Virtual Private
556 # Cloud resources.
557 &quot;kind&quot;: &quot;dns#policy&quot;,
558 &quot;id&quot;: &quot;A String&quot;, # Unique identifier for the resource; defined by the server (output only).
559 &quot;networks&quot;: [ # List of network names specifying networks to which this policy is applied.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700560 {
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700561 &quot;networkUrl&quot;: &quot;A String&quot;, # The fully qualified URL of the VPC network to bind to.
562 # This should be formatted like
563 # https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}
564 &quot;kind&quot;: &quot;dns#policyNetwork&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700565 },
566 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700567 &quot;description&quot;: &quot;A String&quot;, # A mutable string of at most 1024 characters associated with this resource
568 # for the user&#x27;s convenience. Has no effect on the policy&#x27;s function.
569 &quot;enableInboundForwarding&quot;: True or False, # Allows networks bound to this policy to receive DNS queries sent by VMs or
570 # applications over VPN connections. When enabled, a virtual IP address will
571 # be allocated from each of the sub-networks that are bound to this policy.
572 &quot;alternativeNameServerConfig&quot;: { # Sets an alternative name server for the associated networks. When
573 # specified, all DNS queries are forwarded to a name server that you
574 # choose. Names such as .internal are not available when an alternative
575 # name server is specified.
576 &quot;targetNameServers&quot;: [ # Sets an alternative name server for the associated networks. When
577 # specified, all DNS queries are forwarded to a name server that you
578 # choose. Names such as .internal are not available when an alternative
579 # name server is specified.
580 {
581 &quot;kind&quot;: &quot;dns#policyAlternativeNameServerConfigTargetNameServer&quot;,
582 &quot;forwardingPath&quot;: &quot;A String&quot;, # Forwarding path for this TargetNameServer, if unset or set to DEFAULT,
583 # Cloud DNS will make forwarding decision based on address ranges,
584 # i.e. RFC1918 addresses go to the VPC, Non-RFC1918 addresses go to the
585 # Internet. When set to PRIVATE, Cloud DNS will always send queries
586 # through VPC for this target
587 &quot;ipv4Address&quot;: &quot;A String&quot;, # IPv4 address to forward to.
588 },
589 ],
590 &quot;kind&quot;: &quot;dns#policyAlternativeNameServerConfig&quot;,
591 },
592 &quot;name&quot;: &quot;A String&quot;, # User assigned name for this policy.
593 &quot;enableLogging&quot;: True or False, # Controls whether logging is enabled for the networks bound to this policy.
594 # Defaults to no logging if not set.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700595 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700596 &quot;header&quot;: { # Elements common to every response.
597 &quot;operationId&quot;: &quot;A String&quot;, # For mutating operation requests that completed successfully.
598 # This is the client_operation_id if the client specified it,
599 # otherwise it is generated by the server (output only).
600 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700601 }</pre>
602</div>
603
604</body></html>