google-cloud-container 0.8.1 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fd25c26129da75553eb05e393593a1aa59c1b0e538c56dba220b15e14427ea50
4
- data.tar.gz: 75a288974f1eb8620ced35cd5ac00c763828a90b521e64ffae27f29794fafbef
3
+ metadata.gz: 22598349dcf25366cc9e4d05f25ceb1e1992e8f4b8e8cdf2ea2884d63fdf2890
4
+ data.tar.gz: 88081b466e37bc7165f7ac4acd359b0754fb611c0172639c4686911768c0d5da
5
5
  SHA512:
6
- metadata.gz: 343db760f056affeed121668e74c243f56f7af0fc7c40d23e3ce5f3dcfa9f0eec0061ecb55e60da34fd940ee9dfcb2672d8162198433ce5324b6cbc7e45fd44c
7
- data.tar.gz: da000ae51a473c2cd627d261aa1154b4fd3c1e3d5a948438056d2571339d87b53c420ddaf3d9ea52a42ba3c95fbde01cc52a82346c840e76e6e92c472207ee9a
6
+ metadata.gz: 9f655e50fa241462c79a63ef6bf34b93f307681f0d3b7420300e231dbc20f66b7911f9dbfaaf78deb2d6574c0fd97fa6b317425cbe148556494ae892ab775ac9
7
+ data.tar.gz: 6d9a61f8663cde6c90551a839084d4618ccdb4e5f0bb184ef994ad790d3ef698e058bfa5a0c6ab3710ab1233f4e1f7ae4e54c7cd13592d1be477e2f595b9ccff
data/README.md CHANGED
@@ -28,7 +28,7 @@ require "google/cloud/container"
28
28
  cluster_manager_client = Google::Cloud::Container.new
29
29
  project_id_2 = project_id
30
30
  zone = "us-central1-a"
31
- response = cluster_manager_client.list_clusters(project_id_2, zone)
31
+ response = cluster_manager_client.list_clusters(project_id: project_id_2, zone: zone)
32
32
  ```
33
33
 
34
34
  ### Next Steps
@@ -50,7 +50,7 @@ module Google
50
50
  # cluster_manager_client = Google::Cloud::Container.new
51
51
  # project_id_2 = project_id
52
52
  # zone = "us-central1-a"
53
- # response = cluster_manager_client.list_clusters(project_id_2, zone)
53
+ # response = cluster_manager_client.list_clusters(project_id: project_id_2, zone: zone)
54
54
  # ```
55
55
  #
56
56
  # ### Next Steps
@@ -50,7 +50,7 @@ module Google
50
50
  # cluster_manager_client = Google::Cloud::Container.new(version: :v1)
51
51
  # project_id_2 = project_id
52
52
  # zone = "us-central1-a"
53
- # response = cluster_manager_client.list_clusters(project_id_2, zone)
53
+ # response = cluster_manager_client.list_clusters(project_id: project_id_2, zone: zone)
54
54
  # ```
55
55
  #
56
56
  # ### Next Steps
@@ -433,11 +433,11 @@ module Google
433
433
  # zones.
434
434
  #
435
435
  # @param project_id [String]
436
- # Required. Deprecated. The Google Developers Console [project ID or project
436
+ # Deprecated. The Google Developers Console [project ID or project
437
437
  # number](https://support.google.com/cloud/answer/6158840).
438
438
  # This field has been deprecated and replaced by the parent field.
439
439
  # @param zone [String]
440
- # Required. Deprecated. The name of the Google Compute Engine
440
+ # Deprecated. The name of the Google Compute Engine
441
441
  # [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
442
442
  # resides, or "-" for all zones.
443
443
  # This field has been deprecated and replaced by the parent field.
@@ -457,17 +457,11 @@ module Google
457
457
  # require "google/cloud/container"
458
458
  #
459
459
  # cluster_manager_client = Google::Cloud::Container.new(version: :v1)
460
- #
461
- # # TODO: Initialize `project_id`:
462
- # project_id = ''
463
- #
464
- # # TODO: Initialize `zone`:
465
- # zone = ''
466
- # response = cluster_manager_client.list_clusters(project_id, zone)
460
+ # response = cluster_manager_client.list_clusters
467
461
 
468
462
  def list_clusters \
469
- project_id,
470
- zone,
463
+ project_id: nil,
464
+ zone: nil,
471
465
  parent: nil,
472
466
  options: nil,
473
467
  &block
@@ -483,16 +477,16 @@ module Google
483
477
  # Gets the details of a specific cluster.
484
478
  #
485
479
  # @param project_id [String]
486
- # Required. Deprecated. The Google Developers Console [project ID or project
480
+ # Deprecated. The Google Developers Console [project ID or project
487
481
  # number](https://support.google.com/cloud/answer/6158840).
488
482
  # This field has been deprecated and replaced by the name field.
489
483
  # @param zone [String]
490
- # Required. Deprecated. The name of the Google Compute Engine
484
+ # Deprecated. The name of the Google Compute Engine
491
485
  # [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
492
486
  # resides.
493
487
  # This field has been deprecated and replaced by the name field.
494
488
  # @param cluster_id [String]
495
- # Required. Deprecated. The name of the cluster to retrieve.
489
+ # Deprecated. The name of the cluster to retrieve.
496
490
  # This field has been deprecated and replaced by the name field.
497
491
  # @param name [String]
498
492
  # The name (project, location, cluster) of the cluster to retrieve.
@@ -509,21 +503,12 @@ module Google
509
503
  # require "google/cloud/container"
510
504
  #
511
505
  # cluster_manager_client = Google::Cloud::Container.new(version: :v1)
512
- #
513
- # # TODO: Initialize `project_id`:
514
- # project_id = ''
515
- #
516
- # # TODO: Initialize `zone`:
517
- # zone = ''
518
- #
519
- # # TODO: Initialize `cluster_id`:
520
- # cluster_id = ''
521
- # response = cluster_manager_client.get_cluster(project_id, zone, cluster_id)
506
+ # response = cluster_manager_client.get_cluster
522
507
 
523
508
  def get_cluster \
524
- project_id,
525
- zone,
526
- cluster_id,
509
+ project_id: nil,
510
+ zone: nil,
511
+ cluster_id: nil,
527
512
  name: nil,
528
513
  options: nil,
529
514
  &block
@@ -551,20 +536,20 @@ module Google
551
536
  # Finally, an entry is added to the project's global metadata indicating
552
537
  # which CIDR range the cluster is using.
553
538
  #
539
+ # @param cluster [Google::Container::V1::Cluster | Hash]
540
+ # Required. A [cluster
541
+ # resource](/container-engine/reference/rest/v1/projects.zones.clusters)
542
+ # A hash of the same form as `Google::Container::V1::Cluster`
543
+ # can also be provided.
554
544
  # @param project_id [String]
555
- # Required. Deprecated. The Google Developers Console [project ID or project
545
+ # Deprecated. The Google Developers Console [project ID or project
556
546
  # number](https://support.google.com/cloud/answer/6158840).
557
547
  # This field has been deprecated and replaced by the parent field.
558
548
  # @param zone [String]
559
- # Required. Deprecated. The name of the Google Compute Engine
549
+ # Deprecated. The name of the Google Compute Engine
560
550
  # [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
561
551
  # resides.
562
552
  # This field has been deprecated and replaced by the parent field.
563
- # @param cluster [Google::Container::V1::Cluster | Hash]
564
- # Required. A [cluster
565
- # resource](/container-engine/reference/rest/v1/projects.zones.clusters)
566
- # A hash of the same form as `Google::Container::V1::Cluster`
567
- # can also be provided.
568
553
  # @param parent [String]
569
554
  # The parent (project and location) where the cluster will be created.
570
555
  # Specified in the format 'projects/*/locations/*'.
@@ -581,27 +566,21 @@ module Google
581
566
  #
582
567
  # cluster_manager_client = Google::Cloud::Container.new(version: :v1)
583
568
  #
584
- # # TODO: Initialize `project_id`:
585
- # project_id = ''
586
- #
587
- # # TODO: Initialize `zone`:
588
- # zone = ''
589
- #
590
569
  # # TODO: Initialize `cluster`:
591
570
  # cluster = {}
592
- # response = cluster_manager_client.create_cluster(project_id, zone, cluster)
571
+ # response = cluster_manager_client.create_cluster(cluster)
593
572
 
594
573
  def create_cluster \
595
- project_id,
596
- zone,
597
574
  cluster,
575
+ project_id: nil,
576
+ zone: nil,
598
577
  parent: nil,
599
578
  options: nil,
600
579
  &block
601
580
  req = {
581
+ cluster: cluster,
602
582
  project_id: project_id,
603
583
  zone: zone,
604
- cluster: cluster,
605
584
  parent: parent
606
585
  }.delete_if { |_, v| v.nil? }
607
586
  req = Google::Gax::to_proto(req, Google::Container::V1::CreateClusterRequest)
@@ -610,22 +589,22 @@ module Google
610
589
 
611
590
  # Updates the settings of a specific cluster.
612
591
  #
592
+ # @param update [Google::Container::V1::ClusterUpdate | Hash]
593
+ # Required. A description of the update.
594
+ # A hash of the same form as `Google::Container::V1::ClusterUpdate`
595
+ # can also be provided.
613
596
  # @param project_id [String]
614
- # Required. Deprecated. The Google Developers Console [project ID or project
597
+ # Deprecated. The Google Developers Console [project ID or project
615
598
  # number](https://support.google.com/cloud/answer/6158840).
616
599
  # This field has been deprecated and replaced by the name field.
617
600
  # @param zone [String]
618
- # Required. Deprecated. The name of the Google Compute Engine
601
+ # Deprecated. The name of the Google Compute Engine
619
602
  # [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
620
603
  # resides.
621
604
  # This field has been deprecated and replaced by the name field.
622
605
  # @param cluster_id [String]
623
- # Required. Deprecated. The name of the cluster to upgrade.
606
+ # Deprecated. The name of the cluster to upgrade.
624
607
  # This field has been deprecated and replaced by the name field.
625
- # @param update [Google::Container::V1::ClusterUpdate | Hash]
626
- # Required. A description of the update.
627
- # A hash of the same form as `Google::Container::V1::ClusterUpdate`
628
- # can also be provided.
629
608
  # @param name [String]
630
609
  # The name (project, location, cluster) of the cluster to update.
631
610
  # Specified in the format 'projects/*/locations/*/clusters/*'.
@@ -642,32 +621,23 @@ module Google
642
621
  #
643
622
  # cluster_manager_client = Google::Cloud::Container.new(version: :v1)
644
623
  #
645
- # # TODO: Initialize `project_id`:
646
- # project_id = ''
647
- #
648
- # # TODO: Initialize `zone`:
649
- # zone = ''
650
- #
651
- # # TODO: Initialize `cluster_id`:
652
- # cluster_id = ''
653
- #
654
624
  # # TODO: Initialize `update`:
655
625
  # update = {}
656
- # response = cluster_manager_client.update_cluster(project_id, zone, cluster_id, update)
626
+ # response = cluster_manager_client.update_cluster(update)
657
627
 
658
628
  def update_cluster \
659
- project_id,
660
- zone,
661
- cluster_id,
662
629
  update,
630
+ project_id: nil,
631
+ zone: nil,
632
+ cluster_id: nil,
663
633
  name: nil,
664
634
  options: nil,
665
635
  &block
666
636
  req = {
637
+ update: update,
667
638
  project_id: project_id,
668
639
  zone: zone,
669
640
  cluster_id: cluster_id,
670
- update: update,
671
641
  name: name
672
642
  }.delete_if { |_, v| v.nil? }
673
643
  req = Google::Gax::to_proto(req, Google::Container::V1::UpdateClusterRequest)
@@ -676,21 +646,6 @@ module Google
676
646
 
677
647
  # Updates the version and/or image type for the specified node pool.
678
648
  #
679
- # @param project_id [String]
680
- # Required. Deprecated. The Google Developers Console [project ID or project
681
- # number](https://support.google.com/cloud/answer/6158840).
682
- # This field has been deprecated and replaced by the name field.
683
- # @param zone [String]
684
- # Required. Deprecated. The name of the Google Compute Engine
685
- # [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
686
- # resides.
687
- # This field has been deprecated and replaced by the name field.
688
- # @param cluster_id [String]
689
- # Required. Deprecated. The name of the cluster to upgrade.
690
- # This field has been deprecated and replaced by the name field.
691
- # @param node_pool_id [String]
692
- # Required. Deprecated. The name of the node pool to upgrade.
693
- # This field has been deprecated and replaced by the name field.
694
649
  # @param node_version [String]
695
650
  # Required. The Kubernetes version to change the nodes to (typically an
696
651
  # upgrade).
@@ -705,6 +660,21 @@ module Google
705
660
  # * "-": picks the Kubernetes master version
706
661
  # @param image_type [String]
707
662
  # Required. The desired image type for the node pool.
663
+ # @param project_id [String]
664
+ # Deprecated. The Google Developers Console [project ID or project
665
+ # number](https://support.google.com/cloud/answer/6158840).
666
+ # This field has been deprecated and replaced by the name field.
667
+ # @param zone [String]
668
+ # Deprecated. The name of the Google Compute Engine
669
+ # [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
670
+ # resides.
671
+ # This field has been deprecated and replaced by the name field.
672
+ # @param cluster_id [String]
673
+ # Deprecated. The name of the cluster to upgrade.
674
+ # This field has been deprecated and replaced by the name field.
675
+ # @param node_pool_id [String]
676
+ # Deprecated. The name of the node pool to upgrade.
677
+ # This field has been deprecated and replaced by the name field.
708
678
  # @param name [String]
709
679
  # The name (project, location, cluster, node pool) of the node pool to
710
680
  # update. Specified in the format
@@ -722,42 +692,30 @@ module Google
722
692
  #
723
693
  # cluster_manager_client = Google::Cloud::Container.new(version: :v1)
724
694
  #
725
- # # TODO: Initialize `project_id`:
726
- # project_id = ''
727
- #
728
- # # TODO: Initialize `zone`:
729
- # zone = ''
730
- #
731
- # # TODO: Initialize `cluster_id`:
732
- # cluster_id = ''
733
- #
734
- # # TODO: Initialize `node_pool_id`:
735
- # node_pool_id = ''
736
- #
737
695
  # # TODO: Initialize `node_version`:
738
696
  # node_version = ''
739
697
  #
740
698
  # # TODO: Initialize `image_type`:
741
699
  # image_type = ''
742
- # response = cluster_manager_client.update_node_pool(project_id, zone, cluster_id, node_pool_id, node_version, image_type)
700
+ # response = cluster_manager_client.update_node_pool(node_version, image_type)
743
701
 
744
702
  def update_node_pool \
745
- project_id,
746
- zone,
747
- cluster_id,
748
- node_pool_id,
749
703
  node_version,
750
704
  image_type,
705
+ project_id: nil,
706
+ zone: nil,
707
+ cluster_id: nil,
708
+ node_pool_id: nil,
751
709
  name: nil,
752
710
  options: nil,
753
711
  &block
754
712
  req = {
713
+ node_version: node_version,
714
+ image_type: image_type,
755
715
  project_id: project_id,
756
716
  zone: zone,
757
717
  cluster_id: cluster_id,
758
718
  node_pool_id: node_pool_id,
759
- node_version: node_version,
760
- image_type: image_type,
761
719
  name: name
762
720
  }.delete_if { |_, v| v.nil? }
763
721
  req = Google::Gax::to_proto(req, Google::Container::V1::UpdateNodePoolRequest)
@@ -766,25 +724,25 @@ module Google
766
724
 
767
725
  # Sets the autoscaling settings for the specified node pool.
768
726
  #
727
+ # @param autoscaling [Google::Container::V1::NodePoolAutoscaling | Hash]
728
+ # Required. Autoscaling configuration for the node pool.
729
+ # A hash of the same form as `Google::Container::V1::NodePoolAutoscaling`
730
+ # can also be provided.
769
731
  # @param project_id [String]
770
- # Required. Deprecated. The Google Developers Console [project ID or project
732
+ # Deprecated. The Google Developers Console [project ID or project
771
733
  # number](https://support.google.com/cloud/answer/6158840).
772
734
  # This field has been deprecated and replaced by the name field.
773
735
  # @param zone [String]
774
- # Required. Deprecated. The name of the Google Compute Engine
736
+ # Deprecated. The name of the Google Compute Engine
775
737
  # [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
776
738
  # resides.
777
739
  # This field has been deprecated and replaced by the name field.
778
740
  # @param cluster_id [String]
779
- # Required. Deprecated. The name of the cluster to upgrade.
741
+ # Deprecated. The name of the cluster to upgrade.
780
742
  # This field has been deprecated and replaced by the name field.
781
743
  # @param node_pool_id [String]
782
- # Required. Deprecated. The name of the node pool to upgrade.
744
+ # Deprecated. The name of the node pool to upgrade.
783
745
  # This field has been deprecated and replaced by the name field.
784
- # @param autoscaling [Google::Container::V1::NodePoolAutoscaling | Hash]
785
- # Required. Autoscaling configuration for the node pool.
786
- # A hash of the same form as `Google::Container::V1::NodePoolAutoscaling`
787
- # can also be provided.
788
746
  # @param name [String]
789
747
  # The name (project, location, cluster, node pool) of the node pool to set
790
748
  # autoscaler settings. Specified in the format
@@ -802,37 +760,25 @@ module Google
802
760
  #
803
761
  # cluster_manager_client = Google::Cloud::Container.new(version: :v1)
804
762
  #
805
- # # TODO: Initialize `project_id`:
806
- # project_id = ''
807
- #
808
- # # TODO: Initialize `zone`:
809
- # zone = ''
810
- #
811
- # # TODO: Initialize `cluster_id`:
812
- # cluster_id = ''
813
- #
814
- # # TODO: Initialize `node_pool_id`:
815
- # node_pool_id = ''
816
- #
817
763
  # # TODO: Initialize `autoscaling`:
818
764
  # autoscaling = {}
819
- # response = cluster_manager_client.set_node_pool_autoscaling(project_id, zone, cluster_id, node_pool_id, autoscaling)
765
+ # response = cluster_manager_client.set_node_pool_autoscaling(autoscaling)
820
766
 
821
767
  def set_node_pool_autoscaling \
822
- project_id,
823
- zone,
824
- cluster_id,
825
- node_pool_id,
826
768
  autoscaling,
769
+ project_id: nil,
770
+ zone: nil,
771
+ cluster_id: nil,
772
+ node_pool_id: nil,
827
773
  name: nil,
828
774
  options: nil,
829
775
  &block
830
776
  req = {
777
+ autoscaling: autoscaling,
831
778
  project_id: project_id,
832
779
  zone: zone,
833
780
  cluster_id: cluster_id,
834
781
  node_pool_id: node_pool_id,
835
- autoscaling: autoscaling,
836
782
  name: name
837
783
  }.delete_if { |_, v| v.nil? }
838
784
  req = Google::Gax::to_proto(req, Google::Container::V1::SetNodePoolAutoscalingRequest)
@@ -841,24 +787,24 @@ module Google
841
787
 
842
788
  # Sets the logging service for a specific cluster.
843
789
  #
790
+ # @param logging_service [String]
791
+ # Required. The logging service the cluster should use to write metrics.
792
+ # Currently available options:
793
+ #
794
+ # * "logging.googleapis.com" - the Google Cloud Logging service
795
+ # * "none" - no metrics will be exported from the cluster
844
796
  # @param project_id [String]
845
- # Required. Deprecated. The Google Developers Console [project ID or project
797
+ # Deprecated. The Google Developers Console [project ID or project
846
798
  # number](https://support.google.com/cloud/answer/6158840).
847
799
  # This field has been deprecated and replaced by the name field.
848
800
  # @param zone [String]
849
- # Required. Deprecated. The name of the Google Compute Engine
801
+ # Deprecated. The name of the Google Compute Engine
850
802
  # [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
851
803
  # resides.
852
804
  # This field has been deprecated and replaced by the name field.
853
805
  # @param cluster_id [String]
854
- # Required. Deprecated. The name of the cluster to upgrade.
806
+ # Deprecated. The name of the cluster to upgrade.
855
807
  # This field has been deprecated and replaced by the name field.
856
- # @param logging_service [String]
857
- # Required. The logging service the cluster should use to write metrics.
858
- # Currently available options:
859
- #
860
- # * "logging.googleapis.com" - the Google Cloud Logging service
861
- # * "none" - no metrics will be exported from the cluster
862
808
  # @param name [String]
863
809
  # The name (project, location, cluster) of the cluster to set logging.
864
810
  # Specified in the format 'projects/*/locations/*/clusters/*'.
@@ -875,32 +821,23 @@ module Google
875
821
  #
876
822
  # cluster_manager_client = Google::Cloud::Container.new(version: :v1)
877
823
  #
878
- # # TODO: Initialize `project_id`:
879
- # project_id = ''
880
- #
881
- # # TODO: Initialize `zone`:
882
- # zone = ''
883
- #
884
- # # TODO: Initialize `cluster_id`:
885
- # cluster_id = ''
886
- #
887
824
  # # TODO: Initialize `logging_service`:
888
825
  # logging_service = ''
889
- # response = cluster_manager_client.set_logging_service(project_id, zone, cluster_id, logging_service)
826
+ # response = cluster_manager_client.set_logging_service(logging_service)
890
827
 
891
828
  def set_logging_service \
892
- project_id,
893
- zone,
894
- cluster_id,
895
829
  logging_service,
830
+ project_id: nil,
831
+ zone: nil,
832
+ cluster_id: nil,
896
833
  name: nil,
897
834
  options: nil,
898
835
  &block
899
836
  req = {
837
+ logging_service: logging_service,
900
838
  project_id: project_id,
901
839
  zone: zone,
902
840
  cluster_id: cluster_id,
903
- logging_service: logging_service,
904
841
  name: name
905
842
  }.delete_if { |_, v| v.nil? }
906
843
  req = Google::Gax::to_proto(req, Google::Container::V1::SetLoggingServiceRequest)
@@ -909,26 +846,26 @@ module Google
909
846
 
910
847
  # Sets the monitoring service for a specific cluster.
911
848
  #
849
+ # @param monitoring_service [String]
850
+ # Required. The monitoring service the cluster should use to write metrics.
851
+ # Currently available options:
852
+ #
853
+ # * "monitoring.googleapis.com/kubernetes" - the Google Cloud Monitoring
854
+ # service with Kubernetes-native resource model
855
+ # * "monitoring.googleapis.com" - the Google Cloud Monitoring service
856
+ # * "none" - no metrics will be exported from the cluster
912
857
  # @param project_id [String]
913
- # Required. Deprecated. The Google Developers Console [project ID or project
858
+ # Deprecated. The Google Developers Console [project ID or project
914
859
  # number](https://support.google.com/cloud/answer/6158840).
915
860
  # This field has been deprecated and replaced by the name field.
916
861
  # @param zone [String]
917
- # Required. Deprecated. The name of the Google Compute Engine
862
+ # Deprecated. The name of the Google Compute Engine
918
863
  # [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
919
864
  # resides.
920
865
  # This field has been deprecated and replaced by the name field.
921
866
  # @param cluster_id [String]
922
- # Required. Deprecated. The name of the cluster to upgrade.
867
+ # Deprecated. The name of the cluster to upgrade.
923
868
  # This field has been deprecated and replaced by the name field.
924
- # @param monitoring_service [String]
925
- # Required. The monitoring service the cluster should use to write metrics.
926
- # Currently available options:
927
- #
928
- # * "monitoring.googleapis.com/kubernetes" - the Google Cloud Monitoring
929
- # service with Kubernetes-native resource model
930
- # * "monitoring.googleapis.com" - the Google Cloud Monitoring service
931
- # * "none" - no metrics will be exported from the cluster
932
869
  # @param name [String]
933
870
  # The name (project, location, cluster) of the cluster to set monitoring.
934
871
  # Specified in the format 'projects/*/locations/*/clusters/*'.
@@ -945,32 +882,23 @@ module Google
945
882
  #
946
883
  # cluster_manager_client = Google::Cloud::Container.new(version: :v1)
947
884
  #
948
- # # TODO: Initialize `project_id`:
949
- # project_id = ''
950
- #
951
- # # TODO: Initialize `zone`:
952
- # zone = ''
953
- #
954
- # # TODO: Initialize `cluster_id`:
955
- # cluster_id = ''
956
- #
957
885
  # # TODO: Initialize `monitoring_service`:
958
886
  # monitoring_service = ''
959
- # response = cluster_manager_client.set_monitoring_service(project_id, zone, cluster_id, monitoring_service)
887
+ # response = cluster_manager_client.set_monitoring_service(monitoring_service)
960
888
 
961
889
  def set_monitoring_service \
962
- project_id,
963
- zone,
964
- cluster_id,
965
890
  monitoring_service,
891
+ project_id: nil,
892
+ zone: nil,
893
+ cluster_id: nil,
966
894
  name: nil,
967
895
  options: nil,
968
896
  &block
969
897
  req = {
898
+ monitoring_service: monitoring_service,
970
899
  project_id: project_id,
971
900
  zone: zone,
972
901
  cluster_id: cluster_id,
973
- monitoring_service: monitoring_service,
974
902
  name: name
975
903
  }.delete_if { |_, v| v.nil? }
976
904
  req = Google::Gax::to_proto(req, Google::Container::V1::SetMonitoringServiceRequest)
@@ -979,23 +907,23 @@ module Google
979
907
 
980
908
  # Sets the addons for a specific cluster.
981
909
  #
910
+ # @param addons_config [Google::Container::V1::AddonsConfig | Hash]
911
+ # Required. The desired configurations for the various addons available to run in the
912
+ # cluster.
913
+ # A hash of the same form as `Google::Container::V1::AddonsConfig`
914
+ # can also be provided.
982
915
  # @param project_id [String]
983
- # Required. Deprecated. The Google Developers Console [project ID or project
916
+ # Deprecated. The Google Developers Console [project ID or project
984
917
  # number](https://support.google.com/cloud/answer/6158840).
985
918
  # This field has been deprecated and replaced by the name field.
986
919
  # @param zone [String]
987
- # Required. Deprecated. The name of the Google Compute Engine
920
+ # Deprecated. The name of the Google Compute Engine
988
921
  # [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
989
922
  # resides.
990
923
  # This field has been deprecated and replaced by the name field.
991
924
  # @param cluster_id [String]
992
- # Required. Deprecated. The name of the cluster to upgrade.
925
+ # Deprecated. The name of the cluster to upgrade.
993
926
  # This field has been deprecated and replaced by the name field.
994
- # @param addons_config [Google::Container::V1::AddonsConfig | Hash]
995
- # Required. The desired configurations for the various addons available to run in the
996
- # cluster.
997
- # A hash of the same form as `Google::Container::V1::AddonsConfig`
998
- # can also be provided.
999
927
  # @param name [String]
1000
928
  # The name (project, location, cluster) of the cluster to set addons.
1001
929
  # Specified in the format 'projects/*/locations/*/clusters/*'.
@@ -1012,32 +940,23 @@ module Google
1012
940
  #
1013
941
  # cluster_manager_client = Google::Cloud::Container.new(version: :v1)
1014
942
  #
1015
- # # TODO: Initialize `project_id`:
1016
- # project_id = ''
1017
- #
1018
- # # TODO: Initialize `zone`:
1019
- # zone = ''
1020
- #
1021
- # # TODO: Initialize `cluster_id`:
1022
- # cluster_id = ''
1023
- #
1024
943
  # # TODO: Initialize `addons_config`:
1025
944
  # addons_config = {}
1026
- # response = cluster_manager_client.set_addons_config(project_id, zone, cluster_id, addons_config)
945
+ # response = cluster_manager_client.set_addons_config(addons_config)
1027
946
 
1028
947
  def set_addons_config \
1029
- project_id,
1030
- zone,
1031
- cluster_id,
1032
948
  addons_config,
949
+ project_id: nil,
950
+ zone: nil,
951
+ cluster_id: nil,
1033
952
  name: nil,
1034
953
  options: nil,
1035
954
  &block
1036
955
  req = {
956
+ addons_config: addons_config,
1037
957
  project_id: project_id,
1038
958
  zone: zone,
1039
959
  cluster_id: cluster_id,
1040
- addons_config: addons_config,
1041
960
  name: name
1042
961
  }.delete_if { |_, v| v.nil? }
1043
962
  req = Google::Gax::to_proto(req, Google::Container::V1::SetAddonsConfigRequest)
@@ -1046,26 +965,26 @@ module Google
1046
965
 
1047
966
  # Sets the locations for a specific cluster.
1048
967
  #
968
+ # @param locations [Array<String>]
969
+ # Required. The desired list of Google Compute Engine
970
+ # [zones](https://cloud.google.com/compute/docs/zones#available) in which the cluster's nodes
971
+ # should be located. Changing the locations a cluster is in will result
972
+ # in nodes being either created or removed from the cluster, depending on
973
+ # whether locations are being added or removed.
974
+ #
975
+ # This list must always include the cluster's primary zone.
1049
976
  # @param project_id [String]
1050
- # Required. Deprecated. The Google Developers Console [project ID or project
977
+ # Deprecated. The Google Developers Console [project ID or project
1051
978
  # number](https://support.google.com/cloud/answer/6158840).
1052
979
  # This field has been deprecated and replaced by the name field.
1053
980
  # @param zone [String]
1054
- # Required. Deprecated. The name of the Google Compute Engine
981
+ # Deprecated. The name of the Google Compute Engine
1055
982
  # [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
1056
983
  # resides.
1057
984
  # This field has been deprecated and replaced by the name field.
1058
985
  # @param cluster_id [String]
1059
- # Required. Deprecated. The name of the cluster to upgrade.
986
+ # Deprecated. The name of the cluster to upgrade.
1060
987
  # This field has been deprecated and replaced by the name field.
1061
- # @param locations [Array<String>]
1062
- # Required. The desired list of Google Compute Engine
1063
- # [zones](https://cloud.google.com/compute/docs/zones#available) in which the cluster's nodes
1064
- # should be located. Changing the locations a cluster is in will result
1065
- # in nodes being either created or removed from the cluster, depending on
1066
- # whether locations are being added or removed.
1067
- #
1068
- # This list must always include the cluster's primary zone.
1069
988
  # @param name [String]
1070
989
  # The name (project, location, cluster) of the cluster to set locations.
1071
990
  # Specified in the format 'projects/*/locations/*/clusters/*'.
@@ -1082,32 +1001,23 @@ module Google
1082
1001
  #
1083
1002
  # cluster_manager_client = Google::Cloud::Container.new(version: :v1)
1084
1003
  #
1085
- # # TODO: Initialize `project_id`:
1086
- # project_id = ''
1087
- #
1088
- # # TODO: Initialize `zone`:
1089
- # zone = ''
1090
- #
1091
- # # TODO: Initialize `cluster_id`:
1092
- # cluster_id = ''
1093
- #
1094
1004
  # # TODO: Initialize `locations`:
1095
1005
  # locations = []
1096
- # response = cluster_manager_client.set_locations(project_id, zone, cluster_id, locations)
1006
+ # response = cluster_manager_client.set_locations(locations)
1097
1007
 
1098
1008
  def set_locations \
1099
- project_id,
1100
- zone,
1101
- cluster_id,
1102
1009
  locations,
1010
+ project_id: nil,
1011
+ zone: nil,
1012
+ cluster_id: nil,
1103
1013
  name: nil,
1104
1014
  options: nil,
1105
1015
  &block
1106
1016
  req = {
1017
+ locations: locations,
1107
1018
  project_id: project_id,
1108
1019
  zone: zone,
1109
1020
  cluster_id: cluster_id,
1110
- locations: locations,
1111
1021
  name: name
1112
1022
  }.delete_if { |_, v| v.nil? }
1113
1023
  req = Google::Gax::to_proto(req, Google::Container::V1::SetLocationsRequest)
@@ -1116,18 +1026,6 @@ module Google
1116
1026
 
1117
1027
  # Updates the master for a specific cluster.
1118
1028
  #
1119
- # @param project_id [String]
1120
- # Required. Deprecated. The Google Developers Console [project ID or project
1121
- # number](https://support.google.com/cloud/answer/6158840).
1122
- # This field has been deprecated and replaced by the name field.
1123
- # @param zone [String]
1124
- # Required. Deprecated. The name of the Google Compute Engine
1125
- # [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
1126
- # resides.
1127
- # This field has been deprecated and replaced by the name field.
1128
- # @param cluster_id [String]
1129
- # Required. Deprecated. The name of the cluster to upgrade.
1130
- # This field has been deprecated and replaced by the name field.
1131
1029
  # @param master_version [String]
1132
1030
  # Required. The Kubernetes version to change the master to.
1133
1031
  #
@@ -1139,6 +1037,18 @@ module Google
1139
1037
  # * "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
1140
1038
  # * "1.X.Y-gke.N": picks an explicit Kubernetes version
1141
1039
  # * "-": picks the default Kubernetes version
1040
+ # @param project_id [String]
1041
+ # Deprecated. The Google Developers Console [project ID or project
1042
+ # number](https://support.google.com/cloud/answer/6158840).
1043
+ # This field has been deprecated and replaced by the name field.
1044
+ # @param zone [String]
1045
+ # Deprecated. The name of the Google Compute Engine
1046
+ # [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
1047
+ # resides.
1048
+ # This field has been deprecated and replaced by the name field.
1049
+ # @param cluster_id [String]
1050
+ # Deprecated. The name of the cluster to upgrade.
1051
+ # This field has been deprecated and replaced by the name field.
1142
1052
  # @param name [String]
1143
1053
  # The name (project, location, cluster) of the cluster to update.
1144
1054
  # Specified in the format 'projects/*/locations/*/clusters/*'.
@@ -1155,32 +1065,23 @@ module Google
1155
1065
  #
1156
1066
  # cluster_manager_client = Google::Cloud::Container.new(version: :v1)
1157
1067
  #
1158
- # # TODO: Initialize `project_id`:
1159
- # project_id = ''
1160
- #
1161
- # # TODO: Initialize `zone`:
1162
- # zone = ''
1163
- #
1164
- # # TODO: Initialize `cluster_id`:
1165
- # cluster_id = ''
1166
- #
1167
1068
  # # TODO: Initialize `master_version`:
1168
1069
  # master_version = ''
1169
- # response = cluster_manager_client.update_master(project_id, zone, cluster_id, master_version)
1070
+ # response = cluster_manager_client.update_master(master_version)
1170
1071
 
1171
1072
  def update_master \
1172
- project_id,
1173
- zone,
1174
- cluster_id,
1175
1073
  master_version,
1074
+ project_id: nil,
1075
+ zone: nil,
1076
+ cluster_id: nil,
1176
1077
  name: nil,
1177
1078
  options: nil,
1178
1079
  &block
1179
1080
  req = {
1081
+ master_version: master_version,
1180
1082
  project_id: project_id,
1181
1083
  zone: zone,
1182
1084
  cluster_id: cluster_id,
1183
- master_version: master_version,
1184
1085
  name: name
1185
1086
  }.delete_if { |_, v| v.nil? }
1186
1087
  req = Google::Gax::to_proto(req, Google::Container::V1::UpdateMasterRequest)
@@ -1191,24 +1092,24 @@ module Google
1191
1092
  # or a specific cluster, either via password generation or explicitly setting
1192
1093
  # the password.
1193
1094
  #
1095
+ # @param action [Google::Container::V1::SetMasterAuthRequest::Action]
1096
+ # Required. The exact form of action to be taken on the master auth.
1097
+ # @param update [Google::Container::V1::MasterAuth | Hash]
1098
+ # Required. A description of the update.
1099
+ # A hash of the same form as `Google::Container::V1::MasterAuth`
1100
+ # can also be provided.
1194
1101
  # @param project_id [String]
1195
- # Required. Deprecated. The Google Developers Console [project ID or project
1102
+ # Deprecated. The Google Developers Console [project ID or project
1196
1103
  # number](https://support.google.com/cloud/answer/6158840).
1197
1104
  # This field has been deprecated and replaced by the name field.
1198
1105
  # @param zone [String]
1199
- # Required. Deprecated. The name of the Google Compute Engine
1106
+ # Deprecated. The name of the Google Compute Engine
1200
1107
  # [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
1201
1108
  # resides.
1202
1109
  # This field has been deprecated and replaced by the name field.
1203
1110
  # @param cluster_id [String]
1204
- # Required. Deprecated. The name of the cluster to upgrade.
1111
+ # Deprecated. The name of the cluster to upgrade.
1205
1112
  # This field has been deprecated and replaced by the name field.
1206
- # @param action [Google::Container::V1::SetMasterAuthRequest::Action]
1207
- # Required. The exact form of action to be taken on the master auth.
1208
- # @param update [Google::Container::V1::MasterAuth | Hash]
1209
- # Required. A description of the update.
1210
- # A hash of the same form as `Google::Container::V1::MasterAuth`
1211
- # can also be provided.
1212
1113
  # @param name [String]
1213
1114
  # The name (project, location, cluster) of the cluster to set auth.
1214
1115
  # Specified in the format 'projects/*/locations/*/clusters/*'.
@@ -1225,37 +1126,28 @@ module Google
1225
1126
  #
1226
1127
  # cluster_manager_client = Google::Cloud::Container.new(version: :v1)
1227
1128
  #
1228
- # # TODO: Initialize `project_id`:
1229
- # project_id = ''
1230
- #
1231
- # # TODO: Initialize `zone`:
1232
- # zone = ''
1233
- #
1234
- # # TODO: Initialize `cluster_id`:
1235
- # cluster_id = ''
1236
- #
1237
1129
  # # TODO: Initialize `action`:
1238
1130
  # action = :UNKNOWN
1239
1131
  #
1240
1132
  # # TODO: Initialize `update`:
1241
1133
  # update = {}
1242
- # response = cluster_manager_client.set_master_auth(project_id, zone, cluster_id, action, update)
1134
+ # response = cluster_manager_client.set_master_auth(action, update)
1243
1135
 
1244
1136
  def set_master_auth \
1245
- project_id,
1246
- zone,
1247
- cluster_id,
1248
1137
  action,
1249
1138
  update,
1139
+ project_id: nil,
1140
+ zone: nil,
1141
+ cluster_id: nil,
1250
1142
  name: nil,
1251
1143
  options: nil,
1252
1144
  &block
1253
1145
  req = {
1146
+ action: action,
1147
+ update: update,
1254
1148
  project_id: project_id,
1255
1149
  zone: zone,
1256
1150
  cluster_id: cluster_id,
1257
- action: action,
1258
- update: update,
1259
1151
  name: name
1260
1152
  }.delete_if { |_, v| v.nil? }
1261
1153
  req = Google::Gax::to_proto(req, Google::Container::V1::SetMasterAuthRequest)
@@ -1273,16 +1165,16 @@ module Google
1273
1165
  # when the cluster was initially created.
1274
1166
  #
1275
1167
  # @param project_id [String]
1276
- # Required. Deprecated. The Google Developers Console [project ID or project
1168
+ # Deprecated. The Google Developers Console [project ID or project
1277
1169
  # number](https://support.google.com/cloud/answer/6158840).
1278
1170
  # This field has been deprecated and replaced by the name field.
1279
1171
  # @param zone [String]
1280
- # Required. Deprecated. The name of the Google Compute Engine
1172
+ # Deprecated. The name of the Google Compute Engine
1281
1173
  # [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
1282
1174
  # resides.
1283
1175
  # This field has been deprecated and replaced by the name field.
1284
1176
  # @param cluster_id [String]
1285
- # Required. Deprecated. The name of the cluster to delete.
1177
+ # Deprecated. The name of the cluster to delete.
1286
1178
  # This field has been deprecated and replaced by the name field.
1287
1179
  # @param name [String]
1288
1180
  # The name (project, location, cluster) of the cluster to delete.
@@ -1294,26 +1186,17 @@ module Google
1294
1186
  # @yieldparam result [Google::Container::V1::Operation]
1295
1187
  # @yieldparam operation [GRPC::ActiveCall::Operation]
1296
1188
  # @return [Google::Container::V1::Operation]
1297
- # @raise [Google::Gax::GaxError] if the RPC is aborted.
1298
- # @example
1299
- # require "google/cloud/container"
1300
- #
1301
- # cluster_manager_client = Google::Cloud::Container.new(version: :v1)
1302
- #
1303
- # # TODO: Initialize `project_id`:
1304
- # project_id = ''
1305
- #
1306
- # # TODO: Initialize `zone`:
1307
- # zone = ''
1189
+ # @raise [Google::Gax::GaxError] if the RPC is aborted.
1190
+ # @example
1191
+ # require "google/cloud/container"
1308
1192
  #
1309
- # # TODO: Initialize `cluster_id`:
1310
- # cluster_id = ''
1311
- # response = cluster_manager_client.delete_cluster(project_id, zone, cluster_id)
1193
+ # cluster_manager_client = Google::Cloud::Container.new(version: :v1)
1194
+ # response = cluster_manager_client.delete_cluster
1312
1195
 
1313
1196
  def delete_cluster \
1314
- project_id,
1315
- zone,
1316
- cluster_id,
1197
+ project_id: nil,
1198
+ zone: nil,
1199
+ cluster_id: nil,
1317
1200
  name: nil,
1318
1201
  options: nil,
1319
1202
  &block
@@ -1330,11 +1213,11 @@ module Google
1330
1213
  # Lists all operations in a project in a specific zone or all zones.
1331
1214
  #
1332
1215
  # @param project_id [String]
1333
- # Required. Deprecated. The Google Developers Console [project ID or project
1216
+ # Deprecated. The Google Developers Console [project ID or project
1334
1217
  # number](https://support.google.com/cloud/answer/6158840).
1335
1218
  # This field has been deprecated and replaced by the parent field.
1336
1219
  # @param zone [String]
1337
- # Required. Deprecated. The name of the Google Compute Engine
1220
+ # Deprecated. The name of the Google Compute Engine
1338
1221
  # [zone](https://cloud.google.com/compute/docs/zones#available) to return operations for, or `-` for
1339
1222
  # all zones. This field has been deprecated and replaced by the parent field.
1340
1223
  # @param parent [String]
@@ -1353,17 +1236,11 @@ module Google
1353
1236
  # require "google/cloud/container"
1354
1237
  #
1355
1238
  # cluster_manager_client = Google::Cloud::Container.new(version: :v1)
1356
- #
1357
- # # TODO: Initialize `project_id`:
1358
- # project_id = ''
1359
- #
1360
- # # TODO: Initialize `zone`:
1361
- # zone = ''
1362
- # response = cluster_manager_client.list_operations(project_id, zone)
1239
+ # response = cluster_manager_client.list_operations
1363
1240
 
1364
1241
  def list_operations \
1365
- project_id,
1366
- zone,
1242
+ project_id: nil,
1243
+ zone: nil,
1367
1244
  parent: nil,
1368
1245
  options: nil,
1369
1246
  &block
@@ -1379,16 +1256,16 @@ module Google
1379
1256
  # Gets the specified operation.
1380
1257
  #
1381
1258
  # @param project_id [String]
1382
- # Required. Deprecated. The Google Developers Console [project ID or project
1259
+ # Deprecated. The Google Developers Console [project ID or project
1383
1260
  # number](https://support.google.com/cloud/answer/6158840).
1384
1261
  # This field has been deprecated and replaced by the name field.
1385
1262
  # @param zone [String]
1386
- # Required. Deprecated. The name of the Google Compute Engine
1263
+ # Deprecated. The name of the Google Compute Engine
1387
1264
  # [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
1388
1265
  # resides.
1389
1266
  # This field has been deprecated and replaced by the name field.
1390
1267
  # @param operation_id [String]
1391
- # Required. Deprecated. The server-assigned `name` of the operation.
1268
+ # Deprecated. The server-assigned `name` of the operation.
1392
1269
  # This field has been deprecated and replaced by the name field.
1393
1270
  # @param name [String]
1394
1271
  # The name (project, location, operation id) of the operation to get.
@@ -1405,21 +1282,12 @@ module Google
1405
1282
  # require "google/cloud/container"
1406
1283
  #
1407
1284
  # cluster_manager_client = Google::Cloud::Container.new(version: :v1)
1408
- #
1409
- # # TODO: Initialize `project_id`:
1410
- # project_id = ''
1411
- #
1412
- # # TODO: Initialize `zone`:
1413
- # zone = ''
1414
- #
1415
- # # TODO: Initialize `operation_id`:
1416
- # operation_id = ''
1417
- # response = cluster_manager_client.get_operation(project_id, zone, operation_id)
1285
+ # response = cluster_manager_client.get_operation
1418
1286
 
1419
1287
  def get_operation \
1420
- project_id,
1421
- zone,
1422
- operation_id,
1288
+ project_id: nil,
1289
+ zone: nil,
1290
+ operation_id: nil,
1423
1291
  name: nil,
1424
1292
  options: nil,
1425
1293
  &block
@@ -1436,15 +1304,15 @@ module Google
1436
1304
  # Cancels the specified operation.
1437
1305
  #
1438
1306
  # @param project_id [String]
1439
- # Required. Deprecated. The Google Developers Console [project ID or project
1307
+ # Deprecated. The Google Developers Console [project ID or project
1440
1308
  # number](https://support.google.com/cloud/answer/6158840).
1441
1309
  # This field has been deprecated and replaced by the name field.
1442
1310
  # @param zone [String]
1443
- # Required. Deprecated. The name of the Google Compute Engine
1311
+ # Deprecated. The name of the Google Compute Engine
1444
1312
  # [zone](https://cloud.google.com/compute/docs/zones#available) in which the operation resides.
1445
1313
  # This field has been deprecated and replaced by the name field.
1446
1314
  # @param operation_id [String]
1447
- # Required. Deprecated. The server-assigned `name` of the operation.
1315
+ # Deprecated. The server-assigned `name` of the operation.
1448
1316
  # This field has been deprecated and replaced by the name field.
1449
1317
  # @param name [String]
1450
1318
  # The name (project, location, operation id) of the operation to cancel.
@@ -1460,21 +1328,12 @@ module Google
1460
1328
  # require "google/cloud/container"
1461
1329
  #
1462
1330
  # cluster_manager_client = Google::Cloud::Container.new(version: :v1)
1463
- #
1464
- # # TODO: Initialize `project_id`:
1465
- # project_id = ''
1466
- #
1467
- # # TODO: Initialize `zone`:
1468
- # zone = ''
1469
- #
1470
- # # TODO: Initialize `operation_id`:
1471
- # operation_id = ''
1472
- # cluster_manager_client.cancel_operation(project_id, zone, operation_id)
1331
+ # cluster_manager_client.cancel_operation
1473
1332
 
1474
1333
  def cancel_operation \
1475
- project_id,
1476
- zone,
1477
- operation_id,
1334
+ project_id: nil,
1335
+ zone: nil,
1336
+ operation_id: nil,
1478
1337
  name: nil,
1479
1338
  options: nil,
1480
1339
  &block
@@ -1492,11 +1351,11 @@ module Google
1492
1351
  # Returns configuration info about the Google Kubernetes Engine service.
1493
1352
  #
1494
1353
  # @param project_id [String]
1495
- # Required. Deprecated. The Google Developers Console [project ID or project
1354
+ # Deprecated. The Google Developers Console [project ID or project
1496
1355
  # number](https://support.google.com/cloud/answer/6158840).
1497
1356
  # This field has been deprecated and replaced by the name field.
1498
1357
  # @param zone [String]
1499
- # Required. Deprecated. The name of the Google Compute Engine
1358
+ # Deprecated. The name of the Google Compute Engine
1500
1359
  # [zone](https://cloud.google.com/compute/docs/zones#available) to return operations for.
1501
1360
  # This field has been deprecated and replaced by the name field.
1502
1361
  # @param name [String]
@@ -1514,17 +1373,11 @@ module Google
1514
1373
  # require "google/cloud/container"
1515
1374
  #
1516
1375
  # cluster_manager_client = Google::Cloud::Container.new(version: :v1)
1517
- #
1518
- # # TODO: Initialize `project_id`:
1519
- # project_id = ''
1520
- #
1521
- # # TODO: Initialize `zone`:
1522
- # zone = ''
1523
- # response = cluster_manager_client.get_server_config(project_id, zone)
1376
+ # response = cluster_manager_client.get_server_config
1524
1377
 
1525
1378
  def get_server_config \
1526
- project_id,
1527
- zone,
1379
+ project_id: nil,
1380
+ zone: nil,
1528
1381
  name: nil,
1529
1382
  options: nil,
1530
1383
  &block
@@ -1540,16 +1393,16 @@ module Google
1540
1393
  # Lists the node pools for a cluster.
1541
1394
  #
1542
1395
  # @param project_id [String]
1543
- # Required. Deprecated. The Google Developers Console [project ID or project
1396
+ # Deprecated. The Google Developers Console [project ID or project
1544
1397
  # number](https://developers.google.com/console/help/new/#projectnumber).
1545
1398
  # This field has been deprecated and replaced by the parent field.
1546
1399
  # @param zone [String]
1547
- # Required. Deprecated. The name of the Google Compute Engine
1400
+ # Deprecated. The name of the Google Compute Engine
1548
1401
  # [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
1549
1402
  # resides.
1550
1403
  # This field has been deprecated and replaced by the parent field.
1551
1404
  # @param cluster_id [String]
1552
- # Required. Deprecated. The name of the cluster.
1405
+ # Deprecated. The name of the cluster.
1553
1406
  # This field has been deprecated and replaced by the parent field.
1554
1407
  # @param parent [String]
1555
1408
  # The parent (project, location, cluster id) where the node pools will be
@@ -1566,21 +1419,12 @@ module Google
1566
1419
  # require "google/cloud/container"
1567
1420
  #
1568
1421
  # cluster_manager_client = Google::Cloud::Container.new(version: :v1)
1569
- #
1570
- # # TODO: Initialize `project_id`:
1571
- # project_id = ''
1572
- #
1573
- # # TODO: Initialize `zone`:
1574
- # zone = ''
1575
- #
1576
- # # TODO: Initialize `cluster_id`:
1577
- # cluster_id = ''
1578
- # response = cluster_manager_client.list_node_pools(project_id, zone, cluster_id)
1422
+ # response = cluster_manager_client.list_node_pools
1579
1423
 
1580
1424
  def list_node_pools \
1581
- project_id,
1582
- zone,
1583
- cluster_id,
1425
+ project_id: nil,
1426
+ zone: nil,
1427
+ cluster_id: nil,
1584
1428
  parent: nil,
1585
1429
  options: nil,
1586
1430
  &block
@@ -1597,19 +1441,19 @@ module Google
1597
1441
  # Retrieves the requested node pool.
1598
1442
  #
1599
1443
  # @param project_id [String]
1600
- # Required. Deprecated. The Google Developers Console [project ID or project
1444
+ # Deprecated. The Google Developers Console [project ID or project
1601
1445
  # number](https://developers.google.com/console/help/new/#projectnumber).
1602
1446
  # This field has been deprecated and replaced by the name field.
1603
1447
  # @param zone [String]
1604
- # Required. Deprecated. The name of the Google Compute Engine
1448
+ # Deprecated. The name of the Google Compute Engine
1605
1449
  # [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
1606
1450
  # resides.
1607
1451
  # This field has been deprecated and replaced by the name field.
1608
1452
  # @param cluster_id [String]
1609
- # Required. Deprecated. The name of the cluster.
1453
+ # Deprecated. The name of the cluster.
1610
1454
  # This field has been deprecated and replaced by the name field.
1611
1455
  # @param node_pool_id [String]
1612
- # Required. Deprecated. The name of the node pool.
1456
+ # Deprecated. The name of the node pool.
1613
1457
  # This field has been deprecated and replaced by the name field.
1614
1458
  # @param name [String]
1615
1459
  # The name (project, location, cluster, node pool id) of the node pool to
@@ -1627,25 +1471,13 @@ module Google
1627
1471
  # require "google/cloud/container"
1628
1472
  #
1629
1473
  # cluster_manager_client = Google::Cloud::Container.new(version: :v1)
1630
- #
1631
- # # TODO: Initialize `project_id`:
1632
- # project_id = ''
1633
- #
1634
- # # TODO: Initialize `zone`:
1635
- # zone = ''
1636
- #
1637
- # # TODO: Initialize `cluster_id`:
1638
- # cluster_id = ''
1639
- #
1640
- # # TODO: Initialize `node_pool_id`:
1641
- # node_pool_id = ''
1642
- # response = cluster_manager_client.get_node_pool(project_id, zone, cluster_id, node_pool_id)
1474
+ # response = cluster_manager_client.get_node_pool
1643
1475
 
1644
1476
  def get_node_pool \
1645
- project_id,
1646
- zone,
1647
- cluster_id,
1648
- node_pool_id,
1477
+ project_id: nil,
1478
+ zone: nil,
1479
+ cluster_id: nil,
1480
+ node_pool_id: nil,
1649
1481
  name: nil,
1650
1482
  options: nil,
1651
1483
  &block
@@ -1662,22 +1494,22 @@ module Google
1662
1494
 
1663
1495
  # Creates a node pool for a cluster.
1664
1496
  #
1497
+ # @param node_pool [Google::Container::V1::NodePool | Hash]
1498
+ # Required. The node pool to create.
1499
+ # A hash of the same form as `Google::Container::V1::NodePool`
1500
+ # can also be provided.
1665
1501
  # @param project_id [String]
1666
- # Required. Deprecated. The Google Developers Console [project ID or project
1502
+ # Deprecated. The Google Developers Console [project ID or project
1667
1503
  # number](https://developers.google.com/console/help/new/#projectnumber).
1668
1504
  # This field has been deprecated and replaced by the parent field.
1669
1505
  # @param zone [String]
1670
- # Required. Deprecated. The name of the Google Compute Engine
1506
+ # Deprecated. The name of the Google Compute Engine
1671
1507
  # [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
1672
1508
  # resides.
1673
1509
  # This field has been deprecated and replaced by the parent field.
1674
1510
  # @param cluster_id [String]
1675
- # Required. Deprecated. The name of the cluster.
1511
+ # Deprecated. The name of the cluster.
1676
1512
  # This field has been deprecated and replaced by the parent field.
1677
- # @param node_pool [Google::Container::V1::NodePool | Hash]
1678
- # Required. The node pool to create.
1679
- # A hash of the same form as `Google::Container::V1::NodePool`
1680
- # can also be provided.
1681
1513
  # @param parent [String]
1682
1514
  # The parent (project, location, cluster id) where the node pool will be
1683
1515
  # created. Specified in the format
@@ -1695,32 +1527,23 @@ module Google
1695
1527
  #
1696
1528
  # cluster_manager_client = Google::Cloud::Container.new(version: :v1)
1697
1529
  #
1698
- # # TODO: Initialize `project_id`:
1699
- # project_id = ''
1700
- #
1701
- # # TODO: Initialize `zone`:
1702
- # zone = ''
1703
- #
1704
- # # TODO: Initialize `cluster_id`:
1705
- # cluster_id = ''
1706
- #
1707
1530
  # # TODO: Initialize `node_pool`:
1708
1531
  # node_pool = {}
1709
- # response = cluster_manager_client.create_node_pool(project_id, zone, cluster_id, node_pool)
1532
+ # response = cluster_manager_client.create_node_pool(node_pool)
1710
1533
 
1711
1534
  def create_node_pool \
1712
- project_id,
1713
- zone,
1714
- cluster_id,
1715
1535
  node_pool,
1536
+ project_id: nil,
1537
+ zone: nil,
1538
+ cluster_id: nil,
1716
1539
  parent: nil,
1717
1540
  options: nil,
1718
1541
  &block
1719
1542
  req = {
1543
+ node_pool: node_pool,
1720
1544
  project_id: project_id,
1721
1545
  zone: zone,
1722
1546
  cluster_id: cluster_id,
1723
- node_pool: node_pool,
1724
1547
  parent: parent
1725
1548
  }.delete_if { |_, v| v.nil? }
1726
1549
  req = Google::Gax::to_proto(req, Google::Container::V1::CreateNodePoolRequest)
@@ -1730,19 +1553,19 @@ module Google
1730
1553
  # Deletes a node pool from a cluster.
1731
1554
  #
1732
1555
  # @param project_id [String]
1733
- # Required. Deprecated. The Google Developers Console [project ID or project
1556
+ # Deprecated. The Google Developers Console [project ID or project
1734
1557
  # number](https://developers.google.com/console/help/new/#projectnumber).
1735
1558
  # This field has been deprecated and replaced by the name field.
1736
1559
  # @param zone [String]
1737
- # Required. Deprecated. The name of the Google Compute Engine
1560
+ # Deprecated. The name of the Google Compute Engine
1738
1561
  # [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
1739
1562
  # resides.
1740
1563
  # This field has been deprecated and replaced by the name field.
1741
1564
  # @param cluster_id [String]
1742
- # Required. Deprecated. The name of the cluster.
1565
+ # Deprecated. The name of the cluster.
1743
1566
  # This field has been deprecated and replaced by the name field.
1744
1567
  # @param node_pool_id [String]
1745
- # Required. Deprecated. The name of the node pool to delete.
1568
+ # Deprecated. The name of the node pool to delete.
1746
1569
  # This field has been deprecated and replaced by the name field.
1747
1570
  # @param name [String]
1748
1571
  # The name (project, location, cluster, node pool id) of the node pool to
@@ -1760,25 +1583,13 @@ module Google
1760
1583
  # require "google/cloud/container"
1761
1584
  #
1762
1585
  # cluster_manager_client = Google::Cloud::Container.new(version: :v1)
1763
- #
1764
- # # TODO: Initialize `project_id`:
1765
- # project_id = ''
1766
- #
1767
- # # TODO: Initialize `zone`:
1768
- # zone = ''
1769
- #
1770
- # # TODO: Initialize `cluster_id`:
1771
- # cluster_id = ''
1772
- #
1773
- # # TODO: Initialize `node_pool_id`:
1774
- # node_pool_id = ''
1775
- # response = cluster_manager_client.delete_node_pool(project_id, zone, cluster_id, node_pool_id)
1586
+ # response = cluster_manager_client.delete_node_pool
1776
1587
 
1777
1588
  def delete_node_pool \
1778
- project_id,
1779
- zone,
1780
- cluster_id,
1781
- node_pool_id,
1589
+ project_id: nil,
1590
+ zone: nil,
1591
+ cluster_id: nil,
1592
+ node_pool_id: nil,
1782
1593
  name: nil,
1783
1594
  options: nil,
1784
1595
  &block
@@ -1797,19 +1608,19 @@ module Google
1797
1608
  # This makes no changes if the last upgrade successfully completed.
1798
1609
  #
1799
1610
  # @param project_id [String]
1800
- # Required. Deprecated. The Google Developers Console [project ID or project
1611
+ # Deprecated. The Google Developers Console [project ID or project
1801
1612
  # number](https://support.google.com/cloud/answer/6158840).
1802
1613
  # This field has been deprecated and replaced by the name field.
1803
1614
  # @param zone [String]
1804
- # Required. Deprecated. The name of the Google Compute Engine
1615
+ # Deprecated. The name of the Google Compute Engine
1805
1616
  # [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
1806
1617
  # resides.
1807
1618
  # This field has been deprecated and replaced by the name field.
1808
1619
  # @param cluster_id [String]
1809
- # Required. Deprecated. The name of the cluster to rollback.
1620
+ # Deprecated. The name of the cluster to rollback.
1810
1621
  # This field has been deprecated and replaced by the name field.
1811
1622
  # @param node_pool_id [String]
1812
- # Required. Deprecated. The name of the node pool to rollback.
1623
+ # Deprecated. The name of the node pool to rollback.
1813
1624
  # This field has been deprecated and replaced by the name field.
1814
1625
  # @param name [String]
1815
1626
  # The name (project, location, cluster, node pool id) of the node poll to
@@ -1827,25 +1638,13 @@ module Google
1827
1638
  # require "google/cloud/container"
1828
1639
  #
1829
1640
  # cluster_manager_client = Google::Cloud::Container.new(version: :v1)
1830
- #
1831
- # # TODO: Initialize `project_id`:
1832
- # project_id = ''
1833
- #
1834
- # # TODO: Initialize `zone`:
1835
- # zone = ''
1836
- #
1837
- # # TODO: Initialize `cluster_id`:
1838
- # cluster_id = ''
1839
- #
1840
- # # TODO: Initialize `node_pool_id`:
1841
- # node_pool_id = ''
1842
- # response = cluster_manager_client.rollback_node_pool_upgrade(project_id, zone, cluster_id, node_pool_id)
1641
+ # response = cluster_manager_client.rollback_node_pool_upgrade
1843
1642
 
1844
1643
  def rollback_node_pool_upgrade \
1845
- project_id,
1846
- zone,
1847
- cluster_id,
1848
- node_pool_id,
1644
+ project_id: nil,
1645
+ zone: nil,
1646
+ cluster_id: nil,
1647
+ node_pool_id: nil,
1849
1648
  name: nil,
1850
1649
  options: nil,
1851
1650
  &block
@@ -1862,25 +1661,25 @@ module Google
1862
1661
 
1863
1662
  # Sets the NodeManagement options for a node pool.
1864
1663
  #
1664
+ # @param management [Google::Container::V1::NodeManagement | Hash]
1665
+ # Required. NodeManagement configuration for the node pool.
1666
+ # A hash of the same form as `Google::Container::V1::NodeManagement`
1667
+ # can also be provided.
1865
1668
  # @param project_id [String]
1866
- # Required. Deprecated. The Google Developers Console [project ID or project
1669
+ # Deprecated. The Google Developers Console [project ID or project
1867
1670
  # number](https://support.google.com/cloud/answer/6158840).
1868
1671
  # This field has been deprecated and replaced by the name field.
1869
1672
  # @param zone [String]
1870
- # Required. Deprecated. The name of the Google Compute Engine
1673
+ # Deprecated. The name of the Google Compute Engine
1871
1674
  # [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
1872
1675
  # resides.
1873
1676
  # This field has been deprecated and replaced by the name field.
1874
1677
  # @param cluster_id [String]
1875
- # Required. Deprecated. The name of the cluster to update.
1678
+ # Deprecated. The name of the cluster to update.
1876
1679
  # This field has been deprecated and replaced by the name field.
1877
1680
  # @param node_pool_id [String]
1878
- # Required. Deprecated. The name of the node pool to update.
1681
+ # Deprecated. The name of the node pool to update.
1879
1682
  # This field has been deprecated and replaced by the name field.
1880
- # @param management [Google::Container::V1::NodeManagement | Hash]
1881
- # Required. NodeManagement configuration for the node pool.
1882
- # A hash of the same form as `Google::Container::V1::NodeManagement`
1883
- # can also be provided.
1884
1683
  # @param name [String]
1885
1684
  # The name (project, location, cluster, node pool id) of the node pool to set
1886
1685
  # management properties. Specified in the format
@@ -1898,37 +1697,25 @@ module Google
1898
1697
  #
1899
1698
  # cluster_manager_client = Google::Cloud::Container.new(version: :v1)
1900
1699
  #
1901
- # # TODO: Initialize `project_id`:
1902
- # project_id = ''
1903
- #
1904
- # # TODO: Initialize `zone`:
1905
- # zone = ''
1906
- #
1907
- # # TODO: Initialize `cluster_id`:
1908
- # cluster_id = ''
1909
- #
1910
- # # TODO: Initialize `node_pool_id`:
1911
- # node_pool_id = ''
1912
- #
1913
1700
  # # TODO: Initialize `management`:
1914
1701
  # management = {}
1915
- # response = cluster_manager_client.set_node_pool_management(project_id, zone, cluster_id, node_pool_id, management)
1702
+ # response = cluster_manager_client.set_node_pool_management(management)
1916
1703
 
1917
1704
  def set_node_pool_management \
1918
- project_id,
1919
- zone,
1920
- cluster_id,
1921
- node_pool_id,
1922
1705
  management,
1706
+ project_id: nil,
1707
+ zone: nil,
1708
+ cluster_id: nil,
1709
+ node_pool_id: nil,
1923
1710
  name: nil,
1924
1711
  options: nil,
1925
1712
  &block
1926
1713
  req = {
1714
+ management: management,
1927
1715
  project_id: project_id,
1928
1716
  zone: zone,
1929
1717
  cluster_id: cluster_id,
1930
1718
  node_pool_id: node_pool_id,
1931
- management: management,
1932
1719
  name: name
1933
1720
  }.delete_if { |_, v| v.nil? }
1934
1721
  req = Google::Gax::to_proto(req, Google::Container::V1::SetNodePoolManagementRequest)
@@ -1937,18 +1724,6 @@ module Google
1937
1724
 
1938
1725
  # Sets labels on a cluster.
1939
1726
  #
1940
- # @param project_id [String]
1941
- # Required. Deprecated. The Google Developers Console [project ID or project
1942
- # number](https://developers.google.com/console/help/new/#projectnumber).
1943
- # This field has been deprecated and replaced by the name field.
1944
- # @param zone [String]
1945
- # Required. Deprecated. The name of the Google Compute Engine
1946
- # [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
1947
- # resides.
1948
- # This field has been deprecated and replaced by the name field.
1949
- # @param cluster_id [String]
1950
- # Required. Deprecated. The name of the cluster.
1951
- # This field has been deprecated and replaced by the name field.
1952
1727
  # @param resource_labels [Hash{String => String}]
1953
1728
  # Required. The labels to set for that cluster.
1954
1729
  # @param label_fingerprint [String]
@@ -1958,6 +1733,18 @@ module Google
1958
1733
  # labels. You must always provide an up-to-date fingerprint hash when
1959
1734
  # updating or changing labels. Make a <code>get()</code> request to the
1960
1735
  # resource to get the latest fingerprint.
1736
+ # @param project_id [String]
1737
+ # Deprecated. The Google Developers Console [project ID or project
1738
+ # number](https://developers.google.com/console/help/new/#projectnumber).
1739
+ # This field has been deprecated and replaced by the name field.
1740
+ # @param zone [String]
1741
+ # Deprecated. The name of the Google Compute Engine
1742
+ # [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
1743
+ # resides.
1744
+ # This field has been deprecated and replaced by the name field.
1745
+ # @param cluster_id [String]
1746
+ # Deprecated. The name of the cluster.
1747
+ # This field has been deprecated and replaced by the name field.
1961
1748
  # @param name [String]
1962
1749
  # The name (project, location, cluster id) of the cluster to set labels.
1963
1750
  # Specified in the format 'projects/*/locations/*/clusters/*'.
@@ -1974,37 +1761,28 @@ module Google
1974
1761
  #
1975
1762
  # cluster_manager_client = Google::Cloud::Container.new(version: :v1)
1976
1763
  #
1977
- # # TODO: Initialize `project_id`:
1978
- # project_id = ''
1979
- #
1980
- # # TODO: Initialize `zone`:
1981
- # zone = ''
1982
- #
1983
- # # TODO: Initialize `cluster_id`:
1984
- # cluster_id = ''
1985
- #
1986
1764
  # # TODO: Initialize `resource_labels`:
1987
1765
  # resource_labels = {}
1988
1766
  #
1989
1767
  # # TODO: Initialize `label_fingerprint`:
1990
1768
  # label_fingerprint = ''
1991
- # response = cluster_manager_client.set_labels(project_id, zone, cluster_id, resource_labels, label_fingerprint)
1769
+ # response = cluster_manager_client.set_labels(resource_labels, label_fingerprint)
1992
1770
 
1993
1771
  def set_labels \
1994
- project_id,
1995
- zone,
1996
- cluster_id,
1997
1772
  resource_labels,
1998
1773
  label_fingerprint,
1774
+ project_id: nil,
1775
+ zone: nil,
1776
+ cluster_id: nil,
1999
1777
  name: nil,
2000
1778
  options: nil,
2001
1779
  &block
2002
1780
  req = {
1781
+ resource_labels: resource_labels,
1782
+ label_fingerprint: label_fingerprint,
2003
1783
  project_id: project_id,
2004
1784
  zone: zone,
2005
1785
  cluster_id: cluster_id,
2006
- resource_labels: resource_labels,
2007
- label_fingerprint: label_fingerprint,
2008
1786
  name: name
2009
1787
  }.delete_if { |_, v| v.nil? }
2010
1788
  req = Google::Gax::to_proto(req, Google::Container::V1::SetLabelsRequest)
@@ -2013,20 +1791,20 @@ module Google
2013
1791
 
2014
1792
  # Enables or disables the ABAC authorization mechanism on a cluster.
2015
1793
  #
1794
+ # @param enabled [true, false]
1795
+ # Required. Whether ABAC authorization will be enabled in the cluster.
2016
1796
  # @param project_id [String]
2017
- # Required. Deprecated. The Google Developers Console [project ID or project
1797
+ # Deprecated. The Google Developers Console [project ID or project
2018
1798
  # number](https://support.google.com/cloud/answer/6158840).
2019
1799
  # This field has been deprecated and replaced by the name field.
2020
1800
  # @param zone [String]
2021
- # Required. Deprecated. The name of the Google Compute Engine
1801
+ # Deprecated. The name of the Google Compute Engine
2022
1802
  # [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
2023
1803
  # resides.
2024
1804
  # This field has been deprecated and replaced by the name field.
2025
1805
  # @param cluster_id [String]
2026
- # Required. Deprecated. The name of the cluster to update.
1806
+ # Deprecated. The name of the cluster to update.
2027
1807
  # This field has been deprecated and replaced by the name field.
2028
- # @param enabled [true, false]
2029
- # Required. Whether ABAC authorization will be enabled in the cluster.
2030
1808
  # @param name [String]
2031
1809
  # The name (project, location, cluster id) of the cluster to set legacy abac.
2032
1810
  # Specified in the format 'projects/*/locations/*/clusters/*'.
@@ -2043,32 +1821,23 @@ module Google
2043
1821
  #
2044
1822
  # cluster_manager_client = Google::Cloud::Container.new(version: :v1)
2045
1823
  #
2046
- # # TODO: Initialize `project_id`:
2047
- # project_id = ''
2048
- #
2049
- # # TODO: Initialize `zone`:
2050
- # zone = ''
2051
- #
2052
- # # TODO: Initialize `cluster_id`:
2053
- # cluster_id = ''
2054
- #
2055
1824
  # # TODO: Initialize `enabled`:
2056
1825
  # enabled = false
2057
- # response = cluster_manager_client.set_legacy_abac(project_id, zone, cluster_id, enabled)
1826
+ # response = cluster_manager_client.set_legacy_abac(enabled)
2058
1827
 
2059
1828
  def set_legacy_abac \
2060
- project_id,
2061
- zone,
2062
- cluster_id,
2063
1829
  enabled,
1830
+ project_id: nil,
1831
+ zone: nil,
1832
+ cluster_id: nil,
2064
1833
  name: nil,
2065
1834
  options: nil,
2066
1835
  &block
2067
1836
  req = {
1837
+ enabled: enabled,
2068
1838
  project_id: project_id,
2069
1839
  zone: zone,
2070
1840
  cluster_id: cluster_id,
2071
- enabled: enabled,
2072
1841
  name: name
2073
1842
  }.delete_if { |_, v| v.nil? }
2074
1843
  req = Google::Gax::to_proto(req, Google::Container::V1::SetLegacyAbacRequest)
@@ -2078,16 +1847,16 @@ module Google
2078
1847
  # Starts master IP rotation.
2079
1848
  #
2080
1849
  # @param project_id [String]
2081
- # Required. Deprecated. The Google Developers Console [project ID or project
1850
+ # Deprecated. The Google Developers Console [project ID or project
2082
1851
  # number](https://developers.google.com/console/help/new/#projectnumber).
2083
1852
  # This field has been deprecated and replaced by the name field.
2084
1853
  # @param zone [String]
2085
- # Required. Deprecated. The name of the Google Compute Engine
1854
+ # Deprecated. The name of the Google Compute Engine
2086
1855
  # [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
2087
1856
  # resides.
2088
1857
  # This field has been deprecated and replaced by the name field.
2089
1858
  # @param cluster_id [String]
2090
- # Required. Deprecated. The name of the cluster.
1859
+ # Deprecated. The name of the cluster.
2091
1860
  # This field has been deprecated and replaced by the name field.
2092
1861
  # @param name [String]
2093
1862
  # The name (project, location, cluster id) of the cluster to start IP
@@ -2106,21 +1875,12 @@ module Google
2106
1875
  # require "google/cloud/container"
2107
1876
  #
2108
1877
  # cluster_manager_client = Google::Cloud::Container.new(version: :v1)
2109
- #
2110
- # # TODO: Initialize `project_id`:
2111
- # project_id = ''
2112
- #
2113
- # # TODO: Initialize `zone`:
2114
- # zone = ''
2115
- #
2116
- # # TODO: Initialize `cluster_id`:
2117
- # cluster_id = ''
2118
- # response = cluster_manager_client.start_ip_rotation(project_id, zone, cluster_id)
1878
+ # response = cluster_manager_client.start_ip_rotation
2119
1879
 
2120
1880
  def start_ip_rotation \
2121
- project_id,
2122
- zone,
2123
- cluster_id,
1881
+ project_id: nil,
1882
+ zone: nil,
1883
+ cluster_id: nil,
2124
1884
  name: nil,
2125
1885
  rotate_credentials: nil,
2126
1886
  options: nil,
@@ -2139,16 +1899,16 @@ module Google
2139
1899
  # Completes master IP rotation.
2140
1900
  #
2141
1901
  # @param project_id [String]
2142
- # Required. Deprecated. The Google Developers Console [project ID or project
1902
+ # Deprecated. The Google Developers Console [project ID or project
2143
1903
  # number](https://developers.google.com/console/help/new/#projectnumber).
2144
1904
  # This field has been deprecated and replaced by the name field.
2145
1905
  # @param zone [String]
2146
- # Required. Deprecated. The name of the Google Compute Engine
1906
+ # Deprecated. The name of the Google Compute Engine
2147
1907
  # [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
2148
1908
  # resides.
2149
1909
  # This field has been deprecated and replaced by the name field.
2150
1910
  # @param cluster_id [String]
2151
- # Required. Deprecated. The name of the cluster.
1911
+ # Deprecated. The name of the cluster.
2152
1912
  # This field has been deprecated and replaced by the name field.
2153
1913
  # @param name [String]
2154
1914
  # The name (project, location, cluster id) of the cluster to complete IP
@@ -2165,21 +1925,12 @@ module Google
2165
1925
  # require "google/cloud/container"
2166
1926
  #
2167
1927
  # cluster_manager_client = Google::Cloud::Container.new(version: :v1)
2168
- #
2169
- # # TODO: Initialize `project_id`:
2170
- # project_id = ''
2171
- #
2172
- # # TODO: Initialize `zone`:
2173
- # zone = ''
2174
- #
2175
- # # TODO: Initialize `cluster_id`:
2176
- # cluster_id = ''
2177
- # response = cluster_manager_client.complete_ip_rotation(project_id, zone, cluster_id)
1928
+ # response = cluster_manager_client.complete_ip_rotation
2178
1929
 
2179
1930
  def complete_ip_rotation \
2180
- project_id,
2181
- zone,
2182
- cluster_id,
1931
+ project_id: nil,
1932
+ zone: nil,
1933
+ cluster_id: nil,
2183
1934
  name: nil,
2184
1935
  options: nil,
2185
1936
  &block
@@ -2195,23 +1946,23 @@ module Google
2195
1946
 
2196
1947
  # Sets the size for a specific node pool.
2197
1948
  #
1949
+ # @param node_count [Integer]
1950
+ # Required. The desired node count for the pool.
2198
1951
  # @param project_id [String]
2199
- # Required. Deprecated. The Google Developers Console [project ID or project
1952
+ # Deprecated. The Google Developers Console [project ID or project
2200
1953
  # number](https://support.google.com/cloud/answer/6158840).
2201
1954
  # This field has been deprecated and replaced by the name field.
2202
1955
  # @param zone [String]
2203
- # Required. Deprecated. The name of the Google Compute Engine
1956
+ # Deprecated. The name of the Google Compute Engine
2204
1957
  # [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
2205
1958
  # resides.
2206
1959
  # This field has been deprecated and replaced by the name field.
2207
1960
  # @param cluster_id [String]
2208
- # Required. Deprecated. The name of the cluster to update.
1961
+ # Deprecated. The name of the cluster to update.
2209
1962
  # This field has been deprecated and replaced by the name field.
2210
1963
  # @param node_pool_id [String]
2211
- # Required. Deprecated. The name of the node pool to update.
1964
+ # Deprecated. The name of the node pool to update.
2212
1965
  # This field has been deprecated and replaced by the name field.
2213
- # @param node_count [Integer]
2214
- # Required. The desired node count for the pool.
2215
1966
  # @param name [String]
2216
1967
  # The name (project, location, cluster, node pool id) of the node pool to set
2217
1968
  # size.
@@ -2229,37 +1980,25 @@ module Google
2229
1980
  #
2230
1981
  # cluster_manager_client = Google::Cloud::Container.new(version: :v1)
2231
1982
  #
2232
- # # TODO: Initialize `project_id`:
2233
- # project_id = ''
2234
- #
2235
- # # TODO: Initialize `zone`:
2236
- # zone = ''
2237
- #
2238
- # # TODO: Initialize `cluster_id`:
2239
- # cluster_id = ''
2240
- #
2241
- # # TODO: Initialize `node_pool_id`:
2242
- # node_pool_id = ''
2243
- #
2244
1983
  # # TODO: Initialize `node_count`:
2245
1984
  # node_count = 0
2246
- # response = cluster_manager_client.set_node_pool_size(project_id, zone, cluster_id, node_pool_id, node_count)
1985
+ # response = cluster_manager_client.set_node_pool_size(node_count)
2247
1986
 
2248
1987
  def set_node_pool_size \
2249
- project_id,
2250
- zone,
2251
- cluster_id,
2252
- node_pool_id,
2253
1988
  node_count,
1989
+ project_id: nil,
1990
+ zone: nil,
1991
+ cluster_id: nil,
1992
+ node_pool_id: nil,
2254
1993
  name: nil,
2255
1994
  options: nil,
2256
1995
  &block
2257
1996
  req = {
1997
+ node_count: node_count,
2258
1998
  project_id: project_id,
2259
1999
  zone: zone,
2260
2000
  cluster_id: cluster_id,
2261
2001
  node_pool_id: node_pool_id,
2262
- node_count: node_count,
2263
2002
  name: name
2264
2003
  }.delete_if { |_, v| v.nil? }
2265
2004
  req = Google::Gax::to_proto(req, Google::Container::V1::SetNodePoolSizeRequest)
@@ -2268,22 +2007,22 @@ module Google
2268
2007
 
2269
2008
  # Enables or disables Network Policy for a cluster.
2270
2009
  #
2010
+ # @param network_policy [Google::Container::V1::NetworkPolicy | Hash]
2011
+ # Required. Configuration options for the NetworkPolicy feature.
2012
+ # A hash of the same form as `Google::Container::V1::NetworkPolicy`
2013
+ # can also be provided.
2271
2014
  # @param project_id [String]
2272
- # Required. Deprecated. The Google Developers Console [project ID or project
2015
+ # Deprecated. The Google Developers Console [project ID or project
2273
2016
  # number](https://developers.google.com/console/help/new/#projectnumber).
2274
2017
  # This field has been deprecated and replaced by the name field.
2275
2018
  # @param zone [String]
2276
- # Required. Deprecated. The name of the Google Compute Engine
2019
+ # Deprecated. The name of the Google Compute Engine
2277
2020
  # [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
2278
2021
  # resides.
2279
2022
  # This field has been deprecated and replaced by the name field.
2280
2023
  # @param cluster_id [String]
2281
- # Required. Deprecated. The name of the cluster.
2024
+ # Deprecated. The name of the cluster.
2282
2025
  # This field has been deprecated and replaced by the name field.
2283
- # @param network_policy [Google::Container::V1::NetworkPolicy | Hash]
2284
- # Required. Configuration options for the NetworkPolicy feature.
2285
- # A hash of the same form as `Google::Container::V1::NetworkPolicy`
2286
- # can also be provided.
2287
2026
  # @param name [String]
2288
2027
  # The name (project, location, cluster id) of the cluster to set networking
2289
2028
  # policy. Specified in the format 'projects/*/locations/*/clusters/*'.
@@ -2300,32 +2039,23 @@ module Google
2300
2039
  #
2301
2040
  # cluster_manager_client = Google::Cloud::Container.new(version: :v1)
2302
2041
  #
2303
- # # TODO: Initialize `project_id`:
2304
- # project_id = ''
2305
- #
2306
- # # TODO: Initialize `zone`:
2307
- # zone = ''
2308
- #
2309
- # # TODO: Initialize `cluster_id`:
2310
- # cluster_id = ''
2311
- #
2312
2042
  # # TODO: Initialize `network_policy`:
2313
2043
  # network_policy = {}
2314
- # response = cluster_manager_client.set_network_policy(project_id, zone, cluster_id, network_policy)
2044
+ # response = cluster_manager_client.set_network_policy(network_policy)
2315
2045
 
2316
2046
  def set_network_policy \
2317
- project_id,
2318
- zone,
2319
- cluster_id,
2320
2047
  network_policy,
2048
+ project_id: nil,
2049
+ zone: nil,
2050
+ cluster_id: nil,
2321
2051
  name: nil,
2322
2052
  options: nil,
2323
2053
  &block
2324
2054
  req = {
2055
+ network_policy: network_policy,
2325
2056
  project_id: project_id,
2326
2057
  zone: zone,
2327
2058
  cluster_id: cluster_id,
2328
- network_policy: network_policy,
2329
2059
  name: name
2330
2060
  }.delete_if { |_, v| v.nil? }
2331
2061
  req = Google::Gax::to_proto(req, Google::Container::V1::SetNetworkPolicyRequest)