google-apis-eventarc_v1 0.14.0 → 0.18.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +17 -0
- data/OVERVIEW.md +1 -1
- data/lib/google/apis/eventarc_v1/classes.rb +188 -31
- data/lib/google/apis/eventarc_v1/gem_version.rb +3 -3
- data/lib/google/apis/eventarc_v1/representations.rb +66 -0
- data/lib/google/apis/eventarc_v1/service.rb +209 -14
- metadata +4 -4
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
@@ -1,5 +1,22 @@
|
|
1
1
|
# Release history for google-apis-eventarc_v1
|
2
2
|
|
3
|
+
### v0.18.0 (2022-02-03)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20220124
|
6
|
+
|
7
|
+
### v0.17.0 (2022-01-17)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20220111
|
10
|
+
* Regenerated using generator version 0.4.1
|
11
|
+
|
12
|
+
### v0.16.0 (2022-01-10)
|
13
|
+
|
14
|
+
* Regenerated from discovery document revision 20220104
|
15
|
+
|
16
|
+
### v0.15.0 (2021-12-14)
|
17
|
+
|
18
|
+
* Regenerated from discovery document revision 20211130
|
19
|
+
|
3
20
|
### v0.14.0 (2021-11-13)
|
4
21
|
|
5
22
|
* Regenerated from discovery document revision 20211105
|
data/OVERVIEW.md
CHANGED
@@ -51,7 +51,7 @@ require "google/apis/eventarc_v1"
|
|
51
51
|
client = Google::Apis::EventarcV1::EventarcService.new
|
52
52
|
|
53
53
|
# Authenticate calls
|
54
|
-
client.
|
54
|
+
client.authorization = # ... use the googleauth gem to create credentials
|
55
55
|
```
|
56
56
|
|
57
57
|
See the class reference docs for information on the methods you can call from a client.
|
@@ -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.
|
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
|
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
|
@@ -268,6 +275,50 @@ module Google
|
|
268
275
|
end
|
269
276
|
end
|
270
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
|
+
|
271
322
|
# Represents a textual expression in the Common Expression Language (CEL) syntax.
|
272
323
|
# CEL is a C-like expression language. The syntax and semantics of CEL are
|
273
324
|
# documented at https://github.com/google/cel-spec. Example (Comparison): title:
|
@@ -322,6 +373,48 @@ module Google
|
|
322
373
|
end
|
323
374
|
end
|
324
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
|
+
|
325
418
|
# Represents a GKE destination.
|
326
419
|
class Gke
|
327
420
|
include Google::Apis::Core::Hashable
|
@@ -333,8 +426,8 @@ module Google
|
|
333
426
|
attr_accessor :cluster
|
334
427
|
|
335
428
|
# Required. The name of the Google Compute Engine in which the cluster resides,
|
336
|
-
# which can either be compute zone (
|
337
|
-
# or region (
|
429
|
+
# which can either be compute zone (for example, us-central1-a) for the zonal
|
430
|
+
# clusters or region (for example, us-central1) for regional clusters.
|
338
431
|
# Corresponds to the JSON property `location`
|
339
432
|
# @return [String]
|
340
433
|
attr_accessor :location
|
@@ -345,7 +438,7 @@ module Google
|
|
345
438
|
attr_accessor :namespace
|
346
439
|
|
347
440
|
# 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
|
441
|
+
# The value must conform to the definition of a URI path segment (section 3.3 of
|
349
442
|
# RFC2396). Examples: "/route", "route", "route/subroute".
|
350
443
|
# Corresponds to the JSON property `path`
|
351
444
|
# @return [String]
|
@@ -534,7 +627,39 @@ module Google
|
|
534
627
|
end
|
535
628
|
end
|
536
629
|
|
537
|
-
# The response message for the
|
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
|
+
|
662
|
+
# The response message for the `ListTriggers` method.
|
538
663
|
class ListTriggersResponse
|
539
664
|
include Google::Apis::Core::Hashable
|
540
665
|
|
@@ -767,22 +892,54 @@ module Google
|
|
767
892
|
end
|
768
893
|
end
|
769
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
|
+
|
770
927
|
# Represents a Pub/Sub transport.
|
771
928
|
class Pubsub
|
772
929
|
include Google::Apis::Core::Hashable
|
773
930
|
|
774
931
|
# Output only. The name of the Pub/Sub subscription created and managed by
|
775
|
-
# Eventarc
|
776
|
-
#
|
932
|
+
# Eventarc as a transport for the event delivery. Format: `projects/`PROJECT_ID`/
|
933
|
+
# subscriptions/`SUBSCRIPTION_NAME``.
|
777
934
|
# Corresponds to the JSON property `subscription`
|
778
935
|
# @return [String]
|
779
936
|
attr_accessor :subscription
|
780
937
|
|
781
|
-
# Optional. The name of the Pub/Sub topic created and managed by Eventarc
|
782
|
-
#
|
783
|
-
# TOPIC_NAME``. You
|
784
|
-
# cloud.pubsub.topic.v1.messagePublished
|
785
|
-
#
|
938
|
+
# Optional. The name of the Pub/Sub topic created and managed by Eventarc as a
|
939
|
+
# transport for the event delivery. Format: `projects/`PROJECT_ID`/topics/`
|
940
|
+
# TOPIC_NAME``. You can set an existing topic for triggers of the type `google.
|
941
|
+
# cloud.pubsub.topic.v1.messagePublished`. The topic you provide here is not
|
942
|
+
# deleted by Eventarc at trigger deletion.
|
786
943
|
# Corresponds to the JSON property `topic`
|
787
944
|
# @return [String]
|
788
945
|
attr_accessor :topic
|
@@ -891,8 +1048,8 @@ module Google
|
|
891
1048
|
end
|
892
1049
|
end
|
893
1050
|
|
894
|
-
# Represents the transport intermediaries created for the trigger
|
895
|
-
#
|
1051
|
+
# Represents the transport intermediaries created for the trigger to deliver
|
1052
|
+
# events.
|
896
1053
|
class Transport
|
897
1054
|
include Google::Apis::Core::Hashable
|
898
1055
|
|
@@ -926,14 +1083,14 @@ module Google
|
|
926
1083
|
attr_accessor :destination
|
927
1084
|
|
928
1085
|
# Output only. This checksum is computed by the server based on the value of
|
929
|
-
# other fields, and
|
930
|
-
# an up-to-date value before proceeding.
|
1086
|
+
# other fields, and might be sent only on create requests to ensure that the
|
1087
|
+
# client has an up-to-date value before proceeding.
|
931
1088
|
# Corresponds to the JSON property `etag`
|
932
1089
|
# @return [String]
|
933
1090
|
attr_accessor :etag
|
934
1091
|
|
935
1092
|
# Required. null The list of filters that applies to event attributes. Only
|
936
|
-
# events that match all the provided filters
|
1093
|
+
# events that match all the provided filters are sent to the destination.
|
937
1094
|
# Corresponds to the JSON property `eventFilters`
|
938
1095
|
# @return [Array<Google::Apis::EventarcV1::EventFilter>]
|
939
1096
|
attr_accessor :event_filters
|
@@ -945,7 +1102,7 @@ module Google
|
|
945
1102
|
attr_accessor :labels
|
946
1103
|
|
947
1104
|
# Required. The resource name of the trigger. Must be unique within the location
|
948
|
-
#
|
1105
|
+
# of the project and must be in `projects/`project`/locations/`location`/
|
949
1106
|
# triggers/`trigger`` format.
|
950
1107
|
# Corresponds to the JSON property `name`
|
951
1108
|
# @return [String]
|
@@ -953,25 +1110,25 @@ module Google
|
|
953
1110
|
|
954
1111
|
# Optional. The IAM service account email associated with the trigger. The
|
955
1112
|
# service account represents the identity of the trigger. The principal who
|
956
|
-
# calls this API must have `iam.serviceAccounts.actAs` permission in the
|
957
|
-
# account. See https://cloud.google.com/iam/docs/understanding-service-
|
958
|
-
# hl=en#sa_common for more information. For Cloud Run destinations,
|
959
|
-
# account is used to generate identity tokens when invoking the
|
960
|
-
# https://cloud.google.com/run/docs/triggering/pubsub-push#create-
|
961
|
-
# account for information on how to invoke authenticated Cloud Run
|
962
|
-
#
|
963
|
-
# roles/eventarc.eventReceiver` IAM role.
|
1113
|
+
# calls this API must have the `iam.serviceAccounts.actAs` permission in the
|
1114
|
+
# service account. See https://cloud.google.com/iam/docs/understanding-service-
|
1115
|
+
# accounts?hl=en#sa_common for more information. For Cloud Run destinations,
|
1116
|
+
# this service account is used to generate identity tokens when invoking the
|
1117
|
+
# service. See https://cloud.google.com/run/docs/triggering/pubsub-push#create-
|
1118
|
+
# service-account for information on how to invoke authenticated Cloud Run
|
1119
|
+
# services. To create Audit Log triggers, the service account should also have
|
1120
|
+
# the `roles/eventarc.eventReceiver` IAM role.
|
964
1121
|
# Corresponds to the JSON property `serviceAccount`
|
965
1122
|
# @return [String]
|
966
1123
|
attr_accessor :service_account
|
967
1124
|
|
968
|
-
# Represents the transport intermediaries created for the trigger
|
969
|
-
#
|
1125
|
+
# Represents the transport intermediaries created for the trigger to deliver
|
1126
|
+
# events.
|
970
1127
|
# Corresponds to the JSON property `transport`
|
971
1128
|
# @return [Google::Apis::EventarcV1::Transport]
|
972
1129
|
attr_accessor :transport
|
973
1130
|
|
974
|
-
# Output only. Server
|
1131
|
+
# Output only. Server-assigned unique identifier for the trigger. The value is a
|
975
1132
|
# UUID4 string and guaranteed to remain unchanged until the resource is deleted.
|
976
1133
|
# Corresponds to the JSON property `uid`
|
977
1134
|
# @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.
|
19
|
+
GEM_VERSION = "0.18.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.4.
|
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
|
|
@@ -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
|
@@ -226,6 +251,17 @@ module Google
|
|
226
251
|
end
|
227
252
|
end
|
228
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
|
+
|
229
265
|
class Expr
|
230
266
|
# @private
|
231
267
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -236,6 +272,16 @@ module Google
|
|
236
272
|
end
|
237
273
|
end
|
238
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
|
+
|
239
285
|
class Gke
|
240
286
|
# @private
|
241
287
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -292,6 +338,16 @@ module Google
|
|
292
338
|
end
|
293
339
|
end
|
294
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
|
+
|
295
351
|
class ListTriggersResponse
|
296
352
|
# @private
|
297
353
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -338,6 +394,16 @@ module Google
|
|
338
394
|
end
|
339
395
|
end
|
340
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
|
+
|
341
407
|
class Pubsub
|
342
408
|
# @private
|
343
409
|
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
|
-
#
|
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
|
-
#
|
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
|
554
|
-
# list of fields. The default sorting
|
555
|
-
# order for a field, append a `
|
556
|
-
#
|
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
|
-
#
|
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
|
606
|
-
#
|
607
|
-
#
|
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
|
-
#
|
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.
|
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:
|
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: []
|
@@ -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.
|
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
|