Debian Codegraph @

docs/dyn/storage_v1.buckets.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="storage_v1.html">Cloud Storage JSON API</a> . <a href="storage_v1.buckets.html">buckets</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(bucket, ifMetagenerationMatch=None, ifMetagenerationNotMatch=None, userProject=None)</a></code></p>
82 <p class="firstline">Deletes an empty bucket. Deletions are permanent unless soft delete is enabled on the bucket.</p>
83 <p class="toc_element">
84 <code><a href="#get">get(bucket, generation=None, ifMetagenerationMatch=None, ifMetagenerationNotMatch=None, projection=None, softDeleted=None, userProject=None)</a></code></p>
85 <p class="firstline">Returns metadata for the specified bucket.</p>
86 <p class="toc_element">
87 <code><a href="#getIamPolicy">getIamPolicy(bucket, optionsRequestedPolicyVersion=None, userProject=None)</a></code></p>
88 <p class="firstline">Returns an IAM policy for the specified bucket.</p>
89 <p class="toc_element">
90 <code><a href="#getStorageLayout">getStorageLayout(bucket, prefix=None)</a></code></p>
91 <p class="firstline">Returns the storage layout configuration for the specified bucket. Note that this operation requires storage.objects.list permission.</p>
92 <p class="toc_element">
93 <code><a href="#insert">insert(project, body=None, enableObjectRetention=None, predefinedAcl=None, predefinedDefaultObjectAcl=None, projection=None, userProject=None)</a></code></p>
94 <p class="firstline">Creates a new bucket.</p>
95 <p class="toc_element">
96 <code><a href="#list">list(project, maxResults=None, pageToken=None, prefix=None, projection=None, returnPartialSuccess=None, softDeleted=None, userProject=None)</a></code></p>
97 <p class="firstline">Retrieves a list of buckets for a given project.</p>
98 <p class="toc_element">
99 <code><a href="#list_next">list_next()</a></code></p>
100 <p class="firstline">Retrieves the next page of results.</p>
101 <p class="toc_element">
102 <code><a href="#lockRetentionPolicy">lockRetentionPolicy(bucket, ifMetagenerationMatch, userProject=None)</a></code></p>
103 <p class="firstline">Locks retention policy on a bucket.</p>
104 <p class="toc_element">
105 <code><a href="#patch">patch(bucket, body=None, ifMetagenerationMatch=None, ifMetagenerationNotMatch=None, predefinedAcl=None, predefinedDefaultObjectAcl=None, projection=None, userProject=None)</a></code></p>
106 <p class="firstline">Patches a bucket. Changes to the bucket will be readable immediately after writing, but configuration changes may take time to propagate.</p>
107 <p class="toc_element">
108 <code><a href="#relocate">relocate(bucket, body=None)</a></code></p>
109 <p class="firstline">Initiates a long-running Relocate Bucket operation on the specified bucket.</p>
110 <p class="toc_element">
111 <code><a href="#restore">restore(bucket, generation, projection=None, userProject=None)</a></code></p>
112 <p class="firstline">Restores a soft-deleted bucket.</p>
113 <p class="toc_element">
114 <code><a href="#setIamPolicy">setIamPolicy(bucket, body=None, userProject=None)</a></code></p>
115 <p class="firstline">Updates an IAM policy for the specified bucket.</p>
116 <p class="toc_element">
117 <code><a href="#testIamPermissions">testIamPermissions(bucket, permissions, userProject=None)</a></code></p>
118 <p class="firstline">Tests a set of permissions on the given bucket to see which, if any, are held by the caller.</p>
119 <p class="toc_element">
120 <code><a href="#update">update(bucket, body=None, ifMetagenerationMatch=None, ifMetagenerationNotMatch=None, predefinedAcl=None, predefinedDefaultObjectAcl=None, projection=None, userProject=None)</a></code></p>
121 <p class="firstline">Updates a bucket. Changes to the bucket will be readable immediately after writing, but configuration changes may take time to propagate.</p>
122 <h3>Method Details</h3>
123 <div class="method">
124 <code class="details" id="close">close()</code>
125 <pre>Close httplib2 connections.</pre>
126 </div>
127
128 <div class="method">
129 <code class="details" id="delete">delete(bucket, ifMetagenerationMatch=None, ifMetagenerationNotMatch=None, userProject=None)</code>
130 <pre>Deletes an empty bucket. Deletions are permanent unless soft delete is enabled on the bucket.
131
132 Args:
133 bucket: string, Name of a bucket. (required)
134 ifMetagenerationMatch: string, If set, only deletes the bucket if its metageneration matches this value.
135 ifMetagenerationNotMatch: string, If set, only deletes the bucket if its metageneration does not match this value.
136 userProject: string, The project to be billed for this request. Required for Requester Pays buckets.
137 </pre>
138 </div>
139
140 <div class="method">
141 <code class="details" id="get">get(bucket, generation=None, ifMetagenerationMatch=None, ifMetagenerationNotMatch=None, projection=None, softDeleted=None, userProject=None)</code>
142 <pre>Returns metadata for the specified bucket.
143
144 Args:
145 bucket: string, Name of a bucket. (required)
146 generation: string, If present, specifies the generation of the bucket. This is required if softDeleted is true.
147 ifMetagenerationMatch: string, Makes the return of the bucket metadata conditional on whether the bucket&#x27;s current metageneration matches the given value.
148 ifMetagenerationNotMatch: string, Makes the return of the bucket metadata conditional on whether the bucket&#x27;s current metageneration does not match the given value.
149 projection: string, Set of properties to return. Defaults to noAcl.
150 Allowed values
151 full - Include all properties.
152 noAcl - Omit owner, acl and defaultObjectAcl properties.
153 softDeleted: boolean, If true, return the soft-deleted version of this bucket. The default is false. For more information, see [Soft Delete](https://cloud.google.com/storage/docs/soft-delete).
154 userProject: string, The project to be billed for this request. Required for Requester Pays buckets.
155
156 Returns:
157 An object of the form:
158
159 { # A bucket.
160 &quot;acl&quot;: [ # Access controls on the bucket.
161 { # An access-control entry.
162 &quot;bucket&quot;: &quot;A String&quot;, # The name of the bucket.
163 &quot;domain&quot;: &quot;A String&quot;, # The domain associated with the entity, if any.
164 &quot;email&quot;: &quot;A String&quot;, # The email address associated with the entity, if any.
165 &quot;entity&quot;: &quot;A String&quot;, # The entity holding the permission, in one of the following forms:
166 # - user-userId
167 # - user-email
168 # - group-groupId
169 # - group-email
170 # - domain-domain
171 # - project-team-projectId
172 # - allUsers
173 # - allAuthenticatedUsers Examples:
174 # - The user [email protected] would be [email protected].
175 # - The group [email protected] would be [email protected].
176 # - To refer to all members of the Google Apps for Business domain example.com, the entity would be domain-example.com.
177 &quot;entityId&quot;: &quot;A String&quot;, # The ID for the entity, if any.
178 &quot;etag&quot;: &quot;A String&quot;, # HTTP 1.1 Entity tag for the access-control entry.
179 &quot;id&quot;: &quot;A String&quot;, # The ID of the access-control entry.
180 &quot;kind&quot;: &quot;storage#bucketAccessControl&quot;, # The kind of item this is. For bucket access control entries, this is always storage#bucketAccessControl.
181 &quot;projectTeam&quot;: { # The project team associated with the entity, if any.
182 &quot;projectNumber&quot;: &quot;A String&quot;, # The project number.
183 &quot;team&quot;: &quot;A String&quot;, # The team.
184 },
185 &quot;role&quot;: &quot;A String&quot;, # The access permission for the entity.
186 &quot;selfLink&quot;: &quot;A String&quot;, # The link to this access-control entry.
187 },
188 ],
189 &quot;autoclass&quot;: { # The bucket&#x27;s Autoclass configuration.
190 &quot;enabled&quot;: True or False, # Whether or not Autoclass is enabled on this bucket
191 &quot;terminalStorageClass&quot;: &quot;A String&quot;, # The storage class that objects in the bucket eventually transition to if they are not read for a certain length of time. Valid values are NEARLINE and ARCHIVE.
192 &quot;terminalStorageClassUpdateTime&quot;: &quot;A String&quot;, # A date and time in RFC 3339 format representing the time of the most recent update to &quot;terminalStorageClass&quot;.
193 &quot;toggleTime&quot;: &quot;A String&quot;, # A date and time in RFC 3339 format representing the instant at which &quot;enabled&quot; was last toggled.
194 },
195 &quot;billing&quot;: { # The bucket&#x27;s billing configuration.
196 &quot;requesterPays&quot;: True or False, # When set to true, Requester Pays is enabled for this bucket.
197 },
198 &quot;cors&quot;: [ # The bucket&#x27;s Cross-Origin Resource Sharing (CORS) configuration.
199 {
200 &quot;maxAgeSeconds&quot;: 42, # The value, in seconds, to return in the Access-Control-Max-Age header used in preflight responses.
201 &quot;method&quot;: [ # The list of HTTP methods on which to include CORS response headers, (GET, OPTIONS, POST, etc) Note: &quot;*&quot; is permitted in the list of methods, and means &quot;any method&quot;.
202 &quot;A String&quot;,
203 ],
204 &quot;origin&quot;: [ # The list of Origins eligible to receive CORS response headers. Note: &quot;*&quot; is permitted in the list of origins, and means &quot;any Origin&quot;.
205 &quot;A String&quot;,
206 ],
207 &quot;responseHeader&quot;: [ # The list of HTTP headers other than the simple response headers to give permission for the user-agent to share across domains.
208 &quot;A String&quot;,
209 ],
210 },
211 ],
212 &quot;customPlacementConfig&quot;: { # The bucket&#x27;s custom placement configuration for Custom Dual Regions.
213 &quot;dataLocations&quot;: [ # The list of regional locations in which data is placed.
214 &quot;A String&quot;,
215 ],
216 },
217 &quot;defaultEventBasedHold&quot;: True or False, # The default value for event-based hold on newly created objects in this bucket. Event-based hold is a way to retain objects indefinitely until an event occurs, signified by the hold&#x27;s release. After being released, such objects will be subject to bucket-level retention (if any). One sample use case of this flag is for banks to hold loan documents for at least 3 years after loan is paid in full. Here, bucket-level retention is 3 years and the event is loan being paid in full. In this example, these objects will be held intact for any number of years until the event has occurred (event-based hold on the object is released) and then 3 more years after that. That means retention duration of the objects begins from the moment event-based hold transitioned from true to false. Objects under event-based hold cannot be deleted, overwritten or archived until the hold is removed.
218 &quot;defaultObjectAcl&quot;: [ # Default access controls to apply to new objects when no ACL is provided.
219 { # An access-control entry.
220 &quot;bucket&quot;: &quot;A String&quot;, # The name of the bucket.
221 &quot;domain&quot;: &quot;A String&quot;, # The domain associated with the entity, if any.
222 &quot;email&quot;: &quot;A String&quot;, # The email address associated with the entity, if any.
223 &quot;entity&quot;: &quot;A String&quot;, # The entity holding the permission, in one of the following forms:
224 # - user-userId
225 # - user-email
226 # - group-groupId
227 # - group-email
228 # - domain-domain
229 # - project-team-projectId
230 # - allUsers
231 # - allAuthenticatedUsers Examples:
232 # - The user [email protected] would be [email protected].
233 # - The group [email protected] would be [email protected].
234 # - To refer to all members of the Google Apps for Business domain example.com, the entity would be domain-example.com.
235 &quot;entityId&quot;: &quot;A String&quot;, # The ID for the entity, if any.
236 &quot;etag&quot;: &quot;A String&quot;, # HTTP 1.1 Entity tag for the access-control entry.
237 &quot;generation&quot;: &quot;A String&quot;, # The content generation of the object, if applied to an object.
238 &quot;id&quot;: &quot;A String&quot;, # The ID of the access-control entry.
239 &quot;kind&quot;: &quot;storage#objectAccessControl&quot;, # The kind of item this is. For object access control entries, this is always storage#objectAccessControl.
240 &quot;object&quot;: &quot;A String&quot;, # The name of the object, if applied to an object.
241 &quot;projectTeam&quot;: { # The project team associated with the entity, if any.
242 &quot;projectNumber&quot;: &quot;A String&quot;, # The project number.
243 &quot;team&quot;: &quot;A String&quot;, # The team.
244 },
245 &quot;role&quot;: &quot;A String&quot;, # The access permission for the entity.
246 &quot;selfLink&quot;: &quot;A String&quot;, # The link to this access-control entry.
247 },
248 ],
249 &quot;encryption&quot;: { # Encryption configuration for a bucket.
250 &quot;customerManagedEncryptionEnforcementConfig&quot;: { # If set, the new objects created in this bucket must comply with this enforcement config. Changing this has no effect on existing objects; it applies to new objects only. If omitted, the new objects are allowed to be encrypted with Customer Managed Encryption type by default.
251 &quot;effectiveTime&quot;: &quot;A String&quot;, # Server-determined value that indicates the time from which configuration was enforced and effective. This value is in RFC 3339 format.
252 &quot;restrictionMode&quot;: &quot;A String&quot;, # Restriction mode for Customer-Managed Encryption Keys. Defaults to NotRestricted.
253 },
254 &quot;customerSuppliedEncryptionEnforcementConfig&quot;: { # If set, the new objects created in this bucket must comply with this enforcement config. Changing this has no effect on existing objects; it applies to new objects only. If omitted, the new objects are allowed to be encrypted with Customer Supplied Encryption type by default.
255 &quot;effectiveTime&quot;: &quot;A String&quot;, # Server-determined value that indicates the time from which configuration was enforced and effective. This value is in RFC 3339 format.
256 &quot;restrictionMode&quot;: &quot;A String&quot;, # Restriction mode for Customer-Supplied Encryption Keys. Defaults to NotRestricted.
257 },
258 &quot;defaultKmsKeyName&quot;: &quot;A String&quot;, # A Cloud KMS key that will be used to encrypt objects inserted into this bucket, if no encryption method is specified.
259 &quot;googleManagedEncryptionEnforcementConfig&quot;: { # If set, the new objects created in this bucket must comply with this enforcement config. Changing this has no effect on existing objects; it applies to new objects only. If omitted, the new objects are allowed to be encrypted with Google Managed Encryption type by default.
260 &quot;effectiveTime&quot;: &quot;A String&quot;, # Server-determined value that indicates the time from which configuration was enforced and effective. This value is in RFC 3339 format.
261 &quot;restrictionMode&quot;: &quot;A String&quot;, # Restriction mode for Google-Managed Encryption Keys. Defaults to NotRestricted.
262 },
263 },
264 &quot;etag&quot;: &quot;A String&quot;, # HTTP 1.1 Entity tag for the bucket.
265 &quot;generation&quot;: &quot;A String&quot;, # The generation of this bucket.
266 &quot;hardDeleteTime&quot;: &quot;A String&quot;, # The hard delete time of the bucket in RFC 3339 format.
267 &quot;hierarchicalNamespace&quot;: { # The bucket&#x27;s hierarchical namespace configuration.
268 &quot;enabled&quot;: True or False, # When set to true, hierarchical namespace is enabled for this bucket.
269 },
270 &quot;iamConfiguration&quot;: { # The bucket&#x27;s IAM configuration.
271 &quot;bucketPolicyOnly&quot;: { # The bucket&#x27;s uniform bucket-level access configuration. The feature was formerly known as Bucket Policy Only. For backward compatibility, this field will be populated with identical information as the uniformBucketLevelAccess field. We recommend using the uniformBucketLevelAccess field to enable and disable the feature.
272 &quot;enabled&quot;: True or False, # If set, access is controlled only by bucket-level or above IAM policies.
273 &quot;lockedTime&quot;: &quot;A String&quot;, # The deadline for changing iamConfiguration.bucketPolicyOnly.enabled from true to false in RFC 3339 format. iamConfiguration.bucketPolicyOnly.enabled may be changed from true to false until the locked time, after which the field is immutable.
274 },
275 &quot;publicAccessPrevention&quot;: &quot;A String&quot;, # The bucket&#x27;s Public Access Prevention configuration. Currently, &#x27;inherited&#x27; and &#x27;enforced&#x27; are supported.
276 &quot;uniformBucketLevelAccess&quot;: { # The bucket&#x27;s uniform bucket-level access configuration.
277 &quot;enabled&quot;: True or False, # If set, access is controlled only by bucket-level or above IAM policies.
278 &quot;lockedTime&quot;: &quot;A String&quot;, # The deadline for changing iamConfiguration.uniformBucketLevelAccess.enabled from true to false in RFC 3339 format. iamConfiguration.uniformBucketLevelAccess.enabled may be changed from true to false until the locked time, after which the field is immutable.
279 },
280 },
281 &quot;id&quot;: &quot;A String&quot;, # The ID of the bucket. For buckets, the id and name properties are the same.
282 &quot;ipFilter&quot;: { # The bucket&#x27;s IP filter configuration. Specifies the network sources that are allowed to access the operations on the bucket, as well as its underlying objects. Only enforced when the mode is set to &#x27;Enabled&#x27;.
283 &quot;allowAllServiceAgentAccess&quot;: True or False, # Whether to allow all service agents to access the bucket regardless of the IP filter configuration.
284 &quot;allowCrossOrgVpcs&quot;: True or False, # Whether to allow cross-org VPCs in the bucket&#x27;s IP filter configuration.
285 &quot;mode&quot;: &quot;A String&quot;, # The mode of the IP filter. Valid values are &#x27;Enabled&#x27; and &#x27;Disabled&#x27;.
286 &quot;publicNetworkSource&quot;: { # The public network source of the bucket&#x27;s IP filter.
287 &quot;allowedIpCidrRanges&quot;: [ # The list of public IPv4, IPv6 cidr ranges that are allowed to access the bucket.
288 &quot;A String&quot;,
289 ],
290 },
291 &quot;vpcNetworkSources&quot;: [ # The list of [VPC network](https://cloud.google.com/vpc/docs/vpc) sources of the bucket&#x27;s IP filter.
292 {
293 &quot;allowedIpCidrRanges&quot;: [ # The list of IPv4, IPv6 cidr ranges subnetworks that are allowed to access the bucket.
294 &quot;A String&quot;,
295 ],
296 &quot;network&quot;: &quot;A String&quot;, # Name of the network. Format: projects/{PROJECT_ID}/global/networks/{NETWORK_NAME}
297 },
298 ],
299 },
300 &quot;kind&quot;: &quot;storage#bucket&quot;, # The kind of item this is. For buckets, this is always storage#bucket.
301 &quot;labels&quot;: { # User-provided labels, in key/value pairs.
302 &quot;a_key&quot;: &quot;A String&quot;, # An individual label entry.
303 },
304 &quot;lifecycle&quot;: { # The bucket&#x27;s lifecycle configuration. See [Lifecycle Management](https://cloud.google.com/storage/docs/lifecycle) for more information.
305 &quot;rule&quot;: [ # A lifecycle management rule, which is made of an action to take and the condition(s) under which the action will be taken.
306 {
307 &quot;action&quot;: { # The action to take.
308 &quot;storageClass&quot;: &quot;A String&quot;, # Target storage class. Required iff the type of the action is SetStorageClass.
309 &quot;type&quot;: &quot;A String&quot;, # Type of the action. Currently, only Delete, SetStorageClass, and AbortIncompleteMultipartUpload are supported.
310 },
311 &quot;condition&quot;: { # The condition(s) under which the action will be taken.
312 &quot;age&quot;: 42, # Age of an object (in days). This condition is satisfied when an object reaches the specified age.
313 &quot;createdBefore&quot;: &quot;A String&quot;, # A date in RFC 3339 format with only the date part (for instance, &quot;2013-01-15&quot;). This condition is satisfied when an object is created before midnight of the specified date in UTC.
314 &quot;customTimeBefore&quot;: &quot;A String&quot;, # A date in RFC 3339 format with only the date part (for instance, &quot;2013-01-15&quot;). This condition is satisfied when the custom time on an object is before this date in UTC.
315 &quot;daysSinceCustomTime&quot;: 42, # Number of days elapsed since the user-specified timestamp set on an object. The condition is satisfied if the days elapsed is at least this number. If no custom timestamp is specified on an object, the condition does not apply.
316 &quot;daysSinceNoncurrentTime&quot;: 42, # Number of days elapsed since the noncurrent timestamp of an object. The condition is satisfied if the days elapsed is at least this number. This condition is relevant only for versioned objects. The value of the field must be a nonnegative integer. If it&#x27;s zero, the object version will become eligible for Lifecycle action as soon as it becomes noncurrent.
317 &quot;isLive&quot;: True or False, # Relevant only for versioned objects. If the value is true, this condition matches live objects; if the value is false, it matches archived objects.
318 &quot;matchesPattern&quot;: &quot;A String&quot;, # A regular expression that satisfies the RE2 syntax. This condition is satisfied when the name of the object matches the RE2 pattern. Note: This feature is currently in the &quot;Early Access&quot; launch stage and is only available to a whitelisted set of users; that means that this feature may be changed in backward-incompatible ways and that it is not guaranteed to be released.
319 &quot;matchesPrefix&quot;: [ # List of object name prefixes. This condition will be satisfied when at least one of the prefixes exactly matches the beginning of the object name.
320 &quot;A String&quot;,
321 ],
322 &quot;matchesStorageClass&quot;: [ # Objects having any of the storage classes specified by this condition will be matched. Values include MULTI_REGIONAL, REGIONAL, NEARLINE, COLDLINE, ARCHIVE, STANDARD, and DURABLE_REDUCED_AVAILABILITY.
323 &quot;A String&quot;,
324 ],
325 &quot;matchesSuffix&quot;: [ # List of object name suffixes. This condition will be satisfied when at least one of the suffixes exactly matches the end of the object name.
326 &quot;A String&quot;,
327 ],
328 &quot;noncurrentTimeBefore&quot;: &quot;A String&quot;, # A date in RFC 3339 format with only the date part (for instance, &quot;2013-01-15&quot;). This condition is satisfied when the noncurrent time on an object is before this date in UTC. This condition is relevant only for versioned objects.
329 &quot;numNewerVersions&quot;: 42, # Relevant only for versioned objects. If the value is N, this condition is satisfied when there are at least N versions (including the live version) newer than this version of the object.
330 &quot;sizeAboveBytes&quot;: &quot;A String&quot;, # Objects having a size greater than this value in bytes will be matched.
331 &quot;sizeBelowBytes&quot;: &quot;A String&quot;, # Objects having a size less than this value in bytes will be matched.
332 },
333 },
334 ],
335 },
336 &quot;location&quot;: &quot;A String&quot;, # The location of the bucket. Object data for objects in the bucket resides in physical storage within this region. Defaults to US. See the [Developer&#x27;s Guide](https://cloud.google.com/storage/docs/locations) for the authoritative list.
337 &quot;locationType&quot;: &quot;A String&quot;, # The type of the bucket location.
338 &quot;logging&quot;: { # The bucket&#x27;s logging configuration, which defines the destination bucket and optional name prefix for the current bucket&#x27;s logs.
339 &quot;logBucket&quot;: &quot;A String&quot;, # The destination bucket where the current bucket&#x27;s logs should be placed.
340 &quot;logObjectPrefix&quot;: &quot;A String&quot;, # A prefix for log object names.
341 },
342 &quot;metageneration&quot;: &quot;A String&quot;, # The metadata generation of this bucket.
343 &quot;name&quot;: &quot;A String&quot;, # The name of the bucket.
344 &quot;objectRetention&quot;: { # The bucket&#x27;s object retention config.
345 &quot;mode&quot;: &quot;A String&quot;, # The bucket&#x27;s object retention mode. Can be Enabled.
346 },
347 &quot;owner&quot;: { # The owner of the bucket. This is always the project team&#x27;s owner group.
348 &quot;entity&quot;: &quot;A String&quot;, # The entity, in the form project-owner-projectId.
349 &quot;entityId&quot;: &quot;A String&quot;, # The ID for the entity.
350 },
351 &quot;projectNumber&quot;: &quot;A String&quot;, # The project number of the project the bucket belongs to.
352 &quot;retentionPolicy&quot;: { # The bucket&#x27;s retention policy. The retention policy enforces a minimum retention time for all objects contained in the bucket, based on their creation time. Any attempt to overwrite or delete objects younger than the retention period will result in a PERMISSION_DENIED error. An unlocked retention policy can be modified or removed from the bucket via a storage.buckets.update operation. A locked retention policy cannot be removed or shortened in duration for the lifetime of the bucket. Attempting to remove or decrease period of a locked retention policy will result in a PERMISSION_DENIED error.
353 &quot;effectiveTime&quot;: &quot;A String&quot;, # Server-determined value that indicates the time from which policy was enforced and effective. This value is in RFC 3339 format.
354 &quot;isLocked&quot;: True or False, # Once locked, an object retention policy cannot be modified.
355 &quot;retentionPeriod&quot;: &quot;A String&quot;, # The duration in seconds that objects need to be retained. Retention duration must be greater than zero and less than 100 years. Note that enforcement of retention periods less than a day is not guaranteed. Such periods should only be used for testing purposes.
356 },
357 &quot;rpo&quot;: &quot;A String&quot;, # The Recovery Point Objective (RPO) of this bucket. Set to ASYNC_TURBO to turn on Turbo Replication on a bucket.
358 &quot;satisfiesPZI&quot;: True or False, # Reserved for future use.
359 &quot;satisfiesPZS&quot;: True or False, # Reserved for future use.
360 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this bucket.
361 &quot;softDeletePolicy&quot;: { # The bucket&#x27;s soft delete policy, which defines the period of time that soft-deleted objects will be retained, and cannot be permanently deleted.
362 &quot;effectiveTime&quot;: &quot;A String&quot;, # Server-determined value that indicates the time from which the policy, or one with a greater retention, was effective. This value is in RFC 3339 format.
363 &quot;retentionDurationSeconds&quot;: &quot;A String&quot;, # The duration in seconds that soft-deleted objects in the bucket will be retained and cannot be permanently deleted.
364 },
365 &quot;softDeleteTime&quot;: &quot;A String&quot;, # The soft delete time of the bucket in RFC 3339 format.
366 &quot;storageClass&quot;: &quot;A String&quot;, # The bucket&#x27;s default storage class, used whenever no storageClass is specified for a newly-created object. This defines how objects in the bucket are stored and determines the SLA and the cost of storage. Values include MULTI_REGIONAL, REGIONAL, STANDARD, NEARLINE, COLDLINE, ARCHIVE, and DURABLE_REDUCED_AVAILABILITY. If this value is not specified when the bucket is created, it will default to STANDARD. For more information, see [Storage Classes](https://cloud.google.com/storage/docs/storage-classes).
367 &quot;timeCreated&quot;: &quot;A String&quot;, # The creation time of the bucket in RFC 3339 format.
368 &quot;updated&quot;: &quot;A String&quot;, # The modification time of the bucket in RFC 3339 format.
369 &quot;versioning&quot;: { # The bucket&#x27;s versioning configuration.
370 &quot;enabled&quot;: True or False, # While set to true, versioning is fully enabled for this bucket.
371 },
372 &quot;website&quot;: { # The bucket&#x27;s website configuration, controlling how the service behaves when accessing bucket contents as a web site. See the [Static Website Examples](https://cloud.google.com/storage/docs/static-website) for more information.
373 &quot;mainPageSuffix&quot;: &quot;A String&quot;, # If the requested object path is missing, the service will ensure the path has a trailing &#x27;/&#x27;, append this suffix, and attempt to retrieve the resulting object. This allows the creation of index.html objects to represent directory pages.
374 &quot;notFoundPage&quot;: &quot;A String&quot;, # If the requested object path is missing, and any mainPageSuffix object is missing, if applicable, the service will return the named object from this bucket as the content for a 404 Not Found result.
375 },
376 }</pre>
377 </div>
378
379 <div class="method">
380 <code class="details" id="getIamPolicy">getIamPolicy(bucket, optionsRequestedPolicyVersion=None, userProject=None)</code>
381 <pre>Returns an IAM policy for the specified bucket.
382
383 Args:
384 bucket: string, Name of a bucket. (required)
385 optionsRequestedPolicyVersion: integer, The IAM policy format version to be returned. If the optionsRequestedPolicyVersion is for an older version that doesn&#x27;t support part of the requested IAM policy, the request fails.
386 userProject: string, The project to be billed for this request. Required for Requester Pays buckets.
387
388 Returns:
389 An object of the form:
390
391 { # A bucket/object/managedFolder IAM policy.
392 &quot;bindings&quot;: [ # An association between a role, which comes with a set of permissions, and members who may assume that role.
393 {
394 &quot;condition&quot;: { # Represents an expression text. Example: title: &quot;User account presence&quot; description: &quot;Determines whether the request has a user account&quot; expression: &quot;size(request.user) &gt; 0&quot; # The condition that is associated with this binding. NOTE: an unsatisfied condition will not allow user access via current binding. Different bindings, including their conditions, are examined independently.
395 &quot;description&quot;: &quot;A String&quot;, # An optional description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
396 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax. The application context of the containing message determines which well-known feature set of CEL is supported.
397 &quot;location&quot;: &quot;A String&quot;, # An optional string indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
398 &quot;title&quot;: &quot;A String&quot;, # An optional title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.
399 },
400 &quot;members&quot;: [ # A collection of identifiers for members who may assume the provided role. Recognized identifiers are as follows:
401 # - allUsers - A special identifier that represents anyone on the internet; with or without a Google account.
402 # - allAuthenticatedUsers - A special identifier that represents anyone who is authenticated with a Google account or a service account.
403 # - user:emailid - An email address that represents a specific account. For example, user:[email protected] or user:[email protected].
404 # - serviceAccount:emailid - An email address that represents a service account. For example, serviceAccount:[email protected] .
405 # - group:emailid - An email address that represents a Google group. For example, group:[email protected].
406 # - domain:domain - A Google Apps domain name that represents all the users of that domain. For example, domain:google.com or domain:example.com.
407 # - projectOwner:projectid - Owners of the given project. For example, projectOwner:my-example-project
408 # - projectEditor:projectid - Editors of the given project. For example, projectEditor:my-example-project
409 # - projectViewer:projectid - Viewers of the given project. For example, projectViewer:my-example-project
410 &quot;A String&quot;,
411 ],
412 &quot;role&quot;: &quot;A String&quot;, # The role to which members belong. Two types of roles are supported: new IAM roles, which grant permissions that do not map directly to those provided by ACLs, and legacy IAM roles, which do map directly to ACL permissions. All roles are of the format roles/storage.specificRole.
413 # The new IAM roles are:
414 # - roles/storage.admin - Full control of Google Cloud Storage resources.
415 # - roles/storage.objectViewer - Read-Only access to Google Cloud Storage objects.
416 # - roles/storage.objectCreator - Access to create objects in Google Cloud Storage.
417 # - roles/storage.objectAdmin - Full control of Google Cloud Storage objects. The legacy IAM roles are:
418 # - roles/storage.legacyObjectReader - Read-only access to objects without listing. Equivalent to an ACL entry on an object with the READER role.
419 # - roles/storage.legacyObjectOwner - Read/write access to existing objects without listing. Equivalent to an ACL entry on an object with the OWNER role.
420 # - roles/storage.legacyBucketReader - Read access to buckets with object listing. Equivalent to an ACL entry on a bucket with the READER role.
421 # - roles/storage.legacyBucketWriter - Read access to buckets with object listing/creation/deletion. Equivalent to an ACL entry on a bucket with the WRITER role.
422 # - roles/storage.legacyBucketOwner - Read and write access to existing buckets with object listing/creation/deletion. Equivalent to an ACL entry on a bucket with the OWNER role.
423 },
424 ],
425 &quot;etag&quot;: &quot;A String&quot;, # HTTP 1.1 Entity tag for the policy.
426 &quot;kind&quot;: &quot;storage#policy&quot;, # The kind of item this is. For policies, this is always storage#policy. This field is ignored on input.
427 &quot;resourceId&quot;: &quot;A String&quot;, # The ID of the resource to which this policy belongs. Will be of the form projects/_/buckets/bucket for buckets, projects/_/buckets/bucket/objects/object for objects, and projects/_/buckets/bucket/managedFolders/managedFolder. A specific generation may be specified by appending #generationNumber to the end of the object name, e.g. projects/_/buckets/my-bucket/objects/data.txt#17. The current generation can be denoted with #0. This field is ignored on input.
428 &quot;version&quot;: 42, # The IAM policy format version.
429 }</pre>
430 </div>
431
432 <div class="method">
433 <code class="details" id="getStorageLayout">getStorageLayout(bucket, prefix=None)</code>
434 <pre>Returns the storage layout configuration for the specified bucket. Note that this operation requires storage.objects.list permission.
435
436 Args:
437 bucket: string, Name of a bucket. (required)
438 prefix: string, An optional prefix used for permission check. It is useful when the caller only has storage.objects.list permission under a specific prefix.
439
440 Returns:
441 An object of the form:
442
443 { # The storage layout configuration of a bucket.
444 &quot;bucket&quot;: &quot;A String&quot;, # The name of the bucket.
445 &quot;customPlacementConfig&quot;: { # The bucket&#x27;s custom placement configuration for Custom Dual Regions.
446 &quot;dataLocations&quot;: [ # The list of regional locations in which data is placed.
447 &quot;A String&quot;,
448 ],
449 },
450 &quot;hierarchicalNamespace&quot;: { # The bucket&#x27;s hierarchical namespace configuration.
451 &quot;enabled&quot;: True or False, # When set to true, hierarchical namespace is enabled for this bucket.
452 },
453 &quot;kind&quot;: &quot;storage#storageLayout&quot;, # The kind of item this is. For storage layout, this is always storage#storageLayout.
454 &quot;location&quot;: &quot;A String&quot;, # The location of the bucket.
455 &quot;locationType&quot;: &quot;A String&quot;, # The type of the bucket location.
456 }</pre>
457 </div>
458
459 <div class="method">
460 <code class="details" id="insert">insert(project, body=None, enableObjectRetention=None, predefinedAcl=None, predefinedDefaultObjectAcl=None, projection=None, userProject=None)</code>
461 <pre>Creates a new bucket.
462
463 Args:
464 project: string, A valid API project identifier. (required)
465 body: object, The request body.
466 The object takes the form of:
467
468 { # A bucket.
469 &quot;acl&quot;: [ # Access controls on the bucket.
470 { # An access-control entry.
471 &quot;bucket&quot;: &quot;A String&quot;, # The name of the bucket.
472 &quot;domain&quot;: &quot;A String&quot;, # The domain associated with the entity, if any.
473 &quot;email&quot;: &quot;A String&quot;, # The email address associated with the entity, if any.
474 &quot;entity&quot;: &quot;A String&quot;, # The entity holding the permission, in one of the following forms:
475 # - user-userId
476 # - user-email
477 # - group-groupId
478 # - group-email
479 # - domain-domain
480 # - project-team-projectId
481 # - allUsers
482 # - allAuthenticatedUsers Examples:
483 # - The user [email protected] would be [email protected].
484 # - The group [email protected] would be [email protected].
485 # - To refer to all members of the Google Apps for Business domain example.com, the entity would be domain-example.com.
486 &quot;entityId&quot;: &quot;A String&quot;, # The ID for the entity, if any.
487 &quot;etag&quot;: &quot;A String&quot;, # HTTP 1.1 Entity tag for the access-control entry.
488 &quot;id&quot;: &quot;A String&quot;, # The ID of the access-control entry.
489 &quot;kind&quot;: &quot;storage#bucketAccessControl&quot;, # The kind of item this is. For bucket access control entries, this is always storage#bucketAccessControl.
490 &quot;projectTeam&quot;: { # The project team associated with the entity, if any.
491 &quot;projectNumber&quot;: &quot;A String&quot;, # The project number.
492 &quot;team&quot;: &quot;A String&quot;, # The team.
493 },
494 &quot;role&quot;: &quot;A String&quot;, # The access permission for the entity.
495 &quot;selfLink&quot;: &quot;A String&quot;, # The link to this access-control entry.
496 },
497 ],
498 &quot;autoclass&quot;: { # The bucket&#x27;s Autoclass configuration.
499 &quot;enabled&quot;: True or False, # Whether or not Autoclass is enabled on this bucket
500 &quot;terminalStorageClass&quot;: &quot;A String&quot;, # The storage class that objects in the bucket eventually transition to if they are not read for a certain length of time. Valid values are NEARLINE and ARCHIVE.
501 &quot;terminalStorageClassUpdateTime&quot;: &quot;A String&quot;, # A date and time in RFC 3339 format representing the time of the most recent update to &quot;terminalStorageClass&quot;.
502 &quot;toggleTime&quot;: &quot;A String&quot;, # A date and time in RFC 3339 format representing the instant at which &quot;enabled&quot; was last toggled.
503 },
504 &quot;billing&quot;: { # The bucket&#x27;s billing configuration.
505 &quot;requesterPays&quot;: True or False, # When set to true, Requester Pays is enabled for this bucket.
506 },
507 &quot;cors&quot;: [ # The bucket&#x27;s Cross-Origin Resource Sharing (CORS) configuration.
508 {
509 &quot;maxAgeSeconds&quot;: 42, # The value, in seconds, to return in the Access-Control-Max-Age header used in preflight responses.
510 &quot;method&quot;: [ # The list of HTTP methods on which to include CORS response headers, (GET, OPTIONS, POST, etc) Note: &quot;*&quot; is permitted in the list of methods, and means &quot;any method&quot;.
511 &quot;A String&quot;,
512 ],
513 &quot;origin&quot;: [ # The list of Origins eligible to receive CORS response headers. Note: &quot;*&quot; is permitted in the list of origins, and means &quot;any Origin&quot;.
514 &quot;A String&quot;,
515 ],
516 &quot;responseHeader&quot;: [ # The list of HTTP headers other than the simple response headers to give permission for the user-agent to share across domains.
517 &quot;A String&quot;,
518 ],
519 },
520 ],
521 &quot;customPlacementConfig&quot;: { # The bucket&#x27;s custom placement configuration for Custom Dual Regions.
522 &quot;dataLocations&quot;: [ # The list of regional locations in which data is placed.
523 &quot;A String&quot;,
524 ],
525 },
526 &quot;defaultEventBasedHold&quot;: True or False, # The default value for event-based hold on newly created objects in this bucket. Event-based hold is a way to retain objects indefinitely until an event occurs, signified by the hold&#x27;s release. After being released, such objects will be subject to bucket-level retention (if any). One sample use case of this flag is for banks to hold loan documents for at least 3 years after loan is paid in full. Here, bucket-level retention is 3 years and the event is loan being paid in full. In this example, these objects will be held intact for any number of years until the event has occurred (event-based hold on the object is released) and then 3 more years after that. That means retention duration of the objects begins from the moment event-based hold transitioned from true to false. Objects under event-based hold cannot be deleted, overwritten or archived until the hold is removed.
527 &quot;defaultObjectAcl&quot;: [ # Default access controls to apply to new objects when no ACL is provided.
528 { # An access-control entry.
529 &quot;bucket&quot;: &quot;A String&quot;, # The name of the bucket.
530 &quot;domain&quot;: &quot;A String&quot;, # The domain associated with the entity, if any.
531 &quot;email&quot;: &quot;A String&quot;, # The email address associated with the entity, if any.
532 &quot;entity&quot;: &quot;A String&quot;, # The entity holding the permission, in one of the following forms:
533 # - user-userId
534 # - user-email
535 # - group-groupId
536 # - group-email
537 # - domain-domain
538 # - project-team-projectId
539 # - allUsers
540 # - allAuthenticatedUsers Examples:
541 # - The user [email protected] would be [email protected].
542 # - The group [email protected] would be [email protected].
543 # - To refer to all members of the Google Apps for Business domain example.com, the entity would be domain-example.com.
544 &quot;entityId&quot;: &quot;A String&quot;, # The ID for the entity, if any.
545 &quot;etag&quot;: &quot;A String&quot;, # HTTP 1.1 Entity tag for the access-control entry.
546 &quot;generation&quot;: &quot;A String&quot;, # The content generation of the object, if applied to an object.
547 &quot;id&quot;: &quot;A String&quot;, # The ID of the access-control entry.
548 &quot;kind&quot;: &quot;storage#objectAccessControl&quot;, # The kind of item this is. For object access control entries, this is always storage#objectAccessControl.
549 &quot;object&quot;: &quot;A String&quot;, # The name of the object, if applied to an object.
550 &quot;projectTeam&quot;: { # The project team associated with the entity, if any.
551 &quot;projectNumber&quot;: &quot;A String&quot;, # The project number.
552 &quot;team&quot;: &quot;A String&quot;, # The team.
553 },
554 &quot;role&quot;: &quot;A String&quot;, # The access permission for the entity.
555 &quot;selfLink&quot;: &quot;A String&quot;, # The link to this access-control entry.
556 },
557 ],
558 &quot;encryption&quot;: { # Encryption configuration for a bucket.
559 &quot;customerManagedEncryptionEnforcementConfig&quot;: { # If set, the new objects created in this bucket must comply with this enforcement config. Changing this has no effect on existing objects; it applies to new objects only. If omitted, the new objects are allowed to be encrypted with Customer Managed Encryption type by default.
560 &quot;effectiveTime&quot;: &quot;A String&quot;, # Server-determined value that indicates the time from which configuration was enforced and effective. This value is in RFC 3339 format.
561 &quot;restrictionMode&quot;: &quot;A String&quot;, # Restriction mode for Customer-Managed Encryption Keys. Defaults to NotRestricted.
562 },
563 &quot;customerSuppliedEncryptionEnforcementConfig&quot;: { # If set, the new objects created in this bucket must comply with this enforcement config. Changing this has no effect on existing objects; it applies to new objects only. If omitted, the new objects are allowed to be encrypted with Customer Supplied Encryption type by default.
564 &quot;effectiveTime&quot;: &quot;A String&quot;, # Server-determined value that indicates the time from which configuration was enforced and effective. This value is in RFC 3339 format.
565 &quot;restrictionMode&quot;: &quot;A String&quot;, # Restriction mode for Customer-Supplied Encryption Keys. Defaults to NotRestricted.
566 },
567 &quot;defaultKmsKeyName&quot;: &quot;A String&quot;, # A Cloud KMS key that will be used to encrypt objects inserted into this bucket, if no encryption method is specified.
568 &quot;googleManagedEncryptionEnforcementConfig&quot;: { # If set, the new objects created in this bucket must comply with this enforcement config. Changing this has no effect on existing objects; it applies to new objects only. If omitted, the new objects are allowed to be encrypted with Google Managed Encryption type by default.
569 &quot;effectiveTime&quot;: &quot;A String&quot;, # Server-determined value that indicates the time from which configuration was enforced and effective. This value is in RFC 3339 format.
570 &quot;restrictionMode&quot;: &quot;A String&quot;, # Restriction mode for Google-Managed Encryption Keys. Defaults to NotRestricted.
571 },
572 },
573 &quot;etag&quot;: &quot;A String&quot;, # HTTP 1.1 Entity tag for the bucket.
574 &quot;generation&quot;: &quot;A String&quot;, # The generation of this bucket.
575 &quot;hardDeleteTime&quot;: &quot;A String&quot;, # The hard delete time of the bucket in RFC 3339 format.
576 &quot;hierarchicalNamespace&quot;: { # The bucket&#x27;s hierarchical namespace configuration.
577 &quot;enabled&quot;: True or False, # When set to true, hierarchical namespace is enabled for this bucket.
578 },
579 &quot;iamConfiguration&quot;: { # The bucket&#x27;s IAM configuration.
580 &quot;bucketPolicyOnly&quot;: { # The bucket&#x27;s uniform bucket-level access configuration. The feature was formerly known as Bucket Policy Only. For backward compatibility, this field will be populated with identical information as the uniformBucketLevelAccess field. We recommend using the uniformBucketLevelAccess field to enable and disable the feature.
581 &quot;enabled&quot;: True or False, # If set, access is controlled only by bucket-level or above IAM policies.
582 &quot;lockedTime&quot;: &quot;A String&quot;, # The deadline for changing iamConfiguration.bucketPolicyOnly.enabled from true to false in RFC 3339 format. iamConfiguration.bucketPolicyOnly.enabled may be changed from true to false until the locked time, after which the field is immutable.
583 },
584 &quot;publicAccessPrevention&quot;: &quot;A String&quot;, # The bucket&#x27;s Public Access Prevention configuration. Currently, &#x27;inherited&#x27; and &#x27;enforced&#x27; are supported.
585 &quot;uniformBucketLevelAccess&quot;: { # The bucket&#x27;s uniform bucket-level access configuration.
586 &quot;enabled&quot;: True or False, # If set, access is controlled only by bucket-level or above IAM policies.
587 &quot;lockedTime&quot;: &quot;A String&quot;, # The deadline for changing iamConfiguration.uniformBucketLevelAccess.enabled from true to false in RFC 3339 format. iamConfiguration.uniformBucketLevelAccess.enabled may be changed from true to false until the locked time, after which the field is immutable.
588 },
589 },
590 &quot;id&quot;: &quot;A String&quot;, # The ID of the bucket. For buckets, the id and name properties are the same.
591 &quot;ipFilter&quot;: { # The bucket&#x27;s IP filter configuration. Specifies the network sources that are allowed to access the operations on the bucket, as well as its underlying objects. Only enforced when the mode is set to &#x27;Enabled&#x27;.
592 &quot;allowAllServiceAgentAccess&quot;: True or False, # Whether to allow all service agents to access the bucket regardless of the IP filter configuration.
593 &quot;allowCrossOrgVpcs&quot;: True or False, # Whether to allow cross-org VPCs in the bucket&#x27;s IP filter configuration.
594 &quot;mode&quot;: &quot;A String&quot;, # The mode of the IP filter. Valid values are &#x27;Enabled&#x27; and &#x27;Disabled&#x27;.
595 &quot;publicNetworkSource&quot;: { # The public network source of the bucket&#x27;s IP filter.
596 &quot;allowedIpCidrRanges&quot;: [ # The list of public IPv4, IPv6 cidr ranges that are allowed to access the bucket.
597 &quot;A String&quot;,
598 ],
599 },
600 &quot;vpcNetworkSources&quot;: [ # The list of [VPC network](https://cloud.google.com/vpc/docs/vpc) sources of the bucket&#x27;s IP filter.
601 {
602 &quot;allowedIpCidrRanges&quot;: [ # The list of IPv4, IPv6 cidr ranges subnetworks that are allowed to access the bucket.
603 &quot;A String&quot;,
604 ],
605 &quot;network&quot;: &quot;A String&quot;, # Name of the network. Format: projects/{PROJECT_ID}/global/networks/{NETWORK_NAME}
606 },
607 ],
608 },
609 &quot;kind&quot;: &quot;storage#bucket&quot;, # The kind of item this is. For buckets, this is always storage#bucket.
610 &quot;labels&quot;: { # User-provided labels, in key/value pairs.
611 &quot;a_key&quot;: &quot;A String&quot;, # An individual label entry.
612 },
613 &quot;lifecycle&quot;: { # The bucket&#x27;s lifecycle configuration. See [Lifecycle Management](https://cloud.google.com/storage/docs/lifecycle) for more information.
614 &quot;rule&quot;: [ # A lifecycle management rule, which is made of an action to take and the condition(s) under which the action will be taken.
615 {
616 &quot;action&quot;: { # The action to take.
617 &quot;storageClass&quot;: &quot;A String&quot;, # Target storage class. Required iff the type of the action is SetStorageClass.
618 &quot;type&quot;: &quot;A String&quot;, # Type of the action. Currently, only Delete, SetStorageClass, and AbortIncompleteMultipartUpload are supported.
619 },
620 &quot;condition&quot;: { # The condition(s) under which the action will be taken.
621 &quot;age&quot;: 42, # Age of an object (in days). This condition is satisfied when an object reaches the specified age.
622 &quot;createdBefore&quot;: &quot;A String&quot;, # A date in RFC 3339 format with only the date part (for instance, &quot;2013-01-15&quot;). This condition is satisfied when an object is created before midnight of the specified date in UTC.
623 &quot;customTimeBefore&quot;: &quot;A String&quot;, # A date in RFC 3339 format with only the date part (for instance, &quot;2013-01-15&quot;). This condition is satisfied when the custom time on an object is before this date in UTC.
624 &quot;daysSinceCustomTime&quot;: 42, # Number of days elapsed since the user-specified timestamp set on an object. The condition is satisfied if the days elapsed is at least this number. If no custom timestamp is specified on an object, the condition does not apply.
625 &quot;daysSinceNoncurrentTime&quot;: 42, # Number of days elapsed since the noncurrent timestamp of an object. The condition is satisfied if the days elapsed is at least this number. This condition is relevant only for versioned objects. The value of the field must be a nonnegative integer. If it&#x27;s zero, the object version will become eligible for Lifecycle action as soon as it becomes noncurrent.
626 &quot;isLive&quot;: True or False, # Relevant only for versioned objects. If the value is true, this condition matches live objects; if the value is false, it matches archived objects.
627 &quot;matchesPattern&quot;: &quot;A String&quot;, # A regular expression that satisfies the RE2 syntax. This condition is satisfied when the name of the object matches the RE2 pattern. Note: This feature is currently in the &quot;Early Access&quot; launch stage and is only available to a whitelisted set of users; that means that this feature may be changed in backward-incompatible ways and that it is not guaranteed to be released.
628 &quot;matchesPrefix&quot;: [ # List of object name prefixes. This condition will be satisfied when at least one of the prefixes exactly matches the beginning of the object name.
629 &quot;A String&quot;,
630 ],
631 &quot;matchesStorageClass&quot;: [ # Objects having any of the storage classes specified by this condition will be matched. Values include MULTI_REGIONAL, REGIONAL, NEARLINE, COLDLINE, ARCHIVE, STANDARD, and DURABLE_REDUCED_AVAILABILITY.
632 &quot;A String&quot;,
633 ],
634 &quot;matchesSuffix&quot;: [ # List of object name suffixes. This condition will be satisfied when at least one of the suffixes exactly matches the end of the object name.
635 &quot;A String&quot;,
636 ],
637 &quot;noncurrentTimeBefore&quot;: &quot;A String&quot;, # A date in RFC 3339 format with only the date part (for instance, &quot;2013-01-15&quot;). This condition is satisfied when the noncurrent time on an object is before this date in UTC. This condition is relevant only for versioned objects.
638 &quot;numNewerVersions&quot;: 42, # Relevant only for versioned objects. If the value is N, this condition is satisfied when there are at least N versions (including the live version) newer than this version of the object.
639 &quot;sizeAboveBytes&quot;: &quot;A String&quot;, # Objects having a size greater than this value in bytes will be matched.
640 &quot;sizeBelowBytes&quot;: &quot;A String&quot;, # Objects having a size less than this value in bytes will be matched.
641 },
642 },
643 ],
644 },
645 &quot;location&quot;: &quot;A String&quot;, # The location of the bucket. Object data for objects in the bucket resides in physical storage within this region. Defaults to US. See the [Developer&#x27;s Guide](https://cloud.google.com/storage/docs/locations) for the authoritative list.
646 &quot;locationType&quot;: &quot;A String&quot;, # The type of the bucket location.
647 &quot;logging&quot;: { # The bucket&#x27;s logging configuration, which defines the destination bucket and optional name prefix for the current bucket&#x27;s logs.
648 &quot;logBucket&quot;: &quot;A String&quot;, # The destination bucket where the current bucket&#x27;s logs should be placed.
649 &quot;logObjectPrefix&quot;: &quot;A String&quot;, # A prefix for log object names.
650 },
651 &quot;metageneration&quot;: &quot;A String&quot;, # The metadata generation of this bucket.
652 &quot;name&quot;: &quot;A String&quot;, # The name of the bucket.
653 &quot;objectRetention&quot;: { # The bucket&#x27;s object retention config.
654 &quot;mode&quot;: &quot;A String&quot;, # The bucket&#x27;s object retention mode. Can be Enabled.
655 },
656 &quot;owner&quot;: { # The owner of the bucket. This is always the project team&#x27;s owner group.
657 &quot;entity&quot;: &quot;A String&quot;, # The entity, in the form project-owner-projectId.
658 &quot;entityId&quot;: &quot;A String&quot;, # The ID for the entity.
659 },
660 &quot;projectNumber&quot;: &quot;A String&quot;, # The project number of the project the bucket belongs to.
661 &quot;retentionPolicy&quot;: { # The bucket&#x27;s retention policy. The retention policy enforces a minimum retention time for all objects contained in the bucket, based on their creation time. Any attempt to overwrite or delete objects younger than the retention period will result in a PERMISSION_DENIED error. An unlocked retention policy can be modified or removed from the bucket via a storage.buckets.update operation. A locked retention policy cannot be removed or shortened in duration for the lifetime of the bucket. Attempting to remove or decrease period of a locked retention policy will result in a PERMISSION_DENIED error.
662 &quot;effectiveTime&quot;: &quot;A String&quot;, # Server-determined value that indicates the time from which policy was enforced and effective. This value is in RFC 3339 format.
663 &quot;isLocked&quot;: True or False, # Once locked, an object retention policy cannot be modified.
664 &quot;retentionPeriod&quot;: &quot;A String&quot;, # The duration in seconds that objects need to be retained. Retention duration must be greater than zero and less than 100 years. Note that enforcement of retention periods less than a day is not guaranteed. Such periods should only be used for testing purposes.
665 },
666 &quot;rpo&quot;: &quot;A String&quot;, # The Recovery Point Objective (RPO) of this bucket. Set to ASYNC_TURBO to turn on Turbo Replication on a bucket.
667 &quot;satisfiesPZI&quot;: True or False, # Reserved for future use.
668 &quot;satisfiesPZS&quot;: True or False, # Reserved for future use.
669 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this bucket.
670 &quot;softDeletePolicy&quot;: { # The bucket&#x27;s soft delete policy, which defines the period of time that soft-deleted objects will be retained, and cannot be permanently deleted.
671 &quot;effectiveTime&quot;: &quot;A String&quot;, # Server-determined value that indicates the time from which the policy, or one with a greater retention, was effective. This value is in RFC 3339 format.
672 &quot;retentionDurationSeconds&quot;: &quot;A String&quot;, # The duration in seconds that soft-deleted objects in the bucket will be retained and cannot be permanently deleted.
673 },
674 &quot;softDeleteTime&quot;: &quot;A String&quot;, # The soft delete time of the bucket in RFC 3339 format.
675 &quot;storageClass&quot;: &quot;A String&quot;, # The bucket&#x27;s default storage class, used whenever no storageClass is specified for a newly-created object. This defines how objects in the bucket are stored and determines the SLA and the cost of storage. Values include MULTI_REGIONAL, REGIONAL, STANDARD, NEARLINE, COLDLINE, ARCHIVE, and DURABLE_REDUCED_AVAILABILITY. If this value is not specified when the bucket is created, it will default to STANDARD. For more information, see [Storage Classes](https://cloud.google.com/storage/docs/storage-classes).
676 &quot;timeCreated&quot;: &quot;A String&quot;, # The creation time of the bucket in RFC 3339 format.
677 &quot;updated&quot;: &quot;A String&quot;, # The modification time of the bucket in RFC 3339 format.
678 &quot;versioning&quot;: { # The bucket&#x27;s versioning configuration.
679 &quot;enabled&quot;: True or False, # While set to true, versioning is fully enabled for this bucket.
680 },
681 &quot;website&quot;: { # The bucket&#x27;s website configuration, controlling how the service behaves when accessing bucket contents as a web site. See the [Static Website Examples](https://cloud.google.com/storage/docs/static-website) for more information.
682 &quot;mainPageSuffix&quot;: &quot;A String&quot;, # If the requested object path is missing, the service will ensure the path has a trailing &#x27;/&#x27;, append this suffix, and attempt to retrieve the resulting object. This allows the creation of index.html objects to represent directory pages.
683 &quot;notFoundPage&quot;: &quot;A String&quot;, # If the requested object path is missing, and any mainPageSuffix object is missing, if applicable, the service will return the named object from this bucket as the content for a 404 Not Found result.
684 },
685 }
686
687 enableObjectRetention: boolean, When set to true, object retention is enabled for this bucket.
688 predefinedAcl: string, Apply a predefined set of access controls to this bucket.
689 Allowed values
690 authenticatedRead - Project team owners get OWNER access, and allAuthenticatedUsers get READER access.
691 private - Project team owners get OWNER access.
692 projectPrivate - Project team members get access according to their roles.
693 publicRead - Project team owners get OWNER access, and allUsers get READER access.
694 publicReadWrite - Project team owners get OWNER access, and allUsers get WRITER access.
695 predefinedDefaultObjectAcl: string, Apply a predefined set of default object access controls to this bucket.
696 Allowed values
697 authenticatedRead - Object owner gets OWNER access, and allAuthenticatedUsers get READER access.
698 bucketOwnerFullControl - Object owner gets OWNER access, and project team owners get OWNER access.
699 bucketOwnerRead - Object owner gets OWNER access, and project team owners get READER access.
700 private - Object owner gets OWNER access.
701 projectPrivate - Object owner gets OWNER access, and project team members get access according to their roles.
702 publicRead - Object owner gets OWNER access, and allUsers get READER access.
703 projection: string, Set of properties to return. Defaults to noAcl, unless the bucket resource specifies acl or defaultObjectAcl properties, when it defaults to full.
704 Allowed values
705 full - Include all properties.
706 noAcl - Omit owner, acl and defaultObjectAcl properties.
707 userProject: string, The project to be billed for this request.
708
709 Returns:
710 An object of the form:
711
712 { # A bucket.
713 &quot;acl&quot;: [ # Access controls on the bucket.
714 { # An access-control entry.
715 &quot;bucket&quot;: &quot;A String&quot;, # The name of the bucket.
716 &quot;domain&quot;: &quot;A String&quot;, # The domain associated with the entity, if any.
717 &quot;email&quot;: &quot;A String&quot;, # The email address associated with the entity, if any.
718 &quot;entity&quot;: &quot;A String&quot;, # The entity holding the permission, in one of the following forms:
719 # - user-userId
720 # - user-email
721 # - group-groupId
722 # - group-email
723 # - domain-domain
724 # - project-team-projectId
725 # - allUsers
726 # - allAuthenticatedUsers Examples:
727 # - The user [email protected] would be [email protected].
728 # - The group [email protected] would be [email protected].
729 # - To refer to all members of the Google Apps for Business domain example.com, the entity would be domain-example.com.
730 &quot;entityId&quot;: &quot;A String&quot;, # The ID for the entity, if any.
731 &quot;etag&quot;: &quot;A String&quot;, # HTTP 1.1 Entity tag for the access-control entry.
732 &quot;id&quot;: &quot;A String&quot;, # The ID of the access-control entry.
733 &quot;kind&quot;: &quot;storage#bucketAccessControl&quot;, # The kind of item this is. For bucket access control entries, this is always storage#bucketAccessControl.
734 &quot;projectTeam&quot;: { # The project team associated with the entity, if any.
735 &quot;projectNumber&quot;: &quot;A String&quot;, # The project number.
736 &quot;team&quot;: &quot;A String&quot;, # The team.
737 },
738 &quot;role&quot;: &quot;A String&quot;, # The access permission for the entity.
739 &quot;selfLink&quot;: &quot;A String&quot;, # The link to this access-control entry.
740 },
741 ],
742 &quot;autoclass&quot;: { # The bucket&#x27;s Autoclass configuration.
743 &quot;enabled&quot;: True or False, # Whether or not Autoclass is enabled on this bucket
744 &quot;terminalStorageClass&quot;: &quot;A String&quot;, # The storage class that objects in the bucket eventually transition to if they are not read for a certain length of time. Valid values are NEARLINE and ARCHIVE.
745 &quot;terminalStorageClassUpdateTime&quot;: &quot;A String&quot;, # A date and time in RFC 3339 format representing the time of the most recent update to &quot;terminalStorageClass&quot;.
746 &quot;toggleTime&quot;: &quot;A String&quot;, # A date and time in RFC 3339 format representing the instant at which &quot;enabled&quot; was last toggled.
747 },
748 &quot;billing&quot;: { # The bucket&#x27;s billing configuration.
749 &quot;requesterPays&quot;: True or False, # When set to true, Requester Pays is enabled for this bucket.
750 },
751 &quot;cors&quot;: [ # The bucket&#x27;s Cross-Origin Resource Sharing (CORS) configuration.
752 {
753 &quot;maxAgeSeconds&quot;: 42, # The value, in seconds, to return in the Access-Control-Max-Age header used in preflight responses.
754 &quot;method&quot;: [ # The list of HTTP methods on which to include CORS response headers, (GET, OPTIONS, POST, etc) Note: &quot;*&quot; is permitted in the list of methods, and means &quot;any method&quot;.
755 &quot;A String&quot;,
756 ],
757 &quot;origin&quot;: [ # The list of Origins eligible to receive CORS response headers. Note: &quot;*&quot; is permitted in the list of origins, and means &quot;any Origin&quot;.
758 &quot;A String&quot;,
759 ],
760 &quot;responseHeader&quot;: [ # The list of HTTP headers other than the simple response headers to give permission for the user-agent to share across domains.
761 &quot;A String&quot;,
762 ],
763 },
764 ],
765 &quot;customPlacementConfig&quot;: { # The bucket&#x27;s custom placement configuration for Custom Dual Regions.
766 &quot;dataLocations&quot;: [ # The list of regional locations in which data is placed.
767 &quot;A String&quot;,
768 ],
769 },
770 &quot;defaultEventBasedHold&quot;: True or False, # The default value for event-based hold on newly created objects in this bucket. Event-based hold is a way to retain objects indefinitely until an event occurs, signified by the hold&#x27;s release. After being released, such objects will be subject to bucket-level retention (if any). One sample use case of this flag is for banks to hold loan documents for at least 3 years after loan is paid in full. Here, bucket-level retention is 3 years and the event is loan being paid in full. In this example, these objects will be held intact for any number of years until the event has occurred (event-based hold on the object is released) and then 3 more years after that. That means retention duration of the objects begins from the moment event-based hold transitioned from true to false. Objects under event-based hold cannot be deleted, overwritten or archived until the hold is removed.
771 &quot;defaultObjectAcl&quot;: [ # Default access controls to apply to new objects when no ACL is provided.
772 { # An access-control entry.
773 &quot;bucket&quot;: &quot;A String&quot;, # The name of the bucket.
774 &quot;domain&quot;: &quot;A String&quot;, # The domain associated with the entity, if any.
775 &quot;email&quot;: &quot;A String&quot;, # The email address associated with the entity, if any.
776 &quot;entity&quot;: &quot;A String&quot;, # The entity holding the permission, in one of the following forms:
777 # - user-userId
778 # - user-email
779 # - group-groupId
780 # - group-email
781 # - domain-domain
782 # - project-team-projectId
783 # - allUsers
784 # - allAuthenticatedUsers Examples:
785 # - The user [email protected] would be [email protected].
786 # - The group [email protected] would be [email protected].
787 # - To refer to all members of the Google Apps for Business domain example.com, the entity would be domain-example.com.
788 &quot;entityId&quot;: &quot;A String&quot;, # The ID for the entity, if any.
789 &quot;etag&quot;: &quot;A String&quot;, # HTTP 1.1 Entity tag for the access-control entry.
790 &quot;generation&quot;: &quot;A String&quot;, # The content generation of the object, if applied to an object.
791 &quot;id&quot;: &quot;A String&quot;, # The ID of the access-control entry.
792 &quot;kind&quot;: &quot;storage#objectAccessControl&quot;, # The kind of item this is. For object access control entries, this is always storage#objectAccessControl.
793 &quot;object&quot;: &quot;A String&quot;, # The name of the object, if applied to an object.
794 &quot;projectTeam&quot;: { # The project team associated with the entity, if any.
795 &quot;projectNumber&quot;: &quot;A String&quot;, # The project number.
796 &quot;team&quot;: &quot;A String&quot;, # The team.
797 },
798 &quot;role&quot;: &quot;A String&quot;, # The access permission for the entity.
799 &quot;selfLink&quot;: &quot;A String&quot;, # The link to this access-control entry.
800 },
801 ],
802 &quot;encryption&quot;: { # Encryption configuration for a bucket.
803 &quot;customerManagedEncryptionEnforcementConfig&quot;: { # If set, the new objects created in this bucket must comply with this enforcement config. Changing this has no effect on existing objects; it applies to new objects only. If omitted, the new objects are allowed to be encrypted with Customer Managed Encryption type by default.
804 &quot;effectiveTime&quot;: &quot;A String&quot;, # Server-determined value that indicates the time from which configuration was enforced and effective. This value is in RFC 3339 format.
805 &quot;restrictionMode&quot;: &quot;A String&quot;, # Restriction mode for Customer-Managed Encryption Keys. Defaults to NotRestricted.
806 },
807 &quot;customerSuppliedEncryptionEnforcementConfig&quot;: { # If set, the new objects created in this bucket must comply with this enforcement config. Changing this has no effect on existing objects; it applies to new objects only. If omitted, the new objects are allowed to be encrypted with Customer Supplied Encryption type by default.
808 &quot;effectiveTime&quot;: &quot;A String&quot;, # Server-determined value that indicates the time from which configuration was enforced and effective. This value is in RFC 3339 format.
809 &quot;restrictionMode&quot;: &quot;A String&quot;, # Restriction mode for Customer-Supplied Encryption Keys. Defaults to NotRestricted.
810 },
811 &quot;defaultKmsKeyName&quot;: &quot;A String&quot;, # A Cloud KMS key that will be used to encrypt objects inserted into this bucket, if no encryption method is specified.
812 &quot;googleManagedEncryptionEnforcementConfig&quot;: { # If set, the new objects created in this bucket must comply with this enforcement config. Changing this has no effect on existing objects; it applies to new objects only. If omitted, the new objects are allowed to be encrypted with Google Managed Encryption type by default.
813 &quot;effectiveTime&quot;: &quot;A String&quot;, # Server-determined value that indicates the time from which configuration was enforced and effective. This value is in RFC 3339 format.
814 &quot;restrictionMode&quot;: &quot;A String&quot;, # Restriction mode for Google-Managed Encryption Keys. Defaults to NotRestricted.
815 },
816 },
817 &quot;etag&quot;: &quot;A String&quot;, # HTTP 1.1 Entity tag for the bucket.
818 &quot;generation&quot;: &quot;A String&quot;, # The generation of this bucket.
819 &quot;hardDeleteTime&quot;: &quot;A String&quot;, # The hard delete time of the bucket in RFC 3339 format.
820 &quot;hierarchicalNamespace&quot;: { # The bucket&#x27;s hierarchical namespace configuration.
821 &quot;enabled&quot;: True or False, # When set to true, hierarchical namespace is enabled for this bucket.
822 },
823 &quot;iamConfiguration&quot;: { # The bucket&#x27;s IAM configuration.
824 &quot;bucketPolicyOnly&quot;: { # The bucket&#x27;s uniform bucket-level access configuration. The feature was formerly known as Bucket Policy Only. For backward compatibility, this field will be populated with identical information as the uniformBucketLevelAccess field. We recommend using the uniformBucketLevelAccess field to enable and disable the feature.
825 &quot;enabled&quot;: True or False, # If set, access is controlled only by bucket-level or above IAM policies.
826 &quot;lockedTime&quot;: &quot;A String&quot;, # The deadline for changing iamConfiguration.bucketPolicyOnly.enabled from true to false in RFC 3339 format. iamConfiguration.bucketPolicyOnly.enabled may be changed from true to false until the locked time, after which the field is immutable.
827 },
828 &quot;publicAccessPrevention&quot;: &quot;A String&quot;, # The bucket&#x27;s Public Access Prevention configuration. Currently, &#x27;inherited&#x27; and &#x27;enforced&#x27; are supported.
829 &quot;uniformBucketLevelAccess&quot;: { # The bucket&#x27;s uniform bucket-level access configuration.
830 &quot;enabled&quot;: True or False, # If set, access is controlled only by bucket-level or above IAM policies.
831 &quot;lockedTime&quot;: &quot;A String&quot;, # The deadline for changing iamConfiguration.uniformBucketLevelAccess.enabled from true to false in RFC 3339 format. iamConfiguration.uniformBucketLevelAccess.enabled may be changed from true to false until the locked time, after which the field is immutable.
832 },
833 },
834 &quot;id&quot;: &quot;A String&quot;, # The ID of the bucket. For buckets, the id and name properties are the same.
835 &quot;ipFilter&quot;: { # The bucket&#x27;s IP filter configuration. Specifies the network sources that are allowed to access the operations on the bucket, as well as its underlying objects. Only enforced when the mode is set to &#x27;Enabled&#x27;.
836 &quot;allowAllServiceAgentAccess&quot;: True or False, # Whether to allow all service agents to access the bucket regardless of the IP filter configuration.
837 &quot;allowCrossOrgVpcs&quot;: True or False, # Whether to allow cross-org VPCs in the bucket&#x27;s IP filter configuration.
838 &quot;mode&quot;: &quot;A String&quot;, # The mode of the IP filter. Valid values are &#x27;Enabled&#x27; and &#x27;Disabled&#x27;.
839 &quot;publicNetworkSource&quot;: { # The public network source of the bucket&#x27;s IP filter.
840 &quot;allowedIpCidrRanges&quot;: [ # The list of public IPv4, IPv6 cidr ranges that are allowed to access the bucket.
841 &quot;A String&quot;,
842 ],
843 },
844 &quot;vpcNetworkSources&quot;: [ # The list of [VPC network](https://cloud.google.com/vpc/docs/vpc) sources of the bucket&#x27;s IP filter.
845 {
846 &quot;allowedIpCidrRanges&quot;: [ # The list of IPv4, IPv6 cidr ranges subnetworks that are allowed to access the bucket.
847 &quot;A String&quot;,
848 ],
849 &quot;network&quot;: &quot;A String&quot;, # Name of the network. Format: projects/{PROJECT_ID}/global/networks/{NETWORK_NAME}
850 },
851 ],
852 },
853 &quot;kind&quot;: &quot;storage#bucket&quot;, # The kind of item this is. For buckets, this is always storage#bucket.
854 &quot;labels&quot;: { # User-provided labels, in key/value pairs.
855 &quot;a_key&quot;: &quot;A String&quot;, # An individual label entry.
856 },
857 &quot;lifecycle&quot;: { # The bucket&#x27;s lifecycle configuration. See [Lifecycle Management](https://cloud.google.com/storage/docs/lifecycle) for more information.
858 &quot;rule&quot;: [ # A lifecycle management rule, which is made of an action to take and the condition(s) under which the action will be taken.
859 {
860 &quot;action&quot;: { # The action to take.
861 &quot;storageClass&quot;: &quot;A String&quot;, # Target storage class. Required iff the type of the action is SetStorageClass.
862 &quot;type&quot;: &quot;A String&quot;, # Type of the action. Currently, only Delete, SetStorageClass, and AbortIncompleteMultipartUpload are supported.
863 },
864 &quot;condition&quot;: { # The condition(s) under which the action will be taken.
865 &quot;age&quot;: 42, # Age of an object (in days). This condition is satisfied when an object reaches the specified age.
866 &quot;createdBefore&quot;: &quot;A String&quot;, # A date in RFC 3339 format with only the date part (for instance, &quot;2013-01-15&quot;). This condition is satisfied when an object is created before midnight of the specified date in UTC.
867 &quot;customTimeBefore&quot;: &quot;A String&quot;, # A date in RFC 3339 format with only the date part (for instance, &quot;2013-01-15&quot;). This condition is satisfied when the custom time on an object is before this date in UTC.
868 &quot;daysSinceCustomTime&quot;: 42, # Number of days elapsed since the user-specified timestamp set on an object. The condition is satisfied if the days elapsed is at least this number. If no custom timestamp is specified on an object, the condition does not apply.
869 &quot;daysSinceNoncurrentTime&quot;: 42, # Number of days elapsed since the noncurrent timestamp of an object. The condition is satisfied if the days elapsed is at least this number. This condition is relevant only for versioned objects. The value of the field must be a nonnegative integer. If it&#x27;s zero, the object version will become eligible for Lifecycle action as soon as it becomes noncurrent.
870 &quot;isLive&quot;: True or False, # Relevant only for versioned objects. If the value is true, this condition matches live objects; if the value is false, it matches archived objects.
871 &quot;matchesPattern&quot;: &quot;A String&quot;, # A regular expression that satisfies the RE2 syntax. This condition is satisfied when the name of the object matches the RE2 pattern. Note: This feature is currently in the &quot;Early Access&quot; launch stage and is only available to a whitelisted set of users; that means that this feature may be changed in backward-incompatible ways and that it is not guaranteed to be released.
872 &quot;matchesPrefix&quot;: [ # List of object name prefixes. This condition will be satisfied when at least one of the prefixes exactly matches the beginning of the object name.
873 &quot;A String&quot;,
874 ],
875 &quot;matchesStorageClass&quot;: [ # Objects having any of the storage classes specified by this condition will be matched. Values include MULTI_REGIONAL, REGIONAL, NEARLINE, COLDLINE, ARCHIVE, STANDARD, and DURABLE_REDUCED_AVAILABILITY.
876 &quot;A String&quot;,
877 ],
878 &quot;matchesSuffix&quot;: [ # List of object name suffixes. This condition will be satisfied when at least one of the suffixes exactly matches the end of the object name.
879 &quot;A String&quot;,
880 ],
881 &quot;noncurrentTimeBefore&quot;: &quot;A String&quot;, # A date in RFC 3339 format with only the date part (for instance, &quot;2013-01-15&quot;). This condition is satisfied when the noncurrent time on an object is before this date in UTC. This condition is relevant only for versioned objects.
882 &quot;numNewerVersions&quot;: 42, # Relevant only for versioned objects. If the value is N, this condition is satisfied when there are at least N versions (including the live version) newer than this version of the object.
883 &quot;sizeAboveBytes&quot;: &quot;A String&quot;, # Objects having a size greater than this value in bytes will be matched.
884 &quot;sizeBelowBytes&quot;: &quot;A String&quot;, # Objects having a size less than this value in bytes will be matched.
885 },
886 },
887 ],
888 },
889 &quot;location&quot;: &quot;A String&quot;, # The location of the bucket. Object data for objects in the bucket resides in physical storage within this region. Defaults to US. See the [Developer&#x27;s Guide](https://cloud.google.com/storage/docs/locations) for the authoritative list.
890 &quot;locationType&quot;: &quot;A String&quot;, # The type of the bucket location.
891 &quot;logging&quot;: { # The bucket&#x27;s logging configuration, which defines the destination bucket and optional name prefix for the current bucket&#x27;s logs.
892 &quot;logBucket&quot;: &quot;A String&quot;, # The destination bucket where the current bucket&#x27;s logs should be placed.
893 &quot;logObjectPrefix&quot;: &quot;A String&quot;, # A prefix for log object names.
894 },
895 &quot;metageneration&quot;: &quot;A String&quot;, # The metadata generation of this bucket.
896 &quot;name&quot;: &quot;A String&quot;, # The name of the bucket.
897 &quot;objectRetention&quot;: { # The bucket&#x27;s object retention config.
898 &quot;mode&quot;: &quot;A String&quot;, # The bucket&#x27;s object retention mode. Can be Enabled.
899 },
900 &quot;owner&quot;: { # The owner of the bucket. This is always the project team&#x27;s owner group.
901 &quot;entity&quot;: &quot;A String&quot;, # The entity, in the form project-owner-projectId.
902 &quot;entityId&quot;: &quot;A String&quot;, # The ID for the entity.
903 },
904 &quot;projectNumber&quot;: &quot;A String&quot;, # The project number of the project the bucket belongs to.
905 &quot;retentionPolicy&quot;: { # The bucket&#x27;s retention policy. The retention policy enforces a minimum retention time for all objects contained in the bucket, based on their creation time. Any attempt to overwrite or delete objects younger than the retention period will result in a PERMISSION_DENIED error. An unlocked retention policy can be modified or removed from the bucket via a storage.buckets.update operation. A locked retention policy cannot be removed or shortened in duration for the lifetime of the bucket. Attempting to remove or decrease period of a locked retention policy will result in a PERMISSION_DENIED error.
906 &quot;effectiveTime&quot;: &quot;A String&quot;, # Server-determined value that indicates the time from which policy was enforced and effective. This value is in RFC 3339 format.
907 &quot;isLocked&quot;: True or False, # Once locked, an object retention policy cannot be modified.
908 &quot;retentionPeriod&quot;: &quot;A String&quot;, # The duration in seconds that objects need to be retained. Retention duration must be greater than zero and less than 100 years. Note that enforcement of retention periods less than a day is not guaranteed. Such periods should only be used for testing purposes.
909 },
910 &quot;rpo&quot;: &quot;A String&quot;, # The Recovery Point Objective (RPO) of this bucket. Set to ASYNC_TURBO to turn on Turbo Replication on a bucket.
911 &quot;satisfiesPZI&quot;: True or False, # Reserved for future use.
912 &quot;satisfiesPZS&quot;: True or False, # Reserved for future use.
913 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this bucket.
914 &quot;softDeletePolicy&quot;: { # The bucket&#x27;s soft delete policy, which defines the period of time that soft-deleted objects will be retained, and cannot be permanently deleted.
915 &quot;effectiveTime&quot;: &quot;A String&quot;, # Server-determined value that indicates the time from which the policy, or one with a greater retention, was effective. This value is in RFC 3339 format.
916 &quot;retentionDurationSeconds&quot;: &quot;A String&quot;, # The duration in seconds that soft-deleted objects in the bucket will be retained and cannot be permanently deleted.
917 },
918 &quot;softDeleteTime&quot;: &quot;A String&quot;, # The soft delete time of the bucket in RFC 3339 format.
919 &quot;storageClass&quot;: &quot;A String&quot;, # The bucket&#x27;s default storage class, used whenever no storageClass is specified for a newly-created object. This defines how objects in the bucket are stored and determines the SLA and the cost of storage. Values include MULTI_REGIONAL, REGIONAL, STANDARD, NEARLINE, COLDLINE, ARCHIVE, and DURABLE_REDUCED_AVAILABILITY. If this value is not specified when the bucket is created, it will default to STANDARD. For more information, see [Storage Classes](https://cloud.google.com/storage/docs/storage-classes).
920 &quot;timeCreated&quot;: &quot;A String&quot;, # The creation time of the bucket in RFC 3339 format.
921 &quot;updated&quot;: &quot;A String&quot;, # The modification time of the bucket in RFC 3339 format.
922 &quot;versioning&quot;: { # The bucket&#x27;s versioning configuration.
923 &quot;enabled&quot;: True or False, # While set to true, versioning is fully enabled for this bucket.
924 },
925 &quot;website&quot;: { # The bucket&#x27;s website configuration, controlling how the service behaves when accessing bucket contents as a web site. See the [Static Website Examples](https://cloud.google.com/storage/docs/static-website) for more information.
926 &quot;mainPageSuffix&quot;: &quot;A String&quot;, # If the requested object path is missing, the service will ensure the path has a trailing &#x27;/&#x27;, append this suffix, and attempt to retrieve the resulting object. This allows the creation of index.html objects to represent directory pages.
927 &quot;notFoundPage&quot;: &quot;A String&quot;, # If the requested object path is missing, and any mainPageSuffix object is missing, if applicable, the service will return the named object from this bucket as the content for a 404 Not Found result.
928 },
929 }</pre>
930 </div>
931
932 <div class="method">
933 <code class="details" id="list">list(project, maxResults=None, pageToken=None, prefix=None, projection=None, returnPartialSuccess=None, softDeleted=None, userProject=None)</code>
934 <pre>Retrieves a list of buckets for a given project.
935
936 Args:
937 project: string, A valid API project identifier. (required)
938 maxResults: integer, Maximum number of buckets to return in a single response. The service will use this parameter or 1,000 items, whichever is smaller.
939 pageToken: string, A previously-returned page token representing part of the larger set of results to view.
940 prefix: string, Filter results to buckets whose names begin with this prefix.
941 projection: string, Set of properties to return. Defaults to noAcl.
942 Allowed values
943 full - Include all properties.
944 noAcl - Omit owner, acl and defaultObjectAcl properties.
945 returnPartialSuccess: boolean, If true, return a list of bucket resource names for buckets that are in unreachable locations.
946 softDeleted: boolean, If true, only soft-deleted bucket versions will be returned. The default is false. For more information, see [Soft Delete](https://cloud.google.com/storage/docs/soft-delete).
947 userProject: string, The project to be billed for this request.
948
949 Returns:
950 An object of the form:
951
952 { # A list of buckets.
953 &quot;items&quot;: [ # The list of items.
954 { # A bucket.
955 &quot;acl&quot;: [ # Access controls on the bucket.
956 { # An access-control entry.
957 &quot;bucket&quot;: &quot;A String&quot;, # The name of the bucket.
958 &quot;domain&quot;: &quot;A String&quot;, # The domain associated with the entity, if any.
959 &quot;email&quot;: &quot;A String&quot;, # The email address associated with the entity, if any.
960 &quot;entity&quot;: &quot;A String&quot;, # The entity holding the permission, in one of the following forms:
961 # - user-userId
962 # - user-email
963 # - group-groupId
964 # - group-email
965 # - domain-domain
966 # - project-team-projectId
967 # - allUsers
968 # - allAuthenticatedUsers Examples:
969 # - The user [email protected] would be [email protected].
970 # - The group [email protected] would be [email protected].
971 # - To refer to all members of the Google Apps for Business domain example.com, the entity would be domain-example.com.
972 &quot;entityId&quot;: &quot;A String&quot;, # The ID for the entity, if any.
973 &quot;etag&quot;: &quot;A String&quot;, # HTTP 1.1 Entity tag for the access-control entry.
974 &quot;id&quot;: &quot;A String&quot;, # The ID of the access-control entry.
975 &quot;kind&quot;: &quot;storage#bucketAccessControl&quot;, # The kind of item this is. For bucket access control entries, this is always storage#bucketAccessControl.
976 &quot;projectTeam&quot;: { # The project team associated with the entity, if any.
977 &quot;projectNumber&quot;: &quot;A String&quot;, # The project number.
978 &quot;team&quot;: &quot;A String&quot;, # The team.
979 },
980 &quot;role&quot;: &quot;A String&quot;, # The access permission for the entity.
981 &quot;selfLink&quot;: &quot;A String&quot;, # The link to this access-control entry.
982 },
983 ],
984 &quot;autoclass&quot;: { # The bucket&#x27;s Autoclass configuration.
985 &quot;enabled&quot;: True or False, # Whether or not Autoclass is enabled on this bucket
986 &quot;terminalStorageClass&quot;: &quot;A String&quot;, # The storage class that objects in the bucket eventually transition to if they are not read for a certain length of time. Valid values are NEARLINE and ARCHIVE.
987 &quot;terminalStorageClassUpdateTime&quot;: &quot;A String&quot;, # A date and time in RFC 3339 format representing the time of the most recent update to &quot;terminalStorageClass&quot;.
988 &quot;toggleTime&quot;: &quot;A String&quot;, # A date and time in RFC 3339 format representing the instant at which &quot;enabled&quot; was last toggled.
989 },
990 &quot;billing&quot;: { # The bucket&#x27;s billing configuration.
991 &quot;requesterPays&quot;: True or False, # When set to true, Requester Pays is enabled for this bucket.
992 },
993 &quot;cors&quot;: [ # The bucket&#x27;s Cross-Origin Resource Sharing (CORS) configuration.
994 {
995 &quot;maxAgeSeconds&quot;: 42, # The value, in seconds, to return in the Access-Control-Max-Age header used in preflight responses.
996 &quot;method&quot;: [ # The list of HTTP methods on which to include CORS response headers, (GET, OPTIONS, POST, etc) Note: &quot;*&quot; is permitted in the list of methods, and means &quot;any method&quot;.
997 &quot;A String&quot;,
998 ],
999 &quot;origin&quot;: [ # The list of Origins eligible to receive CORS response headers. Note: &quot;*&quot; is permitted in the list of origins, and means &quot;any Origin&quot;.
1000 &quot;A String&quot;,
1001 ],
1002 &quot;responseHeader&quot;: [ # The list of HTTP headers other than the simple response headers to give permission for the user-agent to share across domains.
1003 &quot;A String&quot;,
1004 ],
1005 },
1006 ],
1007 &quot;customPlacementConfig&quot;: { # The bucket&#x27;s custom placement configuration for Custom Dual Regions.
1008 &quot;dataLocations&quot;: [ # The list of regional locations in which data is placed.
1009 &quot;A String&quot;,
1010 ],
1011 },
1012 &quot;defaultEventBasedHold&quot;: True or False, # The default value for event-based hold on newly created objects in this bucket. Event-based hold is a way to retain objects indefinitely until an event occurs, signified by the hold&#x27;s release. After being released, such objects will be subject to bucket-level retention (if any). One sample use case of this flag is for banks to hold loan documents for at least 3 years after loan is paid in full. Here, bucket-level retention is 3 years and the event is loan being paid in full. In this example, these objects will be held intact for any number of years until the event has occurred (event-based hold on the object is released) and then 3 more years after that. That means retention duration of the objects begins from the moment event-based hold transitioned from true to false. Objects under event-based hold cannot be deleted, overwritten or archived until the hold is removed.
1013 &quot;defaultObjectAcl&quot;: [ # Default access controls to apply to new objects when no ACL is provided.
1014 { # An access-control entry.
1015 &quot;bucket&quot;: &quot;A String&quot;, # The name of the bucket.
1016 &quot;domain&quot;: &quot;A String&quot;, # The domain associated with the entity, if any.
1017 &quot;email&quot;: &quot;A String&quot;, # The email address associated with the entity, if any.
1018 &quot;entity&quot;: &quot;A String&quot;, # The entity holding the permission, in one of the following forms:
1019 # - user-userId
1020 # - user-email
1021 # - group-groupId
1022 # - group-email
1023 # - domain-domain
1024 # - project-team-projectId
1025 # - allUsers
1026 # - allAuthenticatedUsers Examples:
1027 # - The user [email protected] would be [email protected].
1028 # - The group [email protected] would be [email protected].
1029 # - To refer to all members of the Google Apps for Business domain example.com, the entity would be domain-example.com.
1030 &quot;entityId&quot;: &quot;A String&quot;, # The ID for the entity, if any.
1031 &quot;etag&quot;: &quot;A String&quot;, # HTTP 1.1 Entity tag for the access-control entry.
1032 &quot;generation&quot;: &quot;A String&quot;, # The content generation of the object, if applied to an object.
1033 &quot;id&quot;: &quot;A String&quot;, # The ID of the access-control entry.
1034 &quot;kind&quot;: &quot;storage#objectAccessControl&quot;, # The kind of item this is. For object access control entries, this is always storage#objectAccessControl.
1035 &quot;object&quot;: &quot;A String&quot;, # The name of the object, if applied to an object.
1036 &quot;projectTeam&quot;: { # The project team associated with the entity, if any.
1037 &quot;projectNumber&quot;: &quot;A String&quot;, # The project number.
1038 &quot;team&quot;: &quot;A String&quot;, # The team.
1039 },
1040 &quot;role&quot;: &quot;A String&quot;, # The access permission for the entity.
1041 &quot;selfLink&quot;: &quot;A String&quot;, # The link to this access-control entry.
1042 },
1043 ],
1044 &quot;encryption&quot;: { # Encryption configuration for a bucket.
1045 &quot;customerManagedEncryptionEnforcementConfig&quot;: { # If set, the new objects created in this bucket must comply with this enforcement config. Changing this has no effect on existing objects; it applies to new objects only. If omitted, the new objects are allowed to be encrypted with Customer Managed Encryption type by default.
1046 &quot;effectiveTime&quot;: &quot;A String&quot;, # Server-determined value that indicates the time from which configuration was enforced and effective. This value is in RFC 3339 format.
1047 &quot;restrictionMode&quot;: &quot;A String&quot;, # Restriction mode for Customer-Managed Encryption Keys. Defaults to NotRestricted.
1048 },
1049 &quot;customerSuppliedEncryptionEnforcementConfig&quot;: { # If set, the new objects created in this bucket must comply with this enforcement config. Changing this has no effect on existing objects; it applies to new objects only. If omitted, the new objects are allowed to be encrypted with Customer Supplied Encryption type by default.
1050 &quot;effectiveTime&quot;: &quot;A String&quot;, # Server-determined value that indicates the time from which configuration was enforced and effective. This value is in RFC 3339 format.
1051 &quot;restrictionMode&quot;: &quot;A String&quot;, # Restriction mode for Customer-Supplied Encryption Keys. Defaults to NotRestricted.
1052 },
1053 &quot;defaultKmsKeyName&quot;: &quot;A String&quot;, # A Cloud KMS key that will be used to encrypt objects inserted into this bucket, if no encryption method is specified.
1054 &quot;googleManagedEncryptionEnforcementConfig&quot;: { # If set, the new objects created in this bucket must comply with this enforcement config. Changing this has no effect on existing objects; it applies to new objects only. If omitted, the new objects are allowed to be encrypted with Google Managed Encryption type by default.
1055 &quot;effectiveTime&quot;: &quot;A String&quot;, # Server-determined value that indicates the time from which configuration was enforced and effective. This value is in RFC 3339 format.
1056 &quot;restrictionMode&quot;: &quot;A String&quot;, # Restriction mode for Google-Managed Encryption Keys. Defaults to NotRestricted.
1057 },
1058 },
1059 &quot;etag&quot;: &quot;A String&quot;, # HTTP 1.1 Entity tag for the bucket.
1060 &quot;generation&quot;: &quot;A String&quot;, # The generation of this bucket.
1061 &quot;hardDeleteTime&quot;: &quot;A String&quot;, # The hard delete time of the bucket in RFC 3339 format.
1062 &quot;hierarchicalNamespace&quot;: { # The bucket&#x27;s hierarchical namespace configuration.
1063 &quot;enabled&quot;: True or False, # When set to true, hierarchical namespace is enabled for this bucket.
1064 },
1065 &quot;iamConfiguration&quot;: { # The bucket&#x27;s IAM configuration.
1066 &quot;bucketPolicyOnly&quot;: { # The bucket&#x27;s uniform bucket-level access configuration. The feature was formerly known as Bucket Policy Only. For backward compatibility, this field will be populated with identical information as the uniformBucketLevelAccess field. We recommend using the uniformBucketLevelAccess field to enable and disable the feature.
1067 &quot;enabled&quot;: True or False, # If set, access is controlled only by bucket-level or above IAM policies.
1068 &quot;lockedTime&quot;: &quot;A String&quot;, # The deadline for changing iamConfiguration.bucketPolicyOnly.enabled from true to false in RFC 3339 format. iamConfiguration.bucketPolicyOnly.enabled may be changed from true to false until the locked time, after which the field is immutable.
1069 },
1070 &quot;publicAccessPrevention&quot;: &quot;A String&quot;, # The bucket&#x27;s Public Access Prevention configuration. Currently, &#x27;inherited&#x27; and &#x27;enforced&#x27; are supported.
1071 &quot;uniformBucketLevelAccess&quot;: { # The bucket&#x27;s uniform bucket-level access configuration.
1072 &quot;enabled&quot;: True or False, # If set, access is controlled only by bucket-level or above IAM policies.
1073 &quot;lockedTime&quot;: &quot;A String&quot;, # The deadline for changing iamConfiguration.uniformBucketLevelAccess.enabled from true to false in RFC 3339 format. iamConfiguration.uniformBucketLevelAccess.enabled may be changed from true to false until the locked time, after which the field is immutable.
1074 },
1075 },
1076 &quot;id&quot;: &quot;A String&quot;, # The ID of the bucket. For buckets, the id and name properties are the same.
1077 &quot;ipFilter&quot;: { # The bucket&#x27;s IP filter configuration. Specifies the network sources that are allowed to access the operations on the bucket, as well as its underlying objects. Only enforced when the mode is set to &#x27;Enabled&#x27;.
1078 &quot;allowAllServiceAgentAccess&quot;: True or False, # Whether to allow all service agents to access the bucket regardless of the IP filter configuration.
1079 &quot;allowCrossOrgVpcs&quot;: True or False, # Whether to allow cross-org VPCs in the bucket&#x27;s IP filter configuration.
1080 &quot;mode&quot;: &quot;A String&quot;, # The mode of the IP filter. Valid values are &#x27;Enabled&#x27; and &#x27;Disabled&#x27;.
1081 &quot;publicNetworkSource&quot;: { # The public network source of the bucket&#x27;s IP filter.
1082 &quot;allowedIpCidrRanges&quot;: [ # The list of public IPv4, IPv6 cidr ranges that are allowed to access the bucket.
1083 &quot;A String&quot;,
1084 ],
1085 },
1086 &quot;vpcNetworkSources&quot;: [ # The list of [VPC network](https://cloud.google.com/vpc/docs/vpc) sources of the bucket&#x27;s IP filter.
1087 {
1088 &quot;allowedIpCidrRanges&quot;: [ # The list of IPv4, IPv6 cidr ranges subnetworks that are allowed to access the bucket.
1089 &quot;A String&quot;,
1090 ],
1091 &quot;network&quot;: &quot;A String&quot;, # Name of the network. Format: projects/{PROJECT_ID}/global/networks/{NETWORK_NAME}
1092 },
1093 ],
1094 },
1095 &quot;kind&quot;: &quot;storage#bucket&quot;, # The kind of item this is. For buckets, this is always storage#bucket.
1096 &quot;labels&quot;: { # User-provided labels, in key/value pairs.
1097 &quot;a_key&quot;: &quot;A String&quot;, # An individual label entry.
1098 },
1099 &quot;lifecycle&quot;: { # The bucket&#x27;s lifecycle configuration. See [Lifecycle Management](https://cloud.google.com/storage/docs/lifecycle) for more information.
1100 &quot;rule&quot;: [ # A lifecycle management rule, which is made of an action to take and the condition(s) under which the action will be taken.
1101 {
1102 &quot;action&quot;: { # The action to take.
1103 &quot;storageClass&quot;: &quot;A String&quot;, # Target storage class. Required iff the type of the action is SetStorageClass.
1104 &quot;type&quot;: &quot;A String&quot;, # Type of the action. Currently, only Delete, SetStorageClass, and AbortIncompleteMultipartUpload are supported.
1105 },
1106 &quot;condition&quot;: { # The condition(s) under which the action will be taken.
1107 &quot;age&quot;: 42, # Age of an object (in days). This condition is satisfied when an object reaches the specified age.
1108 &quot;createdBefore&quot;: &quot;A String&quot;, # A date in RFC 3339 format with only the date part (for instance, &quot;2013-01-15&quot;). This condition is satisfied when an object is created before midnight of the specified date in UTC.
1109 &quot;customTimeBefore&quot;: &quot;A String&quot;, # A date in RFC 3339 format with only the date part (for instance, &quot;2013-01-15&quot;). This condition is satisfied when the custom time on an object is before this date in UTC.
1110 &quot;daysSinceCustomTime&quot;: 42, # Number of days elapsed since the user-specified timestamp set on an object. The condition is satisfied if the days elapsed is at least this number. If no custom timestamp is specified on an object, the condition does not apply.
1111 &quot;daysSinceNoncurrentTime&quot;: 42, # Number of days elapsed since the noncurrent timestamp of an object. The condition is satisfied if the days elapsed is at least this number. This condition is relevant only for versioned objects. The value of the field must be a nonnegative integer. If it&#x27;s zero, the object version will become eligible for Lifecycle action as soon as it becomes noncurrent.
1112 &quot;isLive&quot;: True or False, # Relevant only for versioned objects. If the value is true, this condition matches live objects; if the value is false, it matches archived objects.
1113 &quot;matchesPattern&quot;: &quot;A String&quot;, # A regular expression that satisfies the RE2 syntax. This condition is satisfied when the name of the object matches the RE2 pattern. Note: This feature is currently in the &quot;Early Access&quot; launch stage and is only available to a whitelisted set of users; that means that this feature may be changed in backward-incompatible ways and that it is not guaranteed to be released.
1114 &quot;matchesPrefix&quot;: [ # List of object name prefixes. This condition will be satisfied when at least one of the prefixes exactly matches the beginning of the object name.
1115 &quot;A String&quot;,
1116 ],
1117 &quot;matchesStorageClass&quot;: [ # Objects having any of the storage classes specified by this condition will be matched. Values include MULTI_REGIONAL, REGIONAL, NEARLINE, COLDLINE, ARCHIVE, STANDARD, and DURABLE_REDUCED_AVAILABILITY.
1118 &quot;A String&quot;,
1119 ],
1120 &quot;matchesSuffix&quot;: [ # List of object name suffixes. This condition will be satisfied when at least one of the suffixes exactly matches the end of the object name.
1121 &quot;A String&quot;,
1122 ],
1123 &quot;noncurrentTimeBefore&quot;: &quot;A String&quot;, # A date in RFC 3339 format with only the date part (for instance, &quot;2013-01-15&quot;). This condition is satisfied when the noncurrent time on an object is before this date in UTC. This condition is relevant only for versioned objects.
1124 &quot;numNewerVersions&quot;: 42, # Relevant only for versioned objects. If the value is N, this condition is satisfied when there are at least N versions (including the live version) newer than this version of the object.
1125 &quot;sizeAboveBytes&quot;: &quot;A String&quot;, # Objects having a size greater than this value in bytes will be matched.
1126 &quot;sizeBelowBytes&quot;: &quot;A String&quot;, # Objects having a size less than this value in bytes will be matched.
1127 },
1128 },
1129 ],
1130 },
1131 &quot;location&quot;: &quot;A String&quot;, # The location of the bucket. Object data for objects in the bucket resides in physical storage within this region. Defaults to US. See the [Developer&#x27;s Guide](https://cloud.google.com/storage/docs/locations) for the authoritative list.
1132 &quot;locationType&quot;: &quot;A String&quot;, # The type of the bucket location.
1133 &quot;logging&quot;: { # The bucket&#x27;s logging configuration, which defines the destination bucket and optional name prefix for the current bucket&#x27;s logs.
1134 &quot;logBucket&quot;: &quot;A String&quot;, # The destination bucket where the current bucket&#x27;s logs should be placed.
1135 &quot;logObjectPrefix&quot;: &quot;A String&quot;, # A prefix for log object names.
1136 },
1137 &quot;metageneration&quot;: &quot;A String&quot;, # The metadata generation of this bucket.
1138 &quot;name&quot;: &quot;A String&quot;, # The name of the bucket.
1139 &quot;objectRetention&quot;: { # The bucket&#x27;s object retention config.
1140 &quot;mode&quot;: &quot;A String&quot;, # The bucket&#x27;s object retention mode. Can be Enabled.
1141 },
1142 &quot;owner&quot;: { # The owner of the bucket. This is always the project team&#x27;s owner group.
1143 &quot;entity&quot;: &quot;A String&quot;, # The entity, in the form project-owner-projectId.
1144 &quot;entityId&quot;: &quot;A String&quot;, # The ID for the entity.
1145 },
1146 &quot;projectNumber&quot;: &quot;A String&quot;, # The project number of the project the bucket belongs to.
1147 &quot;retentionPolicy&quot;: { # The bucket&#x27;s retention policy. The retention policy enforces a minimum retention time for all objects contained in the bucket, based on their creation time. Any attempt to overwrite or delete objects younger than the retention period will result in a PERMISSION_DENIED error. An unlocked retention policy can be modified or removed from the bucket via a storage.buckets.update operation. A locked retention policy cannot be removed or shortened in duration for the lifetime of the bucket. Attempting to remove or decrease period of a locked retention policy will result in a PERMISSION_DENIED error.
1148 &quot;effectiveTime&quot;: &quot;A String&quot;, # Server-determined value that indicates the time from which policy was enforced and effective. This value is in RFC 3339 format.
1149 &quot;isLocked&quot;: True or False, # Once locked, an object retention policy cannot be modified.
1150 &quot;retentionPeriod&quot;: &quot;A String&quot;, # The duration in seconds that objects need to be retained. Retention duration must be greater than zero and less than 100 years. Note that enforcement of retention periods less than a day is not guaranteed. Such periods should only be used for testing purposes.
1151 },
1152 &quot;rpo&quot;: &quot;A String&quot;, # The Recovery Point Objective (RPO) of this bucket. Set to ASYNC_TURBO to turn on Turbo Replication on a bucket.
1153 &quot;satisfiesPZI&quot;: True or False, # Reserved for future use.
1154 &quot;satisfiesPZS&quot;: True or False, # Reserved for future use.
1155 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this bucket.
1156 &quot;softDeletePolicy&quot;: { # The bucket&#x27;s soft delete policy, which defines the period of time that soft-deleted objects will be retained, and cannot be permanently deleted.
1157 &quot;effectiveTime&quot;: &quot;A String&quot;, # Server-determined value that indicates the time from which the policy, or one with a greater retention, was effective. This value is in RFC 3339 format.
1158 &quot;retentionDurationSeconds&quot;: &quot;A String&quot;, # The duration in seconds that soft-deleted objects in the bucket will be retained and cannot be permanently deleted.
1159 },
1160 &quot;softDeleteTime&quot;: &quot;A String&quot;, # The soft delete time of the bucket in RFC 3339 format.
1161 &quot;storageClass&quot;: &quot;A String&quot;, # The bucket&#x27;s default storage class, used whenever no storageClass is specified for a newly-created object. This defines how objects in the bucket are stored and determines the SLA and the cost of storage. Values include MULTI_REGIONAL, REGIONAL, STANDARD, NEARLINE, COLDLINE, ARCHIVE, and DURABLE_REDUCED_AVAILABILITY. If this value is not specified when the bucket is created, it will default to STANDARD. For more information, see [Storage Classes](https://cloud.google.com/storage/docs/storage-classes).
1162 &quot;timeCreated&quot;: &quot;A String&quot;, # The creation time of the bucket in RFC 3339 format.
1163 &quot;updated&quot;: &quot;A String&quot;, # The modification time of the bucket in RFC 3339 format.
1164 &quot;versioning&quot;: { # The bucket&#x27;s versioning configuration.
1165 &quot;enabled&quot;: True or False, # While set to true, versioning is fully enabled for this bucket.
1166 },
1167 &quot;website&quot;: { # The bucket&#x27;s website configuration, controlling how the service behaves when accessing bucket contents as a web site. See the [Static Website Examples](https://cloud.google.com/storage/docs/static-website) for more information.
1168 &quot;mainPageSuffix&quot;: &quot;A String&quot;, # If the requested object path is missing, the service will ensure the path has a trailing &#x27;/&#x27;, append this suffix, and attempt to retrieve the resulting object. This allows the creation of index.html objects to represent directory pages.
1169 &quot;notFoundPage&quot;: &quot;A String&quot;, # If the requested object path is missing, and any mainPageSuffix object is missing, if applicable, the service will return the named object from this bucket as the content for a 404 Not Found result.
1170 },
1171 },
1172 ],
1173 &quot;kind&quot;: &quot;storage#buckets&quot;, # The kind of item this is. For lists of buckets, this is always storage#buckets.
1174 &quot;nextPageToken&quot;: &quot;A String&quot;, # The continuation token, used to page through large result sets. Provide this value in a subsequent request to return the next page of results.
1175 &quot;unreachable&quot;: [ # The list of bucket resource names that could not be reached during the listing operation.
1176 &quot;A String&quot;,
1177 ],
1178 }</pre>
1179 </div>
1180
1181 <div class="method">
1182 <code class="details" id="list_next">list_next()</code>
1183 <pre>Retrieves the next page of results.
1184
1185 Args:
1186 previous_request: The request for the previous page. (required)
1187 previous_response: The response from the request for the previous page. (required)
1188
1189 Returns:
1190 A request object that you can call &#x27;execute()&#x27; on to request the next
1191 page. Returns None if there are no more items in the collection.
1192 </pre>
1193 </div>
1194
1195 <div class="method">
1196 <code class="details" id="lockRetentionPolicy">lockRetentionPolicy(bucket, ifMetagenerationMatch, userProject=None)</code>
1197 <pre>Locks retention policy on a bucket.
1198
1199 Args:
1200 bucket: string, Name of a bucket. (required)
1201 ifMetagenerationMatch: string, Makes the operation conditional on whether bucket&#x27;s current metageneration matches the given value. (required)
1202 userProject: string, The project to be billed for this request. Required for Requester Pays buckets.
1203
1204 Returns:
1205 An object of the form:
1206
1207 { # A bucket.
1208 &quot;acl&quot;: [ # Access controls on the bucket.
1209 { # An access-control entry.
1210 &quot;bucket&quot;: &quot;A String&quot;, # The name of the bucket.
1211 &quot;domain&quot;: &quot;A String&quot;, # The domain associated with the entity, if any.
1212 &quot;email&quot;: &quot;A String&quot;, # The email address associated with the entity, if any.
1213 &quot;entity&quot;: &quot;A String&quot;, # The entity holding the permission, in one of the following forms:
1214 # - user-userId
1215 # - user-email
1216 # - group-groupId
1217 # - group-email
1218 # - domain-domain
1219 # - project-team-projectId
1220 # - allUsers
1221 # - allAuthenticatedUsers Examples:
1222 # - The user [email protected] would be [email protected].
1223 # - The group [email protected] would be [email protected].
1224 # - To refer to all members of the Google Apps for Business domain example.com, the entity would be domain-example.com.
1225 &quot;entityId&quot;: &quot;A String&quot;, # The ID for the entity, if any.
1226 &quot;etag&quot;: &quot;A String&quot;, # HTTP 1.1 Entity tag for the access-control entry.
1227 &quot;id&quot;: &quot;A String&quot;, # The ID of the access-control entry.
1228 &quot;kind&quot;: &quot;storage#bucketAccessControl&quot;, # The kind of item this is. For bucket access control entries, this is always storage#bucketAccessControl.
1229 &quot;projectTeam&quot;: { # The project team associated with the entity, if any.
1230 &quot;projectNumber&quot;: &quot;A String&quot;, # The project number.
1231 &quot;team&quot;: &quot;A String&quot;, # The team.
1232 },
1233 &quot;role&quot;: &quot;A String&quot;, # The access permission for the entity.
1234 &quot;selfLink&quot;: &quot;A String&quot;, # The link to this access-control entry.
1235 },
1236 ],
1237 &quot;autoclass&quot;: { # The bucket&#x27;s Autoclass configuration.
1238 &quot;enabled&quot;: True or False, # Whether or not Autoclass is enabled on this bucket
1239 &quot;terminalStorageClass&quot;: &quot;A String&quot;, # The storage class that objects in the bucket eventually transition to if they are not read for a certain length of time. Valid values are NEARLINE and ARCHIVE.
1240 &quot;terminalStorageClassUpdateTime&quot;: &quot;A String&quot;, # A date and time in RFC 3339 format representing the time of the most recent update to &quot;terminalStorageClass&quot;.
1241 &quot;toggleTime&quot;: &quot;A String&quot;, # A date and time in RFC 3339 format representing the instant at which &quot;enabled&quot; was last toggled.
1242 },
1243 &quot;billing&quot;: { # The bucket&#x27;s billing configuration.
1244 &quot;requesterPays&quot;: True or False, # When set to true, Requester Pays is enabled for this bucket.
1245 },
1246 &quot;cors&quot;: [ # The bucket&#x27;s Cross-Origin Resource Sharing (CORS) configuration.
1247 {
1248 &quot;maxAgeSeconds&quot;: 42, # The value, in seconds, to return in the Access-Control-Max-Age header used in preflight responses.
1249 &quot;method&quot;: [ # The list of HTTP methods on which to include CORS response headers, (GET, OPTIONS, POST, etc) Note: &quot;*&quot; is permitted in the list of methods, and means &quot;any method&quot;.
1250 &quot;A String&quot;,
1251 ],
1252 &quot;origin&quot;: [ # The list of Origins eligible to receive CORS response headers. Note: &quot;*&quot; is permitted in the list of origins, and means &quot;any Origin&quot;.
1253 &quot;A String&quot;,
1254 ],
1255 &quot;responseHeader&quot;: [ # The list of HTTP headers other than the simple response headers to give permission for the user-agent to share across domains.
1256 &quot;A String&quot;,
1257 ],
1258 },
1259 ],
1260 &quot;customPlacementConfig&quot;: { # The bucket&#x27;s custom placement configuration for Custom Dual Regions.
1261 &quot;dataLocations&quot;: [ # The list of regional locations in which data is placed.
1262 &quot;A String&quot;,
1263 ],
1264 },
1265 &quot;defaultEventBasedHold&quot;: True or False, # The default value for event-based hold on newly created objects in this bucket. Event-based hold is a way to retain objects indefinitely until an event occurs, signified by the hold&#x27;s release. After being released, such objects will be subject to bucket-level retention (if any). One sample use case of this flag is for banks to hold loan documents for at least 3 years after loan is paid in full. Here, bucket-level retention is 3 years and the event is loan being paid in full. In this example, these objects will be held intact for any number of years until the event has occurred (event-based hold on the object is released) and then 3 more years after that. That means retention duration of the objects begins from the moment event-based hold transitioned from true to false. Objects under event-based hold cannot be deleted, overwritten or archived until the hold is removed.
1266 &quot;defaultObjectAcl&quot;: [ # Default access controls to apply to new objects when no ACL is provided.
1267 { # An access-control entry.
1268 &quot;bucket&quot;: &quot;A String&quot;, # The name of the bucket.
1269 &quot;domain&quot;: &quot;A String&quot;, # The domain associated with the entity, if any.
1270 &quot;email&quot;: &quot;A String&quot;, # The email address associated with the entity, if any.
1271 &quot;entity&quot;: &quot;A String&quot;, # The entity holding the permission, in one of the following forms:
1272 # - user-userId
1273 # - user-email
1274 # - group-groupId
1275 # - group-email
1276 # - domain-domain
1277 # - project-team-projectId
1278 # - allUsers
1279 # - allAuthenticatedUsers Examples:
1280 # - The user [email protected] would be [email protected].
1281 # - The group [email protected] would be [email protected].
1282 # - To refer to all members of the Google Apps for Business domain example.com, the entity would be domain-example.com.
1283 &quot;entityId&quot;: &quot;A String&quot;, # The ID for the entity, if any.
1284 &quot;etag&quot;: &quot;A String&quot;, # HTTP 1.1 Entity tag for the access-control entry.
1285 &quot;generation&quot;: &quot;A String&quot;, # The content generation of the object, if applied to an object.
1286 &quot;id&quot;: &quot;A String&quot;, # The ID of the access-control entry.
1287 &quot;kind&quot;: &quot;storage#objectAccessControl&quot;, # The kind of item this is. For object access control entries, this is always storage#objectAccessControl.
1288 &quot;object&quot;: &quot;A String&quot;, # The name of the object, if applied to an object.
1289 &quot;projectTeam&quot;: { # The project team associated with the entity, if any.
1290 &quot;projectNumber&quot;: &quot;A String&quot;, # The project number.
1291 &quot;team&quot;: &quot;A String&quot;, # The team.
1292 },
1293 &quot;role&quot;: &quot;A String&quot;, # The access permission for the entity.
1294 &quot;selfLink&quot;: &quot;A String&quot;, # The link to this access-control entry.
1295 },
1296 ],
1297 &quot;encryption&quot;: { # Encryption configuration for a bucket.
1298 &quot;customerManagedEncryptionEnforcementConfig&quot;: { # If set, the new objects created in this bucket must comply with this enforcement config. Changing this has no effect on existing objects; it applies to new objects only. If omitted, the new objects are allowed to be encrypted with Customer Managed Encryption type by default.
1299 &quot;effectiveTime&quot;: &quot;A String&quot;, # Server-determined value that indicates the time from which configuration was enforced and effective. This value is in RFC 3339 format.
1300 &quot;restrictionMode&quot;: &quot;A String&quot;, # Restriction mode for Customer-Managed Encryption Keys. Defaults to NotRestricted.
1301 },
1302 &quot;customerSuppliedEncryptionEnforcementConfig&quot;: { # If set, the new objects created in this bucket must comply with this enforcement config. Changing this has no effect on existing objects; it applies to new objects only. If omitted, the new objects are allowed to be encrypted with Customer Supplied Encryption type by default.
1303 &quot;effectiveTime&quot;: &quot;A String&quot;, # Server-determined value that indicates the time from which configuration was enforced and effective. This value is in RFC 3339 format.
1304 &quot;restrictionMode&quot;: &quot;A String&quot;, # Restriction mode for Customer-Supplied Encryption Keys. Defaults to NotRestricted.
1305 },
1306 &quot;defaultKmsKeyName&quot;: &quot;A String&quot;, # A Cloud KMS key that will be used to encrypt objects inserted into this bucket, if no encryption method is specified.
1307 &quot;googleManagedEncryptionEnforcementConfig&quot;: { # If set, the new objects created in this bucket must comply with this enforcement config. Changing this has no effect on existing objects; it applies to new objects only. If omitted, the new objects are allowed to be encrypted with Google Managed Encryption type by default.
1308 &quot;effectiveTime&quot;: &quot;A String&quot;, # Server-determined value that indicates the time from which configuration was enforced and effective. This value is in RFC 3339 format.
1309 &quot;restrictionMode&quot;: &quot;A String&quot;, # Restriction mode for Google-Managed Encryption Keys. Defaults to NotRestricted.
1310 },
1311 },
1312 &quot;etag&quot;: &quot;A String&quot;, # HTTP 1.1 Entity tag for the bucket.
1313 &quot;generation&quot;: &quot;A String&quot;, # The generation of this bucket.
1314 &quot;hardDeleteTime&quot;: &quot;A String&quot;, # The hard delete time of the bucket in RFC 3339 format.
1315 &quot;hierarchicalNamespace&quot;: { # The bucket&#x27;s hierarchical namespace configuration.
1316 &quot;enabled&quot;: True or False, # When set to true, hierarchical namespace is enabled for this bucket.
1317 },
1318 &quot;iamConfiguration&quot;: { # The bucket&#x27;s IAM configuration.
1319 &quot;bucketPolicyOnly&quot;: { # The bucket&#x27;s uniform bucket-level access configuration. The feature was formerly known as Bucket Policy Only. For backward compatibility, this field will be populated with identical information as the uniformBucketLevelAccess field. We recommend using the uniformBucketLevelAccess field to enable and disable the feature.
1320 &quot;enabled&quot;: True or False, # If set, access is controlled only by bucket-level or above IAM policies.
1321 &quot;lockedTime&quot;: &quot;A String&quot;, # The deadline for changing iamConfiguration.bucketPolicyOnly.enabled from true to false in RFC 3339 format. iamConfiguration.bucketPolicyOnly.enabled may be changed from true to false until the locked time, after which the field is immutable.
1322 },
1323 &quot;publicAccessPrevention&quot;: &quot;A String&quot;, # The bucket&#x27;s Public Access Prevention configuration. Currently, &#x27;inherited&#x27; and &#x27;enforced&#x27; are supported.
1324 &quot;uniformBucketLevelAccess&quot;: { # The bucket&#x27;s uniform bucket-level access configuration.
1325 &quot;enabled&quot;: True or False, # If set, access is controlled only by bucket-level or above IAM policies.
1326 &quot;lockedTime&quot;: &quot;A String&quot;, # The deadline for changing iamConfiguration.uniformBucketLevelAccess.enabled from true to false in RFC 3339 format. iamConfiguration.uniformBucketLevelAccess.enabled may be changed from true to false until the locked time, after which the field is immutable.
1327 },
1328 },
1329 &quot;id&quot;: &quot;A String&quot;, # The ID of the bucket. For buckets, the id and name properties are the same.
1330 &quot;ipFilter&quot;: { # The bucket&#x27;s IP filter configuration. Specifies the network sources that are allowed to access the operations on the bucket, as well as its underlying objects. Only enforced when the mode is set to &#x27;Enabled&#x27;.
1331 &quot;allowAllServiceAgentAccess&quot;: True or False, # Whether to allow all service agents to access the bucket regardless of the IP filter configuration.
1332 &quot;allowCrossOrgVpcs&quot;: True or False, # Whether to allow cross-org VPCs in the bucket&#x27;s IP filter configuration.
1333 &quot;mode&quot;: &quot;A String&quot;, # The mode of the IP filter. Valid values are &#x27;Enabled&#x27; and &#x27;Disabled&#x27;.
1334 &quot;publicNetworkSource&quot;: { # The public network source of the bucket&#x27;s IP filter.
1335 &quot;allowedIpCidrRanges&quot;: [ # The list of public IPv4, IPv6 cidr ranges that are allowed to access the bucket.
1336 &quot;A String&quot;,
1337 ],
1338 },
1339 &quot;vpcNetworkSources&quot;: [ # The list of [VPC network](https://cloud.google.com/vpc/docs/vpc) sources of the bucket&#x27;s IP filter.
1340 {
1341 &quot;allowedIpCidrRanges&quot;: [ # The list of IPv4, IPv6 cidr ranges subnetworks that are allowed to access the bucket.
1342 &quot;A String&quot;,
1343 ],
1344 &quot;network&quot;: &quot;A String&quot;, # Name of the network. Format: projects/{PROJECT_ID}/global/networks/{NETWORK_NAME}
1345 },
1346 ],
1347 },
1348 &quot;kind&quot;: &quot;storage#bucket&quot;, # The kind of item this is. For buckets, this is always storage#bucket.
1349 &quot;labels&quot;: { # User-provided labels, in key/value pairs.
1350 &quot;a_key&quot;: &quot;A String&quot;, # An individual label entry.
1351 },
1352 &quot;lifecycle&quot;: { # The bucket&#x27;s lifecycle configuration. See [Lifecycle Management](https://cloud.google.com/storage/docs/lifecycle) for more information.
1353 &quot;rule&quot;: [ # A lifecycle management rule, which is made of an action to take and the condition(s) under which the action will be taken.
1354 {
1355 &quot;action&quot;: { # The action to take.
1356 &quot;storageClass&quot;: &quot;A String&quot;, # Target storage class. Required iff the type of the action is SetStorageClass.
1357 &quot;type&quot;: &quot;A String&quot;, # Type of the action. Currently, only Delete, SetStorageClass, and AbortIncompleteMultipartUpload are supported.
1358 },
1359 &quot;condition&quot;: { # The condition(s) under which the action will be taken.
1360 &quot;age&quot;: 42, # Age of an object (in days). This condition is satisfied when an object reaches the specified age.
1361 &quot;createdBefore&quot;: &quot;A String&quot;, # A date in RFC 3339 format with only the date part (for instance, &quot;2013-01-15&quot;). This condition is satisfied when an object is created before midnight of the specified date in UTC.
1362 &quot;customTimeBefore&quot;: &quot;A String&quot;, # A date in RFC 3339 format with only the date part (for instance, &quot;2013-01-15&quot;). This condition is satisfied when the custom time on an object is before this date in UTC.
1363 &quot;daysSinceCustomTime&quot;: 42, # Number of days elapsed since the user-specified timestamp set on an object. The condition is satisfied if the days elapsed is at least this number. If no custom timestamp is specified on an object, the condition does not apply.
1364 &quot;daysSinceNoncurrentTime&quot;: 42, # Number of days elapsed since the noncurrent timestamp of an object. The condition is satisfied if the days elapsed is at least this number. This condition is relevant only for versioned objects. The value of the field must be a nonnegative integer. If it&#x27;s zero, the object version will become eligible for Lifecycle action as soon as it becomes noncurrent.
1365 &quot;isLive&quot;: True or False, # Relevant only for versioned objects. If the value is true, this condition matches live objects; if the value is false, it matches archived objects.
1366 &quot;matchesPattern&quot;: &quot;A String&quot;, # A regular expression that satisfies the RE2 syntax. This condition is satisfied when the name of the object matches the RE2 pattern. Note: This feature is currently in the &quot;Early Access&quot; launch stage and is only available to a whitelisted set of users; that means that this feature may be changed in backward-incompatible ways and that it is not guaranteed to be released.
1367 &quot;matchesPrefix&quot;: [ # List of object name prefixes. This condition will be satisfied when at least one of the prefixes exactly matches the beginning of the object name.
1368 &quot;A String&quot;,
1369 ],
1370 &quot;matchesStorageClass&quot;: [ # Objects having any of the storage classes specified by this condition will be matched. Values include MULTI_REGIONAL, REGIONAL, NEARLINE, COLDLINE, ARCHIVE, STANDARD, and DURABLE_REDUCED_AVAILABILITY.
1371 &quot;A String&quot;,
1372 ],
1373 &quot;matchesSuffix&quot;: [ # List of object name suffixes. This condition will be satisfied when at least one of the suffixes exactly matches the end of the object name.
1374 &quot;A String&quot;,
1375 ],
1376 &quot;noncurrentTimeBefore&quot;: &quot;A String&quot;, # A date in RFC 3339 format with only the date part (for instance, &quot;2013-01-15&quot;). This condition is satisfied when the noncurrent time on an object is before this date in UTC. This condition is relevant only for versioned objects.
1377 &quot;numNewerVersions&quot;: 42, # Relevant only for versioned objects. If the value is N, this condition is satisfied when there are at least N versions (including the live version) newer than this version of the object.
1378 &quot;sizeAboveBytes&quot;: &quot;A String&quot;, # Objects having a size greater than this value in bytes will be matched.
1379 &quot;sizeBelowBytes&quot;: &quot;A String&quot;, # Objects having a size less than this value in bytes will be matched.
1380 },
1381 },
1382 ],
1383 },
1384 &quot;location&quot;: &quot;A String&quot;, # The location of the bucket. Object data for objects in the bucket resides in physical storage within this region. Defaults to US. See the [Developer&#x27;s Guide](https://cloud.google.com/storage/docs/locations) for the authoritative list.
1385 &quot;locationType&quot;: &quot;A String&quot;, # The type of the bucket location.
1386 &quot;logging&quot;: { # The bucket&#x27;s logging configuration, which defines the destination bucket and optional name prefix for the current bucket&#x27;s logs.
1387 &quot;logBucket&quot;: &quot;A String&quot;, # The destination bucket where the current bucket&#x27;s logs should be placed.
1388 &quot;logObjectPrefix&quot;: &quot;A String&quot;, # A prefix for log object names.
1389 },
1390 &quot;metageneration&quot;: &quot;A String&quot;, # The metadata generation of this bucket.
1391 &quot;name&quot;: &quot;A String&quot;, # The name of the bucket.
1392 &quot;objectRetention&quot;: { # The bucket&#x27;s object retention config.
1393 &quot;mode&quot;: &quot;A String&quot;, # The bucket&#x27;s object retention mode. Can be Enabled.
1394 },
1395 &quot;owner&quot;: { # The owner of the bucket. This is always the project team&#x27;s owner group.
1396 &quot;entity&quot;: &quot;A String&quot;, # The entity, in the form project-owner-projectId.
1397 &quot;entityId&quot;: &quot;A String&quot;, # The ID for the entity.
1398 },
1399 &quot;projectNumber&quot;: &quot;A String&quot;, # The project number of the project the bucket belongs to.
1400 &quot;retentionPolicy&quot;: { # The bucket&#x27;s retention policy. The retention policy enforces a minimum retention time for all objects contained in the bucket, based on their creation time. Any attempt to overwrite or delete objects younger than the retention period will result in a PERMISSION_DENIED error. An unlocked retention policy can be modified or removed from the bucket via a storage.buckets.update operation. A locked retention policy cannot be removed or shortened in duration for the lifetime of the bucket. Attempting to remove or decrease period of a locked retention policy will result in a PERMISSION_DENIED error.
1401 &quot;effectiveTime&quot;: &quot;A String&quot;, # Server-determined value that indicates the time from which policy was enforced and effective. This value is in RFC 3339 format.
1402 &quot;isLocked&quot;: True or False, # Once locked, an object retention policy cannot be modified.
1403 &quot;retentionPeriod&quot;: &quot;A String&quot;, # The duration in seconds that objects need to be retained. Retention duration must be greater than zero and less than 100 years. Note that enforcement of retention periods less than a day is not guaranteed. Such periods should only be used for testing purposes.
1404 },
1405 &quot;rpo&quot;: &quot;A String&quot;, # The Recovery Point Objective (RPO) of this bucket. Set to ASYNC_TURBO to turn on Turbo Replication on a bucket.
1406 &quot;satisfiesPZI&quot;: True or False, # Reserved for future use.
1407 &quot;satisfiesPZS&quot;: True or False, # Reserved for future use.
1408 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this bucket.
1409 &quot;softDeletePolicy&quot;: { # The bucket&#x27;s soft delete policy, which defines the period of time that soft-deleted objects will be retained, and cannot be permanently deleted.
1410 &quot;effectiveTime&quot;: &quot;A String&quot;, # Server-determined value that indicates the time from which the policy, or one with a greater retention, was effective. This value is in RFC 3339 format.
1411 &quot;retentionDurationSeconds&quot;: &quot;A String&quot;, # The duration in seconds that soft-deleted objects in the bucket will be retained and cannot be permanently deleted.
1412 },
1413 &quot;softDeleteTime&quot;: &quot;A String&quot;, # The soft delete time of the bucket in RFC 3339 format.
1414 &quot;storageClass&quot;: &quot;A String&quot;, # The bucket&#x27;s default storage class, used whenever no storageClass is specified for a newly-created object. This defines how objects in the bucket are stored and determines the SLA and the cost of storage. Values include MULTI_REGIONAL, REGIONAL, STANDARD, NEARLINE, COLDLINE, ARCHIVE, and DURABLE_REDUCED_AVAILABILITY. If this value is not specified when the bucket is created, it will default to STANDARD. For more information, see [Storage Classes](https://cloud.google.com/storage/docs/storage-classes).
1415 &quot;timeCreated&quot;: &quot;A String&quot;, # The creation time of the bucket in RFC 3339 format.
1416 &quot;updated&quot;: &quot;A String&quot;, # The modification time of the bucket in RFC 3339 format.
1417 &quot;versioning&quot;: { # The bucket&#x27;s versioning configuration.
1418 &quot;enabled&quot;: True or False, # While set to true, versioning is fully enabled for this bucket.
1419 },
1420 &quot;website&quot;: { # The bucket&#x27;s website configuration, controlling how the service behaves when accessing bucket contents as a web site. See the [Static Website Examples](https://cloud.google.com/storage/docs/static-website) for more information.
1421 &quot;mainPageSuffix&quot;: &quot;A String&quot;, # If the requested object path is missing, the service will ensure the path has a trailing &#x27;/&#x27;, append this suffix, and attempt to retrieve the resulting object. This allows the creation of index.html objects to represent directory pages.
1422 &quot;notFoundPage&quot;: &quot;A String&quot;, # If the requested object path is missing, and any mainPageSuffix object is missing, if applicable, the service will return the named object from this bucket as the content for a 404 Not Found result.
1423 },
1424 }</pre>
1425 </div>
1426
1427 <div class="method">
1428 <code class="details" id="patch">patch(bucket, body=None, ifMetagenerationMatch=None, ifMetagenerationNotMatch=None, predefinedAcl=None, predefinedDefaultObjectAcl=None, projection=None, userProject=None)</code>
1429 <pre>Patches a bucket. Changes to the bucket will be readable immediately after writing, but configuration changes may take time to propagate.
1430
1431 Args:
1432 bucket: string, Name of a bucket. (required)
1433 body: object, The request body.
1434 The object takes the form of:
1435
1436 { # A bucket.
1437 &quot;acl&quot;: [ # Access controls on the bucket.
1438 { # An access-control entry.
1439 &quot;bucket&quot;: &quot;A String&quot;, # The name of the bucket.
1440 &quot;domain&quot;: &quot;A String&quot;, # The domain associated with the entity, if any.
1441 &quot;email&quot;: &quot;A String&quot;, # The email address associated with the entity, if any.
1442 &quot;entity&quot;: &quot;A String&quot;, # The entity holding the permission, in one of the following forms:
1443 # - user-userId
1444 # - user-email
1445 # - group-groupId
1446 # - group-email
1447 # - domain-domain
1448 # - project-team-projectId
1449 # - allUsers
1450 # - allAuthenticatedUsers Examples:
1451 # - The user [email protected] would be [email protected].
1452 # - The group [email protected] would be [email protected].
1453 # - To refer to all members of the Google Apps for Business domain example.com, the entity would be domain-example.com.
1454 &quot;entityId&quot;: &quot;A String&quot;, # The ID for the entity, if any.
1455 &quot;etag&quot;: &quot;A String&quot;, # HTTP 1.1 Entity tag for the access-control entry.
1456 &quot;id&quot;: &quot;A String&quot;, # The ID of the access-control entry.
1457 &quot;kind&quot;: &quot;storage#bucketAccessControl&quot;, # The kind of item this is. For bucket access control entries, this is always storage#bucketAccessControl.
1458 &quot;projectTeam&quot;: { # The project team associated with the entity, if any.
1459 &quot;projectNumber&quot;: &quot;A String&quot;, # The project number.
1460 &quot;team&quot;: &quot;A String&quot;, # The team.
1461 },
1462 &quot;role&quot;: &quot;A String&quot;, # The access permission for the entity.
1463 &quot;selfLink&quot;: &quot;A String&quot;, # The link to this access-control entry.
1464 },
1465 ],
1466 &quot;autoclass&quot;: { # The bucket&#x27;s Autoclass configuration.
1467 &quot;enabled&quot;: True or False, # Whether or not Autoclass is enabled on this bucket
1468 &quot;terminalStorageClass&quot;: &quot;A String&quot;, # The storage class that objects in the bucket eventually transition to if they are not read for a certain length of time. Valid values are NEARLINE and ARCHIVE.
1469 &quot;terminalStorageClassUpdateTime&quot;: &quot;A String&quot;, # A date and time in RFC 3339 format representing the time of the most recent update to &quot;terminalStorageClass&quot;.
1470 &quot;toggleTime&quot;: &quot;A String&quot;, # A date and time in RFC 3339 format representing the instant at which &quot;enabled&quot; was last toggled.
1471 },
1472 &quot;billing&quot;: { # The bucket&#x27;s billing configuration.
1473 &quot;requesterPays&quot;: True or False, # When set to true, Requester Pays is enabled for this bucket.
1474 },
1475 &quot;cors&quot;: [ # The bucket&#x27;s Cross-Origin Resource Sharing (CORS) configuration.
1476 {
1477 &quot;maxAgeSeconds&quot;: 42, # The value, in seconds, to return in the Access-Control-Max-Age header used in preflight responses.
1478 &quot;method&quot;: [ # The list of HTTP methods on which to include CORS response headers, (GET, OPTIONS, POST, etc) Note: &quot;*&quot; is permitted in the list of methods, and means &quot;any method&quot;.
1479 &quot;A String&quot;,
1480 ],
1481 &quot;origin&quot;: [ # The list of Origins eligible to receive CORS response headers. Note: &quot;*&quot; is permitted in the list of origins, and means &quot;any Origin&quot;.
1482 &quot;A String&quot;,
1483 ],
1484 &quot;responseHeader&quot;: [ # The list of HTTP headers other than the simple response headers to give permission for the user-agent to share across domains.
1485 &quot;A String&quot;,
1486 ],
1487 },
1488 ],
1489 &quot;customPlacementConfig&quot;: { # The bucket&#x27;s custom placement configuration for Custom Dual Regions.
1490 &quot;dataLocations&quot;: [ # The list of regional locations in which data is placed.
1491 &quot;A String&quot;,
1492 ],
1493 },
1494 &quot;defaultEventBasedHold&quot;: True or False, # The default value for event-based hold on newly created objects in this bucket. Event-based hold is a way to retain objects indefinitely until an event occurs, signified by the hold&#x27;s release. After being released, such objects will be subject to bucket-level retention (if any). One sample use case of this flag is for banks to hold loan documents for at least 3 years after loan is paid in full. Here, bucket-level retention is 3 years and the event is loan being paid in full. In this example, these objects will be held intact for any number of years until the event has occurred (event-based hold on the object is released) and then 3 more years after that. That means retention duration of the objects begins from the moment event-based hold transitioned from true to false. Objects under event-based hold cannot be deleted, overwritten or archived until the hold is removed.
1495 &quot;defaultObjectAcl&quot;: [ # Default access controls to apply to new objects when no ACL is provided.
1496 { # An access-control entry.
1497 &quot;bucket&quot;: &quot;A String&quot;, # The name of the bucket.
1498 &quot;domain&quot;: &quot;A String&quot;, # The domain associated with the entity, if any.
1499 &quot;email&quot;: &quot;A String&quot;, # The email address associated with the entity, if any.
1500 &quot;entity&quot;: &quot;A String&quot;, # The entity holding the permission, in one of the following forms:
1501 # - user-userId
1502 # - user-email
1503 # - group-groupId
1504 # - group-email
1505 # - domain-domain
1506 # - project-team-projectId
1507 # - allUsers
1508 # - allAuthenticatedUsers Examples:
1509 # - The user [email protected] would be [email protected].
1510 # - The group [email protected] would be [email protected].
1511 # - To refer to all members of the Google Apps for Business domain example.com, the entity would be domain-example.com.
1512 &quot;entityId&quot;: &quot;A String&quot;, # The ID for the entity, if any.
1513 &quot;etag&quot;: &quot;A String&quot;, # HTTP 1.1 Entity tag for the access-control entry.
1514 &quot;generation&quot;: &quot;A String&quot;, # The content generation of the object, if applied to an object.
1515 &quot;id&quot;: &quot;A String&quot;, # The ID of the access-control entry.
1516 &quot;kind&quot;: &quot;storage#objectAccessControl&quot;, # The kind of item this is. For object access control entries, this is always storage#objectAccessControl.
1517 &quot;object&quot;: &quot;A String&quot;, # The name of the object, if applied to an object.
1518 &quot;projectTeam&quot;: { # The project team associated with the entity, if any.
1519 &quot;projectNumber&quot;: &quot;A String&quot;, # The project number.
1520 &quot;team&quot;: &quot;A String&quot;, # The team.
1521 },
1522 &quot;role&quot;: &quot;A String&quot;, # The access permission for the entity.
1523 &quot;selfLink&quot;: &quot;A String&quot;, # The link to this access-control entry.
1524 },
1525 ],
1526 &quot;encryption&quot;: { # Encryption configuration for a bucket.
1527 &quot;customerManagedEncryptionEnforcementConfig&quot;: { # If set, the new objects created in this bucket must comply with this enforcement config. Changing this has no effect on existing objects; it applies to new objects only. If omitted, the new objects are allowed to be encrypted with Customer Managed Encryption type by default.
1528 &quot;effectiveTime&quot;: &quot;A String&quot;, # Server-determined value that indicates the time from which configuration was enforced and effective. This value is in RFC 3339 format.
1529 &quot;restrictionMode&quot;: &quot;A String&quot;, # Restriction mode for Customer-Managed Encryption Keys. Defaults to NotRestricted.
1530 },
1531 &quot;customerSuppliedEncryptionEnforcementConfig&quot;: { # If set, the new objects created in this bucket must comply with this enforcement config. Changing this has no effect on existing objects; it applies to new objects only. If omitted, the new objects are allowed to be encrypted with Customer Supplied Encryption type by default.
1532 &quot;effectiveTime&quot;: &quot;A String&quot;, # Server-determined value that indicates the time from which configuration was enforced and effective. This value is in RFC 3339 format.
1533 &quot;restrictionMode&quot;: &quot;A String&quot;, # Restriction mode for Customer-Supplied Encryption Keys. Defaults to NotRestricted.
1534 },
1535 &quot;defaultKmsKeyName&quot;: &quot;A String&quot;, # A Cloud KMS key that will be used to encrypt objects inserted into this bucket, if no encryption method is specified.
1536 &quot;googleManagedEncryptionEnforcementConfig&quot;: { # If set, the new objects created in this bucket must comply with this enforcement config. Changing this has no effect on existing objects; it applies to new objects only. If omitted, the new objects are allowed to be encrypted with Google Managed Encryption type by default.
1537 &quot;effectiveTime&quot;: &quot;A String&quot;, # Server-determined value that indicates the time from which configuration was enforced and effective. This value is in RFC 3339 format.
1538 &quot;restrictionMode&quot;: &quot;A String&quot;, # Restriction mode for Google-Managed Encryption Keys. Defaults to NotRestricted.
1539 },
1540 },
1541 &quot;etag&quot;: &quot;A String&quot;, # HTTP 1.1 Entity tag for the bucket.
1542 &quot;generation&quot;: &quot;A String&quot;, # The generation of this bucket.
1543 &quot;hardDeleteTime&quot;: &quot;A String&quot;, # The hard delete time of the bucket in RFC 3339 format.
1544 &quot;hierarchicalNamespace&quot;: { # The bucket&#x27;s hierarchical namespace configuration.
1545 &quot;enabled&quot;: True or False, # When set to true, hierarchical namespace is enabled for this bucket.
1546 },
1547 &quot;iamConfiguration&quot;: { # The bucket&#x27;s IAM configuration.
1548 &quot;bucketPolicyOnly&quot;: { # The bucket&#x27;s uniform bucket-level access configuration. The feature was formerly known as Bucket Policy Only. For backward compatibility, this field will be populated with identical information as the uniformBucketLevelAccess field. We recommend using the uniformBucketLevelAccess field to enable and disable the feature.
1549 &quot;enabled&quot;: True or False, # If set, access is controlled only by bucket-level or above IAM policies.
1550 &quot;lockedTime&quot;: &quot;A String&quot;, # The deadline for changing iamConfiguration.bucketPolicyOnly.enabled from true to false in RFC 3339 format. iamConfiguration.bucketPolicyOnly.enabled may be changed from true to false until the locked time, after which the field is immutable.
1551 },
1552 &quot;publicAccessPrevention&quot;: &quot;A String&quot;, # The bucket&#x27;s Public Access Prevention configuration. Currently, &#x27;inherited&#x27; and &#x27;enforced&#x27; are supported.
1553 &quot;uniformBucketLevelAccess&quot;: { # The bucket&#x27;s uniform bucket-level access configuration.
1554 &quot;enabled&quot;: True or False, # If set, access is controlled only by bucket-level or above IAM policies.
1555 &quot;lockedTime&quot;: &quot;A String&quot;, # The deadline for changing iamConfiguration.uniformBucketLevelAccess.enabled from true to false in RFC 3339 format. iamConfiguration.uniformBucketLevelAccess.enabled may be changed from true to false until the locked time, after which the field is immutable.
1556 },
1557 },
1558 &quot;id&quot;: &quot;A String&quot;, # The ID of the bucket. For buckets, the id and name properties are the same.
1559 &quot;ipFilter&quot;: { # The bucket&#x27;s IP filter configuration. Specifies the network sources that are allowed to access the operations on the bucket, as well as its underlying objects. Only enforced when the mode is set to &#x27;Enabled&#x27;.
1560 &quot;allowAllServiceAgentAccess&quot;: True or False, # Whether to allow all service agents to access the bucket regardless of the IP filter configuration.
1561 &quot;allowCrossOrgVpcs&quot;: True or False, # Whether to allow cross-org VPCs in the bucket&#x27;s IP filter configuration.
1562 &quot;mode&quot;: &quot;A String&quot;, # The mode of the IP filter. Valid values are &#x27;Enabled&#x27; and &#x27;Disabled&#x27;.
1563 &quot;publicNetworkSource&quot;: { # The public network source of the bucket&#x27;s IP filter.
1564 &quot;allowedIpCidrRanges&quot;: [ # The list of public IPv4, IPv6 cidr ranges that are allowed to access the bucket.
1565 &quot;A String&quot;,
1566 ],
1567 },
1568 &quot;vpcNetworkSources&quot;: [ # The list of [VPC network](https://cloud.google.com/vpc/docs/vpc) sources of the bucket&#x27;s IP filter.
1569 {
1570 &quot;allowedIpCidrRanges&quot;: [ # The list of IPv4, IPv6 cidr ranges subnetworks that are allowed to access the bucket.
1571 &quot;A String&quot;,
1572 ],
1573 &quot;network&quot;: &quot;A String&quot;, # Name of the network. Format: projects/{PROJECT_ID}/global/networks/{NETWORK_NAME}
1574 },
1575 ],
1576 },
1577 &quot;kind&quot;: &quot;storage#bucket&quot;, # The kind of item this is. For buckets, this is always storage#bucket.
1578 &quot;labels&quot;: { # User-provided labels, in key/value pairs.
1579 &quot;a_key&quot;: &quot;A String&quot;, # An individual label entry.
1580 },
1581 &quot;lifecycle&quot;: { # The bucket&#x27;s lifecycle configuration. See [Lifecycle Management](https://cloud.google.com/storage/docs/lifecycle) for more information.
1582 &quot;rule&quot;: [ # A lifecycle management rule, which is made of an action to take and the condition(s) under which the action will be taken.
1583 {
1584 &quot;action&quot;: { # The action to take.
1585 &quot;storageClass&quot;: &quot;A String&quot;, # Target storage class. Required iff the type of the action is SetStorageClass.
1586 &quot;type&quot;: &quot;A String&quot;, # Type of the action. Currently, only Delete, SetStorageClass, and AbortIncompleteMultipartUpload are supported.
1587 },
1588 &quot;condition&quot;: { # The condition(s) under which the action will be taken.
1589 &quot;age&quot;: 42, # Age of an object (in days). This condition is satisfied when an object reaches the specified age.
1590 &quot;createdBefore&quot;: &quot;A String&quot;, # A date in RFC 3339 format with only the date part (for instance, &quot;2013-01-15&quot;). This condition is satisfied when an object is created before midnight of the specified date in UTC.
1591 &quot;customTimeBefore&quot;: &quot;A String&quot;, # A date in RFC 3339 format with only the date part (for instance, &quot;2013-01-15&quot;). This condition is satisfied when the custom time on an object is before this date in UTC.
1592 &quot;daysSinceCustomTime&quot;: 42, # Number of days elapsed since the user-specified timestamp set on an object. The condition is satisfied if the days elapsed is at least this number. If no custom timestamp is specified on an object, the condition does not apply.
1593 &quot;daysSinceNoncurrentTime&quot;: 42, # Number of days elapsed since the noncurrent timestamp of an object. The condition is satisfied if the days elapsed is at least this number. This condition is relevant only for versioned objects. The value of the field must be a nonnegative integer. If it&#x27;s zero, the object version will become eligible for Lifecycle action as soon as it becomes noncurrent.
1594 &quot;isLive&quot;: True or False, # Relevant only for versioned objects. If the value is true, this condition matches live objects; if the value is false, it matches archived objects.
1595 &quot;matchesPattern&quot;: &quot;A String&quot;, # A regular expression that satisfies the RE2 syntax. This condition is satisfied when the name of the object matches the RE2 pattern. Note: This feature is currently in the &quot;Early Access&quot; launch stage and is only available to a whitelisted set of users; that means that this feature may be changed in backward-incompatible ways and that it is not guaranteed to be released.
1596 &quot;matchesPrefix&quot;: [ # List of object name prefixes. This condition will be satisfied when at least one of the prefixes exactly matches the beginning of the object name.
1597 &quot;A String&quot;,
1598 ],
1599 &quot;matchesStorageClass&quot;: [ # Objects having any of the storage classes specified by this condition will be matched. Values include MULTI_REGIONAL, REGIONAL, NEARLINE, COLDLINE, ARCHIVE, STANDARD, and DURABLE_REDUCED_AVAILABILITY.
1600 &quot;A String&quot;,
1601 ],
1602 &quot;matchesSuffix&quot;: [ # List of object name suffixes. This condition will be satisfied when at least one of the suffixes exactly matches the end of the object name.
1603 &quot;A String&quot;,
1604 ],
1605 &quot;noncurrentTimeBefore&quot;: &quot;A String&quot;, # A date in RFC 3339 format with only the date part (for instance, &quot;2013-01-15&quot;). This condition is satisfied when the noncurrent time on an object is before this date in UTC. This condition is relevant only for versioned objects.
1606 &quot;numNewerVersions&quot;: 42, # Relevant only for versioned objects. If the value is N, this condition is satisfied when there are at least N versions (including the live version) newer than this version of the object.
1607 &quot;sizeAboveBytes&quot;: &quot;A String&quot;, # Objects having a size greater than this value in bytes will be matched.
1608 &quot;sizeBelowBytes&quot;: &quot;A String&quot;, # Objects having a size less than this value in bytes will be matched.
1609 },
1610 },
1611 ],
1612 },
1613 &quot;location&quot;: &quot;A String&quot;, # The location of the bucket. Object data for objects in the bucket resides in physical storage within this region. Defaults to US. See the [Developer&#x27;s Guide](https://cloud.google.com/storage/docs/locations) for the authoritative list.
1614 &quot;locationType&quot;: &quot;A String&quot;, # The type of the bucket location.
1615 &quot;logging&quot;: { # The bucket&#x27;s logging configuration, which defines the destination bucket and optional name prefix for the current bucket&#x27;s logs.
1616 &quot;logBucket&quot;: &quot;A String&quot;, # The destination bucket where the current bucket&#x27;s logs should be placed.
1617 &quot;logObjectPrefix&quot;: &quot;A String&quot;, # A prefix for log object names.
1618 },
1619 &quot;metageneration&quot;: &quot;A String&quot;, # The metadata generation of this bucket.
1620 &quot;name&quot;: &quot;A String&quot;, # The name of the bucket.
1621 &quot;objectRetention&quot;: { # The bucket&#x27;s object retention config.
1622 &quot;mode&quot;: &quot;A String&quot;, # The bucket&#x27;s object retention mode. Can be Enabled.
1623 },
1624 &quot;owner&quot;: { # The owner of the bucket. This is always the project team&#x27;s owner group.
1625 &quot;entity&quot;: &quot;A String&quot;, # The entity, in the form project-owner-projectId.
1626 &quot;entityId&quot;: &quot;A String&quot;, # The ID for the entity.
1627 },
1628 &quot;projectNumber&quot;: &quot;A String&quot;, # The project number of the project the bucket belongs to.
1629 &quot;retentionPolicy&quot;: { # The bucket&#x27;s retention policy. The retention policy enforces a minimum retention time for all objects contained in the bucket, based on their creation time. Any attempt to overwrite or delete objects younger than the retention period will result in a PERMISSION_DENIED error. An unlocked retention policy can be modified or removed from the bucket via a storage.buckets.update operation. A locked retention policy cannot be removed or shortened in duration for the lifetime of the bucket. Attempting to remove or decrease period of a locked retention policy will result in a PERMISSION_DENIED error.
1630 &quot;effectiveTime&quot;: &quot;A String&quot;, # Server-determined value that indicates the time from which policy was enforced and effective. This value is in RFC 3339 format.
1631 &quot;isLocked&quot;: True or False, # Once locked, an object retention policy cannot be modified.
1632 &quot;retentionPeriod&quot;: &quot;A String&quot;, # The duration in seconds that objects need to be retained. Retention duration must be greater than zero and less than 100 years. Note that enforcement of retention periods less than a day is not guaranteed. Such periods should only be used for testing purposes.
1633 },
1634 &quot;rpo&quot;: &quot;A String&quot;, # The Recovery Point Objective (RPO) of this bucket. Set to ASYNC_TURBO to turn on Turbo Replication on a bucket.
1635 &quot;satisfiesPZI&quot;: True or False, # Reserved for future use.
1636 &quot;satisfiesPZS&quot;: True or False, # Reserved for future use.
1637 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this bucket.
1638 &quot;softDeletePolicy&quot;: { # The bucket&#x27;s soft delete policy, which defines the period of time that soft-deleted objects will be retained, and cannot be permanently deleted.
1639 &quot;effectiveTime&quot;: &quot;A String&quot;, # Server-determined value that indicates the time from which the policy, or one with a greater retention, was effective. This value is in RFC 3339 format.
1640 &quot;retentionDurationSeconds&quot;: &quot;A String&quot;, # The duration in seconds that soft-deleted objects in the bucket will be retained and cannot be permanently deleted.
1641 },
1642 &quot;softDeleteTime&quot;: &quot;A String&quot;, # The soft delete time of the bucket in RFC 3339 format.
1643 &quot;storageClass&quot;: &quot;A String&quot;, # The bucket&#x27;s default storage class, used whenever no storageClass is specified for a newly-created object. This defines how objects in the bucket are stored and determines the SLA and the cost of storage. Values include MULTI_REGIONAL, REGIONAL, STANDARD, NEARLINE, COLDLINE, ARCHIVE, and DURABLE_REDUCED_AVAILABILITY. If this value is not specified when the bucket is created, it will default to STANDARD. For more information, see [Storage Classes](https://cloud.google.com/storage/docs/storage-classes).
1644 &quot;timeCreated&quot;: &quot;A String&quot;, # The creation time of the bucket in RFC 3339 format.
1645 &quot;updated&quot;: &quot;A String&quot;, # The modification time of the bucket in RFC 3339 format.
1646 &quot;versioning&quot;: { # The bucket&#x27;s versioning configuration.
1647 &quot;enabled&quot;: True or False, # While set to true, versioning is fully enabled for this bucket.
1648 },
1649 &quot;website&quot;: { # The bucket&#x27;s website configuration, controlling how the service behaves when accessing bucket contents as a web site. See the [Static Website Examples](https://cloud.google.com/storage/docs/static-website) for more information.
1650 &quot;mainPageSuffix&quot;: &quot;A String&quot;, # If the requested object path is missing, the service will ensure the path has a trailing &#x27;/&#x27;, append this suffix, and attempt to retrieve the resulting object. This allows the creation of index.html objects to represent directory pages.
1651 &quot;notFoundPage&quot;: &quot;A String&quot;, # If the requested object path is missing, and any mainPageSuffix object is missing, if applicable, the service will return the named object from this bucket as the content for a 404 Not Found result.
1652 },
1653 }
1654
1655 ifMetagenerationMatch: string, Makes the return of the bucket metadata conditional on whether the bucket&#x27;s current metageneration matches the given value.
1656 ifMetagenerationNotMatch: string, Makes the return of the bucket metadata conditional on whether the bucket&#x27;s current metageneration does not match the given value.
1657 predefinedAcl: string, Apply a predefined set of access controls to this bucket.
1658 Allowed values
1659 authenticatedRead - Project team owners get OWNER access, and allAuthenticatedUsers get READER access.
1660 private - Project team owners get OWNER access.
1661 projectPrivate - Project team members get access according to their roles.
1662 publicRead - Project team owners get OWNER access, and allUsers get READER access.
1663 publicReadWrite - Project team owners get OWNER access, and allUsers get WRITER access.
1664 predefinedDefaultObjectAcl: string, Apply a predefined set of default object access controls to this bucket.
1665 Allowed values
1666 authenticatedRead - Object owner gets OWNER access, and allAuthenticatedUsers get READER access.
1667 bucketOwnerFullControl - Object owner gets OWNER access, and project team owners get OWNER access.
1668 bucketOwnerRead - Object owner gets OWNER access, and project team owners get READER access.
1669 private - Object owner gets OWNER access.
1670 projectPrivate - Object owner gets OWNER access, and project team members get access according to their roles.
1671 publicRead - Object owner gets OWNER access, and allUsers get READER access.
1672 projection: string, Set of properties to return. Defaults to full.
1673 Allowed values
1674 full - Include all properties.
1675 noAcl - Omit owner, acl and defaultObjectAcl properties.
1676 userProject: string, The project to be billed for this request. Required for Requester Pays buckets.
1677
1678 Returns:
1679 An object of the form:
1680
1681 { # A bucket.
1682 &quot;acl&quot;: [ # Access controls on the bucket.
1683 { # An access-control entry.
1684 &quot;bucket&quot;: &quot;A String&quot;, # The name of the bucket.
1685 &quot;domain&quot;: &quot;A String&quot;, # The domain associated with the entity, if any.
1686 &quot;email&quot;: &quot;A String&quot;, # The email address associated with the entity, if any.
1687 &quot;entity&quot;: &quot;A String&quot;, # The entity holding the permission, in one of the following forms:
1688 # - user-userId
1689 # - user-email
1690 # - group-groupId
1691 # - group-email
1692 # - domain-domain
1693 # - project-team-projectId
1694 # - allUsers
1695 # - allAuthenticatedUsers Examples:
1696 # - The user [email protected] would be [email protected].
1697 # - The group [email protected] would be [email protected].
1698 # - To refer to all members of the Google Apps for Business domain example.com, the entity would be domain-example.com.
1699 &quot;entityId&quot;: &quot;A String&quot;, # The ID for the entity, if any.
1700 &quot;etag&quot;: &quot;A String&quot;, # HTTP 1.1 Entity tag for the access-control entry.
1701 &quot;id&quot;: &quot;A String&quot;, # The ID of the access-control entry.
1702 &quot;kind&quot;: &quot;storage#bucketAccessControl&quot;, # The kind of item this is. For bucket access control entries, this is always storage#bucketAccessControl.
1703 &quot;projectTeam&quot;: { # The project team associated with the entity, if any.
1704 &quot;projectNumber&quot;: &quot;A String&quot;, # The project number.
1705 &quot;team&quot;: &quot;A String&quot;, # The team.
1706 },
1707 &quot;role&quot;: &quot;A String&quot;, # The access permission for the entity.
1708 &quot;selfLink&quot;: &quot;A String&quot;, # The link to this access-control entry.
1709 },
1710 ],
1711 &quot;autoclass&quot;: { # The bucket&#x27;s Autoclass configuration.
1712 &quot;enabled&quot;: True or False, # Whether or not Autoclass is enabled on this bucket
1713 &quot;terminalStorageClass&quot;: &quot;A String&quot;, # The storage class that objects in the bucket eventually transition to if they are not read for a certain length of time. Valid values are NEARLINE and ARCHIVE.
1714 &quot;terminalStorageClassUpdateTime&quot;: &quot;A String&quot;, # A date and time in RFC 3339 format representing the time of the most recent update to &quot;terminalStorageClass&quot;.
1715 &quot;toggleTime&quot;: &quot;A String&quot;, # A date and time in RFC 3339 format representing the instant at which &quot;enabled&quot; was last toggled.
1716 },
1717 &quot;billing&quot;: { # The bucket&#x27;s billing configuration.
1718 &quot;requesterPays&quot;: True or False, # When set to true, Requester Pays is enabled for this bucket.
1719 },
1720 &quot;cors&quot;: [ # The bucket&#x27;s Cross-Origin Resource Sharing (CORS) configuration.
1721 {
1722 &quot;maxAgeSeconds&quot;: 42, # The value, in seconds, to return in the Access-Control-Max-Age header used in preflight responses.
1723 &quot;method&quot;: [ # The list of HTTP methods on which to include CORS response headers, (GET, OPTIONS, POST, etc) Note: &quot;*&quot; is permitted in the list of methods, and means &quot;any method&quot;.
1724 &quot;A String&quot;,
1725 ],
1726 &quot;origin&quot;: [ # The list of Origins eligible to receive CORS response headers. Note: &quot;*&quot; is permitted in the list of origins, and means &quot;any Origin&quot;.
1727 &quot;A String&quot;,
1728 ],
1729 &quot;responseHeader&quot;: [ # The list of HTTP headers other than the simple response headers to give permission for the user-agent to share across domains.
1730 &quot;A String&quot;,
1731 ],
1732 },
1733 ],
1734 &quot;customPlacementConfig&quot;: { # The bucket&#x27;s custom placement configuration for Custom Dual Regions.
1735 &quot;dataLocations&quot;: [ # The list of regional locations in which data is placed.
1736 &quot;A String&quot;,
1737 ],
1738 },
1739 &quot;defaultEventBasedHold&quot;: True or False, # The default value for event-based hold on newly created objects in this bucket. Event-based hold is a way to retain objects indefinitely until an event occurs, signified by the hold&#x27;s release. After being released, such objects will be subject to bucket-level retention (if any). One sample use case of this flag is for banks to hold loan documents for at least 3 years after loan is paid in full. Here, bucket-level retention is 3 years and the event is loan being paid in full. In this example, these objects will be held intact for any number of years until the event has occurred (event-based hold on the object is released) and then 3 more years after that. That means retention duration of the objects begins from the moment event-based hold transitioned from true to false. Objects under event-based hold cannot be deleted, overwritten or archived until the hold is removed.
1740 &quot;defaultObjectAcl&quot;: [ # Default access controls to apply to new objects when no ACL is provided.
1741 { # An access-control entry.
1742 &quot;bucket&quot;: &quot;A String&quot;, # The name of the bucket.
1743 &quot;domain&quot;: &quot;A String&quot;, # The domain associated with the entity, if any.
1744 &quot;email&quot;: &quot;A String&quot;, # The email address associated with the entity, if any.
1745 &quot;entity&quot;: &quot;A String&quot;, # The entity holding the permission, in one of the following forms:
1746 # - user-userId
1747 # - user-email
1748 # - group-groupId
1749 # - group-email
1750 # - domain-domain
1751 # - project-team-projectId
1752 # - allUsers
1753 # - allAuthenticatedUsers Examples:
1754 # - The user [email protected] would be [email protected].
1755 # - The group [email protected] would be [email protected].
1756 # - To refer to all members of the Google Apps for Business domain example.com, the entity would be domain-example.com.
1757 &quot;entityId&quot;: &quot;A String&quot;, # The ID for the entity, if any.
1758 &quot;etag&quot;: &quot;A String&quot;, # HTTP 1.1 Entity tag for the access-control entry.
1759 &quot;generation&quot;: &quot;A String&quot;, # The content generation of the object, if applied to an object.
1760 &quot;id&quot;: &quot;A String&quot;, # The ID of the access-control entry.
1761 &quot;kind&quot;: &quot;storage#objectAccessControl&quot;, # The kind of item this is. For object access control entries, this is always storage#objectAccessControl.
1762 &quot;object&quot;: &quot;A String&quot;, # The name of the object, if applied to an object.
1763 &quot;projectTeam&quot;: { # The project team associated with the entity, if any.
1764 &quot;projectNumber&quot;: &quot;A String&quot;, # The project number.
1765 &quot;team&quot;: &quot;A String&quot;, # The team.
1766 },
1767 &quot;role&quot;: &quot;A String&quot;, # The access permission for the entity.
1768 &quot;selfLink&quot;: &quot;A String&quot;, # The link to this access-control entry.
1769 },
1770 ],
1771 &quot;encryption&quot;: { # Encryption configuration for a bucket.
1772 &quot;customerManagedEncryptionEnforcementConfig&quot;: { # If set, the new objects created in this bucket must comply with this enforcement config. Changing this has no effect on existing objects; it applies to new objects only. If omitted, the new objects are allowed to be encrypted with Customer Managed Encryption type by default.
1773 &quot;effectiveTime&quot;: &quot;A String&quot;, # Server-determined value that indicates the time from which configuration was enforced and effective. This value is in RFC 3339 format.
1774 &quot;restrictionMode&quot;: &quot;A String&quot;, # Restriction mode for Customer-Managed Encryption Keys. Defaults to NotRestricted.
1775 },
1776 &quot;customerSuppliedEncryptionEnforcementConfig&quot;: { # If set, the new objects created in this bucket must comply with this enforcement config. Changing this has no effect on existing objects; it applies to new objects only. If omitted, the new objects are allowed to be encrypted with Customer Supplied Encryption type by default.
1777 &quot;effectiveTime&quot;: &quot;A String&quot;, # Server-determined value that indicates the time from which configuration was enforced and effective. This value is in RFC 3339 format.
1778 &quot;restrictionMode&quot;: &quot;A String&quot;, # Restriction mode for Customer-Supplied Encryption Keys. Defaults to NotRestricted.
1779 },
1780 &quot;defaultKmsKeyName&quot;: &quot;A String&quot;, # A Cloud KMS key that will be used to encrypt objects inserted into this bucket, if no encryption method is specified.
1781 &quot;googleManagedEncryptionEnforcementConfig&quot;: { # If set, the new objects created in this bucket must comply with this enforcement config. Changing this has no effect on existing objects; it applies to new objects only. If omitted, the new objects are allowed to be encrypted with Google Managed Encryption type by default.
1782 &quot;effectiveTime&quot;: &quot;A String&quot;, # Server-determined value that indicates the time from which configuration was enforced and effective. This value is in RFC 3339 format.
1783 &quot;restrictionMode&quot;: &quot;A String&quot;, # Restriction mode for Google-Managed Encryption Keys. Defaults to NotRestricted.
1784 },
1785 },
1786 &quot;etag&quot;: &quot;A String&quot;, # HTTP 1.1 Entity tag for the bucket.
1787 &quot;generation&quot;: &quot;A String&quot;, # The generation of this bucket.
1788 &quot;hardDeleteTime&quot;: &quot;A String&quot;, # The hard delete time of the bucket in RFC 3339 format.
1789 &quot;hierarchicalNamespace&quot;: { # The bucket&#x27;s hierarchical namespace configuration.
1790 &quot;enabled&quot;: True or False, # When set to true, hierarchical namespace is enabled for this bucket.
1791 },
1792 &quot;iamConfiguration&quot;: { # The bucket&#x27;s IAM configuration.
1793 &quot;bucketPolicyOnly&quot;: { # The bucket&#x27;s uniform bucket-level access configuration. The feature was formerly known as Bucket Policy Only. For backward compatibility, this field will be populated with identical information as the uniformBucketLevelAccess field. We recommend using the uniformBucketLevelAccess field to enable and disable the feature.
1794 &quot;enabled&quot;: True or False, # If set, access is controlled only by bucket-level or above IAM policies.
1795 &quot;lockedTime&quot;: &quot;A String&quot;, # The deadline for changing iamConfiguration.bucketPolicyOnly.enabled from true to false in RFC 3339 format. iamConfiguration.bucketPolicyOnly.enabled may be changed from true to false until the locked time, after which the field is immutable.
1796 },
1797 &quot;publicAccessPrevention&quot;: &quot;A String&quot;, # The bucket&#x27;s Public Access Prevention configuration. Currently, &#x27;inherited&#x27; and &#x27;enforced&#x27; are supported.
1798 &quot;uniformBucketLevelAccess&quot;: { # The bucket&#x27;s uniform bucket-level access configuration.
1799 &quot;enabled&quot;: True or False, # If set, access is controlled only by bucket-level or above IAM policies.
1800 &quot;lockedTime&quot;: &quot;A String&quot;, # The deadline for changing iamConfiguration.uniformBucketLevelAccess.enabled from true to false in RFC 3339 format. iamConfiguration.uniformBucketLevelAccess.enabled may be changed from true to false until the locked time, after which the field is immutable.
1801 },
1802 },
1803 &quot;id&quot;: &quot;A String&quot;, # The ID of the bucket. For buckets, the id and name properties are the same.
1804 &quot;ipFilter&quot;: { # The bucket&#x27;s IP filter configuration. Specifies the network sources that are allowed to access the operations on the bucket, as well as its underlying objects. Only enforced when the mode is set to &#x27;Enabled&#x27;.
1805 &quot;allowAllServiceAgentAccess&quot;: True or False, # Whether to allow all service agents to access the bucket regardless of the IP filter configuration.
1806 &quot;allowCrossOrgVpcs&quot;: True or False, # Whether to allow cross-org VPCs in the bucket&#x27;s IP filter configuration.
1807 &quot;mode&quot;: &quot;A String&quot;, # The mode of the IP filter. Valid values are &#x27;Enabled&#x27; and &#x27;Disabled&#x27;.
1808 &quot;publicNetworkSource&quot;: { # The public network source of the bucket&#x27;s IP filter.
1809 &quot;allowedIpCidrRanges&quot;: [ # The list of public IPv4, IPv6 cidr ranges that are allowed to access the bucket.
1810 &quot;A String&quot;,
1811 ],
1812 },
1813 &quot;vpcNetworkSources&quot;: [ # The list of [VPC network](https://cloud.google.com/vpc/docs/vpc) sources of the bucket&#x27;s IP filter.
1814 {
1815 &quot;allowedIpCidrRanges&quot;: [ # The list of IPv4, IPv6 cidr ranges subnetworks that are allowed to access the bucket.
1816 &quot;A String&quot;,
1817 ],
1818 &quot;network&quot;: &quot;A String&quot;, # Name of the network. Format: projects/{PROJECT_ID}/global/networks/{NETWORK_NAME}
1819 },
1820 ],
1821 },
1822 &quot;kind&quot;: &quot;storage#bucket&quot;, # The kind of item this is. For buckets, this is always storage#bucket.
1823 &quot;labels&quot;: { # User-provided labels, in key/value pairs.
1824 &quot;a_key&quot;: &quot;A String&quot;, # An individual label entry.
1825 },
1826 &quot;lifecycle&quot;: { # The bucket&#x27;s lifecycle configuration. See [Lifecycle Management](https://cloud.google.com/storage/docs/lifecycle) for more information.
1827 &quot;rule&quot;: [ # A lifecycle management rule, which is made of an action to take and the condition(s) under which the action will be taken.
1828 {
1829 &quot;action&quot;: { # The action to take.
1830 &quot;storageClass&quot;: &quot;A String&quot;, # Target storage class. Required iff the type of the action is SetStorageClass.
1831 &quot;type&quot;: &quot;A String&quot;, # Type of the action. Currently, only Delete, SetStorageClass, and AbortIncompleteMultipartUpload are supported.
1832 },
1833 &quot;condition&quot;: { # The condition(s) under which the action will be taken.
1834 &quot;age&quot;: 42, # Age of an object (in days). This condition is satisfied when an object reaches the specified age.
1835 &quot;createdBefore&quot;: &quot;A String&quot;, # A date in RFC 3339 format with only the date part (for instance, &quot;2013-01-15&quot;). This condition is satisfied when an object is created before midnight of the specified date in UTC.
1836 &quot;customTimeBefore&quot;: &quot;A String&quot;, # A date in RFC 3339 format with only the date part (for instance, &quot;2013-01-15&quot;). This condition is satisfied when the custom time on an object is before this date in UTC.
1837 &quot;daysSinceCustomTime&quot;: 42, # Number of days elapsed since the user-specified timestamp set on an object. The condition is satisfied if the days elapsed is at least this number. If no custom timestamp is specified on an object, the condition does not apply.
1838 &quot;daysSinceNoncurrentTime&quot;: 42, # Number of days elapsed since the noncurrent timestamp of an object. The condition is satisfied if the days elapsed is at least this number. This condition is relevant only for versioned objects. The value of the field must be a nonnegative integer. If it&#x27;s zero, the object version will become eligible for Lifecycle action as soon as it becomes noncurrent.
1839 &quot;isLive&quot;: True or False, # Relevant only for versioned objects. If the value is true, this condition matches live objects; if the value is false, it matches archived objects.
1840 &quot;matchesPattern&quot;: &quot;A String&quot;, # A regular expression that satisfies the RE2 syntax. This condition is satisfied when the name of the object matches the RE2 pattern. Note: This feature is currently in the &quot;Early Access&quot; launch stage and is only available to a whitelisted set of users; that means that this feature may be changed in backward-incompatible ways and that it is not guaranteed to be released.
1841 &quot;matchesPrefix&quot;: [ # List of object name prefixes. This condition will be satisfied when at least one of the prefixes exactly matches the beginning of the object name.
1842 &quot;A String&quot;,
1843 ],
1844 &quot;matchesStorageClass&quot;: [ # Objects having any of the storage classes specified by this condition will be matched. Values include MULTI_REGIONAL, REGIONAL, NEARLINE, COLDLINE, ARCHIVE, STANDARD, and DURABLE_REDUCED_AVAILABILITY.
1845 &quot;A String&quot;,
1846 ],
1847 &quot;matchesSuffix&quot;: [ # List of object name suffixes. This condition will be satisfied when at least one of the suffixes exactly matches the end of the object name.
1848 &quot;A String&quot;,
1849 ],
1850 &quot;noncurrentTimeBefore&quot;: &quot;A String&quot;, # A date in RFC 3339 format with only the date part (for instance, &quot;2013-01-15&quot;). This condition is satisfied when the noncurrent time on an object is before this date in UTC. This condition is relevant only for versioned objects.
1851 &quot;numNewerVersions&quot;: 42, # Relevant only for versioned objects. If the value is N, this condition is satisfied when there are at least N versions (including the live version) newer than this version of the object.
1852 &quot;sizeAboveBytes&quot;: &quot;A String&quot;, # Objects having a size greater than this value in bytes will be matched.
1853 &quot;sizeBelowBytes&quot;: &quot;A String&quot;, # Objects having a size less than this value in bytes will be matched.
1854 },
1855 },
1856 ],
1857 },
1858 &quot;location&quot;: &quot;A String&quot;, # The location of the bucket. Object data for objects in the bucket resides in physical storage within this region. Defaults to US. See the [Developer&#x27;s Guide](https://cloud.google.com/storage/docs/locations) for the authoritative list.
1859 &quot;locationType&quot;: &quot;A String&quot;, # The type of the bucket location.
1860 &quot;logging&quot;: { # The bucket&#x27;s logging configuration, which defines the destination bucket and optional name prefix for the current bucket&#x27;s logs.
1861 &quot;logBucket&quot;: &quot;A String&quot;, # The destination bucket where the current bucket&#x27;s logs should be placed.
1862 &quot;logObjectPrefix&quot;: &quot;A String&quot;, # A prefix for log object names.
1863 },
1864 &quot;metageneration&quot;: &quot;A String&quot;, # The metadata generation of this bucket.
1865 &quot;name&quot;: &quot;A String&quot;, # The name of the bucket.
1866 &quot;objectRetention&quot;: { # The bucket&#x27;s object retention config.
1867 &quot;mode&quot;: &quot;A String&quot;, # The bucket&#x27;s object retention mode. Can be Enabled.
1868 },
1869 &quot;owner&quot;: { # The owner of the bucket. This is always the project team&#x27;s owner group.
1870 &quot;entity&quot;: &quot;A String&quot;, # The entity, in the form project-owner-projectId.
1871 &quot;entityId&quot;: &quot;A String&quot;, # The ID for the entity.
1872 },
1873 &quot;projectNumber&quot;: &quot;A String&quot;, # The project number of the project the bucket belongs to.
1874 &quot;retentionPolicy&quot;: { # The bucket&#x27;s retention policy. The retention policy enforces a minimum retention time for all objects contained in the bucket, based on their creation time. Any attempt to overwrite or delete objects younger than the retention period will result in a PERMISSION_DENIED error. An unlocked retention policy can be modified or removed from the bucket via a storage.buckets.update operation. A locked retention policy cannot be removed or shortened in duration for the lifetime of the bucket. Attempting to remove or decrease period of a locked retention policy will result in a PERMISSION_DENIED error.
1875 &quot;effectiveTime&quot;: &quot;A String&quot;, # Server-determined value that indicates the time from which policy was enforced and effective. This value is in RFC 3339 format.
1876 &quot;isLocked&quot;: True or False, # Once locked, an object retention policy cannot be modified.
1877 &quot;retentionPeriod&quot;: &quot;A String&quot;, # The duration in seconds that objects need to be retained. Retention duration must be greater than zero and less than 100 years. Note that enforcement of retention periods less than a day is not guaranteed. Such periods should only be used for testing purposes.
1878 },
1879 &quot;rpo&quot;: &quot;A String&quot;, # The Recovery Point Objective (RPO) of this bucket. Set to ASYNC_TURBO to turn on Turbo Replication on a bucket.
1880 &quot;satisfiesPZI&quot;: True or False, # Reserved for future use.
1881 &quot;satisfiesPZS&quot;: True or False, # Reserved for future use.
1882 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this bucket.
1883 &quot;softDeletePolicy&quot;: { # The bucket&#x27;s soft delete policy, which defines the period of time that soft-deleted objects will be retained, and cannot be permanently deleted.
1884 &quot;effectiveTime&quot;: &quot;A String&quot;, # Server-determined value that indicates the time from which the policy, or one with a greater retention, was effective. This value is in RFC 3339 format.
1885 &quot;retentionDurationSeconds&quot;: &quot;A String&quot;, # The duration in seconds that soft-deleted objects in the bucket will be retained and cannot be permanently deleted.
1886 },
1887 &quot;softDeleteTime&quot;: &quot;A String&quot;, # The soft delete time of the bucket in RFC 3339 format.
1888 &quot;storageClass&quot;: &quot;A String&quot;, # The bucket&#x27;s default storage class, used whenever no storageClass is specified for a newly-created object. This defines how objects in the bucket are stored and determines the SLA and the cost of storage. Values include MULTI_REGIONAL, REGIONAL, STANDARD, NEARLINE, COLDLINE, ARCHIVE, and DURABLE_REDUCED_AVAILABILITY. If this value is not specified when the bucket is created, it will default to STANDARD. For more information, see [Storage Classes](https://cloud.google.com/storage/docs/storage-classes).
1889 &quot;timeCreated&quot;: &quot;A String&quot;, # The creation time of the bucket in RFC 3339 format.
1890 &quot;updated&quot;: &quot;A String&quot;, # The modification time of the bucket in RFC 3339 format.
1891 &quot;versioning&quot;: { # The bucket&#x27;s versioning configuration.
1892 &quot;enabled&quot;: True or False, # While set to true, versioning is fully enabled for this bucket.
1893 },
1894 &quot;website&quot;: { # The bucket&#x27;s website configuration, controlling how the service behaves when accessing bucket contents as a web site. See the [Static Website Examples](https://cloud.google.com/storage/docs/static-website) for more information.
1895 &quot;mainPageSuffix&quot;: &quot;A String&quot;, # If the requested object path is missing, the service will ensure the path has a trailing &#x27;/&#x27;, append this suffix, and attempt to retrieve the resulting object. This allows the creation of index.html objects to represent directory pages.
1896 &quot;notFoundPage&quot;: &quot;A String&quot;, # If the requested object path is missing, and any mainPageSuffix object is missing, if applicable, the service will return the named object from this bucket as the content for a 404 Not Found result.
1897 },
1898 }</pre>
1899 </div>
1900
1901 <div class="method">
1902 <code class="details" id="relocate">relocate(bucket, body=None)</code>
1903 <pre>Initiates a long-running Relocate Bucket operation on the specified bucket.
1904
1905 Args:
1906 bucket: string, Name of the bucket to be moved. (required)
1907 body: object, The request body.
1908 The object takes the form of:
1909
1910 { # A Relocate Bucket request.
1911 &quot;destinationCustomPlacementConfig&quot;: { # The bucket&#x27;s new custom placement configuration if relocating to a Custom Dual Region.
1912 &quot;dataLocations&quot;: [ # The list of regional locations in which data is placed.
1913 &quot;A String&quot;,
1914 ],
1915 },
1916 &quot;destinationKmsKeyName&quot;: &quot;A String&quot;, # Resource name of a Cloud KMS key, of the form projects/my-project/locations/global/keyRings/my-kr/cryptoKeys/my-key. If set, is used to encrypt all objects in the destination bucket.
1917 &quot;destinationLocation&quot;: &quot;A String&quot;, # The new location the bucket will be relocated to.
1918 &quot;validateOnly&quot;: True or False, # If true, validate the operation, but do not actually relocate the bucket.
1919 }
1920
1921
1922 Returns:
1923 An object of the form:
1924
1925 { # This resource represents a long-running operation that is the result of a network API call.
1926 &quot;done&quot;: True or False, # If the value is &quot;false&quot;, it means the operation is still in progress. If &quot;true&quot;, the operation is completed, and either &quot;error&quot; or &quot;response&quot; is available.
1927 &quot;error&quot;: { # The &quot;Status&quot; type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each &quot;Status&quot; message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
1928 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1929 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
1930 {
1931 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1932 },
1933 ],
1934 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English.
1935 },
1936 &quot;kind&quot;: &quot;storage#operation&quot;, # The kind of item this is. For operations, this is always storage#operation.
1937 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
1938 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1939 },
1940 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the &quot;name&quot; should be a resource name ending with &quot;operations/{operationId}&quot;.
1941 &quot;response&quot;: { # The normal response of the operation in case of success. If the original method returns no data on success, such as &quot;Delete&quot;, the response is google.protobuf.Empty. If the original method is standard Get/Create/Update, the response should be the resource. For other methods, the response should have the type &quot;XxxResponse&quot;, where &quot;Xxx&quot; is the original method name. For example, if the original method name is &quot;TakeSnapshot()&quot;, the inferred response type is &quot;TakeSnapshotResponse&quot;.
1942 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1943 },
1944 &quot;selfLink&quot;: &quot;A String&quot;, # The link to this long running operation.
1945 }</pre>
1946 </div>
1947
1948 <div class="method">
1949 <code class="details" id="restore">restore(bucket, generation, projection=None, userProject=None)</code>
1950 <pre>Restores a soft-deleted bucket.
1951
1952 Args:
1953 bucket: string, Name of a bucket. (required)
1954 generation: string, Generation of a bucket. (required)
1955 projection: string, Set of properties to return. Defaults to full.
1956 Allowed values
1957 full - Include all properties.
1958 noAcl - Omit owner, acl and defaultObjectAcl properties.
1959 userProject: string, The project to be billed for this request. Required for Requester Pays buckets.
1960
1961 Returns:
1962 An object of the form:
1963
1964 { # A bucket.
1965 &quot;acl&quot;: [ # Access controls on the bucket.
1966 { # An access-control entry.
1967 &quot;bucket&quot;: &quot;A String&quot;, # The name of the bucket.
1968 &quot;domain&quot;: &quot;A String&quot;, # The domain associated with the entity, if any.
1969 &quot;email&quot;: &quot;A String&quot;, # The email address associated with the entity, if any.
1970 &quot;entity&quot;: &quot;A String&quot;, # The entity holding the permission, in one of the following forms:
1971 # - user-userId
1972 # - user-email
1973 # - group-groupId
1974 # - group-email
1975 # - domain-domain
1976 # - project-team-projectId
1977 # - allUsers
1978 # - allAuthenticatedUsers Examples:
1979 # - The user [email protected] would be [email protected].
1980 # - The group [email protected] would be [email protected].
1981 # - To refer to all members of the Google Apps for Business domain example.com, the entity would be domain-example.com.
1982 &quot;entityId&quot;: &quot;A String&quot;, # The ID for the entity, if any.
1983 &quot;etag&quot;: &quot;A String&quot;, # HTTP 1.1 Entity tag for the access-control entry.
1984 &quot;id&quot;: &quot;A String&quot;, # The ID of the access-control entry.
1985 &quot;kind&quot;: &quot;storage#bucketAccessControl&quot;, # The kind of item this is. For bucket access control entries, this is always storage#bucketAccessControl.
1986 &quot;projectTeam&quot;: { # The project team associated with the entity, if any.
1987 &quot;projectNumber&quot;: &quot;A String&quot;, # The project number.
1988 &quot;team&quot;: &quot;A String&quot;, # The team.
1989 },
1990 &quot;role&quot;: &quot;A String&quot;, # The access permission for the entity.
1991 &quot;selfLink&quot;: &quot;A String&quot;, # The link to this access-control entry.
1992 },
1993 ],
1994 &quot;autoclass&quot;: { # The bucket&#x27;s Autoclass configuration.
1995 &quot;enabled&quot;: True or False, # Whether or not Autoclass is enabled on this bucket
1996 &quot;terminalStorageClass&quot;: &quot;A String&quot;, # The storage class that objects in the bucket eventually transition to if they are not read for a certain length of time. Valid values are NEARLINE and ARCHIVE.
1997 &quot;terminalStorageClassUpdateTime&quot;: &quot;A String&quot;, # A date and time in RFC 3339 format representing the time of the most recent update to &quot;terminalStorageClass&quot;.
1998 &quot;toggleTime&quot;: &quot;A String&quot;, # A date and time in RFC 3339 format representing the instant at which &quot;enabled&quot; was last toggled.
1999 },
2000 &quot;billing&quot;: { # The bucket&#x27;s billing configuration.
2001 &quot;requesterPays&quot;: True or False, # When set to true, Requester Pays is enabled for this bucket.
2002 },
2003 &quot;cors&quot;: [ # The bucket&#x27;s Cross-Origin Resource Sharing (CORS) configuration.
2004 {
2005 &quot;maxAgeSeconds&quot;: 42, # The value, in seconds, to return in the Access-Control-Max-Age header used in preflight responses.
2006 &quot;method&quot;: [ # The list of HTTP methods on which to include CORS response headers, (GET, OPTIONS, POST, etc) Note: &quot;*&quot; is permitted in the list of methods, and means &quot;any method&quot;.
2007 &quot;A String&quot;,
2008 ],
2009 &quot;origin&quot;: [ # The list of Origins eligible to receive CORS response headers. Note: &quot;*&quot; is permitted in the list of origins, and means &quot;any Origin&quot;.
2010 &quot;A String&quot;,
2011 ],
2012 &quot;responseHeader&quot;: [ # The list of HTTP headers other than the simple response headers to give permission for the user-agent to share across domains.
2013 &quot;A String&quot;,
2014 ],
2015 },
2016 ],
2017 &quot;customPlacementConfig&quot;: { # The bucket&#x27;s custom placement configuration for Custom Dual Regions.
2018 &quot;dataLocations&quot;: [ # The list of regional locations in which data is placed.
2019 &quot;A String&quot;,
2020 ],
2021 },
2022 &quot;defaultEventBasedHold&quot;: True or False, # The default value for event-based hold on newly created objects in this bucket. Event-based hold is a way to retain objects indefinitely until an event occurs, signified by the hold&#x27;s release. After being released, such objects will be subject to bucket-level retention (if any). One sample use case of this flag is for banks to hold loan documents for at least 3 years after loan is paid in full. Here, bucket-level retention is 3 years and the event is loan being paid in full. In this example, these objects will be held intact for any number of years until the event has occurred (event-based hold on the object is released) and then 3 more years after that. That means retention duration of the objects begins from the moment event-based hold transitioned from true to false. Objects under event-based hold cannot be deleted, overwritten or archived until the hold is removed.
2023 &quot;defaultObjectAcl&quot;: [ # Default access controls to apply to new objects when no ACL is provided.
2024 { # An access-control entry.
2025 &quot;bucket&quot;: &quot;A String&quot;, # The name of the bucket.
2026 &quot;domain&quot;: &quot;A String&quot;, # The domain associated with the entity, if any.
2027 &quot;email&quot;: &quot;A String&quot;, # The email address associated with the entity, if any.
2028 &quot;entity&quot;: &quot;A String&quot;, # The entity holding the permission, in one of the following forms:
2029 # - user-userId
2030 # - user-email
2031 # - group-groupId
2032 # - group-email
2033 # - domain-domain
2034 # - project-team-projectId
2035 # - allUsers
2036 # - allAuthenticatedUsers Examples:
2037 # - The user [email protected] would be [email protected].
2038 # - The group [email protected] would be [email protected].
2039 # - To refer to all members of the Google Apps for Business domain example.com, the entity would be domain-example.com.
2040 &quot;entityId&quot;: &quot;A String&quot;, # The ID for the entity, if any.
2041 &quot;etag&quot;: &quot;A String&quot;, # HTTP 1.1 Entity tag for the access-control entry.
2042 &quot;generation&quot;: &quot;A String&quot;, # The content generation of the object, if applied to an object.
2043 &quot;id&quot;: &quot;A String&quot;, # The ID of the access-control entry.
2044 &quot;kind&quot;: &quot;storage#objectAccessControl&quot;, # The kind of item this is. For object access control entries, this is always storage#objectAccessControl.
2045 &quot;object&quot;: &quot;A String&quot;, # The name of the object, if applied to an object.
2046 &quot;projectTeam&quot;: { # The project team associated with the entity, if any.
2047 &quot;projectNumber&quot;: &quot;A String&quot;, # The project number.
2048 &quot;team&quot;: &quot;A String&quot;, # The team.
2049 },
2050 &quot;role&quot;: &quot;A String&quot;, # The access permission for the entity.
2051 &quot;selfLink&quot;: &quot;A String&quot;, # The link to this access-control entry.
2052 },
2053 ],
2054 &quot;encryption&quot;: { # Encryption configuration for a bucket.
2055 &quot;customerManagedEncryptionEnforcementConfig&quot;: { # If set, the new objects created in this bucket must comply with this enforcement config. Changing this has no effect on existing objects; it applies to new objects only. If omitted, the new objects are allowed to be encrypted with Customer Managed Encryption type by default.
2056 &quot;effectiveTime&quot;: &quot;A String&quot;, # Server-determined value that indicates the time from which configuration was enforced and effective. This value is in RFC 3339 format.
2057 &quot;restrictionMode&quot;: &quot;A String&quot;, # Restriction mode for Customer-Managed Encryption Keys. Defaults to NotRestricted.
2058 },
2059 &quot;customerSuppliedEncryptionEnforcementConfig&quot;: { # If set, the new objects created in this bucket must comply with this enforcement config. Changing this has no effect on existing objects; it applies to new objects only. If omitted, the new objects are allowed to be encrypted with Customer Supplied Encryption type by default.
2060 &quot;effectiveTime&quot;: &quot;A String&quot;, # Server-determined value that indicates the time from which configuration was enforced and effective. This value is in RFC 3339 format.
2061 &quot;restrictionMode&quot;: &quot;A String&quot;, # Restriction mode for Customer-Supplied Encryption Keys. Defaults to NotRestricted.
2062 },
2063 &quot;defaultKmsKeyName&quot;: &quot;A String&quot;, # A Cloud KMS key that will be used to encrypt objects inserted into this bucket, if no encryption method is specified.
2064 &quot;googleManagedEncryptionEnforcementConfig&quot;: { # If set, the new objects created in this bucket must comply with this enforcement config. Changing this has no effect on existing objects; it applies to new objects only. If omitted, the new objects are allowed to be encrypted with Google Managed Encryption type by default.
2065 &quot;effectiveTime&quot;: &quot;A String&quot;, # Server-determined value that indicates the time from which configuration was enforced and effective. This value is in RFC 3339 format.
2066 &quot;restrictionMode&quot;: &quot;A String&quot;, # Restriction mode for Google-Managed Encryption Keys. Defaults to NotRestricted.
2067 },
2068 },
2069 &quot;etag&quot;: &quot;A String&quot;, # HTTP 1.1 Entity tag for the bucket.
2070 &quot;generation&quot;: &quot;A String&quot;, # The generation of this bucket.
2071 &quot;hardDeleteTime&quot;: &quot;A String&quot;, # The hard delete time of the bucket in RFC 3339 format.
2072 &quot;hierarchicalNamespace&quot;: { # The bucket&#x27;s hierarchical namespace configuration.
2073 &quot;enabled&quot;: True or False, # When set to true, hierarchical namespace is enabled for this bucket.
2074 },
2075 &quot;iamConfiguration&quot;: { # The bucket&#x27;s IAM configuration.
2076 &quot;bucketPolicyOnly&quot;: { # The bucket&#x27;s uniform bucket-level access configuration. The feature was formerly known as Bucket Policy Only. For backward compatibility, this field will be populated with identical information as the uniformBucketLevelAccess field. We recommend using the uniformBucketLevelAccess field to enable and disable the feature.
2077 &quot;enabled&quot;: True or False, # If set, access is controlled only by bucket-level or above IAM policies.
2078 &quot;lockedTime&quot;: &quot;A String&quot;, # The deadline for changing iamConfiguration.bucketPolicyOnly.enabled from true to false in RFC 3339 format. iamConfiguration.bucketPolicyOnly.enabled may be changed from true to false until the locked time, after which the field is immutable.
2079 },
2080 &quot;publicAccessPrevention&quot;: &quot;A String&quot;, # The bucket&#x27;s Public Access Prevention configuration. Currently, &#x27;inherited&#x27; and &#x27;enforced&#x27; are supported.
2081 &quot;uniformBucketLevelAccess&quot;: { # The bucket&#x27;s uniform bucket-level access configuration.
2082 &quot;enabled&quot;: True or False, # If set, access is controlled only by bucket-level or above IAM policies.
2083 &quot;lockedTime&quot;: &quot;A String&quot;, # The deadline for changing iamConfiguration.uniformBucketLevelAccess.enabled from true to false in RFC 3339 format. iamConfiguration.uniformBucketLevelAccess.enabled may be changed from true to false until the locked time, after which the field is immutable.
2084 },
2085 },
2086 &quot;id&quot;: &quot;A String&quot;, # The ID of the bucket. For buckets, the id and name properties are the same.
2087 &quot;ipFilter&quot;: { # The bucket&#x27;s IP filter configuration. Specifies the network sources that are allowed to access the operations on the bucket, as well as its underlying objects. Only enforced when the mode is set to &#x27;Enabled&#x27;.
2088 &quot;allowAllServiceAgentAccess&quot;: True or False, # Whether to allow all service agents to access the bucket regardless of the IP filter configuration.
2089 &quot;allowCrossOrgVpcs&quot;: True or False, # Whether to allow cross-org VPCs in the bucket&#x27;s IP filter configuration.
2090 &quot;mode&quot;: &quot;A String&quot;, # The mode of the IP filter. Valid values are &#x27;Enabled&#x27; and &#x27;Disabled&#x27;.
2091 &quot;publicNetworkSource&quot;: { # The public network source of the bucket&#x27;s IP filter.
2092 &quot;allowedIpCidrRanges&quot;: [ # The list of public IPv4, IPv6 cidr ranges that are allowed to access the bucket.
2093 &quot;A String&quot;,
2094 ],
2095 },
2096 &quot;vpcNetworkSources&quot;: [ # The list of [VPC network](https://cloud.google.com/vpc/docs/vpc) sources of the bucket&#x27;s IP filter.
2097 {
2098 &quot;allowedIpCidrRanges&quot;: [ # The list of IPv4, IPv6 cidr ranges subnetworks that are allowed to access the bucket.
2099 &quot;A String&quot;,
2100 ],
2101 &quot;network&quot;: &quot;A String&quot;, # Name of the network. Format: projects/{PROJECT_ID}/global/networks/{NETWORK_NAME}
2102 },
2103 ],
2104 },
2105 &quot;kind&quot;: &quot;storage#bucket&quot;, # The kind of item this is. For buckets, this is always storage#bucket.
2106 &quot;labels&quot;: { # User-provided labels, in key/value pairs.
2107 &quot;a_key&quot;: &quot;A String&quot;, # An individual label entry.
2108 },
2109 &quot;lifecycle&quot;: { # The bucket&#x27;s lifecycle configuration. See [Lifecycle Management](https://cloud.google.com/storage/docs/lifecycle) for more information.
2110 &quot;rule&quot;: [ # A lifecycle management rule, which is made of an action to take and the condition(s) under which the action will be taken.
2111 {
2112 &quot;action&quot;: { # The action to take.
2113 &quot;storageClass&quot;: &quot;A String&quot;, # Target storage class. Required iff the type of the action is SetStorageClass.
2114 &quot;type&quot;: &quot;A String&quot;, # Type of the action. Currently, only Delete, SetStorageClass, and AbortIncompleteMultipartUpload are supported.
2115 },
2116 &quot;condition&quot;: { # The condition(s) under which the action will be taken.
2117 &quot;age&quot;: 42, # Age of an object (in days). This condition is satisfied when an object reaches the specified age.
2118 &quot;createdBefore&quot;: &quot;A String&quot;, # A date in RFC 3339 format with only the date part (for instance, &quot;2013-01-15&quot;). This condition is satisfied when an object is created before midnight of the specified date in UTC.
2119 &quot;customTimeBefore&quot;: &quot;A String&quot;, # A date in RFC 3339 format with only the date part (for instance, &quot;2013-01-15&quot;). This condition is satisfied when the custom time on an object is before this date in UTC.
2120 &quot;daysSinceCustomTime&quot;: 42, # Number of days elapsed since the user-specified timestamp set on an object. The condition is satisfied if the days elapsed is at least this number. If no custom timestamp is specified on an object, the condition does not apply.
2121 &quot;daysSinceNoncurrentTime&quot;: 42, # Number of days elapsed since the noncurrent timestamp of an object. The condition is satisfied if the days elapsed is at least this number. This condition is relevant only for versioned objects. The value of the field must be a nonnegative integer. If it&#x27;s zero, the object version will become eligible for Lifecycle action as soon as it becomes noncurrent.
2122 &quot;isLive&quot;: True or False, # Relevant only for versioned objects. If the value is true, this condition matches live objects; if the value is false, it matches archived objects.
2123 &quot;matchesPattern&quot;: &quot;A String&quot;, # A regular expression that satisfies the RE2 syntax. This condition is satisfied when the name of the object matches the RE2 pattern. Note: This feature is currently in the &quot;Early Access&quot; launch stage and is only available to a whitelisted set of users; that means that this feature may be changed in backward-incompatible ways and that it is not guaranteed to be released.
2124 &quot;matchesPrefix&quot;: [ # List of object name prefixes. This condition will be satisfied when at least one of the prefixes exactly matches the beginning of the object name.
2125 &quot;A String&quot;,
2126 ],
2127 &quot;matchesStorageClass&quot;: [ # Objects having any of the storage classes specified by this condition will be matched. Values include MULTI_REGIONAL, REGIONAL, NEARLINE, COLDLINE, ARCHIVE, STANDARD, and DURABLE_REDUCED_AVAILABILITY.
2128 &quot;A String&quot;,
2129 ],
2130 &quot;matchesSuffix&quot;: [ # List of object name suffixes. This condition will be satisfied when at least one of the suffixes exactly matches the end of the object name.
2131 &quot;A String&quot;,
2132 ],
2133 &quot;noncurrentTimeBefore&quot;: &quot;A String&quot;, # A date in RFC 3339 format with only the date part (for instance, &quot;2013-01-15&quot;). This condition is satisfied when the noncurrent time on an object is before this date in UTC. This condition is relevant only for versioned objects.
2134 &quot;numNewerVersions&quot;: 42, # Relevant only for versioned objects. If the value is N, this condition is satisfied when there are at least N versions (including the live version) newer than this version of the object.
2135 &quot;sizeAboveBytes&quot;: &quot;A String&quot;, # Objects having a size greater than this value in bytes will be matched.
2136 &quot;sizeBelowBytes&quot;: &quot;A String&quot;, # Objects having a size less than this value in bytes will be matched.
2137 },
2138 },
2139 ],
2140 },
2141 &quot;location&quot;: &quot;A String&quot;, # The location of the bucket. Object data for objects in the bucket resides in physical storage within this region. Defaults to US. See the [Developer&#x27;s Guide](https://cloud.google.com/storage/docs/locations) for the authoritative list.
2142 &quot;locationType&quot;: &quot;A String&quot;, # The type of the bucket location.
2143 &quot;logging&quot;: { # The bucket&#x27;s logging configuration, which defines the destination bucket and optional name prefix for the current bucket&#x27;s logs.
2144 &quot;logBucket&quot;: &quot;A String&quot;, # The destination bucket where the current bucket&#x27;s logs should be placed.
2145 &quot;logObjectPrefix&quot;: &quot;A String&quot;, # A prefix for log object names.
2146 },
2147 &quot;metageneration&quot;: &quot;A String&quot;, # The metadata generation of this bucket.
2148 &quot;name&quot;: &quot;A String&quot;, # The name of the bucket.
2149 &quot;objectRetention&quot;: { # The bucket&#x27;s object retention config.
2150 &quot;mode&quot;: &quot;A String&quot;, # The bucket&#x27;s object retention mode. Can be Enabled.
2151 },
2152 &quot;owner&quot;: { # The owner of the bucket. This is always the project team&#x27;s owner group.
2153 &quot;entity&quot;: &quot;A String&quot;, # The entity, in the form project-owner-projectId.
2154 &quot;entityId&quot;: &quot;A String&quot;, # The ID for the entity.
2155 },
2156 &quot;projectNumber&quot;: &quot;A String&quot;, # The project number of the project the bucket belongs to.
2157 &quot;retentionPolicy&quot;: { # The bucket&#x27;s retention policy. The retention policy enforces a minimum retention time for all objects contained in the bucket, based on their creation time. Any attempt to overwrite or delete objects younger than the retention period will result in a PERMISSION_DENIED error. An unlocked retention policy can be modified or removed from the bucket via a storage.buckets.update operation. A locked retention policy cannot be removed or shortened in duration for the lifetime of the bucket. Attempting to remove or decrease period of a locked retention policy will result in a PERMISSION_DENIED error.
2158 &quot;effectiveTime&quot;: &quot;A String&quot;, # Server-determined value that indicates the time from which policy was enforced and effective. This value is in RFC 3339 format.
2159 &quot;isLocked&quot;: True or False, # Once locked, an object retention policy cannot be modified.
2160 &quot;retentionPeriod&quot;: &quot;A String&quot;, # The duration in seconds that objects need to be retained. Retention duration must be greater than zero and less than 100 years. Note that enforcement of retention periods less than a day is not guaranteed. Such periods should only be used for testing purposes.
2161 },
2162 &quot;rpo&quot;: &quot;A String&quot;, # The Recovery Point Objective (RPO) of this bucket. Set to ASYNC_TURBO to turn on Turbo Replication on a bucket.
2163 &quot;satisfiesPZI&quot;: True or False, # Reserved for future use.
2164 &quot;satisfiesPZS&quot;: True or False, # Reserved for future use.
2165 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this bucket.
2166 &quot;softDeletePolicy&quot;: { # The bucket&#x27;s soft delete policy, which defines the period of time that soft-deleted objects will be retained, and cannot be permanently deleted.
2167 &quot;effectiveTime&quot;: &quot;A String&quot;, # Server-determined value that indicates the time from which the policy, or one with a greater retention, was effective. This value is in RFC 3339 format.
2168 &quot;retentionDurationSeconds&quot;: &quot;A String&quot;, # The duration in seconds that soft-deleted objects in the bucket will be retained and cannot be permanently deleted.
2169 },
2170 &quot;softDeleteTime&quot;: &quot;A String&quot;, # The soft delete time of the bucket in RFC 3339 format.
2171 &quot;storageClass&quot;: &quot;A String&quot;, # The bucket&#x27;s default storage class, used whenever no storageClass is specified for a newly-created object. This defines how objects in the bucket are stored and determines the SLA and the cost of storage. Values include MULTI_REGIONAL, REGIONAL, STANDARD, NEARLINE, COLDLINE, ARCHIVE, and DURABLE_REDUCED_AVAILABILITY. If this value is not specified when the bucket is created, it will default to STANDARD. For more information, see [Storage Classes](https://cloud.google.com/storage/docs/storage-classes).
2172 &quot;timeCreated&quot;: &quot;A String&quot;, # The creation time of the bucket in RFC 3339 format.
2173 &quot;updated&quot;: &quot;A String&quot;, # The modification time of the bucket in RFC 3339 format.
2174 &quot;versioning&quot;: { # The bucket&#x27;s versioning configuration.
2175 &quot;enabled&quot;: True or False, # While set to true, versioning is fully enabled for this bucket.
2176 },
2177 &quot;website&quot;: { # The bucket&#x27;s website configuration, controlling how the service behaves when accessing bucket contents as a web site. See the [Static Website Examples](https://cloud.google.com/storage/docs/static-website) for more information.
2178 &quot;mainPageSuffix&quot;: &quot;A String&quot;, # If the requested object path is missing, the service will ensure the path has a trailing &#x27;/&#x27;, append this suffix, and attempt to retrieve the resulting object. This allows the creation of index.html objects to represent directory pages.
2179 &quot;notFoundPage&quot;: &quot;A String&quot;, # If the requested object path is missing, and any mainPageSuffix object is missing, if applicable, the service will return the named object from this bucket as the content for a 404 Not Found result.
2180 },
2181 }</pre>
2182 </div>
2183
2184 <div class="method">
2185 <code class="details" id="setIamPolicy">setIamPolicy(bucket, body=None, userProject=None)</code>
2186 <pre>Updates an IAM policy for the specified bucket.
2187
2188 Args:
2189 bucket: string, Name of a bucket. (required)
2190 body: object, The request body.
2191 The object takes the form of:
2192
2193 { # A bucket/object/managedFolder IAM policy.
2194 &quot;bindings&quot;: [ # An association between a role, which comes with a set of permissions, and members who may assume that role.
2195 {
2196 &quot;condition&quot;: { # Represents an expression text. Example: title: &quot;User account presence&quot; description: &quot;Determines whether the request has a user account&quot; expression: &quot;size(request.user) &gt; 0&quot; # The condition that is associated with this binding. NOTE: an unsatisfied condition will not allow user access via current binding. Different bindings, including their conditions, are examined independently.
2197 &quot;description&quot;: &quot;A String&quot;, # An optional description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
2198 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax. The application context of the containing message determines which well-known feature set of CEL is supported.
2199 &quot;location&quot;: &quot;A String&quot;, # An optional string indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
2200 &quot;title&quot;: &quot;A String&quot;, # An optional title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.
2201 },
2202 &quot;members&quot;: [ # A collection of identifiers for members who may assume the provided role. Recognized identifiers are as follows:
2203 # - allUsers - A special identifier that represents anyone on the internet; with or without a Google account.
2204 # - allAuthenticatedUsers - A special identifier that represents anyone who is authenticated with a Google account or a service account.
2205 # - user:emailid - An email address that represents a specific account. For example, user:[email protected] or user:[email protected].
2206 # - serviceAccount:emailid - An email address that represents a service account. For example, serviceAccount:[email protected] .
2207 # - group:emailid - An email address that represents a Google group. For example, group:[email protected].
2208 # - domain:domain - A Google Apps domain name that represents all the users of that domain. For example, domain:google.com or domain:example.com.
2209 # - projectOwner:projectid - Owners of the given project. For example, projectOwner:my-example-project
2210 # - projectEditor:projectid - Editors of the given project. For example, projectEditor:my-example-project
2211 # - projectViewer:projectid - Viewers of the given project. For example, projectViewer:my-example-project
2212 &quot;A String&quot;,
2213 ],
2214 &quot;role&quot;: &quot;A String&quot;, # The role to which members belong. Two types of roles are supported: new IAM roles, which grant permissions that do not map directly to those provided by ACLs, and legacy IAM roles, which do map directly to ACL permissions. All roles are of the format roles/storage.specificRole.
2215 # The new IAM roles are:
2216 # - roles/storage.admin - Full control of Google Cloud Storage resources.
2217 # - roles/storage.objectViewer - Read-Only access to Google Cloud Storage objects.
2218 # - roles/storage.objectCreator - Access to create objects in Google Cloud Storage.
2219 # - roles/storage.objectAdmin - Full control of Google Cloud Storage objects. The legacy IAM roles are:
2220 # - roles/storage.legacyObjectReader - Read-only access to objects without listing. Equivalent to an ACL entry on an object with the READER role.
2221 # - roles/storage.legacyObjectOwner - Read/write access to existing objects without listing. Equivalent to an ACL entry on an object with the OWNER role.
2222 # - roles/storage.legacyBucketReader - Read access to buckets with object listing. Equivalent to an ACL entry on a bucket with the READER role.
2223 # - roles/storage.legacyBucketWriter - Read access to buckets with object listing/creation/deletion. Equivalent to an ACL entry on a bucket with the WRITER role.
2224 # - roles/storage.legacyBucketOwner - Read and write access to existing buckets with object listing/creation/deletion. Equivalent to an ACL entry on a bucket with the OWNER role.
2225 },
2226 ],
2227 &quot;etag&quot;: &quot;A String&quot;, # HTTP 1.1 Entity tag for the policy.
2228 &quot;kind&quot;: &quot;storage#policy&quot;, # The kind of item this is. For policies, this is always storage#policy. This field is ignored on input.
2229 &quot;resourceId&quot;: &quot;A String&quot;, # The ID of the resource to which this policy belongs. Will be of the form projects/_/buckets/bucket for buckets, projects/_/buckets/bucket/objects/object for objects, and projects/_/buckets/bucket/managedFolders/managedFolder. A specific generation may be specified by appending #generationNumber to the end of the object name, e.g. projects/_/buckets/my-bucket/objects/data.txt#17. The current generation can be denoted with #0. This field is ignored on input.
2230 &quot;version&quot;: 42, # The IAM policy format version.
2231 }
2232
2233 userProject: string, The project to be billed for this request. Required for Requester Pays buckets.
2234
2235 Returns:
2236 An object of the form:
2237
2238 { # A bucket/object/managedFolder IAM policy.
2239 &quot;bindings&quot;: [ # An association between a role, which comes with a set of permissions, and members who may assume that role.
2240 {
2241 &quot;condition&quot;: { # Represents an expression text. Example: title: &quot;User account presence&quot; description: &quot;Determines whether the request has a user account&quot; expression: &quot;size(request.user) &gt; 0&quot; # The condition that is associated with this binding. NOTE: an unsatisfied condition will not allow user access via current binding. Different bindings, including their conditions, are examined independently.
2242 &quot;description&quot;: &quot;A String&quot;, # An optional description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
2243 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax. The application context of the containing message determines which well-known feature set of CEL is supported.
2244 &quot;location&quot;: &quot;A String&quot;, # An optional string indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
2245 &quot;title&quot;: &quot;A String&quot;, # An optional title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.
2246 },
2247 &quot;members&quot;: [ # A collection of identifiers for members who may assume the provided role. Recognized identifiers are as follows:
2248 # - allUsers - A special identifier that represents anyone on the internet; with or without a Google account.
2249 # - allAuthenticatedUsers - A special identifier that represents anyone who is authenticated with a Google account or a service account.
2250 # - user:emailid - An email address that represents a specific account. For example, user:[email protected] or user:[email protected].
2251 # - serviceAccount:emailid - An email address that represents a service account. For example, serviceAccount:[email protected] .
2252 # - group:emailid - An email address that represents a Google group. For example, group:[email protected].
2253 # - domain:domain - A Google Apps domain name that represents all the users of that domain. For example, domain:google.com or domain:example.com.
2254 # - projectOwner:projectid - Owners of the given project. For example, projectOwner:my-example-project
2255 # - projectEditor:projectid - Editors of the given project. For example, projectEditor:my-example-project
2256 # - projectViewer:projectid - Viewers of the given project. For example, projectViewer:my-example-project
2257 &quot;A String&quot;,
2258 ],
2259 &quot;role&quot;: &quot;A String&quot;, # The role to which members belong. Two types of roles are supported: new IAM roles, which grant permissions that do not map directly to those provided by ACLs, and legacy IAM roles, which do map directly to ACL permissions. All roles are of the format roles/storage.specificRole.
2260 # The new IAM roles are:
2261 # - roles/storage.admin - Full control of Google Cloud Storage resources.
2262 # - roles/storage.objectViewer - Read-Only access to Google Cloud Storage objects.
2263 # - roles/storage.objectCreator - Access to create objects in Google Cloud Storage.
2264 # - roles/storage.objectAdmin - Full control of Google Cloud Storage objects. The legacy IAM roles are:
2265 # - roles/storage.legacyObjectReader - Read-only access to objects without listing. Equivalent to an ACL entry on an object with the READER role.
2266 # - roles/storage.legacyObjectOwner - Read/write access to existing objects without listing. Equivalent to an ACL entry on an object with the OWNER role.
2267 # - roles/storage.legacyBucketReader - Read access to buckets with object listing. Equivalent to an ACL entry on a bucket with the READER role.
2268 # - roles/storage.legacyBucketWriter - Read access to buckets with object listing/creation/deletion. Equivalent to an ACL entry on a bucket with the WRITER role.
2269 # - roles/storage.legacyBucketOwner - Read and write access to existing buckets with object listing/creation/deletion. Equivalent to an ACL entry on a bucket with the OWNER role.
2270 },
2271 ],
2272 &quot;etag&quot;: &quot;A String&quot;, # HTTP 1.1 Entity tag for the policy.
2273 &quot;kind&quot;: &quot;storage#policy&quot;, # The kind of item this is. For policies, this is always storage#policy. This field is ignored on input.
2274 &quot;resourceId&quot;: &quot;A String&quot;, # The ID of the resource to which this policy belongs. Will be of the form projects/_/buckets/bucket for buckets, projects/_/buckets/bucket/objects/object for objects, and projects/_/buckets/bucket/managedFolders/managedFolder. A specific generation may be specified by appending #generationNumber to the end of the object name, e.g. projects/_/buckets/my-bucket/objects/data.txt#17. The current generation can be denoted with #0. This field is ignored on input.
2275 &quot;version&quot;: 42, # The IAM policy format version.
2276 }</pre>
2277 </div>
2278
2279 <div class="method">
2280 <code class="details" id="testIamPermissions">testIamPermissions(bucket, permissions, userProject=None)</code>
2281 <pre>Tests a set of permissions on the given bucket to see which, if any, are held by the caller.
2282
2283 Args:
2284 bucket: string, Name of a bucket. (required)
2285 permissions: string, Permissions to test. (required) (repeated)
2286 userProject: string, The project to be billed for this request. Required for Requester Pays buckets.
2287
2288 Returns:
2289 An object of the form:
2290
2291 { # A storage.(buckets|objects|managedFolders).testIamPermissions response.
2292 &quot;kind&quot;: &quot;storage#testIamPermissionsResponse&quot;, # The kind of item this is.
2293 &quot;permissions&quot;: [ # The permissions held by the caller. Permissions are always of the format storage.resource.capability, where resource is one of buckets, objects, or managedFolders. The supported permissions are as follows:
2294 # - storage.buckets.delete - Delete bucket.
2295 # - storage.buckets.get - Read bucket metadata.
2296 # - storage.buckets.getIamPolicy - Read bucket IAM policy.
2297 # - storage.buckets.create - Create bucket.
2298 # - storage.buckets.list - List buckets.
2299 # - storage.buckets.setIamPolicy - Update bucket IAM policy.
2300 # - storage.buckets.update - Update bucket metadata.
2301 # - storage.objects.delete - Delete object.
2302 # - storage.objects.get - Read object data and metadata.
2303 # - storage.objects.getIamPolicy - Read object IAM policy.
2304 # - storage.objects.create - Create object.
2305 # - storage.objects.list - List objects.
2306 # - storage.objects.setIamPolicy - Update object IAM policy.
2307 # - storage.objects.update - Update object metadata.
2308 # - storage.managedFolders.delete - Delete managed folder.
2309 # - storage.managedFolders.get - Read managed folder metadata.
2310 # - storage.managedFolders.getIamPolicy - Read managed folder IAM policy.
2311 # - storage.managedFolders.create - Create managed folder.
2312 # - storage.managedFolders.list - List managed folders.
2313 # - storage.managedFolders.setIamPolicy - Update managed folder IAM policy.
2314 &quot;A String&quot;,
2315 ],
2316 }</pre>
2317 </div>
2318
2319 <div class="method">
2320 <code class="details" id="update">update(bucket, body=None, ifMetagenerationMatch=None, ifMetagenerationNotMatch=None, predefinedAcl=None, predefinedDefaultObjectAcl=None, projection=None, userProject=None)</code>
2321 <pre>Updates a bucket. Changes to the bucket will be readable immediately after writing, but configuration changes may take time to propagate.
2322
2323 Args:
2324 bucket: string, Name of a bucket. (required)
2325 body: object, The request body.
2326 The object takes the form of:
2327
2328 { # A bucket.
2329 &quot;acl&quot;: [ # Access controls on the bucket.
2330 { # An access-control entry.
2331 &quot;bucket&quot;: &quot;A String&quot;, # The name of the bucket.
2332 &quot;domain&quot;: &quot;A String&quot;, # The domain associated with the entity, if any.
2333 &quot;email&quot;: &quot;A String&quot;, # The email address associated with the entity, if any.
2334 &quot;entity&quot;: &quot;A String&quot;, # The entity holding the permission, in one of the following forms:
2335 # - user-userId
2336 # - user-email
2337 # - group-groupId
2338 # - group-email
2339 # - domain-domain
2340 # - project-team-projectId
2341 # - allUsers
2342 # - allAuthenticatedUsers Examples:
2343 # - The user [email protected] would be [email protected].
2344 # - The group [email protected] would be [email protected].
2345 # - To refer to all members of the Google Apps for Business domain example.com, the entity would be domain-example.com.
2346 &quot;entityId&quot;: &quot;A String&quot;, # The ID for the entity, if any.
2347 &quot;etag&quot;: &quot;A String&quot;, # HTTP 1.1 Entity tag for the access-control entry.
2348 &quot;id&quot;: &quot;A String&quot;, # The ID of the access-control entry.
2349 &quot;kind&quot;: &quot;storage#bucketAccessControl&quot;, # The kind of item this is. For bucket access control entries, this is always storage#bucketAccessControl.
2350 &quot;projectTeam&quot;: { # The project team associated with the entity, if any.
2351 &quot;projectNumber&quot;: &quot;A String&quot;, # The project number.
2352 &quot;team&quot;: &quot;A String&quot;, # The team.
2353 },
2354 &quot;role&quot;: &quot;A String&quot;, # The access permission for the entity.
2355 &quot;selfLink&quot;: &quot;A String&quot;, # The link to this access-control entry.
2356 },
2357 ],
2358 &quot;autoclass&quot;: { # The bucket&#x27;s Autoclass configuration.
2359 &quot;enabled&quot;: True or False, # Whether or not Autoclass is enabled on this bucket
2360 &quot;terminalStorageClass&quot;: &quot;A String&quot;, # The storage class that objects in the bucket eventually transition to if they are not read for a certain length of time. Valid values are NEARLINE and ARCHIVE.
2361 &quot;terminalStorageClassUpdateTime&quot;: &quot;A String&quot;, # A date and time in RFC 3339 format representing the time of the most recent update to &quot;terminalStorageClass&quot;.
2362 &quot;toggleTime&quot;: &quot;A String&quot;, # A date and time in RFC 3339 format representing the instant at which &quot;enabled&quot; was last toggled.
2363 },
2364 &quot;billing&quot;: { # The bucket&#x27;s billing configuration.
2365 &quot;requesterPays&quot;: True or False, # When set to true, Requester Pays is enabled for this bucket.
2366 },
2367 &quot;cors&quot;: [ # The bucket&#x27;s Cross-Origin Resource Sharing (CORS) configuration.
2368 {
2369 &quot;maxAgeSeconds&quot;: 42, # The value, in seconds, to return in the Access-Control-Max-Age header used in preflight responses.
2370 &quot;method&quot;: [ # The list of HTTP methods on which to include CORS response headers, (GET, OPTIONS, POST, etc) Note: &quot;*&quot; is permitted in the list of methods, and means &quot;any method&quot;.
2371 &quot;A String&quot;,
2372 ],
2373 &quot;origin&quot;: [ # The list of Origins eligible to receive CORS response headers. Note: &quot;*&quot; is permitted in the list of origins, and means &quot;any Origin&quot;.
2374 &quot;A String&quot;,
2375 ],
2376 &quot;responseHeader&quot;: [ # The list of HTTP headers other than the simple response headers to give permission for the user-agent to share across domains.
2377 &quot;A String&quot;,
2378 ],
2379 },
2380 ],
2381 &quot;customPlacementConfig&quot;: { # The bucket&#x27;s custom placement configuration for Custom Dual Regions.
2382 &quot;dataLocations&quot;: [ # The list of regional locations in which data is placed.
2383 &quot;A String&quot;,
2384 ],
2385 },
2386 &quot;defaultEventBasedHold&quot;: True or False, # The default value for event-based hold on newly created objects in this bucket. Event-based hold is a way to retain objects indefinitely until an event occurs, signified by the hold&#x27;s release. After being released, such objects will be subject to bucket-level retention (if any). One sample use case of this flag is for banks to hold loan documents for at least 3 years after loan is paid in full. Here, bucket-level retention is 3 years and the event is loan being paid in full. In this example, these objects will be held intact for any number of years until the event has occurred (event-based hold on the object is released) and then 3 more years after that. That means retention duration of the objects begins from the moment event-based hold transitioned from true to false. Objects under event-based hold cannot be deleted, overwritten or archived until the hold is removed.
2387 &quot;defaultObjectAcl&quot;: [ # Default access controls to apply to new objects when no ACL is provided.
2388 { # An access-control entry.
2389 &quot;bucket&quot;: &quot;A String&quot;, # The name of the bucket.
2390 &quot;domain&quot;: &quot;A String&quot;, # The domain associated with the entity, if any.
2391 &quot;email&quot;: &quot;A String&quot;, # The email address associated with the entity, if any.
2392 &quot;entity&quot;: &quot;A String&quot;, # The entity holding the permission, in one of the following forms:
2393 # - user-userId
2394 # - user-email
2395 # - group-groupId
2396 # - group-email
2397 # - domain-domain
2398 # - project-team-projectId
2399 # - allUsers
2400 # - allAuthenticatedUsers Examples:
2401 # - The user [email protected] would be [email protected].
2402 # - The group [email protected] would be [email protected].
2403 # - To refer to all members of the Google Apps for Business domain example.com, the entity would be domain-example.com.
2404 &quot;entityId&quot;: &quot;A String&quot;, # The ID for the entity, if any.
2405 &quot;etag&quot;: &quot;A String&quot;, # HTTP 1.1 Entity tag for the access-control entry.
2406 &quot;generation&quot;: &quot;A String&quot;, # The content generation of the object, if applied to an object.
2407 &quot;id&quot;: &quot;A String&quot;, # The ID of the access-control entry.
2408 &quot;kind&quot;: &quot;storage#objectAccessControl&quot;, # The kind of item this is. For object access control entries, this is always storage#objectAccessControl.
2409 &quot;object&quot;: &quot;A String&quot;, # The name of the object, if applied to an object.
2410 &quot;projectTeam&quot;: { # The project team associated with the entity, if any.
2411 &quot;projectNumber&quot;: &quot;A String&quot;, # The project number.
2412 &quot;team&quot;: &quot;A String&quot;, # The team.
2413 },
2414 &quot;role&quot;: &quot;A String&quot;, # The access permission for the entity.
2415 &quot;selfLink&quot;: &quot;A String&quot;, # The link to this access-control entry.
2416 },
2417 ],
2418 &quot;encryption&quot;: { # Encryption configuration for a bucket.
2419 &quot;customerManagedEncryptionEnforcementConfig&quot;: { # If set, the new objects created in this bucket must comply with this enforcement config. Changing this has no effect on existing objects; it applies to new objects only. If omitted, the new objects are allowed to be encrypted with Customer Managed Encryption type by default.
2420 &quot;effectiveTime&quot;: &quot;A String&quot;, # Server-determined value that indicates the time from which configuration was enforced and effective. This value is in RFC 3339 format.
2421 &quot;restrictionMode&quot;: &quot;A String&quot;, # Restriction mode for Customer-Managed Encryption Keys. Defaults to NotRestricted.
2422 },
2423 &quot;customerSuppliedEncryptionEnforcementConfig&quot;: { # If set, the new objects created in this bucket must comply with this enforcement config. Changing this has no effect on existing objects; it applies to new objects only. If omitted, the new objects are allowed to be encrypted with Customer Supplied Encryption type by default.
2424 &quot;effectiveTime&quot;: &quot;A String&quot;, # Server-determined value that indicates the time from which configuration was enforced and effective. This value is in RFC 3339 format.
2425 &quot;restrictionMode&quot;: &quot;A String&quot;, # Restriction mode for Customer-Supplied Encryption Keys. Defaults to NotRestricted.
2426 },
2427 &quot;defaultKmsKeyName&quot;: &quot;A String&quot;, # A Cloud KMS key that will be used to encrypt objects inserted into this bucket, if no encryption method is specified.
2428 &quot;googleManagedEncryptionEnforcementConfig&quot;: { # If set, the new objects created in this bucket must comply with this enforcement config. Changing this has no effect on existing objects; it applies to new objects only. If omitted, the new objects are allowed to be encrypted with Google Managed Encryption type by default.
2429 &quot;effectiveTime&quot;: &quot;A String&quot;, # Server-determined value that indicates the time from which configuration was enforced and effective. This value is in RFC 3339 format.
2430 &quot;restrictionMode&quot;: &quot;A String&quot;, # Restriction mode for Google-Managed Encryption Keys. Defaults to NotRestricted.
2431 },
2432 },
2433 &quot;etag&quot;: &quot;A String&quot;, # HTTP 1.1 Entity tag for the bucket.
2434 &quot;generation&quot;: &quot;A String&quot;, # The generation of this bucket.
2435 &quot;hardDeleteTime&quot;: &quot;A String&quot;, # The hard delete time of the bucket in RFC 3339 format.
2436 &quot;hierarchicalNamespace&quot;: { # The bucket&#x27;s hierarchical namespace configuration.
2437 &quot;enabled&quot;: True or False, # When set to true, hierarchical namespace is enabled for this bucket.
2438 },
2439 &quot;iamConfiguration&quot;: { # The bucket&#x27;s IAM configuration.
2440 &quot;bucketPolicyOnly&quot;: { # The bucket&#x27;s uniform bucket-level access configuration. The feature was formerly known as Bucket Policy Only. For backward compatibility, this field will be populated with identical information as the uniformBucketLevelAccess field. We recommend using the uniformBucketLevelAccess field to enable and disable the feature.
2441 &quot;enabled&quot;: True or False, # If set, access is controlled only by bucket-level or above IAM policies.
2442 &quot;lockedTime&quot;: &quot;A String&quot;, # The deadline for changing iamConfiguration.bucketPolicyOnly.enabled from true to false in RFC 3339 format. iamConfiguration.bucketPolicyOnly.enabled may be changed from true to false until the locked time, after which the field is immutable.
2443 },
2444 &quot;publicAccessPrevention&quot;: &quot;A String&quot;, # The bucket&#x27;s Public Access Prevention configuration. Currently, &#x27;inherited&#x27; and &#x27;enforced&#x27; are supported.
2445 &quot;uniformBucketLevelAccess&quot;: { # The bucket&#x27;s uniform bucket-level access configuration.
2446 &quot;enabled&quot;: True or False, # If set, access is controlled only by bucket-level or above IAM policies.
2447 &quot;lockedTime&quot;: &quot;A String&quot;, # The deadline for changing iamConfiguration.uniformBucketLevelAccess.enabled from true to false in RFC 3339 format. iamConfiguration.uniformBucketLevelAccess.enabled may be changed from true to false until the locked time, after which the field is immutable.
2448 },
2449 },
2450 &quot;id&quot;: &quot;A String&quot;, # The ID of the bucket. For buckets, the id and name properties are the same.
2451 &quot;ipFilter&quot;: { # The bucket&#x27;s IP filter configuration. Specifies the network sources that are allowed to access the operations on the bucket, as well as its underlying objects. Only enforced when the mode is set to &#x27;Enabled&#x27;.
2452 &quot;allowAllServiceAgentAccess&quot;: True or False, # Whether to allow all service agents to access the bucket regardless of the IP filter configuration.
2453 &quot;allowCrossOrgVpcs&quot;: True or False, # Whether to allow cross-org VPCs in the bucket&#x27;s IP filter configuration.
2454 &quot;mode&quot;: &quot;A String&quot;, # The mode of the IP filter. Valid values are &#x27;Enabled&#x27; and &#x27;Disabled&#x27;.
2455 &quot;publicNetworkSource&quot;: { # The public network source of the bucket&#x27;s IP filter.
2456 &quot;allowedIpCidrRanges&quot;: [ # The list of public IPv4, IPv6 cidr ranges that are allowed to access the bucket.
2457 &quot;A String&quot;,
2458 ],
2459 },
2460 &quot;vpcNetworkSources&quot;: [ # The list of [VPC network](https://cloud.google.com/vpc/docs/vpc) sources of the bucket&#x27;s IP filter.
2461 {
2462 &quot;allowedIpCidrRanges&quot;: [ # The list of IPv4, IPv6 cidr ranges subnetworks that are allowed to access the bucket.
2463 &quot;A String&quot;,
2464 ],
2465 &quot;network&quot;: &quot;A String&quot;, # Name of the network. Format: projects/{PROJECT_ID}/global/networks/{NETWORK_NAME}
2466 },
2467 ],
2468 },
2469 &quot;kind&quot;: &quot;storage#bucket&quot;, # The kind of item this is. For buckets, this is always storage#bucket.
2470 &quot;labels&quot;: { # User-provided labels, in key/value pairs.
2471 &quot;a_key&quot;: &quot;A String&quot;, # An individual label entry.
2472 },
2473 &quot;lifecycle&quot;: { # The bucket&#x27;s lifecycle configuration. See [Lifecycle Management](https://cloud.google.com/storage/docs/lifecycle) for more information.
2474 &quot;rule&quot;: [ # A lifecycle management rule, which is made of an action to take and the condition(s) under which the action will be taken.
2475 {
2476 &quot;action&quot;: { # The action to take.
2477 &quot;storageClass&quot;: &quot;A String&quot;, # Target storage class. Required iff the type of the action is SetStorageClass.
2478 &quot;type&quot;: &quot;A String&quot;, # Type of the action. Currently, only Delete, SetStorageClass, and AbortIncompleteMultipartUpload are supported.
2479 },
2480 &quot;condition&quot;: { # The condition(s) under which the action will be taken.
2481 &quot;age&quot;: 42, # Age of an object (in days). This condition is satisfied when an object reaches the specified age.
2482 &quot;createdBefore&quot;: &quot;A String&quot;, # A date in RFC 3339 format with only the date part (for instance, &quot;2013-01-15&quot;). This condition is satisfied when an object is created before midnight of the specified date in UTC.
2483 &quot;customTimeBefore&quot;: &quot;A String&quot;, # A date in RFC 3339 format with only the date part (for instance, &quot;2013-01-15&quot;). This condition is satisfied when the custom time on an object is before this date in UTC.
2484 &quot;daysSinceCustomTime&quot;: 42, # Number of days elapsed since the user-specified timestamp set on an object. The condition is satisfied if the days elapsed is at least this number. If no custom timestamp is specified on an object, the condition does not apply.
2485 &quot;daysSinceNoncurrentTime&quot;: 42, # Number of days elapsed since the noncurrent timestamp of an object. The condition is satisfied if the days elapsed is at least this number. This condition is relevant only for versioned objects. The value of the field must be a nonnegative integer. If it&#x27;s zero, the object version will become eligible for Lifecycle action as soon as it becomes noncurrent.
2486 &quot;isLive&quot;: True or False, # Relevant only for versioned objects. If the value is true, this condition matches live objects; if the value is false, it matches archived objects.
2487 &quot;matchesPattern&quot;: &quot;A String&quot;, # A regular expression that satisfies the RE2 syntax. This condition is satisfied when the name of the object matches the RE2 pattern. Note: This feature is currently in the &quot;Early Access&quot; launch stage and is only available to a whitelisted set of users; that means that this feature may be changed in backward-incompatible ways and that it is not guaranteed to be released.
2488 &quot;matchesPrefix&quot;: [ # List of object name prefixes. This condition will be satisfied when at least one of the prefixes exactly matches the beginning of the object name.
2489 &quot;A String&quot;,
2490 ],
2491 &quot;matchesStorageClass&quot;: [ # Objects having any of the storage classes specified by this condition will be matched. Values include MULTI_REGIONAL, REGIONAL, NEARLINE, COLDLINE, ARCHIVE, STANDARD, and DURABLE_REDUCED_AVAILABILITY.
2492 &quot;A String&quot;,
2493 ],
2494 &quot;matchesSuffix&quot;: [ # List of object name suffixes. This condition will be satisfied when at least one of the suffixes exactly matches the end of the object name.
2495 &quot;A String&quot;,
2496 ],
2497 &quot;noncurrentTimeBefore&quot;: &quot;A String&quot;, # A date in RFC 3339 format with only the date part (for instance, &quot;2013-01-15&quot;). This condition is satisfied when the noncurrent time on an object is before this date in UTC. This condition is relevant only for versioned objects.
2498 &quot;numNewerVersions&quot;: 42, # Relevant only for versioned objects. If the value is N, this condition is satisfied when there are at least N versions (including the live version) newer than this version of the object.
2499 &quot;sizeAboveBytes&quot;: &quot;A String&quot;, # Objects having a size greater than this value in bytes will be matched.
2500 &quot;sizeBelowBytes&quot;: &quot;A String&quot;, # Objects having a size less than this value in bytes will be matched.
2501 },
2502 },
2503 ],
2504 },
2505 &quot;location&quot;: &quot;A String&quot;, # The location of the bucket. Object data for objects in the bucket resides in physical storage within this region. Defaults to US. See the [Developer&#x27;s Guide](https://cloud.google.com/storage/docs/locations) for the authoritative list.
2506 &quot;locationType&quot;: &quot;A String&quot;, # The type of the bucket location.
2507 &quot;logging&quot;: { # The bucket&#x27;s logging configuration, which defines the destination bucket and optional name prefix for the current bucket&#x27;s logs.
2508 &quot;logBucket&quot;: &quot;A String&quot;, # The destination bucket where the current bucket&#x27;s logs should be placed.
2509 &quot;logObjectPrefix&quot;: &quot;A String&quot;, # A prefix for log object names.
2510 },
2511 &quot;metageneration&quot;: &quot;A String&quot;, # The metadata generation of this bucket.
2512 &quot;name&quot;: &quot;A String&quot;, # The name of the bucket.
2513 &quot;objectRetention&quot;: { # The bucket&#x27;s object retention config.
2514 &quot;mode&quot;: &quot;A String&quot;, # The bucket&#x27;s object retention mode. Can be Enabled.
2515 },
2516 &quot;owner&quot;: { # The owner of the bucket. This is always the project team&#x27;s owner group.
2517 &quot;entity&quot;: &quot;A String&quot;, # The entity, in the form project-owner-projectId.
2518 &quot;entityId&quot;: &quot;A String&quot;, # The ID for the entity.
2519 },
2520 &quot;projectNumber&quot;: &quot;A String&quot;, # The project number of the project the bucket belongs to.
2521 &quot;retentionPolicy&quot;: { # The bucket&#x27;s retention policy. The retention policy enforces a minimum retention time for all objects contained in the bucket, based on their creation time. Any attempt to overwrite or delete objects younger than the retention period will result in a PERMISSION_DENIED error. An unlocked retention policy can be modified or removed from the bucket via a storage.buckets.update operation. A locked retention policy cannot be removed or shortened in duration for the lifetime of the bucket. Attempting to remove or decrease period of a locked retention policy will result in a PERMISSION_DENIED error.
2522 &quot;effectiveTime&quot;: &quot;A String&quot;, # Server-determined value that indicates the time from which policy was enforced and effective. This value is in RFC 3339 format.
2523 &quot;isLocked&quot;: True or False, # Once locked, an object retention policy cannot be modified.
2524 &quot;retentionPeriod&quot;: &quot;A String&quot;, # The duration in seconds that objects need to be retained. Retention duration must be greater than zero and less than 100 years. Note that enforcement of retention periods less than a day is not guaranteed. Such periods should only be used for testing purposes.
2525 },
2526 &quot;rpo&quot;: &quot;A String&quot;, # The Recovery Point Objective (RPO) of this bucket. Set to ASYNC_TURBO to turn on Turbo Replication on a bucket.
2527 &quot;satisfiesPZI&quot;: True or False, # Reserved for future use.
2528 &quot;satisfiesPZS&quot;: True or False, # Reserved for future use.
2529 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this bucket.
2530 &quot;softDeletePolicy&quot;: { # The bucket&#x27;s soft delete policy, which defines the period of time that soft-deleted objects will be retained, and cannot be permanently deleted.
2531 &quot;effectiveTime&quot;: &quot;A String&quot;, # Server-determined value that indicates the time from which the policy, or one with a greater retention, was effective. This value is in RFC 3339 format.
2532 &quot;retentionDurationSeconds&quot;: &quot;A String&quot;, # The duration in seconds that soft-deleted objects in the bucket will be retained and cannot be permanently deleted.
2533 },
2534 &quot;softDeleteTime&quot;: &quot;A String&quot;, # The soft delete time of the bucket in RFC 3339 format.
2535 &quot;storageClass&quot;: &quot;A String&quot;, # The bucket&#x27;s default storage class, used whenever no storageClass is specified for a newly-created object. This defines how objects in the bucket are stored and determines the SLA and the cost of storage. Values include MULTI_REGIONAL, REGIONAL, STANDARD, NEARLINE, COLDLINE, ARCHIVE, and DURABLE_REDUCED_AVAILABILITY. If this value is not specified when the bucket is created, it will default to STANDARD. For more information, see [Storage Classes](https://cloud.google.com/storage/docs/storage-classes).
2536 &quot;timeCreated&quot;: &quot;A String&quot;, # The creation time of the bucket in RFC 3339 format.
2537 &quot;updated&quot;: &quot;A String&quot;, # The modification time of the bucket in RFC 3339 format.
2538 &quot;versioning&quot;: { # The bucket&#x27;s versioning configuration.
2539 &quot;enabled&quot;: True or False, # While set to true, versioning is fully enabled for this bucket.
2540 },
2541 &quot;website&quot;: { # The bucket&#x27;s website configuration, controlling how the service behaves when accessing bucket contents as a web site. See the [Static Website Examples](https://cloud.google.com/storage/docs/static-website) for more information.
2542 &quot;mainPageSuffix&quot;: &quot;A String&quot;, # If the requested object path is missing, the service will ensure the path has a trailing &#x27;/&#x27;, append this suffix, and attempt to retrieve the resulting object. This allows the creation of index.html objects to represent directory pages.
2543 &quot;notFoundPage&quot;: &quot;A String&quot;, # If the requested object path is missing, and any mainPageSuffix object is missing, if applicable, the service will return the named object from this bucket as the content for a 404 Not Found result.
2544 },
2545 }
2546
2547 ifMetagenerationMatch: string, Makes the return of the bucket metadata conditional on whether the bucket&#x27;s current metageneration matches the given value.
2548 ifMetagenerationNotMatch: string, Makes the return of the bucket metadata conditional on whether the bucket&#x27;s current metageneration does not match the given value.
2549 predefinedAcl: string, Apply a predefined set of access controls to this bucket.
2550 Allowed values
2551 authenticatedRead - Project team owners get OWNER access, and allAuthenticatedUsers get READER access.
2552 private - Project team owners get OWNER access.
2553 projectPrivate - Project team members get access according to their roles.
2554 publicRead - Project team owners get OWNER access, and allUsers get READER access.
2555 publicReadWrite - Project team owners get OWNER access, and allUsers get WRITER access.
2556 predefinedDefaultObjectAcl: string, Apply a predefined set of default object access controls to this bucket.
2557 Allowed values
2558 authenticatedRead - Object owner gets OWNER access, and allAuthenticatedUsers get READER access.
2559 bucketOwnerFullControl - Object owner gets OWNER access, and project team owners get OWNER access.
2560 bucketOwnerRead - Object owner gets OWNER access, and project team owners get READER access.
2561 private - Object owner gets OWNER access.
2562 projectPrivate - Object owner gets OWNER access, and project team members get access according to their roles.
2563 publicRead - Object owner gets OWNER access, and allUsers get READER access.
2564 projection: string, Set of properties to return. Defaults to full.
2565 Allowed values
2566 full - Include all properties.
2567 noAcl - Omit owner, acl and defaultObjectAcl properties.
2568 userProject: string, The project to be billed for this request. Required for Requester Pays buckets.
2569
2570 Returns:
2571 An object of the form:
2572
2573 { # A bucket.
2574 &quot;acl&quot;: [ # Access controls on the bucket.
2575 { # An access-control entry.
2576 &quot;bucket&quot;: &quot;A String&quot;, # The name of the bucket.
2577 &quot;domain&quot;: &quot;A String&quot;, # The domain associated with the entity, if any.
2578 &quot;email&quot;: &quot;A String&quot;, # The email address associated with the entity, if any.
2579 &quot;entity&quot;: &quot;A String&quot;, # The entity holding the permission, in one of the following forms:
2580 # - user-userId
2581 # - user-email
2582 # - group-groupId
2583 # - group-email
2584 # - domain-domain
2585 # - project-team-projectId
2586 # - allUsers
2587 # - allAuthenticatedUsers Examples:
2588 # - The user [email protected] would be [email protected].
2589 # - The group [email protected] would be [email protected].
2590 # - To refer to all members of the Google Apps for Business domain example.com, the entity would be domain-example.com.
2591 &quot;entityId&quot;: &quot;A String&quot;, # The ID for the entity, if any.
2592 &quot;etag&quot;: &quot;A String&quot;, # HTTP 1.1 Entity tag for the access-control entry.
2593 &quot;id&quot;: &quot;A String&quot;, # The ID of the access-control entry.
2594 &quot;kind&quot;: &quot;storage#bucketAccessControl&quot;, # The kind of item this is. For bucket access control entries, this is always storage#bucketAccessControl.
2595 &quot;projectTeam&quot;: { # The project team associated with the entity, if any.
2596 &quot;projectNumber&quot;: &quot;A String&quot;, # The project number.
2597 &quot;team&quot;: &quot;A String&quot;, # The team.
2598 },
2599 &quot;role&quot;: &quot;A String&quot;, # The access permission for the entity.
2600 &quot;selfLink&quot;: &quot;A String&quot;, # The link to this access-control entry.
2601 },
2602 ],
2603 &quot;autoclass&quot;: { # The bucket&#x27;s Autoclass configuration.
2604 &quot;enabled&quot;: True or False, # Whether or not Autoclass is enabled on this bucket
2605 &quot;terminalStorageClass&quot;: &quot;A String&quot;, # The storage class that objects in the bucket eventually transition to if they are not read for a certain length of time. Valid values are NEARLINE and ARCHIVE.
2606 &quot;terminalStorageClassUpdateTime&quot;: &quot;A String&quot;, # A date and time in RFC 3339 format representing the time of the most recent update to &quot;terminalStorageClass&quot;.
2607 &quot;toggleTime&quot;: &quot;A String&quot;, # A date and time in RFC 3339 format representing the instant at which &quot;enabled&quot; was last toggled.
2608 },
2609 &quot;billing&quot;: { # The bucket&#x27;s billing configuration.
2610 &quot;requesterPays&quot;: True or False, # When set to true, Requester Pays is enabled for this bucket.
2611 },
2612 &quot;cors&quot;: [ # The bucket&#x27;s Cross-Origin Resource Sharing (CORS) configuration.
2613 {
2614 &quot;maxAgeSeconds&quot;: 42, # The value, in seconds, to return in the Access-Control-Max-Age header used in preflight responses.
2615 &quot;method&quot;: [ # The list of HTTP methods on which to include CORS response headers, (GET, OPTIONS, POST, etc) Note: &quot;*&quot; is permitted in the list of methods, and means &quot;any method&quot;.
2616 &quot;A String&quot;,
2617 ],
2618 &quot;origin&quot;: [ # The list of Origins eligible to receive CORS response headers. Note: &quot;*&quot; is permitted in the list of origins, and means &quot;any Origin&quot;.
2619 &quot;A String&quot;,
2620 ],
2621 &quot;responseHeader&quot;: [ # The list of HTTP headers other than the simple response headers to give permission for the user-agent to share across domains.
2622 &quot;A String&quot;,
2623 ],
2624 },
2625 ],
2626 &quot;customPlacementConfig&quot;: { # The bucket&#x27;s custom placement configuration for Custom Dual Regions.
2627 &quot;dataLocations&quot;: [ # The list of regional locations in which data is placed.
2628 &quot;A String&quot;,
2629 ],
2630 },
2631 &quot;defaultEventBasedHold&quot;: True or False, # The default value for event-based hold on newly created objects in this bucket. Event-based hold is a way to retain objects indefinitely until an event occurs, signified by the hold&#x27;s release. After being released, such objects will be subject to bucket-level retention (if any). One sample use case of this flag is for banks to hold loan documents for at least 3 years after loan is paid in full. Here, bucket-level retention is 3 years and the event is loan being paid in full. In this example, these objects will be held intact for any number of years until the event has occurred (event-based hold on the object is released) and then 3 more years after that. That means retention duration of the objects begins from the moment event-based hold transitioned from true to false. Objects under event-based hold cannot be deleted, overwritten or archived until the hold is removed.
2632 &quot;defaultObjectAcl&quot;: [ # Default access controls to apply to new objects when no ACL is provided.
2633 { # An access-control entry.
2634 &quot;bucket&quot;: &quot;A String&quot;, # The name of the bucket.
2635 &quot;domain&quot;: &quot;A String&quot;, # The domain associated with the entity, if any.
2636 &quot;email&quot;: &quot;A String&quot;, # The email address associated with the entity, if any.
2637 &quot;entity&quot;: &quot;A String&quot;, # The entity holding the permission, in one of the following forms:
2638 # - user-userId
2639 # - user-email
2640 # - group-groupId
2641 # - group-email
2642 # - domain-domain
2643 # - project-team-projectId
2644 # - allUsers
2645 # - allAuthenticatedUsers Examples:
2646 # - The user [email protected] would be [email protected].
2647 # - The group [email protected] would be [email protected].
2648 # - To refer to all members of the Google Apps for Business domain example.com, the entity would be domain-example.com.
2649 &quot;entityId&quot;: &quot;A String&quot;, # The ID for the entity, if any.
2650 &quot;etag&quot;: &quot;A String&quot;, # HTTP 1.1 Entity tag for the access-control entry.
2651 &quot;generation&quot;: &quot;A String&quot;, # The content generation of the object, if applied to an object.
2652 &quot;id&quot;: &quot;A String&quot;, # The ID of the access-control entry.
2653 &quot;kind&quot;: &quot;storage#objectAccessControl&quot;, # The kind of item this is. For object access control entries, this is always storage#objectAccessControl.
2654 &quot;object&quot;: &quot;A String&quot;, # The name of the object, if applied to an object.
2655 &quot;projectTeam&quot;: { # The project team associated with the entity, if any.
2656 &quot;projectNumber&quot;: &quot;A String&quot;, # The project number.
2657 &quot;team&quot;: &quot;A String&quot;, # The team.
2658 },
2659 &quot;role&quot;: &quot;A String&quot;, # The access permission for the entity.
2660 &quot;selfLink&quot;: &quot;A String&quot;, # The link to this access-control entry.
2661 },
2662 ],
2663 &quot;encryption&quot;: { # Encryption configuration for a bucket.
2664 &quot;customerManagedEncryptionEnforcementConfig&quot;: { # If set, the new objects created in this bucket must comply with this enforcement config. Changing this has no effect on existing objects; it applies to new objects only. If omitted, the new objects are allowed to be encrypted with Customer Managed Encryption type by default.
2665 &quot;effectiveTime&quot;: &quot;A String&quot;, # Server-determined value that indicates the time from which configuration was enforced and effective. This value is in RFC 3339 format.
2666 &quot;restrictionMode&quot;: &quot;A String&quot;, # Restriction mode for Customer-Managed Encryption Keys. Defaults to NotRestricted.
2667 },
2668 &quot;customerSuppliedEncryptionEnforcementConfig&quot;: { # If set, the new objects created in this bucket must comply with this enforcement config. Changing this has no effect on existing objects; it applies to new objects only. If omitted, the new objects are allowed to be encrypted with Customer Supplied Encryption type by default.
2669 &quot;effectiveTime&quot;: &quot;A String&quot;, # Server-determined value that indicates the time from which configuration was enforced and effective. This value is in RFC 3339 format.
2670 &quot;restrictionMode&quot;: &quot;A String&quot;, # Restriction mode for Customer-Supplied Encryption Keys. Defaults to NotRestricted.
2671 },
2672 &quot;defaultKmsKeyName&quot;: &quot;A String&quot;, # A Cloud KMS key that will be used to encrypt objects inserted into this bucket, if no encryption method is specified.
2673 &quot;googleManagedEncryptionEnforcementConfig&quot;: { # If set, the new objects created in this bucket must comply with this enforcement config. Changing this has no effect on existing objects; it applies to new objects only. If omitted, the new objects are allowed to be encrypted with Google Managed Encryption type by default.
2674 &quot;effectiveTime&quot;: &quot;A String&quot;, # Server-determined value that indicates the time from which configuration was enforced and effective. This value is in RFC 3339 format.
2675 &quot;restrictionMode&quot;: &quot;A String&quot;, # Restriction mode for Google-Managed Encryption Keys. Defaults to NotRestricted.
2676 },
2677 },
2678 &quot;etag&quot;: &quot;A String&quot;, # HTTP 1.1 Entity tag for the bucket.
2679 &quot;generation&quot;: &quot;A String&quot;, # The generation of this bucket.
2680 &quot;hardDeleteTime&quot;: &quot;A String&quot;, # The hard delete time of the bucket in RFC 3339 format.
2681 &quot;hierarchicalNamespace&quot;: { # The bucket&#x27;s hierarchical namespace configuration.
2682 &quot;enabled&quot;: True or False, # When set to true, hierarchical namespace is enabled for this bucket.
2683 },
2684 &quot;iamConfiguration&quot;: { # The bucket&#x27;s IAM configuration.
2685 &quot;bucketPolicyOnly&quot;: { # The bucket&#x27;s uniform bucket-level access configuration. The feature was formerly known as Bucket Policy Only. For backward compatibility, this field will be populated with identical information as the uniformBucketLevelAccess field. We recommend using the uniformBucketLevelAccess field to enable and disable the feature.
2686 &quot;enabled&quot;: True or False, # If set, access is controlled only by bucket-level or above IAM policies.
2687 &quot;lockedTime&quot;: &quot;A String&quot;, # The deadline for changing iamConfiguration.bucketPolicyOnly.enabled from true to false in RFC 3339 format. iamConfiguration.bucketPolicyOnly.enabled may be changed from true to false until the locked time, after which the field is immutable.
2688 },
2689 &quot;publicAccessPrevention&quot;: &quot;A String&quot;, # The bucket&#x27;s Public Access Prevention configuration. Currently, &#x27;inherited&#x27; and &#x27;enforced&#x27; are supported.
2690 &quot;uniformBucketLevelAccess&quot;: { # The bucket&#x27;s uniform bucket-level access configuration.
2691 &quot;enabled&quot;: True or False, # If set, access is controlled only by bucket-level or above IAM policies.
2692 &quot;lockedTime&quot;: &quot;A String&quot;, # The deadline for changing iamConfiguration.uniformBucketLevelAccess.enabled from true to false in RFC 3339 format. iamConfiguration.uniformBucketLevelAccess.enabled may be changed from true to false until the locked time, after which the field is immutable.
2693 },
2694 },
2695 &quot;id&quot;: &quot;A String&quot;, # The ID of the bucket. For buckets, the id and name properties are the same.
2696 &quot;ipFilter&quot;: { # The bucket&#x27;s IP filter configuration. Specifies the network sources that are allowed to access the operations on the bucket, as well as its underlying objects. Only enforced when the mode is set to &#x27;Enabled&#x27;.
2697 &quot;allowAllServiceAgentAccess&quot;: True or False, # Whether to allow all service agents to access the bucket regardless of the IP filter configuration.
2698 &quot;allowCrossOrgVpcs&quot;: True or False, # Whether to allow cross-org VPCs in the bucket&#x27;s IP filter configuration.
2699 &quot;mode&quot;: &quot;A String&quot;, # The mode of the IP filter. Valid values are &#x27;Enabled&#x27; and &#x27;Disabled&#x27;.
2700 &quot;publicNetworkSource&quot;: { # The public network source of the bucket&#x27;s IP filter.
2701 &quot;allowedIpCidrRanges&quot;: [ # The list of public IPv4, IPv6 cidr ranges that are allowed to access the bucket.
2702 &quot;A String&quot;,
2703 ],
2704 },
2705 &quot;vpcNetworkSources&quot;: [ # The list of [VPC network](https://cloud.google.com/vpc/docs/vpc) sources of the bucket&#x27;s IP filter.
2706 {
2707 &quot;allowedIpCidrRanges&quot;: [ # The list of IPv4, IPv6 cidr ranges subnetworks that are allowed to access the bucket.
2708 &quot;A String&quot;,
2709 ],
2710 &quot;network&quot;: &quot;A String&quot;, # Name of the network. Format: projects/{PROJECT_ID}/global/networks/{NETWORK_NAME}
2711 },
2712 ],
2713 },
2714 &quot;kind&quot;: &quot;storage#bucket&quot;, # The kind of item this is. For buckets, this is always storage#bucket.
2715 &quot;labels&quot;: { # User-provided labels, in key/value pairs.
2716 &quot;a_key&quot;: &quot;A String&quot;, # An individual label entry.
2717 },
2718 &quot;lifecycle&quot;: { # The bucket&#x27;s lifecycle configuration. See [Lifecycle Management](https://cloud.google.com/storage/docs/lifecycle) for more information.
2719 &quot;rule&quot;: [ # A lifecycle management rule, which is made of an action to take and the condition(s) under which the action will be taken.
2720 {
2721 &quot;action&quot;: { # The action to take.
2722 &quot;storageClass&quot;: &quot;A String&quot;, # Target storage class. Required iff the type of the action is SetStorageClass.
2723 &quot;type&quot;: &quot;A String&quot;, # Type of the action. Currently, only Delete, SetStorageClass, and AbortIncompleteMultipartUpload are supported.
2724 },
2725 &quot;condition&quot;: { # The condition(s) under which the action will be taken.
2726 &quot;age&quot;: 42, # Age of an object (in days). This condition is satisfied when an object reaches the specified age.
2727 &quot;createdBefore&quot;: &quot;A String&quot;, # A date in RFC 3339 format with only the date part (for instance, &quot;2013-01-15&quot;). This condition is satisfied when an object is created before midnight of the specified date in UTC.
2728 &quot;customTimeBefore&quot;: &quot;A String&quot;, # A date in RFC 3339 format with only the date part (for instance, &quot;2013-01-15&quot;). This condition is satisfied when the custom time on an object is before this date in UTC.
2729 &quot;daysSinceCustomTime&quot;: 42, # Number of days elapsed since the user-specified timestamp set on an object. The condition is satisfied if the days elapsed is at least this number. If no custom timestamp is specified on an object, the condition does not apply.
2730 &quot;daysSinceNoncurrentTime&quot;: 42, # Number of days elapsed since the noncurrent timestamp of an object. The condition is satisfied if the days elapsed is at least this number. This condition is relevant only for versioned objects. The value of the field must be a nonnegative integer. If it&#x27;s zero, the object version will become eligible for Lifecycle action as soon as it becomes noncurrent.
2731 &quot;isLive&quot;: True or False, # Relevant only for versioned objects. If the value is true, this condition matches live objects; if the value is false, it matches archived objects.
2732 &quot;matchesPattern&quot;: &quot;A String&quot;, # A regular expression that satisfies the RE2 syntax. This condition is satisfied when the name of the object matches the RE2 pattern. Note: This feature is currently in the &quot;Early Access&quot; launch stage and is only available to a whitelisted set of users; that means that this feature may be changed in backward-incompatible ways and that it is not guaranteed to be released.
2733 &quot;matchesPrefix&quot;: [ # List of object name prefixes. This condition will be satisfied when at least one of the prefixes exactly matches the beginning of the object name.
2734 &quot;A String&quot;,
2735 ],
2736 &quot;matchesStorageClass&quot;: [ # Objects having any of the storage classes specified by this condition will be matched. Values include MULTI_REGIONAL, REGIONAL, NEARLINE, COLDLINE, ARCHIVE, STANDARD, and DURABLE_REDUCED_AVAILABILITY.
2737 &quot;A String&quot;,
2738 ],
2739 &quot;matchesSuffix&quot;: [ # List of object name suffixes. This condition will be satisfied when at least one of the suffixes exactly matches the end of the object name.
2740 &quot;A String&quot;,
2741 ],
2742 &quot;noncurrentTimeBefore&quot;: &quot;A String&quot;, # A date in RFC 3339 format with only the date part (for instance, &quot;2013-01-15&quot;). This condition is satisfied when the noncurrent time on an object is before this date in UTC. This condition is relevant only for versioned objects.
2743 &quot;numNewerVersions&quot;: 42, # Relevant only for versioned objects. If the value is N, this condition is satisfied when there are at least N versions (including the live version) newer than this version of the object.
2744 &quot;sizeAboveBytes&quot;: &quot;A String&quot;, # Objects having a size greater than this value in bytes will be matched.
2745 &quot;sizeBelowBytes&quot;: &quot;A String&quot;, # Objects having a size less than this value in bytes will be matched.
2746 },
2747 },
2748 ],
2749 },
2750 &quot;location&quot;: &quot;A String&quot;, # The location of the bucket. Object data for objects in the bucket resides in physical storage within this region. Defaults to US. See the [Developer&#x27;s Guide](https://cloud.google.com/storage/docs/locations) for the authoritative list.
2751 &quot;locationType&quot;: &quot;A String&quot;, # The type of the bucket location.
2752 &quot;logging&quot;: { # The bucket&#x27;s logging configuration, which defines the destination bucket and optional name prefix for the current bucket&#x27;s logs.
2753 &quot;logBucket&quot;: &quot;A String&quot;, # The destination bucket where the current bucket&#x27;s logs should be placed.
2754 &quot;logObjectPrefix&quot;: &quot;A String&quot;, # A prefix for log object names.
2755 },
2756 &quot;metageneration&quot;: &quot;A String&quot;, # The metadata generation of this bucket.
2757 &quot;name&quot;: &quot;A String&quot;, # The name of the bucket.
2758 &quot;objectRetention&quot;: { # The bucket&#x27;s object retention config.
2759 &quot;mode&quot;: &quot;A String&quot;, # The bucket&#x27;s object retention mode. Can be Enabled.
2760 },
2761 &quot;owner&quot;: { # The owner of the bucket. This is always the project team&#x27;s owner group.
2762 &quot;entity&quot;: &quot;A String&quot;, # The entity, in the form project-owner-projectId.
2763 &quot;entityId&quot;: &quot;A String&quot;, # The ID for the entity.
2764 },
2765 &quot;projectNumber&quot;: &quot;A String&quot;, # The project number of the project the bucket belongs to.
2766 &quot;retentionPolicy&quot;: { # The bucket&#x27;s retention policy. The retention policy enforces a minimum retention time for all objects contained in the bucket, based on their creation time. Any attempt to overwrite or delete objects younger than the retention period will result in a PERMISSION_DENIED error. An unlocked retention policy can be modified or removed from the bucket via a storage.buckets.update operation. A locked retention policy cannot be removed or shortened in duration for the lifetime of the bucket. Attempting to remove or decrease period of a locked retention policy will result in a PERMISSION_DENIED error.
2767 &quot;effectiveTime&quot;: &quot;A String&quot;, # Server-determined value that indicates the time from which policy was enforced and effective. This value is in RFC 3339 format.
2768 &quot;isLocked&quot;: True or False, # Once locked, an object retention policy cannot be modified.
2769 &quot;retentionPeriod&quot;: &quot;A String&quot;, # The duration in seconds that objects need to be retained. Retention duration must be greater than zero and less than 100 years. Note that enforcement of retention periods less than a day is not guaranteed. Such periods should only be used for testing purposes.
2770 },
2771 &quot;rpo&quot;: &quot;A String&quot;, # The Recovery Point Objective (RPO) of this bucket. Set to ASYNC_TURBO to turn on Turbo Replication on a bucket.
2772 &quot;satisfiesPZI&quot;: True or False, # Reserved for future use.
2773 &quot;satisfiesPZS&quot;: True or False, # Reserved for future use.
2774 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this bucket.
2775 &quot;softDeletePolicy&quot;: { # The bucket&#x27;s soft delete policy, which defines the period of time that soft-deleted objects will be retained, and cannot be permanently deleted.
2776 &quot;effectiveTime&quot;: &quot;A String&quot;, # Server-determined value that indicates the time from which the policy, or one with a greater retention, was effective. This value is in RFC 3339 format.
2777 &quot;retentionDurationSeconds&quot;: &quot;A String&quot;, # The duration in seconds that soft-deleted objects in the bucket will be retained and cannot be permanently deleted.
2778 },
2779 &quot;softDeleteTime&quot;: &quot;A String&quot;, # The soft delete time of the bucket in RFC 3339 format.
2780 &quot;storageClass&quot;: &quot;A String&quot;, # The bucket&#x27;s default storage class, used whenever no storageClass is specified for a newly-created object. This defines how objects in the bucket are stored and determines the SLA and the cost of storage. Values include MULTI_REGIONAL, REGIONAL, STANDARD, NEARLINE, COLDLINE, ARCHIVE, and DURABLE_REDUCED_AVAILABILITY. If this value is not specified when the bucket is created, it will default to STANDARD. For more information, see [Storage Classes](https://cloud.google.com/storage/docs/storage-classes).
2781 &quot;timeCreated&quot;: &quot;A String&quot;, # The creation time of the bucket in RFC 3339 format.
2782 &quot;updated&quot;: &quot;A String&quot;, # The modification time of the bucket in RFC 3339 format.
2783 &quot;versioning&quot;: { # The bucket&#x27;s versioning configuration.
2784 &quot;enabled&quot;: True or False, # While set to true, versioning is fully enabled for this bucket.
2785 },
2786 &quot;website&quot;: { # The bucket&#x27;s website configuration, controlling how the service behaves when accessing bucket contents as a web site. See the [Static Website Examples](https://cloud.google.com/storage/docs/static-website) for more information.
2787 &quot;mainPageSuffix&quot;: &quot;A String&quot;, # If the requested object path is missing, the service will ensure the path has a trailing &#x27;/&#x27;, append this suffix, and attempt to retrieve the resulting object. This allows the creation of index.html objects to represent directory pages.
2788 &quot;notFoundPage&quot;: &quot;A String&quot;, # If the requested object path is missing, and any mainPageSuffix object is missing, if applicable, the service will return the named object from this bucket as the content for a 404 Not Found result.
2789 },
2790 }</pre>
2791 </div>
2792
2793 </body></html>