google-identity-access_context_manager-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: be067145d1e41fe0bf478c55146f185d8710414d8f6f0fb9601d2c9a505f6fa7
4
- data.tar.gz: 21e80df7f7d2626b946d67ab2125d6d2baf853556194be28b7102d5334db901e
3
+ metadata.gz: d92a3cc78b381ebbbaaa96fc521c8c677696134b64602eb7333cf3e1928ac817
4
+ data.tar.gz: 3935ffc16c12a389a9c1e31155292d169193d67204d978950e6fad56d3c70c0a
5
5
  SHA512:
6
- metadata.gz: e1c5b9e91d2ef1c344359f5b752ac76fdd88e3335f94f73bffa891fcc231dcf0a5da49b08fb762372e91d05b6e72b2d4a65f45a2215b09b52d95fd866b1ac6c5
7
- data.tar.gz: 368570b69f56db41f6cd515ef0c3ec6ee03eb9059b93359fdcd2a3e1399f84fe25b96bc679cf9db5867678f1bf9d7c336764624480cff0368956c6febbda2c7b
6
+ metadata.gz: dd6f4c2d96cf878cd67637d7e2694c7118a507c05a3d1e5dd6b053c5ad9c4a24fb0b7da3a0b9e8ac2905f424677d6143325cde2475bae36e42ff4d880731a7e6
7
+ data.tar.gz: 6722eaa89d1a31043a220ed40e48d607cc34927c051ade8fce206c3fa8e3f842f055ed9222183dc1b1b7d7282061cd65b1a975275d9bb23c04632f412c2d9652
@@ -156,7 +156,8 @@ module Google
156
156
  credentials: credentials,
157
157
  endpoint: @config.endpoint,
158
158
  channel_args: @config.channel_args,
159
- interceptors: @config.interceptors
159
+ interceptors: @config.interceptors,
160
+ channel_pool_config: @config.channel_pool
160
161
  )
161
162
  end
162
163
 
@@ -2976,6 +2977,14 @@ module Google
2976
2977
  end
2977
2978
  end
2978
2979
 
2980
+ ##
2981
+ # Configuration for the channel pool
2982
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
2983
+ #
2984
+ def channel_pool
2985
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
2986
+ end
2987
+
2979
2988
  ##
2980
2989
  # Configuration RPC class for the AccessContextManager API.
2981
2990
  #
@@ -93,7 +93,8 @@ module Google
93
93
  credentials: credentials,
94
94
  endpoint: @config.endpoint,
95
95
  channel_args: @config.channel_args,
96
- interceptors: @config.interceptors
96
+ interceptors: @config.interceptors,
97
+ channel_pool_config: @config.channel_pool
97
98
  )
98
99
 
99
100
  # Used by an LRO wrapper for some methods of this service
@@ -701,6 +702,14 @@ module Google
701
702
  end
702
703
  end
703
704
 
705
+ ##
706
+ # Configuration for the channel pool
707
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
708
+ #
709
+ def channel_pool
710
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
711
+ end
712
+
704
713
  ##
705
714
  # Configuration RPC class for the Operations API.
706
715
  #
@@ -198,6 +198,26 @@ module Google
198
198
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Identity::AccessContextManager::V1::AccessPolicy>]
199
199
  #
200
200
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
201
+ #
202
+ # @example Basic example
203
+ # require "google/identity/access_context_manager/v1"
204
+ #
205
+ # # Create a client object. The client can be reused for multiple calls.
206
+ # client = Google::Identity::AccessContextManager::V1::AccessContextManager::Rest::Client.new
207
+ #
208
+ # # Create a request. To set request fields, pass in keyword arguments.
209
+ # request = Google::Identity::AccessContextManager::V1::ListAccessPoliciesRequest.new
210
+ #
211
+ # # Call the list_access_policies method.
212
+ # result = client.list_access_policies request
213
+ #
214
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
215
+ # # over elements, and API calls will be issued to fetch pages as needed.
216
+ # result.each do |item|
217
+ # # Each element is of type ::Google::Identity::AccessContextManager::V1::AccessPolicy.
218
+ # p item
219
+ # end
220
+ #
201
221
  def list_access_policies request, options = nil
202
222
  raise ::ArgumentError, "request must be provided" if request.nil?
203
223
 
@@ -264,6 +284,22 @@ module Google
264
284
  # @return [::Google::Identity::AccessContextManager::V1::AccessPolicy]
265
285
  #
266
286
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
287
+ #
288
+ # @example Basic example
289
+ # require "google/identity/access_context_manager/v1"
290
+ #
291
+ # # Create a client object. The client can be reused for multiple calls.
292
+ # client = Google::Identity::AccessContextManager::V1::AccessContextManager::Rest::Client.new
293
+ #
294
+ # # Create a request. To set request fields, pass in keyword arguments.
295
+ # request = Google::Identity::AccessContextManager::V1::GetAccessPolicyRequest.new
296
+ #
297
+ # # Call the get_access_policy method.
298
+ # result = client.get_access_policy request
299
+ #
300
+ # # The returned object is of type Google::Identity::AccessContextManager::V1::AccessPolicy.
301
+ # p result
302
+ #
267
303
  def get_access_policy request, options = nil
268
304
  raise ::ArgumentError, "request must be provided" if request.nil?
269
305
 
@@ -361,6 +397,29 @@ module Google
361
397
  # @return [::Gapic::Operation]
362
398
  #
363
399
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
400
+ #
401
+ # @example Basic example
402
+ # require "google/identity/access_context_manager/v1"
403
+ #
404
+ # # Create a client object. The client can be reused for multiple calls.
405
+ # client = Google::Identity::AccessContextManager::V1::AccessContextManager::Rest::Client.new
406
+ #
407
+ # # Create a request. To set request fields, pass in keyword arguments.
408
+ # request = Google::Identity::AccessContextManager::V1::AccessPolicy.new
409
+ #
410
+ # # Call the create_access_policy method.
411
+ # result = client.create_access_policy request
412
+ #
413
+ # # The returned object is of type Gapic::Operation. You can use it to
414
+ # # check the status of an operation, cancel it, or wait for results.
415
+ # # Here is how to wait for a response.
416
+ # result.wait_until_done! timeout: 60
417
+ # if result.response?
418
+ # p result.response
419
+ # else
420
+ # puts "No response received."
421
+ # end
422
+ #
364
423
  def create_access_policy request, options = nil
365
424
  raise ::ArgumentError, "request must be provided" if request.nil?
366
425
 
@@ -431,6 +490,29 @@ module Google
431
490
  # @return [::Gapic::Operation]
432
491
  #
433
492
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
493
+ #
494
+ # @example Basic example
495
+ # require "google/identity/access_context_manager/v1"
496
+ #
497
+ # # Create a client object. The client can be reused for multiple calls.
498
+ # client = Google::Identity::AccessContextManager::V1::AccessContextManager::Rest::Client.new
499
+ #
500
+ # # Create a request. To set request fields, pass in keyword arguments.
501
+ # request = Google::Identity::AccessContextManager::V1::UpdateAccessPolicyRequest.new
502
+ #
503
+ # # Call the update_access_policy method.
504
+ # result = client.update_access_policy request
505
+ #
506
+ # # The returned object is of type Gapic::Operation. You can use it to
507
+ # # check the status of an operation, cancel it, or wait for results.
508
+ # # Here is how to wait for a response.
509
+ # result.wait_until_done! timeout: 60
510
+ # if result.response?
511
+ # p result.response
512
+ # else
513
+ # puts "No response received."
514
+ # end
515
+ #
434
516
  def update_access_policy request, options = nil
435
517
  raise ::ArgumentError, "request must be provided" if request.nil?
436
518
 
@@ -500,6 +582,29 @@ module Google
500
582
  # @return [::Gapic::Operation]
501
583
  #
502
584
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
585
+ #
586
+ # @example Basic example
587
+ # require "google/identity/access_context_manager/v1"
588
+ #
589
+ # # Create a client object. The client can be reused for multiple calls.
590
+ # client = Google::Identity::AccessContextManager::V1::AccessContextManager::Rest::Client.new
591
+ #
592
+ # # Create a request. To set request fields, pass in keyword arguments.
593
+ # request = Google::Identity::AccessContextManager::V1::DeleteAccessPolicyRequest.new
594
+ #
595
+ # # Call the delete_access_policy method.
596
+ # result = client.delete_access_policy request
597
+ #
598
+ # # The returned object is of type Gapic::Operation. You can use it to
599
+ # # check the status of an operation, cancel it, or wait for results.
600
+ # # Here is how to wait for a response.
601
+ # result.wait_until_done! timeout: 60
602
+ # if result.response?
603
+ # p result.response
604
+ # else
605
+ # puts "No response received."
606
+ # end
607
+ #
503
608
  def delete_access_policy request, options = nil
504
609
  raise ::ArgumentError, "request must be provided" if request.nil?
505
610
 
@@ -581,6 +686,26 @@ module Google
581
686
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Identity::AccessContextManager::V1::AccessLevel>]
582
687
  #
583
688
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
689
+ #
690
+ # @example Basic example
691
+ # require "google/identity/access_context_manager/v1"
692
+ #
693
+ # # Create a client object. The client can be reused for multiple calls.
694
+ # client = Google::Identity::AccessContextManager::V1::AccessContextManager::Rest::Client.new
695
+ #
696
+ # # Create a request. To set request fields, pass in keyword arguments.
697
+ # request = Google::Identity::AccessContextManager::V1::ListAccessLevelsRequest.new
698
+ #
699
+ # # Call the list_access_levels method.
700
+ # result = client.list_access_levels request
701
+ #
702
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
703
+ # # over elements, and API calls will be issued to fetch pages as needed.
704
+ # result.each do |item|
705
+ # # Each element is of type ::Google::Identity::AccessContextManager::V1::AccessLevel.
706
+ # p item
707
+ # end
708
+ #
584
709
  def list_access_levels request, options = nil
585
710
  raise ::ArgumentError, "request must be provided" if request.nil?
586
711
 
@@ -659,6 +784,22 @@ module Google
659
784
  # @return [::Google::Identity::AccessContextManager::V1::AccessLevel]
660
785
  #
661
786
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
787
+ #
788
+ # @example Basic example
789
+ # require "google/identity/access_context_manager/v1"
790
+ #
791
+ # # Create a client object. The client can be reused for multiple calls.
792
+ # client = Google::Identity::AccessContextManager::V1::AccessContextManager::Rest::Client.new
793
+ #
794
+ # # Create a request. To set request fields, pass in keyword arguments.
795
+ # request = Google::Identity::AccessContextManager::V1::GetAccessLevelRequest.new
796
+ #
797
+ # # Call the get_access_level method.
798
+ # result = client.get_access_level request
799
+ #
800
+ # # The returned object is of type Google::Identity::AccessContextManager::V1::AccessLevel.
801
+ # p result
802
+ #
662
803
  def get_access_level request, options = nil
663
804
  raise ::ArgumentError, "request must be provided" if request.nil?
664
805
 
@@ -736,6 +877,29 @@ module Google
736
877
  # @return [::Gapic::Operation]
737
878
  #
738
879
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
880
+ #
881
+ # @example Basic example
882
+ # require "google/identity/access_context_manager/v1"
883
+ #
884
+ # # Create a client object. The client can be reused for multiple calls.
885
+ # client = Google::Identity::AccessContextManager::V1::AccessContextManager::Rest::Client.new
886
+ #
887
+ # # Create a request. To set request fields, pass in keyword arguments.
888
+ # request = Google::Identity::AccessContextManager::V1::CreateAccessLevelRequest.new
889
+ #
890
+ # # Call the create_access_level method.
891
+ # result = client.create_access_level request
892
+ #
893
+ # # The returned object is of type Gapic::Operation. You can use it to
894
+ # # check the status of an operation, cancel it, or wait for results.
895
+ # # Here is how to wait for a response.
896
+ # result.wait_until_done! timeout: 60
897
+ # if result.response?
898
+ # p result.response
899
+ # else
900
+ # puts "No response received."
901
+ # end
902
+ #
739
903
  def create_access_level request, options = nil
740
904
  raise ::ArgumentError, "request must be provided" if request.nil?
741
905
 
@@ -812,6 +976,29 @@ module Google
812
976
  # @return [::Gapic::Operation]
813
977
  #
814
978
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
979
+ #
980
+ # @example Basic example
981
+ # require "google/identity/access_context_manager/v1"
982
+ #
983
+ # # Create a client object. The client can be reused for multiple calls.
984
+ # client = Google::Identity::AccessContextManager::V1::AccessContextManager::Rest::Client.new
985
+ #
986
+ # # Create a request. To set request fields, pass in keyword arguments.
987
+ # request = Google::Identity::AccessContextManager::V1::UpdateAccessLevelRequest.new
988
+ #
989
+ # # Call the update_access_level method.
990
+ # result = client.update_access_level request
991
+ #
992
+ # # The returned object is of type Gapic::Operation. You can use it to
993
+ # # check the status of an operation, cancel it, or wait for results.
994
+ # # Here is how to wait for a response.
995
+ # result.wait_until_done! timeout: 60
996
+ # if result.response?
997
+ # p result.response
998
+ # else
999
+ # puts "No response received."
1000
+ # end
1001
+ #
815
1002
  def update_access_level request, options = nil
816
1003
  raise ::ArgumentError, "request must be provided" if request.nil?
817
1004
 
@@ -884,6 +1071,29 @@ module Google
884
1071
  # @return [::Gapic::Operation]
885
1072
  #
886
1073
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1074
+ #
1075
+ # @example Basic example
1076
+ # require "google/identity/access_context_manager/v1"
1077
+ #
1078
+ # # Create a client object. The client can be reused for multiple calls.
1079
+ # client = Google::Identity::AccessContextManager::V1::AccessContextManager::Rest::Client.new
1080
+ #
1081
+ # # Create a request. To set request fields, pass in keyword arguments.
1082
+ # request = Google::Identity::AccessContextManager::V1::DeleteAccessLevelRequest.new
1083
+ #
1084
+ # # Call the delete_access_level method.
1085
+ # result = client.delete_access_level request
1086
+ #
1087
+ # # The returned object is of type Gapic::Operation. You can use it to
1088
+ # # check the status of an operation, cancel it, or wait for results.
1089
+ # # Here is how to wait for a response.
1090
+ # result.wait_until_done! timeout: 60
1091
+ # if result.response?
1092
+ # p result.response
1093
+ # else
1094
+ # puts "No response received."
1095
+ # end
1096
+ #
887
1097
  def delete_access_level request, options = nil
888
1098
  raise ::ArgumentError, "request must be provided" if request.nil?
889
1099
 
@@ -982,6 +1192,29 @@ module Google
982
1192
  # @return [::Gapic::Operation]
983
1193
  #
984
1194
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1195
+ #
1196
+ # @example Basic example
1197
+ # require "google/identity/access_context_manager/v1"
1198
+ #
1199
+ # # Create a client object. The client can be reused for multiple calls.
1200
+ # client = Google::Identity::AccessContextManager::V1::AccessContextManager::Rest::Client.new
1201
+ #
1202
+ # # Create a request. To set request fields, pass in keyword arguments.
1203
+ # request = Google::Identity::AccessContextManager::V1::ReplaceAccessLevelsRequest.new
1204
+ #
1205
+ # # Call the replace_access_levels method.
1206
+ # result = client.replace_access_levels request
1207
+ #
1208
+ # # The returned object is of type Gapic::Operation. You can use it to
1209
+ # # check the status of an operation, cancel it, or wait for results.
1210
+ # # Here is how to wait for a response.
1211
+ # result.wait_until_done! timeout: 60
1212
+ # if result.response?
1213
+ # p result.response
1214
+ # else
1215
+ # puts "No response received."
1216
+ # end
1217
+ #
985
1218
  def replace_access_levels request, options = nil
986
1219
  raise ::ArgumentError, "request must be provided" if request.nil?
987
1220
 
@@ -1059,6 +1292,26 @@ module Google
1059
1292
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Identity::AccessContextManager::V1::ServicePerimeter>]
1060
1293
  #
1061
1294
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1295
+ #
1296
+ # @example Basic example
1297
+ # require "google/identity/access_context_manager/v1"
1298
+ #
1299
+ # # Create a client object. The client can be reused for multiple calls.
1300
+ # client = Google::Identity::AccessContextManager::V1::AccessContextManager::Rest::Client.new
1301
+ #
1302
+ # # Create a request. To set request fields, pass in keyword arguments.
1303
+ # request = Google::Identity::AccessContextManager::V1::ListServicePerimetersRequest.new
1304
+ #
1305
+ # # Call the list_service_perimeters method.
1306
+ # result = client.list_service_perimeters request
1307
+ #
1308
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1309
+ # # over elements, and API calls will be issued to fetch pages as needed.
1310
+ # result.each do |item|
1311
+ # # Each element is of type ::Google::Identity::AccessContextManager::V1::ServicePerimeter.
1312
+ # p item
1313
+ # end
1314
+ #
1062
1315
  def list_service_perimeters request, options = nil
1063
1316
  raise ::ArgumentError, "request must be provided" if request.nil?
1064
1317
 
@@ -1128,6 +1381,22 @@ module Google
1128
1381
  # @return [::Google::Identity::AccessContextManager::V1::ServicePerimeter]
1129
1382
  #
1130
1383
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1384
+ #
1385
+ # @example Basic example
1386
+ # require "google/identity/access_context_manager/v1"
1387
+ #
1388
+ # # Create a client object. The client can be reused for multiple calls.
1389
+ # client = Google::Identity::AccessContextManager::V1::AccessContextManager::Rest::Client.new
1390
+ #
1391
+ # # Create a request. To set request fields, pass in keyword arguments.
1392
+ # request = Google::Identity::AccessContextManager::V1::GetServicePerimeterRequest.new
1393
+ #
1394
+ # # Call the get_service_perimeter method.
1395
+ # result = client.get_service_perimeter request
1396
+ #
1397
+ # # The returned object is of type Google::Identity::AccessContextManager::V1::ServicePerimeter.
1398
+ # p result
1399
+ #
1131
1400
  def get_service_perimeter request, options = nil
1132
1401
  raise ::ArgumentError, "request must be provided" if request.nil?
1133
1402
 
@@ -1206,6 +1475,29 @@ module Google
1206
1475
  # @return [::Gapic::Operation]
1207
1476
  #
1208
1477
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1478
+ #
1479
+ # @example Basic example
1480
+ # require "google/identity/access_context_manager/v1"
1481
+ #
1482
+ # # Create a client object. The client can be reused for multiple calls.
1483
+ # client = Google::Identity::AccessContextManager::V1::AccessContextManager::Rest::Client.new
1484
+ #
1485
+ # # Create a request. To set request fields, pass in keyword arguments.
1486
+ # request = Google::Identity::AccessContextManager::V1::CreateServicePerimeterRequest.new
1487
+ #
1488
+ # # Call the create_service_perimeter method.
1489
+ # result = client.create_service_perimeter request
1490
+ #
1491
+ # # The returned object is of type Gapic::Operation. You can use it to
1492
+ # # check the status of an operation, cancel it, or wait for results.
1493
+ # # Here is how to wait for a response.
1494
+ # result.wait_until_done! timeout: 60
1495
+ # if result.response?
1496
+ # p result.response
1497
+ # else
1498
+ # puts "No response received."
1499
+ # end
1500
+ #
1209
1501
  def create_service_perimeter request, options = nil
1210
1502
  raise ::ArgumentError, "request must be provided" if request.nil?
1211
1503
 
@@ -1279,6 +1571,29 @@ module Google
1279
1571
  # @return [::Gapic::Operation]
1280
1572
  #
1281
1573
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1574
+ #
1575
+ # @example Basic example
1576
+ # require "google/identity/access_context_manager/v1"
1577
+ #
1578
+ # # Create a client object. The client can be reused for multiple calls.
1579
+ # client = Google::Identity::AccessContextManager::V1::AccessContextManager::Rest::Client.new
1580
+ #
1581
+ # # Create a request. To set request fields, pass in keyword arguments.
1582
+ # request = Google::Identity::AccessContextManager::V1::UpdateServicePerimeterRequest.new
1583
+ #
1584
+ # # Call the update_service_perimeter method.
1585
+ # result = client.update_service_perimeter request
1586
+ #
1587
+ # # The returned object is of type Gapic::Operation. You can use it to
1588
+ # # check the status of an operation, cancel it, or wait for results.
1589
+ # # Here is how to wait for a response.
1590
+ # result.wait_until_done! timeout: 60
1591
+ # if result.response?
1592
+ # p result.response
1593
+ # else
1594
+ # puts "No response received."
1595
+ # end
1596
+ #
1282
1597
  def update_service_perimeter request, options = nil
1283
1598
  raise ::ArgumentError, "request must be provided" if request.nil?
1284
1599
 
@@ -1351,6 +1666,29 @@ module Google
1351
1666
  # @return [::Gapic::Operation]
1352
1667
  #
1353
1668
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1669
+ #
1670
+ # @example Basic example
1671
+ # require "google/identity/access_context_manager/v1"
1672
+ #
1673
+ # # Create a client object. The client can be reused for multiple calls.
1674
+ # client = Google::Identity::AccessContextManager::V1::AccessContextManager::Rest::Client.new
1675
+ #
1676
+ # # Create a request. To set request fields, pass in keyword arguments.
1677
+ # request = Google::Identity::AccessContextManager::V1::DeleteServicePerimeterRequest.new
1678
+ #
1679
+ # # Call the delete_service_perimeter method.
1680
+ # result = client.delete_service_perimeter request
1681
+ #
1682
+ # # The returned object is of type Gapic::Operation. You can use it to
1683
+ # # check the status of an operation, cancel it, or wait for results.
1684
+ # # Here is how to wait for a response.
1685
+ # result.wait_until_done! timeout: 60
1686
+ # if result.response?
1687
+ # p result.response
1688
+ # else
1689
+ # puts "No response received."
1690
+ # end
1691
+ #
1354
1692
  def delete_service_perimeter request, options = nil
1355
1693
  raise ::ArgumentError, "request must be provided" if request.nil?
1356
1694
 
@@ -1445,6 +1783,29 @@ module Google
1445
1783
  # @return [::Gapic::Operation]
1446
1784
  #
1447
1785
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1786
+ #
1787
+ # @example Basic example
1788
+ # require "google/identity/access_context_manager/v1"
1789
+ #
1790
+ # # Create a client object. The client can be reused for multiple calls.
1791
+ # client = Google::Identity::AccessContextManager::V1::AccessContextManager::Rest::Client.new
1792
+ #
1793
+ # # Create a request. To set request fields, pass in keyword arguments.
1794
+ # request = Google::Identity::AccessContextManager::V1::ReplaceServicePerimetersRequest.new
1795
+ #
1796
+ # # Call the replace_service_perimeters method.
1797
+ # result = client.replace_service_perimeters request
1798
+ #
1799
+ # # The returned object is of type Gapic::Operation. You can use it to
1800
+ # # check the status of an operation, cancel it, or wait for results.
1801
+ # # Here is how to wait for a response.
1802
+ # result.wait_until_done! timeout: 60
1803
+ # if result.response?
1804
+ # p result.response
1805
+ # else
1806
+ # puts "No response received."
1807
+ # end
1808
+ #
1448
1809
  def replace_service_perimeters request, options = nil
1449
1810
  raise ::ArgumentError, "request must be provided" if request.nil?
1450
1811
 
@@ -1536,6 +1897,29 @@ module Google
1536
1897
  # @return [::Gapic::Operation]
1537
1898
  #
1538
1899
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1900
+ #
1901
+ # @example Basic example
1902
+ # require "google/identity/access_context_manager/v1"
1903
+ #
1904
+ # # Create a client object. The client can be reused for multiple calls.
1905
+ # client = Google::Identity::AccessContextManager::V1::AccessContextManager::Rest::Client.new
1906
+ #
1907
+ # # Create a request. To set request fields, pass in keyword arguments.
1908
+ # request = Google::Identity::AccessContextManager::V1::CommitServicePerimetersRequest.new
1909
+ #
1910
+ # # Call the commit_service_perimeters method.
1911
+ # result = client.commit_service_perimeters request
1912
+ #
1913
+ # # The returned object is of type Gapic::Operation. You can use it to
1914
+ # # check the status of an operation, cancel it, or wait for results.
1915
+ # # Here is how to wait for a response.
1916
+ # result.wait_until_done! timeout: 60
1917
+ # if result.response?
1918
+ # p result.response
1919
+ # else
1920
+ # puts "No response received."
1921
+ # end
1922
+ #
1539
1923
  def commit_service_perimeters request, options = nil
1540
1924
  raise ::ArgumentError, "request must be provided" if request.nil?
1541
1925
 
@@ -1609,6 +1993,26 @@ module Google
1609
1993
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Identity::AccessContextManager::V1::GcpUserAccessBinding>]
1610
1994
  #
1611
1995
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1996
+ #
1997
+ # @example Basic example
1998
+ # require "google/identity/access_context_manager/v1"
1999
+ #
2000
+ # # Create a client object. The client can be reused for multiple calls.
2001
+ # client = Google::Identity::AccessContextManager::V1::AccessContextManager::Rest::Client.new
2002
+ #
2003
+ # # Create a request. To set request fields, pass in keyword arguments.
2004
+ # request = Google::Identity::AccessContextManager::V1::ListGcpUserAccessBindingsRequest.new
2005
+ #
2006
+ # # Call the list_gcp_user_access_bindings method.
2007
+ # result = client.list_gcp_user_access_bindings request
2008
+ #
2009
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
2010
+ # # over elements, and API calls will be issued to fetch pages as needed.
2011
+ # result.each do |item|
2012
+ # # Each element is of type ::Google::Identity::AccessContextManager::V1::GcpUserAccessBinding.
2013
+ # p item
2014
+ # end
2015
+ #
1612
2016
  def list_gcp_user_access_bindings request, options = nil
1613
2017
  raise ::ArgumentError, "request must be provided" if request.nil?
1614
2018
 
@@ -1674,6 +2078,22 @@ module Google
1674
2078
  # @return [::Google::Identity::AccessContextManager::V1::GcpUserAccessBinding]
1675
2079
  #
1676
2080
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2081
+ #
2082
+ # @example Basic example
2083
+ # require "google/identity/access_context_manager/v1"
2084
+ #
2085
+ # # Create a client object. The client can be reused for multiple calls.
2086
+ # client = Google::Identity::AccessContextManager::V1::AccessContextManager::Rest::Client.new
2087
+ #
2088
+ # # Create a request. To set request fields, pass in keyword arguments.
2089
+ # request = Google::Identity::AccessContextManager::V1::GetGcpUserAccessBindingRequest.new
2090
+ #
2091
+ # # Call the get_gcp_user_access_binding method.
2092
+ # result = client.get_gcp_user_access_binding request
2093
+ #
2094
+ # # The returned object is of type Google::Identity::AccessContextManager::V1::GcpUserAccessBinding.
2095
+ # p result
2096
+ #
1677
2097
  def get_gcp_user_access_binding request, options = nil
1678
2098
  raise ::ArgumentError, "request must be provided" if request.nil?
1679
2099
 
@@ -1748,6 +2168,29 @@ module Google
1748
2168
  # @return [::Gapic::Operation]
1749
2169
  #
1750
2170
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2171
+ #
2172
+ # @example Basic example
2173
+ # require "google/identity/access_context_manager/v1"
2174
+ #
2175
+ # # Create a client object. The client can be reused for multiple calls.
2176
+ # client = Google::Identity::AccessContextManager::V1::AccessContextManager::Rest::Client.new
2177
+ #
2178
+ # # Create a request. To set request fields, pass in keyword arguments.
2179
+ # request = Google::Identity::AccessContextManager::V1::CreateGcpUserAccessBindingRequest.new
2180
+ #
2181
+ # # Call the create_gcp_user_access_binding method.
2182
+ # result = client.create_gcp_user_access_binding request
2183
+ #
2184
+ # # The returned object is of type Gapic::Operation. You can use it to
2185
+ # # check the status of an operation, cancel it, or wait for results.
2186
+ # # Here is how to wait for a response.
2187
+ # result.wait_until_done! timeout: 60
2188
+ # if result.response?
2189
+ # p result.response
2190
+ # else
2191
+ # puts "No response received."
2192
+ # end
2193
+ #
1751
2194
  def create_gcp_user_access_binding request, options = nil
1752
2195
  raise ::ArgumentError, "request must be provided" if request.nil?
1753
2196
 
@@ -1823,6 +2266,29 @@ module Google
1823
2266
  # @return [::Gapic::Operation]
1824
2267
  #
1825
2268
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2269
+ #
2270
+ # @example Basic example
2271
+ # require "google/identity/access_context_manager/v1"
2272
+ #
2273
+ # # Create a client object. The client can be reused for multiple calls.
2274
+ # client = Google::Identity::AccessContextManager::V1::AccessContextManager::Rest::Client.new
2275
+ #
2276
+ # # Create a request. To set request fields, pass in keyword arguments.
2277
+ # request = Google::Identity::AccessContextManager::V1::UpdateGcpUserAccessBindingRequest.new
2278
+ #
2279
+ # # Call the update_gcp_user_access_binding method.
2280
+ # result = client.update_gcp_user_access_binding request
2281
+ #
2282
+ # # The returned object is of type Gapic::Operation. You can use it to
2283
+ # # check the status of an operation, cancel it, or wait for results.
2284
+ # # Here is how to wait for a response.
2285
+ # result.wait_until_done! timeout: 60
2286
+ # if result.response?
2287
+ # p result.response
2288
+ # else
2289
+ # puts "No response received."
2290
+ # end
2291
+ #
1826
2292
  def update_gcp_user_access_binding request, options = nil
1827
2293
  raise ::ArgumentError, "request must be provided" if request.nil?
1828
2294
 
@@ -1890,6 +2356,29 @@ module Google
1890
2356
  # @return [::Gapic::Operation]
1891
2357
  #
1892
2358
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2359
+ #
2360
+ # @example Basic example
2361
+ # require "google/identity/access_context_manager/v1"
2362
+ #
2363
+ # # Create a client object. The client can be reused for multiple calls.
2364
+ # client = Google::Identity::AccessContextManager::V1::AccessContextManager::Rest::Client.new
2365
+ #
2366
+ # # Create a request. To set request fields, pass in keyword arguments.
2367
+ # request = Google::Identity::AccessContextManager::V1::DeleteGcpUserAccessBindingRequest.new
2368
+ #
2369
+ # # Call the delete_gcp_user_access_binding method.
2370
+ # result = client.delete_gcp_user_access_binding request
2371
+ #
2372
+ # # The returned object is of type Gapic::Operation. You can use it to
2373
+ # # check the status of an operation, cancel it, or wait for results.
2374
+ # # Here is how to wait for a response.
2375
+ # result.wait_until_done! timeout: 60
2376
+ # if result.response?
2377
+ # p result.response
2378
+ # else
2379
+ # puts "No response received."
2380
+ # end
2381
+ #
1893
2382
  def delete_gcp_user_access_binding request, options = nil
1894
2383
  raise ::ArgumentError, "request must be provided" if request.nil?
1895
2384
 
@@ -1970,6 +2459,22 @@ module Google
1970
2459
  # @return [::Google::Iam::V1::Policy]
1971
2460
  #
1972
2461
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2462
+ #
2463
+ # @example Basic example
2464
+ # require "google/identity/access_context_manager/v1"
2465
+ #
2466
+ # # Create a client object. The client can be reused for multiple calls.
2467
+ # client = Google::Identity::AccessContextManager::V1::AccessContextManager::Rest::Client.new
2468
+ #
2469
+ # # Create a request. To set request fields, pass in keyword arguments.
2470
+ # request = Google::Iam::V1::SetIamPolicyRequest.new
2471
+ #
2472
+ # # Call the set_iam_policy method.
2473
+ # result = client.set_iam_policy request
2474
+ #
2475
+ # # The returned object is of type Google::Iam::V1::Policy.
2476
+ # p result
2477
+ #
1973
2478
  def set_iam_policy request, options = nil
1974
2479
  raise ::ArgumentError, "request must be provided" if request.nil?
1975
2480
 
@@ -2037,6 +2542,22 @@ module Google
2037
2542
  # @return [::Google::Iam::V1::Policy]
2038
2543
  #
2039
2544
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2545
+ #
2546
+ # @example Basic example
2547
+ # require "google/identity/access_context_manager/v1"
2548
+ #
2549
+ # # Create a client object. The client can be reused for multiple calls.
2550
+ # client = Google::Identity::AccessContextManager::V1::AccessContextManager::Rest::Client.new
2551
+ #
2552
+ # # Create a request. To set request fields, pass in keyword arguments.
2553
+ # request = Google::Iam::V1::GetIamPolicyRequest.new
2554
+ #
2555
+ # # Call the get_iam_policy method.
2556
+ # result = client.get_iam_policy request
2557
+ #
2558
+ # # The returned object is of type Google::Iam::V1::Policy.
2559
+ # p result
2560
+ #
2040
2561
  def get_iam_policy request, options = nil
2041
2562
  raise ::ArgumentError, "request must be provided" if request.nil?
2042
2563
 
@@ -2110,6 +2631,22 @@ module Google
2110
2631
  # @return [::Google::Iam::V1::TestIamPermissionsResponse]
2111
2632
  #
2112
2633
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2634
+ #
2635
+ # @example Basic example
2636
+ # require "google/identity/access_context_manager/v1"
2637
+ #
2638
+ # # Create a client object. The client can be reused for multiple calls.
2639
+ # client = Google::Identity::AccessContextManager::V1::AccessContextManager::Rest::Client.new
2640
+ #
2641
+ # # Create a request. To set request fields, pass in keyword arguments.
2642
+ # request = Google::Iam::V1::TestIamPermissionsRequest.new
2643
+ #
2644
+ # # Call the test_iam_permissions method.
2645
+ # result = client.test_iam_permissions request
2646
+ #
2647
+ # # The returned object is of type Google::Iam::V1::TestIamPermissionsResponse.
2648
+ # p result
2649
+ #
2113
2650
  def test_iam_permissions request, options = nil
2114
2651
  raise ::ArgumentError, "request must be provided" if request.nil?
2115
2652
 
@@ -136,6 +136,26 @@ module Google
136
136
  # @return [::Gapic::Operation]
137
137
  #
138
138
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
139
+ #
140
+ # @example Basic example
141
+ # require "google/longrunning"
142
+ #
143
+ # # Create a client object. The client can be reused for multiple calls.
144
+ # client = Google::Longrunning::Operations::Rest::Client.new
145
+ #
146
+ # # Create a request. To set request fields, pass in keyword arguments.
147
+ # request = Google::Longrunning::ListOperationsRequest.new
148
+ #
149
+ # # Call the list_operations method.
150
+ # result = client.list_operations request
151
+ #
152
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
153
+ # # over elements, and API calls will be issued to fetch pages as needed.
154
+ # result.each do |item|
155
+ # # Each element is of type ::Google::Longrunning::Operation.
156
+ # p item
157
+ # end
158
+ #
139
159
  def list_operations request, options = nil
140
160
  raise ::ArgumentError, "request must be provided" if request.nil?
141
161
 
@@ -201,6 +221,29 @@ module Google
201
221
  # @return [::Gapic::Operation]
202
222
  #
203
223
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
224
+ #
225
+ # @example Basic example
226
+ # require "google/longrunning"
227
+ #
228
+ # # Create a client object. The client can be reused for multiple calls.
229
+ # client = Google::Longrunning::Operations::Rest::Client.new
230
+ #
231
+ # # Create a request. To set request fields, pass in keyword arguments.
232
+ # request = Google::Longrunning::GetOperationRequest.new
233
+ #
234
+ # # Call the get_operation method.
235
+ # result = client.get_operation request
236
+ #
237
+ # # The returned object is of type Gapic::Operation. You can use it to
238
+ # # check the status of an operation, cancel it, or wait for results.
239
+ # # Here is how to wait for a response.
240
+ # result.wait_until_done! timeout: 60
241
+ # if result.response?
242
+ # p result.response
243
+ # else
244
+ # puts "No response received."
245
+ # end
246
+ #
204
247
  def get_operation request, options = nil
205
248
  raise ::ArgumentError, "request must be provided" if request.nil?
206
249
 
@@ -267,6 +310,22 @@ module Google
267
310
  # @return [::Google::Protobuf::Empty]
268
311
  #
269
312
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
313
+ #
314
+ # @example Basic example
315
+ # require "google/longrunning"
316
+ #
317
+ # # Create a client object. The client can be reused for multiple calls.
318
+ # client = Google::Longrunning::Operations::Rest::Client.new
319
+ #
320
+ # # Create a request. To set request fields, pass in keyword arguments.
321
+ # request = Google::Longrunning::DeleteOperationRequest.new
322
+ #
323
+ # # Call the delete_operation method.
324
+ # result = client.delete_operation request
325
+ #
326
+ # # The returned object is of type Google::Protobuf::Empty.
327
+ # p result
328
+ #
270
329
  def delete_operation request, options = nil
271
330
  raise ::ArgumentError, "request must be provided" if request.nil?
272
331
 
@@ -338,6 +397,22 @@ module Google
338
397
  # @return [::Google::Protobuf::Empty]
339
398
  #
340
399
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
400
+ #
401
+ # @example Basic example
402
+ # require "google/longrunning"
403
+ #
404
+ # # Create a client object. The client can be reused for multiple calls.
405
+ # client = Google::Longrunning::Operations::Rest::Client.new
406
+ #
407
+ # # Create a request. To set request fields, pass in keyword arguments.
408
+ # request = Google::Longrunning::CancelOperationRequest.new
409
+ #
410
+ # # Call the cancel_operation method.
411
+ # result = client.cancel_operation request
412
+ #
413
+ # # The returned object is of type Google::Protobuf::Empty.
414
+ # p result
415
+ #
341
416
  def cancel_operation request, options = nil
342
417
  raise ::ArgumentError, "request must be provided" if request.nil?
343
418
 
@@ -21,7 +21,7 @@ module Google
21
21
  module Identity
22
22
  module AccessContextManager
23
23
  module V1
24
- VERSION = "0.5.2"
24
+ VERSION = "0.6.0"
25
25
  end
26
26
  end
27
27
  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-identity-access_context_manager-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
@@ -245,7 +245,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
245
245
  - !ruby/object:Gem::Version
246
246
  version: '0'
247
247
  requirements: []
248
- rubygems_version: 3.4.2
248
+ rubygems_version: 3.4.19
249
249
  signing_key:
250
250
  specification_version: 4
251
251
  summary: An API for setting attribute based access control to requests to GCP services.