google-iam-v1 0.5.2 → 0.6.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: 011ce0a5e6f295354f7d49b24d750e77091c8b9fbf47f7f25f002364710e7fc2
4
- data.tar.gz: 289c8586ae8de17b73b2189cf77bb4deb64291dbff92bbddc5f2407523daa9ec
3
+ metadata.gz: 4c2a1b2608b9cb342d6cdc76c127f04c70e47547be4e95aec683662c0af9d69f
4
+ data.tar.gz: 7c5f4fb90c92bac16a1138802dd761a723ac36338b73ecbb0ac9704b4f569217
5
5
  SHA512:
6
- metadata.gz: e765dc0c9de36c8bbabd39b2da06f1c7dcd33cb0c829d3aa72d9007c1ac455de44c511748c4d1b85d3fec7544d2ccfa751f7067160f5978ea4b41e59cfe93a02
7
- data.tar.gz: 3b85c5e6d5abfe786a1f558530a46ce0b1b6639bd970cfc3a7414a2ff86dc3b97fe86c221714ea05ccb8e0a5754adffe6ecd0e95c2807145ae632af3e86dd768
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.2"
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
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.2
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-08-04 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.