Google Cloud Ai Platform V1 Client - Class EncryptionSpec (0.39.0)

Reference documentation and code samples for the Google Cloud Ai Platform V1 Client class EncryptionSpec.

Represents a customer-managed encryption key spec that can be applied to a top-level resource.

Generated from protobuf message google.cloud.aiplatform.v1.EncryptionSpec

Namespace

Google \ Cloud \ AIPlatform \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ kms_key_name string

Required. The Cloud KMS resource identifier of the customer managed encryption key used to protect a resource. Has the form: projects/my-project/locations/my-region/keyRings/my-kr/cryptoKeys/my-key. The key needs to be in the same region as where the compute resource is created.

getKmsKeyName

Required. The Cloud KMS resource identifier of the customer managed encryption key used to protect a resource. Has the form: projects/my-project/locations/my-region/keyRings/my-kr/cryptoKeys/my-key.

The key needs to be in the same region as where the compute resource is created.

Returns
Type Description
string

setKmsKeyName

Required. The Cloud KMS resource identifier of the customer managed encryption key used to protect a resource. Has the form: projects/my-project/locations/my-region/keyRings/my-kr/cryptoKeys/my-key.

The key needs to be in the same region as where the compute resource is created.

Parameter
Name Description
var string
Returns
Type Description
$this