googleapis / python-storage

Apache License 2.0
439 stars 151 forks source link

feat: Add support for `https://storage.googleapis.com/` URLs in `Blob.from_string()` #1336

Open holtskinner opened 1 month ago

holtskinner commented 1 month ago

Allow creating Blobs from https://storage.googleapis.com URLs.

Example:

Blob.from_string("https://storage.googleapis.com/bucket/object")

Fixes #1299

andrewsg commented 1 month ago

@holtskinner Sorry for the delay. I'm not sure this is safe for TPC users. We might need universe domain special casing. I will check.

holtskinner commented 1 month ago

@holtskinner Sorry for the delay. I'm not sure this is safe for TPC users. We might need universe domain special casing. I will check.

Note - TPC (Trusted Partner Cloud)? https://www.businessinsider.com/google-cloud-europe-asia-data-sovereignty-gdpr-trusted-partner-cloud-2022-9


Could you provide more context on how this is affected? @andrewsg