channel_connection.proto 2.9 KB

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