Google Cloud Notebooks V1 Client - Class EncryptionConfig (0.7.5)

Reference documentation and code samples for the Google Cloud Notebooks V1 Client class EncryptionConfig.

Represents a custom encryption key configuration that can be applied to a resource. This will encrypt all disks in Virtual Machine.

Generated from protobuf message google.cloud.notebooks.v1.EncryptionConfig

Namespace

Google \ Cloud \ Notebooks \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ kms_key string

The Cloud KMS resource identifier of the customer-managed encryption key used to protect a resource, such as a disks. It has the following format: projects/{PROJECT_ID}/locations/{REGION}/keyRings/{KEY_RING_NAME}/cryptoKeys/{KEY_NAME}

getKmsKey

The Cloud KMS resource identifier of the customer-managed encryption key used to protect a resource, such as a disks. It has the following format: projects/{PROJECT_ID}/locations/{REGION}/keyRings/{KEY_RING_NAME}/cryptoKeys/{KEY_NAME}

Returns
Type Description
string

setKmsKey

The Cloud KMS resource identifier of the customer-managed encryption key used to protect a resource, such as a disks. It has the following format: projects/{PROJECT_ID}/locations/{REGION}/keyRings/{KEY_RING_NAME}/cryptoKeys/{KEY_NAME}

Parameter
Name Description
var string
Returns
Type Description
$this