google.cloud.bigquery.table.EncryptionConfiguration#

Methods

from_api_repr(resource)

Construct an encryption configuration from its API representation

to_api_repr()

Construct the API resource representation of this encryption configuration.

Attributes

kms_key_name

Resource ID of Cloud KMS key


class google.cloud.bigquery.table.EncryptionConfiguration(kms_key_name=None)[source]#

Bases: object

Custom encryption configuration (e.g., Cloud KMS keys).

Parameters

kms_key_name (str) – resource ID of Cloud KMS key used for encryption

classmethod from_api_repr(resource)[source]#

Construct an encryption configuration from its API representation

Parameters

resource (Dict[str, object]) – An encryption configuration representation as returned from the API.

Returns

An encryption configuration parsed from resource.

Return type

google.cloud.bigquery.table.EncryptionConfiguration

property kms_key_name#

Resource ID of Cloud KMS key

Resource ID of Cloud KMS key or None if using default encryption.

Type

str

to_api_repr()[source]#

Construct the API resource representation of this encryption configuration.

Returns

Encryption configuration as represented as an API resource

Return type

Dict[str, object]