Reference documentation and code samples for the Developer Connect V1 API class Google::Cloud::DeveloperConnect::V1::CryptoKeyConfig.
The crypto key configuration. This field is used by the Customer-managed
encryption keys (CMEK) feature.
Inherits
Object
Extended By
Google::Protobuf::MessageExts::ClassMethods
Includes
Google::Protobuf::MessageExts
Methods
#key_reference
defkey_reference()->::String
Returns
(::String) — Required. The name of the key which is used to encrypt/decrypt customer
data. For key in Cloud KMS, the key should be in the format of
projects/*/locations/*/keyRings/*/cryptoKeys/*.
#key_reference=
defkey_reference=(value)->::String
Parameter
value (::String) — Required. The name of the key which is used to encrypt/decrypt customer
data. For key in Cloud KMS, the key should be in the format of
projects/*/locations/*/keyRings/*/cryptoKeys/*.
Returns
(::String) — Required. The name of the key which is used to encrypt/decrypt customer
data. For key in Cloud KMS, the key should be in the format of
projects/*/locations/*/keyRings/*/cryptoKeys/*.
[[["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-09 UTC."],[],[],null,["# Developer Connect V1 API - Class Google::Cloud::DeveloperConnect::V1::CryptoKeyConfig (v1.2.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.2.0 (latest)](/ruby/docs/reference/google-cloud-developer_connect-v1/latest/Google-Cloud-DeveloperConnect-V1-CryptoKeyConfig)\n- [1.1.0](/ruby/docs/reference/google-cloud-developer_connect-v1/1.1.0/Google-Cloud-DeveloperConnect-V1-CryptoKeyConfig)\n- [1.0.1](/ruby/docs/reference/google-cloud-developer_connect-v1/1.0.1/Google-Cloud-DeveloperConnect-V1-CryptoKeyConfig)\n- [0.5.0](/ruby/docs/reference/google-cloud-developer_connect-v1/0.5.0/Google-Cloud-DeveloperConnect-V1-CryptoKeyConfig)\n- [0.4.0](/ruby/docs/reference/google-cloud-developer_connect-v1/0.4.0/Google-Cloud-DeveloperConnect-V1-CryptoKeyConfig)\n- [0.3.0](/ruby/docs/reference/google-cloud-developer_connect-v1/0.3.0/Google-Cloud-DeveloperConnect-V1-CryptoKeyConfig)\n- [0.2.0](/ruby/docs/reference/google-cloud-developer_connect-v1/0.2.0/Google-Cloud-DeveloperConnect-V1-CryptoKeyConfig)\n- [0.1.1](/ruby/docs/reference/google-cloud-developer_connect-v1/0.1.1/Google-Cloud-DeveloperConnect-V1-CryptoKeyConfig) \nReference documentation and code samples for the Developer Connect V1 API class Google::Cloud::DeveloperConnect::V1::CryptoKeyConfig.\n\nThe crypto key configuration. This field is used by the Customer-managed\nencryption keys (CMEK) feature. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #key_reference\n\n def key_reference() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Required. The name of the key which is used to encrypt/decrypt customer data. For key in Cloud KMS, the key should be in the format of `projects/*/locations/*/keyRings/*/cryptoKeys/*`.\n\n### #key_reference=\n\n def key_reference=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Required. The name of the key which is used to encrypt/decrypt customer data. For key in Cloud KMS, the key should be in the format of `projects/*/locations/*/keyRings/*/cryptoKeys/*`. \n**Returns**\n\n- (::String) --- Required. The name of the key which is used to encrypt/decrypt customer data. For key in Cloud KMS, the key should be in the format of `projects/*/locations/*/keyRings/*/cryptoKeys/*`."]]