google-cloud-eventarc-v1 0.1.3 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -24,6 +24,63 @@ module Google
24
24
  module Eventarc
25
25
  # Path helper methods for the Eventarc API.
26
26
  module Paths
27
+ ##
28
+ # Create a fully-qualified Channel resource string.
29
+ #
30
+ # The resource will be in the following format:
31
+ #
32
+ # `projects/{project}/locations/{location}/channels/{channel}`
33
+ #
34
+ # @param project [String]
35
+ # @param location [String]
36
+ # @param channel [String]
37
+ #
38
+ # @return [::String]
39
+ def channel_path project:, location:, channel:
40
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
41
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
42
+
43
+ "projects/#{project}/locations/#{location}/channels/#{channel}"
44
+ end
45
+
46
+ ##
47
+ # Create a fully-qualified ChannelConnection resource string.
48
+ #
49
+ # The resource will be in the following format:
50
+ #
51
+ # `projects/{project}/locations/{location}/channelConnections/{channel_connection}`
52
+ #
53
+ # @param project [String]
54
+ # @param location [String]
55
+ # @param channel_connection [String]
56
+ #
57
+ # @return [::String]
58
+ def channel_connection_path project:, location:, channel_connection:
59
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
60
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
61
+
62
+ "projects/#{project}/locations/#{location}/channelConnections/#{channel_connection}"
63
+ end
64
+
65
+ ##
66
+ # Create a fully-qualified CloudFunction resource string.
67
+ #
68
+ # The resource will be in the following format:
69
+ #
70
+ # `projects/{project}/locations/{location}/functions/{function}`
71
+ #
72
+ # @param project [String]
73
+ # @param location [String]
74
+ # @param function [String]
75
+ #
76
+ # @return [::String]
77
+ def cloud_function_path project:, location:, function:
78
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
79
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
80
+
81
+ "projects/#{project}/locations/#{location}/functions/#{function}"
82
+ end
83
+
27
84
  ##
28
85
  # Create a fully-qualified Location resource string.
29
86
  #
@@ -1,15 +1,18 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/eventarc/v1/eventarc.proto
3
3
 
4
+ require 'google/protobuf'
5
+
4
6
  require 'google/api/annotations_pb'
5
7
  require 'google/api/client_pb'
6
8
  require 'google/api/field_behavior_pb'
7
9
  require 'google/api/resource_pb'
10
+ require 'google/cloud/eventarc/v1/channel_pb'
11
+ require 'google/cloud/eventarc/v1/channel_connection_pb'
8
12
  require 'google/cloud/eventarc/v1/trigger_pb'
9
13
  require 'google/longrunning/operations_pb'
10
14
  require 'google/protobuf/field_mask_pb'
11
15
  require 'google/protobuf/timestamp_pb'
12
- require 'google/protobuf'
13
16
 
14
17
  Google::Protobuf::DescriptorPool.generated_pool.build do
15
18
  add_file("google/cloud/eventarc/v1/eventarc.proto", :syntax => :proto3) do
@@ -45,6 +48,56 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
45
48
  optional :allow_missing, :bool, 3
46
49
  optional :validate_only, :bool, 4
47
50
  end
51
+ add_message "google.cloud.eventarc.v1.GetChannelRequest" do
52
+ optional :name, :string, 1
53
+ end
54
+ add_message "google.cloud.eventarc.v1.ListChannelsRequest" do
55
+ optional :parent, :string, 1
56
+ optional :page_size, :int32, 2
57
+ optional :page_token, :string, 3
58
+ optional :order_by, :string, 4
59
+ end
60
+ add_message "google.cloud.eventarc.v1.ListChannelsResponse" do
61
+ repeated :channels, :message, 1, "google.cloud.eventarc.v1.Channel"
62
+ optional :next_page_token, :string, 2
63
+ repeated :unreachable, :string, 3
64
+ end
65
+ add_message "google.cloud.eventarc.v1.CreateChannelRequest" do
66
+ optional :parent, :string, 1
67
+ optional :channel, :message, 2, "google.cloud.eventarc.v1.Channel"
68
+ optional :channel_id, :string, 3
69
+ optional :validate_only, :bool, 4
70
+ end
71
+ add_message "google.cloud.eventarc.v1.UpdateChannelRequest" do
72
+ optional :channel, :message, 1, "google.cloud.eventarc.v1.Channel"
73
+ optional :update_mask, :message, 2, "google.protobuf.FieldMask"
74
+ optional :validate_only, :bool, 3
75
+ end
76
+ add_message "google.cloud.eventarc.v1.DeleteChannelRequest" do
77
+ optional :name, :string, 1
78
+ optional :validate_only, :bool, 2
79
+ end
80
+ add_message "google.cloud.eventarc.v1.GetChannelConnectionRequest" do
81
+ optional :name, :string, 1
82
+ end
83
+ add_message "google.cloud.eventarc.v1.ListChannelConnectionsRequest" do
84
+ optional :parent, :string, 1
85
+ optional :page_size, :int32, 2
86
+ optional :page_token, :string, 3
87
+ end
88
+ add_message "google.cloud.eventarc.v1.ListChannelConnectionsResponse" do
89
+ repeated :channel_connections, :message, 1, "google.cloud.eventarc.v1.ChannelConnection"
90
+ optional :next_page_token, :string, 2
91
+ repeated :unreachable, :string, 3
92
+ end
93
+ add_message "google.cloud.eventarc.v1.CreateChannelConnectionRequest" do
94
+ optional :parent, :string, 1
95
+ optional :channel_connection, :message, 2, "google.cloud.eventarc.v1.ChannelConnection"
96
+ optional :channel_connection_id, :string, 3
97
+ end
98
+ add_message "google.cloud.eventarc.v1.DeleteChannelConnectionRequest" do
99
+ optional :name, :string, 1
100
+ end
48
101
  add_message "google.cloud.eventarc.v1.OperationMetadata" do
49
102
  optional :create_time, :message, 1, "google.protobuf.Timestamp"
50
103
  optional :end_time, :message, 2, "google.protobuf.Timestamp"
@@ -67,6 +120,17 @@ module Google
67
120
  CreateTriggerRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.eventarc.v1.CreateTriggerRequest").msgclass
68
121
  UpdateTriggerRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.eventarc.v1.UpdateTriggerRequest").msgclass
69
122
  DeleteTriggerRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.eventarc.v1.DeleteTriggerRequest").msgclass
123
+ GetChannelRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.eventarc.v1.GetChannelRequest").msgclass
124
+ ListChannelsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.eventarc.v1.ListChannelsRequest").msgclass
125
+ ListChannelsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.eventarc.v1.ListChannelsResponse").msgclass
126
+ CreateChannelRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.eventarc.v1.CreateChannelRequest").msgclass
127
+ UpdateChannelRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.eventarc.v1.UpdateChannelRequest").msgclass
128
+ DeleteChannelRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.eventarc.v1.DeleteChannelRequest").msgclass
129
+ GetChannelConnectionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.eventarc.v1.GetChannelConnectionRequest").msgclass
130
+ ListChannelConnectionsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.eventarc.v1.ListChannelConnectionsRequest").msgclass
131
+ ListChannelConnectionsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.eventarc.v1.ListChannelConnectionsResponse").msgclass
132
+ CreateChannelConnectionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.eventarc.v1.CreateChannelConnectionRequest").msgclass
133
+ DeleteChannelConnectionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.eventarc.v1.DeleteChannelConnectionRequest").msgclass
70
134
  OperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.eventarc.v1.OperationMetadata").msgclass
71
135
  end
72
136
  end
@@ -44,6 +44,24 @@ module Google
44
44
  rpc :UpdateTrigger, ::Google::Cloud::Eventarc::V1::UpdateTriggerRequest, ::Google::Longrunning::Operation
45
45
  # Delete a single trigger.
46
46
  rpc :DeleteTrigger, ::Google::Cloud::Eventarc::V1::DeleteTriggerRequest, ::Google::Longrunning::Operation
47
+ # Get a single Channel.
48
+ rpc :GetChannel, ::Google::Cloud::Eventarc::V1::GetChannelRequest, ::Google::Cloud::Eventarc::V1::Channel
49
+ # List channels.
50
+ rpc :ListChannels, ::Google::Cloud::Eventarc::V1::ListChannelsRequest, ::Google::Cloud::Eventarc::V1::ListChannelsResponse
51
+ # Create a new channel in a particular project and location.
52
+ rpc :CreateChannel, ::Google::Cloud::Eventarc::V1::CreateChannelRequest, ::Google::Longrunning::Operation
53
+ # Update a single channel.
54
+ rpc :UpdateChannel, ::Google::Cloud::Eventarc::V1::UpdateChannelRequest, ::Google::Longrunning::Operation
55
+ # Delete a single channel.
56
+ rpc :DeleteChannel, ::Google::Cloud::Eventarc::V1::DeleteChannelRequest, ::Google::Longrunning::Operation
57
+ # Get a single ChannelConnection.
58
+ rpc :GetChannelConnection, ::Google::Cloud::Eventarc::V1::GetChannelConnectionRequest, ::Google::Cloud::Eventarc::V1::ChannelConnection
59
+ # List channel connections.
60
+ rpc :ListChannelConnections, ::Google::Cloud::Eventarc::V1::ListChannelConnectionsRequest, ::Google::Cloud::Eventarc::V1::ListChannelConnectionsResponse
61
+ # Create a new ChannelConnection in a particular project and location.
62
+ rpc :CreateChannelConnection, ::Google::Cloud::Eventarc::V1::CreateChannelConnectionRequest, ::Google::Longrunning::Operation
63
+ # Delete a single ChannelConnection.
64
+ rpc :DeleteChannelConnection, ::Google::Cloud::Eventarc::V1::DeleteChannelConnectionRequest, ::Google::Longrunning::Operation
47
65
  end
48
66
 
49
67
  Stub = Service.rpc_stub_class
@@ -1,11 +1,11 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/eventarc/v1/trigger.proto
3
3
 
4
- require 'google/api/annotations_pb'
4
+ require 'google/protobuf'
5
+
5
6
  require 'google/api/field_behavior_pb'
6
7
  require 'google/api/resource_pb'
7
8
  require 'google/protobuf/timestamp_pb'
8
- require 'google/protobuf'
9
9
 
10
10
  Google::Protobuf::DescriptorPool.generated_pool.build do
11
11
  add_file("google/cloud/eventarc/v1/trigger.proto", :syntax => :proto3) do
@@ -19,15 +19,19 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
19
19
  optional :destination, :message, 10, "google.cloud.eventarc.v1.Destination"
20
20
  optional :transport, :message, 11, "google.cloud.eventarc.v1.Transport"
21
21
  map :labels, :string, :string, 12
22
+ optional :channel, :string, 13
22
23
  optional :etag, :string, 99
23
24
  end
24
25
  add_message "google.cloud.eventarc.v1.EventFilter" do
25
26
  optional :attribute, :string, 1
26
27
  optional :value, :string, 2
28
+ optional :operator, :string, 3
27
29
  end
28
30
  add_message "google.cloud.eventarc.v1.Destination" do
29
31
  oneof :descriptor do
30
32
  optional :cloud_run, :message, 1, "google.cloud.eventarc.v1.CloudRun"
33
+ optional :cloud_function, :string, 2
34
+ optional :gke, :message, 3, "google.cloud.eventarc.v1.GKE"
31
35
  end
32
36
  end
33
37
  add_message "google.cloud.eventarc.v1.Transport" do
@@ -40,6 +44,13 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
40
44
  optional :path, :string, 2
41
45
  optional :region, :string, 3
42
46
  end
47
+ add_message "google.cloud.eventarc.v1.GKE" do
48
+ optional :cluster, :string, 1
49
+ optional :location, :string, 2
50
+ optional :namespace, :string, 3
51
+ optional :service, :string, 4
52
+ optional :path, :string, 5
53
+ end
43
54
  add_message "google.cloud.eventarc.v1.Pubsub" do
44
55
  optional :topic, :string, 1
45
56
  optional :subscription, :string, 2
@@ -56,6 +67,7 @@ module Google
56
67
  Destination = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.eventarc.v1.Destination").msgclass
57
68
  Transport = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.eventarc.v1.Transport").msgclass
58
69
  CloudRun = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.eventarc.v1.CloudRun").msgclass
70
+ GKE = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.eventarc.v1.GKE").msgclass
59
71
  Pubsub = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.eventarc.v1.Pubsub").msgclass
60
72
  end
61
73
  end
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Eventarc
23
23
  module V1
24
- VERSION = "0.1.3"
24
+ VERSION = "0.2.1"
25
25
  end
26
26
  end
27
27
  end
@@ -25,6 +25,8 @@ module Google
25
25
  ##
26
26
  # To load this package, including all its services, and instantiate a client:
27
27
  #
28
+ # @example
29
+ #
28
30
  # require "google/cloud/eventarc/v1"
29
31
  # client = ::Google::Cloud::Eventarc::V1::Eventarc::Client.new
30
32
  #
@@ -33,11 +33,7 @@ module Google
33
33
  # // For Kubernetes resources, the format is {api group}/{kind}.
34
34
  # option (google.api.resource) = {
35
35
  # type: "pubsub.googleapis.com/Topic"
36
- # name_descriptor: {
37
- # pattern: "projects/{project}/topics/{topic}"
38
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
39
- # parent_name_extractor: "projects/{project}"
40
- # }
36
+ # pattern: "projects/{project}/topics/{topic}"
41
37
  # };
42
38
  # }
43
39
  #
@@ -45,10 +41,7 @@ module Google
45
41
  #
46
42
  # resources:
47
43
  # - type: "pubsub.googleapis.com/Topic"
48
- # name_descriptor:
49
- # - pattern: "projects/{project}/topics/{topic}"
50
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
51
- # parent_name_extractor: "projects/{project}"
44
+ # pattern: "projects/{project}/topics/{topic}"
52
45
  #
53
46
  # Sometimes, resources have multiple patterns, typically because they can
54
47
  # live under multiple parents.
@@ -58,26 +51,10 @@ module Google
58
51
  # message LogEntry {
59
52
  # option (google.api.resource) = {
60
53
  # type: "logging.googleapis.com/LogEntry"
61
- # name_descriptor: {
62
- # pattern: "projects/{project}/logs/{log}"
63
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
64
- # parent_name_extractor: "projects/{project}"
65
- # }
66
- # name_descriptor: {
67
- # pattern: "folders/{folder}/logs/{log}"
68
- # parent_type: "cloudresourcemanager.googleapis.com/Folder"
69
- # parent_name_extractor: "folders/{folder}"
70
- # }
71
- # name_descriptor: {
72
- # pattern: "organizations/{organization}/logs/{log}"
73
- # parent_type: "cloudresourcemanager.googleapis.com/Organization"
74
- # parent_name_extractor: "organizations/{organization}"
75
- # }
76
- # name_descriptor: {
77
- # pattern: "billingAccounts/{billing_account}/logs/{log}"
78
- # parent_type: "billing.googleapis.com/BillingAccount"
79
- # parent_name_extractor: "billingAccounts/{billing_account}"
80
- # }
54
+ # pattern: "projects/{project}/logs/{log}"
55
+ # pattern: "folders/{folder}/logs/{log}"
56
+ # pattern: "organizations/{organization}/logs/{log}"
57
+ # pattern: "billingAccounts/{billing_account}/logs/{log}"
81
58
  # };
82
59
  # }
83
60
  #
@@ -85,48 +62,10 @@ module Google
85
62
  #
86
63
  # resources:
87
64
  # - type: 'logging.googleapis.com/LogEntry'
88
- # name_descriptor:
89
- # - pattern: "projects/{project}/logs/{log}"
90
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
91
- # parent_name_extractor: "projects/{project}"
92
- # - pattern: "folders/{folder}/logs/{log}"
93
- # parent_type: "cloudresourcemanager.googleapis.com/Folder"
94
- # parent_name_extractor: "folders/{folder}"
95
- # - pattern: "organizations/{organization}/logs/{log}"
96
- # parent_type: "cloudresourcemanager.googleapis.com/Organization"
97
- # parent_name_extractor: "organizations/{organization}"
98
- # - pattern: "billingAccounts/{billing_account}/logs/{log}"
99
- # parent_type: "billing.googleapis.com/BillingAccount"
100
- # parent_name_extractor: "billingAccounts/{billing_account}"
101
- #
102
- # For flexible resources, the resource name doesn't contain parent names, but
103
- # the resource itself has parents for policy evaluation.
104
- #
105
- # Example:
106
- #
107
- # message Shelf {
108
- # option (google.api.resource) = {
109
- # type: "library.googleapis.com/Shelf"
110
- # name_descriptor: {
111
- # pattern: "shelves/{shelf}"
112
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
113
- # }
114
- # name_descriptor: {
115
- # pattern: "shelves/{shelf}"
116
- # parent_type: "cloudresourcemanager.googleapis.com/Folder"
117
- # }
118
- # };
119
- # }
120
- #
121
- # The ResourceDescriptor Yaml config will look like:
122
- #
123
- # resources:
124
- # - type: 'library.googleapis.com/Shelf'
125
- # name_descriptor:
126
- # - pattern: "shelves/{shelf}"
127
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
128
- # - pattern: "shelves/{shelf}"
129
- # parent_type: "cloudresourcemanager.googleapis.com/Folder"
65
+ # pattern: "projects/{project}/logs/{log}"
66
+ # pattern: "folders/{folder}/logs/{log}"
67
+ # pattern: "organizations/{organization}/logs/{log}"
68
+ # pattern: "billingAccounts/{billing_account}/logs/{log}"
130
69
  # @!attribute [rw] type
131
70
  # @return [::String]
132
71
  # The resource type. It must be in the format of
@@ -0,0 +1,94 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2022 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Cloud
22
+ module Eventarc
23
+ module V1
24
+ # A representation of the Channel resource.
25
+ # A Channel is a resource on which event providers publish their events.
26
+ # The published events are delivered through the transport associated with the
27
+ # channel. Note that a channel is associated with exactly one event provider.
28
+ # @!attribute [rw] name
29
+ # @return [::String]
30
+ # Required. The resource name of the channel. Must be unique within the location
31
+ # on the project and must be in
32
+ # `projects/{project}/locations/{location}/channels/{channel_id}` format.
33
+ # @!attribute [r] uid
34
+ # @return [::String]
35
+ # Output only. Server assigned unique identifier for the channel. The value is a UUID4
36
+ # string and guaranteed to remain unchanged until the resource is deleted.
37
+ # @!attribute [r] create_time
38
+ # @return [::Google::Protobuf::Timestamp]
39
+ # Output only. The creation time.
40
+ # @!attribute [r] update_time
41
+ # @return [::Google::Protobuf::Timestamp]
42
+ # Output only. The last-modified time.
43
+ # @!attribute [rw] provider
44
+ # @return [::String]
45
+ # Required. The name of the event provider (e.g. Eventarc SaaS partner) associated
46
+ # with the channel. This provider will be granted permissions to publish
47
+ # events to the channel. Format:
48
+ # `projects/{project}/locations/{location}/providers/{provider_id}`.
49
+ # @!attribute [r] pubsub_topic
50
+ # @return [::String]
51
+ # Output only. The name of the Pub/Sub topic created and managed by Eventarc system as
52
+ # a transport for the event delivery. Format:
53
+ # `projects/{project}/topics/{topic_id}`.
54
+ # @!attribute [r] state
55
+ # @return [::Google::Cloud::Eventarc::V1::Channel::State]
56
+ # Output only. The state of a Channel.
57
+ # @!attribute [r] activation_token
58
+ # @return [::String]
59
+ # Output only. The activation token for the channel. The token must be used by the
60
+ # provider to register the channel for publishing.
61
+ class Channel
62
+ include ::Google::Protobuf::MessageExts
63
+ extend ::Google::Protobuf::MessageExts::ClassMethods
64
+
65
+ # State lists all the possible states of a Channel
66
+ module State
67
+ # Default value. This value is unused.
68
+ STATE_UNSPECIFIED = 0
69
+
70
+ # The PENDING state indicates that a Channel has been created successfully
71
+ # and there is a new activation token available for the subscriber to use
72
+ # to convey the Channel to the provider in order to create a Connection.
73
+ PENDING = 1
74
+
75
+ # The ACTIVE state indicates that a Channel has been successfully
76
+ # connected with the event provider.
77
+ # An ACTIVE Channel is ready to receive and route events from the
78
+ # event provider.
79
+ ACTIVE = 2
80
+
81
+ # The INACTIVE state means that the Channel cannot receive events
82
+ # permanently. There are two possible cases this state can happen:
83
+ # 1. The SaaS provider disconnected from this Channel.
84
+ # 2. The Channel activation token has expired but the SaaS provider
85
+ # wasn't connected.
86
+ # To re-establish a Connection with a provider, the subscriber
87
+ # should create a new Channel and give it to the provider.
88
+ INACTIVE = 3
89
+ end
90
+ end
91
+ end
92
+ end
93
+ end
94
+ end
@@ -0,0 +1,59 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2022 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Cloud
22
+ module Eventarc
23
+ module V1
24
+ # A representation of the ChannelConnection resource.
25
+ # A ChannelConnection is a resource which event providers create during the
26
+ # activation process to establish a connection between the provider and the
27
+ # subscriber channel.
28
+ # @!attribute [rw] name
29
+ # @return [::String]
30
+ # Required. The name of the connection.
31
+ # @!attribute [r] uid
32
+ # @return [::String]
33
+ # Output only. Server assigned ID of the resource.
34
+ # The server guarantees uniqueness and immutability until deleted.
35
+ # @!attribute [rw] channel
36
+ # @return [::String]
37
+ # Required. The name of the connected subscriber Channel.
38
+ # This is a weak reference to avoid cross project and cross accounts
39
+ # references. This must be in
40
+ # `projects/{project}/location/{location}/channels/{channel_id}` format.
41
+ # @!attribute [r] create_time
42
+ # @return [::Google::Protobuf::Timestamp]
43
+ # Output only. The creation time.
44
+ # @!attribute [r] update_time
45
+ # @return [::Google::Protobuf::Timestamp]
46
+ # Output only. The last-modified time.
47
+ # @!attribute [rw] activation_token
48
+ # @return [::String]
49
+ # Input only. Activation token for the channel. The token will be used
50
+ # during the creation of ChannelConnection to bind the channel with the
51
+ # provider project. This field will not be stored in the provider resource.
52
+ class ChannelConnection
53
+ include ::Google::Protobuf::MessageExts
54
+ extend ::Google::Protobuf::MessageExts::ClassMethods
55
+ end
56
+ end
57
+ end
58
+ end
59
+ end