class Google::Cloud::Bigquery::EncryptionConfiguration


end
updater.encryption = encrypt_config
table = dataset.create_table “my_table” do |updater|
encrypt_config = bigquery.encryption kms_key: key_name
key_name = “projects/a/locations/b/keyRings/c/cryptoKeys/d”
dataset = bigquery.dataset “my_dataset”
bigquery = Google::Cloud::Bigquery.new
require “google/cloud/bigquery”
@example
Protecting Data with Cloud KMS Keys
@see cloud.google.com/bigquery/docs/customer-managed-encryption<br><br>arguments to {Dataset#create_table} and {Table#encryption}.
A builder for BigQuery table encryption configurations, passed to block
# Encryption Configuration
#

def self.from_gapi gapi

Other tags:
    Private: - Google API Client object.
def self.from_gapi gapi
  new_config = new
  new_config.instance_variable_set :@gapi, gapi
  new_config
end

def == other

Other tags:
    Private: -
def == other
  return false unless other.is_a? EncryptionConfiguration
  to_gapi.to_json == other.to_gapi.to_json
end

def changed?

Other tags:
    Private: -
def changed?
  return false if frozen?
  @original_json != @gapi.to_json
end

def frozen_check!

def frozen_check!
  return unless frozen?
  raise ArgumentError, "Cannot modify a frozen encryption configuration"
end

def initialize

Other tags:
    Private: - Create an empty EncryptionConfiguration object.
def initialize
  @gapi = Google::Apis::BigqueryV2::EncryptionConfiguration.new
end

def kms_key

Returns:
  • (String) -
def kms_key
  @gapi.kms_key_name
end

def kms_key= new_kms_key_name

Parameters:
  • new_kms_key_name (String) -- New Cloud KMS key name
def kms_key= new_kms_key_name
  frozen_check!
  @gapi.kms_key_name = new_kms_key_name
end

def to_gapi

Other tags:
    Private: - Google API Client object.
def to_gapi
  @gapi
end