google-apis-eventarc_v1 0.12.0 → 0.16.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 +3 -3
- data/lib/google/apis/eventarc_v1/classes.rb +143 -84
- data/lib/google/apis/eventarc_v1/gem_version.rb +2 -2
- data/lib/google/apis/eventarc_v1/representations.rb +19 -0
- data/lib/google/apis/eventarc_v1/service.rb +139 -15
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 97804abcca43b87fcbc71a9a0f12a2143f845ff806980d31eacabc8a435806f2
|
4
|
+
data.tar.gz: b531b32a04145c3c3ffa42858f2bd6a634432f1997d8919ccf3d6149643be434
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cb1a66e0a3c8085e49ead74999e0cf68259a55286e582f01635b3888a19525323d01463b2d7796bba9073c9b983d11b579f6d7cb81e68be91b4e904931a851fc
|
7
|
+
data.tar.gz: 1a334f87cf95ee425d8db1af58be566f9aa77a51aebfefd8d70ada069169c13f260c65d3fbb2fa0190b3e5de5240ef15ee2a87653dade125c3266eda0ef43a7d
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,22 @@
|
|
1
1
|
# Release history for google-apis-eventarc_v1
|
2
2
|
|
3
|
+
### v0.16.0 (2022-01-10)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20220104
|
6
|
+
|
7
|
+
### v0.15.0 (2021-12-14)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20211130
|
10
|
+
|
11
|
+
### v0.14.0 (2021-11-13)
|
12
|
+
|
13
|
+
* Regenerated from discovery document revision 20211105
|
14
|
+
|
15
|
+
### v0.13.0 (2021-10-23)
|
16
|
+
|
17
|
+
* Regenerated from discovery document revision 20211015
|
18
|
+
* Unspecified changes
|
19
|
+
|
3
20
|
### v0.12.0 (2021-08-21)
|
4
21
|
|
5
22
|
* Regenerated from discovery document revision 20210813
|
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.
|
@@ -60,8 +60,8 @@ See the class reference docs for information on the methods you can call from a
|
|
60
60
|
|
61
61
|
More detailed descriptions of the Google simple REST clients are available in two documents.
|
62
62
|
|
63
|
-
* The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/
|
64
|
-
* The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/
|
63
|
+
* The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
|
64
|
+
* The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
|
65
65
|
|
66
66
|
(Note: the above documents are written for the simple REST clients in general, and their examples may not reflect the Eventarc service in particular.)
|
67
67
|
|
@@ -93,7 +93,7 @@ module Google
|
|
93
93
|
end
|
94
94
|
end
|
95
95
|
|
96
|
-
# Associates `members
|
96
|
+
# Associates `members`, or principals, with a `role`.
|
97
97
|
class Binding
|
98
98
|
include Google::Apis::Core::Hashable
|
99
99
|
|
@@ -116,7 +116,7 @@ module Google
|
|
116
116
|
# @return [Google::Apis::EventarcV1::Expr]
|
117
117
|
attr_accessor :condition
|
118
118
|
|
119
|
-
# Specifies the
|
119
|
+
# Specifies the principals requesting access for a Cloud Platform resource. `
|
120
120
|
# members` can have the following values: * `allUsers`: A special identifier
|
121
121
|
# that represents anyone who is on the internet; with or without a Google
|
122
122
|
# account. * `allAuthenticatedUsers`: A special identifier that represents
|
@@ -146,8 +146,8 @@ module Google
|
|
146
146
|
# @return [Array<String>]
|
147
147
|
attr_accessor :members
|
148
148
|
|
149
|
-
# Role that is assigned to `members
|
150
|
-
#
|
149
|
+
# Role that is assigned to the list of `members`, or principals. For example, `
|
150
|
+
# roles/viewer`, `roles/editor`, or `roles/owner`.
|
151
151
|
# Corresponds to the JSON property `role`
|
152
152
|
# @return [String]
|
153
153
|
attr_accessor :role
|
@@ -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
|
@@ -208,6 +208,11 @@ module Google
|
|
208
208
|
# @return [Google::Apis::EventarcV1::CloudRun]
|
209
209
|
attr_accessor :cloud_run
|
210
210
|
|
211
|
+
# Represents a GKE destination.
|
212
|
+
# Corresponds to the JSON property `gke`
|
213
|
+
# @return [Google::Apis::EventarcV1::Gke]
|
214
|
+
attr_accessor :gke
|
215
|
+
|
211
216
|
def initialize(**args)
|
212
217
|
update!(**args)
|
213
218
|
end
|
@@ -215,6 +220,7 @@ module Google
|
|
215
220
|
# Update properties of this object
|
216
221
|
def update!(**args)
|
217
222
|
@cloud_run = args[:cloud_run] if args.key?(:cloud_run)
|
223
|
+
@gke = args[:gke] if args.key?(:gke)
|
218
224
|
end
|
219
225
|
end
|
220
226
|
|
@@ -316,6 +322,54 @@ module Google
|
|
316
322
|
end
|
317
323
|
end
|
318
324
|
|
325
|
+
# Represents a GKE destination.
|
326
|
+
class Gke
|
327
|
+
include Google::Apis::Core::Hashable
|
328
|
+
|
329
|
+
# Required. The name of the cluster the GKE service is running in. The cluster
|
330
|
+
# must be running in the same project as the trigger being created.
|
331
|
+
# Corresponds to the JSON property `cluster`
|
332
|
+
# @return [String]
|
333
|
+
attr_accessor :cluster
|
334
|
+
|
335
|
+
# Required. The name of the Google Compute Engine in which the cluster resides,
|
336
|
+
# which can either be compute zone (for example, us-central1-a) for the zonal
|
337
|
+
# clusters or region (for example, us-central1) for regional clusters.
|
338
|
+
# Corresponds to the JSON property `location`
|
339
|
+
# @return [String]
|
340
|
+
attr_accessor :location
|
341
|
+
|
342
|
+
# Required. The namespace the GKE service is running in.
|
343
|
+
# Corresponds to the JSON property `namespace`
|
344
|
+
# @return [String]
|
345
|
+
attr_accessor :namespace
|
346
|
+
|
347
|
+
# Optional. The relative path on the GKE service the events should be sent to.
|
348
|
+
# The value must conform to the definition of a URI path segment (section 3.3 of
|
349
|
+
# RFC2396). Examples: "/route", "route", "route/subroute".
|
350
|
+
# Corresponds to the JSON property `path`
|
351
|
+
# @return [String]
|
352
|
+
attr_accessor :path
|
353
|
+
|
354
|
+
# Required. Name of the GKE service.
|
355
|
+
# Corresponds to the JSON property `service`
|
356
|
+
# @return [String]
|
357
|
+
attr_accessor :service
|
358
|
+
|
359
|
+
def initialize(**args)
|
360
|
+
update!(**args)
|
361
|
+
end
|
362
|
+
|
363
|
+
# Update properties of this object
|
364
|
+
def update!(**args)
|
365
|
+
@cluster = args[:cluster] if args.key?(:cluster)
|
366
|
+
@location = args[:location] if args.key?(:location)
|
367
|
+
@namespace = args[:namespace] if args.key?(:namespace)
|
368
|
+
@path = args[:path] if args.key?(:path)
|
369
|
+
@service = args[:service] if args.key?(:service)
|
370
|
+
end
|
371
|
+
end
|
372
|
+
|
319
373
|
# The request message for Operations.CancelOperation.
|
320
374
|
class GoogleLongrunningCancelOperationRequest
|
321
375
|
include Google::Apis::Core::Hashable
|
@@ -620,31 +674,31 @@ module Google
|
|
620
674
|
|
621
675
|
# An Identity and Access Management (IAM) policy, which specifies access
|
622
676
|
# controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
|
623
|
-
# A `binding` binds one or more `members
|
624
|
-
# user accounts, service accounts, Google groups, and domains (
|
625
|
-
# A `role` is a named list of permissions; each `role` can be
|
626
|
-
# role or a user-created custom role. For some types of Google
|
627
|
-
# a `binding` can also specify a `condition`, which is a
|
628
|
-
# allows access to a resource only if the expression
|
629
|
-
# condition can add constraints based on attributes of
|
630
|
-
# or both. To learn which resources support
|
631
|
-
# see the [IAM documentation](https://cloud.
|
632
|
-
# resource-policies). **JSON example:** ` "
|
633
|
-
# resourcemanager.organizationAdmin", "members": [
|
634
|
-
# group:admins@example.com", "domain:google.com", "
|
635
|
-
# appspot.gserviceaccount.com" ] `, ` "role": "
|
636
|
-
# organizationViewer", "members": [ "user:eve@example.com"
|
637
|
-
# title": "expirable access", "description": "Does not grant
|
638
|
-
# 2020", "expression": "request.time < timestamp('2020-10-01T00:
|
639
|
-
# ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:**
|
640
|
-
# members: - user:mike@example.com - group:admins@example.com -
|
641
|
-
# com - serviceAccount:my-project-id@appspot.gserviceaccount.com
|
642
|
-
# resourcemanager.organizationAdmin - members: - user:eve@example.
|
643
|
-
# roles/resourcemanager.organizationViewer condition: title: expirable
|
644
|
-
# description: Does not grant access after Sep 2020 expression: request.
|
645
|
-
# timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For
|
646
|
-
# description of IAM and its features, see the [IAM documentation](https://
|
647
|
-
# google.com/iam/docs/).
|
677
|
+
# A `binding` binds one or more `members`, or principals, to a single `role`.
|
678
|
+
# Principals can be user accounts, service accounts, Google groups, and domains (
|
679
|
+
# such as G Suite). A `role` is a named list of permissions; each `role` can be
|
680
|
+
# an IAM predefined role or a user-created custom role. For some types of Google
|
681
|
+
# Cloud resources, a `binding` can also specify a `condition`, which is a
|
682
|
+
# logical expression that allows access to a resource only if the expression
|
683
|
+
# evaluates to `true`. A condition can add constraints based on attributes of
|
684
|
+
# the request, the resource, or both. To learn which resources support
|
685
|
+
# conditions in their IAM policies, see the [IAM documentation](https://cloud.
|
686
|
+
# google.com/iam/help/conditions/resource-policies). **JSON example:** ` "
|
687
|
+
# bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": [
|
688
|
+
# "user:mike@example.com", "group:admins@example.com", "domain:google.com", "
|
689
|
+
# serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": "
|
690
|
+
# roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com"
|
691
|
+
# ], "condition": ` "title": "expirable access", "description": "Does not grant
|
692
|
+
# access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:
|
693
|
+
# 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:**
|
694
|
+
# bindings: - members: - user:mike@example.com - group:admins@example.com -
|
695
|
+
# domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com
|
696
|
+
# role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.
|
697
|
+
# com role: roles/resourcemanager.organizationViewer condition: title: expirable
|
698
|
+
# access description: Does not grant access after Sep 2020 expression: request.
|
699
|
+
# time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For
|
700
|
+
# a description of IAM and its features, see the [IAM documentation](https://
|
701
|
+
# cloud.google.com/iam/docs/).
|
648
702
|
class Policy
|
649
703
|
include Google::Apis::Core::Hashable
|
650
704
|
|
@@ -653,9 +707,14 @@ module Google
|
|
653
707
|
# @return [Array<Google::Apis::EventarcV1::AuditConfig>]
|
654
708
|
attr_accessor :audit_configs
|
655
709
|
|
656
|
-
# Associates a list of `members
|
657
|
-
# condition` that determines how and when the `bindings` are applied.
|
658
|
-
# the `bindings` must contain at least one
|
710
|
+
# Associates a list of `members`, or principals, with a `role`. Optionally, may
|
711
|
+
# specify a `condition` that determines how and when the `bindings` are applied.
|
712
|
+
# Each of the `bindings` must contain at least one principal. The `bindings` in
|
713
|
+
# a `Policy` can refer to up to 1,500 principals; up to 250 of these principals
|
714
|
+
# can be Google groups. Each occurrence of a principal counts towards these
|
715
|
+
# limits. For example, if the `bindings` grant 50 different roles to `user:alice@
|
716
|
+
# example.com`, and not to any other principal, then you can add another 1,450
|
717
|
+
# principals to the `bindings` in the `Policy`.
|
659
718
|
# Corresponds to the JSON property `bindings`
|
660
719
|
# @return [Array<Google::Apis::EventarcV1::Binding>]
|
661
720
|
attr_accessor :bindings
|
@@ -713,17 +772,17 @@ module Google
|
|
713
772
|
include Google::Apis::Core::Hashable
|
714
773
|
|
715
774
|
# Output only. The name of the Pub/Sub subscription created and managed by
|
716
|
-
# Eventarc
|
717
|
-
#
|
775
|
+
# Eventarc as a transport for the event delivery. Format: `projects/`PROJECT_ID`/
|
776
|
+
# subscriptions/`SUBSCRIPTION_NAME``.
|
718
777
|
# Corresponds to the JSON property `subscription`
|
719
778
|
# @return [String]
|
720
779
|
attr_accessor :subscription
|
721
780
|
|
722
|
-
# Optional. The name of the Pub/Sub topic created and managed by Eventarc
|
723
|
-
#
|
724
|
-
# TOPIC_NAME``. You
|
725
|
-
# cloud.pubsub.topic.v1.messagePublished
|
726
|
-
#
|
781
|
+
# Optional. The name of the Pub/Sub topic created and managed by Eventarc as a
|
782
|
+
# transport for the event delivery. Format: `projects/`PROJECT_ID`/topics/`
|
783
|
+
# TOPIC_NAME``. You can set an existing topic for triggers of the type `google.
|
784
|
+
# cloud.pubsub.topic.v1.messagePublished`. The topic you provide here is not
|
785
|
+
# deleted by Eventarc at trigger deletion.
|
727
786
|
# Corresponds to the JSON property `topic`
|
728
787
|
# @return [String]
|
729
788
|
attr_accessor :topic
|
@@ -745,31 +804,31 @@ module Google
|
|
745
804
|
|
746
805
|
# An Identity and Access Management (IAM) policy, which specifies access
|
747
806
|
# controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
|
748
|
-
# A `binding` binds one or more `members
|
749
|
-
# user accounts, service accounts, Google groups, and domains (
|
750
|
-
# A `role` is a named list of permissions; each `role` can be
|
751
|
-
# role or a user-created custom role. For some types of Google
|
752
|
-
# a `binding` can also specify a `condition`, which is a
|
753
|
-
# allows access to a resource only if the expression
|
754
|
-
# condition can add constraints based on attributes of
|
755
|
-
# or both. To learn which resources support
|
756
|
-
# see the [IAM documentation](https://cloud.
|
757
|
-
# resource-policies). **JSON example:** ` "
|
758
|
-
# resourcemanager.organizationAdmin", "members": [
|
759
|
-
# group:admins@example.com", "domain:google.com", "
|
760
|
-
# appspot.gserviceaccount.com" ] `, ` "role": "
|
761
|
-
# organizationViewer", "members": [ "user:eve@example.com"
|
762
|
-
# title": "expirable access", "description": "Does not grant
|
763
|
-
# 2020", "expression": "request.time < timestamp('2020-10-01T00:
|
764
|
-
# ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:**
|
765
|
-
# members: - user:mike@example.com - group:admins@example.com -
|
766
|
-
# com - serviceAccount:my-project-id@appspot.gserviceaccount.com
|
767
|
-
# resourcemanager.organizationAdmin - members: - user:eve@example.
|
768
|
-
# roles/resourcemanager.organizationViewer condition: title: expirable
|
769
|
-
# description: Does not grant access after Sep 2020 expression: request.
|
770
|
-
# timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For
|
771
|
-
# description of IAM and its features, see the [IAM documentation](https://
|
772
|
-
# google.com/iam/docs/).
|
807
|
+
# A `binding` binds one or more `members`, or principals, to a single `role`.
|
808
|
+
# Principals can be user accounts, service accounts, Google groups, and domains (
|
809
|
+
# such as G Suite). A `role` is a named list of permissions; each `role` can be
|
810
|
+
# an IAM predefined role or a user-created custom role. For some types of Google
|
811
|
+
# Cloud resources, a `binding` can also specify a `condition`, which is a
|
812
|
+
# logical expression that allows access to a resource only if the expression
|
813
|
+
# evaluates to `true`. A condition can add constraints based on attributes of
|
814
|
+
# the request, the resource, or both. To learn which resources support
|
815
|
+
# conditions in their IAM policies, see the [IAM documentation](https://cloud.
|
816
|
+
# google.com/iam/help/conditions/resource-policies). **JSON example:** ` "
|
817
|
+
# bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": [
|
818
|
+
# "user:mike@example.com", "group:admins@example.com", "domain:google.com", "
|
819
|
+
# serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": "
|
820
|
+
# roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com"
|
821
|
+
# ], "condition": ` "title": "expirable access", "description": "Does not grant
|
822
|
+
# access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:
|
823
|
+
# 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:**
|
824
|
+
# bindings: - members: - user:mike@example.com - group:admins@example.com -
|
825
|
+
# domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com
|
826
|
+
# role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.
|
827
|
+
# com role: roles/resourcemanager.organizationViewer condition: title: expirable
|
828
|
+
# access description: Does not grant access after Sep 2020 expression: request.
|
829
|
+
# time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For
|
830
|
+
# a description of IAM and its features, see the [IAM documentation](https://
|
831
|
+
# cloud.google.com/iam/docs/).
|
773
832
|
# Corresponds to the JSON property `policy`
|
774
833
|
# @return [Google::Apis::EventarcV1::Policy]
|
775
834
|
attr_accessor :policy
|
@@ -832,8 +891,8 @@ module Google
|
|
832
891
|
end
|
833
892
|
end
|
834
893
|
|
835
|
-
# Represents the transport intermediaries created for the trigger
|
836
|
-
#
|
894
|
+
# Represents the transport intermediaries created for the trigger to deliver
|
895
|
+
# events.
|
837
896
|
class Transport
|
838
897
|
include Google::Apis::Core::Hashable
|
839
898
|
|
@@ -867,14 +926,14 @@ module Google
|
|
867
926
|
attr_accessor :destination
|
868
927
|
|
869
928
|
# Output only. This checksum is computed by the server based on the value of
|
870
|
-
# other fields, and
|
871
|
-
# an up-to-date value before proceeding.
|
929
|
+
# other fields, and might be sent only on create requests to ensure that the
|
930
|
+
# client has an up-to-date value before proceeding.
|
872
931
|
# Corresponds to the JSON property `etag`
|
873
932
|
# @return [String]
|
874
933
|
attr_accessor :etag
|
875
934
|
|
876
935
|
# Required. null The list of filters that applies to event attributes. Only
|
877
|
-
# events that match all the provided filters
|
936
|
+
# events that match all the provided filters are sent to the destination.
|
878
937
|
# Corresponds to the JSON property `eventFilters`
|
879
938
|
# @return [Array<Google::Apis::EventarcV1::EventFilter>]
|
880
939
|
attr_accessor :event_filters
|
@@ -886,7 +945,7 @@ module Google
|
|
886
945
|
attr_accessor :labels
|
887
946
|
|
888
947
|
# Required. The resource name of the trigger. Must be unique within the location
|
889
|
-
#
|
948
|
+
# of the project and must be in `projects/`project`/locations/`location`/
|
890
949
|
# triggers/`trigger`` format.
|
891
950
|
# Corresponds to the JSON property `name`
|
892
951
|
# @return [String]
|
@@ -894,25 +953,25 @@ module Google
|
|
894
953
|
|
895
954
|
# Optional. The IAM service account email associated with the trigger. The
|
896
955
|
# service account represents the identity of the trigger. The principal who
|
897
|
-
# calls this API must have `iam.serviceAccounts.actAs` permission in the
|
898
|
-
# account. See https://cloud.google.com/iam/docs/understanding-service-
|
899
|
-
# hl=en#sa_common for more information. For Cloud Run destinations,
|
900
|
-
# account is used to generate identity tokens when invoking the
|
901
|
-
# https://cloud.google.com/run/docs/triggering/pubsub-push#create-
|
902
|
-
# account for information on how to invoke authenticated Cloud Run
|
903
|
-
#
|
904
|
-
# roles/eventarc.eventReceiver` IAM role.
|
956
|
+
# calls this API must have the `iam.serviceAccounts.actAs` permission in the
|
957
|
+
# service account. See https://cloud.google.com/iam/docs/understanding-service-
|
958
|
+
# accounts?hl=en#sa_common for more information. For Cloud Run destinations,
|
959
|
+
# this service account is used to generate identity tokens when invoking the
|
960
|
+
# service. See https://cloud.google.com/run/docs/triggering/pubsub-push#create-
|
961
|
+
# service-account for information on how to invoke authenticated Cloud Run
|
962
|
+
# services. To create Audit Log triggers, the service account should also have
|
963
|
+
# the `roles/eventarc.eventReceiver` IAM role.
|
905
964
|
# Corresponds to the JSON property `serviceAccount`
|
906
965
|
# @return [String]
|
907
966
|
attr_accessor :service_account
|
908
967
|
|
909
|
-
# Represents the transport intermediaries created for the trigger
|
910
|
-
#
|
968
|
+
# Represents the transport intermediaries created for the trigger to deliver
|
969
|
+
# events.
|
911
970
|
# Corresponds to the JSON property `transport`
|
912
971
|
# @return [Google::Apis::EventarcV1::Transport]
|
913
972
|
attr_accessor :transport
|
914
973
|
|
915
|
-
# Output only. Server
|
974
|
+
# Output only. Server-assigned unique identifier for the trigger. The value is a
|
916
975
|
# UUID4 string and guaranteed to remain unchanged until the resource is deleted.
|
917
976
|
# Corresponds to the JSON property `uid`
|
918
977
|
# @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.16.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.4.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20220104"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -70,6 +70,12 @@ module Google
|
|
70
70
|
include Google::Apis::Core::JsonObjectSupport
|
71
71
|
end
|
72
72
|
|
73
|
+
class Gke
|
74
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
75
|
+
|
76
|
+
include Google::Apis::Core::JsonObjectSupport
|
77
|
+
end
|
78
|
+
|
73
79
|
class GoogleLongrunningCancelOperationRequest
|
74
80
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
75
81
|
|
@@ -201,6 +207,8 @@ module Google
|
|
201
207
|
class Representation < Google::Apis::Core::JsonRepresentation
|
202
208
|
property :cloud_run, as: 'cloudRun', class: Google::Apis::EventarcV1::CloudRun, decorator: Google::Apis::EventarcV1::CloudRun::Representation
|
203
209
|
|
210
|
+
property :gke, as: 'gke', class: Google::Apis::EventarcV1::Gke, decorator: Google::Apis::EventarcV1::Gke::Representation
|
211
|
+
|
204
212
|
end
|
205
213
|
end
|
206
214
|
|
@@ -228,6 +236,17 @@ module Google
|
|
228
236
|
end
|
229
237
|
end
|
230
238
|
|
239
|
+
class Gke
|
240
|
+
# @private
|
241
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
242
|
+
property :cluster, as: 'cluster'
|
243
|
+
property :location, as: 'location'
|
244
|
+
property :namespace, as: 'namespace'
|
245
|
+
property :path, as: 'path'
|
246
|
+
property :service, as: 'service'
|
247
|
+
end
|
248
|
+
end
|
249
|
+
|
231
250
|
class GoogleLongrunningCancelOperationRequest
|
232
251
|
# @private
|
233
252
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -128,13 +128,134 @@ module Google
|
|
128
128
|
# REQUIRED: The resource for which the policy is being requested. See the
|
129
129
|
# operation documentation for the appropriate value for this field.
|
130
130
|
# @param [Fixnum] options_requested_policy_version
|
131
|
-
# Optional. The policy
|
132
|
-
# 3. Requests specifying an invalid value will be
|
133
|
-
# policies with any conditional bindings must
|
134
|
-
#
|
135
|
-
# field unset.
|
136
|
-
#
|
137
|
-
#
|
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
|
+
|
243
|
+
# Gets the access control policy for a resource. Returns an empty policy if the
|
244
|
+
# resource exists and does not have a policy set.
|
245
|
+
# @param [String] resource
|
246
|
+
# REQUIRED: The resource for which the policy is being requested. See the
|
247
|
+
# operation documentation for the appropriate value for this field.
|
248
|
+
# @param [Fixnum] options_requested_policy_version
|
249
|
+
# Optional. The maximum policy version that will be used to format the policy.
|
250
|
+
# Valid values are 0, 1, and 3. Requests specifying an invalid value will be
|
251
|
+
# rejected. Requests for policies with any conditional role bindings must
|
252
|
+
# specify version 3. Policies with no conditional role bindings may specify any
|
253
|
+
# valid value or leave the field unset. The policy in the response might use the
|
254
|
+
# policy version that you specified, or it might use a lower policy version. For
|
255
|
+
# example, if you specify version 3, but the policy has no conditional role
|
256
|
+
# bindings, the response uses version 1. To learn which resources support
|
257
|
+
# conditions in their IAM policies, see the [IAM documentation](https://cloud.
|
258
|
+
# google.com/iam/help/conditions/resource-policies).
|
138
259
|
# @param [String] fields
|
139
260
|
# Selector specifying which fields to include in a partial response.
|
140
261
|
# @param [String] quota_user
|
@@ -505,13 +626,16 @@ module Google
|
|
505
626
|
# REQUIRED: The resource for which the policy is being requested. See the
|
506
627
|
# operation documentation for the appropriate value for this field.
|
507
628
|
# @param [Fixnum] options_requested_policy_version
|
508
|
-
# Optional. The policy
|
509
|
-
# 3. Requests specifying an invalid value will be
|
510
|
-
# policies with any conditional bindings must
|
511
|
-
#
|
512
|
-
# field unset.
|
513
|
-
#
|
514
|
-
#
|
629
|
+
# Optional. The maximum policy version that will be used to format the policy.
|
630
|
+
# Valid values are 0, 1, and 3. Requests specifying an invalid value will be
|
631
|
+
# rejected. Requests for policies with any conditional role bindings must
|
632
|
+
# specify version 3. Policies with no conditional role bindings may specify any
|
633
|
+
# valid value or leave the field unset. The policy in the response might use the
|
634
|
+
# policy version that you specified, or it might use a lower policy version. For
|
635
|
+
# example, if you specify version 3, but the policy has no conditional role
|
636
|
+
# bindings, the response uses version 1. To learn which resources support
|
637
|
+
# conditions in their IAM policies, see the [IAM documentation](https://cloud.
|
638
|
+
# google.com/iam/help/conditions/resource-policies).
|
515
639
|
# @param [String] fields
|
516
640
|
# Selector specifying which fields to include in a partial response.
|
517
641
|
# @param [String] quota_user
|
@@ -589,7 +713,7 @@ module Google
|
|
589
713
|
# Update a single trigger.
|
590
714
|
# @param [String] name
|
591
715
|
# Required. The resource name of the trigger. Must be unique within the location
|
592
|
-
#
|
716
|
+
# of the project and must be in `projects/`project`/locations/`location`/
|
593
717
|
# triggers/`trigger`` format.
|
594
718
|
# @param [Google::Apis::EventarcV1::Trigger] trigger_object
|
595
719
|
# @param [Boolean] allow_missing
|
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.16.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-01-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -57,9 +57,9 @@ licenses:
|
|
57
57
|
- Apache-2.0
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
|
-
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-eventarc_v1/v0.
|
62
|
-
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/
|
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.16.0
|
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: []
|
65
65
|
require_paths:
|
@@ -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
|