Skip to content

Storage: pass predefinedDefaultObjectAcl on bucket creation #9295

@thoutenbos

Description

@thoutenbos

Is your feature request related to a problem? Please describe.
In the Bucket creation API it's allowed to pass a query parameter "predefinedDefaultObjectAcl" to set the default object ACL in the creation call of the bucket. In the current implementation of this library it's not possible to set this query parameter as it is hardcoded to only the (required) project.

https://github.com/googleapis/google-cloud-python/blob/master/storage/google/cloud/storage/bucket.py#L637

Describe the solution you'd like
Expose the optional query parameters in this library.

Describe alternatives you've considered
Updating the predefinedDefaultObjectAcl after bucket creation requires additional permissions on the bucket that should not be needed when setting this value directly on bucket creation.

Additional context
API Reference for bucket/insert
https://cloud.google.com/storage/docs/json_api/v1/buckets/insert

Metadata

Metadata

Assignees

Labels

api: storageIssues related to the Cloud Storage API.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions