google-apis-eventarc_v1 0.25.0 → 0.28.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e28626309cced77c053240d3e7feefce304b405daa2eacaf5bbd859b56e37bbf
4
- data.tar.gz: 698a36ba61b04ea80d8a2e0561f9b3f49f139d352746dab9f77df0663a19c0a5
3
+ metadata.gz: 39425d63dd6ea169da22d918c79e319096e5e76d7c171f40bdd4502084df16d1
4
+ data.tar.gz: bb5501805e429c2fcade3eb8f94a9aac5aadbc94087eef5ee0b6e1591b8eaa4e
5
5
  SHA512:
6
- metadata.gz: 837361b3975a5e99d5ab805926ebd6f7910550a5ed584de5a2e3322e8e09525c29d003ca0bd42ef52228f6072a7d56a75147323f5a9f6dc63c997f9bff9feffd
7
- data.tar.gz: 40a1d0ab4e960ed86bec040e30997e4a91c406a525107df2974f181b24fded25e5216fe9e45388347a8c0adc269d8ffe88f54e6c8b5b82448ebd3e452938e3b1
6
+ metadata.gz: 1a398809f69daffd188ca230014097c99bd0968b75cf7e20218033209aa8f12af336ac88757bbf7e6c215f6a01950633a0ee3ecb5bf2c5df433d99ab0f713b05
7
+ data.tar.gz: de0bbd0d77560940197dbd146a011fee14dcb40adc7be97e6c30e6461a7aac05f5cc70a189b9797959aa52529a57eef44609f9e8b34ce06e894c5c047f177ce5
data/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Release history for google-apis-eventarc_v1
2
2
 
3
+ ### v0.28.0 (2022-07-03)
4
+
5
+ * Regenerated from discovery document revision 20220628
6
+ * Regenerated using generator version 0.8.0
7
+
8
+ ### v0.27.0 (2022-06-20)
9
+
10
+ * Regenerated using generator version 0.7.0
11
+
12
+ ### v0.26.0 (2022-06-12)
13
+
14
+ * Regenerated from discovery document revision 20220607
15
+ * Regenerated using generator version 0.5.0
16
+
3
17
  ### v0.25.0 (2022-05-08)
4
18
 
5
19
  * Regenerated from discovery document revision 20220429
@@ -182,6 +182,13 @@ module Google
182
182
  # @return [String]
183
183
  attr_accessor :create_time
184
184
 
185
+ # Optional. Resource name of a KMS crypto key (managed by the user) used to
186
+ # encrypt/decrypt their event data. It must match the pattern `projects/*/
187
+ # locations/*/keyRings/*/cryptoKeys/*`.
188
+ # Corresponds to the JSON property `cryptoKeyName`
189
+ # @return [String]
190
+ attr_accessor :crypto_key_name
191
+
185
192
  # Required. The resource name of the channel. Must be unique within the location
186
193
  # on the project and must be in `projects/`project`/locations/`location`/
187
194
  # channels/`channel_id`` format.
@@ -228,6 +235,7 @@ module Google
228
235
  def update!(**args)
229
236
  @activation_token = args[:activation_token] if args.key?(:activation_token)
230
237
  @create_time = args[:create_time] if args.key?(:create_time)
238
+ @crypto_key_name = args[:crypto_key_name] if args.key?(:crypto_key_name)
231
239
  @name = args[:name] if args.key?(:name)
232
240
  @provider = args[:provider] if args.key?(:provider)
233
241
  @pubsub_topic = args[:pubsub_topic] if args.key?(:pubsub_topic)
@@ -237,6 +245,62 @@ module Google
237
245
  end
238
246
  end
239
247
 
248
+ # A representation of the ChannelConnection resource. A ChannelConnection is a
249
+ # resource which event providers create during the activation process to
250
+ # establish a connection between the provider and the subscriber channel.
251
+ class ChannelConnection
252
+ include Google::Apis::Core::Hashable
253
+
254
+ # Input only. Activation token for the channel. The token will be used during
255
+ # the creation of ChannelConnection to bind the channel with the provider
256
+ # project. This field will not be stored in the provider resource.
257
+ # Corresponds to the JSON property `activationToken`
258
+ # @return [String]
259
+ attr_accessor :activation_token
260
+
261
+ # Required. The name of the connected subscriber Channel. This is a weak
262
+ # reference to avoid cross project and cross accounts references. This must be
263
+ # in `projects/`project`/location/`location`/channels/`channel_id`` format.
264
+ # Corresponds to the JSON property `channel`
265
+ # @return [String]
266
+ attr_accessor :channel
267
+
268
+ # Output only. The creation time.
269
+ # Corresponds to the JSON property `createTime`
270
+ # @return [String]
271
+ attr_accessor :create_time
272
+
273
+ # Required. The name of the connection.
274
+ # Corresponds to the JSON property `name`
275
+ # @return [String]
276
+ attr_accessor :name
277
+
278
+ # Output only. Server assigned ID of the resource. The server guarantees
279
+ # uniqueness and immutability until deleted.
280
+ # Corresponds to the JSON property `uid`
281
+ # @return [String]
282
+ attr_accessor :uid
283
+
284
+ # Output only. The last-modified time.
285
+ # Corresponds to the JSON property `updateTime`
286
+ # @return [String]
287
+ attr_accessor :update_time
288
+
289
+ def initialize(**args)
290
+ update!(**args)
291
+ end
292
+
293
+ # Update properties of this object
294
+ def update!(**args)
295
+ @activation_token = args[:activation_token] if args.key?(:activation_token)
296
+ @channel = args[:channel] if args.key?(:channel)
297
+ @create_time = args[:create_time] if args.key?(:create_time)
298
+ @name = args[:name] if args.key?(:name)
299
+ @uid = args[:uid] if args.key?(:uid)
300
+ @update_time = args[:update_time] if args.key?(:update_time)
301
+ end
302
+ end
303
+
240
304
  # Represents a Cloud Run destination.
241
305
  class CloudRun
242
306
  include Google::Apis::Core::Hashable
@@ -552,6 +616,43 @@ module Google
552
616
  end
553
617
  end
554
618
 
619
+ # A GoogleChannelConfig is a resource that stores the custom settings respected
620
+ # by Eventarc first-party triggers in the matching region. Once configured,
621
+ # first-party event data will be protected using the specified custom managed
622
+ # encryption key instead of Google-managed encryption keys.
623
+ class GoogleChannelConfig
624
+ include Google::Apis::Core::Hashable
625
+
626
+ # Optional. Resource name of a KMS crypto key (managed by the user) used to
627
+ # encrypt/decrypt their event data. It must match the pattern `projects/*/
628
+ # locations/*/keyRings/*/cryptoKeys/*`.
629
+ # Corresponds to the JSON property `cryptoKeyName`
630
+ # @return [String]
631
+ attr_accessor :crypto_key_name
632
+
633
+ # Required. The resource name of the config. Must be in the format of, `projects/
634
+ # `project`/locations/`location`/googleChannelConfig`.
635
+ # Corresponds to the JSON property `name`
636
+ # @return [String]
637
+ attr_accessor :name
638
+
639
+ # Output only. The last-modified time.
640
+ # Corresponds to the JSON property `updateTime`
641
+ # @return [String]
642
+ attr_accessor :update_time
643
+
644
+ def initialize(**args)
645
+ update!(**args)
646
+ end
647
+
648
+ # Update properties of this object
649
+ def update!(**args)
650
+ @crypto_key_name = args[:crypto_key_name] if args.key?(:crypto_key_name)
651
+ @name = args[:name] if args.key?(:name)
652
+ @update_time = args[:update_time] if args.key?(:update_time)
653
+ end
654
+ end
655
+
555
656
  # The request message for Operations.CancelOperation.
556
657
  class GoogleLongrunningCancelOperationRequest
557
658
  include Google::Apis::Core::Hashable
@@ -691,6 +792,38 @@ module Google
691
792
  end
692
793
  end
693
794
 
795
+ # The response message for the `ListChannelConnections` method.
796
+ class ListChannelConnectionsResponse
797
+ include Google::Apis::Core::Hashable
798
+
799
+ # The requested channel connections, up to the number specified in `page_size`.
800
+ # Corresponds to the JSON property `channelConnections`
801
+ # @return [Array<Google::Apis::EventarcV1::ChannelConnection>]
802
+ attr_accessor :channel_connections
803
+
804
+ # A page token that can be sent to `ListChannelConnections` to request the next
805
+ # page. If this is empty, then there are no more pages.
806
+ # Corresponds to the JSON property `nextPageToken`
807
+ # @return [String]
808
+ attr_accessor :next_page_token
809
+
810
+ # Unreachable resources, if any.
811
+ # Corresponds to the JSON property `unreachable`
812
+ # @return [Array<String>]
813
+ attr_accessor :unreachable
814
+
815
+ def initialize(**args)
816
+ update!(**args)
817
+ end
818
+
819
+ # Update properties of this object
820
+ def update!(**args)
821
+ @channel_connections = args[:channel_connections] if args.key?(:channel_connections)
822
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
823
+ @unreachable = args[:unreachable] if args.key?(:unreachable)
824
+ end
825
+ end
826
+
694
827
  # The response message for the `ListChannels` method.
695
828
  class ListChannelsResponse
696
829
  include Google::Apis::Core::Hashable
@@ -700,7 +833,7 @@ module Google
700
833
  # @return [Array<Google::Apis::EventarcV1::Channel>]
701
834
  attr_accessor :channels
702
835
 
703
- # A page token that can be sent to ListChannels to request the next page. If
836
+ # A page token that can be sent to `ListChannels` to request the next page. If
704
837
  # this is empty, then there are no more pages.
705
838
  # Corresponds to the JSON property `nextPageToken`
706
839
  # @return [String]
@@ -752,7 +885,7 @@ module Google
752
885
  class ListProvidersResponse
753
886
  include Google::Apis::Core::Hashable
754
887
 
755
- # A page token that can be sent to ListProviders to request the next page. If
888
+ # A page token that can be sent to `ListProviders` to request the next page. If
756
889
  # this is empty, then there are no more pages.
757
890
  # Corresponds to the JSON property `nextPageToken`
758
891
  # @return [String]
@@ -784,7 +917,7 @@ module Google
784
917
  class ListTriggersResponse
785
918
  include Google::Apis::Core::Hashable
786
919
 
787
- # A page token that can be sent to ListTriggers to request the next page. If
920
+ # A page token that can be sent to `ListTriggers` to request the next page. If
788
921
  # this is empty, then there are no more pages.
789
922
  # Corresponds to the JSON property `nextPageToken`
790
923
  # @return [String]
@@ -1129,6 +1262,31 @@ module Google
1129
1262
  end
1130
1263
  end
1131
1264
 
1265
+ # A condition that is part of the trigger state computation.
1266
+ class StateCondition
1267
+ include Google::Apis::Core::Hashable
1268
+
1269
+ # The canonical code of the condition.
1270
+ # Corresponds to the JSON property `code`
1271
+ # @return [String]
1272
+ attr_accessor :code
1273
+
1274
+ # Human-readable message.
1275
+ # Corresponds to the JSON property `message`
1276
+ # @return [String]
1277
+ attr_accessor :message
1278
+
1279
+ def initialize(**args)
1280
+ update!(**args)
1281
+ end
1282
+
1283
+ # Update properties of this object
1284
+ def update!(**args)
1285
+ @code = args[:code] if args.key?(:code)
1286
+ @message = args[:message] if args.key?(:message)
1287
+ end
1288
+ end
1289
+
1132
1290
  # Request message for `TestIamPermissions` method.
1133
1291
  class TestIamPermissionsRequest
1134
1292
  include Google::Apis::Core::Hashable
@@ -1200,6 +1358,11 @@ module Google
1200
1358
  # @return [String]
1201
1359
  attr_accessor :channel
1202
1360
 
1361
+ # Output only. The reason(s) why a trigger is in FAILED state.
1362
+ # Corresponds to the JSON property `conditions`
1363
+ # @return [Hash<String,Google::Apis::EventarcV1::StateCondition>]
1364
+ attr_accessor :conditions
1365
+
1203
1366
  # Output only. The creation time.
1204
1367
  # Corresponds to the JSON property `createTime`
1205
1368
  # @return [String]
@@ -1274,6 +1437,7 @@ module Google
1274
1437
  # Update properties of this object
1275
1438
  def update!(**args)
1276
1439
  @channel = args[:channel] if args.key?(:channel)
1440
+ @conditions = args[:conditions] if args.key?(:conditions)
1277
1441
  @create_time = args[:create_time] if args.key?(:create_time)
1278
1442
  @destination = args[:destination] if args.key?(:destination)
1279
1443
  @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.25.0"
19
+ GEM_VERSION = "0.28.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.8.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220429"
25
+ REVISION = "20220628"
26
26
  end
27
27
  end
28
28
  end
@@ -46,6 +46,12 @@ module Google
46
46
  include Google::Apis::Core::JsonObjectSupport
47
47
  end
48
48
 
49
+ class ChannelConnection
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
49
55
  class CloudRun
50
56
  class Representation < Google::Apis::Core::JsonRepresentation; end
51
57
 
@@ -94,6 +100,12 @@ module Google
94
100
  include Google::Apis::Core::JsonObjectSupport
95
101
  end
96
102
 
103
+ class GoogleChannelConfig
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
97
109
  class GoogleLongrunningCancelOperationRequest
98
110
  class Representation < Google::Apis::Core::JsonRepresentation; end
99
111
 
@@ -118,6 +130,12 @@ module Google
118
130
  include Google::Apis::Core::JsonObjectSupport
119
131
  end
120
132
 
133
+ class ListChannelConnectionsResponse
134
+ class Representation < Google::Apis::Core::JsonRepresentation; end
135
+
136
+ include Google::Apis::Core::JsonObjectSupport
137
+ end
138
+
121
139
  class ListChannelsResponse
122
140
  class Representation < Google::Apis::Core::JsonRepresentation; end
123
141
 
@@ -178,6 +196,12 @@ module Google
178
196
  include Google::Apis::Core::JsonObjectSupport
179
197
  end
180
198
 
199
+ class StateCondition
200
+ class Representation < Google::Apis::Core::JsonRepresentation; end
201
+
202
+ include Google::Apis::Core::JsonObjectSupport
203
+ end
204
+
181
205
  class TestIamPermissionsRequest
182
206
  class Representation < Google::Apis::Core::JsonRepresentation; end
183
207
 
@@ -234,6 +258,7 @@ module Google
234
258
  class Representation < Google::Apis::Core::JsonRepresentation
235
259
  property :activation_token, as: 'activationToken'
236
260
  property :create_time, as: 'createTime'
261
+ property :crypto_key_name, as: 'cryptoKeyName'
237
262
  property :name, as: 'name'
238
263
  property :provider, as: 'provider'
239
264
  property :pubsub_topic, as: 'pubsubTopic'
@@ -243,6 +268,18 @@ module Google
243
268
  end
244
269
  end
245
270
 
271
+ class ChannelConnection
272
+ # @private
273
+ class Representation < Google::Apis::Core::JsonRepresentation
274
+ property :activation_token, as: 'activationToken'
275
+ property :channel, as: 'channel'
276
+ property :create_time, as: 'createTime'
277
+ property :name, as: 'name'
278
+ property :uid, as: 'uid'
279
+ property :update_time, as: 'updateTime'
280
+ end
281
+ end
282
+
246
283
  class CloudRun
247
284
  # @private
248
285
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -321,6 +358,15 @@ module Google
321
358
  end
322
359
  end
323
360
 
361
+ class GoogleChannelConfig
362
+ # @private
363
+ class Representation < Google::Apis::Core::JsonRepresentation
364
+ property :crypto_key_name, as: 'cryptoKeyName'
365
+ property :name, as: 'name'
366
+ property :update_time, as: 'updateTime'
367
+ end
368
+ end
369
+
324
370
  class GoogleLongrunningCancelOperationRequest
325
371
  # @private
326
372
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -357,6 +403,16 @@ module Google
357
403
  end
358
404
  end
359
405
 
406
+ class ListChannelConnectionsResponse
407
+ # @private
408
+ class Representation < Google::Apis::Core::JsonRepresentation
409
+ collection :channel_connections, as: 'channelConnections', class: Google::Apis::EventarcV1::ChannelConnection, decorator: Google::Apis::EventarcV1::ChannelConnection::Representation
410
+
411
+ property :next_page_token, as: 'nextPageToken'
412
+ collection :unreachable, as: 'unreachable'
413
+ end
414
+ end
415
+
360
416
  class ListChannelsResponse
361
417
  # @private
362
418
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -459,6 +515,14 @@ module Google
459
515
  end
460
516
  end
461
517
 
518
+ class StateCondition
519
+ # @private
520
+ class Representation < Google::Apis::Core::JsonRepresentation
521
+ property :code, as: 'code'
522
+ property :message, as: 'message'
523
+ end
524
+ end
525
+
462
526
  class TestIamPermissionsRequest
463
527
  # @private
464
528
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -485,6 +549,8 @@ module Google
485
549
  # @private
486
550
  class Representation < Google::Apis::Core::JsonRepresentation
487
551
  property :channel, as: 'channel'
552
+ hash :conditions, as: 'conditions', class: Google::Apis::EventarcV1::StateCondition, decorator: Google::Apis::EventarcV1::StateCondition::Representation
553
+
488
554
  property :create_time, as: 'createTime'
489
555
  property :destination, as: 'destination', class: Google::Apis::EventarcV1::Destination, decorator: Google::Apis::EventarcV1::Destination::Representation
490
556
 
@@ -79,6 +79,36 @@ module Google
79
79
  execute_or_queue_command(command, &block)
80
80
  end
81
81
 
82
+ # Get a GoogleChannelConfig
83
+ # @param [String] name
84
+ # Required. The name of the config to get.
85
+ # @param [String] fields
86
+ # Selector specifying which fields to include in a partial response.
87
+ # @param [String] quota_user
88
+ # Available to use for quota purposes for server-side applications. Can be any
89
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
90
+ # @param [Google::Apis::RequestOptions] options
91
+ # Request-specific options
92
+ #
93
+ # @yield [result, err] Result & error if block supplied
94
+ # @yieldparam result [Google::Apis::EventarcV1::GoogleChannelConfig] parsed result object
95
+ # @yieldparam err [StandardError] error object if request failed
96
+ #
97
+ # @return [Google::Apis::EventarcV1::GoogleChannelConfig]
98
+ #
99
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
100
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
101
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
102
+ def get_project_location_google_channel_config(name, fields: nil, quota_user: nil, options: nil, &block)
103
+ command = make_simple_command(:get, 'v1/{+name}', options)
104
+ command.response_representation = Google::Apis::EventarcV1::GoogleChannelConfig::Representation
105
+ command.response_class = Google::Apis::EventarcV1::GoogleChannelConfig
106
+ command.params['name'] = name unless name.nil?
107
+ command.query['fields'] = fields unless fields.nil?
108
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
109
+ execute_or_queue_command(command, &block)
110
+ end
111
+
82
112
  # Lists information about the supported locations for this service.
83
113
  # @param [String] name
84
114
  # The resource that owns the locations collection, if applicable.
@@ -122,11 +152,147 @@ module Google
122
152
  execute_or_queue_command(command, &block)
123
153
  end
124
154
 
155
+ # Update a single GoogleChannelConfig
156
+ # @param [String] name
157
+ # Required. The resource name of the config. Must be in the format of, `projects/
158
+ # `project`/locations/`location`/googleChannelConfig`.
159
+ # @param [Google::Apis::EventarcV1::GoogleChannelConfig] google_channel_config_object
160
+ # @param [String] update_mask
161
+ # The fields to be updated; only fields explicitly provided are updated. If no
162
+ # field mask is provided, all provided fields in the request are updated. To
163
+ # update all fields, provide a field mask of "*".
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::GoogleChannelConfig] parsed result object
174
+ # @yieldparam err [StandardError] error object if request failed
175
+ #
176
+ # @return [Google::Apis::EventarcV1::GoogleChannelConfig]
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 update_project_location_google_channel_config(name, google_channel_config_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
182
+ command = make_simple_command(:patch, 'v1/{+name}', options)
183
+ command.request_representation = Google::Apis::EventarcV1::GoogleChannelConfig::Representation
184
+ command.request_object = google_channel_config_object
185
+ command.response_representation = Google::Apis::EventarcV1::GoogleChannelConfig::Representation
186
+ command.response_class = Google::Apis::EventarcV1::GoogleChannelConfig
187
+ command.params['name'] = name unless name.nil?
188
+ command.query['updateMask'] = update_mask unless update_mask.nil?
189
+ command.query['fields'] = fields unless fields.nil?
190
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
191
+ execute_or_queue_command(command, &block)
192
+ end
193
+
194
+ # Create a new ChannelConnection in a particular project and location.
195
+ # @param [String] parent
196
+ # Required. The parent collection in which to add this channel connection.
197
+ # @param [Google::Apis::EventarcV1::ChannelConnection] channel_connection_object
198
+ # @param [String] channel_connection_id
199
+ # Required. The user-provided ID to be assigned to the channel connection.
200
+ # @param [String] fields
201
+ # Selector specifying which fields to include in a partial response.
202
+ # @param [String] quota_user
203
+ # Available to use for quota purposes for server-side applications. Can be any
204
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
205
+ # @param [Google::Apis::RequestOptions] options
206
+ # Request-specific options
207
+ #
208
+ # @yield [result, err] Result & error if block supplied
209
+ # @yieldparam result [Google::Apis::EventarcV1::GoogleLongrunningOperation] parsed result object
210
+ # @yieldparam err [StandardError] error object if request failed
211
+ #
212
+ # @return [Google::Apis::EventarcV1::GoogleLongrunningOperation]
213
+ #
214
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
215
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
216
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
217
+ def create_project_location_channel_connection(parent, channel_connection_object = nil, channel_connection_id: nil, fields: nil, quota_user: nil, options: nil, &block)
218
+ command = make_simple_command(:post, 'v1/{+parent}/channelConnections', options)
219
+ command.request_representation = Google::Apis::EventarcV1::ChannelConnection::Representation
220
+ command.request_object = channel_connection_object
221
+ command.response_representation = Google::Apis::EventarcV1::GoogleLongrunningOperation::Representation
222
+ command.response_class = Google::Apis::EventarcV1::GoogleLongrunningOperation
223
+ command.params['parent'] = parent unless parent.nil?
224
+ command.query['channelConnectionId'] = channel_connection_id unless channel_connection_id.nil?
225
+ command.query['fields'] = fields unless fields.nil?
226
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
227
+ execute_or_queue_command(command, &block)
228
+ end
229
+
230
+ # Delete a single ChannelConnection.
231
+ # @param [String] name
232
+ # Required. The name of the channel connection to delete.
233
+ # @param [String] fields
234
+ # Selector specifying which fields to include in a partial response.
235
+ # @param [String] quota_user
236
+ # Available to use for quota purposes for server-side applications. Can be any
237
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
238
+ # @param [Google::Apis::RequestOptions] options
239
+ # Request-specific options
240
+ #
241
+ # @yield [result, err] Result & error if block supplied
242
+ # @yieldparam result [Google::Apis::EventarcV1::GoogleLongrunningOperation] parsed result object
243
+ # @yieldparam err [StandardError] error object if request failed
244
+ #
245
+ # @return [Google::Apis::EventarcV1::GoogleLongrunningOperation]
246
+ #
247
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
248
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
249
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
250
+ def delete_project_location_channel_connection(name, fields: nil, quota_user: nil, options: nil, &block)
251
+ command = make_simple_command(:delete, 'v1/{+name}', options)
252
+ command.response_representation = Google::Apis::EventarcV1::GoogleLongrunningOperation::Representation
253
+ command.response_class = Google::Apis::EventarcV1::GoogleLongrunningOperation
254
+ command.params['name'] = name unless name.nil?
255
+ command.query['fields'] = fields unless fields.nil?
256
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
257
+ execute_or_queue_command(command, &block)
258
+ end
259
+
260
+ # Get a single ChannelConnection.
261
+ # @param [String] name
262
+ # Required. The name of the channel connection to get.
263
+ # @param [String] fields
264
+ # Selector specifying which fields to include in a partial response.
265
+ # @param [String] quota_user
266
+ # Available to use for quota purposes for server-side applications. Can be any
267
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
268
+ # @param [Google::Apis::RequestOptions] options
269
+ # Request-specific options
270
+ #
271
+ # @yield [result, err] Result & error if block supplied
272
+ # @yieldparam result [Google::Apis::EventarcV1::ChannelConnection] parsed result object
273
+ # @yieldparam err [StandardError] error object if request failed
274
+ #
275
+ # @return [Google::Apis::EventarcV1::ChannelConnection]
276
+ #
277
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
278
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
279
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
280
+ def get_project_location_channel_connection(name, fields: nil, quota_user: nil, options: nil, &block)
281
+ command = make_simple_command(:get, 'v1/{+name}', options)
282
+ command.response_representation = Google::Apis::EventarcV1::ChannelConnection::Representation
283
+ command.response_class = Google::Apis::EventarcV1::ChannelConnection
284
+ command.params['name'] = name unless name.nil?
285
+ command.query['fields'] = fields unless fields.nil?
286
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
287
+ execute_or_queue_command(command, &block)
288
+ end
289
+
125
290
  # Gets the access control policy for a resource. Returns an empty policy if the
126
291
  # resource exists and does not have a policy set.
127
292
  # @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.
293
+ # REQUIRED: The resource for which the policy is being requested. See [Resource
294
+ # names](https://cloud.google.com/apis/design/resource_names) for the
295
+ # appropriate value for this field.
130
296
  # @param [Fixnum] options_requested_policy_version
131
297
  # Optional. The maximum policy version that will be used to format the policy.
132
298
  # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
@@ -166,12 +332,53 @@ module Google
166
332
  execute_or_queue_command(command, &block)
167
333
  end
168
334
 
335
+ # List channel connections.
336
+ # @param [String] parent
337
+ # Required. The parent collection from which to list channel connections.
338
+ # @param [Fixnum] page_size
339
+ # The maximum number of channel connections to return on each page. Note: The
340
+ # service may send fewer responses.
341
+ # @param [String] page_token
342
+ # The page token; provide the value from the `next_page_token` field in a
343
+ # previous `ListChannelConnections` call to retrieve the subsequent page. When
344
+ # paginating, all other parameters provided to `ListChannelConnetions` match the
345
+ # call that provided the page token.
346
+ # @param [String] fields
347
+ # Selector specifying which fields to include in a partial response.
348
+ # @param [String] quota_user
349
+ # Available to use for quota purposes for server-side applications. Can be any
350
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
351
+ # @param [Google::Apis::RequestOptions] options
352
+ # Request-specific options
353
+ #
354
+ # @yield [result, err] Result & error if block supplied
355
+ # @yieldparam result [Google::Apis::EventarcV1::ListChannelConnectionsResponse] parsed result object
356
+ # @yieldparam err [StandardError] error object if request failed
357
+ #
358
+ # @return [Google::Apis::EventarcV1::ListChannelConnectionsResponse]
359
+ #
360
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
361
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
362
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
363
+ def list_project_location_channel_connections(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
364
+ command = make_simple_command(:get, 'v1/{+parent}/channelConnections', options)
365
+ command.response_representation = Google::Apis::EventarcV1::ListChannelConnectionsResponse::Representation
366
+ command.response_class = Google::Apis::EventarcV1::ListChannelConnectionsResponse
367
+ command.params['parent'] = parent unless parent.nil?
368
+ command.query['pageSize'] = page_size unless page_size.nil?
369
+ command.query['pageToken'] = page_token unless page_token.nil?
370
+ command.query['fields'] = fields unless fields.nil?
371
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
372
+ execute_or_queue_command(command, &block)
373
+ end
374
+
169
375
  # Sets the access control policy on the specified resource. Replaces any
170
376
  # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
171
377
  # PERMISSION_DENIED` errors.
172
378
  # @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.
379
+ # REQUIRED: The resource for which the policy is being specified. See [Resource
380
+ # names](https://cloud.google.com/apis/design/resource_names) for the
381
+ # appropriate value for this field.
175
382
  # @param [Google::Apis::EventarcV1::SetIamPolicyRequest] set_iam_policy_request_object
176
383
  # @param [String] fields
177
384
  # Selector specifying which fields to include in a partial response.
@@ -208,8 +415,9 @@ module Google
208
415
  # permission-aware UIs and command-line tools, not for authorization checking.
209
416
  # This operation may "fail open" without warning.
210
417
  # @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.
418
+ # REQUIRED: The resource for which the policy detail is being requested. See [
419
+ # Resource names](https://cloud.google.com/apis/design/resource_names) for the
420
+ # appropriate value for this field.
213
421
  # @param [Google::Apis::EventarcV1::TestIamPermissionsRequest] test_iam_permissions_request_object
214
422
  # @param [String] fields
215
423
  # Selector specifying which fields to include in a partial response.
@@ -347,8 +555,9 @@ module Google
347
555
  # Gets the access control policy for a resource. Returns an empty policy if the
348
556
  # resource exists and does not have a policy set.
349
557
  # @param [String] resource
350
- # REQUIRED: The resource for which the policy is being requested. See the
351
- # operation documentation for the appropriate value for this field.
558
+ # REQUIRED: The resource for which the policy is being requested. See [Resource
559
+ # names](https://cloud.google.com/apis/design/resource_names) for the
560
+ # appropriate value for this field.
352
561
  # @param [Fixnum] options_requested_policy_version
353
562
  # Optional. The maximum policy version that will be used to format the policy.
354
563
  # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
@@ -482,8 +691,9 @@ module Google
482
691
  # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
483
692
  # PERMISSION_DENIED` errors.
484
693
  # @param [String] resource
485
- # REQUIRED: The resource for which the policy is being specified. See the
486
- # operation documentation for the appropriate value for this field.
694
+ # REQUIRED: The resource for which the policy is being specified. See [Resource
695
+ # names](https://cloud.google.com/apis/design/resource_names) for the
696
+ # appropriate value for this field.
487
697
  # @param [Google::Apis::EventarcV1::SetIamPolicyRequest] set_iam_policy_request_object
488
698
  # @param [String] fields
489
699
  # Selector specifying which fields to include in a partial response.
@@ -520,8 +730,9 @@ module Google
520
730
  # permission-aware UIs and command-line tools, not for authorization checking.
521
731
  # This operation may "fail open" without warning.
522
732
  # @param [String] resource
523
- # REQUIRED: The resource for which the policy detail is being requested. See the
524
- # operation documentation for the appropriate value for this field.
733
+ # REQUIRED: The resource for which the policy detail is being requested. See [
734
+ # Resource names](https://cloud.google.com/apis/design/resource_names) for the
735
+ # appropriate value for this field.
525
736
  # @param [Google::Apis::EventarcV1::TestIamPermissionsRequest] test_iam_permissions_request_object
526
737
  # @param [String] fields
527
738
  # Selector specifying which fields to include in a partial response.
@@ -894,8 +1105,9 @@ module Google
894
1105
  # Gets the access control policy for a resource. Returns an empty policy if the
895
1106
  # resource exists and does not have a policy set.
896
1107
  # @param [String] resource
897
- # REQUIRED: The resource for which the policy is being requested. See the
898
- # operation documentation for the appropriate value for this field.
1108
+ # REQUIRED: The resource for which the policy is being requested. See [Resource
1109
+ # names](https://cloud.google.com/apis/design/resource_names) for the
1110
+ # appropriate value for this field.
899
1111
  # @param [Fixnum] options_requested_policy_version
900
1112
  # Optional. The maximum policy version that will be used to format the policy.
901
1113
  # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
@@ -1038,8 +1250,9 @@ module Google
1038
1250
  # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
1039
1251
  # PERMISSION_DENIED` errors.
1040
1252
  # @param [String] resource
1041
- # REQUIRED: The resource for which the policy is being specified. See the
1042
- # operation documentation for the appropriate value for this field.
1253
+ # REQUIRED: The resource for which the policy is being specified. See [Resource
1254
+ # names](https://cloud.google.com/apis/design/resource_names) for the
1255
+ # appropriate value for this field.
1043
1256
  # @param [Google::Apis::EventarcV1::SetIamPolicyRequest] set_iam_policy_request_object
1044
1257
  # @param [String] fields
1045
1258
  # Selector specifying which fields to include in a partial response.
@@ -1076,8 +1289,9 @@ module Google
1076
1289
  # permission-aware UIs and command-line tools, not for authorization checking.
1077
1290
  # This operation may "fail open" without warning.
1078
1291
  # @param [String] resource
1079
- # REQUIRED: The resource for which the policy detail is being requested. See the
1080
- # operation documentation for the appropriate value for this field.
1292
+ # REQUIRED: The resource for which the policy detail is being requested. See [
1293
+ # Resource names](https://cloud.google.com/apis/design/resource_names) for the
1294
+ # appropriate value for this field.
1081
1295
  # @param [Google::Apis::EventarcV1::TestIamPermissionsRequest] test_iam_permissions_request_object
1082
1296
  # @param [String] fields
1083
1297
  # 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.25.0
4
+ version: 0.28.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-09 00:00:00.000000000 Z
11
+ date: 2022-07-04 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.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.4'
29
+ version: '0.7'
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.25.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-eventarc_v1/v0.28.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