google-cloud-container-v1beta1 0.7.1 → 0.8.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -282,6 +282,21 @@ module Google
282
282
  #
283
283
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
284
284
  #
285
+ # @example Basic example
286
+ # require "google/cloud/container/v1beta1"
287
+ #
288
+ # # Create a client object. The client can be reused for multiple calls.
289
+ # client = Google::Cloud::Container::V1beta1::ClusterManager::Client.new
290
+ #
291
+ # # Create a request. To set request fields, pass in keyword arguments.
292
+ # request = Google::Cloud::Container::V1beta1::ListClustersRequest.new
293
+ #
294
+ # # Call the list_clusters method.
295
+ # result = client.list_clusters request
296
+ #
297
+ # # The returned object is of type Google::Cloud::Container::V1beta1::ListClustersResponse.
298
+ # p result
299
+ #
285
300
  def list_clusters request, options = nil
286
301
  raise ::ArgumentError, "request must be provided" if request.nil?
287
302
 
@@ -299,9 +314,11 @@ module Google
299
314
  gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
300
315
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
301
316
 
302
- header_params = {
303
- "parent" => request.parent
304
- }
317
+ header_params = {}
318
+ if request.parent
319
+ header_params["parent"] = request.parent
320
+ end
321
+
305
322
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
306
323
  metadata[:"x-goog-request-params"] ||= request_params_header
307
324
 
@@ -363,6 +380,21 @@ module Google
363
380
  #
364
381
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
365
382
  #
383
+ # @example Basic example
384
+ # require "google/cloud/container/v1beta1"
385
+ #
386
+ # # Create a client object. The client can be reused for multiple calls.
387
+ # client = Google::Cloud::Container::V1beta1::ClusterManager::Client.new
388
+ #
389
+ # # Create a request. To set request fields, pass in keyword arguments.
390
+ # request = Google::Cloud::Container::V1beta1::GetClusterRequest.new
391
+ #
392
+ # # Call the get_cluster method.
393
+ # result = client.get_cluster request
394
+ #
395
+ # # The returned object is of type Google::Cloud::Container::V1beta1::Cluster.
396
+ # p result
397
+ #
366
398
  def get_cluster request, options = nil
367
399
  raise ::ArgumentError, "request must be provided" if request.nil?
368
400
 
@@ -380,9 +412,11 @@ module Google
380
412
  gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
381
413
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
382
414
 
383
- header_params = {
384
- "name" => request.name
385
- }
415
+ header_params = {}
416
+ if request.name
417
+ header_params["name"] = request.name
418
+ end
419
+
386
420
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
387
421
  metadata[:"x-goog-request-params"] ||= request_params_header
388
422
 
@@ -457,6 +491,21 @@ module Google
457
491
  #
458
492
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
459
493
  #
494
+ # @example Basic example
495
+ # require "google/cloud/container/v1beta1"
496
+ #
497
+ # # Create a client object. The client can be reused for multiple calls.
498
+ # client = Google::Cloud::Container::V1beta1::ClusterManager::Client.new
499
+ #
500
+ # # Create a request. To set request fields, pass in keyword arguments.
501
+ # request = Google::Cloud::Container::V1beta1::CreateClusterRequest.new
502
+ #
503
+ # # Call the create_cluster method.
504
+ # result = client.create_cluster request
505
+ #
506
+ # # The returned object is of type Google::Cloud::Container::V1beta1::Operation.
507
+ # p result
508
+ #
460
509
  def create_cluster request, options = nil
461
510
  raise ::ArgumentError, "request must be provided" if request.nil?
462
511
 
@@ -474,9 +523,11 @@ module Google
474
523
  gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
475
524
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
476
525
 
477
- header_params = {
478
- "parent" => request.parent
479
- }
526
+ header_params = {}
527
+ if request.parent
528
+ header_params["parent"] = request.parent
529
+ end
530
+
480
531
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
481
532
  metadata[:"x-goog-request-params"] ||= request_params_header
482
533
 
@@ -540,6 +591,21 @@ module Google
540
591
  #
541
592
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
542
593
  #
594
+ # @example Basic example
595
+ # require "google/cloud/container/v1beta1"
596
+ #
597
+ # # Create a client object. The client can be reused for multiple calls.
598
+ # client = Google::Cloud::Container::V1beta1::ClusterManager::Client.new
599
+ #
600
+ # # Create a request. To set request fields, pass in keyword arguments.
601
+ # request = Google::Cloud::Container::V1beta1::UpdateClusterRequest.new
602
+ #
603
+ # # Call the update_cluster method.
604
+ # result = client.update_cluster request
605
+ #
606
+ # # The returned object is of type Google::Cloud::Container::V1beta1::Operation.
607
+ # p result
608
+ #
543
609
  def update_cluster request, options = nil
544
610
  raise ::ArgumentError, "request must be provided" if request.nil?
545
611
 
@@ -557,9 +623,11 @@ module Google
557
623
  gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
558
624
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
559
625
 
560
- header_params = {
561
- "name" => request.name
562
- }
626
+ header_params = {}
627
+ if request.name
628
+ header_params["name"] = request.name
629
+ end
630
+
563
631
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
564
632
  metadata[:"x-goog-request-params"] ||= request_params_header
565
633
 
@@ -592,7 +660,7 @@ module Google
592
660
  # @param options [::Gapic::CallOptions, ::Hash]
593
661
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
594
662
  #
595
- # @overload update_node_pool(project_id: nil, zone: nil, cluster_id: nil, node_pool_id: nil, node_version: nil, image_type: nil, locations: nil, workload_metadata_config: nil, name: nil, upgrade_settings: nil, linux_node_config: nil, kubelet_config: nil)
663
+ # @overload update_node_pool(project_id: nil, zone: nil, cluster_id: nil, node_pool_id: nil, node_version: nil, image_type: nil, locations: nil, workload_metadata_config: nil, name: nil, upgrade_settings: nil, tags: nil, taints: nil, labels: nil, linux_node_config: nil, kubelet_config: nil, gvnic: nil)
596
664
  # Pass arguments to `update_node_pool` via keyword arguments. Note that at
597
665
  # least one keyword argument is required. To specify no parameters, or to keep all
598
666
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -640,10 +708,24 @@ module Google
640
708
  # `projects/*/locations/*/clusters/*/nodePools/*`.
641
709
  # @param upgrade_settings [::Google::Cloud::Container::V1beta1::NodePool::UpgradeSettings, ::Hash]
642
710
  # Upgrade settings control disruption and speed of the upgrade.
711
+ # @param tags [::Google::Cloud::Container::V1beta1::NetworkTags, ::Hash]
712
+ # The desired network tags to be applied to all nodes in the node pool.
713
+ # If this field is not present, the tags will not be changed. Otherwise,
714
+ # the existing network tags will be *replaced* with the provided tags.
715
+ # @param taints [::Google::Cloud::Container::V1beta1::NodeTaints, ::Hash]
716
+ # The desired node taints to be applied to all nodes in the node pool.
717
+ # If this field is not present, the taints will not be changed. Otherwise,
718
+ # the existing node taints will be *replaced* with the provided taints.
719
+ # @param labels [::Google::Cloud::Container::V1beta1::NodeLabels, ::Hash]
720
+ # The desired node labels to be applied to all nodes in the node pool.
721
+ # If this field is not present, the labels will not be changed. Otherwise,
722
+ # the existing node labels will be *replaced* with the provided labels.
643
723
  # @param linux_node_config [::Google::Cloud::Container::V1beta1::LinuxNodeConfig, ::Hash]
644
724
  # Parameters that can be configured on Linux nodes.
645
725
  # @param kubelet_config [::Google::Cloud::Container::V1beta1::NodeKubeletConfig, ::Hash]
646
726
  # Node kubelet configs.
727
+ # @param gvnic [::Google::Cloud::Container::V1beta1::VirtualNIC, ::Hash]
728
+ # Enable or disable gvnic on the node pool.
647
729
  #
648
730
  # @yield [response, operation] Access the result along with the RPC operation
649
731
  # @yieldparam response [::Google::Cloud::Container::V1beta1::Operation]
@@ -653,6 +735,21 @@ module Google
653
735
  #
654
736
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
655
737
  #
738
+ # @example Basic example
739
+ # require "google/cloud/container/v1beta1"
740
+ #
741
+ # # Create a client object. The client can be reused for multiple calls.
742
+ # client = Google::Cloud::Container::V1beta1::ClusterManager::Client.new
743
+ #
744
+ # # Create a request. To set request fields, pass in keyword arguments.
745
+ # request = Google::Cloud::Container::V1beta1::UpdateNodePoolRequest.new
746
+ #
747
+ # # Call the update_node_pool method.
748
+ # result = client.update_node_pool request
749
+ #
750
+ # # The returned object is of type Google::Cloud::Container::V1beta1::Operation.
751
+ # p result
752
+ #
656
753
  def update_node_pool request, options = nil
657
754
  raise ::ArgumentError, "request must be provided" if request.nil?
658
755
 
@@ -670,9 +767,11 @@ module Google
670
767
  gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
671
768
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
672
769
 
673
- header_params = {
674
- "name" => request.name
675
- }
770
+ header_params = {}
771
+ if request.name
772
+ header_params["name"] = request.name
773
+ end
774
+
676
775
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
677
776
  metadata[:"x-goog-request-params"] ||= request_params_header
678
777
 
@@ -740,6 +839,21 @@ module Google
740
839
  #
741
840
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
742
841
  #
842
+ # @example Basic example
843
+ # require "google/cloud/container/v1beta1"
844
+ #
845
+ # # Create a client object. The client can be reused for multiple calls.
846
+ # client = Google::Cloud::Container::V1beta1::ClusterManager::Client.new
847
+ #
848
+ # # Create a request. To set request fields, pass in keyword arguments.
849
+ # request = Google::Cloud::Container::V1beta1::SetNodePoolAutoscalingRequest.new
850
+ #
851
+ # # Call the set_node_pool_autoscaling method.
852
+ # result = client.set_node_pool_autoscaling request
853
+ #
854
+ # # The returned object is of type Google::Cloud::Container::V1beta1::Operation.
855
+ # p result
856
+ #
743
857
  def set_node_pool_autoscaling request, options = nil
744
858
  raise ::ArgumentError, "request must be provided" if request.nil?
745
859
 
@@ -757,9 +871,11 @@ module Google
757
871
  gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
758
872
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
759
873
 
760
- header_params = {
761
- "name" => request.name
762
- }
874
+ header_params = {}
875
+ if request.name
876
+ header_params["name"] = request.name
877
+ end
878
+
763
879
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
764
880
  metadata[:"x-goog-request-params"] ||= request_params_header
765
881
 
@@ -833,6 +949,21 @@ module Google
833
949
  #
834
950
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
835
951
  #
952
+ # @example Basic example
953
+ # require "google/cloud/container/v1beta1"
954
+ #
955
+ # # Create a client object. The client can be reused for multiple calls.
956
+ # client = Google::Cloud::Container::V1beta1::ClusterManager::Client.new
957
+ #
958
+ # # Create a request. To set request fields, pass in keyword arguments.
959
+ # request = Google::Cloud::Container::V1beta1::SetLoggingServiceRequest.new
960
+ #
961
+ # # Call the set_logging_service method.
962
+ # result = client.set_logging_service request
963
+ #
964
+ # # The returned object is of type Google::Cloud::Container::V1beta1::Operation.
965
+ # p result
966
+ #
836
967
  def set_logging_service request, options = nil
837
968
  raise ::ArgumentError, "request must be provided" if request.nil?
838
969
 
@@ -850,9 +981,11 @@ module Google
850
981
  gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
851
982
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
852
983
 
853
- header_params = {
854
- "name" => request.name
855
- }
984
+ header_params = {}
985
+ if request.name
986
+ header_params["name"] = request.name
987
+ end
988
+
856
989
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
857
990
  metadata[:"x-goog-request-params"] ||= request_params_header
858
991
 
@@ -926,6 +1059,21 @@ module Google
926
1059
  #
927
1060
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
928
1061
  #
1062
+ # @example Basic example
1063
+ # require "google/cloud/container/v1beta1"
1064
+ #
1065
+ # # Create a client object. The client can be reused for multiple calls.
1066
+ # client = Google::Cloud::Container::V1beta1::ClusterManager::Client.new
1067
+ #
1068
+ # # Create a request. To set request fields, pass in keyword arguments.
1069
+ # request = Google::Cloud::Container::V1beta1::SetMonitoringServiceRequest.new
1070
+ #
1071
+ # # Call the set_monitoring_service method.
1072
+ # result = client.set_monitoring_service request
1073
+ #
1074
+ # # The returned object is of type Google::Cloud::Container::V1beta1::Operation.
1075
+ # p result
1076
+ #
929
1077
  def set_monitoring_service request, options = nil
930
1078
  raise ::ArgumentError, "request must be provided" if request.nil?
931
1079
 
@@ -943,9 +1091,11 @@ module Google
943
1091
  gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
944
1092
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
945
1093
 
946
- header_params = {
947
- "name" => request.name
948
- }
1094
+ header_params = {}
1095
+ if request.name
1096
+ header_params["name"] = request.name
1097
+ end
1098
+
949
1099
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
950
1100
  metadata[:"x-goog-request-params"] ||= request_params_header
951
1101
 
@@ -996,8 +1146,8 @@ module Google
996
1146
  # Required. Deprecated. The name of the cluster to upgrade.
997
1147
  # This field has been deprecated and replaced by the name field.
998
1148
  # @param addons_config [::Google::Cloud::Container::V1beta1::AddonsConfig, ::Hash]
999
- # Required. The desired configurations for the various addons available to run in the
1000
- # cluster.
1149
+ # Required. The desired configurations for the various addons available to
1150
+ # run in the cluster.
1001
1151
  # @param name [::String]
1002
1152
  # The name (project, location, cluster) of the cluster to set addons.
1003
1153
  # Specified in the format `projects/*/locations/*/clusters/*`.
@@ -1010,6 +1160,21 @@ module Google
1010
1160
  #
1011
1161
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1012
1162
  #
1163
+ # @example Basic example
1164
+ # require "google/cloud/container/v1beta1"
1165
+ #
1166
+ # # Create a client object. The client can be reused for multiple calls.
1167
+ # client = Google::Cloud::Container::V1beta1::ClusterManager::Client.new
1168
+ #
1169
+ # # Create a request. To set request fields, pass in keyword arguments.
1170
+ # request = Google::Cloud::Container::V1beta1::SetAddonsConfigRequest.new
1171
+ #
1172
+ # # Call the set_addons_config method.
1173
+ # result = client.set_addons_config request
1174
+ #
1175
+ # # The returned object is of type Google::Cloud::Container::V1beta1::Operation.
1176
+ # p result
1177
+ #
1013
1178
  def set_addons_config request, options = nil
1014
1179
  raise ::ArgumentError, "request must be provided" if request.nil?
1015
1180
 
@@ -1027,9 +1192,11 @@ module Google
1027
1192
  gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
1028
1193
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1029
1194
 
1030
- header_params = {
1031
- "name" => request.name
1032
- }
1195
+ header_params = {}
1196
+ if request.name
1197
+ header_params["name"] = request.name
1198
+ end
1199
+
1033
1200
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1034
1201
  metadata[:"x-goog-request-params"] ||= request_params_header
1035
1202
 
@@ -1104,6 +1271,21 @@ module Google
1104
1271
  #
1105
1272
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1106
1273
  #
1274
+ # @example Basic example
1275
+ # require "google/cloud/container/v1beta1"
1276
+ #
1277
+ # # Create a client object. The client can be reused for multiple calls.
1278
+ # client = Google::Cloud::Container::V1beta1::ClusterManager::Client.new
1279
+ #
1280
+ # # Create a request. To set request fields, pass in keyword arguments.
1281
+ # request = Google::Cloud::Container::V1beta1::SetLocationsRequest.new
1282
+ #
1283
+ # # Call the set_locations method.
1284
+ # result = client.set_locations request
1285
+ #
1286
+ # # The returned object is of type Google::Cloud::Container::V1beta1::Operation.
1287
+ # p result
1288
+ #
1107
1289
  def set_locations request, options = nil
1108
1290
  raise ::ArgumentError, "request must be provided" if request.nil?
1109
1291
 
@@ -1121,9 +1303,11 @@ module Google
1121
1303
  gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
1122
1304
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1123
1305
 
1124
- header_params = {
1125
- "name" => request.name
1126
- }
1306
+ header_params = {}
1307
+ if request.name
1308
+ header_params["name"] = request.name
1309
+ end
1310
+
1127
1311
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1128
1312
  metadata[:"x-goog-request-params"] ||= request_params_header
1129
1313
 
@@ -1196,6 +1380,21 @@ module Google
1196
1380
  #
1197
1381
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1198
1382
  #
1383
+ # @example Basic example
1384
+ # require "google/cloud/container/v1beta1"
1385
+ #
1386
+ # # Create a client object. The client can be reused for multiple calls.
1387
+ # client = Google::Cloud::Container::V1beta1::ClusterManager::Client.new
1388
+ #
1389
+ # # Create a request. To set request fields, pass in keyword arguments.
1390
+ # request = Google::Cloud::Container::V1beta1::UpdateMasterRequest.new
1391
+ #
1392
+ # # Call the update_master method.
1393
+ # result = client.update_master request
1394
+ #
1395
+ # # The returned object is of type Google::Cloud::Container::V1beta1::Operation.
1396
+ # p result
1397
+ #
1199
1398
  def update_master request, options = nil
1200
1399
  raise ::ArgumentError, "request must be provided" if request.nil?
1201
1400
 
@@ -1213,9 +1412,11 @@ module Google
1213
1412
  gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
1214
1413
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1215
1414
 
1216
- header_params = {
1217
- "name" => request.name
1218
- }
1415
+ header_params = {}
1416
+ if request.name
1417
+ header_params["name"] = request.name
1418
+ end
1419
+
1219
1420
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1220
1421
  metadata[:"x-goog-request-params"] ||= request_params_header
1221
1422
 
@@ -1283,6 +1484,21 @@ module Google
1283
1484
  #
1284
1485
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1285
1486
  #
1487
+ # @example Basic example
1488
+ # require "google/cloud/container/v1beta1"
1489
+ #
1490
+ # # Create a client object. The client can be reused for multiple calls.
1491
+ # client = Google::Cloud::Container::V1beta1::ClusterManager::Client.new
1492
+ #
1493
+ # # Create a request. To set request fields, pass in keyword arguments.
1494
+ # request = Google::Cloud::Container::V1beta1::SetMasterAuthRequest.new
1495
+ #
1496
+ # # Call the set_master_auth method.
1497
+ # result = client.set_master_auth request
1498
+ #
1499
+ # # The returned object is of type Google::Cloud::Container::V1beta1::Operation.
1500
+ # p result
1501
+ #
1286
1502
  def set_master_auth request, options = nil
1287
1503
  raise ::ArgumentError, "request must be provided" if request.nil?
1288
1504
 
@@ -1300,9 +1516,11 @@ module Google
1300
1516
  gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
1301
1517
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1302
1518
 
1303
- header_params = {
1304
- "name" => request.name
1305
- }
1519
+ header_params = {}
1520
+ if request.name
1521
+ header_params["name"] = request.name
1522
+ end
1523
+
1306
1524
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1307
1525
  metadata[:"x-goog-request-params"] ||= request_params_header
1308
1526
 
@@ -1372,6 +1590,21 @@ module Google
1372
1590
  #
1373
1591
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1374
1592
  #
1593
+ # @example Basic example
1594
+ # require "google/cloud/container/v1beta1"
1595
+ #
1596
+ # # Create a client object. The client can be reused for multiple calls.
1597
+ # client = Google::Cloud::Container::V1beta1::ClusterManager::Client.new
1598
+ #
1599
+ # # Create a request. To set request fields, pass in keyword arguments.
1600
+ # request = Google::Cloud::Container::V1beta1::DeleteClusterRequest.new
1601
+ #
1602
+ # # Call the delete_cluster method.
1603
+ # result = client.delete_cluster request
1604
+ #
1605
+ # # The returned object is of type Google::Cloud::Container::V1beta1::Operation.
1606
+ # p result
1607
+ #
1375
1608
  def delete_cluster request, options = nil
1376
1609
  raise ::ArgumentError, "request must be provided" if request.nil?
1377
1610
 
@@ -1389,9 +1622,11 @@ module Google
1389
1622
  gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
1390
1623
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1391
1624
 
1392
- header_params = {
1393
- "name" => request.name
1394
- }
1625
+ header_params = {}
1626
+ if request.name
1627
+ header_params["name"] = request.name
1628
+ end
1629
+
1395
1630
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1396
1631
  metadata[:"x-goog-request-params"] ||= request_params_header
1397
1632
 
@@ -1451,6 +1686,21 @@ module Google
1451
1686
  #
1452
1687
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1453
1688
  #
1689
+ # @example Basic example
1690
+ # require "google/cloud/container/v1beta1"
1691
+ #
1692
+ # # Create a client object. The client can be reused for multiple calls.
1693
+ # client = Google::Cloud::Container::V1beta1::ClusterManager::Client.new
1694
+ #
1695
+ # # Create a request. To set request fields, pass in keyword arguments.
1696
+ # request = Google::Cloud::Container::V1beta1::ListOperationsRequest.new
1697
+ #
1698
+ # # Call the list_operations method.
1699
+ # result = client.list_operations request
1700
+ #
1701
+ # # The returned object is of type Google::Cloud::Container::V1beta1::ListOperationsResponse.
1702
+ # p result
1703
+ #
1454
1704
  def list_operations request, options = nil
1455
1705
  raise ::ArgumentError, "request must be provided" if request.nil?
1456
1706
 
@@ -1468,9 +1718,11 @@ module Google
1468
1718
  gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
1469
1719
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1470
1720
 
1471
- header_params = {
1472
- "parent" => request.parent
1473
- }
1721
+ header_params = {}
1722
+ if request.parent
1723
+ header_params["parent"] = request.parent
1724
+ end
1725
+
1474
1726
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1475
1727
  metadata[:"x-goog-request-params"] ||= request_params_header
1476
1728
 
@@ -1532,6 +1784,21 @@ module Google
1532
1784
  #
1533
1785
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1534
1786
  #
1787
+ # @example Basic example
1788
+ # require "google/cloud/container/v1beta1"
1789
+ #
1790
+ # # Create a client object. The client can be reused for multiple calls.
1791
+ # client = Google::Cloud::Container::V1beta1::ClusterManager::Client.new
1792
+ #
1793
+ # # Create a request. To set request fields, pass in keyword arguments.
1794
+ # request = Google::Cloud::Container::V1beta1::GetOperationRequest.new
1795
+ #
1796
+ # # Call the get_operation method.
1797
+ # result = client.get_operation request
1798
+ #
1799
+ # # The returned object is of type Google::Cloud::Container::V1beta1::Operation.
1800
+ # p result
1801
+ #
1535
1802
  def get_operation request, options = nil
1536
1803
  raise ::ArgumentError, "request must be provided" if request.nil?
1537
1804
 
@@ -1549,9 +1816,11 @@ module Google
1549
1816
  gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
1550
1817
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1551
1818
 
1552
- header_params = {
1553
- "name" => request.name
1554
- }
1819
+ header_params = {}
1820
+ if request.name
1821
+ header_params["name"] = request.name
1822
+ end
1823
+
1555
1824
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1556
1825
  metadata[:"x-goog-request-params"] ||= request_params_header
1557
1826
 
@@ -1613,6 +1882,21 @@ module Google
1613
1882
  #
1614
1883
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1615
1884
  #
1885
+ # @example Basic example
1886
+ # require "google/cloud/container/v1beta1"
1887
+ #
1888
+ # # Create a client object. The client can be reused for multiple calls.
1889
+ # client = Google::Cloud::Container::V1beta1::ClusterManager::Client.new
1890
+ #
1891
+ # # Create a request. To set request fields, pass in keyword arguments.
1892
+ # request = Google::Cloud::Container::V1beta1::CancelOperationRequest.new
1893
+ #
1894
+ # # Call the cancel_operation method.
1895
+ # result = client.cancel_operation request
1896
+ #
1897
+ # # The returned object is of type Google::Protobuf::Empty.
1898
+ # p result
1899
+ #
1616
1900
  def cancel_operation request, options = nil
1617
1901
  raise ::ArgumentError, "request must be provided" if request.nil?
1618
1902
 
@@ -1630,9 +1914,11 @@ module Google
1630
1914
  gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
1631
1915
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1632
1916
 
1633
- header_params = {
1634
- "name" => request.name
1635
- }
1917
+ header_params = {}
1918
+ if request.name
1919
+ header_params["name"] = request.name
1920
+ end
1921
+
1636
1922
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1637
1923
  metadata[:"x-goog-request-params"] ||= request_params_header
1638
1924
 
@@ -1691,6 +1977,21 @@ module Google
1691
1977
  #
1692
1978
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1693
1979
  #
1980
+ # @example Basic example
1981
+ # require "google/cloud/container/v1beta1"
1982
+ #
1983
+ # # Create a client object. The client can be reused for multiple calls.
1984
+ # client = Google::Cloud::Container::V1beta1::ClusterManager::Client.new
1985
+ #
1986
+ # # Create a request. To set request fields, pass in keyword arguments.
1987
+ # request = Google::Cloud::Container::V1beta1::GetServerConfigRequest.new
1988
+ #
1989
+ # # Call the get_server_config method.
1990
+ # result = client.get_server_config request
1991
+ #
1992
+ # # The returned object is of type Google::Cloud::Container::V1beta1::ServerConfig.
1993
+ # p result
1994
+ #
1694
1995
  def get_server_config request, options = nil
1695
1996
  raise ::ArgumentError, "request must be provided" if request.nil?
1696
1997
 
@@ -1708,9 +2009,11 @@ module Google
1708
2009
  gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
1709
2010
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1710
2011
 
1711
- header_params = {
1712
- "name" => request.name
1713
- }
2012
+ header_params = {}
2013
+ if request.name
2014
+ header_params["name"] = request.name
2015
+ end
2016
+
1714
2017
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1715
2018
  metadata[:"x-goog-request-params"] ||= request_params_header
1716
2019
 
@@ -1772,6 +2075,21 @@ module Google
1772
2075
  #
1773
2076
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1774
2077
  #
2078
+ # @example Basic example
2079
+ # require "google/cloud/container/v1beta1"
2080
+ #
2081
+ # # Create a client object. The client can be reused for multiple calls.
2082
+ # client = Google::Cloud::Container::V1beta1::ClusterManager::Client.new
2083
+ #
2084
+ # # Create a request. To set request fields, pass in keyword arguments.
2085
+ # request = Google::Cloud::Container::V1beta1::ListNodePoolsRequest.new
2086
+ #
2087
+ # # Call the list_node_pools method.
2088
+ # result = client.list_node_pools request
2089
+ #
2090
+ # # The returned object is of type Google::Cloud::Container::V1beta1::ListNodePoolsResponse.
2091
+ # p result
2092
+ #
1775
2093
  def list_node_pools request, options = nil
1776
2094
  raise ::ArgumentError, "request must be provided" if request.nil?
1777
2095
 
@@ -1789,9 +2107,11 @@ module Google
1789
2107
  gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
1790
2108
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1791
2109
 
1792
- header_params = {
1793
- "parent" => request.parent
1794
- }
2110
+ header_params = {}
2111
+ if request.parent
2112
+ header_params["parent"] = request.parent
2113
+ end
2114
+
1795
2115
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1796
2116
  metadata[:"x-goog-request-params"] ||= request_params_header
1797
2117
 
@@ -1844,6 +2164,21 @@ module Google
1844
2164
  #
1845
2165
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1846
2166
  #
2167
+ # @example Basic example
2168
+ # require "google/cloud/container/v1beta1"
2169
+ #
2170
+ # # Create a client object. The client can be reused for multiple calls.
2171
+ # client = Google::Cloud::Container::V1beta1::ClusterManager::Client.new
2172
+ #
2173
+ # # Create a request. To set request fields, pass in keyword arguments.
2174
+ # request = Google::Cloud::Container::V1beta1::GetJSONWebKeysRequest.new
2175
+ #
2176
+ # # Call the get_json_web_keys method.
2177
+ # result = client.get_json_web_keys request
2178
+ #
2179
+ # # The returned object is of type Google::Cloud::Container::V1beta1::GetJSONWebKeysResponse.
2180
+ # p result
2181
+ #
1847
2182
  def get_json_web_keys request, options = nil
1848
2183
  raise ::ArgumentError, "request must be provided" if request.nil?
1849
2184
 
@@ -1861,9 +2196,11 @@ module Google
1861
2196
  gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
1862
2197
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1863
2198
 
1864
- header_params = {
1865
- "parent" => request.parent
1866
- }
2199
+ header_params = {}
2200
+ if request.parent
2201
+ header_params["parent"] = request.parent
2202
+ end
2203
+
1867
2204
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1868
2205
  metadata[:"x-goog-request-params"] ||= request_params_header
1869
2206
 
@@ -1929,6 +2266,21 @@ module Google
1929
2266
  #
1930
2267
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1931
2268
  #
2269
+ # @example Basic example
2270
+ # require "google/cloud/container/v1beta1"
2271
+ #
2272
+ # # Create a client object. The client can be reused for multiple calls.
2273
+ # client = Google::Cloud::Container::V1beta1::ClusterManager::Client.new
2274
+ #
2275
+ # # Create a request. To set request fields, pass in keyword arguments.
2276
+ # request = Google::Cloud::Container::V1beta1::GetNodePoolRequest.new
2277
+ #
2278
+ # # Call the get_node_pool method.
2279
+ # result = client.get_node_pool request
2280
+ #
2281
+ # # The returned object is of type Google::Cloud::Container::V1beta1::NodePool.
2282
+ # p result
2283
+ #
1932
2284
  def get_node_pool request, options = nil
1933
2285
  raise ::ArgumentError, "request must be provided" if request.nil?
1934
2286
 
@@ -1946,9 +2298,11 @@ module Google
1946
2298
  gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
1947
2299
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1948
2300
 
1949
- header_params = {
1950
- "name" => request.name
1951
- }
2301
+ header_params = {}
2302
+ if request.name
2303
+ header_params["name"] = request.name
2304
+ end
2305
+
1952
2306
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1953
2307
  metadata[:"x-goog-request-params"] ||= request_params_header
1954
2308
 
@@ -2013,6 +2367,21 @@ module Google
2013
2367
  #
2014
2368
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
2015
2369
  #
2370
+ # @example Basic example
2371
+ # require "google/cloud/container/v1beta1"
2372
+ #
2373
+ # # Create a client object. The client can be reused for multiple calls.
2374
+ # client = Google::Cloud::Container::V1beta1::ClusterManager::Client.new
2375
+ #
2376
+ # # Create a request. To set request fields, pass in keyword arguments.
2377
+ # request = Google::Cloud::Container::V1beta1::CreateNodePoolRequest.new
2378
+ #
2379
+ # # Call the create_node_pool method.
2380
+ # result = client.create_node_pool request
2381
+ #
2382
+ # # The returned object is of type Google::Cloud::Container::V1beta1::Operation.
2383
+ # p result
2384
+ #
2016
2385
  def create_node_pool request, options = nil
2017
2386
  raise ::ArgumentError, "request must be provided" if request.nil?
2018
2387
 
@@ -2030,9 +2399,11 @@ module Google
2030
2399
  gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
2031
2400
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2032
2401
 
2033
- header_params = {
2034
- "parent" => request.parent
2035
- }
2402
+ header_params = {}
2403
+ if request.parent
2404
+ header_params["parent"] = request.parent
2405
+ end
2406
+
2036
2407
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2037
2408
  metadata[:"x-goog-request-params"] ||= request_params_header
2038
2409
 
@@ -2098,6 +2469,21 @@ module Google
2098
2469
  #
2099
2470
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
2100
2471
  #
2472
+ # @example Basic example
2473
+ # require "google/cloud/container/v1beta1"
2474
+ #
2475
+ # # Create a client object. The client can be reused for multiple calls.
2476
+ # client = Google::Cloud::Container::V1beta1::ClusterManager::Client.new
2477
+ #
2478
+ # # Create a request. To set request fields, pass in keyword arguments.
2479
+ # request = Google::Cloud::Container::V1beta1::DeleteNodePoolRequest.new
2480
+ #
2481
+ # # Call the delete_node_pool method.
2482
+ # result = client.delete_node_pool request
2483
+ #
2484
+ # # The returned object is of type Google::Cloud::Container::V1beta1::Operation.
2485
+ # p result
2486
+ #
2101
2487
  def delete_node_pool request, options = nil
2102
2488
  raise ::ArgumentError, "request must be provided" if request.nil?
2103
2489
 
@@ -2115,9 +2501,11 @@ module Google
2115
2501
  gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
2116
2502
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2117
2503
 
2118
- header_params = {
2119
- "name" => request.name
2120
- }
2504
+ header_params = {}
2505
+ if request.name
2506
+ header_params["name"] = request.name
2507
+ end
2508
+
2121
2509
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2122
2510
  metadata[:"x-goog-request-params"] ||= request_params_header
2123
2511
 
@@ -2184,6 +2572,21 @@ module Google
2184
2572
  #
2185
2573
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
2186
2574
  #
2575
+ # @example Basic example
2576
+ # require "google/cloud/container/v1beta1"
2577
+ #
2578
+ # # Create a client object. The client can be reused for multiple calls.
2579
+ # client = Google::Cloud::Container::V1beta1::ClusterManager::Client.new
2580
+ #
2581
+ # # Create a request. To set request fields, pass in keyword arguments.
2582
+ # request = Google::Cloud::Container::V1beta1::RollbackNodePoolUpgradeRequest.new
2583
+ #
2584
+ # # Call the rollback_node_pool_upgrade method.
2585
+ # result = client.rollback_node_pool_upgrade request
2586
+ #
2587
+ # # The returned object is of type Google::Cloud::Container::V1beta1::Operation.
2588
+ # p result
2589
+ #
2187
2590
  def rollback_node_pool_upgrade request, options = nil
2188
2591
  raise ::ArgumentError, "request must be provided" if request.nil?
2189
2592
 
@@ -2201,9 +2604,11 @@ module Google
2201
2604
  gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
2202
2605
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2203
2606
 
2204
- header_params = {
2205
- "name" => request.name
2206
- }
2607
+ header_params = {}
2608
+ if request.name
2609
+ header_params["name"] = request.name
2610
+ end
2611
+
2207
2612
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2208
2613
  metadata[:"x-goog-request-params"] ||= request_params_header
2209
2614
 
@@ -2271,6 +2676,21 @@ module Google
2271
2676
  #
2272
2677
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
2273
2678
  #
2679
+ # @example Basic example
2680
+ # require "google/cloud/container/v1beta1"
2681
+ #
2682
+ # # Create a client object. The client can be reused for multiple calls.
2683
+ # client = Google::Cloud::Container::V1beta1::ClusterManager::Client.new
2684
+ #
2685
+ # # Create a request. To set request fields, pass in keyword arguments.
2686
+ # request = Google::Cloud::Container::V1beta1::SetNodePoolManagementRequest.new
2687
+ #
2688
+ # # Call the set_node_pool_management method.
2689
+ # result = client.set_node_pool_management request
2690
+ #
2691
+ # # The returned object is of type Google::Cloud::Container::V1beta1::Operation.
2692
+ # p result
2693
+ #
2274
2694
  def set_node_pool_management request, options = nil
2275
2695
  raise ::ArgumentError, "request must be provided" if request.nil?
2276
2696
 
@@ -2288,9 +2708,11 @@ module Google
2288
2708
  gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
2289
2709
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2290
2710
 
2291
- header_params = {
2292
- "name" => request.name
2293
- }
2711
+ header_params = {}
2712
+ if request.name
2713
+ header_params["name"] = request.name
2714
+ end
2715
+
2294
2716
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2295
2717
  metadata[:"x-goog-request-params"] ||= request_params_header
2296
2718
 
@@ -2361,6 +2783,21 @@ module Google
2361
2783
  #
2362
2784
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
2363
2785
  #
2786
+ # @example Basic example
2787
+ # require "google/cloud/container/v1beta1"
2788
+ #
2789
+ # # Create a client object. The client can be reused for multiple calls.
2790
+ # client = Google::Cloud::Container::V1beta1::ClusterManager::Client.new
2791
+ #
2792
+ # # Create a request. To set request fields, pass in keyword arguments.
2793
+ # request = Google::Cloud::Container::V1beta1::SetLabelsRequest.new
2794
+ #
2795
+ # # Call the set_labels method.
2796
+ # result = client.set_labels request
2797
+ #
2798
+ # # The returned object is of type Google::Cloud::Container::V1beta1::Operation.
2799
+ # p result
2800
+ #
2364
2801
  def set_labels request, options = nil
2365
2802
  raise ::ArgumentError, "request must be provided" if request.nil?
2366
2803
 
@@ -2378,9 +2815,11 @@ module Google
2378
2815
  gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
2379
2816
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2380
2817
 
2381
- header_params = {
2382
- "name" => request.name
2383
- }
2818
+ header_params = {}
2819
+ if request.name
2820
+ header_params["name"] = request.name
2821
+ end
2822
+
2384
2823
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2385
2824
  metadata[:"x-goog-request-params"] ||= request_params_header
2386
2825
 
@@ -2444,6 +2883,21 @@ module Google
2444
2883
  #
2445
2884
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
2446
2885
  #
2886
+ # @example Basic example
2887
+ # require "google/cloud/container/v1beta1"
2888
+ #
2889
+ # # Create a client object. The client can be reused for multiple calls.
2890
+ # client = Google::Cloud::Container::V1beta1::ClusterManager::Client.new
2891
+ #
2892
+ # # Create a request. To set request fields, pass in keyword arguments.
2893
+ # request = Google::Cloud::Container::V1beta1::SetLegacyAbacRequest.new
2894
+ #
2895
+ # # Call the set_legacy_abac method.
2896
+ # result = client.set_legacy_abac request
2897
+ #
2898
+ # # The returned object is of type Google::Cloud::Container::V1beta1::Operation.
2899
+ # p result
2900
+ #
2447
2901
  def set_legacy_abac request, options = nil
2448
2902
  raise ::ArgumentError, "request must be provided" if request.nil?
2449
2903
 
@@ -2461,9 +2915,11 @@ module Google
2461
2915
  gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
2462
2916
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2463
2917
 
2464
- header_params = {
2465
- "name" => request.name
2466
- }
2918
+ header_params = {}
2919
+ if request.name
2920
+ header_params["name"] = request.name
2921
+ end
2922
+
2467
2923
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2468
2924
  metadata[:"x-goog-request-params"] ||= request_params_header
2469
2925
 
@@ -2527,6 +2983,21 @@ module Google
2527
2983
  #
2528
2984
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
2529
2985
  #
2986
+ # @example Basic example
2987
+ # require "google/cloud/container/v1beta1"
2988
+ #
2989
+ # # Create a client object. The client can be reused for multiple calls.
2990
+ # client = Google::Cloud::Container::V1beta1::ClusterManager::Client.new
2991
+ #
2992
+ # # Create a request. To set request fields, pass in keyword arguments.
2993
+ # request = Google::Cloud::Container::V1beta1::StartIPRotationRequest.new
2994
+ #
2995
+ # # Call the start_ip_rotation method.
2996
+ # result = client.start_ip_rotation request
2997
+ #
2998
+ # # The returned object is of type Google::Cloud::Container::V1beta1::Operation.
2999
+ # p result
3000
+ #
2530
3001
  def start_ip_rotation request, options = nil
2531
3002
  raise ::ArgumentError, "request must be provided" if request.nil?
2532
3003
 
@@ -2544,9 +3015,11 @@ module Google
2544
3015
  gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
2545
3016
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2546
3017
 
2547
- header_params = {
2548
- "name" => request.name
2549
- }
3018
+ header_params = {}
3019
+ if request.name
3020
+ header_params["name"] = request.name
3021
+ end
3022
+
2550
3023
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2551
3024
  metadata[:"x-goog-request-params"] ||= request_params_header
2552
3025
 
@@ -2608,6 +3081,21 @@ module Google
2608
3081
  #
2609
3082
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
2610
3083
  #
3084
+ # @example Basic example
3085
+ # require "google/cloud/container/v1beta1"
3086
+ #
3087
+ # # Create a client object. The client can be reused for multiple calls.
3088
+ # client = Google::Cloud::Container::V1beta1::ClusterManager::Client.new
3089
+ #
3090
+ # # Create a request. To set request fields, pass in keyword arguments.
3091
+ # request = Google::Cloud::Container::V1beta1::CompleteIPRotationRequest.new
3092
+ #
3093
+ # # Call the complete_ip_rotation method.
3094
+ # result = client.complete_ip_rotation request
3095
+ #
3096
+ # # The returned object is of type Google::Cloud::Container::V1beta1::Operation.
3097
+ # p result
3098
+ #
2611
3099
  def complete_ip_rotation request, options = nil
2612
3100
  raise ::ArgumentError, "request must be provided" if request.nil?
2613
3101
 
@@ -2625,9 +3113,11 @@ module Google
2625
3113
  gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
2626
3114
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2627
3115
 
2628
- header_params = {
2629
- "name" => request.name
2630
- }
3116
+ header_params = {}
3117
+ if request.name
3118
+ header_params["name"] = request.name
3119
+ end
3120
+
2631
3121
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2632
3122
  metadata[:"x-goog-request-params"] ||= request_params_header
2633
3123
 
@@ -2648,7 +3138,9 @@ module Google
2648
3138
  end
2649
3139
 
2650
3140
  ##
2651
- # Sets the size for a specific node pool.
3141
+ # SetNodePoolSizeRequest sets the size of a node pool. The new size will be
3142
+ # used for all replicas, including future replicas created by modifying
3143
+ # {::Google::Cloud::Container::V1beta1::NodePool#locations NodePool.locations}.
2652
3144
  #
2653
3145
  # @overload set_node_pool_size(request, options = nil)
2654
3146
  # Pass arguments to `set_node_pool_size` via a request object, either of type
@@ -2695,6 +3187,21 @@ module Google
2695
3187
  #
2696
3188
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
2697
3189
  #
3190
+ # @example Basic example
3191
+ # require "google/cloud/container/v1beta1"
3192
+ #
3193
+ # # Create a client object. The client can be reused for multiple calls.
3194
+ # client = Google::Cloud::Container::V1beta1::ClusterManager::Client.new
3195
+ #
3196
+ # # Create a request. To set request fields, pass in keyword arguments.
3197
+ # request = Google::Cloud::Container::V1beta1::SetNodePoolSizeRequest.new
3198
+ #
3199
+ # # Call the set_node_pool_size method.
3200
+ # result = client.set_node_pool_size request
3201
+ #
3202
+ # # The returned object is of type Google::Cloud::Container::V1beta1::Operation.
3203
+ # p result
3204
+ #
2698
3205
  def set_node_pool_size request, options = nil
2699
3206
  raise ::ArgumentError, "request must be provided" if request.nil?
2700
3207
 
@@ -2712,9 +3219,11 @@ module Google
2712
3219
  gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
2713
3220
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2714
3221
 
2715
- header_params = {
2716
- "name" => request.name
2717
- }
3222
+ header_params = {}
3223
+ if request.name
3224
+ header_params["name"] = request.name
3225
+ end
3226
+
2718
3227
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2719
3228
  metadata[:"x-goog-request-params"] ||= request_params_header
2720
3229
 
@@ -2778,6 +3287,21 @@ module Google
2778
3287
  #
2779
3288
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
2780
3289
  #
3290
+ # @example Basic example
3291
+ # require "google/cloud/container/v1beta1"
3292
+ #
3293
+ # # Create a client object. The client can be reused for multiple calls.
3294
+ # client = Google::Cloud::Container::V1beta1::ClusterManager::Client.new
3295
+ #
3296
+ # # Create a request. To set request fields, pass in keyword arguments.
3297
+ # request = Google::Cloud::Container::V1beta1::SetNetworkPolicyRequest.new
3298
+ #
3299
+ # # Call the set_network_policy method.
3300
+ # result = client.set_network_policy request
3301
+ #
3302
+ # # The returned object is of type Google::Cloud::Container::V1beta1::Operation.
3303
+ # p result
3304
+ #
2781
3305
  def set_network_policy request, options = nil
2782
3306
  raise ::ArgumentError, "request must be provided" if request.nil?
2783
3307
 
@@ -2795,9 +3319,11 @@ module Google
2795
3319
  gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
2796
3320
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2797
3321
 
2798
- header_params = {
2799
- "name" => request.name
2800
- }
3322
+ header_params = {}
3323
+ if request.name
3324
+ header_params["name"] = request.name
3325
+ end
3326
+
2801
3327
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2802
3328
  metadata[:"x-goog-request-params"] ||= request_params_header
2803
3329
 
@@ -2860,6 +3386,21 @@ module Google
2860
3386
  #
2861
3387
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
2862
3388
  #
3389
+ # @example Basic example
3390
+ # require "google/cloud/container/v1beta1"
3391
+ #
3392
+ # # Create a client object. The client can be reused for multiple calls.
3393
+ # client = Google::Cloud::Container::V1beta1::ClusterManager::Client.new
3394
+ #
3395
+ # # Create a request. To set request fields, pass in keyword arguments.
3396
+ # request = Google::Cloud::Container::V1beta1::SetMaintenancePolicyRequest.new
3397
+ #
3398
+ # # Call the set_maintenance_policy method.
3399
+ # result = client.set_maintenance_policy request
3400
+ #
3401
+ # # The returned object is of type Google::Cloud::Container::V1beta1::Operation.
3402
+ # p result
3403
+ #
2863
3404
  def set_maintenance_policy request, options = nil
2864
3405
  raise ::ArgumentError, "request must be provided" if request.nil?
2865
3406
 
@@ -2877,9 +3418,11 @@ module Google
2877
3418
  gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
2878
3419
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2879
3420
 
2880
- header_params = {
2881
- "name" => request.name
2882
- }
3421
+ header_params = {}
3422
+ if request.name
3423
+ header_params["name"] = request.name
3424
+ end
3425
+
2883
3426
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2884
3427
  metadata[:"x-goog-request-params"] ||= request_params_header
2885
3428
 
@@ -2942,6 +3485,27 @@ module Google
2942
3485
  #
2943
3486
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
2944
3487
  #
3488
+ # @example Basic example
3489
+ # require "google/cloud/container/v1beta1"
3490
+ #
3491
+ # # Create a client object. The client can be reused for multiple calls.
3492
+ # client = Google::Cloud::Container::V1beta1::ClusterManager::Client.new
3493
+ #
3494
+ # # Create a request. To set request fields, pass in keyword arguments.
3495
+ # request = Google::Cloud::Container::V1beta1::ListUsableSubnetworksRequest.new
3496
+ #
3497
+ # # Call the list_usable_subnetworks method.
3498
+ # result = client.list_usable_subnetworks request
3499
+ #
3500
+ # # The returned object is of type Gapic::PagedEnumerable. You can
3501
+ # # iterate over all elements by calling #each, and the enumerable
3502
+ # # will lazily make API calls to fetch subsequent pages. Other
3503
+ # # methods are also available for managing paging directly.
3504
+ # result.each do |response|
3505
+ # # Each element is of type ::Google::Cloud::Container::V1beta1::UsableSubnetwork.
3506
+ # p response
3507
+ # end
3508
+ #
2945
3509
  def list_usable_subnetworks request, options = nil
2946
3510
  raise ::ArgumentError, "request must be provided" if request.nil?
2947
3511
 
@@ -2959,9 +3523,11 @@ module Google
2959
3523
  gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
2960
3524
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2961
3525
 
2962
- header_params = {
2963
- "parent" => request.parent
2964
- }
3526
+ header_params = {}
3527
+ if request.parent
3528
+ header_params["parent"] = request.parent
3529
+ end
3530
+
2965
3531
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2966
3532
  metadata[:"x-goog-request-params"] ||= request_params_header
2967
3533
 
@@ -3012,6 +3578,21 @@ module Google
3012
3578
  #
3013
3579
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
3014
3580
  #
3581
+ # @example Basic example
3582
+ # require "google/cloud/container/v1beta1"
3583
+ #
3584
+ # # Create a client object. The client can be reused for multiple calls.
3585
+ # client = Google::Cloud::Container::V1beta1::ClusterManager::Client.new
3586
+ #
3587
+ # # Create a request. To set request fields, pass in keyword arguments.
3588
+ # request = Google::Cloud::Container::V1beta1::ListLocationsRequest.new
3589
+ #
3590
+ # # Call the list_locations method.
3591
+ # result = client.list_locations request
3592
+ #
3593
+ # # The returned object is of type Google::Cloud::Container::V1beta1::ListLocationsResponse.
3594
+ # p result
3595
+ #
3015
3596
  def list_locations request, options = nil
3016
3597
  raise ::ArgumentError, "request must be provided" if request.nil?
3017
3598
 
@@ -3029,9 +3610,11 @@ module Google
3029
3610
  gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
3030
3611
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3031
3612
 
3032
- header_params = {
3033
- "parent" => request.parent
3034
- }
3613
+ header_params = {}
3614
+ if request.parent
3615
+ header_params["parent"] = request.parent
3616
+ end
3617
+
3035
3618
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
3036
3619
  metadata[:"x-goog-request-params"] ||= request_params_header
3037
3620