Debian Codegraph @

docs/dyn/compute_v1.regionBackendBuckets.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_v1.html">Compute Engine API</a> . <a href="compute_v1.regionBackendBuckets.html">regionBackendBuckets</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="#close">close()</a></code></p>
79 <p class="firstline">Close httplib2 connections.</p>
80 <p class="toc_element">
81 <code><a href="#delete">delete(project, region, backendBucket, requestId=None, x__xgafv=None)</a></code></p>
82 <p class="firstline">Deletes the specified regional BackendBucket resource.</p>
83 <p class="toc_element">
84 <code><a href="#get">get(project, region, backendBucket, x__xgafv=None)</a></code></p>
85 <p class="firstline">Returns the specified regional BackendBucket resource.</p>
86 <p class="toc_element">
87 <code><a href="#getIamPolicy">getIamPolicy(project, region, resource, optionsRequestedPolicyVersion=None, x__xgafv=None)</a></code></p>
88 <p class="firstline">Gets the access control policy for a resource. May be empty if no such</p>
89 <p class="toc_element">
90 <code><a href="#insert">insert(project, region, body=None, requestId=None, x__xgafv=None)</a></code></p>
91 <p class="firstline">Creates a RegionBackendBucket in the specified project in the given scope</p>
92 <p class="toc_element">
93 <code><a href="#list">list(project, region, filter=None, maxResults=None, orderBy=None, pageToken=None, returnPartialSuccess=None, x__xgafv=None)</a></code></p>
94 <p class="firstline">Retrieves the list of BackendBucket resources available to the specified</p>
95 <p class="toc_element">
96 <code><a href="#listUsable">listUsable(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 all usable backend buckets in the specified project in</p>
98 <p class="toc_element">
99 <code><a href="#listUsable_next">listUsable_next()</a></code></p>
100 <p class="firstline">Retrieves the next page of results.</p>
101 <p class="toc_element">
102 <code><a href="#list_next">list_next()</a></code></p>
103 <p class="firstline">Retrieves the next page of results.</p>
104 <p class="toc_element">
105 <code><a href="#patch">patch(project, region, backendBucket, body=None, requestId=None, x__xgafv=None)</a></code></p>
106 <p class="firstline">Updates the specified BackendBucket resource with the data included in the</p>
107 <p class="toc_element">
108 <code><a href="#setIamPolicy">setIamPolicy(project, region, resource, body=None, x__xgafv=None)</a></code></p>
109 <p class="firstline">Sets the access control policy on the specified resource.</p>
110 <p class="toc_element">
111 <code><a href="#testIamPermissions">testIamPermissions(project, region, resource, body=None, x__xgafv=None)</a></code></p>
112 <p class="firstline">Returns permissions that a caller has on the specified resource.</p>
113 <h3>Method Details</h3>
114 <div class="method">
115 <code class="details" id="close">close()</code>
116 <pre>Close httplib2 connections.</pre>
117 </div>
118
119 <div class="method">
120 <code class="details" id="delete">delete(project, region, backendBucket, requestId=None, x__xgafv=None)</code>
121 <pre>Deletes the specified regional BackendBucket resource.
122
123 Args:
124 project: string, Project ID for this request. (required)
125 region: string, Name of the region scoping this request. (required)
126 backendBucket: string, Name of the BackendBucket resource to delete. (required)
127 requestId: string, An optional request ID to identify requests. Specify a unique request ID so
128 that if you must retry your request, the server will know to ignore the
129 request if it has already been completed.
130
131 For example, consider a situation where you make an initial request and
132 the request times out. If you make the request again with the same
133 request ID, the server can check if original operation with the same
134 request ID was received, and if so, will ignore the second request. This
135 prevents clients from accidentally creating duplicate commitments.
136
137 The request ID must be
138 a valid UUID with the exception that zero UUID is not supported
139 (00000000-0000-0000-0000-000000000000).
140 end_interface: MixerMutationRequestBuilder
141 x__xgafv: string, V1 error format.
142 Allowed values
143 1 - v1 error format
144 2 - v2 error format
145
146 Returns:
147 An object of the form:
148
149 { # Represents an Operation resource.
150 #
151 # Google Compute Engine has three Operation resources:
152 #
153 # * [Global](/compute/docs/reference/rest/v1/globalOperations)
154 # * [Regional](/compute/docs/reference/rest/v1/regionOperations)
155 # * [Zonal](/compute/docs/reference/rest/v1/zoneOperations)
156 #
157 # You can use an operation resource to manage asynchronous API requests.
158 # For more information, readHandling
159 # API responses.
160 #
161 # Operations can be global, regional or zonal.
162 #
163 # - For global operations, use the `globalOperations`
164 # resource.
165 # - For regional operations, use the
166 # `regionOperations` resource.
167 # - For zonal operations, use
168 # the `zoneOperations` resource.
169 #
170 #
171 #
172 # For more information, read
173 # Global, Regional, and Zonal Resources.
174 #
175 # Note that completed Operation resources have a limited
176 # retention period.
177 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request.
178 # Not present otherwise.
179 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
180 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is
181 # set when the operation is created.
182 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is inRFC3339
183 # text format.
184 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation,
185 # this field will be populated.
186 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this
187 # operation.
188 {
189 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
190 &quot;errorDetails&quot;: [ # [Output Only] An optional list of messages that contain the error
191 # details. There is a set of defined message types to use for providing
192 # details.The syntax depends on the error code. For example,
193 # QuotaExceededInfo will have details when the error code is
194 # QUOTA_EXCEEDED.
195 {
196 &quot;errorInfo&quot;: { # Describes the cause of the error with structured details.
197 #
198 # Example of an error when contacting the &quot;pubsub.googleapis.com&quot; API when it
199 # is not enabled:
200 #
201 # { &quot;reason&quot;: &quot;API_DISABLED&quot;
202 # &quot;domain&quot;: &quot;googleapis.com&quot;
203 # &quot;metadata&quot;: {
204 # &quot;resource&quot;: &quot;projects/123&quot;,
205 # &quot;service&quot;: &quot;pubsub.googleapis.com&quot;
206 # }
207 # }
208 #
209 # This response indicates that the pubsub.googleapis.com API is not enabled.
210 #
211 # Example of an error that is returned when attempting to create a Spanner
212 # instance in a region that is out of stock:
213 #
214 # { &quot;reason&quot;: &quot;STOCKOUT&quot;
215 # &quot;domain&quot;: &quot;spanner.googleapis.com&quot;,
216 # &quot;metadata&quot;: {
217 # &quot;availableRegions&quot;: &quot;us-central1,us-east2&quot;
218 # }
219 # }
220 &quot;domain&quot;: &quot;A String&quot;, # The logical grouping to which the &quot;reason&quot; belongs. The error domain
221 # is typically the registered service name of the tool or product that
222 # generates the error. Example: &quot;pubsub.googleapis.com&quot;. If the error is
223 # generated by some common infrastructure, the error domain must be a
224 # globally unique value that identifies the infrastructure. For Google API
225 # infrastructure, the error domain is &quot;googleapis.com&quot;.
226 &quot;metadatas&quot;: { # Additional structured details about this error.
227 #
228 # Keys must match a regular expression of `a-z+` but should
229 # ideally be lowerCamelCase. Also, they must be limited to 64 characters in
230 # length. When identifying the current value of an exceeded limit, the units
231 # should be contained in the key, not the value. For example, rather than
232 # `{&quot;instanceLimit&quot;: &quot;100/request&quot;}`, should be returned as,
233 # `{&quot;instanceLimitPerRequest&quot;: &quot;100&quot;}`, if the client exceeds the number of
234 # instances that can be created in a single (batch) request.
235 &quot;a_key&quot;: &quot;A String&quot;,
236 },
237 &quot;reason&quot;: &quot;A String&quot;, # The reason of the error. This is a constant value that identifies the
238 # proximate cause of the error. Error reasons are unique within a particular
239 # domain of errors. This should be at most 63 characters and match a
240 # regular expression of `A-Z+[A-Z0-9]`, which represents
241 # UPPER_SNAKE_CASE.
242 },
243 &quot;help&quot;: { # Provides links to documentation or for performing an out of band action.
244 #
245 # For example, if a quota check failed with an error indicating the calling
246 # project hasn&#x27;t enabled the accessed service, this can contain a URL pointing
247 # directly to the right place in the developer console to flip the bit.
248 &quot;links&quot;: [ # URL(s) pointing to additional information on handling the current error.
249 { # Describes a URL link.
250 &quot;description&quot;: &quot;A String&quot;, # Describes what the link offers.
251 &quot;url&quot;: &quot;A String&quot;, # The URL of the link.
252 },
253 ],
254 },
255 &quot;localizedMessage&quot;: { # Provides a localized error message that is safe to return to the user
256 # which can be attached to an RPC error.
257 &quot;locale&quot;: &quot;A String&quot;, # The locale used following the specification defined at
258 # https://www.rfc-editor.org/rfc/bcp/bcp47.txt.
259 # Examples are: &quot;en-US&quot;, &quot;fr-CH&quot;, &quot;es-MX&quot;
260 &quot;message&quot;: &quot;A String&quot;, # The localized error message in the above locale.
261 },
262 &quot;quotaInfo&quot;: { # Additional details for quota exceeded error for resource quota.
263 &quot;dimensions&quot;: { # The map holding related quota dimensions.
264 &quot;a_key&quot;: &quot;A String&quot;,
265 },
266 &quot;futureLimit&quot;: 3.14, # Future quota limit being rolled out. The limit&#x27;s unit depends on the quota
267 # type or metric.
268 &quot;limit&quot;: 3.14, # Current effective quota limit. The limit&#x27;s unit depends on the quota type
269 # or metric.
270 &quot;limitName&quot;: &quot;A String&quot;, # The name of the quota limit.
271 &quot;metricName&quot;: &quot;A String&quot;, # The Compute Engine quota metric name.
272 &quot;rolloutStatus&quot;: &quot;A String&quot;, # Rollout status of the future quota limit.
273 },
274 },
275 ],
276 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error.
277 # This property is optional.
278 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
279 },
280 ],
281 },
282 &quot;getVersionOperationMetadata&quot;: {
283 &quot;inlineSbomInfo&quot;: {
284 &quot;currentComponentVersions&quot;: { # A mapping of components to their currently-applied versions or other
285 # appropriate identifiers.
286 &quot;a_key&quot;: &quot;A String&quot;,
287 },
288 &quot;targetComponentVersions&quot;: { # A mapping of components to their target versions or other appropriate
289 # identifiers.
290 &quot;a_key&quot;: &quot;A String&quot;,
291 },
292 },
293 },
294 &quot;httpErrorMessage&quot;: &quot;A String&quot;, # [Output Only] If the operation fails, this field contains the HTTP error
295 # message that was returned, such as `NOT FOUND`.
296 &quot;httpErrorStatusCode&quot;: 42, # [Output Only] If the operation fails, this field contains the HTTP error
297 # status code that was returned. For example, a `404` means the
298 # resource was not found.
299 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is
300 # defined by the server.
301 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested.
302 # This value is inRFC3339
303 # text format.
304 &quot;instancesBulkInsertOperationMetadata&quot;: {
305 &quot;perLocationStatus&quot;: { # Status information per location (location name is key).
306 # Example key: zones/us-central1-a
307 &quot;a_key&quot;: {
308 &quot;createdVmCount&quot;: 42, # [Output Only] Count of VMs successfully created so far.
309 &quot;deletedVmCount&quot;: 42, # [Output Only] Count of VMs that got deleted during rollback.
310 &quot;failedToCreateVmCount&quot;: 42, # [Output Only] Count of VMs that started creating but encountered an
311 # error.
312 &quot;status&quot;: &quot;A String&quot;, # [Output Only] Creation status of BulkInsert operation - information
313 # if the flow is rolling forward or rolling back.
314 &quot;targetVmCount&quot;: 42, # [Output Only] Count of VMs originally planned to be created.
315 },
316 },
317 },
318 &quot;kind&quot;: &quot;compute#operation&quot;, # Output only. [Output Only] Type of the resource. Always `compute#operation` for
319 # Operation resources.
320 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
321 &quot;operationGroupId&quot;: &quot;A String&quot;, # Output only. [Output Only] An ID that represents a group of operations, such as when a
322 # group of operations results from a `bulkInsert` API request.
323 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`,
324 # `update`, or `delete`, and so on.
325 &quot;progress&quot;: 42, # [Output Only] An optional progress indicator that ranges from 0 to 100.
326 # There is no requirement that this be linear or support any granularity of
327 # operations. This should not be used to guess when the operation will be
328 # complete. This number should monotonically increase as the operation
329 # progresses.
330 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only
331 # applicable when performing regional operations.
332 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
333 &quot;setCommonInstanceMetadataOperationMetadata&quot;: { # Output only. [Output Only] If the operation is for projects.setCommonInstanceMetadata,
334 # this field will contain information on all underlying zonal actions and
335 # their state.
336 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The client operation id.
337 &quot;perLocationOperations&quot;: { # [Output Only] Status information per location (location name is key).
338 # Example key: zones/us-central1-a
339 &quot;a_key&quot;: {
340 &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
341 # populated.
342 # different programming environments, including REST APIs and RPC APIs. It is
343 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
344 # three pieces of data: error code, error message, and error details.
345 #
346 # You can find out more about this error model and how to work with it in the
347 # [API Design Guide](https://cloud.google.com/apis/design/errors).
348 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
349 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
350 # message types for APIs to use.
351 {
352 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
353 },
354 ],
355 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
356 # user-facing error message should be localized and sent in the
357 # google.rpc.Status.details field, or localized by the client.
358 },
359 &quot;state&quot;: &quot;A String&quot;, # [Output Only] Status of the action, which can be one of the following:
360 # `PROPAGATING`, `PROPAGATED`, `ABANDONED`, `FAILED`, or `DONE`.
361 },
362 },
363 },
364 &quot;startTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was started by the server.
365 # This value is inRFC3339
366 # text format.
367 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the operation, which can be one of the
368 # following:
369 # `PENDING`, `RUNNING`, or `DONE`.
370 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the
371 # operation.
372 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation
373 # of the target resource.
374 &quot;targetLink&quot;: &quot;A String&quot;, # [Output Only] The URL of the resource that the operation modifies. For
375 # operations related to creating a snapshot, this points to the disk
376 # that the snapshot was created from.
377 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example:
378 # `[email protected]` or
379 # `alice_smith_identifier (global/workforcePools/example-com-us-employees)`.
380 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the
381 # operation, this field will be populated.
382 {
383 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute
384 # Engine returns NO_RESULTS_ON_PAGE if there
385 # are no results in the response.
386 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key:
387 # value format. For example:
388 #
389 # &quot;data&quot;: [
390 # {
391 # &quot;key&quot;: &quot;scope&quot;,
392 # &quot;value&quot;: &quot;zones/us-east1-d&quot;
393 # }
394 {
395 &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being
396 # returned. For example, for warnings where there are no results in a list
397 # request for a particular zone, this key might be scope and
398 # the key value might be the zone name. Other examples might be a key
399 # indicating a deprecated resource and a suggested replacement, or a
400 # warning about invalid network settings (for example, if an instance
401 # attempts to perform IP forwarding but is not enabled for IP forwarding).
402 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
403 },
404 ],
405 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
406 },
407 ],
408 &quot;zone&quot;: &quot;A String&quot;, # [Output Only] The URL of the zone where the operation resides. Only
409 # applicable when performing per-zone operations.
410 }</pre>
411 </div>
412
413 <div class="method">
414 <code class="details" id="get">get(project, region, backendBucket, x__xgafv=None)</code>
415 <pre>Returns the specified regional BackendBucket resource.
416
417 Args:
418 project: string, Project ID for this request. (required)
419 region: string, Name of the region scoping this request. (required)
420 backendBucket: string, Name of the BackendBucket resource to return. (required)
421 x__xgafv: string, V1 error format.
422 Allowed values
423 1 - v1 error format
424 2 - v2 error format
425
426 Returns:
427 An object of the form:
428
429 { # Represents a Cloud Storage Bucket resource.
430 #
431 # This Cloud Storage bucket resource is referenced by a URL map of a load
432 # balancer. For more information, readBackend Buckets.
433 &quot;bucketName&quot;: &quot;A String&quot;, # Cloud Storage bucket name.
434 &quot;cdnPolicy&quot;: { # Message containing Cloud CDN configuration for a backend bucket. # Cloud CDN configuration for this BackendBucket.
435 &quot;bypassCacheOnRequestHeaders&quot;: [ # Bypass the cache when the specified request headers are matched - e.g.
436 # Pragma or Authorization headers. Up to 5 headers can be specified.
437 # The cache is bypassed for all cdnPolicy.cacheMode settings.
438 { # Bypass the cache when the specified request headers are present,
439 # e.g. Pragma or Authorization headers. Values are case insensitive.
440 # The presence of such a header overrides the cache_mode setting.
441 &quot;headerName&quot;: &quot;A String&quot;, # The header field name to match on when bypassing cache.
442 # Values are case-insensitive.
443 },
444 ],
445 &quot;cacheKeyPolicy&quot;: { # Message containing what to include in the cache key for a request for # The CacheKeyPolicy for this CdnPolicy.
446 # Cloud CDN.
447 &quot;includeHttpHeaders&quot;: [ # Allows HTTP request headers (by name) to be used in the cache key.
448 &quot;A String&quot;,
449 ],
450 &quot;queryStringWhitelist&quot;: [ # Names of query string parameters to include in cache keys. Default
451 # parameters are always included. &#x27;&amp;&#x27; and &#x27;=&#x27; will be percent encoded
452 # and not treated as delimiters.
453 &quot;A String&quot;,
454 ],
455 },
456 &quot;cacheMode&quot;: &quot;A String&quot;, # Specifies the cache setting for all responses from this backend.
457 # The possible values are:USE_ORIGIN_HEADERS Requires the origin to set valid caching
458 # headers to cache content. Responses without these headers will not be
459 # cached at Google&#x27;s edge, and will require a full trip to the origin on
460 # every request, potentially impacting performance and increasing load on
461 # the origin server.FORCE_CACHE_ALL Cache all content, ignoring any &quot;private&quot;,
462 # &quot;no-store&quot; or &quot;no-cache&quot; directives in Cache-Control response headers.
463 # Warning: this may result in Cloud CDN caching private,
464 # per-user (user identifiable) content.CACHE_ALL_STATIC Automatically cache static content,
465 # including common image formats, media (video and audio), and web assets
466 # (JavaScript and CSS). Requests and responses that are marked as
467 # uncacheable, as well as dynamic content (including HTML), will not be
468 # cached.
469 #
470 # If no value is provided for cdnPolicy.cacheMode, it defaults
471 # to CACHE_ALL_STATIC.
472 &quot;clientTtl&quot;: 42, # Specifies a separate client (e.g. browser client) maximum TTL. This is
473 # used to clamp the max-age (or Expires) value sent to the client. With
474 # FORCE_CACHE_ALL, the lesser of client_ttl and default_ttl is used for the
475 # response max-age directive, along with a &quot;public&quot; directive. For
476 # cacheable content in CACHE_ALL_STATIC mode, client_ttl clamps the max-age
477 # from the origin (if specified), or else sets the response max-age
478 # directive to the lesser of the client_ttl and default_ttl, and also
479 # ensures a &quot;public&quot; cache-control directive is present.
480 # If a client TTL is not specified, a default value (1 hour) will be used.
481 # The maximum allowed value is 31,622,400s (1 year).
482 &quot;defaultTtl&quot;: 42, # Specifies the default TTL for cached content served by this origin for
483 # responses that do not have an existing valid TTL (max-age or s-maxage).
484 # Setting a TTL of &quot;0&quot; means &quot;always revalidate&quot;.
485 # The value of defaultTTL cannot be set to a value greater than that of
486 # maxTTL, but can be equal.
487 # When the cacheMode is set to FORCE_CACHE_ALL, the defaultTTL
488 # will overwrite the TTL set in all responses. The maximum allowed value is
489 # 31,622,400s (1 year), noting that infrequently accessed objects may be
490 # evicted from the cache before the defined TTL.
491 &quot;maxTtl&quot;: 42, # Specifies the maximum allowed TTL for cached content served by this
492 # origin.
493 # Cache directives that attempt to set a max-age or s-maxage higher than
494 # this, or an Expires header more than maxTTL seconds in the future will
495 # be capped at the value of maxTTL, as if it were the value of an
496 # s-maxage Cache-Control directive.
497 # Headers sent to the client will not be modified.
498 # Setting a TTL of &quot;0&quot; means &quot;always revalidate&quot;.
499 # The maximum allowed value is 31,622,400s (1 year), noting that
500 # infrequently accessed objects may be evicted from the cache before
501 # the defined TTL.
502 &quot;negativeCaching&quot;: True or False, # Negative caching allows per-status code TTLs to be set, in order
503 # to apply fine-grained caching for common errors or redirects.
504 # This can reduce the load on your origin and improve end-user
505 # experience by reducing response latency.
506 # When the cache mode is set to CACHE_ALL_STATIC or USE_ORIGIN_HEADERS,
507 # negative caching applies to responses with the specified response code
508 # that lack any Cache-Control, Expires, or Pragma: no-cache directives.
509 # When the cache mode is set to FORCE_CACHE_ALL, negative caching applies
510 # to all responses with the specified response code, and override any
511 # caching headers.
512 # By default, Cloud CDN will apply the following default TTLs to these
513 # status codes:
514 # HTTP 300 (Multiple Choice), 301, 308 (Permanent Redirects): 10m
515 # HTTP 404 (Not Found), 410 (Gone),
516 # 451 (Unavailable For Legal Reasons): 120s
517 # HTTP 405 (Method Not Found), 501 (Not Implemented): 60s.
518 # These defaults can be overridden in negative_caching_policy.
519 &quot;negativeCachingPolicy&quot;: [ # Sets a cache TTL for the specified HTTP status code.
520 # negative_caching must be enabled to configure negative_caching_policy.
521 # Omitting the policy and leaving negative_caching enabled will use
522 # Cloud CDN&#x27;s default cache TTLs.
523 # Note that when specifying an explicit negative_caching_policy, you
524 # should take care to specify a cache TTL for all response codes
525 # that you wish to cache. Cloud CDN will not apply any default
526 # negative caching when a policy exists.
527 { # Specify CDN TTLs for response error codes.
528 &quot;code&quot;: 42, # The HTTP status code to define a TTL against. Only HTTP status codes
529 # 300, 301, 302, 307, 308, 404, 405, 410, 421, 451 and 501 can be
530 # specified as values, and you cannot specify a status code more than
531 # once.
532 &quot;ttl&quot;: 42, # The TTL (in seconds) for which to cache responses with the
533 # corresponding status code.
534 # The maximum allowed value is 1800s (30 minutes), noting that
535 # infrequently accessed objects may be evicted from the cache before the
536 # defined TTL.
537 },
538 ],
539 &quot;requestCoalescing&quot;: True or False, # If true then Cloud CDN will combine multiple concurrent cache fill
540 # requests into a small number of requests to the origin.
541 &quot;serveWhileStale&quot;: 42, # Serve existing content from the cache (if available) when revalidating
542 # content with the origin, or when an error is encountered when refreshing
543 # the cache.
544 # This setting defines the default &quot;max-stale&quot; duration for any cached
545 # responses that do not specify a max-stale directive. Stale responses that
546 # exceed the TTL configured here will not be served. The default limit
547 # (max-stale) is 86400s (1 day), which will allow stale content to be
548 # served up to this limit beyond the max-age (or s-maxage) of a cached
549 # response.
550 # The maximum allowed value is 604800 (1 week).
551 # Set this to zero (0) to disable serve-while-stale.
552 &quot;signedUrlCacheMaxAgeSec&quot;: &quot;A String&quot;, # Maximum number of seconds the response to a signed URL request will be
553 # considered fresh. After this time period, the response will be
554 # revalidated before being served. Defaults to 1hr (3600s). When serving
555 # responses to signed URL requests, Cloud CDN will internally behave as
556 # though all responses from this backend had a &quot;Cache-Control:
557 # public, max-age=[TTL]&quot; header, regardless of any existing
558 # Cache-Control header. The actual headers served in responses will not be
559 # altered.
560 &quot;signedUrlKeyNames&quot;: [ # [Output Only] Names of the keys for signing request URLs.
561 &quot;A String&quot;,
562 ],
563 },
564 &quot;compressionMode&quot;: &quot;A String&quot;, # Compress text responses using Brotli or gzip compression, based on
565 # the client&#x27;s Accept-Encoding header.
566 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Output Only] Creation timestamp inRFC3339
567 # text format.
568 &quot;customResponseHeaders&quot;: [ # Headers that the Application Load Balancer should add to proxied responses.
569 &quot;A String&quot;,
570 ],
571 &quot;description&quot;: &quot;A String&quot;, # An optional textual description of the resource; provided by the client
572 # when the resource is created.
573 &quot;edgeSecurityPolicy&quot;: &quot;A String&quot;, # [Output Only] The resource URL for the edge security policy associated with
574 # this backend bucket.
575 &quot;enableCdn&quot;: True or False, # If true, enable Cloud CDN for this BackendBucket.
576 &quot;id&quot;: &quot;A String&quot;, # [Output Only] Unique identifier for the resource; defined by the server.
577 &quot;kind&quot;: &quot;compute#backendBucket&quot;, # Output only. Type of the resource.
578 &quot;loadBalancingScheme&quot;: &quot;A String&quot;, # The value can only be INTERNAL_MANAGED for cross-region internal layer 7
579 # load balancer.
580 #
581 # If loadBalancingScheme is not specified, the backend bucket can be used by
582 # classic global external load balancers, or global application external load
583 # balancers, or both.
584 &quot;name&quot;: &quot;A String&quot;, # Name of the resource. Provided by the client when the resource is created.
585 # The name must be 1-63 characters long, and comply withRFC1035.
586 # Specifically, the name must be 1-63 characters long and match the regular
587 # expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first
588 # character must be a lowercase letter, and all following characters must
589 # be a dash, lowercase letter, or digit, except the last character, which
590 # cannot be a dash.
591 &quot;params&quot;: { # Additional Backend Bucket parameters. # Input only. [Input Only] Additional params passed with the request, but not persisted
592 # as part of resource payload.
593 &quot;resourceManagerTags&quot;: { # Tag keys/values directly bound to this resource.
594 # Tag keys and values have the same definition as resource
595 # manager tags. The field is allowed for INSERT
596 # only. The keys/values to set on the resource should be specified in
597 # either ID { : } or Namespaced format
598 # { : }.
599 # For example the following are valid inputs:
600 # * {&quot;tagKeys/333&quot; : &quot;tagValues/444&quot;, &quot;tagKeys/123&quot; : &quot;tagValues/456&quot;}
601 # * {&quot;123/environment&quot; : &quot;production&quot;, &quot;345/abc&quot; : &quot;xyz&quot;}
602 # Note:
603 # * Invalid combinations of ID &amp; namespaced format is not supported. For
604 # instance: {&quot;123/environment&quot; : &quot;tagValues/444&quot;} is invalid.
605 &quot;a_key&quot;: &quot;A String&quot;,
606 },
607 },
608 &quot;region&quot;: &quot;A String&quot;, # Output only. [Output Only] URL of the region where the regional backend bucket
609 # resides. This field is not applicable to global backend buckets.
610 # You must specify this field as part of the HTTP request URL. It is
611 # not settable as a field in the request body.
612 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
613 &quot;usedBy&quot;: [ # Output only. [Output Only] List of resources referencing that backend bucket.
614 {
615 &quot;reference&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined URL for UrlMaps referencing that
616 # BackendBucket.
617 },
618 ],
619 }</pre>
620 </div>
621
622 <div class="method">
623 <code class="details" id="getIamPolicy">getIamPolicy(project, region, resource, optionsRequestedPolicyVersion=None, x__xgafv=None)</code>
624 <pre>Gets the access control policy for a resource. May be empty if no such
625 policy or resource exists.
626
627 Args:
628 project: string, Project ID for this request. (required)
629 region: string, The name of the region for this request. (required)
630 resource: string, Name or id of the resource for this request. (required)
631 optionsRequestedPolicyVersion: integer, Requested IAM Policy version.
632 x__xgafv: string, V1 error format.
633 Allowed values
634 1 - v1 error format
635 2 - v2 error format
636
637 Returns:
638 An object of the form:
639
640 { # An Identity and Access Management (IAM) policy, which specifies access
641 # controls for Google Cloud resources.
642 #
643 #
644 # A `Policy` is a collection of `bindings`. A `binding` binds one or more
645 # `members`, or principals, to a single `role`. Principals can be user
646 # accounts, service accounts, Google groups, and domains (such as G Suite). A
647 # `role` is a named list of permissions; each `role` can be an IAM predefined
648 # role or a user-created custom role.
649 #
650 # For some types of Google Cloud resources, a `binding` can also specify a
651 # `condition`, which is a logical expression that allows access to a resource
652 # only if the expression evaluates to `true`. A condition can add constraints
653 # based on attributes of the request, the resource, or both. To learn which
654 # resources support conditions in their IAM policies, see the
655 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
656 #
657 # **JSON example:**
658 #
659 # ```
660 # {
661 # &quot;bindings&quot;: [
662 # {
663 # &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;,
664 # &quot;members&quot;: [
665 # &quot;user:[email protected]&quot;,
666 # &quot;group:[email protected]&quot;,
667 # &quot;domain:google.com&quot;,
668 # &quot;serviceAccount:[email protected]&quot;
669 # ]
670 # },
671 # {
672 # &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;,
673 # &quot;members&quot;: [
674 # &quot;user:[email protected]&quot;
675 # ],
676 # &quot;condition&quot;: {
677 # &quot;title&quot;: &quot;expirable access&quot;,
678 # &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;,
679 # &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;,
680 # }
681 # }
682 # ],
683 # &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;,
684 # &quot;version&quot;: 3
685 # }
686 # ```
687 #
688 # **YAML example:**
689 #
690 # ```
691 # bindings:
692 # - members:
693 # - user:[email protected]
694 # - group:[email protected]
695 # - domain:google.com
696 # - serviceAccount:[email protected]
697 # role: roles/resourcemanager.organizationAdmin
698 # - members:
699 # - user:[email protected]
700 # role: roles/resourcemanager.organizationViewer
701 # condition:
702 # title: expirable access
703 # description: Does not grant access after Sep 2020
704 # expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)
705 # etag: BwWWja0YfJA=
706 # version: 3
707 # ```
708 #
709 # For a description of IAM and its features, see the
710 # [IAM documentation](https://cloud.google.com/iam/docs/).
711 &quot;auditConfigs&quot;: [ # Specifies cloud audit logging configuration for this policy.
712 { # Specifies the audit configuration for a service.
713 # The configuration determines which permission types are logged, and what
714 # identities, if any, are exempted from logging.
715 # An AuditConfig must have one or more AuditLogConfigs.
716 #
717 # If there are AuditConfigs for both `allServices` and a specific service,
718 # the union of the two AuditConfigs is used for that service: the log_types
719 # specified in each AuditConfig are enabled, and the exempted_members in each
720 # AuditLogConfig are exempted.
721 #
722 # Example Policy with multiple AuditConfigs:
723 #
724 # {
725 # &quot;audit_configs&quot;: [
726 # {
727 # &quot;service&quot;: &quot;allServices&quot;,
728 # &quot;audit_log_configs&quot;: [
729 # {
730 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
731 # &quot;exempted_members&quot;: [
732 # &quot;user:[email protected]&quot;
733 # ]
734 # },
735 # {
736 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;
737 # },
738 # {
739 # &quot;log_type&quot;: &quot;ADMIN_READ&quot;
740 # }
741 # ]
742 # },
743 # {
744 # &quot;service&quot;: &quot;sampleservice.googleapis.com&quot;,
745 # &quot;audit_log_configs&quot;: [
746 # {
747 # &quot;log_type&quot;: &quot;DATA_READ&quot;
748 # },
749 # {
750 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
751 # &quot;exempted_members&quot;: [
752 # &quot;user:[email protected]&quot;
753 # ]
754 # }
755 # ]
756 # }
757 # ]
758 # }
759 #
760 # For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
761 # logging. It also exempts `[email protected]` from DATA_READ logging, and
762 # `[email protected]` from DATA_WRITE logging.
763 &quot;auditLogConfigs&quot;: [ # The configuration for logging of each type of permission.
764 { # Provides the configuration for logging a type of permissions.
765 # Example:
766 #
767 # {
768 # &quot;audit_log_configs&quot;: [
769 # {
770 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
771 # &quot;exempted_members&quot;: [
772 # &quot;user:[email protected]&quot;
773 # ]
774 # },
775 # {
776 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;
777 # }
778 # ]
779 # }
780 #
781 # This enables &#x27;DATA_READ&#x27; and &#x27;DATA_WRITE&#x27; logging, while exempting
782 # [email protected] from DATA_READ logging.
783 &quot;exemptedMembers&quot;: [ # Specifies the identities that do not cause logging for this type of
784 # permission.
785 # Follows the same format of Binding.members.
786 &quot;A String&quot;,
787 ],
788 &quot;logType&quot;: &quot;A String&quot;, # The log type that this config enables.
789 },
790 ],
791 &quot;service&quot;: &quot;A String&quot;, # Specifies a service that will be enabled for audit logging.
792 # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
793 # `allServices` is a special value that covers all services.
794 },
795 ],
796 &quot;bindings&quot;: [ # Associates a list of `members`, or principals, with a `role`. Optionally,
797 # may specify a `condition` that determines how and when the `bindings` are
798 # applied. Each of the `bindings` must contain at least one principal.
799 #
800 # The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
801 # of these principals can be Google groups. Each occurrence of a principal
802 # counts towards these limits. For example, if the `bindings` grant 50
803 # different roles to `user:[email protected]`, and not to any other
804 # principal, then you can add another 1,450 principals to the `bindings` in
805 # the `Policy`.
806 { # Associates `members`, or principals, with a `role`.
807 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding.
808 #
809 # If the condition evaluates to `true`, then this binding applies to the
810 # current request.
811 #
812 # If the condition evaluates to `false`, then this binding does not apply to
813 # the current request. However, a different role binding might grant the same
814 # role to one or more of the principals in this binding.
815 #
816 # To learn which resources support conditions in their IAM policies, see the
817 # [IAM
818 # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
819 # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
820 # are documented at https://github.com/google/cel-spec.
821 #
822 # Example (Comparison):
823 #
824 # title: &quot;Summary size limit&quot;
825 # description: &quot;Determines if a summary is less than 100 chars&quot;
826 # expression: &quot;document.summary.size() &lt; 100&quot;
827 #
828 # Example (Equality):
829 #
830 # title: &quot;Requestor is owner&quot;
831 # description: &quot;Determines if requestor is the document owner&quot;
832 # expression: &quot;document.owner == request.auth.claims.email&quot;
833 #
834 # Example (Logic):
835 #
836 # title: &quot;Public documents&quot;
837 # description: &quot;Determine whether the document should be publicly visible&quot;
838 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
839 #
840 # Example (Data Manipulation):
841 #
842 # title: &quot;Notification string&quot;
843 # description: &quot;Create a notification string with a timestamp.&quot;
844 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
845 #
846 # The exact variables and functions that may be referenced within an expression
847 # are determined by the service that evaluates it. See the service
848 # documentation for additional information.
849 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which
850 # describes the expression, e.g. when hovered over it in a UI.
851 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language
852 # syntax.
853 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error
854 # reporting, e.g. a file name and a position in the file.
855 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing
856 # its purpose. This can be used e.g. in UIs which allow to enter the
857 # expression.
858 },
859 &quot;members&quot;: [ # Specifies the principals requesting access for a Google Cloud resource.
860 # `members` can have the following values:
861 #
862 # * `allUsers`: A special identifier that represents anyone who is
863 # on the internet; with or without a Google account.
864 #
865 # * `allAuthenticatedUsers`: A special identifier that represents anyone
866 # who is authenticated with a Google account or a service account.
867 # Does not include identities that come from external identity providers
868 # (IdPs) through identity federation.
869 #
870 # * `user:{emailid}`: An email address that represents a specific Google
871 # account. For example, `[email protected]` .
872 #
873 #
874 # * `serviceAccount:{emailid}`: An email address that represents a Google
875 # service account. For example,
876 # `[email protected]`.
877 #
878 # * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An
879 # identifier for a
880 # [Kubernetes service
881 # account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts).
882 # For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`.
883 #
884 # * `group:{emailid}`: An email address that represents a Google group.
885 # For example, `[email protected]`.
886 #
887 #
888 # * `domain:{domain}`: The G Suite domain (primary) that represents all the
889 # users of that domain. For example, `google.com` or `example.com`.
890 #
891 #
892 #
893 #
894 # * `principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`:
895 # A single identity in a workforce identity pool.
896 #
897 # * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`:
898 # All workforce identities in a group.
899 #
900 # * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/attribute.{attribute_name}/{attribute_value}`:
901 # All workforce identities with a specific attribute value.
902 #
903 # * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/*`:
904 # All identities in a workforce identity pool.
905 #
906 # * `principal://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/subject/{subject_attribute_value}`:
907 # A single identity in a workload identity pool.
908 #
909 # * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}`:
910 # A workload identity pool group.
911 #
912 # * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value}`:
913 # All identities in a workload identity pool with a certain attribute.
914 #
915 # * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/*`:
916 # All identities in a workload identity pool.
917 #
918 # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
919 # identifier) representing a user that has been recently deleted. For
920 # example, `[email protected]?uid=123456789012345678901`. If the user is
921 # recovered, this value reverts to `user:{emailid}` and the recovered user
922 # retains the role in the binding.
923 #
924 # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
925 # unique identifier) representing a service account that has been recently
926 # deleted. For example,
927 # `[email protected]?uid=123456789012345678901`.
928 # If the service account is undeleted, this value reverts to
929 # `serviceAccount:{emailid}` and the undeleted service account retains the
930 # role in the binding.
931 #
932 # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
933 # identifier) representing a Google group that has been recently
934 # deleted. For example, `[email protected]?uid=123456789012345678901`. If
935 # the group is recovered, this value reverts to `group:{emailid}` and the
936 # recovered group retains the role in the binding.
937 #
938 # * `deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`:
939 # Deleted single identity in a workforce identity pool. For example,
940 # `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-pool-id/subject/my-subject-attribute-value`.
941 &quot;A String&quot;,
942 ],
943 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to the list of `members`, or principals.
944 # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
945 #
946 # For an overview of the IAM roles and permissions, see the
947 # [IAM documentation](https://cloud.google.com/iam/docs/roles-overview). For
948 # a list of the available pre-defined roles, see
949 # [here](https://cloud.google.com/iam/docs/understanding-roles).
950 },
951 ],
952 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help
953 # prevent simultaneous updates of a policy from overwriting each other.
954 # It is strongly suggested that systems make use of the `etag` in the
955 # read-modify-write cycle to perform policy updates in order to avoid race
956 # conditions: An `etag` is returned in the response to `getIamPolicy`, and
957 # systems are expected to put that etag in the request to `setIamPolicy` to
958 # ensure that their change will be applied to the same version of the policy.
959 #
960 # **Important:** If you use IAM Conditions, you must include the `etag` field
961 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
962 # you to overwrite a version `3` policy with a version `1` policy, and all of
963 # the conditions in the version `3` policy are lost.
964 &quot;version&quot;: 42, # Specifies the format of the policy.
965 #
966 # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
967 # are rejected.
968 #
969 # Any operation that affects conditional role bindings must specify version
970 # `3`. This requirement applies to the following operations:
971 #
972 # * Getting a policy that includes a conditional role binding
973 # * Adding a conditional role binding to a policy
974 # * Changing a conditional role binding in a policy
975 # * Removing any role binding, with or without a condition, from a policy
976 # that includes conditions
977 #
978 # **Important:** If you use IAM Conditions, you must include the `etag` field
979 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
980 # you to overwrite a version `3` policy with a version `1` policy, and all of
981 # the conditions in the version `3` policy are lost.
982 #
983 # If a policy does not include any conditions, operations on that policy may
984 # specify any valid version or leave the field unset.
985 #
986 # To learn which resources support conditions in their IAM policies, see the
987 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
988 }</pre>
989 </div>
990
991 <div class="method">
992 <code class="details" id="insert">insert(project, region, body=None, requestId=None, x__xgafv=None)</code>
993 <pre>Creates a RegionBackendBucket in the specified project in the given scope
994 using the parameters that are included in the request.
995
996 Args:
997 project: string, Project ID for this request. (required)
998 region: string, Name of the region of this request. (required)
999 body: object, The request body.
1000 The object takes the form of:
1001
1002 { # Represents a Cloud Storage Bucket resource.
1003 #
1004 # This Cloud Storage bucket resource is referenced by a URL map of a load
1005 # balancer. For more information, readBackend Buckets.
1006 &quot;bucketName&quot;: &quot;A String&quot;, # Cloud Storage bucket name.
1007 &quot;cdnPolicy&quot;: { # Message containing Cloud CDN configuration for a backend bucket. # Cloud CDN configuration for this BackendBucket.
1008 &quot;bypassCacheOnRequestHeaders&quot;: [ # Bypass the cache when the specified request headers are matched - e.g.
1009 # Pragma or Authorization headers. Up to 5 headers can be specified.
1010 # The cache is bypassed for all cdnPolicy.cacheMode settings.
1011 { # Bypass the cache when the specified request headers are present,
1012 # e.g. Pragma or Authorization headers. Values are case insensitive.
1013 # The presence of such a header overrides the cache_mode setting.
1014 &quot;headerName&quot;: &quot;A String&quot;, # The header field name to match on when bypassing cache.
1015 # Values are case-insensitive.
1016 },
1017 ],
1018 &quot;cacheKeyPolicy&quot;: { # Message containing what to include in the cache key for a request for # The CacheKeyPolicy for this CdnPolicy.
1019 # Cloud CDN.
1020 &quot;includeHttpHeaders&quot;: [ # Allows HTTP request headers (by name) to be used in the cache key.
1021 &quot;A String&quot;,
1022 ],
1023 &quot;queryStringWhitelist&quot;: [ # Names of query string parameters to include in cache keys. Default
1024 # parameters are always included. &#x27;&amp;&#x27; and &#x27;=&#x27; will be percent encoded
1025 # and not treated as delimiters.
1026 &quot;A String&quot;,
1027 ],
1028 },
1029 &quot;cacheMode&quot;: &quot;A String&quot;, # Specifies the cache setting for all responses from this backend.
1030 # The possible values are:USE_ORIGIN_HEADERS Requires the origin to set valid caching
1031 # headers to cache content. Responses without these headers will not be
1032 # cached at Google&#x27;s edge, and will require a full trip to the origin on
1033 # every request, potentially impacting performance and increasing load on
1034 # the origin server.FORCE_CACHE_ALL Cache all content, ignoring any &quot;private&quot;,
1035 # &quot;no-store&quot; or &quot;no-cache&quot; directives in Cache-Control response headers.
1036 # Warning: this may result in Cloud CDN caching private,
1037 # per-user (user identifiable) content.CACHE_ALL_STATIC Automatically cache static content,
1038 # including common image formats, media (video and audio), and web assets
1039 # (JavaScript and CSS). Requests and responses that are marked as
1040 # uncacheable, as well as dynamic content (including HTML), will not be
1041 # cached.
1042 #
1043 # If no value is provided for cdnPolicy.cacheMode, it defaults
1044 # to CACHE_ALL_STATIC.
1045 &quot;clientTtl&quot;: 42, # Specifies a separate client (e.g. browser client) maximum TTL. This is
1046 # used to clamp the max-age (or Expires) value sent to the client. With
1047 # FORCE_CACHE_ALL, the lesser of client_ttl and default_ttl is used for the
1048 # response max-age directive, along with a &quot;public&quot; directive. For
1049 # cacheable content in CACHE_ALL_STATIC mode, client_ttl clamps the max-age
1050 # from the origin (if specified), or else sets the response max-age
1051 # directive to the lesser of the client_ttl and default_ttl, and also
1052 # ensures a &quot;public&quot; cache-control directive is present.
1053 # If a client TTL is not specified, a default value (1 hour) will be used.
1054 # The maximum allowed value is 31,622,400s (1 year).
1055 &quot;defaultTtl&quot;: 42, # Specifies the default TTL for cached content served by this origin for
1056 # responses that do not have an existing valid TTL (max-age or s-maxage).
1057 # Setting a TTL of &quot;0&quot; means &quot;always revalidate&quot;.
1058 # The value of defaultTTL cannot be set to a value greater than that of
1059 # maxTTL, but can be equal.
1060 # When the cacheMode is set to FORCE_CACHE_ALL, the defaultTTL
1061 # will overwrite the TTL set in all responses. The maximum allowed value is
1062 # 31,622,400s (1 year), noting that infrequently accessed objects may be
1063 # evicted from the cache before the defined TTL.
1064 &quot;maxTtl&quot;: 42, # Specifies the maximum allowed TTL for cached content served by this
1065 # origin.
1066 # Cache directives that attempt to set a max-age or s-maxage higher than
1067 # this, or an Expires header more than maxTTL seconds in the future will
1068 # be capped at the value of maxTTL, as if it were the value of an
1069 # s-maxage Cache-Control directive.
1070 # Headers sent to the client will not be modified.
1071 # Setting a TTL of &quot;0&quot; means &quot;always revalidate&quot;.
1072 # The maximum allowed value is 31,622,400s (1 year), noting that
1073 # infrequently accessed objects may be evicted from the cache before
1074 # the defined TTL.
1075 &quot;negativeCaching&quot;: True or False, # Negative caching allows per-status code TTLs to be set, in order
1076 # to apply fine-grained caching for common errors or redirects.
1077 # This can reduce the load on your origin and improve end-user
1078 # experience by reducing response latency.
1079 # When the cache mode is set to CACHE_ALL_STATIC or USE_ORIGIN_HEADERS,
1080 # negative caching applies to responses with the specified response code
1081 # that lack any Cache-Control, Expires, or Pragma: no-cache directives.
1082 # When the cache mode is set to FORCE_CACHE_ALL, negative caching applies
1083 # to all responses with the specified response code, and override any
1084 # caching headers.
1085 # By default, Cloud CDN will apply the following default TTLs to these
1086 # status codes:
1087 # HTTP 300 (Multiple Choice), 301, 308 (Permanent Redirects): 10m
1088 # HTTP 404 (Not Found), 410 (Gone),
1089 # 451 (Unavailable For Legal Reasons): 120s
1090 # HTTP 405 (Method Not Found), 501 (Not Implemented): 60s.
1091 # These defaults can be overridden in negative_caching_policy.
1092 &quot;negativeCachingPolicy&quot;: [ # Sets a cache TTL for the specified HTTP status code.
1093 # negative_caching must be enabled to configure negative_caching_policy.
1094 # Omitting the policy and leaving negative_caching enabled will use
1095 # Cloud CDN&#x27;s default cache TTLs.
1096 # Note that when specifying an explicit negative_caching_policy, you
1097 # should take care to specify a cache TTL for all response codes
1098 # that you wish to cache. Cloud CDN will not apply any default
1099 # negative caching when a policy exists.
1100 { # Specify CDN TTLs for response error codes.
1101 &quot;code&quot;: 42, # The HTTP status code to define a TTL against. Only HTTP status codes
1102 # 300, 301, 302, 307, 308, 404, 405, 410, 421, 451 and 501 can be
1103 # specified as values, and you cannot specify a status code more than
1104 # once.
1105 &quot;ttl&quot;: 42, # The TTL (in seconds) for which to cache responses with the
1106 # corresponding status code.
1107 # The maximum allowed value is 1800s (30 minutes), noting that
1108 # infrequently accessed objects may be evicted from the cache before the
1109 # defined TTL.
1110 },
1111 ],
1112 &quot;requestCoalescing&quot;: True or False, # If true then Cloud CDN will combine multiple concurrent cache fill
1113 # requests into a small number of requests to the origin.
1114 &quot;serveWhileStale&quot;: 42, # Serve existing content from the cache (if available) when revalidating
1115 # content with the origin, or when an error is encountered when refreshing
1116 # the cache.
1117 # This setting defines the default &quot;max-stale&quot; duration for any cached
1118 # responses that do not specify a max-stale directive. Stale responses that
1119 # exceed the TTL configured here will not be served. The default limit
1120 # (max-stale) is 86400s (1 day), which will allow stale content to be
1121 # served up to this limit beyond the max-age (or s-maxage) of a cached
1122 # response.
1123 # The maximum allowed value is 604800 (1 week).
1124 # Set this to zero (0) to disable serve-while-stale.
1125 &quot;signedUrlCacheMaxAgeSec&quot;: &quot;A String&quot;, # Maximum number of seconds the response to a signed URL request will be
1126 # considered fresh. After this time period, the response will be
1127 # revalidated before being served. Defaults to 1hr (3600s). When serving
1128 # responses to signed URL requests, Cloud CDN will internally behave as
1129 # though all responses from this backend had a &quot;Cache-Control:
1130 # public, max-age=[TTL]&quot; header, regardless of any existing
1131 # Cache-Control header. The actual headers served in responses will not be
1132 # altered.
1133 &quot;signedUrlKeyNames&quot;: [ # [Output Only] Names of the keys for signing request URLs.
1134 &quot;A String&quot;,
1135 ],
1136 },
1137 &quot;compressionMode&quot;: &quot;A String&quot;, # Compress text responses using Brotli or gzip compression, based on
1138 # the client&#x27;s Accept-Encoding header.
1139 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Output Only] Creation timestamp inRFC3339
1140 # text format.
1141 &quot;customResponseHeaders&quot;: [ # Headers that the Application Load Balancer should add to proxied responses.
1142 &quot;A String&quot;,
1143 ],
1144 &quot;description&quot;: &quot;A String&quot;, # An optional textual description of the resource; provided by the client
1145 # when the resource is created.
1146 &quot;edgeSecurityPolicy&quot;: &quot;A String&quot;, # [Output Only] The resource URL for the edge security policy associated with
1147 # this backend bucket.
1148 &quot;enableCdn&quot;: True or False, # If true, enable Cloud CDN for this BackendBucket.
1149 &quot;id&quot;: &quot;A String&quot;, # [Output Only] Unique identifier for the resource; defined by the server.
1150 &quot;kind&quot;: &quot;compute#backendBucket&quot;, # Output only. Type of the resource.
1151 &quot;loadBalancingScheme&quot;: &quot;A String&quot;, # The value can only be INTERNAL_MANAGED for cross-region internal layer 7
1152 # load balancer.
1153 #
1154 # If loadBalancingScheme is not specified, the backend bucket can be used by
1155 # classic global external load balancers, or global application external load
1156 # balancers, or both.
1157 &quot;name&quot;: &quot;A String&quot;, # Name of the resource. Provided by the client when the resource is created.
1158 # The name must be 1-63 characters long, and comply withRFC1035.
1159 # Specifically, the name must be 1-63 characters long and match the regular
1160 # expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first
1161 # character must be a lowercase letter, and all following characters must
1162 # be a dash, lowercase letter, or digit, except the last character, which
1163 # cannot be a dash.
1164 &quot;params&quot;: { # Additional Backend Bucket parameters. # Input only. [Input Only] Additional params passed with the request, but not persisted
1165 # as part of resource payload.
1166 &quot;resourceManagerTags&quot;: { # Tag keys/values directly bound to this resource.
1167 # Tag keys and values have the same definition as resource
1168 # manager tags. The field is allowed for INSERT
1169 # only. The keys/values to set on the resource should be specified in
1170 # either ID { : } or Namespaced format
1171 # { : }.
1172 # For example the following are valid inputs:
1173 # * {&quot;tagKeys/333&quot; : &quot;tagValues/444&quot;, &quot;tagKeys/123&quot; : &quot;tagValues/456&quot;}
1174 # * {&quot;123/environment&quot; : &quot;production&quot;, &quot;345/abc&quot; : &quot;xyz&quot;}
1175 # Note:
1176 # * Invalid combinations of ID &amp; namespaced format is not supported. For
1177 # instance: {&quot;123/environment&quot; : &quot;tagValues/444&quot;} is invalid.
1178 &quot;a_key&quot;: &quot;A String&quot;,
1179 },
1180 },
1181 &quot;region&quot;: &quot;A String&quot;, # Output only. [Output Only] URL of the region where the regional backend bucket
1182 # resides. This field is not applicable to global backend buckets.
1183 # You must specify this field as part of the HTTP request URL. It is
1184 # not settable as a field in the request body.
1185 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
1186 &quot;usedBy&quot;: [ # Output only. [Output Only] List of resources referencing that backend bucket.
1187 {
1188 &quot;reference&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined URL for UrlMaps referencing that
1189 # BackendBucket.
1190 },
1191 ],
1192 }
1193
1194 requestId: string, An optional request ID to identify requests. Specify a unique request ID so
1195 that if you must retry your request, the server will know to ignore the
1196 request if it has already been completed.
1197
1198 For example, consider a situation where you make an initial request and
1199 the request times out. If you make the request again with the same
1200 request ID, the server can check if original operation with the same
1201 request ID was received, and if so, will ignore the second request. This
1202 prevents clients from accidentally creating duplicate commitments.
1203
1204 The request ID must be
1205 a valid UUID with the exception that zero UUID is not supported
1206 (00000000-0000-0000-0000-000000000000).
1207 x__xgafv: string, V1 error format.
1208 Allowed values
1209 1 - v1 error format
1210 2 - v2 error format
1211
1212 Returns:
1213 An object of the form:
1214
1215 { # Represents an Operation resource.
1216 #
1217 # Google Compute Engine has three Operation resources:
1218 #
1219 # * [Global](/compute/docs/reference/rest/v1/globalOperations)
1220 # * [Regional](/compute/docs/reference/rest/v1/regionOperations)
1221 # * [Zonal](/compute/docs/reference/rest/v1/zoneOperations)
1222 #
1223 # You can use an operation resource to manage asynchronous API requests.
1224 # For more information, readHandling
1225 # API responses.
1226 #
1227 # Operations can be global, regional or zonal.
1228 #
1229 # - For global operations, use the `globalOperations`
1230 # resource.
1231 # - For regional operations, use the
1232 # `regionOperations` resource.
1233 # - For zonal operations, use
1234 # the `zoneOperations` resource.
1235 #
1236 #
1237 #
1238 # For more information, read
1239 # Global, Regional, and Zonal Resources.
1240 #
1241 # Note that completed Operation resources have a limited
1242 # retention period.
1243 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request.
1244 # Not present otherwise.
1245 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
1246 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is
1247 # set when the operation is created.
1248 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is inRFC3339
1249 # text format.
1250 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation,
1251 # this field will be populated.
1252 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this
1253 # operation.
1254 {
1255 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
1256 &quot;errorDetails&quot;: [ # [Output Only] An optional list of messages that contain the error
1257 # details. There is a set of defined message types to use for providing
1258 # details.The syntax depends on the error code. For example,
1259 # QuotaExceededInfo will have details when the error code is
1260 # QUOTA_EXCEEDED.
1261 {
1262 &quot;errorInfo&quot;: { # Describes the cause of the error with structured details.
1263 #
1264 # Example of an error when contacting the &quot;pubsub.googleapis.com&quot; API when it
1265 # is not enabled:
1266 #
1267 # { &quot;reason&quot;: &quot;API_DISABLED&quot;
1268 # &quot;domain&quot;: &quot;googleapis.com&quot;
1269 # &quot;metadata&quot;: {
1270 # &quot;resource&quot;: &quot;projects/123&quot;,
1271 # &quot;service&quot;: &quot;pubsub.googleapis.com&quot;
1272 # }
1273 # }
1274 #
1275 # This response indicates that the pubsub.googleapis.com API is not enabled.
1276 #
1277 # Example of an error that is returned when attempting to create a Spanner
1278 # instance in a region that is out of stock:
1279 #
1280 # { &quot;reason&quot;: &quot;STOCKOUT&quot;
1281 # &quot;domain&quot;: &quot;spanner.googleapis.com&quot;,
1282 # &quot;metadata&quot;: {
1283 # &quot;availableRegions&quot;: &quot;us-central1,us-east2&quot;
1284 # }
1285 # }
1286 &quot;domain&quot;: &quot;A String&quot;, # The logical grouping to which the &quot;reason&quot; belongs. The error domain
1287 # is typically the registered service name of the tool or product that
1288 # generates the error. Example: &quot;pubsub.googleapis.com&quot;. If the error is
1289 # generated by some common infrastructure, the error domain must be a
1290 # globally unique value that identifies the infrastructure. For Google API
1291 # infrastructure, the error domain is &quot;googleapis.com&quot;.
1292 &quot;metadatas&quot;: { # Additional structured details about this error.
1293 #
1294 # Keys must match a regular expression of `a-z+` but should
1295 # ideally be lowerCamelCase. Also, they must be limited to 64 characters in
1296 # length. When identifying the current value of an exceeded limit, the units
1297 # should be contained in the key, not the value. For example, rather than
1298 # `{&quot;instanceLimit&quot;: &quot;100/request&quot;}`, should be returned as,
1299 # `{&quot;instanceLimitPerRequest&quot;: &quot;100&quot;}`, if the client exceeds the number of
1300 # instances that can be created in a single (batch) request.
1301 &quot;a_key&quot;: &quot;A String&quot;,
1302 },
1303 &quot;reason&quot;: &quot;A String&quot;, # The reason of the error. This is a constant value that identifies the
1304 # proximate cause of the error. Error reasons are unique within a particular
1305 # domain of errors. This should be at most 63 characters and match a
1306 # regular expression of `A-Z+[A-Z0-9]`, which represents
1307 # UPPER_SNAKE_CASE.
1308 },
1309 &quot;help&quot;: { # Provides links to documentation or for performing an out of band action.
1310 #
1311 # For example, if a quota check failed with an error indicating the calling
1312 # project hasn&#x27;t enabled the accessed service, this can contain a URL pointing
1313 # directly to the right place in the developer console to flip the bit.
1314 &quot;links&quot;: [ # URL(s) pointing to additional information on handling the current error.
1315 { # Describes a URL link.
1316 &quot;description&quot;: &quot;A String&quot;, # Describes what the link offers.
1317 &quot;url&quot;: &quot;A String&quot;, # The URL of the link.
1318 },
1319 ],
1320 },
1321 &quot;localizedMessage&quot;: { # Provides a localized error message that is safe to return to the user
1322 # which can be attached to an RPC error.
1323 &quot;locale&quot;: &quot;A String&quot;, # The locale used following the specification defined at
1324 # https://www.rfc-editor.org/rfc/bcp/bcp47.txt.
1325 # Examples are: &quot;en-US&quot;, &quot;fr-CH&quot;, &quot;es-MX&quot;
1326 &quot;message&quot;: &quot;A String&quot;, # The localized error message in the above locale.
1327 },
1328 &quot;quotaInfo&quot;: { # Additional details for quota exceeded error for resource quota.
1329 &quot;dimensions&quot;: { # The map holding related quota dimensions.
1330 &quot;a_key&quot;: &quot;A String&quot;,
1331 },
1332 &quot;futureLimit&quot;: 3.14, # Future quota limit being rolled out. The limit&#x27;s unit depends on the quota
1333 # type or metric.
1334 &quot;limit&quot;: 3.14, # Current effective quota limit. The limit&#x27;s unit depends on the quota type
1335 # or metric.
1336 &quot;limitName&quot;: &quot;A String&quot;, # The name of the quota limit.
1337 &quot;metricName&quot;: &quot;A String&quot;, # The Compute Engine quota metric name.
1338 &quot;rolloutStatus&quot;: &quot;A String&quot;, # Rollout status of the future quota limit.
1339 },
1340 },
1341 ],
1342 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error.
1343 # This property is optional.
1344 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
1345 },
1346 ],
1347 },
1348 &quot;getVersionOperationMetadata&quot;: {
1349 &quot;inlineSbomInfo&quot;: {
1350 &quot;currentComponentVersions&quot;: { # A mapping of components to their currently-applied versions or other
1351 # appropriate identifiers.
1352 &quot;a_key&quot;: &quot;A String&quot;,
1353 },
1354 &quot;targetComponentVersions&quot;: { # A mapping of components to their target versions or other appropriate
1355 # identifiers.
1356 &quot;a_key&quot;: &quot;A String&quot;,
1357 },
1358 },
1359 },
1360 &quot;httpErrorMessage&quot;: &quot;A String&quot;, # [Output Only] If the operation fails, this field contains the HTTP error
1361 # message that was returned, such as `NOT FOUND`.
1362 &quot;httpErrorStatusCode&quot;: 42, # [Output Only] If the operation fails, this field contains the HTTP error
1363 # status code that was returned. For example, a `404` means the
1364 # resource was not found.
1365 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is
1366 # defined by the server.
1367 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested.
1368 # This value is inRFC3339
1369 # text format.
1370 &quot;instancesBulkInsertOperationMetadata&quot;: {
1371 &quot;perLocationStatus&quot;: { # Status information per location (location name is key).
1372 # Example key: zones/us-central1-a
1373 &quot;a_key&quot;: {
1374 &quot;createdVmCount&quot;: 42, # [Output Only] Count of VMs successfully created so far.
1375 &quot;deletedVmCount&quot;: 42, # [Output Only] Count of VMs that got deleted during rollback.
1376 &quot;failedToCreateVmCount&quot;: 42, # [Output Only] Count of VMs that started creating but encountered an
1377 # error.
1378 &quot;status&quot;: &quot;A String&quot;, # [Output Only] Creation status of BulkInsert operation - information
1379 # if the flow is rolling forward or rolling back.
1380 &quot;targetVmCount&quot;: 42, # [Output Only] Count of VMs originally planned to be created.
1381 },
1382 },
1383 },
1384 &quot;kind&quot;: &quot;compute#operation&quot;, # Output only. [Output Only] Type of the resource. Always `compute#operation` for
1385 # Operation resources.
1386 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
1387 &quot;operationGroupId&quot;: &quot;A String&quot;, # Output only. [Output Only] An ID that represents a group of operations, such as when a
1388 # group of operations results from a `bulkInsert` API request.
1389 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`,
1390 # `update`, or `delete`, and so on.
1391 &quot;progress&quot;: 42, # [Output Only] An optional progress indicator that ranges from 0 to 100.
1392 # There is no requirement that this be linear or support any granularity of
1393 # operations. This should not be used to guess when the operation will be
1394 # complete. This number should monotonically increase as the operation
1395 # progresses.
1396 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only
1397 # applicable when performing regional operations.
1398 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
1399 &quot;setCommonInstanceMetadataOperationMetadata&quot;: { # Output only. [Output Only] If the operation is for projects.setCommonInstanceMetadata,
1400 # this field will contain information on all underlying zonal actions and
1401 # their state.
1402 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The client operation id.
1403 &quot;perLocationOperations&quot;: { # [Output Only] Status information per location (location name is key).
1404 # Example key: zones/us-central1-a
1405 &quot;a_key&quot;: {
1406 &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
1407 # populated.
1408 # different programming environments, including REST APIs and RPC APIs. It is
1409 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
1410 # three pieces of data: error code, error message, and error details.
1411 #
1412 # You can find out more about this error model and how to work with it in the
1413 # [API Design Guide](https://cloud.google.com/apis/design/errors).
1414 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1415 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
1416 # message types for APIs to use.
1417 {
1418 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1419 },
1420 ],
1421 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
1422 # user-facing error message should be localized and sent in the
1423 # google.rpc.Status.details field, or localized by the client.
1424 },
1425 &quot;state&quot;: &quot;A String&quot;, # [Output Only] Status of the action, which can be one of the following:
1426 # `PROPAGATING`, `PROPAGATED`, `ABANDONED`, `FAILED`, or `DONE`.
1427 },
1428 },
1429 },
1430 &quot;startTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was started by the server.
1431 # This value is inRFC3339
1432 # text format.
1433 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the operation, which can be one of the
1434 # following:
1435 # `PENDING`, `RUNNING`, or `DONE`.
1436 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the
1437 # operation.
1438 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation
1439 # of the target resource.
1440 &quot;targetLink&quot;: &quot;A String&quot;, # [Output Only] The URL of the resource that the operation modifies. For
1441 # operations related to creating a snapshot, this points to the disk
1442 # that the snapshot was created from.
1443 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example:
1444 # `[email protected]` or
1445 # `alice_smith_identifier (global/workforcePools/example-com-us-employees)`.
1446 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the
1447 # operation, this field will be populated.
1448 {
1449 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute
1450 # Engine returns NO_RESULTS_ON_PAGE if there
1451 # are no results in the response.
1452 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key:
1453 # value format. For example:
1454 #
1455 # &quot;data&quot;: [
1456 # {
1457 # &quot;key&quot;: &quot;scope&quot;,
1458 # &quot;value&quot;: &quot;zones/us-east1-d&quot;
1459 # }
1460 {
1461 &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being
1462 # returned. For example, for warnings where there are no results in a list
1463 # request for a particular zone, this key might be scope and
1464 # the key value might be the zone name. Other examples might be a key
1465 # indicating a deprecated resource and a suggested replacement, or a
1466 # warning about invalid network settings (for example, if an instance
1467 # attempts to perform IP forwarding but is not enabled for IP forwarding).
1468 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
1469 },
1470 ],
1471 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
1472 },
1473 ],
1474 &quot;zone&quot;: &quot;A String&quot;, # [Output Only] The URL of the zone where the operation resides. Only
1475 # applicable when performing per-zone operations.
1476 }</pre>
1477 </div>
1478
1479 <div class="method">
1480 <code class="details" id="list">list(project, region, filter=None, maxResults=None, orderBy=None, pageToken=None, returnPartialSuccess=None, x__xgafv=None)</code>
1481 <pre>Retrieves the list of BackendBucket resources available to the specified
1482 project in the given region.
1483
1484 Args:
1485 project: string, Project ID for this request. (required)
1486 region: string, Name of the region of this request. (required)
1487 filter: string, A filter expression that filters resources listed in the response. Most
1488 Compute resources support two types of filter expressions:
1489 expressions that support regular expressions and expressions that follow
1490 API improvement proposal AIP-160.
1491 These two types of filter expressions cannot be mixed in one request.
1492
1493 If you want to use AIP-160, your expression must specify the field name, an
1494 operator, and the value that you want to use for filtering. The value
1495 must be a string, a number, or a boolean. The operator
1496 must be either `=`, `!=`, `&gt;`, `&lt;`, `&lt;=`, `&gt;=` or `:`.
1497
1498 For example, if you are filtering Compute Engine instances, you can
1499 exclude instances named `example-instance` by specifying
1500 `name != example-instance`.
1501
1502 The `:*` comparison can be used to test whether a key has been defined.
1503 For example, to find all objects with `owner` label use:
1504 ```
1505 labels.owner:*
1506 ```
1507
1508 You can also filter nested fields. For example, you could specify
1509 `scheduling.automaticRestart = false` to include instances only
1510 if they are not scheduled for automatic restarts. You can use filtering
1511 on nested fields to filter based onresource labels.
1512
1513 To filter on multiple expressions, provide each separate expression within
1514 parentheses. For example:
1515 ```
1516 (scheduling.automaticRestart = true)
1517 (cpuPlatform = &quot;Intel Skylake&quot;)
1518 ```
1519 By default, each expression is an `AND` expression. However, you
1520 can include `AND` and `OR` expressions explicitly.
1521 For example:
1522 ```
1523 (cpuPlatform = &quot;Intel Skylake&quot;) OR
1524 (cpuPlatform = &quot;Intel Broadwell&quot;) AND
1525 (scheduling.automaticRestart = true)
1526 ```
1527
1528 If you want to use a regular expression, use the `eq` (equal) or `ne`
1529 (not equal) operator against a single un-parenthesized expression with or
1530 without quotes or against multiple parenthesized expressions. Examples:
1531
1532 `fieldname eq unquoted literal`
1533 `fieldname eq &#x27;single quoted literal&#x27;`
1534 `fieldname eq &quot;double quoted literal&quot;`
1535 `(fieldname1 eq literal) (fieldname2 ne &quot;literal&quot;)`
1536
1537 The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
1538 The literal value must match the entire field.
1539
1540 For example, to filter for instances that do not end with name &quot;instance&quot;,
1541 you would use `name ne .*instance`.
1542
1543 You cannot combine constraints on multiple fields using regular
1544 expressions.
1545 maxResults: integer, The maximum number of results per page that should be returned.
1546 If the number of available results is larger than `maxResults`,
1547 Compute Engine returns a `nextPageToken` that can be used to get
1548 the next page of results in subsequent list requests. Acceptable values are
1549 `0` to `500`, inclusive. (Default: `500`)
1550 orderBy: string, Sorts list results by a certain order. By default, results
1551 are returned in alphanumerical order based on the resource name.
1552
1553 You can also sort results in descending order based on the creation
1554 timestamp using `orderBy=&quot;creationTimestamp desc&quot;`. This sorts
1555 results based on the `creationTimestamp` field in
1556 reverse chronological order (newest result first). Use this to sort
1557 resources like operations so that the newest operation is returned first.
1558
1559 Currently, only sorting by `name` or
1560 `creationTimestamp desc` is supported.
1561 pageToken: string, Specifies a page token to use. Set `pageToken` to the
1562 `nextPageToken` returned by a previous list request to get
1563 the next page of results.
1564 returnPartialSuccess: boolean, Opt-in for partial success behavior which provides partial results in case
1565 of failure. The default value is false.
1566
1567 For example, when partial success behavior is enabled, aggregatedList for a
1568 single zone scope either returns all resources in the zone or no resources,
1569 with an error code.
1570 x__xgafv: string, V1 error format.
1571 Allowed values
1572 1 - v1 error format
1573 2 - v2 error format
1574
1575 Returns:
1576 An object of the form:
1577
1578 { # Contains a list of BackendBucket resources.
1579 &quot;id&quot;: &quot;A String&quot;, # [Output Only] Unique identifier for the resource; defined by the server.
1580 &quot;items&quot;: [ # A list of BackendBucket resources.
1581 { # Represents a Cloud Storage Bucket resource.
1582 #
1583 # This Cloud Storage bucket resource is referenced by a URL map of a load
1584 # balancer. For more information, readBackend Buckets.
1585 &quot;bucketName&quot;: &quot;A String&quot;, # Cloud Storage bucket name.
1586 &quot;cdnPolicy&quot;: { # Message containing Cloud CDN configuration for a backend bucket. # Cloud CDN configuration for this BackendBucket.
1587 &quot;bypassCacheOnRequestHeaders&quot;: [ # Bypass the cache when the specified request headers are matched - e.g.
1588 # Pragma or Authorization headers. Up to 5 headers can be specified.
1589 # The cache is bypassed for all cdnPolicy.cacheMode settings.
1590 { # Bypass the cache when the specified request headers are present,
1591 # e.g. Pragma or Authorization headers. Values are case insensitive.
1592 # The presence of such a header overrides the cache_mode setting.
1593 &quot;headerName&quot;: &quot;A String&quot;, # The header field name to match on when bypassing cache.
1594 # Values are case-insensitive.
1595 },
1596 ],
1597 &quot;cacheKeyPolicy&quot;: { # Message containing what to include in the cache key for a request for # The CacheKeyPolicy for this CdnPolicy.
1598 # Cloud CDN.
1599 &quot;includeHttpHeaders&quot;: [ # Allows HTTP request headers (by name) to be used in the cache key.
1600 &quot;A String&quot;,
1601 ],
1602 &quot;queryStringWhitelist&quot;: [ # Names of query string parameters to include in cache keys. Default
1603 # parameters are always included. &#x27;&amp;&#x27; and &#x27;=&#x27; will be percent encoded
1604 # and not treated as delimiters.
1605 &quot;A String&quot;,
1606 ],
1607 },
1608 &quot;cacheMode&quot;: &quot;A String&quot;, # Specifies the cache setting for all responses from this backend.
1609 # The possible values are:USE_ORIGIN_HEADERS Requires the origin to set valid caching
1610 # headers to cache content. Responses without these headers will not be
1611 # cached at Google&#x27;s edge, and will require a full trip to the origin on
1612 # every request, potentially impacting performance and increasing load on
1613 # the origin server.FORCE_CACHE_ALL Cache all content, ignoring any &quot;private&quot;,
1614 # &quot;no-store&quot; or &quot;no-cache&quot; directives in Cache-Control response headers.
1615 # Warning: this may result in Cloud CDN caching private,
1616 # per-user (user identifiable) content.CACHE_ALL_STATIC Automatically cache static content,
1617 # including common image formats, media (video and audio), and web assets
1618 # (JavaScript and CSS). Requests and responses that are marked as
1619 # uncacheable, as well as dynamic content (including HTML), will not be
1620 # cached.
1621 #
1622 # If no value is provided for cdnPolicy.cacheMode, it defaults
1623 # to CACHE_ALL_STATIC.
1624 &quot;clientTtl&quot;: 42, # Specifies a separate client (e.g. browser client) maximum TTL. This is
1625 # used to clamp the max-age (or Expires) value sent to the client. With
1626 # FORCE_CACHE_ALL, the lesser of client_ttl and default_ttl is used for the
1627 # response max-age directive, along with a &quot;public&quot; directive. For
1628 # cacheable content in CACHE_ALL_STATIC mode, client_ttl clamps the max-age
1629 # from the origin (if specified), or else sets the response max-age
1630 # directive to the lesser of the client_ttl and default_ttl, and also
1631 # ensures a &quot;public&quot; cache-control directive is present.
1632 # If a client TTL is not specified, a default value (1 hour) will be used.
1633 # The maximum allowed value is 31,622,400s (1 year).
1634 &quot;defaultTtl&quot;: 42, # Specifies the default TTL for cached content served by this origin for
1635 # responses that do not have an existing valid TTL (max-age or s-maxage).
1636 # Setting a TTL of &quot;0&quot; means &quot;always revalidate&quot;.
1637 # The value of defaultTTL cannot be set to a value greater than that of
1638 # maxTTL, but can be equal.
1639 # When the cacheMode is set to FORCE_CACHE_ALL, the defaultTTL
1640 # will overwrite the TTL set in all responses. The maximum allowed value is
1641 # 31,622,400s (1 year), noting that infrequently accessed objects may be
1642 # evicted from the cache before the defined TTL.
1643 &quot;maxTtl&quot;: 42, # Specifies the maximum allowed TTL for cached content served by this
1644 # origin.
1645 # Cache directives that attempt to set a max-age or s-maxage higher than
1646 # this, or an Expires header more than maxTTL seconds in the future will
1647 # be capped at the value of maxTTL, as if it were the value of an
1648 # s-maxage Cache-Control directive.
1649 # Headers sent to the client will not be modified.
1650 # Setting a TTL of &quot;0&quot; means &quot;always revalidate&quot;.
1651 # The maximum allowed value is 31,622,400s (1 year), noting that
1652 # infrequently accessed objects may be evicted from the cache before
1653 # the defined TTL.
1654 &quot;negativeCaching&quot;: True or False, # Negative caching allows per-status code TTLs to be set, in order
1655 # to apply fine-grained caching for common errors or redirects.
1656 # This can reduce the load on your origin and improve end-user
1657 # experience by reducing response latency.
1658 # When the cache mode is set to CACHE_ALL_STATIC or USE_ORIGIN_HEADERS,
1659 # negative caching applies to responses with the specified response code
1660 # that lack any Cache-Control, Expires, or Pragma: no-cache directives.
1661 # When the cache mode is set to FORCE_CACHE_ALL, negative caching applies
1662 # to all responses with the specified response code, and override any
1663 # caching headers.
1664 # By default, Cloud CDN will apply the following default TTLs to these
1665 # status codes:
1666 # HTTP 300 (Multiple Choice), 301, 308 (Permanent Redirects): 10m
1667 # HTTP 404 (Not Found), 410 (Gone),
1668 # 451 (Unavailable For Legal Reasons): 120s
1669 # HTTP 405 (Method Not Found), 501 (Not Implemented): 60s.
1670 # These defaults can be overridden in negative_caching_policy.
1671 &quot;negativeCachingPolicy&quot;: [ # Sets a cache TTL for the specified HTTP status code.
1672 # negative_caching must be enabled to configure negative_caching_policy.
1673 # Omitting the policy and leaving negative_caching enabled will use
1674 # Cloud CDN&#x27;s default cache TTLs.
1675 # Note that when specifying an explicit negative_caching_policy, you
1676 # should take care to specify a cache TTL for all response codes
1677 # that you wish to cache. Cloud CDN will not apply any default
1678 # negative caching when a policy exists.
1679 { # Specify CDN TTLs for response error codes.
1680 &quot;code&quot;: 42, # The HTTP status code to define a TTL against. Only HTTP status codes
1681 # 300, 301, 302, 307, 308, 404, 405, 410, 421, 451 and 501 can be
1682 # specified as values, and you cannot specify a status code more than
1683 # once.
1684 &quot;ttl&quot;: 42, # The TTL (in seconds) for which to cache responses with the
1685 # corresponding status code.
1686 # The maximum allowed value is 1800s (30 minutes), noting that
1687 # infrequently accessed objects may be evicted from the cache before the
1688 # defined TTL.
1689 },
1690 ],
1691 &quot;requestCoalescing&quot;: True or False, # If true then Cloud CDN will combine multiple concurrent cache fill
1692 # requests into a small number of requests to the origin.
1693 &quot;serveWhileStale&quot;: 42, # Serve existing content from the cache (if available) when revalidating
1694 # content with the origin, or when an error is encountered when refreshing
1695 # the cache.
1696 # This setting defines the default &quot;max-stale&quot; duration for any cached
1697 # responses that do not specify a max-stale directive. Stale responses that
1698 # exceed the TTL configured here will not be served. The default limit
1699 # (max-stale) is 86400s (1 day), which will allow stale content to be
1700 # served up to this limit beyond the max-age (or s-maxage) of a cached
1701 # response.
1702 # The maximum allowed value is 604800 (1 week).
1703 # Set this to zero (0) to disable serve-while-stale.
1704 &quot;signedUrlCacheMaxAgeSec&quot;: &quot;A String&quot;, # Maximum number of seconds the response to a signed URL request will be
1705 # considered fresh. After this time period, the response will be
1706 # revalidated before being served. Defaults to 1hr (3600s). When serving
1707 # responses to signed URL requests, Cloud CDN will internally behave as
1708 # though all responses from this backend had a &quot;Cache-Control:
1709 # public, max-age=[TTL]&quot; header, regardless of any existing
1710 # Cache-Control header. The actual headers served in responses will not be
1711 # altered.
1712 &quot;signedUrlKeyNames&quot;: [ # [Output Only] Names of the keys for signing request URLs.
1713 &quot;A String&quot;,
1714 ],
1715 },
1716 &quot;compressionMode&quot;: &quot;A String&quot;, # Compress text responses using Brotli or gzip compression, based on
1717 # the client&#x27;s Accept-Encoding header.
1718 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Output Only] Creation timestamp inRFC3339
1719 # text format.
1720 &quot;customResponseHeaders&quot;: [ # Headers that the Application Load Balancer should add to proxied responses.
1721 &quot;A String&quot;,
1722 ],
1723 &quot;description&quot;: &quot;A String&quot;, # An optional textual description of the resource; provided by the client
1724 # when the resource is created.
1725 &quot;edgeSecurityPolicy&quot;: &quot;A String&quot;, # [Output Only] The resource URL for the edge security policy associated with
1726 # this backend bucket.
1727 &quot;enableCdn&quot;: True or False, # If true, enable Cloud CDN for this BackendBucket.
1728 &quot;id&quot;: &quot;A String&quot;, # [Output Only] Unique identifier for the resource; defined by the server.
1729 &quot;kind&quot;: &quot;compute#backendBucket&quot;, # Output only. Type of the resource.
1730 &quot;loadBalancingScheme&quot;: &quot;A String&quot;, # The value can only be INTERNAL_MANAGED for cross-region internal layer 7
1731 # load balancer.
1732 #
1733 # If loadBalancingScheme is not specified, the backend bucket can be used by
1734 # classic global external load balancers, or global application external load
1735 # balancers, or both.
1736 &quot;name&quot;: &quot;A String&quot;, # Name of the resource. Provided by the client when the resource is created.
1737 # The name must be 1-63 characters long, and comply withRFC1035.
1738 # Specifically, the name must be 1-63 characters long and match the regular
1739 # expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first
1740 # character must be a lowercase letter, and all following characters must
1741 # be a dash, lowercase letter, or digit, except the last character, which
1742 # cannot be a dash.
1743 &quot;params&quot;: { # Additional Backend Bucket parameters. # Input only. [Input Only] Additional params passed with the request, but not persisted
1744 # as part of resource payload.
1745 &quot;resourceManagerTags&quot;: { # Tag keys/values directly bound to this resource.
1746 # Tag keys and values have the same definition as resource
1747 # manager tags. The field is allowed for INSERT
1748 # only. The keys/values to set on the resource should be specified in
1749 # either ID { : } or Namespaced format
1750 # { : }.
1751 # For example the following are valid inputs:
1752 # * {&quot;tagKeys/333&quot; : &quot;tagValues/444&quot;, &quot;tagKeys/123&quot; : &quot;tagValues/456&quot;}
1753 # * {&quot;123/environment&quot; : &quot;production&quot;, &quot;345/abc&quot; : &quot;xyz&quot;}
1754 # Note:
1755 # * Invalid combinations of ID &amp; namespaced format is not supported. For
1756 # instance: {&quot;123/environment&quot; : &quot;tagValues/444&quot;} is invalid.
1757 &quot;a_key&quot;: &quot;A String&quot;,
1758 },
1759 },
1760 &quot;region&quot;: &quot;A String&quot;, # Output only. [Output Only] URL of the region where the regional backend bucket
1761 # resides. This field is not applicable to global backend buckets.
1762 # You must specify this field as part of the HTTP request URL. It is
1763 # not settable as a field in the request body.
1764 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
1765 &quot;usedBy&quot;: [ # Output only. [Output Only] List of resources referencing that backend bucket.
1766 {
1767 &quot;reference&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined URL for UrlMaps referencing that
1768 # BackendBucket.
1769 },
1770 ],
1771 },
1772 ],
1773 &quot;kind&quot;: &quot;compute#backendBucketList&quot;, # Output only. Type of resource.
1774 &quot;nextPageToken&quot;: &quot;A String&quot;, # [Output Only] This token allows you to get the next page of results for
1775 # list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for
1776 # the query parameter pageToken in the next list request.
1777 # Subsequent list requests will have their own nextPageToken to
1778 # continue paging through the results.
1779 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined URL for this resource.
1780 &quot;warning&quot;: { # [Output Only] Informational warning message.
1781 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute
1782 # Engine returns NO_RESULTS_ON_PAGE if there
1783 # are no results in the response.
1784 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key:
1785 # value format. For example:
1786 #
1787 # &quot;data&quot;: [
1788 # {
1789 # &quot;key&quot;: &quot;scope&quot;,
1790 # &quot;value&quot;: &quot;zones/us-east1-d&quot;
1791 # }
1792 {
1793 &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being
1794 # returned. For example, for warnings where there are no results in a list
1795 # request for a particular zone, this key might be scope and
1796 # the key value might be the zone name. Other examples might be a key
1797 # indicating a deprecated resource and a suggested replacement, or a
1798 # warning about invalid network settings (for example, if an instance
1799 # attempts to perform IP forwarding but is not enabled for IP forwarding).
1800 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
1801 },
1802 ],
1803 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
1804 },
1805 }</pre>
1806 </div>
1807
1808 <div class="method">
1809 <code class="details" id="listUsable">listUsable(project, region, filter=None, maxResults=None, orderBy=None, pageToken=None, returnPartialSuccess=None, x__xgafv=None)</code>
1810 <pre>Retrieves a list of all usable backend buckets in the specified project in
1811 the given region.
1812
1813 Args:
1814 project: string, Project ID for this request. (required)
1815 region: string, Name of the region scoping this request.
1816 It must be a string that meets the requirements in RFC1035. (required)
1817 filter: string, A filter expression that filters resources listed in the response. Most
1818 Compute resources support two types of filter expressions:
1819 expressions that support regular expressions and expressions that follow
1820 API improvement proposal AIP-160.
1821 These two types of filter expressions cannot be mixed in one request.
1822
1823 If you want to use AIP-160, your expression must specify the field name, an
1824 operator, and the value that you want to use for filtering. The value
1825 must be a string, a number, or a boolean. The operator
1826 must be either `=`, `!=`, `&gt;`, `&lt;`, `&lt;=`, `&gt;=` or `:`.
1827
1828 For example, if you are filtering Compute Engine instances, you can
1829 exclude instances named `example-instance` by specifying
1830 `name != example-instance`.
1831
1832 The `:*` comparison can be used to test whether a key has been defined.
1833 For example, to find all objects with `owner` label use:
1834 ```
1835 labels.owner:*
1836 ```
1837
1838 You can also filter nested fields. For example, you could specify
1839 `scheduling.automaticRestart = false` to include instances only
1840 if they are not scheduled for automatic restarts. You can use filtering
1841 on nested fields to filter based onresource labels.
1842
1843 To filter on multiple expressions, provide each separate expression within
1844 parentheses. For example:
1845 ```
1846 (scheduling.automaticRestart = true)
1847 (cpuPlatform = &quot;Intel Skylake&quot;)
1848 ```
1849 By default, each expression is an `AND` expression. However, you
1850 can include `AND` and `OR` expressions explicitly.
1851 For example:
1852 ```
1853 (cpuPlatform = &quot;Intel Skylake&quot;) OR
1854 (cpuPlatform = &quot;Intel Broadwell&quot;) AND
1855 (scheduling.automaticRestart = true)
1856 ```
1857
1858 If you want to use a regular expression, use the `eq` (equal) or `ne`
1859 (not equal) operator against a single un-parenthesized expression with or
1860 without quotes or against multiple parenthesized expressions. Examples:
1861
1862 `fieldname eq unquoted literal`
1863 `fieldname eq &#x27;single quoted literal&#x27;`
1864 `fieldname eq &quot;double quoted literal&quot;`
1865 `(fieldname1 eq literal) (fieldname2 ne &quot;literal&quot;)`
1866
1867 The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
1868 The literal value must match the entire field.
1869
1870 For example, to filter for instances that do not end with name &quot;instance&quot;,
1871 you would use `name ne .*instance`.
1872
1873 You cannot combine constraints on multiple fields using regular
1874 expressions.
1875 maxResults: integer, The maximum number of results per page that should be returned.
1876 If the number of available results is larger than `maxResults`,
1877 Compute Engine returns a `nextPageToken` that can be used to get
1878 the next page of results in subsequent list requests. Acceptable values are
1879 `0` to `500`, inclusive. (Default: `500`)
1880 orderBy: string, Sorts list results by a certain order. By default, results
1881 are returned in alphanumerical order based on the resource name.
1882
1883 You can also sort results in descending order based on the creation
1884 timestamp using `orderBy=&quot;creationTimestamp desc&quot;`. This sorts
1885 results based on the `creationTimestamp` field in
1886 reverse chronological order (newest result first). Use this to sort
1887 resources like operations so that the newest operation is returned first.
1888
1889 Currently, only sorting by `name` or
1890 `creationTimestamp desc` is supported.
1891 pageToken: string, Specifies a page token to use. Set `pageToken` to the
1892 `nextPageToken` returned by a previous list request to get
1893 the next page of results.
1894 returnPartialSuccess: boolean, Opt-in for partial success behavior which provides partial results in case
1895 of failure. The default value is false.
1896
1897 For example, when partial success behavior is enabled, aggregatedList for a
1898 single zone scope either returns all resources in the zone or no resources,
1899 with an error code.
1900 x__xgafv: string, V1 error format.
1901 Allowed values
1902 1 - v1 error format
1903 2 - v2 error format
1904
1905 Returns:
1906 An object of the form:
1907
1908 {
1909 &quot;id&quot;: &quot;A String&quot;, # [Output Only] Unique identifier for the resource; defined by the server.
1910 &quot;items&quot;: [ # A list of BackendBucket resources.
1911 { # Represents a Cloud Storage Bucket resource.
1912 #
1913 # This Cloud Storage bucket resource is referenced by a URL map of a load
1914 # balancer. For more information, readBackend Buckets.
1915 &quot;bucketName&quot;: &quot;A String&quot;, # Cloud Storage bucket name.
1916 &quot;cdnPolicy&quot;: { # Message containing Cloud CDN configuration for a backend bucket. # Cloud CDN configuration for this BackendBucket.
1917 &quot;bypassCacheOnRequestHeaders&quot;: [ # Bypass the cache when the specified request headers are matched - e.g.
1918 # Pragma or Authorization headers. Up to 5 headers can be specified.
1919 # The cache is bypassed for all cdnPolicy.cacheMode settings.
1920 { # Bypass the cache when the specified request headers are present,
1921 # e.g. Pragma or Authorization headers. Values are case insensitive.
1922 # The presence of such a header overrides the cache_mode setting.
1923 &quot;headerName&quot;: &quot;A String&quot;, # The header field name to match on when bypassing cache.
1924 # Values are case-insensitive.
1925 },
1926 ],
1927 &quot;cacheKeyPolicy&quot;: { # Message containing what to include in the cache key for a request for # The CacheKeyPolicy for this CdnPolicy.
1928 # Cloud CDN.
1929 &quot;includeHttpHeaders&quot;: [ # Allows HTTP request headers (by name) to be used in the cache key.
1930 &quot;A String&quot;,
1931 ],
1932 &quot;queryStringWhitelist&quot;: [ # Names of query string parameters to include in cache keys. Default
1933 # parameters are always included. &#x27;&amp;&#x27; and &#x27;=&#x27; will be percent encoded
1934 # and not treated as delimiters.
1935 &quot;A String&quot;,
1936 ],
1937 },
1938 &quot;cacheMode&quot;: &quot;A String&quot;, # Specifies the cache setting for all responses from this backend.
1939 # The possible values are:USE_ORIGIN_HEADERS Requires the origin to set valid caching
1940 # headers to cache content. Responses without these headers will not be
1941 # cached at Google&#x27;s edge, and will require a full trip to the origin on
1942 # every request, potentially impacting performance and increasing load on
1943 # the origin server.FORCE_CACHE_ALL Cache all content, ignoring any &quot;private&quot;,
1944 # &quot;no-store&quot; or &quot;no-cache&quot; directives in Cache-Control response headers.
1945 # Warning: this may result in Cloud CDN caching private,
1946 # per-user (user identifiable) content.CACHE_ALL_STATIC Automatically cache static content,
1947 # including common image formats, media (video and audio), and web assets
1948 # (JavaScript and CSS). Requests and responses that are marked as
1949 # uncacheable, as well as dynamic content (including HTML), will not be
1950 # cached.
1951 #
1952 # If no value is provided for cdnPolicy.cacheMode, it defaults
1953 # to CACHE_ALL_STATIC.
1954 &quot;clientTtl&quot;: 42, # Specifies a separate client (e.g. browser client) maximum TTL. This is
1955 # used to clamp the max-age (or Expires) value sent to the client. With
1956 # FORCE_CACHE_ALL, the lesser of client_ttl and default_ttl is used for the
1957 # response max-age directive, along with a &quot;public&quot; directive. For
1958 # cacheable content in CACHE_ALL_STATIC mode, client_ttl clamps the max-age
1959 # from the origin (if specified), or else sets the response max-age
1960 # directive to the lesser of the client_ttl and default_ttl, and also
1961 # ensures a &quot;public&quot; cache-control directive is present.
1962 # If a client TTL is not specified, a default value (1 hour) will be used.
1963 # The maximum allowed value is 31,622,400s (1 year).
1964 &quot;defaultTtl&quot;: 42, # Specifies the default TTL for cached content served by this origin for
1965 # responses that do not have an existing valid TTL (max-age or s-maxage).
1966 # Setting a TTL of &quot;0&quot; means &quot;always revalidate&quot;.
1967 # The value of defaultTTL cannot be set to a value greater than that of
1968 # maxTTL, but can be equal.
1969 # When the cacheMode is set to FORCE_CACHE_ALL, the defaultTTL
1970 # will overwrite the TTL set in all responses. The maximum allowed value is
1971 # 31,622,400s (1 year), noting that infrequently accessed objects may be
1972 # evicted from the cache before the defined TTL.
1973 &quot;maxTtl&quot;: 42, # Specifies the maximum allowed TTL for cached content served by this
1974 # origin.
1975 # Cache directives that attempt to set a max-age or s-maxage higher than
1976 # this, or an Expires header more than maxTTL seconds in the future will
1977 # be capped at the value of maxTTL, as if it were the value of an
1978 # s-maxage Cache-Control directive.
1979 # Headers sent to the client will not be modified.
1980 # Setting a TTL of &quot;0&quot; means &quot;always revalidate&quot;.
1981 # The maximum allowed value is 31,622,400s (1 year), noting that
1982 # infrequently accessed objects may be evicted from the cache before
1983 # the defined TTL.
1984 &quot;negativeCaching&quot;: True or False, # Negative caching allows per-status code TTLs to be set, in order
1985 # to apply fine-grained caching for common errors or redirects.
1986 # This can reduce the load on your origin and improve end-user
1987 # experience by reducing response latency.
1988 # When the cache mode is set to CACHE_ALL_STATIC or USE_ORIGIN_HEADERS,
1989 # negative caching applies to responses with the specified response code
1990 # that lack any Cache-Control, Expires, or Pragma: no-cache directives.
1991 # When the cache mode is set to FORCE_CACHE_ALL, negative caching applies
1992 # to all responses with the specified response code, and override any
1993 # caching headers.
1994 # By default, Cloud CDN will apply the following default TTLs to these
1995 # status codes:
1996 # HTTP 300 (Multiple Choice), 301, 308 (Permanent Redirects): 10m
1997 # HTTP 404 (Not Found), 410 (Gone),
1998 # 451 (Unavailable For Legal Reasons): 120s
1999 # HTTP 405 (Method Not Found), 501 (Not Implemented): 60s.
2000 # These defaults can be overridden in negative_caching_policy.
2001 &quot;negativeCachingPolicy&quot;: [ # Sets a cache TTL for the specified HTTP status code.
2002 # negative_caching must be enabled to configure negative_caching_policy.
2003 # Omitting the policy and leaving negative_caching enabled will use
2004 # Cloud CDN&#x27;s default cache TTLs.
2005 # Note that when specifying an explicit negative_caching_policy, you
2006 # should take care to specify a cache TTL for all response codes
2007 # that you wish to cache. Cloud CDN will not apply any default
2008 # negative caching when a policy exists.
2009 { # Specify CDN TTLs for response error codes.
2010 &quot;code&quot;: 42, # The HTTP status code to define a TTL against. Only HTTP status codes
2011 # 300, 301, 302, 307, 308, 404, 405, 410, 421, 451 and 501 can be
2012 # specified as values, and you cannot specify a status code more than
2013 # once.
2014 &quot;ttl&quot;: 42, # The TTL (in seconds) for which to cache responses with the
2015 # corresponding status code.
2016 # The maximum allowed value is 1800s (30 minutes), noting that
2017 # infrequently accessed objects may be evicted from the cache before the
2018 # defined TTL.
2019 },
2020 ],
2021 &quot;requestCoalescing&quot;: True or False, # If true then Cloud CDN will combine multiple concurrent cache fill
2022 # requests into a small number of requests to the origin.
2023 &quot;serveWhileStale&quot;: 42, # Serve existing content from the cache (if available) when revalidating
2024 # content with the origin, or when an error is encountered when refreshing
2025 # the cache.
2026 # This setting defines the default &quot;max-stale&quot; duration for any cached
2027 # responses that do not specify a max-stale directive. Stale responses that
2028 # exceed the TTL configured here will not be served. The default limit
2029 # (max-stale) is 86400s (1 day), which will allow stale content to be
2030 # served up to this limit beyond the max-age (or s-maxage) of a cached
2031 # response.
2032 # The maximum allowed value is 604800 (1 week).
2033 # Set this to zero (0) to disable serve-while-stale.
2034 &quot;signedUrlCacheMaxAgeSec&quot;: &quot;A String&quot;, # Maximum number of seconds the response to a signed URL request will be
2035 # considered fresh. After this time period, the response will be
2036 # revalidated before being served. Defaults to 1hr (3600s). When serving
2037 # responses to signed URL requests, Cloud CDN will internally behave as
2038 # though all responses from this backend had a &quot;Cache-Control:
2039 # public, max-age=[TTL]&quot; header, regardless of any existing
2040 # Cache-Control header. The actual headers served in responses will not be
2041 # altered.
2042 &quot;signedUrlKeyNames&quot;: [ # [Output Only] Names of the keys for signing request URLs.
2043 &quot;A String&quot;,
2044 ],
2045 },
2046 &quot;compressionMode&quot;: &quot;A String&quot;, # Compress text responses using Brotli or gzip compression, based on
2047 # the client&#x27;s Accept-Encoding header.
2048 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Output Only] Creation timestamp inRFC3339
2049 # text format.
2050 &quot;customResponseHeaders&quot;: [ # Headers that the Application Load Balancer should add to proxied responses.
2051 &quot;A String&quot;,
2052 ],
2053 &quot;description&quot;: &quot;A String&quot;, # An optional textual description of the resource; provided by the client
2054 # when the resource is created.
2055 &quot;edgeSecurityPolicy&quot;: &quot;A String&quot;, # [Output Only] The resource URL for the edge security policy associated with
2056 # this backend bucket.
2057 &quot;enableCdn&quot;: True or False, # If true, enable Cloud CDN for this BackendBucket.
2058 &quot;id&quot;: &quot;A String&quot;, # [Output Only] Unique identifier for the resource; defined by the server.
2059 &quot;kind&quot;: &quot;compute#backendBucket&quot;, # Output only. Type of the resource.
2060 &quot;loadBalancingScheme&quot;: &quot;A String&quot;, # The value can only be INTERNAL_MANAGED for cross-region internal layer 7
2061 # load balancer.
2062 #
2063 # If loadBalancingScheme is not specified, the backend bucket can be used by
2064 # classic global external load balancers, or global application external load
2065 # balancers, or both.
2066 &quot;name&quot;: &quot;A String&quot;, # Name of the resource. Provided by the client when the resource is created.
2067 # The name must be 1-63 characters long, and comply withRFC1035.
2068 # Specifically, the name must be 1-63 characters long and match the regular
2069 # expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first
2070 # character must be a lowercase letter, and all following characters must
2071 # be a dash, lowercase letter, or digit, except the last character, which
2072 # cannot be a dash.
2073 &quot;params&quot;: { # Additional Backend Bucket parameters. # Input only. [Input Only] Additional params passed with the request, but not persisted
2074 # as part of resource payload.
2075 &quot;resourceManagerTags&quot;: { # Tag keys/values directly bound to this resource.
2076 # Tag keys and values have the same definition as resource
2077 # manager tags. The field is allowed for INSERT
2078 # only. The keys/values to set on the resource should be specified in
2079 # either ID { : } or Namespaced format
2080 # { : }.
2081 # For example the following are valid inputs:
2082 # * {&quot;tagKeys/333&quot; : &quot;tagValues/444&quot;, &quot;tagKeys/123&quot; : &quot;tagValues/456&quot;}
2083 # * {&quot;123/environment&quot; : &quot;production&quot;, &quot;345/abc&quot; : &quot;xyz&quot;}
2084 # Note:
2085 # * Invalid combinations of ID &amp; namespaced format is not supported. For
2086 # instance: {&quot;123/environment&quot; : &quot;tagValues/444&quot;} is invalid.
2087 &quot;a_key&quot;: &quot;A String&quot;,
2088 },
2089 },
2090 &quot;region&quot;: &quot;A String&quot;, # Output only. [Output Only] URL of the region where the regional backend bucket
2091 # resides. This field is not applicable to global backend buckets.
2092 # You must specify this field as part of the HTTP request URL. It is
2093 # not settable as a field in the request body.
2094 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
2095 &quot;usedBy&quot;: [ # Output only. [Output Only] List of resources referencing that backend bucket.
2096 {
2097 &quot;reference&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined URL for UrlMaps referencing that
2098 # BackendBucket.
2099 },
2100 ],
2101 },
2102 ],
2103 &quot;kind&quot;: &quot;compute#usableBackendBucketList&quot;, # Output only. [Output Only] Type of resource. Alwayscompute#usableBackendBucketList for lists of usable backend
2104 # buckets.
2105 &quot;nextPageToken&quot;: &quot;A String&quot;, # [Output Only] This token allows you to get the next page of results for
2106 # list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for
2107 # the query parameter pageToken in the next list request.
2108 # Subsequent list requests will have their own nextPageToken to
2109 # continue paging through the results.
2110 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined URL for this resource.
2111 &quot;warning&quot;: { # [Output Only] Informational warning message.
2112 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute
2113 # Engine returns NO_RESULTS_ON_PAGE if there
2114 # are no results in the response.
2115 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key:
2116 # value format. For example:
2117 #
2118 # &quot;data&quot;: [
2119 # {
2120 # &quot;key&quot;: &quot;scope&quot;,
2121 # &quot;value&quot;: &quot;zones/us-east1-d&quot;
2122 # }
2123 {
2124 &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being
2125 # returned. For example, for warnings where there are no results in a list
2126 # request for a particular zone, this key might be scope and
2127 # the key value might be the zone name. Other examples might be a key
2128 # indicating a deprecated resource and a suggested replacement, or a
2129 # warning about invalid network settings (for example, if an instance
2130 # attempts to perform IP forwarding but is not enabled for IP forwarding).
2131 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
2132 },
2133 ],
2134 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
2135 },
2136 }</pre>
2137 </div>
2138
2139 <div class="method">
2140 <code class="details" id="listUsable_next">listUsable_next()</code>
2141 <pre>Retrieves the next page of results.
2142
2143 Args:
2144 previous_request: The request for the previous page. (required)
2145 previous_response: The response from the request for the previous page. (required)
2146
2147 Returns:
2148 A request object that you can call &#x27;execute()&#x27; on to request the next
2149 page. Returns None if there are no more items in the collection.
2150 </pre>
2151 </div>
2152
2153 <div class="method">
2154 <code class="details" id="list_next">list_next()</code>
2155 <pre>Retrieves the next page of results.
2156
2157 Args:
2158 previous_request: The request for the previous page. (required)
2159 previous_response: The response from the request for the previous page. (required)
2160
2161 Returns:
2162 A request object that you can call &#x27;execute()&#x27; on to request the next
2163 page. Returns None if there are no more items in the collection.
2164 </pre>
2165 </div>
2166
2167 <div class="method">
2168 <code class="details" id="patch">patch(project, region, backendBucket, body=None, requestId=None, x__xgafv=None)</code>
2169 <pre>Updates the specified BackendBucket resource with the data included in the
2170 request. This method supportsPATCH
2171 semantics and uses theJSON merge
2172 patch format and processing rules.
2173
2174 Args:
2175 project: string, Project ID for this request. (required)
2176 region: string, Name of the region scoping this request. (required)
2177 backendBucket: string, Name of the BackendBucket resource to patch. (required)
2178 body: object, The request body.
2179 The object takes the form of:
2180
2181 { # Represents a Cloud Storage Bucket resource.
2182 #
2183 # This Cloud Storage bucket resource is referenced by a URL map of a load
2184 # balancer. For more information, readBackend Buckets.
2185 &quot;bucketName&quot;: &quot;A String&quot;, # Cloud Storage bucket name.
2186 &quot;cdnPolicy&quot;: { # Message containing Cloud CDN configuration for a backend bucket. # Cloud CDN configuration for this BackendBucket.
2187 &quot;bypassCacheOnRequestHeaders&quot;: [ # Bypass the cache when the specified request headers are matched - e.g.
2188 # Pragma or Authorization headers. Up to 5 headers can be specified.
2189 # The cache is bypassed for all cdnPolicy.cacheMode settings.
2190 { # Bypass the cache when the specified request headers are present,
2191 # e.g. Pragma or Authorization headers. Values are case insensitive.
2192 # The presence of such a header overrides the cache_mode setting.
2193 &quot;headerName&quot;: &quot;A String&quot;, # The header field name to match on when bypassing cache.
2194 # Values are case-insensitive.
2195 },
2196 ],
2197 &quot;cacheKeyPolicy&quot;: { # Message containing what to include in the cache key for a request for # The CacheKeyPolicy for this CdnPolicy.
2198 # Cloud CDN.
2199 &quot;includeHttpHeaders&quot;: [ # Allows HTTP request headers (by name) to be used in the cache key.
2200 &quot;A String&quot;,
2201 ],
2202 &quot;queryStringWhitelist&quot;: [ # Names of query string parameters to include in cache keys. Default
2203 # parameters are always included. &#x27;&amp;&#x27; and &#x27;=&#x27; will be percent encoded
2204 # and not treated as delimiters.
2205 &quot;A String&quot;,
2206 ],
2207 },
2208 &quot;cacheMode&quot;: &quot;A String&quot;, # Specifies the cache setting for all responses from this backend.
2209 # The possible values are:USE_ORIGIN_HEADERS Requires the origin to set valid caching
2210 # headers to cache content. Responses without these headers will not be
2211 # cached at Google&#x27;s edge, and will require a full trip to the origin on
2212 # every request, potentially impacting performance and increasing load on
2213 # the origin server.FORCE_CACHE_ALL Cache all content, ignoring any &quot;private&quot;,
2214 # &quot;no-store&quot; or &quot;no-cache&quot; directives in Cache-Control response headers.
2215 # Warning: this may result in Cloud CDN caching private,
2216 # per-user (user identifiable) content.CACHE_ALL_STATIC Automatically cache static content,
2217 # including common image formats, media (video and audio), and web assets
2218 # (JavaScript and CSS). Requests and responses that are marked as
2219 # uncacheable, as well as dynamic content (including HTML), will not be
2220 # cached.
2221 #
2222 # If no value is provided for cdnPolicy.cacheMode, it defaults
2223 # to CACHE_ALL_STATIC.
2224 &quot;clientTtl&quot;: 42, # Specifies a separate client (e.g. browser client) maximum TTL. This is
2225 # used to clamp the max-age (or Expires) value sent to the client. With
2226 # FORCE_CACHE_ALL, the lesser of client_ttl and default_ttl is used for the
2227 # response max-age directive, along with a &quot;public&quot; directive. For
2228 # cacheable content in CACHE_ALL_STATIC mode, client_ttl clamps the max-age
2229 # from the origin (if specified), or else sets the response max-age
2230 # directive to the lesser of the client_ttl and default_ttl, and also
2231 # ensures a &quot;public&quot; cache-control directive is present.
2232 # If a client TTL is not specified, a default value (1 hour) will be used.
2233 # The maximum allowed value is 31,622,400s (1 year).
2234 &quot;defaultTtl&quot;: 42, # Specifies the default TTL for cached content served by this origin for
2235 # responses that do not have an existing valid TTL (max-age or s-maxage).
2236 # Setting a TTL of &quot;0&quot; means &quot;always revalidate&quot;.
2237 # The value of defaultTTL cannot be set to a value greater than that of
2238 # maxTTL, but can be equal.
2239 # When the cacheMode is set to FORCE_CACHE_ALL, the defaultTTL
2240 # will overwrite the TTL set in all responses. The maximum allowed value is
2241 # 31,622,400s (1 year), noting that infrequently accessed objects may be
2242 # evicted from the cache before the defined TTL.
2243 &quot;maxTtl&quot;: 42, # Specifies the maximum allowed TTL for cached content served by this
2244 # origin.
2245 # Cache directives that attempt to set a max-age or s-maxage higher than
2246 # this, or an Expires header more than maxTTL seconds in the future will
2247 # be capped at the value of maxTTL, as if it were the value of an
2248 # s-maxage Cache-Control directive.
2249 # Headers sent to the client will not be modified.
2250 # Setting a TTL of &quot;0&quot; means &quot;always revalidate&quot;.
2251 # The maximum allowed value is 31,622,400s (1 year), noting that
2252 # infrequently accessed objects may be evicted from the cache before
2253 # the defined TTL.
2254 &quot;negativeCaching&quot;: True or False, # Negative caching allows per-status code TTLs to be set, in order
2255 # to apply fine-grained caching for common errors or redirects.
2256 # This can reduce the load on your origin and improve end-user
2257 # experience by reducing response latency.
2258 # When the cache mode is set to CACHE_ALL_STATIC or USE_ORIGIN_HEADERS,
2259 # negative caching applies to responses with the specified response code
2260 # that lack any Cache-Control, Expires, or Pragma: no-cache directives.
2261 # When the cache mode is set to FORCE_CACHE_ALL, negative caching applies
2262 # to all responses with the specified response code, and override any
2263 # caching headers.
2264 # By default, Cloud CDN will apply the following default TTLs to these
2265 # status codes:
2266 # HTTP 300 (Multiple Choice), 301, 308 (Permanent Redirects): 10m
2267 # HTTP 404 (Not Found), 410 (Gone),
2268 # 451 (Unavailable For Legal Reasons): 120s
2269 # HTTP 405 (Method Not Found), 501 (Not Implemented): 60s.
2270 # These defaults can be overridden in negative_caching_policy.
2271 &quot;negativeCachingPolicy&quot;: [ # Sets a cache TTL for the specified HTTP status code.
2272 # negative_caching must be enabled to configure negative_caching_policy.
2273 # Omitting the policy and leaving negative_caching enabled will use
2274 # Cloud CDN&#x27;s default cache TTLs.
2275 # Note that when specifying an explicit negative_caching_policy, you
2276 # should take care to specify a cache TTL for all response codes
2277 # that you wish to cache. Cloud CDN will not apply any default
2278 # negative caching when a policy exists.
2279 { # Specify CDN TTLs for response error codes.
2280 &quot;code&quot;: 42, # The HTTP status code to define a TTL against. Only HTTP status codes
2281 # 300, 301, 302, 307, 308, 404, 405, 410, 421, 451 and 501 can be
2282 # specified as values, and you cannot specify a status code more than
2283 # once.
2284 &quot;ttl&quot;: 42, # The TTL (in seconds) for which to cache responses with the
2285 # corresponding status code.
2286 # The maximum allowed value is 1800s (30 minutes), noting that
2287 # infrequently accessed objects may be evicted from the cache before the
2288 # defined TTL.
2289 },
2290 ],
2291 &quot;requestCoalescing&quot;: True or False, # If true then Cloud CDN will combine multiple concurrent cache fill
2292 # requests into a small number of requests to the origin.
2293 &quot;serveWhileStale&quot;: 42, # Serve existing content from the cache (if available) when revalidating
2294 # content with the origin, or when an error is encountered when refreshing
2295 # the cache.
2296 # This setting defines the default &quot;max-stale&quot; duration for any cached
2297 # responses that do not specify a max-stale directive. Stale responses that
2298 # exceed the TTL configured here will not be served. The default limit
2299 # (max-stale) is 86400s (1 day), which will allow stale content to be
2300 # served up to this limit beyond the max-age (or s-maxage) of a cached
2301 # response.
2302 # The maximum allowed value is 604800 (1 week).
2303 # Set this to zero (0) to disable serve-while-stale.
2304 &quot;signedUrlCacheMaxAgeSec&quot;: &quot;A String&quot;, # Maximum number of seconds the response to a signed URL request will be
2305 # considered fresh. After this time period, the response will be
2306 # revalidated before being served. Defaults to 1hr (3600s). When serving
2307 # responses to signed URL requests, Cloud CDN will internally behave as
2308 # though all responses from this backend had a &quot;Cache-Control:
2309 # public, max-age=[TTL]&quot; header, regardless of any existing
2310 # Cache-Control header. The actual headers served in responses will not be
2311 # altered.
2312 &quot;signedUrlKeyNames&quot;: [ # [Output Only] Names of the keys for signing request URLs.
2313 &quot;A String&quot;,
2314 ],
2315 },
2316 &quot;compressionMode&quot;: &quot;A String&quot;, # Compress text responses using Brotli or gzip compression, based on
2317 # the client&#x27;s Accept-Encoding header.
2318 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Output Only] Creation timestamp inRFC3339
2319 # text format.
2320 &quot;customResponseHeaders&quot;: [ # Headers that the Application Load Balancer should add to proxied responses.
2321 &quot;A String&quot;,
2322 ],
2323 &quot;description&quot;: &quot;A String&quot;, # An optional textual description of the resource; provided by the client
2324 # when the resource is created.
2325 &quot;edgeSecurityPolicy&quot;: &quot;A String&quot;, # [Output Only] The resource URL for the edge security policy associated with
2326 # this backend bucket.
2327 &quot;enableCdn&quot;: True or False, # If true, enable Cloud CDN for this BackendBucket.
2328 &quot;id&quot;: &quot;A String&quot;, # [Output Only] Unique identifier for the resource; defined by the server.
2329 &quot;kind&quot;: &quot;compute#backendBucket&quot;, # Output only. Type of the resource.
2330 &quot;loadBalancingScheme&quot;: &quot;A String&quot;, # The value can only be INTERNAL_MANAGED for cross-region internal layer 7
2331 # load balancer.
2332 #
2333 # If loadBalancingScheme is not specified, the backend bucket can be used by
2334 # classic global external load balancers, or global application external load
2335 # balancers, or both.
2336 &quot;name&quot;: &quot;A String&quot;, # Name of the resource. Provided by the client when the resource is created.
2337 # The name must be 1-63 characters long, and comply withRFC1035.
2338 # Specifically, the name must be 1-63 characters long and match the regular
2339 # expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first
2340 # character must be a lowercase letter, and all following characters must
2341 # be a dash, lowercase letter, or digit, except the last character, which
2342 # cannot be a dash.
2343 &quot;params&quot;: { # Additional Backend Bucket parameters. # Input only. [Input Only] Additional params passed with the request, but not persisted
2344 # as part of resource payload.
2345 &quot;resourceManagerTags&quot;: { # Tag keys/values directly bound to this resource.
2346 # Tag keys and values have the same definition as resource
2347 # manager tags. The field is allowed for INSERT
2348 # only. The keys/values to set on the resource should be specified in
2349 # either ID { : } or Namespaced format
2350 # { : }.
2351 # For example the following are valid inputs:
2352 # * {&quot;tagKeys/333&quot; : &quot;tagValues/444&quot;, &quot;tagKeys/123&quot; : &quot;tagValues/456&quot;}
2353 # * {&quot;123/environment&quot; : &quot;production&quot;, &quot;345/abc&quot; : &quot;xyz&quot;}
2354 # Note:
2355 # * Invalid combinations of ID &amp; namespaced format is not supported. For
2356 # instance: {&quot;123/environment&quot; : &quot;tagValues/444&quot;} is invalid.
2357 &quot;a_key&quot;: &quot;A String&quot;,
2358 },
2359 },
2360 &quot;region&quot;: &quot;A String&quot;, # Output only. [Output Only] URL of the region where the regional backend bucket
2361 # resides. This field is not applicable to global backend buckets.
2362 # You must specify this field as part of the HTTP request URL. It is
2363 # not settable as a field in the request body.
2364 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
2365 &quot;usedBy&quot;: [ # Output only. [Output Only] List of resources referencing that backend bucket.
2366 {
2367 &quot;reference&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined URL for UrlMaps referencing that
2368 # BackendBucket.
2369 },
2370 ],
2371 }
2372
2373 requestId: string, An optional request ID to identify requests. Specify a unique request ID so
2374 that if you must retry your request, the server will know to ignore the
2375 request if it has already been completed.
2376
2377 For example, consider a situation where you make an initial request and
2378 the request times out. If you make the request again with the same
2379 request ID, the server can check if original operation with the same
2380 request ID was received, and if so, will ignore the second request. This
2381 prevents clients from accidentally creating duplicate commitments.
2382
2383 The request ID must be
2384 a valid UUID with the exception that zero UUID is not supported
2385 (00000000-0000-0000-0000-000000000000).
2386 end_interface: MixerMutationRequestBuilder
2387 x__xgafv: string, V1 error format.
2388 Allowed values
2389 1 - v1 error format
2390 2 - v2 error format
2391
2392 Returns:
2393 An object of the form:
2394
2395 { # Represents an Operation resource.
2396 #
2397 # Google Compute Engine has three Operation resources:
2398 #
2399 # * [Global](/compute/docs/reference/rest/v1/globalOperations)
2400 # * [Regional](/compute/docs/reference/rest/v1/regionOperations)
2401 # * [Zonal](/compute/docs/reference/rest/v1/zoneOperations)
2402 #
2403 # You can use an operation resource to manage asynchronous API requests.
2404 # For more information, readHandling
2405 # API responses.
2406 #
2407 # Operations can be global, regional or zonal.
2408 #
2409 # - For global operations, use the `globalOperations`
2410 # resource.
2411 # - For regional operations, use the
2412 # `regionOperations` resource.
2413 # - For zonal operations, use
2414 # the `zoneOperations` resource.
2415 #
2416 #
2417 #
2418 # For more information, read
2419 # Global, Regional, and Zonal Resources.
2420 #
2421 # Note that completed Operation resources have a limited
2422 # retention period.
2423 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request.
2424 # Not present otherwise.
2425 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
2426 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is
2427 # set when the operation is created.
2428 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is inRFC3339
2429 # text format.
2430 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation,
2431 # this field will be populated.
2432 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this
2433 # operation.
2434 {
2435 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
2436 &quot;errorDetails&quot;: [ # [Output Only] An optional list of messages that contain the error
2437 # details. There is a set of defined message types to use for providing
2438 # details.The syntax depends on the error code. For example,
2439 # QuotaExceededInfo will have details when the error code is
2440 # QUOTA_EXCEEDED.
2441 {
2442 &quot;errorInfo&quot;: { # Describes the cause of the error with structured details.
2443 #
2444 # Example of an error when contacting the &quot;pubsub.googleapis.com&quot; API when it
2445 # is not enabled:
2446 #
2447 # { &quot;reason&quot;: &quot;API_DISABLED&quot;
2448 # &quot;domain&quot;: &quot;googleapis.com&quot;
2449 # &quot;metadata&quot;: {
2450 # &quot;resource&quot;: &quot;projects/123&quot;,
2451 # &quot;service&quot;: &quot;pubsub.googleapis.com&quot;
2452 # }
2453 # }
2454 #
2455 # This response indicates that the pubsub.googleapis.com API is not enabled.
2456 #
2457 # Example of an error that is returned when attempting to create a Spanner
2458 # instance in a region that is out of stock:
2459 #
2460 # { &quot;reason&quot;: &quot;STOCKOUT&quot;
2461 # &quot;domain&quot;: &quot;spanner.googleapis.com&quot;,
2462 # &quot;metadata&quot;: {
2463 # &quot;availableRegions&quot;: &quot;us-central1,us-east2&quot;
2464 # }
2465 # }
2466 &quot;domain&quot;: &quot;A String&quot;, # The logical grouping to which the &quot;reason&quot; belongs. The error domain
2467 # is typically the registered service name of the tool or product that
2468 # generates the error. Example: &quot;pubsub.googleapis.com&quot;. If the error is
2469 # generated by some common infrastructure, the error domain must be a
2470 # globally unique value that identifies the infrastructure. For Google API
2471 # infrastructure, the error domain is &quot;googleapis.com&quot;.
2472 &quot;metadatas&quot;: { # Additional structured details about this error.
2473 #
2474 # Keys must match a regular expression of `a-z+` but should
2475 # ideally be lowerCamelCase. Also, they must be limited to 64 characters in
2476 # length. When identifying the current value of an exceeded limit, the units
2477 # should be contained in the key, not the value. For example, rather than
2478 # `{&quot;instanceLimit&quot;: &quot;100/request&quot;}`, should be returned as,
2479 # `{&quot;instanceLimitPerRequest&quot;: &quot;100&quot;}`, if the client exceeds the number of
2480 # instances that can be created in a single (batch) request.
2481 &quot;a_key&quot;: &quot;A String&quot;,
2482 },
2483 &quot;reason&quot;: &quot;A String&quot;, # The reason of the error. This is a constant value that identifies the
2484 # proximate cause of the error. Error reasons are unique within a particular
2485 # domain of errors. This should be at most 63 characters and match a
2486 # regular expression of `A-Z+[A-Z0-9]`, which represents
2487 # UPPER_SNAKE_CASE.
2488 },
2489 &quot;help&quot;: { # Provides links to documentation or for performing an out of band action.
2490 #
2491 # For example, if a quota check failed with an error indicating the calling
2492 # project hasn&#x27;t enabled the accessed service, this can contain a URL pointing
2493 # directly to the right place in the developer console to flip the bit.
2494 &quot;links&quot;: [ # URL(s) pointing to additional information on handling the current error.
2495 { # Describes a URL link.
2496 &quot;description&quot;: &quot;A String&quot;, # Describes what the link offers.
2497 &quot;url&quot;: &quot;A String&quot;, # The URL of the link.
2498 },
2499 ],
2500 },
2501 &quot;localizedMessage&quot;: { # Provides a localized error message that is safe to return to the user
2502 # which can be attached to an RPC error.
2503 &quot;locale&quot;: &quot;A String&quot;, # The locale used following the specification defined at
2504 # https://www.rfc-editor.org/rfc/bcp/bcp47.txt.
2505 # Examples are: &quot;en-US&quot;, &quot;fr-CH&quot;, &quot;es-MX&quot;
2506 &quot;message&quot;: &quot;A String&quot;, # The localized error message in the above locale.
2507 },
2508 &quot;quotaInfo&quot;: { # Additional details for quota exceeded error for resource quota.
2509 &quot;dimensions&quot;: { # The map holding related quota dimensions.
2510 &quot;a_key&quot;: &quot;A String&quot;,
2511 },
2512 &quot;futureLimit&quot;: 3.14, # Future quota limit being rolled out. The limit&#x27;s unit depends on the quota
2513 # type or metric.
2514 &quot;limit&quot;: 3.14, # Current effective quota limit. The limit&#x27;s unit depends on the quota type
2515 # or metric.
2516 &quot;limitName&quot;: &quot;A String&quot;, # The name of the quota limit.
2517 &quot;metricName&quot;: &quot;A String&quot;, # The Compute Engine quota metric name.
2518 &quot;rolloutStatus&quot;: &quot;A String&quot;, # Rollout status of the future quota limit.
2519 },
2520 },
2521 ],
2522 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error.
2523 # This property is optional.
2524 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
2525 },
2526 ],
2527 },
2528 &quot;getVersionOperationMetadata&quot;: {
2529 &quot;inlineSbomInfo&quot;: {
2530 &quot;currentComponentVersions&quot;: { # A mapping of components to their currently-applied versions or other
2531 # appropriate identifiers.
2532 &quot;a_key&quot;: &quot;A String&quot;,
2533 },
2534 &quot;targetComponentVersions&quot;: { # A mapping of components to their target versions or other appropriate
2535 # identifiers.
2536 &quot;a_key&quot;: &quot;A String&quot;,
2537 },
2538 },
2539 },
2540 &quot;httpErrorMessage&quot;: &quot;A String&quot;, # [Output Only] If the operation fails, this field contains the HTTP error
2541 # message that was returned, such as `NOT FOUND`.
2542 &quot;httpErrorStatusCode&quot;: 42, # [Output Only] If the operation fails, this field contains the HTTP error
2543 # status code that was returned. For example, a `404` means the
2544 # resource was not found.
2545 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is
2546 # defined by the server.
2547 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested.
2548 # This value is inRFC3339
2549 # text format.
2550 &quot;instancesBulkInsertOperationMetadata&quot;: {
2551 &quot;perLocationStatus&quot;: { # Status information per location (location name is key).
2552 # Example key: zones/us-central1-a
2553 &quot;a_key&quot;: {
2554 &quot;createdVmCount&quot;: 42, # [Output Only] Count of VMs successfully created so far.
2555 &quot;deletedVmCount&quot;: 42, # [Output Only] Count of VMs that got deleted during rollback.
2556 &quot;failedToCreateVmCount&quot;: 42, # [Output Only] Count of VMs that started creating but encountered an
2557 # error.
2558 &quot;status&quot;: &quot;A String&quot;, # [Output Only] Creation status of BulkInsert operation - information
2559 # if the flow is rolling forward or rolling back.
2560 &quot;targetVmCount&quot;: 42, # [Output Only] Count of VMs originally planned to be created.
2561 },
2562 },
2563 },
2564 &quot;kind&quot;: &quot;compute#operation&quot;, # Output only. [Output Only] Type of the resource. Always `compute#operation` for
2565 # Operation resources.
2566 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
2567 &quot;operationGroupId&quot;: &quot;A String&quot;, # Output only. [Output Only] An ID that represents a group of operations, such as when a
2568 # group of operations results from a `bulkInsert` API request.
2569 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`,
2570 # `update`, or `delete`, and so on.
2571 &quot;progress&quot;: 42, # [Output Only] An optional progress indicator that ranges from 0 to 100.
2572 # There is no requirement that this be linear or support any granularity of
2573 # operations. This should not be used to guess when the operation will be
2574 # complete. This number should monotonically increase as the operation
2575 # progresses.
2576 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only
2577 # applicable when performing regional operations.
2578 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
2579 &quot;setCommonInstanceMetadataOperationMetadata&quot;: { # Output only. [Output Only] If the operation is for projects.setCommonInstanceMetadata,
2580 # this field will contain information on all underlying zonal actions and
2581 # their state.
2582 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The client operation id.
2583 &quot;perLocationOperations&quot;: { # [Output Only] Status information per location (location name is key).
2584 # Example key: zones/us-central1-a
2585 &quot;a_key&quot;: {
2586 &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
2587 # populated.
2588 # different programming environments, including REST APIs and RPC APIs. It is
2589 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
2590 # three pieces of data: error code, error message, and error details.
2591 #
2592 # You can find out more about this error model and how to work with it in the
2593 # [API Design Guide](https://cloud.google.com/apis/design/errors).
2594 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
2595 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
2596 # message types for APIs to use.
2597 {
2598 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2599 },
2600 ],
2601 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
2602 # user-facing error message should be localized and sent in the
2603 # google.rpc.Status.details field, or localized by the client.
2604 },
2605 &quot;state&quot;: &quot;A String&quot;, # [Output Only] Status of the action, which can be one of the following:
2606 # `PROPAGATING`, `PROPAGATED`, `ABANDONED`, `FAILED`, or `DONE`.
2607 },
2608 },
2609 },
2610 &quot;startTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was started by the server.
2611 # This value is inRFC3339
2612 # text format.
2613 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the operation, which can be one of the
2614 # following:
2615 # `PENDING`, `RUNNING`, or `DONE`.
2616 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the
2617 # operation.
2618 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation
2619 # of the target resource.
2620 &quot;targetLink&quot;: &quot;A String&quot;, # [Output Only] The URL of the resource that the operation modifies. For
2621 # operations related to creating a snapshot, this points to the disk
2622 # that the snapshot was created from.
2623 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example:
2624 # `[email protected]` or
2625 # `alice_smith_identifier (global/workforcePools/example-com-us-employees)`.
2626 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the
2627 # operation, this field will be populated.
2628 {
2629 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute
2630 # Engine returns NO_RESULTS_ON_PAGE if there
2631 # are no results in the response.
2632 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key:
2633 # value format. For example:
2634 #
2635 # &quot;data&quot;: [
2636 # {
2637 # &quot;key&quot;: &quot;scope&quot;,
2638 # &quot;value&quot;: &quot;zones/us-east1-d&quot;
2639 # }
2640 {
2641 &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being
2642 # returned. For example, for warnings where there are no results in a list
2643 # request for a particular zone, this key might be scope and
2644 # the key value might be the zone name. Other examples might be a key
2645 # indicating a deprecated resource and a suggested replacement, or a
2646 # warning about invalid network settings (for example, if an instance
2647 # attempts to perform IP forwarding but is not enabled for IP forwarding).
2648 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
2649 },
2650 ],
2651 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
2652 },
2653 ],
2654 &quot;zone&quot;: &quot;A String&quot;, # [Output Only] The URL of the zone where the operation resides. Only
2655 # applicable when performing per-zone operations.
2656 }</pre>
2657 </div>
2658
2659 <div class="method">
2660 <code class="details" id="setIamPolicy">setIamPolicy(project, region, resource, body=None, x__xgafv=None)</code>
2661 <pre>Sets the access control policy on the specified resource.
2662 Replaces any existing policy.
2663
2664 Args:
2665 project: string, Project ID for this request. (required)
2666 region: string, The name of the region for this request. (required)
2667 resource: string, Name or id of the resource for this request. (required)
2668 body: object, The request body.
2669 The object takes the form of:
2670
2671 {
2672 &quot;bindings&quot;: [ # Flatten Policy to create a backwacd compatible wire-format.
2673 # Deprecated. Use &#x27;policy&#x27; to specify bindings.
2674 { # Associates `members`, or principals, with a `role`.
2675 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding.
2676 #
2677 # If the condition evaluates to `true`, then this binding applies to the
2678 # current request.
2679 #
2680 # If the condition evaluates to `false`, then this binding does not apply to
2681 # the current request. However, a different role binding might grant the same
2682 # role to one or more of the principals in this binding.
2683 #
2684 # To learn which resources support conditions in their IAM policies, see the
2685 # [IAM
2686 # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
2687 # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
2688 # are documented at https://github.com/google/cel-spec.
2689 #
2690 # Example (Comparison):
2691 #
2692 # title: &quot;Summary size limit&quot;
2693 # description: &quot;Determines if a summary is less than 100 chars&quot;
2694 # expression: &quot;document.summary.size() &lt; 100&quot;
2695 #
2696 # Example (Equality):
2697 #
2698 # title: &quot;Requestor is owner&quot;
2699 # description: &quot;Determines if requestor is the document owner&quot;
2700 # expression: &quot;document.owner == request.auth.claims.email&quot;
2701 #
2702 # Example (Logic):
2703 #
2704 # title: &quot;Public documents&quot;
2705 # description: &quot;Determine whether the document should be publicly visible&quot;
2706 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
2707 #
2708 # Example (Data Manipulation):
2709 #
2710 # title: &quot;Notification string&quot;
2711 # description: &quot;Create a notification string with a timestamp.&quot;
2712 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
2713 #
2714 # The exact variables and functions that may be referenced within an expression
2715 # are determined by the service that evaluates it. See the service
2716 # documentation for additional information.
2717 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which
2718 # describes the expression, e.g. when hovered over it in a UI.
2719 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language
2720 # syntax.
2721 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error
2722 # reporting, e.g. a file name and a position in the file.
2723 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing
2724 # its purpose. This can be used e.g. in UIs which allow to enter the
2725 # expression.
2726 },
2727 &quot;members&quot;: [ # Specifies the principals requesting access for a Google Cloud resource.
2728 # `members` can have the following values:
2729 #
2730 # * `allUsers`: A special identifier that represents anyone who is
2731 # on the internet; with or without a Google account.
2732 #
2733 # * `allAuthenticatedUsers`: A special identifier that represents anyone
2734 # who is authenticated with a Google account or a service account.
2735 # Does not include identities that come from external identity providers
2736 # (IdPs) through identity federation.
2737 #
2738 # * `user:{emailid}`: An email address that represents a specific Google
2739 # account. For example, `[email protected]` .
2740 #
2741 #
2742 # * `serviceAccount:{emailid}`: An email address that represents a Google
2743 # service account. For example,
2744 # `[email protected]`.
2745 #
2746 # * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An
2747 # identifier for a
2748 # [Kubernetes service
2749 # account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts).
2750 # For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`.
2751 #
2752 # * `group:{emailid}`: An email address that represents a Google group.
2753 # For example, `[email protected]`.
2754 #
2755 #
2756 # * `domain:{domain}`: The G Suite domain (primary) that represents all the
2757 # users of that domain. For example, `google.com` or `example.com`.
2758 #
2759 #
2760 #
2761 #
2762 # * `principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`:
2763 # A single identity in a workforce identity pool.
2764 #
2765 # * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`:
2766 # All workforce identities in a group.
2767 #
2768 # * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/attribute.{attribute_name}/{attribute_value}`:
2769 # All workforce identities with a specific attribute value.
2770 #
2771 # * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/*`:
2772 # All identities in a workforce identity pool.
2773 #
2774 # * `principal://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/subject/{subject_attribute_value}`:
2775 # A single identity in a workload identity pool.
2776 #
2777 # * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}`:
2778 # A workload identity pool group.
2779 #
2780 # * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value}`:
2781 # All identities in a workload identity pool with a certain attribute.
2782 #
2783 # * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/*`:
2784 # All identities in a workload identity pool.
2785 #
2786 # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
2787 # identifier) representing a user that has been recently deleted. For
2788 # example, `[email protected]?uid=123456789012345678901`. If the user is
2789 # recovered, this value reverts to `user:{emailid}` and the recovered user
2790 # retains the role in the binding.
2791 #
2792 # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
2793 # unique identifier) representing a service account that has been recently
2794 # deleted. For example,
2795 # `[email protected]?uid=123456789012345678901`.
2796 # If the service account is undeleted, this value reverts to
2797 # `serviceAccount:{emailid}` and the undeleted service account retains the
2798 # role in the binding.
2799 #
2800 # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
2801 # identifier) representing a Google group that has been recently
2802 # deleted. For example, `[email protected]?uid=123456789012345678901`. If
2803 # the group is recovered, this value reverts to `group:{emailid}` and the
2804 # recovered group retains the role in the binding.
2805 #
2806 # * `deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`:
2807 # Deleted single identity in a workforce identity pool. For example,
2808 # `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-pool-id/subject/my-subject-attribute-value`.
2809 &quot;A String&quot;,
2810 ],
2811 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to the list of `members`, or principals.
2812 # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
2813 #
2814 # For an overview of the IAM roles and permissions, see the
2815 # [IAM documentation](https://cloud.google.com/iam/docs/roles-overview). For
2816 # a list of the available pre-defined roles, see
2817 # [here](https://cloud.google.com/iam/docs/understanding-roles).
2818 },
2819 ],
2820 &quot;etag&quot;: &quot;A String&quot;, # Flatten Policy to create a backward compatible wire-format.
2821 # Deprecated. Use &#x27;policy&#x27; to specify the etag.
2822 &quot;policy&quot;: { # An Identity and Access Management (IAM) policy, which specifies access # REQUIRED: The complete policy to be applied to the &#x27;resource&#x27;. The size of
2823 # the policy is limited to a few 10s of KB. An empty policy is in general a
2824 # valid policy but certain services (like Projects) might reject them.
2825 # controls for Google Cloud resources.
2826 #
2827 #
2828 # A `Policy` is a collection of `bindings`. A `binding` binds one or more
2829 # `members`, or principals, to a single `role`. Principals can be user
2830 # accounts, service accounts, Google groups, and domains (such as G Suite). A
2831 # `role` is a named list of permissions; each `role` can be an IAM predefined
2832 # role or a user-created custom role.
2833 #
2834 # For some types of Google Cloud resources, a `binding` can also specify a
2835 # `condition`, which is a logical expression that allows access to a resource
2836 # only if the expression evaluates to `true`. A condition can add constraints
2837 # based on attributes of the request, the resource, or both. To learn which
2838 # resources support conditions in their IAM policies, see the
2839 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
2840 #
2841 # **JSON example:**
2842 #
2843 # ```
2844 # {
2845 # &quot;bindings&quot;: [
2846 # {
2847 # &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;,
2848 # &quot;members&quot;: [
2849 # &quot;user:[email protected]&quot;,
2850 # &quot;group:[email protected]&quot;,
2851 # &quot;domain:google.com&quot;,
2852 # &quot;serviceAccount:[email protected]&quot;
2853 # ]
2854 # },
2855 # {
2856 # &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;,
2857 # &quot;members&quot;: [
2858 # &quot;user:[email protected]&quot;
2859 # ],
2860 # &quot;condition&quot;: {
2861 # &quot;title&quot;: &quot;expirable access&quot;,
2862 # &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;,
2863 # &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;,
2864 # }
2865 # }
2866 # ],
2867 # &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;,
2868 # &quot;version&quot;: 3
2869 # }
2870 # ```
2871 #
2872 # **YAML example:**
2873 #
2874 # ```
2875 # bindings:
2876 # - members:
2877 # - user:[email protected]
2878 # - group:[email protected]
2879 # - domain:google.com
2880 # - serviceAccount:[email protected]
2881 # role: roles/resourcemanager.organizationAdmin
2882 # - members:
2883 # - user:[email protected]
2884 # role: roles/resourcemanager.organizationViewer
2885 # condition:
2886 # title: expirable access
2887 # description: Does not grant access after Sep 2020
2888 # expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)
2889 # etag: BwWWja0YfJA=
2890 # version: 3
2891 # ```
2892 #
2893 # For a description of IAM and its features, see the
2894 # [IAM documentation](https://cloud.google.com/iam/docs/).
2895 &quot;auditConfigs&quot;: [ # Specifies cloud audit logging configuration for this policy.
2896 { # Specifies the audit configuration for a service.
2897 # The configuration determines which permission types are logged, and what
2898 # identities, if any, are exempted from logging.
2899 # An AuditConfig must have one or more AuditLogConfigs.
2900 #
2901 # If there are AuditConfigs for both `allServices` and a specific service,
2902 # the union of the two AuditConfigs is used for that service: the log_types
2903 # specified in each AuditConfig are enabled, and the exempted_members in each
2904 # AuditLogConfig are exempted.
2905 #
2906 # Example Policy with multiple AuditConfigs:
2907 #
2908 # {
2909 # &quot;audit_configs&quot;: [
2910 # {
2911 # &quot;service&quot;: &quot;allServices&quot;,
2912 # &quot;audit_log_configs&quot;: [
2913 # {
2914 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
2915 # &quot;exempted_members&quot;: [
2916 # &quot;user:[email protected]&quot;
2917 # ]
2918 # },
2919 # {
2920 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;
2921 # },
2922 # {
2923 # &quot;log_type&quot;: &quot;ADMIN_READ&quot;
2924 # }
2925 # ]
2926 # },
2927 # {
2928 # &quot;service&quot;: &quot;sampleservice.googleapis.com&quot;,
2929 # &quot;audit_log_configs&quot;: [
2930 # {
2931 # &quot;log_type&quot;: &quot;DATA_READ&quot;
2932 # },
2933 # {
2934 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
2935 # &quot;exempted_members&quot;: [
2936 # &quot;user:[email protected]&quot;
2937 # ]
2938 # }
2939 # ]
2940 # }
2941 # ]
2942 # }
2943 #
2944 # For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
2945 # logging. It also exempts `[email protected]` from DATA_READ logging, and
2946 # `[email protected]` from DATA_WRITE logging.
2947 &quot;auditLogConfigs&quot;: [ # The configuration for logging of each type of permission.
2948 { # Provides the configuration for logging a type of permissions.
2949 # Example:
2950 #
2951 # {
2952 # &quot;audit_log_configs&quot;: [
2953 # {
2954 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
2955 # &quot;exempted_members&quot;: [
2956 # &quot;user:[email protected]&quot;
2957 # ]
2958 # },
2959 # {
2960 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;
2961 # }
2962 # ]
2963 # }
2964 #
2965 # This enables &#x27;DATA_READ&#x27; and &#x27;DATA_WRITE&#x27; logging, while exempting
2966 # [email protected] from DATA_READ logging.
2967 &quot;exemptedMembers&quot;: [ # Specifies the identities that do not cause logging for this type of
2968 # permission.
2969 # Follows the same format of Binding.members.
2970 &quot;A String&quot;,
2971 ],
2972 &quot;logType&quot;: &quot;A String&quot;, # The log type that this config enables.
2973 },
2974 ],
2975 &quot;service&quot;: &quot;A String&quot;, # Specifies a service that will be enabled for audit logging.
2976 # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
2977 # `allServices` is a special value that covers all services.
2978 },
2979 ],
2980 &quot;bindings&quot;: [ # Associates a list of `members`, or principals, with a `role`. Optionally,
2981 # may specify a `condition` that determines how and when the `bindings` are
2982 # applied. Each of the `bindings` must contain at least one principal.
2983 #
2984 # The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
2985 # of these principals can be Google groups. Each occurrence of a principal
2986 # counts towards these limits. For example, if the `bindings` grant 50
2987 # different roles to `user:[email protected]`, and not to any other
2988 # principal, then you can add another 1,450 principals to the `bindings` in
2989 # the `Policy`.
2990 { # Associates `members`, or principals, with a `role`.
2991 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding.
2992 #
2993 # If the condition evaluates to `true`, then this binding applies to the
2994 # current request.
2995 #
2996 # If the condition evaluates to `false`, then this binding does not apply to
2997 # the current request. However, a different role binding might grant the same
2998 # role to one or more of the principals in this binding.
2999 #
3000 # To learn which resources support conditions in their IAM policies, see the
3001 # [IAM
3002 # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
3003 # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
3004 # are documented at https://github.com/google/cel-spec.
3005 #
3006 # Example (Comparison):
3007 #
3008 # title: &quot;Summary size limit&quot;
3009 # description: &quot;Determines if a summary is less than 100 chars&quot;
3010 # expression: &quot;document.summary.size() &lt; 100&quot;
3011 #
3012 # Example (Equality):
3013 #
3014 # title: &quot;Requestor is owner&quot;
3015 # description: &quot;Determines if requestor is the document owner&quot;
3016 # expression: &quot;document.owner == request.auth.claims.email&quot;
3017 #
3018 # Example (Logic):
3019 #
3020 # title: &quot;Public documents&quot;
3021 # description: &quot;Determine whether the document should be publicly visible&quot;
3022 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
3023 #
3024 # Example (Data Manipulation):
3025 #
3026 # title: &quot;Notification string&quot;
3027 # description: &quot;Create a notification string with a timestamp.&quot;
3028 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
3029 #
3030 # The exact variables and functions that may be referenced within an expression
3031 # are determined by the service that evaluates it. See the service
3032 # documentation for additional information.
3033 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which
3034 # describes the expression, e.g. when hovered over it in a UI.
3035 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language
3036 # syntax.
3037 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error
3038 # reporting, e.g. a file name and a position in the file.
3039 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing
3040 # its purpose. This can be used e.g. in UIs which allow to enter the
3041 # expression.
3042 },
3043 &quot;members&quot;: [ # Specifies the principals requesting access for a Google Cloud resource.
3044 # `members` can have the following values:
3045 #
3046 # * `allUsers`: A special identifier that represents anyone who is
3047 # on the internet; with or without a Google account.
3048 #
3049 # * `allAuthenticatedUsers`: A special identifier that represents anyone
3050 # who is authenticated with a Google account or a service account.
3051 # Does not include identities that come from external identity providers
3052 # (IdPs) through identity federation.
3053 #
3054 # * `user:{emailid}`: An email address that represents a specific Google
3055 # account. For example, `[email protected]` .
3056 #
3057 #
3058 # * `serviceAccount:{emailid}`: An email address that represents a Google
3059 # service account. For example,
3060 # `[email protected]`.
3061 #
3062 # * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An
3063 # identifier for a
3064 # [Kubernetes service
3065 # account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts).
3066 # For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`.
3067 #
3068 # * `group:{emailid}`: An email address that represents a Google group.
3069 # For example, `[email protected]`.
3070 #
3071 #
3072 # * `domain:{domain}`: The G Suite domain (primary) that represents all the
3073 # users of that domain. For example, `google.com` or `example.com`.
3074 #
3075 #
3076 #
3077 #
3078 # * `principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`:
3079 # A single identity in a workforce identity pool.
3080 #
3081 # * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`:
3082 # All workforce identities in a group.
3083 #
3084 # * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/attribute.{attribute_name}/{attribute_value}`:
3085 # All workforce identities with a specific attribute value.
3086 #
3087 # * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/*`:
3088 # All identities in a workforce identity pool.
3089 #
3090 # * `principal://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/subject/{subject_attribute_value}`:
3091 # A single identity in a workload identity pool.
3092 #
3093 # * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}`:
3094 # A workload identity pool group.
3095 #
3096 # * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value}`:
3097 # All identities in a workload identity pool with a certain attribute.
3098 #
3099 # * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/*`:
3100 # All identities in a workload identity pool.
3101 #
3102 # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
3103 # identifier) representing a user that has been recently deleted. For
3104 # example, `[email protected]?uid=123456789012345678901`. If the user is
3105 # recovered, this value reverts to `user:{emailid}` and the recovered user
3106 # retains the role in the binding.
3107 #
3108 # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
3109 # unique identifier) representing a service account that has been recently
3110 # deleted. For example,
3111 # `[email protected]?uid=123456789012345678901`.
3112 # If the service account is undeleted, this value reverts to
3113 # `serviceAccount:{emailid}` and the undeleted service account retains the
3114 # role in the binding.
3115 #
3116 # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
3117 # identifier) representing a Google group that has been recently
3118 # deleted. For example, `[email protected]?uid=123456789012345678901`. If
3119 # the group is recovered, this value reverts to `group:{emailid}` and the
3120 # recovered group retains the role in the binding.
3121 #
3122 # * `deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`:
3123 # Deleted single identity in a workforce identity pool. For example,
3124 # `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-pool-id/subject/my-subject-attribute-value`.
3125 &quot;A String&quot;,
3126 ],
3127 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to the list of `members`, or principals.
3128 # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
3129 #
3130 # For an overview of the IAM roles and permissions, see the
3131 # [IAM documentation](https://cloud.google.com/iam/docs/roles-overview). For
3132 # a list of the available pre-defined roles, see
3133 # [here](https://cloud.google.com/iam/docs/understanding-roles).
3134 },
3135 ],
3136 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help
3137 # prevent simultaneous updates of a policy from overwriting each other.
3138 # It is strongly suggested that systems make use of the `etag` in the
3139 # read-modify-write cycle to perform policy updates in order to avoid race
3140 # conditions: An `etag` is returned in the response to `getIamPolicy`, and
3141 # systems are expected to put that etag in the request to `setIamPolicy` to
3142 # ensure that their change will be applied to the same version of the policy.
3143 #
3144 # **Important:** If you use IAM Conditions, you must include the `etag` field
3145 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
3146 # you to overwrite a version `3` policy with a version `1` policy, and all of
3147 # the conditions in the version `3` policy are lost.
3148 &quot;version&quot;: 42, # Specifies the format of the policy.
3149 #
3150 # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
3151 # are rejected.
3152 #
3153 # Any operation that affects conditional role bindings must specify version
3154 # `3`. This requirement applies to the following operations:
3155 #
3156 # * Getting a policy that includes a conditional role binding
3157 # * Adding a conditional role binding to a policy
3158 # * Changing a conditional role binding in a policy
3159 # * Removing any role binding, with or without a condition, from a policy
3160 # that includes conditions
3161 #
3162 # **Important:** If you use IAM Conditions, you must include the `etag` field
3163 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
3164 # you to overwrite a version `3` policy with a version `1` policy, and all of
3165 # the conditions in the version `3` policy are lost.
3166 #
3167 # If a policy does not include any conditions, operations on that policy may
3168 # specify any valid version or leave the field unset.
3169 #
3170 # To learn which resources support conditions in their IAM policies, see the
3171 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
3172 },
3173 }
3174
3175 x__xgafv: string, V1 error format.
3176 Allowed values
3177 1 - v1 error format
3178 2 - v2 error format
3179
3180 Returns:
3181 An object of the form:
3182
3183 { # An Identity and Access Management (IAM) policy, which specifies access
3184 # controls for Google Cloud resources.
3185 #
3186 #
3187 # A `Policy` is a collection of `bindings`. A `binding` binds one or more
3188 # `members`, or principals, to a single `role`. Principals can be user
3189 # accounts, service accounts, Google groups, and domains (such as G Suite). A
3190 # `role` is a named list of permissions; each `role` can be an IAM predefined
3191 # role or a user-created custom role.
3192 #
3193 # For some types of Google Cloud resources, a `binding` can also specify a
3194 # `condition`, which is a logical expression that allows access to a resource
3195 # only if the expression evaluates to `true`. A condition can add constraints
3196 # based on attributes of the request, the resource, or both. To learn which
3197 # resources support conditions in their IAM policies, see the
3198 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
3199 #
3200 # **JSON example:**
3201 #
3202 # ```
3203 # {
3204 # &quot;bindings&quot;: [
3205 # {
3206 # &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;,
3207 # &quot;members&quot;: [
3208 # &quot;user:[email protected]&quot;,
3209 # &quot;group:[email protected]&quot;,
3210 # &quot;domain:google.com&quot;,
3211 # &quot;serviceAccount:[email protected]&quot;
3212 # ]
3213 # },
3214 # {
3215 # &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;,
3216 # &quot;members&quot;: [
3217 # &quot;user:[email protected]&quot;
3218 # ],
3219 # &quot;condition&quot;: {
3220 # &quot;title&quot;: &quot;expirable access&quot;,
3221 # &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;,
3222 # &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;,
3223 # }
3224 # }
3225 # ],
3226 # &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;,
3227 # &quot;version&quot;: 3
3228 # }
3229 # ```
3230 #
3231 # **YAML example:**
3232 #
3233 # ```
3234 # bindings:
3235 # - members:
3236 # - user:[email protected]
3237 # - group:[email protected]
3238 # - domain:google.com
3239 # - serviceAccount:[email protected]
3240 # role: roles/resourcemanager.organizationAdmin
3241 # - members:
3242 # - user:[email protected]
3243 # role: roles/resourcemanager.organizationViewer
3244 # condition:
3245 # title: expirable access
3246 # description: Does not grant access after Sep 2020
3247 # expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)
3248 # etag: BwWWja0YfJA=
3249 # version: 3
3250 # ```
3251 #
3252 # For a description of IAM and its features, see the
3253 # [IAM documentation](https://cloud.google.com/iam/docs/).
3254 &quot;auditConfigs&quot;: [ # Specifies cloud audit logging configuration for this policy.
3255 { # Specifies the audit configuration for a service.
3256 # The configuration determines which permission types are logged, and what
3257 # identities, if any, are exempted from logging.
3258 # An AuditConfig must have one or more AuditLogConfigs.
3259 #
3260 # If there are AuditConfigs for both `allServices` and a specific service,
3261 # the union of the two AuditConfigs is used for that service: the log_types
3262 # specified in each AuditConfig are enabled, and the exempted_members in each
3263 # AuditLogConfig are exempted.
3264 #
3265 # Example Policy with multiple AuditConfigs:
3266 #
3267 # {
3268 # &quot;audit_configs&quot;: [
3269 # {
3270 # &quot;service&quot;: &quot;allServices&quot;,
3271 # &quot;audit_log_configs&quot;: [
3272 # {
3273 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
3274 # &quot;exempted_members&quot;: [
3275 # &quot;user:[email protected]&quot;
3276 # ]
3277 # },
3278 # {
3279 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;
3280 # },
3281 # {
3282 # &quot;log_type&quot;: &quot;ADMIN_READ&quot;
3283 # }
3284 # ]
3285 # },
3286 # {
3287 # &quot;service&quot;: &quot;sampleservice.googleapis.com&quot;,
3288 # &quot;audit_log_configs&quot;: [
3289 # {
3290 # &quot;log_type&quot;: &quot;DATA_READ&quot;
3291 # },
3292 # {
3293 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
3294 # &quot;exempted_members&quot;: [
3295 # &quot;user:[email protected]&quot;
3296 # ]
3297 # }
3298 # ]
3299 # }
3300 # ]
3301 # }
3302 #
3303 # For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
3304 # logging. It also exempts `[email protected]` from DATA_READ logging, and
3305 # `[email protected]` from DATA_WRITE logging.
3306 &quot;auditLogConfigs&quot;: [ # The configuration for logging of each type of permission.
3307 { # Provides the configuration for logging a type of permissions.
3308 # Example:
3309 #
3310 # {
3311 # &quot;audit_log_configs&quot;: [
3312 # {
3313 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
3314 # &quot;exempted_members&quot;: [
3315 # &quot;user:[email protected]&quot;
3316 # ]
3317 # },
3318 # {
3319 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;
3320 # }
3321 # ]
3322 # }
3323 #
3324 # This enables &#x27;DATA_READ&#x27; and &#x27;DATA_WRITE&#x27; logging, while exempting
3325 # [email protected] from DATA_READ logging.
3326 &quot;exemptedMembers&quot;: [ # Specifies the identities that do not cause logging for this type of
3327 # permission.
3328 # Follows the same format of Binding.members.
3329 &quot;A String&quot;,
3330 ],
3331 &quot;logType&quot;: &quot;A String&quot;, # The log type that this config enables.
3332 },
3333 ],
3334 &quot;service&quot;: &quot;A String&quot;, # Specifies a service that will be enabled for audit logging.
3335 # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
3336 # `allServices` is a special value that covers all services.
3337 },
3338 ],
3339 &quot;bindings&quot;: [ # Associates a list of `members`, or principals, with a `role`. Optionally,
3340 # may specify a `condition` that determines how and when the `bindings` are
3341 # applied. Each of the `bindings` must contain at least one principal.
3342 #
3343 # The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
3344 # of these principals can be Google groups. Each occurrence of a principal
3345 # counts towards these limits. For example, if the `bindings` grant 50
3346 # different roles to `user:[email protected]`, and not to any other
3347 # principal, then you can add another 1,450 principals to the `bindings` in
3348 # the `Policy`.
3349 { # Associates `members`, or principals, with a `role`.
3350 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding.
3351 #
3352 # If the condition evaluates to `true`, then this binding applies to the
3353 # current request.
3354 #
3355 # If the condition evaluates to `false`, then this binding does not apply to
3356 # the current request. However, a different role binding might grant the same
3357 # role to one or more of the principals in this binding.
3358 #
3359 # To learn which resources support conditions in their IAM policies, see the
3360 # [IAM
3361 # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
3362 # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
3363 # are documented at https://github.com/google/cel-spec.
3364 #
3365 # Example (Comparison):
3366 #
3367 # title: &quot;Summary size limit&quot;
3368 # description: &quot;Determines if a summary is less than 100 chars&quot;
3369 # expression: &quot;document.summary.size() &lt; 100&quot;
3370 #
3371 # Example (Equality):
3372 #
3373 # title: &quot;Requestor is owner&quot;
3374 # description: &quot;Determines if requestor is the document owner&quot;
3375 # expression: &quot;document.owner == request.auth.claims.email&quot;
3376 #
3377 # Example (Logic):
3378 #
3379 # title: &quot;Public documents&quot;
3380 # description: &quot;Determine whether the document should be publicly visible&quot;
3381 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
3382 #
3383 # Example (Data Manipulation):
3384 #
3385 # title: &quot;Notification string&quot;
3386 # description: &quot;Create a notification string with a timestamp.&quot;
3387 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
3388 #
3389 # The exact variables and functions that may be referenced within an expression
3390 # are determined by the service that evaluates it. See the service
3391 # documentation for additional information.
3392 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which
3393 # describes the expression, e.g. when hovered over it in a UI.
3394 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language
3395 # syntax.
3396 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error
3397 # reporting, e.g. a file name and a position in the file.
3398 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing
3399 # its purpose. This can be used e.g. in UIs which allow to enter the
3400 # expression.
3401 },
3402 &quot;members&quot;: [ # Specifies the principals requesting access for a Google Cloud resource.
3403 # `members` can have the following values:
3404 #
3405 # * `allUsers`: A special identifier that represents anyone who is
3406 # on the internet; with or without a Google account.
3407 #
3408 # * `allAuthenticatedUsers`: A special identifier that represents anyone
3409 # who is authenticated with a Google account or a service account.
3410 # Does not include identities that come from external identity providers
3411 # (IdPs) through identity federation.
3412 #
3413 # * `user:{emailid}`: An email address that represents a specific Google
3414 # account. For example, `[email protected]` .
3415 #
3416 #
3417 # * `serviceAccount:{emailid}`: An email address that represents a Google
3418 # service account. For example,
3419 # `[email protected]`.
3420 #
3421 # * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An
3422 # identifier for a
3423 # [Kubernetes service
3424 # account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts).
3425 # For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`.
3426 #
3427 # * `group:{emailid}`: An email address that represents a Google group.
3428 # For example, `[email protected]`.
3429 #
3430 #
3431 # * `domain:{domain}`: The G Suite domain (primary) that represents all the
3432 # users of that domain. For example, `google.com` or `example.com`.
3433 #
3434 #
3435 #
3436 #
3437 # * `principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`:
3438 # A single identity in a workforce identity pool.
3439 #
3440 # * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`:
3441 # All workforce identities in a group.
3442 #
3443 # * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/attribute.{attribute_name}/{attribute_value}`:
3444 # All workforce identities with a specific attribute value.
3445 #
3446 # * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/*`:
3447 # All identities in a workforce identity pool.
3448 #
3449 # * `principal://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/subject/{subject_attribute_value}`:
3450 # A single identity in a workload identity pool.
3451 #
3452 # * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}`:
3453 # A workload identity pool group.
3454 #
3455 # * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value}`:
3456 # All identities in a workload identity pool with a certain attribute.
3457 #
3458 # * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/*`:
3459 # All identities in a workload identity pool.
3460 #
3461 # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
3462 # identifier) representing a user that has been recently deleted. For
3463 # example, `[email protected]?uid=123456789012345678901`. If the user is
3464 # recovered, this value reverts to `user:{emailid}` and the recovered user
3465 # retains the role in the binding.
3466 #
3467 # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
3468 # unique identifier) representing a service account that has been recently
3469 # deleted. For example,
3470 # `[email protected]?uid=123456789012345678901`.
3471 # If the service account is undeleted, this value reverts to
3472 # `serviceAccount:{emailid}` and the undeleted service account retains the
3473 # role in the binding.
3474 #
3475 # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
3476 # identifier) representing a Google group that has been recently
3477 # deleted. For example, `[email protected]?uid=123456789012345678901`. If
3478 # the group is recovered, this value reverts to `group:{emailid}` and the
3479 # recovered group retains the role in the binding.
3480 #
3481 # * `deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`:
3482 # Deleted single identity in a workforce identity pool. For example,
3483 # `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-pool-id/subject/my-subject-attribute-value`.
3484 &quot;A String&quot;,
3485 ],
3486 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to the list of `members`, or principals.
3487 # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
3488 #
3489 # For an overview of the IAM roles and permissions, see the
3490 # [IAM documentation](https://cloud.google.com/iam/docs/roles-overview). For
3491 # a list of the available pre-defined roles, see
3492 # [here](https://cloud.google.com/iam/docs/understanding-roles).
3493 },
3494 ],
3495 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help
3496 # prevent simultaneous updates of a policy from overwriting each other.
3497 # It is strongly suggested that systems make use of the `etag` in the
3498 # read-modify-write cycle to perform policy updates in order to avoid race
3499 # conditions: An `etag` is returned in the response to `getIamPolicy`, and
3500 # systems are expected to put that etag in the request to `setIamPolicy` to
3501 # ensure that their change will be applied to the same version of the policy.
3502 #
3503 # **Important:** If you use IAM Conditions, you must include the `etag` field
3504 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
3505 # you to overwrite a version `3` policy with a version `1` policy, and all of
3506 # the conditions in the version `3` policy are lost.
3507 &quot;version&quot;: 42, # Specifies the format of the policy.
3508 #
3509 # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
3510 # are rejected.
3511 #
3512 # Any operation that affects conditional role bindings must specify version
3513 # `3`. This requirement applies to the following operations:
3514 #
3515 # * Getting a policy that includes a conditional role binding
3516 # * Adding a conditional role binding to a policy
3517 # * Changing a conditional role binding in a policy
3518 # * Removing any role binding, with or without a condition, from a policy
3519 # that includes conditions
3520 #
3521 # **Important:** If you use IAM Conditions, you must include the `etag` field
3522 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
3523 # you to overwrite a version `3` policy with a version `1` policy, and all of
3524 # the conditions in the version `3` policy are lost.
3525 #
3526 # If a policy does not include any conditions, operations on that policy may
3527 # specify any valid version or leave the field unset.
3528 #
3529 # To learn which resources support conditions in their IAM policies, see the
3530 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
3531 }</pre>
3532 </div>
3533
3534 <div class="method">
3535 <code class="details" id="testIamPermissions">testIamPermissions(project, region, resource, body=None, x__xgafv=None)</code>
3536 <pre>Returns permissions that a caller has on the specified resource.
3537
3538 Args:
3539 project: string, Project ID for this request. (required)
3540 region: string, The name of the region for this request. (required)
3541 resource: string, Name or id of the resource for this request. (required)
3542 body: object, The request body.
3543 The object takes the form of:
3544
3545 {
3546 &quot;permissions&quot;: [ # The set of permissions to check for the &#x27;resource&#x27;. Permissions with
3547 # wildcards (such as &#x27;*&#x27; or &#x27;storage.*&#x27;) are not allowed.
3548 &quot;A String&quot;,
3549 ],
3550 }
3551
3552 x__xgafv: string, V1 error format.
3553 Allowed values
3554 1 - v1 error format
3555 2 - v2 error format
3556
3557 Returns:
3558 An object of the form:
3559
3560 {
3561 &quot;permissions&quot;: [ # A subset of `TestPermissionsRequest.permissions` that the caller is
3562 # allowed.
3563 &quot;A String&quot;,
3564 ],
3565 }</pre>
3566 </div>
3567
3568 </body></html>