google-identity-access_context_manager-v1 0.1.0 → 0.1.1

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: b26f7279e869c364bbc370e51d3e7d08f6beb374a9e77b564727f78196f1c82f
4
- data.tar.gz: 3e39cc077bebcfb0534e37626d698ec3cfe6d66fc81c3881f727358357dffa8a
3
+ metadata.gz: a91e1c9557621578450eb677555d936cfd0e4a796ca908c3b6546988abf48604
4
+ data.tar.gz: 6876a88f03321eaaddd9e5ec387cae79a1b9a6ac084a2f42122e1ea7b5065f8d
5
5
  SHA512:
6
- metadata.gz: ccfd10a0eecc0630aa550cfa3e09a16ca1b52e6ede70dadc0e361a715962f33e7b623569f1e0efb1e4ef61e38bd08f1a8e36f587949bd19570e24762c850fd63
7
- data.tar.gz: 60d0dcc61773979c17361a528f501d69ee795da76e2f3851881cbc9469d5f404153dde994d73198e9c085ba41be71d5094f68d4c783d64eb77dd99cb49c3c64e
6
+ metadata.gz: e4fad5a5b1d1e2db432409769f7ccd1eef42edfad2498075b78a77c32d7b90a8e5756e96d7aaf886eddca4e32225e792b747829f720ba6859f145a047343b100
7
+ data.tar.gz: ceec2bc713f69b3bf8117fc76fe304446ee2c9f76679ac7bd3565254eb0e0b9da834f84f39132ee7f955aeccaa75c1c802df7c11bb08e12c47738c1c5ee81aa1
@@ -208,6 +208,27 @@ module Google
208
208
  #
209
209
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
210
210
  #
211
+ # @example Basic example
212
+ # require "google/identity/access_context_manager/v1"
213
+ #
214
+ # # Create a client object. The client can be reused for multiple calls.
215
+ # client = Google::Identity::AccessContextManager::V1::AccessContextManager::Client.new
216
+ #
217
+ # # Create a request. To set request fields, pass in keyword arguments.
218
+ # request = Google::Identity::AccessContextManager::V1::ListAccessPoliciesRequest.new
219
+ #
220
+ # # Call the list_access_policies method.
221
+ # result = client.list_access_policies request
222
+ #
223
+ # # The returned object is of type Gapic::PagedEnumerable. You can
224
+ # # iterate over all elements by calling #each, and the enumerable
225
+ # # will lazily make API calls to fetch subsequent pages. Other
226
+ # # methods are also available for managing paging directly.
227
+ # result.each do |response|
228
+ # # Each element is of type ::Google::Identity::AccessContextManager::V1::AccessPolicy.
229
+ # p response
230
+ # end
231
+ #
211
232
  def list_access_policies request, options = nil
212
233
  raise ::ArgumentError, "request must be provided" if request.nil?
213
234
 
@@ -274,6 +295,21 @@ module Google
274
295
  #
275
296
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
276
297
  #
298
+ # @example Basic example
299
+ # require "google/identity/access_context_manager/v1"
300
+ #
301
+ # # Create a client object. The client can be reused for multiple calls.
302
+ # client = Google::Identity::AccessContextManager::V1::AccessContextManager::Client.new
303
+ #
304
+ # # Create a request. To set request fields, pass in keyword arguments.
305
+ # request = Google::Identity::AccessContextManager::V1::GetAccessPolicyRequest.new
306
+ #
307
+ # # Call the get_access_policy method.
308
+ # result = client.get_access_policy request
309
+ #
310
+ # # The returned object is of type Google::Identity::AccessContextManager::V1::AccessPolicy.
311
+ # p result
312
+ #
277
313
  def get_access_policy request, options = nil
278
314
  raise ::ArgumentError, "request must be provided" if request.nil?
279
315
 
@@ -291,9 +327,11 @@ module Google
291
327
  gapic_version: ::Google::Identity::AccessContextManager::V1::VERSION
292
328
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
293
329
 
294
- header_params = {
295
- "name" => request.name
296
- }
330
+ header_params = {}
331
+ if request.name
332
+ header_params["name"] = request.name
333
+ end
334
+
297
335
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
298
336
  metadata[:"x-goog-request-params"] ||= request_params_header
299
337
 
@@ -362,6 +400,28 @@ module Google
362
400
  #
363
401
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
364
402
  #
403
+ # @example Basic example
404
+ # require "google/identity/access_context_manager/v1"
405
+ #
406
+ # # Create a client object. The client can be reused for multiple calls.
407
+ # client = Google::Identity::AccessContextManager::V1::AccessContextManager::Client.new
408
+ #
409
+ # # Create a request. To set request fields, pass in keyword arguments.
410
+ # request = Google::Identity::AccessContextManager::V1::AccessPolicy.new
411
+ #
412
+ # # Call the create_access_policy method.
413
+ # result = client.create_access_policy request
414
+ #
415
+ # # The returned object is of type Gapic::Operation. You can use this
416
+ # # object to check the status of an operation, cancel it, or wait
417
+ # # for results. Here is how to block until completion:
418
+ # result.wait_until_done! timeout: 60
419
+ # if result.response?
420
+ # p result.response
421
+ # else
422
+ # puts "Error!"
423
+ # end
424
+ #
365
425
  def create_access_policy request, options = nil
366
426
  raise ::ArgumentError, "request must be provided" if request.nil?
367
427
 
@@ -433,6 +493,28 @@ module Google
433
493
  #
434
494
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
435
495
  #
496
+ # @example Basic example
497
+ # require "google/identity/access_context_manager/v1"
498
+ #
499
+ # # Create a client object. The client can be reused for multiple calls.
500
+ # client = Google::Identity::AccessContextManager::V1::AccessContextManager::Client.new
501
+ #
502
+ # # Create a request. To set request fields, pass in keyword arguments.
503
+ # request = Google::Identity::AccessContextManager::V1::UpdateAccessPolicyRequest.new
504
+ #
505
+ # # Call the update_access_policy method.
506
+ # result = client.update_access_policy request
507
+ #
508
+ # # The returned object is of type Gapic::Operation. You can use this
509
+ # # object to check the status of an operation, cancel it, or wait
510
+ # # for results. Here is how to block until completion:
511
+ # result.wait_until_done! timeout: 60
512
+ # if result.response?
513
+ # p result.response
514
+ # else
515
+ # puts "Error!"
516
+ # end
517
+ #
436
518
  def update_access_policy request, options = nil
437
519
  raise ::ArgumentError, "request must be provided" if request.nil?
438
520
 
@@ -450,9 +532,11 @@ module Google
450
532
  gapic_version: ::Google::Identity::AccessContextManager::V1::VERSION
451
533
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
452
534
 
453
- header_params = {
454
- "policy.name" => request.policy.name
455
- }
535
+ header_params = {}
536
+ if request.policy&.name
537
+ header_params["policy.name"] = request.policy.name
538
+ end
539
+
456
540
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
457
541
  metadata[:"x-goog-request-params"] ||= request_params_header
458
542
 
@@ -508,6 +592,28 @@ module Google
508
592
  #
509
593
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
510
594
  #
595
+ # @example Basic example
596
+ # require "google/identity/access_context_manager/v1"
597
+ #
598
+ # # Create a client object. The client can be reused for multiple calls.
599
+ # client = Google::Identity::AccessContextManager::V1::AccessContextManager::Client.new
600
+ #
601
+ # # Create a request. To set request fields, pass in keyword arguments.
602
+ # request = Google::Identity::AccessContextManager::V1::DeleteAccessPolicyRequest.new
603
+ #
604
+ # # Call the delete_access_policy method.
605
+ # result = client.delete_access_policy request
606
+ #
607
+ # # The returned object is of type Gapic::Operation. You can use this
608
+ # # object to check the status of an operation, cancel it, or wait
609
+ # # for results. Here is how to block until completion:
610
+ # result.wait_until_done! timeout: 60
611
+ # if result.response?
612
+ # p result.response
613
+ # else
614
+ # puts "Error!"
615
+ # end
616
+ #
511
617
  def delete_access_policy request, options = nil
512
618
  raise ::ArgumentError, "request must be provided" if request.nil?
513
619
 
@@ -525,9 +631,11 @@ module Google
525
631
  gapic_version: ::Google::Identity::AccessContextManager::V1::VERSION
526
632
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
527
633
 
528
- header_params = {
529
- "name" => request.name
530
- }
634
+ header_params = {}
635
+ if request.name
636
+ header_params["name"] = request.name
637
+ end
638
+
531
639
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
532
640
  metadata[:"x-goog-request-params"] ||= request_params_header
533
641
 
@@ -595,6 +703,27 @@ module Google
595
703
  #
596
704
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
597
705
  #
706
+ # @example Basic example
707
+ # require "google/identity/access_context_manager/v1"
708
+ #
709
+ # # Create a client object. The client can be reused for multiple calls.
710
+ # client = Google::Identity::AccessContextManager::V1::AccessContextManager::Client.new
711
+ #
712
+ # # Create a request. To set request fields, pass in keyword arguments.
713
+ # request = Google::Identity::AccessContextManager::V1::ListAccessLevelsRequest.new
714
+ #
715
+ # # Call the list_access_levels method.
716
+ # result = client.list_access_levels request
717
+ #
718
+ # # The returned object is of type Gapic::PagedEnumerable. You can
719
+ # # iterate over all elements by calling #each, and the enumerable
720
+ # # will lazily make API calls to fetch subsequent pages. Other
721
+ # # methods are also available for managing paging directly.
722
+ # result.each do |response|
723
+ # # Each element is of type ::Google::Identity::AccessContextManager::V1::AccessLevel.
724
+ # p response
725
+ # end
726
+ #
598
727
  def list_access_levels request, options = nil
599
728
  raise ::ArgumentError, "request must be provided" if request.nil?
600
729
 
@@ -612,9 +741,11 @@ module Google
612
741
  gapic_version: ::Google::Identity::AccessContextManager::V1::VERSION
613
742
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
614
743
 
615
- header_params = {
616
- "parent" => request.parent
617
- }
744
+ header_params = {}
745
+ if request.parent
746
+ header_params["parent"] = request.parent
747
+ end
748
+
618
749
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
619
750
  metadata[:"x-goog-request-params"] ||= request_params_header
620
751
 
@@ -679,6 +810,21 @@ module Google
679
810
  #
680
811
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
681
812
  #
813
+ # @example Basic example
814
+ # require "google/identity/access_context_manager/v1"
815
+ #
816
+ # # Create a client object. The client can be reused for multiple calls.
817
+ # client = Google::Identity::AccessContextManager::V1::AccessContextManager::Client.new
818
+ #
819
+ # # Create a request. To set request fields, pass in keyword arguments.
820
+ # request = Google::Identity::AccessContextManager::V1::GetAccessLevelRequest.new
821
+ #
822
+ # # Call the get_access_level method.
823
+ # result = client.get_access_level request
824
+ #
825
+ # # The returned object is of type Google::Identity::AccessContextManager::V1::AccessLevel.
826
+ # p result
827
+ #
682
828
  def get_access_level request, options = nil
683
829
  raise ::ArgumentError, "request must be provided" if request.nil?
684
830
 
@@ -696,9 +842,11 @@ module Google
696
842
  gapic_version: ::Google::Identity::AccessContextManager::V1::VERSION
697
843
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
698
844
 
699
- header_params = {
700
- "name" => request.name
701
- }
845
+ header_params = {}
846
+ if request.name
847
+ header_params["name"] = request.name
848
+ end
849
+
702
850
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
703
851
  metadata[:"x-goog-request-params"] ||= request_params_header
704
852
 
@@ -762,6 +910,28 @@ module Google
762
910
  #
763
911
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
764
912
  #
913
+ # @example Basic example
914
+ # require "google/identity/access_context_manager/v1"
915
+ #
916
+ # # Create a client object. The client can be reused for multiple calls.
917
+ # client = Google::Identity::AccessContextManager::V1::AccessContextManager::Client.new
918
+ #
919
+ # # Create a request. To set request fields, pass in keyword arguments.
920
+ # request = Google::Identity::AccessContextManager::V1::CreateAccessLevelRequest.new
921
+ #
922
+ # # Call the create_access_level method.
923
+ # result = client.create_access_level request
924
+ #
925
+ # # The returned object is of type Gapic::Operation. You can use this
926
+ # # object to check the status of an operation, cancel it, or wait
927
+ # # for results. Here is how to block until completion:
928
+ # result.wait_until_done! timeout: 60
929
+ # if result.response?
930
+ # p result.response
931
+ # else
932
+ # puts "Error!"
933
+ # end
934
+ #
765
935
  def create_access_level request, options = nil
766
936
  raise ::ArgumentError, "request must be provided" if request.nil?
767
937
 
@@ -779,9 +949,11 @@ module Google
779
949
  gapic_version: ::Google::Identity::AccessContextManager::V1::VERSION
780
950
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
781
951
 
782
- header_params = {
783
- "parent" => request.parent
784
- }
952
+ header_params = {}
953
+ if request.parent
954
+ header_params["parent"] = request.parent
955
+ end
956
+
785
957
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
786
958
  metadata[:"x-goog-request-params"] ||= request_params_header
787
959
 
@@ -844,6 +1016,28 @@ module Google
844
1016
  #
845
1017
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
846
1018
  #
1019
+ # @example Basic example
1020
+ # require "google/identity/access_context_manager/v1"
1021
+ #
1022
+ # # Create a client object. The client can be reused for multiple calls.
1023
+ # client = Google::Identity::AccessContextManager::V1::AccessContextManager::Client.new
1024
+ #
1025
+ # # Create a request. To set request fields, pass in keyword arguments.
1026
+ # request = Google::Identity::AccessContextManager::V1::UpdateAccessLevelRequest.new
1027
+ #
1028
+ # # Call the update_access_level method.
1029
+ # result = client.update_access_level request
1030
+ #
1031
+ # # The returned object is of type Gapic::Operation. You can use this
1032
+ # # object to check the status of an operation, cancel it, or wait
1033
+ # # for results. Here is how to block until completion:
1034
+ # result.wait_until_done! timeout: 60
1035
+ # if result.response?
1036
+ # p result.response
1037
+ # else
1038
+ # puts "Error!"
1039
+ # end
1040
+ #
847
1041
  def update_access_level request, options = nil
848
1042
  raise ::ArgumentError, "request must be provided" if request.nil?
849
1043
 
@@ -861,9 +1055,11 @@ module Google
861
1055
  gapic_version: ::Google::Identity::AccessContextManager::V1::VERSION
862
1056
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
863
1057
 
864
- header_params = {
865
- "access_level.name" => request.access_level.name
866
- }
1058
+ header_params = {}
1059
+ if request.access_level&.name
1060
+ header_params["access_level.name"] = request.access_level.name
1061
+ end
1062
+
867
1063
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
868
1064
  metadata[:"x-goog-request-params"] ||= request_params_header
869
1065
 
@@ -922,6 +1118,28 @@ module Google
922
1118
  #
923
1119
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
924
1120
  #
1121
+ # @example Basic example
1122
+ # require "google/identity/access_context_manager/v1"
1123
+ #
1124
+ # # Create a client object. The client can be reused for multiple calls.
1125
+ # client = Google::Identity::AccessContextManager::V1::AccessContextManager::Client.new
1126
+ #
1127
+ # # Create a request. To set request fields, pass in keyword arguments.
1128
+ # request = Google::Identity::AccessContextManager::V1::DeleteAccessLevelRequest.new
1129
+ #
1130
+ # # Call the delete_access_level method.
1131
+ # result = client.delete_access_level request
1132
+ #
1133
+ # # The returned object is of type Gapic::Operation. You can use this
1134
+ # # object to check the status of an operation, cancel it, or wait
1135
+ # # for results. Here is how to block until completion:
1136
+ # result.wait_until_done! timeout: 60
1137
+ # if result.response?
1138
+ # p result.response
1139
+ # else
1140
+ # puts "Error!"
1141
+ # end
1142
+ #
925
1143
  def delete_access_level request, options = nil
926
1144
  raise ::ArgumentError, "request must be provided" if request.nil?
927
1145
 
@@ -939,9 +1157,11 @@ module Google
939
1157
  gapic_version: ::Google::Identity::AccessContextManager::V1::VERSION
940
1158
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
941
1159
 
942
- header_params = {
943
- "name" => request.name
944
- }
1160
+ header_params = {}
1161
+ if request.name
1162
+ header_params["name"] = request.name
1163
+ end
1164
+
945
1165
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
946
1166
  metadata[:"x-goog-request-params"] ||= request_params_header
947
1167
 
@@ -1026,6 +1246,28 @@ module Google
1026
1246
  #
1027
1247
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1028
1248
  #
1249
+ # @example Basic example
1250
+ # require "google/identity/access_context_manager/v1"
1251
+ #
1252
+ # # Create a client object. The client can be reused for multiple calls.
1253
+ # client = Google::Identity::AccessContextManager::V1::AccessContextManager::Client.new
1254
+ #
1255
+ # # Create a request. To set request fields, pass in keyword arguments.
1256
+ # request = Google::Identity::AccessContextManager::V1::ReplaceAccessLevelsRequest.new
1257
+ #
1258
+ # # Call the replace_access_levels method.
1259
+ # result = client.replace_access_levels request
1260
+ #
1261
+ # # The returned object is of type Gapic::Operation. You can use this
1262
+ # # object to check the status of an operation, cancel it, or wait
1263
+ # # for results. Here is how to block until completion:
1264
+ # result.wait_until_done! timeout: 60
1265
+ # if result.response?
1266
+ # p result.response
1267
+ # else
1268
+ # puts "Error!"
1269
+ # end
1270
+ #
1029
1271
  def replace_access_levels request, options = nil
1030
1272
  raise ::ArgumentError, "request must be provided" if request.nil?
1031
1273
 
@@ -1043,9 +1285,11 @@ module Google
1043
1285
  gapic_version: ::Google::Identity::AccessContextManager::V1::VERSION
1044
1286
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1045
1287
 
1046
- header_params = {
1047
- "parent" => request.parent
1048
- }
1288
+ header_params = {}
1289
+ if request.parent
1290
+ header_params["parent"] = request.parent
1291
+ end
1292
+
1049
1293
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1050
1294
  metadata[:"x-goog-request-params"] ||= request_params_header
1051
1295
 
@@ -1109,6 +1353,27 @@ module Google
1109
1353
  #
1110
1354
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1111
1355
  #
1356
+ # @example Basic example
1357
+ # require "google/identity/access_context_manager/v1"
1358
+ #
1359
+ # # Create a client object. The client can be reused for multiple calls.
1360
+ # client = Google::Identity::AccessContextManager::V1::AccessContextManager::Client.new
1361
+ #
1362
+ # # Create a request. To set request fields, pass in keyword arguments.
1363
+ # request = Google::Identity::AccessContextManager::V1::ListServicePerimetersRequest.new
1364
+ #
1365
+ # # Call the list_service_perimeters method.
1366
+ # result = client.list_service_perimeters request
1367
+ #
1368
+ # # The returned object is of type Gapic::PagedEnumerable. You can
1369
+ # # iterate over all elements by calling #each, and the enumerable
1370
+ # # will lazily make API calls to fetch subsequent pages. Other
1371
+ # # methods are also available for managing paging directly.
1372
+ # result.each do |response|
1373
+ # # Each element is of type ::Google::Identity::AccessContextManager::V1::ServicePerimeter.
1374
+ # p response
1375
+ # end
1376
+ #
1112
1377
  def list_service_perimeters request, options = nil
1113
1378
  raise ::ArgumentError, "request must be provided" if request.nil?
1114
1379
 
@@ -1126,9 +1391,11 @@ module Google
1126
1391
  gapic_version: ::Google::Identity::AccessContextManager::V1::VERSION
1127
1392
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1128
1393
 
1129
- header_params = {
1130
- "parent" => request.parent
1131
- }
1394
+ header_params = {}
1395
+ if request.parent
1396
+ header_params["parent"] = request.parent
1397
+ end
1398
+
1132
1399
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1133
1400
  metadata[:"x-goog-request-params"] ||= request_params_header
1134
1401
 
@@ -1184,6 +1451,21 @@ module Google
1184
1451
  #
1185
1452
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1186
1453
  #
1454
+ # @example Basic example
1455
+ # require "google/identity/access_context_manager/v1"
1456
+ #
1457
+ # # Create a client object. The client can be reused for multiple calls.
1458
+ # client = Google::Identity::AccessContextManager::V1::AccessContextManager::Client.new
1459
+ #
1460
+ # # Create a request. To set request fields, pass in keyword arguments.
1461
+ # request = Google::Identity::AccessContextManager::V1::GetServicePerimeterRequest.new
1462
+ #
1463
+ # # Call the get_service_perimeter method.
1464
+ # result = client.get_service_perimeter request
1465
+ #
1466
+ # # The returned object is of type Google::Identity::AccessContextManager::V1::ServicePerimeter.
1467
+ # p result
1468
+ #
1187
1469
  def get_service_perimeter request, options = nil
1188
1470
  raise ::ArgumentError, "request must be provided" if request.nil?
1189
1471
 
@@ -1201,9 +1483,11 @@ module Google
1201
1483
  gapic_version: ::Google::Identity::AccessContextManager::V1::VERSION
1202
1484
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1203
1485
 
1204
- header_params = {
1205
- "name" => request.name
1206
- }
1486
+ header_params = {}
1487
+ if request.name
1488
+ header_params["name"] = request.name
1489
+ end
1490
+
1207
1491
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1208
1492
  metadata[:"x-goog-request-params"] ||= request_params_header
1209
1493
 
@@ -1268,6 +1552,28 @@ module Google
1268
1552
  #
1269
1553
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1270
1554
  #
1555
+ # @example Basic example
1556
+ # require "google/identity/access_context_manager/v1"
1557
+ #
1558
+ # # Create a client object. The client can be reused for multiple calls.
1559
+ # client = Google::Identity::AccessContextManager::V1::AccessContextManager::Client.new
1560
+ #
1561
+ # # Create a request. To set request fields, pass in keyword arguments.
1562
+ # request = Google::Identity::AccessContextManager::V1::CreateServicePerimeterRequest.new
1563
+ #
1564
+ # # Call the create_service_perimeter method.
1565
+ # result = client.create_service_perimeter request
1566
+ #
1567
+ # # The returned object is of type Gapic::Operation. You can use this
1568
+ # # object to check the status of an operation, cancel it, or wait
1569
+ # # for results. Here is how to block until completion:
1570
+ # result.wait_until_done! timeout: 60
1571
+ # if result.response?
1572
+ # p result.response
1573
+ # else
1574
+ # puts "Error!"
1575
+ # end
1576
+ #
1271
1577
  def create_service_perimeter request, options = nil
1272
1578
  raise ::ArgumentError, "request must be provided" if request.nil?
1273
1579
 
@@ -1285,9 +1591,11 @@ module Google
1285
1591
  gapic_version: ::Google::Identity::AccessContextManager::V1::VERSION
1286
1592
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1287
1593
 
1288
- header_params = {
1289
- "parent" => request.parent
1290
- }
1594
+ header_params = {}
1595
+ if request.parent
1596
+ header_params["parent"] = request.parent
1597
+ end
1598
+
1291
1599
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1292
1600
  metadata[:"x-goog-request-params"] ||= request_params_header
1293
1601
 
@@ -1347,6 +1655,28 @@ module Google
1347
1655
  #
1348
1656
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1349
1657
  #
1658
+ # @example Basic example
1659
+ # require "google/identity/access_context_manager/v1"
1660
+ #
1661
+ # # Create a client object. The client can be reused for multiple calls.
1662
+ # client = Google::Identity::AccessContextManager::V1::AccessContextManager::Client.new
1663
+ #
1664
+ # # Create a request. To set request fields, pass in keyword arguments.
1665
+ # request = Google::Identity::AccessContextManager::V1::UpdateServicePerimeterRequest.new
1666
+ #
1667
+ # # Call the update_service_perimeter method.
1668
+ # result = client.update_service_perimeter request
1669
+ #
1670
+ # # The returned object is of type Gapic::Operation. You can use this
1671
+ # # object to check the status of an operation, cancel it, or wait
1672
+ # # for results. Here is how to block until completion:
1673
+ # result.wait_until_done! timeout: 60
1674
+ # if result.response?
1675
+ # p result.response
1676
+ # else
1677
+ # puts "Error!"
1678
+ # end
1679
+ #
1350
1680
  def update_service_perimeter request, options = nil
1351
1681
  raise ::ArgumentError, "request must be provided" if request.nil?
1352
1682
 
@@ -1364,9 +1694,11 @@ module Google
1364
1694
  gapic_version: ::Google::Identity::AccessContextManager::V1::VERSION
1365
1695
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1366
1696
 
1367
- header_params = {
1368
- "service_perimeter.name" => request.service_perimeter.name
1369
- }
1697
+ header_params = {}
1698
+ if request.service_perimeter&.name
1699
+ header_params["service_perimeter.name"] = request.service_perimeter.name
1700
+ end
1701
+
1370
1702
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1371
1703
  metadata[:"x-goog-request-params"] ||= request_params_header
1372
1704
 
@@ -1425,6 +1757,28 @@ module Google
1425
1757
  #
1426
1758
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1427
1759
  #
1760
+ # @example Basic example
1761
+ # require "google/identity/access_context_manager/v1"
1762
+ #
1763
+ # # Create a client object. The client can be reused for multiple calls.
1764
+ # client = Google::Identity::AccessContextManager::V1::AccessContextManager::Client.new
1765
+ #
1766
+ # # Create a request. To set request fields, pass in keyword arguments.
1767
+ # request = Google::Identity::AccessContextManager::V1::DeleteServicePerimeterRequest.new
1768
+ #
1769
+ # # Call the delete_service_perimeter method.
1770
+ # result = client.delete_service_perimeter request
1771
+ #
1772
+ # # The returned object is of type Gapic::Operation. You can use this
1773
+ # # object to check the status of an operation, cancel it, or wait
1774
+ # # for results. Here is how to block until completion:
1775
+ # result.wait_until_done! timeout: 60
1776
+ # if result.response?
1777
+ # p result.response
1778
+ # else
1779
+ # puts "Error!"
1780
+ # end
1781
+ #
1428
1782
  def delete_service_perimeter request, options = nil
1429
1783
  raise ::ArgumentError, "request must be provided" if request.nil?
1430
1784
 
@@ -1442,9 +1796,11 @@ module Google
1442
1796
  gapic_version: ::Google::Identity::AccessContextManager::V1::VERSION
1443
1797
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1444
1798
 
1445
- header_params = {
1446
- "name" => request.name
1447
- }
1799
+ header_params = {}
1800
+ if request.name
1801
+ header_params["name"] = request.name
1802
+ end
1803
+
1448
1804
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1449
1805
  metadata[:"x-goog-request-params"] ||= request_params_header
1450
1806
 
@@ -1525,6 +1881,28 @@ module Google
1525
1881
  #
1526
1882
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1527
1883
  #
1884
+ # @example Basic example
1885
+ # require "google/identity/access_context_manager/v1"
1886
+ #
1887
+ # # Create a client object. The client can be reused for multiple calls.
1888
+ # client = Google::Identity::AccessContextManager::V1::AccessContextManager::Client.new
1889
+ #
1890
+ # # Create a request. To set request fields, pass in keyword arguments.
1891
+ # request = Google::Identity::AccessContextManager::V1::ReplaceServicePerimetersRequest.new
1892
+ #
1893
+ # # Call the replace_service_perimeters method.
1894
+ # result = client.replace_service_perimeters request
1895
+ #
1896
+ # # The returned object is of type Gapic::Operation. You can use this
1897
+ # # object to check the status of an operation, cancel it, or wait
1898
+ # # for results. Here is how to block until completion:
1899
+ # result.wait_until_done! timeout: 60
1900
+ # if result.response?
1901
+ # p result.response
1902
+ # else
1903
+ # puts "Error!"
1904
+ # end
1905
+ #
1528
1906
  def replace_service_perimeters request, options = nil
1529
1907
  raise ::ArgumentError, "request must be provided" if request.nil?
1530
1908
 
@@ -1542,9 +1920,11 @@ module Google
1542
1920
  gapic_version: ::Google::Identity::AccessContextManager::V1::VERSION
1543
1921
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1544
1922
 
1545
- header_params = {
1546
- "parent" => request.parent
1547
- }
1923
+ header_params = {}
1924
+ if request.parent
1925
+ header_params["parent"] = request.parent
1926
+ end
1927
+
1548
1928
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1549
1929
  metadata[:"x-goog-request-params"] ||= request_params_header
1550
1930
 
@@ -1622,6 +2002,28 @@ module Google
1622
2002
  #
1623
2003
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1624
2004
  #
2005
+ # @example Basic example
2006
+ # require "google/identity/access_context_manager/v1"
2007
+ #
2008
+ # # Create a client object. The client can be reused for multiple calls.
2009
+ # client = Google::Identity::AccessContextManager::V1::AccessContextManager::Client.new
2010
+ #
2011
+ # # Create a request. To set request fields, pass in keyword arguments.
2012
+ # request = Google::Identity::AccessContextManager::V1::CommitServicePerimetersRequest.new
2013
+ #
2014
+ # # Call the commit_service_perimeters method.
2015
+ # result = client.commit_service_perimeters request
2016
+ #
2017
+ # # The returned object is of type Gapic::Operation. You can use this
2018
+ # # object to check the status of an operation, cancel it, or wait
2019
+ # # for results. Here is how to block until completion:
2020
+ # result.wait_until_done! timeout: 60
2021
+ # if result.response?
2022
+ # p result.response
2023
+ # else
2024
+ # puts "Error!"
2025
+ # end
2026
+ #
1625
2027
  def commit_service_perimeters request, options = nil
1626
2028
  raise ::ArgumentError, "request must be provided" if request.nil?
1627
2029
 
@@ -1639,9 +2041,11 @@ module Google
1639
2041
  gapic_version: ::Google::Identity::AccessContextManager::V1::VERSION
1640
2042
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1641
2043
 
1642
- header_params = {
1643
- "parent" => request.parent
1644
- }
2044
+ header_params = {}
2045
+ if request.parent
2046
+ header_params["parent"] = request.parent
2047
+ end
2048
+
1645
2049
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1646
2050
  metadata[:"x-goog-request-params"] ||= request_params_header
1647
2051
 
@@ -1701,6 +2105,27 @@ module Google
1701
2105
  #
1702
2106
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1703
2107
  #
2108
+ # @example Basic example
2109
+ # require "google/identity/access_context_manager/v1"
2110
+ #
2111
+ # # Create a client object. The client can be reused for multiple calls.
2112
+ # client = Google::Identity::AccessContextManager::V1::AccessContextManager::Client.new
2113
+ #
2114
+ # # Create a request. To set request fields, pass in keyword arguments.
2115
+ # request = Google::Identity::AccessContextManager::V1::ListGcpUserAccessBindingsRequest.new
2116
+ #
2117
+ # # Call the list_gcp_user_access_bindings method.
2118
+ # result = client.list_gcp_user_access_bindings request
2119
+ #
2120
+ # # The returned object is of type Gapic::PagedEnumerable. You can
2121
+ # # iterate over all elements by calling #each, and the enumerable
2122
+ # # will lazily make API calls to fetch subsequent pages. Other
2123
+ # # methods are also available for managing paging directly.
2124
+ # result.each do |response|
2125
+ # # Each element is of type ::Google::Identity::AccessContextManager::V1::GcpUserAccessBinding.
2126
+ # p response
2127
+ # end
2128
+ #
1704
2129
  def list_gcp_user_access_bindings request, options = nil
1705
2130
  raise ::ArgumentError, "request must be provided" if request.nil?
1706
2131
 
@@ -1718,9 +2143,11 @@ module Google
1718
2143
  gapic_version: ::Google::Identity::AccessContextManager::V1::VERSION
1719
2144
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1720
2145
 
1721
- header_params = {
1722
- "parent" => request.parent
1723
- }
2146
+ header_params = {}
2147
+ if request.parent
2148
+ header_params["parent"] = request.parent
2149
+ end
2150
+
1724
2151
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1725
2152
  metadata[:"x-goog-request-params"] ||= request_params_header
1726
2153
 
@@ -1772,6 +2199,21 @@ module Google
1772
2199
  #
1773
2200
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1774
2201
  #
2202
+ # @example Basic example
2203
+ # require "google/identity/access_context_manager/v1"
2204
+ #
2205
+ # # Create a client object. The client can be reused for multiple calls.
2206
+ # client = Google::Identity::AccessContextManager::V1::AccessContextManager::Client.new
2207
+ #
2208
+ # # Create a request. To set request fields, pass in keyword arguments.
2209
+ # request = Google::Identity::AccessContextManager::V1::GetGcpUserAccessBindingRequest.new
2210
+ #
2211
+ # # Call the get_gcp_user_access_binding method.
2212
+ # result = client.get_gcp_user_access_binding request
2213
+ #
2214
+ # # The returned object is of type Google::Identity::AccessContextManager::V1::GcpUserAccessBinding.
2215
+ # p result
2216
+ #
1775
2217
  def get_gcp_user_access_binding request, options = nil
1776
2218
  raise ::ArgumentError, "request must be provided" if request.nil?
1777
2219
 
@@ -1789,9 +2231,11 @@ module Google
1789
2231
  gapic_version: ::Google::Identity::AccessContextManager::V1::VERSION
1790
2232
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1791
2233
 
1792
- header_params = {
1793
- "name" => request.name
1794
- }
2234
+ header_params = {}
2235
+ if request.name
2236
+ header_params["name"] = request.name
2237
+ end
2238
+
1795
2239
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1796
2240
  metadata[:"x-goog-request-params"] ||= request_params_header
1797
2241
 
@@ -1852,6 +2296,28 @@ module Google
1852
2296
  #
1853
2297
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1854
2298
  #
2299
+ # @example Basic example
2300
+ # require "google/identity/access_context_manager/v1"
2301
+ #
2302
+ # # Create a client object. The client can be reused for multiple calls.
2303
+ # client = Google::Identity::AccessContextManager::V1::AccessContextManager::Client.new
2304
+ #
2305
+ # # Create a request. To set request fields, pass in keyword arguments.
2306
+ # request = Google::Identity::AccessContextManager::V1::CreateGcpUserAccessBindingRequest.new
2307
+ #
2308
+ # # Call the create_gcp_user_access_binding method.
2309
+ # result = client.create_gcp_user_access_binding request
2310
+ #
2311
+ # # The returned object is of type Gapic::Operation. You can use this
2312
+ # # object to check the status of an operation, cancel it, or wait
2313
+ # # for results. Here is how to block until completion:
2314
+ # result.wait_until_done! timeout: 60
2315
+ # if result.response?
2316
+ # p result.response
2317
+ # else
2318
+ # puts "Error!"
2319
+ # end
2320
+ #
1855
2321
  def create_gcp_user_access_binding request, options = nil
1856
2322
  raise ::ArgumentError, "request must be provided" if request.nil?
1857
2323
 
@@ -1869,9 +2335,11 @@ module Google
1869
2335
  gapic_version: ::Google::Identity::AccessContextManager::V1::VERSION
1870
2336
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1871
2337
 
1872
- header_params = {
1873
- "parent" => request.parent
1874
- }
2338
+ header_params = {}
2339
+ if request.parent
2340
+ header_params["parent"] = request.parent
2341
+ end
2342
+
1875
2343
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1876
2344
  metadata[:"x-goog-request-params"] ||= request_params_header
1877
2345
 
@@ -1933,6 +2401,28 @@ module Google
1933
2401
  #
1934
2402
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1935
2403
  #
2404
+ # @example Basic example
2405
+ # require "google/identity/access_context_manager/v1"
2406
+ #
2407
+ # # Create a client object. The client can be reused for multiple calls.
2408
+ # client = Google::Identity::AccessContextManager::V1::AccessContextManager::Client.new
2409
+ #
2410
+ # # Create a request. To set request fields, pass in keyword arguments.
2411
+ # request = Google::Identity::AccessContextManager::V1::UpdateGcpUserAccessBindingRequest.new
2412
+ #
2413
+ # # Call the update_gcp_user_access_binding method.
2414
+ # result = client.update_gcp_user_access_binding request
2415
+ #
2416
+ # # The returned object is of type Gapic::Operation. You can use this
2417
+ # # object to check the status of an operation, cancel it, or wait
2418
+ # # for results. Here is how to block until completion:
2419
+ # result.wait_until_done! timeout: 60
2420
+ # if result.response?
2421
+ # p result.response
2422
+ # else
2423
+ # puts "Error!"
2424
+ # end
2425
+ #
1936
2426
  def update_gcp_user_access_binding request, options = nil
1937
2427
  raise ::ArgumentError, "request must be provided" if request.nil?
1938
2428
 
@@ -1950,9 +2440,11 @@ module Google
1950
2440
  gapic_version: ::Google::Identity::AccessContextManager::V1::VERSION
1951
2441
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1952
2442
 
1953
- header_params = {
1954
- "gcp_user_access_binding.name" => request.gcp_user_access_binding.name
1955
- }
2443
+ header_params = {}
2444
+ if request.gcp_user_access_binding&.name
2445
+ header_params["gcp_user_access_binding.name"] = request.gcp_user_access_binding.name
2446
+ end
2447
+
1956
2448
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1957
2449
  metadata[:"x-goog-request-params"] ||= request_params_header
1958
2450
 
@@ -2006,6 +2498,28 @@ module Google
2006
2498
  #
2007
2499
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
2008
2500
  #
2501
+ # @example Basic example
2502
+ # require "google/identity/access_context_manager/v1"
2503
+ #
2504
+ # # Create a client object. The client can be reused for multiple calls.
2505
+ # client = Google::Identity::AccessContextManager::V1::AccessContextManager::Client.new
2506
+ #
2507
+ # # Create a request. To set request fields, pass in keyword arguments.
2508
+ # request = Google::Identity::AccessContextManager::V1::DeleteGcpUserAccessBindingRequest.new
2509
+ #
2510
+ # # Call the delete_gcp_user_access_binding method.
2511
+ # result = client.delete_gcp_user_access_binding request
2512
+ #
2513
+ # # The returned object is of type Gapic::Operation. You can use this
2514
+ # # object to check the status of an operation, cancel it, or wait
2515
+ # # for results. Here is how to block until completion:
2516
+ # result.wait_until_done! timeout: 60
2517
+ # if result.response?
2518
+ # p result.response
2519
+ # else
2520
+ # puts "Error!"
2521
+ # end
2522
+ #
2009
2523
  def delete_gcp_user_access_binding request, options = nil
2010
2524
  raise ::ArgumentError, "request must be provided" if request.nil?
2011
2525
 
@@ -2023,9 +2537,11 @@ module Google
2023
2537
  gapic_version: ::Google::Identity::AccessContextManager::V1::VERSION
2024
2538
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2025
2539
 
2026
- header_params = {
2027
- "name" => request.name
2028
- }
2540
+ header_params = {}
2541
+ if request.name
2542
+ header_params["name"] = request.name
2543
+ end
2544
+
2029
2545
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2030
2546
  metadata[:"x-goog-request-params"] ||= request_params_header
2031
2547
 
@@ -143,6 +143,27 @@ module Google
143
143
  #
144
144
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
145
145
  #
146
+ # @example Basic example
147
+ # require "google/longrunning"
148
+ #
149
+ # # Create a client object. The client can be reused for multiple calls.
150
+ # client = Google::Longrunning::Operations::Client.new
151
+ #
152
+ # # Create a request. To set request fields, pass in keyword arguments.
153
+ # request = Google::Longrunning::ListOperationsRequest.new
154
+ #
155
+ # # Call the list_operations method.
156
+ # result = client.list_operations request
157
+ #
158
+ # # The returned object is of type Gapic::PagedEnumerable. You can
159
+ # # iterate over all elements by calling #each, and the enumerable
160
+ # # will lazily make API calls to fetch subsequent pages. Other
161
+ # # methods are also available for managing paging directly.
162
+ # result.each do |response|
163
+ # # Each element is of type ::Google::Longrunning::Operation.
164
+ # p response
165
+ # end
166
+ #
146
167
  def list_operations request, options = nil
147
168
  raise ::ArgumentError, "request must be provided" if request.nil?
148
169
 
@@ -160,9 +181,11 @@ module Google
160
181
  gapic_version: ::Google::Identity::AccessContextManager::V1::VERSION
161
182
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
162
183
 
163
- header_params = {
164
- "name" => request.name
165
- }
184
+ header_params = {}
185
+ if request.name
186
+ header_params["name"] = request.name
187
+ end
188
+
166
189
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
167
190
  metadata[:"x-goog-request-params"] ||= request_params_header
168
191
 
@@ -215,6 +238,28 @@ module Google
215
238
  #
216
239
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
217
240
  #
241
+ # @example Basic example
242
+ # require "google/longrunning"
243
+ #
244
+ # # Create a client object. The client can be reused for multiple calls.
245
+ # client = Google::Longrunning::Operations::Client.new
246
+ #
247
+ # # Create a request. To set request fields, pass in keyword arguments.
248
+ # request = Google::Longrunning::GetOperationRequest.new
249
+ #
250
+ # # Call the get_operation method.
251
+ # result = client.get_operation request
252
+ #
253
+ # # The returned object is of type Gapic::Operation. You can use this
254
+ # # object to check the status of an operation, cancel it, or wait
255
+ # # for results. Here is how to block until completion:
256
+ # result.wait_until_done! timeout: 60
257
+ # if result.response?
258
+ # p result.response
259
+ # else
260
+ # puts "Error!"
261
+ # end
262
+ #
218
263
  def get_operation request, options = nil
219
264
  raise ::ArgumentError, "request must be provided" if request.nil?
220
265
 
@@ -232,9 +277,11 @@ module Google
232
277
  gapic_version: ::Google::Identity::AccessContextManager::V1::VERSION
233
278
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
234
279
 
235
- header_params = {
236
- "name" => request.name
237
- }
280
+ header_params = {}
281
+ if request.name
282
+ header_params["name"] = request.name
283
+ end
284
+
238
285
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
239
286
  metadata[:"x-goog-request-params"] ||= request_params_header
240
287
 
@@ -287,6 +334,21 @@ module Google
287
334
  #
288
335
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
289
336
  #
337
+ # @example Basic example
338
+ # require "google/longrunning"
339
+ #
340
+ # # Create a client object. The client can be reused for multiple calls.
341
+ # client = Google::Longrunning::Operations::Client.new
342
+ #
343
+ # # Create a request. To set request fields, pass in keyword arguments.
344
+ # request = Google::Longrunning::DeleteOperationRequest.new
345
+ #
346
+ # # Call the delete_operation method.
347
+ # result = client.delete_operation request
348
+ #
349
+ # # The returned object is of type Google::Protobuf::Empty.
350
+ # p result
351
+ #
290
352
  def delete_operation request, options = nil
291
353
  raise ::ArgumentError, "request must be provided" if request.nil?
292
354
 
@@ -304,9 +366,11 @@ module Google
304
366
  gapic_version: ::Google::Identity::AccessContextManager::V1::VERSION
305
367
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
306
368
 
307
- header_params = {
308
- "name" => request.name
309
- }
369
+ header_params = {}
370
+ if request.name
371
+ header_params["name"] = request.name
372
+ end
373
+
310
374
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
311
375
  metadata[:"x-goog-request-params"] ||= request_params_header
312
376
 
@@ -364,6 +428,21 @@ module Google
364
428
  #
365
429
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
366
430
  #
431
+ # @example Basic example
432
+ # require "google/longrunning"
433
+ #
434
+ # # Create a client object. The client can be reused for multiple calls.
435
+ # client = Google::Longrunning::Operations::Client.new
436
+ #
437
+ # # Create a request. To set request fields, pass in keyword arguments.
438
+ # request = Google::Longrunning::CancelOperationRequest.new
439
+ #
440
+ # # Call the cancel_operation method.
441
+ # result = client.cancel_operation request
442
+ #
443
+ # # The returned object is of type Google::Protobuf::Empty.
444
+ # p result
445
+ #
367
446
  def cancel_operation request, options = nil
368
447
  raise ::ArgumentError, "request must be provided" if request.nil?
369
448
 
@@ -381,9 +460,11 @@ module Google
381
460
  gapic_version: ::Google::Identity::AccessContextManager::V1::VERSION
382
461
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
383
462
 
384
- header_params = {
385
- "name" => request.name
386
- }
463
+ header_params = {}
464
+ if request.name
465
+ header_params["name"] = request.name
466
+ end
467
+
387
468
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
388
469
  metadata[:"x-goog-request-params"] ||= request_params_header
389
470
 
@@ -444,6 +525,28 @@ module Google
444
525
  #
445
526
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
446
527
  #
528
+ # @example Basic example
529
+ # require "google/longrunning"
530
+ #
531
+ # # Create a client object. The client can be reused for multiple calls.
532
+ # client = Google::Longrunning::Operations::Client.new
533
+ #
534
+ # # Create a request. To set request fields, pass in keyword arguments.
535
+ # request = Google::Longrunning::WaitOperationRequest.new
536
+ #
537
+ # # Call the wait_operation method.
538
+ # result = client.wait_operation request
539
+ #
540
+ # # The returned object is of type Gapic::Operation. You can use this
541
+ # # object to check the status of an operation, cancel it, or wait
542
+ # # for results. Here is how to block until completion:
543
+ # result.wait_until_done! timeout: 60
544
+ # if result.response?
545
+ # p result.response
546
+ # else
547
+ # puts "Error!"
548
+ # end
549
+ #
447
550
  def wait_operation request, options = nil
448
551
  raise ::ArgumentError, "request must be provided" if request.nil?
449
552
 
@@ -21,7 +21,7 @@ module Google
21
21
  module Identity
22
22
  module AccessContextManager
23
23
  module V1
24
- VERSION = "0.1.0"
24
+ VERSION = "0.1.1"
25
25
  end
26
26
  end
27
27
  end
@@ -1,9 +1,9 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/identity/accesscontextmanager/type/device_resources.proto
3
3
 
4
+ require 'google/api/annotations_pb'
4
5
  require 'google/protobuf'
5
6
 
6
- require 'google/api/annotations_pb'
7
7
  Google::Protobuf::DescriptorPool.generated_pool.build do
8
8
  add_file("google/identity/accesscontextmanager/type/device_resources.proto", :syntax => :proto3) do
9
9
  add_enum "google.identity.accesscontextmanager.type.DeviceEncryptionStatus" do
@@ -1,8 +1,6 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/identity/accesscontextmanager/v1/access_context_manager.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/api/annotations_pb'
7
5
  require 'google/api/client_pb'
8
6
  require 'google/api/field_behavior_pb'
@@ -13,6 +11,8 @@ require 'google/identity/accesscontextmanager/v1/gcp_user_access_binding_pb'
13
11
  require 'google/identity/accesscontextmanager/v1/service_perimeter_pb'
14
12
  require 'google/longrunning/operations_pb'
15
13
  require 'google/protobuf/field_mask_pb'
14
+ require 'google/protobuf'
15
+
16
16
  Google::Protobuf::DescriptorPool.generated_pool.build do
17
17
  add_file("google/identity/accesscontextmanager/v1/access_context_manager.proto", :syntax => :proto3) do
18
18
  add_message "google.identity.accesscontextmanager.v1.ListAccessPoliciesRequest" do
@@ -1,13 +1,13 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/identity/accesscontextmanager/v1/access_level.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/api/resource_pb'
7
5
  require 'google/identity/accesscontextmanager/type/device_resources_pb'
8
6
  require 'google/protobuf/timestamp_pb'
9
7
  require 'google/type/expr_pb'
10
8
  require 'google/api/annotations_pb'
9
+ require 'google/protobuf'
10
+
11
11
  Google::Protobuf::DescriptorPool.generated_pool.build do
12
12
  add_file("google/identity/accesscontextmanager/v1/access_level.proto", :syntax => :proto3) do
13
13
  add_message "google.identity.accesscontextmanager.v1.AccessLevel" do
@@ -1,11 +1,11 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/identity/accesscontextmanager/v1/access_policy.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/api/resource_pb'
7
5
  require 'google/protobuf/timestamp_pb'
8
6
  require 'google/api/annotations_pb'
7
+ require 'google/protobuf'
8
+
9
9
  Google::Protobuf::DescriptorPool.generated_pool.build do
10
10
  add_file("google/identity/accesscontextmanager/v1/access_policy.proto", :syntax => :proto3) do
11
11
  add_message "google.identity.accesscontextmanager.v1.AccessPolicy" do
@@ -1,11 +1,11 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/identity/accesscontextmanager/v1/gcp_user_access_binding.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/api/field_behavior_pb'
7
5
  require 'google/api/resource_pb'
8
6
  require 'google/api/annotations_pb'
7
+ require 'google/protobuf'
8
+
9
9
  Google::Protobuf::DescriptorPool.generated_pool.build do
10
10
  add_file("google/identity/accesscontextmanager/v1/gcp_user_access_binding.proto", :syntax => :proto3) do
11
11
  add_message "google.identity.accesscontextmanager.v1.GcpUserAccessBinding" do
@@ -1,11 +1,11 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/identity/accesscontextmanager/v1/service_perimeter.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/api/resource_pb'
7
5
  require 'google/protobuf/timestamp_pb'
8
6
  require 'google/api/annotations_pb'
7
+ require 'google/protobuf'
8
+
9
9
  Google::Protobuf::DescriptorPool.generated_pool.build do
10
10
  add_file("google/identity/accesscontextmanager/v1/service_perimeter.proto", :syntax => :proto3) do
11
11
  add_message "google.identity.accesscontextmanager.v1.ServicePerimeter" do
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.1.0
4
+ version: 0.1.1
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-09-22 00:00:00.000000000 Z
11
+ date: 2021-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common