Cloud Spanner V1 Client - Class EncryptionConfig (1.67.0)

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
NameDescription
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
TypeDescription
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
NameDescription
var string
Returns
TypeDescription
$this