google-apis-eventarc_v1 0.17.0 → 0.18.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b79644cbb8b764752356c712987e2e62d009e9dac993514a02ec776b43a882ba
|
4
|
+
data.tar.gz: 0371d909c3dd50c9b42d68fb0a02aa4dc897c250aa7ab28c43bc6e0e102a300d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5c829d98813781dea8a80a276c4d1cafb10c8bbd8e392327d9e66acf184b8e9b6abd4d098209da1770ac7dcb3b1a159dfe7faa5216c4340cb23066cc9183fa79
|
7
|
+
data.tar.gz: 93963775b5b7164e25f57311f99a2b63b53752358b4e553cd19a22720ba7abfd38eb3c79b62242651ebd77027d3a3e79cec6b3760cd80d8421388d6b49aa3336
|
data/CHANGELOG.md
CHANGED
@@ -275,6 +275,50 @@ module Google
|
|
275
275
|
end
|
276
276
|
end
|
277
277
|
|
278
|
+
# A representation of the event type resource.
|
279
|
+
class EventType
|
280
|
+
include Google::Apis::Core::Hashable
|
281
|
+
|
282
|
+
# Output only. Human friendly description of what the event type is about. For
|
283
|
+
# example "Bucket created in Cloud Storage".
|
284
|
+
# Corresponds to the JSON property `description`
|
285
|
+
# @return [String]
|
286
|
+
attr_accessor :description
|
287
|
+
|
288
|
+
# Output only. URI for the event schema. For example "https://github.com/
|
289
|
+
# googleapis/google-cloudevents/blob/master/proto/google/events/cloud/storage/v1/
|
290
|
+
# events.proto"
|
291
|
+
# Corresponds to the JSON property `eventSchemaUri`
|
292
|
+
# @return [String]
|
293
|
+
attr_accessor :event_schema_uri
|
294
|
+
|
295
|
+
# Output only. Filtering attributes for the event type.
|
296
|
+
# Corresponds to the JSON property `filteringAttributes`
|
297
|
+
# @return [Array<Google::Apis::EventarcV1::FilteringAttribute>]
|
298
|
+
attr_accessor :filtering_attributes
|
299
|
+
|
300
|
+
# Output only. The full name of the event type (for example, "google.cloud.
|
301
|
+
# storage.object.v1.finalized"). In the form of `provider-id`.`resource`.`
|
302
|
+
# version`.`verb`. Types MUST be versioned and event schemas are guaranteed to
|
303
|
+
# remain backward compatible within one version. Note that event type versions
|
304
|
+
# and API versions do not need to match.
|
305
|
+
# Corresponds to the JSON property `type`
|
306
|
+
# @return [String]
|
307
|
+
attr_accessor :type
|
308
|
+
|
309
|
+
def initialize(**args)
|
310
|
+
update!(**args)
|
311
|
+
end
|
312
|
+
|
313
|
+
# Update properties of this object
|
314
|
+
def update!(**args)
|
315
|
+
@description = args[:description] if args.key?(:description)
|
316
|
+
@event_schema_uri = args[:event_schema_uri] if args.key?(:event_schema_uri)
|
317
|
+
@filtering_attributes = args[:filtering_attributes] if args.key?(:filtering_attributes)
|
318
|
+
@type = args[:type] if args.key?(:type)
|
319
|
+
end
|
320
|
+
end
|
321
|
+
|
278
322
|
# Represents a textual expression in the Common Expression Language (CEL) syntax.
|
279
323
|
# CEL is a C-like expression language. The syntax and semantics of CEL are
|
280
324
|
# documented at https://github.com/google/cel-spec. Example (Comparison): title:
|
@@ -329,6 +373,48 @@ module Google
|
|
329
373
|
end
|
330
374
|
end
|
331
375
|
|
376
|
+
# A representation of the FilteringAttribute resource. Filtering attributes are
|
377
|
+
# per event type.
|
378
|
+
class FilteringAttribute
|
379
|
+
include Google::Apis::Core::Hashable
|
380
|
+
|
381
|
+
# Output only. Attribute used for filtering the event type.
|
382
|
+
# Corresponds to the JSON property `attribute`
|
383
|
+
# @return [String]
|
384
|
+
attr_accessor :attribute
|
385
|
+
|
386
|
+
# Output only. Description of the purpose of the attribute.
|
387
|
+
# Corresponds to the JSON property `description`
|
388
|
+
# @return [String]
|
389
|
+
attr_accessor :description
|
390
|
+
|
391
|
+
# Output only. If true, the attribute accepts matching expressions in the
|
392
|
+
# Eventarc PathPattern format.
|
393
|
+
# Corresponds to the JSON property `pathPatternSupported`
|
394
|
+
# @return [Boolean]
|
395
|
+
attr_accessor :path_pattern_supported
|
396
|
+
alias_method :path_pattern_supported?, :path_pattern_supported
|
397
|
+
|
398
|
+
# Output only. If true, the triggers for this provider should always specify a
|
399
|
+
# filter on these attributes. Trigger creation will fail otherwise.
|
400
|
+
# Corresponds to the JSON property `required`
|
401
|
+
# @return [Boolean]
|
402
|
+
attr_accessor :required
|
403
|
+
alias_method :required?, :required
|
404
|
+
|
405
|
+
def initialize(**args)
|
406
|
+
update!(**args)
|
407
|
+
end
|
408
|
+
|
409
|
+
# Update properties of this object
|
410
|
+
def update!(**args)
|
411
|
+
@attribute = args[:attribute] if args.key?(:attribute)
|
412
|
+
@description = args[:description] if args.key?(:description)
|
413
|
+
@path_pattern_supported = args[:path_pattern_supported] if args.key?(:path_pattern_supported)
|
414
|
+
@required = args[:required] if args.key?(:required)
|
415
|
+
end
|
416
|
+
end
|
417
|
+
|
332
418
|
# Represents a GKE destination.
|
333
419
|
class Gke
|
334
420
|
include Google::Apis::Core::Hashable
|
@@ -541,6 +627,38 @@ module Google
|
|
541
627
|
end
|
542
628
|
end
|
543
629
|
|
630
|
+
# The response message for the `ListProviders` method.
|
631
|
+
class ListProvidersResponse
|
632
|
+
include Google::Apis::Core::Hashable
|
633
|
+
|
634
|
+
# A page token that can be sent to ListProviders to request the next page. If
|
635
|
+
# this is empty, then there are no more pages.
|
636
|
+
# Corresponds to the JSON property `nextPageToken`
|
637
|
+
# @return [String]
|
638
|
+
attr_accessor :next_page_token
|
639
|
+
|
640
|
+
# The requested providers, up to the number specified in `page_size`.
|
641
|
+
# Corresponds to the JSON property `providers`
|
642
|
+
# @return [Array<Google::Apis::EventarcV1::Provider>]
|
643
|
+
attr_accessor :providers
|
644
|
+
|
645
|
+
# Unreachable resources, if any.
|
646
|
+
# Corresponds to the JSON property `unreachable`
|
647
|
+
# @return [Array<String>]
|
648
|
+
attr_accessor :unreachable
|
649
|
+
|
650
|
+
def initialize(**args)
|
651
|
+
update!(**args)
|
652
|
+
end
|
653
|
+
|
654
|
+
# Update properties of this object
|
655
|
+
def update!(**args)
|
656
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
657
|
+
@providers = args[:providers] if args.key?(:providers)
|
658
|
+
@unreachable = args[:unreachable] if args.key?(:unreachable)
|
659
|
+
end
|
660
|
+
end
|
661
|
+
|
544
662
|
# The response message for the `ListTriggers` method.
|
545
663
|
class ListTriggersResponse
|
546
664
|
include Google::Apis::Core::Hashable
|
@@ -774,6 +892,38 @@ module Google
|
|
774
892
|
end
|
775
893
|
end
|
776
894
|
|
895
|
+
# A representation of the Provider resource.
|
896
|
+
class Provider
|
897
|
+
include Google::Apis::Core::Hashable
|
898
|
+
|
899
|
+
# Output only. Human friendly name for the Provider. For example "Cloud Storage".
|
900
|
+
# Corresponds to the JSON property `displayName`
|
901
|
+
# @return [String]
|
902
|
+
attr_accessor :display_name
|
903
|
+
|
904
|
+
# Output only. Event types for this provider.
|
905
|
+
# Corresponds to the JSON property `eventTypes`
|
906
|
+
# @return [Array<Google::Apis::EventarcV1::EventType>]
|
907
|
+
attr_accessor :event_types
|
908
|
+
|
909
|
+
# Output only. In `projects/`project`/locations/`location`/providers/`provider-
|
910
|
+
# id`` format.
|
911
|
+
# Corresponds to the JSON property `name`
|
912
|
+
# @return [String]
|
913
|
+
attr_accessor :name
|
914
|
+
|
915
|
+
def initialize(**args)
|
916
|
+
update!(**args)
|
917
|
+
end
|
918
|
+
|
919
|
+
# Update properties of this object
|
920
|
+
def update!(**args)
|
921
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
922
|
+
@event_types = args[:event_types] if args.key?(:event_types)
|
923
|
+
@name = args[:name] if args.key?(:name)
|
924
|
+
end
|
925
|
+
end
|
926
|
+
|
777
927
|
# Represents a Pub/Sub transport.
|
778
928
|
class Pubsub
|
779
929
|
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.
|
19
|
+
GEM_VERSION = "0.18.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 = "
|
25
|
+
REVISION = "20220124"
|
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
|
|
@@ -227,6 +251,17 @@ module Google
|
|
227
251
|
end
|
228
252
|
end
|
229
253
|
|
254
|
+
class EventType
|
255
|
+
# @private
|
256
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
257
|
+
property :description, as: 'description'
|
258
|
+
property :event_schema_uri, as: 'eventSchemaUri'
|
259
|
+
collection :filtering_attributes, as: 'filteringAttributes', class: Google::Apis::EventarcV1::FilteringAttribute, decorator: Google::Apis::EventarcV1::FilteringAttribute::Representation
|
260
|
+
|
261
|
+
property :type, as: 'type'
|
262
|
+
end
|
263
|
+
end
|
264
|
+
|
230
265
|
class Expr
|
231
266
|
# @private
|
232
267
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -237,6 +272,16 @@ module Google
|
|
237
272
|
end
|
238
273
|
end
|
239
274
|
|
275
|
+
class FilteringAttribute
|
276
|
+
# @private
|
277
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
278
|
+
property :attribute, as: 'attribute'
|
279
|
+
property :description, as: 'description'
|
280
|
+
property :path_pattern_supported, as: 'pathPatternSupported'
|
281
|
+
property :required, as: 'required'
|
282
|
+
end
|
283
|
+
end
|
284
|
+
|
240
285
|
class Gke
|
241
286
|
# @private
|
242
287
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -293,6 +338,16 @@ module Google
|
|
293
338
|
end
|
294
339
|
end
|
295
340
|
|
341
|
+
class ListProvidersResponse
|
342
|
+
# @private
|
343
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
344
|
+
property :next_page_token, as: 'nextPageToken'
|
345
|
+
collection :providers, as: 'providers', class: Google::Apis::EventarcV1::Provider, decorator: Google::Apis::EventarcV1::Provider::Representation
|
346
|
+
|
347
|
+
collection :unreachable, as: 'unreachable'
|
348
|
+
end
|
349
|
+
end
|
350
|
+
|
296
351
|
class ListTriggersResponse
|
297
352
|
# @private
|
298
353
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -339,6 +394,16 @@ module Google
|
|
339
394
|
end
|
340
395
|
end
|
341
396
|
|
397
|
+
class Provider
|
398
|
+
# @private
|
399
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
400
|
+
property :display_name, as: 'displayName'
|
401
|
+
collection :event_types, as: 'eventTypes', class: Google::Apis::EventarcV1::EventType, decorator: Google::Apis::EventarcV1::EventType::Representation
|
402
|
+
|
403
|
+
property :name, as: 'name'
|
404
|
+
end
|
405
|
+
end
|
406
|
+
|
342
407
|
class Pubsub
|
343
408
|
# @private
|
344
409
|
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.
|
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.
|
4
|
+
version: 0.18.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-
|
11
|
+
date: 2022-02-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.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-eventarc_v1/v0.18.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: []
|