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.
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.
65 66 67 |
# File 'lib/google/cloud/bigquery/encryption_configuration.rb', line 65 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.
83 84 85 86 |
# File 'lib/google/cloud/bigquery/encryption_configuration.rb', line 83 def kms_key= new_kms_key_name frozen_check! @gapi.kms_key_name = new_kms_key_name end |