Cloud Spanner V1 Client - Class EncryptionConfig (1.54.2)

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

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>.

Generated from protobuf field string kms_key_name = 2 [(.google.api.resource_reference) = {

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>.

Generated from protobuf field string kms_key_name = 2 [(.google.api.resource_reference) = {

Parameter
NameDescription
var string
Returns
TypeDescription
$this