Skip to content

feat(storage): add enterprise storage class constants - #18952

Open
chandra-siri wants to merge 2 commits into
googleapis:mainfrom
chandra-siri:feat/enterprise-storage-classes-constants
Open

chandra-siri wants to merge 2 commits into
googleapis:mainfrom
chandra-siri:feat/enterprise-storage-classes-constants

Conversation

@chandra-siri

Copy link
Copy Markdown
Contributor

Summary

Adds public storage class constants for Cloud Storage Enterprise Storage Classes (STANDARD_ENTERPRISE, STANDARD_FLEXBACKUP_ENTERPRISE, and LR_STANDARD_ENTERPRISE) in google/cloud/storage/constants.py:

  • google/cloud/storage/constants.py:
    • STANDARD_ENTERPRISE_STORAGE_CLASS = "STANDARD_ENTERPRISE"
    • STANDARD_FLEXBACKUP_ENTERPRISE_STORAGE_CLASS = "STANDARD_FLEXBACKUP_ENTERPRISE"
    • LR_STANDARD_ENTERPRISE_STORAGE_CLASS = "LR_STANDARD_ENTERPRISE"
  • Unit & System Tests: Adds unit tests (tests/unit/test_bucket.py, tests/unit/test_blob.py) and system tests (tests/system/test_bucket.py, tests/system/test_blob.py) using @pytest.mark.parametrize to verify bucket creation and blob storage class updates with the new Enterprise storage class constants.

Split from #18949 (Part 2 of 2: constants.py additions).

@chandra-siri
chandra-siri requested review from a team as code owners November 2, 2026 14:28

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces three new enterprise storage class constants (STANDARD_ENTERPRISE, STANDARD_FLEXBACKUP_ENTERPRISE, and LR_STANDARD_ENTERPRISE) to the Google Cloud Storage Python client. It also adds comprehensive unit and system tests to verify bucket creation, blob storage class updates, and property setters using these new constants. I have no feedback to provide.

@chandra-siri chandra-siri added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Nov 3, 2026
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Nov 3, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants