google-apis-pubsub_v1 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 68ea4f04d659dc05ccbad6c6a277da0af285f7b751bf48825a24ca3ef3a042ad
4
- data.tar.gz: 13c50dd1967eb63f3413dcb6787a9b779670feaec46292f63f6085d04d153da6
3
+ metadata.gz: e798b351b0b5a3e53e4be9a3b0b3ab87becb4484b32d702bbb513afd206057ae
4
+ data.tar.gz: e9bb2a6000e7d8a9cec5b5fe73fc13997f2783f4f8d68b8018e6baac75706f09
5
5
  SHA512:
6
- metadata.gz: e55a08d0d35b902345e682e680e3f223c585eb27264b4319ddfcc752caf93798b757b7f437d0bdaeae442169605a4b6161ec42eb38cfeabf7c8f611913df4c1d
7
- data.tar.gz: b6bd2d0123720cb53d8683516d972526386701db74dc339dbaaf49f8849c060282181f0fbcc3eb2b1c01dafb8fba4d3f79b78404539a3977b28a8fb86861cfc8
6
+ metadata.gz: aff83bf4800bafe25495b58bbf309cb12e3b85592b936767e5cf3aef8f015b29de0d510dd2db913996f68c15d4ab2b6bbb3c2f3c665b12275dd20835aabf32e3
7
+ data.tar.gz: af5b848db78cdf0d857d3ea30daf0cfb56ddfc4837a30840c764a01f8f6a87456c06f2ecfbbecb39a9fc2b39ac418bc0315fbb42d4ca94ef3adaab7e0107d9fc
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release history for google-apis-pubsub_v1
2
2
 
3
+ ### v0.3.0 (2021-03-05)
4
+
5
+ * Regenerated from discovery document revision 20210225
6
+ * Unspecified changes
7
+
3
8
  ### v0.2.0 (2021-02-19)
4
9
 
5
10
  * Regenerated from discovery document revision 20210208
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module PubsubV1
18
18
  # Version of the google-apis-pubsub_v1 gem
19
- GEM_VERSION = "0.2.0"
19
+ GEM_VERSION = "0.3.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.1.2"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210208"
25
+ REVISION = "20210225"
26
26
  end
27
27
  end
28
28
  end
@@ -154,6 +154,47 @@ module Google
154
154
  execute_or_queue_command(command, &block)
155
155
  end
156
156
 
157
+ # Gets the access control policy for a resource. Returns an empty policy if the
158
+ # resource exists and does not have a policy set.
159
+ # @param [String] resource
160
+ # REQUIRED: The resource for which the policy is being requested. See the
161
+ # operation documentation for the appropriate value for this field.
162
+ # @param [Fixnum] options_requested_policy_version
163
+ # Optional. The policy format version to be returned. Valid values are 0, 1, and
164
+ # 3. Requests specifying an invalid value will be rejected. Requests for
165
+ # policies with any conditional bindings must specify version 3. Policies
166
+ # without any conditional bindings may specify any valid value or leave the
167
+ # field unset. To learn which resources support conditions in their IAM policies,
168
+ # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
169
+ # resource-policies).
170
+ # @param [String] fields
171
+ # Selector specifying which fields to include in a partial response.
172
+ # @param [String] quota_user
173
+ # Available to use for quota purposes for server-side applications. Can be any
174
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
175
+ # @param [Google::Apis::RequestOptions] options
176
+ # Request-specific options
177
+ #
178
+ # @yield [result, err] Result & error if block supplied
179
+ # @yieldparam result [Google::Apis::PubsubV1::Policy] parsed result object
180
+ # @yieldparam err [StandardError] error object if request failed
181
+ #
182
+ # @return [Google::Apis::PubsubV1::Policy]
183
+ #
184
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
185
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
186
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
187
+ def get_project_schema_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
188
+ command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
189
+ command.response_representation = Google::Apis::PubsubV1::Policy::Representation
190
+ command.response_class = Google::Apis::PubsubV1::Policy
191
+ command.params['resource'] = resource unless resource.nil?
192
+ command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
193
+ command.query['fields'] = fields unless fields.nil?
194
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
195
+ execute_or_queue_command(command, &block)
196
+ end
197
+
157
198
  # Lists schemas in a project.
158
199
  # @param [String] parent
159
200
  # Required. The name of the project in which to list schemas. Format is `
@@ -198,6 +239,80 @@ module Google
198
239
  execute_or_queue_command(command, &block)
199
240
  end
200
241
 
242
+ # Sets the access control policy on the specified resource. Replaces any
243
+ # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
244
+ # PERMISSION_DENIED` errors.
245
+ # @param [String] resource
246
+ # REQUIRED: The resource for which the policy is being specified. See the
247
+ # operation documentation for the appropriate value for this field.
248
+ # @param [Google::Apis::PubsubV1::SetIamPolicyRequest] set_iam_policy_request_object
249
+ # @param [String] fields
250
+ # Selector specifying which fields to include in a partial response.
251
+ # @param [String] quota_user
252
+ # Available to use for quota purposes for server-side applications. Can be any
253
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
254
+ # @param [Google::Apis::RequestOptions] options
255
+ # Request-specific options
256
+ #
257
+ # @yield [result, err] Result & error if block supplied
258
+ # @yieldparam result [Google::Apis::PubsubV1::Policy] parsed result object
259
+ # @yieldparam err [StandardError] error object if request failed
260
+ #
261
+ # @return [Google::Apis::PubsubV1::Policy]
262
+ #
263
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
264
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
265
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
266
+ def set_schema_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
267
+ command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
268
+ command.request_representation = Google::Apis::PubsubV1::SetIamPolicyRequest::Representation
269
+ command.request_object = set_iam_policy_request_object
270
+ command.response_representation = Google::Apis::PubsubV1::Policy::Representation
271
+ command.response_class = Google::Apis::PubsubV1::Policy
272
+ command.params['resource'] = resource unless resource.nil?
273
+ command.query['fields'] = fields unless fields.nil?
274
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
275
+ execute_or_queue_command(command, &block)
276
+ end
277
+
278
+ # Returns permissions that a caller has on the specified resource. If the
279
+ # resource does not exist, this will return an empty set of permissions, not a `
280
+ # NOT_FOUND` error. Note: This operation is designed to be used for building
281
+ # permission-aware UIs and command-line tools, not for authorization checking.
282
+ # This operation may "fail open" without warning.
283
+ # @param [String] resource
284
+ # REQUIRED: The resource for which the policy detail is being requested. See the
285
+ # operation documentation for the appropriate value for this field.
286
+ # @param [Google::Apis::PubsubV1::TestIamPermissionsRequest] test_iam_permissions_request_object
287
+ # @param [String] fields
288
+ # Selector specifying which fields to include in a partial response.
289
+ # @param [String] quota_user
290
+ # Available to use for quota purposes for server-side applications. Can be any
291
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
292
+ # @param [Google::Apis::RequestOptions] options
293
+ # Request-specific options
294
+ #
295
+ # @yield [result, err] Result & error if block supplied
296
+ # @yieldparam result [Google::Apis::PubsubV1::TestIamPermissionsResponse] parsed result object
297
+ # @yieldparam err [StandardError] error object if request failed
298
+ #
299
+ # @return [Google::Apis::PubsubV1::TestIamPermissionsResponse]
300
+ #
301
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
302
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
303
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
304
+ def test_schema_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
305
+ command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
306
+ command.request_representation = Google::Apis::PubsubV1::TestIamPermissionsRequest::Representation
307
+ command.request_object = test_iam_permissions_request_object
308
+ command.response_representation = Google::Apis::PubsubV1::TestIamPermissionsResponse::Representation
309
+ command.response_class = Google::Apis::PubsubV1::TestIamPermissionsResponse
310
+ command.params['resource'] = resource unless resource.nil?
311
+ command.query['fields'] = fields unless fields.nil?
312
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
313
+ execute_or_queue_command(command, &block)
314
+ end
315
+
201
316
  # Validates a schema.
202
317
  # @param [String] parent
203
318
  # Required. The name of the project in which to validate schemas. Format is `
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-pubsub_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.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: 2021-02-22 00:00:00.000000000 Z
11
+ date: 2021-03-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -52,7 +52,7 @@ licenses:
52
52
  metadata:
53
53
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
54
54
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-pubsub_v1/CHANGELOG.md
55
- documentation_uri: https://googleapis.dev/ruby/google-apis-pubsub_v1/v0.2.0
55
+ documentation_uri: https://googleapis.dev/ruby/google-apis-pubsub_v1/v0.3.0
56
56
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-pubsub_v1
57
57
  post_install_message:
58
58
  rdoc_options: []
@@ -62,14 +62,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
62
62
  requirements:
63
63
  - - ">="
64
64
  - !ruby/object:Gem::Version
65
- version: '2.4'
65
+ version: '2.5'
66
66
  required_rubygems_version: !ruby/object:Gem::Requirement
67
67
  requirements:
68
68
  - - ">="
69
69
  - !ruby/object:Gem::Version
70
70
  version: '0'
71
71
  requirements: []
72
- rubygems_version: 3.2.6
72
+ rubygems_version: 3.2.13
73
73
  signing_key:
74
74
  specification_version: 4
75
75
  summary: Simple REST client for Cloud Pub/Sub API V1