Debian Codegraph @

docs/dyn/compute_beta.vpnTunnels.html

raw
1 <html><body>
2 <style>
3
4 body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13 }
14
15 body {
16 font-size: 13px;
17 padding: 1em;
18 }
19
20 h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23 }
24
25 h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28 }
29
30 h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34 }
35
36 pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39 }
40
41 pre {
42 margin-top: 0.5em;
43 }
44
45 h1, h2, h3, p {
46 font-family: Arial, sans serif;
47 }
48
49 h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51 }
52
53 .toc_element {
54 margin-top: 0.5em;
55 }
56
57 .firstline {
58 margin-left: 2 em;
59 }
60
61 .method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66 }
67
68 .details {
69 font-weight: bold;
70 font-size: 14px;
71 }
72
73 </style>
74
75 <h1><a href="compute_beta.html">Compute Engine API</a> . <a href="compute_beta.vpnTunnels.html">vpnTunnels</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="#aggregatedList">aggregatedList(project, filter=None, includeAllScopes=None, maxResults=None, orderBy=None, pageToken=None, returnPartialSuccess=None, serviceProjectNumber=None, x__xgafv=None)</a></code></p>
79 <p class="firstline">Retrieves an aggregated list of VPN tunnels.</p>
80 <p class="toc_element">
81 <code><a href="#aggregatedList_next">aggregatedList_next()</a></code></p>
82 <p class="firstline">Retrieves the next page of results.</p>
83 <p class="toc_element">
84 <code><a href="#close">close()</a></code></p>
85 <p class="firstline">Close httplib2 connections.</p>
86 <p class="toc_element">
87 <code><a href="#delete">delete(project, region, vpnTunnel, requestId=None, x__xgafv=None)</a></code></p>
88 <p class="firstline">Deletes the specified VpnTunnel resource.</p>
89 <p class="toc_element">
90 <code><a href="#get">get(project, region, vpnTunnel, x__xgafv=None)</a></code></p>
91 <p class="firstline">Returns the specified VpnTunnel resource.</p>
92 <p class="toc_element">
93 <code><a href="#insert">insert(project, region, body=None, requestId=None, x__xgafv=None)</a></code></p>
94 <p class="firstline">Creates a VpnTunnel resource in the specified project and region using</p>
95 <p class="toc_element">
96 <code><a href="#list">list(project, region, filter=None, maxResults=None, orderBy=None, pageToken=None, returnPartialSuccess=None, x__xgafv=None)</a></code></p>
97 <p class="firstline">Retrieves a list of VpnTunnel resources contained in the specified</p>
98 <p class="toc_element">
99 <code><a href="#list_next">list_next()</a></code></p>
100 <p class="firstline">Retrieves the next page of results.</p>
101 <p class="toc_element">
102 <code><a href="#setLabels">setLabels(project, region, resource, body=None, requestId=None, x__xgafv=None)</a></code></p>
103 <p class="firstline">Sets the labels on a VpnTunnel. To learn more about labels, read theLabeling</p>
104 <p class="toc_element">
105 <code><a href="#testIamPermissions">testIamPermissions(project, region, resource, body=None, x__xgafv=None)</a></code></p>
106 <p class="firstline">Returns permissions that a caller has on the specified resource.</p>
107 <h3>Method Details</h3>
108 <div class="method">
109 <code class="details" id="aggregatedList">aggregatedList(project, filter=None, includeAllScopes=None, maxResults=None, orderBy=None, pageToken=None, returnPartialSuccess=None, serviceProjectNumber=None, x__xgafv=None)</code>
110 <pre>Retrieves an aggregated list of VPN tunnels.
111
112 To prevent failure, Google recommends that you set the
113 `returnPartialSuccess` parameter to `true`.
114
115 Args:
116 project: string, Project ID for this request. (required)
117 filter: string, A filter expression that filters resources listed in the response. Most
118 Compute resources support two types of filter expressions:
119 expressions that support regular expressions and expressions that follow
120 API improvement proposal AIP-160.
121 These two types of filter expressions cannot be mixed in one request.
122
123 If you want to use AIP-160, your expression must specify the field name, an
124 operator, and the value that you want to use for filtering. The value
125 must be a string, a number, or a boolean. The operator
126 must be either `=`, `!=`, `&gt;`, `&lt;`, `&lt;=`, `&gt;=` or `:`.
127
128 For example, if you are filtering Compute Engine instances, you can
129 exclude instances named `example-instance` by specifying
130 `name != example-instance`.
131
132 The `:*` comparison can be used to test whether a key has been defined.
133 For example, to find all objects with `owner` label use:
134 ```
135 labels.owner:*
136 ```
137
138 You can also filter nested fields. For example, you could specify
139 `scheduling.automaticRestart = false` to include instances only
140 if they are not scheduled for automatic restarts. You can use filtering
141 on nested fields to filter based onresource labels.
142
143 To filter on multiple expressions, provide each separate expression within
144 parentheses. For example:
145 ```
146 (scheduling.automaticRestart = true)
147 (cpuPlatform = &quot;Intel Skylake&quot;)
148 ```
149 By default, each expression is an `AND` expression. However, you
150 can include `AND` and `OR` expressions explicitly.
151 For example:
152 ```
153 (cpuPlatform = &quot;Intel Skylake&quot;) OR
154 (cpuPlatform = &quot;Intel Broadwell&quot;) AND
155 (scheduling.automaticRestart = true)
156 ```
157
158 If you want to use a regular expression, use the `eq` (equal) or `ne`
159 (not equal) operator against a single un-parenthesized expression with or
160 without quotes or against multiple parenthesized expressions. Examples:
161
162 `fieldname eq unquoted literal`
163 `fieldname eq &#x27;single quoted literal&#x27;`
164 `fieldname eq &quot;double quoted literal&quot;`
165 `(fieldname1 eq literal) (fieldname2 ne &quot;literal&quot;)`
166
167 The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
168 The literal value must match the entire field.
169
170 For example, to filter for instances that do not end with name &quot;instance&quot;,
171 you would use `name ne .*instance`.
172
173 You cannot combine constraints on multiple fields using regular
174 expressions.
175 includeAllScopes: boolean, Indicates whether every visible scope for each scope type (zone, region,
176 global) should be included in the response. For new resource types added
177 after this field, the flag has no effect as new resource types will always
178 include every visible scope for each scope type in response. For resource
179 types which predate this field, if this flag is omitted or false, only
180 scopes of the scope types where the resource type is expected to be found
181 will be included.
182 maxResults: integer, The maximum number of results per page that should be returned.
183 If the number of available results is larger than `maxResults`,
184 Compute Engine returns a `nextPageToken` that can be used to get
185 the next page of results in subsequent list requests. Acceptable values are
186 `0` to `500`, inclusive. (Default: `500`)
187 orderBy: string, Sorts list results by a certain order. By default, results
188 are returned in alphanumerical order based on the resource name.
189
190 You can also sort results in descending order based on the creation
191 timestamp using `orderBy=&quot;creationTimestamp desc&quot;`. This sorts
192 results based on the `creationTimestamp` field in
193 reverse chronological order (newest result first). Use this to sort
194 resources like operations so that the newest operation is returned first.
195
196 Currently, only sorting by `name` or
197 `creationTimestamp desc` is supported.
198 pageToken: string, Specifies a page token to use. Set `pageToken` to the
199 `nextPageToken` returned by a previous list request to get
200 the next page of results.
201 returnPartialSuccess: boolean, Opt-in for partial success behavior which provides partial results in case
202 of failure. The default value is false.
203
204 For example, when partial success behavior is enabled, aggregatedList for a
205 single zone scope either returns all resources in the zone or no resources,
206 with an error code.
207 serviceProjectNumber: string, The Shared VPC service project id or service project number for which
208 aggregated list request is invoked for subnetworks list-usable api.
209 x__xgafv: string, V1 error format.
210 Allowed values
211 1 - v1 error format
212 2 - v2 error format
213
214 Returns:
215 An object of the form:
216
217 {
218 &quot;id&quot;: &quot;A String&quot;, # [Output Only] Unique identifier for the resource; defined by the server.
219 &quot;items&quot;: { # A list of VpnTunnelsScopedList resources.
220 &quot;a_key&quot;: { # Name of the scope containing this set of VPN tunnels.
221 &quot;vpnTunnels&quot;: [ # A list of VPN tunnels contained in this scope.
222 { # Represents a Cloud VPN Tunnel resource.
223 #
224 # For more information about VPN, read the
225 # the Cloud VPN Overview.
226 &quot;capacityTier&quot;: &quot;A String&quot;, # Capacity tier of the VPN tunnel. This is used for IPsec over Interconnect
227 # tunnels to indicate different bandwidth limits.
228 &quot;cipherSuite&quot;: { # User specified list of ciphers to use for the phase 1 and phase 2 of the
229 # IKE protocol.
230 &quot;phase1&quot;: {
231 &quot;dh&quot;: [
232 &quot;A String&quot;,
233 ],
234 &quot;encryption&quot;: [
235 &quot;A String&quot;,
236 ],
237 &quot;integrity&quot;: [
238 &quot;A String&quot;,
239 ],
240 &quot;prf&quot;: [
241 &quot;A String&quot;,
242 ],
243 },
244 &quot;phase2&quot;: {
245 &quot;encryption&quot;: [
246 &quot;A String&quot;,
247 ],
248 &quot;integrity&quot;: [
249 &quot;A String&quot;,
250 ],
251 &quot;pfs&quot;: [
252 &quot;A String&quot;,
253 ],
254 },
255 },
256 &quot;creationTimestamp&quot;: &quot;A String&quot;, # Output only. [Output Only] Creation timestamp inRFC3339
257 # text format.
258 &quot;description&quot;: &quot;A String&quot;, # An optional description of this resource. Provide this property when you
259 # create the resource.
260 &quot;detailedStatus&quot;: &quot;A String&quot;, # [Output Only] Detailed status message for the VPN tunnel.
261 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the resource. This identifier is
262 # defined by the server.
263 &quot;ikeVersion&quot;: 42, # IKE protocol version to use when establishing the VPN tunnel with the peer
264 # VPN gateway. Acceptable IKE versions are 1 or 2.
265 # The default version is 2.
266 &quot;kind&quot;: &quot;compute#vpnTunnel&quot;, # Output only. [Output Only] Type of resource. Always compute#vpnTunnel for
267 # VPN tunnels.
268 &quot;labelFingerprint&quot;: &quot;A String&quot;, # A fingerprint for the labels being applied to this VpnTunnel, which is
269 # essentially a hash of the labels set used for optimistic locking. The
270 # fingerprint is initially generated by Compute Engine and changes after
271 # every request to modify or update labels. You must always provide an
272 # up-to-date fingerprint hash in order to update or change labels,
273 # otherwise the request will fail with error412 conditionNotMet.
274 #
275 # To see the latest fingerprint, make a get() request to
276 # retrieve a VpnTunnel.
277 &quot;labels&quot;: { # Labels for this resource. These can only be added or modified by thesetLabels method. Each label key/value pair must comply withRFC1035.
278 # Label values may be empty.
279 &quot;a_key&quot;: &quot;A String&quot;,
280 },
281 &quot;localTrafficSelector&quot;: [ # Local traffic selector to use when establishing the VPN tunnel with the
282 # peer VPN gateway. The value should be a CIDR formatted string, for
283 # example: 192.168.0.0/16. The ranges must be disjoint.
284 # Only IPv4 is supported for Classic VPN tunnels. This field is output only
285 # for HA VPN tunnels.
286 &quot;A String&quot;,
287 ],
288 &quot;name&quot;: &quot;A String&quot;, # Name of the resource. Provided by the client when the resource is created.
289 # The name must be 1-63 characters long, and comply withRFC1035.
290 # Specifically, the name must be 1-63 characters long and match the regular
291 # expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first
292 # character must be a lowercase letter, and all following characters must
293 # be a dash, lowercase letter, or digit, except the last character, which
294 # cannot be a dash.
295 &quot;params&quot;: { # Input only. [Input Only] Additional params passed with the request, but not persisted
296 # as part of resource payload.
297 &quot;resourceManagerTags&quot;: { # Tag keys/values directly bound to this resource.
298 # Tag keys and values have the same definition as resource
299 # manager tags. The field is allowed for INSERT
300 # only. The keys/values to set on the resource should be specified in
301 # either ID { : } or Namespaced format
302 # { : }.
303 # For example the following are valid inputs:
304 # * {&quot;tagKeys/333&quot; : &quot;tagValues/444&quot;, &quot;tagKeys/123&quot; : &quot;tagValues/456&quot;}
305 # * {&quot;123/environment&quot; : &quot;production&quot;, &quot;345/abc&quot; : &quot;xyz&quot;}
306 # Note:
307 # * Invalid combinations of ID &amp; namespaced format is not supported. For
308 # instance: {&quot;123/environment&quot; : &quot;tagValues/444&quot;} is invalid.
309 # * Inconsistent format is not supported. For instance:
310 # {&quot;tagKeys/333&quot; : &quot;tagValues/444&quot;, &quot;123/env&quot; : &quot;prod&quot;} is invalid.
311 &quot;a_key&quot;: &quot;A String&quot;,
312 },
313 },
314 &quot;peerExternalGateway&quot;: &quot;A String&quot;, # URL of the peer side external VPN gateway to which this VPN tunnel is
315 # connected.
316 # Provided by the client when the VPN tunnel is created.
317 # This field is exclusive with the field peerGcpGateway.
318 &quot;peerExternalGatewayInterface&quot;: 42, # The interface ID of the external VPN gateway to which this VPN tunnel is
319 # connected. Provided by the client when the VPN tunnel is created.
320 # Possible values are: `0`, `1`, `2`, `3`. The number of IDs in use
321 # depends on the external VPN gateway redundancy type.
322 &quot;peerGcpGateway&quot;: &quot;A String&quot;, # URL of the peer side HA VPN gateway to which this VPN tunnel
323 # is connected. Provided by the client when the VPN tunnel is created.
324 # This field can be used when creating highly available VPN from VPC network
325 # to VPC network, the field is exclusive with the field peerExternalGateway.
326 # If provided, the VPN tunnel will automatically use the same
327 # vpnGatewayInterface ID in the peer Google Cloud VPN gateway.
328 &quot;peerIp&quot;: &quot;A String&quot;, # IP address of the peer VPN gateway. Only IPv4 is supported. This field can
329 # be set only for Classic VPN tunnels.
330 &quot;region&quot;: &quot;A String&quot;, # [Output Only] URL of the region where the VPN tunnel resides.
331 # You must specify this field as part of the HTTP request URL. It is
332 # not settable as a field in the request body.
333 &quot;remoteTrafficSelector&quot;: [ # Remote traffic selectors to use when establishing the VPN tunnel with
334 # the peer VPN gateway. The value should be a CIDR formatted string,
335 # for example: 192.168.0.0/16. The ranges should be disjoint. Only IPv4 is
336 # supported for Classic VPN tunnels. This field is output only for HA VPN
337 # tunnels.
338 &quot;A String&quot;,
339 ],
340 &quot;router&quot;: &quot;A String&quot;, # URL of the router resource to be used for dynamic routing.
341 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
342 &quot;sharedSecret&quot;: &quot;A String&quot;, # Shared secret used to set the secure session between the Cloud VPN gateway
343 # and the peer VPN gateway.
344 &quot;sharedSecretHash&quot;: &quot;A String&quot;, # Hash of the shared secret.
345 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the VPN tunnel, which can be one of the
346 # following:
347 #
348 # - PROVISIONING: Resource is being allocated for the VPN tunnel.
349 # - WAITING_FOR_FULL_CONFIG: Waiting to receive all VPN-related configs
350 # from
351 # the user. Network, TargetVpnGateway, VpnTunnel, ForwardingRule, and Route
352 # resources are needed to setup the VPN tunnel.
353 # - FIRST_HANDSHAKE: Successful first handshake with the peer VPN.
354 # - ESTABLISHED: Secure session is successfully established with the peer
355 # VPN.
356 # - NETWORK_ERROR: Deprecated, replaced by
357 # NO_INCOMING_PACKETS
358 # - AUTHORIZATION_ERROR: Auth error (for example,
359 # bad shared secret).
360 # - NEGOTIATION_FAILURE: Handshake failed.
361 # - DEPROVISIONING: Resources are being deallocated for the VPN
362 # tunnel.
363 # - FAILED: Tunnel creation has failed and the tunnel is not
364 # ready to be used.
365 # - NO_INCOMING_PACKETS: No incoming packets from
366 # peer.
367 # - REJECTED: Tunnel configuration was rejected, can be result
368 # of being denied access.
369 # - ALLOCATING_RESOURCES: Cloud VPN is in the
370 # process of allocating all required resources.
371 # - STOPPED: Tunnel is stopped due to its Forwarding Rules being deleted
372 # for Classic VPN tunnels or the project is in frozen state.
373 # - PEER_IDENTITY_MISMATCH: Peer identity does not match peer IP,
374 # probably behind NAT.
375 # - TS_NARROWING_NOT_ALLOWED: Traffic selector
376 # narrowing not allowed for an HA-VPN tunnel.
377 &quot;targetVpnGateway&quot;: &quot;A String&quot;, # URL of the Target VPN gateway with which this VPN tunnel is associated.
378 # Provided by the client when the VPN tunnel is created.
379 # This field can be set only for Classic VPN tunnels.
380 &quot;vpnGateway&quot;: &quot;A String&quot;, # URL of the VPN gateway with which this VPN tunnel is associated.
381 # Provided by the client when the VPN tunnel is created. This must be
382 # used (instead of target_vpn_gateway) if a High Availability VPN gateway
383 # resource is created.
384 &quot;vpnGatewayInterface&quot;: 42, # The interface ID of the VPN gateway with which this VPN tunnel is
385 # associated.
386 # Possible values are: `0`, `1`.
387 },
388 ],
389 &quot;warning&quot;: { # Informational warning which replaces the list of addresses when
390 # the list is empty.
391 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute
392 # Engine returns NO_RESULTS_ON_PAGE if there
393 # are no results in the response.
394 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key:
395 # value format. For example:
396 #
397 # &quot;data&quot;: [
398 # {
399 # &quot;key&quot;: &quot;scope&quot;,
400 # &quot;value&quot;: &quot;zones/us-east1-d&quot;
401 # }
402 {
403 &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being
404 # returned. For example, for warnings where there are no results in a list
405 # request for a particular zone, this key might be scope and
406 # the key value might be the zone name. Other examples might be a key
407 # indicating a deprecated resource and a suggested replacement, or a
408 # warning about invalid network settings (for example, if an instance
409 # attempts to perform IP forwarding but is not enabled for IP forwarding).
410 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
411 },
412 ],
413 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
414 },
415 },
416 },
417 &quot;kind&quot;: &quot;compute#vpnTunnelAggregatedList&quot;, # Output only. [Output Only] Type of resource. Always compute#vpnTunnel for
418 # VPN tunnels.
419 &quot;nextPageToken&quot;: &quot;A String&quot;, # [Output Only] This token allows you to get the next page of results for
420 # list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for
421 # the query parameter pageToken in the next list request.
422 # Subsequent list requests will have their own nextPageToken to
423 # continue paging through the results.
424 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined URL for this resource.
425 &quot;unreachables&quot;: [ # Output only. [Output Only] Unreachable resources.
426 &quot;A String&quot;,
427 ],
428 &quot;warning&quot;: { # [Output Only] Informational warning message.
429 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute
430 # Engine returns NO_RESULTS_ON_PAGE if there
431 # are no results in the response.
432 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key:
433 # value format. For example:
434 #
435 # &quot;data&quot;: [
436 # {
437 # &quot;key&quot;: &quot;scope&quot;,
438 # &quot;value&quot;: &quot;zones/us-east1-d&quot;
439 # }
440 {
441 &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being
442 # returned. For example, for warnings where there are no results in a list
443 # request for a particular zone, this key might be scope and
444 # the key value might be the zone name. Other examples might be a key
445 # indicating a deprecated resource and a suggested replacement, or a
446 # warning about invalid network settings (for example, if an instance
447 # attempts to perform IP forwarding but is not enabled for IP forwarding).
448 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
449 },
450 ],
451 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
452 },
453 }</pre>
454 </div>
455
456 <div class="method">
457 <code class="details" id="aggregatedList_next">aggregatedList_next()</code>
458 <pre>Retrieves the next page of results.
459
460 Args:
461 previous_request: The request for the previous page. (required)
462 previous_response: The response from the request for the previous page. (required)
463
464 Returns:
465 A request object that you can call &#x27;execute()&#x27; on to request the next
466 page. Returns None if there are no more items in the collection.
467 </pre>
468 </div>
469
470 <div class="method">
471 <code class="details" id="close">close()</code>
472 <pre>Close httplib2 connections.</pre>
473 </div>
474
475 <div class="method">
476 <code class="details" id="delete">delete(project, region, vpnTunnel, requestId=None, x__xgafv=None)</code>
477 <pre>Deletes the specified VpnTunnel resource.
478
479 Args:
480 project: string, Project ID for this request. (required)
481 region: string, Name of the region for this request. (required)
482 vpnTunnel: string, Name of the VpnTunnel resource to delete. (required)
483 requestId: string, An optional request ID to identify requests. Specify a unique request ID so
484 that if you must retry your request, the server will know to ignore the
485 request if it has already been completed.
486
487 For example, consider a situation where you make an initial request and
488 the request times out. If you make the request again with the same
489 request ID, the server can check if original operation with the same
490 request ID was received, and if so, will ignore the second request. This
491 prevents clients from accidentally creating duplicate commitments.
492
493 The request ID must be
494 a valid UUID with the exception that zero UUID is not supported
495 (00000000-0000-0000-0000-000000000000).
496 x__xgafv: string, V1 error format.
497 Allowed values
498 1 - v1 error format
499 2 - v2 error format
500
501 Returns:
502 An object of the form:
503
504 { # Represents an Operation resource.
505 #
506 # Google Compute Engine has three Operation resources:
507 #
508 # * [Global](/compute/docs/reference/rest/beta/globalOperations)
509 # * [Regional](/compute/docs/reference/rest/beta/regionOperations)
510 # * [Zonal](/compute/docs/reference/rest/beta/zoneOperations)
511 #
512 # You can use an operation resource to manage asynchronous API requests.
513 # For more information, readHandling
514 # API responses.
515 #
516 # Operations can be global, regional or zonal.
517 #
518 # - For global operations, use the `globalOperations`
519 # resource.
520 # - For regional operations, use the
521 # `regionOperations` resource.
522 # - For zonal operations, use
523 # the `zoneOperations` resource.
524 #
525 #
526 #
527 # For more information, read
528 # Global, Regional, and Zonal Resources.
529 #
530 # Note that completed Operation resources have a limited
531 # retention period.
532 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request.
533 # Not present otherwise.
534 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
535 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is
536 # set when the operation is created.
537 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is inRFC3339
538 # text format.
539 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation,
540 # this field will be populated.
541 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this
542 # operation.
543 {
544 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
545 &quot;errorDetails&quot;: [ # [Output Only] An optional list of messages that contain the error
546 # details. There is a set of defined message types to use for providing
547 # details.The syntax depends on the error code. For example,
548 # QuotaExceededInfo will have details when the error code is
549 # QUOTA_EXCEEDED.
550 {
551 &quot;errorInfo&quot;: { # Describes the cause of the error with structured details.
552 #
553 # Example of an error when contacting the &quot;pubsub.googleapis.com&quot; API when it
554 # is not enabled:
555 #
556 # { &quot;reason&quot;: &quot;API_DISABLED&quot;
557 # &quot;domain&quot;: &quot;googleapis.com&quot;
558 # &quot;metadata&quot;: {
559 # &quot;resource&quot;: &quot;projects/123&quot;,
560 # &quot;service&quot;: &quot;pubsub.googleapis.com&quot;
561 # }
562 # }
563 #
564 # This response indicates that the pubsub.googleapis.com API is not enabled.
565 #
566 # Example of an error that is returned when attempting to create a Spanner
567 # instance in a region that is out of stock:
568 #
569 # { &quot;reason&quot;: &quot;STOCKOUT&quot;
570 # &quot;domain&quot;: &quot;spanner.googleapis.com&quot;,
571 # &quot;metadata&quot;: {
572 # &quot;availableRegions&quot;: &quot;us-central1,us-east2&quot;
573 # }
574 # }
575 &quot;domain&quot;: &quot;A String&quot;, # The logical grouping to which the &quot;reason&quot; belongs. The error domain
576 # is typically the registered service name of the tool or product that
577 # generates the error. Example: &quot;pubsub.googleapis.com&quot;. If the error is
578 # generated by some common infrastructure, the error domain must be a
579 # globally unique value that identifies the infrastructure. For Google API
580 # infrastructure, the error domain is &quot;googleapis.com&quot;.
581 &quot;metadatas&quot;: { # Additional structured details about this error.
582 #
583 # Keys must match a regular expression of `a-z+` but should
584 # ideally be lowerCamelCase. Also, they must be limited to 64 characters in
585 # length. When identifying the current value of an exceeded limit, the units
586 # should be contained in the key, not the value. For example, rather than
587 # `{&quot;instanceLimit&quot;: &quot;100/request&quot;}`, should be returned as,
588 # `{&quot;instanceLimitPerRequest&quot;: &quot;100&quot;}`, if the client exceeds the number of
589 # instances that can be created in a single (batch) request.
590 &quot;a_key&quot;: &quot;A String&quot;,
591 },
592 &quot;reason&quot;: &quot;A String&quot;, # The reason of the error. This is a constant value that identifies the
593 # proximate cause of the error. Error reasons are unique within a particular
594 # domain of errors. This should be at most 63 characters and match a
595 # regular expression of `A-Z+[A-Z0-9]`, which represents
596 # UPPER_SNAKE_CASE.
597 },
598 &quot;help&quot;: { # Provides links to documentation or for performing an out of band action.
599 #
600 # For example, if a quota check failed with an error indicating the calling
601 # project hasn&#x27;t enabled the accessed service, this can contain a URL pointing
602 # directly to the right place in the developer console to flip the bit.
603 &quot;links&quot;: [ # URL(s) pointing to additional information on handling the current error.
604 { # Describes a URL link.
605 &quot;description&quot;: &quot;A String&quot;, # Describes what the link offers.
606 &quot;url&quot;: &quot;A String&quot;, # The URL of the link.
607 },
608 ],
609 },
610 &quot;localizedMessage&quot;: { # Provides a localized error message that is safe to return to the user
611 # which can be attached to an RPC error.
612 &quot;locale&quot;: &quot;A String&quot;, # The locale used following the specification defined at
613 # https://www.rfc-editor.org/rfc/bcp/bcp47.txt.
614 # Examples are: &quot;en-US&quot;, &quot;fr-CH&quot;, &quot;es-MX&quot;
615 &quot;message&quot;: &quot;A String&quot;, # The localized error message in the above locale.
616 },
617 &quot;quotaInfo&quot;: { # Additional details for quota exceeded error for resource quota.
618 &quot;dimensions&quot;: { # The map holding related quota dimensions.
619 &quot;a_key&quot;: &quot;A String&quot;,
620 },
621 &quot;futureLimit&quot;: 3.14, # Future quota limit being rolled out. The limit&#x27;s unit depends on the quota
622 # type or metric.
623 &quot;limit&quot;: 3.14, # Current effective quota limit. The limit&#x27;s unit depends on the quota type
624 # or metric.
625 &quot;limitName&quot;: &quot;A String&quot;, # The name of the quota limit.
626 &quot;metricName&quot;: &quot;A String&quot;, # The Compute Engine quota metric name.
627 &quot;rolloutStatus&quot;: &quot;A String&quot;, # Rollout status of the future quota limit.
628 },
629 },
630 ],
631 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error.
632 # This property is optional.
633 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
634 },
635 ],
636 },
637 &quot;getVersionOperationMetadata&quot;: {
638 &quot;inlineSbomInfo&quot;: {
639 &quot;currentComponentVersions&quot;: { # A mapping of components to their currently-applied versions or other
640 # appropriate identifiers.
641 &quot;a_key&quot;: &quot;A String&quot;,
642 },
643 &quot;targetComponentVersions&quot;: { # A mapping of components to their target versions or other appropriate
644 # identifiers.
645 &quot;a_key&quot;: &quot;A String&quot;,
646 },
647 },
648 },
649 &quot;httpErrorMessage&quot;: &quot;A String&quot;, # [Output Only] If the operation fails, this field contains the HTTP error
650 # message that was returned, such as `NOT FOUND`.
651 &quot;httpErrorStatusCode&quot;: 42, # [Output Only] If the operation fails, this field contains the HTTP error
652 # status code that was returned. For example, a `404` means the
653 # resource was not found.
654 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is
655 # defined by the server.
656 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested.
657 # This value is inRFC3339
658 # text format.
659 &quot;instancesBulkInsertOperationMetadata&quot;: {
660 &quot;perLocationStatus&quot;: { # Status information per location (location name is key).
661 # Example key: zones/us-central1-a
662 &quot;a_key&quot;: {
663 &quot;createdVmCount&quot;: 42, # [Output Only] Count of VMs successfully created so far.
664 &quot;deletedVmCount&quot;: 42, # [Output Only] Count of VMs that got deleted during rollback.
665 &quot;failedToCreateVmCount&quot;: 42, # [Output Only] Count of VMs that started creating but encountered an
666 # error.
667 &quot;status&quot;: &quot;A String&quot;, # [Output Only] Creation status of BulkInsert operation - information
668 # if the flow is rolling forward or rolling back.
669 &quot;targetVmCount&quot;: 42, # [Output Only] Count of VMs originally planned to be created.
670 },
671 },
672 },
673 &quot;kind&quot;: &quot;compute#operation&quot;, # Output only. [Output Only] Type of the resource. Always `compute#operation` for
674 # Operation resources.
675 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
676 &quot;operationGroupId&quot;: &quot;A String&quot;, # Output only. [Output Only] An ID that represents a group of operations, such as when a
677 # group of operations results from a `bulkInsert` API request.
678 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`,
679 # `update`, or `delete`, and so on.
680 &quot;progress&quot;: 42, # [Output Only] An optional progress indicator that ranges from 0 to 100.
681 # There is no requirement that this be linear or support any granularity of
682 # operations. This should not be used to guess when the operation will be
683 # complete. This number should monotonically increase as the operation
684 # progresses.
685 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only
686 # applicable when performing regional operations.
687 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
688 &quot;setCommonInstanceMetadataOperationMetadata&quot;: { # Output only. [Output Only] If the operation is for projects.setCommonInstanceMetadata,
689 # this field will contain information on all underlying zonal actions and
690 # their state.
691 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The client operation id.
692 &quot;perLocationOperations&quot;: { # [Output Only] Status information per location (location name is key).
693 # Example key: zones/us-central1-a
694 &quot;a_key&quot;: {
695 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for # [Output Only] If state is `ABANDONED` or `FAILED`, this field is
696 # populated.
697 # different programming environments, including REST APIs and RPC APIs. It is
698 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
699 # three pieces of data: error code, error message, and error details.
700 #
701 # You can find out more about this error model and how to work with it in the
702 # [API Design Guide](https://cloud.google.com/apis/design/errors).
703 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
704 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
705 # message types for APIs to use.
706 {
707 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
708 },
709 ],
710 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
711 # user-facing error message should be localized and sent in the
712 # google.rpc.Status.details field, or localized by the client.
713 },
714 &quot;state&quot;: &quot;A String&quot;, # [Output Only] Status of the action, which can be one of the following:
715 # `PROPAGATING`, `PROPAGATED`, `ABANDONED`, `FAILED`, or `DONE`.
716 },
717 },
718 },
719 &quot;startTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was started by the server.
720 # This value is inRFC3339
721 # text format.
722 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the operation, which can be one of the
723 # following:
724 # `PENDING`, `RUNNING`, or `DONE`.
725 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the
726 # operation.
727 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation
728 # of the target resource.
729 &quot;targetLink&quot;: &quot;A String&quot;, # [Output Only] The URL of the resource that the operation modifies. For
730 # operations related to creating a snapshot, this points to the disk
731 # that the snapshot was created from.
732 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example:
733 # `[email protected]` or
734 # `alice_smith_identifier (global/workforcePools/example-com-us-employees)`.
735 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the
736 # operation, this field will be populated.
737 {
738 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute
739 # Engine returns NO_RESULTS_ON_PAGE if there
740 # are no results in the response.
741 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key:
742 # value format. For example:
743 #
744 # &quot;data&quot;: [
745 # {
746 # &quot;key&quot;: &quot;scope&quot;,
747 # &quot;value&quot;: &quot;zones/us-east1-d&quot;
748 # }
749 {
750 &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being
751 # returned. For example, for warnings where there are no results in a list
752 # request for a particular zone, this key might be scope and
753 # the key value might be the zone name. Other examples might be a key
754 # indicating a deprecated resource and a suggested replacement, or a
755 # warning about invalid network settings (for example, if an instance
756 # attempts to perform IP forwarding but is not enabled for IP forwarding).
757 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
758 },
759 ],
760 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
761 },
762 ],
763 &quot;zone&quot;: &quot;A String&quot;, # [Output Only] The URL of the zone where the operation resides. Only
764 # applicable when performing per-zone operations.
765 }</pre>
766 </div>
767
768 <div class="method">
769 <code class="details" id="get">get(project, region, vpnTunnel, x__xgafv=None)</code>
770 <pre>Returns the specified VpnTunnel resource.
771
772 Args:
773 project: string, Project ID for this request. (required)
774 region: string, Name of the region for this request. (required)
775 vpnTunnel: string, Name of the VpnTunnel resource to return. (required)
776 x__xgafv: string, V1 error format.
777 Allowed values
778 1 - v1 error format
779 2 - v2 error format
780
781 Returns:
782 An object of the form:
783
784 { # Represents a Cloud VPN Tunnel resource.
785 #
786 # For more information about VPN, read the
787 # the Cloud VPN Overview.
788 &quot;capacityTier&quot;: &quot;A String&quot;, # Capacity tier of the VPN tunnel. This is used for IPsec over Interconnect
789 # tunnels to indicate different bandwidth limits.
790 &quot;cipherSuite&quot;: { # User specified list of ciphers to use for the phase 1 and phase 2 of the
791 # IKE protocol.
792 &quot;phase1&quot;: {
793 &quot;dh&quot;: [
794 &quot;A String&quot;,
795 ],
796 &quot;encryption&quot;: [
797 &quot;A String&quot;,
798 ],
799 &quot;integrity&quot;: [
800 &quot;A String&quot;,
801 ],
802 &quot;prf&quot;: [
803 &quot;A String&quot;,
804 ],
805 },
806 &quot;phase2&quot;: {
807 &quot;encryption&quot;: [
808 &quot;A String&quot;,
809 ],
810 &quot;integrity&quot;: [
811 &quot;A String&quot;,
812 ],
813 &quot;pfs&quot;: [
814 &quot;A String&quot;,
815 ],
816 },
817 },
818 &quot;creationTimestamp&quot;: &quot;A String&quot;, # Output only. [Output Only] Creation timestamp inRFC3339
819 # text format.
820 &quot;description&quot;: &quot;A String&quot;, # An optional description of this resource. Provide this property when you
821 # create the resource.
822 &quot;detailedStatus&quot;: &quot;A String&quot;, # [Output Only] Detailed status message for the VPN tunnel.
823 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the resource. This identifier is
824 # defined by the server.
825 &quot;ikeVersion&quot;: 42, # IKE protocol version to use when establishing the VPN tunnel with the peer
826 # VPN gateway. Acceptable IKE versions are 1 or 2.
827 # The default version is 2.
828 &quot;kind&quot;: &quot;compute#vpnTunnel&quot;, # Output only. [Output Only] Type of resource. Always compute#vpnTunnel for
829 # VPN tunnels.
830 &quot;labelFingerprint&quot;: &quot;A String&quot;, # A fingerprint for the labels being applied to this VpnTunnel, which is
831 # essentially a hash of the labels set used for optimistic locking. The
832 # fingerprint is initially generated by Compute Engine and changes after
833 # every request to modify or update labels. You must always provide an
834 # up-to-date fingerprint hash in order to update or change labels,
835 # otherwise the request will fail with error412 conditionNotMet.
836 #
837 # To see the latest fingerprint, make a get() request to
838 # retrieve a VpnTunnel.
839 &quot;labels&quot;: { # Labels for this resource. These can only be added or modified by thesetLabels method. Each label key/value pair must comply withRFC1035.
840 # Label values may be empty.
841 &quot;a_key&quot;: &quot;A String&quot;,
842 },
843 &quot;localTrafficSelector&quot;: [ # Local traffic selector to use when establishing the VPN tunnel with the
844 # peer VPN gateway. The value should be a CIDR formatted string, for
845 # example: 192.168.0.0/16. The ranges must be disjoint.
846 # Only IPv4 is supported for Classic VPN tunnels. This field is output only
847 # for HA VPN tunnels.
848 &quot;A String&quot;,
849 ],
850 &quot;name&quot;: &quot;A String&quot;, # Name of the resource. Provided by the client when the resource is created.
851 # The name must be 1-63 characters long, and comply withRFC1035.
852 # Specifically, the name must be 1-63 characters long and match the regular
853 # expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first
854 # character must be a lowercase letter, and all following characters must
855 # be a dash, lowercase letter, or digit, except the last character, which
856 # cannot be a dash.
857 &quot;params&quot;: { # Input only. [Input Only] Additional params passed with the request, but not persisted
858 # as part of resource payload.
859 &quot;resourceManagerTags&quot;: { # Tag keys/values directly bound to this resource.
860 # Tag keys and values have the same definition as resource
861 # manager tags. The field is allowed for INSERT
862 # only. The keys/values to set on the resource should be specified in
863 # either ID { : } or Namespaced format
864 # { : }.
865 # For example the following are valid inputs:
866 # * {&quot;tagKeys/333&quot; : &quot;tagValues/444&quot;, &quot;tagKeys/123&quot; : &quot;tagValues/456&quot;}
867 # * {&quot;123/environment&quot; : &quot;production&quot;, &quot;345/abc&quot; : &quot;xyz&quot;}
868 # Note:
869 # * Invalid combinations of ID &amp; namespaced format is not supported. For
870 # instance: {&quot;123/environment&quot; : &quot;tagValues/444&quot;} is invalid.
871 # * Inconsistent format is not supported. For instance:
872 # {&quot;tagKeys/333&quot; : &quot;tagValues/444&quot;, &quot;123/env&quot; : &quot;prod&quot;} is invalid.
873 &quot;a_key&quot;: &quot;A String&quot;,
874 },
875 },
876 &quot;peerExternalGateway&quot;: &quot;A String&quot;, # URL of the peer side external VPN gateway to which this VPN tunnel is
877 # connected.
878 # Provided by the client when the VPN tunnel is created.
879 # This field is exclusive with the field peerGcpGateway.
880 &quot;peerExternalGatewayInterface&quot;: 42, # The interface ID of the external VPN gateway to which this VPN tunnel is
881 # connected. Provided by the client when the VPN tunnel is created.
882 # Possible values are: `0`, `1`, `2`, `3`. The number of IDs in use
883 # depends on the external VPN gateway redundancy type.
884 &quot;peerGcpGateway&quot;: &quot;A String&quot;, # URL of the peer side HA VPN gateway to which this VPN tunnel
885 # is connected. Provided by the client when the VPN tunnel is created.
886 # This field can be used when creating highly available VPN from VPC network
887 # to VPC network, the field is exclusive with the field peerExternalGateway.
888 # If provided, the VPN tunnel will automatically use the same
889 # vpnGatewayInterface ID in the peer Google Cloud VPN gateway.
890 &quot;peerIp&quot;: &quot;A String&quot;, # IP address of the peer VPN gateway. Only IPv4 is supported. This field can
891 # be set only for Classic VPN tunnels.
892 &quot;region&quot;: &quot;A String&quot;, # [Output Only] URL of the region where the VPN tunnel resides.
893 # You must specify this field as part of the HTTP request URL. It is
894 # not settable as a field in the request body.
895 &quot;remoteTrafficSelector&quot;: [ # Remote traffic selectors to use when establishing the VPN tunnel with
896 # the peer VPN gateway. The value should be a CIDR formatted string,
897 # for example: 192.168.0.0/16. The ranges should be disjoint. Only IPv4 is
898 # supported for Classic VPN tunnels. This field is output only for HA VPN
899 # tunnels.
900 &quot;A String&quot;,
901 ],
902 &quot;router&quot;: &quot;A String&quot;, # URL of the router resource to be used for dynamic routing.
903 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
904 &quot;sharedSecret&quot;: &quot;A String&quot;, # Shared secret used to set the secure session between the Cloud VPN gateway
905 # and the peer VPN gateway.
906 &quot;sharedSecretHash&quot;: &quot;A String&quot;, # Hash of the shared secret.
907 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the VPN tunnel, which can be one of the
908 # following:
909 #
910 # - PROVISIONING: Resource is being allocated for the VPN tunnel.
911 # - WAITING_FOR_FULL_CONFIG: Waiting to receive all VPN-related configs
912 # from
913 # the user. Network, TargetVpnGateway, VpnTunnel, ForwardingRule, and Route
914 # resources are needed to setup the VPN tunnel.
915 # - FIRST_HANDSHAKE: Successful first handshake with the peer VPN.
916 # - ESTABLISHED: Secure session is successfully established with the peer
917 # VPN.
918 # - NETWORK_ERROR: Deprecated, replaced by
919 # NO_INCOMING_PACKETS
920 # - AUTHORIZATION_ERROR: Auth error (for example,
921 # bad shared secret).
922 # - NEGOTIATION_FAILURE: Handshake failed.
923 # - DEPROVISIONING: Resources are being deallocated for the VPN
924 # tunnel.
925 # - FAILED: Tunnel creation has failed and the tunnel is not
926 # ready to be used.
927 # - NO_INCOMING_PACKETS: No incoming packets from
928 # peer.
929 # - REJECTED: Tunnel configuration was rejected, can be result
930 # of being denied access.
931 # - ALLOCATING_RESOURCES: Cloud VPN is in the
932 # process of allocating all required resources.
933 # - STOPPED: Tunnel is stopped due to its Forwarding Rules being deleted
934 # for Classic VPN tunnels or the project is in frozen state.
935 # - PEER_IDENTITY_MISMATCH: Peer identity does not match peer IP,
936 # probably behind NAT.
937 # - TS_NARROWING_NOT_ALLOWED: Traffic selector
938 # narrowing not allowed for an HA-VPN tunnel.
939 &quot;targetVpnGateway&quot;: &quot;A String&quot;, # URL of the Target VPN gateway with which this VPN tunnel is associated.
940 # Provided by the client when the VPN tunnel is created.
941 # This field can be set only for Classic VPN tunnels.
942 &quot;vpnGateway&quot;: &quot;A String&quot;, # URL of the VPN gateway with which this VPN tunnel is associated.
943 # Provided by the client when the VPN tunnel is created. This must be
944 # used (instead of target_vpn_gateway) if a High Availability VPN gateway
945 # resource is created.
946 &quot;vpnGatewayInterface&quot;: 42, # The interface ID of the VPN gateway with which this VPN tunnel is
947 # associated.
948 # Possible values are: `0`, `1`.
949 }</pre>
950 </div>
951
952 <div class="method">
953 <code class="details" id="insert">insert(project, region, body=None, requestId=None, x__xgafv=None)</code>
954 <pre>Creates a VpnTunnel resource in the specified project and region using
955 the data included in the request.
956
957 Args:
958 project: string, Project ID for this request. (required)
959 region: string, Name of the region for this request. (required)
960 body: object, The request body.
961 The object takes the form of:
962
963 { # Represents a Cloud VPN Tunnel resource.
964 #
965 # For more information about VPN, read the
966 # the Cloud VPN Overview.
967 &quot;capacityTier&quot;: &quot;A String&quot;, # Capacity tier of the VPN tunnel. This is used for IPsec over Interconnect
968 # tunnels to indicate different bandwidth limits.
969 &quot;cipherSuite&quot;: { # User specified list of ciphers to use for the phase 1 and phase 2 of the
970 # IKE protocol.
971 &quot;phase1&quot;: {
972 &quot;dh&quot;: [
973 &quot;A String&quot;,
974 ],
975 &quot;encryption&quot;: [
976 &quot;A String&quot;,
977 ],
978 &quot;integrity&quot;: [
979 &quot;A String&quot;,
980 ],
981 &quot;prf&quot;: [
982 &quot;A String&quot;,
983 ],
984 },
985 &quot;phase2&quot;: {
986 &quot;encryption&quot;: [
987 &quot;A String&quot;,
988 ],
989 &quot;integrity&quot;: [
990 &quot;A String&quot;,
991 ],
992 &quot;pfs&quot;: [
993 &quot;A String&quot;,
994 ],
995 },
996 },
997 &quot;creationTimestamp&quot;: &quot;A String&quot;, # Output only. [Output Only] Creation timestamp inRFC3339
998 # text format.
999 &quot;description&quot;: &quot;A String&quot;, # An optional description of this resource. Provide this property when you
1000 # create the resource.
1001 &quot;detailedStatus&quot;: &quot;A String&quot;, # [Output Only] Detailed status message for the VPN tunnel.
1002 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the resource. This identifier is
1003 # defined by the server.
1004 &quot;ikeVersion&quot;: 42, # IKE protocol version to use when establishing the VPN tunnel with the peer
1005 # VPN gateway. Acceptable IKE versions are 1 or 2.
1006 # The default version is 2.
1007 &quot;kind&quot;: &quot;compute#vpnTunnel&quot;, # Output only. [Output Only] Type of resource. Always compute#vpnTunnel for
1008 # VPN tunnels.
1009 &quot;labelFingerprint&quot;: &quot;A String&quot;, # A fingerprint for the labels being applied to this VpnTunnel, which is
1010 # essentially a hash of the labels set used for optimistic locking. The
1011 # fingerprint is initially generated by Compute Engine and changes after
1012 # every request to modify or update labels. You must always provide an
1013 # up-to-date fingerprint hash in order to update or change labels,
1014 # otherwise the request will fail with error412 conditionNotMet.
1015 #
1016 # To see the latest fingerprint, make a get() request to
1017 # retrieve a VpnTunnel.
1018 &quot;labels&quot;: { # Labels for this resource. These can only be added or modified by thesetLabels method. Each label key/value pair must comply withRFC1035.
1019 # Label values may be empty.
1020 &quot;a_key&quot;: &quot;A String&quot;,
1021 },
1022 &quot;localTrafficSelector&quot;: [ # Local traffic selector to use when establishing the VPN tunnel with the
1023 # peer VPN gateway. The value should be a CIDR formatted string, for
1024 # example: 192.168.0.0/16. The ranges must be disjoint.
1025 # Only IPv4 is supported for Classic VPN tunnels. This field is output only
1026 # for HA VPN tunnels.
1027 &quot;A String&quot;,
1028 ],
1029 &quot;name&quot;: &quot;A String&quot;, # Name of the resource. Provided by the client when the resource is created.
1030 # The name must be 1-63 characters long, and comply withRFC1035.
1031 # Specifically, the name must be 1-63 characters long and match the regular
1032 # expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first
1033 # character must be a lowercase letter, and all following characters must
1034 # be a dash, lowercase letter, or digit, except the last character, which
1035 # cannot be a dash.
1036 &quot;params&quot;: { # Input only. [Input Only] Additional params passed with the request, but not persisted
1037 # as part of resource payload.
1038 &quot;resourceManagerTags&quot;: { # Tag keys/values directly bound to this resource.
1039 # Tag keys and values have the same definition as resource
1040 # manager tags. The field is allowed for INSERT
1041 # only. The keys/values to set on the resource should be specified in
1042 # either ID { : } or Namespaced format
1043 # { : }.
1044 # For example the following are valid inputs:
1045 # * {&quot;tagKeys/333&quot; : &quot;tagValues/444&quot;, &quot;tagKeys/123&quot; : &quot;tagValues/456&quot;}
1046 # * {&quot;123/environment&quot; : &quot;production&quot;, &quot;345/abc&quot; : &quot;xyz&quot;}
1047 # Note:
1048 # * Invalid combinations of ID &amp; namespaced format is not supported. For
1049 # instance: {&quot;123/environment&quot; : &quot;tagValues/444&quot;} is invalid.
1050 # * Inconsistent format is not supported. For instance:
1051 # {&quot;tagKeys/333&quot; : &quot;tagValues/444&quot;, &quot;123/env&quot; : &quot;prod&quot;} is invalid.
1052 &quot;a_key&quot;: &quot;A String&quot;,
1053 },
1054 },
1055 &quot;peerExternalGateway&quot;: &quot;A String&quot;, # URL of the peer side external VPN gateway to which this VPN tunnel is
1056 # connected.
1057 # Provided by the client when the VPN tunnel is created.
1058 # This field is exclusive with the field peerGcpGateway.
1059 &quot;peerExternalGatewayInterface&quot;: 42, # The interface ID of the external VPN gateway to which this VPN tunnel is
1060 # connected. Provided by the client when the VPN tunnel is created.
1061 # Possible values are: `0`, `1`, `2`, `3`. The number of IDs in use
1062 # depends on the external VPN gateway redundancy type.
1063 &quot;peerGcpGateway&quot;: &quot;A String&quot;, # URL of the peer side HA VPN gateway to which this VPN tunnel
1064 # is connected. Provided by the client when the VPN tunnel is created.
1065 # This field can be used when creating highly available VPN from VPC network
1066 # to VPC network, the field is exclusive with the field peerExternalGateway.
1067 # If provided, the VPN tunnel will automatically use the same
1068 # vpnGatewayInterface ID in the peer Google Cloud VPN gateway.
1069 &quot;peerIp&quot;: &quot;A String&quot;, # IP address of the peer VPN gateway. Only IPv4 is supported. This field can
1070 # be set only for Classic VPN tunnels.
1071 &quot;region&quot;: &quot;A String&quot;, # [Output Only] URL of the region where the VPN tunnel resides.
1072 # You must specify this field as part of the HTTP request URL. It is
1073 # not settable as a field in the request body.
1074 &quot;remoteTrafficSelector&quot;: [ # Remote traffic selectors to use when establishing the VPN tunnel with
1075 # the peer VPN gateway. The value should be a CIDR formatted string,
1076 # for example: 192.168.0.0/16. The ranges should be disjoint. Only IPv4 is
1077 # supported for Classic VPN tunnels. This field is output only for HA VPN
1078 # tunnels.
1079 &quot;A String&quot;,
1080 ],
1081 &quot;router&quot;: &quot;A String&quot;, # URL of the router resource to be used for dynamic routing.
1082 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
1083 &quot;sharedSecret&quot;: &quot;A String&quot;, # Shared secret used to set the secure session between the Cloud VPN gateway
1084 # and the peer VPN gateway.
1085 &quot;sharedSecretHash&quot;: &quot;A String&quot;, # Hash of the shared secret.
1086 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the VPN tunnel, which can be one of the
1087 # following:
1088 #
1089 # - PROVISIONING: Resource is being allocated for the VPN tunnel.
1090 # - WAITING_FOR_FULL_CONFIG: Waiting to receive all VPN-related configs
1091 # from
1092 # the user. Network, TargetVpnGateway, VpnTunnel, ForwardingRule, and Route
1093 # resources are needed to setup the VPN tunnel.
1094 # - FIRST_HANDSHAKE: Successful first handshake with the peer VPN.
1095 # - ESTABLISHED: Secure session is successfully established with the peer
1096 # VPN.
1097 # - NETWORK_ERROR: Deprecated, replaced by
1098 # NO_INCOMING_PACKETS
1099 # - AUTHORIZATION_ERROR: Auth error (for example,
1100 # bad shared secret).
1101 # - NEGOTIATION_FAILURE: Handshake failed.
1102 # - DEPROVISIONING: Resources are being deallocated for the VPN
1103 # tunnel.
1104 # - FAILED: Tunnel creation has failed and the tunnel is not
1105 # ready to be used.
1106 # - NO_INCOMING_PACKETS: No incoming packets from
1107 # peer.
1108 # - REJECTED: Tunnel configuration was rejected, can be result
1109 # of being denied access.
1110 # - ALLOCATING_RESOURCES: Cloud VPN is in the
1111 # process of allocating all required resources.
1112 # - STOPPED: Tunnel is stopped due to its Forwarding Rules being deleted
1113 # for Classic VPN tunnels or the project is in frozen state.
1114 # - PEER_IDENTITY_MISMATCH: Peer identity does not match peer IP,
1115 # probably behind NAT.
1116 # - TS_NARROWING_NOT_ALLOWED: Traffic selector
1117 # narrowing not allowed for an HA-VPN tunnel.
1118 &quot;targetVpnGateway&quot;: &quot;A String&quot;, # URL of the Target VPN gateway with which this VPN tunnel is associated.
1119 # Provided by the client when the VPN tunnel is created.
1120 # This field can be set only for Classic VPN tunnels.
1121 &quot;vpnGateway&quot;: &quot;A String&quot;, # URL of the VPN gateway with which this VPN tunnel is associated.
1122 # Provided by the client when the VPN tunnel is created. This must be
1123 # used (instead of target_vpn_gateway) if a High Availability VPN gateway
1124 # resource is created.
1125 &quot;vpnGatewayInterface&quot;: 42, # The interface ID of the VPN gateway with which this VPN tunnel is
1126 # associated.
1127 # Possible values are: `0`, `1`.
1128 }
1129
1130 requestId: string, An optional request ID to identify requests. Specify a unique request ID so
1131 that if you must retry your request, the server will know to ignore the
1132 request if it has already been completed.
1133
1134 For example, consider a situation where you make an initial request and
1135 the request times out. If you make the request again with the same
1136 request ID, the server can check if original operation with the same
1137 request ID was received, and if so, will ignore the second request. This
1138 prevents clients from accidentally creating duplicate commitments.
1139
1140 The request ID must be
1141 a valid UUID with the exception that zero UUID is not supported
1142 (00000000-0000-0000-0000-000000000000).
1143 x__xgafv: string, V1 error format.
1144 Allowed values
1145 1 - v1 error format
1146 2 - v2 error format
1147
1148 Returns:
1149 An object of the form:
1150
1151 { # Represents an Operation resource.
1152 #
1153 # Google Compute Engine has three Operation resources:
1154 #
1155 # * [Global](/compute/docs/reference/rest/beta/globalOperations)
1156 # * [Regional](/compute/docs/reference/rest/beta/regionOperations)
1157 # * [Zonal](/compute/docs/reference/rest/beta/zoneOperations)
1158 #
1159 # You can use an operation resource to manage asynchronous API requests.
1160 # For more information, readHandling
1161 # API responses.
1162 #
1163 # Operations can be global, regional or zonal.
1164 #
1165 # - For global operations, use the `globalOperations`
1166 # resource.
1167 # - For regional operations, use the
1168 # `regionOperations` resource.
1169 # - For zonal operations, use
1170 # the `zoneOperations` resource.
1171 #
1172 #
1173 #
1174 # For more information, read
1175 # Global, Regional, and Zonal Resources.
1176 #
1177 # Note that completed Operation resources have a limited
1178 # retention period.
1179 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request.
1180 # Not present otherwise.
1181 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
1182 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is
1183 # set when the operation is created.
1184 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is inRFC3339
1185 # text format.
1186 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation,
1187 # this field will be populated.
1188 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this
1189 # operation.
1190 {
1191 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
1192 &quot;errorDetails&quot;: [ # [Output Only] An optional list of messages that contain the error
1193 # details. There is a set of defined message types to use for providing
1194 # details.The syntax depends on the error code. For example,
1195 # QuotaExceededInfo will have details when the error code is
1196 # QUOTA_EXCEEDED.
1197 {
1198 &quot;errorInfo&quot;: { # Describes the cause of the error with structured details.
1199 #
1200 # Example of an error when contacting the &quot;pubsub.googleapis.com&quot; API when it
1201 # is not enabled:
1202 #
1203 # { &quot;reason&quot;: &quot;API_DISABLED&quot;
1204 # &quot;domain&quot;: &quot;googleapis.com&quot;
1205 # &quot;metadata&quot;: {
1206 # &quot;resource&quot;: &quot;projects/123&quot;,
1207 # &quot;service&quot;: &quot;pubsub.googleapis.com&quot;
1208 # }
1209 # }
1210 #
1211 # This response indicates that the pubsub.googleapis.com API is not enabled.
1212 #
1213 # Example of an error that is returned when attempting to create a Spanner
1214 # instance in a region that is out of stock:
1215 #
1216 # { &quot;reason&quot;: &quot;STOCKOUT&quot;
1217 # &quot;domain&quot;: &quot;spanner.googleapis.com&quot;,
1218 # &quot;metadata&quot;: {
1219 # &quot;availableRegions&quot;: &quot;us-central1,us-east2&quot;
1220 # }
1221 # }
1222 &quot;domain&quot;: &quot;A String&quot;, # The logical grouping to which the &quot;reason&quot; belongs. The error domain
1223 # is typically the registered service name of the tool or product that
1224 # generates the error. Example: &quot;pubsub.googleapis.com&quot;. If the error is
1225 # generated by some common infrastructure, the error domain must be a
1226 # globally unique value that identifies the infrastructure. For Google API
1227 # infrastructure, the error domain is &quot;googleapis.com&quot;.
1228 &quot;metadatas&quot;: { # Additional structured details about this error.
1229 #
1230 # Keys must match a regular expression of `a-z+` but should
1231 # ideally be lowerCamelCase. Also, they must be limited to 64 characters in
1232 # length. When identifying the current value of an exceeded limit, the units
1233 # should be contained in the key, not the value. For example, rather than
1234 # `{&quot;instanceLimit&quot;: &quot;100/request&quot;}`, should be returned as,
1235 # `{&quot;instanceLimitPerRequest&quot;: &quot;100&quot;}`, if the client exceeds the number of
1236 # instances that can be created in a single (batch) request.
1237 &quot;a_key&quot;: &quot;A String&quot;,
1238 },
1239 &quot;reason&quot;: &quot;A String&quot;, # The reason of the error. This is a constant value that identifies the
1240 # proximate cause of the error. Error reasons are unique within a particular
1241 # domain of errors. This should be at most 63 characters and match a
1242 # regular expression of `A-Z+[A-Z0-9]`, which represents
1243 # UPPER_SNAKE_CASE.
1244 },
1245 &quot;help&quot;: { # Provides links to documentation or for performing an out of band action.
1246 #
1247 # For example, if a quota check failed with an error indicating the calling
1248 # project hasn&#x27;t enabled the accessed service, this can contain a URL pointing
1249 # directly to the right place in the developer console to flip the bit.
1250 &quot;links&quot;: [ # URL(s) pointing to additional information on handling the current error.
1251 { # Describes a URL link.
1252 &quot;description&quot;: &quot;A String&quot;, # Describes what the link offers.
1253 &quot;url&quot;: &quot;A String&quot;, # The URL of the link.
1254 },
1255 ],
1256 },
1257 &quot;localizedMessage&quot;: { # Provides a localized error message that is safe to return to the user
1258 # which can be attached to an RPC error.
1259 &quot;locale&quot;: &quot;A String&quot;, # The locale used following the specification defined at
1260 # https://www.rfc-editor.org/rfc/bcp/bcp47.txt.
1261 # Examples are: &quot;en-US&quot;, &quot;fr-CH&quot;, &quot;es-MX&quot;
1262 &quot;message&quot;: &quot;A String&quot;, # The localized error message in the above locale.
1263 },
1264 &quot;quotaInfo&quot;: { # Additional details for quota exceeded error for resource quota.
1265 &quot;dimensions&quot;: { # The map holding related quota dimensions.
1266 &quot;a_key&quot;: &quot;A String&quot;,
1267 },
1268 &quot;futureLimit&quot;: 3.14, # Future quota limit being rolled out. The limit&#x27;s unit depends on the quota
1269 # type or metric.
1270 &quot;limit&quot;: 3.14, # Current effective quota limit. The limit&#x27;s unit depends on the quota type
1271 # or metric.
1272 &quot;limitName&quot;: &quot;A String&quot;, # The name of the quota limit.
1273 &quot;metricName&quot;: &quot;A String&quot;, # The Compute Engine quota metric name.
1274 &quot;rolloutStatus&quot;: &quot;A String&quot;, # Rollout status of the future quota limit.
1275 },
1276 },
1277 ],
1278 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error.
1279 # This property is optional.
1280 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
1281 },
1282 ],
1283 },
1284 &quot;getVersionOperationMetadata&quot;: {
1285 &quot;inlineSbomInfo&quot;: {
1286 &quot;currentComponentVersions&quot;: { # A mapping of components to their currently-applied versions or other
1287 # appropriate identifiers.
1288 &quot;a_key&quot;: &quot;A String&quot;,
1289 },
1290 &quot;targetComponentVersions&quot;: { # A mapping of components to their target versions or other appropriate
1291 # identifiers.
1292 &quot;a_key&quot;: &quot;A String&quot;,
1293 },
1294 },
1295 },
1296 &quot;httpErrorMessage&quot;: &quot;A String&quot;, # [Output Only] If the operation fails, this field contains the HTTP error
1297 # message that was returned, such as `NOT FOUND`.
1298 &quot;httpErrorStatusCode&quot;: 42, # [Output Only] If the operation fails, this field contains the HTTP error
1299 # status code that was returned. For example, a `404` means the
1300 # resource was not found.
1301 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is
1302 # defined by the server.
1303 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested.
1304 # This value is inRFC3339
1305 # text format.
1306 &quot;instancesBulkInsertOperationMetadata&quot;: {
1307 &quot;perLocationStatus&quot;: { # Status information per location (location name is key).
1308 # Example key: zones/us-central1-a
1309 &quot;a_key&quot;: {
1310 &quot;createdVmCount&quot;: 42, # [Output Only] Count of VMs successfully created so far.
1311 &quot;deletedVmCount&quot;: 42, # [Output Only] Count of VMs that got deleted during rollback.
1312 &quot;failedToCreateVmCount&quot;: 42, # [Output Only] Count of VMs that started creating but encountered an
1313 # error.
1314 &quot;status&quot;: &quot;A String&quot;, # [Output Only] Creation status of BulkInsert operation - information
1315 # if the flow is rolling forward or rolling back.
1316 &quot;targetVmCount&quot;: 42, # [Output Only] Count of VMs originally planned to be created.
1317 },
1318 },
1319 },
1320 &quot;kind&quot;: &quot;compute#operation&quot;, # Output only. [Output Only] Type of the resource. Always `compute#operation` for
1321 # Operation resources.
1322 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
1323 &quot;operationGroupId&quot;: &quot;A String&quot;, # Output only. [Output Only] An ID that represents a group of operations, such as when a
1324 # group of operations results from a `bulkInsert` API request.
1325 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`,
1326 # `update`, or `delete`, and so on.
1327 &quot;progress&quot;: 42, # [Output Only] An optional progress indicator that ranges from 0 to 100.
1328 # There is no requirement that this be linear or support any granularity of
1329 # operations. This should not be used to guess when the operation will be
1330 # complete. This number should monotonically increase as the operation
1331 # progresses.
1332 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only
1333 # applicable when performing regional operations.
1334 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
1335 &quot;setCommonInstanceMetadataOperationMetadata&quot;: { # Output only. [Output Only] If the operation is for projects.setCommonInstanceMetadata,
1336 # this field will contain information on all underlying zonal actions and
1337 # their state.
1338 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The client operation id.
1339 &quot;perLocationOperations&quot;: { # [Output Only] Status information per location (location name is key).
1340 # Example key: zones/us-central1-a
1341 &quot;a_key&quot;: {
1342 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for # [Output Only] If state is `ABANDONED` or `FAILED`, this field is
1343 # populated.
1344 # different programming environments, including REST APIs and RPC APIs. It is
1345 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
1346 # three pieces of data: error code, error message, and error details.
1347 #
1348 # You can find out more about this error model and how to work with it in the
1349 # [API Design Guide](https://cloud.google.com/apis/design/errors).
1350 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1351 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
1352 # message types for APIs to use.
1353 {
1354 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1355 },
1356 ],
1357 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
1358 # user-facing error message should be localized and sent in the
1359 # google.rpc.Status.details field, or localized by the client.
1360 },
1361 &quot;state&quot;: &quot;A String&quot;, # [Output Only] Status of the action, which can be one of the following:
1362 # `PROPAGATING`, `PROPAGATED`, `ABANDONED`, `FAILED`, or `DONE`.
1363 },
1364 },
1365 },
1366 &quot;startTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was started by the server.
1367 # This value is inRFC3339
1368 # text format.
1369 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the operation, which can be one of the
1370 # following:
1371 # `PENDING`, `RUNNING`, or `DONE`.
1372 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the
1373 # operation.
1374 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation
1375 # of the target resource.
1376 &quot;targetLink&quot;: &quot;A String&quot;, # [Output Only] The URL of the resource that the operation modifies. For
1377 # operations related to creating a snapshot, this points to the disk
1378 # that the snapshot was created from.
1379 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example:
1380 # `[email protected]` or
1381 # `alice_smith_identifier (global/workforcePools/example-com-us-employees)`.
1382 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the
1383 # operation, this field will be populated.
1384 {
1385 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute
1386 # Engine returns NO_RESULTS_ON_PAGE if there
1387 # are no results in the response.
1388 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key:
1389 # value format. For example:
1390 #
1391 # &quot;data&quot;: [
1392 # {
1393 # &quot;key&quot;: &quot;scope&quot;,
1394 # &quot;value&quot;: &quot;zones/us-east1-d&quot;
1395 # }
1396 {
1397 &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being
1398 # returned. For example, for warnings where there are no results in a list
1399 # request for a particular zone, this key might be scope and
1400 # the key value might be the zone name. Other examples might be a key
1401 # indicating a deprecated resource and a suggested replacement, or a
1402 # warning about invalid network settings (for example, if an instance
1403 # attempts to perform IP forwarding but is not enabled for IP forwarding).
1404 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
1405 },
1406 ],
1407 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
1408 },
1409 ],
1410 &quot;zone&quot;: &quot;A String&quot;, # [Output Only] The URL of the zone where the operation resides. Only
1411 # applicable when performing per-zone operations.
1412 }</pre>
1413 </div>
1414
1415 <div class="method">
1416 <code class="details" id="list">list(project, region, filter=None, maxResults=None, orderBy=None, pageToken=None, returnPartialSuccess=None, x__xgafv=None)</code>
1417 <pre>Retrieves a list of VpnTunnel resources contained in the specified
1418 project and region.
1419
1420 Args:
1421 project: string, Project ID for this request. (required)
1422 region: string, Name of the region for this request. (required)
1423 filter: string, A filter expression that filters resources listed in the response. Most
1424 Compute resources support two types of filter expressions:
1425 expressions that support regular expressions and expressions that follow
1426 API improvement proposal AIP-160.
1427 These two types of filter expressions cannot be mixed in one request.
1428
1429 If you want to use AIP-160, your expression must specify the field name, an
1430 operator, and the value that you want to use for filtering. The value
1431 must be a string, a number, or a boolean. The operator
1432 must be either `=`, `!=`, `&gt;`, `&lt;`, `&lt;=`, `&gt;=` or `:`.
1433
1434 For example, if you are filtering Compute Engine instances, you can
1435 exclude instances named `example-instance` by specifying
1436 `name != example-instance`.
1437
1438 The `:*` comparison can be used to test whether a key has been defined.
1439 For example, to find all objects with `owner` label use:
1440 ```
1441 labels.owner:*
1442 ```
1443
1444 You can also filter nested fields. For example, you could specify
1445 `scheduling.automaticRestart = false` to include instances only
1446 if they are not scheduled for automatic restarts. You can use filtering
1447 on nested fields to filter based onresource labels.
1448
1449 To filter on multiple expressions, provide each separate expression within
1450 parentheses. For example:
1451 ```
1452 (scheduling.automaticRestart = true)
1453 (cpuPlatform = &quot;Intel Skylake&quot;)
1454 ```
1455 By default, each expression is an `AND` expression. However, you
1456 can include `AND` and `OR` expressions explicitly.
1457 For example:
1458 ```
1459 (cpuPlatform = &quot;Intel Skylake&quot;) OR
1460 (cpuPlatform = &quot;Intel Broadwell&quot;) AND
1461 (scheduling.automaticRestart = true)
1462 ```
1463
1464 If you want to use a regular expression, use the `eq` (equal) or `ne`
1465 (not equal) operator against a single un-parenthesized expression with or
1466 without quotes or against multiple parenthesized expressions. Examples:
1467
1468 `fieldname eq unquoted literal`
1469 `fieldname eq &#x27;single quoted literal&#x27;`
1470 `fieldname eq &quot;double quoted literal&quot;`
1471 `(fieldname1 eq literal) (fieldname2 ne &quot;literal&quot;)`
1472
1473 The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
1474 The literal value must match the entire field.
1475
1476 For example, to filter for instances that do not end with name &quot;instance&quot;,
1477 you would use `name ne .*instance`.
1478
1479 You cannot combine constraints on multiple fields using regular
1480 expressions.
1481 maxResults: integer, The maximum number of results per page that should be returned.
1482 If the number of available results is larger than `maxResults`,
1483 Compute Engine returns a `nextPageToken` that can be used to get
1484 the next page of results in subsequent list requests. Acceptable values are
1485 `0` to `500`, inclusive. (Default: `500`)
1486 orderBy: string, Sorts list results by a certain order. By default, results
1487 are returned in alphanumerical order based on the resource name.
1488
1489 You can also sort results in descending order based on the creation
1490 timestamp using `orderBy=&quot;creationTimestamp desc&quot;`. This sorts
1491 results based on the `creationTimestamp` field in
1492 reverse chronological order (newest result first). Use this to sort
1493 resources like operations so that the newest operation is returned first.
1494
1495 Currently, only sorting by `name` or
1496 `creationTimestamp desc` is supported.
1497 pageToken: string, Specifies a page token to use. Set `pageToken` to the
1498 `nextPageToken` returned by a previous list request to get
1499 the next page of results.
1500 returnPartialSuccess: boolean, Opt-in for partial success behavior which provides partial results in case
1501 of failure. The default value is false.
1502
1503 For example, when partial success behavior is enabled, aggregatedList for a
1504 single zone scope either returns all resources in the zone or no resources,
1505 with an error code.
1506 x__xgafv: string, V1 error format.
1507 Allowed values
1508 1 - v1 error format
1509 2 - v2 error format
1510
1511 Returns:
1512 An object of the form:
1513
1514 { # Contains a list of VpnTunnel resources.
1515 &quot;id&quot;: &quot;A String&quot;, # [Output Only] Unique identifier for the resource; defined by the server.
1516 &quot;items&quot;: [ # A list of VpnTunnel resources.
1517 { # Represents a Cloud VPN Tunnel resource.
1518 #
1519 # For more information about VPN, read the
1520 # the Cloud VPN Overview.
1521 &quot;capacityTier&quot;: &quot;A String&quot;, # Capacity tier of the VPN tunnel. This is used for IPsec over Interconnect
1522 # tunnels to indicate different bandwidth limits.
1523 &quot;cipherSuite&quot;: { # User specified list of ciphers to use for the phase 1 and phase 2 of the
1524 # IKE protocol.
1525 &quot;phase1&quot;: {
1526 &quot;dh&quot;: [
1527 &quot;A String&quot;,
1528 ],
1529 &quot;encryption&quot;: [
1530 &quot;A String&quot;,
1531 ],
1532 &quot;integrity&quot;: [
1533 &quot;A String&quot;,
1534 ],
1535 &quot;prf&quot;: [
1536 &quot;A String&quot;,
1537 ],
1538 },
1539 &quot;phase2&quot;: {
1540 &quot;encryption&quot;: [
1541 &quot;A String&quot;,
1542 ],
1543 &quot;integrity&quot;: [
1544 &quot;A String&quot;,
1545 ],
1546 &quot;pfs&quot;: [
1547 &quot;A String&quot;,
1548 ],
1549 },
1550 },
1551 &quot;creationTimestamp&quot;: &quot;A String&quot;, # Output only. [Output Only] Creation timestamp inRFC3339
1552 # text format.
1553 &quot;description&quot;: &quot;A String&quot;, # An optional description of this resource. Provide this property when you
1554 # create the resource.
1555 &quot;detailedStatus&quot;: &quot;A String&quot;, # [Output Only] Detailed status message for the VPN tunnel.
1556 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the resource. This identifier is
1557 # defined by the server.
1558 &quot;ikeVersion&quot;: 42, # IKE protocol version to use when establishing the VPN tunnel with the peer
1559 # VPN gateway. Acceptable IKE versions are 1 or 2.
1560 # The default version is 2.
1561 &quot;kind&quot;: &quot;compute#vpnTunnel&quot;, # Output only. [Output Only] Type of resource. Always compute#vpnTunnel for
1562 # VPN tunnels.
1563 &quot;labelFingerprint&quot;: &quot;A String&quot;, # A fingerprint for the labels being applied to this VpnTunnel, which is
1564 # essentially a hash of the labels set used for optimistic locking. The
1565 # fingerprint is initially generated by Compute Engine and changes after
1566 # every request to modify or update labels. You must always provide an
1567 # up-to-date fingerprint hash in order to update or change labels,
1568 # otherwise the request will fail with error412 conditionNotMet.
1569 #
1570 # To see the latest fingerprint, make a get() request to
1571 # retrieve a VpnTunnel.
1572 &quot;labels&quot;: { # Labels for this resource. These can only be added or modified by thesetLabels method. Each label key/value pair must comply withRFC1035.
1573 # Label values may be empty.
1574 &quot;a_key&quot;: &quot;A String&quot;,
1575 },
1576 &quot;localTrafficSelector&quot;: [ # Local traffic selector to use when establishing the VPN tunnel with the
1577 # peer VPN gateway. The value should be a CIDR formatted string, for
1578 # example: 192.168.0.0/16. The ranges must be disjoint.
1579 # Only IPv4 is supported for Classic VPN tunnels. This field is output only
1580 # for HA VPN tunnels.
1581 &quot;A String&quot;,
1582 ],
1583 &quot;name&quot;: &quot;A String&quot;, # Name of the resource. Provided by the client when the resource is created.
1584 # The name must be 1-63 characters long, and comply withRFC1035.
1585 # Specifically, the name must be 1-63 characters long and match the regular
1586 # expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first
1587 # character must be a lowercase letter, and all following characters must
1588 # be a dash, lowercase letter, or digit, except the last character, which
1589 # cannot be a dash.
1590 &quot;params&quot;: { # Input only. [Input Only] Additional params passed with the request, but not persisted
1591 # as part of resource payload.
1592 &quot;resourceManagerTags&quot;: { # Tag keys/values directly bound to this resource.
1593 # Tag keys and values have the same definition as resource
1594 # manager tags. The field is allowed for INSERT
1595 # only. The keys/values to set on the resource should be specified in
1596 # either ID { : } or Namespaced format
1597 # { : }.
1598 # For example the following are valid inputs:
1599 # * {&quot;tagKeys/333&quot; : &quot;tagValues/444&quot;, &quot;tagKeys/123&quot; : &quot;tagValues/456&quot;}
1600 # * {&quot;123/environment&quot; : &quot;production&quot;, &quot;345/abc&quot; : &quot;xyz&quot;}
1601 # Note:
1602 # * Invalid combinations of ID &amp; namespaced format is not supported. For
1603 # instance: {&quot;123/environment&quot; : &quot;tagValues/444&quot;} is invalid.
1604 # * Inconsistent format is not supported. For instance:
1605 # {&quot;tagKeys/333&quot; : &quot;tagValues/444&quot;, &quot;123/env&quot; : &quot;prod&quot;} is invalid.
1606 &quot;a_key&quot;: &quot;A String&quot;,
1607 },
1608 },
1609 &quot;peerExternalGateway&quot;: &quot;A String&quot;, # URL of the peer side external VPN gateway to which this VPN tunnel is
1610 # connected.
1611 # Provided by the client when the VPN tunnel is created.
1612 # This field is exclusive with the field peerGcpGateway.
1613 &quot;peerExternalGatewayInterface&quot;: 42, # The interface ID of the external VPN gateway to which this VPN tunnel is
1614 # connected. Provided by the client when the VPN tunnel is created.
1615 # Possible values are: `0`, `1`, `2`, `3`. The number of IDs in use
1616 # depends on the external VPN gateway redundancy type.
1617 &quot;peerGcpGateway&quot;: &quot;A String&quot;, # URL of the peer side HA VPN gateway to which this VPN tunnel
1618 # is connected. Provided by the client when the VPN tunnel is created.
1619 # This field can be used when creating highly available VPN from VPC network
1620 # to VPC network, the field is exclusive with the field peerExternalGateway.
1621 # If provided, the VPN tunnel will automatically use the same
1622 # vpnGatewayInterface ID in the peer Google Cloud VPN gateway.
1623 &quot;peerIp&quot;: &quot;A String&quot;, # IP address of the peer VPN gateway. Only IPv4 is supported. This field can
1624 # be set only for Classic VPN tunnels.
1625 &quot;region&quot;: &quot;A String&quot;, # [Output Only] URL of the region where the VPN tunnel resides.
1626 # You must specify this field as part of the HTTP request URL. It is
1627 # not settable as a field in the request body.
1628 &quot;remoteTrafficSelector&quot;: [ # Remote traffic selectors to use when establishing the VPN tunnel with
1629 # the peer VPN gateway. The value should be a CIDR formatted string,
1630 # for example: 192.168.0.0/16. The ranges should be disjoint. Only IPv4 is
1631 # supported for Classic VPN tunnels. This field is output only for HA VPN
1632 # tunnels.
1633 &quot;A String&quot;,
1634 ],
1635 &quot;router&quot;: &quot;A String&quot;, # URL of the router resource to be used for dynamic routing.
1636 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
1637 &quot;sharedSecret&quot;: &quot;A String&quot;, # Shared secret used to set the secure session between the Cloud VPN gateway
1638 # and the peer VPN gateway.
1639 &quot;sharedSecretHash&quot;: &quot;A String&quot;, # Hash of the shared secret.
1640 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the VPN tunnel, which can be one of the
1641 # following:
1642 #
1643 # - PROVISIONING: Resource is being allocated for the VPN tunnel.
1644 # - WAITING_FOR_FULL_CONFIG: Waiting to receive all VPN-related configs
1645 # from
1646 # the user. Network, TargetVpnGateway, VpnTunnel, ForwardingRule, and Route
1647 # resources are needed to setup the VPN tunnel.
1648 # - FIRST_HANDSHAKE: Successful first handshake with the peer VPN.
1649 # - ESTABLISHED: Secure session is successfully established with the peer
1650 # VPN.
1651 # - NETWORK_ERROR: Deprecated, replaced by
1652 # NO_INCOMING_PACKETS
1653 # - AUTHORIZATION_ERROR: Auth error (for example,
1654 # bad shared secret).
1655 # - NEGOTIATION_FAILURE: Handshake failed.
1656 # - DEPROVISIONING: Resources are being deallocated for the VPN
1657 # tunnel.
1658 # - FAILED: Tunnel creation has failed and the tunnel is not
1659 # ready to be used.
1660 # - NO_INCOMING_PACKETS: No incoming packets from
1661 # peer.
1662 # - REJECTED: Tunnel configuration was rejected, can be result
1663 # of being denied access.
1664 # - ALLOCATING_RESOURCES: Cloud VPN is in the
1665 # process of allocating all required resources.
1666 # - STOPPED: Tunnel is stopped due to its Forwarding Rules being deleted
1667 # for Classic VPN tunnels or the project is in frozen state.
1668 # - PEER_IDENTITY_MISMATCH: Peer identity does not match peer IP,
1669 # probably behind NAT.
1670 # - TS_NARROWING_NOT_ALLOWED: Traffic selector
1671 # narrowing not allowed for an HA-VPN tunnel.
1672 &quot;targetVpnGateway&quot;: &quot;A String&quot;, # URL of the Target VPN gateway with which this VPN tunnel is associated.
1673 # Provided by the client when the VPN tunnel is created.
1674 # This field can be set only for Classic VPN tunnels.
1675 &quot;vpnGateway&quot;: &quot;A String&quot;, # URL of the VPN gateway with which this VPN tunnel is associated.
1676 # Provided by the client when the VPN tunnel is created. This must be
1677 # used (instead of target_vpn_gateway) if a High Availability VPN gateway
1678 # resource is created.
1679 &quot;vpnGatewayInterface&quot;: 42, # The interface ID of the VPN gateway with which this VPN tunnel is
1680 # associated.
1681 # Possible values are: `0`, `1`.
1682 },
1683 ],
1684 &quot;kind&quot;: &quot;compute#vpnTunnelList&quot;, # Output only. [Output Only] Type of resource. Always compute#vpnTunnel for
1685 # VPN tunnels.
1686 &quot;nextPageToken&quot;: &quot;A String&quot;, # [Output Only] This token allows you to get the next page of results for
1687 # list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for
1688 # the query parameter pageToken in the next list request.
1689 # Subsequent list requests will have their own nextPageToken to
1690 # continue paging through the results.
1691 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined URL for this resource.
1692 &quot;warning&quot;: { # [Output Only] Informational warning message.
1693 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute
1694 # Engine returns NO_RESULTS_ON_PAGE if there
1695 # are no results in the response.
1696 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key:
1697 # value format. For example:
1698 #
1699 # &quot;data&quot;: [
1700 # {
1701 # &quot;key&quot;: &quot;scope&quot;,
1702 # &quot;value&quot;: &quot;zones/us-east1-d&quot;
1703 # }
1704 {
1705 &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being
1706 # returned. For example, for warnings where there are no results in a list
1707 # request for a particular zone, this key might be scope and
1708 # the key value might be the zone name. Other examples might be a key
1709 # indicating a deprecated resource and a suggested replacement, or a
1710 # warning about invalid network settings (for example, if an instance
1711 # attempts to perform IP forwarding but is not enabled for IP forwarding).
1712 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
1713 },
1714 ],
1715 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
1716 },
1717 }</pre>
1718 </div>
1719
1720 <div class="method">
1721 <code class="details" id="list_next">list_next()</code>
1722 <pre>Retrieves the next page of results.
1723
1724 Args:
1725 previous_request: The request for the previous page. (required)
1726 previous_response: The response from the request for the previous page. (required)
1727
1728 Returns:
1729 A request object that you can call &#x27;execute()&#x27; on to request the next
1730 page. Returns None if there are no more items in the collection.
1731 </pre>
1732 </div>
1733
1734 <div class="method">
1735 <code class="details" id="setLabels">setLabels(project, region, resource, body=None, requestId=None, x__xgafv=None)</code>
1736 <pre>Sets the labels on a VpnTunnel. To learn more about labels, read theLabeling
1737 Resources documentation.
1738
1739 Args:
1740 project: string, Project ID for this request. (required)
1741 region: string, The region for this request. (required)
1742 resource: string, Name or id of the resource for this request. (required)
1743 body: object, The request body.
1744 The object takes the form of:
1745
1746 {
1747 &quot;labelFingerprint&quot;: &quot;A String&quot;, # The fingerprint of the previous set of labels for this resource,
1748 # used to detect conflicts. The fingerprint is initially generated by Compute
1749 # Engine and changes after every request to modify or update labels. You must
1750 # always provide an up-to-date fingerprint hash in order to update or change
1751 # labels. Make a get() request to the resource to get the latest
1752 # fingerprint.
1753 &quot;labels&quot;: { # The labels to set for this resource.
1754 &quot;a_key&quot;: &quot;A String&quot;,
1755 },
1756 }
1757
1758 requestId: string, An optional request ID to identify requests. Specify a unique request ID so
1759 that if you must retry your request, the server will know to ignore the
1760 request if it has already been completed.
1761
1762 For example, consider a situation where you make an initial request and
1763 the request times out. If you make the request again with the same
1764 request ID, the server can check if original operation with the same
1765 request ID was received, and if so, will ignore the second request. This
1766 prevents clients from accidentally creating duplicate commitments.
1767
1768 The request ID must be
1769 a valid UUID with the exception that zero UUID is not supported
1770 (00000000-0000-0000-0000-000000000000).
1771 x__xgafv: string, V1 error format.
1772 Allowed values
1773 1 - v1 error format
1774 2 - v2 error format
1775
1776 Returns:
1777 An object of the form:
1778
1779 { # Represents an Operation resource.
1780 #
1781 # Google Compute Engine has three Operation resources:
1782 #
1783 # * [Global](/compute/docs/reference/rest/beta/globalOperations)
1784 # * [Regional](/compute/docs/reference/rest/beta/regionOperations)
1785 # * [Zonal](/compute/docs/reference/rest/beta/zoneOperations)
1786 #
1787 # You can use an operation resource to manage asynchronous API requests.
1788 # For more information, readHandling
1789 # API responses.
1790 #
1791 # Operations can be global, regional or zonal.
1792 #
1793 # - For global operations, use the `globalOperations`
1794 # resource.
1795 # - For regional operations, use the
1796 # `regionOperations` resource.
1797 # - For zonal operations, use
1798 # the `zoneOperations` resource.
1799 #
1800 #
1801 #
1802 # For more information, read
1803 # Global, Regional, and Zonal Resources.
1804 #
1805 # Note that completed Operation resources have a limited
1806 # retention period.
1807 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request.
1808 # Not present otherwise.
1809 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
1810 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is
1811 # set when the operation is created.
1812 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is inRFC3339
1813 # text format.
1814 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation,
1815 # this field will be populated.
1816 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this
1817 # operation.
1818 {
1819 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
1820 &quot;errorDetails&quot;: [ # [Output Only] An optional list of messages that contain the error
1821 # details. There is a set of defined message types to use for providing
1822 # details.The syntax depends on the error code. For example,
1823 # QuotaExceededInfo will have details when the error code is
1824 # QUOTA_EXCEEDED.
1825 {
1826 &quot;errorInfo&quot;: { # Describes the cause of the error with structured details.
1827 #
1828 # Example of an error when contacting the &quot;pubsub.googleapis.com&quot; API when it
1829 # is not enabled:
1830 #
1831 # { &quot;reason&quot;: &quot;API_DISABLED&quot;
1832 # &quot;domain&quot;: &quot;googleapis.com&quot;
1833 # &quot;metadata&quot;: {
1834 # &quot;resource&quot;: &quot;projects/123&quot;,
1835 # &quot;service&quot;: &quot;pubsub.googleapis.com&quot;
1836 # }
1837 # }
1838 #
1839 # This response indicates that the pubsub.googleapis.com API is not enabled.
1840 #
1841 # Example of an error that is returned when attempting to create a Spanner
1842 # instance in a region that is out of stock:
1843 #
1844 # { &quot;reason&quot;: &quot;STOCKOUT&quot;
1845 # &quot;domain&quot;: &quot;spanner.googleapis.com&quot;,
1846 # &quot;metadata&quot;: {
1847 # &quot;availableRegions&quot;: &quot;us-central1,us-east2&quot;
1848 # }
1849 # }
1850 &quot;domain&quot;: &quot;A String&quot;, # The logical grouping to which the &quot;reason&quot; belongs. The error domain
1851 # is typically the registered service name of the tool or product that
1852 # generates the error. Example: &quot;pubsub.googleapis.com&quot;. If the error is
1853 # generated by some common infrastructure, the error domain must be a
1854 # globally unique value that identifies the infrastructure. For Google API
1855 # infrastructure, the error domain is &quot;googleapis.com&quot;.
1856 &quot;metadatas&quot;: { # Additional structured details about this error.
1857 #
1858 # Keys must match a regular expression of `a-z+` but should
1859 # ideally be lowerCamelCase. Also, they must be limited to 64 characters in
1860 # length. When identifying the current value of an exceeded limit, the units
1861 # should be contained in the key, not the value. For example, rather than
1862 # `{&quot;instanceLimit&quot;: &quot;100/request&quot;}`, should be returned as,
1863 # `{&quot;instanceLimitPerRequest&quot;: &quot;100&quot;}`, if the client exceeds the number of
1864 # instances that can be created in a single (batch) request.
1865 &quot;a_key&quot;: &quot;A String&quot;,
1866 },
1867 &quot;reason&quot;: &quot;A String&quot;, # The reason of the error. This is a constant value that identifies the
1868 # proximate cause of the error. Error reasons are unique within a particular
1869 # domain of errors. This should be at most 63 characters and match a
1870 # regular expression of `A-Z+[A-Z0-9]`, which represents
1871 # UPPER_SNAKE_CASE.
1872 },
1873 &quot;help&quot;: { # Provides links to documentation or for performing an out of band action.
1874 #
1875 # For example, if a quota check failed with an error indicating the calling
1876 # project hasn&#x27;t enabled the accessed service, this can contain a URL pointing
1877 # directly to the right place in the developer console to flip the bit.
1878 &quot;links&quot;: [ # URL(s) pointing to additional information on handling the current error.
1879 { # Describes a URL link.
1880 &quot;description&quot;: &quot;A String&quot;, # Describes what the link offers.
1881 &quot;url&quot;: &quot;A String&quot;, # The URL of the link.
1882 },
1883 ],
1884 },
1885 &quot;localizedMessage&quot;: { # Provides a localized error message that is safe to return to the user
1886 # which can be attached to an RPC error.
1887 &quot;locale&quot;: &quot;A String&quot;, # The locale used following the specification defined at
1888 # https://www.rfc-editor.org/rfc/bcp/bcp47.txt.
1889 # Examples are: &quot;en-US&quot;, &quot;fr-CH&quot;, &quot;es-MX&quot;
1890 &quot;message&quot;: &quot;A String&quot;, # The localized error message in the above locale.
1891 },
1892 &quot;quotaInfo&quot;: { # Additional details for quota exceeded error for resource quota.
1893 &quot;dimensions&quot;: { # The map holding related quota dimensions.
1894 &quot;a_key&quot;: &quot;A String&quot;,
1895 },
1896 &quot;futureLimit&quot;: 3.14, # Future quota limit being rolled out. The limit&#x27;s unit depends on the quota
1897 # type or metric.
1898 &quot;limit&quot;: 3.14, # Current effective quota limit. The limit&#x27;s unit depends on the quota type
1899 # or metric.
1900 &quot;limitName&quot;: &quot;A String&quot;, # The name of the quota limit.
1901 &quot;metricName&quot;: &quot;A String&quot;, # The Compute Engine quota metric name.
1902 &quot;rolloutStatus&quot;: &quot;A String&quot;, # Rollout status of the future quota limit.
1903 },
1904 },
1905 ],
1906 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error.
1907 # This property is optional.
1908 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
1909 },
1910 ],
1911 },
1912 &quot;getVersionOperationMetadata&quot;: {
1913 &quot;inlineSbomInfo&quot;: {
1914 &quot;currentComponentVersions&quot;: { # A mapping of components to their currently-applied versions or other
1915 # appropriate identifiers.
1916 &quot;a_key&quot;: &quot;A String&quot;,
1917 },
1918 &quot;targetComponentVersions&quot;: { # A mapping of components to their target versions or other appropriate
1919 # identifiers.
1920 &quot;a_key&quot;: &quot;A String&quot;,
1921 },
1922 },
1923 },
1924 &quot;httpErrorMessage&quot;: &quot;A String&quot;, # [Output Only] If the operation fails, this field contains the HTTP error
1925 # message that was returned, such as `NOT FOUND`.
1926 &quot;httpErrorStatusCode&quot;: 42, # [Output Only] If the operation fails, this field contains the HTTP error
1927 # status code that was returned. For example, a `404` means the
1928 # resource was not found.
1929 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is
1930 # defined by the server.
1931 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested.
1932 # This value is inRFC3339
1933 # text format.
1934 &quot;instancesBulkInsertOperationMetadata&quot;: {
1935 &quot;perLocationStatus&quot;: { # Status information per location (location name is key).
1936 # Example key: zones/us-central1-a
1937 &quot;a_key&quot;: {
1938 &quot;createdVmCount&quot;: 42, # [Output Only] Count of VMs successfully created so far.
1939 &quot;deletedVmCount&quot;: 42, # [Output Only] Count of VMs that got deleted during rollback.
1940 &quot;failedToCreateVmCount&quot;: 42, # [Output Only] Count of VMs that started creating but encountered an
1941 # error.
1942 &quot;status&quot;: &quot;A String&quot;, # [Output Only] Creation status of BulkInsert operation - information
1943 # if the flow is rolling forward or rolling back.
1944 &quot;targetVmCount&quot;: 42, # [Output Only] Count of VMs originally planned to be created.
1945 },
1946 },
1947 },
1948 &quot;kind&quot;: &quot;compute#operation&quot;, # Output only. [Output Only] Type of the resource. Always `compute#operation` for
1949 # Operation resources.
1950 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
1951 &quot;operationGroupId&quot;: &quot;A String&quot;, # Output only. [Output Only] An ID that represents a group of operations, such as when a
1952 # group of operations results from a `bulkInsert` API request.
1953 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`,
1954 # `update`, or `delete`, and so on.
1955 &quot;progress&quot;: 42, # [Output Only] An optional progress indicator that ranges from 0 to 100.
1956 # There is no requirement that this be linear or support any granularity of
1957 # operations. This should not be used to guess when the operation will be
1958 # complete. This number should monotonically increase as the operation
1959 # progresses.
1960 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only
1961 # applicable when performing regional operations.
1962 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
1963 &quot;setCommonInstanceMetadataOperationMetadata&quot;: { # Output only. [Output Only] If the operation is for projects.setCommonInstanceMetadata,
1964 # this field will contain information on all underlying zonal actions and
1965 # their state.
1966 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The client operation id.
1967 &quot;perLocationOperations&quot;: { # [Output Only] Status information per location (location name is key).
1968 # Example key: zones/us-central1-a
1969 &quot;a_key&quot;: {
1970 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for # [Output Only] If state is `ABANDONED` or `FAILED`, this field is
1971 # populated.
1972 # different programming environments, including REST APIs and RPC APIs. It is
1973 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
1974 # three pieces of data: error code, error message, and error details.
1975 #
1976 # You can find out more about this error model and how to work with it in the
1977 # [API Design Guide](https://cloud.google.com/apis/design/errors).
1978 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1979 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
1980 # message types for APIs to use.
1981 {
1982 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1983 },
1984 ],
1985 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
1986 # user-facing error message should be localized and sent in the
1987 # google.rpc.Status.details field, or localized by the client.
1988 },
1989 &quot;state&quot;: &quot;A String&quot;, # [Output Only] Status of the action, which can be one of the following:
1990 # `PROPAGATING`, `PROPAGATED`, `ABANDONED`, `FAILED`, or `DONE`.
1991 },
1992 },
1993 },
1994 &quot;startTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was started by the server.
1995 # This value is inRFC3339
1996 # text format.
1997 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the operation, which can be one of the
1998 # following:
1999 # `PENDING`, `RUNNING`, or `DONE`.
2000 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the
2001 # operation.
2002 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation
2003 # of the target resource.
2004 &quot;targetLink&quot;: &quot;A String&quot;, # [Output Only] The URL of the resource that the operation modifies. For
2005 # operations related to creating a snapshot, this points to the disk
2006 # that the snapshot was created from.
2007 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example:
2008 # `[email protected]` or
2009 # `alice_smith_identifier (global/workforcePools/example-com-us-employees)`.
2010 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the
2011 # operation, this field will be populated.
2012 {
2013 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute
2014 # Engine returns NO_RESULTS_ON_PAGE if there
2015 # are no results in the response.
2016 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key:
2017 # value format. For example:
2018 #
2019 # &quot;data&quot;: [
2020 # {
2021 # &quot;key&quot;: &quot;scope&quot;,
2022 # &quot;value&quot;: &quot;zones/us-east1-d&quot;
2023 # }
2024 {
2025 &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being
2026 # returned. For example, for warnings where there are no results in a list
2027 # request for a particular zone, this key might be scope and
2028 # the key value might be the zone name. Other examples might be a key
2029 # indicating a deprecated resource and a suggested replacement, or a
2030 # warning about invalid network settings (for example, if an instance
2031 # attempts to perform IP forwarding but is not enabled for IP forwarding).
2032 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
2033 },
2034 ],
2035 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
2036 },
2037 ],
2038 &quot;zone&quot;: &quot;A String&quot;, # [Output Only] The URL of the zone where the operation resides. Only
2039 # applicable when performing per-zone operations.
2040 }</pre>
2041 </div>
2042
2043 <div class="method">
2044 <code class="details" id="testIamPermissions">testIamPermissions(project, region, resource, body=None, x__xgafv=None)</code>
2045 <pre>Returns permissions that a caller has on the specified resource.
2046
2047 Args:
2048 project: string, Project ID for this request. (required)
2049 region: string, The name of the region for this request. (required)
2050 resource: string, Name or id of the resource for this request. (required)
2051 body: object, The request body.
2052 The object takes the form of:
2053
2054 {
2055 &quot;permissions&quot;: [ # The set of permissions to check for the &#x27;resource&#x27;. Permissions with
2056 # wildcards (such as &#x27;*&#x27; or &#x27;storage.*&#x27;) are not allowed.
2057 &quot;A String&quot;,
2058 ],
2059 }
2060
2061 x__xgafv: string, V1 error format.
2062 Allowed values
2063 1 - v1 error format
2064 2 - v2 error format
2065
2066 Returns:
2067 An object of the form:
2068
2069 {
2070 &quot;permissions&quot;: [ # A subset of `TestPermissionsRequest.permissions` that the caller is
2071 # allowed.
2072 &quot;A String&quot;,
2073 ],
2074 }</pre>
2075 </div>
2076
2077 </body></html>