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