google-cloud-eventarc-v1 0.1.1 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
@@ -47,16 +47,16 @@ module Google
47
47
  # the call that provided the page token.
48
48
  # @!attribute [rw] order_by
49
49
  # @return [::String]
50
- # The sorting order of the resources returned. Value should be a comma
51
- # separated list of fields. The default sorting oder is ascending. To specify
52
- # descending order for a field, append a ` desc` suffix; for example:
50
+ # The sorting order of the resources returned. Value should be a
51
+ # comma-separated list of fields. The default sorting order is ascending. To
52
+ # specify descending order for a field, append a `desc` suffix; for example:
53
53
  # `name desc, trigger_id`.
54
54
  class ListTriggersRequest
55
55
  include ::Google::Protobuf::MessageExts
56
56
  extend ::Google::Protobuf::MessageExts::ClassMethods
57
57
  end
58
58
 
59
- # The response message for the ListTriggers method.
59
+ # The response message for the `ListTriggers` method.
60
60
  # @!attribute [rw] triggers
61
61
  # @return [::Array<::Google::Cloud::Eventarc::V1::Trigger>]
62
62
  # The requested triggers, up to the number specified in `page_size`.
@@ -84,7 +84,7 @@ module Google
84
84
  # Required. The user-provided ID to be assigned to the trigger.
85
85
  # @!attribute [rw] validate_only
86
86
  # @return [::Boolean]
87
- # Required. If set, validate the request and preview the review, but do not actually
87
+ # Required. If set, validate the request and preview the review, but do not
88
88
  # post it.
89
89
  class CreateTriggerRequest
90
90
  include ::Google::Protobuf::MessageExts
@@ -97,8 +97,8 @@ module Google
97
97
  # The trigger to be updated.
98
98
  # @!attribute [rw] update_mask
99
99
  # @return [::Google::Protobuf::FieldMask]
100
- # The fields to be updated; only fields explicitly provided will be updated.
101
- # If no field mask is provided, all provided fields in the request will be
100
+ # The fields to be updated; only fields explicitly provided are updated.
101
+ # If no field mask is provided, all provided fields in the request are
102
102
  # updated. To update all fields, provide a field mask of "*".
103
103
  # @!attribute [rw] allow_missing
104
104
  # @return [::Boolean]
@@ -106,7 +106,7 @@ module Google
106
106
  # created. In this situation, `update_mask` is ignored.
107
107
  # @!attribute [rw] validate_only
108
108
  # @return [::Boolean]
109
- # Required. If set, validate the request and preview the review, but do not actually
109
+ # Required. If set, validate the request and preview the review, but do not
110
110
  # post it.
111
111
  class UpdateTriggerRequest
112
112
  include ::Google::Protobuf::MessageExts
@@ -127,13 +127,185 @@ module Google
127
127
  # but no action will be taken on the server.
128
128
  # @!attribute [rw] validate_only
129
129
  # @return [::Boolean]
130
- # Required. If set, validate the request and preview the review, but do not actually
130
+ # Required. If set, validate the request and preview the review, but do not
131
131
  # post it.
132
132
  class DeleteTriggerRequest
133
133
  include ::Google::Protobuf::MessageExts
134
134
  extend ::Google::Protobuf::MessageExts::ClassMethods
135
135
  end
136
136
 
137
+ # The request message for the GetChannel method.
138
+ # @!attribute [rw] name
139
+ # @return [::String]
140
+ # Required. The name of the channel to get.
141
+ class GetChannelRequest
142
+ include ::Google::Protobuf::MessageExts
143
+ extend ::Google::Protobuf::MessageExts::ClassMethods
144
+ end
145
+
146
+ # The request message for the ListChannels method.
147
+ # @!attribute [rw] parent
148
+ # @return [::String]
149
+ # Required. The parent collection to list channels on.
150
+ # @!attribute [rw] page_size
151
+ # @return [::Integer]
152
+ # The maximum number of channels to return on each page.
153
+ # Note: The service may send fewer.
154
+ # @!attribute [rw] page_token
155
+ # @return [::String]
156
+ # The page token; provide the value from the `next_page_token` field in a
157
+ # previous `ListChannels` call to retrieve the subsequent page.
158
+ #
159
+ # When paginating, all other parameters provided to `ListChannels` must
160
+ # match the call that provided the page token.
161
+ # @!attribute [rw] order_by
162
+ # @return [::String]
163
+ # The sorting order of the resources returned. Value should be a
164
+ # comma-separated list of fields. The default sorting order is ascending. To
165
+ # specify descending order for a field, append a `desc` suffix; for example:
166
+ # `name desc, channel_id`.
167
+ class ListChannelsRequest
168
+ include ::Google::Protobuf::MessageExts
169
+ extend ::Google::Protobuf::MessageExts::ClassMethods
170
+ end
171
+
172
+ # The response message for the `ListChannels` method.
173
+ # @!attribute [rw] channels
174
+ # @return [::Array<::Google::Cloud::Eventarc::V1::Channel>]
175
+ # The requested channels, up to the number specified in `page_size`.
176
+ # @!attribute [rw] next_page_token
177
+ # @return [::String]
178
+ # A page token that can be sent to ListChannels to request the next page.
179
+ # If this is empty, then there are no more pages.
180
+ # @!attribute [rw] unreachable
181
+ # @return [::Array<::String>]
182
+ # Unreachable resources, if any.
183
+ class ListChannelsResponse
184
+ include ::Google::Protobuf::MessageExts
185
+ extend ::Google::Protobuf::MessageExts::ClassMethods
186
+ end
187
+
188
+ # The request message for the CreateChannel method.
189
+ # @!attribute [rw] parent
190
+ # @return [::String]
191
+ # Required. The parent collection in which to add this channel.
192
+ # @!attribute [rw] channel
193
+ # @return [::Google::Cloud::Eventarc::V1::Channel]
194
+ # Required. The channel to create.
195
+ # @!attribute [rw] channel_id
196
+ # @return [::String]
197
+ # Required. The user-provided ID to be assigned to the channel.
198
+ # @!attribute [rw] validate_only
199
+ # @return [::Boolean]
200
+ # Required. If set, validate the request and preview the review, but do not
201
+ # post it.
202
+ class CreateChannelRequest
203
+ include ::Google::Protobuf::MessageExts
204
+ extend ::Google::Protobuf::MessageExts::ClassMethods
205
+ end
206
+
207
+ # The request message for the UpdateChannel method.
208
+ # @!attribute [rw] channel
209
+ # @return [::Google::Cloud::Eventarc::V1::Channel]
210
+ # The channel to be updated.
211
+ # @!attribute [rw] update_mask
212
+ # @return [::Google::Protobuf::FieldMask]
213
+ # The fields to be updated; only fields explicitly provided are updated.
214
+ # If no field mask is provided, all provided fields in the request are
215
+ # updated. To update all fields, provide a field mask of "*".
216
+ # @!attribute [rw] validate_only
217
+ # @return [::Boolean]
218
+ # Required. If set, validate the request and preview the review, but do not
219
+ # post it.
220
+ class UpdateChannelRequest
221
+ include ::Google::Protobuf::MessageExts
222
+ extend ::Google::Protobuf::MessageExts::ClassMethods
223
+ end
224
+
225
+ # The request message for the DeleteChannel method.
226
+ # @!attribute [rw] name
227
+ # @return [::String]
228
+ # Required. The name of the channel to be deleted.
229
+ # @!attribute [rw] validate_only
230
+ # @return [::Boolean]
231
+ # Required. If set, validate the request and preview the review, but do not
232
+ # post it.
233
+ class DeleteChannelRequest
234
+ include ::Google::Protobuf::MessageExts
235
+ extend ::Google::Protobuf::MessageExts::ClassMethods
236
+ end
237
+
238
+ # The request message for the GetChannelConnection method.
239
+ # @!attribute [rw] name
240
+ # @return [::String]
241
+ # Required. The name of the channel connection to get.
242
+ class GetChannelConnectionRequest
243
+ include ::Google::Protobuf::MessageExts
244
+ extend ::Google::Protobuf::MessageExts::ClassMethods
245
+ end
246
+
247
+ # The request message for the ListChannelConnections method.
248
+ # @!attribute [rw] parent
249
+ # @return [::String]
250
+ # Required. The parent collection from which to list channel connections.
251
+ # @!attribute [rw] page_size
252
+ # @return [::Integer]
253
+ # The maximum number of channel connections to return on each page.
254
+ # Note: The service may send fewer responses.
255
+ # @!attribute [rw] page_token
256
+ # @return [::String]
257
+ # The page token; provide the value from the `next_page_token` field in a
258
+ # previous `ListChannelConnections` call to retrieve the subsequent page.
259
+ #
260
+ # When paginating, all other parameters provided to `ListChannelConnetions`
261
+ # match the call that provided the page token.
262
+ class ListChannelConnectionsRequest
263
+ include ::Google::Protobuf::MessageExts
264
+ extend ::Google::Protobuf::MessageExts::ClassMethods
265
+ end
266
+
267
+ # The response message for the `ListChannelConnections` method.
268
+ # @!attribute [rw] channel_connections
269
+ # @return [::Array<::Google::Cloud::Eventarc::V1::ChannelConnection>]
270
+ # The requested channel connections, up to the number specified in
271
+ # `page_size`.
272
+ # @!attribute [rw] next_page_token
273
+ # @return [::String]
274
+ # A page token that can be sent to ListChannelConnections to request the
275
+ # next page.
276
+ # If this is empty, then there are no more pages.
277
+ # @!attribute [rw] unreachable
278
+ # @return [::Array<::String>]
279
+ # Unreachable resources, if any.
280
+ class ListChannelConnectionsResponse
281
+ include ::Google::Protobuf::MessageExts
282
+ extend ::Google::Protobuf::MessageExts::ClassMethods
283
+ end
284
+
285
+ # The request message for the CreateChannelConnection method.
286
+ # @!attribute [rw] parent
287
+ # @return [::String]
288
+ # Required. The parent collection in which to add this channel connection.
289
+ # @!attribute [rw] channel_connection
290
+ # @return [::Google::Cloud::Eventarc::V1::ChannelConnection]
291
+ # Required. Channel connection to create.
292
+ # @!attribute [rw] channel_connection_id
293
+ # @return [::String]
294
+ # Required. The user-provided ID to be assigned to the channel connection.
295
+ class CreateChannelConnectionRequest
296
+ include ::Google::Protobuf::MessageExts
297
+ extend ::Google::Protobuf::MessageExts::ClassMethods
298
+ end
299
+
300
+ # The request message for the DeleteChannelConnection method.
301
+ # @!attribute [rw] name
302
+ # @return [::String]
303
+ # Required. The name of the channel connection to delete.
304
+ class DeleteChannelConnectionRequest
305
+ include ::Google::Protobuf::MessageExts
306
+ extend ::Google::Protobuf::MessageExts::ClassMethods
307
+ end
308
+
137
309
  # Represents the metadata of the long-running operation.
138
310
  # @!attribute [r] create_time
139
311
  # @return [::Google::Protobuf::Timestamp]
@@ -24,14 +24,13 @@ module Google
24
24
  # A representation of the trigger resource.
25
25
  # @!attribute [rw] name
26
26
  # @return [::String]
27
- # Required. The resource name of the trigger. Must be unique within the
28
- # location on the project and must be in
27
+ # Required. The resource name of the trigger. Must be unique within the location of the
28
+ # project and must be in
29
29
  # `projects/{project}/locations/{location}/triggers/{trigger}` format.
30
30
  # @!attribute [r] uid
31
31
  # @return [::String]
32
- # Output only. Server assigned unique identifier for the trigger. The value
33
- # is a UUID4 string and guaranteed to remain unchanged until the resource is
34
- # deleted.
32
+ # Output only. Server-assigned unique identifier for the trigger. The value is a UUID4
33
+ # string and guaranteed to remain unchanged until the resource is deleted.
35
34
  # @!attribute [r] create_time
36
35
  # @return [::Google::Protobuf::Timestamp]
37
36
  # Output only. The creation time.
@@ -40,14 +39,14 @@ module Google
40
39
  # Output only. The last-modified time.
41
40
  # @!attribute [rw] event_filters
42
41
  # @return [::Array<::Google::Cloud::Eventarc::V1::EventFilter>]
43
- # Required. null The list of filters that applies to event attributes. Only
44
- # events that match all the provided filters will be sent to the destination.
42
+ # Required. null The list of filters that applies to event attributes. Only events that
43
+ # match all the provided filters are sent to the destination.
45
44
  # @!attribute [rw] service_account
46
45
  # @return [::String]
47
46
  # Optional. The IAM service account email associated with the trigger. The
48
47
  # service account represents the identity of the trigger.
49
48
  #
50
- # The principal who calls this API must have `iam.serviceAccounts.actAs`
49
+ # The principal who calls this API must have the `iam.serviceAccounts.actAs`
51
50
  # permission in the service account. See
52
51
  # https://cloud.google.com/iam/docs/understanding-service-accounts?hl=en#sa_common
53
52
  # for more information.
@@ -56,26 +55,30 @@ module Google
56
55
  # identity tokens when invoking the service. See
57
56
  # https://cloud.google.com/run/docs/triggering/pubsub-push#create-service-account
58
57
  # for information on how to invoke authenticated Cloud Run services.
59
- # In order to create Audit Log triggers, the service account should also
60
- # have `roles/eventarc.eventReceiver` IAM role.
58
+ # To create Audit Log triggers, the service account should also
59
+ # have the `roles/eventarc.eventReceiver` IAM role.
61
60
  # @!attribute [rw] destination
62
61
  # @return [::Google::Cloud::Eventarc::V1::Destination]
63
62
  # Required. Destination specifies where the events should be sent to.
64
63
  # @!attribute [rw] transport
65
64
  # @return [::Google::Cloud::Eventarc::V1::Transport]
66
- # Optional. In order to deliver messages, Eventarc may use other GCP
67
- # products as transport intermediary. This field contains a reference to that
68
- # transport intermediary. This information can be used for debugging
65
+ # Optional. To deliver messages, Eventarc might use other GCP
66
+ # products as a transport intermediary. This field contains a reference to
67
+ # that transport intermediary. This information can be used for debugging
69
68
  # purposes.
70
69
  # @!attribute [rw] labels
71
70
  # @return [::Google::Protobuf::Map{::String => ::String}]
72
- # Optional. User labels attached to the triggers that can be used to group
73
- # resources.
71
+ # Optional. User labels attached to the triggers that can be used to group resources.
72
+ # @!attribute [rw] channel
73
+ # @return [::String]
74
+ # Optional. The name of the channel associated with the trigger in
75
+ # `projects/{project}/locations/{location}/channels/{channel}` format.
76
+ # You must provide a channel to receive events from Eventarc SaaS partners.
74
77
  # @!attribute [r] etag
75
78
  # @return [::String]
76
- # Output only. This checksum is computed by the server based on the value of
77
- # other fields, and may be sent only on create requests to ensure the client
78
- # has an up-to-date value before proceeding.
79
+ # Output only. This checksum is computed by the server based on the value of other
80
+ # fields, and might be sent only on create requests to ensure that the
81
+ # client has an up-to-date value before proceeding.
79
82
  class Trigger
80
83
  include ::Google::Protobuf::MessageExts
81
84
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -93,13 +96,19 @@ module Google
93
96
  # Filters events based on exact matches on the CloudEvents attributes.
94
97
  # @!attribute [rw] attribute
95
98
  # @return [::String]
96
- # Required. The name of a CloudEvents attribute. Currently, only a subset of
97
- # attributes are supported for filtering.
99
+ # Required. The name of a CloudEvents attribute. Currently, only a subset of attributes
100
+ # are supported for filtering.
98
101
  #
99
102
  # All triggers MUST provide a filter for the 'type' attribute.
100
103
  # @!attribute [rw] value
101
104
  # @return [::String]
102
105
  # Required. The value for the attribute.
106
+ # @!attribute [rw] operator
107
+ # @return [::String]
108
+ # Optional. The operator used for matching the events with the value of the
109
+ # filter. If not specified, only events that have an exact key-value pair
110
+ # specified in the filter are matched. The only allowed value is
111
+ # `match-path-pattern`.
103
112
  class EventFilter
104
113
  include ::Google::Protobuf::MessageExts
105
114
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -108,18 +117,26 @@ module Google
108
117
  # Represents a target of an invocation over HTTP.
109
118
  # @!attribute [rw] cloud_run
110
119
  # @return [::Google::Cloud::Eventarc::V1::CloudRun]
111
- # Cloud Run fully-managed service that receives the events. The service
112
- # should be running in the same project of the trigger.
120
+ # Cloud Run fully-managed resource that receives the events. The resource
121
+ # should be in the same project as the trigger.
122
+ # @!attribute [rw] cloud_function
123
+ # @return [::String]
124
+ # The Cloud Function resource name. Only Cloud Functions V2 is supported.
125
+ # Format: `projects/{project}/locations/{location}/functions/{function}`
126
+ # @!attribute [rw] gke
127
+ # @return [::Google::Cloud::Eventarc::V1::GKE]
128
+ # A GKE service capable of receiving events. The service should be running
129
+ # in the same project as the trigger.
113
130
  class Destination
114
131
  include ::Google::Protobuf::MessageExts
115
132
  extend ::Google::Protobuf::MessageExts::ClassMethods
116
133
  end
117
134
 
118
- # Represents the transport intermediaries created for the trigger in order to
135
+ # Represents the transport intermediaries created for the trigger to
119
136
  # deliver events.
120
137
  # @!attribute [rw] pubsub
121
138
  # @return [::Google::Cloud::Eventarc::V1::Pubsub]
122
- # The Pub/Sub topic and subscription used by Eventarc as delivery
139
+ # The Pub/Sub topic and subscription used by Eventarc as a transport
123
140
  # intermediary.
124
141
  class Transport
125
142
  include ::Google::Protobuf::MessageExts
@@ -132,14 +149,13 @@ module Google
132
149
  # Required. The name of the Cloud Run service being addressed. See
133
150
  # https://cloud.google.com/run/docs/reference/rest/v1/namespaces.services.
134
151
  #
135
- # Only services located in the same project of the trigger object
152
+ # Only services located in the same project as the trigger object
136
153
  # can be addressed.
137
154
  # @!attribute [rw] path
138
155
  # @return [::String]
139
- # Optional. The relative path on the Cloud Run service the events should be
140
- # sent to.
156
+ # Optional. The relative path on the Cloud Run service the events should be sent to.
141
157
  #
142
- # The value must conform to the definition of URI path segment (section 3.3
158
+ # The value must conform to the definition of a URI path segment (section 3.3
143
159
  # of RFC2396). Examples: "/route", "route", "route/subroute".
144
160
  # @!attribute [rw] region
145
161
  # @return [::String]
@@ -149,20 +165,47 @@ module Google
149
165
  extend ::Google::Protobuf::MessageExts::ClassMethods
150
166
  end
151
167
 
168
+ # Represents a GKE destination.
169
+ # @!attribute [rw] cluster
170
+ # @return [::String]
171
+ # Required. The name of the cluster the GKE service is running in. The cluster must be
172
+ # running in the same project as the trigger being created.
173
+ # @!attribute [rw] location
174
+ # @return [::String]
175
+ # Required. The name of the Google Compute Engine in which the cluster resides, which
176
+ # can either be compute zone (for example, us-central1-a) for the zonal
177
+ # clusters or region (for example, us-central1) for regional clusters.
178
+ # @!attribute [rw] namespace
179
+ # @return [::String]
180
+ # Required. The namespace the GKE service is running in.
181
+ # @!attribute [rw] service
182
+ # @return [::String]
183
+ # Required. Name of the GKE service.
184
+ # @!attribute [rw] path
185
+ # @return [::String]
186
+ # Optional. The relative path on the GKE service the events should be sent to.
187
+ #
188
+ # The value must conform to the definition of a URI path segment (section 3.3
189
+ # of RFC2396). Examples: "/route", "route", "route/subroute".
190
+ class GKE
191
+ include ::Google::Protobuf::MessageExts
192
+ extend ::Google::Protobuf::MessageExts::ClassMethods
193
+ end
194
+
152
195
  # Represents a Pub/Sub transport.
153
196
  # @!attribute [rw] topic
154
197
  # @return [::String]
155
- # Optional. The name of the Pub/Sub topic created and managed by Eventarc
156
- # system as a transport for the event delivery. Format:
198
+ # Optional. The name of the Pub/Sub topic created and managed by Eventarc as
199
+ # a transport for the event delivery. Format:
157
200
  # `projects/{PROJECT_ID}/topics/{TOPIC_NAME}`.
158
201
  #
159
- # You may set an existing topic for triggers of the type
160
- # `google.cloud.pubsub.topic.v1.messagePublished` only. The topic you provide
161
- # here will not be deleted by Eventarc at trigger deletion.
202
+ # You can set an existing topic for triggers of the type
203
+ # `google.cloud.pubsub.topic.v1.messagePublished`. The topic you provide
204
+ # here is not deleted by Eventarc at trigger deletion.
162
205
  # @!attribute [r] subscription
163
206
  # @return [::String]
164
- # Output only. The name of the Pub/Sub subscription created and managed by
165
- # Eventarc system as a transport for the event delivery. Format:
207
+ # Output only. The name of the Pub/Sub subscription created and managed by Eventarc
208
+ # as a transport for the event delivery. Format:
166
209
  # `projects/{PROJECT_ID}/subscriptions/{SUBSCRIPTION_NAME}`.
167
210
  class Pubsub
168
211
  include ::Google::Protobuf::MessageExts
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-eventarc-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-07-12 00:00:00.000000000 Z
11
+ date: 2022-02-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.5'
19
+ version: '0.7'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '0.5'
29
+ version: '0.7'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -173,6 +173,8 @@ files:
173
173
  - README.md
174
174
  - lib/google-cloud-eventarc-v1.rb
175
175
  - lib/google/cloud/eventarc/v1.rb
176
+ - lib/google/cloud/eventarc/v1/channel_connection_pb.rb
177
+ - lib/google/cloud/eventarc/v1/channel_pb.rb
176
178
  - lib/google/cloud/eventarc/v1/eventarc.rb
177
179
  - lib/google/cloud/eventarc/v1/eventarc/client.rb
178
180
  - lib/google/cloud/eventarc/v1/eventarc/credentials.rb
@@ -185,6 +187,8 @@ files:
185
187
  - proto_docs/README.md
186
188
  - proto_docs/google/api/field_behavior.rb
187
189
  - proto_docs/google/api/resource.rb
190
+ - proto_docs/google/cloud/eventarc/v1/channel.rb
191
+ - proto_docs/google/cloud/eventarc/v1/channel_connection.rb
188
192
  - proto_docs/google/cloud/eventarc/v1/eventarc.rb
189
193
  - proto_docs/google/cloud/eventarc/v1/trigger.rb
190
194
  - proto_docs/google/longrunning/operations.rb
@@ -213,7 +217,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
213
217
  - !ruby/object:Gem::Version
214
218
  version: '0'
215
219
  requirements: []
216
- rubygems_version: 3.2.17
220
+ rubygems_version: 3.3.5
217
221
  signing_key:
218
222
  specification_version: 4
219
223
  summary: API Client library for the Eventarc V1 API