google-apis-eventarc_v1 0.15.0 → 0.16.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7a108c3adb4696c7cda83d08298344bb017065fa3249fb3cf7861dd272bc28cc
4
- data.tar.gz: 98bea2cec572a6429598ca4d756b6cc51f7d513601354ee305ca204e3a5f7fc2
3
+ metadata.gz: 97804abcca43b87fcbc71a9a0f12a2143f845ff806980d31eacabc8a435806f2
4
+ data.tar.gz: b531b32a04145c3c3ffa42858f2bd6a634432f1997d8919ccf3d6149643be434
5
5
  SHA512:
6
- metadata.gz: f1898f4c3fe15ac800b09f3e1adf0d0d297d8bc4f48ac845bfec86b9d527fb296694d228db3d80b8889bca6fd3b051d101b620f33a2d459de5c5c2f5346452fb
7
- data.tar.gz: a44a2b100806629463377dfada4a2e3cd28eecbd2ad8b1323ab203bb8dfa54a3265e39a0efaeb251f1f8195ffc7f4fc705f1bd7a40da5ab4a2f704d54f5b0798
6
+ metadata.gz: cb1a66e0a3c8085e49ead74999e0cf68259a55286e582f01635b3888a19525323d01463b2d7796bba9073c9b983d11b579f6d7cb81e68be91b4e904931a851fc
7
+ data.tar.gz: 1a334f87cf95ee425d8db1af58be566f9aa77a51aebfefd8d70ada069169c13f260c65d3fbb2fa0190b3e5de5240ef15ee2a87653dade125c3266eda0ef43a7d
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
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
+
3
7
  ### v0.15.0 (2021-12-14)
4
8
 
5
9
  * Regenerated from discovery document revision 20211130
@@ -169,8 +169,8 @@ module Google
169
169
  include Google::Apis::Core::Hashable
170
170
 
171
171
  # Optional. The relative path on the Cloud Run service the events should be sent
172
- # to. The value must conform to the definition of URI path segment (section 3.3
173
- # of RFC2396). Examples: "/route", "route", "route/subroute".
172
+ # to. The value must conform to the definition of a URI path segment (section 3.
173
+ # 3 of RFC2396). Examples: "/route", "route", "route/subroute".
174
174
  # Corresponds to the JSON property `path`
175
175
  # @return [String]
176
176
  attr_accessor :path
@@ -182,7 +182,7 @@ module Google
182
182
 
183
183
  # Required. The name of the Cloud Run service being addressed. See https://cloud.
184
184
  # google.com/run/docs/reference/rest/v1/namespaces.services. Only services
185
- # located in the same project of the trigger object can be addressed.
185
+ # located in the same project as the trigger object can be addressed.
186
186
  # Corresponds to the JSON property `service`
187
187
  # @return [String]
188
188
  attr_accessor :service
@@ -333,8 +333,8 @@ module Google
333
333
  attr_accessor :cluster
334
334
 
335
335
  # Required. The name of the Google Compute Engine in which the cluster resides,
336
- # which can either be compute zone (e.g. us-central1-a) for the zonal clusters
337
- # or region (e.g. us-central1) for regional clusters.
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
338
  # Corresponds to the JSON property `location`
339
339
  # @return [String]
340
340
  attr_accessor :location
@@ -345,7 +345,7 @@ module Google
345
345
  attr_accessor :namespace
346
346
 
347
347
  # 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
348
+ # The value must conform to the definition of a URI path segment (section 3.3 of
349
349
  # RFC2396). Examples: "/route", "route", "route/subroute".
350
350
  # Corresponds to the JSON property `path`
351
351
  # @return [String]
@@ -772,17 +772,17 @@ module Google
772
772
  include Google::Apis::Core::Hashable
773
773
 
774
774
  # Output only. The name of the Pub/Sub subscription created and managed by
775
- # Eventarc system as a transport for the event delivery. Format: `projects/`
776
- # PROJECT_ID`/subscriptions/`SUBSCRIPTION_NAME``.
775
+ # Eventarc as a transport for the event delivery. Format: `projects/`PROJECT_ID`/
776
+ # subscriptions/`SUBSCRIPTION_NAME``.
777
777
  # Corresponds to the JSON property `subscription`
778
778
  # @return [String]
779
779
  attr_accessor :subscription
780
780
 
781
- # Optional. The name of the Pub/Sub topic created and managed by Eventarc system
782
- # as a transport for the event delivery. Format: `projects/`PROJECT_ID`/topics/`
783
- # TOPIC_NAME``. You may set an existing topic for triggers of the type `google.
784
- # cloud.pubsub.topic.v1.messagePublished` only. The topic you provide here will
785
- # not be deleted by Eventarc at trigger deletion.
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.
786
786
  # Corresponds to the JSON property `topic`
787
787
  # @return [String]
788
788
  attr_accessor :topic
@@ -891,8 +891,8 @@ module Google
891
891
  end
892
892
  end
893
893
 
894
- # Represents the transport intermediaries created for the trigger in order to
895
- # deliver events.
894
+ # Represents the transport intermediaries created for the trigger to deliver
895
+ # events.
896
896
  class Transport
897
897
  include Google::Apis::Core::Hashable
898
898
 
@@ -926,14 +926,14 @@ module Google
926
926
  attr_accessor :destination
927
927
 
928
928
  # Output only. This checksum is computed by the server based on the value of
929
- # other fields, and may be sent only on create requests to ensure the client has
930
- # an up-to-date value before proceeding.
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.
931
931
  # Corresponds to the JSON property `etag`
932
932
  # @return [String]
933
933
  attr_accessor :etag
934
934
 
935
935
  # Required. null The list of filters that applies to event attributes. Only
936
- # events that match all the provided filters will be sent to the destination.
936
+ # events that match all the provided filters are sent to the destination.
937
937
  # Corresponds to the JSON property `eventFilters`
938
938
  # @return [Array<Google::Apis::EventarcV1::EventFilter>]
939
939
  attr_accessor :event_filters
@@ -945,7 +945,7 @@ module Google
945
945
  attr_accessor :labels
946
946
 
947
947
  # Required. The resource name of the trigger. Must be unique within the location
948
- # on the project and must be in `projects/`project`/locations/`location`/
948
+ # of the project and must be in `projects/`project`/locations/`location`/
949
949
  # triggers/`trigger`` format.
950
950
  # Corresponds to the JSON property `name`
951
951
  # @return [String]
@@ -953,25 +953,25 @@ module Google
953
953
 
954
954
  # Optional. The IAM service account email associated with the trigger. The
955
955
  # service account represents the identity of the trigger. The principal who
956
- # calls this API must have `iam.serviceAccounts.actAs` permission in the service
957
- # account. See https://cloud.google.com/iam/docs/understanding-service-accounts?
958
- # hl=en#sa_common for more information. For Cloud Run destinations, this service
959
- # account is used to generate identity tokens when invoking the service. See
960
- # https://cloud.google.com/run/docs/triggering/pubsub-push#create-service-
961
- # account for information on how to invoke authenticated Cloud Run services. In
962
- # order to create Audit Log triggers, the service account should also have `
963
- # roles/eventarc.eventReceiver` IAM role.
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.
964
964
  # Corresponds to the JSON property `serviceAccount`
965
965
  # @return [String]
966
966
  attr_accessor :service_account
967
967
 
968
- # Represents the transport intermediaries created for the trigger in order to
969
- # deliver events.
968
+ # Represents the transport intermediaries created for the trigger to deliver
969
+ # events.
970
970
  # Corresponds to the JSON property `transport`
971
971
  # @return [Google::Apis::EventarcV1::Transport]
972
972
  attr_accessor :transport
973
973
 
974
- # Output only. Server assigned unique identifier for the trigger. The value is a
974
+ # Output only. Server-assigned unique identifier for the trigger. The value is a
975
975
  # UUID4 string and guaranteed to remain unchanged until the resource is deleted.
976
976
  # Corresponds to the JSON property `uid`
977
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.15.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 = "20211130"
25
+ REVISION = "20220104"
26
26
  end
27
27
  end
28
28
  end
@@ -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
@@ -595,7 +713,7 @@ module Google
595
713
  # Update a single trigger.
596
714
  # @param [String] name
597
715
  # Required. The resource name of the trigger. Must be unique within the location
598
- # on the project and must be in `projects/`project`/locations/`location`/
716
+ # of the project and must be in `projects/`project`/locations/`location`/
599
717
  # triggers/`trigger`` format.
600
718
  # @param [Google::Apis::EventarcV1::Trigger] trigger_object
601
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.15.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: 2022-01-10 00:00:00.000000000 Z
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
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-eventarc_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-eventarc_v1/v0.15.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-eventarc_v1/v0.16.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-eventarc_v1
63
63
  post_install_message:
64
64
  rdoc_options: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.3.4
78
+ rubygems_version: 3.3.5
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Eventarc API V1