Cloud Spanner V1 Client - Class EncryptionInfo (1.58.4)

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

Encryption information for a Cloud Spanner database or backup.

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

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ encryption_type int

Output only. The type of encryption.

↳ encryption_status Google\Rpc\Status

Output only. If present, the status of a recent encrypt/decrypt call on underlying data for this database or backup. Regardless of status, data is always encrypted at rest.

↳ kms_key_version string

Output only. A Cloud KMS key version that is being used to protect the database or backup.

getEncryptionType

Output only. The type of encryption.

Returns
TypeDescription
int

setEncryptionType

Output only. The type of encryption.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getEncryptionStatus

Output only. If present, the status of a recent encrypt/decrypt call on underlying data for this database or backup. Regardless of status, data is always encrypted at rest.

Returns
TypeDescription
Google\Rpc\Status|null

hasEncryptionStatus

clearEncryptionStatus

setEncryptionStatus

Output only. If present, the status of a recent encrypt/decrypt call on underlying data for this database or backup. Regardless of status, data is always encrypted at rest.

Parameter
NameDescription
var Google\Rpc\Status
Returns
TypeDescription
$this

getKmsKeyVersion

Output only. A Cloud KMS key version that is being used to protect the database or backup.

Returns
TypeDescription
string

setKmsKeyVersion

Output only. A Cloud KMS key version that is being used to protect the database or backup.

Parameter
NameDescription
var string
Returns
TypeDescription
$this