xref: /aosp_15_r20/external/googleapis/google/cloud/eventarc/v1/channel_connection.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 = "ChannelConnectionProto";
27option java_package = "com.google.cloud.eventarc.v1";
28option php_namespace = "Google\\Cloud\\Eventarc\\V1";
29option ruby_package = "Google::Cloud::Eventarc::V1";
30
31// A representation of the ChannelConnection resource.
32// A ChannelConnection is a resource which event providers create during the
33// activation process to establish a connection between the provider and the
34// subscriber channel.
35message ChannelConnection {
36  option (google.api.resource) = {
37    type: "eventarc.googleapis.com/ChannelConnection"
38    pattern: "projects/{project}/locations/{location}/channelConnections/{channel_connection}"
39    plural: "channelConnections"
40    singular: "channelConnection"
41  };
42
43  // Required. The name of the connection.
44  string name = 1 [(google.api.field_behavior) = REQUIRED];
45
46  // Output only. Server assigned ID of the resource.
47  // The server guarantees uniqueness and immutability until deleted.
48  string uid = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
49
50  // Required. The name of the connected subscriber Channel.
51  // This is a weak reference to avoid cross project and cross accounts
52  // references. This must be in
53  // `projects/{project}/location/{location}/channels/{channel_id}` format.
54  string channel = 5 [
55    (google.api.field_behavior) = REQUIRED,
56    (google.api.resource_reference) = {
57      type: "eventarc.googleapis.com/Channel"
58    }
59  ];
60
61  // Output only. The creation time.
62  google.protobuf.Timestamp create_time = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
63
64  // Output only. The last-modified time.
65  google.protobuf.Timestamp update_time = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
66
67  // Input only. Activation token for the channel. The token will be used
68  // during the creation of ChannelConnection to bind the channel with the
69  // provider project. This field will not be stored in the provider resource.
70  string activation_token = 8 [(google.api.field_behavior) = INPUT_ONLY];
71}
72