Google Cloud Ai Platform V1 Client - Class EncryptionSpec (0.19.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
NameDescription
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
TypeDescription
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
NameDescription
var string
Returns
TypeDescription
$this