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}
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Notebooks V1 Client - Class EncryptionConfig (1.0.5)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.5 (latest)](/php/docs/reference/cloud-notebooks/latest/V1.EncryptionConfig)\n- [1.0.4](/php/docs/reference/cloud-notebooks/1.0.4/V1.EncryptionConfig)\n- [0.7.5](/php/docs/reference/cloud-notebooks/0.7.5/V1.EncryptionConfig)\n- [0.6.2](/php/docs/reference/cloud-notebooks/0.6.2/V1.EncryptionConfig)\n- [0.5.0](/php/docs/reference/cloud-notebooks/0.5.0/V1.EncryptionConfig)\n- [0.4.1](/php/docs/reference/cloud-notebooks/0.4.1/V1.EncryptionConfig)\n- [0.3.6](/php/docs/reference/cloud-notebooks/0.3.6/V1.EncryptionConfig) \nReference documentation and code samples for the Google Cloud Notebooks V1 Client class EncryptionConfig.\n\nRepresents a custom encryption key configuration that can be applied to\na resource. This will encrypt all disks in Virtual Machine.\n\nGenerated from protobuf message `google.cloud.notebooks.v1.EncryptionConfig`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Notebooks \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getKmsKey\n\nThe Cloud KMS resource identifier of the customer-managed encryption key\nused to protect a resource, such as a disks. It has the following\nformat:\n`projects/{PROJECT_ID}/locations/{REGION}/keyRings/{KEY_RING_NAME}/cryptoKeys/{KEY_NAME}`\n\n### setKmsKey\n\nThe Cloud KMS resource identifier of the customer-managed encryption key\nused to protect a resource, such as a disks. It has the following\nformat:\n`projects/{PROJECT_ID}/locations/{REGION}/keyRings/{KEY_RING_NAME}/cryptoKeys/{KEY_NAME}`"]]