xref: /aosp_15_r20/external/googleapis/google/cloud/eventarc/v1/google_channel_config.proto (revision d5c09012810ac0c9f33fe448fb6da8260d444cc9)
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
15syntax = "proto3";
16
17package google.cloud.eventarc.v1;
18
19import "google/api/field_behavior.proto";
20import "google/api/resource.proto";
21import "google/protobuf/timestamp.proto";
22
23option csharp_namespace = "Google.Cloud.Eventarc.V1";
24option go_package = "cloud.google.com/go/eventarc/apiv1/eventarcpb;eventarcpb";
25option java_multiple_files = true;
26option java_outer_classname = "GoogleChannelConfigProto";
27option java_package = "com.google.cloud.eventarc.v1";
28option php_namespace = "Google\\Cloud\\Eventarc\\V1";
29option ruby_package = "Google::Cloud::Eventarc::V1";
30option (google.api.resource_definition) = {
31  type: "cloudkms.googleapis.com/CryptoKey"
32  pattern: "projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}"
33};
34
35// A GoogleChannelConfig is a resource that stores the custom settings
36// respected by Eventarc first-party triggers in the matching region.
37// Once configured, first-party event data will be protected
38// using the specified custom managed encryption key instead of Google-managed
39// encryption keys.
40message GoogleChannelConfig {
41  option (google.api.resource) = {
42    type: "eventarc.googleapis.com/GoogleChannelConfig"
43    pattern: "projects/{project}/locations/{location}/googleChannelConfig"
44    singular: "googleChannelConfig"
45  };
46
47  // Required. The resource name of the config. Must be in the format of,
48  // `projects/{project}/locations/{location}/googleChannelConfig`.
49  string name = 1 [(google.api.field_behavior) = REQUIRED];
50
51  // Output only. The last-modified time.
52  google.protobuf.Timestamp update_time = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
53
54  // Optional. Resource name of a KMS crypto key (managed by the user) used to
55  // encrypt/decrypt their event data.
56  //
57  // It must match the pattern
58  // `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
59  string crypto_key_name = 7 [
60    (google.api.field_behavior) = OPTIONAL,
61    (google.api.resource_reference) = {
62      type: "cloudkms.googleapis.com/CryptoKey"
63    }
64  ];
65}
66