google-iam-v1 0.5.1 → 0.6.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: cdf39c7168923d42da12b4a48cc578e98046eec98d14eede2e0c6be5361c31da
4
- data.tar.gz: eb37494ccefbe1a2af0731a48b46e044fd220acb700388dbf129f6eb9a25d669
3
+ metadata.gz: 4c2a1b2608b9cb342d6cdc76c127f04c70e47547be4e95aec683662c0af9d69f
4
+ data.tar.gz: 7c5f4fb90c92bac16a1138802dd761a723ac36338b73ecbb0ac9704b4f569217
5
5
  SHA512:
6
- metadata.gz: b156d6b4f370fa10f17c6530ac4efd345b1d6c70b15a3d37987e6bc96d6f2c13e3136ec51e5df306e0f70922303ab475a24df506c0fd3101345eee3bd9fefc77
7
- data.tar.gz: 5bb3f72557a091fbc68aae713a194dfc60c8bd5964fd19f8cdf5f26a3c22879b8f31d4108d2d92ce4b4161cab6e79447721e221d4a07cde79f7bc38b198a3b2e
6
+ metadata.gz: 39fb7c0a0a3bec03e81f39bd3b229dc8c936a2646d57f3c19012a98d64942dd67360bcddaa8b7ee00f9b047bfb60f0d2b235e9ae15afdae9d02a3b6eb8ec07fe
7
+ data.tar.gz: 07632b5e057a0d9e7da3712fed421ff55eba3649903acc80bf5e23213a4e3dd304ec8797133f486f1a1ee54d2962468fdfa59a6d7d33a123cdef82c24763eec0
@@ -160,7 +160,8 @@ module Google
160
160
  credentials: credentials,
161
161
  endpoint: @config.endpoint,
162
162
  channel_args: @config.channel_args,
163
- interceptors: @config.interceptors
163
+ interceptors: @config.interceptors,
164
+ channel_pool_config: @config.channel_pool
164
165
  )
165
166
  end
166
167
 
@@ -573,6 +574,14 @@ module Google
573
574
  end
574
575
  end
575
576
 
577
+ ##
578
+ # Configuration for the channel pool
579
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
580
+ #
581
+ def channel_pool
582
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
583
+ end
584
+
576
585
  ##
577
586
  # Configuration RPC class for the IAMPolicy API.
578
587
  #
@@ -199,6 +199,22 @@ module Google
199
199
  # @return [::Google::Iam::V1::Policy]
200
200
  #
201
201
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
202
+ #
203
+ # @example Basic example
204
+ # require "google/iam/v1"
205
+ #
206
+ # # Create a client object. The client can be reused for multiple calls.
207
+ # client = Google::Iam::V1::IAMPolicy::Rest::Client.new
208
+ #
209
+ # # Create a request. To set request fields, pass in keyword arguments.
210
+ # request = Google::Iam::V1::SetIamPolicyRequest.new
211
+ #
212
+ # # Call the set_iam_policy method.
213
+ # result = client.set_iam_policy request
214
+ #
215
+ # # The returned object is of type Google::Iam::V1::Policy.
216
+ # p result
217
+ #
202
218
  def set_iam_policy request, options = nil
203
219
  raise ::ArgumentError, "request must be provided" if request.nil?
204
220
 
@@ -269,6 +285,22 @@ module Google
269
285
  # @return [::Google::Iam::V1::Policy]
270
286
  #
271
287
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
288
+ #
289
+ # @example Basic example
290
+ # require "google/iam/v1"
291
+ #
292
+ # # Create a client object. The client can be reused for multiple calls.
293
+ # client = Google::Iam::V1::IAMPolicy::Rest::Client.new
294
+ #
295
+ # # Create a request. To set request fields, pass in keyword arguments.
296
+ # request = Google::Iam::V1::GetIamPolicyRequest.new
297
+ #
298
+ # # Call the get_iam_policy method.
299
+ # result = client.get_iam_policy request
300
+ #
301
+ # # The returned object is of type Google::Iam::V1::Policy.
302
+ # p result
303
+ #
272
304
  def get_iam_policy request, options = nil
273
305
  raise ::ArgumentError, "request must be provided" if request.nil?
274
306
 
@@ -345,6 +377,22 @@ module Google
345
377
  # @return [::Google::Iam::V1::TestIamPermissionsResponse]
346
378
  #
347
379
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
380
+ #
381
+ # @example Basic example
382
+ # require "google/iam/v1"
383
+ #
384
+ # # Create a client object. The client can be reused for multiple calls.
385
+ # client = Google::Iam::V1::IAMPolicy::Rest::Client.new
386
+ #
387
+ # # Create a request. To set request fields, pass in keyword arguments.
388
+ # request = Google::Iam::V1::TestIamPermissionsRequest.new
389
+ #
390
+ # # Call the test_iam_permissions method.
391
+ # result = client.test_iam_permissions request
392
+ #
393
+ # # The returned object is of type Google::Iam::V1::TestIamPermissionsResponse.
394
+ # p result
395
+ #
348
396
  def test_iam_permissions request, options = nil
349
397
  raise ::ArgumentError, "request must be provided" if request.nil?
350
398
 
@@ -20,7 +20,7 @@
20
20
  module Google
21
21
  module Iam
22
22
  module V1
23
- VERSION = "0.5.1"
23
+ VERSION = "0.6.0"
24
24
  end
25
25
  end
26
26
  end
@@ -66,6 +66,20 @@ module Google
66
66
  # a non-empty value will be returned. The user will not be aware of what
67
67
  # non-empty value to expect.
68
68
  NON_EMPTY_DEFAULT = 7
69
+
70
+ # Denotes that the field in a resource (a message annotated with
71
+ # google.api.resource) is used in the resource name to uniquely identify the
72
+ # resource. For AIP-compliant APIs, this should only be applied to the
73
+ # `name` field on the resource.
74
+ #
75
+ # This behavior should not be applied to references to other resources within
76
+ # the message.
77
+ #
78
+ # The identifier field of resources often have different field behavior
79
+ # depending on the request it is embedded in (e.g. for Create methods name
80
+ # is optional and unused, while for Update methods it is required). Instead
81
+ # of method-specific annotations, only `IDENTIFIER` is required.
82
+ IDENTIFIER = 8
69
83
  end
70
84
  end
71
85
  end
@@ -40,6 +40,7 @@ module Google
40
40
  #
41
41
  # **JSON example:**
42
42
  #
43
+ # ```
43
44
  # {
44
45
  # "bindings": [
45
46
  # {
@@ -67,9 +68,11 @@ module Google
67
68
  # "etag": "BwWWja0YfJA=",
68
69
  # "version": 3
69
70
  # }
71
+ # ```
70
72
  #
71
73
  # **YAML example:**
72
74
  #
75
+ # ```
73
76
  # bindings:
74
77
  # - members:
75
78
  # - user:mike@example.com
@@ -86,6 +89,7 @@ module Google
86
89
  # expression: request.time < timestamp('2020-10-01T00:00:00.000Z')
87
90
  # etag: BwWWja0YfJA=
88
91
  # version: 3
92
+ # ```
89
93
  #
90
94
  # For a description of IAM and its features, see the
91
95
  # [IAM documentation](https://cloud.google.com/iam/docs/).
@@ -157,7 +161,7 @@ module Google
157
161
  # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
158
162
  # @!attribute [rw] members
159
163
  # @return [::Array<::String>]
160
- # Specifies the principals requesting access for a Cloud Platform resource.
164
+ # Specifies the principals requesting access for a Google Cloud resource.
161
165
  # `members` can have the following values:
162
166
  #
163
167
  # * `allUsers`: A special identifier that represents anyone who is
@@ -267,8 +271,8 @@ module Google
267
271
  # }
268
272
  #
269
273
  # For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
270
- # logging. It also exempts jose@example.com from DATA_READ logging, and
271
- # aliya@example.com from DATA_WRITE logging.
274
+ # logging. It also exempts `jose@example.com` from DATA_READ logging, and
275
+ # `aliya@example.com` from DATA_WRITE logging.
272
276
  # @!attribute [rw] service
273
277
  # @return [::String]
274
278
  # Specifies a service that will be enabled for audit logging.
@@ -356,7 +360,7 @@ module Google
356
360
  # Required
357
361
  # @!attribute [rw] member
358
362
  # @return [::String]
359
- # A single identity requesting access for a Cloud Platform resource.
363
+ # A single identity requesting access for a Google Cloud resource.
360
364
  # Follows the same format of Binding.members.
361
365
  # Required
362
366
  # @!attribute [rw] condition
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-iam-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.6.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: 2023-06-06 00:00:00.000000000 Z
11
+ date: 2023-09-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.19.1
19
+ version: 0.20.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.19.1
29
+ version: 0.20.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -227,7 +227,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
227
227
  - !ruby/object:Gem::Version
228
228
  version: '0'
229
229
  requirements: []
230
- rubygems_version: 3.4.2
230
+ rubygems_version: 3.4.19
231
231
  signing_key:
232
232
  specification_version: 4
233
233
  summary: Manages access control for Google Cloud Platform resources.