blob: 17de2733742cd594a51a2adf29a61b4a1233e63b [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
75<h1><a href="dns_v1.html">Google Cloud DNS API</a> . <a href="dns_v1.policies.html">policies</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="#create">create(project, body=None, clientOperationId=None)</a></code></p>
79<p class="firstline">Create a new Policy</p>
80<p class="toc_element">
81 <code><a href="#delete">delete(project, policy, clientOperationId=None)</a></code></p>
82<p class="firstline">Delete a previously created Policy. Will fail if the policy is still being referenced by a network.</p>
83<p class="toc_element">
84 <code><a href="#get">get(project, policy, clientOperationId=None)</a></code></p>
85<p class="firstline">Fetch the representation of an existing Policy.</p>
86<p class="toc_element">
87 <code><a href="#list">list(project, maxResults=None, pageToken=None)</a></code></p>
88<p class="firstline">Enumerate all Policies associated with a project.</p>
89<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">
93 <code><a href="#patch">patch(project, policy, body=None, clientOperationId=None)</a></code></p>
94<p class="firstline">Apply a partial update to an existing Policy.</p>
95<p class="toc_element">
96 <code><a href="#update">update(project, policy, body=None, clientOperationId=None)</a></code></p>
97<p class="firstline">Update an existing Policy.</p>
98<h3>Method Details</h3>
99<div class="method">
100 <code class="details" id="create">create(project, body=None, clientOperationId=None)</code>
101 <pre>Create a new Policy
102
103Args:
104 project: string, Identifies the project addressed by this request. (required)
105 body: object, The request body.
106 The object takes the form of:
107
108{ # A policy is a collection of DNS rules applied to one or more Virtual Private Cloud resources.
109 &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.
110 &quot;kind&quot;: &quot;dns#policyAlternativeNameServerConfig&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dns#policyAlternativeNameServerConfig&quot;.
111 &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.
112 {
113 &quot;ipv4Address&quot;: &quot;A String&quot;, # IPv4 address to forward to.
114 &quot;kind&quot;: &quot;dns#policyAlternativeNameServerConfigTargetNameServer&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dns#policyAlternativeNameServerConfigTargetNameServer&quot;.
115 },
116 ],
117 },
118 &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.
119 &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 will be allocated from each of the sub-networks that are bound to this policy.
120 &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.
121 &quot;id&quot;: &quot;A String&quot;, # Unique identifier for the resource; defined by the server (output only).
122 &quot;kind&quot;: &quot;dns#policy&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dns#policy&quot;.
123 &quot;name&quot;: &quot;A String&quot;, # User assigned name for this policy.
124 &quot;networks&quot;: [ # List of network names specifying networks to which this policy is applied.
125 {
126 &quot;kind&quot;: &quot;dns#policyNetwork&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dns#policyNetwork&quot;.
127 &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}
128 },
129 ],
130 }
131
132 clientOperationId: string, For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
133
134Returns:
135 An object of the form:
136
137 { # A policy is a collection of DNS rules applied to one or more Virtual Private Cloud resources.
138 &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.
139 &quot;kind&quot;: &quot;dns#policyAlternativeNameServerConfig&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dns#policyAlternativeNameServerConfig&quot;.
140 &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.
141 {
142 &quot;ipv4Address&quot;: &quot;A String&quot;, # IPv4 address to forward to.
143 &quot;kind&quot;: &quot;dns#policyAlternativeNameServerConfigTargetNameServer&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dns#policyAlternativeNameServerConfigTargetNameServer&quot;.
144 },
145 ],
146 },
147 &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.
148 &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 will be allocated from each of the sub-networks that are bound to this policy.
149 &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.
150 &quot;id&quot;: &quot;A String&quot;, # Unique identifier for the resource; defined by the server (output only).
151 &quot;kind&quot;: &quot;dns#policy&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dns#policy&quot;.
152 &quot;name&quot;: &quot;A String&quot;, # User assigned name for this policy.
153 &quot;networks&quot;: [ # List of network names specifying networks to which this policy is applied.
154 {
155 &quot;kind&quot;: &quot;dns#policyNetwork&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dns#policyNetwork&quot;.
156 &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}
157 },
158 ],
159 }</pre>
160</div>
161
162<div class="method">
163 <code class="details" id="delete">delete(project, policy, clientOperationId=None)</code>
164 <pre>Delete a previously created Policy. Will fail if the policy is still being referenced by a network.
165
166Args:
167 project: string, Identifies the project addressed by this request. (required)
168 policy: string, User given friendly name of the policy addressed by this request. (required)
169 clientOperationId: string, For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
170</pre>
171</div>
172
173<div class="method">
174 <code class="details" id="get">get(project, policy, clientOperationId=None)</code>
175 <pre>Fetch the representation of an existing Policy.
176
177Args:
178 project: string, Identifies the project addressed by this request. (required)
179 policy: string, User given friendly name of the policy addressed by this request. (required)
180 clientOperationId: string, For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
181
182Returns:
183 An object of the form:
184
185 { # A policy is a collection of DNS rules applied to one or more Virtual Private Cloud resources.
186 &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.
187 &quot;kind&quot;: &quot;dns#policyAlternativeNameServerConfig&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dns#policyAlternativeNameServerConfig&quot;.
188 &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.
189 {
190 &quot;ipv4Address&quot;: &quot;A String&quot;, # IPv4 address to forward to.
191 &quot;kind&quot;: &quot;dns#policyAlternativeNameServerConfigTargetNameServer&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dns#policyAlternativeNameServerConfigTargetNameServer&quot;.
192 },
193 ],
194 },
195 &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.
196 &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 will be allocated from each of the sub-networks that are bound to this policy.
197 &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.
198 &quot;id&quot;: &quot;A String&quot;, # Unique identifier for the resource; defined by the server (output only).
199 &quot;kind&quot;: &quot;dns#policy&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dns#policy&quot;.
200 &quot;name&quot;: &quot;A String&quot;, # User assigned name for this policy.
201 &quot;networks&quot;: [ # List of network names specifying networks to which this policy is applied.
202 {
203 &quot;kind&quot;: &quot;dns#policyNetwork&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dns#policyNetwork&quot;.
204 &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}
205 },
206 ],
207 }</pre>
208</div>
209
210<div class="method">
211 <code class="details" id="list">list(project, maxResults=None, pageToken=None)</code>
212 <pre>Enumerate all Policies associated with a project.
213
214Args:
215 project: string, Identifies the project addressed by this request. (required)
216 maxResults: integer, Optional. Maximum number of results to be returned. If unspecified, the server will decide how many results to return.
217 pageToken: string, Optional. A tag returned by a previous list request that was truncated. Use this parameter to continue a previous list request.
218
219Returns:
220 An object of the form:
221
222 {
223 &quot;header&quot;: { # Elements common to every response.
224 &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).
225 },
226 &quot;kind&quot;: &quot;dns#policiesListResponse&quot;, # Type of resource.
227 &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.
228 #
229 # In this way you can retrieve 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 will be an inconsistent view of the collection. There is no way to retrieve a consistent snapshot of a collection larger than the maximum page size.
230 &quot;policies&quot;: [ # The policy resources.
231 { # A policy is a collection of DNS rules applied to one or more Virtual Private Cloud resources.
232 &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.
233 &quot;kind&quot;: &quot;dns#policyAlternativeNameServerConfig&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dns#policyAlternativeNameServerConfig&quot;.
234 &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.
235 {
236 &quot;ipv4Address&quot;: &quot;A String&quot;, # IPv4 address to forward to.
237 &quot;kind&quot;: &quot;dns#policyAlternativeNameServerConfigTargetNameServer&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dns#policyAlternativeNameServerConfigTargetNameServer&quot;.
238 },
239 ],
240 },
241 &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.
242 &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 will be allocated from each of the sub-networks that are bound to this policy.
243 &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.
244 &quot;id&quot;: &quot;A String&quot;, # Unique identifier for the resource; defined by the server (output only).
245 &quot;kind&quot;: &quot;dns#policy&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dns#policy&quot;.
246 &quot;name&quot;: &quot;A String&quot;, # User assigned name for this policy.
247 &quot;networks&quot;: [ # List of network names specifying networks to which this policy is applied.
248 {
249 &quot;kind&quot;: &quot;dns#policyNetwork&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dns#policyNetwork&quot;.
250 &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}
251 },
252 ],
253 },
254 ],
255 }</pre>
256</div>
257
258<div class="method">
259 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
260 <pre>Retrieves the next page of results.
261
262Args:
263 previous_request: The request for the previous page. (required)
264 previous_response: The response from the request for the previous page. (required)
265
266Returns:
267 A request object that you can call &#x27;execute()&#x27; on to request the next
268 page. Returns None if there are no more items in the collection.
269 </pre>
270</div>
271
272<div class="method">
273 <code class="details" id="patch">patch(project, policy, body=None, clientOperationId=None)</code>
274 <pre>Apply a partial update to an existing Policy.
275
276Args:
277 project: string, Identifies the project addressed by this request. (required)
278 policy: string, User given friendly name of the policy addressed by this request. (required)
279 body: object, The request body.
280 The object takes the form of:
281
282{ # A policy is a collection of DNS rules applied to one or more Virtual Private Cloud resources.
283 &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.
284 &quot;kind&quot;: &quot;dns#policyAlternativeNameServerConfig&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dns#policyAlternativeNameServerConfig&quot;.
285 &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.
286 {
287 &quot;ipv4Address&quot;: &quot;A String&quot;, # IPv4 address to forward to.
288 &quot;kind&quot;: &quot;dns#policyAlternativeNameServerConfigTargetNameServer&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dns#policyAlternativeNameServerConfigTargetNameServer&quot;.
289 },
290 ],
291 },
292 &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.
293 &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 will be allocated from each of the sub-networks that are bound to this policy.
294 &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.
295 &quot;id&quot;: &quot;A String&quot;, # Unique identifier for the resource; defined by the server (output only).
296 &quot;kind&quot;: &quot;dns#policy&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dns#policy&quot;.
297 &quot;name&quot;: &quot;A String&quot;, # User assigned name for this policy.
298 &quot;networks&quot;: [ # List of network names specifying networks to which this policy is applied.
299 {
300 &quot;kind&quot;: &quot;dns#policyNetwork&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dns#policyNetwork&quot;.
301 &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}
302 },
303 ],
304 }
305
306 clientOperationId: string, For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
307
308Returns:
309 An object of the form:
310
311 {
312 &quot;header&quot;: { # Elements common to every response.
313 &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).
314 },
315 &quot;policy&quot;: { # A policy is a collection of DNS rules applied to one or more Virtual Private Cloud resources.
316 &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.
317 &quot;kind&quot;: &quot;dns#policyAlternativeNameServerConfig&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dns#policyAlternativeNameServerConfig&quot;.
318 &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.
319 {
320 &quot;ipv4Address&quot;: &quot;A String&quot;, # IPv4 address to forward to.
321 &quot;kind&quot;: &quot;dns#policyAlternativeNameServerConfigTargetNameServer&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dns#policyAlternativeNameServerConfigTargetNameServer&quot;.
322 },
323 ],
324 },
325 &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.
326 &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 will be allocated from each of the sub-networks that are bound to this policy.
327 &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.
328 &quot;id&quot;: &quot;A String&quot;, # Unique identifier for the resource; defined by the server (output only).
329 &quot;kind&quot;: &quot;dns#policy&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dns#policy&quot;.
330 &quot;name&quot;: &quot;A String&quot;, # User assigned name for this policy.
331 &quot;networks&quot;: [ # List of network names specifying networks to which this policy is applied.
332 {
333 &quot;kind&quot;: &quot;dns#policyNetwork&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dns#policyNetwork&quot;.
334 &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}
335 },
336 ],
337 },
338 }</pre>
339</div>
340
341<div class="method">
342 <code class="details" id="update">update(project, policy, body=None, clientOperationId=None)</code>
343 <pre>Update an existing Policy.
344
345Args:
346 project: string, Identifies the project addressed by this request. (required)
347 policy: string, User given friendly name of the policy addressed by this request. (required)
348 body: object, The request body.
349 The object takes the form of:
350
351{ # 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;, # Identifies what kind of resource this is. Value: the fixed string &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;ipv4Address&quot;: &quot;A String&quot;, # IPv4 address to forward to.
357 &quot;kind&quot;: &quot;dns#policyAlternativeNameServerConfigTargetNameServer&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dns#policyAlternativeNameServerConfigTargetNameServer&quot;.
358 },
359 ],
360 },
361 &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.
362 &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 will be allocated from each of the sub-networks that are bound to this policy.
363 &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.
364 &quot;id&quot;: &quot;A String&quot;, # Unique identifier for the resource; defined by the server (output only).
365 &quot;kind&quot;: &quot;dns#policy&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dns#policy&quot;.
366 &quot;name&quot;: &quot;A String&quot;, # User assigned name for this policy.
367 &quot;networks&quot;: [ # List of network names specifying networks to which this policy is applied.
368 {
369 &quot;kind&quot;: &quot;dns#policyNetwork&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dns#policyNetwork&quot;.
370 &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}
371 },
372 ],
373 }
374
375 clientOperationId: string, For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
376
377Returns:
378 An object of the form:
379
380 {
381 &quot;header&quot;: { # Elements common to every response.
382 &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).
383 },
384 &quot;policy&quot;: { # A policy is a collection of DNS rules applied to one or more Virtual Private Cloud resources.
385 &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.
386 &quot;kind&quot;: &quot;dns#policyAlternativeNameServerConfig&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dns#policyAlternativeNameServerConfig&quot;.
387 &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.
388 {
389 &quot;ipv4Address&quot;: &quot;A String&quot;, # IPv4 address to forward to.
390 &quot;kind&quot;: &quot;dns#policyAlternativeNameServerConfigTargetNameServer&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dns#policyAlternativeNameServerConfigTargetNameServer&quot;.
391 },
392 ],
393 },
394 &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.
395 &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 will be allocated from each of the sub-networks that are bound to this policy.
396 &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.
397 &quot;id&quot;: &quot;A String&quot;, # Unique identifier for the resource; defined by the server (output only).
398 &quot;kind&quot;: &quot;dns#policy&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dns#policy&quot;.
399 &quot;name&quot;: &quot;A String&quot;, # User assigned name for this policy.
400 &quot;networks&quot;: [ # List of network names specifying networks to which this policy is applied.
401 {
402 &quot;kind&quot;: &quot;dns#policyNetwork&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dns#policyNetwork&quot;.
403 &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}
404 },
405 ],
406 },
407 }</pre>
408</div>
409
410</body></html>