google-cloud-container-v1 0.7.0 → 0.8.0
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/.yardopts +1 -1
- data/AUTHENTICATION.md +7 -25
- data/README.md +1 -1
- data/lib/google/cloud/container/v1/cluster_manager/client.rb +787 -166
- data/lib/google/cloud/container/v1/cluster_manager/paths.rb +50 -0
- data/lib/google/cloud/container/v1/cluster_manager.rb +1 -0
- data/lib/google/cloud/container/v1/version.rb +1 -1
- data/lib/google/container/v1/cluster_service_pb.rb +242 -2
- data/lib/google/container/v1/cluster_service_services_pb.rb +4 -2
- data/proto_docs/google/api/resource.rb +10 -71
- data/proto_docs/google/container/v1/cluster_service.rb +708 -11
- data/proto_docs/google/protobuf/any.rb +141 -0
- data/proto_docs/google/protobuf/wrappers.rb +121 -0
- data/proto_docs/google/rpc/code.rb +185 -0
- data/proto_docs/google/rpc/status.rb +46 -0
- metadata +10 -5
@@ -30,6 +30,8 @@ module Google
|
|
30
30
|
# Google Kubernetes Engine Cluster Manager v1
|
31
31
|
#
|
32
32
|
class Client
|
33
|
+
include Paths
|
34
|
+
|
33
35
|
# @private
|
34
36
|
attr_reader :cluster_manager_stub
|
35
37
|
|
@@ -39,13 +41,12 @@ module Google
|
|
39
41
|
# See {::Google::Cloud::Container::V1::ClusterManager::Client::Configuration}
|
40
42
|
# for a description of the configuration fields.
|
41
43
|
#
|
42
|
-
#
|
43
|
-
#
|
44
|
-
# To modify the configuration for all ClusterManager clients:
|
44
|
+
# @example
|
45
45
|
#
|
46
|
-
#
|
47
|
-
#
|
48
|
-
#
|
46
|
+
# # Modify the configuration for all ClusterManager clients
|
47
|
+
# ::Google::Cloud::Container::V1::ClusterManager::Client.configure do |config|
|
48
|
+
# config.timeout = 10.0
|
49
|
+
# end
|
49
50
|
#
|
50
51
|
# @yield [config] Configure the Client client.
|
51
52
|
# @yieldparam config [Client::Configuration]
|
@@ -179,19 +180,15 @@ module Google
|
|
179
180
|
##
|
180
181
|
# Create a new ClusterManager client object.
|
181
182
|
#
|
182
|
-
#
|
183
|
-
#
|
184
|
-
# To create a new ClusterManager client with the default
|
185
|
-
# configuration:
|
183
|
+
# @example
|
186
184
|
#
|
187
|
-
#
|
185
|
+
# # Create a client using the default configuration
|
186
|
+
# client = ::Google::Cloud::Container::V1::ClusterManager::Client.new
|
188
187
|
#
|
189
|
-
#
|
190
|
-
#
|
191
|
-
#
|
192
|
-
#
|
193
|
-
# config.timeout = 10.0
|
194
|
-
# end
|
188
|
+
# # Create a client using a custom configuration
|
189
|
+
# client = ::Google::Cloud::Container::V1::ClusterManager::Client.new do |config|
|
190
|
+
# config.timeout = 10.0
|
191
|
+
# end
|
195
192
|
#
|
196
193
|
# @yield [config] Configure the ClusterManager client.
|
197
194
|
# @yieldparam config [Client::Configuration]
|
@@ -211,10 +208,9 @@ module Google
|
|
211
208
|
|
212
209
|
# Create credentials
|
213
210
|
credentials = @config.credentials
|
214
|
-
# Use self-signed JWT if the
|
211
|
+
# Use self-signed JWT if the endpoint is unchanged from default,
|
215
212
|
# but only if the default endpoint does not have a region prefix.
|
216
|
-
enable_self_signed_jwt = @config.
|
217
|
-
@config.endpoint == Client.configure.endpoint &&
|
213
|
+
enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
|
218
214
|
!@config.endpoint.split(".").first.include?("-")
|
219
215
|
credentials ||= Credentials.default scope: @config.scope,
|
220
216
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -276,6 +272,21 @@ module Google
|
|
276
272
|
#
|
277
273
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
278
274
|
#
|
275
|
+
# @example Basic example
|
276
|
+
# require "google/cloud/container/v1"
|
277
|
+
#
|
278
|
+
# # Create a client object. The client can be reused for multiple calls.
|
279
|
+
# client = Google::Cloud::Container::V1::ClusterManager::Client.new
|
280
|
+
#
|
281
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
282
|
+
# request = Google::Cloud::Container::V1::ListClustersRequest.new
|
283
|
+
#
|
284
|
+
# # Call the list_clusters method.
|
285
|
+
# result = client.list_clusters request
|
286
|
+
#
|
287
|
+
# # The returned object is of type Google::Cloud::Container::V1::ListClustersResponse.
|
288
|
+
# p result
|
289
|
+
#
|
279
290
|
def list_clusters request, options = nil
|
280
291
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
281
292
|
|
@@ -293,16 +304,20 @@ module Google
|
|
293
304
|
gapic_version: ::Google::Cloud::Container::V1::VERSION
|
294
305
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
295
306
|
|
296
|
-
header_params = {
|
297
|
-
|
298
|
-
|
307
|
+
header_params = {}
|
308
|
+
if request.parent
|
309
|
+
header_params["parent"] = request.parent
|
310
|
+
end
|
311
|
+
|
299
312
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
300
313
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
301
314
|
|
302
315
|
options.apply_defaults timeout: @config.rpcs.list_clusters.timeout,
|
303
316
|
metadata: metadata,
|
304
317
|
retry_policy: @config.rpcs.list_clusters.retry_policy
|
305
|
-
|
318
|
+
|
319
|
+
options.apply_defaults timeout: @config.timeout,
|
320
|
+
metadata: @config.metadata,
|
306
321
|
retry_policy: @config.retry_policy
|
307
322
|
|
308
323
|
@cluster_manager_stub.call_rpc :list_clusters, request, options: options do |response, operation|
|
@@ -355,6 +370,21 @@ module Google
|
|
355
370
|
#
|
356
371
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
357
372
|
#
|
373
|
+
# @example Basic example
|
374
|
+
# require "google/cloud/container/v1"
|
375
|
+
#
|
376
|
+
# # Create a client object. The client can be reused for multiple calls.
|
377
|
+
# client = Google::Cloud::Container::V1::ClusterManager::Client.new
|
378
|
+
#
|
379
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
380
|
+
# request = Google::Cloud::Container::V1::GetClusterRequest.new
|
381
|
+
#
|
382
|
+
# # Call the get_cluster method.
|
383
|
+
# result = client.get_cluster request
|
384
|
+
#
|
385
|
+
# # The returned object is of type Google::Cloud::Container::V1::Cluster.
|
386
|
+
# p result
|
387
|
+
#
|
358
388
|
def get_cluster request, options = nil
|
359
389
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
360
390
|
|
@@ -372,16 +402,20 @@ module Google
|
|
372
402
|
gapic_version: ::Google::Cloud::Container::V1::VERSION
|
373
403
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
374
404
|
|
375
|
-
header_params = {
|
376
|
-
|
377
|
-
|
405
|
+
header_params = {}
|
406
|
+
if request.name
|
407
|
+
header_params["name"] = request.name
|
408
|
+
end
|
409
|
+
|
378
410
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
379
411
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
380
412
|
|
381
413
|
options.apply_defaults timeout: @config.rpcs.get_cluster.timeout,
|
382
414
|
metadata: metadata,
|
383
415
|
retry_policy: @config.rpcs.get_cluster.retry_policy
|
384
|
-
|
416
|
+
|
417
|
+
options.apply_defaults timeout: @config.timeout,
|
418
|
+
metadata: @config.metadata,
|
385
419
|
retry_policy: @config.retry_policy
|
386
420
|
|
387
421
|
@cluster_manager_stub.call_rpc :get_cluster, request, options: options do |response, operation|
|
@@ -447,6 +481,21 @@ module Google
|
|
447
481
|
#
|
448
482
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
449
483
|
#
|
484
|
+
# @example Basic example
|
485
|
+
# require "google/cloud/container/v1"
|
486
|
+
#
|
487
|
+
# # Create a client object. The client can be reused for multiple calls.
|
488
|
+
# client = Google::Cloud::Container::V1::ClusterManager::Client.new
|
489
|
+
#
|
490
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
491
|
+
# request = Google::Cloud::Container::V1::CreateClusterRequest.new
|
492
|
+
#
|
493
|
+
# # Call the create_cluster method.
|
494
|
+
# result = client.create_cluster request
|
495
|
+
#
|
496
|
+
# # The returned object is of type Google::Cloud::Container::V1::Operation.
|
497
|
+
# p result
|
498
|
+
#
|
450
499
|
def create_cluster request, options = nil
|
451
500
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
452
501
|
|
@@ -464,16 +513,20 @@ module Google
|
|
464
513
|
gapic_version: ::Google::Cloud::Container::V1::VERSION
|
465
514
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
466
515
|
|
467
|
-
header_params = {
|
468
|
-
|
469
|
-
|
516
|
+
header_params = {}
|
517
|
+
if request.parent
|
518
|
+
header_params["parent"] = request.parent
|
519
|
+
end
|
520
|
+
|
470
521
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
471
522
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
472
523
|
|
473
524
|
options.apply_defaults timeout: @config.rpcs.create_cluster.timeout,
|
474
525
|
metadata: metadata,
|
475
526
|
retry_policy: @config.rpcs.create_cluster.retry_policy
|
476
|
-
|
527
|
+
|
528
|
+
options.apply_defaults timeout: @config.timeout,
|
529
|
+
metadata: @config.metadata,
|
477
530
|
retry_policy: @config.retry_policy
|
478
531
|
|
479
532
|
@cluster_manager_stub.call_rpc :create_cluster, request, options: options do |response, operation|
|
@@ -528,6 +581,21 @@ module Google
|
|
528
581
|
#
|
529
582
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
530
583
|
#
|
584
|
+
# @example Basic example
|
585
|
+
# require "google/cloud/container/v1"
|
586
|
+
#
|
587
|
+
# # Create a client object. The client can be reused for multiple calls.
|
588
|
+
# client = Google::Cloud::Container::V1::ClusterManager::Client.new
|
589
|
+
#
|
590
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
591
|
+
# request = Google::Cloud::Container::V1::UpdateClusterRequest.new
|
592
|
+
#
|
593
|
+
# # Call the update_cluster method.
|
594
|
+
# result = client.update_cluster request
|
595
|
+
#
|
596
|
+
# # The returned object is of type Google::Cloud::Container::V1::Operation.
|
597
|
+
# p result
|
598
|
+
#
|
531
599
|
def update_cluster request, options = nil
|
532
600
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
533
601
|
|
@@ -545,16 +613,20 @@ module Google
|
|
545
613
|
gapic_version: ::Google::Cloud::Container::V1::VERSION
|
546
614
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
547
615
|
|
548
|
-
header_params = {
|
549
|
-
|
550
|
-
|
616
|
+
header_params = {}
|
617
|
+
if request.name
|
618
|
+
header_params["name"] = request.name
|
619
|
+
end
|
620
|
+
|
551
621
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
552
622
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
553
623
|
|
554
624
|
options.apply_defaults timeout: @config.rpcs.update_cluster.timeout,
|
555
625
|
metadata: metadata,
|
556
626
|
retry_policy: @config.rpcs.update_cluster.retry_policy
|
557
|
-
|
627
|
+
|
628
|
+
options.apply_defaults timeout: @config.timeout,
|
629
|
+
metadata: @config.metadata,
|
558
630
|
retry_policy: @config.retry_policy
|
559
631
|
|
560
632
|
@cluster_manager_stub.call_rpc :update_cluster, request, options: options do |response, operation|
|
@@ -578,7 +650,7 @@ module Google
|
|
578
650
|
# @param options [::Gapic::CallOptions, ::Hash]
|
579
651
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
580
652
|
#
|
581
|
-
# @overload update_node_pool(project_id: nil, zone: nil, cluster_id: nil, node_pool_id: nil, node_version: nil, image_type: nil, name: nil, locations: nil, workload_metadata_config: nil, upgrade_settings: nil)
|
653
|
+
# @overload update_node_pool(project_id: nil, zone: nil, cluster_id: nil, node_pool_id: nil, node_version: nil, image_type: nil, name: nil, locations: nil, workload_metadata_config: nil, upgrade_settings: nil, linux_node_config: nil, kubelet_config: nil, gcfs_config: nil, gvnic: nil)
|
582
654
|
# Pass arguments to `update_node_pool` via keyword arguments. Note that at
|
583
655
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
584
656
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
@@ -626,6 +698,14 @@ module Google
|
|
626
698
|
# The desired workload metadata config for the node pool.
|
627
699
|
# @param upgrade_settings [::Google::Cloud::Container::V1::NodePool::UpgradeSettings, ::Hash]
|
628
700
|
# Upgrade settings control disruption and speed of the upgrade.
|
701
|
+
# @param linux_node_config [::Google::Cloud::Container::V1::LinuxNodeConfig, ::Hash]
|
702
|
+
# Parameters that can be configured on Linux nodes.
|
703
|
+
# @param kubelet_config [::Google::Cloud::Container::V1::NodeKubeletConfig, ::Hash]
|
704
|
+
# Node kubelet configs.
|
705
|
+
# @param gcfs_config [::Google::Cloud::Container::V1::GcfsConfig, ::Hash]
|
706
|
+
# GCFS config.
|
707
|
+
# @param gvnic [::Google::Cloud::Container::V1::VirtualNIC, ::Hash]
|
708
|
+
# Enable or disable gvnic on the node pool.
|
629
709
|
#
|
630
710
|
# @yield [response, operation] Access the result along with the RPC operation
|
631
711
|
# @yieldparam response [::Google::Cloud::Container::V1::Operation]
|
@@ -635,6 +715,21 @@ module Google
|
|
635
715
|
#
|
636
716
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
637
717
|
#
|
718
|
+
# @example Basic example
|
719
|
+
# require "google/cloud/container/v1"
|
720
|
+
#
|
721
|
+
# # Create a client object. The client can be reused for multiple calls.
|
722
|
+
# client = Google::Cloud::Container::V1::ClusterManager::Client.new
|
723
|
+
#
|
724
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
725
|
+
# request = Google::Cloud::Container::V1::UpdateNodePoolRequest.new
|
726
|
+
#
|
727
|
+
# # Call the update_node_pool method.
|
728
|
+
# result = client.update_node_pool request
|
729
|
+
#
|
730
|
+
# # The returned object is of type Google::Cloud::Container::V1::Operation.
|
731
|
+
# p result
|
732
|
+
#
|
638
733
|
def update_node_pool request, options = nil
|
639
734
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
640
735
|
|
@@ -652,16 +747,20 @@ module Google
|
|
652
747
|
gapic_version: ::Google::Cloud::Container::V1::VERSION
|
653
748
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
654
749
|
|
655
|
-
header_params = {
|
656
|
-
|
657
|
-
|
750
|
+
header_params = {}
|
751
|
+
if request.name
|
752
|
+
header_params["name"] = request.name
|
753
|
+
end
|
754
|
+
|
658
755
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
659
756
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
660
757
|
|
661
758
|
options.apply_defaults timeout: @config.rpcs.update_node_pool.timeout,
|
662
759
|
metadata: metadata,
|
663
760
|
retry_policy: @config.rpcs.update_node_pool.retry_policy
|
664
|
-
|
761
|
+
|
762
|
+
options.apply_defaults timeout: @config.timeout,
|
763
|
+
metadata: @config.metadata,
|
665
764
|
retry_policy: @config.retry_policy
|
666
765
|
|
667
766
|
@cluster_manager_stub.call_rpc :update_node_pool, request, options: options do |response, operation|
|
@@ -720,6 +819,21 @@ module Google
|
|
720
819
|
#
|
721
820
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
722
821
|
#
|
822
|
+
# @example Basic example
|
823
|
+
# require "google/cloud/container/v1"
|
824
|
+
#
|
825
|
+
# # Create a client object. The client can be reused for multiple calls.
|
826
|
+
# client = Google::Cloud::Container::V1::ClusterManager::Client.new
|
827
|
+
#
|
828
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
829
|
+
# request = Google::Cloud::Container::V1::SetNodePoolAutoscalingRequest.new
|
830
|
+
#
|
831
|
+
# # Call the set_node_pool_autoscaling method.
|
832
|
+
# result = client.set_node_pool_autoscaling request
|
833
|
+
#
|
834
|
+
# # The returned object is of type Google::Cloud::Container::V1::Operation.
|
835
|
+
# p result
|
836
|
+
#
|
723
837
|
def set_node_pool_autoscaling request, options = nil
|
724
838
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
725
839
|
|
@@ -737,16 +851,20 @@ module Google
|
|
737
851
|
gapic_version: ::Google::Cloud::Container::V1::VERSION
|
738
852
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
739
853
|
|
740
|
-
header_params = {
|
741
|
-
|
742
|
-
|
854
|
+
header_params = {}
|
855
|
+
if request.name
|
856
|
+
header_params["name"] = request.name
|
857
|
+
end
|
858
|
+
|
743
859
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
744
860
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
745
861
|
|
746
862
|
options.apply_defaults timeout: @config.rpcs.set_node_pool_autoscaling.timeout,
|
747
863
|
metadata: metadata,
|
748
864
|
retry_policy: @config.rpcs.set_node_pool_autoscaling.retry_policy
|
749
|
-
|
865
|
+
|
866
|
+
options.apply_defaults timeout: @config.timeout,
|
867
|
+
metadata: @config.metadata,
|
750
868
|
retry_policy: @config.retry_policy
|
751
869
|
|
752
870
|
@cluster_manager_stub.call_rpc :set_node_pool_autoscaling, request, options: options do |response, operation|
|
@@ -811,6 +929,21 @@ module Google
|
|
811
929
|
#
|
812
930
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
813
931
|
#
|
932
|
+
# @example Basic example
|
933
|
+
# require "google/cloud/container/v1"
|
934
|
+
#
|
935
|
+
# # Create a client object. The client can be reused for multiple calls.
|
936
|
+
# client = Google::Cloud::Container::V1::ClusterManager::Client.new
|
937
|
+
#
|
938
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
939
|
+
# request = Google::Cloud::Container::V1::SetLoggingServiceRequest.new
|
940
|
+
#
|
941
|
+
# # Call the set_logging_service method.
|
942
|
+
# result = client.set_logging_service request
|
943
|
+
#
|
944
|
+
# # The returned object is of type Google::Cloud::Container::V1::Operation.
|
945
|
+
# p result
|
946
|
+
#
|
814
947
|
def set_logging_service request, options = nil
|
815
948
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
816
949
|
|
@@ -828,16 +961,20 @@ module Google
|
|
828
961
|
gapic_version: ::Google::Cloud::Container::V1::VERSION
|
829
962
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
830
963
|
|
831
|
-
header_params = {
|
832
|
-
|
833
|
-
|
964
|
+
header_params = {}
|
965
|
+
if request.name
|
966
|
+
header_params["name"] = request.name
|
967
|
+
end
|
968
|
+
|
834
969
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
835
970
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
836
971
|
|
837
972
|
options.apply_defaults timeout: @config.rpcs.set_logging_service.timeout,
|
838
973
|
metadata: metadata,
|
839
974
|
retry_policy: @config.rpcs.set_logging_service.retry_policy
|
840
|
-
|
975
|
+
|
976
|
+
options.apply_defaults timeout: @config.timeout,
|
977
|
+
metadata: @config.metadata,
|
841
978
|
retry_policy: @config.retry_policy
|
842
979
|
|
843
980
|
@cluster_manager_stub.call_rpc :set_logging_service, request, options: options do |response, operation|
|
@@ -902,6 +1039,21 @@ module Google
|
|
902
1039
|
#
|
903
1040
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
904
1041
|
#
|
1042
|
+
# @example Basic example
|
1043
|
+
# require "google/cloud/container/v1"
|
1044
|
+
#
|
1045
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1046
|
+
# client = Google::Cloud::Container::V1::ClusterManager::Client.new
|
1047
|
+
#
|
1048
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1049
|
+
# request = Google::Cloud::Container::V1::SetMonitoringServiceRequest.new
|
1050
|
+
#
|
1051
|
+
# # Call the set_monitoring_service method.
|
1052
|
+
# result = client.set_monitoring_service request
|
1053
|
+
#
|
1054
|
+
# # The returned object is of type Google::Cloud::Container::V1::Operation.
|
1055
|
+
# p result
|
1056
|
+
#
|
905
1057
|
def set_monitoring_service request, options = nil
|
906
1058
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
907
1059
|
|
@@ -919,16 +1071,20 @@ module Google
|
|
919
1071
|
gapic_version: ::Google::Cloud::Container::V1::VERSION
|
920
1072
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
921
1073
|
|
922
|
-
header_params = {
|
923
|
-
|
924
|
-
|
1074
|
+
header_params = {}
|
1075
|
+
if request.name
|
1076
|
+
header_params["name"] = request.name
|
1077
|
+
end
|
1078
|
+
|
925
1079
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
926
1080
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
927
1081
|
|
928
1082
|
options.apply_defaults timeout: @config.rpcs.set_monitoring_service.timeout,
|
929
1083
|
metadata: metadata,
|
930
1084
|
retry_policy: @config.rpcs.set_monitoring_service.retry_policy
|
931
|
-
|
1085
|
+
|
1086
|
+
options.apply_defaults timeout: @config.timeout,
|
1087
|
+
metadata: @config.metadata,
|
932
1088
|
retry_policy: @config.retry_policy
|
933
1089
|
|
934
1090
|
@cluster_manager_stub.call_rpc :set_monitoring_service, request, options: options do |response, operation|
|
@@ -984,6 +1140,21 @@ module Google
|
|
984
1140
|
#
|
985
1141
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
986
1142
|
#
|
1143
|
+
# @example Basic example
|
1144
|
+
# require "google/cloud/container/v1"
|
1145
|
+
#
|
1146
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1147
|
+
# client = Google::Cloud::Container::V1::ClusterManager::Client.new
|
1148
|
+
#
|
1149
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1150
|
+
# request = Google::Cloud::Container::V1::SetAddonsConfigRequest.new
|
1151
|
+
#
|
1152
|
+
# # Call the set_addons_config method.
|
1153
|
+
# result = client.set_addons_config request
|
1154
|
+
#
|
1155
|
+
# # The returned object is of type Google::Cloud::Container::V1::Operation.
|
1156
|
+
# p result
|
1157
|
+
#
|
987
1158
|
def set_addons_config request, options = nil
|
988
1159
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
989
1160
|
|
@@ -1001,16 +1172,20 @@ module Google
|
|
1001
1172
|
gapic_version: ::Google::Cloud::Container::V1::VERSION
|
1002
1173
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1003
1174
|
|
1004
|
-
header_params = {
|
1005
|
-
|
1006
|
-
|
1175
|
+
header_params = {}
|
1176
|
+
if request.name
|
1177
|
+
header_params["name"] = request.name
|
1178
|
+
end
|
1179
|
+
|
1007
1180
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1008
1181
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1009
1182
|
|
1010
1183
|
options.apply_defaults timeout: @config.rpcs.set_addons_config.timeout,
|
1011
1184
|
metadata: metadata,
|
1012
1185
|
retry_policy: @config.rpcs.set_addons_config.retry_policy
|
1013
|
-
|
1186
|
+
|
1187
|
+
options.apply_defaults timeout: @config.timeout,
|
1188
|
+
metadata: @config.metadata,
|
1014
1189
|
retry_policy: @config.retry_policy
|
1015
1190
|
|
1016
1191
|
@cluster_manager_stub.call_rpc :set_addons_config, request, options: options do |response, operation|
|
@@ -1027,6 +1202,8 @@ module Google
|
|
1027
1202
|
# [projects.locations.clusters.update](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters/update)
|
1028
1203
|
# instead.
|
1029
1204
|
#
|
1205
|
+
# @deprecated This method is deprecated and may be removed in the next major version update.
|
1206
|
+
#
|
1030
1207
|
# @overload set_locations(request, options = nil)
|
1031
1208
|
# Pass arguments to `set_locations` via a request object, either of type
|
1032
1209
|
# {::Google::Cloud::Container::V1::SetLocationsRequest} or an equivalent Hash.
|
@@ -1074,6 +1251,21 @@ module Google
|
|
1074
1251
|
#
|
1075
1252
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1076
1253
|
#
|
1254
|
+
# @example Basic example
|
1255
|
+
# require "google/cloud/container/v1"
|
1256
|
+
#
|
1257
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1258
|
+
# client = Google::Cloud::Container::V1::ClusterManager::Client.new
|
1259
|
+
#
|
1260
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1261
|
+
# request = Google::Cloud::Container::V1::SetLocationsRequest.new
|
1262
|
+
#
|
1263
|
+
# # Call the set_locations method.
|
1264
|
+
# result = client.set_locations request
|
1265
|
+
#
|
1266
|
+
# # The returned object is of type Google::Cloud::Container::V1::Operation.
|
1267
|
+
# p result
|
1268
|
+
#
|
1077
1269
|
def set_locations request, options = nil
|
1078
1270
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1079
1271
|
|
@@ -1091,16 +1283,20 @@ module Google
|
|
1091
1283
|
gapic_version: ::Google::Cloud::Container::V1::VERSION
|
1092
1284
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1093
1285
|
|
1094
|
-
header_params = {
|
1095
|
-
|
1096
|
-
|
1286
|
+
header_params = {}
|
1287
|
+
if request.name
|
1288
|
+
header_params["name"] = request.name
|
1289
|
+
end
|
1290
|
+
|
1097
1291
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1098
1292
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1099
1293
|
|
1100
1294
|
options.apply_defaults timeout: @config.rpcs.set_locations.timeout,
|
1101
1295
|
metadata: metadata,
|
1102
1296
|
retry_policy: @config.rpcs.set_locations.retry_policy
|
1103
|
-
|
1297
|
+
|
1298
|
+
options.apply_defaults timeout: @config.timeout,
|
1299
|
+
metadata: @config.metadata,
|
1104
1300
|
retry_policy: @config.retry_policy
|
1105
1301
|
|
1106
1302
|
@cluster_manager_stub.call_rpc :set_locations, request, options: options do |response, operation|
|
@@ -1164,6 +1360,21 @@ module Google
|
|
1164
1360
|
#
|
1165
1361
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1166
1362
|
#
|
1363
|
+
# @example Basic example
|
1364
|
+
# require "google/cloud/container/v1"
|
1365
|
+
#
|
1366
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1367
|
+
# client = Google::Cloud::Container::V1::ClusterManager::Client.new
|
1368
|
+
#
|
1369
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1370
|
+
# request = Google::Cloud::Container::V1::UpdateMasterRequest.new
|
1371
|
+
#
|
1372
|
+
# # Call the update_master method.
|
1373
|
+
# result = client.update_master request
|
1374
|
+
#
|
1375
|
+
# # The returned object is of type Google::Cloud::Container::V1::Operation.
|
1376
|
+
# p result
|
1377
|
+
#
|
1167
1378
|
def update_master request, options = nil
|
1168
1379
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1169
1380
|
|
@@ -1181,16 +1392,20 @@ module Google
|
|
1181
1392
|
gapic_version: ::Google::Cloud::Container::V1::VERSION
|
1182
1393
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1183
1394
|
|
1184
|
-
header_params = {
|
1185
|
-
|
1186
|
-
|
1395
|
+
header_params = {}
|
1396
|
+
if request.name
|
1397
|
+
header_params["name"] = request.name
|
1398
|
+
end
|
1399
|
+
|
1187
1400
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1188
1401
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1189
1402
|
|
1190
1403
|
options.apply_defaults timeout: @config.rpcs.update_master.timeout,
|
1191
1404
|
metadata: metadata,
|
1192
1405
|
retry_policy: @config.rpcs.update_master.retry_policy
|
1193
|
-
|
1406
|
+
|
1407
|
+
options.apply_defaults timeout: @config.timeout,
|
1408
|
+
metadata: @config.metadata,
|
1194
1409
|
retry_policy: @config.retry_policy
|
1195
1410
|
|
1196
1411
|
@cluster_manager_stub.call_rpc :update_master, request, options: options do |response, operation|
|
@@ -1249,6 +1464,21 @@ module Google
|
|
1249
1464
|
#
|
1250
1465
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1251
1466
|
#
|
1467
|
+
# @example Basic example
|
1468
|
+
# require "google/cloud/container/v1"
|
1469
|
+
#
|
1470
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1471
|
+
# client = Google::Cloud::Container::V1::ClusterManager::Client.new
|
1472
|
+
#
|
1473
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1474
|
+
# request = Google::Cloud::Container::V1::SetMasterAuthRequest.new
|
1475
|
+
#
|
1476
|
+
# # Call the set_master_auth method.
|
1477
|
+
# result = client.set_master_auth request
|
1478
|
+
#
|
1479
|
+
# # The returned object is of type Google::Cloud::Container::V1::Operation.
|
1480
|
+
# p result
|
1481
|
+
#
|
1252
1482
|
def set_master_auth request, options = nil
|
1253
1483
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1254
1484
|
|
@@ -1266,16 +1496,20 @@ module Google
|
|
1266
1496
|
gapic_version: ::Google::Cloud::Container::V1::VERSION
|
1267
1497
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1268
1498
|
|
1269
|
-
header_params = {
|
1270
|
-
|
1271
|
-
|
1499
|
+
header_params = {}
|
1500
|
+
if request.name
|
1501
|
+
header_params["name"] = request.name
|
1502
|
+
end
|
1503
|
+
|
1272
1504
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1273
1505
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1274
1506
|
|
1275
1507
|
options.apply_defaults timeout: @config.rpcs.set_master_auth.timeout,
|
1276
1508
|
metadata: metadata,
|
1277
1509
|
retry_policy: @config.rpcs.set_master_auth.retry_policy
|
1278
|
-
|
1510
|
+
|
1511
|
+
options.apply_defaults timeout: @config.timeout,
|
1512
|
+
metadata: @config.metadata,
|
1279
1513
|
retry_policy: @config.retry_policy
|
1280
1514
|
|
1281
1515
|
@cluster_manager_stub.call_rpc :set_master_auth, request, options: options do |response, operation|
|
@@ -1336,6 +1570,21 @@ module Google
|
|
1336
1570
|
#
|
1337
1571
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1338
1572
|
#
|
1573
|
+
# @example Basic example
|
1574
|
+
# require "google/cloud/container/v1"
|
1575
|
+
#
|
1576
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1577
|
+
# client = Google::Cloud::Container::V1::ClusterManager::Client.new
|
1578
|
+
#
|
1579
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1580
|
+
# request = Google::Cloud::Container::V1::DeleteClusterRequest.new
|
1581
|
+
#
|
1582
|
+
# # Call the delete_cluster method.
|
1583
|
+
# result = client.delete_cluster request
|
1584
|
+
#
|
1585
|
+
# # The returned object is of type Google::Cloud::Container::V1::Operation.
|
1586
|
+
# p result
|
1587
|
+
#
|
1339
1588
|
def delete_cluster request, options = nil
|
1340
1589
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1341
1590
|
|
@@ -1353,16 +1602,20 @@ module Google
|
|
1353
1602
|
gapic_version: ::Google::Cloud::Container::V1::VERSION
|
1354
1603
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1355
1604
|
|
1356
|
-
header_params = {
|
1357
|
-
|
1358
|
-
|
1605
|
+
header_params = {}
|
1606
|
+
if request.name
|
1607
|
+
header_params["name"] = request.name
|
1608
|
+
end
|
1609
|
+
|
1359
1610
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1360
1611
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1361
1612
|
|
1362
1613
|
options.apply_defaults timeout: @config.rpcs.delete_cluster.timeout,
|
1363
1614
|
metadata: metadata,
|
1364
1615
|
retry_policy: @config.rpcs.delete_cluster.retry_policy
|
1365
|
-
|
1616
|
+
|
1617
|
+
options.apply_defaults timeout: @config.timeout,
|
1618
|
+
metadata: @config.metadata,
|
1366
1619
|
retry_policy: @config.retry_policy
|
1367
1620
|
|
1368
1621
|
@cluster_manager_stub.call_rpc :delete_cluster, request, options: options do |response, operation|
|
@@ -1413,6 +1666,21 @@ module Google
|
|
1413
1666
|
#
|
1414
1667
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1415
1668
|
#
|
1669
|
+
# @example Basic example
|
1670
|
+
# require "google/cloud/container/v1"
|
1671
|
+
#
|
1672
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1673
|
+
# client = Google::Cloud::Container::V1::ClusterManager::Client.new
|
1674
|
+
#
|
1675
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1676
|
+
# request = Google::Cloud::Container::V1::ListOperationsRequest.new
|
1677
|
+
#
|
1678
|
+
# # Call the list_operations method.
|
1679
|
+
# result = client.list_operations request
|
1680
|
+
#
|
1681
|
+
# # The returned object is of type Google::Cloud::Container::V1::ListOperationsResponse.
|
1682
|
+
# p result
|
1683
|
+
#
|
1416
1684
|
def list_operations request, options = nil
|
1417
1685
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1418
1686
|
|
@@ -1430,16 +1698,20 @@ module Google
|
|
1430
1698
|
gapic_version: ::Google::Cloud::Container::V1::VERSION
|
1431
1699
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1432
1700
|
|
1433
|
-
header_params = {
|
1434
|
-
|
1435
|
-
|
1701
|
+
header_params = {}
|
1702
|
+
if request.parent
|
1703
|
+
header_params["parent"] = request.parent
|
1704
|
+
end
|
1705
|
+
|
1436
1706
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1437
1707
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1438
1708
|
|
1439
1709
|
options.apply_defaults timeout: @config.rpcs.list_operations.timeout,
|
1440
1710
|
metadata: metadata,
|
1441
1711
|
retry_policy: @config.rpcs.list_operations.retry_policy
|
1442
|
-
|
1712
|
+
|
1713
|
+
options.apply_defaults timeout: @config.timeout,
|
1714
|
+
metadata: @config.metadata,
|
1443
1715
|
retry_policy: @config.retry_policy
|
1444
1716
|
|
1445
1717
|
@cluster_manager_stub.call_rpc :list_operations, request, options: options do |response, operation|
|
@@ -1492,6 +1764,21 @@ module Google
|
|
1492
1764
|
#
|
1493
1765
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1494
1766
|
#
|
1767
|
+
# @example Basic example
|
1768
|
+
# require "google/cloud/container/v1"
|
1769
|
+
#
|
1770
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1771
|
+
# client = Google::Cloud::Container::V1::ClusterManager::Client.new
|
1772
|
+
#
|
1773
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1774
|
+
# request = Google::Cloud::Container::V1::GetOperationRequest.new
|
1775
|
+
#
|
1776
|
+
# # Call the get_operation method.
|
1777
|
+
# result = client.get_operation request
|
1778
|
+
#
|
1779
|
+
# # The returned object is of type Google::Cloud::Container::V1::Operation.
|
1780
|
+
# p result
|
1781
|
+
#
|
1495
1782
|
def get_operation request, options = nil
|
1496
1783
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1497
1784
|
|
@@ -1509,16 +1796,20 @@ module Google
|
|
1509
1796
|
gapic_version: ::Google::Cloud::Container::V1::VERSION
|
1510
1797
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1511
1798
|
|
1512
|
-
header_params = {
|
1513
|
-
|
1514
|
-
|
1799
|
+
header_params = {}
|
1800
|
+
if request.name
|
1801
|
+
header_params["name"] = request.name
|
1802
|
+
end
|
1803
|
+
|
1515
1804
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1516
1805
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1517
1806
|
|
1518
1807
|
options.apply_defaults timeout: @config.rpcs.get_operation.timeout,
|
1519
1808
|
metadata: metadata,
|
1520
1809
|
retry_policy: @config.rpcs.get_operation.retry_policy
|
1521
|
-
|
1810
|
+
|
1811
|
+
options.apply_defaults timeout: @config.timeout,
|
1812
|
+
metadata: @config.metadata,
|
1522
1813
|
retry_policy: @config.retry_policy
|
1523
1814
|
|
1524
1815
|
@cluster_manager_stub.call_rpc :get_operation, request, options: options do |response, operation|
|
@@ -1571,6 +1862,21 @@ module Google
|
|
1571
1862
|
#
|
1572
1863
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1573
1864
|
#
|
1865
|
+
# @example Basic example
|
1866
|
+
# require "google/cloud/container/v1"
|
1867
|
+
#
|
1868
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1869
|
+
# client = Google::Cloud::Container::V1::ClusterManager::Client.new
|
1870
|
+
#
|
1871
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1872
|
+
# request = Google::Cloud::Container::V1::CancelOperationRequest.new
|
1873
|
+
#
|
1874
|
+
# # Call the cancel_operation method.
|
1875
|
+
# result = client.cancel_operation request
|
1876
|
+
#
|
1877
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
1878
|
+
# p result
|
1879
|
+
#
|
1574
1880
|
def cancel_operation request, options = nil
|
1575
1881
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1576
1882
|
|
@@ -1588,16 +1894,20 @@ module Google
|
|
1588
1894
|
gapic_version: ::Google::Cloud::Container::V1::VERSION
|
1589
1895
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1590
1896
|
|
1591
|
-
header_params = {
|
1592
|
-
|
1593
|
-
|
1897
|
+
header_params = {}
|
1898
|
+
if request.name
|
1899
|
+
header_params["name"] = request.name
|
1900
|
+
end
|
1901
|
+
|
1594
1902
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1595
1903
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1596
1904
|
|
1597
1905
|
options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout,
|
1598
1906
|
metadata: metadata,
|
1599
1907
|
retry_policy: @config.rpcs.cancel_operation.retry_policy
|
1600
|
-
|
1908
|
+
|
1909
|
+
options.apply_defaults timeout: @config.timeout,
|
1910
|
+
metadata: @config.metadata,
|
1601
1911
|
retry_policy: @config.retry_policy
|
1602
1912
|
|
1603
1913
|
@cluster_manager_stub.call_rpc :cancel_operation, request, options: options do |response, operation|
|
@@ -1647,6 +1957,21 @@ module Google
|
|
1647
1957
|
#
|
1648
1958
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1649
1959
|
#
|
1960
|
+
# @example Basic example
|
1961
|
+
# require "google/cloud/container/v1"
|
1962
|
+
#
|
1963
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1964
|
+
# client = Google::Cloud::Container::V1::ClusterManager::Client.new
|
1965
|
+
#
|
1966
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1967
|
+
# request = Google::Cloud::Container::V1::GetServerConfigRequest.new
|
1968
|
+
#
|
1969
|
+
# # Call the get_server_config method.
|
1970
|
+
# result = client.get_server_config request
|
1971
|
+
#
|
1972
|
+
# # The returned object is of type Google::Cloud::Container::V1::ServerConfig.
|
1973
|
+
# p result
|
1974
|
+
#
|
1650
1975
|
def get_server_config request, options = nil
|
1651
1976
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1652
1977
|
|
@@ -1664,16 +1989,20 @@ module Google
|
|
1664
1989
|
gapic_version: ::Google::Cloud::Container::V1::VERSION
|
1665
1990
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1666
1991
|
|
1667
|
-
header_params = {
|
1668
|
-
|
1669
|
-
|
1992
|
+
header_params = {}
|
1993
|
+
if request.name
|
1994
|
+
header_params["name"] = request.name
|
1995
|
+
end
|
1996
|
+
|
1670
1997
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1671
1998
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1672
1999
|
|
1673
2000
|
options.apply_defaults timeout: @config.rpcs.get_server_config.timeout,
|
1674
2001
|
metadata: metadata,
|
1675
2002
|
retry_policy: @config.rpcs.get_server_config.retry_policy
|
1676
|
-
|
2003
|
+
|
2004
|
+
options.apply_defaults timeout: @config.timeout,
|
2005
|
+
metadata: @config.metadata,
|
1677
2006
|
retry_policy: @config.retry_policy
|
1678
2007
|
|
1679
2008
|
@cluster_manager_stub.call_rpc :get_server_config, request, options: options do |response, operation|
|
@@ -1717,6 +2046,21 @@ module Google
|
|
1717
2046
|
#
|
1718
2047
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1719
2048
|
#
|
2049
|
+
# @example Basic example
|
2050
|
+
# require "google/cloud/container/v1"
|
2051
|
+
#
|
2052
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2053
|
+
# client = Google::Cloud::Container::V1::ClusterManager::Client.new
|
2054
|
+
#
|
2055
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2056
|
+
# request = Google::Cloud::Container::V1::GetJSONWebKeysRequest.new
|
2057
|
+
#
|
2058
|
+
# # Call the get_json_web_keys method.
|
2059
|
+
# result = client.get_json_web_keys request
|
2060
|
+
#
|
2061
|
+
# # The returned object is of type Google::Cloud::Container::V1::GetJSONWebKeysResponse.
|
2062
|
+
# p result
|
2063
|
+
#
|
1720
2064
|
def get_json_web_keys request, options = nil
|
1721
2065
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1722
2066
|
|
@@ -1734,16 +2078,20 @@ module Google
|
|
1734
2078
|
gapic_version: ::Google::Cloud::Container::V1::VERSION
|
1735
2079
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1736
2080
|
|
1737
|
-
header_params = {
|
1738
|
-
|
1739
|
-
|
2081
|
+
header_params = {}
|
2082
|
+
if request.parent
|
2083
|
+
header_params["parent"] = request.parent
|
2084
|
+
end
|
2085
|
+
|
1740
2086
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1741
2087
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1742
2088
|
|
1743
2089
|
options.apply_defaults timeout: @config.rpcs.get_json_web_keys.timeout,
|
1744
2090
|
metadata: metadata,
|
1745
2091
|
retry_policy: @config.rpcs.get_json_web_keys.retry_policy
|
1746
|
-
|
2092
|
+
|
2093
|
+
options.apply_defaults timeout: @config.timeout,
|
2094
|
+
metadata: @config.metadata,
|
1747
2095
|
retry_policy: @config.retry_policy
|
1748
2096
|
|
1749
2097
|
@cluster_manager_stub.call_rpc :get_json_web_keys, request, options: options do |response, operation|
|
@@ -1796,6 +2144,21 @@ module Google
|
|
1796
2144
|
#
|
1797
2145
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1798
2146
|
#
|
2147
|
+
# @example Basic example
|
2148
|
+
# require "google/cloud/container/v1"
|
2149
|
+
#
|
2150
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2151
|
+
# client = Google::Cloud::Container::V1::ClusterManager::Client.new
|
2152
|
+
#
|
2153
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2154
|
+
# request = Google::Cloud::Container::V1::ListNodePoolsRequest.new
|
2155
|
+
#
|
2156
|
+
# # Call the list_node_pools method.
|
2157
|
+
# result = client.list_node_pools request
|
2158
|
+
#
|
2159
|
+
# # The returned object is of type Google::Cloud::Container::V1::ListNodePoolsResponse.
|
2160
|
+
# p result
|
2161
|
+
#
|
1799
2162
|
def list_node_pools request, options = nil
|
1800
2163
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1801
2164
|
|
@@ -1813,16 +2176,20 @@ module Google
|
|
1813
2176
|
gapic_version: ::Google::Cloud::Container::V1::VERSION
|
1814
2177
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1815
2178
|
|
1816
|
-
header_params = {
|
1817
|
-
|
1818
|
-
|
2179
|
+
header_params = {}
|
2180
|
+
if request.parent
|
2181
|
+
header_params["parent"] = request.parent
|
2182
|
+
end
|
2183
|
+
|
1819
2184
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1820
2185
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1821
2186
|
|
1822
2187
|
options.apply_defaults timeout: @config.rpcs.list_node_pools.timeout,
|
1823
2188
|
metadata: metadata,
|
1824
2189
|
retry_policy: @config.rpcs.list_node_pools.retry_policy
|
1825
|
-
|
2190
|
+
|
2191
|
+
options.apply_defaults timeout: @config.timeout,
|
2192
|
+
metadata: @config.metadata,
|
1826
2193
|
retry_policy: @config.retry_policy
|
1827
2194
|
|
1828
2195
|
@cluster_manager_stub.call_rpc :list_node_pools, request, options: options do |response, operation|
|
@@ -1879,6 +2246,21 @@ module Google
|
|
1879
2246
|
#
|
1880
2247
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1881
2248
|
#
|
2249
|
+
# @example Basic example
|
2250
|
+
# require "google/cloud/container/v1"
|
2251
|
+
#
|
2252
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2253
|
+
# client = Google::Cloud::Container::V1::ClusterManager::Client.new
|
2254
|
+
#
|
2255
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2256
|
+
# request = Google::Cloud::Container::V1::GetNodePoolRequest.new
|
2257
|
+
#
|
2258
|
+
# # Call the get_node_pool method.
|
2259
|
+
# result = client.get_node_pool request
|
2260
|
+
#
|
2261
|
+
# # The returned object is of type Google::Cloud::Container::V1::NodePool.
|
2262
|
+
# p result
|
2263
|
+
#
|
1882
2264
|
def get_node_pool request, options = nil
|
1883
2265
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1884
2266
|
|
@@ -1896,16 +2278,20 @@ module Google
|
|
1896
2278
|
gapic_version: ::Google::Cloud::Container::V1::VERSION
|
1897
2279
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1898
2280
|
|
1899
|
-
header_params = {
|
1900
|
-
|
1901
|
-
|
2281
|
+
header_params = {}
|
2282
|
+
if request.name
|
2283
|
+
header_params["name"] = request.name
|
2284
|
+
end
|
2285
|
+
|
1902
2286
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1903
2287
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1904
2288
|
|
1905
2289
|
options.apply_defaults timeout: @config.rpcs.get_node_pool.timeout,
|
1906
2290
|
metadata: metadata,
|
1907
2291
|
retry_policy: @config.rpcs.get_node_pool.retry_policy
|
1908
|
-
|
2292
|
+
|
2293
|
+
options.apply_defaults timeout: @config.timeout,
|
2294
|
+
metadata: @config.metadata,
|
1909
2295
|
retry_policy: @config.retry_policy
|
1910
2296
|
|
1911
2297
|
@cluster_manager_stub.call_rpc :get_node_pool, request, options: options do |response, operation|
|
@@ -1961,6 +2347,21 @@ module Google
|
|
1961
2347
|
#
|
1962
2348
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1963
2349
|
#
|
2350
|
+
# @example Basic example
|
2351
|
+
# require "google/cloud/container/v1"
|
2352
|
+
#
|
2353
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2354
|
+
# client = Google::Cloud::Container::V1::ClusterManager::Client.new
|
2355
|
+
#
|
2356
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2357
|
+
# request = Google::Cloud::Container::V1::CreateNodePoolRequest.new
|
2358
|
+
#
|
2359
|
+
# # Call the create_node_pool method.
|
2360
|
+
# result = client.create_node_pool request
|
2361
|
+
#
|
2362
|
+
# # The returned object is of type Google::Cloud::Container::V1::Operation.
|
2363
|
+
# p result
|
2364
|
+
#
|
1964
2365
|
def create_node_pool request, options = nil
|
1965
2366
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1966
2367
|
|
@@ -1978,16 +2379,20 @@ module Google
|
|
1978
2379
|
gapic_version: ::Google::Cloud::Container::V1::VERSION
|
1979
2380
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1980
2381
|
|
1981
|
-
header_params = {
|
1982
|
-
|
1983
|
-
|
2382
|
+
header_params = {}
|
2383
|
+
if request.parent
|
2384
|
+
header_params["parent"] = request.parent
|
2385
|
+
end
|
2386
|
+
|
1984
2387
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1985
2388
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1986
2389
|
|
1987
2390
|
options.apply_defaults timeout: @config.rpcs.create_node_pool.timeout,
|
1988
2391
|
metadata: metadata,
|
1989
2392
|
retry_policy: @config.rpcs.create_node_pool.retry_policy
|
1990
|
-
|
2393
|
+
|
2394
|
+
options.apply_defaults timeout: @config.timeout,
|
2395
|
+
metadata: @config.metadata,
|
1991
2396
|
retry_policy: @config.retry_policy
|
1992
2397
|
|
1993
2398
|
@cluster_manager_stub.call_rpc :create_node_pool, request, options: options do |response, operation|
|
@@ -2044,6 +2449,21 @@ module Google
|
|
2044
2449
|
#
|
2045
2450
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2046
2451
|
#
|
2452
|
+
# @example Basic example
|
2453
|
+
# require "google/cloud/container/v1"
|
2454
|
+
#
|
2455
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2456
|
+
# client = Google::Cloud::Container::V1::ClusterManager::Client.new
|
2457
|
+
#
|
2458
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2459
|
+
# request = Google::Cloud::Container::V1::DeleteNodePoolRequest.new
|
2460
|
+
#
|
2461
|
+
# # Call the delete_node_pool method.
|
2462
|
+
# result = client.delete_node_pool request
|
2463
|
+
#
|
2464
|
+
# # The returned object is of type Google::Cloud::Container::V1::Operation.
|
2465
|
+
# p result
|
2466
|
+
#
|
2047
2467
|
def delete_node_pool request, options = nil
|
2048
2468
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2049
2469
|
|
@@ -2061,16 +2481,20 @@ module Google
|
|
2061
2481
|
gapic_version: ::Google::Cloud::Container::V1::VERSION
|
2062
2482
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2063
2483
|
|
2064
|
-
header_params = {
|
2065
|
-
|
2066
|
-
|
2484
|
+
header_params = {}
|
2485
|
+
if request.name
|
2486
|
+
header_params["name"] = request.name
|
2487
|
+
end
|
2488
|
+
|
2067
2489
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
2068
2490
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
2069
2491
|
|
2070
2492
|
options.apply_defaults timeout: @config.rpcs.delete_node_pool.timeout,
|
2071
2493
|
metadata: metadata,
|
2072
2494
|
retry_policy: @config.rpcs.delete_node_pool.retry_policy
|
2073
|
-
|
2495
|
+
|
2496
|
+
options.apply_defaults timeout: @config.timeout,
|
2497
|
+
metadata: @config.metadata,
|
2074
2498
|
retry_policy: @config.retry_policy
|
2075
2499
|
|
2076
2500
|
@cluster_manager_stub.call_rpc :delete_node_pool, request, options: options do |response, operation|
|
@@ -2128,6 +2552,21 @@ module Google
|
|
2128
2552
|
#
|
2129
2553
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2130
2554
|
#
|
2555
|
+
# @example Basic example
|
2556
|
+
# require "google/cloud/container/v1"
|
2557
|
+
#
|
2558
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2559
|
+
# client = Google::Cloud::Container::V1::ClusterManager::Client.new
|
2560
|
+
#
|
2561
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2562
|
+
# request = Google::Cloud::Container::V1::RollbackNodePoolUpgradeRequest.new
|
2563
|
+
#
|
2564
|
+
# # Call the rollback_node_pool_upgrade method.
|
2565
|
+
# result = client.rollback_node_pool_upgrade request
|
2566
|
+
#
|
2567
|
+
# # The returned object is of type Google::Cloud::Container::V1::Operation.
|
2568
|
+
# p result
|
2569
|
+
#
|
2131
2570
|
def rollback_node_pool_upgrade request, options = nil
|
2132
2571
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2133
2572
|
|
@@ -2145,16 +2584,20 @@ module Google
|
|
2145
2584
|
gapic_version: ::Google::Cloud::Container::V1::VERSION
|
2146
2585
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2147
2586
|
|
2148
|
-
header_params = {
|
2149
|
-
|
2150
|
-
|
2587
|
+
header_params = {}
|
2588
|
+
if request.name
|
2589
|
+
header_params["name"] = request.name
|
2590
|
+
end
|
2591
|
+
|
2151
2592
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
2152
2593
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
2153
2594
|
|
2154
2595
|
options.apply_defaults timeout: @config.rpcs.rollback_node_pool_upgrade.timeout,
|
2155
2596
|
metadata: metadata,
|
2156
2597
|
retry_policy: @config.rpcs.rollback_node_pool_upgrade.retry_policy
|
2157
|
-
|
2598
|
+
|
2599
|
+
options.apply_defaults timeout: @config.timeout,
|
2600
|
+
metadata: @config.metadata,
|
2158
2601
|
retry_policy: @config.retry_policy
|
2159
2602
|
|
2160
2603
|
@cluster_manager_stub.call_rpc :rollback_node_pool_upgrade, request, options: options do |response, operation|
|
@@ -2213,6 +2656,21 @@ module Google
|
|
2213
2656
|
#
|
2214
2657
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2215
2658
|
#
|
2659
|
+
# @example Basic example
|
2660
|
+
# require "google/cloud/container/v1"
|
2661
|
+
#
|
2662
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2663
|
+
# client = Google::Cloud::Container::V1::ClusterManager::Client.new
|
2664
|
+
#
|
2665
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2666
|
+
# request = Google::Cloud::Container::V1::SetNodePoolManagementRequest.new
|
2667
|
+
#
|
2668
|
+
# # Call the set_node_pool_management method.
|
2669
|
+
# result = client.set_node_pool_management request
|
2670
|
+
#
|
2671
|
+
# # The returned object is of type Google::Cloud::Container::V1::Operation.
|
2672
|
+
# p result
|
2673
|
+
#
|
2216
2674
|
def set_node_pool_management request, options = nil
|
2217
2675
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2218
2676
|
|
@@ -2230,16 +2688,20 @@ module Google
|
|
2230
2688
|
gapic_version: ::Google::Cloud::Container::V1::VERSION
|
2231
2689
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2232
2690
|
|
2233
|
-
header_params = {
|
2234
|
-
|
2235
|
-
|
2691
|
+
header_params = {}
|
2692
|
+
if request.name
|
2693
|
+
header_params["name"] = request.name
|
2694
|
+
end
|
2695
|
+
|
2236
2696
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
2237
2697
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
2238
2698
|
|
2239
2699
|
options.apply_defaults timeout: @config.rpcs.set_node_pool_management.timeout,
|
2240
2700
|
metadata: metadata,
|
2241
2701
|
retry_policy: @config.rpcs.set_node_pool_management.retry_policy
|
2242
|
-
|
2702
|
+
|
2703
|
+
options.apply_defaults timeout: @config.timeout,
|
2704
|
+
metadata: @config.metadata,
|
2243
2705
|
retry_policy: @config.retry_policy
|
2244
2706
|
|
2245
2707
|
@cluster_manager_stub.call_rpc :set_node_pool_management, request, options: options do |response, operation|
|
@@ -2301,6 +2763,21 @@ module Google
|
|
2301
2763
|
#
|
2302
2764
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2303
2765
|
#
|
2766
|
+
# @example Basic example
|
2767
|
+
# require "google/cloud/container/v1"
|
2768
|
+
#
|
2769
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2770
|
+
# client = Google::Cloud::Container::V1::ClusterManager::Client.new
|
2771
|
+
#
|
2772
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2773
|
+
# request = Google::Cloud::Container::V1::SetLabelsRequest.new
|
2774
|
+
#
|
2775
|
+
# # Call the set_labels method.
|
2776
|
+
# result = client.set_labels request
|
2777
|
+
#
|
2778
|
+
# # The returned object is of type Google::Cloud::Container::V1::Operation.
|
2779
|
+
# p result
|
2780
|
+
#
|
2304
2781
|
def set_labels request, options = nil
|
2305
2782
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2306
2783
|
|
@@ -2318,16 +2795,20 @@ module Google
|
|
2318
2795
|
gapic_version: ::Google::Cloud::Container::V1::VERSION
|
2319
2796
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2320
2797
|
|
2321
|
-
header_params = {
|
2322
|
-
|
2323
|
-
|
2798
|
+
header_params = {}
|
2799
|
+
if request.name
|
2800
|
+
header_params["name"] = request.name
|
2801
|
+
end
|
2802
|
+
|
2324
2803
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
2325
2804
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
2326
2805
|
|
2327
2806
|
options.apply_defaults timeout: @config.rpcs.set_labels.timeout,
|
2328
2807
|
metadata: metadata,
|
2329
2808
|
retry_policy: @config.rpcs.set_labels.retry_policy
|
2330
|
-
|
2809
|
+
|
2810
|
+
options.apply_defaults timeout: @config.timeout,
|
2811
|
+
metadata: @config.metadata,
|
2331
2812
|
retry_policy: @config.retry_policy
|
2332
2813
|
|
2333
2814
|
@cluster_manager_stub.call_rpc :set_labels, request, options: options do |response, operation|
|
@@ -2382,6 +2863,21 @@ module Google
|
|
2382
2863
|
#
|
2383
2864
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2384
2865
|
#
|
2866
|
+
# @example Basic example
|
2867
|
+
# require "google/cloud/container/v1"
|
2868
|
+
#
|
2869
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2870
|
+
# client = Google::Cloud::Container::V1::ClusterManager::Client.new
|
2871
|
+
#
|
2872
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2873
|
+
# request = Google::Cloud::Container::V1::SetLegacyAbacRequest.new
|
2874
|
+
#
|
2875
|
+
# # Call the set_legacy_abac method.
|
2876
|
+
# result = client.set_legacy_abac request
|
2877
|
+
#
|
2878
|
+
# # The returned object is of type Google::Cloud::Container::V1::Operation.
|
2879
|
+
# p result
|
2880
|
+
#
|
2385
2881
|
def set_legacy_abac request, options = nil
|
2386
2882
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2387
2883
|
|
@@ -2399,16 +2895,20 @@ module Google
|
|
2399
2895
|
gapic_version: ::Google::Cloud::Container::V1::VERSION
|
2400
2896
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2401
2897
|
|
2402
|
-
header_params = {
|
2403
|
-
|
2404
|
-
|
2898
|
+
header_params = {}
|
2899
|
+
if request.name
|
2900
|
+
header_params["name"] = request.name
|
2901
|
+
end
|
2902
|
+
|
2405
2903
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
2406
2904
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
2407
2905
|
|
2408
2906
|
options.apply_defaults timeout: @config.rpcs.set_legacy_abac.timeout,
|
2409
2907
|
metadata: metadata,
|
2410
2908
|
retry_policy: @config.rpcs.set_legacy_abac.retry_policy
|
2411
|
-
|
2909
|
+
|
2910
|
+
options.apply_defaults timeout: @config.timeout,
|
2911
|
+
metadata: @config.metadata,
|
2412
2912
|
retry_policy: @config.retry_policy
|
2413
2913
|
|
2414
2914
|
@cluster_manager_stub.call_rpc :set_legacy_abac, request, options: options do |response, operation|
|
@@ -2463,6 +2963,21 @@ module Google
|
|
2463
2963
|
#
|
2464
2964
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2465
2965
|
#
|
2966
|
+
# @example Basic example
|
2967
|
+
# require "google/cloud/container/v1"
|
2968
|
+
#
|
2969
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2970
|
+
# client = Google::Cloud::Container::V1::ClusterManager::Client.new
|
2971
|
+
#
|
2972
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2973
|
+
# request = Google::Cloud::Container::V1::StartIPRotationRequest.new
|
2974
|
+
#
|
2975
|
+
# # Call the start_ip_rotation method.
|
2976
|
+
# result = client.start_ip_rotation request
|
2977
|
+
#
|
2978
|
+
# # The returned object is of type Google::Cloud::Container::V1::Operation.
|
2979
|
+
# p result
|
2980
|
+
#
|
2466
2981
|
def start_ip_rotation request, options = nil
|
2467
2982
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2468
2983
|
|
@@ -2480,16 +2995,20 @@ module Google
|
|
2480
2995
|
gapic_version: ::Google::Cloud::Container::V1::VERSION
|
2481
2996
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2482
2997
|
|
2483
|
-
header_params = {
|
2484
|
-
|
2485
|
-
|
2998
|
+
header_params = {}
|
2999
|
+
if request.name
|
3000
|
+
header_params["name"] = request.name
|
3001
|
+
end
|
3002
|
+
|
2486
3003
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
2487
3004
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
2488
3005
|
|
2489
3006
|
options.apply_defaults timeout: @config.rpcs.start_ip_rotation.timeout,
|
2490
3007
|
metadata: metadata,
|
2491
3008
|
retry_policy: @config.rpcs.start_ip_rotation.retry_policy
|
2492
|
-
|
3009
|
+
|
3010
|
+
options.apply_defaults timeout: @config.timeout,
|
3011
|
+
metadata: @config.metadata,
|
2493
3012
|
retry_policy: @config.retry_policy
|
2494
3013
|
|
2495
3014
|
@cluster_manager_stub.call_rpc :start_ip_rotation, request, options: options do |response, operation|
|
@@ -2542,6 +3061,21 @@ module Google
|
|
2542
3061
|
#
|
2543
3062
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2544
3063
|
#
|
3064
|
+
# @example Basic example
|
3065
|
+
# require "google/cloud/container/v1"
|
3066
|
+
#
|
3067
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3068
|
+
# client = Google::Cloud::Container::V1::ClusterManager::Client.new
|
3069
|
+
#
|
3070
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3071
|
+
# request = Google::Cloud::Container::V1::CompleteIPRotationRequest.new
|
3072
|
+
#
|
3073
|
+
# # Call the complete_ip_rotation method.
|
3074
|
+
# result = client.complete_ip_rotation request
|
3075
|
+
#
|
3076
|
+
# # The returned object is of type Google::Cloud::Container::V1::Operation.
|
3077
|
+
# p result
|
3078
|
+
#
|
2545
3079
|
def complete_ip_rotation request, options = nil
|
2546
3080
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2547
3081
|
|
@@ -2559,16 +3093,20 @@ module Google
|
|
2559
3093
|
gapic_version: ::Google::Cloud::Container::V1::VERSION
|
2560
3094
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2561
3095
|
|
2562
|
-
header_params = {
|
2563
|
-
|
2564
|
-
|
3096
|
+
header_params = {}
|
3097
|
+
if request.name
|
3098
|
+
header_params["name"] = request.name
|
3099
|
+
end
|
3100
|
+
|
2565
3101
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
2566
3102
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
2567
3103
|
|
2568
3104
|
options.apply_defaults timeout: @config.rpcs.complete_ip_rotation.timeout,
|
2569
3105
|
metadata: metadata,
|
2570
3106
|
retry_policy: @config.rpcs.complete_ip_rotation.retry_policy
|
2571
|
-
|
3107
|
+
|
3108
|
+
options.apply_defaults timeout: @config.timeout,
|
3109
|
+
metadata: @config.metadata,
|
2572
3110
|
retry_policy: @config.retry_policy
|
2573
3111
|
|
2574
3112
|
@cluster_manager_stub.call_rpc :complete_ip_rotation, request, options: options do |response, operation|
|
@@ -2580,7 +3118,9 @@ module Google
|
|
2580
3118
|
end
|
2581
3119
|
|
2582
3120
|
##
|
2583
|
-
# Sets the size for a specific node pool.
|
3121
|
+
# Sets the size for a specific node pool. The new size will be used for all
|
3122
|
+
# replicas, including future replicas created by modifying
|
3123
|
+
# {::Google::Cloud::Container::V1::NodePool#locations NodePool.locations}.
|
2584
3124
|
#
|
2585
3125
|
# @overload set_node_pool_size(request, options = nil)
|
2586
3126
|
# Pass arguments to `set_node_pool_size` via a request object, either of type
|
@@ -2627,6 +3167,21 @@ module Google
|
|
2627
3167
|
#
|
2628
3168
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2629
3169
|
#
|
3170
|
+
# @example Basic example
|
3171
|
+
# require "google/cloud/container/v1"
|
3172
|
+
#
|
3173
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3174
|
+
# client = Google::Cloud::Container::V1::ClusterManager::Client.new
|
3175
|
+
#
|
3176
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3177
|
+
# request = Google::Cloud::Container::V1::SetNodePoolSizeRequest.new
|
3178
|
+
#
|
3179
|
+
# # Call the set_node_pool_size method.
|
3180
|
+
# result = client.set_node_pool_size request
|
3181
|
+
#
|
3182
|
+
# # The returned object is of type Google::Cloud::Container::V1::Operation.
|
3183
|
+
# p result
|
3184
|
+
#
|
2630
3185
|
def set_node_pool_size request, options = nil
|
2631
3186
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2632
3187
|
|
@@ -2644,16 +3199,20 @@ module Google
|
|
2644
3199
|
gapic_version: ::Google::Cloud::Container::V1::VERSION
|
2645
3200
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2646
3201
|
|
2647
|
-
header_params = {
|
2648
|
-
|
2649
|
-
|
3202
|
+
header_params = {}
|
3203
|
+
if request.name
|
3204
|
+
header_params["name"] = request.name
|
3205
|
+
end
|
3206
|
+
|
2650
3207
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
2651
3208
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
2652
3209
|
|
2653
3210
|
options.apply_defaults timeout: @config.rpcs.set_node_pool_size.timeout,
|
2654
3211
|
metadata: metadata,
|
2655
3212
|
retry_policy: @config.rpcs.set_node_pool_size.retry_policy
|
2656
|
-
|
3213
|
+
|
3214
|
+
options.apply_defaults timeout: @config.timeout,
|
3215
|
+
metadata: @config.metadata,
|
2657
3216
|
retry_policy: @config.retry_policy
|
2658
3217
|
|
2659
3218
|
@cluster_manager_stub.call_rpc :set_node_pool_size, request, options: options do |response, operation|
|
@@ -2708,6 +3267,21 @@ module Google
|
|
2708
3267
|
#
|
2709
3268
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2710
3269
|
#
|
3270
|
+
# @example Basic example
|
3271
|
+
# require "google/cloud/container/v1"
|
3272
|
+
#
|
3273
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3274
|
+
# client = Google::Cloud::Container::V1::ClusterManager::Client.new
|
3275
|
+
#
|
3276
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3277
|
+
# request = Google::Cloud::Container::V1::SetNetworkPolicyRequest.new
|
3278
|
+
#
|
3279
|
+
# # Call the set_network_policy method.
|
3280
|
+
# result = client.set_network_policy request
|
3281
|
+
#
|
3282
|
+
# # The returned object is of type Google::Cloud::Container::V1::Operation.
|
3283
|
+
# p result
|
3284
|
+
#
|
2711
3285
|
def set_network_policy request, options = nil
|
2712
3286
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2713
3287
|
|
@@ -2725,16 +3299,20 @@ module Google
|
|
2725
3299
|
gapic_version: ::Google::Cloud::Container::V1::VERSION
|
2726
3300
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2727
3301
|
|
2728
|
-
header_params = {
|
2729
|
-
|
2730
|
-
|
3302
|
+
header_params = {}
|
3303
|
+
if request.name
|
3304
|
+
header_params["name"] = request.name
|
3305
|
+
end
|
3306
|
+
|
2731
3307
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
2732
3308
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
2733
3309
|
|
2734
3310
|
options.apply_defaults timeout: @config.rpcs.set_network_policy.timeout,
|
2735
3311
|
metadata: metadata,
|
2736
3312
|
retry_policy: @config.rpcs.set_network_policy.retry_policy
|
2737
|
-
|
3313
|
+
|
3314
|
+
options.apply_defaults timeout: @config.timeout,
|
3315
|
+
metadata: @config.metadata,
|
2738
3316
|
retry_policy: @config.retry_policy
|
2739
3317
|
|
2740
3318
|
@cluster_manager_stub.call_rpc :set_network_policy, request, options: options do |response, operation|
|
@@ -2788,6 +3366,21 @@ module Google
|
|
2788
3366
|
#
|
2789
3367
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2790
3368
|
#
|
3369
|
+
# @example Basic example
|
3370
|
+
# require "google/cloud/container/v1"
|
3371
|
+
#
|
3372
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3373
|
+
# client = Google::Cloud::Container::V1::ClusterManager::Client.new
|
3374
|
+
#
|
3375
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3376
|
+
# request = Google::Cloud::Container::V1::SetMaintenancePolicyRequest.new
|
3377
|
+
#
|
3378
|
+
# # Call the set_maintenance_policy method.
|
3379
|
+
# result = client.set_maintenance_policy request
|
3380
|
+
#
|
3381
|
+
# # The returned object is of type Google::Cloud::Container::V1::Operation.
|
3382
|
+
# p result
|
3383
|
+
#
|
2791
3384
|
def set_maintenance_policy request, options = nil
|
2792
3385
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2793
3386
|
|
@@ -2805,16 +3398,20 @@ module Google
|
|
2805
3398
|
gapic_version: ::Google::Cloud::Container::V1::VERSION
|
2806
3399
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2807
3400
|
|
2808
|
-
header_params = {
|
2809
|
-
|
2810
|
-
|
3401
|
+
header_params = {}
|
3402
|
+
if request.name
|
3403
|
+
header_params["name"] = request.name
|
3404
|
+
end
|
3405
|
+
|
2811
3406
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
2812
3407
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
2813
3408
|
|
2814
3409
|
options.apply_defaults timeout: @config.rpcs.set_maintenance_policy.timeout,
|
2815
3410
|
metadata: metadata,
|
2816
3411
|
retry_policy: @config.rpcs.set_maintenance_policy.retry_policy
|
2817
|
-
|
3412
|
+
|
3413
|
+
options.apply_defaults timeout: @config.timeout,
|
3414
|
+
metadata: @config.metadata,
|
2818
3415
|
retry_policy: @config.retry_policy
|
2819
3416
|
|
2820
3417
|
@cluster_manager_stub.call_rpc :set_maintenance_policy, request, options: options do |response, operation|
|
@@ -2868,6 +3465,27 @@ module Google
|
|
2868
3465
|
#
|
2869
3466
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2870
3467
|
#
|
3468
|
+
# @example Basic example
|
3469
|
+
# require "google/cloud/container/v1"
|
3470
|
+
#
|
3471
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3472
|
+
# client = Google::Cloud::Container::V1::ClusterManager::Client.new
|
3473
|
+
#
|
3474
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3475
|
+
# request = Google::Cloud::Container::V1::ListUsableSubnetworksRequest.new
|
3476
|
+
#
|
3477
|
+
# # Call the list_usable_subnetworks method.
|
3478
|
+
# result = client.list_usable_subnetworks request
|
3479
|
+
#
|
3480
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
3481
|
+
# # iterate over all elements by calling #each, and the enumerable
|
3482
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
3483
|
+
# # methods are also available for managing paging directly.
|
3484
|
+
# result.each do |response|
|
3485
|
+
# # Each element is of type ::Google::Cloud::Container::V1::UsableSubnetwork.
|
3486
|
+
# p response
|
3487
|
+
# end
|
3488
|
+
#
|
2871
3489
|
def list_usable_subnetworks request, options = nil
|
2872
3490
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2873
3491
|
|
@@ -2885,16 +3503,20 @@ module Google
|
|
2885
3503
|
gapic_version: ::Google::Cloud::Container::V1::VERSION
|
2886
3504
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2887
3505
|
|
2888
|
-
header_params = {
|
2889
|
-
|
2890
|
-
|
3506
|
+
header_params = {}
|
3507
|
+
if request.parent
|
3508
|
+
header_params["parent"] = request.parent
|
3509
|
+
end
|
3510
|
+
|
2891
3511
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
2892
3512
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
2893
3513
|
|
2894
3514
|
options.apply_defaults timeout: @config.rpcs.list_usable_subnetworks.timeout,
|
2895
3515
|
metadata: metadata,
|
2896
3516
|
retry_policy: @config.rpcs.list_usable_subnetworks.retry_policy
|
2897
|
-
|
3517
|
+
|
3518
|
+
options.apply_defaults timeout: @config.timeout,
|
3519
|
+
metadata: @config.metadata,
|
2898
3520
|
retry_policy: @config.retry_policy
|
2899
3521
|
|
2900
3522
|
@cluster_manager_stub.call_rpc :list_usable_subnetworks, request, options: options do |response, operation|
|
@@ -2919,22 +3541,21 @@ module Google
|
|
2919
3541
|
# Configuration can be applied globally to all clients, or to a single client
|
2920
3542
|
# on construction.
|
2921
3543
|
#
|
2922
|
-
#
|
2923
|
-
#
|
2924
|
-
#
|
2925
|
-
# to 20 seconds,
|
2926
|
-
#
|
2927
|
-
#
|
2928
|
-
#
|
2929
|
-
#
|
2930
|
-
#
|
2931
|
-
#
|
2932
|
-
#
|
2933
|
-
#
|
2934
|
-
#
|
2935
|
-
#
|
2936
|
-
#
|
2937
|
-
# end
|
3544
|
+
# @example
|
3545
|
+
#
|
3546
|
+
# # Modify the global config, setting the timeout for
|
3547
|
+
# # list_clusters to 20 seconds,
|
3548
|
+
# # and all remaining timeouts to 10 seconds.
|
3549
|
+
# ::Google::Cloud::Container::V1::ClusterManager::Client.configure do |config|
|
3550
|
+
# config.timeout = 10.0
|
3551
|
+
# config.rpcs.list_clusters.timeout = 20.0
|
3552
|
+
# end
|
3553
|
+
#
|
3554
|
+
# # Apply the above configuration only to a new client.
|
3555
|
+
# client = ::Google::Cloud::Container::V1::ClusterManager::Client.new do |config|
|
3556
|
+
# config.timeout = 10.0
|
3557
|
+
# config.rpcs.list_clusters.timeout = 20.0
|
3558
|
+
# end
|
2938
3559
|
#
|
2939
3560
|
# @!attribute [rw] endpoint
|
2940
3561
|
# The hostname or hostname:port of the service endpoint.
|