Google Cloud Notebooks V1 Client - Class EncryptionConfig (0.5.0)

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
NameDescription
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
TypeDescription
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
NameDescription
var string
Returns
TypeDescription
$this