Cloud Spanner V1 Client - Class EncryptionType (1.54.2)

Reference documentation and code samples for the Cloud Spanner V1 Client class EncryptionType.

Encryption types for the backup.

Protobuf type google.spanner.admin.database.v1.CreateBackupEncryptionConfig.EncryptionType

Methods

name

Parameter
NameDescription
value mixed

value

Parameter
NameDescription
name mixed

Constants

ENCRYPTION_TYPE_UNSPECIFIED

Value: 0

Unspecified. Do not use.

Generated from protobuf enum ENCRYPTION_TYPE_UNSPECIFIED = 0;

USE_DATABASE_ENCRYPTION

Value: 1

Use the same encryption configuration as the database. This is the default option when encryption_config is empty.

For example, if the database is using Customer_Managed_Encryption, the backup will be using the same Cloud KMS key as the database.

Generated from protobuf enum USE_DATABASE_ENCRYPTION = 1;

GOOGLE_DEFAULT_ENCRYPTION

Value: 2

Use Google default encryption.

Generated from protobuf enum GOOGLE_DEFAULT_ENCRYPTION = 2;

CUSTOMER_MANAGED_ENCRYPTION

Value: 3

Use customer managed encryption. If specified, kms_key_name must contain a valid Cloud KMS key.

Generated from protobuf enum CUSTOMER_MANAGED_ENCRYPTION = 3;