google-cloud-container-v1beta1 0.8.0 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +1 -1
- data/AUTHENTICATION.md +7 -25
- data/README.md +1 -1
- data/lib/google/cloud/container/v1beta1/cluster_manager/client.rb +671 -102
- data/lib/google/cloud/container/v1beta1/version.rb +1 -1
- data/lib/google/container/v1beta1/cluster_service_pb.rb +85 -2
- data/lib/google/container/v1beta1/cluster_service_services_pb.rb +1 -1
- data/proto_docs/google/api/resource.rb +10 -71
- data/proto_docs/google/container/v1beta1/cluster_service.rb +245 -11
- metadata +3 -3
@@ -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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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, tags: nil, taints: nil, labels: nil, linux_node_config: nil, kubelet_config: nil, gvnic: 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, gcfs_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).
|
@@ -656,6 +724,8 @@ module Google
|
|
656
724
|
# Parameters that can be configured on Linux nodes.
|
657
725
|
# @param kubelet_config [::Google::Cloud::Container::V1beta1::NodeKubeletConfig, ::Hash]
|
658
726
|
# Node kubelet configs.
|
727
|
+
# @param gcfs_config [::Google::Cloud::Container::V1beta1::GcfsConfig, ::Hash]
|
728
|
+
# GCFS config.
|
659
729
|
# @param gvnic [::Google::Cloud::Container::V1beta1::VirtualNIC, ::Hash]
|
660
730
|
# Enable or disable gvnic on the node pool.
|
661
731
|
#
|
@@ -667,6 +737,21 @@ module Google
|
|
667
737
|
#
|
668
738
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
669
739
|
#
|
740
|
+
# @example Basic example
|
741
|
+
# require "google/cloud/container/v1beta1"
|
742
|
+
#
|
743
|
+
# # Create a client object. The client can be reused for multiple calls.
|
744
|
+
# client = Google::Cloud::Container::V1beta1::ClusterManager::Client.new
|
745
|
+
#
|
746
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
747
|
+
# request = Google::Cloud::Container::V1beta1::UpdateNodePoolRequest.new
|
748
|
+
#
|
749
|
+
# # Call the update_node_pool method.
|
750
|
+
# result = client.update_node_pool request
|
751
|
+
#
|
752
|
+
# # The returned object is of type Google::Cloud::Container::V1beta1::Operation.
|
753
|
+
# p result
|
754
|
+
#
|
670
755
|
def update_node_pool request, options = nil
|
671
756
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
672
757
|
|
@@ -684,9 +769,11 @@ module Google
|
|
684
769
|
gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
|
685
770
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
686
771
|
|
687
|
-
header_params = {
|
688
|
-
|
689
|
-
|
772
|
+
header_params = {}
|
773
|
+
if request.name
|
774
|
+
header_params["name"] = request.name
|
775
|
+
end
|
776
|
+
|
690
777
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
691
778
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
692
779
|
|
@@ -754,6 +841,21 @@ module Google
|
|
754
841
|
#
|
755
842
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
756
843
|
#
|
844
|
+
# @example Basic example
|
845
|
+
# require "google/cloud/container/v1beta1"
|
846
|
+
#
|
847
|
+
# # Create a client object. The client can be reused for multiple calls.
|
848
|
+
# client = Google::Cloud::Container::V1beta1::ClusterManager::Client.new
|
849
|
+
#
|
850
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
851
|
+
# request = Google::Cloud::Container::V1beta1::SetNodePoolAutoscalingRequest.new
|
852
|
+
#
|
853
|
+
# # Call the set_node_pool_autoscaling method.
|
854
|
+
# result = client.set_node_pool_autoscaling request
|
855
|
+
#
|
856
|
+
# # The returned object is of type Google::Cloud::Container::V1beta1::Operation.
|
857
|
+
# p result
|
858
|
+
#
|
757
859
|
def set_node_pool_autoscaling request, options = nil
|
758
860
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
759
861
|
|
@@ -771,9 +873,11 @@ module Google
|
|
771
873
|
gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
|
772
874
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
773
875
|
|
774
|
-
header_params = {
|
775
|
-
|
776
|
-
|
876
|
+
header_params = {}
|
877
|
+
if request.name
|
878
|
+
header_params["name"] = request.name
|
879
|
+
end
|
880
|
+
|
777
881
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
778
882
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
779
883
|
|
@@ -847,6 +951,21 @@ module Google
|
|
847
951
|
#
|
848
952
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
849
953
|
#
|
954
|
+
# @example Basic example
|
955
|
+
# require "google/cloud/container/v1beta1"
|
956
|
+
#
|
957
|
+
# # Create a client object. The client can be reused for multiple calls.
|
958
|
+
# client = Google::Cloud::Container::V1beta1::ClusterManager::Client.new
|
959
|
+
#
|
960
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
961
|
+
# request = Google::Cloud::Container::V1beta1::SetLoggingServiceRequest.new
|
962
|
+
#
|
963
|
+
# # Call the set_logging_service method.
|
964
|
+
# result = client.set_logging_service request
|
965
|
+
#
|
966
|
+
# # The returned object is of type Google::Cloud::Container::V1beta1::Operation.
|
967
|
+
# p result
|
968
|
+
#
|
850
969
|
def set_logging_service request, options = nil
|
851
970
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
852
971
|
|
@@ -864,9 +983,11 @@ module Google
|
|
864
983
|
gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
|
865
984
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
866
985
|
|
867
|
-
header_params = {
|
868
|
-
|
869
|
-
|
986
|
+
header_params = {}
|
987
|
+
if request.name
|
988
|
+
header_params["name"] = request.name
|
989
|
+
end
|
990
|
+
|
870
991
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
871
992
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
872
993
|
|
@@ -940,6 +1061,21 @@ module Google
|
|
940
1061
|
#
|
941
1062
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
942
1063
|
#
|
1064
|
+
# @example Basic example
|
1065
|
+
# require "google/cloud/container/v1beta1"
|
1066
|
+
#
|
1067
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1068
|
+
# client = Google::Cloud::Container::V1beta1::ClusterManager::Client.new
|
1069
|
+
#
|
1070
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1071
|
+
# request = Google::Cloud::Container::V1beta1::SetMonitoringServiceRequest.new
|
1072
|
+
#
|
1073
|
+
# # Call the set_monitoring_service method.
|
1074
|
+
# result = client.set_monitoring_service request
|
1075
|
+
#
|
1076
|
+
# # The returned object is of type Google::Cloud::Container::V1beta1::Operation.
|
1077
|
+
# p result
|
1078
|
+
#
|
943
1079
|
def set_monitoring_service request, options = nil
|
944
1080
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
945
1081
|
|
@@ -957,9 +1093,11 @@ module Google
|
|
957
1093
|
gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
|
958
1094
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
959
1095
|
|
960
|
-
header_params = {
|
961
|
-
|
962
|
-
|
1096
|
+
header_params = {}
|
1097
|
+
if request.name
|
1098
|
+
header_params["name"] = request.name
|
1099
|
+
end
|
1100
|
+
|
963
1101
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
964
1102
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
965
1103
|
|
@@ -1010,8 +1148,8 @@ module Google
|
|
1010
1148
|
# Required. Deprecated. The name of the cluster to upgrade.
|
1011
1149
|
# This field has been deprecated and replaced by the name field.
|
1012
1150
|
# @param addons_config [::Google::Cloud::Container::V1beta1::AddonsConfig, ::Hash]
|
1013
|
-
# Required. The desired configurations for the various addons available to
|
1014
|
-
#
|
1151
|
+
# Required. The desired configurations for the various addons available to run in the
|
1152
|
+
# cluster.
|
1015
1153
|
# @param name [::String]
|
1016
1154
|
# The name (project, location, cluster) of the cluster to set addons.
|
1017
1155
|
# Specified in the format `projects/*/locations/*/clusters/*`.
|
@@ -1024,6 +1162,21 @@ module Google
|
|
1024
1162
|
#
|
1025
1163
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1026
1164
|
#
|
1165
|
+
# @example Basic example
|
1166
|
+
# require "google/cloud/container/v1beta1"
|
1167
|
+
#
|
1168
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1169
|
+
# client = Google::Cloud::Container::V1beta1::ClusterManager::Client.new
|
1170
|
+
#
|
1171
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1172
|
+
# request = Google::Cloud::Container::V1beta1::SetAddonsConfigRequest.new
|
1173
|
+
#
|
1174
|
+
# # Call the set_addons_config method.
|
1175
|
+
# result = client.set_addons_config request
|
1176
|
+
#
|
1177
|
+
# # The returned object is of type Google::Cloud::Container::V1beta1::Operation.
|
1178
|
+
# p result
|
1179
|
+
#
|
1027
1180
|
def set_addons_config request, options = nil
|
1028
1181
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1029
1182
|
|
@@ -1041,9 +1194,11 @@ module Google
|
|
1041
1194
|
gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
|
1042
1195
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1043
1196
|
|
1044
|
-
header_params = {
|
1045
|
-
|
1046
|
-
|
1197
|
+
header_params = {}
|
1198
|
+
if request.name
|
1199
|
+
header_params["name"] = request.name
|
1200
|
+
end
|
1201
|
+
|
1047
1202
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1048
1203
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1049
1204
|
|
@@ -1118,6 +1273,21 @@ module Google
|
|
1118
1273
|
#
|
1119
1274
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1120
1275
|
#
|
1276
|
+
# @example Basic example
|
1277
|
+
# require "google/cloud/container/v1beta1"
|
1278
|
+
#
|
1279
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1280
|
+
# client = Google::Cloud::Container::V1beta1::ClusterManager::Client.new
|
1281
|
+
#
|
1282
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1283
|
+
# request = Google::Cloud::Container::V1beta1::SetLocationsRequest.new
|
1284
|
+
#
|
1285
|
+
# # Call the set_locations method.
|
1286
|
+
# result = client.set_locations request
|
1287
|
+
#
|
1288
|
+
# # The returned object is of type Google::Cloud::Container::V1beta1::Operation.
|
1289
|
+
# p result
|
1290
|
+
#
|
1121
1291
|
def set_locations request, options = nil
|
1122
1292
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1123
1293
|
|
@@ -1135,9 +1305,11 @@ module Google
|
|
1135
1305
|
gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
|
1136
1306
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1137
1307
|
|
1138
|
-
header_params = {
|
1139
|
-
|
1140
|
-
|
1308
|
+
header_params = {}
|
1309
|
+
if request.name
|
1310
|
+
header_params["name"] = request.name
|
1311
|
+
end
|
1312
|
+
|
1141
1313
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1142
1314
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1143
1315
|
|
@@ -1210,6 +1382,21 @@ module Google
|
|
1210
1382
|
#
|
1211
1383
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1212
1384
|
#
|
1385
|
+
# @example Basic example
|
1386
|
+
# require "google/cloud/container/v1beta1"
|
1387
|
+
#
|
1388
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1389
|
+
# client = Google::Cloud::Container::V1beta1::ClusterManager::Client.new
|
1390
|
+
#
|
1391
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1392
|
+
# request = Google::Cloud::Container::V1beta1::UpdateMasterRequest.new
|
1393
|
+
#
|
1394
|
+
# # Call the update_master method.
|
1395
|
+
# result = client.update_master request
|
1396
|
+
#
|
1397
|
+
# # The returned object is of type Google::Cloud::Container::V1beta1::Operation.
|
1398
|
+
# p result
|
1399
|
+
#
|
1213
1400
|
def update_master request, options = nil
|
1214
1401
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1215
1402
|
|
@@ -1227,9 +1414,11 @@ module Google
|
|
1227
1414
|
gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
|
1228
1415
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1229
1416
|
|
1230
|
-
header_params = {
|
1231
|
-
|
1232
|
-
|
1417
|
+
header_params = {}
|
1418
|
+
if request.name
|
1419
|
+
header_params["name"] = request.name
|
1420
|
+
end
|
1421
|
+
|
1233
1422
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1234
1423
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1235
1424
|
|
@@ -1297,6 +1486,21 @@ module Google
|
|
1297
1486
|
#
|
1298
1487
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1299
1488
|
#
|
1489
|
+
# @example Basic example
|
1490
|
+
# require "google/cloud/container/v1beta1"
|
1491
|
+
#
|
1492
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1493
|
+
# client = Google::Cloud::Container::V1beta1::ClusterManager::Client.new
|
1494
|
+
#
|
1495
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1496
|
+
# request = Google::Cloud::Container::V1beta1::SetMasterAuthRequest.new
|
1497
|
+
#
|
1498
|
+
# # Call the set_master_auth method.
|
1499
|
+
# result = client.set_master_auth request
|
1500
|
+
#
|
1501
|
+
# # The returned object is of type Google::Cloud::Container::V1beta1::Operation.
|
1502
|
+
# p result
|
1503
|
+
#
|
1300
1504
|
def set_master_auth request, options = nil
|
1301
1505
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1302
1506
|
|
@@ -1314,9 +1518,11 @@ module Google
|
|
1314
1518
|
gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
|
1315
1519
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1316
1520
|
|
1317
|
-
header_params = {
|
1318
|
-
|
1319
|
-
|
1521
|
+
header_params = {}
|
1522
|
+
if request.name
|
1523
|
+
header_params["name"] = request.name
|
1524
|
+
end
|
1525
|
+
|
1320
1526
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1321
1527
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1322
1528
|
|
@@ -1386,6 +1592,21 @@ module Google
|
|
1386
1592
|
#
|
1387
1593
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1388
1594
|
#
|
1595
|
+
# @example Basic example
|
1596
|
+
# require "google/cloud/container/v1beta1"
|
1597
|
+
#
|
1598
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1599
|
+
# client = Google::Cloud::Container::V1beta1::ClusterManager::Client.new
|
1600
|
+
#
|
1601
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1602
|
+
# request = Google::Cloud::Container::V1beta1::DeleteClusterRequest.new
|
1603
|
+
#
|
1604
|
+
# # Call the delete_cluster method.
|
1605
|
+
# result = client.delete_cluster request
|
1606
|
+
#
|
1607
|
+
# # The returned object is of type Google::Cloud::Container::V1beta1::Operation.
|
1608
|
+
# p result
|
1609
|
+
#
|
1389
1610
|
def delete_cluster request, options = nil
|
1390
1611
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1391
1612
|
|
@@ -1403,9 +1624,11 @@ module Google
|
|
1403
1624
|
gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
|
1404
1625
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1405
1626
|
|
1406
|
-
header_params = {
|
1407
|
-
|
1408
|
-
|
1627
|
+
header_params = {}
|
1628
|
+
if request.name
|
1629
|
+
header_params["name"] = request.name
|
1630
|
+
end
|
1631
|
+
|
1409
1632
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1410
1633
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1411
1634
|
|
@@ -1465,6 +1688,21 @@ module Google
|
|
1465
1688
|
#
|
1466
1689
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1467
1690
|
#
|
1691
|
+
# @example Basic example
|
1692
|
+
# require "google/cloud/container/v1beta1"
|
1693
|
+
#
|
1694
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1695
|
+
# client = Google::Cloud::Container::V1beta1::ClusterManager::Client.new
|
1696
|
+
#
|
1697
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1698
|
+
# request = Google::Cloud::Container::V1beta1::ListOperationsRequest.new
|
1699
|
+
#
|
1700
|
+
# # Call the list_operations method.
|
1701
|
+
# result = client.list_operations request
|
1702
|
+
#
|
1703
|
+
# # The returned object is of type Google::Cloud::Container::V1beta1::ListOperationsResponse.
|
1704
|
+
# p result
|
1705
|
+
#
|
1468
1706
|
def list_operations request, options = nil
|
1469
1707
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1470
1708
|
|
@@ -1482,9 +1720,11 @@ module Google
|
|
1482
1720
|
gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
|
1483
1721
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1484
1722
|
|
1485
|
-
header_params = {
|
1486
|
-
|
1487
|
-
|
1723
|
+
header_params = {}
|
1724
|
+
if request.parent
|
1725
|
+
header_params["parent"] = request.parent
|
1726
|
+
end
|
1727
|
+
|
1488
1728
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1489
1729
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1490
1730
|
|
@@ -1546,6 +1786,21 @@ module Google
|
|
1546
1786
|
#
|
1547
1787
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1548
1788
|
#
|
1789
|
+
# @example Basic example
|
1790
|
+
# require "google/cloud/container/v1beta1"
|
1791
|
+
#
|
1792
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1793
|
+
# client = Google::Cloud::Container::V1beta1::ClusterManager::Client.new
|
1794
|
+
#
|
1795
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1796
|
+
# request = Google::Cloud::Container::V1beta1::GetOperationRequest.new
|
1797
|
+
#
|
1798
|
+
# # Call the get_operation method.
|
1799
|
+
# result = client.get_operation request
|
1800
|
+
#
|
1801
|
+
# # The returned object is of type Google::Cloud::Container::V1beta1::Operation.
|
1802
|
+
# p result
|
1803
|
+
#
|
1549
1804
|
def get_operation request, options = nil
|
1550
1805
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1551
1806
|
|
@@ -1563,9 +1818,11 @@ module Google
|
|
1563
1818
|
gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
|
1564
1819
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1565
1820
|
|
1566
|
-
header_params = {
|
1567
|
-
|
1568
|
-
|
1821
|
+
header_params = {}
|
1822
|
+
if request.name
|
1823
|
+
header_params["name"] = request.name
|
1824
|
+
end
|
1825
|
+
|
1569
1826
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1570
1827
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1571
1828
|
|
@@ -1627,6 +1884,21 @@ module Google
|
|
1627
1884
|
#
|
1628
1885
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1629
1886
|
#
|
1887
|
+
# @example Basic example
|
1888
|
+
# require "google/cloud/container/v1beta1"
|
1889
|
+
#
|
1890
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1891
|
+
# client = Google::Cloud::Container::V1beta1::ClusterManager::Client.new
|
1892
|
+
#
|
1893
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1894
|
+
# request = Google::Cloud::Container::V1beta1::CancelOperationRequest.new
|
1895
|
+
#
|
1896
|
+
# # Call the cancel_operation method.
|
1897
|
+
# result = client.cancel_operation request
|
1898
|
+
#
|
1899
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
1900
|
+
# p result
|
1901
|
+
#
|
1630
1902
|
def cancel_operation request, options = nil
|
1631
1903
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1632
1904
|
|
@@ -1644,9 +1916,11 @@ module Google
|
|
1644
1916
|
gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
|
1645
1917
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1646
1918
|
|
1647
|
-
header_params = {
|
1648
|
-
|
1649
|
-
|
1919
|
+
header_params = {}
|
1920
|
+
if request.name
|
1921
|
+
header_params["name"] = request.name
|
1922
|
+
end
|
1923
|
+
|
1650
1924
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1651
1925
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1652
1926
|
|
@@ -1705,6 +1979,21 @@ module Google
|
|
1705
1979
|
#
|
1706
1980
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1707
1981
|
#
|
1982
|
+
# @example Basic example
|
1983
|
+
# require "google/cloud/container/v1beta1"
|
1984
|
+
#
|
1985
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1986
|
+
# client = Google::Cloud::Container::V1beta1::ClusterManager::Client.new
|
1987
|
+
#
|
1988
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1989
|
+
# request = Google::Cloud::Container::V1beta1::GetServerConfigRequest.new
|
1990
|
+
#
|
1991
|
+
# # Call the get_server_config method.
|
1992
|
+
# result = client.get_server_config request
|
1993
|
+
#
|
1994
|
+
# # The returned object is of type Google::Cloud::Container::V1beta1::ServerConfig.
|
1995
|
+
# p result
|
1996
|
+
#
|
1708
1997
|
def get_server_config request, options = nil
|
1709
1998
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1710
1999
|
|
@@ -1722,9 +2011,11 @@ module Google
|
|
1722
2011
|
gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
|
1723
2012
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1724
2013
|
|
1725
|
-
header_params = {
|
1726
|
-
|
1727
|
-
|
2014
|
+
header_params = {}
|
2015
|
+
if request.name
|
2016
|
+
header_params["name"] = request.name
|
2017
|
+
end
|
2018
|
+
|
1728
2019
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1729
2020
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1730
2021
|
|
@@ -1786,6 +2077,21 @@ module Google
|
|
1786
2077
|
#
|
1787
2078
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1788
2079
|
#
|
2080
|
+
# @example Basic example
|
2081
|
+
# require "google/cloud/container/v1beta1"
|
2082
|
+
#
|
2083
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2084
|
+
# client = Google::Cloud::Container::V1beta1::ClusterManager::Client.new
|
2085
|
+
#
|
2086
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2087
|
+
# request = Google::Cloud::Container::V1beta1::ListNodePoolsRequest.new
|
2088
|
+
#
|
2089
|
+
# # Call the list_node_pools method.
|
2090
|
+
# result = client.list_node_pools request
|
2091
|
+
#
|
2092
|
+
# # The returned object is of type Google::Cloud::Container::V1beta1::ListNodePoolsResponse.
|
2093
|
+
# p result
|
2094
|
+
#
|
1789
2095
|
def list_node_pools request, options = nil
|
1790
2096
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1791
2097
|
|
@@ -1803,9 +2109,11 @@ module Google
|
|
1803
2109
|
gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
|
1804
2110
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1805
2111
|
|
1806
|
-
header_params = {
|
1807
|
-
|
1808
|
-
|
2112
|
+
header_params = {}
|
2113
|
+
if request.parent
|
2114
|
+
header_params["parent"] = request.parent
|
2115
|
+
end
|
2116
|
+
|
1809
2117
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1810
2118
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1811
2119
|
|
@@ -1858,6 +2166,21 @@ module Google
|
|
1858
2166
|
#
|
1859
2167
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1860
2168
|
#
|
2169
|
+
# @example Basic example
|
2170
|
+
# require "google/cloud/container/v1beta1"
|
2171
|
+
#
|
2172
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2173
|
+
# client = Google::Cloud::Container::V1beta1::ClusterManager::Client.new
|
2174
|
+
#
|
2175
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2176
|
+
# request = Google::Cloud::Container::V1beta1::GetJSONWebKeysRequest.new
|
2177
|
+
#
|
2178
|
+
# # Call the get_json_web_keys method.
|
2179
|
+
# result = client.get_json_web_keys request
|
2180
|
+
#
|
2181
|
+
# # The returned object is of type Google::Cloud::Container::V1beta1::GetJSONWebKeysResponse.
|
2182
|
+
# p result
|
2183
|
+
#
|
1861
2184
|
def get_json_web_keys request, options = nil
|
1862
2185
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1863
2186
|
|
@@ -1875,9 +2198,11 @@ module Google
|
|
1875
2198
|
gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
|
1876
2199
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1877
2200
|
|
1878
|
-
header_params = {
|
1879
|
-
|
1880
|
-
|
2201
|
+
header_params = {}
|
2202
|
+
if request.parent
|
2203
|
+
header_params["parent"] = request.parent
|
2204
|
+
end
|
2205
|
+
|
1881
2206
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1882
2207
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1883
2208
|
|
@@ -1943,6 +2268,21 @@ module Google
|
|
1943
2268
|
#
|
1944
2269
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1945
2270
|
#
|
2271
|
+
# @example Basic example
|
2272
|
+
# require "google/cloud/container/v1beta1"
|
2273
|
+
#
|
2274
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2275
|
+
# client = Google::Cloud::Container::V1beta1::ClusterManager::Client.new
|
2276
|
+
#
|
2277
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2278
|
+
# request = Google::Cloud::Container::V1beta1::GetNodePoolRequest.new
|
2279
|
+
#
|
2280
|
+
# # Call the get_node_pool method.
|
2281
|
+
# result = client.get_node_pool request
|
2282
|
+
#
|
2283
|
+
# # The returned object is of type Google::Cloud::Container::V1beta1::NodePool.
|
2284
|
+
# p result
|
2285
|
+
#
|
1946
2286
|
def get_node_pool request, options = nil
|
1947
2287
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1948
2288
|
|
@@ -1960,9 +2300,11 @@ module Google
|
|
1960
2300
|
gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
|
1961
2301
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1962
2302
|
|
1963
|
-
header_params = {
|
1964
|
-
|
1965
|
-
|
2303
|
+
header_params = {}
|
2304
|
+
if request.name
|
2305
|
+
header_params["name"] = request.name
|
2306
|
+
end
|
2307
|
+
|
1966
2308
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1967
2309
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1968
2310
|
|
@@ -2027,6 +2369,21 @@ module Google
|
|
2027
2369
|
#
|
2028
2370
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2029
2371
|
#
|
2372
|
+
# @example Basic example
|
2373
|
+
# require "google/cloud/container/v1beta1"
|
2374
|
+
#
|
2375
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2376
|
+
# client = Google::Cloud::Container::V1beta1::ClusterManager::Client.new
|
2377
|
+
#
|
2378
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2379
|
+
# request = Google::Cloud::Container::V1beta1::CreateNodePoolRequest.new
|
2380
|
+
#
|
2381
|
+
# # Call the create_node_pool method.
|
2382
|
+
# result = client.create_node_pool request
|
2383
|
+
#
|
2384
|
+
# # The returned object is of type Google::Cloud::Container::V1beta1::Operation.
|
2385
|
+
# p result
|
2386
|
+
#
|
2030
2387
|
def create_node_pool request, options = nil
|
2031
2388
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2032
2389
|
|
@@ -2044,9 +2401,11 @@ module Google
|
|
2044
2401
|
gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
|
2045
2402
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2046
2403
|
|
2047
|
-
header_params = {
|
2048
|
-
|
2049
|
-
|
2404
|
+
header_params = {}
|
2405
|
+
if request.parent
|
2406
|
+
header_params["parent"] = request.parent
|
2407
|
+
end
|
2408
|
+
|
2050
2409
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
2051
2410
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
2052
2411
|
|
@@ -2112,6 +2471,21 @@ module Google
|
|
2112
2471
|
#
|
2113
2472
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2114
2473
|
#
|
2474
|
+
# @example Basic example
|
2475
|
+
# require "google/cloud/container/v1beta1"
|
2476
|
+
#
|
2477
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2478
|
+
# client = Google::Cloud::Container::V1beta1::ClusterManager::Client.new
|
2479
|
+
#
|
2480
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2481
|
+
# request = Google::Cloud::Container::V1beta1::DeleteNodePoolRequest.new
|
2482
|
+
#
|
2483
|
+
# # Call the delete_node_pool method.
|
2484
|
+
# result = client.delete_node_pool request
|
2485
|
+
#
|
2486
|
+
# # The returned object is of type Google::Cloud::Container::V1beta1::Operation.
|
2487
|
+
# p result
|
2488
|
+
#
|
2115
2489
|
def delete_node_pool request, options = nil
|
2116
2490
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2117
2491
|
|
@@ -2129,9 +2503,11 @@ module Google
|
|
2129
2503
|
gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
|
2130
2504
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2131
2505
|
|
2132
|
-
header_params = {
|
2133
|
-
|
2134
|
-
|
2506
|
+
header_params = {}
|
2507
|
+
if request.name
|
2508
|
+
header_params["name"] = request.name
|
2509
|
+
end
|
2510
|
+
|
2135
2511
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
2136
2512
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
2137
2513
|
|
@@ -2198,6 +2574,21 @@ module Google
|
|
2198
2574
|
#
|
2199
2575
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2200
2576
|
#
|
2577
|
+
# @example Basic example
|
2578
|
+
# require "google/cloud/container/v1beta1"
|
2579
|
+
#
|
2580
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2581
|
+
# client = Google::Cloud::Container::V1beta1::ClusterManager::Client.new
|
2582
|
+
#
|
2583
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2584
|
+
# request = Google::Cloud::Container::V1beta1::RollbackNodePoolUpgradeRequest.new
|
2585
|
+
#
|
2586
|
+
# # Call the rollback_node_pool_upgrade method.
|
2587
|
+
# result = client.rollback_node_pool_upgrade request
|
2588
|
+
#
|
2589
|
+
# # The returned object is of type Google::Cloud::Container::V1beta1::Operation.
|
2590
|
+
# p result
|
2591
|
+
#
|
2201
2592
|
def rollback_node_pool_upgrade request, options = nil
|
2202
2593
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2203
2594
|
|
@@ -2215,9 +2606,11 @@ module Google
|
|
2215
2606
|
gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
|
2216
2607
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2217
2608
|
|
2218
|
-
header_params = {
|
2219
|
-
|
2220
|
-
|
2609
|
+
header_params = {}
|
2610
|
+
if request.name
|
2611
|
+
header_params["name"] = request.name
|
2612
|
+
end
|
2613
|
+
|
2221
2614
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
2222
2615
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
2223
2616
|
|
@@ -2285,6 +2678,21 @@ module Google
|
|
2285
2678
|
#
|
2286
2679
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2287
2680
|
#
|
2681
|
+
# @example Basic example
|
2682
|
+
# require "google/cloud/container/v1beta1"
|
2683
|
+
#
|
2684
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2685
|
+
# client = Google::Cloud::Container::V1beta1::ClusterManager::Client.new
|
2686
|
+
#
|
2687
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2688
|
+
# request = Google::Cloud::Container::V1beta1::SetNodePoolManagementRequest.new
|
2689
|
+
#
|
2690
|
+
# # Call the set_node_pool_management method.
|
2691
|
+
# result = client.set_node_pool_management request
|
2692
|
+
#
|
2693
|
+
# # The returned object is of type Google::Cloud::Container::V1beta1::Operation.
|
2694
|
+
# p result
|
2695
|
+
#
|
2288
2696
|
def set_node_pool_management request, options = nil
|
2289
2697
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2290
2698
|
|
@@ -2302,9 +2710,11 @@ module Google
|
|
2302
2710
|
gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
|
2303
2711
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2304
2712
|
|
2305
|
-
header_params = {
|
2306
|
-
|
2307
|
-
|
2713
|
+
header_params = {}
|
2714
|
+
if request.name
|
2715
|
+
header_params["name"] = request.name
|
2716
|
+
end
|
2717
|
+
|
2308
2718
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
2309
2719
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
2310
2720
|
|
@@ -2375,6 +2785,21 @@ module Google
|
|
2375
2785
|
#
|
2376
2786
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2377
2787
|
#
|
2788
|
+
# @example Basic example
|
2789
|
+
# require "google/cloud/container/v1beta1"
|
2790
|
+
#
|
2791
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2792
|
+
# client = Google::Cloud::Container::V1beta1::ClusterManager::Client.new
|
2793
|
+
#
|
2794
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2795
|
+
# request = Google::Cloud::Container::V1beta1::SetLabelsRequest.new
|
2796
|
+
#
|
2797
|
+
# # Call the set_labels method.
|
2798
|
+
# result = client.set_labels request
|
2799
|
+
#
|
2800
|
+
# # The returned object is of type Google::Cloud::Container::V1beta1::Operation.
|
2801
|
+
# p result
|
2802
|
+
#
|
2378
2803
|
def set_labels request, options = nil
|
2379
2804
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2380
2805
|
|
@@ -2392,9 +2817,11 @@ module Google
|
|
2392
2817
|
gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
|
2393
2818
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2394
2819
|
|
2395
|
-
header_params = {
|
2396
|
-
|
2397
|
-
|
2820
|
+
header_params = {}
|
2821
|
+
if request.name
|
2822
|
+
header_params["name"] = request.name
|
2823
|
+
end
|
2824
|
+
|
2398
2825
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
2399
2826
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
2400
2827
|
|
@@ -2458,6 +2885,21 @@ module Google
|
|
2458
2885
|
#
|
2459
2886
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2460
2887
|
#
|
2888
|
+
# @example Basic example
|
2889
|
+
# require "google/cloud/container/v1beta1"
|
2890
|
+
#
|
2891
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2892
|
+
# client = Google::Cloud::Container::V1beta1::ClusterManager::Client.new
|
2893
|
+
#
|
2894
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2895
|
+
# request = Google::Cloud::Container::V1beta1::SetLegacyAbacRequest.new
|
2896
|
+
#
|
2897
|
+
# # Call the set_legacy_abac method.
|
2898
|
+
# result = client.set_legacy_abac request
|
2899
|
+
#
|
2900
|
+
# # The returned object is of type Google::Cloud::Container::V1beta1::Operation.
|
2901
|
+
# p result
|
2902
|
+
#
|
2461
2903
|
def set_legacy_abac request, options = nil
|
2462
2904
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2463
2905
|
|
@@ -2475,9 +2917,11 @@ module Google
|
|
2475
2917
|
gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
|
2476
2918
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2477
2919
|
|
2478
|
-
header_params = {
|
2479
|
-
|
2480
|
-
|
2920
|
+
header_params = {}
|
2921
|
+
if request.name
|
2922
|
+
header_params["name"] = request.name
|
2923
|
+
end
|
2924
|
+
|
2481
2925
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
2482
2926
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
2483
2927
|
|
@@ -2541,6 +2985,21 @@ module Google
|
|
2541
2985
|
#
|
2542
2986
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2543
2987
|
#
|
2988
|
+
# @example Basic example
|
2989
|
+
# require "google/cloud/container/v1beta1"
|
2990
|
+
#
|
2991
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2992
|
+
# client = Google::Cloud::Container::V1beta1::ClusterManager::Client.new
|
2993
|
+
#
|
2994
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2995
|
+
# request = Google::Cloud::Container::V1beta1::StartIPRotationRequest.new
|
2996
|
+
#
|
2997
|
+
# # Call the start_ip_rotation method.
|
2998
|
+
# result = client.start_ip_rotation request
|
2999
|
+
#
|
3000
|
+
# # The returned object is of type Google::Cloud::Container::V1beta1::Operation.
|
3001
|
+
# p result
|
3002
|
+
#
|
2544
3003
|
def start_ip_rotation request, options = nil
|
2545
3004
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2546
3005
|
|
@@ -2558,9 +3017,11 @@ module Google
|
|
2558
3017
|
gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
|
2559
3018
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2560
3019
|
|
2561
|
-
header_params = {
|
2562
|
-
|
2563
|
-
|
3020
|
+
header_params = {}
|
3021
|
+
if request.name
|
3022
|
+
header_params["name"] = request.name
|
3023
|
+
end
|
3024
|
+
|
2564
3025
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
2565
3026
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
2566
3027
|
|
@@ -2622,6 +3083,21 @@ module Google
|
|
2622
3083
|
#
|
2623
3084
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2624
3085
|
#
|
3086
|
+
# @example Basic example
|
3087
|
+
# require "google/cloud/container/v1beta1"
|
3088
|
+
#
|
3089
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3090
|
+
# client = Google::Cloud::Container::V1beta1::ClusterManager::Client.new
|
3091
|
+
#
|
3092
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3093
|
+
# request = Google::Cloud::Container::V1beta1::CompleteIPRotationRequest.new
|
3094
|
+
#
|
3095
|
+
# # Call the complete_ip_rotation method.
|
3096
|
+
# result = client.complete_ip_rotation request
|
3097
|
+
#
|
3098
|
+
# # The returned object is of type Google::Cloud::Container::V1beta1::Operation.
|
3099
|
+
# p result
|
3100
|
+
#
|
2625
3101
|
def complete_ip_rotation request, options = nil
|
2626
3102
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2627
3103
|
|
@@ -2639,9 +3115,11 @@ module Google
|
|
2639
3115
|
gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
|
2640
3116
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2641
3117
|
|
2642
|
-
header_params = {
|
2643
|
-
|
2644
|
-
|
3118
|
+
header_params = {}
|
3119
|
+
if request.name
|
3120
|
+
header_params["name"] = request.name
|
3121
|
+
end
|
3122
|
+
|
2645
3123
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
2646
3124
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
2647
3125
|
|
@@ -2711,6 +3189,21 @@ module Google
|
|
2711
3189
|
#
|
2712
3190
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2713
3191
|
#
|
3192
|
+
# @example Basic example
|
3193
|
+
# require "google/cloud/container/v1beta1"
|
3194
|
+
#
|
3195
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3196
|
+
# client = Google::Cloud::Container::V1beta1::ClusterManager::Client.new
|
3197
|
+
#
|
3198
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3199
|
+
# request = Google::Cloud::Container::V1beta1::SetNodePoolSizeRequest.new
|
3200
|
+
#
|
3201
|
+
# # Call the set_node_pool_size method.
|
3202
|
+
# result = client.set_node_pool_size request
|
3203
|
+
#
|
3204
|
+
# # The returned object is of type Google::Cloud::Container::V1beta1::Operation.
|
3205
|
+
# p result
|
3206
|
+
#
|
2714
3207
|
def set_node_pool_size request, options = nil
|
2715
3208
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2716
3209
|
|
@@ -2728,9 +3221,11 @@ module Google
|
|
2728
3221
|
gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
|
2729
3222
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2730
3223
|
|
2731
|
-
header_params = {
|
2732
|
-
|
2733
|
-
|
3224
|
+
header_params = {}
|
3225
|
+
if request.name
|
3226
|
+
header_params["name"] = request.name
|
3227
|
+
end
|
3228
|
+
|
2734
3229
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
2735
3230
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
2736
3231
|
|
@@ -2794,6 +3289,21 @@ module Google
|
|
2794
3289
|
#
|
2795
3290
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2796
3291
|
#
|
3292
|
+
# @example Basic example
|
3293
|
+
# require "google/cloud/container/v1beta1"
|
3294
|
+
#
|
3295
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3296
|
+
# client = Google::Cloud::Container::V1beta1::ClusterManager::Client.new
|
3297
|
+
#
|
3298
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3299
|
+
# request = Google::Cloud::Container::V1beta1::SetNetworkPolicyRequest.new
|
3300
|
+
#
|
3301
|
+
# # Call the set_network_policy method.
|
3302
|
+
# result = client.set_network_policy request
|
3303
|
+
#
|
3304
|
+
# # The returned object is of type Google::Cloud::Container::V1beta1::Operation.
|
3305
|
+
# p result
|
3306
|
+
#
|
2797
3307
|
def set_network_policy request, options = nil
|
2798
3308
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2799
3309
|
|
@@ -2811,9 +3321,11 @@ module Google
|
|
2811
3321
|
gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
|
2812
3322
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2813
3323
|
|
2814
|
-
header_params = {
|
2815
|
-
|
2816
|
-
|
3324
|
+
header_params = {}
|
3325
|
+
if request.name
|
3326
|
+
header_params["name"] = request.name
|
3327
|
+
end
|
3328
|
+
|
2817
3329
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
2818
3330
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
2819
3331
|
|
@@ -2876,6 +3388,21 @@ module Google
|
|
2876
3388
|
#
|
2877
3389
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2878
3390
|
#
|
3391
|
+
# @example Basic example
|
3392
|
+
# require "google/cloud/container/v1beta1"
|
3393
|
+
#
|
3394
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3395
|
+
# client = Google::Cloud::Container::V1beta1::ClusterManager::Client.new
|
3396
|
+
#
|
3397
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3398
|
+
# request = Google::Cloud::Container::V1beta1::SetMaintenancePolicyRequest.new
|
3399
|
+
#
|
3400
|
+
# # Call the set_maintenance_policy method.
|
3401
|
+
# result = client.set_maintenance_policy request
|
3402
|
+
#
|
3403
|
+
# # The returned object is of type Google::Cloud::Container::V1beta1::Operation.
|
3404
|
+
# p result
|
3405
|
+
#
|
2879
3406
|
def set_maintenance_policy request, options = nil
|
2880
3407
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2881
3408
|
|
@@ -2893,9 +3420,11 @@ module Google
|
|
2893
3420
|
gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
|
2894
3421
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2895
3422
|
|
2896
|
-
header_params = {
|
2897
|
-
|
2898
|
-
|
3423
|
+
header_params = {}
|
3424
|
+
if request.name
|
3425
|
+
header_params["name"] = request.name
|
3426
|
+
end
|
3427
|
+
|
2899
3428
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
2900
3429
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
2901
3430
|
|
@@ -2958,6 +3487,27 @@ module Google
|
|
2958
3487
|
#
|
2959
3488
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2960
3489
|
#
|
3490
|
+
# @example Basic example
|
3491
|
+
# require "google/cloud/container/v1beta1"
|
3492
|
+
#
|
3493
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3494
|
+
# client = Google::Cloud::Container::V1beta1::ClusterManager::Client.new
|
3495
|
+
#
|
3496
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3497
|
+
# request = Google::Cloud::Container::V1beta1::ListUsableSubnetworksRequest.new
|
3498
|
+
#
|
3499
|
+
# # Call the list_usable_subnetworks method.
|
3500
|
+
# result = client.list_usable_subnetworks request
|
3501
|
+
#
|
3502
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
3503
|
+
# # iterate over all elements by calling #each, and the enumerable
|
3504
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
3505
|
+
# # methods are also available for managing paging directly.
|
3506
|
+
# result.each do |response|
|
3507
|
+
# # Each element is of type ::Google::Cloud::Container::V1beta1::UsableSubnetwork.
|
3508
|
+
# p response
|
3509
|
+
# end
|
3510
|
+
#
|
2961
3511
|
def list_usable_subnetworks request, options = nil
|
2962
3512
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2963
3513
|
|
@@ -2975,9 +3525,11 @@ module Google
|
|
2975
3525
|
gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
|
2976
3526
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2977
3527
|
|
2978
|
-
header_params = {
|
2979
|
-
|
2980
|
-
|
3528
|
+
header_params = {}
|
3529
|
+
if request.parent
|
3530
|
+
header_params["parent"] = request.parent
|
3531
|
+
end
|
3532
|
+
|
2981
3533
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
2982
3534
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
2983
3535
|
|
@@ -3028,6 +3580,21 @@ module Google
|
|
3028
3580
|
#
|
3029
3581
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
3030
3582
|
#
|
3583
|
+
# @example Basic example
|
3584
|
+
# require "google/cloud/container/v1beta1"
|
3585
|
+
#
|
3586
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3587
|
+
# client = Google::Cloud::Container::V1beta1::ClusterManager::Client.new
|
3588
|
+
#
|
3589
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3590
|
+
# request = Google::Cloud::Container::V1beta1::ListLocationsRequest.new
|
3591
|
+
#
|
3592
|
+
# # Call the list_locations method.
|
3593
|
+
# result = client.list_locations request
|
3594
|
+
#
|
3595
|
+
# # The returned object is of type Google::Cloud::Container::V1beta1::ListLocationsResponse.
|
3596
|
+
# p result
|
3597
|
+
#
|
3031
3598
|
def list_locations request, options = nil
|
3032
3599
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
3033
3600
|
|
@@ -3045,9 +3612,11 @@ module Google
|
|
3045
3612
|
gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
|
3046
3613
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3047
3614
|
|
3048
|
-
header_params = {
|
3049
|
-
|
3050
|
-
|
3615
|
+
header_params = {}
|
3616
|
+
if request.parent
|
3617
|
+
header_params["parent"] = request.parent
|
3618
|
+
end
|
3619
|
+
|
3051
3620
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
3052
3621
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
3053
3622
|
|