-
Notifications
You must be signed in to change notification settings - Fork 367
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Storage: Support bucket.location_type #732
Comments
@JesseLovelace could you add a few more details here? |
In absence of more details, I thought I'd add this suggestion in case it applies: bucket.getMetadata((err, metadata) => {
// metadata.locationType
}) |
@stephenplusplus that seems correct. Here is some more info to get you started. 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. Google Cloud Storage Python client library feature request: Add location type on bucket
|
Note: The current location type values are "MULTI_REGION", "REGION", and" DUAL_REGION", however these were supposed to be "multi-region", "region", and "dual-region". They will be changed in the API after a rollout on June 26 and that should also be reflected here. |
@JesseLovelace if this is changing what As far as supporting the |
Not quite, setStorageClass will and should still work, but the Regional and Multi-regional storage classes will be considered legacy/deprecated. The feature is already live, so if it works without a code change then including it in tests and documentation should be sufficient |
Location type is a new read-only field for buckets. This corresponds to internal bug 130187277.
The text was updated successfully, but these errors were encountered: