google-iam-v2 0.3.1 → 0.4.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: 971e8f656f1cc1db51ac01cb541c83f3107e7471aeaa9f5c0a14aa2af37fc830
4
- data.tar.gz: b996863b1ab6add4a3aacbdacd7e092e456ae83e5ed4e1a516bf573435126e30
3
+ metadata.gz: 32c3d0e641659cbd636508643d2c7b19b6b422df11d09f00dd61cb9ef3bdb13f
4
+ data.tar.gz: 7496444b2d982da0041f314c2e714d36c971be3a0fac47bed4a29a144381a98e
5
5
  SHA512:
6
- metadata.gz: dfc4ed64275a322b5d7370577c7225a2b8a32d67ecc1be586eb7876ef5ab41856a98d94611dd7821a9316653d2467bb54721efc1c5b357add56222dd152559fb
7
- data.tar.gz: 2ab20eacf19977bfd774eabeb8f03f7c93a8f12180ab4833812ac2f166d43e49d774e606525755d25450d4ae3667d5b0a06699cfbd04d673a54a93e011cd1758
6
+ metadata.gz: 84e84231b7395ce1dba409e64608fa7ea4918252777393ef8f6766a26eca9c862c11173f376ad96be8d732b4d8b23a5ab8e7c6d2c56e0a931a68495e45bdb247
7
+ data.tar.gz: 79d6a2e027adcb49476af214e2cb405dc209a76e2a57341b8ac7c0a6685644b3e8f49d572fe17901f98be9a512146a54a728c8ef3e07cce73589f09bc28f030f
@@ -166,7 +166,8 @@ module Google
166
166
  credentials: credentials,
167
167
  endpoint: @config.endpoint,
168
168
  channel_args: @config.channel_args,
169
- interceptors: @config.interceptors
169
+ interceptors: @config.interceptors,
170
+ channel_pool_config: @config.channel_pool
170
171
  )
171
172
  end
172
173
 
@@ -829,6 +830,14 @@ module Google
829
830
  end
830
831
  end
831
832
 
833
+ ##
834
+ # Configuration for the channel pool
835
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
836
+ #
837
+ def channel_pool
838
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
839
+ end
840
+
832
841
  ##
833
842
  # Configuration RPC class for the Policies API.
834
843
  #
@@ -92,7 +92,8 @@ module Google
92
92
  credentials: credentials,
93
93
  endpoint: @config.endpoint,
94
94
  channel_args: @config.channel_args,
95
- interceptors: @config.interceptors
95
+ interceptors: @config.interceptors,
96
+ channel_pool_config: @config.channel_pool
96
97
  )
97
98
 
98
99
  # Used by an LRO wrapper for some methods of this service
@@ -700,6 +701,14 @@ module Google
700
701
  end
701
702
  end
702
703
 
704
+ ##
705
+ # Configuration for the channel pool
706
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
707
+ #
708
+ def channel_pool
709
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
710
+ end
711
+
703
712
  ##
704
713
  # Configuration RPC class for the Operations API.
705
714
  #
@@ -218,6 +218,26 @@ module Google
218
218
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Iam::V2::Policy>]
219
219
  #
220
220
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
221
+ #
222
+ # @example Basic example
223
+ # require "google/iam/v2"
224
+ #
225
+ # # Create a client object. The client can be reused for multiple calls.
226
+ # client = Google::Iam::V2::Policies::Rest::Client.new
227
+ #
228
+ # # Create a request. To set request fields, pass in keyword arguments.
229
+ # request = Google::Iam::V2::ListPoliciesRequest.new
230
+ #
231
+ # # Call the list_policies method.
232
+ # result = client.list_policies request
233
+ #
234
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
235
+ # # over elements, and API calls will be issued to fetch pages as needed.
236
+ # result.each do |item|
237
+ # # Each element is of type ::Google::Iam::V2::Policy.
238
+ # p item
239
+ # end
240
+ #
221
241
  def list_policies request, options = nil
222
242
  raise ::ArgumentError, "request must be provided" if request.nil?
223
243
 
@@ -290,6 +310,22 @@ module Google
290
310
  # @return [::Google::Iam::V2::Policy]
291
311
  #
292
312
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
313
+ #
314
+ # @example Basic example
315
+ # require "google/iam/v2"
316
+ #
317
+ # # Create a client object. The client can be reused for multiple calls.
318
+ # client = Google::Iam::V2::Policies::Rest::Client.new
319
+ #
320
+ # # Create a request. To set request fields, pass in keyword arguments.
321
+ # request = Google::Iam::V2::GetPolicyRequest.new
322
+ #
323
+ # # Call the get_policy method.
324
+ # result = client.get_policy request
325
+ #
326
+ # # The returned object is of type Google::Iam::V2::Policy.
327
+ # p result
328
+ #
293
329
  def get_policy request, options = nil
294
330
  raise ::ArgumentError, "request must be provided" if request.nil?
295
331
 
@@ -369,6 +405,29 @@ module Google
369
405
  # @return [::Gapic::Operation]
370
406
  #
371
407
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
408
+ #
409
+ # @example Basic example
410
+ # require "google/iam/v2"
411
+ #
412
+ # # Create a client object. The client can be reused for multiple calls.
413
+ # client = Google::Iam::V2::Policies::Rest::Client.new
414
+ #
415
+ # # Create a request. To set request fields, pass in keyword arguments.
416
+ # request = Google::Iam::V2::CreatePolicyRequest.new
417
+ #
418
+ # # Call the create_policy method.
419
+ # result = client.create_policy request
420
+ #
421
+ # # The returned object is of type Gapic::Operation. You can use it to
422
+ # # check the status of an operation, cancel it, or wait for results.
423
+ # # Here is how to wait for a response.
424
+ # result.wait_until_done! timeout: 60
425
+ # if result.response?
426
+ # p result.response
427
+ # else
428
+ # puts "No response received."
429
+ # end
430
+ #
372
431
  def create_policy request, options = nil
373
432
  raise ::ArgumentError, "request must be provided" if request.nil?
374
433
 
@@ -446,6 +505,29 @@ module Google
446
505
  # @return [::Gapic::Operation]
447
506
  #
448
507
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
508
+ #
509
+ # @example Basic example
510
+ # require "google/iam/v2"
511
+ #
512
+ # # Create a client object. The client can be reused for multiple calls.
513
+ # client = Google::Iam::V2::Policies::Rest::Client.new
514
+ #
515
+ # # Create a request. To set request fields, pass in keyword arguments.
516
+ # request = Google::Iam::V2::UpdatePolicyRequest.new
517
+ #
518
+ # # Call the update_policy method.
519
+ # result = client.update_policy request
520
+ #
521
+ # # The returned object is of type Gapic::Operation. You can use it to
522
+ # # check the status of an operation, cancel it, or wait for results.
523
+ # # Here is how to wait for a response.
524
+ # result.wait_until_done! timeout: 60
525
+ # if result.response?
526
+ # p result.response
527
+ # else
528
+ # puts "No response received."
529
+ # end
530
+ #
449
531
  def update_policy request, options = nil
450
532
  raise ::ArgumentError, "request must be provided" if request.nil?
451
533
 
@@ -525,6 +607,29 @@ module Google
525
607
  # @return [::Gapic::Operation]
526
608
  #
527
609
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
610
+ #
611
+ # @example Basic example
612
+ # require "google/iam/v2"
613
+ #
614
+ # # Create a client object. The client can be reused for multiple calls.
615
+ # client = Google::Iam::V2::Policies::Rest::Client.new
616
+ #
617
+ # # Create a request. To set request fields, pass in keyword arguments.
618
+ # request = Google::Iam::V2::DeletePolicyRequest.new
619
+ #
620
+ # # Call the delete_policy method.
621
+ # result = client.delete_policy request
622
+ #
623
+ # # The returned object is of type Gapic::Operation. You can use it to
624
+ # # check the status of an operation, cancel it, or wait for results.
625
+ # # Here is how to wait for a response.
626
+ # result.wait_until_done! timeout: 60
627
+ # if result.response?
628
+ # p result.response
629
+ # else
630
+ # puts "No response received."
631
+ # end
632
+ #
528
633
  def delete_policy request, options = nil
529
634
  raise ::ArgumentError, "request must be provided" if request.nil?
530
635
 
@@ -135,6 +135,26 @@ module Google
135
135
  # @return [::Gapic::Operation]
136
136
  #
137
137
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
138
+ #
139
+ # @example Basic example
140
+ # require "google/longrunning"
141
+ #
142
+ # # Create a client object. The client can be reused for multiple calls.
143
+ # client = Google::Longrunning::Operations::Rest::Client.new
144
+ #
145
+ # # Create a request. To set request fields, pass in keyword arguments.
146
+ # request = Google::Longrunning::ListOperationsRequest.new
147
+ #
148
+ # # Call the list_operations method.
149
+ # result = client.list_operations request
150
+ #
151
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
152
+ # # over elements, and API calls will be issued to fetch pages as needed.
153
+ # result.each do |item|
154
+ # # Each element is of type ::Google::Longrunning::Operation.
155
+ # p item
156
+ # end
157
+ #
138
158
  def list_operations request, options = nil
139
159
  raise ::ArgumentError, "request must be provided" if request.nil?
140
160
 
@@ -200,6 +220,29 @@ module Google
200
220
  # @return [::Gapic::Operation]
201
221
  #
202
222
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
223
+ #
224
+ # @example Basic example
225
+ # require "google/longrunning"
226
+ #
227
+ # # Create a client object. The client can be reused for multiple calls.
228
+ # client = Google::Longrunning::Operations::Rest::Client.new
229
+ #
230
+ # # Create a request. To set request fields, pass in keyword arguments.
231
+ # request = Google::Longrunning::GetOperationRequest.new
232
+ #
233
+ # # Call the get_operation method.
234
+ # result = client.get_operation request
235
+ #
236
+ # # The returned object is of type Gapic::Operation. You can use it to
237
+ # # check the status of an operation, cancel it, or wait for results.
238
+ # # Here is how to wait for a response.
239
+ # result.wait_until_done! timeout: 60
240
+ # if result.response?
241
+ # p result.response
242
+ # else
243
+ # puts "No response received."
244
+ # end
245
+ #
203
246
  def get_operation request, options = nil
204
247
  raise ::ArgumentError, "request must be provided" if request.nil?
205
248
 
@@ -266,6 +309,22 @@ module Google
266
309
  # @return [::Google::Protobuf::Empty]
267
310
  #
268
311
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
312
+ #
313
+ # @example Basic example
314
+ # require "google/longrunning"
315
+ #
316
+ # # Create a client object. The client can be reused for multiple calls.
317
+ # client = Google::Longrunning::Operations::Rest::Client.new
318
+ #
319
+ # # Create a request. To set request fields, pass in keyword arguments.
320
+ # request = Google::Longrunning::DeleteOperationRequest.new
321
+ #
322
+ # # Call the delete_operation method.
323
+ # result = client.delete_operation request
324
+ #
325
+ # # The returned object is of type Google::Protobuf::Empty.
326
+ # p result
327
+ #
269
328
  def delete_operation request, options = nil
270
329
  raise ::ArgumentError, "request must be provided" if request.nil?
271
330
 
@@ -337,6 +396,22 @@ module Google
337
396
  # @return [::Google::Protobuf::Empty]
338
397
  #
339
398
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
399
+ #
400
+ # @example Basic example
401
+ # require "google/longrunning"
402
+ #
403
+ # # Create a client object. The client can be reused for multiple calls.
404
+ # client = Google::Longrunning::Operations::Rest::Client.new
405
+ #
406
+ # # Create a request. To set request fields, pass in keyword arguments.
407
+ # request = Google::Longrunning::CancelOperationRequest.new
408
+ #
409
+ # # Call the cancel_operation method.
410
+ # result = client.cancel_operation request
411
+ #
412
+ # # The returned object is of type Google::Protobuf::Empty.
413
+ # p result
414
+ #
340
415
  def cancel_operation request, options = nil
341
416
  raise ::ArgumentError, "request must be provided" if request.nil?
342
417
 
@@ -20,7 +20,7 @@
20
20
  module Google
21
21
  module Iam
22
22
  module V2
23
- VERSION = "0.3.1"
23
+ VERSION = "0.4.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-v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.4.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
@@ -217,7 +217,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
217
217
  - !ruby/object:Gem::Version
218
218
  version: '0'
219
219
  requirements: []
220
- rubygems_version: 3.4.2
220
+ rubygems_version: 3.4.19
221
221
  signing_key:
222
222
  specification_version: 4
223
223
  summary: Manages identity and access control for Google Cloud Platform resources,