google-cloud-container-v1 0.7.1 → 0.7.2

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: d77b8ec454a6400f12e8f9a1571423fdc4e844a41529bd4be68f5c50b6bf20aa
4
- data.tar.gz: e46728d30b5bf331394631432076c0059d49f5f9a58a4a53403d13370a01b8cb
3
+ metadata.gz: 7d4b30dd957d29e1d4a8db3cf5f9b9694280d44e66be261f4496cfe9480dbfb5
4
+ data.tar.gz: e87c4422bd13ac6e290290782bf5ce5500342c600311837973dc9bef0bde6da6
5
5
  SHA512:
6
- metadata.gz: 91853ea916dc200a4cc789251d8afb24c92f81f1fa61c9cc124f196c5ef676d2716c1d151e29f93a9e126e01b5c3c72c92b3dc05a54adc07cb5f234185590918
7
- data.tar.gz: 8fac79b09b7c96a5a283514da7c38cf5aabdb4b34c582969a42f06e692f1b97b9e4267f8c7c85e60340c92fab45eaa890cb98308f6620dc4c4b0d2aa5ac624c7
6
+ metadata.gz: 4a6deb5bb2145ff573f7c09ac6da146aa9d3342510b2024fa9bcf9472e4eadef7b02781cfd6ca2776223fac0a9ba7c4ff62886342ac2b6b1f1ed93dfe6521d30
7
+ data.tar.gz: 04f3e9b010601eb4ddb1da7f8a1b4513687fb981068945a610edaf125a243567537168295735fb1037d792d6540ed940348c1d2813e284f751b8228a3597e0f9
@@ -270,6 +270,21 @@ module Google
270
270
  #
271
271
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
272
272
  #
273
+ # @example Basic example
274
+ # require "google/cloud/container/v1"
275
+ #
276
+ # # Create a client object. The client can be reused for multiple calls.
277
+ # client = Google::Cloud::Container::V1::ClusterManager::Client.new
278
+ #
279
+ # # Create a request. To set request fields, pass in keyword arguments.
280
+ # request = Google::Cloud::Container::V1::ListClustersRequest.new
281
+ #
282
+ # # Call the list_clusters method.
283
+ # result = client.list_clusters request
284
+ #
285
+ # # The returned object is of type Google::Cloud::Container::V1::ListClustersResponse.
286
+ # p result
287
+ #
273
288
  def list_clusters request, options = nil
274
289
  raise ::ArgumentError, "request must be provided" if request.nil?
275
290
 
@@ -287,9 +302,11 @@ module Google
287
302
  gapic_version: ::Google::Cloud::Container::V1::VERSION
288
303
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
289
304
 
290
- header_params = {
291
- "parent" => request.parent
292
- }
305
+ header_params = {}
306
+ if request.parent
307
+ header_params["parent"] = request.parent
308
+ end
309
+
293
310
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
294
311
  metadata[:"x-goog-request-params"] ||= request_params_header
295
312
 
@@ -351,6 +368,21 @@ module Google
351
368
  #
352
369
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
353
370
  #
371
+ # @example Basic example
372
+ # require "google/cloud/container/v1"
373
+ #
374
+ # # Create a client object. The client can be reused for multiple calls.
375
+ # client = Google::Cloud::Container::V1::ClusterManager::Client.new
376
+ #
377
+ # # Create a request. To set request fields, pass in keyword arguments.
378
+ # request = Google::Cloud::Container::V1::GetClusterRequest.new
379
+ #
380
+ # # Call the get_cluster method.
381
+ # result = client.get_cluster request
382
+ #
383
+ # # The returned object is of type Google::Cloud::Container::V1::Cluster.
384
+ # p result
385
+ #
354
386
  def get_cluster request, options = nil
355
387
  raise ::ArgumentError, "request must be provided" if request.nil?
356
388
 
@@ -368,9 +400,11 @@ module Google
368
400
  gapic_version: ::Google::Cloud::Container::V1::VERSION
369
401
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
370
402
 
371
- header_params = {
372
- "name" => request.name
373
- }
403
+ header_params = {}
404
+ if request.name
405
+ header_params["name"] = request.name
406
+ end
407
+
374
408
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
375
409
  metadata[:"x-goog-request-params"] ||= request_params_header
376
410
 
@@ -445,6 +479,21 @@ module Google
445
479
  #
446
480
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
447
481
  #
482
+ # @example Basic example
483
+ # require "google/cloud/container/v1"
484
+ #
485
+ # # Create a client object. The client can be reused for multiple calls.
486
+ # client = Google::Cloud::Container::V1::ClusterManager::Client.new
487
+ #
488
+ # # Create a request. To set request fields, pass in keyword arguments.
489
+ # request = Google::Cloud::Container::V1::CreateClusterRequest.new
490
+ #
491
+ # # Call the create_cluster method.
492
+ # result = client.create_cluster request
493
+ #
494
+ # # The returned object is of type Google::Cloud::Container::V1::Operation.
495
+ # p result
496
+ #
448
497
  def create_cluster request, options = nil
449
498
  raise ::ArgumentError, "request must be provided" if request.nil?
450
499
 
@@ -462,9 +511,11 @@ module Google
462
511
  gapic_version: ::Google::Cloud::Container::V1::VERSION
463
512
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
464
513
 
465
- header_params = {
466
- "parent" => request.parent
467
- }
514
+ header_params = {}
515
+ if request.parent
516
+ header_params["parent"] = request.parent
517
+ end
518
+
468
519
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
469
520
  metadata[:"x-goog-request-params"] ||= request_params_header
470
521
 
@@ -528,6 +579,21 @@ module Google
528
579
  #
529
580
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
530
581
  #
582
+ # @example Basic example
583
+ # require "google/cloud/container/v1"
584
+ #
585
+ # # Create a client object. The client can be reused for multiple calls.
586
+ # client = Google::Cloud::Container::V1::ClusterManager::Client.new
587
+ #
588
+ # # Create a request. To set request fields, pass in keyword arguments.
589
+ # request = Google::Cloud::Container::V1::UpdateClusterRequest.new
590
+ #
591
+ # # Call the update_cluster method.
592
+ # result = client.update_cluster request
593
+ #
594
+ # # The returned object is of type Google::Cloud::Container::V1::Operation.
595
+ # p result
596
+ #
531
597
  def update_cluster request, options = nil
532
598
  raise ::ArgumentError, "request must be provided" if request.nil?
533
599
 
@@ -545,9 +611,11 @@ module Google
545
611
  gapic_version: ::Google::Cloud::Container::V1::VERSION
546
612
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
547
613
 
548
- header_params = {
549
- "name" => request.name
550
- }
614
+ header_params = {}
615
+ if request.name
616
+ header_params["name"] = request.name
617
+ end
618
+
551
619
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
552
620
  metadata[:"x-goog-request-params"] ||= request_params_header
553
621
 
@@ -637,6 +705,21 @@ module Google
637
705
  #
638
706
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
639
707
  #
708
+ # @example Basic example
709
+ # require "google/cloud/container/v1"
710
+ #
711
+ # # Create a client object. The client can be reused for multiple calls.
712
+ # client = Google::Cloud::Container::V1::ClusterManager::Client.new
713
+ #
714
+ # # Create a request. To set request fields, pass in keyword arguments.
715
+ # request = Google::Cloud::Container::V1::UpdateNodePoolRequest.new
716
+ #
717
+ # # Call the update_node_pool method.
718
+ # result = client.update_node_pool request
719
+ #
720
+ # # The returned object is of type Google::Cloud::Container::V1::Operation.
721
+ # p result
722
+ #
640
723
  def update_node_pool request, options = nil
641
724
  raise ::ArgumentError, "request must be provided" if request.nil?
642
725
 
@@ -654,9 +737,11 @@ module Google
654
737
  gapic_version: ::Google::Cloud::Container::V1::VERSION
655
738
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
656
739
 
657
- header_params = {
658
- "name" => request.name
659
- }
740
+ header_params = {}
741
+ if request.name
742
+ header_params["name"] = request.name
743
+ end
744
+
660
745
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
661
746
  metadata[:"x-goog-request-params"] ||= request_params_header
662
747
 
@@ -724,6 +809,21 @@ module Google
724
809
  #
725
810
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
726
811
  #
812
+ # @example Basic example
813
+ # require "google/cloud/container/v1"
814
+ #
815
+ # # Create a client object. The client can be reused for multiple calls.
816
+ # client = Google::Cloud::Container::V1::ClusterManager::Client.new
817
+ #
818
+ # # Create a request. To set request fields, pass in keyword arguments.
819
+ # request = Google::Cloud::Container::V1::SetNodePoolAutoscalingRequest.new
820
+ #
821
+ # # Call the set_node_pool_autoscaling method.
822
+ # result = client.set_node_pool_autoscaling request
823
+ #
824
+ # # The returned object is of type Google::Cloud::Container::V1::Operation.
825
+ # p result
826
+ #
727
827
  def set_node_pool_autoscaling request, options = nil
728
828
  raise ::ArgumentError, "request must be provided" if request.nil?
729
829
 
@@ -741,9 +841,11 @@ module Google
741
841
  gapic_version: ::Google::Cloud::Container::V1::VERSION
742
842
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
743
843
 
744
- header_params = {
745
- "name" => request.name
746
- }
844
+ header_params = {}
845
+ if request.name
846
+ header_params["name"] = request.name
847
+ end
848
+
747
849
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
748
850
  metadata[:"x-goog-request-params"] ||= request_params_header
749
851
 
@@ -817,6 +919,21 @@ module Google
817
919
  #
818
920
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
819
921
  #
922
+ # @example Basic example
923
+ # require "google/cloud/container/v1"
924
+ #
925
+ # # Create a client object. The client can be reused for multiple calls.
926
+ # client = Google::Cloud::Container::V1::ClusterManager::Client.new
927
+ #
928
+ # # Create a request. To set request fields, pass in keyword arguments.
929
+ # request = Google::Cloud::Container::V1::SetLoggingServiceRequest.new
930
+ #
931
+ # # Call the set_logging_service method.
932
+ # result = client.set_logging_service request
933
+ #
934
+ # # The returned object is of type Google::Cloud::Container::V1::Operation.
935
+ # p result
936
+ #
820
937
  def set_logging_service request, options = nil
821
938
  raise ::ArgumentError, "request must be provided" if request.nil?
822
939
 
@@ -834,9 +951,11 @@ module Google
834
951
  gapic_version: ::Google::Cloud::Container::V1::VERSION
835
952
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
836
953
 
837
- header_params = {
838
- "name" => request.name
839
- }
954
+ header_params = {}
955
+ if request.name
956
+ header_params["name"] = request.name
957
+ end
958
+
840
959
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
841
960
  metadata[:"x-goog-request-params"] ||= request_params_header
842
961
 
@@ -910,6 +1029,21 @@ module Google
910
1029
  #
911
1030
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
912
1031
  #
1032
+ # @example Basic example
1033
+ # require "google/cloud/container/v1"
1034
+ #
1035
+ # # Create a client object. The client can be reused for multiple calls.
1036
+ # client = Google::Cloud::Container::V1::ClusterManager::Client.new
1037
+ #
1038
+ # # Create a request. To set request fields, pass in keyword arguments.
1039
+ # request = Google::Cloud::Container::V1::SetMonitoringServiceRequest.new
1040
+ #
1041
+ # # Call the set_monitoring_service method.
1042
+ # result = client.set_monitoring_service request
1043
+ #
1044
+ # # The returned object is of type Google::Cloud::Container::V1::Operation.
1045
+ # p result
1046
+ #
913
1047
  def set_monitoring_service request, options = nil
914
1048
  raise ::ArgumentError, "request must be provided" if request.nil?
915
1049
 
@@ -927,9 +1061,11 @@ module Google
927
1061
  gapic_version: ::Google::Cloud::Container::V1::VERSION
928
1062
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
929
1063
 
930
- header_params = {
931
- "name" => request.name
932
- }
1064
+ header_params = {}
1065
+ if request.name
1066
+ header_params["name"] = request.name
1067
+ end
1068
+
933
1069
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
934
1070
  metadata[:"x-goog-request-params"] ||= request_params_header
935
1071
 
@@ -994,6 +1130,21 @@ module Google
994
1130
  #
995
1131
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
996
1132
  #
1133
+ # @example Basic example
1134
+ # require "google/cloud/container/v1"
1135
+ #
1136
+ # # Create a client object. The client can be reused for multiple calls.
1137
+ # client = Google::Cloud::Container::V1::ClusterManager::Client.new
1138
+ #
1139
+ # # Create a request. To set request fields, pass in keyword arguments.
1140
+ # request = Google::Cloud::Container::V1::SetAddonsConfigRequest.new
1141
+ #
1142
+ # # Call the set_addons_config method.
1143
+ # result = client.set_addons_config request
1144
+ #
1145
+ # # The returned object is of type Google::Cloud::Container::V1::Operation.
1146
+ # p result
1147
+ #
997
1148
  def set_addons_config request, options = nil
998
1149
  raise ::ArgumentError, "request must be provided" if request.nil?
999
1150
 
@@ -1011,9 +1162,11 @@ module Google
1011
1162
  gapic_version: ::Google::Cloud::Container::V1::VERSION
1012
1163
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1013
1164
 
1014
- header_params = {
1015
- "name" => request.name
1016
- }
1165
+ header_params = {}
1166
+ if request.name
1167
+ header_params["name"] = request.name
1168
+ end
1169
+
1017
1170
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1018
1171
  metadata[:"x-goog-request-params"] ||= request_params_header
1019
1172
 
@@ -1088,6 +1241,21 @@ module Google
1088
1241
  #
1089
1242
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1090
1243
  #
1244
+ # @example Basic example
1245
+ # require "google/cloud/container/v1"
1246
+ #
1247
+ # # Create a client object. The client can be reused for multiple calls.
1248
+ # client = Google::Cloud::Container::V1::ClusterManager::Client.new
1249
+ #
1250
+ # # Create a request. To set request fields, pass in keyword arguments.
1251
+ # request = Google::Cloud::Container::V1::SetLocationsRequest.new
1252
+ #
1253
+ # # Call the set_locations method.
1254
+ # result = client.set_locations request
1255
+ #
1256
+ # # The returned object is of type Google::Cloud::Container::V1::Operation.
1257
+ # p result
1258
+ #
1091
1259
  def set_locations request, options = nil
1092
1260
  raise ::ArgumentError, "request must be provided" if request.nil?
1093
1261
 
@@ -1105,9 +1273,11 @@ module Google
1105
1273
  gapic_version: ::Google::Cloud::Container::V1::VERSION
1106
1274
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1107
1275
 
1108
- header_params = {
1109
- "name" => request.name
1110
- }
1276
+ header_params = {}
1277
+ if request.name
1278
+ header_params["name"] = request.name
1279
+ end
1280
+
1111
1281
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1112
1282
  metadata[:"x-goog-request-params"] ||= request_params_header
1113
1283
 
@@ -1180,6 +1350,21 @@ module Google
1180
1350
  #
1181
1351
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1182
1352
  #
1353
+ # @example Basic example
1354
+ # require "google/cloud/container/v1"
1355
+ #
1356
+ # # Create a client object. The client can be reused for multiple calls.
1357
+ # client = Google::Cloud::Container::V1::ClusterManager::Client.new
1358
+ #
1359
+ # # Create a request. To set request fields, pass in keyword arguments.
1360
+ # request = Google::Cloud::Container::V1::UpdateMasterRequest.new
1361
+ #
1362
+ # # Call the update_master method.
1363
+ # result = client.update_master request
1364
+ #
1365
+ # # The returned object is of type Google::Cloud::Container::V1::Operation.
1366
+ # p result
1367
+ #
1183
1368
  def update_master request, options = nil
1184
1369
  raise ::ArgumentError, "request must be provided" if request.nil?
1185
1370
 
@@ -1197,9 +1382,11 @@ module Google
1197
1382
  gapic_version: ::Google::Cloud::Container::V1::VERSION
1198
1383
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1199
1384
 
1200
- header_params = {
1201
- "name" => request.name
1202
- }
1385
+ header_params = {}
1386
+ if request.name
1387
+ header_params["name"] = request.name
1388
+ end
1389
+
1203
1390
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1204
1391
  metadata[:"x-goog-request-params"] ||= request_params_header
1205
1392
 
@@ -1267,6 +1454,21 @@ module Google
1267
1454
  #
1268
1455
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1269
1456
  #
1457
+ # @example Basic example
1458
+ # require "google/cloud/container/v1"
1459
+ #
1460
+ # # Create a client object. The client can be reused for multiple calls.
1461
+ # client = Google::Cloud::Container::V1::ClusterManager::Client.new
1462
+ #
1463
+ # # Create a request. To set request fields, pass in keyword arguments.
1464
+ # request = Google::Cloud::Container::V1::SetMasterAuthRequest.new
1465
+ #
1466
+ # # Call the set_master_auth method.
1467
+ # result = client.set_master_auth request
1468
+ #
1469
+ # # The returned object is of type Google::Cloud::Container::V1::Operation.
1470
+ # p result
1471
+ #
1270
1472
  def set_master_auth request, options = nil
1271
1473
  raise ::ArgumentError, "request must be provided" if request.nil?
1272
1474
 
@@ -1284,9 +1486,11 @@ module Google
1284
1486
  gapic_version: ::Google::Cloud::Container::V1::VERSION
1285
1487
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1286
1488
 
1287
- header_params = {
1288
- "name" => request.name
1289
- }
1489
+ header_params = {}
1490
+ if request.name
1491
+ header_params["name"] = request.name
1492
+ end
1493
+
1290
1494
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1291
1495
  metadata[:"x-goog-request-params"] ||= request_params_header
1292
1496
 
@@ -1356,6 +1560,21 @@ module Google
1356
1560
  #
1357
1561
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1358
1562
  #
1563
+ # @example Basic example
1564
+ # require "google/cloud/container/v1"
1565
+ #
1566
+ # # Create a client object. The client can be reused for multiple calls.
1567
+ # client = Google::Cloud::Container::V1::ClusterManager::Client.new
1568
+ #
1569
+ # # Create a request. To set request fields, pass in keyword arguments.
1570
+ # request = Google::Cloud::Container::V1::DeleteClusterRequest.new
1571
+ #
1572
+ # # Call the delete_cluster method.
1573
+ # result = client.delete_cluster request
1574
+ #
1575
+ # # The returned object is of type Google::Cloud::Container::V1::Operation.
1576
+ # p result
1577
+ #
1359
1578
  def delete_cluster request, options = nil
1360
1579
  raise ::ArgumentError, "request must be provided" if request.nil?
1361
1580
 
@@ -1373,9 +1592,11 @@ module Google
1373
1592
  gapic_version: ::Google::Cloud::Container::V1::VERSION
1374
1593
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1375
1594
 
1376
- header_params = {
1377
- "name" => request.name
1378
- }
1595
+ header_params = {}
1596
+ if request.name
1597
+ header_params["name"] = request.name
1598
+ end
1599
+
1379
1600
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1380
1601
  metadata[:"x-goog-request-params"] ||= request_params_header
1381
1602
 
@@ -1435,6 +1656,21 @@ module Google
1435
1656
  #
1436
1657
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1437
1658
  #
1659
+ # @example Basic example
1660
+ # require "google/cloud/container/v1"
1661
+ #
1662
+ # # Create a client object. The client can be reused for multiple calls.
1663
+ # client = Google::Cloud::Container::V1::ClusterManager::Client.new
1664
+ #
1665
+ # # Create a request. To set request fields, pass in keyword arguments.
1666
+ # request = Google::Cloud::Container::V1::ListOperationsRequest.new
1667
+ #
1668
+ # # Call the list_operations method.
1669
+ # result = client.list_operations request
1670
+ #
1671
+ # # The returned object is of type Google::Cloud::Container::V1::ListOperationsResponse.
1672
+ # p result
1673
+ #
1438
1674
  def list_operations request, options = nil
1439
1675
  raise ::ArgumentError, "request must be provided" if request.nil?
1440
1676
 
@@ -1452,9 +1688,11 @@ module Google
1452
1688
  gapic_version: ::Google::Cloud::Container::V1::VERSION
1453
1689
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1454
1690
 
1455
- header_params = {
1456
- "parent" => request.parent
1457
- }
1691
+ header_params = {}
1692
+ if request.parent
1693
+ header_params["parent"] = request.parent
1694
+ end
1695
+
1458
1696
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1459
1697
  metadata[:"x-goog-request-params"] ||= request_params_header
1460
1698
 
@@ -1516,6 +1754,21 @@ module Google
1516
1754
  #
1517
1755
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1518
1756
  #
1757
+ # @example Basic example
1758
+ # require "google/cloud/container/v1"
1759
+ #
1760
+ # # Create a client object. The client can be reused for multiple calls.
1761
+ # client = Google::Cloud::Container::V1::ClusterManager::Client.new
1762
+ #
1763
+ # # Create a request. To set request fields, pass in keyword arguments.
1764
+ # request = Google::Cloud::Container::V1::GetOperationRequest.new
1765
+ #
1766
+ # # Call the get_operation method.
1767
+ # result = client.get_operation request
1768
+ #
1769
+ # # The returned object is of type Google::Cloud::Container::V1::Operation.
1770
+ # p result
1771
+ #
1519
1772
  def get_operation request, options = nil
1520
1773
  raise ::ArgumentError, "request must be provided" if request.nil?
1521
1774
 
@@ -1533,9 +1786,11 @@ module Google
1533
1786
  gapic_version: ::Google::Cloud::Container::V1::VERSION
1534
1787
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1535
1788
 
1536
- header_params = {
1537
- "name" => request.name
1538
- }
1789
+ header_params = {}
1790
+ if request.name
1791
+ header_params["name"] = request.name
1792
+ end
1793
+
1539
1794
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1540
1795
  metadata[:"x-goog-request-params"] ||= request_params_header
1541
1796
 
@@ -1597,6 +1852,21 @@ module Google
1597
1852
  #
1598
1853
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1599
1854
  #
1855
+ # @example Basic example
1856
+ # require "google/cloud/container/v1"
1857
+ #
1858
+ # # Create a client object. The client can be reused for multiple calls.
1859
+ # client = Google::Cloud::Container::V1::ClusterManager::Client.new
1860
+ #
1861
+ # # Create a request. To set request fields, pass in keyword arguments.
1862
+ # request = Google::Cloud::Container::V1::CancelOperationRequest.new
1863
+ #
1864
+ # # Call the cancel_operation method.
1865
+ # result = client.cancel_operation request
1866
+ #
1867
+ # # The returned object is of type Google::Protobuf::Empty.
1868
+ # p result
1869
+ #
1600
1870
  def cancel_operation request, options = nil
1601
1871
  raise ::ArgumentError, "request must be provided" if request.nil?
1602
1872
 
@@ -1614,9 +1884,11 @@ module Google
1614
1884
  gapic_version: ::Google::Cloud::Container::V1::VERSION
1615
1885
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1616
1886
 
1617
- header_params = {
1618
- "name" => request.name
1619
- }
1887
+ header_params = {}
1888
+ if request.name
1889
+ header_params["name"] = request.name
1890
+ end
1891
+
1620
1892
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1621
1893
  metadata[:"x-goog-request-params"] ||= request_params_header
1622
1894
 
@@ -1675,6 +1947,21 @@ module Google
1675
1947
  #
1676
1948
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1677
1949
  #
1950
+ # @example Basic example
1951
+ # require "google/cloud/container/v1"
1952
+ #
1953
+ # # Create a client object. The client can be reused for multiple calls.
1954
+ # client = Google::Cloud::Container::V1::ClusterManager::Client.new
1955
+ #
1956
+ # # Create a request. To set request fields, pass in keyword arguments.
1957
+ # request = Google::Cloud::Container::V1::GetServerConfigRequest.new
1958
+ #
1959
+ # # Call the get_server_config method.
1960
+ # result = client.get_server_config request
1961
+ #
1962
+ # # The returned object is of type Google::Cloud::Container::V1::ServerConfig.
1963
+ # p result
1964
+ #
1678
1965
  def get_server_config request, options = nil
1679
1966
  raise ::ArgumentError, "request must be provided" if request.nil?
1680
1967
 
@@ -1692,9 +1979,11 @@ module Google
1692
1979
  gapic_version: ::Google::Cloud::Container::V1::VERSION
1693
1980
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1694
1981
 
1695
- header_params = {
1696
- "name" => request.name
1697
- }
1982
+ header_params = {}
1983
+ if request.name
1984
+ header_params["name"] = request.name
1985
+ end
1986
+
1698
1987
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1699
1988
  metadata[:"x-goog-request-params"] ||= request_params_header
1700
1989
 
@@ -1747,6 +2036,21 @@ module Google
1747
2036
  #
1748
2037
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1749
2038
  #
2039
+ # @example Basic example
2040
+ # require "google/cloud/container/v1"
2041
+ #
2042
+ # # Create a client object. The client can be reused for multiple calls.
2043
+ # client = Google::Cloud::Container::V1::ClusterManager::Client.new
2044
+ #
2045
+ # # Create a request. To set request fields, pass in keyword arguments.
2046
+ # request = Google::Cloud::Container::V1::GetJSONWebKeysRequest.new
2047
+ #
2048
+ # # Call the get_json_web_keys method.
2049
+ # result = client.get_json_web_keys request
2050
+ #
2051
+ # # The returned object is of type Google::Cloud::Container::V1::GetJSONWebKeysResponse.
2052
+ # p result
2053
+ #
1750
2054
  def get_json_web_keys request, options = nil
1751
2055
  raise ::ArgumentError, "request must be provided" if request.nil?
1752
2056
 
@@ -1764,9 +2068,11 @@ module Google
1764
2068
  gapic_version: ::Google::Cloud::Container::V1::VERSION
1765
2069
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1766
2070
 
1767
- header_params = {
1768
- "parent" => request.parent
1769
- }
2071
+ header_params = {}
2072
+ if request.parent
2073
+ header_params["parent"] = request.parent
2074
+ end
2075
+
1770
2076
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1771
2077
  metadata[:"x-goog-request-params"] ||= request_params_header
1772
2078
 
@@ -1828,6 +2134,21 @@ module Google
1828
2134
  #
1829
2135
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1830
2136
  #
2137
+ # @example Basic example
2138
+ # require "google/cloud/container/v1"
2139
+ #
2140
+ # # Create a client object. The client can be reused for multiple calls.
2141
+ # client = Google::Cloud::Container::V1::ClusterManager::Client.new
2142
+ #
2143
+ # # Create a request. To set request fields, pass in keyword arguments.
2144
+ # request = Google::Cloud::Container::V1::ListNodePoolsRequest.new
2145
+ #
2146
+ # # Call the list_node_pools method.
2147
+ # result = client.list_node_pools request
2148
+ #
2149
+ # # The returned object is of type Google::Cloud::Container::V1::ListNodePoolsResponse.
2150
+ # p result
2151
+ #
1831
2152
  def list_node_pools request, options = nil
1832
2153
  raise ::ArgumentError, "request must be provided" if request.nil?
1833
2154
 
@@ -1845,9 +2166,11 @@ module Google
1845
2166
  gapic_version: ::Google::Cloud::Container::V1::VERSION
1846
2167
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1847
2168
 
1848
- header_params = {
1849
- "parent" => request.parent
1850
- }
2169
+ header_params = {}
2170
+ if request.parent
2171
+ header_params["parent"] = request.parent
2172
+ end
2173
+
1851
2174
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1852
2175
  metadata[:"x-goog-request-params"] ||= request_params_header
1853
2176
 
@@ -1913,6 +2236,21 @@ module Google
1913
2236
  #
1914
2237
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1915
2238
  #
2239
+ # @example Basic example
2240
+ # require "google/cloud/container/v1"
2241
+ #
2242
+ # # Create a client object. The client can be reused for multiple calls.
2243
+ # client = Google::Cloud::Container::V1::ClusterManager::Client.new
2244
+ #
2245
+ # # Create a request. To set request fields, pass in keyword arguments.
2246
+ # request = Google::Cloud::Container::V1::GetNodePoolRequest.new
2247
+ #
2248
+ # # Call the get_node_pool method.
2249
+ # result = client.get_node_pool request
2250
+ #
2251
+ # # The returned object is of type Google::Cloud::Container::V1::NodePool.
2252
+ # p result
2253
+ #
1916
2254
  def get_node_pool request, options = nil
1917
2255
  raise ::ArgumentError, "request must be provided" if request.nil?
1918
2256
 
@@ -1930,9 +2268,11 @@ module Google
1930
2268
  gapic_version: ::Google::Cloud::Container::V1::VERSION
1931
2269
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1932
2270
 
1933
- header_params = {
1934
- "name" => request.name
1935
- }
2271
+ header_params = {}
2272
+ if request.name
2273
+ header_params["name"] = request.name
2274
+ end
2275
+
1936
2276
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1937
2277
  metadata[:"x-goog-request-params"] ||= request_params_header
1938
2278
 
@@ -1997,6 +2337,21 @@ module Google
1997
2337
  #
1998
2338
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1999
2339
  #
2340
+ # @example Basic example
2341
+ # require "google/cloud/container/v1"
2342
+ #
2343
+ # # Create a client object. The client can be reused for multiple calls.
2344
+ # client = Google::Cloud::Container::V1::ClusterManager::Client.new
2345
+ #
2346
+ # # Create a request. To set request fields, pass in keyword arguments.
2347
+ # request = Google::Cloud::Container::V1::CreateNodePoolRequest.new
2348
+ #
2349
+ # # Call the create_node_pool method.
2350
+ # result = client.create_node_pool request
2351
+ #
2352
+ # # The returned object is of type Google::Cloud::Container::V1::Operation.
2353
+ # p result
2354
+ #
2000
2355
  def create_node_pool request, options = nil
2001
2356
  raise ::ArgumentError, "request must be provided" if request.nil?
2002
2357
 
@@ -2014,9 +2369,11 @@ module Google
2014
2369
  gapic_version: ::Google::Cloud::Container::V1::VERSION
2015
2370
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2016
2371
 
2017
- header_params = {
2018
- "parent" => request.parent
2019
- }
2372
+ header_params = {}
2373
+ if request.parent
2374
+ header_params["parent"] = request.parent
2375
+ end
2376
+
2020
2377
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2021
2378
  metadata[:"x-goog-request-params"] ||= request_params_header
2022
2379
 
@@ -2082,6 +2439,21 @@ module Google
2082
2439
  #
2083
2440
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
2084
2441
  #
2442
+ # @example Basic example
2443
+ # require "google/cloud/container/v1"
2444
+ #
2445
+ # # Create a client object. The client can be reused for multiple calls.
2446
+ # client = Google::Cloud::Container::V1::ClusterManager::Client.new
2447
+ #
2448
+ # # Create a request. To set request fields, pass in keyword arguments.
2449
+ # request = Google::Cloud::Container::V1::DeleteNodePoolRequest.new
2450
+ #
2451
+ # # Call the delete_node_pool method.
2452
+ # result = client.delete_node_pool request
2453
+ #
2454
+ # # The returned object is of type Google::Cloud::Container::V1::Operation.
2455
+ # p result
2456
+ #
2085
2457
  def delete_node_pool request, options = nil
2086
2458
  raise ::ArgumentError, "request must be provided" if request.nil?
2087
2459
 
@@ -2099,9 +2471,11 @@ module Google
2099
2471
  gapic_version: ::Google::Cloud::Container::V1::VERSION
2100
2472
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2101
2473
 
2102
- header_params = {
2103
- "name" => request.name
2104
- }
2474
+ header_params = {}
2475
+ if request.name
2476
+ header_params["name"] = request.name
2477
+ end
2478
+
2105
2479
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2106
2480
  metadata[:"x-goog-request-params"] ||= request_params_header
2107
2481
 
@@ -2168,6 +2542,21 @@ module Google
2168
2542
  #
2169
2543
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
2170
2544
  #
2545
+ # @example Basic example
2546
+ # require "google/cloud/container/v1"
2547
+ #
2548
+ # # Create a client object. The client can be reused for multiple calls.
2549
+ # client = Google::Cloud::Container::V1::ClusterManager::Client.new
2550
+ #
2551
+ # # Create a request. To set request fields, pass in keyword arguments.
2552
+ # request = Google::Cloud::Container::V1::RollbackNodePoolUpgradeRequest.new
2553
+ #
2554
+ # # Call the rollback_node_pool_upgrade method.
2555
+ # result = client.rollback_node_pool_upgrade request
2556
+ #
2557
+ # # The returned object is of type Google::Cloud::Container::V1::Operation.
2558
+ # p result
2559
+ #
2171
2560
  def rollback_node_pool_upgrade request, options = nil
2172
2561
  raise ::ArgumentError, "request must be provided" if request.nil?
2173
2562
 
@@ -2185,9 +2574,11 @@ module Google
2185
2574
  gapic_version: ::Google::Cloud::Container::V1::VERSION
2186
2575
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2187
2576
 
2188
- header_params = {
2189
- "name" => request.name
2190
- }
2577
+ header_params = {}
2578
+ if request.name
2579
+ header_params["name"] = request.name
2580
+ end
2581
+
2191
2582
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2192
2583
  metadata[:"x-goog-request-params"] ||= request_params_header
2193
2584
 
@@ -2255,6 +2646,21 @@ module Google
2255
2646
  #
2256
2647
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
2257
2648
  #
2649
+ # @example Basic example
2650
+ # require "google/cloud/container/v1"
2651
+ #
2652
+ # # Create a client object. The client can be reused for multiple calls.
2653
+ # client = Google::Cloud::Container::V1::ClusterManager::Client.new
2654
+ #
2655
+ # # Create a request. To set request fields, pass in keyword arguments.
2656
+ # request = Google::Cloud::Container::V1::SetNodePoolManagementRequest.new
2657
+ #
2658
+ # # Call the set_node_pool_management method.
2659
+ # result = client.set_node_pool_management request
2660
+ #
2661
+ # # The returned object is of type Google::Cloud::Container::V1::Operation.
2662
+ # p result
2663
+ #
2258
2664
  def set_node_pool_management request, options = nil
2259
2665
  raise ::ArgumentError, "request must be provided" if request.nil?
2260
2666
 
@@ -2272,9 +2678,11 @@ module Google
2272
2678
  gapic_version: ::Google::Cloud::Container::V1::VERSION
2273
2679
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2274
2680
 
2275
- header_params = {
2276
- "name" => request.name
2277
- }
2681
+ header_params = {}
2682
+ if request.name
2683
+ header_params["name"] = request.name
2684
+ end
2685
+
2278
2686
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2279
2687
  metadata[:"x-goog-request-params"] ||= request_params_header
2280
2688
 
@@ -2345,6 +2753,21 @@ module Google
2345
2753
  #
2346
2754
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
2347
2755
  #
2756
+ # @example Basic example
2757
+ # require "google/cloud/container/v1"
2758
+ #
2759
+ # # Create a client object. The client can be reused for multiple calls.
2760
+ # client = Google::Cloud::Container::V1::ClusterManager::Client.new
2761
+ #
2762
+ # # Create a request. To set request fields, pass in keyword arguments.
2763
+ # request = Google::Cloud::Container::V1::SetLabelsRequest.new
2764
+ #
2765
+ # # Call the set_labels method.
2766
+ # result = client.set_labels request
2767
+ #
2768
+ # # The returned object is of type Google::Cloud::Container::V1::Operation.
2769
+ # p result
2770
+ #
2348
2771
  def set_labels request, options = nil
2349
2772
  raise ::ArgumentError, "request must be provided" if request.nil?
2350
2773
 
@@ -2362,9 +2785,11 @@ module Google
2362
2785
  gapic_version: ::Google::Cloud::Container::V1::VERSION
2363
2786
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2364
2787
 
2365
- header_params = {
2366
- "name" => request.name
2367
- }
2788
+ header_params = {}
2789
+ if request.name
2790
+ header_params["name"] = request.name
2791
+ end
2792
+
2368
2793
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2369
2794
  metadata[:"x-goog-request-params"] ||= request_params_header
2370
2795
 
@@ -2428,6 +2853,21 @@ module Google
2428
2853
  #
2429
2854
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
2430
2855
  #
2856
+ # @example Basic example
2857
+ # require "google/cloud/container/v1"
2858
+ #
2859
+ # # Create a client object. The client can be reused for multiple calls.
2860
+ # client = Google::Cloud::Container::V1::ClusterManager::Client.new
2861
+ #
2862
+ # # Create a request. To set request fields, pass in keyword arguments.
2863
+ # request = Google::Cloud::Container::V1::SetLegacyAbacRequest.new
2864
+ #
2865
+ # # Call the set_legacy_abac method.
2866
+ # result = client.set_legacy_abac request
2867
+ #
2868
+ # # The returned object is of type Google::Cloud::Container::V1::Operation.
2869
+ # p result
2870
+ #
2431
2871
  def set_legacy_abac request, options = nil
2432
2872
  raise ::ArgumentError, "request must be provided" if request.nil?
2433
2873
 
@@ -2445,9 +2885,11 @@ module Google
2445
2885
  gapic_version: ::Google::Cloud::Container::V1::VERSION
2446
2886
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2447
2887
 
2448
- header_params = {
2449
- "name" => request.name
2450
- }
2888
+ header_params = {}
2889
+ if request.name
2890
+ header_params["name"] = request.name
2891
+ end
2892
+
2451
2893
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2452
2894
  metadata[:"x-goog-request-params"] ||= request_params_header
2453
2895
 
@@ -2511,6 +2953,21 @@ module Google
2511
2953
  #
2512
2954
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
2513
2955
  #
2956
+ # @example Basic example
2957
+ # require "google/cloud/container/v1"
2958
+ #
2959
+ # # Create a client object. The client can be reused for multiple calls.
2960
+ # client = Google::Cloud::Container::V1::ClusterManager::Client.new
2961
+ #
2962
+ # # Create a request. To set request fields, pass in keyword arguments.
2963
+ # request = Google::Cloud::Container::V1::StartIPRotationRequest.new
2964
+ #
2965
+ # # Call the start_ip_rotation method.
2966
+ # result = client.start_ip_rotation request
2967
+ #
2968
+ # # The returned object is of type Google::Cloud::Container::V1::Operation.
2969
+ # p result
2970
+ #
2514
2971
  def start_ip_rotation request, options = nil
2515
2972
  raise ::ArgumentError, "request must be provided" if request.nil?
2516
2973
 
@@ -2528,9 +2985,11 @@ module Google
2528
2985
  gapic_version: ::Google::Cloud::Container::V1::VERSION
2529
2986
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2530
2987
 
2531
- header_params = {
2532
- "name" => request.name
2533
- }
2988
+ header_params = {}
2989
+ if request.name
2990
+ header_params["name"] = request.name
2991
+ end
2992
+
2534
2993
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2535
2994
  metadata[:"x-goog-request-params"] ||= request_params_header
2536
2995
 
@@ -2592,6 +3051,21 @@ module Google
2592
3051
  #
2593
3052
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
2594
3053
  #
3054
+ # @example Basic example
3055
+ # require "google/cloud/container/v1"
3056
+ #
3057
+ # # Create a client object. The client can be reused for multiple calls.
3058
+ # client = Google::Cloud::Container::V1::ClusterManager::Client.new
3059
+ #
3060
+ # # Create a request. To set request fields, pass in keyword arguments.
3061
+ # request = Google::Cloud::Container::V1::CompleteIPRotationRequest.new
3062
+ #
3063
+ # # Call the complete_ip_rotation method.
3064
+ # result = client.complete_ip_rotation request
3065
+ #
3066
+ # # The returned object is of type Google::Cloud::Container::V1::Operation.
3067
+ # p result
3068
+ #
2595
3069
  def complete_ip_rotation request, options = nil
2596
3070
  raise ::ArgumentError, "request must be provided" if request.nil?
2597
3071
 
@@ -2609,9 +3083,11 @@ module Google
2609
3083
  gapic_version: ::Google::Cloud::Container::V1::VERSION
2610
3084
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2611
3085
 
2612
- header_params = {
2613
- "name" => request.name
2614
- }
3086
+ header_params = {}
3087
+ if request.name
3088
+ header_params["name"] = request.name
3089
+ end
3090
+
2615
3091
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2616
3092
  metadata[:"x-goog-request-params"] ||= request_params_header
2617
3093
 
@@ -2679,6 +3155,21 @@ module Google
2679
3155
  #
2680
3156
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
2681
3157
  #
3158
+ # @example Basic example
3159
+ # require "google/cloud/container/v1"
3160
+ #
3161
+ # # Create a client object. The client can be reused for multiple calls.
3162
+ # client = Google::Cloud::Container::V1::ClusterManager::Client.new
3163
+ #
3164
+ # # Create a request. To set request fields, pass in keyword arguments.
3165
+ # request = Google::Cloud::Container::V1::SetNodePoolSizeRequest.new
3166
+ #
3167
+ # # Call the set_node_pool_size method.
3168
+ # result = client.set_node_pool_size request
3169
+ #
3170
+ # # The returned object is of type Google::Cloud::Container::V1::Operation.
3171
+ # p result
3172
+ #
2682
3173
  def set_node_pool_size request, options = nil
2683
3174
  raise ::ArgumentError, "request must be provided" if request.nil?
2684
3175
 
@@ -2696,9 +3187,11 @@ module Google
2696
3187
  gapic_version: ::Google::Cloud::Container::V1::VERSION
2697
3188
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2698
3189
 
2699
- header_params = {
2700
- "name" => request.name
2701
- }
3190
+ header_params = {}
3191
+ if request.name
3192
+ header_params["name"] = request.name
3193
+ end
3194
+
2702
3195
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2703
3196
  metadata[:"x-goog-request-params"] ||= request_params_header
2704
3197
 
@@ -2762,6 +3255,21 @@ module Google
2762
3255
  #
2763
3256
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
2764
3257
  #
3258
+ # @example Basic example
3259
+ # require "google/cloud/container/v1"
3260
+ #
3261
+ # # Create a client object. The client can be reused for multiple calls.
3262
+ # client = Google::Cloud::Container::V1::ClusterManager::Client.new
3263
+ #
3264
+ # # Create a request. To set request fields, pass in keyword arguments.
3265
+ # request = Google::Cloud::Container::V1::SetNetworkPolicyRequest.new
3266
+ #
3267
+ # # Call the set_network_policy method.
3268
+ # result = client.set_network_policy request
3269
+ #
3270
+ # # The returned object is of type Google::Cloud::Container::V1::Operation.
3271
+ # p result
3272
+ #
2765
3273
  def set_network_policy request, options = nil
2766
3274
  raise ::ArgumentError, "request must be provided" if request.nil?
2767
3275
 
@@ -2779,9 +3287,11 @@ module Google
2779
3287
  gapic_version: ::Google::Cloud::Container::V1::VERSION
2780
3288
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2781
3289
 
2782
- header_params = {
2783
- "name" => request.name
2784
- }
3290
+ header_params = {}
3291
+ if request.name
3292
+ header_params["name"] = request.name
3293
+ end
3294
+
2785
3295
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2786
3296
  metadata[:"x-goog-request-params"] ||= request_params_header
2787
3297
 
@@ -2844,6 +3354,21 @@ module Google
2844
3354
  #
2845
3355
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
2846
3356
  #
3357
+ # @example Basic example
3358
+ # require "google/cloud/container/v1"
3359
+ #
3360
+ # # Create a client object. The client can be reused for multiple calls.
3361
+ # client = Google::Cloud::Container::V1::ClusterManager::Client.new
3362
+ #
3363
+ # # Create a request. To set request fields, pass in keyword arguments.
3364
+ # request = Google::Cloud::Container::V1::SetMaintenancePolicyRequest.new
3365
+ #
3366
+ # # Call the set_maintenance_policy method.
3367
+ # result = client.set_maintenance_policy request
3368
+ #
3369
+ # # The returned object is of type Google::Cloud::Container::V1::Operation.
3370
+ # p result
3371
+ #
2847
3372
  def set_maintenance_policy request, options = nil
2848
3373
  raise ::ArgumentError, "request must be provided" if request.nil?
2849
3374
 
@@ -2861,9 +3386,11 @@ module Google
2861
3386
  gapic_version: ::Google::Cloud::Container::V1::VERSION
2862
3387
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2863
3388
 
2864
- header_params = {
2865
- "name" => request.name
2866
- }
3389
+ header_params = {}
3390
+ if request.name
3391
+ header_params["name"] = request.name
3392
+ end
3393
+
2867
3394
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2868
3395
  metadata[:"x-goog-request-params"] ||= request_params_header
2869
3396
 
@@ -2926,6 +3453,27 @@ module Google
2926
3453
  #
2927
3454
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
2928
3455
  #
3456
+ # @example Basic example
3457
+ # require "google/cloud/container/v1"
3458
+ #
3459
+ # # Create a client object. The client can be reused for multiple calls.
3460
+ # client = Google::Cloud::Container::V1::ClusterManager::Client.new
3461
+ #
3462
+ # # Create a request. To set request fields, pass in keyword arguments.
3463
+ # request = Google::Cloud::Container::V1::ListUsableSubnetworksRequest.new
3464
+ #
3465
+ # # Call the list_usable_subnetworks method.
3466
+ # result = client.list_usable_subnetworks request
3467
+ #
3468
+ # # The returned object is of type Gapic::PagedEnumerable. You can
3469
+ # # iterate over all elements by calling #each, and the enumerable
3470
+ # # will lazily make API calls to fetch subsequent pages. Other
3471
+ # # methods are also available for managing paging directly.
3472
+ # result.each do |response|
3473
+ # # Each element is of type ::Google::Cloud::Container::V1::UsableSubnetwork.
3474
+ # p response
3475
+ # end
3476
+ #
2929
3477
  def list_usable_subnetworks request, options = nil
2930
3478
  raise ::ArgumentError, "request must be provided" if request.nil?
2931
3479
 
@@ -2943,9 +3491,11 @@ module Google
2943
3491
  gapic_version: ::Google::Cloud::Container::V1::VERSION
2944
3492
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2945
3493
 
2946
- header_params = {
2947
- "parent" => request.parent
2948
- }
3494
+ header_params = {}
3495
+ if request.parent
3496
+ header_params["parent"] = request.parent
3497
+ end
3498
+
2949
3499
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2950
3500
  metadata[:"x-goog-request-params"] ||= request_params_header
2951
3501
 
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Container
23
23
  module V1
24
- VERSION = "0.7.1"
24
+ VERSION = "0.7.2"
25
25
  end
26
26
  end
27
27
  end
@@ -1,13 +1,13 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/container/v1/cluster_service.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'
9
7
  require 'google/protobuf/empty_pb'
10
8
  require 'google/protobuf/timestamp_pb'
9
+ require 'google/protobuf'
10
+
11
11
  Google::Protobuf::DescriptorPool.generated_pool.build do
12
12
  add_file("google/container/v1/cluster_service.proto", :syntax => :proto3) do
13
13
  add_message "google.container.v1.NodeConfig" do
@@ -27,7 +27,7 @@ module Google
27
27
  # Google Kubernetes Engine Cluster Manager v1
28
28
  class Service
29
29
 
30
- include GRPC::GenericService
30
+ include ::GRPC::GenericService
31
31
 
32
32
  self.marshal_class_method = :encode
33
33
  self.unmarshal_class_method = :decode
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-container-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.1
4
+ version: 0.7.2
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-08-11 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