google-apis-eventarc_v1 0.17.0 → 0.20.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: 0f7e91268fb6fe94da762e612218f8bc4dbb4a58c650026f0b45a03e45819401
4
- data.tar.gz: 1595f64f4642600db22fd8bca62b765b03c589abd088e457e1fbfae9a97b303d
3
+ metadata.gz: 88f47b0004db3509e3de5c07a214a4b5ea338674c7e6bee482807760d89c5e2b
4
+ data.tar.gz: 229b21d0c8a79341fa513cec86c8efb9fd7ba97477925ad346cc7082824b2589
5
5
  SHA512:
6
- metadata.gz: daae906cbd3f508984d3c395eb532b82f39c8a05c08e797e6f80f7716f3f4bcbf6b358dfb32ccd0a0baaf6c60939cd062298e5caebbbfd866920c38f75552660
7
- data.tar.gz: b1f2bcc8d2eac6338e98028f397428b87a9428082df8e3b431f0b29e24824eb5cdbb48e1edd244b8ac940ac6fad49d9a4c2dc706398dffd2411474a14a7674dd
6
+ metadata.gz: 8b4aa82aaaddec9404d28bcbd8892977c30a1a75aed5f9b010109d5216d51b0de32073575849a91bd5c4e971a6a30ebad04dd8ff0ef19ce18d22769554da525b
7
+ data.tar.gz: 69ba956efbe3b7f8c28ae37fc27982d909cfe22f281fd750b95543b764a287c5156305528f2b706569e64d79f3ee8f0b12e4461602f0080ba682cce759b77953
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Release history for google-apis-eventarc_v1
2
2
 
3
+ ### v0.20.0 (2022-03-06)
4
+
5
+ * Regenerated from discovery document revision 20220301
6
+
7
+ ### v0.19.0 (2022-02-11)
8
+
9
+ * Regenerated from discovery document revision 20220205
10
+
11
+ ### v0.18.0 (2022-02-03)
12
+
13
+ * Regenerated from discovery document revision 20220124
14
+
3
15
  ### v0.17.0 (2022-01-17)
4
16
 
5
17
  * Regenerated from discovery document revision 20220111
@@ -204,7 +204,7 @@ module Google
204
204
  include Google::Apis::Core::Hashable
205
205
 
206
206
  # The Cloud Function resource name. Only Cloud Functions V2 is supported. Format:
207
- # projects/`project`/locations/`location`/functions/`function`
207
+ # `projects/`project`/locations/`location`/functions/`function``
208
208
  # Corresponds to the JSON property `cloudFunction`
209
209
  # @return [String]
210
210
  attr_accessor :cloud_function
@@ -259,6 +259,14 @@ module Google
259
259
  # @return [String]
260
260
  attr_accessor :attribute
261
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
+
262
270
  # Required. The value for the attribute.
263
271
  # Corresponds to the JSON property `value`
264
272
  # @return [String]
@@ -271,10 +279,55 @@ module Google
271
279
  # Update properties of this object
272
280
  def update!(**args)
273
281
  @attribute = args[:attribute] if args.key?(:attribute)
282
+ @operator = args[:operator] if args.key?(:operator)
274
283
  @value = args[:value] if args.key?(:value)
275
284
  end
276
285
  end
277
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
+
278
331
  # Represents a textual expression in the Common Expression Language (CEL) syntax.
279
332
  # CEL is a C-like expression language. The syntax and semantics of CEL are
280
333
  # documented at https://github.com/google/cel-spec. Example (Comparison): title:
@@ -329,6 +382,48 @@ module Google
329
382
  end
330
383
  end
331
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
+
332
427
  # Represents a GKE destination.
333
428
  class Gke
334
429
  include Google::Apis::Core::Hashable
@@ -541,6 +636,38 @@ module Google
541
636
  end
542
637
  end
543
638
 
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
+
544
671
  # The response message for the `ListTriggers` method.
545
672
  class ListTriggersResponse
546
673
  include Google::Apis::Core::Hashable
@@ -774,6 +901,38 @@ module Google
774
901
  end
775
902
  end
776
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
+
777
936
  # Represents a Pub/Sub transport.
778
937
  class Pubsub
779
938
  include Google::Apis::Core::Hashable
@@ -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.17.0"
19
+ GEM_VERSION = "0.20.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.4.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220111"
25
+ REVISION = "20220301"
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
 
@@ -223,10 +247,22 @@ module Google
223
247
  # @private
224
248
  class Representation < Google::Apis::Core::JsonRepresentation
225
249
  property :attribute, as: 'attribute'
250
+ property :operator, as: 'operator'
226
251
  property :value, as: 'value'
227
252
  end
228
253
  end
229
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
+
230
266
  class Expr
231
267
  # @private
232
268
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -237,6 +273,16 @@ module Google
237
273
  end
238
274
  end
239
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
+
240
286
  class Gke
241
287
  # @private
242
288
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -293,6 +339,16 @@ module Google
293
339
  end
294
340
  end
295
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
+
296
352
  class ListTriggersResponse
297
353
  # @private
298
354
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -339,6 +395,16 @@ module Google
339
395
  end
340
396
  end
341
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
+
342
408
  class Pubsub
343
409
  # @private
344
410
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -508,6 +508,83 @@ module Google
508
508
  execute_or_queue_command(command, &block)
509
509
  end
510
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
+
511
588
  # Create a new trigger in a particular project and location.
512
589
  # @param [String] parent
513
590
  # Required. The parent collection in which to add this trigger.
@@ -667,6 +744,10 @@ module Google
667
744
  # List triggers.
668
745
  # @param [String] parent
669
746
  # Required. The parent collection to list triggers on.
747
+ # @param [String] filter
748
+ # Filter field. Used to filter the Triggers to be listed. Possible filters are
749
+ # described in https://google.aip.dev/160. For example, using "?filter=
750
+ # destination:gke" would list only Triggers with a gke destination.
670
751
  # @param [String] order_by
671
752
  # The sorting order of the resources returned. Value should be a comma-separated
672
753
  # list of fields. The default sorting order is ascending. To specify descending
@@ -697,11 +778,12 @@ module Google
697
778
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
698
779
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
699
780
  # @raise [Google::Apis::AuthorizationError] Authorization is required
700
- def list_project_location_triggers(parent, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
781
+ def list_project_location_triggers(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
701
782
  command = make_simple_command(:get, 'v1/{+parent}/triggers', options)
702
783
  command.response_representation = Google::Apis::EventarcV1::ListTriggersResponse::Representation
703
784
  command.response_class = Google::Apis::EventarcV1::ListTriggersResponse
704
785
  command.params['parent'] = parent unless parent.nil?
786
+ command.query['filter'] = filter unless filter.nil?
705
787
  command.query['orderBy'] = order_by unless order_by.nil?
706
788
  command.query['pageSize'] = page_size unless page_size.nil?
707
789
  command.query['pageToken'] = page_token unless page_token.nil?
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.17.0
4
+ version: 0.20.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-24 00:00:00.000000000 Z
11
+ date: 2022-03-07 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.17.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-eventarc_v1/v0.20.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: []