Skip to content

Storage: Support bucket.locationType #5442

@JesseLovelace

Description

@JesseLovelace

Location type is a new read-only field for buckets. This corresponds to internal bug 130187927.

Location type will be a new field added for Bucket resource. It will be populated on-the-fly for output path, and is a read-only field so patch/update/create will not have any effect on bucket resource.
Example

Google Cloud Storage Python client library feature request: Add location type on bucket

// Get bucket
storage_client = storage.Client()
bucket = storage_client.get_bucket("bucket-name")

// Get location type
location_type = bucket.location_type

// Request:
// GET https://www.googleapis.com/storage/v1/b/bucket-name?fields=locationType
// Response Body
// {
//   "locationType": "multi-region"
// }

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