| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
| } | ||
| Encryption encryption = bucketPb.getEncryption(); | ||
| if (encryption != null && encryption.getDefaultKmsKeyName() != null && !encryption.getDefaultKmsKeyName().isEmpty()) { | ||
| builder.setDefaultKmsKeyName(encryption.getDefaultKmsKeyName()); |
| } | ||
|
|
||
| /** | ||
| * Returns the default Cloud KMS key to be applied to newly inserted objects in this bucket. |
|
We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for all the commit author(s) or Co-authors. If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google. |
Sorry, something went wrong.
|
CLAs look good, thanks! |
Sorry, something went wrong.
| .decode("H4sIAAAAAAAAAPNIzcnJV3DPz0/PSVVwzskvTVEILskvSkxPVQQA/LySchsAAAA="); | ||
| private static final Map<String, String> BUCKET_LABELS = ImmutableMap.of("label1", "value1"); | ||
| private static final String SERVICE_ACCOUNT_EMAIL = "gcloud-devel@gs-project-accounts.iam.gserviceaccount.com"; | ||
| private static final String KMS_KEY_NAME = ""; // use real KMS KEY associated to the test project. |
|
CLAs look good, thanks! |
Sorry, something went wrong.
| <dependency> | ||
| <groupId>com.google.apis</groupId> | ||
| <artifactId>google-api-services-storage</artifactId> | ||
| <version>v1-rev125-1.23.0</version> |
| } | ||
|
|
||
| @Override | ||
| public Builder setKmsKeyName(String kmsKeyName) { |
| * 'requester_pays' flag. | ||
| */ | ||
| @GcpLaunchStage.Alpha | ||
| public static BucketSourceOption userProject(String userProject) { |
| import java.util.List; | ||
| import java.util.Map; | ||
|
|
||
| import jdk.nashorn.internal.runtime.regexp.joni.exception.ValueException; |
|
@pongad and @garrettjonesgoogle, I realized yesterday afternoon that I confused myself on API surface for this feature in context of inserting an object with a KMS KeyName. On objects.insert kmsKeyName is set in request URL query parameters and only available in resource body post-operation. I updated the PR/design to use BlobTargetOption and BlobWriteOption and set setKmsKeyName in BlobInfo as a private method. More context and background on the operation: |
Sorry, something went wrong.
|
Oh dear I'm sorry I dropped the ball on this. We moved a bunch of files. Could you merge from master? There are some lint warnings that are worth fixing, but I'm fine fixing those in a separate PR. |
Sorry, something went wrong.
There was a problem hiding this comment.
One nit, but LGTM otherwise
Sorry, something went wrong.
| @Override | ||
| public Builder setDefaultKmsKeyName(String defaultKmsKeyName) { | ||
| this.defaultKmsKeyName = defaultKmsKeyName != null | ||
| ? new String(defaultKmsKeyName) : Data.<String>nullOf(String.class); |
|
@garrettjonesgoogle Do you also want to take a look? |
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM
Sorry, something went wrong.
|
All checks passed merging now. |
Sorry, something went wrong.
|
🎉 Thanks Frank, Michael and Garrett! |
Sorry, something went wrong.
🤖 I have created a release *beep* *boop* --- ## [2.38.2](https://togithub.com/googleapis/java-bigquery/compare/v2.38.1...v2.38.2) (2024-03-21) ### Dependencies * Update actions/checkout action ([#3190](https://togithub.com/googleapis/java-bigquery/issues/3190)) ([940e4f6](https://togithub.com/googleapis/java-bigquery/commit/940e4f6c656a2e0f1d2e4d6e08d42214d14fe125)) * Update arrow.version to v15.0.1 ([#3189](https://togithub.com/googleapis/java-bigquery/issues/3189)) ([fb6284e](https://togithub.com/googleapis/java-bigquery/commit/fb6284e94d4744bb4c8f9501751bf79e04a2429b)) * Update dependency com.google.api.grpc:proto-google-cloud-bigqueryconnection-v1 to v2.39.0 ([#3186](https://togithub.com/googleapis/java-bigquery/issues/3186)) ([9e705a1](https://togithub.com/googleapis/java-bigquery/commit/9e705a140ac6fc1d1d64674dc985c35955911667)) * Update dependency com.google.apis:google-api-services-bigquery to v2-rev20240229-2.0.0 ([#3188](https://togithub.com/googleapis/java-bigquery/issues/3188)) ([a018424](https://togithub.com/googleapis/java-bigquery/commit/a018424ccbf3c2c554d829c97e442f4813b2c764)) * Update dependency com.google.cloud:google-cloud-datacatalog-bom to v1.43.0 ([#3187](https://togithub.com/googleapis/java-bigquery/issues/3187)) ([497ff29](https://togithub.com/googleapis/java-bigquery/commit/497ff298d84e536161b112c6b1aa176d4d962a49)) * Update dependency com.google.cloud:sdk-platform-java-config to v3.28.1 ([#3196](https://togithub.com/googleapis/java-bigquery/issues/3196)) ([61f23a3](https://togithub.com/googleapis/java-bigquery/commit/61f23a35d2b5cbbd66ddf35b93709a5669b5b102)) * Update github/codeql-action action to v2.24.6 ([#3178](https://togithub.com/googleapis/java-bigquery/issues/3178)) ([8843cae](https://togithub.com/googleapis/java-bigquery/commit/8843cae621e1eede6b072b1347f2a68a36304bca)) * Update github/codeql-action action to v2.24.7 ([#3194](https://togithub.com/googleapis/java-bigquery/issues/3194)) ([2e2d730](https://togithub.com/googleapis/java-bigquery/commit/2e2d730de9e4e49f25c20de2cfe1ae38babef830)) * Update github/codeql-action action to v2.24.8 ([#3198](https://togithub.com/googleapis/java-bigquery/issues/3198)) ([bd81a56](https://togithub.com/googleapis/java-bigquery/commit/bd81a56a07c836abb05c1de0d42e9cd397920e99)) --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please).
🤖 I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please).
| Back | FazBrowse Home | New Git URL |
Original author: @rossjudson
cc: @danoscarmike @rossjudson
Expected work items: