Debian Codegraph @

docs/dyn/compute_alpha.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_alpha.html">Compute Engine API</a> . <a href="compute_alpha.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/alpha/globalOperations)
509 # * [Regional](/compute/docs/reference/rest/alpha/regionOperations)
510 # * [Zonal](/compute/docs/reference/rest/alpha/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;selfLinkWithId&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined URL for this resource with the resource id.
689 &quot;setCommonInstanceMetadataOperationMetadata&quot;: { # Output only. [Output Only] If the operation is for projects.setCommonInstanceMetadata,
690 # this field will contain information on all underlying zonal actions and
691 # their state.
692 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The client operation id.
693 &quot;perLocationOperations&quot;: { # [Output Only] Status information per location (location name is key).
694 # Example key: zones/us-central1-a
695 &quot;a_key&quot;: {
696 &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
697 # populated.
698 # different programming environments, including REST APIs and RPC APIs. It is
699 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
700 # three pieces of data: error code, error message, and error details.
701 #
702 # You can find out more about this error model and how to work with it in the
703 # [API Design Guide](https://cloud.google.com/apis/design/errors).
704 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
705 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
706 # message types for APIs to use.
707 {
708 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
709 },
710 ],
711 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
712 # user-facing error message should be localized and sent in the
713 # google.rpc.Status.details field, or localized by the client.
714 },
715 &quot;state&quot;: &quot;A String&quot;, # [Output Only] Status of the action, which can be one of the following:
716 # `PROPAGATING`, `PROPAGATED`, `ABANDONED`, `FAILED`, or `DONE`.
717 },
718 },
719 },
720 &quot;startTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was started by the server.
721 # This value is inRFC3339
722 # text format.
723 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the operation, which can be one of the
724 # following:
725 # `PENDING`, `RUNNING`, or `DONE`.
726 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the
727 # operation.
728 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation
729 # of the target resource.
730 &quot;targetLink&quot;: &quot;A String&quot;, # [Output Only] The URL of the resource that the operation modifies. For
731 # operations related to creating a snapshot, this points to the disk
732 # that the snapshot was created from.
733 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example:
734 # `[email protected]` or
735 # `alice_smith_identifier (global/workforcePools/example-com-us-employees)`.
736 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the
737 # operation, this field will be populated.
738 {
739 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute
740 # Engine returns NO_RESULTS_ON_PAGE if there
741 # are no results in the response.
742 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key:
743 # value format. For example:
744 #
745 # &quot;data&quot;: [
746 # {
747 # &quot;key&quot;: &quot;scope&quot;,
748 # &quot;value&quot;: &quot;zones/us-east1-d&quot;
749 # }
750 {
751 &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being
752 # returned. For example, for warnings where there are no results in a list
753 # request for a particular zone, this key might be scope and
754 # the key value might be the zone name. Other examples might be a key
755 # indicating a deprecated resource and a suggested replacement, or a
756 # warning about invalid network settings (for example, if an instance
757 # attempts to perform IP forwarding but is not enabled for IP forwarding).
758 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
759 },
760 ],
761 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
762 },
763 ],
764 &quot;zone&quot;: &quot;A String&quot;, # [Output Only] The URL of the zone where the operation resides. Only
765 # applicable when performing per-zone operations.
766 }</pre>
767 </div>
768
769 <div class="method">
770 <code class="details" id="get">get(project, region, vpnTunnel, x__xgafv=None)</code>
771 <pre>Returns the specified VpnTunnel resource.
772
773 Args:
774 project: string, Project ID for this request. (required)
775 region: string, Name of the region for this request. (required)
776 vpnTunnel: string, Name of the VpnTunnel resource to return. (required)
777 x__xgafv: string, V1 error format.
778 Allowed values
779 1 - v1 error format
780 2 - v2 error format
781
782 Returns:
783 An object of the form:
784
785 { # Represents a Cloud VPN Tunnel resource.
786 #
787 # For more information about VPN, read the
788 # the Cloud VPN Overview.
789 &quot;capacityTier&quot;: &quot;A String&quot;, # Capacity tier of the VPN tunnel. This is used for IPsec over Interconnect
790 # tunnels to indicate different bandwidth limits.
791 &quot;cipherSuite&quot;: { # User specified list of ciphers to use for the phase 1 and phase 2 of the
792 # IKE protocol.
793 &quot;phase1&quot;: {
794 &quot;dh&quot;: [
795 &quot;A String&quot;,
796 ],
797 &quot;encryption&quot;: [
798 &quot;A String&quot;,
799 ],
800 &quot;integrity&quot;: [
801 &quot;A String&quot;,
802 ],
803 &quot;prf&quot;: [
804 &quot;A String&quot;,
805 ],
806 },
807 &quot;phase2&quot;: {
808 &quot;encryption&quot;: [
809 &quot;A String&quot;,
810 ],
811 &quot;integrity&quot;: [
812 &quot;A String&quot;,
813 ],
814 &quot;pfs&quot;: [
815 &quot;A String&quot;,
816 ],
817 },
818 },
819 &quot;creationTimestamp&quot;: &quot;A String&quot;, # Output only. [Output Only] Creation timestamp inRFC3339
820 # text format.
821 &quot;description&quot;: &quot;A String&quot;, # An optional description of this resource. Provide this property when you
822 # create the resource.
823 &quot;detailedStatus&quot;: &quot;A String&quot;, # [Output Only] Detailed status message for the VPN tunnel.
824 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the resource. This identifier is
825 # defined by the server.
826 &quot;ikeVersion&quot;: 42, # IKE protocol version to use when establishing the VPN tunnel with the peer
827 # VPN gateway. Acceptable IKE versions are 1 or 2.
828 # The default version is 2.
829 &quot;kind&quot;: &quot;compute#vpnTunnel&quot;, # Output only. [Output Only] Type of resource. Always compute#vpnTunnel for
830 # VPN tunnels.
831 &quot;labelFingerprint&quot;: &quot;A String&quot;, # A fingerprint for the labels being applied to this VpnTunnel, which is
832 # essentially a hash of the labels set used for optimistic locking. The
833 # fingerprint is initially generated by Compute Engine and changes after
834 # every request to modify or update labels. You must always provide an
835 # up-to-date fingerprint hash in order to update or change labels,
836 # otherwise the request will fail with error412 conditionNotMet.
837 #
838 # To see the latest fingerprint, make a get() request to
839 # retrieve a VpnTunnel.
840 &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.
841 # Label values may be empty.
842 &quot;a_key&quot;: &quot;A String&quot;,
843 },
844 &quot;localTrafficSelector&quot;: [ # Local traffic selector to use when establishing the VPN tunnel with the
845 # peer VPN gateway. The value should be a CIDR formatted string, for
846 # example: 192.168.0.0/16. The ranges must be disjoint.
847 # Only IPv4 is supported for Classic VPN tunnels. This field is output only
848 # for HA VPN tunnels.
849 &quot;A String&quot;,
850 ],
851 &quot;name&quot;: &quot;A String&quot;, # Name of the resource. Provided by the client when the resource is created.
852 # The name must be 1-63 characters long, and comply withRFC1035.
853 # Specifically, the name must be 1-63 characters long and match the regular
854 # expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first
855 # character must be a lowercase letter, and all following characters must
856 # be a dash, lowercase letter, or digit, except the last character, which
857 # cannot be a dash.
858 &quot;params&quot;: { # Input only. [Input Only] Additional params passed with the request, but not persisted
859 # as part of resource payload.
860 &quot;resourceManagerTags&quot;: { # Tag keys/values directly bound to this resource.
861 # Tag keys and values have the same definition as resource
862 # manager tags. The field is allowed for INSERT
863 # only. The keys/values to set on the resource should be specified in
864 # either ID { : } or Namespaced format
865 # { : }.
866 # For example the following are valid inputs:
867 # * {&quot;tagKeys/333&quot; : &quot;tagValues/444&quot;, &quot;tagKeys/123&quot; : &quot;tagValues/456&quot;}
868 # * {&quot;123/environment&quot; : &quot;production&quot;, &quot;345/abc&quot; : &quot;xyz&quot;}
869 # Note:
870 # * Invalid combinations of ID &amp; namespaced format is not supported. For
871 # instance: {&quot;123/environment&quot; : &quot;tagValues/444&quot;} is invalid.
872 # * Inconsistent format is not supported. For instance:
873 # {&quot;tagKeys/333&quot; : &quot;tagValues/444&quot;, &quot;123/env&quot; : &quot;prod&quot;} is invalid.
874 &quot;a_key&quot;: &quot;A String&quot;,
875 },
876 },
877 &quot;peerExternalGateway&quot;: &quot;A String&quot;, # URL of the peer side external VPN gateway to which this VPN tunnel is
878 # connected.
879 # Provided by the client when the VPN tunnel is created.
880 # This field is exclusive with the field peerGcpGateway.
881 &quot;peerExternalGatewayInterface&quot;: 42, # The interface ID of the external VPN gateway to which this VPN tunnel is
882 # connected. Provided by the client when the VPN tunnel is created.
883 # Possible values are: `0`, `1`, `2`, `3`. The number of IDs in use
884 # depends on the external VPN gateway redundancy type.
885 &quot;peerGcpGateway&quot;: &quot;A String&quot;, # URL of the peer side HA VPN gateway to which this VPN tunnel
886 # is connected. Provided by the client when the VPN tunnel is created.
887 # This field can be used when creating highly available VPN from VPC network
888 # to VPC network, the field is exclusive with the field peerExternalGateway.
889 # If provided, the VPN tunnel will automatically use the same
890 # vpnGatewayInterface ID in the peer Google Cloud VPN gateway.
891 &quot;peerIp&quot;: &quot;A String&quot;, # IP address of the peer VPN gateway. Only IPv4 is supported. This field can
892 # be set only for Classic VPN tunnels.
893 &quot;region&quot;: &quot;A String&quot;, # [Output Only] URL of the region where the VPN tunnel resides.
894 # You must specify this field as part of the HTTP request URL. It is
895 # not settable as a field in the request body.
896 &quot;remoteTrafficSelector&quot;: [ # Remote traffic selectors to use when establishing the VPN tunnel with
897 # the peer VPN gateway. The value should be a CIDR formatted string,
898 # for example: 192.168.0.0/16. The ranges should be disjoint. Only IPv4 is
899 # supported for Classic VPN tunnels. This field is output only for HA VPN
900 # tunnels.
901 &quot;A String&quot;,
902 ],
903 &quot;router&quot;: &quot;A String&quot;, # URL of the router resource to be used for dynamic routing.
904 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
905 &quot;sharedSecret&quot;: &quot;A String&quot;, # Shared secret used to set the secure session between the Cloud VPN gateway
906 # and the peer VPN gateway.
907 &quot;sharedSecretHash&quot;: &quot;A String&quot;, # Hash of the shared secret.
908 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the VPN tunnel, which can be one of the
909 # following:
910 #
911 # - PROVISIONING: Resource is being allocated for the VPN tunnel.
912 # - WAITING_FOR_FULL_CONFIG: Waiting to receive all VPN-related configs
913 # from
914 # the user. Network, TargetVpnGateway, VpnTunnel, ForwardingRule, and Route
915 # resources are needed to setup the VPN tunnel.
916 # - FIRST_HANDSHAKE: Successful first handshake with the peer VPN.
917 # - ESTABLISHED: Secure session is successfully established with the peer
918 # VPN.
919 # - NETWORK_ERROR: Deprecated, replaced by
920 # NO_INCOMING_PACKETS
921 # - AUTHORIZATION_ERROR: Auth error (for example,
922 # bad shared secret).
923 # - NEGOTIATION_FAILURE: Handshake failed.
924 # - DEPROVISIONING: Resources are being deallocated for the VPN
925 # tunnel.
926 # - FAILED: Tunnel creation has failed and the tunnel is not
927 # ready to be used.
928 # - NO_INCOMING_PACKETS: No incoming packets from
929 # peer.
930 # - REJECTED: Tunnel configuration was rejected, can be result
931 # of being denied access.
932 # - ALLOCATING_RESOURCES: Cloud VPN is in the
933 # process of allocating all required resources.
934 # - STOPPED: Tunnel is stopped due to its Forwarding Rules being deleted
935 # for Classic VPN tunnels or the project is in frozen state.
936 # - PEER_IDENTITY_MISMATCH: Peer identity does not match peer IP,
937 # probably behind NAT.
938 # - TS_NARROWING_NOT_ALLOWED: Traffic selector
939 # narrowing not allowed for an HA-VPN tunnel.
940 &quot;targetVpnGateway&quot;: &quot;A String&quot;, # URL of the Target VPN gateway with which this VPN tunnel is associated.
941 # Provided by the client when the VPN tunnel is created.
942 # This field can be set only for Classic VPN tunnels.
943 &quot;vpnGateway&quot;: &quot;A String&quot;, # URL of the VPN gateway with which this VPN tunnel is associated.
944 # Provided by the client when the VPN tunnel is created. This must be
945 # used (instead of target_vpn_gateway) if a High Availability VPN gateway
946 # resource is created.
947 &quot;vpnGatewayInterface&quot;: 42, # The interface ID of the VPN gateway with which this VPN tunnel is
948 # associated.
949 # Possible values are: `0`, `1`.
950 }</pre>
951 </div>
952
953 <div class="method">
954 <code class="details" id="insert">insert(project, region, body=None, requestId=None, x__xgafv=None)</code>
955 <pre>Creates a VpnTunnel resource in the specified project and region using
956 the data included in the request.
957
958 Args:
959 project: string, Project ID for this request. (required)
960 region: string, Name of the region for this request. (required)
961 body: object, The request body.
962 The object takes the form of:
963
964 { # Represents a Cloud VPN Tunnel resource.
965 #
966 # For more information about VPN, read the
967 # the Cloud VPN Overview.
968 &quot;capacityTier&quot;: &quot;A String&quot;, # Capacity tier of the VPN tunnel. This is used for IPsec over Interconnect
969 # tunnels to indicate different bandwidth limits.
970 &quot;cipherSuite&quot;: { # User specified list of ciphers to use for the phase 1 and phase 2 of the
971 # IKE protocol.
972 &quot;phase1&quot;: {
973 &quot;dh&quot;: [
974 &quot;A String&quot;,
975 ],
976 &quot;encryption&quot;: [
977 &quot;A String&quot;,
978 ],
979 &quot;integrity&quot;: [
980 &quot;A String&quot;,
981 ],
982 &quot;prf&quot;: [
983 &quot;A String&quot;,
984 ],
985 },
986 &quot;phase2&quot;: {
987 &quot;encryption&quot;: [
988 &quot;A String&quot;,
989 ],
990 &quot;integrity&quot;: [
991 &quot;A String&quot;,
992 ],
993 &quot;pfs&quot;: [
994 &quot;A String&quot;,
995 ],
996 },
997 },
998 &quot;creationTimestamp&quot;: &quot;A String&quot;, # Output only. [Output Only] Creation timestamp inRFC3339
999 # text format.
1000 &quot;description&quot;: &quot;A String&quot;, # An optional description of this resource. Provide this property when you
1001 # create the resource.
1002 &quot;detailedStatus&quot;: &quot;A String&quot;, # [Output Only] Detailed status message for the VPN tunnel.
1003 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the resource. This identifier is
1004 # defined by the server.
1005 &quot;ikeVersion&quot;: 42, # IKE protocol version to use when establishing the VPN tunnel with the peer
1006 # VPN gateway. Acceptable IKE versions are 1 or 2.
1007 # The default version is 2.
1008 &quot;kind&quot;: &quot;compute#vpnTunnel&quot;, # Output only. [Output Only] Type of resource. Always compute#vpnTunnel for
1009 # VPN tunnels.
1010 &quot;labelFingerprint&quot;: &quot;A String&quot;, # A fingerprint for the labels being applied to this VpnTunnel, which is
1011 # essentially a hash of the labels set used for optimistic locking. The
1012 # fingerprint is initially generated by Compute Engine and changes after
1013 # every request to modify or update labels. You must always provide an
1014 # up-to-date fingerprint hash in order to update or change labels,
1015 # otherwise the request will fail with error412 conditionNotMet.
1016 #
1017 # To see the latest fingerprint, make a get() request to
1018 # retrieve a VpnTunnel.
1019 &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.
1020 # Label values may be empty.
1021 &quot;a_key&quot;: &quot;A String&quot;,
1022 },
1023 &quot;localTrafficSelector&quot;: [ # Local traffic selector to use when establishing the VPN tunnel with the
1024 # peer VPN gateway. The value should be a CIDR formatted string, for
1025 # example: 192.168.0.0/16. The ranges must be disjoint.
1026 # Only IPv4 is supported for Classic VPN tunnels. This field is output only
1027 # for HA VPN tunnels.
1028 &quot;A String&quot;,
1029 ],
1030 &quot;name&quot;: &quot;A String&quot;, # Name of the resource. Provided by the client when the resource is created.
1031 # The name must be 1-63 characters long, and comply withRFC1035.
1032 # Specifically, the name must be 1-63 characters long and match the regular
1033 # expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first
1034 # character must be a lowercase letter, and all following characters must
1035 # be a dash, lowercase letter, or digit, except the last character, which
1036 # cannot be a dash.
1037 &quot;params&quot;: { # Input only. [Input Only] Additional params passed with the request, but not persisted
1038 # as part of resource payload.
1039 &quot;resourceManagerTags&quot;: { # Tag keys/values directly bound to this resource.
1040 # Tag keys and values have the same definition as resource
1041 # manager tags. The field is allowed for INSERT
1042 # only. The keys/values to set on the resource should be specified in
1043 # either ID { : } or Namespaced format
1044 # { : }.
1045 # For example the following are valid inputs:
1046 # * {&quot;tagKeys/333&quot; : &quot;tagValues/444&quot;, &quot;tagKeys/123&quot; : &quot;tagValues/456&quot;}
1047 # * {&quot;123/environment&quot; : &quot;production&quot;, &quot;345/abc&quot; : &quot;xyz&quot;}
1048 # Note:
1049 # * Invalid combinations of ID &amp; namespaced format is not supported. For
1050 # instance: {&quot;123/environment&quot; : &quot;tagValues/444&quot;} is invalid.
1051 # * Inconsistent format is not supported. For instance:
1052 # {&quot;tagKeys/333&quot; : &quot;tagValues/444&quot;, &quot;123/env&quot; : &quot;prod&quot;} is invalid.
1053 &quot;a_key&quot;: &quot;A String&quot;,
1054 },
1055 },
1056 &quot;peerExternalGateway&quot;: &quot;A String&quot;, # URL of the peer side external VPN gateway to which this VPN tunnel is
1057 # connected.
1058 # Provided by the client when the VPN tunnel is created.
1059 # This field is exclusive with the field peerGcpGateway.
1060 &quot;peerExternalGatewayInterface&quot;: 42, # The interface ID of the external VPN gateway to which this VPN tunnel is
1061 # connected. Provided by the client when the VPN tunnel is created.
1062 # Possible values are: `0`, `1`, `2`, `3`. The number of IDs in use
1063 # depends on the external VPN gateway redundancy type.
1064 &quot;peerGcpGateway&quot;: &quot;A String&quot;, # URL of the peer side HA VPN gateway to which this VPN tunnel
1065 # is connected. Provided by the client when the VPN tunnel is created.
1066 # This field can be used when creating highly available VPN from VPC network
1067 # to VPC network, the field is exclusive with the field peerExternalGateway.
1068 # If provided, the VPN tunnel will automatically use the same
1069 # vpnGatewayInterface ID in the peer Google Cloud VPN gateway.
1070 &quot;peerIp&quot;: &quot;A String&quot;, # IP address of the peer VPN gateway. Only IPv4 is supported. This field can
1071 # be set only for Classic VPN tunnels.
1072 &quot;region&quot;: &quot;A String&quot;, # [Output Only] URL of the region where the VPN tunnel resides.
1073 # You must specify this field as part of the HTTP request URL. It is
1074 # not settable as a field in the request body.
1075 &quot;remoteTrafficSelector&quot;: [ # Remote traffic selectors to use when establishing the VPN tunnel with
1076 # the peer VPN gateway. The value should be a CIDR formatted string,
1077 # for example: 192.168.0.0/16. The ranges should be disjoint. Only IPv4 is
1078 # supported for Classic VPN tunnels. This field is output only for HA VPN
1079 # tunnels.
1080 &quot;A String&quot;,
1081 ],
1082 &quot;router&quot;: &quot;A String&quot;, # URL of the router resource to be used for dynamic routing.
1083 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
1084 &quot;sharedSecret&quot;: &quot;A String&quot;, # Shared secret used to set the secure session between the Cloud VPN gateway
1085 # and the peer VPN gateway.
1086 &quot;sharedSecretHash&quot;: &quot;A String&quot;, # Hash of the shared secret.
1087 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the VPN tunnel, which can be one of the
1088 # following:
1089 #
1090 # - PROVISIONING: Resource is being allocated for the VPN tunnel.
1091 # - WAITING_FOR_FULL_CONFIG: Waiting to receive all VPN-related configs
1092 # from
1093 # the user. Network, TargetVpnGateway, VpnTunnel, ForwardingRule, and Route
1094 # resources are needed to setup the VPN tunnel.
1095 # - FIRST_HANDSHAKE: Successful first handshake with the peer VPN.
1096 # - ESTABLISHED: Secure session is successfully established with the peer
1097 # VPN.
1098 # - NETWORK_ERROR: Deprecated, replaced by
1099 # NO_INCOMING_PACKETS
1100 # - AUTHORIZATION_ERROR: Auth error (for example,
1101 # bad shared secret).
1102 # - NEGOTIATION_FAILURE: Handshake failed.
1103 # - DEPROVISIONING: Resources are being deallocated for the VPN
1104 # tunnel.
1105 # - FAILED: Tunnel creation has failed and the tunnel is not
1106 # ready to be used.
1107 # - NO_INCOMING_PACKETS: No incoming packets from
1108 # peer.
1109 # - REJECTED: Tunnel configuration was rejected, can be result
1110 # of being denied access.
1111 # - ALLOCATING_RESOURCES: Cloud VPN is in the
1112 # process of allocating all required resources.
1113 # - STOPPED: Tunnel is stopped due to its Forwarding Rules being deleted
1114 # for Classic VPN tunnels or the project is in frozen state.
1115 # - PEER_IDENTITY_MISMATCH: Peer identity does not match peer IP,
1116 # probably behind NAT.
1117 # - TS_NARROWING_NOT_ALLOWED: Traffic selector
1118 # narrowing not allowed for an HA-VPN tunnel.
1119 &quot;targetVpnGateway&quot;: &quot;A String&quot;, # URL of the Target VPN gateway with which this VPN tunnel is associated.
1120 # Provided by the client when the VPN tunnel is created.
1121 # This field can be set only for Classic VPN tunnels.
1122 &quot;vpnGateway&quot;: &quot;A String&quot;, # URL of the VPN gateway with which this VPN tunnel is associated.
1123 # Provided by the client when the VPN tunnel is created. This must be
1124 # used (instead of target_vpn_gateway) if a High Availability VPN gateway
1125 # resource is created.
1126 &quot;vpnGatewayInterface&quot;: 42, # The interface ID of the VPN gateway with which this VPN tunnel is
1127 # associated.
1128 # Possible values are: `0`, `1`.
1129 }
1130
1131 requestId: string, An optional request ID to identify requests. Specify a unique request ID so
1132 that if you must retry your request, the server will know to ignore the
1133 request if it has already been completed.
1134
1135 For example, consider a situation where you make an initial request and
1136 the request times out. If you make the request again with the same
1137 request ID, the server can check if original operation with the same
1138 request ID was received, and if so, will ignore the second request. This
1139 prevents clients from accidentally creating duplicate commitments.
1140
1141 The request ID must be
1142 a valid UUID with the exception that zero UUID is not supported
1143 (00000000-0000-0000-0000-000000000000).
1144 x__xgafv: string, V1 error format.
1145 Allowed values
1146 1 - v1 error format
1147 2 - v2 error format
1148
1149 Returns:
1150 An object of the form:
1151
1152 { # Represents an Operation resource.
1153 #
1154 # Google Compute Engine has three Operation resources:
1155 #
1156 # * [Global](/compute/docs/reference/rest/alpha/globalOperations)
1157 # * [Regional](/compute/docs/reference/rest/alpha/regionOperations)
1158 # * [Zonal](/compute/docs/reference/rest/alpha/zoneOperations)
1159 #
1160 # You can use an operation resource to manage asynchronous API requests.
1161 # For more information, readHandling
1162 # API responses.
1163 #
1164 # Operations can be global, regional or zonal.
1165 #
1166 # - For global operations, use the `globalOperations`
1167 # resource.
1168 # - For regional operations, use the
1169 # `regionOperations` resource.
1170 # - For zonal operations, use
1171 # the `zoneOperations` resource.
1172 #
1173 #
1174 #
1175 # For more information, read
1176 # Global, Regional, and Zonal Resources.
1177 #
1178 # Note that completed Operation resources have a limited
1179 # retention period.
1180 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request.
1181 # Not present otherwise.
1182 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
1183 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is
1184 # set when the operation is created.
1185 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is inRFC3339
1186 # text format.
1187 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation,
1188 # this field will be populated.
1189 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this
1190 # operation.
1191 {
1192 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
1193 &quot;errorDetails&quot;: [ # [Output Only] An optional list of messages that contain the error
1194 # details. There is a set of defined message types to use for providing
1195 # details.The syntax depends on the error code. For example,
1196 # QuotaExceededInfo will have details when the error code is
1197 # QUOTA_EXCEEDED.
1198 {
1199 &quot;errorInfo&quot;: { # Describes the cause of the error with structured details.
1200 #
1201 # Example of an error when contacting the &quot;pubsub.googleapis.com&quot; API when it
1202 # is not enabled:
1203 #
1204 # { &quot;reason&quot;: &quot;API_DISABLED&quot;
1205 # &quot;domain&quot;: &quot;googleapis.com&quot;
1206 # &quot;metadata&quot;: {
1207 # &quot;resource&quot;: &quot;projects/123&quot;,
1208 # &quot;service&quot;: &quot;pubsub.googleapis.com&quot;
1209 # }
1210 # }
1211 #
1212 # This response indicates that the pubsub.googleapis.com API is not enabled.
1213 #
1214 # Example of an error that is returned when attempting to create a Spanner
1215 # instance in a region that is out of stock:
1216 #
1217 # { &quot;reason&quot;: &quot;STOCKOUT&quot;
1218 # &quot;domain&quot;: &quot;spanner.googleapis.com&quot;,
1219 # &quot;metadata&quot;: {
1220 # &quot;availableRegions&quot;: &quot;us-central1,us-east2&quot;
1221 # }
1222 # }
1223 &quot;domain&quot;: &quot;A String&quot;, # The logical grouping to which the &quot;reason&quot; belongs. The error domain
1224 # is typically the registered service name of the tool or product that
1225 # generates the error. Example: &quot;pubsub.googleapis.com&quot;. If the error is
1226 # generated by some common infrastructure, the error domain must be a
1227 # globally unique value that identifies the infrastructure. For Google API
1228 # infrastructure, the error domain is &quot;googleapis.com&quot;.
1229 &quot;metadatas&quot;: { # Additional structured details about this error.
1230 #
1231 # Keys must match a regular expression of `a-z+` but should
1232 # ideally be lowerCamelCase. Also, they must be limited to 64 characters in
1233 # length. When identifying the current value of an exceeded limit, the units
1234 # should be contained in the key, not the value. For example, rather than
1235 # `{&quot;instanceLimit&quot;: &quot;100/request&quot;}`, should be returned as,
1236 # `{&quot;instanceLimitPerRequest&quot;: &quot;100&quot;}`, if the client exceeds the number of
1237 # instances that can be created in a single (batch) request.
1238 &quot;a_key&quot;: &quot;A String&quot;,
1239 },
1240 &quot;reason&quot;: &quot;A String&quot;, # The reason of the error. This is a constant value that identifies the
1241 # proximate cause of the error. Error reasons are unique within a particular
1242 # domain of errors. This should be at most 63 characters and match a
1243 # regular expression of `A-Z+[A-Z0-9]`, which represents
1244 # UPPER_SNAKE_CASE.
1245 },
1246 &quot;help&quot;: { # Provides links to documentation or for performing an out of band action.
1247 #
1248 # For example, if a quota check failed with an error indicating the calling
1249 # project hasn&#x27;t enabled the accessed service, this can contain a URL pointing
1250 # directly to the right place in the developer console to flip the bit.
1251 &quot;links&quot;: [ # URL(s) pointing to additional information on handling the current error.
1252 { # Describes a URL link.
1253 &quot;description&quot;: &quot;A String&quot;, # Describes what the link offers.
1254 &quot;url&quot;: &quot;A String&quot;, # The URL of the link.
1255 },
1256 ],
1257 },
1258 &quot;localizedMessage&quot;: { # Provides a localized error message that is safe to return to the user
1259 # which can be attached to an RPC error.
1260 &quot;locale&quot;: &quot;A String&quot;, # The locale used following the specification defined at
1261 # https://www.rfc-editor.org/rfc/bcp/bcp47.txt.
1262 # Examples are: &quot;en-US&quot;, &quot;fr-CH&quot;, &quot;es-MX&quot;
1263 &quot;message&quot;: &quot;A String&quot;, # The localized error message in the above locale.
1264 },
1265 &quot;quotaInfo&quot;: { # Additional details for quota exceeded error for resource quota.
1266 &quot;dimensions&quot;: { # The map holding related quota dimensions.
1267 &quot;a_key&quot;: &quot;A String&quot;,
1268 },
1269 &quot;futureLimit&quot;: 3.14, # Future quota limit being rolled out. The limit&#x27;s unit depends on the quota
1270 # type or metric.
1271 &quot;limit&quot;: 3.14, # Current effective quota limit. The limit&#x27;s unit depends on the quota type
1272 # or metric.
1273 &quot;limitName&quot;: &quot;A String&quot;, # The name of the quota limit.
1274 &quot;metricName&quot;: &quot;A String&quot;, # The Compute Engine quota metric name.
1275 &quot;rolloutStatus&quot;: &quot;A String&quot;, # Rollout status of the future quota limit.
1276 },
1277 },
1278 ],
1279 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error.
1280 # This property is optional.
1281 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
1282 },
1283 ],
1284 },
1285 &quot;getVersionOperationMetadata&quot;: {
1286 &quot;inlineSbomInfo&quot;: {
1287 &quot;currentComponentVersions&quot;: { # A mapping of components to their currently-applied versions or other
1288 # appropriate identifiers.
1289 &quot;a_key&quot;: &quot;A String&quot;,
1290 },
1291 &quot;targetComponentVersions&quot;: { # A mapping of components to their target versions or other appropriate
1292 # identifiers.
1293 &quot;a_key&quot;: &quot;A String&quot;,
1294 },
1295 },
1296 },
1297 &quot;httpErrorMessage&quot;: &quot;A String&quot;, # [Output Only] If the operation fails, this field contains the HTTP error
1298 # message that was returned, such as `NOT FOUND`.
1299 &quot;httpErrorStatusCode&quot;: 42, # [Output Only] If the operation fails, this field contains the HTTP error
1300 # status code that was returned. For example, a `404` means the
1301 # resource was not found.
1302 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is
1303 # defined by the server.
1304 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested.
1305 # This value is inRFC3339
1306 # text format.
1307 &quot;instancesBulkInsertOperationMetadata&quot;: {
1308 &quot;perLocationStatus&quot;: { # Status information per location (location name is key).
1309 # Example key: zones/us-central1-a
1310 &quot;a_key&quot;: {
1311 &quot;createdVmCount&quot;: 42, # [Output Only] Count of VMs successfully created so far.
1312 &quot;deletedVmCount&quot;: 42, # [Output Only] Count of VMs that got deleted during rollback.
1313 &quot;failedToCreateVmCount&quot;: 42, # [Output Only] Count of VMs that started creating but encountered an
1314 # error.
1315 &quot;status&quot;: &quot;A String&quot;, # [Output Only] Creation status of BulkInsert operation - information
1316 # if the flow is rolling forward or rolling back.
1317 &quot;targetVmCount&quot;: 42, # [Output Only] Count of VMs originally planned to be created.
1318 },
1319 },
1320 },
1321 &quot;kind&quot;: &quot;compute#operation&quot;, # Output only. [Output Only] Type of the resource. Always `compute#operation` for
1322 # Operation resources.
1323 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
1324 &quot;operationGroupId&quot;: &quot;A String&quot;, # Output only. [Output Only] An ID that represents a group of operations, such as when a
1325 # group of operations results from a `bulkInsert` API request.
1326 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`,
1327 # `update`, or `delete`, and so on.
1328 &quot;progress&quot;: 42, # [Output Only] An optional progress indicator that ranges from 0 to 100.
1329 # There is no requirement that this be linear or support any granularity of
1330 # operations. This should not be used to guess when the operation will be
1331 # complete. This number should monotonically increase as the operation
1332 # progresses.
1333 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only
1334 # applicable when performing regional operations.
1335 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
1336 &quot;selfLinkWithId&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined URL for this resource with the resource id.
1337 &quot;setCommonInstanceMetadataOperationMetadata&quot;: { # Output only. [Output Only] If the operation is for projects.setCommonInstanceMetadata,
1338 # this field will contain information on all underlying zonal actions and
1339 # their state.
1340 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The client operation id.
1341 &quot;perLocationOperations&quot;: { # [Output Only] Status information per location (location name is key).
1342 # Example key: zones/us-central1-a
1343 &quot;a_key&quot;: {
1344 &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
1345 # populated.
1346 # different programming environments, including REST APIs and RPC APIs. It is
1347 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
1348 # three pieces of data: error code, error message, and error details.
1349 #
1350 # You can find out more about this error model and how to work with it in the
1351 # [API Design Guide](https://cloud.google.com/apis/design/errors).
1352 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1353 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
1354 # message types for APIs to use.
1355 {
1356 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1357 },
1358 ],
1359 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
1360 # user-facing error message should be localized and sent in the
1361 # google.rpc.Status.details field, or localized by the client.
1362 },
1363 &quot;state&quot;: &quot;A String&quot;, # [Output Only] Status of the action, which can be one of the following:
1364 # `PROPAGATING`, `PROPAGATED`, `ABANDONED`, `FAILED`, or `DONE`.
1365 },
1366 },
1367 },
1368 &quot;startTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was started by the server.
1369 # This value is inRFC3339
1370 # text format.
1371 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the operation, which can be one of the
1372 # following:
1373 # `PENDING`, `RUNNING`, or `DONE`.
1374 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the
1375 # operation.
1376 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation
1377 # of the target resource.
1378 &quot;targetLink&quot;: &quot;A String&quot;, # [Output Only] The URL of the resource that the operation modifies. For
1379 # operations related to creating a snapshot, this points to the disk
1380 # that the snapshot was created from.
1381 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example:
1382 # `[email protected]` or
1383 # `alice_smith_identifier (global/workforcePools/example-com-us-employees)`.
1384 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the
1385 # operation, this field will be populated.
1386 {
1387 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute
1388 # Engine returns NO_RESULTS_ON_PAGE if there
1389 # are no results in the response.
1390 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key:
1391 # value format. For example:
1392 #
1393 # &quot;data&quot;: [
1394 # {
1395 # &quot;key&quot;: &quot;scope&quot;,
1396 # &quot;value&quot;: &quot;zones/us-east1-d&quot;
1397 # }
1398 {
1399 &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being
1400 # returned. For example, for warnings where there are no results in a list
1401 # request for a particular zone, this key might be scope and
1402 # the key value might be the zone name. Other examples might be a key
1403 # indicating a deprecated resource and a suggested replacement, or a
1404 # warning about invalid network settings (for example, if an instance
1405 # attempts to perform IP forwarding but is not enabled for IP forwarding).
1406 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
1407 },
1408 ],
1409 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
1410 },
1411 ],
1412 &quot;zone&quot;: &quot;A String&quot;, # [Output Only] The URL of the zone where the operation resides. Only
1413 # applicable when performing per-zone operations.
1414 }</pre>
1415 </div>
1416
1417 <div class="method">
1418 <code class="details" id="list">list(project, region, filter=None, maxResults=None, orderBy=None, pageToken=None, returnPartialSuccess=None, x__xgafv=None)</code>
1419 <pre>Retrieves a list of VpnTunnel resources contained in the specified
1420 project and region.
1421
1422 Args:
1423 project: string, Project ID for this request. (required)
1424 region: string, Name of the region for this request. (required)
1425 filter: string, A filter expression that filters resources listed in the response. Most
1426 Compute resources support two types of filter expressions:
1427 expressions that support regular expressions and expressions that follow
1428 API improvement proposal AIP-160.
1429 These two types of filter expressions cannot be mixed in one request.
1430
1431 If you want to use AIP-160, your expression must specify the field name, an
1432 operator, and the value that you want to use for filtering. The value
1433 must be a string, a number, or a boolean. The operator
1434 must be either `=`, `!=`, `&gt;`, `&lt;`, `&lt;=`, `&gt;=` or `:`.
1435
1436 For example, if you are filtering Compute Engine instances, you can
1437 exclude instances named `example-instance` by specifying
1438 `name != example-instance`.
1439
1440 The `:*` comparison can be used to test whether a key has been defined.
1441 For example, to find all objects with `owner` label use:
1442 ```
1443 labels.owner:*
1444 ```
1445
1446 You can also filter nested fields. For example, you could specify
1447 `scheduling.automaticRestart = false` to include instances only
1448 if they are not scheduled for automatic restarts. You can use filtering
1449 on nested fields to filter based onresource labels.
1450
1451 To filter on multiple expressions, provide each separate expression within
1452 parentheses. For example:
1453 ```
1454 (scheduling.automaticRestart = true)
1455 (cpuPlatform = &quot;Intel Skylake&quot;)
1456 ```
1457 By default, each expression is an `AND` expression. However, you
1458 can include `AND` and `OR` expressions explicitly.
1459 For example:
1460 ```
1461 (cpuPlatform = &quot;Intel Skylake&quot;) OR
1462 (cpuPlatform = &quot;Intel Broadwell&quot;) AND
1463 (scheduling.automaticRestart = true)
1464 ```
1465
1466 If you want to use a regular expression, use the `eq` (equal) or `ne`
1467 (not equal) operator against a single un-parenthesized expression with or
1468 without quotes or against multiple parenthesized expressions. Examples:
1469
1470 `fieldname eq unquoted literal`
1471 `fieldname eq &#x27;single quoted literal&#x27;`
1472 `fieldname eq &quot;double quoted literal&quot;`
1473 `(fieldname1 eq literal) (fieldname2 ne &quot;literal&quot;)`
1474
1475 The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
1476 The literal value must match the entire field.
1477
1478 For example, to filter for instances that do not end with name &quot;instance&quot;,
1479 you would use `name ne .*instance`.
1480
1481 You cannot combine constraints on multiple fields using regular
1482 expressions.
1483 maxResults: integer, The maximum number of results per page that should be returned.
1484 If the number of available results is larger than `maxResults`,
1485 Compute Engine returns a `nextPageToken` that can be used to get
1486 the next page of results in subsequent list requests. Acceptable values are
1487 `0` to `500`, inclusive. (Default: `500`)
1488 orderBy: string, Sorts list results by a certain order. By default, results
1489 are returned in alphanumerical order based on the resource name.
1490
1491 You can also sort results in descending order based on the creation
1492 timestamp using `orderBy=&quot;creationTimestamp desc&quot;`. This sorts
1493 results based on the `creationTimestamp` field in
1494 reverse chronological order (newest result first). Use this to sort
1495 resources like operations so that the newest operation is returned first.
1496
1497 Currently, only sorting by `name` or
1498 `creationTimestamp desc` is supported.
1499 pageToken: string, Specifies a page token to use. Set `pageToken` to the
1500 `nextPageToken` returned by a previous list request to get
1501 the next page of results.
1502 returnPartialSuccess: boolean, Opt-in for partial success behavior which provides partial results in case
1503 of failure. The default value is false.
1504
1505 For example, when partial success behavior is enabled, aggregatedList for a
1506 single zone scope either returns all resources in the zone or no resources,
1507 with an error code.
1508 x__xgafv: string, V1 error format.
1509 Allowed values
1510 1 - v1 error format
1511 2 - v2 error format
1512
1513 Returns:
1514 An object of the form:
1515
1516 { # Contains a list of VpnTunnel resources.
1517 &quot;id&quot;: &quot;A String&quot;, # [Output Only] Unique identifier for the resource; defined by the server.
1518 &quot;items&quot;: [ # A list of VpnTunnel resources.
1519 { # Represents a Cloud VPN Tunnel resource.
1520 #
1521 # For more information about VPN, read the
1522 # the Cloud VPN Overview.
1523 &quot;capacityTier&quot;: &quot;A String&quot;, # Capacity tier of the VPN tunnel. This is used for IPsec over Interconnect
1524 # tunnels to indicate different bandwidth limits.
1525 &quot;cipherSuite&quot;: { # User specified list of ciphers to use for the phase 1 and phase 2 of the
1526 # IKE protocol.
1527 &quot;phase1&quot;: {
1528 &quot;dh&quot;: [
1529 &quot;A String&quot;,
1530 ],
1531 &quot;encryption&quot;: [
1532 &quot;A String&quot;,
1533 ],
1534 &quot;integrity&quot;: [
1535 &quot;A String&quot;,
1536 ],
1537 &quot;prf&quot;: [
1538 &quot;A String&quot;,
1539 ],
1540 },
1541 &quot;phase2&quot;: {
1542 &quot;encryption&quot;: [
1543 &quot;A String&quot;,
1544 ],
1545 &quot;integrity&quot;: [
1546 &quot;A String&quot;,
1547 ],
1548 &quot;pfs&quot;: [
1549 &quot;A String&quot;,
1550 ],
1551 },
1552 },
1553 &quot;creationTimestamp&quot;: &quot;A String&quot;, # Output only. [Output Only] Creation timestamp inRFC3339
1554 # text format.
1555 &quot;description&quot;: &quot;A String&quot;, # An optional description of this resource. Provide this property when you
1556 # create the resource.
1557 &quot;detailedStatus&quot;: &quot;A String&quot;, # [Output Only] Detailed status message for the VPN tunnel.
1558 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the resource. This identifier is
1559 # defined by the server.
1560 &quot;ikeVersion&quot;: 42, # IKE protocol version to use when establishing the VPN tunnel with the peer
1561 # VPN gateway. Acceptable IKE versions are 1 or 2.
1562 # The default version is 2.
1563 &quot;kind&quot;: &quot;compute#vpnTunnel&quot;, # Output only. [Output Only] Type of resource. Always compute#vpnTunnel for
1564 # VPN tunnels.
1565 &quot;labelFingerprint&quot;: &quot;A String&quot;, # A fingerprint for the labels being applied to this VpnTunnel, which is
1566 # essentially a hash of the labels set used for optimistic locking. The
1567 # fingerprint is initially generated by Compute Engine and changes after
1568 # every request to modify or update labels. You must always provide an
1569 # up-to-date fingerprint hash in order to update or change labels,
1570 # otherwise the request will fail with error412 conditionNotMet.
1571 #
1572 # To see the latest fingerprint, make a get() request to
1573 # retrieve a VpnTunnel.
1574 &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.
1575 # Label values may be empty.
1576 &quot;a_key&quot;: &quot;A String&quot;,
1577 },
1578 &quot;localTrafficSelector&quot;: [ # Local traffic selector to use when establishing the VPN tunnel with the
1579 # peer VPN gateway. The value should be a CIDR formatted string, for
1580 # example: 192.168.0.0/16. The ranges must be disjoint.
1581 # Only IPv4 is supported for Classic VPN tunnels. This field is output only
1582 # for HA VPN tunnels.
1583 &quot;A String&quot;,
1584 ],
1585 &quot;name&quot;: &quot;A String&quot;, # Name of the resource. Provided by the client when the resource is created.
1586 # The name must be 1-63 characters long, and comply withRFC1035.
1587 # Specifically, the name must be 1-63 characters long and match the regular
1588 # expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first
1589 # character must be a lowercase letter, and all following characters must
1590 # be a dash, lowercase letter, or digit, except the last character, which
1591 # cannot be a dash.
1592 &quot;params&quot;: { # Input only. [Input Only] Additional params passed with the request, but not persisted
1593 # as part of resource payload.
1594 &quot;resourceManagerTags&quot;: { # Tag keys/values directly bound to this resource.
1595 # Tag keys and values have the same definition as resource
1596 # manager tags. The field is allowed for INSERT
1597 # only. The keys/values to set on the resource should be specified in
1598 # either ID { : } or Namespaced format
1599 # { : }.
1600 # For example the following are valid inputs:
1601 # * {&quot;tagKeys/333&quot; : &quot;tagValues/444&quot;, &quot;tagKeys/123&quot; : &quot;tagValues/456&quot;}
1602 # * {&quot;123/environment&quot; : &quot;production&quot;, &quot;345/abc&quot; : &quot;xyz&quot;}
1603 # Note:
1604 # * Invalid combinations of ID &amp; namespaced format is not supported. For
1605 # instance: {&quot;123/environment&quot; : &quot;tagValues/444&quot;} is invalid.
1606 # * Inconsistent format is not supported. For instance:
1607 # {&quot;tagKeys/333&quot; : &quot;tagValues/444&quot;, &quot;123/env&quot; : &quot;prod&quot;} is invalid.
1608 &quot;a_key&quot;: &quot;A String&quot;,
1609 },
1610 },
1611 &quot;peerExternalGateway&quot;: &quot;A String&quot;, # URL of the peer side external VPN gateway to which this VPN tunnel is
1612 # connected.
1613 # Provided by the client when the VPN tunnel is created.
1614 # This field is exclusive with the field peerGcpGateway.
1615 &quot;peerExternalGatewayInterface&quot;: 42, # The interface ID of the external VPN gateway to which this VPN tunnel is
1616 # connected. Provided by the client when the VPN tunnel is created.
1617 # Possible values are: `0`, `1`, `2`, `3`. The number of IDs in use
1618 # depends on the external VPN gateway redundancy type.
1619 &quot;peerGcpGateway&quot;: &quot;A String&quot;, # URL of the peer side HA VPN gateway to which this VPN tunnel
1620 # is connected. Provided by the client when the VPN tunnel is created.
1621 # This field can be used when creating highly available VPN from VPC network
1622 # to VPC network, the field is exclusive with the field peerExternalGateway.
1623 # If provided, the VPN tunnel will automatically use the same
1624 # vpnGatewayInterface ID in the peer Google Cloud VPN gateway.
1625 &quot;peerIp&quot;: &quot;A String&quot;, # IP address of the peer VPN gateway. Only IPv4 is supported. This field can
1626 # be set only for Classic VPN tunnels.
1627 &quot;region&quot;: &quot;A String&quot;, # [Output Only] URL of the region where the VPN tunnel resides.
1628 # You must specify this field as part of the HTTP request URL. It is
1629 # not settable as a field in the request body.
1630 &quot;remoteTrafficSelector&quot;: [ # Remote traffic selectors to use when establishing the VPN tunnel with
1631 # the peer VPN gateway. The value should be a CIDR formatted string,
1632 # for example: 192.168.0.0/16. The ranges should be disjoint. Only IPv4 is
1633 # supported for Classic VPN tunnels. This field is output only for HA VPN
1634 # tunnels.
1635 &quot;A String&quot;,
1636 ],
1637 &quot;router&quot;: &quot;A String&quot;, # URL of the router resource to be used for dynamic routing.
1638 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
1639 &quot;sharedSecret&quot;: &quot;A String&quot;, # Shared secret used to set the secure session between the Cloud VPN gateway
1640 # and the peer VPN gateway.
1641 &quot;sharedSecretHash&quot;: &quot;A String&quot;, # Hash of the shared secret.
1642 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the VPN tunnel, which can be one of the
1643 # following:
1644 #
1645 # - PROVISIONING: Resource is being allocated for the VPN tunnel.
1646 # - WAITING_FOR_FULL_CONFIG: Waiting to receive all VPN-related configs
1647 # from
1648 # the user. Network, TargetVpnGateway, VpnTunnel, ForwardingRule, and Route
1649 # resources are needed to setup the VPN tunnel.
1650 # - FIRST_HANDSHAKE: Successful first handshake with the peer VPN.
1651 # - ESTABLISHED: Secure session is successfully established with the peer
1652 # VPN.
1653 # - NETWORK_ERROR: Deprecated, replaced by
1654 # NO_INCOMING_PACKETS
1655 # - AUTHORIZATION_ERROR: Auth error (for example,
1656 # bad shared secret).
1657 # - NEGOTIATION_FAILURE: Handshake failed.
1658 # - DEPROVISIONING: Resources are being deallocated for the VPN
1659 # tunnel.
1660 # - FAILED: Tunnel creation has failed and the tunnel is not
1661 # ready to be used.
1662 # - NO_INCOMING_PACKETS: No incoming packets from
1663 # peer.
1664 # - REJECTED: Tunnel configuration was rejected, can be result
1665 # of being denied access.
1666 # - ALLOCATING_RESOURCES: Cloud VPN is in the
1667 # process of allocating all required resources.
1668 # - STOPPED: Tunnel is stopped due to its Forwarding Rules being deleted
1669 # for Classic VPN tunnels or the project is in frozen state.
1670 # - PEER_IDENTITY_MISMATCH: Peer identity does not match peer IP,
1671 # probably behind NAT.
1672 # - TS_NARROWING_NOT_ALLOWED: Traffic selector
1673 # narrowing not allowed for an HA-VPN tunnel.
1674 &quot;targetVpnGateway&quot;: &quot;A String&quot;, # URL of the Target VPN gateway with which this VPN tunnel is associated.
1675 # Provided by the client when the VPN tunnel is created.
1676 # This field can be set only for Classic VPN tunnels.
1677 &quot;vpnGateway&quot;: &quot;A String&quot;, # URL of the VPN gateway with which this VPN tunnel is associated.
1678 # Provided by the client when the VPN tunnel is created. This must be
1679 # used (instead of target_vpn_gateway) if a High Availability VPN gateway
1680 # resource is created.
1681 &quot;vpnGatewayInterface&quot;: 42, # The interface ID of the VPN gateway with which this VPN tunnel is
1682 # associated.
1683 # Possible values are: `0`, `1`.
1684 },
1685 ],
1686 &quot;kind&quot;: &quot;compute#vpnTunnelList&quot;, # Output only. [Output Only] Type of resource. Always compute#vpnTunnel for
1687 # VPN tunnels.
1688 &quot;nextPageToken&quot;: &quot;A String&quot;, # [Output Only] This token allows you to get the next page of results for
1689 # list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for
1690 # the query parameter pageToken in the next list request.
1691 # Subsequent list requests will have their own nextPageToken to
1692 # continue paging through the results.
1693 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined URL for this resource.
1694 &quot;warning&quot;: { # [Output Only] Informational warning message.
1695 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute
1696 # Engine returns NO_RESULTS_ON_PAGE if there
1697 # are no results in the response.
1698 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key:
1699 # value format. For example:
1700 #
1701 # &quot;data&quot;: [
1702 # {
1703 # &quot;key&quot;: &quot;scope&quot;,
1704 # &quot;value&quot;: &quot;zones/us-east1-d&quot;
1705 # }
1706 {
1707 &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being
1708 # returned. For example, for warnings where there are no results in a list
1709 # request for a particular zone, this key might be scope and
1710 # the key value might be the zone name. Other examples might be a key
1711 # indicating a deprecated resource and a suggested replacement, or a
1712 # warning about invalid network settings (for example, if an instance
1713 # attempts to perform IP forwarding but is not enabled for IP forwarding).
1714 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
1715 },
1716 ],
1717 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
1718 },
1719 }</pre>
1720 </div>
1721
1722 <div class="method">
1723 <code class="details" id="list_next">list_next()</code>
1724 <pre>Retrieves the next page of results.
1725
1726 Args:
1727 previous_request: The request for the previous page. (required)
1728 previous_response: The response from the request for the previous page. (required)
1729
1730 Returns:
1731 A request object that you can call &#x27;execute()&#x27; on to request the next
1732 page. Returns None if there are no more items in the collection.
1733 </pre>
1734 </div>
1735
1736 <div class="method">
1737 <code class="details" id="setLabels">setLabels(project, region, resource, body=None, requestId=None, x__xgafv=None)</code>
1738 <pre>Sets the labels on a VpnTunnel. To learn more about labels, read theLabeling
1739 Resources documentation.
1740
1741 Args:
1742 project: string, Project ID for this request. (required)
1743 region: string, The region for this request. (required)
1744 resource: string, Name or id of the resource for this request. (required)
1745 body: object, The request body.
1746 The object takes the form of:
1747
1748 {
1749 &quot;labelFingerprint&quot;: &quot;A String&quot;, # The fingerprint of the previous set of labels for this resource,
1750 # used to detect conflicts. The fingerprint is initially generated by Compute
1751 # Engine and changes after every request to modify or update labels. You must
1752 # always provide an up-to-date fingerprint hash in order to update or change
1753 # labels. Make a get() request to the resource to get the latest
1754 # fingerprint.
1755 &quot;labels&quot;: { # The labels to set for this resource.
1756 &quot;a_key&quot;: &quot;A String&quot;,
1757 },
1758 }
1759
1760 requestId: string, An optional request ID to identify requests. Specify a unique request ID so
1761 that if you must retry your request, the server will know to ignore the
1762 request if it has already been completed.
1763
1764 For example, consider a situation where you make an initial request and
1765 the request times out. If you make the request again with the same
1766 request ID, the server can check if original operation with the same
1767 request ID was received, and if so, will ignore the second request. This
1768 prevents clients from accidentally creating duplicate commitments.
1769
1770 The request ID must be
1771 a valid UUID with the exception that zero UUID is not supported
1772 (00000000-0000-0000-0000-000000000000).
1773 x__xgafv: string, V1 error format.
1774 Allowed values
1775 1 - v1 error format
1776 2 - v2 error format
1777
1778 Returns:
1779 An object of the form:
1780
1781 { # Represents an Operation resource.
1782 #
1783 # Google Compute Engine has three Operation resources:
1784 #
1785 # * [Global](/compute/docs/reference/rest/alpha/globalOperations)
1786 # * [Regional](/compute/docs/reference/rest/alpha/regionOperations)
1787 # * [Zonal](/compute/docs/reference/rest/alpha/zoneOperations)
1788 #
1789 # You can use an operation resource to manage asynchronous API requests.
1790 # For more information, readHandling
1791 # API responses.
1792 #
1793 # Operations can be global, regional or zonal.
1794 #
1795 # - For global operations, use the `globalOperations`
1796 # resource.
1797 # - For regional operations, use the
1798 # `regionOperations` resource.
1799 # - For zonal operations, use
1800 # the `zoneOperations` resource.
1801 #
1802 #
1803 #
1804 # For more information, read
1805 # Global, Regional, and Zonal Resources.
1806 #
1807 # Note that completed Operation resources have a limited
1808 # retention period.
1809 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request.
1810 # Not present otherwise.
1811 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
1812 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is
1813 # set when the operation is created.
1814 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is inRFC3339
1815 # text format.
1816 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation,
1817 # this field will be populated.
1818 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this
1819 # operation.
1820 {
1821 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
1822 &quot;errorDetails&quot;: [ # [Output Only] An optional list of messages that contain the error
1823 # details. There is a set of defined message types to use for providing
1824 # details.The syntax depends on the error code. For example,
1825 # QuotaExceededInfo will have details when the error code is
1826 # QUOTA_EXCEEDED.
1827 {
1828 &quot;errorInfo&quot;: { # Describes the cause of the error with structured details.
1829 #
1830 # Example of an error when contacting the &quot;pubsub.googleapis.com&quot; API when it
1831 # is not enabled:
1832 #
1833 # { &quot;reason&quot;: &quot;API_DISABLED&quot;
1834 # &quot;domain&quot;: &quot;googleapis.com&quot;
1835 # &quot;metadata&quot;: {
1836 # &quot;resource&quot;: &quot;projects/123&quot;,
1837 # &quot;service&quot;: &quot;pubsub.googleapis.com&quot;
1838 # }
1839 # }
1840 #
1841 # This response indicates that the pubsub.googleapis.com API is not enabled.
1842 #
1843 # Example of an error that is returned when attempting to create a Spanner
1844 # instance in a region that is out of stock:
1845 #
1846 # { &quot;reason&quot;: &quot;STOCKOUT&quot;
1847 # &quot;domain&quot;: &quot;spanner.googleapis.com&quot;,
1848 # &quot;metadata&quot;: {
1849 # &quot;availableRegions&quot;: &quot;us-central1,us-east2&quot;
1850 # }
1851 # }
1852 &quot;domain&quot;: &quot;A String&quot;, # The logical grouping to which the &quot;reason&quot; belongs. The error domain
1853 # is typically the registered service name of the tool or product that
1854 # generates the error. Example: &quot;pubsub.googleapis.com&quot;. If the error is
1855 # generated by some common infrastructure, the error domain must be a
1856 # globally unique value that identifies the infrastructure. For Google API
1857 # infrastructure, the error domain is &quot;googleapis.com&quot;.
1858 &quot;metadatas&quot;: { # Additional structured details about this error.
1859 #
1860 # Keys must match a regular expression of `a-z+` but should
1861 # ideally be lowerCamelCase. Also, they must be limited to 64 characters in
1862 # length. When identifying the current value of an exceeded limit, the units
1863 # should be contained in the key, not the value. For example, rather than
1864 # `{&quot;instanceLimit&quot;: &quot;100/request&quot;}`, should be returned as,
1865 # `{&quot;instanceLimitPerRequest&quot;: &quot;100&quot;}`, if the client exceeds the number of
1866 # instances that can be created in a single (batch) request.
1867 &quot;a_key&quot;: &quot;A String&quot;,
1868 },
1869 &quot;reason&quot;: &quot;A String&quot;, # The reason of the error. This is a constant value that identifies the
1870 # proximate cause of the error. Error reasons are unique within a particular
1871 # domain of errors. This should be at most 63 characters and match a
1872 # regular expression of `A-Z+[A-Z0-9]`, which represents
1873 # UPPER_SNAKE_CASE.
1874 },
1875 &quot;help&quot;: { # Provides links to documentation or for performing an out of band action.
1876 #
1877 # For example, if a quota check failed with an error indicating the calling
1878 # project hasn&#x27;t enabled the accessed service, this can contain a URL pointing
1879 # directly to the right place in the developer console to flip the bit.
1880 &quot;links&quot;: [ # URL(s) pointing to additional information on handling the current error.
1881 { # Describes a URL link.
1882 &quot;description&quot;: &quot;A String&quot;, # Describes what the link offers.
1883 &quot;url&quot;: &quot;A String&quot;, # The URL of the link.
1884 },
1885 ],
1886 },
1887 &quot;localizedMessage&quot;: { # Provides a localized error message that is safe to return to the user
1888 # which can be attached to an RPC error.
1889 &quot;locale&quot;: &quot;A String&quot;, # The locale used following the specification defined at
1890 # https://www.rfc-editor.org/rfc/bcp/bcp47.txt.
1891 # Examples are: &quot;en-US&quot;, &quot;fr-CH&quot;, &quot;es-MX&quot;
1892 &quot;message&quot;: &quot;A String&quot;, # The localized error message in the above locale.
1893 },
1894 &quot;quotaInfo&quot;: { # Additional details for quota exceeded error for resource quota.
1895 &quot;dimensions&quot;: { # The map holding related quota dimensions.
1896 &quot;a_key&quot;: &quot;A String&quot;,
1897 },
1898 &quot;futureLimit&quot;: 3.14, # Future quota limit being rolled out. The limit&#x27;s unit depends on the quota
1899 # type or metric.
1900 &quot;limit&quot;: 3.14, # Current effective quota limit. The limit&#x27;s unit depends on the quota type
1901 # or metric.
1902 &quot;limitName&quot;: &quot;A String&quot;, # The name of the quota limit.
1903 &quot;metricName&quot;: &quot;A String&quot;, # The Compute Engine quota metric name.
1904 &quot;rolloutStatus&quot;: &quot;A String&quot;, # Rollout status of the future quota limit.
1905 },
1906 },
1907 ],
1908 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error.
1909 # This property is optional.
1910 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
1911 },
1912 ],
1913 },
1914 &quot;getVersionOperationMetadata&quot;: {
1915 &quot;inlineSbomInfo&quot;: {
1916 &quot;currentComponentVersions&quot;: { # A mapping of components to their currently-applied versions or other
1917 # appropriate identifiers.
1918 &quot;a_key&quot;: &quot;A String&quot;,
1919 },
1920 &quot;targetComponentVersions&quot;: { # A mapping of components to their target versions or other appropriate
1921 # identifiers.
1922 &quot;a_key&quot;: &quot;A String&quot;,
1923 },
1924 },
1925 },
1926 &quot;httpErrorMessage&quot;: &quot;A String&quot;, # [Output Only] If the operation fails, this field contains the HTTP error
1927 # message that was returned, such as `NOT FOUND`.
1928 &quot;httpErrorStatusCode&quot;: 42, # [Output Only] If the operation fails, this field contains the HTTP error
1929 # status code that was returned. For example, a `404` means the
1930 # resource was not found.
1931 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is
1932 # defined by the server.
1933 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested.
1934 # This value is inRFC3339
1935 # text format.
1936 &quot;instancesBulkInsertOperationMetadata&quot;: {
1937 &quot;perLocationStatus&quot;: { # Status information per location (location name is key).
1938 # Example key: zones/us-central1-a
1939 &quot;a_key&quot;: {
1940 &quot;createdVmCount&quot;: 42, # [Output Only] Count of VMs successfully created so far.
1941 &quot;deletedVmCount&quot;: 42, # [Output Only] Count of VMs that got deleted during rollback.
1942 &quot;failedToCreateVmCount&quot;: 42, # [Output Only] Count of VMs that started creating but encountered an
1943 # error.
1944 &quot;status&quot;: &quot;A String&quot;, # [Output Only] Creation status of BulkInsert operation - information
1945 # if the flow is rolling forward or rolling back.
1946 &quot;targetVmCount&quot;: 42, # [Output Only] Count of VMs originally planned to be created.
1947 },
1948 },
1949 },
1950 &quot;kind&quot;: &quot;compute#operation&quot;, # Output only. [Output Only] Type of the resource. Always `compute#operation` for
1951 # Operation resources.
1952 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
1953 &quot;operationGroupId&quot;: &quot;A String&quot;, # Output only. [Output Only] An ID that represents a group of operations, such as when a
1954 # group of operations results from a `bulkInsert` API request.
1955 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`,
1956 # `update`, or `delete`, and so on.
1957 &quot;progress&quot;: 42, # [Output Only] An optional progress indicator that ranges from 0 to 100.
1958 # There is no requirement that this be linear or support any granularity of
1959 # operations. This should not be used to guess when the operation will be
1960 # complete. This number should monotonically increase as the operation
1961 # progresses.
1962 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only
1963 # applicable when performing regional operations.
1964 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
1965 &quot;selfLinkWithId&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined URL for this resource with the resource id.
1966 &quot;setCommonInstanceMetadataOperationMetadata&quot;: { # Output only. [Output Only] If the operation is for projects.setCommonInstanceMetadata,
1967 # this field will contain information on all underlying zonal actions and
1968 # their state.
1969 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The client operation id.
1970 &quot;perLocationOperations&quot;: { # [Output Only] Status information per location (location name is key).
1971 # Example key: zones/us-central1-a
1972 &quot;a_key&quot;: {
1973 &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
1974 # populated.
1975 # different programming environments, including REST APIs and RPC APIs. It is
1976 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
1977 # three pieces of data: error code, error message, and error details.
1978 #
1979 # You can find out more about this error model and how to work with it in the
1980 # [API Design Guide](https://cloud.google.com/apis/design/errors).
1981 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1982 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
1983 # message types for APIs to use.
1984 {
1985 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1986 },
1987 ],
1988 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
1989 # user-facing error message should be localized and sent in the
1990 # google.rpc.Status.details field, or localized by the client.
1991 },
1992 &quot;state&quot;: &quot;A String&quot;, # [Output Only] Status of the action, which can be one of the following:
1993 # `PROPAGATING`, `PROPAGATED`, `ABANDONED`, `FAILED`, or `DONE`.
1994 },
1995 },
1996 },
1997 &quot;startTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was started by the server.
1998 # This value is inRFC3339
1999 # text format.
2000 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the operation, which can be one of the
2001 # following:
2002 # `PENDING`, `RUNNING`, or `DONE`.
2003 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the
2004 # operation.
2005 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation
2006 # of the target resource.
2007 &quot;targetLink&quot;: &quot;A String&quot;, # [Output Only] The URL of the resource that the operation modifies. For
2008 # operations related to creating a snapshot, this points to the disk
2009 # that the snapshot was created from.
2010 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example:
2011 # `[email protected]` or
2012 # `alice_smith_identifier (global/workforcePools/example-com-us-employees)`.
2013 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the
2014 # operation, this field will be populated.
2015 {
2016 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute
2017 # Engine returns NO_RESULTS_ON_PAGE if there
2018 # are no results in the response.
2019 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key:
2020 # value format. For example:
2021 #
2022 # &quot;data&quot;: [
2023 # {
2024 # &quot;key&quot;: &quot;scope&quot;,
2025 # &quot;value&quot;: &quot;zones/us-east1-d&quot;
2026 # }
2027 {
2028 &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being
2029 # returned. For example, for warnings where there are no results in a list
2030 # request for a particular zone, this key might be scope and
2031 # the key value might be the zone name. Other examples might be a key
2032 # indicating a deprecated resource and a suggested replacement, or a
2033 # warning about invalid network settings (for example, if an instance
2034 # attempts to perform IP forwarding but is not enabled for IP forwarding).
2035 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
2036 },
2037 ],
2038 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
2039 },
2040 ],
2041 &quot;zone&quot;: &quot;A String&quot;, # [Output Only] The URL of the zone where the operation resides. Only
2042 # applicable when performing per-zone operations.
2043 }</pre>
2044 </div>
2045
2046 <div class="method">
2047 <code class="details" id="testIamPermissions">testIamPermissions(project, region, resource, body=None, x__xgafv=None)</code>
2048 <pre>Returns permissions that a caller has on the specified resource.
2049
2050 Args:
2051 project: string, Project ID for this request. (required)
2052 region: string, The name of the region for this request. (required)
2053 resource: string, Name or id of the resource for this request. (required)
2054 body: object, The request body.
2055 The object takes the form of:
2056
2057 {
2058 &quot;permissions&quot;: [ # The set of permissions to check for the &#x27;resource&#x27;. Permissions with
2059 # wildcards (such as &#x27;*&#x27; or &#x27;storage.*&#x27;) are not allowed.
2060 &quot;A String&quot;,
2061 ],
2062 }
2063
2064 x__xgafv: string, V1 error format.
2065 Allowed values
2066 1 - v1 error format
2067 2 - v2 error format
2068
2069 Returns:
2070 An object of the form:
2071
2072 {
2073 &quot;permissions&quot;: [ # A subset of `TestPermissionsRequest.permissions` that the caller is
2074 # allowed.
2075 &quot;A String&quot;,
2076 ],
2077 }</pre>
2078 </div>
2079
2080 </body></html>