google-cloud-container 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.yardopts +8 -0
- data/LICENSE +201 -0
- data/README.md +43 -0
- data/lib/google/cloud/container.rb +116 -0
- data/lib/google/cloud/container/credentials.rb +30 -0
- data/lib/google/cloud/container/v1.rb +109 -0
- data/lib/google/cloud/container/v1/cluster_manager_client.rb +1628 -0
- data/lib/google/cloud/container/v1/cluster_manager_client_config.json +176 -0
- data/lib/google/cloud/container/v1/doc/google/container/v1/cluster_service.rb +1504 -0
- data/lib/google/cloud/container/v1/doc/overview.rb +66 -0
- data/lib/google/container/v1/cluster_service_pb.rb +497 -0
- data/lib/google/container/v1/cluster_service_services_pb.rb +125 -0
- metadata +112 -0
@@ -0,0 +1,66 @@
|
|
1
|
+
# Copyright 2017 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
|
+
module Google
|
16
|
+
module Cloud
|
17
|
+
# rubocop:disable LineLength
|
18
|
+
|
19
|
+
##
|
20
|
+
# # Ruby Client for Google Container Engine API ([Alpha](https://github.com/GoogleCloudPlatform/google-cloud-ruby#versioning))
|
21
|
+
#
|
22
|
+
# [Google Container Engine API][Product Documentation]:
|
23
|
+
# The Google Kubernetes Engine API is used for building and managing container
|
24
|
+
# based applications, powered by the open source Kubernetes technology.
|
25
|
+
# - [Product Documentation][]
|
26
|
+
#
|
27
|
+
# ## Quick Start
|
28
|
+
# In order to use this library, you first need to go through the following
|
29
|
+
# steps:
|
30
|
+
#
|
31
|
+
# 1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)
|
32
|
+
# 2. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project)
|
33
|
+
# 3. [Enable the Google Container Engine API.](https://console.cloud.google.com/apis/api/container)
|
34
|
+
# 4. [Setup Authentication.](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud/master/guides/authentication)
|
35
|
+
#
|
36
|
+
# ### Installation
|
37
|
+
# ```
|
38
|
+
# $ gem install google-cloud-container
|
39
|
+
# ```
|
40
|
+
#
|
41
|
+
# ### Preview
|
42
|
+
# #### ClusterManagerClient
|
43
|
+
# ```rb
|
44
|
+
# require "google/cloud/container"
|
45
|
+
#
|
46
|
+
# cluster_manager_client = Google::Cloud::Container.new
|
47
|
+
# project_id_2 = project_id
|
48
|
+
# zone = "us-central1-a"
|
49
|
+
# response = cluster_manager_client.list_clusters(project_id_2, zone)
|
50
|
+
# ```
|
51
|
+
#
|
52
|
+
# ### Next Steps
|
53
|
+
# - Read the [Google Container Engine API Product documentation][Product Documentation]
|
54
|
+
# to learn more about the product and see How-to Guides.
|
55
|
+
# - View this [repository's main README](https://github.com/GoogleCloudPlatform/google-cloud-ruby/blob/master/README.md)
|
56
|
+
# to see the full list of Cloud APIs that we cover.
|
57
|
+
#
|
58
|
+
# [Product Documentation]: https://cloud.google.com/container
|
59
|
+
#
|
60
|
+
#
|
61
|
+
module Container
|
62
|
+
module V1
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
@@ -0,0 +1,497 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/container/v1/cluster_service.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/api/annotations_pb'
|
7
|
+
require 'google/protobuf/empty_pb'
|
8
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
9
|
+
add_message "google.container.v1.NodeConfig" do
|
10
|
+
optional :machine_type, :string, 1
|
11
|
+
optional :disk_size_gb, :int32, 2
|
12
|
+
repeated :oauth_scopes, :string, 3
|
13
|
+
optional :service_account, :string, 9
|
14
|
+
map :metadata, :string, :string, 4
|
15
|
+
optional :image_type, :string, 5
|
16
|
+
map :labels, :string, :string, 6
|
17
|
+
optional :local_ssd_count, :int32, 7
|
18
|
+
repeated :tags, :string, 8
|
19
|
+
optional :preemptible, :bool, 10
|
20
|
+
repeated :accelerators, :message, 11, "google.container.v1.AcceleratorConfig"
|
21
|
+
optional :min_cpu_platform, :string, 13
|
22
|
+
end
|
23
|
+
add_message "google.container.v1.MasterAuth" do
|
24
|
+
optional :username, :string, 1
|
25
|
+
optional :password, :string, 2
|
26
|
+
optional :client_certificate_config, :message, 3, "google.container.v1.ClientCertificateConfig"
|
27
|
+
optional :cluster_ca_certificate, :string, 100
|
28
|
+
optional :client_certificate, :string, 101
|
29
|
+
optional :client_key, :string, 102
|
30
|
+
end
|
31
|
+
add_message "google.container.v1.ClientCertificateConfig" do
|
32
|
+
optional :issue_client_certificate, :bool, 1
|
33
|
+
end
|
34
|
+
add_message "google.container.v1.AddonsConfig" do
|
35
|
+
optional :http_load_balancing, :message, 1, "google.container.v1.HttpLoadBalancing"
|
36
|
+
optional :horizontal_pod_autoscaling, :message, 2, "google.container.v1.HorizontalPodAutoscaling"
|
37
|
+
optional :kubernetes_dashboard, :message, 3, "google.container.v1.KubernetesDashboard"
|
38
|
+
optional :network_policy_config, :message, 4, "google.container.v1.NetworkPolicyConfig"
|
39
|
+
end
|
40
|
+
add_message "google.container.v1.HttpLoadBalancing" do
|
41
|
+
optional :disabled, :bool, 1
|
42
|
+
end
|
43
|
+
add_message "google.container.v1.HorizontalPodAutoscaling" do
|
44
|
+
optional :disabled, :bool, 1
|
45
|
+
end
|
46
|
+
add_message "google.container.v1.KubernetesDashboard" do
|
47
|
+
optional :disabled, :bool, 1
|
48
|
+
end
|
49
|
+
add_message "google.container.v1.NetworkPolicyConfig" do
|
50
|
+
optional :disabled, :bool, 1
|
51
|
+
end
|
52
|
+
add_message "google.container.v1.MasterAuthorizedNetworksConfig" do
|
53
|
+
optional :enabled, :bool, 1
|
54
|
+
repeated :cidr_blocks, :message, 2, "google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock"
|
55
|
+
end
|
56
|
+
add_message "google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock" do
|
57
|
+
optional :display_name, :string, 1
|
58
|
+
optional :cidr_block, :string, 2
|
59
|
+
end
|
60
|
+
add_message "google.container.v1.LegacyAbac" do
|
61
|
+
optional :enabled, :bool, 1
|
62
|
+
end
|
63
|
+
add_message "google.container.v1.NetworkPolicy" do
|
64
|
+
optional :provider, :enum, 1, "google.container.v1.NetworkPolicy.Provider"
|
65
|
+
optional :enabled, :bool, 2
|
66
|
+
end
|
67
|
+
add_enum "google.container.v1.NetworkPolicy.Provider" do
|
68
|
+
value :PROVIDER_UNSPECIFIED, 0
|
69
|
+
value :CALICO, 1
|
70
|
+
end
|
71
|
+
add_message "google.container.v1.IPAllocationPolicy" do
|
72
|
+
optional :use_ip_aliases, :bool, 1
|
73
|
+
optional :create_subnetwork, :bool, 2
|
74
|
+
optional :subnetwork_name, :string, 3
|
75
|
+
optional :cluster_ipv4_cidr, :string, 4
|
76
|
+
optional :node_ipv4_cidr, :string, 5
|
77
|
+
optional :services_ipv4_cidr, :string, 6
|
78
|
+
optional :cluster_secondary_range_name, :string, 7
|
79
|
+
optional :services_secondary_range_name, :string, 8
|
80
|
+
optional :cluster_ipv4_cidr_block, :string, 9
|
81
|
+
optional :node_ipv4_cidr_block, :string, 10
|
82
|
+
optional :services_ipv4_cidr_block, :string, 11
|
83
|
+
end
|
84
|
+
add_message "google.container.v1.Cluster" do
|
85
|
+
optional :name, :string, 1
|
86
|
+
optional :description, :string, 2
|
87
|
+
optional :initial_node_count, :int32, 3
|
88
|
+
optional :node_config, :message, 4, "google.container.v1.NodeConfig"
|
89
|
+
optional :master_auth, :message, 5, "google.container.v1.MasterAuth"
|
90
|
+
optional :logging_service, :string, 6
|
91
|
+
optional :monitoring_service, :string, 7
|
92
|
+
optional :network, :string, 8
|
93
|
+
optional :cluster_ipv4_cidr, :string, 9
|
94
|
+
optional :addons_config, :message, 10, "google.container.v1.AddonsConfig"
|
95
|
+
optional :subnetwork, :string, 11
|
96
|
+
repeated :node_pools, :message, 12, "google.container.v1.NodePool"
|
97
|
+
repeated :locations, :string, 13
|
98
|
+
optional :enable_kubernetes_alpha, :bool, 14
|
99
|
+
map :resource_labels, :string, :string, 15
|
100
|
+
optional :label_fingerprint, :string, 16
|
101
|
+
optional :legacy_abac, :message, 18, "google.container.v1.LegacyAbac"
|
102
|
+
optional :network_policy, :message, 19, "google.container.v1.NetworkPolicy"
|
103
|
+
optional :ip_allocation_policy, :message, 20, "google.container.v1.IPAllocationPolicy"
|
104
|
+
optional :master_authorized_networks_config, :message, 22, "google.container.v1.MasterAuthorizedNetworksConfig"
|
105
|
+
optional :maintenance_policy, :message, 23, "google.container.v1.MaintenancePolicy"
|
106
|
+
optional :self_link, :string, 100
|
107
|
+
optional :zone, :string, 101
|
108
|
+
optional :endpoint, :string, 102
|
109
|
+
optional :initial_cluster_version, :string, 103
|
110
|
+
optional :current_master_version, :string, 104
|
111
|
+
optional :current_node_version, :string, 105
|
112
|
+
optional :create_time, :string, 106
|
113
|
+
optional :status, :enum, 107, "google.container.v1.Cluster.Status"
|
114
|
+
optional :status_message, :string, 108
|
115
|
+
optional :node_ipv4_cidr_size, :int32, 109
|
116
|
+
optional :services_ipv4_cidr, :string, 110
|
117
|
+
repeated :instance_group_urls, :string, 111
|
118
|
+
optional :current_node_count, :int32, 112
|
119
|
+
optional :expire_time, :string, 113
|
120
|
+
end
|
121
|
+
add_enum "google.container.v1.Cluster.Status" do
|
122
|
+
value :STATUS_UNSPECIFIED, 0
|
123
|
+
value :PROVISIONING, 1
|
124
|
+
value :RUNNING, 2
|
125
|
+
value :RECONCILING, 3
|
126
|
+
value :STOPPING, 4
|
127
|
+
value :ERROR, 5
|
128
|
+
end
|
129
|
+
add_message "google.container.v1.ClusterUpdate" do
|
130
|
+
optional :desired_node_version, :string, 4
|
131
|
+
optional :desired_monitoring_service, :string, 5
|
132
|
+
optional :desired_addons_config, :message, 6, "google.container.v1.AddonsConfig"
|
133
|
+
optional :desired_node_pool_id, :string, 7
|
134
|
+
optional :desired_image_type, :string, 8
|
135
|
+
optional :desired_node_pool_autoscaling, :message, 9, "google.container.v1.NodePoolAutoscaling"
|
136
|
+
repeated :desired_locations, :string, 10
|
137
|
+
optional :desired_master_authorized_networks_config, :message, 12, "google.container.v1.MasterAuthorizedNetworksConfig"
|
138
|
+
optional :desired_master_version, :string, 100
|
139
|
+
end
|
140
|
+
add_message "google.container.v1.Operation" do
|
141
|
+
optional :name, :string, 1
|
142
|
+
optional :zone, :string, 2
|
143
|
+
optional :operation_type, :enum, 3, "google.container.v1.Operation.Type"
|
144
|
+
optional :status, :enum, 4, "google.container.v1.Operation.Status"
|
145
|
+
optional :detail, :string, 8
|
146
|
+
optional :status_message, :string, 5
|
147
|
+
optional :self_link, :string, 6
|
148
|
+
optional :target_link, :string, 7
|
149
|
+
optional :start_time, :string, 10
|
150
|
+
optional :end_time, :string, 11
|
151
|
+
end
|
152
|
+
add_enum "google.container.v1.Operation.Status" do
|
153
|
+
value :STATUS_UNSPECIFIED, 0
|
154
|
+
value :PENDING, 1
|
155
|
+
value :RUNNING, 2
|
156
|
+
value :DONE, 3
|
157
|
+
value :ABORTING, 4
|
158
|
+
end
|
159
|
+
add_enum "google.container.v1.Operation.Type" do
|
160
|
+
value :TYPE_UNSPECIFIED, 0
|
161
|
+
value :CREATE_CLUSTER, 1
|
162
|
+
value :DELETE_CLUSTER, 2
|
163
|
+
value :UPGRADE_MASTER, 3
|
164
|
+
value :UPGRADE_NODES, 4
|
165
|
+
value :REPAIR_CLUSTER, 5
|
166
|
+
value :UPDATE_CLUSTER, 6
|
167
|
+
value :CREATE_NODE_POOL, 7
|
168
|
+
value :DELETE_NODE_POOL, 8
|
169
|
+
value :SET_NODE_POOL_MANAGEMENT, 9
|
170
|
+
value :AUTO_REPAIR_NODES, 10
|
171
|
+
value :AUTO_UPGRADE_NODES, 11
|
172
|
+
value :SET_LABELS, 12
|
173
|
+
value :SET_MASTER_AUTH, 13
|
174
|
+
value :SET_NODE_POOL_SIZE, 14
|
175
|
+
value :SET_NETWORK_POLICY, 15
|
176
|
+
value :SET_MAINTENANCE_POLICY, 16
|
177
|
+
end
|
178
|
+
add_message "google.container.v1.CreateClusterRequest" do
|
179
|
+
optional :project_id, :string, 1
|
180
|
+
optional :zone, :string, 2
|
181
|
+
optional :cluster, :message, 3, "google.container.v1.Cluster"
|
182
|
+
end
|
183
|
+
add_message "google.container.v1.GetClusterRequest" do
|
184
|
+
optional :project_id, :string, 1
|
185
|
+
optional :zone, :string, 2
|
186
|
+
optional :cluster_id, :string, 3
|
187
|
+
end
|
188
|
+
add_message "google.container.v1.UpdateClusterRequest" do
|
189
|
+
optional :project_id, :string, 1
|
190
|
+
optional :zone, :string, 2
|
191
|
+
optional :cluster_id, :string, 3
|
192
|
+
optional :update, :message, 4, "google.container.v1.ClusterUpdate"
|
193
|
+
end
|
194
|
+
add_message "google.container.v1.UpdateNodePoolRequest" do
|
195
|
+
optional :project_id, :string, 1
|
196
|
+
optional :zone, :string, 2
|
197
|
+
optional :cluster_id, :string, 3
|
198
|
+
optional :node_pool_id, :string, 4
|
199
|
+
optional :node_version, :string, 5
|
200
|
+
optional :image_type, :string, 6
|
201
|
+
end
|
202
|
+
add_message "google.container.v1.SetNodePoolAutoscalingRequest" do
|
203
|
+
optional :project_id, :string, 1
|
204
|
+
optional :zone, :string, 2
|
205
|
+
optional :cluster_id, :string, 3
|
206
|
+
optional :node_pool_id, :string, 4
|
207
|
+
optional :autoscaling, :message, 5, "google.container.v1.NodePoolAutoscaling"
|
208
|
+
end
|
209
|
+
add_message "google.container.v1.SetLoggingServiceRequest" do
|
210
|
+
optional :project_id, :string, 1
|
211
|
+
optional :zone, :string, 2
|
212
|
+
optional :cluster_id, :string, 3
|
213
|
+
optional :logging_service, :string, 4
|
214
|
+
end
|
215
|
+
add_message "google.container.v1.SetMonitoringServiceRequest" do
|
216
|
+
optional :project_id, :string, 1
|
217
|
+
optional :zone, :string, 2
|
218
|
+
optional :cluster_id, :string, 3
|
219
|
+
optional :monitoring_service, :string, 4
|
220
|
+
end
|
221
|
+
add_message "google.container.v1.SetAddonsConfigRequest" do
|
222
|
+
optional :project_id, :string, 1
|
223
|
+
optional :zone, :string, 2
|
224
|
+
optional :cluster_id, :string, 3
|
225
|
+
optional :addons_config, :message, 4, "google.container.v1.AddonsConfig"
|
226
|
+
end
|
227
|
+
add_message "google.container.v1.SetLocationsRequest" do
|
228
|
+
optional :project_id, :string, 1
|
229
|
+
optional :zone, :string, 2
|
230
|
+
optional :cluster_id, :string, 3
|
231
|
+
repeated :locations, :string, 4
|
232
|
+
end
|
233
|
+
add_message "google.container.v1.UpdateMasterRequest" do
|
234
|
+
optional :project_id, :string, 1
|
235
|
+
optional :zone, :string, 2
|
236
|
+
optional :cluster_id, :string, 3
|
237
|
+
optional :master_version, :string, 4
|
238
|
+
end
|
239
|
+
add_message "google.container.v1.SetMasterAuthRequest" do
|
240
|
+
optional :project_id, :string, 1
|
241
|
+
optional :zone, :string, 2
|
242
|
+
optional :cluster_id, :string, 3
|
243
|
+
optional :action, :enum, 4, "google.container.v1.SetMasterAuthRequest.Action"
|
244
|
+
optional :update, :message, 5, "google.container.v1.MasterAuth"
|
245
|
+
end
|
246
|
+
add_enum "google.container.v1.SetMasterAuthRequest.Action" do
|
247
|
+
value :UNKNOWN, 0
|
248
|
+
value :SET_PASSWORD, 1
|
249
|
+
value :GENERATE_PASSWORD, 2
|
250
|
+
value :SET_USERNAME, 3
|
251
|
+
end
|
252
|
+
add_message "google.container.v1.DeleteClusterRequest" do
|
253
|
+
optional :project_id, :string, 1
|
254
|
+
optional :zone, :string, 2
|
255
|
+
optional :cluster_id, :string, 3
|
256
|
+
end
|
257
|
+
add_message "google.container.v1.ListClustersRequest" do
|
258
|
+
optional :project_id, :string, 1
|
259
|
+
optional :zone, :string, 2
|
260
|
+
end
|
261
|
+
add_message "google.container.v1.ListClustersResponse" do
|
262
|
+
repeated :clusters, :message, 1, "google.container.v1.Cluster"
|
263
|
+
repeated :missing_zones, :string, 2
|
264
|
+
end
|
265
|
+
add_message "google.container.v1.GetOperationRequest" do
|
266
|
+
optional :project_id, :string, 1
|
267
|
+
optional :zone, :string, 2
|
268
|
+
optional :operation_id, :string, 3
|
269
|
+
end
|
270
|
+
add_message "google.container.v1.ListOperationsRequest" do
|
271
|
+
optional :project_id, :string, 1
|
272
|
+
optional :zone, :string, 2
|
273
|
+
end
|
274
|
+
add_message "google.container.v1.CancelOperationRequest" do
|
275
|
+
optional :project_id, :string, 1
|
276
|
+
optional :zone, :string, 2
|
277
|
+
optional :operation_id, :string, 3
|
278
|
+
end
|
279
|
+
add_message "google.container.v1.ListOperationsResponse" do
|
280
|
+
repeated :operations, :message, 1, "google.container.v1.Operation"
|
281
|
+
repeated :missing_zones, :string, 2
|
282
|
+
end
|
283
|
+
add_message "google.container.v1.GetServerConfigRequest" do
|
284
|
+
optional :project_id, :string, 1
|
285
|
+
optional :zone, :string, 2
|
286
|
+
end
|
287
|
+
add_message "google.container.v1.ServerConfig" do
|
288
|
+
optional :default_cluster_version, :string, 1
|
289
|
+
repeated :valid_node_versions, :string, 3
|
290
|
+
optional :default_image_type, :string, 4
|
291
|
+
repeated :valid_image_types, :string, 5
|
292
|
+
repeated :valid_master_versions, :string, 6
|
293
|
+
end
|
294
|
+
add_message "google.container.v1.CreateNodePoolRequest" do
|
295
|
+
optional :project_id, :string, 1
|
296
|
+
optional :zone, :string, 2
|
297
|
+
optional :cluster_id, :string, 3
|
298
|
+
optional :node_pool, :message, 4, "google.container.v1.NodePool"
|
299
|
+
end
|
300
|
+
add_message "google.container.v1.DeleteNodePoolRequest" do
|
301
|
+
optional :project_id, :string, 1
|
302
|
+
optional :zone, :string, 2
|
303
|
+
optional :cluster_id, :string, 3
|
304
|
+
optional :node_pool_id, :string, 4
|
305
|
+
end
|
306
|
+
add_message "google.container.v1.ListNodePoolsRequest" do
|
307
|
+
optional :project_id, :string, 1
|
308
|
+
optional :zone, :string, 2
|
309
|
+
optional :cluster_id, :string, 3
|
310
|
+
end
|
311
|
+
add_message "google.container.v1.GetNodePoolRequest" do
|
312
|
+
optional :project_id, :string, 1
|
313
|
+
optional :zone, :string, 2
|
314
|
+
optional :cluster_id, :string, 3
|
315
|
+
optional :node_pool_id, :string, 4
|
316
|
+
end
|
317
|
+
add_message "google.container.v1.NodePool" do
|
318
|
+
optional :name, :string, 1
|
319
|
+
optional :config, :message, 2, "google.container.v1.NodeConfig"
|
320
|
+
optional :initial_node_count, :int32, 3
|
321
|
+
optional :self_link, :string, 100
|
322
|
+
optional :version, :string, 101
|
323
|
+
repeated :instance_group_urls, :string, 102
|
324
|
+
optional :status, :enum, 103, "google.container.v1.NodePool.Status"
|
325
|
+
optional :status_message, :string, 104
|
326
|
+
optional :autoscaling, :message, 4, "google.container.v1.NodePoolAutoscaling"
|
327
|
+
optional :management, :message, 5, "google.container.v1.NodeManagement"
|
328
|
+
end
|
329
|
+
add_enum "google.container.v1.NodePool.Status" do
|
330
|
+
value :STATUS_UNSPECIFIED, 0
|
331
|
+
value :PROVISIONING, 1
|
332
|
+
value :RUNNING, 2
|
333
|
+
value :RUNNING_WITH_ERROR, 3
|
334
|
+
value :RECONCILING, 4
|
335
|
+
value :STOPPING, 5
|
336
|
+
value :ERROR, 6
|
337
|
+
end
|
338
|
+
add_message "google.container.v1.NodeManagement" do
|
339
|
+
optional :auto_upgrade, :bool, 1
|
340
|
+
optional :auto_repair, :bool, 2
|
341
|
+
optional :upgrade_options, :message, 10, "google.container.v1.AutoUpgradeOptions"
|
342
|
+
end
|
343
|
+
add_message "google.container.v1.AutoUpgradeOptions" do
|
344
|
+
optional :auto_upgrade_start_time, :string, 1
|
345
|
+
optional :description, :string, 2
|
346
|
+
end
|
347
|
+
add_message "google.container.v1.MaintenancePolicy" do
|
348
|
+
optional :window, :message, 1, "google.container.v1.MaintenanceWindow"
|
349
|
+
end
|
350
|
+
add_message "google.container.v1.MaintenanceWindow" do
|
351
|
+
oneof :policy do
|
352
|
+
optional :daily_maintenance_window, :message, 2, "google.container.v1.DailyMaintenanceWindow"
|
353
|
+
end
|
354
|
+
end
|
355
|
+
add_message "google.container.v1.DailyMaintenanceWindow" do
|
356
|
+
optional :start_time, :string, 2
|
357
|
+
optional :duration, :string, 3
|
358
|
+
end
|
359
|
+
add_message "google.container.v1.SetNodePoolManagementRequest" do
|
360
|
+
optional :project_id, :string, 1
|
361
|
+
optional :zone, :string, 2
|
362
|
+
optional :cluster_id, :string, 3
|
363
|
+
optional :node_pool_id, :string, 4
|
364
|
+
optional :management, :message, 5, "google.container.v1.NodeManagement"
|
365
|
+
end
|
366
|
+
add_message "google.container.v1.SetNodePoolSizeRequest" do
|
367
|
+
optional :project_id, :string, 1
|
368
|
+
optional :zone, :string, 2
|
369
|
+
optional :cluster_id, :string, 3
|
370
|
+
optional :node_pool_id, :string, 4
|
371
|
+
optional :node_count, :int32, 5
|
372
|
+
end
|
373
|
+
add_message "google.container.v1.RollbackNodePoolUpgradeRequest" do
|
374
|
+
optional :project_id, :string, 1
|
375
|
+
optional :zone, :string, 2
|
376
|
+
optional :cluster_id, :string, 3
|
377
|
+
optional :node_pool_id, :string, 4
|
378
|
+
end
|
379
|
+
add_message "google.container.v1.ListNodePoolsResponse" do
|
380
|
+
repeated :node_pools, :message, 1, "google.container.v1.NodePool"
|
381
|
+
end
|
382
|
+
add_message "google.container.v1.NodePoolAutoscaling" do
|
383
|
+
optional :enabled, :bool, 1
|
384
|
+
optional :min_node_count, :int32, 2
|
385
|
+
optional :max_node_count, :int32, 3
|
386
|
+
end
|
387
|
+
add_message "google.container.v1.SetLabelsRequest" do
|
388
|
+
optional :project_id, :string, 1
|
389
|
+
optional :zone, :string, 2
|
390
|
+
optional :cluster_id, :string, 3
|
391
|
+
map :resource_labels, :string, :string, 4
|
392
|
+
optional :label_fingerprint, :string, 5
|
393
|
+
end
|
394
|
+
add_message "google.container.v1.SetLegacyAbacRequest" do
|
395
|
+
optional :project_id, :string, 1
|
396
|
+
optional :zone, :string, 2
|
397
|
+
optional :cluster_id, :string, 3
|
398
|
+
optional :enabled, :bool, 4
|
399
|
+
end
|
400
|
+
add_message "google.container.v1.StartIPRotationRequest" do
|
401
|
+
optional :project_id, :string, 1
|
402
|
+
optional :zone, :string, 2
|
403
|
+
optional :cluster_id, :string, 3
|
404
|
+
end
|
405
|
+
add_message "google.container.v1.CompleteIPRotationRequest" do
|
406
|
+
optional :project_id, :string, 1
|
407
|
+
optional :zone, :string, 2
|
408
|
+
optional :cluster_id, :string, 3
|
409
|
+
end
|
410
|
+
add_message "google.container.v1.AcceleratorConfig" do
|
411
|
+
optional :accelerator_count, :int64, 1
|
412
|
+
optional :accelerator_type, :string, 2
|
413
|
+
end
|
414
|
+
add_message "google.container.v1.SetNetworkPolicyRequest" do
|
415
|
+
optional :project_id, :string, 1
|
416
|
+
optional :zone, :string, 2
|
417
|
+
optional :cluster_id, :string, 3
|
418
|
+
optional :network_policy, :message, 4, "google.container.v1.NetworkPolicy"
|
419
|
+
end
|
420
|
+
add_message "google.container.v1.SetMaintenancePolicyRequest" do
|
421
|
+
optional :project_id, :string, 1
|
422
|
+
optional :zone, :string, 2
|
423
|
+
optional :cluster_id, :string, 3
|
424
|
+
optional :maintenance_policy, :message, 4, "google.container.v1.MaintenancePolicy"
|
425
|
+
end
|
426
|
+
end
|
427
|
+
|
428
|
+
module Google
|
429
|
+
module Container
|
430
|
+
module V1
|
431
|
+
NodeConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.NodeConfig").msgclass
|
432
|
+
MasterAuth = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.MasterAuth").msgclass
|
433
|
+
ClientCertificateConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.ClientCertificateConfig").msgclass
|
434
|
+
AddonsConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.AddonsConfig").msgclass
|
435
|
+
HttpLoadBalancing = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.HttpLoadBalancing").msgclass
|
436
|
+
HorizontalPodAutoscaling = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.HorizontalPodAutoscaling").msgclass
|
437
|
+
KubernetesDashboard = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.KubernetesDashboard").msgclass
|
438
|
+
NetworkPolicyConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.NetworkPolicyConfig").msgclass
|
439
|
+
MasterAuthorizedNetworksConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.MasterAuthorizedNetworksConfig").msgclass
|
440
|
+
MasterAuthorizedNetworksConfig::CidrBlock = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock").msgclass
|
441
|
+
LegacyAbac = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.LegacyAbac").msgclass
|
442
|
+
NetworkPolicy = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.NetworkPolicy").msgclass
|
443
|
+
NetworkPolicy::Provider = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.NetworkPolicy.Provider").enummodule
|
444
|
+
IPAllocationPolicy = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.IPAllocationPolicy").msgclass
|
445
|
+
Cluster = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.Cluster").msgclass
|
446
|
+
Cluster::Status = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.Cluster.Status").enummodule
|
447
|
+
ClusterUpdate = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.ClusterUpdate").msgclass
|
448
|
+
Operation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.Operation").msgclass
|
449
|
+
Operation::Status = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.Operation.Status").enummodule
|
450
|
+
Operation::Type = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.Operation.Type").enummodule
|
451
|
+
CreateClusterRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.CreateClusterRequest").msgclass
|
452
|
+
GetClusterRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.GetClusterRequest").msgclass
|
453
|
+
UpdateClusterRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.UpdateClusterRequest").msgclass
|
454
|
+
UpdateNodePoolRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.UpdateNodePoolRequest").msgclass
|
455
|
+
SetNodePoolAutoscalingRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.SetNodePoolAutoscalingRequest").msgclass
|
456
|
+
SetLoggingServiceRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.SetLoggingServiceRequest").msgclass
|
457
|
+
SetMonitoringServiceRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.SetMonitoringServiceRequest").msgclass
|
458
|
+
SetAddonsConfigRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.SetAddonsConfigRequest").msgclass
|
459
|
+
SetLocationsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.SetLocationsRequest").msgclass
|
460
|
+
UpdateMasterRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.UpdateMasterRequest").msgclass
|
461
|
+
SetMasterAuthRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.SetMasterAuthRequest").msgclass
|
462
|
+
SetMasterAuthRequest::Action = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.SetMasterAuthRequest.Action").enummodule
|
463
|
+
DeleteClusterRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.DeleteClusterRequest").msgclass
|
464
|
+
ListClustersRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.ListClustersRequest").msgclass
|
465
|
+
ListClustersResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.ListClustersResponse").msgclass
|
466
|
+
GetOperationRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.GetOperationRequest").msgclass
|
467
|
+
ListOperationsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.ListOperationsRequest").msgclass
|
468
|
+
CancelOperationRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.CancelOperationRequest").msgclass
|
469
|
+
ListOperationsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.ListOperationsResponse").msgclass
|
470
|
+
GetServerConfigRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.GetServerConfigRequest").msgclass
|
471
|
+
ServerConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.ServerConfig").msgclass
|
472
|
+
CreateNodePoolRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.CreateNodePoolRequest").msgclass
|
473
|
+
DeleteNodePoolRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.DeleteNodePoolRequest").msgclass
|
474
|
+
ListNodePoolsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.ListNodePoolsRequest").msgclass
|
475
|
+
GetNodePoolRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.GetNodePoolRequest").msgclass
|
476
|
+
NodePool = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.NodePool").msgclass
|
477
|
+
NodePool::Status = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.NodePool.Status").enummodule
|
478
|
+
NodeManagement = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.NodeManagement").msgclass
|
479
|
+
AutoUpgradeOptions = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.AutoUpgradeOptions").msgclass
|
480
|
+
MaintenancePolicy = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.MaintenancePolicy").msgclass
|
481
|
+
MaintenanceWindow = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.MaintenanceWindow").msgclass
|
482
|
+
DailyMaintenanceWindow = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.DailyMaintenanceWindow").msgclass
|
483
|
+
SetNodePoolManagementRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.SetNodePoolManagementRequest").msgclass
|
484
|
+
SetNodePoolSizeRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.SetNodePoolSizeRequest").msgclass
|
485
|
+
RollbackNodePoolUpgradeRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.RollbackNodePoolUpgradeRequest").msgclass
|
486
|
+
ListNodePoolsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.ListNodePoolsResponse").msgclass
|
487
|
+
NodePoolAutoscaling = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.NodePoolAutoscaling").msgclass
|
488
|
+
SetLabelsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.SetLabelsRequest").msgclass
|
489
|
+
SetLegacyAbacRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.SetLegacyAbacRequest").msgclass
|
490
|
+
StartIPRotationRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.StartIPRotationRequest").msgclass
|
491
|
+
CompleteIPRotationRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.CompleteIPRotationRequest").msgclass
|
492
|
+
AcceleratorConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.AcceleratorConfig").msgclass
|
493
|
+
SetNetworkPolicyRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.SetNetworkPolicyRequest").msgclass
|
494
|
+
SetMaintenancePolicyRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.SetMaintenancePolicyRequest").msgclass
|
495
|
+
end
|
496
|
+
end
|
497
|
+
end
|