Cloud Spanner V1 Client - Class EncryptionConfig (1.76.1)

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

Encryption configuration for a Cloud Spanner database.

Generated from protobuf message google.spanner.admin.database.v1.EncryptionConfig

Namespace

Google \ Cloud \ Spanner \ Admin \ Database \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ kms_key_name string

The Cloud KMS key to be used for encrypting and decrypting the database. Values are of the form projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>.

getKmsKeyName

The Cloud KMS key to be used for encrypting and decrypting the database. Values are of the form projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>.

Returns
Type Description
string

setKmsKeyName

The Cloud KMS key to be used for encrypting and decrypting the database. Values are of the form projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>.

Parameter
Name Description
var string
Returns
Type Description
$this