Reference documentation and code samples for the Storage Transfer Service V1 API module Google::Cloud::StorageTransfer::V1::MetadataOptions::KmsKey.
Options for handling the KmsKey setting for Google Cloud Storage objects.
Constants
KMS_KEY_UNSPECIFIED
value: 0 KmsKey behavior is unspecified.
KMS_KEY_DESTINATION_BUCKET_DEFAULT
value: 1 Use the destination bucket's default encryption settings.
KMS_KEY_PRESERVE
value: 2 Preserve the object's original Cloud KMS customer-managed encryption key
(CMEK) if present. Objects that do not use a Cloud KMS encryption key
will be encrypted using the destination bucket's encryption settings.
[[["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-03 UTC."],[],[],null,["# Storage Transfer Service V1 API - Module Google::Cloud::StorageTransfer::V1::MetadataOptions::KmsKey (v1.6.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.6.0 (latest)](/ruby/docs/reference/google-cloud-storage_transfer-v1/latest/Google-Cloud-StorageTransfer-V1-MetadataOptions-KmsKey)\n- [1.5.0](/ruby/docs/reference/google-cloud-storage_transfer-v1/1.5.0/Google-Cloud-StorageTransfer-V1-MetadataOptions-KmsKey)\n- [1.4.1](/ruby/docs/reference/google-cloud-storage_transfer-v1/1.4.1/Google-Cloud-StorageTransfer-V1-MetadataOptions-KmsKey)\n- [1.3.0](/ruby/docs/reference/google-cloud-storage_transfer-v1/1.3.0/Google-Cloud-StorageTransfer-V1-MetadataOptions-KmsKey)\n- [1.2.0](/ruby/docs/reference/google-cloud-storage_transfer-v1/1.2.0/Google-Cloud-StorageTransfer-V1-MetadataOptions-KmsKey)\n- [1.1.1](/ruby/docs/reference/google-cloud-storage_transfer-v1/1.1.1/Google-Cloud-StorageTransfer-V1-MetadataOptions-KmsKey)\n- [1.0.0](/ruby/docs/reference/google-cloud-storage_transfer-v1/1.0.0/Google-Cloud-StorageTransfer-V1-MetadataOptions-KmsKey)\n- [0.10.0](/ruby/docs/reference/google-cloud-storage_transfer-v1/0.10.0/Google-Cloud-StorageTransfer-V1-MetadataOptions-KmsKey)\n- [0.9.2](/ruby/docs/reference/google-cloud-storage_transfer-v1/0.9.2/Google-Cloud-StorageTransfer-V1-MetadataOptions-KmsKey)\n- [0.8.0](/ruby/docs/reference/google-cloud-storage_transfer-v1/0.8.0/Google-Cloud-StorageTransfer-V1-MetadataOptions-KmsKey)\n- [0.7.0](/ruby/docs/reference/google-cloud-storage_transfer-v1/0.7.0/Google-Cloud-StorageTransfer-V1-MetadataOptions-KmsKey)\n- [0.6.1](/ruby/docs/reference/google-cloud-storage_transfer-v1/0.6.1/Google-Cloud-StorageTransfer-V1-MetadataOptions-KmsKey)\n- [0.5.0](/ruby/docs/reference/google-cloud-storage_transfer-v1/0.5.0/Google-Cloud-StorageTransfer-V1-MetadataOptions-KmsKey)\n- [0.4.0](/ruby/docs/reference/google-cloud-storage_transfer-v1/0.4.0/Google-Cloud-StorageTransfer-V1-MetadataOptions-KmsKey)\n- [0.3.0](/ruby/docs/reference/google-cloud-storage_transfer-v1/0.3.0/Google-Cloud-StorageTransfer-V1-MetadataOptions-KmsKey)\n- [0.2.0](/ruby/docs/reference/google-cloud-storage_transfer-v1/0.2.0/Google-Cloud-StorageTransfer-V1-MetadataOptions-KmsKey)\n- [0.1.2](/ruby/docs/reference/google-cloud-storage_transfer-v1/0.1.2/Google-Cloud-StorageTransfer-V1-MetadataOptions-KmsKey) \nReference documentation and code samples for the Storage Transfer Service V1 API module Google::Cloud::StorageTransfer::V1::MetadataOptions::KmsKey.\n\nOptions for handling the KmsKey setting for Google Cloud Storage objects.\n\nConstants\n---------\n\n### KMS_KEY_UNSPECIFIED\n\n**value:** 0 \nKmsKey behavior is unspecified.\n\n### KMS_KEY_DESTINATION_BUCKET_DEFAULT\n\n**value:** 1 \nUse the destination bucket's default encryption settings.\n\n### KMS_KEY_PRESERVE\n\n**value:** 2 \nPreserve the object's original Cloud KMS customer-managed encryption key\n(CMEK) if present. Objects that do not use a Cloud KMS encryption key\nwill be encrypted using the destination bucket's encryption settings."]]