-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reorganize howto guides into sections. Add links to relevant methods.
- Loading branch information
Showing
6 changed files
with
153 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
Using Customer Managed Encryption Keys | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
Table data is always encrypted at rest, but BigQuery also provides a way for | ||
you to control what keys it uses to encrypt they data. See `Protecting data | ||
with Cloud KMS keys | ||
<https://cloud.google.com/bigquery/docs/customer-managed-encryption>`_ | ||
in the BigQuery documentation for more details. | ||
|
||
Create a new table, using a customer-managed encryption key from | ||
Cloud KMS to encrypt it. | ||
|
||
.. literalinclude:: ../snippets.py | ||
:language: python | ||
:dedent: 4 | ||
:start-after: [START bigquery_create_table_cmek] | ||
:end-before: [END bigquery_create_table_cmek] | ||
|
||
Change the key used to encrypt a table. | ||
|
||
.. literalinclude:: ../snippets.py | ||
:language: python | ||
:dedent: 4 | ||
:start-after: [START bigquery_update_table_cmek] | ||
:end-before: [END bigquery_update_table_cmek] | ||
|
||
Load a file from Cloud Storage, using a customer-managed encryption key from | ||
Cloud KMS for the destination table. | ||
|
||
.. literalinclude:: ../snippets.py | ||
:language: python | ||
:dedent: 4 | ||
:start-after: [START bigquery_load_table_gcs_json_cmek] | ||
:end-before: [END bigquery_load_table_gcs_json_cmek] | ||
|
||
Copy a table, using a customer-managed encryption key from Cloud KMS for the | ||
destination table. | ||
|
||
.. literalinclude:: ../snippets.py | ||
:language: python | ||
:dedent: 4 | ||
:start-after: [START bigquery_copy_table_cmek] | ||
:end-before: [END bigquery_copy_table_cmek] | ||
|
||
Write query results to a table, using a customer-managed encryption key from | ||
Cloud KMS for the destination table. | ||
|
||
.. literalinclude:: ../snippets.py | ||
:language: python | ||
:dedent: 4 | ||
:start-after: [START bigquery_query_destination_table_cmek] | ||
:end-before: [END bigquery_query_destination_table_cmek] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
Jobs | ||
~~~~ | ||
Managing Jobs | ||
~~~~~~~~~~~~~ | ||
|
||
List jobs for a project | ||
^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
Queries | ||
~~~~~~~ | ||
Running Queries | ||
~~~~~~~~~~~~~~~ | ||
|
||
Querying data | ||
^^^^^^^^^^^^^ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.