Skip to content

BigQuery lib. Add support for customer supplied encryptiion keys#2870

Merged
pongad merged 2 commits intogoogleapis:masterfrom
alexblyzn:master
Feb 8, 2018
Merged

BigQuery lib. Add support for customer supplied encryptiion keys#2870
pongad merged 2 commits intogoogleapis:masterfrom
alexblyzn:master

Conversation

@alexblyzn
Copy link
Copy Markdown

More details for this change in #2866

@alexblyzn alexblyzn requested a review from pongad as a code owner February 6, 2018 21:41
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Feb 6, 2018
@alexblyzn
Copy link
Copy Markdown
Author

I have integration tests for the change as well, but I don't have a good way to commit them. They require KMS key setup as dependency, it seems somewhat unreasonable to make everyone go through that setup if they want to run tests.

The tests:
alexblyzn@7a34991#diff-af63ea32c5525b76f3837bc5aa8e5a25

Copy link
Copy Markdown
Contributor

@pongad pongad left a comment

Choose a reason for hiding this comment

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

Thank you for the PR!

import static com.google.common.base.Preconditions.checkNotNull;

import com.google.api.services.bigquery.model.JobConfigurationTableCopy;
import com.google.cloud.bigquery.LoadJobConfiguration.Builder;

This comment was marked as spam.

This comment was marked as spam.

@@ -0,0 +1,99 @@
/*
* Copyright 2016 Google LLC

This comment was marked as spam.

This comment was marked as spam.

import java.io.Serializable;
import java.util.Objects;

public final class EncryptionConfiguration implements Serializable {

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

import com.google.cloud.bigquery.JobInfo.CreateDisposition;
import com.google.cloud.bigquery.JobInfo.WriteDisposition;
import com.google.cloud.bigquery.JobInfo.SchemaUpdateOption;
import com.google.cloud.bigquery.LoadJobConfiguration.Builder;

This comment was marked as spam.

This comment was marked as spam.

Copy link
Copy Markdown
Contributor

@pongad pongad left a comment

Choose a reason for hiding this comment

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

One more comment but LGTM otherwise. @garrettjonesgoogle do you want to take a look?

import java.io.Serializable;
import java.util.Objects;

public final class EncryptionConfiguration implements Serializable {

This comment was marked as spam.

import java.io.Serializable;
import java.util.Objects;

public final class EncryptionConfiguration implements Serializable {

This comment was marked as spam.

@alexblyzn
Copy link
Copy Markdown
Author

Is there anything else I need to change before you can accept the request?

@pongad pongad merged commit 3fb051f into googleapis:master Feb 8, 2018
chingor13 pushed a commit that referenced this pull request Feb 20, 2026
#2870)

* chore: Update generation configuration at Thu Feb 20 02:24:26 UTC 2025

* chore: Update generation configuration at Fri Feb 21 02:24:46 UTC 2025
suztomo pushed a commit that referenced this pull request Mar 9, 2026
lqiu96 pushed a commit that referenced this pull request Mar 20, 2026
#2870)

* chore: Update generation configuration at Thu Feb 20 02:24:26 UTC 2025

* chore: Update generation configuration at Fri Feb 21 02:24:46 UTC 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants