Skip to content

Commit 09243fd

Browse files
Google APIscopybara-github
authored andcommitted
feat: KMS key resource_definition `cloudkms.googleapis.com/CryptoKey is added
PiperOrigin-RevId: 773618515
1 parent f01a17a commit 09243fd

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

google/cloud/parametermanager/v1/service.proto

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ option java_outer_classname = "V1mainProto";
3333
option java_package = "com.google.cloud.parametermanager.v1";
3434
option php_namespace = "Google\\Cloud\\ParameterManager\\V1";
3535
option ruby_package = "Google::Cloud::ParameterManager::V1";
36+
option (google.api.resource_definition) = {
37+
type: "cloudkms.googleapis.com/CryptoKey"
38+
pattern: "projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}"
39+
};
3640

3741
// Service describing handlers for resources
3842
service ParameterManager {
@@ -210,7 +214,12 @@ message Parameter {
210214
// will be used. Cloud KMS CryptoKeys must reside in the same location as the
211215
// Parameter. The expected format is
212216
// `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
213-
optional string kms_key = 7 [(google.api.field_behavior) = OPTIONAL];
217+
optional string kms_key = 7 [
218+
(google.api.field_behavior) = OPTIONAL,
219+
(google.api.resource_reference) = {
220+
type: "cloudkms.googleapis.com/CryptoKey"
221+
}
222+
];
214223
}
215224

216225
// Message for requesting list of Parameters

0 commit comments

Comments
 (0)