Skip to content

samples(storagecontrol): add AnywhereCache samples #3123

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

Draft
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

BenWhitehead
Copy link
Collaborator

  • storage_control_create_anywhere_cache
  • storage_control_disable_anywhere_cache
  • storage_control_get_anywhere_cache
  • storage_control_list_anywhere_cache
  • storage_control_pause_anywhere_cache
  • storage_control_resume_anywhere_cache
  • storage_control_update_anywhere_cache

Port of googleapis/google-cloud-cpp#15134

* Centralize environment variables resolution in new Env utility class
* Leverage StorageITRunner and associated fixtures
* Condense PubSubNotification test classes into one class that can all share a topic
* Replace usages of the word file with blob (GCS doesn't have files, and our library always presents Blob as its name for a gcs object)
* Use TemporaryBucket for tests which depend on specific bucket state.
  1. Avoids contention between tests trying to change bucket state
  2. Avoids the "too many bucket modifications" error from gcs due to bucket mutations
  3. Makes it possible, for running tests in parallel in the future
* Update samples to apply try-with-resource to TransferManager and Storage instances
* Avoid using syntax classes in tests (use storage.x(blob) instead of blob.x())
* Add ITCleanupOldBucketsTest
* storage_control_create_anywhere_cache
* storage_control_disable_anywhere_cache
* storage_control_get_anywhere_cache
* storage_control_list_anywhere_cache
* storage_control_pause_anywhere_cache
* storage_control_resume_anywhere_cache
* storage_control_update_anywhere_cache
@product-auto-label product-auto-label bot added size: l Pull request size is large. api: storage Issues related to the googleapis/java-storage API. samples Issues that are directly related to samples. labels May 28, 2025
@BenWhitehead BenWhitehead changed the title samples: add AnywhereCache samples samples(storagecontrol): add AnywhereCache samples May 28, 2025
Base automatically changed from samples-fixup/02/use-storage-it-runner to main May 28, 2025 20:14
@ddelgrosso1
Copy link
Contributor

Thanks, looks good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: storage Issues related to the googleapis/java-storage API. samples Issues that are directly related to samples. size: l Pull request size is large.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants