Skip to content
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

fix: update bucket creation to set project as bucket.project #1912

Merged
merged 1 commit into from
Mar 28, 2023

Conversation

BenWhitehead
Copy link
Collaborator

Creation of a bucket is modifying which field is used to specify the project a bucket is associated with. Changing from parent to bucket.project. This change updates our handling to use this new field.

The existing parent is set to the sentinel value projects/_ which was previously only implicitly found in the bucket name.

Update testbench tag to v0.35.0 which includes the new field behavior.

ApiaryConversions have been updated to track the project attribute when cross converting as the property .x_project; this value should avoid any possible collision if the field name project is supported in the future while the client is operating in this intervening time. If/when StorageObject receives its own project field we should switch to using it.

Fix associated with b/254678990

This PR is a preemptive fix for the change which will rollout to fix http://b/254678990

@BenWhitehead BenWhitehead added the owlbot:ignore instruct owl-bot to ignore a PR label Feb 21, 2023
@product-auto-label product-auto-label bot added size: s Pull request size is small. api: storage Issues related to the googleapis/java-storage API. labels Feb 21, 2023
Creation of a bucket is modifying which field is used to specify the project a bucket
is associated with. Changing from `parent` to `bucket.project`. This change updates
our handling to use this new field.

The existing `parent` is set to the sentinel value `projects/_` which was previously
only implicitly found in the bucket name.

Update testbench tag to v0.35.0 which includes the new field behavior.

ApiaryConversions have been updated to track the project attribute when cross converting
as the property `.x_project`; this value should avoid any possible collision if the field
name project is supported in the future while the client is operating in this intervening
time. If/when StorageObject receives its own project field we should switch to using it.

Fix associated with b/254678990
@BenWhitehead BenWhitehead marked this pull request as ready for review March 28, 2023 17:25
@BenWhitehead BenWhitehead requested a review from a team as a code owner March 28, 2023 17:25
@BenWhitehead BenWhitehead merged commit 65993c0 into main Mar 28, 2023
@BenWhitehead BenWhitehead deleted the fix/b/254678990 branch March 28, 2023 17:45
gcf-merge-on-green bot pushed a commit that referenced this pull request Apr 4, 2023
🤖 I have created a release *beep* *boop*
---


## [2.21.0](https://togithub.com/googleapis/java-storage/compare/v2.20.2...v2.21.0) (2023-03-31)


### Features

* Remove Bucket.retention_period, now that we've migrated to retention_duration ([#1955](https://togithub.com/googleapis/java-storage/issues/1955)) ([c0ffe7c](https://togithub.com/googleapis/java-storage/commit/c0ffe7c7cb50181cc375a945b9e79f97da9aa290))


### Bug Fixes

* Update bucket creation to set project as `bucket.project` ([#1912](https://togithub.com/googleapis/java-storage/issues/1912)) ([65993c0](https://togithub.com/googleapis/java-storage/commit/65993c0614987b96962ff28404de2aaea4ee679d))


### Dependencies

* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.6.0 ([#1957](https://togithub.com/googleapis/java-storage/issues/1957)) ([af90f16](https://togithub.com/googleapis/java-storage/commit/af90f162ac038479a0f09fb45289b1aa258d1aec))
* Update dependency net.jqwik:jqwik to v1.7.3 ([#1944](https://togithub.com/googleapis/java-storage/issues/1944)) ([a8b96c9](https://togithub.com/googleapis/java-storage/commit/a8b96c9a2da7fbdf9de5e15e833058117570c24e))


### Documentation

* Revert ChecksummedData message definition not to specify ctype=CORD, ([#1960](https://togithub.com/googleapis/java-storage/issues/1960)) ([3a2a643](https://togithub.com/googleapis/java-storage/commit/3a2a643ff389741efaad244bbabf494dcd9a799b))
* Updated ChecksummedData message definition to specify ctype=CORD, and removed incorrect earlier attempt that set that annotation in the ReadObjectResponse message definition ([#1959](https://togithub.com/googleapis/java-storage/issues/1959)) ([3d97bdd](https://togithub.com/googleapis/java-storage/commit/3d97bddc668deb2059261260125f94c6e32aac76))

---
This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please).
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. owlbot:ignore instruct owl-bot to ignore a PR size: s Pull request size is small.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants