google-apis-eventarc_v1 0.24.0 → 0.27.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 802e624f1f39bc39490e5d3d6ac2aa7ecdaf9eda0b5f137e6509f8bd3bf07e2c
4
- data.tar.gz: 60da47ebb8965571fc5c20cff456026fef203853bdd0b9f44c86f4f7d5050763
3
+ metadata.gz: 970e4d28f84185d04b2c1da459954b0417518405e204073cc09f33e126965289
4
+ data.tar.gz: 463ffbfd543a78b24f5c461d4d3cbd410457491ec42fba42374c3eb1bb80fb80
5
5
  SHA512:
6
- metadata.gz: c4e803de53b938bf59bd62015c0df1e14f67bc66ff16f2340082bacc24c7f90912eb263d6b5c75a28825e0aed35228c3565ea61257f51f4778c9e0839d8a326c
7
- data.tar.gz: 4a5384ddfed59702588765f0e86e9b7de627e236f7e560e42a50282e203d61f06ae600af81fcc215d53ee1097cfa53d56c3f0af3475bd66643b64655d0fe6283
6
+ metadata.gz: 8aeb3c04078954bce8c1f7e452cfc14bf3024eb0afe52851b45603d9eeab31d63be09bb2a5aad91e6493670c9cd289f92a6ec2ae58e64101b2189e23182adbfe
7
+ data.tar.gz: be959306e2a1d1b401163c6aae11b872a6f1adcfb448b706e98d44c18d577c4db794b91d2ec08628ef00affa9fcaf72269055588aa92f3521275587ce2ac2eb7
data/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Release history for google-apis-eventarc_v1
2
2
 
3
+ ### v0.27.0 (2022-06-20)
4
+
5
+ * Regenerated using generator version 0.7.0
6
+
7
+ ### v0.26.0 (2022-06-12)
8
+
9
+ * Regenerated from discovery document revision 20220607
10
+ * Regenerated using generator version 0.5.0
11
+
12
+ ### v0.25.0 (2022-05-08)
13
+
14
+ * Regenerated from discovery document revision 20220429
15
+
3
16
  ### v0.24.0 (2022-04-30)
4
17
 
5
18
  * Regenerated from discovery document revision 20220422
@@ -35,8 +35,8 @@ module Google
35
35
  # "audit_log_configs": [ ` "log_type": "DATA_READ" `, ` "log_type": "DATA_WRITE"
36
36
  # , "exempted_members": [ "user:aliya@example.com" ] ` ] ` ] ` For sampleservice,
37
37
  # this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also
38
- # exempts jose@example.com from DATA_READ logging, and aliya@example.com from
39
- # DATA_WRITE logging.
38
+ # exempts `jose@example.com` from DATA_READ logging, and `aliya@example.com`
39
+ # from DATA_WRITE logging.
40
40
  class AuditConfig
41
41
  include Google::Apis::Core::Hashable
42
42
 
@@ -164,6 +164,135 @@ module Google
164
164
  end
165
165
  end
166
166
 
167
+ # A representation of the Channel resource. A Channel is a resource on which
168
+ # event providers publish their events. The published events are delivered
169
+ # through the transport associated with the channel. Note that a channel is
170
+ # associated with exactly one event provider.
171
+ class Channel
172
+ include Google::Apis::Core::Hashable
173
+
174
+ # Output only. The activation token for the channel. The token must be used by
175
+ # the provider to register the channel for publishing.
176
+ # Corresponds to the JSON property `activationToken`
177
+ # @return [String]
178
+ attr_accessor :activation_token
179
+
180
+ # Output only. The creation time.
181
+ # Corresponds to the JSON property `createTime`
182
+ # @return [String]
183
+ attr_accessor :create_time
184
+
185
+ # Required. The resource name of the channel. Must be unique within the location
186
+ # on the project and must be in `projects/`project`/locations/`location`/
187
+ # channels/`channel_id`` format.
188
+ # Corresponds to the JSON property `name`
189
+ # @return [String]
190
+ attr_accessor :name
191
+
192
+ # The name of the event provider (e.g. Eventarc SaaS partner) associated with
193
+ # the channel. This provider will be granted permissions to publish events to
194
+ # the channel. Format: `projects/`project`/locations/`location`/providers/`
195
+ # provider_id``.
196
+ # Corresponds to the JSON property `provider`
197
+ # @return [String]
198
+ attr_accessor :provider
199
+
200
+ # Output only. The name of the Pub/Sub topic created and managed by Eventarc
201
+ # system as a transport for the event delivery. Format: `projects/`project`/
202
+ # topics/`topic_id``.
203
+ # Corresponds to the JSON property `pubsubTopic`
204
+ # @return [String]
205
+ attr_accessor :pubsub_topic
206
+
207
+ # Output only. The state of a Channel.
208
+ # Corresponds to the JSON property `state`
209
+ # @return [String]
210
+ attr_accessor :state
211
+
212
+ # Output only. Server assigned unique identifier for the channel. The value is a
213
+ # UUID4 string and guaranteed to remain unchanged until the resource is deleted.
214
+ # Corresponds to the JSON property `uid`
215
+ # @return [String]
216
+ attr_accessor :uid
217
+
218
+ # Output only. The last-modified time.
219
+ # Corresponds to the JSON property `updateTime`
220
+ # @return [String]
221
+ attr_accessor :update_time
222
+
223
+ def initialize(**args)
224
+ update!(**args)
225
+ end
226
+
227
+ # Update properties of this object
228
+ def update!(**args)
229
+ @activation_token = args[:activation_token] if args.key?(:activation_token)
230
+ @create_time = args[:create_time] if args.key?(:create_time)
231
+ @name = args[:name] if args.key?(:name)
232
+ @provider = args[:provider] if args.key?(:provider)
233
+ @pubsub_topic = args[:pubsub_topic] if args.key?(:pubsub_topic)
234
+ @state = args[:state] if args.key?(:state)
235
+ @uid = args[:uid] if args.key?(:uid)
236
+ @update_time = args[:update_time] if args.key?(:update_time)
237
+ end
238
+ end
239
+
240
+ # A representation of the ChannelConnection resource. A ChannelConnection is a
241
+ # resource which event providers create during the activation process to
242
+ # establish a connection between the provider and the subscriber channel.
243
+ class ChannelConnection
244
+ include Google::Apis::Core::Hashable
245
+
246
+ # Input only. Activation token for the channel. The token will be used during
247
+ # the creation of ChannelConnection to bind the channel with the provider
248
+ # project. This field will not be stored in the provider resource.
249
+ # Corresponds to the JSON property `activationToken`
250
+ # @return [String]
251
+ attr_accessor :activation_token
252
+
253
+ # Required. The name of the connected subscriber Channel. This is a weak
254
+ # reference to avoid cross project and cross accounts references. This must be
255
+ # in `projects/`project`/location/`location`/channels/`channel_id`` format.
256
+ # Corresponds to the JSON property `channel`
257
+ # @return [String]
258
+ attr_accessor :channel
259
+
260
+ # Output only. The creation time.
261
+ # Corresponds to the JSON property `createTime`
262
+ # @return [String]
263
+ attr_accessor :create_time
264
+
265
+ # Required. The name of the connection.
266
+ # Corresponds to the JSON property `name`
267
+ # @return [String]
268
+ attr_accessor :name
269
+
270
+ # Output only. / Output only. Server assigned ID of the resource. The server
271
+ # guarantees uniqueness and immutability until deleted.
272
+ # Corresponds to the JSON property `uid`
273
+ # @return [String]
274
+ attr_accessor :uid
275
+
276
+ # Output only. The last-modified time.
277
+ # Corresponds to the JSON property `updateTime`
278
+ # @return [String]
279
+ attr_accessor :update_time
280
+
281
+ def initialize(**args)
282
+ update!(**args)
283
+ end
284
+
285
+ # Update properties of this object
286
+ def update!(**args)
287
+ @activation_token = args[:activation_token] if args.key?(:activation_token)
288
+ @channel = args[:channel] if args.key?(:channel)
289
+ @create_time = args[:create_time] if args.key?(:create_time)
290
+ @name = args[:name] if args.key?(:name)
291
+ @uid = args[:uid] if args.key?(:uid)
292
+ @update_time = args[:update_time] if args.key?(:update_time)
293
+ end
294
+ end
295
+
167
296
  # Represents a Cloud Run destination.
168
297
  class CloudRun
169
298
  include Google::Apis::Core::Hashable
@@ -618,6 +747,70 @@ module Google
618
747
  end
619
748
  end
620
749
 
750
+ # The response message for the `ListChannelConnections` method.
751
+ class ListChannelConnectionsResponse
752
+ include Google::Apis::Core::Hashable
753
+
754
+ # The requested channel connections, up to the number specified in `page_size`.
755
+ # Corresponds to the JSON property `channelConnections`
756
+ # @return [Array<Google::Apis::EventarcV1::ChannelConnection>]
757
+ attr_accessor :channel_connections
758
+
759
+ # A page token that can be sent to ListChannelConnections to request the next
760
+ # page. If this is empty, then there are no more pages.
761
+ # Corresponds to the JSON property `nextPageToken`
762
+ # @return [String]
763
+ attr_accessor :next_page_token
764
+
765
+ # Unreachable resources, if any.
766
+ # Corresponds to the JSON property `unreachable`
767
+ # @return [Array<String>]
768
+ attr_accessor :unreachable
769
+
770
+ def initialize(**args)
771
+ update!(**args)
772
+ end
773
+
774
+ # Update properties of this object
775
+ def update!(**args)
776
+ @channel_connections = args[:channel_connections] if args.key?(:channel_connections)
777
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
778
+ @unreachable = args[:unreachable] if args.key?(:unreachable)
779
+ end
780
+ end
781
+
782
+ # The response message for the `ListChannels` method.
783
+ class ListChannelsResponse
784
+ include Google::Apis::Core::Hashable
785
+
786
+ # The requested channels, up to the number specified in `page_size`.
787
+ # Corresponds to the JSON property `channels`
788
+ # @return [Array<Google::Apis::EventarcV1::Channel>]
789
+ attr_accessor :channels
790
+
791
+ # A page token that can be sent to ListChannels to request the next page. If
792
+ # this is empty, then there are no more pages.
793
+ # Corresponds to the JSON property `nextPageToken`
794
+ # @return [String]
795
+ attr_accessor :next_page_token
796
+
797
+ # Unreachable resources, if any.
798
+ # Corresponds to the JSON property `unreachable`
799
+ # @return [Array<String>]
800
+ attr_accessor :unreachable
801
+
802
+ def initialize(**args)
803
+ update!(**args)
804
+ end
805
+
806
+ # Update properties of this object
807
+ def update!(**args)
808
+ @channels = args[:channels] if args.key?(:channels)
809
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
810
+ @unreachable = args[:unreachable] if args.key?(:unreachable)
811
+ end
812
+ end
813
+
621
814
  # The response message for Locations.ListLocations.
622
815
  class ListLocationsResponse
623
816
  include Google::Apis::Core::Hashable
@@ -1024,6 +1217,31 @@ module Google
1024
1217
  end
1025
1218
  end
1026
1219
 
1220
+ # A condition that is part of the trigger state computation.
1221
+ class StateCondition
1222
+ include Google::Apis::Core::Hashable
1223
+
1224
+ # The canonical code of the condition.
1225
+ # Corresponds to the JSON property `code`
1226
+ # @return [String]
1227
+ attr_accessor :code
1228
+
1229
+ # Human-readable message.
1230
+ # Corresponds to the JSON property `message`
1231
+ # @return [String]
1232
+ attr_accessor :message
1233
+
1234
+ def initialize(**args)
1235
+ update!(**args)
1236
+ end
1237
+
1238
+ # Update properties of this object
1239
+ def update!(**args)
1240
+ @code = args[:code] if args.key?(:code)
1241
+ @message = args[:message] if args.key?(:message)
1242
+ end
1243
+ end
1244
+
1027
1245
  # Request message for `TestIamPermissions` method.
1028
1246
  class TestIamPermissionsRequest
1029
1247
  include Google::Apis::Core::Hashable
@@ -1088,6 +1306,18 @@ module Google
1088
1306
  class Trigger
1089
1307
  include Google::Apis::Core::Hashable
1090
1308
 
1309
+ # Optional. The name of the channel associated with the trigger in `projects/`
1310
+ # project`/locations/`location`/channels/`channel`` format. You must provide a
1311
+ # channel to receive events from Eventarc SaaS partners.
1312
+ # Corresponds to the JSON property `channel`
1313
+ # @return [String]
1314
+ attr_accessor :channel
1315
+
1316
+ # Output only. The reason(s) why a trigger is in FAILED state.
1317
+ # Corresponds to the JSON property `conditions`
1318
+ # @return [Hash<String,Google::Apis::EventarcV1::StateCondition>]
1319
+ attr_accessor :conditions
1320
+
1091
1321
  # Output only. The creation time.
1092
1322
  # Corresponds to the JSON property `createTime`
1093
1323
  # @return [String]
@@ -1161,6 +1391,8 @@ module Google
1161
1391
 
1162
1392
  # Update properties of this object
1163
1393
  def update!(**args)
1394
+ @channel = args[:channel] if args.key?(:channel)
1395
+ @conditions = args[:conditions] if args.key?(:conditions)
1164
1396
  @create_time = args[:create_time] if args.key?(:create_time)
1165
1397
  @destination = args[:destination] if args.key?(:destination)
1166
1398
  @etag = args[:etag] if args.key?(:etag)
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module EventarcV1
18
18
  # Version of the google-apis-eventarc_v1 gem
19
- GEM_VERSION = "0.24.0"
19
+ GEM_VERSION = "0.27.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.4.1"
22
+ GENERATOR_VERSION = "0.7.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220422"
25
+ REVISION = "20220607"
26
26
  end
27
27
  end
28
28
  end
@@ -40,6 +40,18 @@ module Google
40
40
  include Google::Apis::Core::JsonObjectSupport
41
41
  end
42
42
 
43
+ class Channel
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
49
+ class ChannelConnection
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
43
55
  class CloudRun
44
56
  class Representation < Google::Apis::Core::JsonRepresentation; end
45
57
 
@@ -112,6 +124,18 @@ module Google
112
124
  include Google::Apis::Core::JsonObjectSupport
113
125
  end
114
126
 
127
+ class ListChannelConnectionsResponse
128
+ class Representation < Google::Apis::Core::JsonRepresentation; end
129
+
130
+ include Google::Apis::Core::JsonObjectSupport
131
+ end
132
+
133
+ class ListChannelsResponse
134
+ class Representation < Google::Apis::Core::JsonRepresentation; end
135
+
136
+ include Google::Apis::Core::JsonObjectSupport
137
+ end
138
+
115
139
  class ListLocationsResponse
116
140
  class Representation < Google::Apis::Core::JsonRepresentation; end
117
141
 
@@ -166,6 +190,12 @@ module Google
166
190
  include Google::Apis::Core::JsonObjectSupport
167
191
  end
168
192
 
193
+ class StateCondition
194
+ class Representation < Google::Apis::Core::JsonRepresentation; end
195
+
196
+ include Google::Apis::Core::JsonObjectSupport
197
+ end
198
+
169
199
  class TestIamPermissionsRequest
170
200
  class Representation < Google::Apis::Core::JsonRepresentation; end
171
201
 
@@ -217,6 +247,32 @@ module Google
217
247
  end
218
248
  end
219
249
 
250
+ class Channel
251
+ # @private
252
+ class Representation < Google::Apis::Core::JsonRepresentation
253
+ property :activation_token, as: 'activationToken'
254
+ property :create_time, as: 'createTime'
255
+ property :name, as: 'name'
256
+ property :provider, as: 'provider'
257
+ property :pubsub_topic, as: 'pubsubTopic'
258
+ property :state, as: 'state'
259
+ property :uid, as: 'uid'
260
+ property :update_time, as: 'updateTime'
261
+ end
262
+ end
263
+
264
+ class ChannelConnection
265
+ # @private
266
+ class Representation < Google::Apis::Core::JsonRepresentation
267
+ property :activation_token, as: 'activationToken'
268
+ property :channel, as: 'channel'
269
+ property :create_time, as: 'createTime'
270
+ property :name, as: 'name'
271
+ property :uid, as: 'uid'
272
+ property :update_time, as: 'updateTime'
273
+ end
274
+ end
275
+
220
276
  class CloudRun
221
277
  # @private
222
278
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -331,6 +387,26 @@ module Google
331
387
  end
332
388
  end
333
389
 
390
+ class ListChannelConnectionsResponse
391
+ # @private
392
+ class Representation < Google::Apis::Core::JsonRepresentation
393
+ collection :channel_connections, as: 'channelConnections', class: Google::Apis::EventarcV1::ChannelConnection, decorator: Google::Apis::EventarcV1::ChannelConnection::Representation
394
+
395
+ property :next_page_token, as: 'nextPageToken'
396
+ collection :unreachable, as: 'unreachable'
397
+ end
398
+ end
399
+
400
+ class ListChannelsResponse
401
+ # @private
402
+ class Representation < Google::Apis::Core::JsonRepresentation
403
+ collection :channels, as: 'channels', class: Google::Apis::EventarcV1::Channel, decorator: Google::Apis::EventarcV1::Channel::Representation
404
+
405
+ property :next_page_token, as: 'nextPageToken'
406
+ collection :unreachable, as: 'unreachable'
407
+ end
408
+ end
409
+
334
410
  class ListLocationsResponse
335
411
  # @private
336
412
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -423,6 +499,14 @@ module Google
423
499
  end
424
500
  end
425
501
 
502
+ class StateCondition
503
+ # @private
504
+ class Representation < Google::Apis::Core::JsonRepresentation
505
+ property :code, as: 'code'
506
+ property :message, as: 'message'
507
+ end
508
+ end
509
+
426
510
  class TestIamPermissionsRequest
427
511
  # @private
428
512
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -448,6 +532,9 @@ module Google
448
532
  class Trigger
449
533
  # @private
450
534
  class Representation < Google::Apis::Core::JsonRepresentation
535
+ property :channel, as: 'channel'
536
+ hash :conditions, as: 'conditions', class: Google::Apis::EventarcV1::StateCondition, decorator: Google::Apis::EventarcV1::StateCondition::Representation
537
+
451
538
  property :create_time, as: 'createTime'
452
539
  property :destination, as: 'destination', class: Google::Apis::EventarcV1::Destination, decorator: Google::Apis::EventarcV1::Destination::Representation
453
540
 
@@ -122,11 +122,108 @@ module Google
122
122
  execute_or_queue_command(command, &block)
123
123
  end
124
124
 
125
+ # Create a new ChannelConnection in a particular project and location.
126
+ # @param [String] parent
127
+ # Required. The parent collection in which to add this channel connection.
128
+ # @param [Google::Apis::EventarcV1::ChannelConnection] channel_connection_object
129
+ # @param [String] channel_connection_id
130
+ # Required. The user-provided ID to be assigned to the channel connection.
131
+ # @param [String] fields
132
+ # Selector specifying which fields to include in a partial response.
133
+ # @param [String] quota_user
134
+ # Available to use for quota purposes for server-side applications. Can be any
135
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
136
+ # @param [Google::Apis::RequestOptions] options
137
+ # Request-specific options
138
+ #
139
+ # @yield [result, err] Result & error if block supplied
140
+ # @yieldparam result [Google::Apis::EventarcV1::GoogleLongrunningOperation] parsed result object
141
+ # @yieldparam err [StandardError] error object if request failed
142
+ #
143
+ # @return [Google::Apis::EventarcV1::GoogleLongrunningOperation]
144
+ #
145
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
146
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
147
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
148
+ def create_project_location_channel_connection(parent, channel_connection_object = nil, channel_connection_id: nil, fields: nil, quota_user: nil, options: nil, &block)
149
+ command = make_simple_command(:post, 'v1/{+parent}/channelConnections', options)
150
+ command.request_representation = Google::Apis::EventarcV1::ChannelConnection::Representation
151
+ command.request_object = channel_connection_object
152
+ command.response_representation = Google::Apis::EventarcV1::GoogleLongrunningOperation::Representation
153
+ command.response_class = Google::Apis::EventarcV1::GoogleLongrunningOperation
154
+ command.params['parent'] = parent unless parent.nil?
155
+ command.query['channelConnectionId'] = channel_connection_id unless channel_connection_id.nil?
156
+ command.query['fields'] = fields unless fields.nil?
157
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
158
+ execute_or_queue_command(command, &block)
159
+ end
160
+
161
+ # Delete a single ChannelConnection.
162
+ # @param [String] name
163
+ # Required. The name of the channel connection to delete.
164
+ # @param [String] fields
165
+ # Selector specifying which fields to include in a partial response.
166
+ # @param [String] quota_user
167
+ # Available to use for quota purposes for server-side applications. Can be any
168
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
169
+ # @param [Google::Apis::RequestOptions] options
170
+ # Request-specific options
171
+ #
172
+ # @yield [result, err] Result & error if block supplied
173
+ # @yieldparam result [Google::Apis::EventarcV1::GoogleLongrunningOperation] parsed result object
174
+ # @yieldparam err [StandardError] error object if request failed
175
+ #
176
+ # @return [Google::Apis::EventarcV1::GoogleLongrunningOperation]
177
+ #
178
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
179
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
180
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
181
+ def delete_project_location_channel_connection(name, fields: nil, quota_user: nil, options: nil, &block)
182
+ command = make_simple_command(:delete, 'v1/{+name}', options)
183
+ command.response_representation = Google::Apis::EventarcV1::GoogleLongrunningOperation::Representation
184
+ command.response_class = Google::Apis::EventarcV1::GoogleLongrunningOperation
185
+ command.params['name'] = name unless name.nil?
186
+ command.query['fields'] = fields unless fields.nil?
187
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
188
+ execute_or_queue_command(command, &block)
189
+ end
190
+
191
+ # Get a single ChannelConnection.
192
+ # @param [String] name
193
+ # Required. The name of the channel connection to get.
194
+ # @param [String] fields
195
+ # Selector specifying which fields to include in a partial response.
196
+ # @param [String] quota_user
197
+ # Available to use for quota purposes for server-side applications. Can be any
198
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
199
+ # @param [Google::Apis::RequestOptions] options
200
+ # Request-specific options
201
+ #
202
+ # @yield [result, err] Result & error if block supplied
203
+ # @yieldparam result [Google::Apis::EventarcV1::ChannelConnection] parsed result object
204
+ # @yieldparam err [StandardError] error object if request failed
205
+ #
206
+ # @return [Google::Apis::EventarcV1::ChannelConnection]
207
+ #
208
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
209
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
210
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
211
+ def get_project_location_channel_connection(name, fields: nil, quota_user: nil, options: nil, &block)
212
+ command = make_simple_command(:get, 'v1/{+name}', options)
213
+ command.response_representation = Google::Apis::EventarcV1::ChannelConnection::Representation
214
+ command.response_class = Google::Apis::EventarcV1::ChannelConnection
215
+ command.params['name'] = name unless name.nil?
216
+ command.query['fields'] = fields unless fields.nil?
217
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
218
+ execute_or_queue_command(command, &block)
219
+ end
220
+
125
221
  # Gets the access control policy for a resource. Returns an empty policy if the
126
222
  # resource exists and does not have a policy set.
127
223
  # @param [String] resource
128
- # REQUIRED: The resource for which the policy is being requested. See the
129
- # operation documentation for the appropriate value for this field.
224
+ # REQUIRED: The resource for which the policy is being requested. See [Resource
225
+ # names](https://cloud.google.com/apis/design/resource_names) for the
226
+ # appropriate value for this field.
130
227
  # @param [Fixnum] options_requested_policy_version
131
228
  # Optional. The maximum policy version that will be used to format the policy.
132
229
  # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
@@ -166,12 +263,53 @@ module Google
166
263
  execute_or_queue_command(command, &block)
167
264
  end
168
265
 
266
+ # List channel connections.
267
+ # @param [String] parent
268
+ # Required. The parent collection from which to list channel connections.
269
+ # @param [Fixnum] page_size
270
+ # The maximum number of channel connections to return on each page. Note: The
271
+ # service may send fewer responses.
272
+ # @param [String] page_token
273
+ # The page token; provide the value from the `next_page_token` field in a
274
+ # previous `ListChannelConnections` call to retrieve the subsequent page. When
275
+ # paginating, all other parameters provided to `ListChannelConnetions` match the
276
+ # call that provided the page token.
277
+ # @param [String] fields
278
+ # Selector specifying which fields to include in a partial response.
279
+ # @param [String] quota_user
280
+ # Available to use for quota purposes for server-side applications. Can be any
281
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
282
+ # @param [Google::Apis::RequestOptions] options
283
+ # Request-specific options
284
+ #
285
+ # @yield [result, err] Result & error if block supplied
286
+ # @yieldparam result [Google::Apis::EventarcV1::ListChannelConnectionsResponse] parsed result object
287
+ # @yieldparam err [StandardError] error object if request failed
288
+ #
289
+ # @return [Google::Apis::EventarcV1::ListChannelConnectionsResponse]
290
+ #
291
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
292
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
293
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
294
+ def list_project_location_channel_connections(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
295
+ command = make_simple_command(:get, 'v1/{+parent}/channelConnections', options)
296
+ command.response_representation = Google::Apis::EventarcV1::ListChannelConnectionsResponse::Representation
297
+ command.response_class = Google::Apis::EventarcV1::ListChannelConnectionsResponse
298
+ command.params['parent'] = parent unless parent.nil?
299
+ command.query['pageSize'] = page_size unless page_size.nil?
300
+ command.query['pageToken'] = page_token unless page_token.nil?
301
+ command.query['fields'] = fields unless fields.nil?
302
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
303
+ execute_or_queue_command(command, &block)
304
+ end
305
+
169
306
  # Sets the access control policy on the specified resource. Replaces any
170
307
  # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
171
308
  # PERMISSION_DENIED` errors.
172
309
  # @param [String] resource
173
- # REQUIRED: The resource for which the policy is being specified. See the
174
- # operation documentation for the appropriate value for this field.
310
+ # REQUIRED: The resource for which the policy is being specified. See [Resource
311
+ # names](https://cloud.google.com/apis/design/resource_names) for the
312
+ # appropriate value for this field.
175
313
  # @param [Google::Apis::EventarcV1::SetIamPolicyRequest] set_iam_policy_request_object
176
314
  # @param [String] fields
177
315
  # Selector specifying which fields to include in a partial response.
@@ -208,8 +346,9 @@ module Google
208
346
  # permission-aware UIs and command-line tools, not for authorization checking.
209
347
  # This operation may "fail open" without warning.
210
348
  # @param [String] resource
211
- # REQUIRED: The resource for which the policy detail is being requested. See the
212
- # operation documentation for the appropriate value for this field.
349
+ # REQUIRED: The resource for which the policy detail is being requested. See [
350
+ # Resource names](https://cloud.google.com/apis/design/resource_names) for the
351
+ # appropriate value for this field.
213
352
  # @param [Google::Apis::EventarcV1::TestIamPermissionsRequest] test_iam_permissions_request_object
214
353
  # @param [String] fields
215
354
  # Selector specifying which fields to include in a partial response.
@@ -240,11 +379,116 @@ module Google
240
379
  execute_or_queue_command(command, &block)
241
380
  end
242
381
 
382
+ # Create a new channel in a particular project and location.
383
+ # @param [String] parent
384
+ # Required. The parent collection in which to add this channel.
385
+ # @param [Google::Apis::EventarcV1::Channel] channel_object
386
+ # @param [String] channel_id
387
+ # Required. The user-provided ID to be assigned to the channel.
388
+ # @param [Boolean] validate_only
389
+ # Required. If set, validate the request and preview the review, but do not post
390
+ # it.
391
+ # @param [String] fields
392
+ # Selector specifying which fields to include in a partial response.
393
+ # @param [String] quota_user
394
+ # Available to use for quota purposes for server-side applications. Can be any
395
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
396
+ # @param [Google::Apis::RequestOptions] options
397
+ # Request-specific options
398
+ #
399
+ # @yield [result, err] Result & error if block supplied
400
+ # @yieldparam result [Google::Apis::EventarcV1::GoogleLongrunningOperation] parsed result object
401
+ # @yieldparam err [StandardError] error object if request failed
402
+ #
403
+ # @return [Google::Apis::EventarcV1::GoogleLongrunningOperation]
404
+ #
405
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
406
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
407
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
408
+ def create_project_location_channel(parent, channel_object = nil, channel_id: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
409
+ command = make_simple_command(:post, 'v1/{+parent}/channels', options)
410
+ command.request_representation = Google::Apis::EventarcV1::Channel::Representation
411
+ command.request_object = channel_object
412
+ command.response_representation = Google::Apis::EventarcV1::GoogleLongrunningOperation::Representation
413
+ command.response_class = Google::Apis::EventarcV1::GoogleLongrunningOperation
414
+ command.params['parent'] = parent unless parent.nil?
415
+ command.query['channelId'] = channel_id unless channel_id.nil?
416
+ command.query['validateOnly'] = validate_only unless validate_only.nil?
417
+ command.query['fields'] = fields unless fields.nil?
418
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
419
+ execute_or_queue_command(command, &block)
420
+ end
421
+
422
+ # Delete a single channel.
423
+ # @param [String] name
424
+ # Required. The name of the channel to be deleted.
425
+ # @param [Boolean] validate_only
426
+ # Required. If set, validate the request and preview the review, but do not post
427
+ # it.
428
+ # @param [String] fields
429
+ # Selector specifying which fields to include in a partial response.
430
+ # @param [String] quota_user
431
+ # Available to use for quota purposes for server-side applications. Can be any
432
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
433
+ # @param [Google::Apis::RequestOptions] options
434
+ # Request-specific options
435
+ #
436
+ # @yield [result, err] Result & error if block supplied
437
+ # @yieldparam result [Google::Apis::EventarcV1::GoogleLongrunningOperation] parsed result object
438
+ # @yieldparam err [StandardError] error object if request failed
439
+ #
440
+ # @return [Google::Apis::EventarcV1::GoogleLongrunningOperation]
441
+ #
442
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
443
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
444
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
445
+ def delete_project_location_channel(name, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
446
+ command = make_simple_command(:delete, 'v1/{+name}', options)
447
+ command.response_representation = Google::Apis::EventarcV1::GoogleLongrunningOperation::Representation
448
+ command.response_class = Google::Apis::EventarcV1::GoogleLongrunningOperation
449
+ command.params['name'] = name unless name.nil?
450
+ command.query['validateOnly'] = validate_only unless validate_only.nil?
451
+ command.query['fields'] = fields unless fields.nil?
452
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
453
+ execute_or_queue_command(command, &block)
454
+ end
455
+
456
+ # Get a single Channel.
457
+ # @param [String] name
458
+ # Required. The name of the channel to get.
459
+ # @param [String] fields
460
+ # Selector specifying which fields to include in a partial response.
461
+ # @param [String] quota_user
462
+ # Available to use for quota purposes for server-side applications. Can be any
463
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
464
+ # @param [Google::Apis::RequestOptions] options
465
+ # Request-specific options
466
+ #
467
+ # @yield [result, err] Result & error if block supplied
468
+ # @yieldparam result [Google::Apis::EventarcV1::Channel] parsed result object
469
+ # @yieldparam err [StandardError] error object if request failed
470
+ #
471
+ # @return [Google::Apis::EventarcV1::Channel]
472
+ #
473
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
474
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
475
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
476
+ def get_project_location_channel(name, fields: nil, quota_user: nil, options: nil, &block)
477
+ command = make_simple_command(:get, 'v1/{+name}', options)
478
+ command.response_representation = Google::Apis::EventarcV1::Channel::Representation
479
+ command.response_class = Google::Apis::EventarcV1::Channel
480
+ command.params['name'] = name unless name.nil?
481
+ command.query['fields'] = fields unless fields.nil?
482
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
483
+ execute_or_queue_command(command, &block)
484
+ end
485
+
243
486
  # Gets the access control policy for a resource. Returns an empty policy if the
244
487
  # resource exists and does not have a policy set.
245
488
  # @param [String] resource
246
- # REQUIRED: The resource for which the policy is being requested. See the
247
- # operation documentation for the appropriate value for this field.
489
+ # REQUIRED: The resource for which the policy is being requested. See [Resource
490
+ # names](https://cloud.google.com/apis/design/resource_names) for the
491
+ # appropriate value for this field.
248
492
  # @param [Fixnum] options_requested_policy_version
249
493
  # Optional. The maximum policy version that will be used to format the policy.
250
494
  # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
@@ -284,12 +528,103 @@ module Google
284
528
  execute_or_queue_command(command, &block)
285
529
  end
286
530
 
531
+ # List channels.
532
+ # @param [String] parent
533
+ # Required. The parent collection to list channels on.
534
+ # @param [String] order_by
535
+ # The sorting order of the resources returned. Value should be a comma-separated
536
+ # list of fields. The default sorting order is ascending. To specify descending
537
+ # order for a field, append a `desc` suffix; for example: `name desc, channel_id`
538
+ # .
539
+ # @param [Fixnum] page_size
540
+ # The maximum number of channels to return on each page. Note: The service may
541
+ # send fewer.
542
+ # @param [String] page_token
543
+ # The page token; provide the value from the `next_page_token` field in a
544
+ # previous `ListChannels` call to retrieve the subsequent page. When paginating,
545
+ # all other parameters provided to `ListChannels` must match the call that
546
+ # provided the page token.
547
+ # @param [String] fields
548
+ # Selector specifying which fields to include in a partial response.
549
+ # @param [String] quota_user
550
+ # Available to use for quota purposes for server-side applications. Can be any
551
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
552
+ # @param [Google::Apis::RequestOptions] options
553
+ # Request-specific options
554
+ #
555
+ # @yield [result, err] Result & error if block supplied
556
+ # @yieldparam result [Google::Apis::EventarcV1::ListChannelsResponse] parsed result object
557
+ # @yieldparam err [StandardError] error object if request failed
558
+ #
559
+ # @return [Google::Apis::EventarcV1::ListChannelsResponse]
560
+ #
561
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
562
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
563
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
564
+ def list_project_location_channels(parent, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
565
+ command = make_simple_command(:get, 'v1/{+parent}/channels', options)
566
+ command.response_representation = Google::Apis::EventarcV1::ListChannelsResponse::Representation
567
+ command.response_class = Google::Apis::EventarcV1::ListChannelsResponse
568
+ command.params['parent'] = parent unless parent.nil?
569
+ command.query['orderBy'] = order_by unless order_by.nil?
570
+ command.query['pageSize'] = page_size unless page_size.nil?
571
+ command.query['pageToken'] = page_token unless page_token.nil?
572
+ command.query['fields'] = fields unless fields.nil?
573
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
574
+ execute_or_queue_command(command, &block)
575
+ end
576
+
577
+ # Update a single channel.
578
+ # @param [String] name
579
+ # Required. The resource name of the channel. Must be unique within the location
580
+ # on the project and must be in `projects/`project`/locations/`location`/
581
+ # channels/`channel_id`` format.
582
+ # @param [Google::Apis::EventarcV1::Channel] channel_object
583
+ # @param [String] update_mask
584
+ # The fields to be updated; only fields explicitly provided are updated. If no
585
+ # field mask is provided, all provided fields in the request are updated. To
586
+ # update all fields, provide a field mask of "*".
587
+ # @param [Boolean] validate_only
588
+ # Required. If set, validate the request and preview the review, but do not post
589
+ # it.
590
+ # @param [String] fields
591
+ # Selector specifying which fields to include in a partial response.
592
+ # @param [String] quota_user
593
+ # Available to use for quota purposes for server-side applications. Can be any
594
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
595
+ # @param [Google::Apis::RequestOptions] options
596
+ # Request-specific options
597
+ #
598
+ # @yield [result, err] Result & error if block supplied
599
+ # @yieldparam result [Google::Apis::EventarcV1::GoogleLongrunningOperation] parsed result object
600
+ # @yieldparam err [StandardError] error object if request failed
601
+ #
602
+ # @return [Google::Apis::EventarcV1::GoogleLongrunningOperation]
603
+ #
604
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
605
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
606
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
607
+ def patch_project_location_channel(name, channel_object = nil, update_mask: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
608
+ command = make_simple_command(:patch, 'v1/{+name}', options)
609
+ command.request_representation = Google::Apis::EventarcV1::Channel::Representation
610
+ command.request_object = channel_object
611
+ command.response_representation = Google::Apis::EventarcV1::GoogleLongrunningOperation::Representation
612
+ command.response_class = Google::Apis::EventarcV1::GoogleLongrunningOperation
613
+ command.params['name'] = name unless name.nil?
614
+ command.query['updateMask'] = update_mask unless update_mask.nil?
615
+ command.query['validateOnly'] = validate_only unless validate_only.nil?
616
+ command.query['fields'] = fields unless fields.nil?
617
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
618
+ execute_or_queue_command(command, &block)
619
+ end
620
+
287
621
  # Sets the access control policy on the specified resource. Replaces any
288
622
  # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
289
623
  # PERMISSION_DENIED` errors.
290
624
  # @param [String] resource
291
- # REQUIRED: The resource for which the policy is being specified. See the
292
- # operation documentation for the appropriate value for this field.
625
+ # REQUIRED: The resource for which the policy is being specified. See [Resource
626
+ # names](https://cloud.google.com/apis/design/resource_names) for the
627
+ # appropriate value for this field.
293
628
  # @param [Google::Apis::EventarcV1::SetIamPolicyRequest] set_iam_policy_request_object
294
629
  # @param [String] fields
295
630
  # Selector specifying which fields to include in a partial response.
@@ -326,8 +661,9 @@ module Google
326
661
  # permission-aware UIs and command-line tools, not for authorization checking.
327
662
  # This operation may "fail open" without warning.
328
663
  # @param [String] resource
329
- # REQUIRED: The resource for which the policy detail is being requested. See the
330
- # operation documentation for the appropriate value for this field.
664
+ # REQUIRED: The resource for which the policy detail is being requested. See [
665
+ # Resource names](https://cloud.google.com/apis/design/resource_names) for the
666
+ # appropriate value for this field.
331
667
  # @param [Google::Apis::EventarcV1::TestIamPermissionsRequest] test_iam_permissions_request_object
332
668
  # @param [String] fields
333
669
  # Selector specifying which fields to include in a partial response.
@@ -700,8 +1036,9 @@ module Google
700
1036
  # Gets the access control policy for a resource. Returns an empty policy if the
701
1037
  # resource exists and does not have a policy set.
702
1038
  # @param [String] resource
703
- # REQUIRED: The resource for which the policy is being requested. See the
704
- # operation documentation for the appropriate value for this field.
1039
+ # REQUIRED: The resource for which the policy is being requested. See [Resource
1040
+ # names](https://cloud.google.com/apis/design/resource_names) for the
1041
+ # appropriate value for this field.
705
1042
  # @param [Fixnum] options_requested_policy_version
706
1043
  # Optional. The maximum policy version that will be used to format the policy.
707
1044
  # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
@@ -844,8 +1181,9 @@ module Google
844
1181
  # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
845
1182
  # PERMISSION_DENIED` errors.
846
1183
  # @param [String] resource
847
- # REQUIRED: The resource for which the policy is being specified. See the
848
- # operation documentation for the appropriate value for this field.
1184
+ # REQUIRED: The resource for which the policy is being specified. See [Resource
1185
+ # names](https://cloud.google.com/apis/design/resource_names) for the
1186
+ # appropriate value for this field.
849
1187
  # @param [Google::Apis::EventarcV1::SetIamPolicyRequest] set_iam_policy_request_object
850
1188
  # @param [String] fields
851
1189
  # Selector specifying which fields to include in a partial response.
@@ -882,8 +1220,9 @@ module Google
882
1220
  # permission-aware UIs and command-line tools, not for authorization checking.
883
1221
  # This operation may "fail open" without warning.
884
1222
  # @param [String] resource
885
- # REQUIRED: The resource for which the policy detail is being requested. See the
886
- # operation documentation for the appropriate value for this field.
1223
+ # REQUIRED: The resource for which the policy detail is being requested. See [
1224
+ # Resource names](https://cloud.google.com/apis/design/resource_names) for the
1225
+ # appropriate value for this field.
887
1226
  # @param [Google::Apis::EventarcV1::TestIamPermissionsRequest] test_iam_permissions_request_object
888
1227
  # @param [String] fields
889
1228
  # Selector specifying which fields to include in a partial response.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-eventarc_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.24.0
4
+ version: 0.27.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: 2022-05-02 00:00:00.000000000 Z
11
+ date: 2022-06-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.4'
19
+ version: '0.6'
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.4'
29
+ version: '0.6'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-eventarc_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-eventarc_v1/v0.24.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-eventarc_v1/v0.27.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-eventarc_v1
63
63
  post_install_message:
64
64
  rdoc_options: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.3.5
78
+ rubygems_version: 3.3.14
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Eventarc API V1