# Google Cloud Notebooks V1 Client - Class EncryptionConfig (1.1.3)

1.1.3 (latest) 1.1.2 1.0.5 0.7.5 0.6.2 0.5.0 0.4.1 0.3.6 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` |   |