As of January 1, 2020 this library no longer supports Python 2 on the latest released version. Library versions released prior to that date will continue to be available. For more information please visit Python 2 support on Google Cloud.

google.cloud.bigquery.encryption_configuration.EncryptionConfiguration

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

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

Parameters

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

__init__(kms_key_name=None)[source]

Initialize self. See help(type(self)) for accurate signature.

Methods

__init__([kms_key_name])

Initialize self.

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

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]