google-apis-eventarc_v1 0.15.0 → 0.19.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: 7a108c3adb4696c7cda83d08298344bb017065fa3249fb3cf7861dd272bc28cc
4
- data.tar.gz: 98bea2cec572a6429598ca4d756b6cc51f7d513601354ee305ca204e3a5f7fc2
3
+ metadata.gz: 96201d51bf08f04ba3a50da7c016882c55ffdf7c6a7064e96cd331de41b2d3a8
4
+ data.tar.gz: ce01209dd36c8cd89921e444f4ee2811254e8cc75a0aecf02cc7b578ffac802d
5
5
  SHA512:
6
- metadata.gz: f1898f4c3fe15ac800b09f3e1adf0d0d297d8bc4f48ac845bfec86b9d527fb296694d228db3d80b8889bca6fd3b051d101b620f33a2d459de5c5c2f5346452fb
7
- data.tar.gz: a44a2b100806629463377dfada4a2e3cd28eecbd2ad8b1323ab203bb8dfa54a3265e39a0efaeb251f1f8195ffc7f4fc705f1bd7a40da5ab4a2f704d54f5b0798
6
+ metadata.gz: 4c15576f8f0872f31c043272227dd37c04ee6ba02c1430920f42c347bc221a8a188ee69d0f55307406196b21976fcfc4da2ef8bc7f1ee229ab903c92c78d697a
7
+ data.tar.gz: c17e021cbcbc3ab533b8e0dd99cf4c28322742bb089c2eadd26f55e269587e8d7c3270f6e227f6e5c0195ad32d4b1ec0ef42907e7d3b69c798f4a1346d94b8d9
data/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # Release history for google-apis-eventarc_v1
2
2
 
3
+ ### v0.19.0 (2022-02-11)
4
+
5
+ * Regenerated from discovery document revision 20220205
6
+
7
+ ### v0.18.0 (2022-02-03)
8
+
9
+ * Regenerated from discovery document revision 20220124
10
+
11
+ ### v0.17.0 (2022-01-17)
12
+
13
+ * Regenerated from discovery document revision 20220111
14
+ * Regenerated using generator version 0.4.1
15
+
16
+ ### v0.16.0 (2022-01-10)
17
+
18
+ * Regenerated from discovery document revision 20220104
19
+
3
20
  ### v0.15.0 (2021-12-14)
4
21
 
5
22
  * Regenerated from discovery document revision 20211130
@@ -169,8 +169,8 @@ module Google
169
169
  include Google::Apis::Core::Hashable
170
170
 
171
171
  # Optional. The relative path on the Cloud Run service the events should be sent
172
- # to. The value must conform to the definition of URI path segment (section 3.3
173
- # of RFC2396). Examples: "/route", "route", "route/subroute".
172
+ # to. The value must conform to the definition of a URI path segment (section 3.
173
+ # 3 of RFC2396). Examples: "/route", "route", "route/subroute".
174
174
  # Corresponds to the JSON property `path`
175
175
  # @return [String]
176
176
  attr_accessor :path
@@ -182,7 +182,7 @@ module Google
182
182
 
183
183
  # Required. The name of the Cloud Run service being addressed. See https://cloud.
184
184
  # google.com/run/docs/reference/rest/v1/namespaces.services. Only services
185
- # located in the same project of the trigger object can be addressed.
185
+ # located in the same project as the trigger object can be addressed.
186
186
  # Corresponds to the JSON property `service`
187
187
  # @return [String]
188
188
  attr_accessor :service
@@ -203,6 +203,12 @@ module Google
203
203
  class Destination
204
204
  include Google::Apis::Core::Hashable
205
205
 
206
+ # The Cloud Function resource name. Only Cloud Functions V2 is supported. Format:
207
+ # `projects/`project`/locations/`location`/functions/`function``
208
+ # Corresponds to the JSON property `cloudFunction`
209
+ # @return [String]
210
+ attr_accessor :cloud_function
211
+
206
212
  # Represents a Cloud Run destination.
207
213
  # Corresponds to the JSON property `cloudRun`
208
214
  # @return [Google::Apis::EventarcV1::CloudRun]
@@ -219,6 +225,7 @@ module Google
219
225
 
220
226
  # Update properties of this object
221
227
  def update!(**args)
228
+ @cloud_function = args[:cloud_function] if args.key?(:cloud_function)
222
229
  @cloud_run = args[:cloud_run] if args.key?(:cloud_run)
223
230
  @gke = args[:gke] if args.key?(:gke)
224
231
  end
@@ -252,6 +259,14 @@ module Google
252
259
  # @return [String]
253
260
  attr_accessor :attribute
254
261
 
262
+ # Optional. The operator used for matching the events with the value of the
263
+ # filter. If not specified, only events that have an exact key-value pair
264
+ # specified in the filter are matched. The only allowed value is `match-path-
265
+ # pattern`.
266
+ # Corresponds to the JSON property `operator`
267
+ # @return [String]
268
+ attr_accessor :operator
269
+
255
270
  # Required. The value for the attribute.
256
271
  # Corresponds to the JSON property `value`
257
272
  # @return [String]
@@ -264,10 +279,55 @@ module Google
264
279
  # Update properties of this object
265
280
  def update!(**args)
266
281
  @attribute = args[:attribute] if args.key?(:attribute)
282
+ @operator = args[:operator] if args.key?(:operator)
267
283
  @value = args[:value] if args.key?(:value)
268
284
  end
269
285
  end
270
286
 
287
+ # A representation of the event type resource.
288
+ class EventType
289
+ include Google::Apis::Core::Hashable
290
+
291
+ # Output only. Human friendly description of what the event type is about. For
292
+ # example "Bucket created in Cloud Storage".
293
+ # Corresponds to the JSON property `description`
294
+ # @return [String]
295
+ attr_accessor :description
296
+
297
+ # Output only. URI for the event schema. For example "https://github.com/
298
+ # googleapis/google-cloudevents/blob/master/proto/google/events/cloud/storage/v1/
299
+ # events.proto"
300
+ # Corresponds to the JSON property `eventSchemaUri`
301
+ # @return [String]
302
+ attr_accessor :event_schema_uri
303
+
304
+ # Output only. Filtering attributes for the event type.
305
+ # Corresponds to the JSON property `filteringAttributes`
306
+ # @return [Array<Google::Apis::EventarcV1::FilteringAttribute>]
307
+ attr_accessor :filtering_attributes
308
+
309
+ # Output only. The full name of the event type (for example, "google.cloud.
310
+ # storage.object.v1.finalized"). In the form of `provider-specific-prefix`.`
311
+ # resource`.`version`.`verb`. Types MUST be versioned and event schemas are
312
+ # guaranteed to remain backward compatible within one version. Note that event
313
+ # type versions and API versions do not need to match.
314
+ # Corresponds to the JSON property `type`
315
+ # @return [String]
316
+ attr_accessor :type
317
+
318
+ def initialize(**args)
319
+ update!(**args)
320
+ end
321
+
322
+ # Update properties of this object
323
+ def update!(**args)
324
+ @description = args[:description] if args.key?(:description)
325
+ @event_schema_uri = args[:event_schema_uri] if args.key?(:event_schema_uri)
326
+ @filtering_attributes = args[:filtering_attributes] if args.key?(:filtering_attributes)
327
+ @type = args[:type] if args.key?(:type)
328
+ end
329
+ end
330
+
271
331
  # Represents a textual expression in the Common Expression Language (CEL) syntax.
272
332
  # CEL is a C-like expression language. The syntax and semantics of CEL are
273
333
  # documented at https://github.com/google/cel-spec. Example (Comparison): title:
@@ -322,6 +382,48 @@ module Google
322
382
  end
323
383
  end
324
384
 
385
+ # A representation of the FilteringAttribute resource. Filtering attributes are
386
+ # per event type.
387
+ class FilteringAttribute
388
+ include Google::Apis::Core::Hashable
389
+
390
+ # Output only. Attribute used for filtering the event type.
391
+ # Corresponds to the JSON property `attribute`
392
+ # @return [String]
393
+ attr_accessor :attribute
394
+
395
+ # Output only. Description of the purpose of the attribute.
396
+ # Corresponds to the JSON property `description`
397
+ # @return [String]
398
+ attr_accessor :description
399
+
400
+ # Output only. If true, the attribute accepts matching expressions in the
401
+ # Eventarc PathPattern format.
402
+ # Corresponds to the JSON property `pathPatternSupported`
403
+ # @return [Boolean]
404
+ attr_accessor :path_pattern_supported
405
+ alias_method :path_pattern_supported?, :path_pattern_supported
406
+
407
+ # Output only. If true, the triggers for this provider should always specify a
408
+ # filter on these attributes. Trigger creation will fail otherwise.
409
+ # Corresponds to the JSON property `required`
410
+ # @return [Boolean]
411
+ attr_accessor :required
412
+ alias_method :required?, :required
413
+
414
+ def initialize(**args)
415
+ update!(**args)
416
+ end
417
+
418
+ # Update properties of this object
419
+ def update!(**args)
420
+ @attribute = args[:attribute] if args.key?(:attribute)
421
+ @description = args[:description] if args.key?(:description)
422
+ @path_pattern_supported = args[:path_pattern_supported] if args.key?(:path_pattern_supported)
423
+ @required = args[:required] if args.key?(:required)
424
+ end
425
+ end
426
+
325
427
  # Represents a GKE destination.
326
428
  class Gke
327
429
  include Google::Apis::Core::Hashable
@@ -333,8 +435,8 @@ module Google
333
435
  attr_accessor :cluster
334
436
 
335
437
  # Required. The name of the Google Compute Engine in which the cluster resides,
336
- # which can either be compute zone (e.g. us-central1-a) for the zonal clusters
337
- # or region (e.g. us-central1) for regional clusters.
438
+ # which can either be compute zone (for example, us-central1-a) for the zonal
439
+ # clusters or region (for example, us-central1) for regional clusters.
338
440
  # Corresponds to the JSON property `location`
339
441
  # @return [String]
340
442
  attr_accessor :location
@@ -345,7 +447,7 @@ module Google
345
447
  attr_accessor :namespace
346
448
 
347
449
  # Optional. The relative path on the GKE service the events should be sent to.
348
- # The value must conform to the definition of URI path segment (section 3.3 of
450
+ # The value must conform to the definition of a URI path segment (section 3.3 of
349
451
  # RFC2396). Examples: "/route", "route", "route/subroute".
350
452
  # Corresponds to the JSON property `path`
351
453
  # @return [String]
@@ -534,7 +636,39 @@ module Google
534
636
  end
535
637
  end
536
638
 
537
- # The response message for the ListTriggers method.
639
+ # The response message for the `ListProviders` method.
640
+ class ListProvidersResponse
641
+ include Google::Apis::Core::Hashable
642
+
643
+ # A page token that can be sent to ListProviders to request the next page. If
644
+ # this is empty, then there are no more pages.
645
+ # Corresponds to the JSON property `nextPageToken`
646
+ # @return [String]
647
+ attr_accessor :next_page_token
648
+
649
+ # The requested providers, up to the number specified in `page_size`.
650
+ # Corresponds to the JSON property `providers`
651
+ # @return [Array<Google::Apis::EventarcV1::Provider>]
652
+ attr_accessor :providers
653
+
654
+ # Unreachable resources, if any.
655
+ # Corresponds to the JSON property `unreachable`
656
+ # @return [Array<String>]
657
+ attr_accessor :unreachable
658
+
659
+ def initialize(**args)
660
+ update!(**args)
661
+ end
662
+
663
+ # Update properties of this object
664
+ def update!(**args)
665
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
666
+ @providers = args[:providers] if args.key?(:providers)
667
+ @unreachable = args[:unreachable] if args.key?(:unreachable)
668
+ end
669
+ end
670
+
671
+ # The response message for the `ListTriggers` method.
538
672
  class ListTriggersResponse
539
673
  include Google::Apis::Core::Hashable
540
674
 
@@ -767,22 +901,54 @@ module Google
767
901
  end
768
902
  end
769
903
 
904
+ # A representation of the Provider resource.
905
+ class Provider
906
+ include Google::Apis::Core::Hashable
907
+
908
+ # Output only. Human friendly name for the Provider. For example "Cloud Storage".
909
+ # Corresponds to the JSON property `displayName`
910
+ # @return [String]
911
+ attr_accessor :display_name
912
+
913
+ # Output only. Event types for this provider.
914
+ # Corresponds to the JSON property `eventTypes`
915
+ # @return [Array<Google::Apis::EventarcV1::EventType>]
916
+ attr_accessor :event_types
917
+
918
+ # Output only. In `projects/`project`/locations/`location`/providers/`
919
+ # provider_id`` format.
920
+ # Corresponds to the JSON property `name`
921
+ # @return [String]
922
+ attr_accessor :name
923
+
924
+ def initialize(**args)
925
+ update!(**args)
926
+ end
927
+
928
+ # Update properties of this object
929
+ def update!(**args)
930
+ @display_name = args[:display_name] if args.key?(:display_name)
931
+ @event_types = args[:event_types] if args.key?(:event_types)
932
+ @name = args[:name] if args.key?(:name)
933
+ end
934
+ end
935
+
770
936
  # Represents a Pub/Sub transport.
771
937
  class Pubsub
772
938
  include Google::Apis::Core::Hashable
773
939
 
774
940
  # Output only. The name of the Pub/Sub subscription created and managed by
775
- # Eventarc system as a transport for the event delivery. Format: `projects/`
776
- # PROJECT_ID`/subscriptions/`SUBSCRIPTION_NAME``.
941
+ # Eventarc as a transport for the event delivery. Format: `projects/`PROJECT_ID`/
942
+ # subscriptions/`SUBSCRIPTION_NAME``.
777
943
  # Corresponds to the JSON property `subscription`
778
944
  # @return [String]
779
945
  attr_accessor :subscription
780
946
 
781
- # Optional. The name of the Pub/Sub topic created and managed by Eventarc system
782
- # as a transport for the event delivery. Format: `projects/`PROJECT_ID`/topics/`
783
- # TOPIC_NAME``. You may set an existing topic for triggers of the type `google.
784
- # cloud.pubsub.topic.v1.messagePublished` only. The topic you provide here will
785
- # not be deleted by Eventarc at trigger deletion.
947
+ # Optional. The name of the Pub/Sub topic created and managed by Eventarc as a
948
+ # transport for the event delivery. Format: `projects/`PROJECT_ID`/topics/`
949
+ # TOPIC_NAME``. You can set an existing topic for triggers of the type `google.
950
+ # cloud.pubsub.topic.v1.messagePublished`. The topic you provide here is not
951
+ # deleted by Eventarc at trigger deletion.
786
952
  # Corresponds to the JSON property `topic`
787
953
  # @return [String]
788
954
  attr_accessor :topic
@@ -891,8 +1057,8 @@ module Google
891
1057
  end
892
1058
  end
893
1059
 
894
- # Represents the transport intermediaries created for the trigger in order to
895
- # deliver events.
1060
+ # Represents the transport intermediaries created for the trigger to deliver
1061
+ # events.
896
1062
  class Transport
897
1063
  include Google::Apis::Core::Hashable
898
1064
 
@@ -926,14 +1092,14 @@ module Google
926
1092
  attr_accessor :destination
927
1093
 
928
1094
  # Output only. This checksum is computed by the server based on the value of
929
- # other fields, and may be sent only on create requests to ensure the client has
930
- # an up-to-date value before proceeding.
1095
+ # other fields, and might be sent only on create requests to ensure that the
1096
+ # client has an up-to-date value before proceeding.
931
1097
  # Corresponds to the JSON property `etag`
932
1098
  # @return [String]
933
1099
  attr_accessor :etag
934
1100
 
935
1101
  # Required. null The list of filters that applies to event attributes. Only
936
- # events that match all the provided filters will be sent to the destination.
1102
+ # events that match all the provided filters are sent to the destination.
937
1103
  # Corresponds to the JSON property `eventFilters`
938
1104
  # @return [Array<Google::Apis::EventarcV1::EventFilter>]
939
1105
  attr_accessor :event_filters
@@ -945,7 +1111,7 @@ module Google
945
1111
  attr_accessor :labels
946
1112
 
947
1113
  # Required. The resource name of the trigger. Must be unique within the location
948
- # on the project and must be in `projects/`project`/locations/`location`/
1114
+ # of the project and must be in `projects/`project`/locations/`location`/
949
1115
  # triggers/`trigger`` format.
950
1116
  # Corresponds to the JSON property `name`
951
1117
  # @return [String]
@@ -953,25 +1119,25 @@ module Google
953
1119
 
954
1120
  # Optional. The IAM service account email associated with the trigger. The
955
1121
  # service account represents the identity of the trigger. The principal who
956
- # calls this API must have `iam.serviceAccounts.actAs` permission in the service
957
- # account. See https://cloud.google.com/iam/docs/understanding-service-accounts?
958
- # hl=en#sa_common for more information. For Cloud Run destinations, this service
959
- # account is used to generate identity tokens when invoking the service. See
960
- # https://cloud.google.com/run/docs/triggering/pubsub-push#create-service-
961
- # account for information on how to invoke authenticated Cloud Run services. In
962
- # order to create Audit Log triggers, the service account should also have `
963
- # roles/eventarc.eventReceiver` IAM role.
1122
+ # calls this API must have the `iam.serviceAccounts.actAs` permission in the
1123
+ # service account. See https://cloud.google.com/iam/docs/understanding-service-
1124
+ # accounts?hl=en#sa_common for more information. For Cloud Run destinations,
1125
+ # this service account is used to generate identity tokens when invoking the
1126
+ # service. See https://cloud.google.com/run/docs/triggering/pubsub-push#create-
1127
+ # service-account for information on how to invoke authenticated Cloud Run
1128
+ # services. To create Audit Log triggers, the service account should also have
1129
+ # the `roles/eventarc.eventReceiver` IAM role.
964
1130
  # Corresponds to the JSON property `serviceAccount`
965
1131
  # @return [String]
966
1132
  attr_accessor :service_account
967
1133
 
968
- # Represents the transport intermediaries created for the trigger in order to
969
- # deliver events.
1134
+ # Represents the transport intermediaries created for the trigger to deliver
1135
+ # events.
970
1136
  # Corresponds to the JSON property `transport`
971
1137
  # @return [Google::Apis::EventarcV1::Transport]
972
1138
  attr_accessor :transport
973
1139
 
974
- # Output only. Server assigned unique identifier for the trigger. The value is a
1140
+ # Output only. Server-assigned unique identifier for the trigger. The value is a
975
1141
  # UUID4 string and guaranteed to remain unchanged until the resource is deleted.
976
1142
  # Corresponds to the JSON property `uid`
977
1143
  # @return [String]
@@ -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.15.0"
19
+ GEM_VERSION = "0.19.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.4.0"
22
+ GENERATOR_VERSION = "0.4.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20211130"
25
+ REVISION = "20220205"
26
26
  end
27
27
  end
28
28
  end
@@ -64,12 +64,24 @@ module Google
64
64
  include Google::Apis::Core::JsonObjectSupport
65
65
  end
66
66
 
67
+ class EventType
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
67
73
  class Expr
68
74
  class Representation < Google::Apis::Core::JsonRepresentation; end
69
75
 
70
76
  include Google::Apis::Core::JsonObjectSupport
71
77
  end
72
78
 
79
+ class FilteringAttribute
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
73
85
  class Gke
74
86
  class Representation < Google::Apis::Core::JsonRepresentation; end
75
87
 
@@ -106,6 +118,12 @@ module Google
106
118
  include Google::Apis::Core::JsonObjectSupport
107
119
  end
108
120
 
121
+ class ListProvidersResponse
122
+ class Representation < Google::Apis::Core::JsonRepresentation; end
123
+
124
+ include Google::Apis::Core::JsonObjectSupport
125
+ end
126
+
109
127
  class ListTriggersResponse
110
128
  class Representation < Google::Apis::Core::JsonRepresentation; end
111
129
 
@@ -130,6 +148,12 @@ module Google
130
148
  include Google::Apis::Core::JsonObjectSupport
131
149
  end
132
150
 
151
+ class Provider
152
+ class Representation < Google::Apis::Core::JsonRepresentation; end
153
+
154
+ include Google::Apis::Core::JsonObjectSupport
155
+ end
156
+
133
157
  class Pubsub
134
158
  class Representation < Google::Apis::Core::JsonRepresentation; end
135
159
 
@@ -205,6 +229,7 @@ module Google
205
229
  class Destination
206
230
  # @private
207
231
  class Representation < Google::Apis::Core::JsonRepresentation
232
+ property :cloud_function, as: 'cloudFunction'
208
233
  property :cloud_run, as: 'cloudRun', class: Google::Apis::EventarcV1::CloudRun, decorator: Google::Apis::EventarcV1::CloudRun::Representation
209
234
 
210
235
  property :gke, as: 'gke', class: Google::Apis::EventarcV1::Gke, decorator: Google::Apis::EventarcV1::Gke::Representation
@@ -222,10 +247,22 @@ module Google
222
247
  # @private
223
248
  class Representation < Google::Apis::Core::JsonRepresentation
224
249
  property :attribute, as: 'attribute'
250
+ property :operator, as: 'operator'
225
251
  property :value, as: 'value'
226
252
  end
227
253
  end
228
254
 
255
+ class EventType
256
+ # @private
257
+ class Representation < Google::Apis::Core::JsonRepresentation
258
+ property :description, as: 'description'
259
+ property :event_schema_uri, as: 'eventSchemaUri'
260
+ collection :filtering_attributes, as: 'filteringAttributes', class: Google::Apis::EventarcV1::FilteringAttribute, decorator: Google::Apis::EventarcV1::FilteringAttribute::Representation
261
+
262
+ property :type, as: 'type'
263
+ end
264
+ end
265
+
229
266
  class Expr
230
267
  # @private
231
268
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -236,6 +273,16 @@ module Google
236
273
  end
237
274
  end
238
275
 
276
+ class FilteringAttribute
277
+ # @private
278
+ class Representation < Google::Apis::Core::JsonRepresentation
279
+ property :attribute, as: 'attribute'
280
+ property :description, as: 'description'
281
+ property :path_pattern_supported, as: 'pathPatternSupported'
282
+ property :required, as: 'required'
283
+ end
284
+ end
285
+
239
286
  class Gke
240
287
  # @private
241
288
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -292,6 +339,16 @@ module Google
292
339
  end
293
340
  end
294
341
 
342
+ class ListProvidersResponse
343
+ # @private
344
+ class Representation < Google::Apis::Core::JsonRepresentation
345
+ property :next_page_token, as: 'nextPageToken'
346
+ collection :providers, as: 'providers', class: Google::Apis::EventarcV1::Provider, decorator: Google::Apis::EventarcV1::Provider::Representation
347
+
348
+ collection :unreachable, as: 'unreachable'
349
+ end
350
+ end
351
+
295
352
  class ListTriggersResponse
296
353
  # @private
297
354
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -338,6 +395,16 @@ module Google
338
395
  end
339
396
  end
340
397
 
398
+ class Provider
399
+ # @private
400
+ class Representation < Google::Apis::Core::JsonRepresentation
401
+ property :display_name, as: 'displayName'
402
+ collection :event_types, as: 'eventTypes', class: Google::Apis::EventarcV1::EventType, decorator: Google::Apis::EventarcV1::EventType::Representation
403
+
404
+ property :name, as: 'name'
405
+ end
406
+ end
407
+
341
408
  class Pubsub
342
409
  # @private
343
410
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -122,6 +122,124 @@ module Google
122
122
  execute_or_queue_command(command, &block)
123
123
  end
124
124
 
125
+ # Gets the access control policy for a resource. Returns an empty policy if the
126
+ # resource exists and does not have a policy set.
127
+ # @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.
130
+ # @param [Fixnum] options_requested_policy_version
131
+ # Optional. The maximum policy version that will be used to format the policy.
132
+ # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
133
+ # rejected. Requests for policies with any conditional role bindings must
134
+ # specify version 3. Policies with no conditional role bindings may specify any
135
+ # valid value or leave the field unset. The policy in the response might use the
136
+ # policy version that you specified, or it might use a lower policy version. For
137
+ # example, if you specify version 3, but the policy has no conditional role
138
+ # bindings, the response uses version 1. To learn which resources support
139
+ # conditions in their IAM policies, see the [IAM documentation](https://cloud.
140
+ # google.com/iam/help/conditions/resource-policies).
141
+ # @param [String] fields
142
+ # Selector specifying which fields to include in a partial response.
143
+ # @param [String] quota_user
144
+ # Available to use for quota purposes for server-side applications. Can be any
145
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
146
+ # @param [Google::Apis::RequestOptions] options
147
+ # Request-specific options
148
+ #
149
+ # @yield [result, err] Result & error if block supplied
150
+ # @yieldparam result [Google::Apis::EventarcV1::Policy] parsed result object
151
+ # @yieldparam err [StandardError] error object if request failed
152
+ #
153
+ # @return [Google::Apis::EventarcV1::Policy]
154
+ #
155
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
156
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
157
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
158
+ def get_project_location_channel_connection_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
159
+ command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
160
+ command.response_representation = Google::Apis::EventarcV1::Policy::Representation
161
+ command.response_class = Google::Apis::EventarcV1::Policy
162
+ command.params['resource'] = resource unless resource.nil?
163
+ command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
164
+ command.query['fields'] = fields unless fields.nil?
165
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
166
+ execute_or_queue_command(command, &block)
167
+ end
168
+
169
+ # Sets the access control policy on the specified resource. Replaces any
170
+ # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
171
+ # PERMISSION_DENIED` errors.
172
+ # @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.
175
+ # @param [Google::Apis::EventarcV1::SetIamPolicyRequest] set_iam_policy_request_object
176
+ # @param [String] fields
177
+ # Selector specifying which fields to include in a partial response.
178
+ # @param [String] quota_user
179
+ # Available to use for quota purposes for server-side applications. Can be any
180
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
181
+ # @param [Google::Apis::RequestOptions] options
182
+ # Request-specific options
183
+ #
184
+ # @yield [result, err] Result & error if block supplied
185
+ # @yieldparam result [Google::Apis::EventarcV1::Policy] parsed result object
186
+ # @yieldparam err [StandardError] error object if request failed
187
+ #
188
+ # @return [Google::Apis::EventarcV1::Policy]
189
+ #
190
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
191
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
192
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
193
+ def set_channel_connection_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
194
+ command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
195
+ command.request_representation = Google::Apis::EventarcV1::SetIamPolicyRequest::Representation
196
+ command.request_object = set_iam_policy_request_object
197
+ command.response_representation = Google::Apis::EventarcV1::Policy::Representation
198
+ command.response_class = Google::Apis::EventarcV1::Policy
199
+ command.params['resource'] = resource unless resource.nil?
200
+ command.query['fields'] = fields unless fields.nil?
201
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
202
+ execute_or_queue_command(command, &block)
203
+ end
204
+
205
+ # Returns permissions that a caller has on the specified resource. If the
206
+ # resource does not exist, this will return an empty set of permissions, not a `
207
+ # NOT_FOUND` error. Note: This operation is designed to be used for building
208
+ # permission-aware UIs and command-line tools, not for authorization checking.
209
+ # This operation may "fail open" without warning.
210
+ # @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.
213
+ # @param [Google::Apis::EventarcV1::TestIamPermissionsRequest] test_iam_permissions_request_object
214
+ # @param [String] fields
215
+ # Selector specifying which fields to include in a partial response.
216
+ # @param [String] quota_user
217
+ # Available to use for quota purposes for server-side applications. Can be any
218
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
219
+ # @param [Google::Apis::RequestOptions] options
220
+ # Request-specific options
221
+ #
222
+ # @yield [result, err] Result & error if block supplied
223
+ # @yieldparam result [Google::Apis::EventarcV1::TestIamPermissionsResponse] parsed result object
224
+ # @yieldparam err [StandardError] error object if request failed
225
+ #
226
+ # @return [Google::Apis::EventarcV1::TestIamPermissionsResponse]
227
+ #
228
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
229
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
230
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
231
+ def test_channel_connection_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
232
+ command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
233
+ command.request_representation = Google::Apis::EventarcV1::TestIamPermissionsRequest::Representation
234
+ command.request_object = test_iam_permissions_request_object
235
+ command.response_representation = Google::Apis::EventarcV1::TestIamPermissionsResponse::Representation
236
+ command.response_class = Google::Apis::EventarcV1::TestIamPermissionsResponse
237
+ command.params['resource'] = resource unless resource.nil?
238
+ command.query['fields'] = fields unless fields.nil?
239
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
240
+ execute_or_queue_command(command, &block)
241
+ end
242
+
125
243
  # Gets the access control policy for a resource. Returns an empty policy if the
126
244
  # resource exists and does not have a policy set.
127
245
  # @param [String] resource
@@ -390,6 +508,83 @@ module Google
390
508
  execute_or_queue_command(command, &block)
391
509
  end
392
510
 
511
+ # Get a single Provider.
512
+ # @param [String] name
513
+ # Required. The name of the provider to get.
514
+ # @param [String] fields
515
+ # Selector specifying which fields to include in a partial response.
516
+ # @param [String] quota_user
517
+ # Available to use for quota purposes for server-side applications. Can be any
518
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
519
+ # @param [Google::Apis::RequestOptions] options
520
+ # Request-specific options
521
+ #
522
+ # @yield [result, err] Result & error if block supplied
523
+ # @yieldparam result [Google::Apis::EventarcV1::Provider] parsed result object
524
+ # @yieldparam err [StandardError] error object if request failed
525
+ #
526
+ # @return [Google::Apis::EventarcV1::Provider]
527
+ #
528
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
529
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
530
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
531
+ def get_project_location_provider(name, fields: nil, quota_user: nil, options: nil, &block)
532
+ command = make_simple_command(:get, 'v1/{+name}', options)
533
+ command.response_representation = Google::Apis::EventarcV1::Provider::Representation
534
+ command.response_class = Google::Apis::EventarcV1::Provider
535
+ command.params['name'] = name unless name.nil?
536
+ command.query['fields'] = fields unless fields.nil?
537
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
538
+ execute_or_queue_command(command, &block)
539
+ end
540
+
541
+ # List providers.
542
+ # @param [String] parent
543
+ # Required. The parent of the provider to get.
544
+ # @param [String] filter
545
+ # The filter field that the list request will filter on.
546
+ # @param [String] order_by
547
+ # The sorting order of the resources returned. Value should be a comma-separated
548
+ # list of fields. The default sorting oder is ascending. To specify descending
549
+ # order for a field, append a `desc` suffix; for example: `name desc, _id`.
550
+ # @param [Fixnum] page_size
551
+ # The maximum number of providers to return on each page.
552
+ # @param [String] page_token
553
+ # The page token; provide the value from the `next_page_token` field in a
554
+ # previous `ListProviders` call to retrieve the subsequent page. When paginating,
555
+ # all other parameters provided to `ListProviders` must match the call that
556
+ # provided the page token.
557
+ # @param [String] fields
558
+ # Selector specifying which fields to include in a partial response.
559
+ # @param [String] quota_user
560
+ # Available to use for quota purposes for server-side applications. Can be any
561
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
562
+ # @param [Google::Apis::RequestOptions] options
563
+ # Request-specific options
564
+ #
565
+ # @yield [result, err] Result & error if block supplied
566
+ # @yieldparam result [Google::Apis::EventarcV1::ListProvidersResponse] parsed result object
567
+ # @yieldparam err [StandardError] error object if request failed
568
+ #
569
+ # @return [Google::Apis::EventarcV1::ListProvidersResponse]
570
+ #
571
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
572
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
573
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
574
+ def list_project_location_providers(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
575
+ command = make_simple_command(:get, 'v1/{+parent}/providers', options)
576
+ command.response_representation = Google::Apis::EventarcV1::ListProvidersResponse::Representation
577
+ command.response_class = Google::Apis::EventarcV1::ListProvidersResponse
578
+ command.params['parent'] = parent unless parent.nil?
579
+ command.query['filter'] = filter unless filter.nil?
580
+ command.query['orderBy'] = order_by unless order_by.nil?
581
+ command.query['pageSize'] = page_size unless page_size.nil?
582
+ command.query['pageToken'] = page_token unless page_token.nil?
583
+ command.query['fields'] = fields unless fields.nil?
584
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
585
+ execute_or_queue_command(command, &block)
586
+ end
587
+
393
588
  # Create a new trigger in a particular project and location.
394
589
  # @param [String] parent
395
590
  # Required. The parent collection in which to add this trigger.
@@ -397,8 +592,8 @@ module Google
397
592
  # @param [String] trigger_id
398
593
  # Required. The user-provided ID to be assigned to the trigger.
399
594
  # @param [Boolean] validate_only
400
- # Required. If set, validate the request and preview the review, but do not
401
- # actually post it.
595
+ # Required. If set, validate the request and preview the review, but do not post
596
+ # it.
402
597
  # @param [String] fields
403
598
  # Selector specifying which fields to include in a partial response.
404
599
  # @param [String] quota_user
@@ -440,8 +635,8 @@ module Google
440
635
  # If provided, the trigger will only be deleted if the etag matches the current
441
636
  # etag on the resource.
442
637
  # @param [Boolean] validate_only
443
- # Required. If set, validate the request and preview the review, but do not
444
- # actually post it.
638
+ # Required. If set, validate the request and preview the review, but do not post
639
+ # it.
445
640
  # @param [String] fields
446
641
  # Selector specifying which fields to include in a partial response.
447
642
  # @param [String] quota_user
@@ -550,10 +745,10 @@ module Google
550
745
  # @param [String] parent
551
746
  # Required. The parent collection to list triggers on.
552
747
  # @param [String] order_by
553
- # The sorting order of the resources returned. Value should be a comma separated
554
- # list of fields. The default sorting oder is ascending. To specify descending
555
- # order for a field, append a ` desc` suffix; for example: `name desc,
556
- # trigger_id`.
748
+ # The sorting order of the resources returned. Value should be a comma-separated
749
+ # list of fields. The default sorting order is ascending. To specify descending
750
+ # order for a field, append a `desc` suffix; for example: `name desc, trigger_id`
751
+ # .
557
752
  # @param [Fixnum] page_size
558
753
  # The maximum number of triggers to return on each page. Note: The service may
559
754
  # send fewer.
@@ -595,19 +790,19 @@ module Google
595
790
  # Update a single trigger.
596
791
  # @param [String] name
597
792
  # Required. The resource name of the trigger. Must be unique within the location
598
- # on the project and must be in `projects/`project`/locations/`location`/
793
+ # of the project and must be in `projects/`project`/locations/`location`/
599
794
  # triggers/`trigger`` format.
600
795
  # @param [Google::Apis::EventarcV1::Trigger] trigger_object
601
796
  # @param [Boolean] allow_missing
602
797
  # If set to true, and the trigger is not found, a new trigger will be created.
603
798
  # In this situation, `update_mask` is ignored.
604
799
  # @param [String] update_mask
605
- # The fields to be updated; only fields explicitly provided will be updated. If
606
- # no field mask is provided, all provided fields in the request will be updated.
607
- # To update all fields, provide a field mask of "*".
800
+ # The fields to be updated; only fields explicitly provided are updated. If no
801
+ # field mask is provided, all provided fields in the request are updated. To
802
+ # update all fields, provide a field mask of "*".
608
803
  # @param [Boolean] validate_only
609
- # Required. If set, validate the request and preview the review, but do not
610
- # actually post it.
804
+ # Required. If set, validate the request and preview the review, but do not post
805
+ # it.
611
806
  # @param [String] fields
612
807
  # Selector specifying which fields to include in a partial response.
613
808
  # @param [String] quota_user
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.15.0
4
+ version: 0.19.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-01-10 00:00:00.000000000 Z
11
+ date: 2022-02-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -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.15.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-eventarc_v1/v0.19.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.4
78
+ rubygems_version: 3.3.5
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Eventarc API V1