Class: Google::Cloud::Bigquery::EncryptionConfiguration
- Inherits:
-
Object
- Object
- Google::Cloud::Bigquery::EncryptionConfiguration
- Defined in:
- lib/google/cloud/bigquery/encryption_configuration.rb
Overview
Encryption Configuration
A builder for BigQuery table encryption configurations, passed to block arguments to Dataset#create_table and Table#encryption_configuration.
Instance Method Summary collapse
-
#kms_key ⇒ String
The Cloud KMS encryption key that will be used to protect the table.
-
#kms_key=(new_kms_key_name) ⇒ Object
Set the Cloud KMS encryption key that will be used to protect the table.
Instance Method Details
#kms_key ⇒ String
The Cloud KMS encryption key that will be used to protect the table.
For example: projects/a/locations/b/keyRings/c/cryptoKeys/d
The default value is nil
, which means default encryption is used.
66 67 68 |
# File 'lib/google/cloud/bigquery/encryption_configuration.rb', line 66 def kms_key @gapi.kms_key_name end |
#kms_key=(new_kms_key_name) ⇒ Object
Set the Cloud KMS encryption key that will be used to protect the
table. For example: projects/a/locations/b/keyRings/c/cryptoKeys/d
The default value is nil
, which means default encryption is used.
84 85 86 87 |
# File 'lib/google/cloud/bigquery/encryption_configuration.rb', line 84 def kms_key= new_kms_key_name frozen_check! @gapi.kms_key_name = new_kms_key_name end |