google-cloud-container 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -5
- data/lib/google/cloud/container.rb +4 -4
- data/lib/google/cloud/container/v1.rb +4 -4
- data/lib/google/cloud/container/v1/cluster_manager_client.rb +117 -117
- data/lib/google/cloud/container/v1/doc/google/container/v1/cluster_service.rb +43 -43
- data/lib/google/cloud/container/v1/doc/google/protobuf/empty.rb +1 -1
- metadata +3 -4
- data/lib/google/cloud/container/v1/doc/overview.rb +0 -92
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 806daa890ef734d942b5944ca6c0f04ff8056676d980b1f1d7c71830d0fb3f25
|
4
|
+
data.tar.gz: 594ccca9aead4423d0ef3a894d807e679a41b7d21fa9e71d44b520affcc310df
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 99b3368b34ab644ba8fa0e063ec8608f841c3a17306d79d0862dc59b39305033eb6fe5163dba912e7e44288efbfbfbd5407e4a02168747a31d4681a4c0e22cb6
|
7
|
+
data.tar.gz: e0a409bbf37af8b7d6c30ab5412feb02d63e68748d4db546dac909408a6467e992b2064f1c4c400a4817b8eed13deafb565e8de494208c7a0264f3fc13e13da9
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Ruby Client for Google Container Engine API ([Beta](https://github.com/
|
1
|
+
# Ruby Client for Google Container Engine API ([Beta](https://github.com/googleapis/google-cloud-ruby#versioning))
|
2
2
|
|
3
3
|
[Google Container Engine API][Product Documentation]:
|
4
4
|
The Google Kubernetes Engine API is used for building and managing container
|
@@ -13,7 +13,7 @@ steps:
|
|
13
13
|
1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)
|
14
14
|
2. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project)
|
15
15
|
3. [Enable the Google Container Engine API.](https://console.cloud.google.com/apis/library/container.googleapis.com)
|
16
|
-
4. [Setup Authentication.](https://
|
16
|
+
4. [Setup Authentication.](https://googleapis.github.io/google-cloud-ruby/#/docs/google-cloud/master/guides/authentication)
|
17
17
|
|
18
18
|
### Installation
|
19
19
|
```
|
@@ -36,17 +36,17 @@ response = cluster_manager_client.list_clusters(project_id_2, zone)
|
|
36
36
|
to see other available methods on the client.
|
37
37
|
- Read the [Google Container Engine API Product documentation][Product Documentation]
|
38
38
|
to learn more about the product and see How-to Guides.
|
39
|
-
- View this [repository's main README](https://github.com/
|
39
|
+
- View this [repository's main README](https://github.com/googleapis/google-cloud-ruby/blob/master/README.md)
|
40
40
|
to see the full list of Cloud APIs that we cover.
|
41
41
|
|
42
|
-
[Client Library Documentation]: https://
|
42
|
+
[Client Library Documentation]: https://googleapis.github.io/google-cloud-ruby/#/docs/google-cloud-container/latest/google/container/v1
|
43
43
|
[Product Documentation]: https://cloud.google.com/kubernetes-engine
|
44
44
|
|
45
45
|
## Enabling Logging
|
46
46
|
|
47
47
|
To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
|
48
48
|
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/stdlib-2.5.0/libdoc/logger/rdoc/Logger.html) as shown below,
|
49
|
-
or a [`Google::Cloud::Logging::Logger`](https://
|
49
|
+
or a [`Google::Cloud::Logging::Logger`](https://googleapis.github.io/google-cloud-ruby/#/docs/google-cloud-logging/latest/google/cloud/logging/logger)
|
50
50
|
that will write logs to [Stackdriver Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
|
51
51
|
and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
|
52
52
|
|
@@ -21,7 +21,7 @@ module Google
|
|
21
21
|
# rubocop:disable LineLength
|
22
22
|
|
23
23
|
##
|
24
|
-
# # Ruby Client for Google Container Engine API ([Beta](https://github.com/
|
24
|
+
# # Ruby Client for Google Container Engine API ([Beta](https://github.com/googleapis/google-cloud-ruby#versioning))
|
25
25
|
#
|
26
26
|
# [Google Container Engine API][Product Documentation]:
|
27
27
|
# The Google Kubernetes Engine API is used for building and managing container
|
@@ -35,7 +35,7 @@ module Google
|
|
35
35
|
# 1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)
|
36
36
|
# 2. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project)
|
37
37
|
# 3. [Enable the Google Container Engine API.](https://console.cloud.google.com/apis/library/container.googleapis.com)
|
38
|
-
# 4. [Setup Authentication.](https://
|
38
|
+
# 4. [Setup Authentication.](https://googleapis.github.io/google-cloud-ruby/#/docs/google-cloud/master/guides/authentication)
|
39
39
|
#
|
40
40
|
# ### Installation
|
41
41
|
# ```
|
@@ -56,7 +56,7 @@ module Google
|
|
56
56
|
# ### Next Steps
|
57
57
|
# - Read the [Google Container Engine API Product documentation][Product Documentation]
|
58
58
|
# to learn more about the product and see How-to Guides.
|
59
|
-
# - View this [repository's main README](https://github.com/
|
59
|
+
# - View this [repository's main README](https://github.com/googleapis/google-cloud-ruby/blob/master/README.md)
|
60
60
|
# to see the full list of Cloud APIs that we cover.
|
61
61
|
#
|
62
62
|
# [Product Documentation]: https://cloud.google.com/kubernetes-engine
|
@@ -65,7 +65,7 @@ module Google
|
|
65
65
|
#
|
66
66
|
# To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
|
67
67
|
# The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/stdlib-2.5.0/libdoc/logger/rdoc/Logger.html) as shown below,
|
68
|
-
# or a [`Google::Cloud::Logging::Logger`](https://
|
68
|
+
# or a [`Google::Cloud::Logging::Logger`](https://googleapis.github.io/google-cloud-ruby/#/docs/google-cloud-logging/latest/google/cloud/logging/logger)
|
69
69
|
# that will write logs to [Stackdriver Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
|
70
70
|
# and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
|
71
71
|
#
|
@@ -21,7 +21,7 @@ module Google
|
|
21
21
|
# rubocop:disable LineLength
|
22
22
|
|
23
23
|
##
|
24
|
-
# # Ruby Client for Google Container Engine API ([Beta](https://github.com/
|
24
|
+
# # Ruby Client for Google Container Engine API ([Beta](https://github.com/googleapis/google-cloud-ruby#versioning))
|
25
25
|
#
|
26
26
|
# [Google Container Engine API][Product Documentation]:
|
27
27
|
# The Google Kubernetes Engine API is used for building and managing container
|
@@ -35,7 +35,7 @@ module Google
|
|
35
35
|
# 1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)
|
36
36
|
# 2. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project)
|
37
37
|
# 3. [Enable the Google Container Engine API.](https://console.cloud.google.com/apis/library/container.googleapis.com)
|
38
|
-
# 4. [Setup Authentication.](https://
|
38
|
+
# 4. [Setup Authentication.](https://googleapis.github.io/google-cloud-ruby/#/docs/google-cloud/master/guides/authentication)
|
39
39
|
#
|
40
40
|
# ### Installation
|
41
41
|
# ```
|
@@ -56,7 +56,7 @@ module Google
|
|
56
56
|
# ### Next Steps
|
57
57
|
# - Read the [Google Container Engine API Product documentation][Product Documentation]
|
58
58
|
# to learn more about the product and see How-to Guides.
|
59
|
-
# - View this [repository's main README](https://github.com/
|
59
|
+
# - View this [repository's main README](https://github.com/googleapis/google-cloud-ruby/blob/master/README.md)
|
60
60
|
# to see the full list of Cloud APIs that we cover.
|
61
61
|
#
|
62
62
|
# [Product Documentation]: https://cloud.google.com/kubernetes-engine
|
@@ -65,7 +65,7 @@ module Google
|
|
65
65
|
#
|
66
66
|
# To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
|
67
67
|
# The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/stdlib-2.5.0/libdoc/logger/rdoc/Logger.html) as shown below,
|
68
|
-
# or a [`Google::Cloud::Logging::Logger`](https://
|
68
|
+
# or a [`Google::Cloud::Logging::Logger`](https://googleapis.github.io/google-cloud-ruby/#/docs/google-cloud-logging/latest/google/cloud/logging/logger)
|
69
69
|
# that will write logs to [Stackdriver Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
|
70
70
|
# and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
|
71
71
|
#
|
@@ -337,10 +337,10 @@ module Google
|
|
337
337
|
#
|
338
338
|
# cluster_manager_client = Google::Cloud::Container.new(version: :v1)
|
339
339
|
#
|
340
|
-
# # TODO: Initialize
|
340
|
+
# # TODO: Initialize `project_id`:
|
341
341
|
# project_id = ''
|
342
342
|
#
|
343
|
-
# # TODO: Initialize
|
343
|
+
# # TODO: Initialize `zone`:
|
344
344
|
# zone = ''
|
345
345
|
# response = cluster_manager_client.list_clusters(project_id, zone)
|
346
346
|
|
@@ -381,13 +381,13 @@ module Google
|
|
381
381
|
#
|
382
382
|
# cluster_manager_client = Google::Cloud::Container.new(version: :v1)
|
383
383
|
#
|
384
|
-
# # TODO: Initialize
|
384
|
+
# # TODO: Initialize `project_id`:
|
385
385
|
# project_id = ''
|
386
386
|
#
|
387
|
-
# # TODO: Initialize
|
387
|
+
# # TODO: Initialize `zone`:
|
388
388
|
# zone = ''
|
389
389
|
#
|
390
|
-
# # TODO: Initialize
|
390
|
+
# # TODO: Initialize `cluster_id`:
|
391
391
|
# cluster_id = ''
|
392
392
|
# response = cluster_manager_client.get_cluster(project_id, zone, cluster_id)
|
393
393
|
|
@@ -445,13 +445,13 @@ module Google
|
|
445
445
|
#
|
446
446
|
# cluster_manager_client = Google::Cloud::Container.new(version: :v1)
|
447
447
|
#
|
448
|
-
# # TODO: Initialize
|
448
|
+
# # TODO: Initialize `project_id`:
|
449
449
|
# project_id = ''
|
450
450
|
#
|
451
|
-
# # TODO: Initialize
|
451
|
+
# # TODO: Initialize `zone`:
|
452
452
|
# zone = ''
|
453
453
|
#
|
454
|
-
# # TODO: Initialize
|
454
|
+
# # TODO: Initialize `cluster`:
|
455
455
|
# cluster = {}
|
456
456
|
# response = cluster_manager_client.create_cluster(project_id, zone, cluster)
|
457
457
|
|
@@ -498,16 +498,16 @@ module Google
|
|
498
498
|
#
|
499
499
|
# cluster_manager_client = Google::Cloud::Container.new(version: :v1)
|
500
500
|
#
|
501
|
-
# # TODO: Initialize
|
501
|
+
# # TODO: Initialize `project_id`:
|
502
502
|
# project_id = ''
|
503
503
|
#
|
504
|
-
# # TODO: Initialize
|
504
|
+
# # TODO: Initialize `zone`:
|
505
505
|
# zone = ''
|
506
506
|
#
|
507
|
-
# # TODO: Initialize
|
507
|
+
# # TODO: Initialize `cluster_id`:
|
508
508
|
# cluster_id = ''
|
509
509
|
#
|
510
|
-
# # TODO: Initialize
|
510
|
+
# # TODO: Initialize `update`:
|
511
511
|
# update = {}
|
512
512
|
# response = cluster_manager_client.update_cluster(project_id, zone, cluster_id, update)
|
513
513
|
|
@@ -543,7 +543,7 @@ module Google
|
|
543
543
|
# The name of the node pool to upgrade.
|
544
544
|
# @param node_version [String]
|
545
545
|
# The Kubernetes version to change the nodes to (typically an
|
546
|
-
# upgrade). Use
|
546
|
+
# upgrade). Use `-` to upgrade to the latest version supported by
|
547
547
|
# the server.
|
548
548
|
# @param image_type [String]
|
549
549
|
# The desired image type for the node pool.
|
@@ -560,22 +560,22 @@ module Google
|
|
560
560
|
#
|
561
561
|
# cluster_manager_client = Google::Cloud::Container.new(version: :v1)
|
562
562
|
#
|
563
|
-
# # TODO: Initialize
|
563
|
+
# # TODO: Initialize `project_id`:
|
564
564
|
# project_id = ''
|
565
565
|
#
|
566
|
-
# # TODO: Initialize
|
566
|
+
# # TODO: Initialize `zone`:
|
567
567
|
# zone = ''
|
568
568
|
#
|
569
|
-
# # TODO: Initialize
|
569
|
+
# # TODO: Initialize `cluster_id`:
|
570
570
|
# cluster_id = ''
|
571
571
|
#
|
572
|
-
# # TODO: Initialize
|
572
|
+
# # TODO: Initialize `node_pool_id`:
|
573
573
|
# node_pool_id = ''
|
574
574
|
#
|
575
|
-
# # TODO: Initialize
|
575
|
+
# # TODO: Initialize `node_version`:
|
576
576
|
# node_version = ''
|
577
577
|
#
|
578
|
-
# # TODO: Initialize
|
578
|
+
# # TODO: Initialize `image_type`:
|
579
579
|
# image_type = ''
|
580
580
|
# response = cluster_manager_client.update_node_pool(project_id, zone, cluster_id, node_pool_id, node_version, image_type)
|
581
581
|
|
@@ -630,19 +630,19 @@ module Google
|
|
630
630
|
#
|
631
631
|
# cluster_manager_client = Google::Cloud::Container.new(version: :v1)
|
632
632
|
#
|
633
|
-
# # TODO: Initialize
|
633
|
+
# # TODO: Initialize `project_id`:
|
634
634
|
# project_id = ''
|
635
635
|
#
|
636
|
-
# # TODO: Initialize
|
636
|
+
# # TODO: Initialize `zone`:
|
637
637
|
# zone = ''
|
638
638
|
#
|
639
|
-
# # TODO: Initialize
|
639
|
+
# # TODO: Initialize `cluster_id`:
|
640
640
|
# cluster_id = ''
|
641
641
|
#
|
642
|
-
# # TODO: Initialize
|
642
|
+
# # TODO: Initialize `node_pool_id`:
|
643
643
|
# node_pool_id = ''
|
644
644
|
#
|
645
|
-
# # TODO: Initialize
|
645
|
+
# # TODO: Initialize `autoscaling`:
|
646
646
|
# autoscaling = {}
|
647
647
|
# response = cluster_manager_client.set_node_pool_autoscaling(project_id, zone, cluster_id, node_pool_id, autoscaling)
|
648
648
|
|
@@ -695,16 +695,16 @@ module Google
|
|
695
695
|
#
|
696
696
|
# cluster_manager_client = Google::Cloud::Container.new(version: :v1)
|
697
697
|
#
|
698
|
-
# # TODO: Initialize
|
698
|
+
# # TODO: Initialize `project_id`:
|
699
699
|
# project_id = ''
|
700
700
|
#
|
701
|
-
# # TODO: Initialize
|
701
|
+
# # TODO: Initialize `zone`:
|
702
702
|
# zone = ''
|
703
703
|
#
|
704
|
-
# # TODO: Initialize
|
704
|
+
# # TODO: Initialize `cluster_id`:
|
705
705
|
# cluster_id = ''
|
706
706
|
#
|
707
|
-
# # TODO: Initialize
|
707
|
+
# # TODO: Initialize `logging_service`:
|
708
708
|
# logging_service = ''
|
709
709
|
# response = cluster_manager_client.set_logging_service(project_id, zone, cluster_id, logging_service)
|
710
710
|
|
@@ -755,16 +755,16 @@ module Google
|
|
755
755
|
#
|
756
756
|
# cluster_manager_client = Google::Cloud::Container.new(version: :v1)
|
757
757
|
#
|
758
|
-
# # TODO: Initialize
|
758
|
+
# # TODO: Initialize `project_id`:
|
759
759
|
# project_id = ''
|
760
760
|
#
|
761
|
-
# # TODO: Initialize
|
761
|
+
# # TODO: Initialize `zone`:
|
762
762
|
# zone = ''
|
763
763
|
#
|
764
|
-
# # TODO: Initialize
|
764
|
+
# # TODO: Initialize `cluster_id`:
|
765
765
|
# cluster_id = ''
|
766
766
|
#
|
767
|
-
# # TODO: Initialize
|
767
|
+
# # TODO: Initialize `monitoring_service`:
|
768
768
|
# monitoring_service = ''
|
769
769
|
# response = cluster_manager_client.set_monitoring_service(project_id, zone, cluster_id, monitoring_service)
|
770
770
|
|
@@ -814,16 +814,16 @@ module Google
|
|
814
814
|
#
|
815
815
|
# cluster_manager_client = Google::Cloud::Container.new(version: :v1)
|
816
816
|
#
|
817
|
-
# # TODO: Initialize
|
817
|
+
# # TODO: Initialize `project_id`:
|
818
818
|
# project_id = ''
|
819
819
|
#
|
820
|
-
# # TODO: Initialize
|
820
|
+
# # TODO: Initialize `zone`:
|
821
821
|
# zone = ''
|
822
822
|
#
|
823
|
-
# # TODO: Initialize
|
823
|
+
# # TODO: Initialize `cluster_id`:
|
824
824
|
# cluster_id = ''
|
825
825
|
#
|
826
|
-
# # TODO: Initialize
|
826
|
+
# # TODO: Initialize `addons_config`:
|
827
827
|
# addons_config = {}
|
828
828
|
# response = cluster_manager_client.set_addons_config(project_id, zone, cluster_id, addons_config)
|
829
829
|
|
@@ -876,16 +876,16 @@ module Google
|
|
876
876
|
#
|
877
877
|
# cluster_manager_client = Google::Cloud::Container.new(version: :v1)
|
878
878
|
#
|
879
|
-
# # TODO: Initialize
|
879
|
+
# # TODO: Initialize `project_id`:
|
880
880
|
# project_id = ''
|
881
881
|
#
|
882
|
-
# # TODO: Initialize
|
882
|
+
# # TODO: Initialize `zone`:
|
883
883
|
# zone = ''
|
884
884
|
#
|
885
|
-
# # TODO: Initialize
|
885
|
+
# # TODO: Initialize `cluster_id`:
|
886
886
|
# cluster_id = ''
|
887
887
|
#
|
888
|
-
# # TODO: Initialize
|
888
|
+
# # TODO: Initialize `locations`:
|
889
889
|
# locations = []
|
890
890
|
# response = cluster_manager_client.set_locations(project_id, zone, cluster_id, locations)
|
891
891
|
|
@@ -934,16 +934,16 @@ module Google
|
|
934
934
|
#
|
935
935
|
# cluster_manager_client = Google::Cloud::Container.new(version: :v1)
|
936
936
|
#
|
937
|
-
# # TODO: Initialize
|
937
|
+
# # TODO: Initialize `project_id`:
|
938
938
|
# project_id = ''
|
939
939
|
#
|
940
|
-
# # TODO: Initialize
|
940
|
+
# # TODO: Initialize `zone`:
|
941
941
|
# zone = ''
|
942
942
|
#
|
943
|
-
# # TODO: Initialize
|
943
|
+
# # TODO: Initialize `cluster_id`:
|
944
944
|
# cluster_id = ''
|
945
945
|
#
|
946
|
-
# # TODO: Initialize
|
946
|
+
# # TODO: Initialize `master_version`:
|
947
947
|
# master_version = ''
|
948
948
|
# response = cluster_manager_client.update_master(project_id, zone, cluster_id, master_version)
|
949
949
|
|
@@ -996,19 +996,19 @@ module Google
|
|
996
996
|
#
|
997
997
|
# cluster_manager_client = Google::Cloud::Container.new(version: :v1)
|
998
998
|
#
|
999
|
-
# # TODO: Initialize
|
999
|
+
# # TODO: Initialize `project_id`:
|
1000
1000
|
# project_id = ''
|
1001
1001
|
#
|
1002
|
-
# # TODO: Initialize
|
1002
|
+
# # TODO: Initialize `zone`:
|
1003
1003
|
# zone = ''
|
1004
1004
|
#
|
1005
|
-
# # TODO: Initialize
|
1005
|
+
# # TODO: Initialize `cluster_id`:
|
1006
1006
|
# cluster_id = ''
|
1007
1007
|
#
|
1008
|
-
# # TODO: Initialize
|
1008
|
+
# # TODO: Initialize `action`:
|
1009
1009
|
# action = :UNKNOWN
|
1010
1010
|
#
|
1011
|
-
# # TODO: Initialize
|
1011
|
+
# # TODO: Initialize `update`:
|
1012
1012
|
# update = {}
|
1013
1013
|
# response = cluster_manager_client.set_master_auth(project_id, zone, cluster_id, action, update)
|
1014
1014
|
|
@@ -1063,13 +1063,13 @@ module Google
|
|
1063
1063
|
#
|
1064
1064
|
# cluster_manager_client = Google::Cloud::Container.new(version: :v1)
|
1065
1065
|
#
|
1066
|
-
# # TODO: Initialize
|
1066
|
+
# # TODO: Initialize `project_id`:
|
1067
1067
|
# project_id = ''
|
1068
1068
|
#
|
1069
|
-
# # TODO: Initialize
|
1069
|
+
# # TODO: Initialize `zone`:
|
1070
1070
|
# zone = ''
|
1071
1071
|
#
|
1072
|
-
# # TODO: Initialize
|
1072
|
+
# # TODO: Initialize `cluster_id`:
|
1073
1073
|
# cluster_id = ''
|
1074
1074
|
# response = cluster_manager_client.delete_cluster(project_id, zone, cluster_id)
|
1075
1075
|
|
@@ -1095,7 +1095,7 @@ module Google
|
|
1095
1095
|
# number](https://support.google.com/cloud/answer/6158840).
|
1096
1096
|
# @param zone [String]
|
1097
1097
|
# The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available)
|
1098
|
-
# to return operations for, or
|
1098
|
+
# to return operations for, or `-` for all zones.
|
1099
1099
|
# @param options [Google::Gax::CallOptions]
|
1100
1100
|
# Overrides the default settings for this call, e.g, timeout,
|
1101
1101
|
# retries, etc.
|
@@ -1109,10 +1109,10 @@ module Google
|
|
1109
1109
|
#
|
1110
1110
|
# cluster_manager_client = Google::Cloud::Container.new(version: :v1)
|
1111
1111
|
#
|
1112
|
-
# # TODO: Initialize
|
1112
|
+
# # TODO: Initialize `project_id`:
|
1113
1113
|
# project_id = ''
|
1114
1114
|
#
|
1115
|
-
# # TODO: Initialize
|
1115
|
+
# # TODO: Initialize `zone`:
|
1116
1116
|
# zone = ''
|
1117
1117
|
# response = cluster_manager_client.list_operations(project_id, zone)
|
1118
1118
|
|
@@ -1139,7 +1139,7 @@ module Google
|
|
1139
1139
|
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
|
1140
1140
|
# resides.
|
1141
1141
|
# @param operation_id [String]
|
1142
|
-
# The server-assigned
|
1142
|
+
# The server-assigned `name` of the operation.
|
1143
1143
|
# @param options [Google::Gax::CallOptions]
|
1144
1144
|
# Overrides the default settings for this call, e.g, timeout,
|
1145
1145
|
# retries, etc.
|
@@ -1153,13 +1153,13 @@ module Google
|
|
1153
1153
|
#
|
1154
1154
|
# cluster_manager_client = Google::Cloud::Container.new(version: :v1)
|
1155
1155
|
#
|
1156
|
-
# # TODO: Initialize
|
1156
|
+
# # TODO: Initialize `project_id`:
|
1157
1157
|
# project_id = ''
|
1158
1158
|
#
|
1159
|
-
# # TODO: Initialize
|
1159
|
+
# # TODO: Initialize `zone`:
|
1160
1160
|
# zone = ''
|
1161
1161
|
#
|
1162
|
-
# # TODO: Initialize
|
1162
|
+
# # TODO: Initialize `operation_id`:
|
1163
1163
|
# operation_id = ''
|
1164
1164
|
# response = cluster_manager_client.get_operation(project_id, zone, operation_id)
|
1165
1165
|
|
@@ -1187,7 +1187,7 @@ module Google
|
|
1187
1187
|
# The name of the Google Compute Engine
|
1188
1188
|
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the operation resides.
|
1189
1189
|
# @param operation_id [String]
|
1190
|
-
# The server-assigned
|
1190
|
+
# The server-assigned `name` of the operation.
|
1191
1191
|
# @param options [Google::Gax::CallOptions]
|
1192
1192
|
# Overrides the default settings for this call, e.g, timeout,
|
1193
1193
|
# retries, etc.
|
@@ -1200,13 +1200,13 @@ module Google
|
|
1200
1200
|
#
|
1201
1201
|
# cluster_manager_client = Google::Cloud::Container.new(version: :v1)
|
1202
1202
|
#
|
1203
|
-
# # TODO: Initialize
|
1203
|
+
# # TODO: Initialize `project_id`:
|
1204
1204
|
# project_id = ''
|
1205
1205
|
#
|
1206
|
-
# # TODO: Initialize
|
1206
|
+
# # TODO: Initialize `zone`:
|
1207
1207
|
# zone = ''
|
1208
1208
|
#
|
1209
|
-
# # TODO: Initialize
|
1209
|
+
# # TODO: Initialize `operation_id`:
|
1210
1210
|
# operation_id = ''
|
1211
1211
|
# cluster_manager_client.cancel_operation(project_id, zone, operation_id)
|
1212
1212
|
|
@@ -1247,10 +1247,10 @@ module Google
|
|
1247
1247
|
#
|
1248
1248
|
# cluster_manager_client = Google::Cloud::Container.new(version: :v1)
|
1249
1249
|
#
|
1250
|
-
# # TODO: Initialize
|
1250
|
+
# # TODO: Initialize `project_id`:
|
1251
1251
|
# project_id = ''
|
1252
1252
|
#
|
1253
|
-
# # TODO: Initialize
|
1253
|
+
# # TODO: Initialize `zone`:
|
1254
1254
|
# zone = ''
|
1255
1255
|
# response = cluster_manager_client.get_server_config(project_id, zone)
|
1256
1256
|
|
@@ -1291,13 +1291,13 @@ module Google
|
|
1291
1291
|
#
|
1292
1292
|
# cluster_manager_client = Google::Cloud::Container.new(version: :v1)
|
1293
1293
|
#
|
1294
|
-
# # TODO: Initialize
|
1294
|
+
# # TODO: Initialize `project_id`:
|
1295
1295
|
# project_id = ''
|
1296
1296
|
#
|
1297
|
-
# # TODO: Initialize
|
1297
|
+
# # TODO: Initialize `zone`:
|
1298
1298
|
# zone = ''
|
1299
1299
|
#
|
1300
|
-
# # TODO: Initialize
|
1300
|
+
# # TODO: Initialize `cluster_id`:
|
1301
1301
|
# cluster_id = ''
|
1302
1302
|
# response = cluster_manager_client.list_node_pools(project_id, zone, cluster_id)
|
1303
1303
|
|
@@ -1342,16 +1342,16 @@ module Google
|
|
1342
1342
|
#
|
1343
1343
|
# cluster_manager_client = Google::Cloud::Container.new(version: :v1)
|
1344
1344
|
#
|
1345
|
-
# # TODO: Initialize
|
1345
|
+
# # TODO: Initialize `project_id`:
|
1346
1346
|
# project_id = ''
|
1347
1347
|
#
|
1348
|
-
# # TODO: Initialize
|
1348
|
+
# # TODO: Initialize `zone`:
|
1349
1349
|
# zone = ''
|
1350
1350
|
#
|
1351
|
-
# # TODO: Initialize
|
1351
|
+
# # TODO: Initialize `cluster_id`:
|
1352
1352
|
# cluster_id = ''
|
1353
1353
|
#
|
1354
|
-
# # TODO: Initialize
|
1354
|
+
# # TODO: Initialize `node_pool_id`:
|
1355
1355
|
# node_pool_id = ''
|
1356
1356
|
# response = cluster_manager_client.get_node_pool(project_id, zone, cluster_id, node_pool_id)
|
1357
1357
|
|
@@ -1400,16 +1400,16 @@ module Google
|
|
1400
1400
|
#
|
1401
1401
|
# cluster_manager_client = Google::Cloud::Container.new(version: :v1)
|
1402
1402
|
#
|
1403
|
-
# # TODO: Initialize
|
1403
|
+
# # TODO: Initialize `project_id`:
|
1404
1404
|
# project_id = ''
|
1405
1405
|
#
|
1406
|
-
# # TODO: Initialize
|
1406
|
+
# # TODO: Initialize `zone`:
|
1407
1407
|
# zone = ''
|
1408
1408
|
#
|
1409
|
-
# # TODO: Initialize
|
1409
|
+
# # TODO: Initialize `cluster_id`:
|
1410
1410
|
# cluster_id = ''
|
1411
1411
|
#
|
1412
|
-
# # TODO: Initialize
|
1412
|
+
# # TODO: Initialize `node_pool`:
|
1413
1413
|
# node_pool = {}
|
1414
1414
|
# response = cluster_manager_client.create_node_pool(project_id, zone, cluster_id, node_pool)
|
1415
1415
|
|
@@ -1456,16 +1456,16 @@ module Google
|
|
1456
1456
|
#
|
1457
1457
|
# cluster_manager_client = Google::Cloud::Container.new(version: :v1)
|
1458
1458
|
#
|
1459
|
-
# # TODO: Initialize
|
1459
|
+
# # TODO: Initialize `project_id`:
|
1460
1460
|
# project_id = ''
|
1461
1461
|
#
|
1462
|
-
# # TODO: Initialize
|
1462
|
+
# # TODO: Initialize `zone`:
|
1463
1463
|
# zone = ''
|
1464
1464
|
#
|
1465
|
-
# # TODO: Initialize
|
1465
|
+
# # TODO: Initialize `cluster_id`:
|
1466
1466
|
# cluster_id = ''
|
1467
1467
|
#
|
1468
|
-
# # TODO: Initialize
|
1468
|
+
# # TODO: Initialize `node_pool_id`:
|
1469
1469
|
# node_pool_id = ''
|
1470
1470
|
# response = cluster_manager_client.delete_node_pool(project_id, zone, cluster_id, node_pool_id)
|
1471
1471
|
|
@@ -1513,16 +1513,16 @@ module Google
|
|
1513
1513
|
#
|
1514
1514
|
# cluster_manager_client = Google::Cloud::Container.new(version: :v1)
|
1515
1515
|
#
|
1516
|
-
# # TODO: Initialize
|
1516
|
+
# # TODO: Initialize `project_id`:
|
1517
1517
|
# project_id = ''
|
1518
1518
|
#
|
1519
|
-
# # TODO: Initialize
|
1519
|
+
# # TODO: Initialize `zone`:
|
1520
1520
|
# zone = ''
|
1521
1521
|
#
|
1522
|
-
# # TODO: Initialize
|
1522
|
+
# # TODO: Initialize `cluster_id`:
|
1523
1523
|
# cluster_id = ''
|
1524
1524
|
#
|
1525
|
-
# # TODO: Initialize
|
1525
|
+
# # TODO: Initialize `node_pool_id`:
|
1526
1526
|
# node_pool_id = ''
|
1527
1527
|
# response = cluster_manager_client.rollback_node_pool_upgrade(project_id, zone, cluster_id, node_pool_id)
|
1528
1528
|
|
@@ -1573,19 +1573,19 @@ module Google
|
|
1573
1573
|
#
|
1574
1574
|
# cluster_manager_client = Google::Cloud::Container.new(version: :v1)
|
1575
1575
|
#
|
1576
|
-
# # TODO: Initialize
|
1576
|
+
# # TODO: Initialize `project_id`:
|
1577
1577
|
# project_id = ''
|
1578
1578
|
#
|
1579
|
-
# # TODO: Initialize
|
1579
|
+
# # TODO: Initialize `zone`:
|
1580
1580
|
# zone = ''
|
1581
1581
|
#
|
1582
|
-
# # TODO: Initialize
|
1582
|
+
# # TODO: Initialize `cluster_id`:
|
1583
1583
|
# cluster_id = ''
|
1584
1584
|
#
|
1585
|
-
# # TODO: Initialize
|
1585
|
+
# # TODO: Initialize `node_pool_id`:
|
1586
1586
|
# node_pool_id = ''
|
1587
1587
|
#
|
1588
|
-
# # TODO: Initialize
|
1588
|
+
# # TODO: Initialize `management`:
|
1589
1589
|
# management = {}
|
1590
1590
|
# response = cluster_manager_client.set_node_pool_management(project_id, zone, cluster_id, node_pool_id, management)
|
1591
1591
|
|
@@ -1641,19 +1641,19 @@ module Google
|
|
1641
1641
|
#
|
1642
1642
|
# cluster_manager_client = Google::Cloud::Container.new(version: :v1)
|
1643
1643
|
#
|
1644
|
-
# # TODO: Initialize
|
1644
|
+
# # TODO: Initialize `project_id`:
|
1645
1645
|
# project_id = ''
|
1646
1646
|
#
|
1647
|
-
# # TODO: Initialize
|
1647
|
+
# # TODO: Initialize `zone`:
|
1648
1648
|
# zone = ''
|
1649
1649
|
#
|
1650
|
-
# # TODO: Initialize
|
1650
|
+
# # TODO: Initialize `cluster_id`:
|
1651
1651
|
# cluster_id = ''
|
1652
1652
|
#
|
1653
|
-
# # TODO: Initialize
|
1653
|
+
# # TODO: Initialize `resource_labels`:
|
1654
1654
|
# resource_labels = {}
|
1655
1655
|
#
|
1656
|
-
# # TODO: Initialize
|
1656
|
+
# # TODO: Initialize `label_fingerprint`:
|
1657
1657
|
# label_fingerprint = ''
|
1658
1658
|
# response = cluster_manager_client.set_labels(project_id, zone, cluster_id, resource_labels, label_fingerprint)
|
1659
1659
|
|
@@ -1702,16 +1702,16 @@ module Google
|
|
1702
1702
|
#
|
1703
1703
|
# cluster_manager_client = Google::Cloud::Container.new(version: :v1)
|
1704
1704
|
#
|
1705
|
-
# # TODO: Initialize
|
1705
|
+
# # TODO: Initialize `project_id`:
|
1706
1706
|
# project_id = ''
|
1707
1707
|
#
|
1708
|
-
# # TODO: Initialize
|
1708
|
+
# # TODO: Initialize `zone`:
|
1709
1709
|
# zone = ''
|
1710
1710
|
#
|
1711
|
-
# # TODO: Initialize
|
1711
|
+
# # TODO: Initialize `cluster_id`:
|
1712
1712
|
# cluster_id = ''
|
1713
1713
|
#
|
1714
|
-
# # TODO: Initialize
|
1714
|
+
# # TODO: Initialize `enabled`:
|
1715
1715
|
# enabled = false
|
1716
1716
|
# response = cluster_manager_client.set_legacy_abac(project_id, zone, cluster_id, enabled)
|
1717
1717
|
|
@@ -1756,13 +1756,13 @@ module Google
|
|
1756
1756
|
#
|
1757
1757
|
# cluster_manager_client = Google::Cloud::Container.new(version: :v1)
|
1758
1758
|
#
|
1759
|
-
# # TODO: Initialize
|
1759
|
+
# # TODO: Initialize `project_id`:
|
1760
1760
|
# project_id = ''
|
1761
1761
|
#
|
1762
|
-
# # TODO: Initialize
|
1762
|
+
# # TODO: Initialize `zone`:
|
1763
1763
|
# zone = ''
|
1764
1764
|
#
|
1765
|
-
# # TODO: Initialize
|
1765
|
+
# # TODO: Initialize `cluster_id`:
|
1766
1766
|
# cluster_id = ''
|
1767
1767
|
# response = cluster_manager_client.start_ip_rotation(project_id, zone, cluster_id)
|
1768
1768
|
|
@@ -1805,13 +1805,13 @@ module Google
|
|
1805
1805
|
#
|
1806
1806
|
# cluster_manager_client = Google::Cloud::Container.new(version: :v1)
|
1807
1807
|
#
|
1808
|
-
# # TODO: Initialize
|
1808
|
+
# # TODO: Initialize `project_id`:
|
1809
1809
|
# project_id = ''
|
1810
1810
|
#
|
1811
|
-
# # TODO: Initialize
|
1811
|
+
# # TODO: Initialize `zone`:
|
1812
1812
|
# zone = ''
|
1813
1813
|
#
|
1814
|
-
# # TODO: Initialize
|
1814
|
+
# # TODO: Initialize `cluster_id`:
|
1815
1815
|
# cluster_id = ''
|
1816
1816
|
# response = cluster_manager_client.complete_ip_rotation(project_id, zone, cluster_id)
|
1817
1817
|
|
@@ -1858,19 +1858,19 @@ module Google
|
|
1858
1858
|
#
|
1859
1859
|
# cluster_manager_client = Google::Cloud::Container.new(version: :v1)
|
1860
1860
|
#
|
1861
|
-
# # TODO: Initialize
|
1861
|
+
# # TODO: Initialize `project_id`:
|
1862
1862
|
# project_id = ''
|
1863
1863
|
#
|
1864
|
-
# # TODO: Initialize
|
1864
|
+
# # TODO: Initialize `zone`:
|
1865
1865
|
# zone = ''
|
1866
1866
|
#
|
1867
|
-
# # TODO: Initialize
|
1867
|
+
# # TODO: Initialize `cluster_id`:
|
1868
1868
|
# cluster_id = ''
|
1869
1869
|
#
|
1870
|
-
# # TODO: Initialize
|
1870
|
+
# # TODO: Initialize `node_pool_id`:
|
1871
1871
|
# node_pool_id = ''
|
1872
1872
|
#
|
1873
|
-
# # TODO: Initialize
|
1873
|
+
# # TODO: Initialize `node_count`:
|
1874
1874
|
# node_count = 0
|
1875
1875
|
# response = cluster_manager_client.set_node_pool_size(project_id, zone, cluster_id, node_pool_id, node_count)
|
1876
1876
|
|
@@ -1921,16 +1921,16 @@ module Google
|
|
1921
1921
|
#
|
1922
1922
|
# cluster_manager_client = Google::Cloud::Container.new(version: :v1)
|
1923
1923
|
#
|
1924
|
-
# # TODO: Initialize
|
1924
|
+
# # TODO: Initialize `project_id`:
|
1925
1925
|
# project_id = ''
|
1926
1926
|
#
|
1927
|
-
# # TODO: Initialize
|
1927
|
+
# # TODO: Initialize `zone`:
|
1928
1928
|
# zone = ''
|
1929
1929
|
#
|
1930
|
-
# # TODO: Initialize
|
1930
|
+
# # TODO: Initialize `cluster_id`:
|
1931
1931
|
# cluster_id = ''
|
1932
1932
|
#
|
1933
|
-
# # TODO: Initialize
|
1933
|
+
# # TODO: Initialize `network_policy`:
|
1934
1934
|
# network_policy = {}
|
1935
1935
|
# response = cluster_manager_client.set_network_policy(project_id, zone, cluster_id, network_policy)
|
1936
1936
|
|
@@ -1980,16 +1980,16 @@ module Google
|
|
1980
1980
|
#
|
1981
1981
|
# cluster_manager_client = Google::Cloud::Container.new(version: :v1)
|
1982
1982
|
#
|
1983
|
-
# # TODO: Initialize
|
1983
|
+
# # TODO: Initialize `project_id`:
|
1984
1984
|
# project_id = ''
|
1985
1985
|
#
|
1986
|
-
# # TODO: Initialize
|
1986
|
+
# # TODO: Initialize `zone`:
|
1987
1987
|
# zone = ''
|
1988
1988
|
#
|
1989
|
-
# # TODO: Initialize
|
1989
|
+
# # TODO: Initialize `cluster_id`:
|
1990
1990
|
# cluster_id = ''
|
1991
1991
|
#
|
1992
|
-
# # TODO: Initialize
|
1992
|
+
# # TODO: Initialize `maintenance_policy`:
|
1993
1993
|
# maintenance_policy = {}
|
1994
1994
|
# response = cluster_manager_client.set_maintenance_policy(project_id, zone, cluster_id, maintenance_policy)
|
1995
1995
|
|
@@ -21,10 +21,10 @@ module Google
|
|
21
21
|
# @return [String]
|
22
22
|
# The name of a Google Compute Engine [machine
|
23
23
|
# type](/compute/docs/machine-types) (e.g.
|
24
|
-
#
|
24
|
+
# `n1-standard-1`).
|
25
25
|
#
|
26
26
|
# If unspecified, the default machine type is
|
27
|
-
#
|
27
|
+
# `n1-standard-1`.
|
28
28
|
# @!attribute [rw] disk_size_gb
|
29
29
|
# @return [Integer]
|
30
30
|
# Size of the disk attached to each node, specified in GB.
|
@@ -39,9 +39,9 @@ module Google
|
|
39
39
|
# The following scopes are recommended, but not required, and by default are
|
40
40
|
# not included:
|
41
41
|
#
|
42
|
-
# *
|
42
|
+
# * `https://www.googleapis.com/auth/compute` is required for mounting
|
43
43
|
# persistent storage on your nodes.
|
44
|
-
# *
|
44
|
+
# * `https://www.googleapis.com/auth/devstorage.read_only` is required for
|
45
45
|
# communicating with **gcr.io**
|
46
46
|
# (the [Google Container Registry](https://cloud.google.com/container-registry/)).
|
47
47
|
#
|
@@ -266,10 +266,10 @@ module Google
|
|
266
266
|
# @return [true, false]
|
267
267
|
# Whether a new subnetwork will be created automatically for the cluster.
|
268
268
|
#
|
269
|
-
# This field is only applicable when
|
269
|
+
# This field is only applicable when `use_ip_aliases` is true.
|
270
270
|
# @!attribute [rw] subnetwork_name
|
271
271
|
# @return [String]
|
272
|
-
# A custom subnetwork name to be used if
|
272
|
+
# A custom subnetwork name to be used if `create_subnetwork` is true. If
|
273
273
|
# this field is empty, then an automatic name will be chosen for the new
|
274
274
|
# subnetwork.
|
275
275
|
# @!attribute [rw] cluster_ipv4_cidr
|
@@ -302,52 +302,52 @@ module Google
|
|
302
302
|
# @!attribute [rw] cluster_ipv4_cidr_block
|
303
303
|
# @return [String]
|
304
304
|
# The IP address range for the cluster pod IPs. If this field is set, then
|
305
|
-
#
|
305
|
+
# `cluster.cluster_ipv4_cidr` must be left blank.
|
306
306
|
#
|
307
|
-
# This field is only applicable when
|
307
|
+
# This field is only applicable when `use_ip_aliases` is true.
|
308
308
|
#
|
309
309
|
# Set to blank to have a range chosen with the default size.
|
310
310
|
#
|
311
|
-
# Set to /netmask (e.g.
|
311
|
+
# Set to /netmask (e.g. `/14`) to have a range chosen with a specific
|
312
312
|
# netmask.
|
313
313
|
#
|
314
314
|
# Set to a
|
315
315
|
# [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
|
316
|
-
# notation (e.g.
|
317
|
-
#
|
316
|
+
# notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
|
317
|
+
# `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
|
318
318
|
# to use.
|
319
319
|
# @!attribute [rw] node_ipv4_cidr_block
|
320
320
|
# @return [String]
|
321
321
|
# The IP address range of the instance IPs in this cluster.
|
322
322
|
#
|
323
|
-
# This is applicable only if
|
323
|
+
# This is applicable only if `create_subnetwork` is true.
|
324
324
|
#
|
325
325
|
# Set to blank to have a range chosen with the default size.
|
326
326
|
#
|
327
|
-
# Set to /netmask (e.g.
|
327
|
+
# Set to /netmask (e.g. `/14`) to have a range chosen with a specific
|
328
328
|
# netmask.
|
329
329
|
#
|
330
330
|
# Set to a
|
331
331
|
# [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
|
332
|
-
# notation (e.g.
|
333
|
-
#
|
332
|
+
# notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
|
333
|
+
# `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
|
334
334
|
# to use.
|
335
335
|
# @!attribute [rw] services_ipv4_cidr_block
|
336
336
|
# @return [String]
|
337
337
|
# The IP address range of the services IPs in this cluster. If blank, a range
|
338
338
|
# will be automatically chosen with the default size.
|
339
339
|
#
|
340
|
-
# This field is only applicable when
|
340
|
+
# This field is only applicable when `use_ip_aliases` is true.
|
341
341
|
#
|
342
342
|
# Set to blank to have a range chosen with the default size.
|
343
343
|
#
|
344
|
-
# Set to /netmask (e.g.
|
344
|
+
# Set to /netmask (e.g. `/14`) to have a range chosen with a specific
|
345
345
|
# netmask.
|
346
346
|
#
|
347
347
|
# Set to a
|
348
348
|
# [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
|
349
|
-
# notation (e.g.
|
350
|
-
#
|
349
|
+
# notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
|
350
|
+
# `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
|
351
351
|
# to use.
|
352
352
|
class IPAllocationPolicy; end
|
353
353
|
|
@@ -376,7 +376,7 @@ module Google
|
|
376
376
|
# @!attribute [rw] node_config
|
377
377
|
# @return [Google::Container::V1::NodeConfig]
|
378
378
|
# Parameters used in creating the cluster's nodes.
|
379
|
-
# See
|
379
|
+
# See `nodeConfig` for the description of its properties.
|
380
380
|
# For requests, this field should only be used in lieu of a
|
381
381
|
# "node_pool" object, since this configuration (along with the
|
382
382
|
# "initial_node_count") will be used to create a "NodePool" object with an
|
@@ -393,29 +393,29 @@ module Google
|
|
393
393
|
# The logging service the cluster should use to write logs.
|
394
394
|
# Currently available options:
|
395
395
|
#
|
396
|
-
# *
|
397
|
-
# *
|
398
|
-
# * if left as an empty string
|
396
|
+
# * `logging.googleapis.com` - the Google Cloud Logging service.
|
397
|
+
# * `none` - no logs will be exported from the cluster.
|
398
|
+
# * if left as an empty string,`logging.googleapis.com` will be used.
|
399
399
|
# @!attribute [rw] monitoring_service
|
400
400
|
# @return [String]
|
401
401
|
# The monitoring service the cluster should use to write metrics.
|
402
402
|
# Currently available options:
|
403
403
|
#
|
404
|
-
# *
|
405
|
-
# *
|
406
|
-
# * if left as an empty string,
|
404
|
+
# * `monitoring.googleapis.com` - the Google Cloud Monitoring service.
|
405
|
+
# * `none` - no metrics will be exported from the cluster.
|
406
|
+
# * if left as an empty string, `monitoring.googleapis.com` will be used.
|
407
407
|
# @!attribute [rw] network
|
408
408
|
# @return [String]
|
409
409
|
# The name of the Google Compute Engine
|
410
410
|
# [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks) to which the
|
411
|
-
# cluster is connected. If left unspecified, the
|
411
|
+
# cluster is connected. If left unspecified, the `default` network
|
412
412
|
# will be used.
|
413
413
|
# @!attribute [rw] cluster_ipv4_cidr
|
414
414
|
# @return [String]
|
415
415
|
# The IP address range of the container pods in this cluster, in
|
416
416
|
# [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
|
417
|
-
# notation (e.g.
|
418
|
-
# one automatically chosen or specify a
|
417
|
+
# notation (e.g. `10.96.0.0/14`). Leave blank to have
|
418
|
+
# one automatically chosen or specify a `/14` block in `10.0.0.0/8`.
|
419
419
|
# @!attribute [rw] addons_config
|
420
420
|
# @return [Google::Container::V1::AddonsConfig]
|
421
421
|
# Configurations for the various addons available to run in the cluster.
|
@@ -477,9 +477,9 @@ module Google
|
|
477
477
|
# @return [String]
|
478
478
|
# [Output only] The IP address of this cluster's master endpoint.
|
479
479
|
# The endpoint can be accessed from the internet at
|
480
|
-
#
|
480
|
+
# `https://username:password@endpoint/`.
|
481
481
|
#
|
482
|
-
# See the
|
482
|
+
# See the `masterAuth` property of this resource for username and
|
483
483
|
# password information.
|
484
484
|
# @!attribute [rw] initial_cluster_version
|
485
485
|
# @return [String]
|
@@ -509,15 +509,15 @@ module Google
|
|
509
509
|
# @!attribute [rw] node_ipv4_cidr_size
|
510
510
|
# @return [Integer]
|
511
511
|
# [Output only] The size of the address space on each node for hosting
|
512
|
-
# containers. This is provisioned from within the
|
512
|
+
# containers. This is provisioned from within the `container_ipv4_cidr`
|
513
513
|
# range.
|
514
514
|
# @!attribute [rw] services_ipv4_cidr
|
515
515
|
# @return [String]
|
516
516
|
# [Output only] The IP address range of the Kubernetes services in
|
517
517
|
# this cluster, in
|
518
518
|
# [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
|
519
|
-
# notation (e.g.
|
520
|
-
# typically put in the last
|
519
|
+
# notation (e.g. `1.2.3.4/29`). Service addresses are
|
520
|
+
# typically put in the last `/16` from the container CIDR.
|
521
521
|
# @!attribute [rw] instance_group_urls
|
522
522
|
# @return [Array<String>]
|
523
523
|
# Deprecated. Use node_pools.instance_group_urls.
|
@@ -543,14 +543,14 @@ module Google
|
|
543
543
|
|
544
544
|
# The RECONCILING state indicates that some work is actively being done on
|
545
545
|
# the cluster, such as upgrading the master or node software. Details can
|
546
|
-
# be found in the
|
546
|
+
# be found in the `statusMessage` field.
|
547
547
|
RECONCILING = 3
|
548
548
|
|
549
549
|
# The STOPPING state indicates the cluster is being deleted.
|
550
550
|
STOPPING = 4
|
551
551
|
|
552
552
|
# The ERROR state indicates the cluster may be unusable. Details
|
553
|
-
# can be found in the
|
553
|
+
# can be found in the `statusMessage` field.
|
554
554
|
ERROR = 5
|
555
555
|
end
|
556
556
|
end
|
@@ -561,7 +561,7 @@ module Google
|
|
561
561
|
# @!attribute [rw] desired_node_version
|
562
562
|
# @return [String]
|
563
563
|
# The Kubernetes version to change the nodes to (typically an
|
564
|
-
# upgrade). Use
|
564
|
+
# upgrade). Use `-` to upgrade to the latest version supported by
|
565
565
|
# the server.
|
566
566
|
# @!attribute [rw] desired_monitoring_service
|
567
567
|
# @return [String]
|
@@ -787,7 +787,7 @@ module Google
|
|
787
787
|
# @!attribute [rw] node_version
|
788
788
|
# @return [String]
|
789
789
|
# The Kubernetes version to change the nodes to (typically an
|
790
|
-
# upgrade). Use
|
790
|
+
# upgrade). Use `-` to upgrade to the latest version supported by
|
791
791
|
# the server.
|
792
792
|
# @!attribute [rw] image_type
|
793
793
|
# @return [String]
|
@@ -1011,7 +1011,7 @@ module Google
|
|
1011
1011
|
# resides.
|
1012
1012
|
# @!attribute [rw] operation_id
|
1013
1013
|
# @return [String]
|
1014
|
-
# The server-assigned
|
1014
|
+
# The server-assigned `name` of the operation.
|
1015
1015
|
class GetOperationRequest; end
|
1016
1016
|
|
1017
1017
|
# ListOperationsRequest lists operations.
|
@@ -1022,7 +1022,7 @@ module Google
|
|
1022
1022
|
# @!attribute [rw] zone
|
1023
1023
|
# @return [String]
|
1024
1024
|
# The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available)
|
1025
|
-
# to return operations for, or
|
1025
|
+
# to return operations for, or `-` for all zones.
|
1026
1026
|
class ListOperationsRequest; end
|
1027
1027
|
|
1028
1028
|
# CancelOperationRequest cancels a single operation.
|
@@ -1036,7 +1036,7 @@ module Google
|
|
1036
1036
|
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the operation resides.
|
1037
1037
|
# @!attribute [rw] operation_id
|
1038
1038
|
# @return [String]
|
1039
|
-
# The server-assigned
|
1039
|
+
# The server-assigned `name` of the operation.
|
1040
1040
|
class CancelOperationRequest; end
|
1041
1041
|
|
1042
1042
|
# ListOperationsResponse is the result of ListOperationsRequest.
|
@@ -1211,14 +1211,14 @@ module Google
|
|
1211
1211
|
|
1212
1212
|
# The RECONCILING state indicates that some work is actively being done on
|
1213
1213
|
# the node pool, such as upgrading node software. Details can
|
1214
|
-
# be found in the
|
1214
|
+
# be found in the `statusMessage` field.
|
1215
1215
|
RECONCILING = 4
|
1216
1216
|
|
1217
1217
|
# The STOPPING state indicates the node pool is being deleted.
|
1218
1218
|
STOPPING = 5
|
1219
1219
|
|
1220
1220
|
# The ERROR state indicates the node pool may be unusable. Details
|
1221
|
-
# can be found in the
|
1221
|
+
# can be found in the `statusMessage` field.
|
1222
1222
|
ERROR = 6
|
1223
1223
|
end
|
1224
1224
|
end
|
@@ -23,7 +23,7 @@ module Google
|
|
23
23
|
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
24
24
|
# }
|
25
25
|
#
|
26
|
-
# The JSON representation for
|
26
|
+
# The JSON representation for `Empty` is empty JSON object `{}`.
|
27
27
|
class Empty; end
|
28
28
|
end
|
29
29
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-container
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-09-
|
11
|
+
date: 2018-09-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-gax
|
@@ -111,10 +111,9 @@ files:
|
|
111
111
|
- lib/google/cloud/container/v1/credentials.rb
|
112
112
|
- lib/google/cloud/container/v1/doc/google/container/v1/cluster_service.rb
|
113
113
|
- lib/google/cloud/container/v1/doc/google/protobuf/empty.rb
|
114
|
-
- lib/google/cloud/container/v1/doc/overview.rb
|
115
114
|
- lib/google/container/v1/cluster_service_pb.rb
|
116
115
|
- lib/google/container/v1/cluster_service_services_pb.rb
|
117
|
-
homepage: https://github.com/
|
116
|
+
homepage: https://github.com/googleapis/google-cloud-ruby/tree/master/google-cloud-container
|
118
117
|
licenses:
|
119
118
|
- Apache-2.0
|
120
119
|
metadata: {}
|
@@ -1,92 +0,0 @@
|
|
1
|
-
# Copyright 2018 Google LLC
|
2
|
-
#
|
3
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
-
# you may not use this file except in compliance with the License.
|
5
|
-
# You may obtain a copy of the License at
|
6
|
-
#
|
7
|
-
# https://www.apache.org/licenses/LICENSE-2.0
|
8
|
-
#
|
9
|
-
# Unless required by applicable law or agreed to in writing, software
|
10
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
-
# See the License for the specific language governing permissions and
|
13
|
-
# limitations under the License.
|
14
|
-
|
15
|
-
|
16
|
-
module Google
|
17
|
-
module Cloud
|
18
|
-
# rubocop:disable LineLength
|
19
|
-
|
20
|
-
##
|
21
|
-
# # Ruby Client for Google Container Engine API ([Beta](https://github.com/GoogleCloudPlatform/google-cloud-ruby#versioning))
|
22
|
-
#
|
23
|
-
# [Google Container Engine API][Product Documentation]:
|
24
|
-
# The Google Kubernetes Engine API is used for building and managing container
|
25
|
-
# based applications, powered by the open source Kubernetes technology.
|
26
|
-
# - [Product Documentation][]
|
27
|
-
#
|
28
|
-
# ## Quick Start
|
29
|
-
# In order to use this library, you first need to go through the following
|
30
|
-
# steps:
|
31
|
-
#
|
32
|
-
# 1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)
|
33
|
-
# 2. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project)
|
34
|
-
# 3. [Enable the Google Container Engine API.](https://console.cloud.google.com/apis/library/container.googleapis.com)
|
35
|
-
# 4. [Setup Authentication.](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud/master/guides/authentication)
|
36
|
-
#
|
37
|
-
# ### Installation
|
38
|
-
# ```
|
39
|
-
# $ gem install google-cloud-container
|
40
|
-
# ```
|
41
|
-
#
|
42
|
-
# ### Preview
|
43
|
-
# #### ClusterManagerClient
|
44
|
-
# ```rb
|
45
|
-
# require "google/cloud/container"
|
46
|
-
#
|
47
|
-
# cluster_manager_client = Google::Cloud::Container.new
|
48
|
-
# project_id_2 = project_id
|
49
|
-
# zone = "us-central1-a"
|
50
|
-
# response = cluster_manager_client.list_clusters(project_id_2, zone)
|
51
|
-
# ```
|
52
|
-
#
|
53
|
-
# ### Next Steps
|
54
|
-
# - Read the [Google Container Engine API Product documentation][Product Documentation]
|
55
|
-
# to learn more about the product and see How-to Guides.
|
56
|
-
# - View this [repository's main README](https://github.com/GoogleCloudPlatform/google-cloud-ruby/blob/master/README.md)
|
57
|
-
# to see the full list of Cloud APIs that we cover.
|
58
|
-
#
|
59
|
-
# [Product Documentation]: https://cloud.google.com/kubernetes-engine
|
60
|
-
#
|
61
|
-
# ## Enabling Logging
|
62
|
-
#
|
63
|
-
# To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
|
64
|
-
# The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/stdlib-2.5.0/libdoc/logger/rdoc/Logger.html) as shown below,
|
65
|
-
# or a [`Google::Cloud::Logging::Logger`](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud-logging/latest/google/cloud/logging/logger)
|
66
|
-
# that will write logs to [Stackdriver Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
|
67
|
-
# and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
|
68
|
-
#
|
69
|
-
# Configuring a Ruby stdlib logger:
|
70
|
-
#
|
71
|
-
# ```ruby
|
72
|
-
# require "logger"
|
73
|
-
#
|
74
|
-
# module MyLogger
|
75
|
-
# LOGGER = Logger.new $stderr, level: Logger::WARN
|
76
|
-
# def logger
|
77
|
-
# LOGGER
|
78
|
-
# end
|
79
|
-
# end
|
80
|
-
#
|
81
|
-
# # Define a gRPC module-level logger method before grpc/logconfig.rb loads.
|
82
|
-
# module GRPC
|
83
|
-
# extend MyLogger
|
84
|
-
# end
|
85
|
-
# ```
|
86
|
-
#
|
87
|
-
module Container
|
88
|
-
module V1
|
89
|
-
end
|
90
|
-
end
|
91
|
-
end
|
92
|
-
end
|