google-cloud-container-v1beta1 0.7.0 → 0.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/google/cloud/container/v1beta1/cluster_manager/client.rb +816 -172
- data/lib/google/cloud/container/v1beta1/version.rb +1 -1
- data/lib/google/container/v1beta1/cluster_service_pb.rb +151 -2
- data/lib/google/container/v1beta1/cluster_service_services_pb.rb +4 -2
- data/proto_docs/google/container/v1beta1/cluster_service.rb +479 -45
- data/proto_docs/google/type/date.rb +53 -0
- metadata +5 -4
@@ -41,13 +41,12 @@ module Google
|
|
41
41
|
# See {::Google::Cloud::Container::V1beta1::ClusterManager::Client::Configuration}
|
42
42
|
# for a description of the configuration fields.
|
43
43
|
#
|
44
|
-
#
|
44
|
+
# @example
|
45
45
|
#
|
46
|
-
#
|
47
|
-
#
|
48
|
-
#
|
49
|
-
#
|
50
|
-
# end
|
46
|
+
# # Modify the configuration for all ClusterManager clients
|
47
|
+
# ::Google::Cloud::Container::V1beta1::ClusterManager::Client.configure do |config|
|
48
|
+
# config.timeout = 10.0
|
49
|
+
# end
|
51
50
|
#
|
52
51
|
# @yield [config] Configure the Client client.
|
53
52
|
# @yieldparam config [Client::Configuration]
|
@@ -191,19 +190,15 @@ module Google
|
|
191
190
|
##
|
192
191
|
# Create a new ClusterManager client object.
|
193
192
|
#
|
194
|
-
#
|
195
|
-
#
|
196
|
-
# To create a new ClusterManager client with the default
|
197
|
-
# configuration:
|
198
|
-
#
|
199
|
-
# client = ::Google::Cloud::Container::V1beta1::ClusterManager::Client.new
|
193
|
+
# @example
|
200
194
|
#
|
201
|
-
#
|
202
|
-
#
|
195
|
+
# # Create a client using the default configuration
|
196
|
+
# client = ::Google::Cloud::Container::V1beta1::ClusterManager::Client.new
|
203
197
|
#
|
204
|
-
#
|
205
|
-
#
|
206
|
-
#
|
198
|
+
# # Create a client using a custom configuration
|
199
|
+
# client = ::Google::Cloud::Container::V1beta1::ClusterManager::Client.new do |config|
|
200
|
+
# config.timeout = 10.0
|
201
|
+
# end
|
207
202
|
#
|
208
203
|
# @yield [config] Configure the ClusterManager client.
|
209
204
|
# @yieldparam config [Client::Configuration]
|
@@ -223,10 +218,9 @@ module Google
|
|
223
218
|
|
224
219
|
# Create credentials
|
225
220
|
credentials = @config.credentials
|
226
|
-
# Use self-signed JWT if the
|
221
|
+
# Use self-signed JWT if the endpoint is unchanged from default,
|
227
222
|
# but only if the default endpoint does not have a region prefix.
|
228
|
-
enable_self_signed_jwt = @config.
|
229
|
-
@config.endpoint == Client.configure.endpoint &&
|
223
|
+
enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
|
230
224
|
!@config.endpoint.split(".").first.include?("-")
|
231
225
|
credentials ||= Credentials.default scope: @config.scope,
|
232
226
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -288,6 +282,21 @@ module Google
|
|
288
282
|
#
|
289
283
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
290
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
|
+
#
|
291
300
|
def list_clusters request, options = nil
|
292
301
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
293
302
|
|
@@ -305,16 +314,20 @@ module Google
|
|
305
314
|
gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
|
306
315
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
307
316
|
|
308
|
-
header_params = {
|
309
|
-
|
310
|
-
|
317
|
+
header_params = {}
|
318
|
+
if request.parent
|
319
|
+
header_params["parent"] = request.parent
|
320
|
+
end
|
321
|
+
|
311
322
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
312
323
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
313
324
|
|
314
325
|
options.apply_defaults timeout: @config.rpcs.list_clusters.timeout,
|
315
326
|
metadata: metadata,
|
316
327
|
retry_policy: @config.rpcs.list_clusters.retry_policy
|
317
|
-
|
328
|
+
|
329
|
+
options.apply_defaults timeout: @config.timeout,
|
330
|
+
metadata: @config.metadata,
|
318
331
|
retry_policy: @config.retry_policy
|
319
332
|
|
320
333
|
@cluster_manager_stub.call_rpc :list_clusters, request, options: options do |response, operation|
|
@@ -367,6 +380,21 @@ module Google
|
|
367
380
|
#
|
368
381
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
369
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
|
+
#
|
370
398
|
def get_cluster request, options = nil
|
371
399
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
372
400
|
|
@@ -384,16 +412,20 @@ module Google
|
|
384
412
|
gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
|
385
413
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
386
414
|
|
387
|
-
header_params = {
|
388
|
-
|
389
|
-
|
415
|
+
header_params = {}
|
416
|
+
if request.name
|
417
|
+
header_params["name"] = request.name
|
418
|
+
end
|
419
|
+
|
390
420
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
391
421
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
392
422
|
|
393
423
|
options.apply_defaults timeout: @config.rpcs.get_cluster.timeout,
|
394
424
|
metadata: metadata,
|
395
425
|
retry_policy: @config.rpcs.get_cluster.retry_policy
|
396
|
-
|
426
|
+
|
427
|
+
options.apply_defaults timeout: @config.timeout,
|
428
|
+
metadata: @config.metadata,
|
397
429
|
retry_policy: @config.retry_policy
|
398
430
|
|
399
431
|
@cluster_manager_stub.call_rpc :get_cluster, request, options: options do |response, operation|
|
@@ -459,6 +491,21 @@ module Google
|
|
459
491
|
#
|
460
492
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
461
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
|
+
#
|
462
509
|
def create_cluster request, options = nil
|
463
510
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
464
511
|
|
@@ -476,16 +523,20 @@ module Google
|
|
476
523
|
gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
|
477
524
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
478
525
|
|
479
|
-
header_params = {
|
480
|
-
|
481
|
-
|
526
|
+
header_params = {}
|
527
|
+
if request.parent
|
528
|
+
header_params["parent"] = request.parent
|
529
|
+
end
|
530
|
+
|
482
531
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
483
532
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
484
533
|
|
485
534
|
options.apply_defaults timeout: @config.rpcs.create_cluster.timeout,
|
486
535
|
metadata: metadata,
|
487
536
|
retry_policy: @config.rpcs.create_cluster.retry_policy
|
488
|
-
|
537
|
+
|
538
|
+
options.apply_defaults timeout: @config.timeout,
|
539
|
+
metadata: @config.metadata,
|
489
540
|
retry_policy: @config.retry_policy
|
490
541
|
|
491
542
|
@cluster_manager_stub.call_rpc :create_cluster, request, options: options do |response, operation|
|
@@ -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,16 +623,20 @@ 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
|
|
566
634
|
options.apply_defaults timeout: @config.rpcs.update_cluster.timeout,
|
567
635
|
metadata: metadata,
|
568
636
|
retry_policy: @config.rpcs.update_cluster.retry_policy
|
569
|
-
|
637
|
+
|
638
|
+
options.apply_defaults timeout: @config.timeout,
|
639
|
+
metadata: @config.metadata,
|
570
640
|
retry_policy: @config.retry_policy
|
571
641
|
|
572
642
|
@cluster_manager_stub.call_rpc :update_cluster, request, options: options do |response, operation|
|
@@ -590,7 +660,7 @@ module Google
|
|
590
660
|
# @param options [::Gapic::CallOptions, ::Hash]
|
591
661
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
592
662
|
#
|
593
|
-
# @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)
|
594
664
|
# Pass arguments to `update_node_pool` via keyword arguments. Note that at
|
595
665
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
596
666
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
@@ -638,10 +708,24 @@ module Google
|
|
638
708
|
# `projects/*/locations/*/clusters/*/nodePools/*`.
|
639
709
|
# @param upgrade_settings [::Google::Cloud::Container::V1beta1::NodePool::UpgradeSettings, ::Hash]
|
640
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.
|
641
723
|
# @param linux_node_config [::Google::Cloud::Container::V1beta1::LinuxNodeConfig, ::Hash]
|
642
724
|
# Parameters that can be configured on Linux nodes.
|
643
725
|
# @param kubelet_config [::Google::Cloud::Container::V1beta1::NodeKubeletConfig, ::Hash]
|
644
726
|
# Node kubelet configs.
|
727
|
+
# @param gvnic [::Google::Cloud::Container::V1beta1::VirtualNIC, ::Hash]
|
728
|
+
# Enable or disable gvnic on the node pool.
|
645
729
|
#
|
646
730
|
# @yield [response, operation] Access the result along with the RPC operation
|
647
731
|
# @yieldparam response [::Google::Cloud::Container::V1beta1::Operation]
|
@@ -651,6 +735,21 @@ module Google
|
|
651
735
|
#
|
652
736
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
653
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
|
+
#
|
654
753
|
def update_node_pool request, options = nil
|
655
754
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
656
755
|
|
@@ -668,16 +767,20 @@ module Google
|
|
668
767
|
gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
|
669
768
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
670
769
|
|
671
|
-
header_params = {
|
672
|
-
|
673
|
-
|
770
|
+
header_params = {}
|
771
|
+
if request.name
|
772
|
+
header_params["name"] = request.name
|
773
|
+
end
|
774
|
+
|
674
775
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
675
776
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
676
777
|
|
677
778
|
options.apply_defaults timeout: @config.rpcs.update_node_pool.timeout,
|
678
779
|
metadata: metadata,
|
679
780
|
retry_policy: @config.rpcs.update_node_pool.retry_policy
|
680
|
-
|
781
|
+
|
782
|
+
options.apply_defaults timeout: @config.timeout,
|
783
|
+
metadata: @config.metadata,
|
681
784
|
retry_policy: @config.retry_policy
|
682
785
|
|
683
786
|
@cluster_manager_stub.call_rpc :update_node_pool, request, options: options do |response, operation|
|
@@ -736,6 +839,21 @@ module Google
|
|
736
839
|
#
|
737
840
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
738
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
|
+
#
|
739
857
|
def set_node_pool_autoscaling request, options = nil
|
740
858
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
741
859
|
|
@@ -753,16 +871,20 @@ module Google
|
|
753
871
|
gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
|
754
872
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
755
873
|
|
756
|
-
header_params = {
|
757
|
-
|
758
|
-
|
874
|
+
header_params = {}
|
875
|
+
if request.name
|
876
|
+
header_params["name"] = request.name
|
877
|
+
end
|
878
|
+
|
759
879
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
760
880
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
761
881
|
|
762
882
|
options.apply_defaults timeout: @config.rpcs.set_node_pool_autoscaling.timeout,
|
763
883
|
metadata: metadata,
|
764
884
|
retry_policy: @config.rpcs.set_node_pool_autoscaling.retry_policy
|
765
|
-
|
885
|
+
|
886
|
+
options.apply_defaults timeout: @config.timeout,
|
887
|
+
metadata: @config.metadata,
|
766
888
|
retry_policy: @config.retry_policy
|
767
889
|
|
768
890
|
@cluster_manager_stub.call_rpc :set_node_pool_autoscaling, request, options: options do |response, operation|
|
@@ -827,6 +949,21 @@ module Google
|
|
827
949
|
#
|
828
950
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
829
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
|
+
#
|
830
967
|
def set_logging_service request, options = nil
|
831
968
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
832
969
|
|
@@ -844,16 +981,20 @@ module Google
|
|
844
981
|
gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
|
845
982
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
846
983
|
|
847
|
-
header_params = {
|
848
|
-
|
849
|
-
|
984
|
+
header_params = {}
|
985
|
+
if request.name
|
986
|
+
header_params["name"] = request.name
|
987
|
+
end
|
988
|
+
|
850
989
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
851
990
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
852
991
|
|
853
992
|
options.apply_defaults timeout: @config.rpcs.set_logging_service.timeout,
|
854
993
|
metadata: metadata,
|
855
994
|
retry_policy: @config.rpcs.set_logging_service.retry_policy
|
856
|
-
|
995
|
+
|
996
|
+
options.apply_defaults timeout: @config.timeout,
|
997
|
+
metadata: @config.metadata,
|
857
998
|
retry_policy: @config.retry_policy
|
858
999
|
|
859
1000
|
@cluster_manager_stub.call_rpc :set_logging_service, request, options: options do |response, operation|
|
@@ -918,6 +1059,21 @@ module Google
|
|
918
1059
|
#
|
919
1060
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
920
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
|
+
#
|
921
1077
|
def set_monitoring_service request, options = nil
|
922
1078
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
923
1079
|
|
@@ -935,16 +1091,20 @@ module Google
|
|
935
1091
|
gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
|
936
1092
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
937
1093
|
|
938
|
-
header_params = {
|
939
|
-
|
940
|
-
|
1094
|
+
header_params = {}
|
1095
|
+
if request.name
|
1096
|
+
header_params["name"] = request.name
|
1097
|
+
end
|
1098
|
+
|
941
1099
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
942
1100
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
943
1101
|
|
944
1102
|
options.apply_defaults timeout: @config.rpcs.set_monitoring_service.timeout,
|
945
1103
|
metadata: metadata,
|
946
1104
|
retry_policy: @config.rpcs.set_monitoring_service.retry_policy
|
947
|
-
|
1105
|
+
|
1106
|
+
options.apply_defaults timeout: @config.timeout,
|
1107
|
+
metadata: @config.metadata,
|
948
1108
|
retry_policy: @config.retry_policy
|
949
1109
|
|
950
1110
|
@cluster_manager_stub.call_rpc :set_monitoring_service, request, options: options do |response, operation|
|
@@ -986,8 +1146,8 @@ module Google
|
|
986
1146
|
# Required. Deprecated. The name of the cluster to upgrade.
|
987
1147
|
# This field has been deprecated and replaced by the name field.
|
988
1148
|
# @param addons_config [::Google::Cloud::Container::V1beta1::AddonsConfig, ::Hash]
|
989
|
-
# Required. The desired configurations for the various addons available to
|
990
|
-
# cluster.
|
1149
|
+
# Required. The desired configurations for the various addons available to
|
1150
|
+
# run in the cluster.
|
991
1151
|
# @param name [::String]
|
992
1152
|
# The name (project, location, cluster) of the cluster to set addons.
|
993
1153
|
# Specified in the format `projects/*/locations/*/clusters/*`.
|
@@ -1000,6 +1160,21 @@ module Google
|
|
1000
1160
|
#
|
1001
1161
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1002
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
|
+
#
|
1003
1178
|
def set_addons_config request, options = nil
|
1004
1179
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1005
1180
|
|
@@ -1017,16 +1192,20 @@ module Google
|
|
1017
1192
|
gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
|
1018
1193
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1019
1194
|
|
1020
|
-
header_params = {
|
1021
|
-
|
1022
|
-
|
1195
|
+
header_params = {}
|
1196
|
+
if request.name
|
1197
|
+
header_params["name"] = request.name
|
1198
|
+
end
|
1199
|
+
|
1023
1200
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1024
1201
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1025
1202
|
|
1026
1203
|
options.apply_defaults timeout: @config.rpcs.set_addons_config.timeout,
|
1027
1204
|
metadata: metadata,
|
1028
1205
|
retry_policy: @config.rpcs.set_addons_config.retry_policy
|
1029
|
-
|
1206
|
+
|
1207
|
+
options.apply_defaults timeout: @config.timeout,
|
1208
|
+
metadata: @config.metadata,
|
1030
1209
|
retry_policy: @config.retry_policy
|
1031
1210
|
|
1032
1211
|
@cluster_manager_stub.call_rpc :set_addons_config, request, options: options do |response, operation|
|
@@ -1043,6 +1222,8 @@ module Google
|
|
1043
1222
|
# [projects.locations.clusters.update](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1beta1/projects.locations.clusters/update)
|
1044
1223
|
# instead.
|
1045
1224
|
#
|
1225
|
+
# @deprecated This method is deprecated and may be removed in the next major version update.
|
1226
|
+
#
|
1046
1227
|
# @overload set_locations(request, options = nil)
|
1047
1228
|
# Pass arguments to `set_locations` via a request object, either of type
|
1048
1229
|
# {::Google::Cloud::Container::V1beta1::SetLocationsRequest} or an equivalent Hash.
|
@@ -1090,6 +1271,21 @@ module Google
|
|
1090
1271
|
#
|
1091
1272
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1092
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
|
+
#
|
1093
1289
|
def set_locations request, options = nil
|
1094
1290
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1095
1291
|
|
@@ -1107,16 +1303,20 @@ module Google
|
|
1107
1303
|
gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
|
1108
1304
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1109
1305
|
|
1110
|
-
header_params = {
|
1111
|
-
|
1112
|
-
|
1306
|
+
header_params = {}
|
1307
|
+
if request.name
|
1308
|
+
header_params["name"] = request.name
|
1309
|
+
end
|
1310
|
+
|
1113
1311
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1114
1312
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1115
1313
|
|
1116
1314
|
options.apply_defaults timeout: @config.rpcs.set_locations.timeout,
|
1117
1315
|
metadata: metadata,
|
1118
1316
|
retry_policy: @config.rpcs.set_locations.retry_policy
|
1119
|
-
|
1317
|
+
|
1318
|
+
options.apply_defaults timeout: @config.timeout,
|
1319
|
+
metadata: @config.metadata,
|
1120
1320
|
retry_policy: @config.retry_policy
|
1121
1321
|
|
1122
1322
|
@cluster_manager_stub.call_rpc :set_locations, request, options: options do |response, operation|
|
@@ -1180,6 +1380,21 @@ module Google
|
|
1180
1380
|
#
|
1181
1381
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1182
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
|
+
#
|
1183
1398
|
def update_master request, options = nil
|
1184
1399
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1185
1400
|
|
@@ -1197,16 +1412,20 @@ module Google
|
|
1197
1412
|
gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
|
1198
1413
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1199
1414
|
|
1200
|
-
header_params = {
|
1201
|
-
|
1202
|
-
|
1415
|
+
header_params = {}
|
1416
|
+
if request.name
|
1417
|
+
header_params["name"] = request.name
|
1418
|
+
end
|
1419
|
+
|
1203
1420
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1204
1421
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1205
1422
|
|
1206
1423
|
options.apply_defaults timeout: @config.rpcs.update_master.timeout,
|
1207
1424
|
metadata: metadata,
|
1208
1425
|
retry_policy: @config.rpcs.update_master.retry_policy
|
1209
|
-
|
1426
|
+
|
1427
|
+
options.apply_defaults timeout: @config.timeout,
|
1428
|
+
metadata: @config.metadata,
|
1210
1429
|
retry_policy: @config.retry_policy
|
1211
1430
|
|
1212
1431
|
@cluster_manager_stub.call_rpc :update_master, request, options: options do |response, operation|
|
@@ -1265,6 +1484,21 @@ module Google
|
|
1265
1484
|
#
|
1266
1485
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1267
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
|
+
#
|
1268
1502
|
def set_master_auth request, options = nil
|
1269
1503
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1270
1504
|
|
@@ -1282,16 +1516,20 @@ module Google
|
|
1282
1516
|
gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
|
1283
1517
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1284
1518
|
|
1285
|
-
header_params = {
|
1286
|
-
|
1287
|
-
|
1519
|
+
header_params = {}
|
1520
|
+
if request.name
|
1521
|
+
header_params["name"] = request.name
|
1522
|
+
end
|
1523
|
+
|
1288
1524
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1289
1525
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1290
1526
|
|
1291
1527
|
options.apply_defaults timeout: @config.rpcs.set_master_auth.timeout,
|
1292
1528
|
metadata: metadata,
|
1293
1529
|
retry_policy: @config.rpcs.set_master_auth.retry_policy
|
1294
|
-
|
1530
|
+
|
1531
|
+
options.apply_defaults timeout: @config.timeout,
|
1532
|
+
metadata: @config.metadata,
|
1295
1533
|
retry_policy: @config.retry_policy
|
1296
1534
|
|
1297
1535
|
@cluster_manager_stub.call_rpc :set_master_auth, request, options: options do |response, operation|
|
@@ -1352,6 +1590,21 @@ module Google
|
|
1352
1590
|
#
|
1353
1591
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1354
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
|
+
#
|
1355
1608
|
def delete_cluster request, options = nil
|
1356
1609
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1357
1610
|
|
@@ -1369,16 +1622,20 @@ module Google
|
|
1369
1622
|
gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
|
1370
1623
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1371
1624
|
|
1372
|
-
header_params = {
|
1373
|
-
|
1374
|
-
|
1625
|
+
header_params = {}
|
1626
|
+
if request.name
|
1627
|
+
header_params["name"] = request.name
|
1628
|
+
end
|
1629
|
+
|
1375
1630
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1376
1631
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1377
1632
|
|
1378
1633
|
options.apply_defaults timeout: @config.rpcs.delete_cluster.timeout,
|
1379
1634
|
metadata: metadata,
|
1380
1635
|
retry_policy: @config.rpcs.delete_cluster.retry_policy
|
1381
|
-
|
1636
|
+
|
1637
|
+
options.apply_defaults timeout: @config.timeout,
|
1638
|
+
metadata: @config.metadata,
|
1382
1639
|
retry_policy: @config.retry_policy
|
1383
1640
|
|
1384
1641
|
@cluster_manager_stub.call_rpc :delete_cluster, request, options: options do |response, operation|
|
@@ -1429,6 +1686,21 @@ module Google
|
|
1429
1686
|
#
|
1430
1687
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1431
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
|
+
#
|
1432
1704
|
def list_operations request, options = nil
|
1433
1705
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1434
1706
|
|
@@ -1446,16 +1718,20 @@ module Google
|
|
1446
1718
|
gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
|
1447
1719
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1448
1720
|
|
1449
|
-
header_params = {
|
1450
|
-
|
1451
|
-
|
1721
|
+
header_params = {}
|
1722
|
+
if request.parent
|
1723
|
+
header_params["parent"] = request.parent
|
1724
|
+
end
|
1725
|
+
|
1452
1726
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1453
1727
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1454
1728
|
|
1455
1729
|
options.apply_defaults timeout: @config.rpcs.list_operations.timeout,
|
1456
1730
|
metadata: metadata,
|
1457
1731
|
retry_policy: @config.rpcs.list_operations.retry_policy
|
1458
|
-
|
1732
|
+
|
1733
|
+
options.apply_defaults timeout: @config.timeout,
|
1734
|
+
metadata: @config.metadata,
|
1459
1735
|
retry_policy: @config.retry_policy
|
1460
1736
|
|
1461
1737
|
@cluster_manager_stub.call_rpc :list_operations, request, options: options do |response, operation|
|
@@ -1508,6 +1784,21 @@ module Google
|
|
1508
1784
|
#
|
1509
1785
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1510
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
|
+
#
|
1511
1802
|
def get_operation request, options = nil
|
1512
1803
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1513
1804
|
|
@@ -1525,16 +1816,20 @@ module Google
|
|
1525
1816
|
gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
|
1526
1817
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1527
1818
|
|
1528
|
-
header_params = {
|
1529
|
-
|
1530
|
-
|
1819
|
+
header_params = {}
|
1820
|
+
if request.name
|
1821
|
+
header_params["name"] = request.name
|
1822
|
+
end
|
1823
|
+
|
1531
1824
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1532
1825
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1533
1826
|
|
1534
1827
|
options.apply_defaults timeout: @config.rpcs.get_operation.timeout,
|
1535
1828
|
metadata: metadata,
|
1536
1829
|
retry_policy: @config.rpcs.get_operation.retry_policy
|
1537
|
-
|
1830
|
+
|
1831
|
+
options.apply_defaults timeout: @config.timeout,
|
1832
|
+
metadata: @config.metadata,
|
1538
1833
|
retry_policy: @config.retry_policy
|
1539
1834
|
|
1540
1835
|
@cluster_manager_stub.call_rpc :get_operation, request, options: options do |response, operation|
|
@@ -1587,6 +1882,21 @@ module Google
|
|
1587
1882
|
#
|
1588
1883
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1589
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
|
+
#
|
1590
1900
|
def cancel_operation request, options = nil
|
1591
1901
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1592
1902
|
|
@@ -1604,16 +1914,20 @@ module Google
|
|
1604
1914
|
gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
|
1605
1915
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1606
1916
|
|
1607
|
-
header_params = {
|
1608
|
-
|
1609
|
-
|
1917
|
+
header_params = {}
|
1918
|
+
if request.name
|
1919
|
+
header_params["name"] = request.name
|
1920
|
+
end
|
1921
|
+
|
1610
1922
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1611
1923
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1612
1924
|
|
1613
1925
|
options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout,
|
1614
1926
|
metadata: metadata,
|
1615
1927
|
retry_policy: @config.rpcs.cancel_operation.retry_policy
|
1616
|
-
|
1928
|
+
|
1929
|
+
options.apply_defaults timeout: @config.timeout,
|
1930
|
+
metadata: @config.metadata,
|
1617
1931
|
retry_policy: @config.retry_policy
|
1618
1932
|
|
1619
1933
|
@cluster_manager_stub.call_rpc :cancel_operation, request, options: options do |response, operation|
|
@@ -1663,6 +1977,21 @@ module Google
|
|
1663
1977
|
#
|
1664
1978
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1665
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
|
+
#
|
1666
1995
|
def get_server_config request, options = nil
|
1667
1996
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1668
1997
|
|
@@ -1680,16 +2009,20 @@ module Google
|
|
1680
2009
|
gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
|
1681
2010
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1682
2011
|
|
1683
|
-
header_params = {
|
1684
|
-
|
1685
|
-
|
2012
|
+
header_params = {}
|
2013
|
+
if request.name
|
2014
|
+
header_params["name"] = request.name
|
2015
|
+
end
|
2016
|
+
|
1686
2017
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1687
2018
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1688
2019
|
|
1689
2020
|
options.apply_defaults timeout: @config.rpcs.get_server_config.timeout,
|
1690
2021
|
metadata: metadata,
|
1691
2022
|
retry_policy: @config.rpcs.get_server_config.retry_policy
|
1692
|
-
|
2023
|
+
|
2024
|
+
options.apply_defaults timeout: @config.timeout,
|
2025
|
+
metadata: @config.metadata,
|
1693
2026
|
retry_policy: @config.retry_policy
|
1694
2027
|
|
1695
2028
|
@cluster_manager_stub.call_rpc :get_server_config, request, options: options do |response, operation|
|
@@ -1742,6 +2075,21 @@ module Google
|
|
1742
2075
|
#
|
1743
2076
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1744
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
|
+
#
|
1745
2093
|
def list_node_pools request, options = nil
|
1746
2094
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1747
2095
|
|
@@ -1759,16 +2107,20 @@ module Google
|
|
1759
2107
|
gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
|
1760
2108
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1761
2109
|
|
1762
|
-
header_params = {
|
1763
|
-
|
1764
|
-
|
2110
|
+
header_params = {}
|
2111
|
+
if request.parent
|
2112
|
+
header_params["parent"] = request.parent
|
2113
|
+
end
|
2114
|
+
|
1765
2115
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1766
2116
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1767
2117
|
|
1768
2118
|
options.apply_defaults timeout: @config.rpcs.list_node_pools.timeout,
|
1769
2119
|
metadata: metadata,
|
1770
2120
|
retry_policy: @config.rpcs.list_node_pools.retry_policy
|
1771
|
-
|
2121
|
+
|
2122
|
+
options.apply_defaults timeout: @config.timeout,
|
2123
|
+
metadata: @config.metadata,
|
1772
2124
|
retry_policy: @config.retry_policy
|
1773
2125
|
|
1774
2126
|
@cluster_manager_stub.call_rpc :list_node_pools, request, options: options do |response, operation|
|
@@ -1812,6 +2164,21 @@ module Google
|
|
1812
2164
|
#
|
1813
2165
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1814
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
|
+
#
|
1815
2182
|
def get_json_web_keys request, options = nil
|
1816
2183
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1817
2184
|
|
@@ -1829,16 +2196,20 @@ module Google
|
|
1829
2196
|
gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
|
1830
2197
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1831
2198
|
|
1832
|
-
header_params = {
|
1833
|
-
|
1834
|
-
|
2199
|
+
header_params = {}
|
2200
|
+
if request.parent
|
2201
|
+
header_params["parent"] = request.parent
|
2202
|
+
end
|
2203
|
+
|
1835
2204
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1836
2205
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1837
2206
|
|
1838
2207
|
options.apply_defaults timeout: @config.rpcs.get_json_web_keys.timeout,
|
1839
2208
|
metadata: metadata,
|
1840
2209
|
retry_policy: @config.rpcs.get_json_web_keys.retry_policy
|
1841
|
-
|
2210
|
+
|
2211
|
+
options.apply_defaults timeout: @config.timeout,
|
2212
|
+
metadata: @config.metadata,
|
1842
2213
|
retry_policy: @config.retry_policy
|
1843
2214
|
|
1844
2215
|
@cluster_manager_stub.call_rpc :get_json_web_keys, request, options: options do |response, operation|
|
@@ -1895,6 +2266,21 @@ module Google
|
|
1895
2266
|
#
|
1896
2267
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1897
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
|
+
#
|
1898
2284
|
def get_node_pool request, options = nil
|
1899
2285
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1900
2286
|
|
@@ -1912,16 +2298,20 @@ module Google
|
|
1912
2298
|
gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
|
1913
2299
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1914
2300
|
|
1915
|
-
header_params = {
|
1916
|
-
|
1917
|
-
|
2301
|
+
header_params = {}
|
2302
|
+
if request.name
|
2303
|
+
header_params["name"] = request.name
|
2304
|
+
end
|
2305
|
+
|
1918
2306
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1919
2307
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1920
2308
|
|
1921
2309
|
options.apply_defaults timeout: @config.rpcs.get_node_pool.timeout,
|
1922
2310
|
metadata: metadata,
|
1923
2311
|
retry_policy: @config.rpcs.get_node_pool.retry_policy
|
1924
|
-
|
2312
|
+
|
2313
|
+
options.apply_defaults timeout: @config.timeout,
|
2314
|
+
metadata: @config.metadata,
|
1925
2315
|
retry_policy: @config.retry_policy
|
1926
2316
|
|
1927
2317
|
@cluster_manager_stub.call_rpc :get_node_pool, request, options: options do |response, operation|
|
@@ -1977,6 +2367,21 @@ module Google
|
|
1977
2367
|
#
|
1978
2368
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1979
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
|
+
#
|
1980
2385
|
def create_node_pool request, options = nil
|
1981
2386
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1982
2387
|
|
@@ -1994,16 +2399,20 @@ module Google
|
|
1994
2399
|
gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
|
1995
2400
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1996
2401
|
|
1997
|
-
header_params = {
|
1998
|
-
|
1999
|
-
|
2402
|
+
header_params = {}
|
2403
|
+
if request.parent
|
2404
|
+
header_params["parent"] = request.parent
|
2405
|
+
end
|
2406
|
+
|
2000
2407
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
2001
2408
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
2002
2409
|
|
2003
2410
|
options.apply_defaults timeout: @config.rpcs.create_node_pool.timeout,
|
2004
2411
|
metadata: metadata,
|
2005
2412
|
retry_policy: @config.rpcs.create_node_pool.retry_policy
|
2006
|
-
|
2413
|
+
|
2414
|
+
options.apply_defaults timeout: @config.timeout,
|
2415
|
+
metadata: @config.metadata,
|
2007
2416
|
retry_policy: @config.retry_policy
|
2008
2417
|
|
2009
2418
|
@cluster_manager_stub.call_rpc :create_node_pool, request, options: options do |response, operation|
|
@@ -2060,6 +2469,21 @@ module Google
|
|
2060
2469
|
#
|
2061
2470
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2062
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
|
+
#
|
2063
2487
|
def delete_node_pool request, options = nil
|
2064
2488
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2065
2489
|
|
@@ -2077,16 +2501,20 @@ module Google
|
|
2077
2501
|
gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
|
2078
2502
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2079
2503
|
|
2080
|
-
header_params = {
|
2081
|
-
|
2082
|
-
|
2504
|
+
header_params = {}
|
2505
|
+
if request.name
|
2506
|
+
header_params["name"] = request.name
|
2507
|
+
end
|
2508
|
+
|
2083
2509
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
2084
2510
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
2085
2511
|
|
2086
2512
|
options.apply_defaults timeout: @config.rpcs.delete_node_pool.timeout,
|
2087
2513
|
metadata: metadata,
|
2088
2514
|
retry_policy: @config.rpcs.delete_node_pool.retry_policy
|
2089
|
-
|
2515
|
+
|
2516
|
+
options.apply_defaults timeout: @config.timeout,
|
2517
|
+
metadata: @config.metadata,
|
2090
2518
|
retry_policy: @config.retry_policy
|
2091
2519
|
|
2092
2520
|
@cluster_manager_stub.call_rpc :delete_node_pool, request, options: options do |response, operation|
|
@@ -2144,6 +2572,21 @@ module Google
|
|
2144
2572
|
#
|
2145
2573
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2146
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
|
+
#
|
2147
2590
|
def rollback_node_pool_upgrade request, options = nil
|
2148
2591
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2149
2592
|
|
@@ -2161,16 +2604,20 @@ module Google
|
|
2161
2604
|
gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
|
2162
2605
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2163
2606
|
|
2164
|
-
header_params = {
|
2165
|
-
|
2166
|
-
|
2607
|
+
header_params = {}
|
2608
|
+
if request.name
|
2609
|
+
header_params["name"] = request.name
|
2610
|
+
end
|
2611
|
+
|
2167
2612
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
2168
2613
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
2169
2614
|
|
2170
2615
|
options.apply_defaults timeout: @config.rpcs.rollback_node_pool_upgrade.timeout,
|
2171
2616
|
metadata: metadata,
|
2172
2617
|
retry_policy: @config.rpcs.rollback_node_pool_upgrade.retry_policy
|
2173
|
-
|
2618
|
+
|
2619
|
+
options.apply_defaults timeout: @config.timeout,
|
2620
|
+
metadata: @config.metadata,
|
2174
2621
|
retry_policy: @config.retry_policy
|
2175
2622
|
|
2176
2623
|
@cluster_manager_stub.call_rpc :rollback_node_pool_upgrade, request, options: options do |response, operation|
|
@@ -2229,6 +2676,21 @@ module Google
|
|
2229
2676
|
#
|
2230
2677
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2231
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
|
+
#
|
2232
2694
|
def set_node_pool_management request, options = nil
|
2233
2695
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2234
2696
|
|
@@ -2246,16 +2708,20 @@ module Google
|
|
2246
2708
|
gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
|
2247
2709
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2248
2710
|
|
2249
|
-
header_params = {
|
2250
|
-
|
2251
|
-
|
2711
|
+
header_params = {}
|
2712
|
+
if request.name
|
2713
|
+
header_params["name"] = request.name
|
2714
|
+
end
|
2715
|
+
|
2252
2716
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
2253
2717
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
2254
2718
|
|
2255
2719
|
options.apply_defaults timeout: @config.rpcs.set_node_pool_management.timeout,
|
2256
2720
|
metadata: metadata,
|
2257
2721
|
retry_policy: @config.rpcs.set_node_pool_management.retry_policy
|
2258
|
-
|
2722
|
+
|
2723
|
+
options.apply_defaults timeout: @config.timeout,
|
2724
|
+
metadata: @config.metadata,
|
2259
2725
|
retry_policy: @config.retry_policy
|
2260
2726
|
|
2261
2727
|
@cluster_manager_stub.call_rpc :set_node_pool_management, request, options: options do |response, operation|
|
@@ -2317,6 +2783,21 @@ module Google
|
|
2317
2783
|
#
|
2318
2784
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2319
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
|
+
#
|
2320
2801
|
def set_labels request, options = nil
|
2321
2802
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2322
2803
|
|
@@ -2334,16 +2815,20 @@ module Google
|
|
2334
2815
|
gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
|
2335
2816
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2336
2817
|
|
2337
|
-
header_params = {
|
2338
|
-
|
2339
|
-
|
2818
|
+
header_params = {}
|
2819
|
+
if request.name
|
2820
|
+
header_params["name"] = request.name
|
2821
|
+
end
|
2822
|
+
|
2340
2823
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
2341
2824
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
2342
2825
|
|
2343
2826
|
options.apply_defaults timeout: @config.rpcs.set_labels.timeout,
|
2344
2827
|
metadata: metadata,
|
2345
2828
|
retry_policy: @config.rpcs.set_labels.retry_policy
|
2346
|
-
|
2829
|
+
|
2830
|
+
options.apply_defaults timeout: @config.timeout,
|
2831
|
+
metadata: @config.metadata,
|
2347
2832
|
retry_policy: @config.retry_policy
|
2348
2833
|
|
2349
2834
|
@cluster_manager_stub.call_rpc :set_labels, request, options: options do |response, operation|
|
@@ -2398,6 +2883,21 @@ module Google
|
|
2398
2883
|
#
|
2399
2884
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2400
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
|
+
#
|
2401
2901
|
def set_legacy_abac request, options = nil
|
2402
2902
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2403
2903
|
|
@@ -2415,16 +2915,20 @@ module Google
|
|
2415
2915
|
gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
|
2416
2916
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2417
2917
|
|
2418
|
-
header_params = {
|
2419
|
-
|
2420
|
-
|
2918
|
+
header_params = {}
|
2919
|
+
if request.name
|
2920
|
+
header_params["name"] = request.name
|
2921
|
+
end
|
2922
|
+
|
2421
2923
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
2422
2924
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
2423
2925
|
|
2424
2926
|
options.apply_defaults timeout: @config.rpcs.set_legacy_abac.timeout,
|
2425
2927
|
metadata: metadata,
|
2426
2928
|
retry_policy: @config.rpcs.set_legacy_abac.retry_policy
|
2427
|
-
|
2929
|
+
|
2930
|
+
options.apply_defaults timeout: @config.timeout,
|
2931
|
+
metadata: @config.metadata,
|
2428
2932
|
retry_policy: @config.retry_policy
|
2429
2933
|
|
2430
2934
|
@cluster_manager_stub.call_rpc :set_legacy_abac, request, options: options do |response, operation|
|
@@ -2479,6 +2983,21 @@ module Google
|
|
2479
2983
|
#
|
2480
2984
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2481
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
|
+
#
|
2482
3001
|
def start_ip_rotation request, options = nil
|
2483
3002
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2484
3003
|
|
@@ -2496,16 +3015,20 @@ module Google
|
|
2496
3015
|
gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
|
2497
3016
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2498
3017
|
|
2499
|
-
header_params = {
|
2500
|
-
|
2501
|
-
|
3018
|
+
header_params = {}
|
3019
|
+
if request.name
|
3020
|
+
header_params["name"] = request.name
|
3021
|
+
end
|
3022
|
+
|
2502
3023
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
2503
3024
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
2504
3025
|
|
2505
3026
|
options.apply_defaults timeout: @config.rpcs.start_ip_rotation.timeout,
|
2506
3027
|
metadata: metadata,
|
2507
3028
|
retry_policy: @config.rpcs.start_ip_rotation.retry_policy
|
2508
|
-
|
3029
|
+
|
3030
|
+
options.apply_defaults timeout: @config.timeout,
|
3031
|
+
metadata: @config.metadata,
|
2509
3032
|
retry_policy: @config.retry_policy
|
2510
3033
|
|
2511
3034
|
@cluster_manager_stub.call_rpc :start_ip_rotation, request, options: options do |response, operation|
|
@@ -2558,6 +3081,21 @@ module Google
|
|
2558
3081
|
#
|
2559
3082
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2560
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
|
+
#
|
2561
3099
|
def complete_ip_rotation request, options = nil
|
2562
3100
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2563
3101
|
|
@@ -2575,16 +3113,20 @@ module Google
|
|
2575
3113
|
gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
|
2576
3114
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2577
3115
|
|
2578
|
-
header_params = {
|
2579
|
-
|
2580
|
-
|
3116
|
+
header_params = {}
|
3117
|
+
if request.name
|
3118
|
+
header_params["name"] = request.name
|
3119
|
+
end
|
3120
|
+
|
2581
3121
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
2582
3122
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
2583
3123
|
|
2584
3124
|
options.apply_defaults timeout: @config.rpcs.complete_ip_rotation.timeout,
|
2585
3125
|
metadata: metadata,
|
2586
3126
|
retry_policy: @config.rpcs.complete_ip_rotation.retry_policy
|
2587
|
-
|
3127
|
+
|
3128
|
+
options.apply_defaults timeout: @config.timeout,
|
3129
|
+
metadata: @config.metadata,
|
2588
3130
|
retry_policy: @config.retry_policy
|
2589
3131
|
|
2590
3132
|
@cluster_manager_stub.call_rpc :complete_ip_rotation, request, options: options do |response, operation|
|
@@ -2596,7 +3138,9 @@ module Google
|
|
2596
3138
|
end
|
2597
3139
|
|
2598
3140
|
##
|
2599
|
-
#
|
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}.
|
2600
3144
|
#
|
2601
3145
|
# @overload set_node_pool_size(request, options = nil)
|
2602
3146
|
# Pass arguments to `set_node_pool_size` via a request object, either of type
|
@@ -2643,6 +3187,21 @@ module Google
|
|
2643
3187
|
#
|
2644
3188
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2645
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
|
+
#
|
2646
3205
|
def set_node_pool_size request, options = nil
|
2647
3206
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2648
3207
|
|
@@ -2660,16 +3219,20 @@ module Google
|
|
2660
3219
|
gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
|
2661
3220
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2662
3221
|
|
2663
|
-
header_params = {
|
2664
|
-
|
2665
|
-
|
3222
|
+
header_params = {}
|
3223
|
+
if request.name
|
3224
|
+
header_params["name"] = request.name
|
3225
|
+
end
|
3226
|
+
|
2666
3227
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
2667
3228
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
2668
3229
|
|
2669
3230
|
options.apply_defaults timeout: @config.rpcs.set_node_pool_size.timeout,
|
2670
3231
|
metadata: metadata,
|
2671
3232
|
retry_policy: @config.rpcs.set_node_pool_size.retry_policy
|
2672
|
-
|
3233
|
+
|
3234
|
+
options.apply_defaults timeout: @config.timeout,
|
3235
|
+
metadata: @config.metadata,
|
2673
3236
|
retry_policy: @config.retry_policy
|
2674
3237
|
|
2675
3238
|
@cluster_manager_stub.call_rpc :set_node_pool_size, request, options: options do |response, operation|
|
@@ -2724,6 +3287,21 @@ module Google
|
|
2724
3287
|
#
|
2725
3288
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2726
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
|
+
#
|
2727
3305
|
def set_network_policy request, options = nil
|
2728
3306
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2729
3307
|
|
@@ -2741,16 +3319,20 @@ module Google
|
|
2741
3319
|
gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
|
2742
3320
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2743
3321
|
|
2744
|
-
header_params = {
|
2745
|
-
|
2746
|
-
|
3322
|
+
header_params = {}
|
3323
|
+
if request.name
|
3324
|
+
header_params["name"] = request.name
|
3325
|
+
end
|
3326
|
+
|
2747
3327
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
2748
3328
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
2749
3329
|
|
2750
3330
|
options.apply_defaults timeout: @config.rpcs.set_network_policy.timeout,
|
2751
3331
|
metadata: metadata,
|
2752
3332
|
retry_policy: @config.rpcs.set_network_policy.retry_policy
|
2753
|
-
|
3333
|
+
|
3334
|
+
options.apply_defaults timeout: @config.timeout,
|
3335
|
+
metadata: @config.metadata,
|
2754
3336
|
retry_policy: @config.retry_policy
|
2755
3337
|
|
2756
3338
|
@cluster_manager_stub.call_rpc :set_network_policy, request, options: options do |response, operation|
|
@@ -2804,6 +3386,21 @@ module Google
|
|
2804
3386
|
#
|
2805
3387
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2806
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
|
+
#
|
2807
3404
|
def set_maintenance_policy request, options = nil
|
2808
3405
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2809
3406
|
|
@@ -2821,16 +3418,20 @@ module Google
|
|
2821
3418
|
gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
|
2822
3419
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2823
3420
|
|
2824
|
-
header_params = {
|
2825
|
-
|
2826
|
-
|
3421
|
+
header_params = {}
|
3422
|
+
if request.name
|
3423
|
+
header_params["name"] = request.name
|
3424
|
+
end
|
3425
|
+
|
2827
3426
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
2828
3427
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
2829
3428
|
|
2830
3429
|
options.apply_defaults timeout: @config.rpcs.set_maintenance_policy.timeout,
|
2831
3430
|
metadata: metadata,
|
2832
3431
|
retry_policy: @config.rpcs.set_maintenance_policy.retry_policy
|
2833
|
-
|
3432
|
+
|
3433
|
+
options.apply_defaults timeout: @config.timeout,
|
3434
|
+
metadata: @config.metadata,
|
2834
3435
|
retry_policy: @config.retry_policy
|
2835
3436
|
|
2836
3437
|
@cluster_manager_stub.call_rpc :set_maintenance_policy, request, options: options do |response, operation|
|
@@ -2884,6 +3485,27 @@ module Google
|
|
2884
3485
|
#
|
2885
3486
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2886
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
|
+
#
|
2887
3509
|
def list_usable_subnetworks request, options = nil
|
2888
3510
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2889
3511
|
|
@@ -2901,16 +3523,20 @@ module Google
|
|
2901
3523
|
gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
|
2902
3524
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2903
3525
|
|
2904
|
-
header_params = {
|
2905
|
-
|
2906
|
-
|
3526
|
+
header_params = {}
|
3527
|
+
if request.parent
|
3528
|
+
header_params["parent"] = request.parent
|
3529
|
+
end
|
3530
|
+
|
2907
3531
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
2908
3532
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
2909
3533
|
|
2910
3534
|
options.apply_defaults timeout: @config.rpcs.list_usable_subnetworks.timeout,
|
2911
3535
|
metadata: metadata,
|
2912
3536
|
retry_policy: @config.rpcs.list_usable_subnetworks.retry_policy
|
2913
|
-
|
3537
|
+
|
3538
|
+
options.apply_defaults timeout: @config.timeout,
|
3539
|
+
metadata: @config.metadata,
|
2914
3540
|
retry_policy: @config.retry_policy
|
2915
3541
|
|
2916
3542
|
@cluster_manager_stub.call_rpc :list_usable_subnetworks, request, options: options do |response, operation|
|
@@ -2952,6 +3578,21 @@ module Google
|
|
2952
3578
|
#
|
2953
3579
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2954
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
|
+
#
|
2955
3596
|
def list_locations request, options = nil
|
2956
3597
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2957
3598
|
|
@@ -2969,16 +3610,20 @@ module Google
|
|
2969
3610
|
gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
|
2970
3611
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2971
3612
|
|
2972
|
-
header_params = {
|
2973
|
-
|
2974
|
-
|
3613
|
+
header_params = {}
|
3614
|
+
if request.parent
|
3615
|
+
header_params["parent"] = request.parent
|
3616
|
+
end
|
3617
|
+
|
2975
3618
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
2976
3619
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
2977
3620
|
|
2978
3621
|
options.apply_defaults timeout: @config.rpcs.list_locations.timeout,
|
2979
3622
|
metadata: metadata,
|
2980
3623
|
retry_policy: @config.rpcs.list_locations.retry_policy
|
2981
|
-
|
3624
|
+
|
3625
|
+
options.apply_defaults timeout: @config.timeout,
|
3626
|
+
metadata: @config.metadata,
|
2982
3627
|
retry_policy: @config.retry_policy
|
2983
3628
|
|
2984
3629
|
@cluster_manager_stub.call_rpc :list_locations, request, options: options do |response, operation|
|
@@ -3002,22 +3647,21 @@ module Google
|
|
3002
3647
|
# Configuration can be applied globally to all clients, or to a single client
|
3003
3648
|
# on construction.
|
3004
3649
|
#
|
3005
|
-
#
|
3006
|
-
#
|
3007
|
-
#
|
3008
|
-
# to 20 seconds,
|
3009
|
-
#
|
3010
|
-
#
|
3011
|
-
#
|
3012
|
-
#
|
3013
|
-
#
|
3014
|
-
#
|
3015
|
-
#
|
3016
|
-
#
|
3017
|
-
#
|
3018
|
-
#
|
3019
|
-
#
|
3020
|
-
# end
|
3650
|
+
# @example
|
3651
|
+
#
|
3652
|
+
# # Modify the global config, setting the timeout for
|
3653
|
+
# # list_clusters to 20 seconds,
|
3654
|
+
# # and all remaining timeouts to 10 seconds.
|
3655
|
+
# ::Google::Cloud::Container::V1beta1::ClusterManager::Client.configure do |config|
|
3656
|
+
# config.timeout = 10.0
|
3657
|
+
# config.rpcs.list_clusters.timeout = 20.0
|
3658
|
+
# end
|
3659
|
+
#
|
3660
|
+
# # Apply the above configuration only to a new client.
|
3661
|
+
# client = ::Google::Cloud::Container::V1beta1::ClusterManager::Client.new do |config|
|
3662
|
+
# config.timeout = 10.0
|
3663
|
+
# config.rpcs.list_clusters.timeout = 20.0
|
3664
|
+
# end
|
3021
3665
|
#
|
3022
3666
|
# @!attribute [rw] endpoint
|
3023
3667
|
# The hostname or hostname:port of the service endpoint.
|