google_channel_config.proto 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. // Copyright 2022 Google LLC
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. syntax = "proto3";
  15. package google.cloud.eventarc.v1;
  16. import "google/api/field_behavior.proto";
  17. import "google/api/resource.proto";
  18. import "google/protobuf/timestamp.proto";
  19. option csharp_namespace = "Google.Cloud.Eventarc.V1";
  20. option go_package = "google.golang.org/genproto/googleapis/cloud/eventarc/v1;eventarc";
  21. option java_multiple_files = true;
  22. option java_outer_classname = "GoogleChannelConfigProto";
  23. option java_package = "com.google.cloud.eventarc.v1";
  24. option php_namespace = "Google\\Cloud\\Eventarc\\V1";
  25. option ruby_package = "Google::Cloud::Eventarc::V1";
  26. option (google.api.resource_definition) = {
  27. type: "cloudkms.googleapis.com/CryptoKey"
  28. pattern: "projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}"
  29. };
  30. // A GoogleChannelConfig is a resource that stores the custom settings
  31. // respected by Eventarc first-party triggers in the matching region.
  32. // Once configured, first-party event data will be protected
  33. // using the specified custom managed encryption key instead of Google-managed
  34. // encryption keys.
  35. message GoogleChannelConfig {
  36. option (google.api.resource) = {
  37. type: "eventarc.googleapis.com/GoogleChannelConfig"
  38. pattern: "projects/{project}/locations/{location}/googleChannelConfig"
  39. singular: "googleChannelConfig"
  40. };
  41. // Required. The resource name of the config. Must be in the format of,
  42. // `projects/{project}/locations/{location}/googleChannelConfig`.
  43. string name = 1 [(google.api.field_behavior) = REQUIRED];
  44. // Output only. The last-modified time.
  45. google.protobuf.Timestamp update_time = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
  46. // Optional. Resource name of a KMS crypto key (managed by the user) used to
  47. // encrypt/decrypt their event data.
  48. //
  49. // It must match the pattern
  50. // `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
  51. string crypto_key_name = 7 [
  52. (google.api.field_behavior) = OPTIONAL,
  53. (google.api.resource_reference) = {
  54. type: "cloudkms.googleapis.com/CryptoKey"
  55. }
  56. ];
  57. }