blob: e718373f3d4cf41c46d793c4efb9833d38b3d8a8 [file] [log] [blame]
Takashi Matsuo06694102015-09-11 13:55:40 -07001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070075<h1><a href="container_v1.html">Kubernetes Engine API</a> . <a href="container_v1.projects.html">projects</a> . <a href="container_v1.projects.zones.html">zones</a> . <a href="container_v1.projects.zones.clusters.html">clusters</a></h1>
Takashi Matsuo06694102015-09-11 13:55:40 -070076<h2>Instance Methods</h2>
77<p class="toc_element">
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -070078 <code><a href="container_v1.projects.zones.clusters.nodePools.html">nodePools()</a></code>
79</p>
80<p class="firstline">Returns the nodePools Resource.</p>
81
82<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070083 <code><a href="#addons">addons(projectId, zone, clusterId, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070084<p class="firstline">Sets the addons for a specific cluster.</p>
85<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070086 <code><a href="#completeIpRotation">completeIpRotation(projectId, zone, clusterId, body=None, x__xgafv=None)</a></code></p>
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -040087<p class="firstline">Completes master IP rotation.</p>
88<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070089 <code><a href="#create">create(projectId, zone, body=None, x__xgafv=None)</a></code></p>
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -040090<p class="firstline">Creates a cluster, consisting of the specified number and type of Google</p>
Takashi Matsuo06694102015-09-11 13:55:40 -070091<p class="toc_element">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070092 <code><a href="#delete">delete(projectId, zone, clusterId, name=None, x__xgafv=None)</a></code></p>
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -040093<p class="firstline">Deletes the cluster, including the Kubernetes endpoint and all worker</p>
Takashi Matsuo06694102015-09-11 13:55:40 -070094<p class="toc_element">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070095 <code><a href="#get">get(projectId, zone, clusterId, name=None, x__xgafv=None)</a></code></p>
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -070096<p class="firstline">Gets the details of a specific cluster.</p>
Takashi Matsuo06694102015-09-11 13:55:40 -070097<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070098 <code><a href="#legacyAbac">legacyAbac(projectId, zone, clusterId, body=None, x__xgafv=None)</a></code></p>
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -040099<p class="firstline">Enables or disables the ABAC authorization mechanism on a cluster.</p>
100<p class="toc_element">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700101 <code><a href="#list">list(projectId, zone, parent=None, x__xgafv=None)</a></code></p>
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400102<p class="firstline">Lists all clusters owned by a project in either the specified zone or all</p>
103<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700104 <code><a href="#locations">locations(projectId, zone, clusterId, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700105<p class="firstline">Sets the locations for a specific cluster.</p>
106<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700107 <code><a href="#logging">logging(projectId, zone, clusterId, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700108<p class="firstline">Sets the logging service for a specific cluster.</p>
109<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700110 <code><a href="#master">master(projectId, zone, clusterId, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700111<p class="firstline">Updates the master for a specific cluster.</p>
112<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700113 <code><a href="#monitoring">monitoring(projectId, zone, clusterId, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700114<p class="firstline">Sets the monitoring service for a specific cluster.</p>
115<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700116 <code><a href="#resourceLabels">resourceLabels(projectId, zone, clusterId, body=None, x__xgafv=None)</a></code></p>
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400117<p class="firstline">Sets labels on a cluster.</p>
118<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700119 <code><a href="#setMaintenancePolicy">setMaintenancePolicy(projectId, zone, clusterId, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700120<p class="firstline">Sets the maintenance policy for a cluster.</p>
121<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700122 <code><a href="#setMasterAuth">setMasterAuth(projectId, zone, clusterId, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700123<p class="firstline">Sets master auth materials. Currently supports changing the admin password</p>
124<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700125 <code><a href="#setNetworkPolicy">setNetworkPolicy(projectId, zone, clusterId, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700126<p class="firstline">Enables or disables Network Policy for a cluster.</p>
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400127<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700128 <code><a href="#startIpRotation">startIpRotation(projectId, zone, clusterId, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700129<p class="firstline">Starts master IP rotation.</p>
Takashi Matsuo06694102015-09-11 13:55:40 -0700130<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700131 <code><a href="#update">update(projectId, zone, clusterId, body=None, x__xgafv=None)</a></code></p>
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700132<p class="firstline">Updates the settings of a specific cluster.</p>
Takashi Matsuo06694102015-09-11 13:55:40 -0700133<h3>Method Details</h3>
134<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700135 <code class="details" id="addons">addons(projectId, zone, clusterId, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700136 <pre>Sets the addons for a specific cluster.
Takashi Matsuo06694102015-09-11 13:55:40 -0700137
138Args:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700139 projectId: string, Deprecated. The Google Developers Console [project ID or project
140number](https://support.google.com/cloud/answer/6158840).
141This field has been deprecated and replaced by the name field. (required)
142 zone: string, Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -0700143[zone](https://cloud.google.com/compute/docs/zones#available) in which the
144cluster resides. This field has been deprecated and replaced by the name
145field. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700146 clusterId: string, Deprecated. The name of the cluster to upgrade.
147This field has been deprecated and replaced by the name field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700148 body: object, The request body.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400149 The object takes the form of:
150
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700151{ # SetAddonsConfigRequest sets the addons associated with the cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -0700152 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster) of the cluster to set addons.
153 # Specified in the format `projects/*/locations/*/clusters/*`.
154 &quot;projectId&quot;: &quot;A String&quot;, # Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700155 # number](https://support.google.com/cloud/answer/6158840).
156 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -0700157 &quot;zone&quot;: &quot;A String&quot;, # Deprecated. The name of the Google Compute Engine
158 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
159 # cluster resides. This field has been deprecated and replaced by the name
160 # field.
161 &quot;clusterId&quot;: &quot;A String&quot;, # Deprecated. The name of the cluster to upgrade.
162 # This field has been deprecated and replaced by the name field.
163 &quot;addonsConfig&quot;: { # Configuration for the addons that can be automatically spun up in the # Required. The desired configurations for the various addons available to run in the
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700164 # cluster.
165 # cluster, enabling additional functionality.
Bu Sun Kim65020912020-05-20 12:08:20 -0700166 &quot;networkPolicyConfig&quot;: { # Configuration for NetworkPolicy. This only tracks whether the addon # Configuration for NetworkPolicy. This only tracks whether the addon
167 # is enabled or not on the Master, it does not track whether network policy
168 # is enabled for the nodes.
169 # is enabled or not on the Master, it does not track whether network policy
170 # is enabled for the nodes.
171 &quot;disabled&quot;: True or False, # Whether NetworkPolicy is enabled for this cluster.
172 },
173 &quot;cloudRunConfig&quot;: { # Configuration options for the Cloud Run feature. # Configuration for the Cloud Run addon, which allows the user to use a
174 # managed Knative service.
175 &quot;disabled&quot;: True or False, # Whether Cloud Run addon is enabled for this cluster.
176 },
177 &quot;horizontalPodAutoscaling&quot;: { # Configuration options for the horizontal pod autoscaling feature, which # Configuration for the horizontal pod autoscaling feature, which
178 # increases or decreases the number of replica pods a replication controller
179 # has based on the resource usage of the existing pods.
180 # increases or decreases the number of replica pods a replication controller
181 # has based on the resource usage of the existing pods.
182 &quot;disabled&quot;: True or False, # Whether the Horizontal Pod Autoscaling feature is enabled in the cluster.
183 # When enabled, it ensures that metrics are collected into Stackdriver
184 # Monitoring.
185 },
186 &quot;httpLoadBalancing&quot;: { # Configuration options for the HTTP (L7) load balancing controller addon, # Configuration for the HTTP (L7) load balancing controller addon, which
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700187 # makes it easy to set up HTTP load balancers for services in a cluster.
188 # which makes it easy to set up HTTP load balancers for services in a cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -0700189 &quot;disabled&quot;: True or False, # Whether the HTTP Load Balancing controller is enabled in the cluster.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700190 # When enabled, it runs a small pod in the cluster that manages the load
191 # balancers.
192 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700193 &quot;kubernetesDashboard&quot;: { # Configuration for the Kubernetes Dashboard. # Configuration for the Kubernetes Dashboard.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700194 # This addon is deprecated, and will be disabled in 1.15. It is recommended
195 # to use the Cloud Console to manage and monitor your Kubernetes clusters,
196 # workloads and applications. For more information, see:
197 # https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
Bu Sun Kim65020912020-05-20 12:08:20 -0700198 &quot;disabled&quot;: True or False, # Whether the Kubernetes Dashboard is enabled for this cluster.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700199 },
200 },
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400201 }
202
203 x__xgafv: string, V1 error format.
204 Allowed values
205 1 - v1 error format
206 2 - v2 error format
207
208Returns:
209 An object of the form:
210
211 { # This operation resource represents operations that may have happened or are
212 # happening on the cluster. All fields are output only.
Bu Sun Kim65020912020-05-20 12:08:20 -0700213 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
214 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700215 { # StatusCondition describes why a cluster or a node pool has a certain status
216 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -0700217 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
218 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700219 },
220 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700221 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
Dan O'Mearadd494642020-05-01 07:42:23 -0700222 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -0700223 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -0700224 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
225 # or
226 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
227 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -0700228 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
229 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
230 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
231 &quot;stages&quot;: [ # Substages of an operation or a stage.
232 # Object with schema name: OperationProgress
233 ],
234 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
235 # Unset for single-stage operations.
236 &quot;metrics&quot;: [ # Progress metric bundle, for example:
237 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
238 # {name: &quot;nodes total&quot;, int_value: 32}]
239 # or
240 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
241 # {name: &quot;progress scale&quot;, double_value: 1.0}]
242 { # Progress metric is (string, int|float|string) pair.
243 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
244 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
245 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
246 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
247 },
248 ],
249 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
250 # Unset for single-stage operations.
251 },
252 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
253 { # StatusCondition describes why a cluster or a node pool has a certain status
254 # (e.g., ERROR or DEGRADED).
255 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
256 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
257 },
258 ],
259 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
260 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
261 # operation is taking place. This field is deprecated, use location instead.
262 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
263 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
264 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
265 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
266 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
267 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700268 }</pre>
269</div>
270
271<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700272 <code class="details" id="completeIpRotation">completeIpRotation(projectId, zone, clusterId, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700273 <pre>Completes master IP rotation.
274
275Args:
276 projectId: string, Deprecated. The Google Developers Console [project ID or project
277number](https://developers.google.com/console/help/new/#projectnumber).
278This field has been deprecated and replaced by the name field. (required)
279 zone: string, Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -0700280[zone](https://cloud.google.com/compute/docs/zones#available) in which the
281cluster resides. This field has been deprecated and replaced by the name
282field. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700283 clusterId: string, Deprecated. The name of the cluster.
284This field has been deprecated and replaced by the name field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700285 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700286 The object takes the form of:
287
288{ # CompleteIPRotationRequest moves the cluster master back into single-IP mode.
Bu Sun Kim65020912020-05-20 12:08:20 -0700289 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster id) of the cluster to complete IP
290 # rotation. Specified in the format `projects/*/locations/*/clusters/*`.
291 &quot;projectId&quot;: &quot;A String&quot;, # Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700292 # number](https://developers.google.com/console/help/new/#projectnumber).
293 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -0700294 &quot;zone&quot;: &quot;A String&quot;, # Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -0700295 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
296 # cluster resides. This field has been deprecated and replaced by the name
297 # field.
Bu Sun Kim65020912020-05-20 12:08:20 -0700298 &quot;clusterId&quot;: &quot;A String&quot;, # Deprecated. The name of the cluster.
299 # This field has been deprecated and replaced by the name field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700300 }
301
302 x__xgafv: string, V1 error format.
303 Allowed values
304 1 - v1 error format
305 2 - v2 error format
306
307Returns:
308 An object of the form:
309
310 { # This operation resource represents operations that may have happened or are
311 # happening on the cluster. All fields are output only.
Bu Sun Kim65020912020-05-20 12:08:20 -0700312 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
313 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700314 { # StatusCondition describes why a cluster or a node pool has a certain status
315 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -0700316 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
317 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700318 },
319 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700320 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
Dan O'Mearadd494642020-05-01 07:42:23 -0700321 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -0700322 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -0700323 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
324 # or
325 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
326 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -0700327 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
328 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
329 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
330 &quot;stages&quot;: [ # Substages of an operation or a stage.
331 # Object with schema name: OperationProgress
332 ],
333 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
334 # Unset for single-stage operations.
335 &quot;metrics&quot;: [ # Progress metric bundle, for example:
336 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
337 # {name: &quot;nodes total&quot;, int_value: 32}]
338 # or
339 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
340 # {name: &quot;progress scale&quot;, double_value: 1.0}]
341 { # Progress metric is (string, int|float|string) pair.
342 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
343 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
344 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
345 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
346 },
347 ],
348 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
349 # Unset for single-stage operations.
350 },
351 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
352 { # StatusCondition describes why a cluster or a node pool has a certain status
353 # (e.g., ERROR or DEGRADED).
354 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
355 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
356 },
357 ],
358 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
359 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
360 # operation is taking place. This field is deprecated, use location instead.
361 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
362 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
363 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
364 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
365 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
366 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400367 }</pre>
368</div>
369
370<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700371 <code class="details" id="create">create(projectId, zone, body=None, x__xgafv=None)</code>
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400372 <pre>Creates a cluster, consisting of the specified number and type of Google
373Compute Engine instances.
374
Bu Sun Kim65020912020-05-20 12:08:20 -0700375By default, the cluster is created in the project&#x27;s
Dan O'Mearadd494642020-05-01 07:42:23 -0700376[default
377network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks).
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400378
379One firewall is added for the cluster. After cluster creation,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700380the Kubelet creates routes for each node to allow the containers
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400381on that node to communicate with all other instances in the
382cluster.
383
Bu Sun Kim65020912020-05-20 12:08:20 -0700384Finally, an entry is added to the project&#x27;s global metadata indicating
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700385which CIDR range the cluster is using.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400386
387Args:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700388 projectId: string, Deprecated. The Google Developers Console [project ID or project
389number](https://support.google.com/cloud/answer/6158840).
390This field has been deprecated and replaced by the parent field. (required)
391 zone: string, Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -0700392[zone](https://cloud.google.com/compute/docs/zones#available) in which the
393cluster resides. This field has been deprecated and replaced by the parent
394field. (required)
395 body: object, The request body.
Takashi Matsuo06694102015-09-11 13:55:40 -0700396 The object takes the form of:
397
398{ # CreateClusterRequest creates a cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -0700399 &quot;projectId&quot;: &quot;A String&quot;, # Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700400 # number](https://support.google.com/cloud/answer/6158840).
401 # This field has been deprecated and replaced by the parent field.
Bu Sun Kim65020912020-05-20 12:08:20 -0700402 &quot;cluster&quot;: { # A Google Kubernetes Engine cluster. # Required. A [cluster
Dan O'Mearadd494642020-05-01 07:42:23 -0700403 # resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.zones.clusters)
Bu Sun Kim65020912020-05-20 12:08:20 -0700404 &quot;defaultMaxPodsConstraint&quot;: { # Constraints applied to pods. # The default constraint on the maximum number of pods that can be run
405 # simultaneously on a node in the node pool of this cluster. Only honored
406 # if cluster created with IP Alias support.
407 &quot;maxPodsPerNode&quot;: &quot;A String&quot;, # Constraint enforced on the max num of pods per node.
408 },
409 &quot;network&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
410 # [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
411 # to which the cluster is connected. If left unspecified, the `default`
412 # network will be used.
413 &quot;labelFingerprint&quot;: &quot;A String&quot;, # The fingerprint of the set of labels for this cluster.
414 &quot;nodeIpv4CidrSize&quot;: 42, # [Output only] The size of the address space on each node for hosting
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400415 # containers. This is provisioned from within the `container_ipv4_cidr`
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700416 # range. This field will only be set when cluster is in route-based network
417 # mode.
Bu Sun Kim65020912020-05-20 12:08:20 -0700418 &quot;masterAuthorizedNetworksConfig&quot;: { # Configuration options for the master authorized networks feature. Enabled # The configuration options for master authorized networks feature.
419 # master authorized networks will disallow all external traffic to access
420 # Kubernetes master through HTTPS except traffic from the given CIDR blocks,
421 # Google Compute Engine Public IPs and Google Prod IPs.
422 &quot;enabled&quot;: True or False, # Whether or not master authorized networks is enabled.
423 &quot;cidrBlocks&quot;: [ # cidr_blocks define up to 50 external networks that could access
424 # Kubernetes master through HTTPS.
425 { # CidrBlock contains an optional name and one CIDR block.
426 &quot;displayName&quot;: &quot;A String&quot;, # display_name is an optional field for users to identify CIDR blocks.
427 &quot;cidrBlock&quot;: &quot;A String&quot;, # cidr_block must be specified in CIDR notation.
428 },
429 ],
430 },
431 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output only] Additional information about the current status of this
432 # cluster, if available.
433 &quot;masterAuth&quot;: { # The authentication information for accessing the master endpoint. # The authentication information for accessing the master endpoint.
434 # If unspecified, the defaults are used:
435 # For clusters before v1.12, if master_auth is unspecified, `username` will
436 # be set to &quot;admin&quot;, a random password will be generated, and a client
437 # certificate will be issued.
438 # Authentication can be done using HTTP basic auth or using client
439 # certificates.
440 &quot;clusterCaCertificate&quot;: &quot;A String&quot;, # [Output only] Base64-encoded public certificate that is the root of
441 # trust for the cluster.
442 &quot;clientCertificate&quot;: &quot;A String&quot;, # [Output only] Base64-encoded public certificate used by clients to
443 # authenticate to the cluster endpoint.
444 &quot;username&quot;: &quot;A String&quot;, # The username to use for HTTP basic authentication to the master endpoint.
445 # For clusters v1.6.0 and later, basic authentication can be disabled by
446 # leaving username unspecified (or setting it to the empty string).
447 &quot;password&quot;: &quot;A String&quot;, # The password to use for HTTP basic authentication to the master endpoint.
448 # Because the master endpoint is open to the Internet, you should create a
449 # strong password. If a password is provided for cluster creation, username
450 # must be non-empty.
451 &quot;clientCertificateConfig&quot;: { # Configuration for client certificates on the cluster. # Configuration for client certificate authentication on the cluster. For
452 # clusters before v1.12, if no configuration is specified, a client
453 # certificate is issued.
454 &quot;issueClientCertificate&quot;: True or False, # Issue a client certificate.
455 },
456 &quot;clientKey&quot;: &quot;A String&quot;, # [Output only] Base64-encoded private key used by clients to authenticate
457 # to the cluster endpoint.
458 },
459 &quot;authenticatorGroupsConfig&quot;: { # Configuration for returning group information from authenticators. # Configuration controlling RBAC group membership information.
460 &quot;enabled&quot;: True or False, # Whether this cluster should return group membership lookups
461 # during authentication using a group of security groups.
462 &quot;securityGroup&quot;: &quot;A String&quot;, # The name of the security group-of-groups to be used. Only relevant
463 # if enabled = true.
464 },
465 &quot;currentMasterVersion&quot;: &quot;A String&quot;, # [Output only] The current software version of the master endpoint.
466 &quot;addonsConfig&quot;: { # Configuration for the addons that can be automatically spun up in the # Configurations for the various addons available to run in the cluster.
467 # cluster, enabling additional functionality.
468 &quot;networkPolicyConfig&quot;: { # Configuration for NetworkPolicy. This only tracks whether the addon # Configuration for NetworkPolicy. This only tracks whether the addon
469 # is enabled or not on the Master, it does not track whether network policy
470 # is enabled for the nodes.
471 # is enabled or not on the Master, it does not track whether network policy
472 # is enabled for the nodes.
473 &quot;disabled&quot;: True or False, # Whether NetworkPolicy is enabled for this cluster.
474 },
475 &quot;cloudRunConfig&quot;: { # Configuration options for the Cloud Run feature. # Configuration for the Cloud Run addon, which allows the user to use a
476 # managed Knative service.
477 &quot;disabled&quot;: True or False, # Whether Cloud Run addon is enabled for this cluster.
478 },
479 &quot;horizontalPodAutoscaling&quot;: { # Configuration options for the horizontal pod autoscaling feature, which # Configuration for the horizontal pod autoscaling feature, which
480 # increases or decreases the number of replica pods a replication controller
481 # has based on the resource usage of the existing pods.
482 # increases or decreases the number of replica pods a replication controller
483 # has based on the resource usage of the existing pods.
484 &quot;disabled&quot;: True or False, # Whether the Horizontal Pod Autoscaling feature is enabled in the cluster.
485 # When enabled, it ensures that metrics are collected into Stackdriver
486 # Monitoring.
487 },
488 &quot;httpLoadBalancing&quot;: { # Configuration options for the HTTP (L7) load balancing controller addon, # Configuration for the HTTP (L7) load balancing controller addon, which
489 # makes it easy to set up HTTP load balancers for services in a cluster.
490 # which makes it easy to set up HTTP load balancers for services in a cluster.
491 &quot;disabled&quot;: True or False, # Whether the HTTP Load Balancing controller is enabled in the cluster.
492 # When enabled, it runs a small pod in the cluster that manages the load
493 # balancers.
494 },
495 &quot;kubernetesDashboard&quot;: { # Configuration for the Kubernetes Dashboard. # Configuration for the Kubernetes Dashboard.
496 # This addon is deprecated, and will be disabled in 1.15. It is recommended
497 # to use the Cloud Console to manage and monitor your Kubernetes clusters,
498 # workloads and applications. For more information, see:
499 # https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
500 &quot;disabled&quot;: True or False, # Whether the Kubernetes Dashboard is enabled for this cluster.
501 },
502 },
503 &quot;currentNodeVersion&quot;: &quot;A String&quot;, # [Output only] Deprecated, use
504 # [NodePools.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.zones.clusters.nodePools)
505 # instead. The current version of the node software components. If they are
506 # currently at multiple versions because they&#x27;re in the process of being
507 # upgraded, this reflects the minimum version of all nodes.
508 &quot;subnetwork&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
509 # [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which
510 # the cluster is connected.
511 &quot;resourceLabels&quot;: { # The resource labels for the cluster to use to annotate any related
512 # Google Compute Engine resources.
513 &quot;a_key&quot;: &quot;A String&quot;,
514 },
515 &quot;maintenancePolicy&quot;: { # MaintenancePolicy defines the maintenance policy to be used for the cluster. # Configure the maintenance policy for this cluster.
516 &quot;window&quot;: { # MaintenanceWindow defines the maintenance window to be used for the cluster. # Specifies the maintenance window in which maintenance may be performed.
517 &quot;dailyMaintenanceWindow&quot;: { # Time window specified for daily maintenance operations. # DailyMaintenanceWindow specifies a daily maintenance operation window.
518 &quot;duration&quot;: &quot;A String&quot;, # [Output only] Duration of the time window, automatically chosen to be
519 # smallest possible in the given scenario.
520 # Duration will be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)
521 # format &quot;PTnHnMnS&quot;.
522 &quot;startTime&quot;: &quot;A String&quot;, # Time within the maintenance window to start the maintenance operations.
523 # Time format should be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)
524 # format &quot;HH:MM&quot;, where HH : [00-23] and MM : [00-59] GMT.
525 },
526 &quot;recurringWindow&quot;: { # Represents an arbitrary window of time that recurs. # RecurringWindow specifies some number of recurring time periods for
Dan O'Mearadd494642020-05-01 07:42:23 -0700527 # maintenance to occur. The time windows may be overlapping. If no
528 # maintenance windows are set, maintenance can occur at any time.
Bu Sun Kim65020912020-05-20 12:08:20 -0700529 &quot;recurrence&quot;: &quot;A String&quot;, # An RRULE (https://tools.ietf.org/html/rfc5545#section-3.8.5.3) for how
Dan O'Mearadd494642020-05-01 07:42:23 -0700530 # this window reccurs. They go on for the span of time between the start and
531 # end time.
532 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700533 # For example, to have something repeat every weekday, you&#x27;d use:
Dan O'Mearadd494642020-05-01 07:42:23 -0700534 # &lt;code&gt;FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR&lt;/code&gt;
535 # To repeat some window daily (equivalent to the DailyMaintenanceWindow):
536 # &lt;code&gt;FREQ=DAILY&lt;/code&gt;
537 # For the first weekend of every month:
538 # &lt;code&gt;FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU&lt;/code&gt;
539 # This specifies how frequently the window starts. Eg, if you wanted to have
Bu Sun Kim65020912020-05-20 12:08:20 -0700540 # a 9-5 UTC-4 window every weekday, you&#x27;d use something like:
Dan O'Mearadd494642020-05-01 07:42:23 -0700541 # &lt;code&gt;
542 # start time = 2019-01-01T09:00:00-0400
543 # end time = 2019-01-01T17:00:00-0400
544 # recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
545 # &lt;/code&gt;
546 # Windows can span multiple days. Eg, to make the window encompass every
547 # weekend from midnight Saturday till the last minute of Sunday UTC:
548 # &lt;code&gt;
549 # start time = 2019-01-05T00:00:00Z
550 # end time = 2019-01-07T23:59:00Z
551 # recurrence = FREQ=WEEKLY;BYDAY=SA
552 # &lt;/code&gt;
Bu Sun Kim65020912020-05-20 12:08:20 -0700553 # Note the start and end time&#x27;s specific dates are largely arbitrary except
Dan O'Mearadd494642020-05-01 07:42:23 -0700554 # to specify duration of the window and when it first starts.
555 # The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.
Bu Sun Kim65020912020-05-20 12:08:20 -0700556 &quot;window&quot;: { # Represents an arbitrary window of time. # The window of the first recurrence.
557 &quot;endTime&quot;: &quot;A String&quot;, # The time that the window ends. The end time should take place after the
Dan O'Mearadd494642020-05-01 07:42:23 -0700558 # start time.
Bu Sun Kim65020912020-05-20 12:08:20 -0700559 &quot;startTime&quot;: &quot;A String&quot;, # The time that the window first starts.
Dan O'Mearadd494642020-05-01 07:42:23 -0700560 },
561 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700562 &quot;maintenanceExclusions&quot;: { # Exceptions to maintenance window. Non-emergency maintenance should not
Dan O'Mearadd494642020-05-01 07:42:23 -0700563 # occur in these windows.
Bu Sun Kim65020912020-05-20 12:08:20 -0700564 &quot;a_key&quot;: { # Represents an arbitrary window of time.
565 &quot;endTime&quot;: &quot;A String&quot;, # The time that the window ends. The end time should take place after the
Dan O'Mearadd494642020-05-01 07:42:23 -0700566 # start time.
Bu Sun Kim65020912020-05-20 12:08:20 -0700567 &quot;startTime&quot;: &quot;A String&quot;, # The time that the window first starts.
Dan O'Mearadd494642020-05-01 07:42:23 -0700568 },
569 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700570 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700571 &quot;resourceVersion&quot;: &quot;A String&quot;, # A hash identifying the version of this policy, so that updates to fields of
572 # the policy won&#x27;t accidentally undo intermediate changes (and so that users
573 # of the API unaware of some fields won&#x27;t accidentally remove other fields).
Dan O'Mearadd494642020-05-01 07:42:23 -0700574 # Make a &lt;code&gt;get()&lt;/code&gt; request to the cluster to get the current
575 # resource version and include it with requests to set the policy.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700576 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700577 &quot;initialClusterVersion&quot;: &quot;A String&quot;, # The initial Kubernetes version for this cluster. Valid versions are those
578 # found in validMasterVersions returned by getServerConfig. The version can
579 # be upgraded over time; such upgrades are reflected in
580 # currentMasterVersion and currentNodeVersion.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700581 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700582 # Users may specify either explicit versions offered by
583 # Kubernetes Engine or version aliases, which have the following behavior:
584 #
585 # - &quot;latest&quot;: picks the highest valid Kubernetes version
586 # - &quot;1.X&quot;: picks the highest valid patch+gke.N patch in the 1.X version
587 # - &quot;1.X.Y&quot;: picks the highest valid gke.N patch in the 1.X.Y version
588 # - &quot;1.X.Y-gke.N&quot;: picks an explicit Kubernetes version
589 # - &quot;&quot;,&quot;-&quot;: picks the default Kubernetes version
590 &quot;ipAllocationPolicy&quot;: { # Configuration for controlling how IPs are allocated in the cluster. # Configuration for cluster IP allocation.
591 &quot;clusterIpv4Cidr&quot;: &quot;A String&quot;, # This field is deprecated, use cluster_ipv4_cidr_block.
592 &quot;servicesIpv4Cidr&quot;: &quot;A String&quot;, # This field is deprecated, use services_ipv4_cidr_block.
593 &quot;servicesIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP address range of the services IPs in this cluster. If blank, a range
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700594 # will be automatically chosen with the default size.
595 #
596 # This field is only applicable when `use_ip_aliases` is true.
597 #
598 # Set to blank to have a range chosen with the default size.
599 #
600 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
601 # netmask.
602 #
603 # Set to a
604 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
605 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
606 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
607 # to use.
Bu Sun Kim65020912020-05-20 12:08:20 -0700608 &quot;nodeIpv4Cidr&quot;: &quot;A String&quot;, # This field is deprecated, use node_ipv4_cidr_block.
609 &quot;clusterIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP address range for the cluster pod IPs. If this field is set, then
610 # `cluster.cluster_ipv4_cidr` must be left blank.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700611 #
612 # This field is only applicable when `use_ip_aliases` is true.
Bu Sun Kim65020912020-05-20 12:08:20 -0700613 #
614 # Set to blank to have a range chosen with the default size.
615 #
616 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
617 # netmask.
618 #
619 # Set to a
620 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
621 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
622 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
623 # to use.
624 &quot;clusterSecondaryRangeName&quot;: &quot;A String&quot;, # The name of the secondary range to be used for the cluster CIDR
625 # block. The secondary range will be used for pod IP
626 # addresses. This must be an existing secondary range associated
627 # with the cluster subnetwork.
628 #
629 # This field is only applicable with use_ip_aliases is true and
630 # create_subnetwork is false.
631 &quot;nodeIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP address range of the instance IPs in this cluster.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700632 #
633 # This is applicable only if `create_subnetwork` is true.
634 #
635 # Set to blank to have a range chosen with the default size.
636 #
637 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
638 # netmask.
639 #
640 # Set to a
641 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
642 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
643 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
644 # to use.
Bu Sun Kim65020912020-05-20 12:08:20 -0700645 &quot;tpuIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP address range of the Cloud TPUs in this cluster. If unspecified, a
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700646 # range will be automatically chosen with the default size.
647 #
648 # This field is only applicable when `use_ip_aliases` is true.
649 #
650 # If unspecified, the range will use the default size.
651 #
652 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
653 # netmask.
654 #
655 # Set to a
656 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
657 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
658 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
659 # to use.
Bu Sun Kim65020912020-05-20 12:08:20 -0700660 &quot;createSubnetwork&quot;: True or False, # Whether a new subnetwork will be created automatically for the cluster.
661 #
662 # This field is only applicable when `use_ip_aliases` is true.
663 &quot;useIpAliases&quot;: True or False, # Whether alias IPs will be used for pod IPs in the cluster.
664 &quot;servicesSecondaryRangeName&quot;: &quot;A String&quot;, # The name of the secondary range to be used as for the services
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700665 # CIDR block. The secondary range will be used for service
666 # ClusterIPs. This must be an existing secondary range associated
667 # with the cluster subnetwork.
668 #
669 # This field is only applicable with use_ip_aliases is true and
670 # create_subnetwork is false.
Bu Sun Kim65020912020-05-20 12:08:20 -0700671 &quot;subnetworkName&quot;: &quot;A String&quot;, # A custom subnetwork name to be used if `create_subnetwork` is true. If
672 # this field is empty, then an automatic name will be chosen for the new
673 # subnetwork.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700674 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700675 &quot;legacyAbac&quot;: { # Configuration for the legacy Attribute Based Access Control authorization # Configuration for the legacy ABAC authorization mode.
676 # mode.
677 &quot;enabled&quot;: True or False, # Whether the ABAC authorizer is enabled for this cluster. When enabled,
678 # identities in the system, including service accounts, nodes, and
679 # controllers, will have statically granted permissions beyond those
680 # provided by the RBAC configuration or IAM.
Dan O'Mearadd494642020-05-01 07:42:23 -0700681 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700682 &quot;resourceUsageExportConfig&quot;: { # Configuration for exporting cluster resource usages. # Configuration for exporting resource usages. Resource usage export is
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700683 # disabled when this config is unspecified.
Bu Sun Kim65020912020-05-20 12:08:20 -0700684 &quot;enableNetworkEgressMetering&quot;: True or False, # Whether to enable network egress metering for this cluster. If enabled, a
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700685 # daemonset will be created in the cluster to meter network egress traffic.
Bu Sun Kim65020912020-05-20 12:08:20 -0700686 &quot;consumptionMeteringConfig&quot;: { # Parameters for controlling consumption metering. # Configuration to enable resource consumption metering.
687 &quot;enabled&quot;: True or False, # Whether to enable consumption metering for this cluster. If enabled, a
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700688 # second BigQuery table will be created to hold resource consumption
689 # records.
690 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700691 &quot;bigqueryDestination&quot;: { # Parameters for using BigQuery as the destination of resource usage export. # Configuration to use BigQuery as usage export destination.
692 &quot;datasetId&quot;: &quot;A String&quot;, # The ID of a BigQuery Dataset.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700693 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700694 },
695 &quot;enableTpu&quot;: True or False, # Enable the ability to use Cloud TPUs in this cluster.
696 &quot;locations&quot;: [ # The list of Google Compute Engine
697 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
698 # cluster&#x27;s nodes should be located.
699 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700700 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700701 &quot;nodePools&quot;: [ # The node pools associated with this cluster.
702 # This field should not be set if &quot;node_config&quot; or &quot;initial_node_count&quot; are
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400703 # specified.
Bu Sun Kim65020912020-05-20 12:08:20 -0700704 { # NodePool contains the name and configuration for a cluster&#x27;s node pool.
705 # Node pools are a set of nodes (i.e. VM&#x27;s), with a common configuration and
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400706 # specification, under the control of the cluster master. They may have a set
707 # of Kubernetes labels applied to them, which may be used to reference them
708 # during pod scheduling. They may also be resized up or down, to accommodate
709 # the workload.
Bu Sun Kim65020912020-05-20 12:08:20 -0700710 &quot;initialNodeCount&quot;: 42, # The initial node count for the pool. You must ensure that your
711 # Compute Engine &lt;a href=&quot;/compute/docs/resource-quotas&quot;&gt;resource quota&lt;/a&gt;
712 # is sufficient for this number of instances. You must also have available
713 # firewall and routes quota.
714 &quot;locations&quot;: [ # The list of Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -0700715 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
Bu Sun Kim65020912020-05-20 12:08:20 -0700716 # NodePool&#x27;s nodes should be located.
717 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -0700718 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700719 &quot;selfLink&quot;: &quot;A String&quot;, # [Output only] Server-defined URL for the resource.
720 &quot;upgradeSettings&quot;: { # These upgrade settings control the level of parallelism and the level of # Upgrade settings control disruption and speed of the upgrade.
Dan O'Mearadd494642020-05-01 07:42:23 -0700721 # disruption caused by an upgrade.
722 #
723 # maxUnavailable controls the number of nodes that can be simultaneously
724 # unavailable.
725 #
726 # maxSurge controls the number of additional nodes that can be added to the
727 # node pool temporarily for the time of the upgrade to increase the number of
728 # available nodes.
729 #
730 # (maxUnavailable + maxSurge) determines the level of parallelism (how many
731 # nodes are being upgraded at the same time).
732 #
733 # Note: upgrades inevitably introduce some disruption since workloads need to
734 # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
735 # this holds true. (Disruption stays within the limits of
736 # PodDisruptionBudget, if it is configured.)
737 #
738 # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
739 # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
740 # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
741 # down 3 old (not yet upgraded) nodes at the same time. This ensures that
742 # there are always at least 4 nodes available.
Bu Sun Kim65020912020-05-20 12:08:20 -0700743 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during
Dan O'Mearadd494642020-05-01 07:42:23 -0700744 # the upgrade process. A node is considered available if its status is
745 # Ready.
Bu Sun Kim65020912020-05-20 12:08:20 -0700746 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size
747 # of the node pool during the upgrade process.
Dan O'Mearadd494642020-05-01 07:42:23 -0700748 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700749 &quot;instanceGroupUrls&quot;: [ # [Output only] The resource URLs of the [managed instance
750 # groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
751 # associated with this node pool.
752 &quot;A String&quot;,
753 ],
754 &quot;version&quot;: &quot;A String&quot;, # The version of the Kubernetes of this node.
755 &quot;podIpv4CidrSize&quot;: 42, # [Output only] The pod CIDR block size per node in this node pool.
756 &quot;conditions&quot;: [ # Which conditions caused the current node pool state.
757 { # StatusCondition describes why a cluster or a node pool has a certain status
758 # (e.g., ERROR or DEGRADED).
759 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
760 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Dan O'Mearadd494642020-05-01 07:42:23 -0700761 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700762 ],
763 &quot;status&quot;: &quot;A String&quot;, # [Output only] The status of the nodes in this pool instance.
764 &quot;config&quot;: { # Parameters that describe the nodes in a cluster. # The node configuration of the pool.
765 &quot;tags&quot;: [ # The list of instance tags applied to all nodes. Tags are used to identify
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400766 # valid sources or targets for network firewalls and are specified by
767 # the client during cluster or node pool creation. Each tag within the list
768 # must comply with RFC1035.
Bu Sun Kim65020912020-05-20 12:08:20 -0700769 &quot;A String&quot;,
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400770 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700771 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs.
Dan O'Mearadd494642020-05-01 07:42:23 -0700772 # Specify the email address of the Service Account; otherwise, if no Service
Bu Sun Kim65020912020-05-20 12:08:20 -0700773 # Account is specified, the &quot;default&quot; service account is used.
774 &quot;imageType&quot;: &quot;A String&quot;, # The image type to use for this node. Note that for a given image type,
775 # the latest version of it will be used.
776 &quot;oauthScopes&quot;: [ # The set of Google API scopes to be made available on all of the
777 # node VMs under the &quot;default&quot; service account.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400778 #
779 # The following scopes are recommended, but not required, and by default are
780 # not included:
781 #
782 # * `https://www.googleapis.com/auth/compute` is required for mounting
783 # persistent storage on your nodes.
784 # * `https://www.googleapis.com/auth/devstorage.read_only` is required for
785 # communicating with **gcr.io**
Dan O'Mearadd494642020-05-01 07:42:23 -0700786 # (the [Google Container
787 # Registry](https://cloud.google.com/container-registry/)).
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400788 #
789 # If unspecified, no scopes are added, unless Cloud Logging or Cloud
790 # Monitoring are enabled, in which case their required scopes will be added.
Bu Sun Kim65020912020-05-20 12:08:20 -0700791 &quot;A String&quot;,
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700792 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700793 &quot;taints&quot;: [ # List of kubernetes taints to be applied to each node.
Dan O'Mearadd494642020-05-01 07:42:23 -0700794 #
795 # For more information, including usage and the valid values, see:
796 # https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
797 { # Kubernetes taint is comprised of three fields: key, value, and effect. Effect
798 # can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute.
799 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700800 # See
801 # [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration)
802 # for more information, including usage and the valid values.
803 &quot;key&quot;: &quot;A String&quot;, # Key for taint.
804 &quot;value&quot;: &quot;A String&quot;, # Value for taint.
805 &quot;effect&quot;: &quot;A String&quot;, # Effect for taint.
Dan O'Mearadd494642020-05-01 07:42:23 -0700806 },
807 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700808 &quot;labels&quot;: { # The map of Kubernetes labels (key/value pairs) to be applied to each node.
809 # These will added in addition to any default label(s) that
810 # Kubernetes may apply to the node.
811 # In case of conflict in label keys, the applied set may differ depending on
812 # the Kubernetes version -- it&#x27;s best to assume the behavior is undefined
813 # and conflicts should be avoided.
814 # For more information, including usage and the valid values, see:
815 # https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
816 &quot;a_key&quot;: &quot;A String&quot;,
817 },
818 &quot;diskSizeGb&quot;: 42, # Size of the disk attached to each node, specified in GB.
819 # The smallest allowed disk size is 10GB.
820 #
821 # If unspecified, the default disk size is 100GB.
822 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to # The workload metadata configuration for this node.
823 # workloads on the node pool.
824 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running
825 # on the node pool.
826 },
827 &quot;accelerators&quot;: [ # A list of hardware accelerators to be attached to each node.
828 # See https://cloud.google.com/compute/docs/gpus for more information about
829 # support for GPUs.
830 { # AcceleratorConfig represents a Hardware Accelerator request.
831 &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of the accelerator cards exposed to an instance.
832 &quot;acceleratorType&quot;: &quot;A String&quot;, # The accelerator type resource name. List of supported accelerators
833 # [here](https://cloud.google.com/compute/docs/gpus)
834 },
835 ],
836 &quot;machineType&quot;: &quot;A String&quot;, # The name of a Google Compute Engine [machine
837 # type](https://cloud.google.com/compute/docs/machine-types) (e.g.
838 # `n1-standard-1`).
839 #
840 # If unspecified, the default machine type is
841 # `n1-standard-1`.
842 &quot;diskType&quot;: &quot;A String&quot;, # Type of the disk attached to each node (e.g. &#x27;pd-standard&#x27; or &#x27;pd-ssd&#x27;)
843 #
844 # If unspecified, the default disk type is &#x27;pd-standard&#x27;
845 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
846 &quot;enableSecureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled.
847 #
848 # Secure Boot helps ensure that the system only runs authentic software by
849 # verifying the digital signature of all boot components, and halting the
850 # boot process if signature verification fails.
851 &quot;enableIntegrityMonitoring&quot;: True or False, # Defines whether the instance has integrity monitoring enabled.
852 #
853 # Enables monitoring and attestation of the boot integrity of the instance.
854 # The attestation is performed against the integrity policy baseline. This
855 # baseline is initially derived from the implicitly trusted boot image when
856 # the instance is created.
857 },
858 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used by this instance. The instance may be
859 # scheduled on the specified or newer CPU platform. Applicable values are the
860 # friendly names of CPU platforms, such as
861 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Haswell&amp;quot;&lt;/code&gt; or
862 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Sandy Bridge&amp;quot;&lt;/code&gt;. For more
863 # information, read [how to specify min CPU
864 # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
865 &quot;preemptible&quot;: True or False, # Whether the nodes are created as preemptible VM instances. See:
866 # https://cloud.google.com/compute/docs/instances/preemptible for more
867 # information about preemptible VM instances.
868 &quot;localSsdCount&quot;: 42, # The number of local SSD disks to be attached to the node.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400869 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700870 # The limit for this value is dependent upon the maximum number of
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400871 # disks available on a machine per zone. See:
Dan O'Mearadd494642020-05-01 07:42:23 -0700872 # https://cloud.google.com/compute/docs/disks/local-ssd
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400873 # for more information.
Bu Sun Kim65020912020-05-20 12:08:20 -0700874 &quot;sandboxConfig&quot;: { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node.
875 &quot;type&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700876 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700877 &quot;metadata&quot;: { # The metadata key/value pairs assigned to instances in the cluster.
878 #
879 # Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
880 # in length. These are reflected as part of a URL in the metadata server.
881 # Additionally, to avoid ambiguity, keys must not conflict with any other
882 # metadata keys for the project or be one of the reserved keys:
883 # &quot;cluster-location&quot;
884 # &quot;cluster-name&quot;
885 # &quot;cluster-uid&quot;
886 # &quot;configure-sh&quot;
887 # &quot;containerd-configure-sh&quot;
888 # &quot;enable-os-login&quot;
889 # &quot;gci-ensure-gke-docker&quot;
890 # &quot;gci-metrics-enabled&quot;
891 # &quot;gci-update-strategy&quot;
892 # &quot;instance-template&quot;
893 # &quot;kube-env&quot;
894 # &quot;startup-script&quot;
895 # &quot;user-data&quot;
896 # &quot;disable-address-manager&quot;
897 # &quot;windows-startup-script-ps1&quot;
898 # &quot;common-psm1&quot;
899 # &quot;k8s-node-setup-psm1&quot;
900 # &quot;install-ssh-psm1&quot;
901 # &quot;user-profile-psm1&quot;
902 # &quot;serial-port-logging-enable&quot;
903 #
904 # Values are free-form strings, and only have meaning as interpreted by
905 # the image running in the instance. The only restriction placed on them is
906 # that each value&#x27;s size must be less than or equal to 32 KB.
907 #
908 # The total size of all keys and values must be less than 512 KB.
909 &quot;a_key&quot;: &quot;A String&quot;,
910 },
911 &quot;reservationAffinity&quot;: { # [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) # The optional reservation affinity. Setting this field will apply
912 # the specified [Zonal Compute
913 # Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
914 # to this node pool.
915 # is the configuration of desired reservation which instances could take
916 # capacity from.
917 &quot;key&quot;: &quot;A String&quot;, # Corresponds to the label key of a reservation resource. To target a
918 # SPECIFIC_RESERVATION by name, specify &quot;googleapis.com/reservation-name&quot; as
919 # the key and specify the name of your reservation as its value.
920 &quot;values&quot;: [ # Corresponds to the label value(s) of reservation resource(s).
921 &quot;A String&quot;,
922 ],
923 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Corresponds to the type of reservation consumption.
924 },
925 },
926 &quot;maxPodsConstraint&quot;: { # Constraints applied to pods. # The constraint on the maximum number of pods that can be run
927 # simultaneously on a node in the node pool.
928 &quot;maxPodsPerNode&quot;: &quot;A String&quot;, # Constraint enforced on the max num of pods per node.
929 },
930 &quot;name&quot;: &quot;A String&quot;, # The name of the node pool.
931 &quot;management&quot;: { # NodeManagement defines the set of node management services turned on for the # NodeManagement configuration for this NodePool.
932 # node pool.
933 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool.
934 # the Auto Upgrades will proceed.
935 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
936 # with the description of the upgrade.
937 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
938 # with the approximate start time for the upgrades, in
939 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
940 },
941 &quot;autoUpgrade&quot;: True or False, # A flag that specifies whether node auto-upgrade is enabled for the node
942 # pool. If enabled, node auto-upgrade helps keep the nodes in your node pool
943 # up to date with the latest release version of Kubernetes.
944 &quot;autoRepair&quot;: True or False, # A flag that specifies whether the node auto-repair is enabled for the node
945 # pool. If enabled, the nodes in this node pool will be monitored and, if
946 # they fail health checks too many times, an automatic repair action will be
947 # triggered.
948 },
949 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output only] Additional information about the current status of this
Dan O'Mearadd494642020-05-01 07:42:23 -0700950 # node pool instance, if available.
Bu Sun Kim65020912020-05-20 12:08:20 -0700951 &quot;autoscaling&quot;: { # NodePoolAutoscaling contains information required by cluster autoscaler to # Autoscaler configuration for this NodePool. Autoscaler is enabled
952 # only if a valid configuration is present.
953 # adjust the size of the node pool to the current cluster usage.
954 &quot;enabled&quot;: True or False, # Is autoscaling enabled for this node pool.
955 &quot;maxNodeCount&quot;: 42, # Maximum number of nodes in the NodePool. Must be &gt;= min_node_count. There
956 # has to enough quota to scale up the cluster.
957 &quot;minNodeCount&quot;: 42, # Minimum number of nodes in the NodePool. Must be &gt;= 1 and &lt;=
958 # max_node_count.
959 &quot;autoprovisioned&quot;: True or False, # Can this node pool be deleted automatically.
960 },
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700961 },
962 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700963 &quot;selfLink&quot;: &quot;A String&quot;, # [Output only] Server-defined URL for the resource.
964 &quot;networkPolicy&quot;: { # Configuration options for the NetworkPolicy feature. # Configuration options for the NetworkPolicy feature.
965 # https://kubernetes.io/docs/concepts/services-networking/networkpolicies/
966 &quot;provider&quot;: &quot;A String&quot;, # The selected network policy provider.
967 &quot;enabled&quot;: True or False, # Whether network policy is enabled on the cluster.
968 },
969 &quot;servicesIpv4Cidr&quot;: &quot;A String&quot;, # [Output only] The IP address range of the Kubernetes services in
970 # this cluster, in
971 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
972 # notation (e.g. `1.2.3.4/29`). Service addresses are
973 # typically put in the last `/16` from the container CIDR.
974 &quot;enableKubernetesAlpha&quot;: True or False, # Kubernetes alpha features are enabled on this cluster. This includes alpha
975 # API groups (e.g. v1alpha1) and features that may not be production ready in
976 # the kubernetes version of the master and nodes.
977 # The cluster has no SLA for uptime and master/node upgrades are disabled.
978 # Alpha enabled clusters are automatically deleted thirty days after
979 # creation.
980 &quot;description&quot;: &quot;A String&quot;, # An optional description of this cluster.
981 &quot;conditions&quot;: [ # Which conditions caused the current cluster state.
982 { # StatusCondition describes why a cluster or a node pool has a certain status
983 # (e.g., ERROR or DEGRADED).
984 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
985 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
986 },
987 ],
988 &quot;currentNodeCount&quot;: 42, # [Output only] The number of nodes currently in the cluster. Deprecated.
989 # Call Kubernetes API directly to retrieve node information.
990 &quot;monitoringService&quot;: &quot;A String&quot;, # The monitoring service the cluster should use to write metrics.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400991 # Currently available options:
992 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700993 # * &quot;monitoring.googleapis.com/kubernetes&quot; - The Cloud Monitoring
Dan O'Mearadd494642020-05-01 07:42:23 -0700994 # service with a Kubernetes-native resource model
995 # * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
996 # longer available as of GKE 1.15).
997 # * `none` - No metrics will be exported from the cluster.
998 #
999 # If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
1000 # used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
Bu Sun Kim65020912020-05-20 12:08:20 -07001001 &quot;databaseEncryption&quot;: { # Configuration of etcd encryption. # Configuration of etcd encryption.
1002 &quot;keyName&quot;: &quot;A String&quot;, # Name of CloudKMS key to use for the encryption of secrets in etcd.
1003 # Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key
1004 &quot;state&quot;: &quot;A String&quot;, # Denotes the state of etcd encryption.
Takashi Matsuo06694102015-09-11 13:55:40 -07001005 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001006 &quot;binaryAuthorization&quot;: { # Configuration for Binary Authorization. # Configuration for Binary Authorization.
1007 &quot;enabled&quot;: True or False, # Enable Binary Authorization for this cluster. If enabled, all container
1008 # images will be validated by Binary Authorization.
1009 },
1010 &quot;tpuIpv4CidrBlock&quot;: &quot;A String&quot;, # [Output only] The IP address range of the Cloud TPUs in this cluster, in
1011 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
1012 # notation (e.g. `1.2.3.4/29`).
1013 &quot;workloadIdentityConfig&quot;: { # Configuration for the use of Kubernetes Service Accounts in GCP IAM # Configuration for the use of Kubernetes Service Accounts in GCP IAM
1014 # policies.
1015 # policies.
1016 &quot;workloadPool&quot;: &quot;A String&quot;, # The workload pool to attach all Kubernetes service accounts to.
1017 },
1018 &quot;zone&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
1019 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1020 # cluster resides. This field is deprecated, use location instead.
1021 &quot;expireTime&quot;: &quot;A String&quot;, # [Output only] The time the cluster will be automatically
1022 # deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1023 &quot;loggingService&quot;: &quot;A String&quot;, # The logging service the cluster should use to write logs.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001024 # Currently available options:
1025 #
Dan O'Mearadd494642020-05-01 07:42:23 -07001026 # * `logging.googleapis.com/kubernetes` - The Cloud Logging
1027 # service with a Kubernetes-native resource model
1028 # * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
1029 # available as of GKE 1.15).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001030 # * `none` - no logs will be exported from the cluster.
Dan O'Mearadd494642020-05-01 07:42:23 -07001031 #
1032 # If left as an empty string,`logging.googleapis.com/kubernetes` will be
1033 # used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
Bu Sun Kim65020912020-05-20 12:08:20 -07001034 &quot;nodeConfig&quot;: { # Parameters that describe the nodes in a cluster. # Parameters used in creating the cluster&#x27;s nodes.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04001035 # For requests, this field should only be used in lieu of a
Bu Sun Kim65020912020-05-20 12:08:20 -07001036 # &quot;node_pool&quot; object, since this configuration (along with the
1037 # &quot;initial_node_count&quot;) will be used to create a &quot;NodePool&quot; object with an
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04001038 # auto-generated name. Do not use this and a node_pool at the same time.
1039 # For responses, this field will be populated with the node configuration of
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001040 # the first node pool. (For configuration of each node pool, see
1041 # `node_pool.config`)
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04001042 #
1043 # If unspecified, the defaults are used.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001044 # This field is deprecated, use node_pool.config instead.
Bu Sun Kim65020912020-05-20 12:08:20 -07001045 &quot;tags&quot;: [ # The list of instance tags applied to all nodes. Tags are used to identify
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04001046 # valid sources or targets for network firewalls and are specified by
1047 # the client during cluster or node pool creation. Each tag within the list
1048 # must comply with RFC1035.
Bu Sun Kim65020912020-05-20 12:08:20 -07001049 &quot;A String&quot;,
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04001050 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001051 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs.
Dan O'Mearadd494642020-05-01 07:42:23 -07001052 # Specify the email address of the Service Account; otherwise, if no Service
Bu Sun Kim65020912020-05-20 12:08:20 -07001053 # Account is specified, the &quot;default&quot; service account is used.
1054 &quot;imageType&quot;: &quot;A String&quot;, # The image type to use for this node. Note that for a given image type,
1055 # the latest version of it will be used.
1056 &quot;oauthScopes&quot;: [ # The set of Google API scopes to be made available on all of the
1057 # node VMs under the &quot;default&quot; service account.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04001058 #
1059 # The following scopes are recommended, but not required, and by default are
1060 # not included:
1061 #
1062 # * `https://www.googleapis.com/auth/compute` is required for mounting
1063 # persistent storage on your nodes.
1064 # * `https://www.googleapis.com/auth/devstorage.read_only` is required for
1065 # communicating with **gcr.io**
Dan O'Mearadd494642020-05-01 07:42:23 -07001066 # (the [Google Container
1067 # Registry](https://cloud.google.com/container-registry/)).
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04001068 #
1069 # If unspecified, no scopes are added, unless Cloud Logging or Cloud
1070 # Monitoring are enabled, in which case their required scopes will be added.
Bu Sun Kim65020912020-05-20 12:08:20 -07001071 &quot;A String&quot;,
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04001072 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001073 &quot;taints&quot;: [ # List of kubernetes taints to be applied to each node.
Dan O'Mearadd494642020-05-01 07:42:23 -07001074 #
1075 # For more information, including usage and the valid values, see:
1076 # https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
1077 { # Kubernetes taint is comprised of three fields: key, value, and effect. Effect
1078 # can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute.
1079 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001080 # See
1081 # [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration)
1082 # for more information, including usage and the valid values.
1083 &quot;key&quot;: &quot;A String&quot;, # Key for taint.
1084 &quot;value&quot;: &quot;A String&quot;, # Value for taint.
1085 &quot;effect&quot;: &quot;A String&quot;, # Effect for taint.
Dan O'Mearadd494642020-05-01 07:42:23 -07001086 },
1087 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001088 &quot;labels&quot;: { # The map of Kubernetes labels (key/value pairs) to be applied to each node.
1089 # These will added in addition to any default label(s) that
1090 # Kubernetes may apply to the node.
1091 # In case of conflict in label keys, the applied set may differ depending on
1092 # the Kubernetes version -- it&#x27;s best to assume the behavior is undefined
1093 # and conflicts should be avoided.
1094 # For more information, including usage and the valid values, see:
1095 # https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
1096 &quot;a_key&quot;: &quot;A String&quot;,
1097 },
1098 &quot;diskSizeGb&quot;: 42, # Size of the disk attached to each node, specified in GB.
1099 # The smallest allowed disk size is 10GB.
1100 #
1101 # If unspecified, the default disk size is 100GB.
1102 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to # The workload metadata configuration for this node.
1103 # workloads on the node pool.
1104 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running
1105 # on the node pool.
1106 },
1107 &quot;accelerators&quot;: [ # A list of hardware accelerators to be attached to each node.
1108 # See https://cloud.google.com/compute/docs/gpus for more information about
1109 # support for GPUs.
1110 { # AcceleratorConfig represents a Hardware Accelerator request.
1111 &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of the accelerator cards exposed to an instance.
1112 &quot;acceleratorType&quot;: &quot;A String&quot;, # The accelerator type resource name. List of supported accelerators
1113 # [here](https://cloud.google.com/compute/docs/gpus)
1114 },
1115 ],
1116 &quot;machineType&quot;: &quot;A String&quot;, # The name of a Google Compute Engine [machine
1117 # type](https://cloud.google.com/compute/docs/machine-types) (e.g.
1118 # `n1-standard-1`).
1119 #
1120 # If unspecified, the default machine type is
1121 # `n1-standard-1`.
1122 &quot;diskType&quot;: &quot;A String&quot;, # Type of the disk attached to each node (e.g. &#x27;pd-standard&#x27; or &#x27;pd-ssd&#x27;)
1123 #
1124 # If unspecified, the default disk type is &#x27;pd-standard&#x27;
1125 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
1126 &quot;enableSecureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled.
1127 #
1128 # Secure Boot helps ensure that the system only runs authentic software by
1129 # verifying the digital signature of all boot components, and halting the
1130 # boot process if signature verification fails.
1131 &quot;enableIntegrityMonitoring&quot;: True or False, # Defines whether the instance has integrity monitoring enabled.
1132 #
1133 # Enables monitoring and attestation of the boot integrity of the instance.
1134 # The attestation is performed against the integrity policy baseline. This
1135 # baseline is initially derived from the implicitly trusted boot image when
1136 # the instance is created.
1137 },
1138 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used by this instance. The instance may be
1139 # scheduled on the specified or newer CPU platform. Applicable values are the
1140 # friendly names of CPU platforms, such as
1141 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Haswell&amp;quot;&lt;/code&gt; or
1142 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Sandy Bridge&amp;quot;&lt;/code&gt;. For more
1143 # information, read [how to specify min CPU
1144 # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
1145 &quot;preemptible&quot;: True or False, # Whether the nodes are created as preemptible VM instances. See:
1146 # https://cloud.google.com/compute/docs/instances/preemptible for more
1147 # information about preemptible VM instances.
1148 &quot;localSsdCount&quot;: 42, # The number of local SSD disks to be attached to the node.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04001149 #
Dan O'Mearadd494642020-05-01 07:42:23 -07001150 # The limit for this value is dependent upon the maximum number of
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04001151 # disks available on a machine per zone. See:
Dan O'Mearadd494642020-05-01 07:42:23 -07001152 # https://cloud.google.com/compute/docs/disks/local-ssd
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04001153 # for more information.
Bu Sun Kim65020912020-05-20 12:08:20 -07001154 &quot;sandboxConfig&quot;: { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node.
1155 &quot;type&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node.
1156 },
1157 &quot;metadata&quot;: { # The metadata key/value pairs assigned to instances in the cluster.
1158 #
1159 # Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
1160 # in length. These are reflected as part of a URL in the metadata server.
1161 # Additionally, to avoid ambiguity, keys must not conflict with any other
1162 # metadata keys for the project or be one of the reserved keys:
1163 # &quot;cluster-location&quot;
1164 # &quot;cluster-name&quot;
1165 # &quot;cluster-uid&quot;
1166 # &quot;configure-sh&quot;
1167 # &quot;containerd-configure-sh&quot;
1168 # &quot;enable-os-login&quot;
1169 # &quot;gci-ensure-gke-docker&quot;
1170 # &quot;gci-metrics-enabled&quot;
1171 # &quot;gci-update-strategy&quot;
1172 # &quot;instance-template&quot;
1173 # &quot;kube-env&quot;
1174 # &quot;startup-script&quot;
1175 # &quot;user-data&quot;
1176 # &quot;disable-address-manager&quot;
1177 # &quot;windows-startup-script-ps1&quot;
1178 # &quot;common-psm1&quot;
1179 # &quot;k8s-node-setup-psm1&quot;
1180 # &quot;install-ssh-psm1&quot;
1181 # &quot;user-profile-psm1&quot;
1182 # &quot;serial-port-logging-enable&quot;
1183 #
1184 # Values are free-form strings, and only have meaning as interpreted by
1185 # the image running in the instance. The only restriction placed on them is
1186 # that each value&#x27;s size must be less than or equal to 32 KB.
1187 #
1188 # The total size of all keys and values must be less than 512 KB.
1189 &quot;a_key&quot;: &quot;A String&quot;,
1190 },
1191 &quot;reservationAffinity&quot;: { # [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) # The optional reservation affinity. Setting this field will apply
1192 # the specified [Zonal Compute
1193 # Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
1194 # to this node pool.
1195 # is the configuration of desired reservation which instances could take
1196 # capacity from.
1197 &quot;key&quot;: &quot;A String&quot;, # Corresponds to the label key of a reservation resource. To target a
1198 # SPECIFIC_RESERVATION by name, specify &quot;googleapis.com/reservation-name&quot; as
1199 # the key and specify the name of your reservation as its value.
1200 &quot;values&quot;: [ # Corresponds to the label value(s) of reservation resource(s).
1201 &quot;A String&quot;,
1202 ],
1203 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Corresponds to the type of reservation consumption.
1204 },
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04001205 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001206 &quot;status&quot;: &quot;A String&quot;, # [Output only] The current status of this cluster.
1207 &quot;networkConfig&quot;: { # NetworkConfig reports the relative names of network &amp; subnetwork. # Configuration for cluster networking.
1208 &quot;subnetwork&quot;: &quot;A String&quot;, # Output only. The relative name of the Google Compute Engine
1209 # [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the
1210 # cluster is connected. Example:
1211 # projects/my-project/regions/us-central1/subnetworks/my-subnet
1212 &quot;network&quot;: &quot;A String&quot;, # Output only. The relative name of the Google Compute Engine
1213 # network(https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
1214 # to which the cluster is connected. Example:
1215 # projects/my-project/global/networks/my-network
1216 &quot;enableIntraNodeVisibility&quot;: True or False, # Whether Intra-node visibility is enabled for this cluster.
1217 # This makes same node pod to pod traffic visible for VPC network.
1218 },
1219 &quot;name&quot;: &quot;A String&quot;, # The name of this cluster. The name must be unique within this project
1220 # and location (e.g. zone or region), and can be up to 40 characters with
1221 # the following restrictions:
1222 #
1223 # * Lowercase letters, numbers, and hyphens only.
1224 # * Must start with a letter.
1225 # * Must end with a number or a letter.
1226 &quot;endpoint&quot;: &quot;A String&quot;, # [Output only] The IP address of this cluster&#x27;s master endpoint.
1227 # The endpoint can be accessed from the internet at
1228 # `https://username:password@endpoint/`.
1229 #
1230 # See the `masterAuth` property of this resource for username and
1231 # password information.
1232 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
1233 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1234 # or
1235 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1236 # in which the cluster resides.
1237 &quot;createTime&quot;: &quot;A String&quot;, # [Output only] The time the cluster was created, in
1238 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1239 &quot;clusterIpv4Cidr&quot;: &quot;A String&quot;, # The IP address range of the container pods in this cluster, in
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04001240 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
1241 # notation (e.g. `10.96.0.0/14`). Leave blank to have
1242 # one automatically chosen or specify a `/14` block in `10.0.0.0/8`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001243 &quot;autoscaling&quot;: { # ClusterAutoscaling contains global, per-cluster information # Cluster-level autoscaling configuration.
1244 # required by Cluster Autoscaler to automatically adjust
1245 # the size of the cluster and create/delete
1246 # node pools based on the current needs.
1247 &quot;autoprovisioningLocations&quot;: [ # The list of Google Compute Engine
1248 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
1249 # NodePool&#x27;s nodes can be created by NAP.
1250 &quot;A String&quot;,
1251 ],
1252 &quot;resourceLimits&quot;: [ # Contains global constraints regarding minimum and maximum
1253 # amount of resources in the cluster.
1254 { # Contains information about amount of some resource in the cluster.
1255 # For memory, value should be in GB.
1256 &quot;maximum&quot;: &quot;A String&quot;, # Maximum amount of the resource in the cluster.
1257 &quot;resourceType&quot;: &quot;A String&quot;, # Resource name &quot;cpu&quot;, &quot;memory&quot; or gpu-specific string.
1258 &quot;minimum&quot;: &quot;A String&quot;, # Minimum amount of the resource in the cluster.
1259 },
1260 ],
1261 &quot;enableNodeAutoprovisioning&quot;: True or False, # Enables automatic node pool creation and deletion.
1262 &quot;autoprovisioningNodePoolDefaults&quot;: { # AutoprovisioningNodePoolDefaults contains defaults for a node pool created # AutoprovisioningNodePoolDefaults contains defaults for a node pool
1263 # created by NAP.
1264 # by NAP.
1265 &quot;oauthScopes&quot;: [ # Scopes that are used by NAP when creating node pools. If oauth_scopes are
1266 # specified, service_account should be empty.
1267 &quot;A String&quot;,
1268 ],
1269 &quot;management&quot;: { # NodeManagement defines the set of node management services turned on for the # Specifies the node management options for NAP created node-pools.
1270 # node pool.
1271 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool.
1272 # the Auto Upgrades will proceed.
1273 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
1274 # with the description of the upgrade.
1275 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
1276 # with the approximate start time for the upgrades, in
1277 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1278 },
1279 &quot;autoUpgrade&quot;: True or False, # A flag that specifies whether node auto-upgrade is enabled for the node
1280 # pool. If enabled, node auto-upgrade helps keep the nodes in your node pool
1281 # up to date with the latest release version of Kubernetes.
1282 &quot;autoRepair&quot;: True or False, # A flag that specifies whether the node auto-repair is enabled for the node
1283 # pool. If enabled, the nodes in this node pool will be monitored and, if
1284 # they fail health checks too many times, an automatic repair action will be
1285 # triggered.
1286 },
1287 &quot;upgradeSettings&quot;: { # These upgrade settings control the level of parallelism and the level of # Specifies the upgrade settings for NAP created node pools
1288 # disruption caused by an upgrade.
1289 #
1290 # maxUnavailable controls the number of nodes that can be simultaneously
1291 # unavailable.
1292 #
1293 # maxSurge controls the number of additional nodes that can be added to the
1294 # node pool temporarily for the time of the upgrade to increase the number of
1295 # available nodes.
1296 #
1297 # (maxUnavailable + maxSurge) determines the level of parallelism (how many
1298 # nodes are being upgraded at the same time).
1299 #
1300 # Note: upgrades inevitably introduce some disruption since workloads need to
1301 # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
1302 # this holds true. (Disruption stays within the limits of
1303 # PodDisruptionBudget, if it is configured.)
1304 #
1305 # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
1306 # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
1307 # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
1308 # down 3 old (not yet upgraded) nodes at the same time. This ensures that
1309 # there are always at least 4 nodes available.
1310 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during
1311 # the upgrade process. A node is considered available if its status is
1312 # Ready.
1313 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size
1314 # of the node pool during the upgrade process.
1315 },
1316 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs. If
1317 # service_account is specified, scopes should be empty.
1318 },
1319 },
1320 &quot;initialNodeCount&quot;: 42, # The number of nodes to create in this cluster. You must ensure that your
1321 # Compute Engine &lt;a href=&quot;/compute/docs/resource-quotas&quot;&gt;resource quota&lt;/a&gt;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001322 # is sufficient for this number of instances. You must also have available
1323 # firewall and routes quota.
1324 # For requests, this field should only be used in lieu of a
Bu Sun Kim65020912020-05-20 12:08:20 -07001325 # &quot;node_pool&quot; object, since this configuration (along with the
1326 # &quot;node_config&quot;) will be used to create a &quot;NodePool&quot; object with an
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001327 # auto-generated name. Do not use this and a node_pool at the same time.
1328 #
1329 # This field is deprecated, use node_pool.initial_node_count instead.
Bu Sun Kim65020912020-05-20 12:08:20 -07001330 &quot;instanceGroupUrls&quot;: [ # Deprecated. Use node_pools.instance_group_urls.
1331 &quot;A String&quot;,
1332 ],
1333 &quot;privateClusterConfig&quot;: { # Configuration options for private clusters. # Configuration for private cluster.
1334 &quot;peeringName&quot;: &quot;A String&quot;, # Output only. The peering name in the customer VPC used by this cluster.
1335 &quot;publicEndpoint&quot;: &quot;A String&quot;, # Output only. The external IP address of this cluster&#x27;s master endpoint.
1336 &quot;enablePrivateNodes&quot;: True or False, # Whether nodes have internal IP addresses only. If enabled, all nodes are
1337 # given only RFC 1918 private addresses and communicate with the master via
1338 # private networking.
1339 &quot;masterIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP range in CIDR notation to use for the hosted master network. This
1340 # range will be used for assigning internal IP addresses to the master or
1341 # set of masters, as well as the ILB VIP. This range must not overlap with
1342 # any other ranges in use within the cluster&#x27;s network.
1343 &quot;privateEndpoint&quot;: &quot;A String&quot;, # Output only. The internal IP address of this cluster&#x27;s master endpoint.
1344 &quot;enablePrivateEndpoint&quot;: True or False, # Whether the master&#x27;s internal IP address is used as the cluster endpoint.
1345 },
1346 &quot;shieldedNodes&quot;: { # Configuration of Shielded Nodes feature. # Shielded Nodes configuration.
1347 &quot;enabled&quot;: True or False, # Whether Shielded Nodes features are enabled on all nodes in this cluster.
1348 },
1349 &quot;verticalPodAutoscaling&quot;: { # VerticalPodAutoscaling contains global, per-cluster information # Cluster-level Vertical Pod Autoscaling configuration.
1350 # required by Vertical Pod Autoscaler to automatically adjust
1351 # the resources of pods controlled by it.
1352 &quot;enabled&quot;: True or False, # Enables vertical pod autoscaling.
1353 },
Takashi Matsuo06694102015-09-11 13:55:40 -07001354 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001355 &quot;zone&quot;: &quot;A String&quot;, # Deprecated. The name of the Google Compute Engine
1356 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1357 # cluster resides. This field has been deprecated and replaced by the parent
1358 # field.
1359 &quot;parent&quot;: &quot;A String&quot;, # The parent (project and location) where the cluster will be created.
1360 # Specified in the format `projects/*/locations/*`.
Takashi Matsuo06694102015-09-11 13:55:40 -07001361 }
1362
1363 x__xgafv: string, V1 error format.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04001364 Allowed values
1365 1 - v1 error format
1366 2 - v2 error format
Takashi Matsuo06694102015-09-11 13:55:40 -07001367
1368Returns:
1369 An object of the form:
1370
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04001371 { # This operation resource represents operations that may have happened or are
1372 # happening on the cluster. All fields are output only.
Bu Sun Kim65020912020-05-20 12:08:20 -07001373 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
1374 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001375 { # StatusCondition describes why a cluster or a node pool has a certain status
1376 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07001377 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
1378 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001379 },
1380 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001381 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
Dan O'Mearadd494642020-05-01 07:42:23 -07001382 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07001383 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001384 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1385 # or
1386 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1387 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07001388 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
1389 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1390 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
1391 &quot;stages&quot;: [ # Substages of an operation or a stage.
1392 # Object with schema name: OperationProgress
1393 ],
1394 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
1395 # Unset for single-stage operations.
1396 &quot;metrics&quot;: [ # Progress metric bundle, for example:
1397 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
1398 # {name: &quot;nodes total&quot;, int_value: 32}]
1399 # or
1400 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
1401 # {name: &quot;progress scale&quot;, double_value: 1.0}]
1402 { # Progress metric is (string, int|float|string) pair.
1403 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
1404 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
1405 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
1406 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
1407 },
1408 ],
1409 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
1410 # Unset for single-stage operations.
1411 },
1412 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
1413 { # StatusCondition describes why a cluster or a node pool has a certain status
1414 # (e.g., ERROR or DEGRADED).
1415 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
1416 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
1417 },
1418 ],
1419 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
1420 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1421 # operation is taking place. This field is deprecated, use location instead.
1422 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
1423 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
1424 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
1425 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
1426 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
1427 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Takashi Matsuo06694102015-09-11 13:55:40 -07001428 }</pre>
1429</div>
1430
1431<div class="method">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001432 <code class="details" id="delete">delete(projectId, zone, clusterId, name=None, x__xgafv=None)</code>
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04001433 <pre>Deletes the cluster, including the Kubernetes endpoint and all worker
1434nodes.
1435
1436Firewalls and routes that were configured during cluster creation
1437are also deleted.
1438
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001439Other Google Compute Engine resources that might be in use by the cluster,
Bu Sun Kim65020912020-05-20 12:08:20 -07001440such as load balancer resources, are not deleted if they weren&#x27;t present
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001441when the cluster was initially created.
Takashi Matsuo06694102015-09-11 13:55:40 -07001442
1443Args:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001444 projectId: string, Deprecated. The Google Developers Console [project ID or project
1445number](https://support.google.com/cloud/answer/6158840).
1446This field has been deprecated and replaced by the name field. (required)
1447 zone: string, Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001448[zone](https://cloud.google.com/compute/docs/zones#available) in which the
1449cluster resides. This field has been deprecated and replaced by the name
1450field. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001451 clusterId: string, Deprecated. The name of the cluster to delete.
1452This field has been deprecated and replaced by the name field. (required)
1453 name: string, The name (project, location, cluster) of the cluster to delete.
Bu Sun Kim65020912020-05-20 12:08:20 -07001454Specified in the format `projects/*/locations/*/clusters/*`.
Takashi Matsuo06694102015-09-11 13:55:40 -07001455 x__xgafv: string, V1 error format.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04001456 Allowed values
1457 1 - v1 error format
1458 2 - v2 error format
Takashi Matsuo06694102015-09-11 13:55:40 -07001459
1460Returns:
1461 An object of the form:
1462
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04001463 { # This operation resource represents operations that may have happened or are
1464 # happening on the cluster. All fields are output only.
Bu Sun Kim65020912020-05-20 12:08:20 -07001465 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
1466 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001467 { # StatusCondition describes why a cluster or a node pool has a certain status
1468 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07001469 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
1470 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001471 },
1472 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001473 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
Dan O'Mearadd494642020-05-01 07:42:23 -07001474 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07001475 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001476 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1477 # or
1478 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1479 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07001480 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
1481 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1482 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
1483 &quot;stages&quot;: [ # Substages of an operation or a stage.
1484 # Object with schema name: OperationProgress
1485 ],
1486 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
1487 # Unset for single-stage operations.
1488 &quot;metrics&quot;: [ # Progress metric bundle, for example:
1489 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
1490 # {name: &quot;nodes total&quot;, int_value: 32}]
1491 # or
1492 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
1493 # {name: &quot;progress scale&quot;, double_value: 1.0}]
1494 { # Progress metric is (string, int|float|string) pair.
1495 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
1496 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
1497 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
1498 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
1499 },
1500 ],
1501 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
1502 # Unset for single-stage operations.
1503 },
1504 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
1505 { # StatusCondition describes why a cluster or a node pool has a certain status
1506 # (e.g., ERROR or DEGRADED).
1507 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
1508 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
1509 },
1510 ],
1511 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
1512 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1513 # operation is taking place. This field is deprecated, use location instead.
1514 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
1515 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
1516 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
1517 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
1518 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
1519 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Takashi Matsuo06694102015-09-11 13:55:40 -07001520 }</pre>
1521</div>
1522
1523<div class="method">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001524 <code class="details" id="get">get(projectId, zone, clusterId, name=None, x__xgafv=None)</code>
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -07001525 <pre>Gets the details of a specific cluster.
Takashi Matsuo06694102015-09-11 13:55:40 -07001526
1527Args:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001528 projectId: string, Deprecated. The Google Developers Console [project ID or project
1529number](https://support.google.com/cloud/answer/6158840).
1530This field has been deprecated and replaced by the name field. (required)
1531 zone: string, Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001532[zone](https://cloud.google.com/compute/docs/zones#available) in which the
1533cluster resides. This field has been deprecated and replaced by the name
1534field. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001535 clusterId: string, Deprecated. The name of the cluster to retrieve.
1536This field has been deprecated and replaced by the name field. (required)
1537 name: string, The name (project, location, cluster) of the cluster to retrieve.
Bu Sun Kim65020912020-05-20 12:08:20 -07001538Specified in the format `projects/*/locations/*/clusters/*`.
Takashi Matsuo06694102015-09-11 13:55:40 -07001539 x__xgafv: string, V1 error format.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04001540 Allowed values
1541 1 - v1 error format
1542 2 - v2 error format
Takashi Matsuo06694102015-09-11 13:55:40 -07001543
1544Returns:
1545 An object of the form:
1546
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001547 { # A Google Kubernetes Engine cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -07001548 &quot;defaultMaxPodsConstraint&quot;: { # Constraints applied to pods. # The default constraint on the maximum number of pods that can be run
1549 # simultaneously on a node in the node pool of this cluster. Only honored
1550 # if cluster created with IP Alias support.
1551 &quot;maxPodsPerNode&quot;: &quot;A String&quot;, # Constraint enforced on the max num of pods per node.
1552 },
1553 &quot;network&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
1554 # [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
1555 # to which the cluster is connected. If left unspecified, the `default`
1556 # network will be used.
1557 &quot;labelFingerprint&quot;: &quot;A String&quot;, # The fingerprint of the set of labels for this cluster.
1558 &quot;nodeIpv4CidrSize&quot;: 42, # [Output only] The size of the address space on each node for hosting
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04001559 # containers. This is provisioned from within the `container_ipv4_cidr`
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001560 # range. This field will only be set when cluster is in route-based network
1561 # mode.
Bu Sun Kim65020912020-05-20 12:08:20 -07001562 &quot;masterAuthorizedNetworksConfig&quot;: { # Configuration options for the master authorized networks feature. Enabled # The configuration options for master authorized networks feature.
1563 # master authorized networks will disallow all external traffic to access
1564 # Kubernetes master through HTTPS except traffic from the given CIDR blocks,
1565 # Google Compute Engine Public IPs and Google Prod IPs.
1566 &quot;enabled&quot;: True or False, # Whether or not master authorized networks is enabled.
1567 &quot;cidrBlocks&quot;: [ # cidr_blocks define up to 50 external networks that could access
1568 # Kubernetes master through HTTPS.
1569 { # CidrBlock contains an optional name and one CIDR block.
1570 &quot;displayName&quot;: &quot;A String&quot;, # display_name is an optional field for users to identify CIDR blocks.
1571 &quot;cidrBlock&quot;: &quot;A String&quot;, # cidr_block must be specified in CIDR notation.
1572 },
1573 ],
1574 },
1575 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output only] Additional information about the current status of this
1576 # cluster, if available.
1577 &quot;masterAuth&quot;: { # The authentication information for accessing the master endpoint. # The authentication information for accessing the master endpoint.
1578 # If unspecified, the defaults are used:
1579 # For clusters before v1.12, if master_auth is unspecified, `username` will
1580 # be set to &quot;admin&quot;, a random password will be generated, and a client
1581 # certificate will be issued.
1582 # Authentication can be done using HTTP basic auth or using client
1583 # certificates.
1584 &quot;clusterCaCertificate&quot;: &quot;A String&quot;, # [Output only] Base64-encoded public certificate that is the root of
1585 # trust for the cluster.
1586 &quot;clientCertificate&quot;: &quot;A String&quot;, # [Output only] Base64-encoded public certificate used by clients to
1587 # authenticate to the cluster endpoint.
1588 &quot;username&quot;: &quot;A String&quot;, # The username to use for HTTP basic authentication to the master endpoint.
1589 # For clusters v1.6.0 and later, basic authentication can be disabled by
1590 # leaving username unspecified (or setting it to the empty string).
1591 &quot;password&quot;: &quot;A String&quot;, # The password to use for HTTP basic authentication to the master endpoint.
1592 # Because the master endpoint is open to the Internet, you should create a
1593 # strong password. If a password is provided for cluster creation, username
1594 # must be non-empty.
1595 &quot;clientCertificateConfig&quot;: { # Configuration for client certificates on the cluster. # Configuration for client certificate authentication on the cluster. For
1596 # clusters before v1.12, if no configuration is specified, a client
1597 # certificate is issued.
1598 &quot;issueClientCertificate&quot;: True or False, # Issue a client certificate.
1599 },
1600 &quot;clientKey&quot;: &quot;A String&quot;, # [Output only] Base64-encoded private key used by clients to authenticate
1601 # to the cluster endpoint.
1602 },
1603 &quot;authenticatorGroupsConfig&quot;: { # Configuration for returning group information from authenticators. # Configuration controlling RBAC group membership information.
1604 &quot;enabled&quot;: True or False, # Whether this cluster should return group membership lookups
1605 # during authentication using a group of security groups.
1606 &quot;securityGroup&quot;: &quot;A String&quot;, # The name of the security group-of-groups to be used. Only relevant
1607 # if enabled = true.
1608 },
1609 &quot;currentMasterVersion&quot;: &quot;A String&quot;, # [Output only] The current software version of the master endpoint.
1610 &quot;addonsConfig&quot;: { # Configuration for the addons that can be automatically spun up in the # Configurations for the various addons available to run in the cluster.
1611 # cluster, enabling additional functionality.
1612 &quot;networkPolicyConfig&quot;: { # Configuration for NetworkPolicy. This only tracks whether the addon # Configuration for NetworkPolicy. This only tracks whether the addon
1613 # is enabled or not on the Master, it does not track whether network policy
1614 # is enabled for the nodes.
1615 # is enabled or not on the Master, it does not track whether network policy
1616 # is enabled for the nodes.
1617 &quot;disabled&quot;: True or False, # Whether NetworkPolicy is enabled for this cluster.
1618 },
1619 &quot;cloudRunConfig&quot;: { # Configuration options for the Cloud Run feature. # Configuration for the Cloud Run addon, which allows the user to use a
1620 # managed Knative service.
1621 &quot;disabled&quot;: True or False, # Whether Cloud Run addon is enabled for this cluster.
1622 },
1623 &quot;horizontalPodAutoscaling&quot;: { # Configuration options for the horizontal pod autoscaling feature, which # Configuration for the horizontal pod autoscaling feature, which
1624 # increases or decreases the number of replica pods a replication controller
1625 # has based on the resource usage of the existing pods.
1626 # increases or decreases the number of replica pods a replication controller
1627 # has based on the resource usage of the existing pods.
1628 &quot;disabled&quot;: True or False, # Whether the Horizontal Pod Autoscaling feature is enabled in the cluster.
1629 # When enabled, it ensures that metrics are collected into Stackdriver
1630 # Monitoring.
1631 },
1632 &quot;httpLoadBalancing&quot;: { # Configuration options for the HTTP (L7) load balancing controller addon, # Configuration for the HTTP (L7) load balancing controller addon, which
1633 # makes it easy to set up HTTP load balancers for services in a cluster.
1634 # which makes it easy to set up HTTP load balancers for services in a cluster.
1635 &quot;disabled&quot;: True or False, # Whether the HTTP Load Balancing controller is enabled in the cluster.
1636 # When enabled, it runs a small pod in the cluster that manages the load
1637 # balancers.
1638 },
1639 &quot;kubernetesDashboard&quot;: { # Configuration for the Kubernetes Dashboard. # Configuration for the Kubernetes Dashboard.
1640 # This addon is deprecated, and will be disabled in 1.15. It is recommended
1641 # to use the Cloud Console to manage and monitor your Kubernetes clusters,
1642 # workloads and applications. For more information, see:
1643 # https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
1644 &quot;disabled&quot;: True or False, # Whether the Kubernetes Dashboard is enabled for this cluster.
1645 },
1646 },
1647 &quot;currentNodeVersion&quot;: &quot;A String&quot;, # [Output only] Deprecated, use
1648 # [NodePools.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.zones.clusters.nodePools)
1649 # instead. The current version of the node software components. If they are
1650 # currently at multiple versions because they&#x27;re in the process of being
1651 # upgraded, this reflects the minimum version of all nodes.
1652 &quot;subnetwork&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
1653 # [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which
1654 # the cluster is connected.
1655 &quot;resourceLabels&quot;: { # The resource labels for the cluster to use to annotate any related
1656 # Google Compute Engine resources.
1657 &quot;a_key&quot;: &quot;A String&quot;,
1658 },
1659 &quot;maintenancePolicy&quot;: { # MaintenancePolicy defines the maintenance policy to be used for the cluster. # Configure the maintenance policy for this cluster.
1660 &quot;window&quot;: { # MaintenanceWindow defines the maintenance window to be used for the cluster. # Specifies the maintenance window in which maintenance may be performed.
1661 &quot;dailyMaintenanceWindow&quot;: { # Time window specified for daily maintenance operations. # DailyMaintenanceWindow specifies a daily maintenance operation window.
1662 &quot;duration&quot;: &quot;A String&quot;, # [Output only] Duration of the time window, automatically chosen to be
1663 # smallest possible in the given scenario.
1664 # Duration will be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)
1665 # format &quot;PTnHnMnS&quot;.
1666 &quot;startTime&quot;: &quot;A String&quot;, # Time within the maintenance window to start the maintenance operations.
1667 # Time format should be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)
1668 # format &quot;HH:MM&quot;, where HH : [00-23] and MM : [00-59] GMT.
1669 },
1670 &quot;recurringWindow&quot;: { # Represents an arbitrary window of time that recurs. # RecurringWindow specifies some number of recurring time periods for
Dan O'Mearadd494642020-05-01 07:42:23 -07001671 # maintenance to occur. The time windows may be overlapping. If no
1672 # maintenance windows are set, maintenance can occur at any time.
Bu Sun Kim65020912020-05-20 12:08:20 -07001673 &quot;recurrence&quot;: &quot;A String&quot;, # An RRULE (https://tools.ietf.org/html/rfc5545#section-3.8.5.3) for how
Dan O'Mearadd494642020-05-01 07:42:23 -07001674 # this window reccurs. They go on for the span of time between the start and
1675 # end time.
1676 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001677 # For example, to have something repeat every weekday, you&#x27;d use:
Dan O'Mearadd494642020-05-01 07:42:23 -07001678 # &lt;code&gt;FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR&lt;/code&gt;
1679 # To repeat some window daily (equivalent to the DailyMaintenanceWindow):
1680 # &lt;code&gt;FREQ=DAILY&lt;/code&gt;
1681 # For the first weekend of every month:
1682 # &lt;code&gt;FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU&lt;/code&gt;
1683 # This specifies how frequently the window starts. Eg, if you wanted to have
Bu Sun Kim65020912020-05-20 12:08:20 -07001684 # a 9-5 UTC-4 window every weekday, you&#x27;d use something like:
Dan O'Mearadd494642020-05-01 07:42:23 -07001685 # &lt;code&gt;
1686 # start time = 2019-01-01T09:00:00-0400
1687 # end time = 2019-01-01T17:00:00-0400
1688 # recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
1689 # &lt;/code&gt;
1690 # Windows can span multiple days. Eg, to make the window encompass every
1691 # weekend from midnight Saturday till the last minute of Sunday UTC:
1692 # &lt;code&gt;
1693 # start time = 2019-01-05T00:00:00Z
1694 # end time = 2019-01-07T23:59:00Z
1695 # recurrence = FREQ=WEEKLY;BYDAY=SA
1696 # &lt;/code&gt;
Bu Sun Kim65020912020-05-20 12:08:20 -07001697 # Note the start and end time&#x27;s specific dates are largely arbitrary except
Dan O'Mearadd494642020-05-01 07:42:23 -07001698 # to specify duration of the window and when it first starts.
1699 # The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.
Bu Sun Kim65020912020-05-20 12:08:20 -07001700 &quot;window&quot;: { # Represents an arbitrary window of time. # The window of the first recurrence.
1701 &quot;endTime&quot;: &quot;A String&quot;, # The time that the window ends. The end time should take place after the
Dan O'Mearadd494642020-05-01 07:42:23 -07001702 # start time.
Bu Sun Kim65020912020-05-20 12:08:20 -07001703 &quot;startTime&quot;: &quot;A String&quot;, # The time that the window first starts.
Dan O'Mearadd494642020-05-01 07:42:23 -07001704 },
1705 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001706 &quot;maintenanceExclusions&quot;: { # Exceptions to maintenance window. Non-emergency maintenance should not
Dan O'Mearadd494642020-05-01 07:42:23 -07001707 # occur in these windows.
Bu Sun Kim65020912020-05-20 12:08:20 -07001708 &quot;a_key&quot;: { # Represents an arbitrary window of time.
1709 &quot;endTime&quot;: &quot;A String&quot;, # The time that the window ends. The end time should take place after the
Dan O'Mearadd494642020-05-01 07:42:23 -07001710 # start time.
Bu Sun Kim65020912020-05-20 12:08:20 -07001711 &quot;startTime&quot;: &quot;A String&quot;, # The time that the window first starts.
Dan O'Mearadd494642020-05-01 07:42:23 -07001712 },
1713 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001714 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001715 &quot;resourceVersion&quot;: &quot;A String&quot;, # A hash identifying the version of this policy, so that updates to fields of
1716 # the policy won&#x27;t accidentally undo intermediate changes (and so that users
1717 # of the API unaware of some fields won&#x27;t accidentally remove other fields).
Dan O'Mearadd494642020-05-01 07:42:23 -07001718 # Make a &lt;code&gt;get()&lt;/code&gt; request to the cluster to get the current
1719 # resource version and include it with requests to set the policy.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001720 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001721 &quot;initialClusterVersion&quot;: &quot;A String&quot;, # The initial Kubernetes version for this cluster. Valid versions are those
1722 # found in validMasterVersions returned by getServerConfig. The version can
1723 # be upgraded over time; such upgrades are reflected in
1724 # currentMasterVersion and currentNodeVersion.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001725 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001726 # Users may specify either explicit versions offered by
1727 # Kubernetes Engine or version aliases, which have the following behavior:
1728 #
1729 # - &quot;latest&quot;: picks the highest valid Kubernetes version
1730 # - &quot;1.X&quot;: picks the highest valid patch+gke.N patch in the 1.X version
1731 # - &quot;1.X.Y&quot;: picks the highest valid gke.N patch in the 1.X.Y version
1732 # - &quot;1.X.Y-gke.N&quot;: picks an explicit Kubernetes version
1733 # - &quot;&quot;,&quot;-&quot;: picks the default Kubernetes version
1734 &quot;ipAllocationPolicy&quot;: { # Configuration for controlling how IPs are allocated in the cluster. # Configuration for cluster IP allocation.
1735 &quot;clusterIpv4Cidr&quot;: &quot;A String&quot;, # This field is deprecated, use cluster_ipv4_cidr_block.
1736 &quot;servicesIpv4Cidr&quot;: &quot;A String&quot;, # This field is deprecated, use services_ipv4_cidr_block.
1737 &quot;servicesIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP address range of the services IPs in this cluster. If blank, a range
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001738 # will be automatically chosen with the default size.
1739 #
1740 # This field is only applicable when `use_ip_aliases` is true.
1741 #
1742 # Set to blank to have a range chosen with the default size.
1743 #
1744 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
1745 # netmask.
1746 #
1747 # Set to a
1748 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
1749 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
1750 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
1751 # to use.
Bu Sun Kim65020912020-05-20 12:08:20 -07001752 &quot;nodeIpv4Cidr&quot;: &quot;A String&quot;, # This field is deprecated, use node_ipv4_cidr_block.
1753 &quot;clusterIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP address range for the cluster pod IPs. If this field is set, then
1754 # `cluster.cluster_ipv4_cidr` must be left blank.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001755 #
1756 # This field is only applicable when `use_ip_aliases` is true.
Bu Sun Kim65020912020-05-20 12:08:20 -07001757 #
1758 # Set to blank to have a range chosen with the default size.
1759 #
1760 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
1761 # netmask.
1762 #
1763 # Set to a
1764 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
1765 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
1766 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
1767 # to use.
1768 &quot;clusterSecondaryRangeName&quot;: &quot;A String&quot;, # The name of the secondary range to be used for the cluster CIDR
1769 # block. The secondary range will be used for pod IP
1770 # addresses. This must be an existing secondary range associated
1771 # with the cluster subnetwork.
1772 #
1773 # This field is only applicable with use_ip_aliases is true and
1774 # create_subnetwork is false.
1775 &quot;nodeIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP address range of the instance IPs in this cluster.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001776 #
1777 # This is applicable only if `create_subnetwork` is true.
1778 #
1779 # Set to blank to have a range chosen with the default size.
1780 #
1781 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
1782 # netmask.
1783 #
1784 # Set to a
1785 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
1786 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
1787 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
1788 # to use.
Bu Sun Kim65020912020-05-20 12:08:20 -07001789 &quot;tpuIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP address range of the Cloud TPUs in this cluster. If unspecified, a
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001790 # range will be automatically chosen with the default size.
1791 #
1792 # This field is only applicable when `use_ip_aliases` is true.
1793 #
1794 # If unspecified, the range will use the default size.
1795 #
1796 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
1797 # netmask.
1798 #
1799 # Set to a
1800 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
1801 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
1802 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
1803 # to use.
Bu Sun Kim65020912020-05-20 12:08:20 -07001804 &quot;createSubnetwork&quot;: True or False, # Whether a new subnetwork will be created automatically for the cluster.
1805 #
1806 # This field is only applicable when `use_ip_aliases` is true.
1807 &quot;useIpAliases&quot;: True or False, # Whether alias IPs will be used for pod IPs in the cluster.
1808 &quot;servicesSecondaryRangeName&quot;: &quot;A String&quot;, # The name of the secondary range to be used as for the services
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001809 # CIDR block. The secondary range will be used for service
1810 # ClusterIPs. This must be an existing secondary range associated
1811 # with the cluster subnetwork.
1812 #
1813 # This field is only applicable with use_ip_aliases is true and
1814 # create_subnetwork is false.
Bu Sun Kim65020912020-05-20 12:08:20 -07001815 &quot;subnetworkName&quot;: &quot;A String&quot;, # A custom subnetwork name to be used if `create_subnetwork` is true. If
1816 # this field is empty, then an automatic name will be chosen for the new
1817 # subnetwork.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001818 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001819 &quot;legacyAbac&quot;: { # Configuration for the legacy Attribute Based Access Control authorization # Configuration for the legacy ABAC authorization mode.
1820 # mode.
1821 &quot;enabled&quot;: True or False, # Whether the ABAC authorizer is enabled for this cluster. When enabled,
1822 # identities in the system, including service accounts, nodes, and
1823 # controllers, will have statically granted permissions beyond those
1824 # provided by the RBAC configuration or IAM.
Dan O'Mearadd494642020-05-01 07:42:23 -07001825 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001826 &quot;resourceUsageExportConfig&quot;: { # Configuration for exporting cluster resource usages. # Configuration for exporting resource usages. Resource usage export is
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001827 # disabled when this config is unspecified.
Bu Sun Kim65020912020-05-20 12:08:20 -07001828 &quot;enableNetworkEgressMetering&quot;: True or False, # Whether to enable network egress metering for this cluster. If enabled, a
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001829 # daemonset will be created in the cluster to meter network egress traffic.
Bu Sun Kim65020912020-05-20 12:08:20 -07001830 &quot;consumptionMeteringConfig&quot;: { # Parameters for controlling consumption metering. # Configuration to enable resource consumption metering.
1831 &quot;enabled&quot;: True or False, # Whether to enable consumption metering for this cluster. If enabled, a
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001832 # second BigQuery table will be created to hold resource consumption
1833 # records.
1834 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001835 &quot;bigqueryDestination&quot;: { # Parameters for using BigQuery as the destination of resource usage export. # Configuration to use BigQuery as usage export destination.
1836 &quot;datasetId&quot;: &quot;A String&quot;, # The ID of a BigQuery Dataset.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001837 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001838 },
1839 &quot;enableTpu&quot;: True or False, # Enable the ability to use Cloud TPUs in this cluster.
1840 &quot;locations&quot;: [ # The list of Google Compute Engine
1841 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
1842 # cluster&#x27;s nodes should be located.
1843 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001844 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001845 &quot;nodePools&quot;: [ # The node pools associated with this cluster.
1846 # This field should not be set if &quot;node_config&quot; or &quot;initial_node_count&quot; are
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04001847 # specified.
Bu Sun Kim65020912020-05-20 12:08:20 -07001848 { # NodePool contains the name and configuration for a cluster&#x27;s node pool.
1849 # Node pools are a set of nodes (i.e. VM&#x27;s), with a common configuration and
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04001850 # specification, under the control of the cluster master. They may have a set
1851 # of Kubernetes labels applied to them, which may be used to reference them
1852 # during pod scheduling. They may also be resized up or down, to accommodate
1853 # the workload.
Bu Sun Kim65020912020-05-20 12:08:20 -07001854 &quot;initialNodeCount&quot;: 42, # The initial node count for the pool. You must ensure that your
1855 # Compute Engine &lt;a href=&quot;/compute/docs/resource-quotas&quot;&gt;resource quota&lt;/a&gt;
1856 # is sufficient for this number of instances. You must also have available
1857 # firewall and routes quota.
1858 &quot;locations&quot;: [ # The list of Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001859 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
Bu Sun Kim65020912020-05-20 12:08:20 -07001860 # NodePool&#x27;s nodes should be located.
1861 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07001862 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001863 &quot;selfLink&quot;: &quot;A String&quot;, # [Output only] Server-defined URL for the resource.
1864 &quot;upgradeSettings&quot;: { # These upgrade settings control the level of parallelism and the level of # Upgrade settings control disruption and speed of the upgrade.
Dan O'Mearadd494642020-05-01 07:42:23 -07001865 # disruption caused by an upgrade.
1866 #
1867 # maxUnavailable controls the number of nodes that can be simultaneously
1868 # unavailable.
1869 #
1870 # maxSurge controls the number of additional nodes that can be added to the
1871 # node pool temporarily for the time of the upgrade to increase the number of
1872 # available nodes.
1873 #
1874 # (maxUnavailable + maxSurge) determines the level of parallelism (how many
1875 # nodes are being upgraded at the same time).
1876 #
1877 # Note: upgrades inevitably introduce some disruption since workloads need to
1878 # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
1879 # this holds true. (Disruption stays within the limits of
1880 # PodDisruptionBudget, if it is configured.)
1881 #
1882 # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
1883 # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
1884 # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
1885 # down 3 old (not yet upgraded) nodes at the same time. This ensures that
1886 # there are always at least 4 nodes available.
Bu Sun Kim65020912020-05-20 12:08:20 -07001887 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during
Dan O'Mearadd494642020-05-01 07:42:23 -07001888 # the upgrade process. A node is considered available if its status is
1889 # Ready.
Bu Sun Kim65020912020-05-20 12:08:20 -07001890 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size
1891 # of the node pool during the upgrade process.
Dan O'Mearadd494642020-05-01 07:42:23 -07001892 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001893 &quot;instanceGroupUrls&quot;: [ # [Output only] The resource URLs of the [managed instance
1894 # groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
1895 # associated with this node pool.
1896 &quot;A String&quot;,
1897 ],
1898 &quot;version&quot;: &quot;A String&quot;, # The version of the Kubernetes of this node.
1899 &quot;podIpv4CidrSize&quot;: 42, # [Output only] The pod CIDR block size per node in this node pool.
1900 &quot;conditions&quot;: [ # Which conditions caused the current node pool state.
1901 { # StatusCondition describes why a cluster or a node pool has a certain status
1902 # (e.g., ERROR or DEGRADED).
1903 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
1904 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Dan O'Mearadd494642020-05-01 07:42:23 -07001905 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001906 ],
1907 &quot;status&quot;: &quot;A String&quot;, # [Output only] The status of the nodes in this pool instance.
1908 &quot;config&quot;: { # Parameters that describe the nodes in a cluster. # The node configuration of the pool.
1909 &quot;tags&quot;: [ # The list of instance tags applied to all nodes. Tags are used to identify
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04001910 # valid sources or targets for network firewalls and are specified by
1911 # the client during cluster or node pool creation. Each tag within the list
1912 # must comply with RFC1035.
Bu Sun Kim65020912020-05-20 12:08:20 -07001913 &quot;A String&quot;,
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001914 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001915 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs.
Dan O'Mearadd494642020-05-01 07:42:23 -07001916 # Specify the email address of the Service Account; otherwise, if no Service
Bu Sun Kim65020912020-05-20 12:08:20 -07001917 # Account is specified, the &quot;default&quot; service account is used.
1918 &quot;imageType&quot;: &quot;A String&quot;, # The image type to use for this node. Note that for a given image type,
1919 # the latest version of it will be used.
1920 &quot;oauthScopes&quot;: [ # The set of Google API scopes to be made available on all of the
1921 # node VMs under the &quot;default&quot; service account.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04001922 #
1923 # The following scopes are recommended, but not required, and by default are
1924 # not included:
1925 #
1926 # * `https://www.googleapis.com/auth/compute` is required for mounting
1927 # persistent storage on your nodes.
1928 # * `https://www.googleapis.com/auth/devstorage.read_only` is required for
1929 # communicating with **gcr.io**
Dan O'Mearadd494642020-05-01 07:42:23 -07001930 # (the [Google Container
1931 # Registry](https://cloud.google.com/container-registry/)).
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04001932 #
1933 # If unspecified, no scopes are added, unless Cloud Logging or Cloud
1934 # Monitoring are enabled, in which case their required scopes will be added.
Bu Sun Kim65020912020-05-20 12:08:20 -07001935 &quot;A String&quot;,
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -07001936 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001937 &quot;taints&quot;: [ # List of kubernetes taints to be applied to each node.
Dan O'Mearadd494642020-05-01 07:42:23 -07001938 #
1939 # For more information, including usage and the valid values, see:
1940 # https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
1941 { # Kubernetes taint is comprised of three fields: key, value, and effect. Effect
1942 # can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute.
1943 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001944 # See
1945 # [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration)
1946 # for more information, including usage and the valid values.
1947 &quot;key&quot;: &quot;A String&quot;, # Key for taint.
1948 &quot;value&quot;: &quot;A String&quot;, # Value for taint.
1949 &quot;effect&quot;: &quot;A String&quot;, # Effect for taint.
Dan O'Mearadd494642020-05-01 07:42:23 -07001950 },
1951 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001952 &quot;labels&quot;: { # The map of Kubernetes labels (key/value pairs) to be applied to each node.
1953 # These will added in addition to any default label(s) that
1954 # Kubernetes may apply to the node.
1955 # In case of conflict in label keys, the applied set may differ depending on
1956 # the Kubernetes version -- it&#x27;s best to assume the behavior is undefined
1957 # and conflicts should be avoided.
1958 # For more information, including usage and the valid values, see:
1959 # https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
1960 &quot;a_key&quot;: &quot;A String&quot;,
1961 },
1962 &quot;diskSizeGb&quot;: 42, # Size of the disk attached to each node, specified in GB.
1963 # The smallest allowed disk size is 10GB.
1964 #
1965 # If unspecified, the default disk size is 100GB.
1966 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to # The workload metadata configuration for this node.
1967 # workloads on the node pool.
1968 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running
1969 # on the node pool.
1970 },
1971 &quot;accelerators&quot;: [ # A list of hardware accelerators to be attached to each node.
1972 # See https://cloud.google.com/compute/docs/gpus for more information about
1973 # support for GPUs.
1974 { # AcceleratorConfig represents a Hardware Accelerator request.
1975 &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of the accelerator cards exposed to an instance.
1976 &quot;acceleratorType&quot;: &quot;A String&quot;, # The accelerator type resource name. List of supported accelerators
1977 # [here](https://cloud.google.com/compute/docs/gpus)
1978 },
1979 ],
1980 &quot;machineType&quot;: &quot;A String&quot;, # The name of a Google Compute Engine [machine
1981 # type](https://cloud.google.com/compute/docs/machine-types) (e.g.
1982 # `n1-standard-1`).
1983 #
1984 # If unspecified, the default machine type is
1985 # `n1-standard-1`.
1986 &quot;diskType&quot;: &quot;A String&quot;, # Type of the disk attached to each node (e.g. &#x27;pd-standard&#x27; or &#x27;pd-ssd&#x27;)
1987 #
1988 # If unspecified, the default disk type is &#x27;pd-standard&#x27;
1989 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
1990 &quot;enableSecureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled.
1991 #
1992 # Secure Boot helps ensure that the system only runs authentic software by
1993 # verifying the digital signature of all boot components, and halting the
1994 # boot process if signature verification fails.
1995 &quot;enableIntegrityMonitoring&quot;: True or False, # Defines whether the instance has integrity monitoring enabled.
1996 #
1997 # Enables monitoring and attestation of the boot integrity of the instance.
1998 # The attestation is performed against the integrity policy baseline. This
1999 # baseline is initially derived from the implicitly trusted boot image when
2000 # the instance is created.
2001 },
2002 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used by this instance. The instance may be
2003 # scheduled on the specified or newer CPU platform. Applicable values are the
2004 # friendly names of CPU platforms, such as
2005 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Haswell&amp;quot;&lt;/code&gt; or
2006 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Sandy Bridge&amp;quot;&lt;/code&gt;. For more
2007 # information, read [how to specify min CPU
2008 # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
2009 &quot;preemptible&quot;: True or False, # Whether the nodes are created as preemptible VM instances. See:
2010 # https://cloud.google.com/compute/docs/instances/preemptible for more
2011 # information about preemptible VM instances.
2012 &quot;localSsdCount&quot;: 42, # The number of local SSD disks to be attached to the node.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04002013 #
Dan O'Mearadd494642020-05-01 07:42:23 -07002014 # The limit for this value is dependent upon the maximum number of
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04002015 # disks available on a machine per zone. See:
Dan O'Mearadd494642020-05-01 07:42:23 -07002016 # https://cloud.google.com/compute/docs/disks/local-ssd
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04002017 # for more information.
Bu Sun Kim65020912020-05-20 12:08:20 -07002018 &quot;sandboxConfig&quot;: { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node.
2019 &quot;type&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002020 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002021 &quot;metadata&quot;: { # The metadata key/value pairs assigned to instances in the cluster.
2022 #
2023 # Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
2024 # in length. These are reflected as part of a URL in the metadata server.
2025 # Additionally, to avoid ambiguity, keys must not conflict with any other
2026 # metadata keys for the project or be one of the reserved keys:
2027 # &quot;cluster-location&quot;
2028 # &quot;cluster-name&quot;
2029 # &quot;cluster-uid&quot;
2030 # &quot;configure-sh&quot;
2031 # &quot;containerd-configure-sh&quot;
2032 # &quot;enable-os-login&quot;
2033 # &quot;gci-ensure-gke-docker&quot;
2034 # &quot;gci-metrics-enabled&quot;
2035 # &quot;gci-update-strategy&quot;
2036 # &quot;instance-template&quot;
2037 # &quot;kube-env&quot;
2038 # &quot;startup-script&quot;
2039 # &quot;user-data&quot;
2040 # &quot;disable-address-manager&quot;
2041 # &quot;windows-startup-script-ps1&quot;
2042 # &quot;common-psm1&quot;
2043 # &quot;k8s-node-setup-psm1&quot;
2044 # &quot;install-ssh-psm1&quot;
2045 # &quot;user-profile-psm1&quot;
2046 # &quot;serial-port-logging-enable&quot;
2047 #
2048 # Values are free-form strings, and only have meaning as interpreted by
2049 # the image running in the instance. The only restriction placed on them is
2050 # that each value&#x27;s size must be less than or equal to 32 KB.
2051 #
2052 # The total size of all keys and values must be less than 512 KB.
2053 &quot;a_key&quot;: &quot;A String&quot;,
2054 },
2055 &quot;reservationAffinity&quot;: { # [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) # The optional reservation affinity. Setting this field will apply
2056 # the specified [Zonal Compute
2057 # Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
2058 # to this node pool.
2059 # is the configuration of desired reservation which instances could take
2060 # capacity from.
2061 &quot;key&quot;: &quot;A String&quot;, # Corresponds to the label key of a reservation resource. To target a
2062 # SPECIFIC_RESERVATION by name, specify &quot;googleapis.com/reservation-name&quot; as
2063 # the key and specify the name of your reservation as its value.
2064 &quot;values&quot;: [ # Corresponds to the label value(s) of reservation resource(s).
2065 &quot;A String&quot;,
2066 ],
2067 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Corresponds to the type of reservation consumption.
2068 },
2069 },
2070 &quot;maxPodsConstraint&quot;: { # Constraints applied to pods. # The constraint on the maximum number of pods that can be run
2071 # simultaneously on a node in the node pool.
2072 &quot;maxPodsPerNode&quot;: &quot;A String&quot;, # Constraint enforced on the max num of pods per node.
2073 },
2074 &quot;name&quot;: &quot;A String&quot;, # The name of the node pool.
2075 &quot;management&quot;: { # NodeManagement defines the set of node management services turned on for the # NodeManagement configuration for this NodePool.
2076 # node pool.
2077 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool.
2078 # the Auto Upgrades will proceed.
2079 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
2080 # with the description of the upgrade.
2081 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
2082 # with the approximate start time for the upgrades, in
2083 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
2084 },
2085 &quot;autoUpgrade&quot;: True or False, # A flag that specifies whether node auto-upgrade is enabled for the node
2086 # pool. If enabled, node auto-upgrade helps keep the nodes in your node pool
2087 # up to date with the latest release version of Kubernetes.
2088 &quot;autoRepair&quot;: True or False, # A flag that specifies whether the node auto-repair is enabled for the node
2089 # pool. If enabled, the nodes in this node pool will be monitored and, if
2090 # they fail health checks too many times, an automatic repair action will be
2091 # triggered.
2092 },
2093 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output only] Additional information about the current status of this
Dan O'Mearadd494642020-05-01 07:42:23 -07002094 # node pool instance, if available.
Bu Sun Kim65020912020-05-20 12:08:20 -07002095 &quot;autoscaling&quot;: { # NodePoolAutoscaling contains information required by cluster autoscaler to # Autoscaler configuration for this NodePool. Autoscaler is enabled
2096 # only if a valid configuration is present.
2097 # adjust the size of the node pool to the current cluster usage.
2098 &quot;enabled&quot;: True or False, # Is autoscaling enabled for this node pool.
2099 &quot;maxNodeCount&quot;: 42, # Maximum number of nodes in the NodePool. Must be &gt;= min_node_count. There
2100 # has to enough quota to scale up the cluster.
2101 &quot;minNodeCount&quot;: 42, # Minimum number of nodes in the NodePool. Must be &gt;= 1 and &lt;=
2102 # max_node_count.
2103 &quot;autoprovisioned&quot;: True or False, # Can this node pool be deleted automatically.
2104 },
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -07002105 },
2106 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002107 &quot;selfLink&quot;: &quot;A String&quot;, # [Output only] Server-defined URL for the resource.
2108 &quot;networkPolicy&quot;: { # Configuration options for the NetworkPolicy feature. # Configuration options for the NetworkPolicy feature.
2109 # https://kubernetes.io/docs/concepts/services-networking/networkpolicies/
2110 &quot;provider&quot;: &quot;A String&quot;, # The selected network policy provider.
2111 &quot;enabled&quot;: True or False, # Whether network policy is enabled on the cluster.
2112 },
2113 &quot;servicesIpv4Cidr&quot;: &quot;A String&quot;, # [Output only] The IP address range of the Kubernetes services in
2114 # this cluster, in
2115 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
2116 # notation (e.g. `1.2.3.4/29`). Service addresses are
2117 # typically put in the last `/16` from the container CIDR.
2118 &quot;enableKubernetesAlpha&quot;: True or False, # Kubernetes alpha features are enabled on this cluster. This includes alpha
2119 # API groups (e.g. v1alpha1) and features that may not be production ready in
2120 # the kubernetes version of the master and nodes.
2121 # The cluster has no SLA for uptime and master/node upgrades are disabled.
2122 # Alpha enabled clusters are automatically deleted thirty days after
2123 # creation.
2124 &quot;description&quot;: &quot;A String&quot;, # An optional description of this cluster.
2125 &quot;conditions&quot;: [ # Which conditions caused the current cluster state.
2126 { # StatusCondition describes why a cluster or a node pool has a certain status
2127 # (e.g., ERROR or DEGRADED).
2128 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
2129 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
2130 },
2131 ],
2132 &quot;currentNodeCount&quot;: 42, # [Output only] The number of nodes currently in the cluster. Deprecated.
2133 # Call Kubernetes API directly to retrieve node information.
2134 &quot;monitoringService&quot;: &quot;A String&quot;, # The monitoring service the cluster should use to write metrics.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04002135 # Currently available options:
2136 #
Bu Sun Kim65020912020-05-20 12:08:20 -07002137 # * &quot;monitoring.googleapis.com/kubernetes&quot; - The Cloud Monitoring
Dan O'Mearadd494642020-05-01 07:42:23 -07002138 # service with a Kubernetes-native resource model
2139 # * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
2140 # longer available as of GKE 1.15).
2141 # * `none` - No metrics will be exported from the cluster.
2142 #
2143 # If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
2144 # used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
Bu Sun Kim65020912020-05-20 12:08:20 -07002145 &quot;databaseEncryption&quot;: { # Configuration of etcd encryption. # Configuration of etcd encryption.
2146 &quot;keyName&quot;: &quot;A String&quot;, # Name of CloudKMS key to use for the encryption of secrets in etcd.
2147 # Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key
2148 &quot;state&quot;: &quot;A String&quot;, # Denotes the state of etcd encryption.
Takashi Matsuo06694102015-09-11 13:55:40 -07002149 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002150 &quot;binaryAuthorization&quot;: { # Configuration for Binary Authorization. # Configuration for Binary Authorization.
2151 &quot;enabled&quot;: True or False, # Enable Binary Authorization for this cluster. If enabled, all container
2152 # images will be validated by Binary Authorization.
2153 },
2154 &quot;tpuIpv4CidrBlock&quot;: &quot;A String&quot;, # [Output only] The IP address range of the Cloud TPUs in this cluster, in
2155 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
2156 # notation (e.g. `1.2.3.4/29`).
2157 &quot;workloadIdentityConfig&quot;: { # Configuration for the use of Kubernetes Service Accounts in GCP IAM # Configuration for the use of Kubernetes Service Accounts in GCP IAM
2158 # policies.
2159 # policies.
2160 &quot;workloadPool&quot;: &quot;A String&quot;, # The workload pool to attach all Kubernetes service accounts to.
2161 },
2162 &quot;zone&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
2163 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
2164 # cluster resides. This field is deprecated, use location instead.
2165 &quot;expireTime&quot;: &quot;A String&quot;, # [Output only] The time the cluster will be automatically
2166 # deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
2167 &quot;loggingService&quot;: &quot;A String&quot;, # The logging service the cluster should use to write logs.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002168 # Currently available options:
2169 #
Dan O'Mearadd494642020-05-01 07:42:23 -07002170 # * `logging.googleapis.com/kubernetes` - The Cloud Logging
2171 # service with a Kubernetes-native resource model
2172 # * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
2173 # available as of GKE 1.15).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002174 # * `none` - no logs will be exported from the cluster.
Dan O'Mearadd494642020-05-01 07:42:23 -07002175 #
2176 # If left as an empty string,`logging.googleapis.com/kubernetes` will be
2177 # used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
Bu Sun Kim65020912020-05-20 12:08:20 -07002178 &quot;nodeConfig&quot;: { # Parameters that describe the nodes in a cluster. # Parameters used in creating the cluster&#x27;s nodes.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04002179 # For requests, this field should only be used in lieu of a
Bu Sun Kim65020912020-05-20 12:08:20 -07002180 # &quot;node_pool&quot; object, since this configuration (along with the
2181 # &quot;initial_node_count&quot;) will be used to create a &quot;NodePool&quot; object with an
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04002182 # auto-generated name. Do not use this and a node_pool at the same time.
2183 # For responses, this field will be populated with the node configuration of
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002184 # the first node pool. (For configuration of each node pool, see
2185 # `node_pool.config`)
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04002186 #
2187 # If unspecified, the defaults are used.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002188 # This field is deprecated, use node_pool.config instead.
Bu Sun Kim65020912020-05-20 12:08:20 -07002189 &quot;tags&quot;: [ # The list of instance tags applied to all nodes. Tags are used to identify
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04002190 # valid sources or targets for network firewalls and are specified by
2191 # the client during cluster or node pool creation. Each tag within the list
2192 # must comply with RFC1035.
Bu Sun Kim65020912020-05-20 12:08:20 -07002193 &quot;A String&quot;,
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04002194 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002195 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs.
Dan O'Mearadd494642020-05-01 07:42:23 -07002196 # Specify the email address of the Service Account; otherwise, if no Service
Bu Sun Kim65020912020-05-20 12:08:20 -07002197 # Account is specified, the &quot;default&quot; service account is used.
2198 &quot;imageType&quot;: &quot;A String&quot;, # The image type to use for this node. Note that for a given image type,
2199 # the latest version of it will be used.
2200 &quot;oauthScopes&quot;: [ # The set of Google API scopes to be made available on all of the
2201 # node VMs under the &quot;default&quot; service account.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04002202 #
2203 # The following scopes are recommended, but not required, and by default are
2204 # not included:
2205 #
2206 # * `https://www.googleapis.com/auth/compute` is required for mounting
2207 # persistent storage on your nodes.
2208 # * `https://www.googleapis.com/auth/devstorage.read_only` is required for
2209 # communicating with **gcr.io**
Dan O'Mearadd494642020-05-01 07:42:23 -07002210 # (the [Google Container
2211 # Registry](https://cloud.google.com/container-registry/)).
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04002212 #
2213 # If unspecified, no scopes are added, unless Cloud Logging or Cloud
2214 # Monitoring are enabled, in which case their required scopes will be added.
Bu Sun Kim65020912020-05-20 12:08:20 -07002215 &quot;A String&quot;,
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04002216 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002217 &quot;taints&quot;: [ # List of kubernetes taints to be applied to each node.
Dan O'Mearadd494642020-05-01 07:42:23 -07002218 #
2219 # For more information, including usage and the valid values, see:
2220 # https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
2221 { # Kubernetes taint is comprised of three fields: key, value, and effect. Effect
2222 # can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute.
2223 #
Bu Sun Kim65020912020-05-20 12:08:20 -07002224 # See
2225 # [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration)
2226 # for more information, including usage and the valid values.
2227 &quot;key&quot;: &quot;A String&quot;, # Key for taint.
2228 &quot;value&quot;: &quot;A String&quot;, # Value for taint.
2229 &quot;effect&quot;: &quot;A String&quot;, # Effect for taint.
Dan O'Mearadd494642020-05-01 07:42:23 -07002230 },
2231 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002232 &quot;labels&quot;: { # The map of Kubernetes labels (key/value pairs) to be applied to each node.
2233 # These will added in addition to any default label(s) that
2234 # Kubernetes may apply to the node.
2235 # In case of conflict in label keys, the applied set may differ depending on
2236 # the Kubernetes version -- it&#x27;s best to assume the behavior is undefined
2237 # and conflicts should be avoided.
2238 # For more information, including usage and the valid values, see:
2239 # https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
2240 &quot;a_key&quot;: &quot;A String&quot;,
2241 },
2242 &quot;diskSizeGb&quot;: 42, # Size of the disk attached to each node, specified in GB.
2243 # The smallest allowed disk size is 10GB.
2244 #
2245 # If unspecified, the default disk size is 100GB.
2246 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to # The workload metadata configuration for this node.
2247 # workloads on the node pool.
2248 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running
2249 # on the node pool.
2250 },
2251 &quot;accelerators&quot;: [ # A list of hardware accelerators to be attached to each node.
2252 # See https://cloud.google.com/compute/docs/gpus for more information about
2253 # support for GPUs.
2254 { # AcceleratorConfig represents a Hardware Accelerator request.
2255 &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of the accelerator cards exposed to an instance.
2256 &quot;acceleratorType&quot;: &quot;A String&quot;, # The accelerator type resource name. List of supported accelerators
2257 # [here](https://cloud.google.com/compute/docs/gpus)
2258 },
2259 ],
2260 &quot;machineType&quot;: &quot;A String&quot;, # The name of a Google Compute Engine [machine
2261 # type](https://cloud.google.com/compute/docs/machine-types) (e.g.
2262 # `n1-standard-1`).
2263 #
2264 # If unspecified, the default machine type is
2265 # `n1-standard-1`.
2266 &quot;diskType&quot;: &quot;A String&quot;, # Type of the disk attached to each node (e.g. &#x27;pd-standard&#x27; or &#x27;pd-ssd&#x27;)
2267 #
2268 # If unspecified, the default disk type is &#x27;pd-standard&#x27;
2269 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
2270 &quot;enableSecureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled.
2271 #
2272 # Secure Boot helps ensure that the system only runs authentic software by
2273 # verifying the digital signature of all boot components, and halting the
2274 # boot process if signature verification fails.
2275 &quot;enableIntegrityMonitoring&quot;: True or False, # Defines whether the instance has integrity monitoring enabled.
2276 #
2277 # Enables monitoring and attestation of the boot integrity of the instance.
2278 # The attestation is performed against the integrity policy baseline. This
2279 # baseline is initially derived from the implicitly trusted boot image when
2280 # the instance is created.
2281 },
2282 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used by this instance. The instance may be
2283 # scheduled on the specified or newer CPU platform. Applicable values are the
2284 # friendly names of CPU platforms, such as
2285 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Haswell&amp;quot;&lt;/code&gt; or
2286 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Sandy Bridge&amp;quot;&lt;/code&gt;. For more
2287 # information, read [how to specify min CPU
2288 # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
2289 &quot;preemptible&quot;: True or False, # Whether the nodes are created as preemptible VM instances. See:
2290 # https://cloud.google.com/compute/docs/instances/preemptible for more
2291 # information about preemptible VM instances.
2292 &quot;localSsdCount&quot;: 42, # The number of local SSD disks to be attached to the node.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04002293 #
Dan O'Mearadd494642020-05-01 07:42:23 -07002294 # The limit for this value is dependent upon the maximum number of
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04002295 # disks available on a machine per zone. See:
Dan O'Mearadd494642020-05-01 07:42:23 -07002296 # https://cloud.google.com/compute/docs/disks/local-ssd
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04002297 # for more information.
Bu Sun Kim65020912020-05-20 12:08:20 -07002298 &quot;sandboxConfig&quot;: { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node.
2299 &quot;type&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node.
2300 },
2301 &quot;metadata&quot;: { # The metadata key/value pairs assigned to instances in the cluster.
2302 #
2303 # Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
2304 # in length. These are reflected as part of a URL in the metadata server.
2305 # Additionally, to avoid ambiguity, keys must not conflict with any other
2306 # metadata keys for the project or be one of the reserved keys:
2307 # &quot;cluster-location&quot;
2308 # &quot;cluster-name&quot;
2309 # &quot;cluster-uid&quot;
2310 # &quot;configure-sh&quot;
2311 # &quot;containerd-configure-sh&quot;
2312 # &quot;enable-os-login&quot;
2313 # &quot;gci-ensure-gke-docker&quot;
2314 # &quot;gci-metrics-enabled&quot;
2315 # &quot;gci-update-strategy&quot;
2316 # &quot;instance-template&quot;
2317 # &quot;kube-env&quot;
2318 # &quot;startup-script&quot;
2319 # &quot;user-data&quot;
2320 # &quot;disable-address-manager&quot;
2321 # &quot;windows-startup-script-ps1&quot;
2322 # &quot;common-psm1&quot;
2323 # &quot;k8s-node-setup-psm1&quot;
2324 # &quot;install-ssh-psm1&quot;
2325 # &quot;user-profile-psm1&quot;
2326 # &quot;serial-port-logging-enable&quot;
2327 #
2328 # Values are free-form strings, and only have meaning as interpreted by
2329 # the image running in the instance. The only restriction placed on them is
2330 # that each value&#x27;s size must be less than or equal to 32 KB.
2331 #
2332 # The total size of all keys and values must be less than 512 KB.
2333 &quot;a_key&quot;: &quot;A String&quot;,
2334 },
2335 &quot;reservationAffinity&quot;: { # [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) # The optional reservation affinity. Setting this field will apply
2336 # the specified [Zonal Compute
2337 # Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
2338 # to this node pool.
2339 # is the configuration of desired reservation which instances could take
2340 # capacity from.
2341 &quot;key&quot;: &quot;A String&quot;, # Corresponds to the label key of a reservation resource. To target a
2342 # SPECIFIC_RESERVATION by name, specify &quot;googleapis.com/reservation-name&quot; as
2343 # the key and specify the name of your reservation as its value.
2344 &quot;values&quot;: [ # Corresponds to the label value(s) of reservation resource(s).
2345 &quot;A String&quot;,
2346 ],
2347 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Corresponds to the type of reservation consumption.
2348 },
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04002349 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002350 &quot;status&quot;: &quot;A String&quot;, # [Output only] The current status of this cluster.
2351 &quot;networkConfig&quot;: { # NetworkConfig reports the relative names of network &amp; subnetwork. # Configuration for cluster networking.
2352 &quot;subnetwork&quot;: &quot;A String&quot;, # Output only. The relative name of the Google Compute Engine
2353 # [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the
2354 # cluster is connected. Example:
2355 # projects/my-project/regions/us-central1/subnetworks/my-subnet
2356 &quot;network&quot;: &quot;A String&quot;, # Output only. The relative name of the Google Compute Engine
2357 # network(https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
2358 # to which the cluster is connected. Example:
2359 # projects/my-project/global/networks/my-network
2360 &quot;enableIntraNodeVisibility&quot;: True or False, # Whether Intra-node visibility is enabled for this cluster.
2361 # This makes same node pod to pod traffic visible for VPC network.
2362 },
2363 &quot;name&quot;: &quot;A String&quot;, # The name of this cluster. The name must be unique within this project
2364 # and location (e.g. zone or region), and can be up to 40 characters with
2365 # the following restrictions:
2366 #
2367 # * Lowercase letters, numbers, and hyphens only.
2368 # * Must start with a letter.
2369 # * Must end with a number or a letter.
2370 &quot;endpoint&quot;: &quot;A String&quot;, # [Output only] The IP address of this cluster&#x27;s master endpoint.
2371 # The endpoint can be accessed from the internet at
2372 # `https://username:password@endpoint/`.
2373 #
2374 # See the `masterAuth` property of this resource for username and
2375 # password information.
2376 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
2377 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
2378 # or
2379 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
2380 # in which the cluster resides.
2381 &quot;createTime&quot;: &quot;A String&quot;, # [Output only] The time the cluster was created, in
2382 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
2383 &quot;clusterIpv4Cidr&quot;: &quot;A String&quot;, # The IP address range of the container pods in this cluster, in
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04002384 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
2385 # notation (e.g. `10.96.0.0/14`). Leave blank to have
2386 # one automatically chosen or specify a `/14` block in `10.0.0.0/8`.
Bu Sun Kim65020912020-05-20 12:08:20 -07002387 &quot;autoscaling&quot;: { # ClusterAutoscaling contains global, per-cluster information # Cluster-level autoscaling configuration.
2388 # required by Cluster Autoscaler to automatically adjust
2389 # the size of the cluster and create/delete
2390 # node pools based on the current needs.
2391 &quot;autoprovisioningLocations&quot;: [ # The list of Google Compute Engine
2392 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
2393 # NodePool&#x27;s nodes can be created by NAP.
2394 &quot;A String&quot;,
2395 ],
2396 &quot;resourceLimits&quot;: [ # Contains global constraints regarding minimum and maximum
2397 # amount of resources in the cluster.
2398 { # Contains information about amount of some resource in the cluster.
2399 # For memory, value should be in GB.
2400 &quot;maximum&quot;: &quot;A String&quot;, # Maximum amount of the resource in the cluster.
2401 &quot;resourceType&quot;: &quot;A String&quot;, # Resource name &quot;cpu&quot;, &quot;memory&quot; or gpu-specific string.
2402 &quot;minimum&quot;: &quot;A String&quot;, # Minimum amount of the resource in the cluster.
2403 },
2404 ],
2405 &quot;enableNodeAutoprovisioning&quot;: True or False, # Enables automatic node pool creation and deletion.
2406 &quot;autoprovisioningNodePoolDefaults&quot;: { # AutoprovisioningNodePoolDefaults contains defaults for a node pool created # AutoprovisioningNodePoolDefaults contains defaults for a node pool
2407 # created by NAP.
2408 # by NAP.
2409 &quot;oauthScopes&quot;: [ # Scopes that are used by NAP when creating node pools. If oauth_scopes are
2410 # specified, service_account should be empty.
2411 &quot;A String&quot;,
2412 ],
2413 &quot;management&quot;: { # NodeManagement defines the set of node management services turned on for the # Specifies the node management options for NAP created node-pools.
2414 # node pool.
2415 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool.
2416 # the Auto Upgrades will proceed.
2417 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
2418 # with the description of the upgrade.
2419 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
2420 # with the approximate start time for the upgrades, in
2421 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
2422 },
2423 &quot;autoUpgrade&quot;: True or False, # A flag that specifies whether node auto-upgrade is enabled for the node
2424 # pool. If enabled, node auto-upgrade helps keep the nodes in your node pool
2425 # up to date with the latest release version of Kubernetes.
2426 &quot;autoRepair&quot;: True or False, # A flag that specifies whether the node auto-repair is enabled for the node
2427 # pool. If enabled, the nodes in this node pool will be monitored and, if
2428 # they fail health checks too many times, an automatic repair action will be
2429 # triggered.
2430 },
2431 &quot;upgradeSettings&quot;: { # These upgrade settings control the level of parallelism and the level of # Specifies the upgrade settings for NAP created node pools
2432 # disruption caused by an upgrade.
2433 #
2434 # maxUnavailable controls the number of nodes that can be simultaneously
2435 # unavailable.
2436 #
2437 # maxSurge controls the number of additional nodes that can be added to the
2438 # node pool temporarily for the time of the upgrade to increase the number of
2439 # available nodes.
2440 #
2441 # (maxUnavailable + maxSurge) determines the level of parallelism (how many
2442 # nodes are being upgraded at the same time).
2443 #
2444 # Note: upgrades inevitably introduce some disruption since workloads need to
2445 # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
2446 # this holds true. (Disruption stays within the limits of
2447 # PodDisruptionBudget, if it is configured.)
2448 #
2449 # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
2450 # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
2451 # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
2452 # down 3 old (not yet upgraded) nodes at the same time. This ensures that
2453 # there are always at least 4 nodes available.
2454 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during
2455 # the upgrade process. A node is considered available if its status is
2456 # Ready.
2457 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size
2458 # of the node pool during the upgrade process.
2459 },
2460 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs. If
2461 # service_account is specified, scopes should be empty.
2462 },
2463 },
2464 &quot;initialNodeCount&quot;: 42, # The number of nodes to create in this cluster. You must ensure that your
2465 # Compute Engine &lt;a href=&quot;/compute/docs/resource-quotas&quot;&gt;resource quota&lt;/a&gt;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002466 # is sufficient for this number of instances. You must also have available
2467 # firewall and routes quota.
2468 # For requests, this field should only be used in lieu of a
Bu Sun Kim65020912020-05-20 12:08:20 -07002469 # &quot;node_pool&quot; object, since this configuration (along with the
2470 # &quot;node_config&quot;) will be used to create a &quot;NodePool&quot; object with an
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002471 # auto-generated name. Do not use this and a node_pool at the same time.
2472 #
2473 # This field is deprecated, use node_pool.initial_node_count instead.
Bu Sun Kim65020912020-05-20 12:08:20 -07002474 &quot;instanceGroupUrls&quot;: [ # Deprecated. Use node_pools.instance_group_urls.
2475 &quot;A String&quot;,
2476 ],
2477 &quot;privateClusterConfig&quot;: { # Configuration options for private clusters. # Configuration for private cluster.
2478 &quot;peeringName&quot;: &quot;A String&quot;, # Output only. The peering name in the customer VPC used by this cluster.
2479 &quot;publicEndpoint&quot;: &quot;A String&quot;, # Output only. The external IP address of this cluster&#x27;s master endpoint.
2480 &quot;enablePrivateNodes&quot;: True or False, # Whether nodes have internal IP addresses only. If enabled, all nodes are
2481 # given only RFC 1918 private addresses and communicate with the master via
2482 # private networking.
2483 &quot;masterIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP range in CIDR notation to use for the hosted master network. This
2484 # range will be used for assigning internal IP addresses to the master or
2485 # set of masters, as well as the ILB VIP. This range must not overlap with
2486 # any other ranges in use within the cluster&#x27;s network.
2487 &quot;privateEndpoint&quot;: &quot;A String&quot;, # Output only. The internal IP address of this cluster&#x27;s master endpoint.
2488 &quot;enablePrivateEndpoint&quot;: True or False, # Whether the master&#x27;s internal IP address is used as the cluster endpoint.
2489 },
2490 &quot;shieldedNodes&quot;: { # Configuration of Shielded Nodes feature. # Shielded Nodes configuration.
2491 &quot;enabled&quot;: True or False, # Whether Shielded Nodes features are enabled on all nodes in this cluster.
2492 },
2493 &quot;verticalPodAutoscaling&quot;: { # VerticalPodAutoscaling contains global, per-cluster information # Cluster-level Vertical Pod Autoscaling configuration.
2494 # required by Vertical Pod Autoscaler to automatically adjust
2495 # the resources of pods controlled by it.
2496 &quot;enabled&quot;: True or False, # Enables vertical pod autoscaling.
2497 },
Takashi Matsuo06694102015-09-11 13:55:40 -07002498 }</pre>
2499</div>
2500
2501<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07002502 <code class="details" id="legacyAbac">legacyAbac(projectId, zone, clusterId, body=None, x__xgafv=None)</code>
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04002503 <pre>Enables or disables the ABAC authorization mechanism on a cluster.
Takashi Matsuo06694102015-09-11 13:55:40 -07002504
2505Args:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002506 projectId: string, Deprecated. The Google Developers Console [project ID or project
2507number](https://support.google.com/cloud/answer/6158840).
2508This field has been deprecated and replaced by the name field. (required)
2509 zone: string, Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07002510[zone](https://cloud.google.com/compute/docs/zones#available) in which the
2511cluster resides. This field has been deprecated and replaced by the name
2512field. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002513 clusterId: string, Deprecated. The name of the cluster to update.
2514This field has been deprecated and replaced by the name field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07002515 body: object, The request body.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04002516 The object takes the form of:
2517
2518{ # SetLegacyAbacRequest enables or disables the ABAC authorization mechanism for
2519 # a cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -07002520 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster id) of the cluster to set legacy abac.
2521 # Specified in the format `projects/*/locations/*/clusters/*`.
2522 &quot;enabled&quot;: True or False, # Required. Whether ABAC authorization will be enabled in the cluster.
2523 &quot;projectId&quot;: &quot;A String&quot;, # Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002524 # number](https://support.google.com/cloud/answer/6158840).
2525 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07002526 &quot;zone&quot;: &quot;A String&quot;, # Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07002527 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
2528 # cluster resides. This field has been deprecated and replaced by the name
2529 # field.
Bu Sun Kim65020912020-05-20 12:08:20 -07002530 &quot;clusterId&quot;: &quot;A String&quot;, # Deprecated. The name of the cluster to update.
2531 # This field has been deprecated and replaced by the name field.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04002532 }
2533
Takashi Matsuo06694102015-09-11 13:55:40 -07002534 x__xgafv: string, V1 error format.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04002535 Allowed values
2536 1 - v1 error format
2537 2 - v2 error format
2538
2539Returns:
2540 An object of the form:
2541
2542 { # This operation resource represents operations that may have happened or are
2543 # happening on the cluster. All fields are output only.
Bu Sun Kim65020912020-05-20 12:08:20 -07002544 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
2545 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002546 { # StatusCondition describes why a cluster or a node pool has a certain status
2547 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07002548 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
2549 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002550 },
2551 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002552 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
Dan O'Mearadd494642020-05-01 07:42:23 -07002553 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07002554 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07002555 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
2556 # or
2557 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
2558 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07002559 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
2560 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
2561 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
2562 &quot;stages&quot;: [ # Substages of an operation or a stage.
2563 # Object with schema name: OperationProgress
2564 ],
2565 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
2566 # Unset for single-stage operations.
2567 &quot;metrics&quot;: [ # Progress metric bundle, for example:
2568 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
2569 # {name: &quot;nodes total&quot;, int_value: 32}]
2570 # or
2571 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
2572 # {name: &quot;progress scale&quot;, double_value: 1.0}]
2573 { # Progress metric is (string, int|float|string) pair.
2574 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
2575 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
2576 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
2577 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
2578 },
2579 ],
2580 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
2581 # Unset for single-stage operations.
2582 },
2583 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
2584 { # StatusCondition describes why a cluster or a node pool has a certain status
2585 # (e.g., ERROR or DEGRADED).
2586 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
2587 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
2588 },
2589 ],
2590 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
2591 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
2592 # operation is taking place. This field is deprecated, use location instead.
2593 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
2594 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
2595 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
2596 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
2597 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
2598 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04002599 }</pre>
2600</div>
2601
2602<div class="method">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002603 <code class="details" id="list">list(projectId, zone, parent=None, x__xgafv=None)</code>
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04002604 <pre>Lists all clusters owned by a project in either the specified zone or all
2605zones.
2606
2607Args:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002608 projectId: string, Deprecated. The Google Developers Console [project ID or project
2609number](https://support.google.com/cloud/answer/6158840).
2610This field has been deprecated and replaced by the parent field. (required)
2611 zone: string, Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07002612[zone](https://cloud.google.com/compute/docs/zones#available) in which the
Bu Sun Kim65020912020-05-20 12:08:20 -07002613cluster resides, or &quot;-&quot; for all zones. This field has been deprecated and
Dan O'Mearadd494642020-05-01 07:42:23 -07002614replaced by the parent field. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002615 parent: string, The parent (project and location) where the clusters will be listed.
Bu Sun Kim65020912020-05-20 12:08:20 -07002616Specified in the format `projects/*/locations/*`.
2617Location &quot;-&quot; matches all zones and all regions.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04002618 x__xgafv: string, V1 error format.
2619 Allowed values
2620 1 - v1 error format
2621 2 - v2 error format
Takashi Matsuo06694102015-09-11 13:55:40 -07002622
2623Returns:
2624 An object of the form:
2625
2626 { # ListClustersResponse is the result of ListClustersRequest.
Bu Sun Kim65020912020-05-20 12:08:20 -07002627 &quot;clusters&quot;: [ # A list of clusters in the project in the specified zone, or
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04002628 # across all ones.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002629 { # A Google Kubernetes Engine cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -07002630 &quot;defaultMaxPodsConstraint&quot;: { # Constraints applied to pods. # The default constraint on the maximum number of pods that can be run
2631 # simultaneously on a node in the node pool of this cluster. Only honored
2632 # if cluster created with IP Alias support.
2633 &quot;maxPodsPerNode&quot;: &quot;A String&quot;, # Constraint enforced on the max num of pods per node.
2634 },
2635 &quot;network&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
2636 # [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
2637 # to which the cluster is connected. If left unspecified, the `default`
2638 # network will be used.
2639 &quot;labelFingerprint&quot;: &quot;A String&quot;, # The fingerprint of the set of labels for this cluster.
2640 &quot;nodeIpv4CidrSize&quot;: 42, # [Output only] The size of the address space on each node for hosting
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04002641 # containers. This is provisioned from within the `container_ipv4_cidr`
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002642 # range. This field will only be set when cluster is in route-based network
2643 # mode.
Bu Sun Kim65020912020-05-20 12:08:20 -07002644 &quot;masterAuthorizedNetworksConfig&quot;: { # Configuration options for the master authorized networks feature. Enabled # The configuration options for master authorized networks feature.
2645 # master authorized networks will disallow all external traffic to access
2646 # Kubernetes master through HTTPS except traffic from the given CIDR blocks,
2647 # Google Compute Engine Public IPs and Google Prod IPs.
2648 &quot;enabled&quot;: True or False, # Whether or not master authorized networks is enabled.
2649 &quot;cidrBlocks&quot;: [ # cidr_blocks define up to 50 external networks that could access
2650 # Kubernetes master through HTTPS.
2651 { # CidrBlock contains an optional name and one CIDR block.
2652 &quot;displayName&quot;: &quot;A String&quot;, # display_name is an optional field for users to identify CIDR blocks.
2653 &quot;cidrBlock&quot;: &quot;A String&quot;, # cidr_block must be specified in CIDR notation.
2654 },
2655 ],
2656 },
2657 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output only] Additional information about the current status of this
2658 # cluster, if available.
2659 &quot;masterAuth&quot;: { # The authentication information for accessing the master endpoint. # The authentication information for accessing the master endpoint.
2660 # If unspecified, the defaults are used:
2661 # For clusters before v1.12, if master_auth is unspecified, `username` will
2662 # be set to &quot;admin&quot;, a random password will be generated, and a client
2663 # certificate will be issued.
2664 # Authentication can be done using HTTP basic auth or using client
2665 # certificates.
2666 &quot;clusterCaCertificate&quot;: &quot;A String&quot;, # [Output only] Base64-encoded public certificate that is the root of
2667 # trust for the cluster.
2668 &quot;clientCertificate&quot;: &quot;A String&quot;, # [Output only] Base64-encoded public certificate used by clients to
2669 # authenticate to the cluster endpoint.
2670 &quot;username&quot;: &quot;A String&quot;, # The username to use for HTTP basic authentication to the master endpoint.
2671 # For clusters v1.6.0 and later, basic authentication can be disabled by
2672 # leaving username unspecified (or setting it to the empty string).
2673 &quot;password&quot;: &quot;A String&quot;, # The password to use for HTTP basic authentication to the master endpoint.
2674 # Because the master endpoint is open to the Internet, you should create a
2675 # strong password. If a password is provided for cluster creation, username
2676 # must be non-empty.
2677 &quot;clientCertificateConfig&quot;: { # Configuration for client certificates on the cluster. # Configuration for client certificate authentication on the cluster. For
2678 # clusters before v1.12, if no configuration is specified, a client
2679 # certificate is issued.
2680 &quot;issueClientCertificate&quot;: True or False, # Issue a client certificate.
2681 },
2682 &quot;clientKey&quot;: &quot;A String&quot;, # [Output only] Base64-encoded private key used by clients to authenticate
2683 # to the cluster endpoint.
2684 },
2685 &quot;authenticatorGroupsConfig&quot;: { # Configuration for returning group information from authenticators. # Configuration controlling RBAC group membership information.
2686 &quot;enabled&quot;: True or False, # Whether this cluster should return group membership lookups
2687 # during authentication using a group of security groups.
2688 &quot;securityGroup&quot;: &quot;A String&quot;, # The name of the security group-of-groups to be used. Only relevant
2689 # if enabled = true.
2690 },
2691 &quot;currentMasterVersion&quot;: &quot;A String&quot;, # [Output only] The current software version of the master endpoint.
2692 &quot;addonsConfig&quot;: { # Configuration for the addons that can be automatically spun up in the # Configurations for the various addons available to run in the cluster.
2693 # cluster, enabling additional functionality.
2694 &quot;networkPolicyConfig&quot;: { # Configuration for NetworkPolicy. This only tracks whether the addon # Configuration for NetworkPolicy. This only tracks whether the addon
2695 # is enabled or not on the Master, it does not track whether network policy
2696 # is enabled for the nodes.
2697 # is enabled or not on the Master, it does not track whether network policy
2698 # is enabled for the nodes.
2699 &quot;disabled&quot;: True or False, # Whether NetworkPolicy is enabled for this cluster.
2700 },
2701 &quot;cloudRunConfig&quot;: { # Configuration options for the Cloud Run feature. # Configuration for the Cloud Run addon, which allows the user to use a
2702 # managed Knative service.
2703 &quot;disabled&quot;: True or False, # Whether Cloud Run addon is enabled for this cluster.
2704 },
2705 &quot;horizontalPodAutoscaling&quot;: { # Configuration options for the horizontal pod autoscaling feature, which # Configuration for the horizontal pod autoscaling feature, which
2706 # increases or decreases the number of replica pods a replication controller
2707 # has based on the resource usage of the existing pods.
2708 # increases or decreases the number of replica pods a replication controller
2709 # has based on the resource usage of the existing pods.
2710 &quot;disabled&quot;: True or False, # Whether the Horizontal Pod Autoscaling feature is enabled in the cluster.
2711 # When enabled, it ensures that metrics are collected into Stackdriver
2712 # Monitoring.
2713 },
2714 &quot;httpLoadBalancing&quot;: { # Configuration options for the HTTP (L7) load balancing controller addon, # Configuration for the HTTP (L7) load balancing controller addon, which
2715 # makes it easy to set up HTTP load balancers for services in a cluster.
2716 # which makes it easy to set up HTTP load balancers for services in a cluster.
2717 &quot;disabled&quot;: True or False, # Whether the HTTP Load Balancing controller is enabled in the cluster.
2718 # When enabled, it runs a small pod in the cluster that manages the load
2719 # balancers.
2720 },
2721 &quot;kubernetesDashboard&quot;: { # Configuration for the Kubernetes Dashboard. # Configuration for the Kubernetes Dashboard.
2722 # This addon is deprecated, and will be disabled in 1.15. It is recommended
2723 # to use the Cloud Console to manage and monitor your Kubernetes clusters,
2724 # workloads and applications. For more information, see:
2725 # https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
2726 &quot;disabled&quot;: True or False, # Whether the Kubernetes Dashboard is enabled for this cluster.
2727 },
2728 },
2729 &quot;currentNodeVersion&quot;: &quot;A String&quot;, # [Output only] Deprecated, use
2730 # [NodePools.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.zones.clusters.nodePools)
2731 # instead. The current version of the node software components. If they are
2732 # currently at multiple versions because they&#x27;re in the process of being
2733 # upgraded, this reflects the minimum version of all nodes.
2734 &quot;subnetwork&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
2735 # [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which
2736 # the cluster is connected.
2737 &quot;resourceLabels&quot;: { # The resource labels for the cluster to use to annotate any related
2738 # Google Compute Engine resources.
2739 &quot;a_key&quot;: &quot;A String&quot;,
2740 },
2741 &quot;maintenancePolicy&quot;: { # MaintenancePolicy defines the maintenance policy to be used for the cluster. # Configure the maintenance policy for this cluster.
2742 &quot;window&quot;: { # MaintenanceWindow defines the maintenance window to be used for the cluster. # Specifies the maintenance window in which maintenance may be performed.
2743 &quot;dailyMaintenanceWindow&quot;: { # Time window specified for daily maintenance operations. # DailyMaintenanceWindow specifies a daily maintenance operation window.
2744 &quot;duration&quot;: &quot;A String&quot;, # [Output only] Duration of the time window, automatically chosen to be
2745 # smallest possible in the given scenario.
2746 # Duration will be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)
2747 # format &quot;PTnHnMnS&quot;.
2748 &quot;startTime&quot;: &quot;A String&quot;, # Time within the maintenance window to start the maintenance operations.
2749 # Time format should be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)
2750 # format &quot;HH:MM&quot;, where HH : [00-23] and MM : [00-59] GMT.
2751 },
2752 &quot;recurringWindow&quot;: { # Represents an arbitrary window of time that recurs. # RecurringWindow specifies some number of recurring time periods for
Dan O'Mearadd494642020-05-01 07:42:23 -07002753 # maintenance to occur. The time windows may be overlapping. If no
2754 # maintenance windows are set, maintenance can occur at any time.
Bu Sun Kim65020912020-05-20 12:08:20 -07002755 &quot;recurrence&quot;: &quot;A String&quot;, # An RRULE (https://tools.ietf.org/html/rfc5545#section-3.8.5.3) for how
Dan O'Mearadd494642020-05-01 07:42:23 -07002756 # this window reccurs. They go on for the span of time between the start and
2757 # end time.
2758 #
Bu Sun Kim65020912020-05-20 12:08:20 -07002759 # For example, to have something repeat every weekday, you&#x27;d use:
Dan O'Mearadd494642020-05-01 07:42:23 -07002760 # &lt;code&gt;FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR&lt;/code&gt;
2761 # To repeat some window daily (equivalent to the DailyMaintenanceWindow):
2762 # &lt;code&gt;FREQ=DAILY&lt;/code&gt;
2763 # For the first weekend of every month:
2764 # &lt;code&gt;FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU&lt;/code&gt;
2765 # This specifies how frequently the window starts. Eg, if you wanted to have
Bu Sun Kim65020912020-05-20 12:08:20 -07002766 # a 9-5 UTC-4 window every weekday, you&#x27;d use something like:
Dan O'Mearadd494642020-05-01 07:42:23 -07002767 # &lt;code&gt;
2768 # start time = 2019-01-01T09:00:00-0400
2769 # end time = 2019-01-01T17:00:00-0400
2770 # recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
2771 # &lt;/code&gt;
2772 # Windows can span multiple days. Eg, to make the window encompass every
2773 # weekend from midnight Saturday till the last minute of Sunday UTC:
2774 # &lt;code&gt;
2775 # start time = 2019-01-05T00:00:00Z
2776 # end time = 2019-01-07T23:59:00Z
2777 # recurrence = FREQ=WEEKLY;BYDAY=SA
2778 # &lt;/code&gt;
Bu Sun Kim65020912020-05-20 12:08:20 -07002779 # Note the start and end time&#x27;s specific dates are largely arbitrary except
Dan O'Mearadd494642020-05-01 07:42:23 -07002780 # to specify duration of the window and when it first starts.
2781 # The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.
Bu Sun Kim65020912020-05-20 12:08:20 -07002782 &quot;window&quot;: { # Represents an arbitrary window of time. # The window of the first recurrence.
2783 &quot;endTime&quot;: &quot;A String&quot;, # The time that the window ends. The end time should take place after the
Dan O'Mearadd494642020-05-01 07:42:23 -07002784 # start time.
Bu Sun Kim65020912020-05-20 12:08:20 -07002785 &quot;startTime&quot;: &quot;A String&quot;, # The time that the window first starts.
Dan O'Mearadd494642020-05-01 07:42:23 -07002786 },
2787 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002788 &quot;maintenanceExclusions&quot;: { # Exceptions to maintenance window. Non-emergency maintenance should not
Dan O'Mearadd494642020-05-01 07:42:23 -07002789 # occur in these windows.
Bu Sun Kim65020912020-05-20 12:08:20 -07002790 &quot;a_key&quot;: { # Represents an arbitrary window of time.
2791 &quot;endTime&quot;: &quot;A String&quot;, # The time that the window ends. The end time should take place after the
Dan O'Mearadd494642020-05-01 07:42:23 -07002792 # start time.
Bu Sun Kim65020912020-05-20 12:08:20 -07002793 &quot;startTime&quot;: &quot;A String&quot;, # The time that the window first starts.
Dan O'Mearadd494642020-05-01 07:42:23 -07002794 },
2795 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002796 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002797 &quot;resourceVersion&quot;: &quot;A String&quot;, # A hash identifying the version of this policy, so that updates to fields of
2798 # the policy won&#x27;t accidentally undo intermediate changes (and so that users
2799 # of the API unaware of some fields won&#x27;t accidentally remove other fields).
Dan O'Mearadd494642020-05-01 07:42:23 -07002800 # Make a &lt;code&gt;get()&lt;/code&gt; request to the cluster to get the current
2801 # resource version and include it with requests to set the policy.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002802 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002803 &quot;initialClusterVersion&quot;: &quot;A String&quot;, # The initial Kubernetes version for this cluster. Valid versions are those
2804 # found in validMasterVersions returned by getServerConfig. The version can
2805 # be upgraded over time; such upgrades are reflected in
2806 # currentMasterVersion and currentNodeVersion.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002807 #
Bu Sun Kim65020912020-05-20 12:08:20 -07002808 # Users may specify either explicit versions offered by
2809 # Kubernetes Engine or version aliases, which have the following behavior:
2810 #
2811 # - &quot;latest&quot;: picks the highest valid Kubernetes version
2812 # - &quot;1.X&quot;: picks the highest valid patch+gke.N patch in the 1.X version
2813 # - &quot;1.X.Y&quot;: picks the highest valid gke.N patch in the 1.X.Y version
2814 # - &quot;1.X.Y-gke.N&quot;: picks an explicit Kubernetes version
2815 # - &quot;&quot;,&quot;-&quot;: picks the default Kubernetes version
2816 &quot;ipAllocationPolicy&quot;: { # Configuration for controlling how IPs are allocated in the cluster. # Configuration for cluster IP allocation.
2817 &quot;clusterIpv4Cidr&quot;: &quot;A String&quot;, # This field is deprecated, use cluster_ipv4_cidr_block.
2818 &quot;servicesIpv4Cidr&quot;: &quot;A String&quot;, # This field is deprecated, use services_ipv4_cidr_block.
2819 &quot;servicesIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP address range of the services IPs in this cluster. If blank, a range
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002820 # will be automatically chosen with the default size.
2821 #
2822 # This field is only applicable when `use_ip_aliases` is true.
2823 #
2824 # Set to blank to have a range chosen with the default size.
2825 #
2826 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
2827 # netmask.
2828 #
2829 # Set to a
2830 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
2831 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
2832 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
2833 # to use.
Bu Sun Kim65020912020-05-20 12:08:20 -07002834 &quot;nodeIpv4Cidr&quot;: &quot;A String&quot;, # This field is deprecated, use node_ipv4_cidr_block.
2835 &quot;clusterIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP address range for the cluster pod IPs. If this field is set, then
2836 # `cluster.cluster_ipv4_cidr` must be left blank.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002837 #
2838 # This field is only applicable when `use_ip_aliases` is true.
Bu Sun Kim65020912020-05-20 12:08:20 -07002839 #
2840 # Set to blank to have a range chosen with the default size.
2841 #
2842 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
2843 # netmask.
2844 #
2845 # Set to a
2846 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
2847 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
2848 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
2849 # to use.
2850 &quot;clusterSecondaryRangeName&quot;: &quot;A String&quot;, # The name of the secondary range to be used for the cluster CIDR
2851 # block. The secondary range will be used for pod IP
2852 # addresses. This must be an existing secondary range associated
2853 # with the cluster subnetwork.
2854 #
2855 # This field is only applicable with use_ip_aliases is true and
2856 # create_subnetwork is false.
2857 &quot;nodeIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP address range of the instance IPs in this cluster.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002858 #
2859 # This is applicable only if `create_subnetwork` is true.
2860 #
2861 # Set to blank to have a range chosen with the default size.
2862 #
2863 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
2864 # netmask.
2865 #
2866 # Set to a
2867 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
2868 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
2869 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
2870 # to use.
Bu Sun Kim65020912020-05-20 12:08:20 -07002871 &quot;tpuIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP address range of the Cloud TPUs in this cluster. If unspecified, a
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002872 # range will be automatically chosen with the default size.
2873 #
2874 # This field is only applicable when `use_ip_aliases` is true.
2875 #
2876 # If unspecified, the range will use the default size.
2877 #
2878 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
2879 # netmask.
2880 #
2881 # Set to a
2882 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
2883 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
2884 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
2885 # to use.
Bu Sun Kim65020912020-05-20 12:08:20 -07002886 &quot;createSubnetwork&quot;: True or False, # Whether a new subnetwork will be created automatically for the cluster.
2887 #
2888 # This field is only applicable when `use_ip_aliases` is true.
2889 &quot;useIpAliases&quot;: True or False, # Whether alias IPs will be used for pod IPs in the cluster.
2890 &quot;servicesSecondaryRangeName&quot;: &quot;A String&quot;, # The name of the secondary range to be used as for the services
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002891 # CIDR block. The secondary range will be used for service
2892 # ClusterIPs. This must be an existing secondary range associated
2893 # with the cluster subnetwork.
2894 #
2895 # This field is only applicable with use_ip_aliases is true and
2896 # create_subnetwork is false.
Bu Sun Kim65020912020-05-20 12:08:20 -07002897 &quot;subnetworkName&quot;: &quot;A String&quot;, # A custom subnetwork name to be used if `create_subnetwork` is true. If
2898 # this field is empty, then an automatic name will be chosen for the new
2899 # subnetwork.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002900 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002901 &quot;legacyAbac&quot;: { # Configuration for the legacy Attribute Based Access Control authorization # Configuration for the legacy ABAC authorization mode.
2902 # mode.
2903 &quot;enabled&quot;: True or False, # Whether the ABAC authorizer is enabled for this cluster. When enabled,
2904 # identities in the system, including service accounts, nodes, and
2905 # controllers, will have statically granted permissions beyond those
2906 # provided by the RBAC configuration or IAM.
Dan O'Mearadd494642020-05-01 07:42:23 -07002907 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002908 &quot;resourceUsageExportConfig&quot;: { # Configuration for exporting cluster resource usages. # Configuration for exporting resource usages. Resource usage export is
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002909 # disabled when this config is unspecified.
Bu Sun Kim65020912020-05-20 12:08:20 -07002910 &quot;enableNetworkEgressMetering&quot;: True or False, # Whether to enable network egress metering for this cluster. If enabled, a
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002911 # daemonset will be created in the cluster to meter network egress traffic.
Bu Sun Kim65020912020-05-20 12:08:20 -07002912 &quot;consumptionMeteringConfig&quot;: { # Parameters for controlling consumption metering. # Configuration to enable resource consumption metering.
2913 &quot;enabled&quot;: True or False, # Whether to enable consumption metering for this cluster. If enabled, a
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002914 # second BigQuery table will be created to hold resource consumption
2915 # records.
2916 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002917 &quot;bigqueryDestination&quot;: { # Parameters for using BigQuery as the destination of resource usage export. # Configuration to use BigQuery as usage export destination.
2918 &quot;datasetId&quot;: &quot;A String&quot;, # The ID of a BigQuery Dataset.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002919 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002920 },
2921 &quot;enableTpu&quot;: True or False, # Enable the ability to use Cloud TPUs in this cluster.
2922 &quot;locations&quot;: [ # The list of Google Compute Engine
2923 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
2924 # cluster&#x27;s nodes should be located.
2925 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002926 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002927 &quot;nodePools&quot;: [ # The node pools associated with this cluster.
2928 # This field should not be set if &quot;node_config&quot; or &quot;initial_node_count&quot; are
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04002929 # specified.
Bu Sun Kim65020912020-05-20 12:08:20 -07002930 { # NodePool contains the name and configuration for a cluster&#x27;s node pool.
2931 # Node pools are a set of nodes (i.e. VM&#x27;s), with a common configuration and
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04002932 # specification, under the control of the cluster master. They may have a set
2933 # of Kubernetes labels applied to them, which may be used to reference them
2934 # during pod scheduling. They may also be resized up or down, to accommodate
2935 # the workload.
Bu Sun Kim65020912020-05-20 12:08:20 -07002936 &quot;initialNodeCount&quot;: 42, # The initial node count for the pool. You must ensure that your
2937 # Compute Engine &lt;a href=&quot;/compute/docs/resource-quotas&quot;&gt;resource quota&lt;/a&gt;
2938 # is sufficient for this number of instances. You must also have available
2939 # firewall and routes quota.
2940 &quot;locations&quot;: [ # The list of Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07002941 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
Bu Sun Kim65020912020-05-20 12:08:20 -07002942 # NodePool&#x27;s nodes should be located.
2943 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07002944 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002945 &quot;selfLink&quot;: &quot;A String&quot;, # [Output only] Server-defined URL for the resource.
2946 &quot;upgradeSettings&quot;: { # These upgrade settings control the level of parallelism and the level of # Upgrade settings control disruption and speed of the upgrade.
Dan O'Mearadd494642020-05-01 07:42:23 -07002947 # disruption caused by an upgrade.
2948 #
2949 # maxUnavailable controls the number of nodes that can be simultaneously
2950 # unavailable.
2951 #
2952 # maxSurge controls the number of additional nodes that can be added to the
2953 # node pool temporarily for the time of the upgrade to increase the number of
2954 # available nodes.
2955 #
2956 # (maxUnavailable + maxSurge) determines the level of parallelism (how many
2957 # nodes are being upgraded at the same time).
2958 #
2959 # Note: upgrades inevitably introduce some disruption since workloads need to
2960 # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
2961 # this holds true. (Disruption stays within the limits of
2962 # PodDisruptionBudget, if it is configured.)
2963 #
2964 # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
2965 # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
2966 # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
2967 # down 3 old (not yet upgraded) nodes at the same time. This ensures that
2968 # there are always at least 4 nodes available.
Bu Sun Kim65020912020-05-20 12:08:20 -07002969 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during
Dan O'Mearadd494642020-05-01 07:42:23 -07002970 # the upgrade process. A node is considered available if its status is
2971 # Ready.
Bu Sun Kim65020912020-05-20 12:08:20 -07002972 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size
2973 # of the node pool during the upgrade process.
Dan O'Mearadd494642020-05-01 07:42:23 -07002974 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002975 &quot;instanceGroupUrls&quot;: [ # [Output only] The resource URLs of the [managed instance
2976 # groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
2977 # associated with this node pool.
2978 &quot;A String&quot;,
2979 ],
2980 &quot;version&quot;: &quot;A String&quot;, # The version of the Kubernetes of this node.
2981 &quot;podIpv4CidrSize&quot;: 42, # [Output only] The pod CIDR block size per node in this node pool.
2982 &quot;conditions&quot;: [ # Which conditions caused the current node pool state.
2983 { # StatusCondition describes why a cluster or a node pool has a certain status
2984 # (e.g., ERROR or DEGRADED).
2985 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
2986 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Dan O'Mearadd494642020-05-01 07:42:23 -07002987 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002988 ],
2989 &quot;status&quot;: &quot;A String&quot;, # [Output only] The status of the nodes in this pool instance.
2990 &quot;config&quot;: { # Parameters that describe the nodes in a cluster. # The node configuration of the pool.
2991 &quot;tags&quot;: [ # The list of instance tags applied to all nodes. Tags are used to identify
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04002992 # valid sources or targets for network firewalls and are specified by
2993 # the client during cluster or node pool creation. Each tag within the list
2994 # must comply with RFC1035.
Bu Sun Kim65020912020-05-20 12:08:20 -07002995 &quot;A String&quot;,
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04002996 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002997 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs.
Dan O'Mearadd494642020-05-01 07:42:23 -07002998 # Specify the email address of the Service Account; otherwise, if no Service
Bu Sun Kim65020912020-05-20 12:08:20 -07002999 # Account is specified, the &quot;default&quot; service account is used.
3000 &quot;imageType&quot;: &quot;A String&quot;, # The image type to use for this node. Note that for a given image type,
3001 # the latest version of it will be used.
3002 &quot;oauthScopes&quot;: [ # The set of Google API scopes to be made available on all of the
3003 # node VMs under the &quot;default&quot; service account.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04003004 #
3005 # The following scopes are recommended, but not required, and by default are
3006 # not included:
3007 #
3008 # * `https://www.googleapis.com/auth/compute` is required for mounting
3009 # persistent storage on your nodes.
3010 # * `https://www.googleapis.com/auth/devstorage.read_only` is required for
3011 # communicating with **gcr.io**
Dan O'Mearadd494642020-05-01 07:42:23 -07003012 # (the [Google Container
3013 # Registry](https://cloud.google.com/container-registry/)).
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04003014 #
3015 # If unspecified, no scopes are added, unless Cloud Logging or Cloud
3016 # Monitoring are enabled, in which case their required scopes will be added.
Bu Sun Kim65020912020-05-20 12:08:20 -07003017 &quot;A String&quot;,
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -07003018 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003019 &quot;taints&quot;: [ # List of kubernetes taints to be applied to each node.
Dan O'Mearadd494642020-05-01 07:42:23 -07003020 #
3021 # For more information, including usage and the valid values, see:
3022 # https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
3023 { # Kubernetes taint is comprised of three fields: key, value, and effect. Effect
3024 # can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute.
3025 #
Bu Sun Kim65020912020-05-20 12:08:20 -07003026 # See
3027 # [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration)
3028 # for more information, including usage and the valid values.
3029 &quot;key&quot;: &quot;A String&quot;, # Key for taint.
3030 &quot;value&quot;: &quot;A String&quot;, # Value for taint.
3031 &quot;effect&quot;: &quot;A String&quot;, # Effect for taint.
Dan O'Mearadd494642020-05-01 07:42:23 -07003032 },
3033 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003034 &quot;labels&quot;: { # The map of Kubernetes labels (key/value pairs) to be applied to each node.
3035 # These will added in addition to any default label(s) that
3036 # Kubernetes may apply to the node.
3037 # In case of conflict in label keys, the applied set may differ depending on
3038 # the Kubernetes version -- it&#x27;s best to assume the behavior is undefined
3039 # and conflicts should be avoided.
3040 # For more information, including usage and the valid values, see:
3041 # https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
3042 &quot;a_key&quot;: &quot;A String&quot;,
3043 },
3044 &quot;diskSizeGb&quot;: 42, # Size of the disk attached to each node, specified in GB.
3045 # The smallest allowed disk size is 10GB.
3046 #
3047 # If unspecified, the default disk size is 100GB.
3048 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to # The workload metadata configuration for this node.
3049 # workloads on the node pool.
3050 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running
3051 # on the node pool.
3052 },
3053 &quot;accelerators&quot;: [ # A list of hardware accelerators to be attached to each node.
3054 # See https://cloud.google.com/compute/docs/gpus for more information about
3055 # support for GPUs.
3056 { # AcceleratorConfig represents a Hardware Accelerator request.
3057 &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of the accelerator cards exposed to an instance.
3058 &quot;acceleratorType&quot;: &quot;A String&quot;, # The accelerator type resource name. List of supported accelerators
3059 # [here](https://cloud.google.com/compute/docs/gpus)
3060 },
3061 ],
3062 &quot;machineType&quot;: &quot;A String&quot;, # The name of a Google Compute Engine [machine
3063 # type](https://cloud.google.com/compute/docs/machine-types) (e.g.
3064 # `n1-standard-1`).
3065 #
3066 # If unspecified, the default machine type is
3067 # `n1-standard-1`.
3068 &quot;diskType&quot;: &quot;A String&quot;, # Type of the disk attached to each node (e.g. &#x27;pd-standard&#x27; or &#x27;pd-ssd&#x27;)
3069 #
3070 # If unspecified, the default disk type is &#x27;pd-standard&#x27;
3071 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
3072 &quot;enableSecureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled.
3073 #
3074 # Secure Boot helps ensure that the system only runs authentic software by
3075 # verifying the digital signature of all boot components, and halting the
3076 # boot process if signature verification fails.
3077 &quot;enableIntegrityMonitoring&quot;: True or False, # Defines whether the instance has integrity monitoring enabled.
3078 #
3079 # Enables monitoring and attestation of the boot integrity of the instance.
3080 # The attestation is performed against the integrity policy baseline. This
3081 # baseline is initially derived from the implicitly trusted boot image when
3082 # the instance is created.
3083 },
3084 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used by this instance. The instance may be
3085 # scheduled on the specified or newer CPU platform. Applicable values are the
3086 # friendly names of CPU platforms, such as
3087 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Haswell&amp;quot;&lt;/code&gt; or
3088 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Sandy Bridge&amp;quot;&lt;/code&gt;. For more
3089 # information, read [how to specify min CPU
3090 # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
3091 &quot;preemptible&quot;: True or False, # Whether the nodes are created as preemptible VM instances. See:
3092 # https://cloud.google.com/compute/docs/instances/preemptible for more
3093 # information about preemptible VM instances.
3094 &quot;localSsdCount&quot;: 42, # The number of local SSD disks to be attached to the node.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04003095 #
Dan O'Mearadd494642020-05-01 07:42:23 -07003096 # The limit for this value is dependent upon the maximum number of
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04003097 # disks available on a machine per zone. See:
Dan O'Mearadd494642020-05-01 07:42:23 -07003098 # https://cloud.google.com/compute/docs/disks/local-ssd
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04003099 # for more information.
Bu Sun Kim65020912020-05-20 12:08:20 -07003100 &quot;sandboxConfig&quot;: { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node.
3101 &quot;type&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003102 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003103 &quot;metadata&quot;: { # The metadata key/value pairs assigned to instances in the cluster.
3104 #
3105 # Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
3106 # in length. These are reflected as part of a URL in the metadata server.
3107 # Additionally, to avoid ambiguity, keys must not conflict with any other
3108 # metadata keys for the project or be one of the reserved keys:
3109 # &quot;cluster-location&quot;
3110 # &quot;cluster-name&quot;
3111 # &quot;cluster-uid&quot;
3112 # &quot;configure-sh&quot;
3113 # &quot;containerd-configure-sh&quot;
3114 # &quot;enable-os-login&quot;
3115 # &quot;gci-ensure-gke-docker&quot;
3116 # &quot;gci-metrics-enabled&quot;
3117 # &quot;gci-update-strategy&quot;
3118 # &quot;instance-template&quot;
3119 # &quot;kube-env&quot;
3120 # &quot;startup-script&quot;
3121 # &quot;user-data&quot;
3122 # &quot;disable-address-manager&quot;
3123 # &quot;windows-startup-script-ps1&quot;
3124 # &quot;common-psm1&quot;
3125 # &quot;k8s-node-setup-psm1&quot;
3126 # &quot;install-ssh-psm1&quot;
3127 # &quot;user-profile-psm1&quot;
3128 # &quot;serial-port-logging-enable&quot;
3129 #
3130 # Values are free-form strings, and only have meaning as interpreted by
3131 # the image running in the instance. The only restriction placed on them is
3132 # that each value&#x27;s size must be less than or equal to 32 KB.
3133 #
3134 # The total size of all keys and values must be less than 512 KB.
3135 &quot;a_key&quot;: &quot;A String&quot;,
3136 },
3137 &quot;reservationAffinity&quot;: { # [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) # The optional reservation affinity. Setting this field will apply
3138 # the specified [Zonal Compute
3139 # Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
3140 # to this node pool.
3141 # is the configuration of desired reservation which instances could take
3142 # capacity from.
3143 &quot;key&quot;: &quot;A String&quot;, # Corresponds to the label key of a reservation resource. To target a
3144 # SPECIFIC_RESERVATION by name, specify &quot;googleapis.com/reservation-name&quot; as
3145 # the key and specify the name of your reservation as its value.
3146 &quot;values&quot;: [ # Corresponds to the label value(s) of reservation resource(s).
3147 &quot;A String&quot;,
3148 ],
3149 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Corresponds to the type of reservation consumption.
3150 },
3151 },
3152 &quot;maxPodsConstraint&quot;: { # Constraints applied to pods. # The constraint on the maximum number of pods that can be run
3153 # simultaneously on a node in the node pool.
3154 &quot;maxPodsPerNode&quot;: &quot;A String&quot;, # Constraint enforced on the max num of pods per node.
3155 },
3156 &quot;name&quot;: &quot;A String&quot;, # The name of the node pool.
3157 &quot;management&quot;: { # NodeManagement defines the set of node management services turned on for the # NodeManagement configuration for this NodePool.
3158 # node pool.
3159 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool.
3160 # the Auto Upgrades will proceed.
3161 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
3162 # with the description of the upgrade.
3163 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
3164 # with the approximate start time for the upgrades, in
3165 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
3166 },
3167 &quot;autoUpgrade&quot;: True or False, # A flag that specifies whether node auto-upgrade is enabled for the node
3168 # pool. If enabled, node auto-upgrade helps keep the nodes in your node pool
3169 # up to date with the latest release version of Kubernetes.
3170 &quot;autoRepair&quot;: True or False, # A flag that specifies whether the node auto-repair is enabled for the node
3171 # pool. If enabled, the nodes in this node pool will be monitored and, if
3172 # they fail health checks too many times, an automatic repair action will be
3173 # triggered.
3174 },
3175 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output only] Additional information about the current status of this
Dan O'Mearadd494642020-05-01 07:42:23 -07003176 # node pool instance, if available.
Bu Sun Kim65020912020-05-20 12:08:20 -07003177 &quot;autoscaling&quot;: { # NodePoolAutoscaling contains information required by cluster autoscaler to # Autoscaler configuration for this NodePool. Autoscaler is enabled
3178 # only if a valid configuration is present.
3179 # adjust the size of the node pool to the current cluster usage.
3180 &quot;enabled&quot;: True or False, # Is autoscaling enabled for this node pool.
3181 &quot;maxNodeCount&quot;: 42, # Maximum number of nodes in the NodePool. Must be &gt;= min_node_count. There
3182 # has to enough quota to scale up the cluster.
3183 &quot;minNodeCount&quot;: 42, # Minimum number of nodes in the NodePool. Must be &gt;= 1 and &lt;=
3184 # max_node_count.
3185 &quot;autoprovisioned&quot;: True or False, # Can this node pool be deleted automatically.
3186 },
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -07003187 },
3188 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003189 &quot;selfLink&quot;: &quot;A String&quot;, # [Output only] Server-defined URL for the resource.
3190 &quot;networkPolicy&quot;: { # Configuration options for the NetworkPolicy feature. # Configuration options for the NetworkPolicy feature.
3191 # https://kubernetes.io/docs/concepts/services-networking/networkpolicies/
3192 &quot;provider&quot;: &quot;A String&quot;, # The selected network policy provider.
3193 &quot;enabled&quot;: True or False, # Whether network policy is enabled on the cluster.
3194 },
3195 &quot;servicesIpv4Cidr&quot;: &quot;A String&quot;, # [Output only] The IP address range of the Kubernetes services in
3196 # this cluster, in
3197 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
3198 # notation (e.g. `1.2.3.4/29`). Service addresses are
3199 # typically put in the last `/16` from the container CIDR.
3200 &quot;enableKubernetesAlpha&quot;: True or False, # Kubernetes alpha features are enabled on this cluster. This includes alpha
3201 # API groups (e.g. v1alpha1) and features that may not be production ready in
3202 # the kubernetes version of the master and nodes.
3203 # The cluster has no SLA for uptime and master/node upgrades are disabled.
3204 # Alpha enabled clusters are automatically deleted thirty days after
3205 # creation.
3206 &quot;description&quot;: &quot;A String&quot;, # An optional description of this cluster.
3207 &quot;conditions&quot;: [ # Which conditions caused the current cluster state.
3208 { # StatusCondition describes why a cluster or a node pool has a certain status
3209 # (e.g., ERROR or DEGRADED).
3210 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
3211 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
3212 },
3213 ],
3214 &quot;currentNodeCount&quot;: 42, # [Output only] The number of nodes currently in the cluster. Deprecated.
3215 # Call Kubernetes API directly to retrieve node information.
3216 &quot;monitoringService&quot;: &quot;A String&quot;, # The monitoring service the cluster should use to write metrics.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04003217 # Currently available options:
3218 #
Bu Sun Kim65020912020-05-20 12:08:20 -07003219 # * &quot;monitoring.googleapis.com/kubernetes&quot; - The Cloud Monitoring
Dan O'Mearadd494642020-05-01 07:42:23 -07003220 # service with a Kubernetes-native resource model
3221 # * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
3222 # longer available as of GKE 1.15).
3223 # * `none` - No metrics will be exported from the cluster.
3224 #
3225 # If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
3226 # used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
Bu Sun Kim65020912020-05-20 12:08:20 -07003227 &quot;databaseEncryption&quot;: { # Configuration of etcd encryption. # Configuration of etcd encryption.
3228 &quot;keyName&quot;: &quot;A String&quot;, # Name of CloudKMS key to use for the encryption of secrets in etcd.
3229 # Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key
3230 &quot;state&quot;: &quot;A String&quot;, # Denotes the state of etcd encryption.
Takashi Matsuo06694102015-09-11 13:55:40 -07003231 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003232 &quot;binaryAuthorization&quot;: { # Configuration for Binary Authorization. # Configuration for Binary Authorization.
3233 &quot;enabled&quot;: True or False, # Enable Binary Authorization for this cluster. If enabled, all container
3234 # images will be validated by Binary Authorization.
3235 },
3236 &quot;tpuIpv4CidrBlock&quot;: &quot;A String&quot;, # [Output only] The IP address range of the Cloud TPUs in this cluster, in
3237 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
3238 # notation (e.g. `1.2.3.4/29`).
3239 &quot;workloadIdentityConfig&quot;: { # Configuration for the use of Kubernetes Service Accounts in GCP IAM # Configuration for the use of Kubernetes Service Accounts in GCP IAM
3240 # policies.
3241 # policies.
3242 &quot;workloadPool&quot;: &quot;A String&quot;, # The workload pool to attach all Kubernetes service accounts to.
3243 },
3244 &quot;zone&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
3245 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
3246 # cluster resides. This field is deprecated, use location instead.
3247 &quot;expireTime&quot;: &quot;A String&quot;, # [Output only] The time the cluster will be automatically
3248 # deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
3249 &quot;loggingService&quot;: &quot;A String&quot;, # The logging service the cluster should use to write logs.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003250 # Currently available options:
3251 #
Dan O'Mearadd494642020-05-01 07:42:23 -07003252 # * `logging.googleapis.com/kubernetes` - The Cloud Logging
3253 # service with a Kubernetes-native resource model
3254 # * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
3255 # available as of GKE 1.15).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003256 # * `none` - no logs will be exported from the cluster.
Dan O'Mearadd494642020-05-01 07:42:23 -07003257 #
3258 # If left as an empty string,`logging.googleapis.com/kubernetes` will be
3259 # used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
Bu Sun Kim65020912020-05-20 12:08:20 -07003260 &quot;nodeConfig&quot;: { # Parameters that describe the nodes in a cluster. # Parameters used in creating the cluster&#x27;s nodes.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04003261 # For requests, this field should only be used in lieu of a
Bu Sun Kim65020912020-05-20 12:08:20 -07003262 # &quot;node_pool&quot; object, since this configuration (along with the
3263 # &quot;initial_node_count&quot;) will be used to create a &quot;NodePool&quot; object with an
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04003264 # auto-generated name. Do not use this and a node_pool at the same time.
3265 # For responses, this field will be populated with the node configuration of
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003266 # the first node pool. (For configuration of each node pool, see
3267 # `node_pool.config`)
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04003268 #
3269 # If unspecified, the defaults are used.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003270 # This field is deprecated, use node_pool.config instead.
Bu Sun Kim65020912020-05-20 12:08:20 -07003271 &quot;tags&quot;: [ # The list of instance tags applied to all nodes. Tags are used to identify
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04003272 # valid sources or targets for network firewalls and are specified by
3273 # the client during cluster or node pool creation. Each tag within the list
3274 # must comply with RFC1035.
Bu Sun Kim65020912020-05-20 12:08:20 -07003275 &quot;A String&quot;,
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04003276 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003277 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs.
Dan O'Mearadd494642020-05-01 07:42:23 -07003278 # Specify the email address of the Service Account; otherwise, if no Service
Bu Sun Kim65020912020-05-20 12:08:20 -07003279 # Account is specified, the &quot;default&quot; service account is used.
3280 &quot;imageType&quot;: &quot;A String&quot;, # The image type to use for this node. Note that for a given image type,
3281 # the latest version of it will be used.
3282 &quot;oauthScopes&quot;: [ # The set of Google API scopes to be made available on all of the
3283 # node VMs under the &quot;default&quot; service account.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04003284 #
3285 # The following scopes are recommended, but not required, and by default are
3286 # not included:
3287 #
3288 # * `https://www.googleapis.com/auth/compute` is required for mounting
3289 # persistent storage on your nodes.
3290 # * `https://www.googleapis.com/auth/devstorage.read_only` is required for
3291 # communicating with **gcr.io**
Dan O'Mearadd494642020-05-01 07:42:23 -07003292 # (the [Google Container
3293 # Registry](https://cloud.google.com/container-registry/)).
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04003294 #
3295 # If unspecified, no scopes are added, unless Cloud Logging or Cloud
3296 # Monitoring are enabled, in which case their required scopes will be added.
Bu Sun Kim65020912020-05-20 12:08:20 -07003297 &quot;A String&quot;,
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04003298 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003299 &quot;taints&quot;: [ # List of kubernetes taints to be applied to each node.
Dan O'Mearadd494642020-05-01 07:42:23 -07003300 #
3301 # For more information, including usage and the valid values, see:
3302 # https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
3303 { # Kubernetes taint is comprised of three fields: key, value, and effect. Effect
3304 # can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute.
3305 #
Bu Sun Kim65020912020-05-20 12:08:20 -07003306 # See
3307 # [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration)
3308 # for more information, including usage and the valid values.
3309 &quot;key&quot;: &quot;A String&quot;, # Key for taint.
3310 &quot;value&quot;: &quot;A String&quot;, # Value for taint.
3311 &quot;effect&quot;: &quot;A String&quot;, # Effect for taint.
Dan O'Mearadd494642020-05-01 07:42:23 -07003312 },
3313 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003314 &quot;labels&quot;: { # The map of Kubernetes labels (key/value pairs) to be applied to each node.
3315 # These will added in addition to any default label(s) that
3316 # Kubernetes may apply to the node.
3317 # In case of conflict in label keys, the applied set may differ depending on
3318 # the Kubernetes version -- it&#x27;s best to assume the behavior is undefined
3319 # and conflicts should be avoided.
3320 # For more information, including usage and the valid values, see:
3321 # https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
3322 &quot;a_key&quot;: &quot;A String&quot;,
3323 },
3324 &quot;diskSizeGb&quot;: 42, # Size of the disk attached to each node, specified in GB.
3325 # The smallest allowed disk size is 10GB.
3326 #
3327 # If unspecified, the default disk size is 100GB.
3328 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to # The workload metadata configuration for this node.
3329 # workloads on the node pool.
3330 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running
3331 # on the node pool.
3332 },
3333 &quot;accelerators&quot;: [ # A list of hardware accelerators to be attached to each node.
3334 # See https://cloud.google.com/compute/docs/gpus for more information about
3335 # support for GPUs.
3336 { # AcceleratorConfig represents a Hardware Accelerator request.
3337 &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of the accelerator cards exposed to an instance.
3338 &quot;acceleratorType&quot;: &quot;A String&quot;, # The accelerator type resource name. List of supported accelerators
3339 # [here](https://cloud.google.com/compute/docs/gpus)
3340 },
3341 ],
3342 &quot;machineType&quot;: &quot;A String&quot;, # The name of a Google Compute Engine [machine
3343 # type](https://cloud.google.com/compute/docs/machine-types) (e.g.
3344 # `n1-standard-1`).
3345 #
3346 # If unspecified, the default machine type is
3347 # `n1-standard-1`.
3348 &quot;diskType&quot;: &quot;A String&quot;, # Type of the disk attached to each node (e.g. &#x27;pd-standard&#x27; or &#x27;pd-ssd&#x27;)
3349 #
3350 # If unspecified, the default disk type is &#x27;pd-standard&#x27;
3351 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
3352 &quot;enableSecureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled.
3353 #
3354 # Secure Boot helps ensure that the system only runs authentic software by
3355 # verifying the digital signature of all boot components, and halting the
3356 # boot process if signature verification fails.
3357 &quot;enableIntegrityMonitoring&quot;: True or False, # Defines whether the instance has integrity monitoring enabled.
3358 #
3359 # Enables monitoring and attestation of the boot integrity of the instance.
3360 # The attestation is performed against the integrity policy baseline. This
3361 # baseline is initially derived from the implicitly trusted boot image when
3362 # the instance is created.
3363 },
3364 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used by this instance. The instance may be
3365 # scheduled on the specified or newer CPU platform. Applicable values are the
3366 # friendly names of CPU platforms, such as
3367 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Haswell&amp;quot;&lt;/code&gt; or
3368 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Sandy Bridge&amp;quot;&lt;/code&gt;. For more
3369 # information, read [how to specify min CPU
3370 # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
3371 &quot;preemptible&quot;: True or False, # Whether the nodes are created as preemptible VM instances. See:
3372 # https://cloud.google.com/compute/docs/instances/preemptible for more
3373 # information about preemptible VM instances.
3374 &quot;localSsdCount&quot;: 42, # The number of local SSD disks to be attached to the node.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04003375 #
Dan O'Mearadd494642020-05-01 07:42:23 -07003376 # The limit for this value is dependent upon the maximum number of
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04003377 # disks available on a machine per zone. See:
Dan O'Mearadd494642020-05-01 07:42:23 -07003378 # https://cloud.google.com/compute/docs/disks/local-ssd
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04003379 # for more information.
Bu Sun Kim65020912020-05-20 12:08:20 -07003380 &quot;sandboxConfig&quot;: { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node.
3381 &quot;type&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node.
3382 },
3383 &quot;metadata&quot;: { # The metadata key/value pairs assigned to instances in the cluster.
3384 #
3385 # Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
3386 # in length. These are reflected as part of a URL in the metadata server.
3387 # Additionally, to avoid ambiguity, keys must not conflict with any other
3388 # metadata keys for the project or be one of the reserved keys:
3389 # &quot;cluster-location&quot;
3390 # &quot;cluster-name&quot;
3391 # &quot;cluster-uid&quot;
3392 # &quot;configure-sh&quot;
3393 # &quot;containerd-configure-sh&quot;
3394 # &quot;enable-os-login&quot;
3395 # &quot;gci-ensure-gke-docker&quot;
3396 # &quot;gci-metrics-enabled&quot;
3397 # &quot;gci-update-strategy&quot;
3398 # &quot;instance-template&quot;
3399 # &quot;kube-env&quot;
3400 # &quot;startup-script&quot;
3401 # &quot;user-data&quot;
3402 # &quot;disable-address-manager&quot;
3403 # &quot;windows-startup-script-ps1&quot;
3404 # &quot;common-psm1&quot;
3405 # &quot;k8s-node-setup-psm1&quot;
3406 # &quot;install-ssh-psm1&quot;
3407 # &quot;user-profile-psm1&quot;
3408 # &quot;serial-port-logging-enable&quot;
3409 #
3410 # Values are free-form strings, and only have meaning as interpreted by
3411 # the image running in the instance. The only restriction placed on them is
3412 # that each value&#x27;s size must be less than or equal to 32 KB.
3413 #
3414 # The total size of all keys and values must be less than 512 KB.
3415 &quot;a_key&quot;: &quot;A String&quot;,
3416 },
3417 &quot;reservationAffinity&quot;: { # [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) # The optional reservation affinity. Setting this field will apply
3418 # the specified [Zonal Compute
3419 # Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
3420 # to this node pool.
3421 # is the configuration of desired reservation which instances could take
3422 # capacity from.
3423 &quot;key&quot;: &quot;A String&quot;, # Corresponds to the label key of a reservation resource. To target a
3424 # SPECIFIC_RESERVATION by name, specify &quot;googleapis.com/reservation-name&quot; as
3425 # the key and specify the name of your reservation as its value.
3426 &quot;values&quot;: [ # Corresponds to the label value(s) of reservation resource(s).
3427 &quot;A String&quot;,
3428 ],
3429 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Corresponds to the type of reservation consumption.
3430 },
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04003431 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003432 &quot;status&quot;: &quot;A String&quot;, # [Output only] The current status of this cluster.
3433 &quot;networkConfig&quot;: { # NetworkConfig reports the relative names of network &amp; subnetwork. # Configuration for cluster networking.
3434 &quot;subnetwork&quot;: &quot;A String&quot;, # Output only. The relative name of the Google Compute Engine
3435 # [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the
3436 # cluster is connected. Example:
3437 # projects/my-project/regions/us-central1/subnetworks/my-subnet
3438 &quot;network&quot;: &quot;A String&quot;, # Output only. The relative name of the Google Compute Engine
3439 # network(https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
3440 # to which the cluster is connected. Example:
3441 # projects/my-project/global/networks/my-network
3442 &quot;enableIntraNodeVisibility&quot;: True or False, # Whether Intra-node visibility is enabled for this cluster.
3443 # This makes same node pod to pod traffic visible for VPC network.
3444 },
3445 &quot;name&quot;: &quot;A String&quot;, # The name of this cluster. The name must be unique within this project
3446 # and location (e.g. zone or region), and can be up to 40 characters with
3447 # the following restrictions:
3448 #
3449 # * Lowercase letters, numbers, and hyphens only.
3450 # * Must start with a letter.
3451 # * Must end with a number or a letter.
3452 &quot;endpoint&quot;: &quot;A String&quot;, # [Output only] The IP address of this cluster&#x27;s master endpoint.
3453 # The endpoint can be accessed from the internet at
3454 # `https://username:password@endpoint/`.
3455 #
3456 # See the `masterAuth` property of this resource for username and
3457 # password information.
3458 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
3459 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
3460 # or
3461 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
3462 # in which the cluster resides.
3463 &quot;createTime&quot;: &quot;A String&quot;, # [Output only] The time the cluster was created, in
3464 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
3465 &quot;clusterIpv4Cidr&quot;: &quot;A String&quot;, # The IP address range of the container pods in this cluster, in
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04003466 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
3467 # notation (e.g. `10.96.0.0/14`). Leave blank to have
3468 # one automatically chosen or specify a `/14` block in `10.0.0.0/8`.
Bu Sun Kim65020912020-05-20 12:08:20 -07003469 &quot;autoscaling&quot;: { # ClusterAutoscaling contains global, per-cluster information # Cluster-level autoscaling configuration.
3470 # required by Cluster Autoscaler to automatically adjust
3471 # the size of the cluster and create/delete
3472 # node pools based on the current needs.
3473 &quot;autoprovisioningLocations&quot;: [ # The list of Google Compute Engine
3474 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
3475 # NodePool&#x27;s nodes can be created by NAP.
3476 &quot;A String&quot;,
3477 ],
3478 &quot;resourceLimits&quot;: [ # Contains global constraints regarding minimum and maximum
3479 # amount of resources in the cluster.
3480 { # Contains information about amount of some resource in the cluster.
3481 # For memory, value should be in GB.
3482 &quot;maximum&quot;: &quot;A String&quot;, # Maximum amount of the resource in the cluster.
3483 &quot;resourceType&quot;: &quot;A String&quot;, # Resource name &quot;cpu&quot;, &quot;memory&quot; or gpu-specific string.
3484 &quot;minimum&quot;: &quot;A String&quot;, # Minimum amount of the resource in the cluster.
3485 },
3486 ],
3487 &quot;enableNodeAutoprovisioning&quot;: True or False, # Enables automatic node pool creation and deletion.
3488 &quot;autoprovisioningNodePoolDefaults&quot;: { # AutoprovisioningNodePoolDefaults contains defaults for a node pool created # AutoprovisioningNodePoolDefaults contains defaults for a node pool
3489 # created by NAP.
3490 # by NAP.
3491 &quot;oauthScopes&quot;: [ # Scopes that are used by NAP when creating node pools. If oauth_scopes are
3492 # specified, service_account should be empty.
3493 &quot;A String&quot;,
3494 ],
3495 &quot;management&quot;: { # NodeManagement defines the set of node management services turned on for the # Specifies the node management options for NAP created node-pools.
3496 # node pool.
3497 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool.
3498 # the Auto Upgrades will proceed.
3499 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
3500 # with the description of the upgrade.
3501 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
3502 # with the approximate start time for the upgrades, in
3503 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
3504 },
3505 &quot;autoUpgrade&quot;: True or False, # A flag that specifies whether node auto-upgrade is enabled for the node
3506 # pool. If enabled, node auto-upgrade helps keep the nodes in your node pool
3507 # up to date with the latest release version of Kubernetes.
3508 &quot;autoRepair&quot;: True or False, # A flag that specifies whether the node auto-repair is enabled for the node
3509 # pool. If enabled, the nodes in this node pool will be monitored and, if
3510 # they fail health checks too many times, an automatic repair action will be
3511 # triggered.
3512 },
3513 &quot;upgradeSettings&quot;: { # These upgrade settings control the level of parallelism and the level of # Specifies the upgrade settings for NAP created node pools
3514 # disruption caused by an upgrade.
3515 #
3516 # maxUnavailable controls the number of nodes that can be simultaneously
3517 # unavailable.
3518 #
3519 # maxSurge controls the number of additional nodes that can be added to the
3520 # node pool temporarily for the time of the upgrade to increase the number of
3521 # available nodes.
3522 #
3523 # (maxUnavailable + maxSurge) determines the level of parallelism (how many
3524 # nodes are being upgraded at the same time).
3525 #
3526 # Note: upgrades inevitably introduce some disruption since workloads need to
3527 # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
3528 # this holds true. (Disruption stays within the limits of
3529 # PodDisruptionBudget, if it is configured.)
3530 #
3531 # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
3532 # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
3533 # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
3534 # down 3 old (not yet upgraded) nodes at the same time. This ensures that
3535 # there are always at least 4 nodes available.
3536 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during
3537 # the upgrade process. A node is considered available if its status is
3538 # Ready.
3539 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size
3540 # of the node pool during the upgrade process.
3541 },
3542 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs. If
3543 # service_account is specified, scopes should be empty.
3544 },
3545 },
3546 &quot;initialNodeCount&quot;: 42, # The number of nodes to create in this cluster. You must ensure that your
3547 # Compute Engine &lt;a href=&quot;/compute/docs/resource-quotas&quot;&gt;resource quota&lt;/a&gt;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003548 # is sufficient for this number of instances. You must also have available
3549 # firewall and routes quota.
3550 # For requests, this field should only be used in lieu of a
Bu Sun Kim65020912020-05-20 12:08:20 -07003551 # &quot;node_pool&quot; object, since this configuration (along with the
3552 # &quot;node_config&quot;) will be used to create a &quot;NodePool&quot; object with an
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003553 # auto-generated name. Do not use this and a node_pool at the same time.
3554 #
3555 # This field is deprecated, use node_pool.initial_node_count instead.
Bu Sun Kim65020912020-05-20 12:08:20 -07003556 &quot;instanceGroupUrls&quot;: [ # Deprecated. Use node_pools.instance_group_urls.
3557 &quot;A String&quot;,
3558 ],
3559 &quot;privateClusterConfig&quot;: { # Configuration options for private clusters. # Configuration for private cluster.
3560 &quot;peeringName&quot;: &quot;A String&quot;, # Output only. The peering name in the customer VPC used by this cluster.
3561 &quot;publicEndpoint&quot;: &quot;A String&quot;, # Output only. The external IP address of this cluster&#x27;s master endpoint.
3562 &quot;enablePrivateNodes&quot;: True or False, # Whether nodes have internal IP addresses only. If enabled, all nodes are
3563 # given only RFC 1918 private addresses and communicate with the master via
3564 # private networking.
3565 &quot;masterIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP range in CIDR notation to use for the hosted master network. This
3566 # range will be used for assigning internal IP addresses to the master or
3567 # set of masters, as well as the ILB VIP. This range must not overlap with
3568 # any other ranges in use within the cluster&#x27;s network.
3569 &quot;privateEndpoint&quot;: &quot;A String&quot;, # Output only. The internal IP address of this cluster&#x27;s master endpoint.
3570 &quot;enablePrivateEndpoint&quot;: True or False, # Whether the master&#x27;s internal IP address is used as the cluster endpoint.
3571 },
3572 &quot;shieldedNodes&quot;: { # Configuration of Shielded Nodes feature. # Shielded Nodes configuration.
3573 &quot;enabled&quot;: True or False, # Whether Shielded Nodes features are enabled on all nodes in this cluster.
3574 },
3575 &quot;verticalPodAutoscaling&quot;: { # VerticalPodAutoscaling contains global, per-cluster information # Cluster-level Vertical Pod Autoscaling configuration.
3576 # required by Vertical Pod Autoscaler to automatically adjust
3577 # the resources of pods controlled by it.
3578 &quot;enabled&quot;: True or False, # Enables vertical pod autoscaling.
3579 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003580 },
3581 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003582 &quot;missingZones&quot;: [ # If any zones are listed here, the list of clusters returned
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003583 # may be missing those zones.
Bu Sun Kim65020912020-05-20 12:08:20 -07003584 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003585 ],
3586 }</pre>
3587</div>
3588
3589<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07003590 <code class="details" id="locations">locations(projectId, zone, clusterId, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003591 <pre>Sets the locations for a specific cluster.
Dan O'Mearadd494642020-05-01 07:42:23 -07003592Deprecated. Use
3593[projects.locations.clusters.update](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters/update)
3594instead.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003595
3596Args:
3597 projectId: string, Deprecated. The Google Developers Console [project ID or project
3598number](https://support.google.com/cloud/answer/6158840).
3599This field has been deprecated and replaced by the name field. (required)
3600 zone: string, Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07003601[zone](https://cloud.google.com/compute/docs/zones#available) in which the
3602cluster resides. This field has been deprecated and replaced by the name
3603field. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003604 clusterId: string, Deprecated. The name of the cluster to upgrade.
3605This field has been deprecated and replaced by the name field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07003606 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003607 The object takes the form of:
3608
3609{ # SetLocationsRequest sets the locations of the cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -07003610 &quot;projectId&quot;: &quot;A String&quot;, # Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003611 # number](https://support.google.com/cloud/answer/6158840).
3612 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07003613 &quot;zone&quot;: &quot;A String&quot;, # Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07003614 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
3615 # cluster resides. This field has been deprecated and replaced by the name
3616 # field.
Bu Sun Kim65020912020-05-20 12:08:20 -07003617 &quot;locations&quot;: [ # Required. The desired list of Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07003618 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
Bu Sun Kim65020912020-05-20 12:08:20 -07003619 # cluster&#x27;s nodes should be located. Changing the locations a cluster is in
Dan O'Mearadd494642020-05-01 07:42:23 -07003620 # will result in nodes being either created or removed from the cluster,
3621 # depending on whether locations are being added or removed.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003622 #
Bu Sun Kim65020912020-05-20 12:08:20 -07003623 # This list must always include the cluster&#x27;s primary zone.
3624 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003625 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003626 &quot;clusterId&quot;: &quot;A String&quot;, # Deprecated. The name of the cluster to upgrade.
3627 # This field has been deprecated and replaced by the name field.
3628 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster) of the cluster to set locations.
3629 # Specified in the format `projects/*/locations/*/clusters/*`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003630 }
3631
3632 x__xgafv: string, V1 error format.
3633 Allowed values
3634 1 - v1 error format
3635 2 - v2 error format
3636
3637Returns:
3638 An object of the form:
3639
3640 { # This operation resource represents operations that may have happened or are
3641 # happening on the cluster. All fields are output only.
Bu Sun Kim65020912020-05-20 12:08:20 -07003642 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
3643 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003644 { # StatusCondition describes why a cluster or a node pool has a certain status
3645 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07003646 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
3647 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003648 },
3649 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003650 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
Dan O'Mearadd494642020-05-01 07:42:23 -07003651 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07003652 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07003653 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
3654 # or
3655 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
3656 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07003657 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
3658 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
3659 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
3660 &quot;stages&quot;: [ # Substages of an operation or a stage.
3661 # Object with schema name: OperationProgress
3662 ],
3663 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
3664 # Unset for single-stage operations.
3665 &quot;metrics&quot;: [ # Progress metric bundle, for example:
3666 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
3667 # {name: &quot;nodes total&quot;, int_value: 32}]
3668 # or
3669 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
3670 # {name: &quot;progress scale&quot;, double_value: 1.0}]
3671 { # Progress metric is (string, int|float|string) pair.
3672 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
3673 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
3674 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
3675 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
3676 },
3677 ],
3678 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
3679 # Unset for single-stage operations.
3680 },
3681 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
3682 { # StatusCondition describes why a cluster or a node pool has a certain status
3683 # (e.g., ERROR or DEGRADED).
3684 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
3685 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
3686 },
3687 ],
3688 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
3689 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
3690 # operation is taking place. This field is deprecated, use location instead.
3691 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
3692 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
3693 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
3694 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
3695 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
3696 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003697 }</pre>
3698</div>
3699
3700<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07003701 <code class="details" id="logging">logging(projectId, zone, clusterId, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003702 <pre>Sets the logging service for a specific cluster.
3703
3704Args:
3705 projectId: string, Deprecated. The Google Developers Console [project ID or project
3706number](https://support.google.com/cloud/answer/6158840).
3707This field has been deprecated and replaced by the name field. (required)
3708 zone: string, Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07003709[zone](https://cloud.google.com/compute/docs/zones#available) in which the
3710cluster resides. This field has been deprecated and replaced by the name
3711field. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003712 clusterId: string, Deprecated. The name of the cluster to upgrade.
3713This field has been deprecated and replaced by the name field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07003714 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003715 The object takes the form of:
3716
3717{ # SetLoggingServiceRequest sets the logging service of a cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -07003718 &quot;projectId&quot;: &quot;A String&quot;, # Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003719 # number](https://support.google.com/cloud/answer/6158840).
3720 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07003721 &quot;zone&quot;: &quot;A String&quot;, # Deprecated. The name of the Google Compute Engine
3722 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
3723 # cluster resides. This field has been deprecated and replaced by the name
3724 # field.
3725 &quot;clusterId&quot;: &quot;A String&quot;, # Deprecated. The name of the cluster to upgrade.
3726 # This field has been deprecated and replaced by the name field.
3727 &quot;loggingService&quot;: &quot;A String&quot;, # Required. The logging service the cluster should use to write logs.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003728 # Currently available options:
3729 #
Dan O'Mearadd494642020-05-01 07:42:23 -07003730 # * `logging.googleapis.com/kubernetes` - The Cloud Logging
3731 # service with a Kubernetes-native resource model
3732 # * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
3733 # available as of GKE 1.15).
3734 # * `none` - no logs will be exported from the cluster.
3735 #
3736 # If left as an empty string,`logging.googleapis.com/kubernetes` will be
3737 # used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
Bu Sun Kim65020912020-05-20 12:08:20 -07003738 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster) of the cluster to set logging.
3739 # Specified in the format `projects/*/locations/*/clusters/*`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003740 }
3741
3742 x__xgafv: string, V1 error format.
3743 Allowed values
3744 1 - v1 error format
3745 2 - v2 error format
3746
3747Returns:
3748 An object of the form:
3749
3750 { # This operation resource represents operations that may have happened or are
3751 # happening on the cluster. All fields are output only.
Bu Sun Kim65020912020-05-20 12:08:20 -07003752 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
3753 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003754 { # StatusCondition describes why a cluster or a node pool has a certain status
3755 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07003756 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
3757 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003758 },
3759 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003760 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
Dan O'Mearadd494642020-05-01 07:42:23 -07003761 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07003762 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07003763 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
3764 # or
3765 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
3766 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07003767 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
3768 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
3769 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
3770 &quot;stages&quot;: [ # Substages of an operation or a stage.
3771 # Object with schema name: OperationProgress
3772 ],
3773 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
3774 # Unset for single-stage operations.
3775 &quot;metrics&quot;: [ # Progress metric bundle, for example:
3776 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
3777 # {name: &quot;nodes total&quot;, int_value: 32}]
3778 # or
3779 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
3780 # {name: &quot;progress scale&quot;, double_value: 1.0}]
3781 { # Progress metric is (string, int|float|string) pair.
3782 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
3783 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
3784 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
3785 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
3786 },
3787 ],
3788 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
3789 # Unset for single-stage operations.
3790 },
3791 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
3792 { # StatusCondition describes why a cluster or a node pool has a certain status
3793 # (e.g., ERROR or DEGRADED).
3794 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
3795 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
3796 },
3797 ],
3798 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
3799 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
3800 # operation is taking place. This field is deprecated, use location instead.
3801 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
3802 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
3803 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
3804 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
3805 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
3806 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003807 }</pre>
3808</div>
3809
3810<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07003811 <code class="details" id="master">master(projectId, zone, clusterId, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003812 <pre>Updates the master for a specific cluster.
3813
3814Args:
3815 projectId: string, Deprecated. The Google Developers Console [project ID or project
3816number](https://support.google.com/cloud/answer/6158840).
3817This field has been deprecated and replaced by the name field. (required)
3818 zone: string, Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07003819[zone](https://cloud.google.com/compute/docs/zones#available) in which the
3820cluster resides. This field has been deprecated and replaced by the name
3821field. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003822 clusterId: string, Deprecated. The name of the cluster to upgrade.
3823This field has been deprecated and replaced by the name field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07003824 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003825 The object takes the form of:
3826
3827{ # UpdateMasterRequest updates the master of the cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -07003828 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster) of the cluster to update.
3829 # Specified in the format `projects/*/locations/*/clusters/*`.
3830 &quot;projectId&quot;: &quot;A String&quot;, # Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003831 # number](https://support.google.com/cloud/answer/6158840).
3832 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07003833 &quot;zone&quot;: &quot;A String&quot;, # Deprecated. The name of the Google Compute Engine
3834 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
3835 # cluster resides. This field has been deprecated and replaced by the name
3836 # field.
3837 &quot;masterVersion&quot;: &quot;A String&quot;, # Required. The Kubernetes version to change the master to.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003838 #
3839 # Users may specify either explicit versions offered by Kubernetes Engine or
3840 # version aliases, which have the following behavior:
3841 #
Bu Sun Kim65020912020-05-20 12:08:20 -07003842 # - &quot;latest&quot;: picks the highest valid Kubernetes version
3843 # - &quot;1.X&quot;: picks the highest valid patch+gke.N patch in the 1.X version
3844 # - &quot;1.X.Y&quot;: picks the highest valid gke.N patch in the 1.X.Y version
3845 # - &quot;1.X.Y-gke.N&quot;: picks an explicit Kubernetes version
3846 # - &quot;-&quot;: picks the default Kubernetes version
3847 &quot;clusterId&quot;: &quot;A String&quot;, # Deprecated. The name of the cluster to upgrade.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003848 # This field has been deprecated and replaced by the name field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003849 }
3850
3851 x__xgafv: string, V1 error format.
3852 Allowed values
3853 1 - v1 error format
3854 2 - v2 error format
3855
3856Returns:
3857 An object of the form:
3858
3859 { # This operation resource represents operations that may have happened or are
3860 # happening on the cluster. All fields are output only.
Bu Sun Kim65020912020-05-20 12:08:20 -07003861 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
3862 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003863 { # StatusCondition describes why a cluster or a node pool has a certain status
3864 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07003865 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
3866 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003867 },
3868 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003869 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
Dan O'Mearadd494642020-05-01 07:42:23 -07003870 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07003871 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07003872 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
3873 # or
3874 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
3875 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07003876 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
3877 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
3878 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
3879 &quot;stages&quot;: [ # Substages of an operation or a stage.
3880 # Object with schema name: OperationProgress
3881 ],
3882 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
3883 # Unset for single-stage operations.
3884 &quot;metrics&quot;: [ # Progress metric bundle, for example:
3885 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
3886 # {name: &quot;nodes total&quot;, int_value: 32}]
3887 # or
3888 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
3889 # {name: &quot;progress scale&quot;, double_value: 1.0}]
3890 { # Progress metric is (string, int|float|string) pair.
3891 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
3892 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
3893 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
3894 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
3895 },
3896 ],
3897 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
3898 # Unset for single-stage operations.
3899 },
3900 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
3901 { # StatusCondition describes why a cluster or a node pool has a certain status
3902 # (e.g., ERROR or DEGRADED).
3903 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
3904 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
3905 },
3906 ],
3907 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
3908 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
3909 # operation is taking place. This field is deprecated, use location instead.
3910 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
3911 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
3912 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
3913 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
3914 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
3915 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003916 }</pre>
3917</div>
3918
3919<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07003920 <code class="details" id="monitoring">monitoring(projectId, zone, clusterId, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003921 <pre>Sets the monitoring service for a specific cluster.
3922
3923Args:
3924 projectId: string, Deprecated. The Google Developers Console [project ID or project
3925number](https://support.google.com/cloud/answer/6158840).
3926This field has been deprecated and replaced by the name field. (required)
3927 zone: string, Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07003928[zone](https://cloud.google.com/compute/docs/zones#available) in which the
3929cluster resides. This field has been deprecated and replaced by the name
3930field. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003931 clusterId: string, Deprecated. The name of the cluster to upgrade.
3932This field has been deprecated and replaced by the name field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07003933 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003934 The object takes the form of:
3935
3936{ # SetMonitoringServiceRequest sets the monitoring service of a cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -07003937 &quot;monitoringService&quot;: &quot;A String&quot;, # Required. The monitoring service the cluster should use to write metrics.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003938 # Currently available options:
3939 #
Bu Sun Kim65020912020-05-20 12:08:20 -07003940 # * &quot;monitoring.googleapis.com/kubernetes&quot; - The Cloud Monitoring
Dan O'Mearadd494642020-05-01 07:42:23 -07003941 # service with a Kubernetes-native resource model
3942 # * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
3943 # longer available as of GKE 1.15).
3944 # * `none` - No metrics will be exported from the cluster.
3945 #
3946 # If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
3947 # used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
Bu Sun Kim65020912020-05-20 12:08:20 -07003948 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster) of the cluster to set monitoring.
3949 # Specified in the format `projects/*/locations/*/clusters/*`.
3950 &quot;projectId&quot;: &quot;A String&quot;, # Deprecated. The Google Developers Console [project ID or project
3951 # number](https://support.google.com/cloud/answer/6158840).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003952 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07003953 &quot;zone&quot;: &quot;A String&quot;, # Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07003954 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
3955 # cluster resides. This field has been deprecated and replaced by the name
3956 # field.
Bu Sun Kim65020912020-05-20 12:08:20 -07003957 &quot;clusterId&quot;: &quot;A String&quot;, # Deprecated. The name of the cluster to upgrade.
3958 # This field has been deprecated and replaced by the name field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003959 }
3960
3961 x__xgafv: string, V1 error format.
3962 Allowed values
3963 1 - v1 error format
3964 2 - v2 error format
3965
3966Returns:
3967 An object of the form:
3968
3969 { # This operation resource represents operations that may have happened or are
3970 # happening on the cluster. All fields are output only.
Bu Sun Kim65020912020-05-20 12:08:20 -07003971 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
3972 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003973 { # StatusCondition describes why a cluster or a node pool has a certain status
3974 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07003975 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
3976 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003977 },
3978 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003979 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
Dan O'Mearadd494642020-05-01 07:42:23 -07003980 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07003981 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07003982 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
3983 # or
3984 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
3985 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07003986 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
3987 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
3988 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
3989 &quot;stages&quot;: [ # Substages of an operation or a stage.
3990 # Object with schema name: OperationProgress
3991 ],
3992 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
3993 # Unset for single-stage operations.
3994 &quot;metrics&quot;: [ # Progress metric bundle, for example:
3995 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
3996 # {name: &quot;nodes total&quot;, int_value: 32}]
3997 # or
3998 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
3999 # {name: &quot;progress scale&quot;, double_value: 1.0}]
4000 { # Progress metric is (string, int|float|string) pair.
4001 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
4002 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
4003 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
4004 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
4005 },
4006 ],
4007 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
4008 # Unset for single-stage operations.
4009 },
4010 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
4011 { # StatusCondition describes why a cluster or a node pool has a certain status
4012 # (e.g., ERROR or DEGRADED).
4013 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
4014 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
4015 },
4016 ],
4017 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
4018 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4019 # operation is taking place. This field is deprecated, use location instead.
4020 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
4021 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
4022 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
4023 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
4024 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
4025 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04004026 }</pre>
4027</div>
4028
4029<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07004030 <code class="details" id="resourceLabels">resourceLabels(projectId, zone, clusterId, body=None, x__xgafv=None)</code>
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04004031 <pre>Sets labels on a cluster.
4032
4033Args:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004034 projectId: string, Deprecated. The Google Developers Console [project ID or project
4035number](https://developers.google.com/console/help/new/#projectnumber).
4036This field has been deprecated and replaced by the name field. (required)
4037 zone: string, Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07004038[zone](https://cloud.google.com/compute/docs/zones#available) in which the
4039cluster resides. This field has been deprecated and replaced by the name
4040field. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004041 clusterId: string, Deprecated. The name of the cluster.
4042This field has been deprecated and replaced by the name field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07004043 body: object, The request body.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04004044 The object takes the form of:
4045
4046{ # SetLabelsRequest sets the Google Cloud Platform labels on a Google Container
4047 # Engine cluster, which will in turn set them for Google Compute Engine
4048 # resources used by that cluster
Bu Sun Kim65020912020-05-20 12:08:20 -07004049 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster id) of the cluster to set labels.
4050 # Specified in the format `projects/*/locations/*/clusters/*`.
4051 &quot;resourceLabels&quot;: { # Required. The labels to set for that cluster.
4052 &quot;a_key&quot;: &quot;A String&quot;,
4053 },
4054 &quot;projectId&quot;: &quot;A String&quot;, # Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004055 # number](https://developers.google.com/console/help/new/#projectnumber).
4056 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07004057 &quot;clusterId&quot;: &quot;A String&quot;, # Deprecated. The name of the cluster.
4058 # This field has been deprecated and replaced by the name field.
4059 &quot;labelFingerprint&quot;: &quot;A String&quot;, # Required. The fingerprint of the previous set of labels for this resource,
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04004060 # used to detect conflicts. The fingerprint is initially generated by
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004061 # Kubernetes Engine and changes after every request to modify or update
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04004062 # labels. You must always provide an up-to-date fingerprint hash when
Dan O'Mearadd494642020-05-01 07:42:23 -07004063 # updating or changing labels. Make a &lt;code&gt;get()&lt;/code&gt; request to the
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04004064 # resource to get the latest fingerprint.
Bu Sun Kim65020912020-05-20 12:08:20 -07004065 &quot;zone&quot;: &quot;A String&quot;, # Deprecated. The name of the Google Compute Engine
4066 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4067 # cluster resides. This field has been deprecated and replaced by the name
4068 # field.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04004069 }
4070
4071 x__xgafv: string, V1 error format.
4072 Allowed values
4073 1 - v1 error format
4074 2 - v2 error format
4075
4076Returns:
4077 An object of the form:
4078
4079 { # This operation resource represents operations that may have happened or are
4080 # happening on the cluster. All fields are output only.
Bu Sun Kim65020912020-05-20 12:08:20 -07004081 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
4082 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004083 { # StatusCondition describes why a cluster or a node pool has a certain status
4084 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07004085 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
4086 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004087 },
4088 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07004089 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
Dan O'Mearadd494642020-05-01 07:42:23 -07004090 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07004091 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07004092 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4093 # or
4094 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4095 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07004096 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
4097 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
4098 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
4099 &quot;stages&quot;: [ # Substages of an operation or a stage.
4100 # Object with schema name: OperationProgress
4101 ],
4102 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
4103 # Unset for single-stage operations.
4104 &quot;metrics&quot;: [ # Progress metric bundle, for example:
4105 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
4106 # {name: &quot;nodes total&quot;, int_value: 32}]
4107 # or
4108 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
4109 # {name: &quot;progress scale&quot;, double_value: 1.0}]
4110 { # Progress metric is (string, int|float|string) pair.
4111 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
4112 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
4113 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
4114 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
4115 },
4116 ],
4117 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
4118 # Unset for single-stage operations.
4119 },
4120 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
4121 { # StatusCondition describes why a cluster or a node pool has a certain status
4122 # (e.g., ERROR or DEGRADED).
4123 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
4124 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
4125 },
4126 ],
4127 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
4128 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4129 # operation is taking place. This field is deprecated, use location instead.
4130 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
4131 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
4132 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
4133 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
4134 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
4135 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04004136 }</pre>
4137</div>
4138
4139<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07004140 <code class="details" id="setMaintenancePolicy">setMaintenancePolicy(projectId, zone, clusterId, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004141 <pre>Sets the maintenance policy for a cluster.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04004142
4143Args:
Dan O'Mearadd494642020-05-01 07:42:23 -07004144 projectId: string, Required. The Google Developers Console [project ID or project
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04004145number](https://support.google.com/cloud/answer/6158840). (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07004146 zone: string, Required. The name of the Google Compute Engine
4147[zone](https://cloud.google.com/compute/docs/zones#available) in which the
4148cluster resides. (required)
4149 clusterId: string, Required. The name of the cluster to update. (required)
4150 body: object, The request body.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04004151 The object takes the form of:
4152
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004153{ # SetMaintenancePolicyRequest sets the maintenance policy for a cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -07004154 &quot;clusterId&quot;: &quot;A String&quot;, # Required. The name of the cluster to update.
4155 &quot;maintenancePolicy&quot;: { # MaintenancePolicy defines the maintenance policy to be used for the cluster. # Required. The maintenance policy to be set for the cluster. An empty field
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004156 # clears the existing maintenance policy.
Bu Sun Kim65020912020-05-20 12:08:20 -07004157 &quot;window&quot;: { # MaintenanceWindow defines the maintenance window to be used for the cluster. # Specifies the maintenance window in which maintenance may be performed.
4158 &quot;dailyMaintenanceWindow&quot;: { # Time window specified for daily maintenance operations. # DailyMaintenanceWindow specifies a daily maintenance operation window.
4159 &quot;duration&quot;: &quot;A String&quot;, # [Output only] Duration of the time window, automatically chosen to be
4160 # smallest possible in the given scenario.
4161 # Duration will be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)
4162 # format &quot;PTnHnMnS&quot;.
4163 &quot;startTime&quot;: &quot;A String&quot;, # Time within the maintenance window to start the maintenance operations.
4164 # Time format should be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)
4165 # format &quot;HH:MM&quot;, where HH : [00-23] and MM : [00-59] GMT.
4166 },
4167 &quot;recurringWindow&quot;: { # Represents an arbitrary window of time that recurs. # RecurringWindow specifies some number of recurring time periods for
Dan O'Mearadd494642020-05-01 07:42:23 -07004168 # maintenance to occur. The time windows may be overlapping. If no
4169 # maintenance windows are set, maintenance can occur at any time.
Bu Sun Kim65020912020-05-20 12:08:20 -07004170 &quot;recurrence&quot;: &quot;A String&quot;, # An RRULE (https://tools.ietf.org/html/rfc5545#section-3.8.5.3) for how
Dan O'Mearadd494642020-05-01 07:42:23 -07004171 # this window reccurs. They go on for the span of time between the start and
4172 # end time.
4173 #
Bu Sun Kim65020912020-05-20 12:08:20 -07004174 # For example, to have something repeat every weekday, you&#x27;d use:
Dan O'Mearadd494642020-05-01 07:42:23 -07004175 # &lt;code&gt;FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR&lt;/code&gt;
4176 # To repeat some window daily (equivalent to the DailyMaintenanceWindow):
4177 # &lt;code&gt;FREQ=DAILY&lt;/code&gt;
4178 # For the first weekend of every month:
4179 # &lt;code&gt;FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU&lt;/code&gt;
4180 # This specifies how frequently the window starts. Eg, if you wanted to have
Bu Sun Kim65020912020-05-20 12:08:20 -07004181 # a 9-5 UTC-4 window every weekday, you&#x27;d use something like:
Dan O'Mearadd494642020-05-01 07:42:23 -07004182 # &lt;code&gt;
4183 # start time = 2019-01-01T09:00:00-0400
4184 # end time = 2019-01-01T17:00:00-0400
4185 # recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
4186 # &lt;/code&gt;
4187 # Windows can span multiple days. Eg, to make the window encompass every
4188 # weekend from midnight Saturday till the last minute of Sunday UTC:
4189 # &lt;code&gt;
4190 # start time = 2019-01-05T00:00:00Z
4191 # end time = 2019-01-07T23:59:00Z
4192 # recurrence = FREQ=WEEKLY;BYDAY=SA
4193 # &lt;/code&gt;
Bu Sun Kim65020912020-05-20 12:08:20 -07004194 # Note the start and end time&#x27;s specific dates are largely arbitrary except
Dan O'Mearadd494642020-05-01 07:42:23 -07004195 # to specify duration of the window and when it first starts.
4196 # The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.
Bu Sun Kim65020912020-05-20 12:08:20 -07004197 &quot;window&quot;: { # Represents an arbitrary window of time. # The window of the first recurrence.
4198 &quot;endTime&quot;: &quot;A String&quot;, # The time that the window ends. The end time should take place after the
Dan O'Mearadd494642020-05-01 07:42:23 -07004199 # start time.
Bu Sun Kim65020912020-05-20 12:08:20 -07004200 &quot;startTime&quot;: &quot;A String&quot;, # The time that the window first starts.
Dan O'Mearadd494642020-05-01 07:42:23 -07004201 },
4202 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004203 &quot;maintenanceExclusions&quot;: { # Exceptions to maintenance window. Non-emergency maintenance should not
Dan O'Mearadd494642020-05-01 07:42:23 -07004204 # occur in these windows.
Bu Sun Kim65020912020-05-20 12:08:20 -07004205 &quot;a_key&quot;: { # Represents an arbitrary window of time.
4206 &quot;endTime&quot;: &quot;A String&quot;, # The time that the window ends. The end time should take place after the
Dan O'Mearadd494642020-05-01 07:42:23 -07004207 # start time.
Bu Sun Kim65020912020-05-20 12:08:20 -07004208 &quot;startTime&quot;: &quot;A String&quot;, # The time that the window first starts.
Dan O'Mearadd494642020-05-01 07:42:23 -07004209 },
4210 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004211 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004212 &quot;resourceVersion&quot;: &quot;A String&quot;, # A hash identifying the version of this policy, so that updates to fields of
4213 # the policy won&#x27;t accidentally undo intermediate changes (and so that users
4214 # of the API unaware of some fields won&#x27;t accidentally remove other fields).
Dan O'Mearadd494642020-05-01 07:42:23 -07004215 # Make a &lt;code&gt;get()&lt;/code&gt; request to the cluster to get the current
4216 # resource version and include it with requests to set the policy.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04004217 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004218 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster id) of the cluster to set maintenance
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004219 # policy.
Bu Sun Kim65020912020-05-20 12:08:20 -07004220 # Specified in the format `projects/*/locations/*/clusters/*`.
4221 &quot;projectId&quot;: &quot;A String&quot;, # Required. The Google Developers Console [project ID or project
4222 # number](https://support.google.com/cloud/answer/6158840).
4223 &quot;zone&quot;: &quot;A String&quot;, # Required. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07004224 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4225 # cluster resides.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04004226 }
4227
4228 x__xgafv: string, V1 error format.
4229 Allowed values
4230 1 - v1 error format
4231 2 - v2 error format
4232
4233Returns:
4234 An object of the form:
4235
4236 { # This operation resource represents operations that may have happened or are
4237 # happening on the cluster. All fields are output only.
Bu Sun Kim65020912020-05-20 12:08:20 -07004238 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
4239 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004240 { # StatusCondition describes why a cluster or a node pool has a certain status
4241 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07004242 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
4243 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004244 },
4245 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07004246 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
Dan O'Mearadd494642020-05-01 07:42:23 -07004247 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07004248 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07004249 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4250 # or
4251 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4252 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07004253 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
4254 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
4255 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
4256 &quot;stages&quot;: [ # Substages of an operation or a stage.
4257 # Object with schema name: OperationProgress
4258 ],
4259 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
4260 # Unset for single-stage operations.
4261 &quot;metrics&quot;: [ # Progress metric bundle, for example:
4262 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
4263 # {name: &quot;nodes total&quot;, int_value: 32}]
4264 # or
4265 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
4266 # {name: &quot;progress scale&quot;, double_value: 1.0}]
4267 { # Progress metric is (string, int|float|string) pair.
4268 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
4269 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
4270 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
4271 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
4272 },
4273 ],
4274 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
4275 # Unset for single-stage operations.
4276 },
4277 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
4278 { # StatusCondition describes why a cluster or a node pool has a certain status
4279 # (e.g., ERROR or DEGRADED).
4280 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
4281 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
4282 },
4283 ],
4284 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
4285 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4286 # operation is taking place. This field is deprecated, use location instead.
4287 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
4288 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
4289 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
4290 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
4291 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
4292 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004293 }</pre>
4294</div>
4295
4296<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07004297 <code class="details" id="setMasterAuth">setMasterAuth(projectId, zone, clusterId, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004298 <pre>Sets master auth materials. Currently supports changing the admin password
4299or a specific cluster, either via password generation or explicitly setting
4300the password.
4301
4302Args:
4303 projectId: string, Deprecated. The Google Developers Console [project ID or project
4304number](https://support.google.com/cloud/answer/6158840).
4305This field has been deprecated and replaced by the name field. (required)
4306 zone: string, Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07004307[zone](https://cloud.google.com/compute/docs/zones#available) in which the
4308cluster resides. This field has been deprecated and replaced by the name
4309field. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004310 clusterId: string, Deprecated. The name of the cluster to upgrade.
4311This field has been deprecated and replaced by the name field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07004312 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004313 The object takes the form of:
4314
4315{ # SetMasterAuthRequest updates the admin password of a cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -07004316 &quot;zone&quot;: &quot;A String&quot;, # Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07004317 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4318 # cluster resides. This field has been deprecated and replaced by the name
4319 # field.
Bu Sun Kim65020912020-05-20 12:08:20 -07004320 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster) of the cluster to set auth.
4321 # Specified in the format `projects/*/locations/*/clusters/*`.
4322 &quot;action&quot;: &quot;A String&quot;, # Required. The exact form of action to be taken on the master auth.
4323 &quot;projectId&quot;: &quot;A String&quot;, # Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004324 # number](https://support.google.com/cloud/answer/6158840).
4325 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07004326 &quot;clusterId&quot;: &quot;A String&quot;, # Deprecated. The name of the cluster to upgrade.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004327 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07004328 &quot;update&quot;: { # The authentication information for accessing the master endpoint. # Required. A description of the update.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004329 # Authentication can be done using HTTP basic auth or using client
4330 # certificates.
Bu Sun Kim65020912020-05-20 12:08:20 -07004331 &quot;clusterCaCertificate&quot;: &quot;A String&quot;, # [Output only] Base64-encoded public certificate that is the root of
4332 # trust for the cluster.
4333 &quot;clientCertificate&quot;: &quot;A String&quot;, # [Output only] Base64-encoded public certificate used by clients to
4334 # authenticate to the cluster endpoint.
4335 &quot;username&quot;: &quot;A String&quot;, # The username to use for HTTP basic authentication to the master endpoint.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004336 # For clusters v1.6.0 and later, basic authentication can be disabled by
4337 # leaving username unspecified (or setting it to the empty string).
Bu Sun Kim65020912020-05-20 12:08:20 -07004338 &quot;password&quot;: &quot;A String&quot;, # The password to use for HTTP basic authentication to the master endpoint.
Dan O'Mearadd494642020-05-01 07:42:23 -07004339 # Because the master endpoint is open to the Internet, you should create a
4340 # strong password. If a password is provided for cluster creation, username
4341 # must be non-empty.
Bu Sun Kim65020912020-05-20 12:08:20 -07004342 &quot;clientCertificateConfig&quot;: { # Configuration for client certificates on the cluster. # Configuration for client certificate authentication on the cluster. For
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004343 # clusters before v1.12, if no configuration is specified, a client
4344 # certificate is issued.
Bu Sun Kim65020912020-05-20 12:08:20 -07004345 &quot;issueClientCertificate&quot;: True or False, # Issue a client certificate.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004346 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004347 &quot;clientKey&quot;: &quot;A String&quot;, # [Output only] Base64-encoded private key used by clients to authenticate
4348 # to the cluster endpoint.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004349 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004350 }
4351
4352 x__xgafv: string, V1 error format.
4353 Allowed values
4354 1 - v1 error format
4355 2 - v2 error format
4356
4357Returns:
4358 An object of the form:
4359
4360 { # This operation resource represents operations that may have happened or are
4361 # happening on the cluster. All fields are output only.
Bu Sun Kim65020912020-05-20 12:08:20 -07004362 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
4363 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004364 { # StatusCondition describes why a cluster or a node pool has a certain status
4365 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07004366 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
4367 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004368 },
4369 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07004370 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
Dan O'Mearadd494642020-05-01 07:42:23 -07004371 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07004372 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07004373 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4374 # or
4375 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4376 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07004377 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
4378 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
4379 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
4380 &quot;stages&quot;: [ # Substages of an operation or a stage.
4381 # Object with schema name: OperationProgress
4382 ],
4383 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
4384 # Unset for single-stage operations.
4385 &quot;metrics&quot;: [ # Progress metric bundle, for example:
4386 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
4387 # {name: &quot;nodes total&quot;, int_value: 32}]
4388 # or
4389 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
4390 # {name: &quot;progress scale&quot;, double_value: 1.0}]
4391 { # Progress metric is (string, int|float|string) pair.
4392 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
4393 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
4394 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
4395 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
4396 },
4397 ],
4398 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
4399 # Unset for single-stage operations.
4400 },
4401 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
4402 { # StatusCondition describes why a cluster or a node pool has a certain status
4403 # (e.g., ERROR or DEGRADED).
4404 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
4405 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
4406 },
4407 ],
4408 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
4409 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4410 # operation is taking place. This field is deprecated, use location instead.
4411 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
4412 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
4413 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
4414 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
4415 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
4416 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004417 }</pre>
4418</div>
4419
4420<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07004421 <code class="details" id="setNetworkPolicy">setNetworkPolicy(projectId, zone, clusterId, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004422 <pre>Enables or disables Network Policy for a cluster.
4423
4424Args:
4425 projectId: string, Deprecated. The Google Developers Console [project ID or project
4426number](https://developers.google.com/console/help/new/#projectnumber).
4427This field has been deprecated and replaced by the name field. (required)
4428 zone: string, Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07004429[zone](https://cloud.google.com/compute/docs/zones#available) in which the
4430cluster resides. This field has been deprecated and replaced by the name
4431field. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004432 clusterId: string, Deprecated. The name of the cluster.
4433This field has been deprecated and replaced by the name field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07004434 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004435 The object takes the form of:
4436
4437{ # SetNetworkPolicyRequest enables/disables network policy for a cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -07004438 &quot;projectId&quot;: &quot;A String&quot;, # Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004439 # number](https://developers.google.com/console/help/new/#projectnumber).
4440 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07004441 &quot;zone&quot;: &quot;A String&quot;, # Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07004442 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4443 # cluster resides. This field has been deprecated and replaced by the name
4444 # field.
Bu Sun Kim65020912020-05-20 12:08:20 -07004445 &quot;clusterId&quot;: &quot;A String&quot;, # Deprecated. The name of the cluster.
4446 # This field has been deprecated and replaced by the name field.
4447 &quot;networkPolicy&quot;: { # Configuration options for the NetworkPolicy feature. # Required. Configuration options for the NetworkPolicy feature.
4448 # https://kubernetes.io/docs/concepts/services-networking/networkpolicies/
4449 &quot;provider&quot;: &quot;A String&quot;, # The selected network policy provider.
4450 &quot;enabled&quot;: True or False, # Whether network policy is enabled on the cluster.
4451 },
4452 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster id) of the cluster to set networking
4453 # policy. Specified in the format `projects/*/locations/*/clusters/*`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004454 }
4455
4456 x__xgafv: string, V1 error format.
4457 Allowed values
4458 1 - v1 error format
4459 2 - v2 error format
4460
4461Returns:
4462 An object of the form:
4463
4464 { # This operation resource represents operations that may have happened or are
4465 # happening on the cluster. All fields are output only.
Bu Sun Kim65020912020-05-20 12:08:20 -07004466 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
4467 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004468 { # StatusCondition describes why a cluster or a node pool has a certain status
4469 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07004470 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
4471 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004472 },
4473 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07004474 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
Dan O'Mearadd494642020-05-01 07:42:23 -07004475 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07004476 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07004477 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4478 # or
4479 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4480 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07004481 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
4482 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
4483 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
4484 &quot;stages&quot;: [ # Substages of an operation or a stage.
4485 # Object with schema name: OperationProgress
4486 ],
4487 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
4488 # Unset for single-stage operations.
4489 &quot;metrics&quot;: [ # Progress metric bundle, for example:
4490 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
4491 # {name: &quot;nodes total&quot;, int_value: 32}]
4492 # or
4493 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
4494 # {name: &quot;progress scale&quot;, double_value: 1.0}]
4495 { # Progress metric is (string, int|float|string) pair.
4496 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
4497 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
4498 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
4499 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
4500 },
4501 ],
4502 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
4503 # Unset for single-stage operations.
4504 },
4505 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
4506 { # StatusCondition describes why a cluster or a node pool has a certain status
4507 # (e.g., ERROR or DEGRADED).
4508 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
4509 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
4510 },
4511 ],
4512 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
4513 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4514 # operation is taking place. This field is deprecated, use location instead.
4515 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
4516 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
4517 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
4518 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
4519 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
4520 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04004521 }</pre>
4522</div>
4523
4524<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07004525 <code class="details" id="startIpRotation">startIpRotation(projectId, zone, clusterId, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004526 <pre>Starts master IP rotation.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04004527
4528Args:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004529 projectId: string, Deprecated. The Google Developers Console [project ID or project
4530number](https://developers.google.com/console/help/new/#projectnumber).
4531This field has been deprecated and replaced by the name field. (required)
4532 zone: string, Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07004533[zone](https://cloud.google.com/compute/docs/zones#available) in which the
4534cluster resides. This field has been deprecated and replaced by the name
4535field. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004536 clusterId: string, Deprecated. The name of the cluster.
4537This field has been deprecated and replaced by the name field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07004538 body: object, The request body.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04004539 The object takes the form of:
4540
4541{ # StartIPRotationRequest creates a new IP for the cluster and then performs
4542 # a node upgrade on each node pool to point to the new IP.
Bu Sun Kim65020912020-05-20 12:08:20 -07004543 &quot;projectId&quot;: &quot;A String&quot;, # Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004544 # number](https://developers.google.com/console/help/new/#projectnumber).
4545 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07004546 &quot;zone&quot;: &quot;A String&quot;, # Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07004547 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4548 # cluster resides. This field has been deprecated and replaced by the name
4549 # field.
Bu Sun Kim65020912020-05-20 12:08:20 -07004550 &quot;clusterId&quot;: &quot;A String&quot;, # Deprecated. The name of the cluster.
4551 # This field has been deprecated and replaced by the name field.
4552 &quot;rotateCredentials&quot;: True or False, # Whether to rotate credentials during IP rotation.
4553 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster id) of the cluster to start IP
4554 # rotation. Specified in the format `projects/*/locations/*/clusters/*`.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04004555 }
4556
4557 x__xgafv: string, V1 error format.
4558 Allowed values
4559 1 - v1 error format
4560 2 - v2 error format
4561
4562Returns:
4563 An object of the form:
4564
4565 { # This operation resource represents operations that may have happened or are
4566 # happening on the cluster. All fields are output only.
Bu Sun Kim65020912020-05-20 12:08:20 -07004567 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
4568 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004569 { # StatusCondition describes why a cluster or a node pool has a certain status
4570 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07004571 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
4572 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004573 },
4574 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07004575 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
Dan O'Mearadd494642020-05-01 07:42:23 -07004576 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07004577 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07004578 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4579 # or
4580 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4581 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07004582 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
4583 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
4584 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
4585 &quot;stages&quot;: [ # Substages of an operation or a stage.
4586 # Object with schema name: OperationProgress
4587 ],
4588 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
4589 # Unset for single-stage operations.
4590 &quot;metrics&quot;: [ # Progress metric bundle, for example:
4591 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
4592 # {name: &quot;nodes total&quot;, int_value: 32}]
4593 # or
4594 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
4595 # {name: &quot;progress scale&quot;, double_value: 1.0}]
4596 { # Progress metric is (string, int|float|string) pair.
4597 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
4598 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
4599 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
4600 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
4601 },
4602 ],
4603 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
4604 # Unset for single-stage operations.
4605 },
4606 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
4607 { # StatusCondition describes why a cluster or a node pool has a certain status
4608 # (e.g., ERROR or DEGRADED).
4609 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
4610 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
4611 },
4612 ],
4613 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
4614 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4615 # operation is taking place. This field is deprecated, use location instead.
4616 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
4617 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
4618 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
4619 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
4620 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
4621 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Takashi Matsuo06694102015-09-11 13:55:40 -07004622 }</pre>
4623</div>
4624
4625<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07004626 <code class="details" id="update">update(projectId, zone, clusterId, body=None, x__xgafv=None)</code>
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -07004627 <pre>Updates the settings of a specific cluster.
Takashi Matsuo06694102015-09-11 13:55:40 -07004628
4629Args:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004630 projectId: string, Deprecated. The Google Developers Console [project ID or project
4631number](https://support.google.com/cloud/answer/6158840).
4632This field has been deprecated and replaced by the name field. (required)
4633 zone: string, Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07004634[zone](https://cloud.google.com/compute/docs/zones#available) in which the
4635cluster resides. This field has been deprecated and replaced by the name
4636field. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004637 clusterId: string, Deprecated. The name of the cluster to upgrade.
4638This field has been deprecated and replaced by the name field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07004639 body: object, The request body.
Takashi Matsuo06694102015-09-11 13:55:40 -07004640 The object takes the form of:
4641
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -07004642{ # UpdateClusterRequest updates the settings of a cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -07004643 &quot;update&quot;: { # ClusterUpdate describes an update to the cluster. Exactly one update can # Required. A description of the update.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04004644 # be applied to a cluster with each request, so at most one field can be
4645 # provided.
Bu Sun Kim65020912020-05-20 12:08:20 -07004646 &quot;desiredAddonsConfig&quot;: { # Configuration for the addons that can be automatically spun up in the # Configurations for the various addons available to run in the cluster.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04004647 # cluster, enabling additional functionality.
Bu Sun Kim65020912020-05-20 12:08:20 -07004648 &quot;networkPolicyConfig&quot;: { # Configuration for NetworkPolicy. This only tracks whether the addon # Configuration for NetworkPolicy. This only tracks whether the addon
4649 # is enabled or not on the Master, it does not track whether network policy
4650 # is enabled for the nodes.
4651 # is enabled or not on the Master, it does not track whether network policy
4652 # is enabled for the nodes.
4653 &quot;disabled&quot;: True or False, # Whether NetworkPolicy is enabled for this cluster.
4654 },
4655 &quot;cloudRunConfig&quot;: { # Configuration options for the Cloud Run feature. # Configuration for the Cloud Run addon, which allows the user to use a
4656 # managed Knative service.
4657 &quot;disabled&quot;: True or False, # Whether Cloud Run addon is enabled for this cluster.
4658 },
4659 &quot;horizontalPodAutoscaling&quot;: { # Configuration options for the horizontal pod autoscaling feature, which # Configuration for the horizontal pod autoscaling feature, which
4660 # increases or decreases the number of replica pods a replication controller
4661 # has based on the resource usage of the existing pods.
4662 # increases or decreases the number of replica pods a replication controller
4663 # has based on the resource usage of the existing pods.
4664 &quot;disabled&quot;: True or False, # Whether the Horizontal Pod Autoscaling feature is enabled in the cluster.
4665 # When enabled, it ensures that metrics are collected into Stackdriver
4666 # Monitoring.
4667 },
4668 &quot;httpLoadBalancing&quot;: { # Configuration options for the HTTP (L7) load balancing controller addon, # Configuration for the HTTP (L7) load balancing controller addon, which
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04004669 # makes it easy to set up HTTP load balancers for services in a cluster.
4670 # which makes it easy to set up HTTP load balancers for services in a cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -07004671 &quot;disabled&quot;: True or False, # Whether the HTTP Load Balancing controller is enabled in the cluster.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04004672 # When enabled, it runs a small pod in the cluster that manages the load
4673 # balancers.
4674 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004675 &quot;kubernetesDashboard&quot;: { # Configuration for the Kubernetes Dashboard. # Configuration for the Kubernetes Dashboard.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004676 # This addon is deprecated, and will be disabled in 1.15. It is recommended
4677 # to use the Cloud Console to manage and monitor your Kubernetes clusters,
4678 # workloads and applications. For more information, see:
4679 # https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
Bu Sun Kim65020912020-05-20 12:08:20 -07004680 &quot;disabled&quot;: True or False, # Whether the Kubernetes Dashboard is enabled for this cluster.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04004681 },
4682 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004683 &quot;desiredNodeVersion&quot;: &quot;A String&quot;, # The Kubernetes version to change the nodes to (typically an
4684 # upgrade).
4685 #
4686 # Users may specify either explicit versions offered by
4687 # Kubernetes Engine or version aliases, which have the following behavior:
4688 #
4689 # - &quot;latest&quot;: picks the highest valid Kubernetes version
4690 # - &quot;1.X&quot;: picks the highest valid patch+gke.N patch in the 1.X version
4691 # - &quot;1.X.Y&quot;: picks the highest valid gke.N patch in the 1.X.Y version
4692 # - &quot;1.X.Y-gke.N&quot;: picks an explicit Kubernetes version
4693 # - &quot;-&quot;: picks the Kubernetes master version
4694 &quot;desiredIntraNodeVisibilityConfig&quot;: { # IntraNodeVisibilityConfig contains the desired config of the intra-node # The desired config of Intra-node visibility.
4695 # visibility on this cluster.
4696 &quot;enabled&quot;: True or False, # Enables intra node visibility for this cluster.
4697 },
4698 &quot;desiredClusterAutoscaling&quot;: { # ClusterAutoscaling contains global, per-cluster information # Cluster-level autoscaling configuration.
Dan O'Mearadd494642020-05-01 07:42:23 -07004699 # required by Cluster Autoscaler to automatically adjust
4700 # the size of the cluster and create/delete
4701 # node pools based on the current needs.
Bu Sun Kim65020912020-05-20 12:08:20 -07004702 &quot;autoprovisioningLocations&quot;: [ # The list of Google Compute Engine
4703 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
4704 # NodePool&#x27;s nodes can be created by NAP.
4705 &quot;A String&quot;,
4706 ],
4707 &quot;resourceLimits&quot;: [ # Contains global constraints regarding minimum and maximum
4708 # amount of resources in the cluster.
4709 { # Contains information about amount of some resource in the cluster.
4710 # For memory, value should be in GB.
4711 &quot;maximum&quot;: &quot;A String&quot;, # Maximum amount of the resource in the cluster.
4712 &quot;resourceType&quot;: &quot;A String&quot;, # Resource name &quot;cpu&quot;, &quot;memory&quot; or gpu-specific string.
4713 &quot;minimum&quot;: &quot;A String&quot;, # Minimum amount of the resource in the cluster.
4714 },
4715 ],
4716 &quot;enableNodeAutoprovisioning&quot;: True or False, # Enables automatic node pool creation and deletion.
4717 &quot;autoprovisioningNodePoolDefaults&quot;: { # AutoprovisioningNodePoolDefaults contains defaults for a node pool created # AutoprovisioningNodePoolDefaults contains defaults for a node pool
Dan O'Mearadd494642020-05-01 07:42:23 -07004718 # created by NAP.
4719 # by NAP.
Bu Sun Kim65020912020-05-20 12:08:20 -07004720 &quot;oauthScopes&quot;: [ # Scopes that are used by NAP when creating node pools. If oauth_scopes are
4721 # specified, service_account should be empty.
4722 &quot;A String&quot;,
4723 ],
4724 &quot;management&quot;: { # NodeManagement defines the set of node management services turned on for the # Specifies the node management options for NAP created node-pools.
Dan O'Mearadd494642020-05-01 07:42:23 -07004725 # node pool.
Bu Sun Kim65020912020-05-20 12:08:20 -07004726 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool.
Dan O'Mearadd494642020-05-01 07:42:23 -07004727 # the Auto Upgrades will proceed.
Bu Sun Kim65020912020-05-20 12:08:20 -07004728 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
Dan O'Mearadd494642020-05-01 07:42:23 -07004729 # with the description of the upgrade.
Bu Sun Kim65020912020-05-20 12:08:20 -07004730 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
Dan O'Mearadd494642020-05-01 07:42:23 -07004731 # with the approximate start time for the upgrades, in
4732 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
4733 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004734 &quot;autoUpgrade&quot;: True or False, # A flag that specifies whether node auto-upgrade is enabled for the node
Dan O'Mearadd494642020-05-01 07:42:23 -07004735 # pool. If enabled, node auto-upgrade helps keep the nodes in your node pool
4736 # up to date with the latest release version of Kubernetes.
Bu Sun Kim65020912020-05-20 12:08:20 -07004737 &quot;autoRepair&quot;: True or False, # A flag that specifies whether the node auto-repair is enabled for the node
4738 # pool. If enabled, the nodes in this node pool will be monitored and, if
4739 # they fail health checks too many times, an automatic repair action will be
4740 # triggered.
Dan O'Mearadd494642020-05-01 07:42:23 -07004741 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004742 &quot;upgradeSettings&quot;: { # These upgrade settings control the level of parallelism and the level of # Specifies the upgrade settings for NAP created node pools
Dan O'Mearadd494642020-05-01 07:42:23 -07004743 # disruption caused by an upgrade.
4744 #
4745 # maxUnavailable controls the number of nodes that can be simultaneously
4746 # unavailable.
4747 #
4748 # maxSurge controls the number of additional nodes that can be added to the
4749 # node pool temporarily for the time of the upgrade to increase the number of
4750 # available nodes.
4751 #
4752 # (maxUnavailable + maxSurge) determines the level of parallelism (how many
4753 # nodes are being upgraded at the same time).
4754 #
4755 # Note: upgrades inevitably introduce some disruption since workloads need to
4756 # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
4757 # this holds true. (Disruption stays within the limits of
4758 # PodDisruptionBudget, if it is configured.)
4759 #
4760 # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
4761 # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
4762 # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
4763 # down 3 old (not yet upgraded) nodes at the same time. This ensures that
4764 # there are always at least 4 nodes available.
Bu Sun Kim65020912020-05-20 12:08:20 -07004765 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during
Dan O'Mearadd494642020-05-01 07:42:23 -07004766 # the upgrade process. A node is considered available if its status is
4767 # Ready.
Bu Sun Kim65020912020-05-20 12:08:20 -07004768 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size
4769 # of the node pool during the upgrade process.
Dan O'Mearadd494642020-05-01 07:42:23 -07004770 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004771 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs. If
4772 # service_account is specified, scopes should be empty.
Dan O'Mearadd494642020-05-01 07:42:23 -07004773 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004774 },
4775 &quot;desiredDatabaseEncryption&quot;: { # Configuration of etcd encryption. # Configuration of etcd encryption.
4776 &quot;keyName&quot;: &quot;A String&quot;, # Name of CloudKMS key to use for the encryption of secrets in etcd.
4777 # Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key
4778 &quot;state&quot;: &quot;A String&quot;, # Denotes the state of etcd encryption.
4779 },
4780 &quot;desiredMasterAuthorizedNetworksConfig&quot;: { # Configuration options for the master authorized networks feature. Enabled # The desired configuration options for master authorized networks feature.
4781 # master authorized networks will disallow all external traffic to access
4782 # Kubernetes master through HTTPS except traffic from the given CIDR blocks,
4783 # Google Compute Engine Public IPs and Google Prod IPs.
4784 &quot;enabled&quot;: True or False, # Whether or not master authorized networks is enabled.
4785 &quot;cidrBlocks&quot;: [ # cidr_blocks define up to 50 external networks that could access
4786 # Kubernetes master through HTTPS.
4787 { # CidrBlock contains an optional name and one CIDR block.
4788 &quot;displayName&quot;: &quot;A String&quot;, # display_name is an optional field for users to identify CIDR blocks.
4789 &quot;cidrBlock&quot;: &quot;A String&quot;, # cidr_block must be specified in CIDR notation.
Dan O'Mearadd494642020-05-01 07:42:23 -07004790 },
4791 ],
Dan O'Mearadd494642020-05-01 07:42:23 -07004792 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004793 &quot;desiredResourceUsageExportConfig&quot;: { # Configuration for exporting cluster resource usages. # The desired configuration for exporting resource usage.
4794 &quot;enableNetworkEgressMetering&quot;: True or False, # Whether to enable network egress metering for this cluster. If enabled, a
4795 # daemonset will be created in the cluster to meter network egress traffic.
4796 &quot;consumptionMeteringConfig&quot;: { # Parameters for controlling consumption metering. # Configuration to enable resource consumption metering.
4797 &quot;enabled&quot;: True or False, # Whether to enable consumption metering for this cluster. If enabled, a
4798 # second BigQuery table will be created to hold resource consumption
4799 # records.
4800 },
4801 &quot;bigqueryDestination&quot;: { # Parameters for using BigQuery as the destination of resource usage export. # Configuration to use BigQuery as usage export destination.
4802 &quot;datasetId&quot;: &quot;A String&quot;, # The ID of a BigQuery Dataset.
4803 },
Dan O'Mearadd494642020-05-01 07:42:23 -07004804 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004805 &quot;desiredNodePoolAutoscaling&quot;: { # NodePoolAutoscaling contains information required by cluster autoscaler to # Autoscaler configuration for the node pool specified in
4806 # desired_node_pool_id. If there is only one pool in the
4807 # cluster and desired_node_pool_id is not provided then
4808 # the change applies to that single node pool.
4809 # adjust the size of the node pool to the current cluster usage.
4810 &quot;enabled&quot;: True or False, # Is autoscaling enabled for this node pool.
4811 &quot;maxNodeCount&quot;: 42, # Maximum number of nodes in the NodePool. Must be &gt;= min_node_count. There
4812 # has to enough quota to scale up the cluster.
4813 &quot;minNodeCount&quot;: 42, # Minimum number of nodes in the NodePool. Must be &gt;= 1 and &lt;=
4814 # max_node_count.
4815 &quot;autoprovisioned&quot;: True or False, # Can this node pool be deleted automatically.
4816 },
4817 &quot;desiredLocations&quot;: [ # The desired list of Google Compute Engine
4818 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
4819 # cluster&#x27;s nodes should be located. Changing the locations a cluster is in
4820 # will result in nodes being either created or removed from the cluster,
4821 # depending on whether locations are being added or removed.
4822 #
4823 # This list must always include the cluster&#x27;s primary zone.
4824 &quot;A String&quot;,
4825 ],
4826 &quot;desiredMonitoringService&quot;: &quot;A String&quot;, # The monitoring service the cluster should use to write metrics.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04004827 # Currently available options:
4828 #
Bu Sun Kim65020912020-05-20 12:08:20 -07004829 # * &quot;monitoring.googleapis.com/kubernetes&quot; - The Cloud Monitoring
Dan O'Mearadd494642020-05-01 07:42:23 -07004830 # service with a Kubernetes-native resource model
4831 # * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
4832 # longer available as of GKE 1.15).
4833 # * `none` - No metrics will be exported from the cluster.
4834 #
4835 # If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
4836 # used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
Bu Sun Kim65020912020-05-20 12:08:20 -07004837 &quot;desiredImageType&quot;: &quot;A String&quot;, # The desired image type for the node pool.
4838 # NOTE: Set the &quot;desired_node_pool&quot; field as well.
4839 &quot;desiredWorkloadIdentityConfig&quot;: { # Configuration for the use of Kubernetes Service Accounts in GCP IAM # Configuration for Workload Identity.
Dan O'Mearadd494642020-05-01 07:42:23 -07004840 # policies.
Bu Sun Kim65020912020-05-20 12:08:20 -07004841 &quot;workloadPool&quot;: &quot;A String&quot;, # The workload pool to attach all Kubernetes service accounts to.
Dan O'Mearadd494642020-05-01 07:42:23 -07004842 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004843 &quot;desiredNodePoolId&quot;: &quot;A String&quot;, # The node pool to be upgraded. This field is mandatory if
4844 # &quot;desired_node_version&quot;, &quot;desired_image_family&quot; or
4845 # &quot;desired_node_pool_autoscaling&quot; is specified and there is more than one
4846 # node pool on the cluster.
4847 &quot;desiredShieldedNodes&quot;: { # Configuration of Shielded Nodes feature. # Configuration for Shielded Nodes.
4848 &quot;enabled&quot;: True or False, # Whether Shielded Nodes features are enabled on all nodes in this cluster.
Dan O'Mearadd494642020-05-01 07:42:23 -07004849 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004850 &quot;desiredMasterVersion&quot;: &quot;A String&quot;, # The Kubernetes version to change the master to.
4851 #
4852 # Users may specify either explicit versions offered by
4853 # Kubernetes Engine or version aliases, which have the following behavior:
4854 #
4855 # - &quot;latest&quot;: picks the highest valid Kubernetes version
4856 # - &quot;1.X&quot;: picks the highest valid patch+gke.N patch in the 1.X version
4857 # - &quot;1.X.Y&quot;: picks the highest valid gke.N patch in the 1.X.Y version
4858 # - &quot;1.X.Y-gke.N&quot;: picks an explicit Kubernetes version
4859 # - &quot;-&quot;: picks the default Kubernetes version
4860 &quot;desiredLoggingService&quot;: &quot;A String&quot;, # The logging service the cluster should use to write logs.
4861 # Currently available options:
4862 #
4863 # * `logging.googleapis.com/kubernetes` - The Cloud Logging
4864 # service with a Kubernetes-native resource model
4865 # * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
4866 # available as of GKE 1.15).
4867 # * `none` - no logs will be exported from the cluster.
4868 #
4869 # If left as an empty string,`logging.googleapis.com/kubernetes` will be
4870 # used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
4871 &quot;desiredVerticalPodAutoscaling&quot;: { # VerticalPodAutoscaling contains global, per-cluster information # Cluster-level Vertical Pod Autoscaling configuration.
4872 # required by Vertical Pod Autoscaler to automatically adjust
4873 # the resources of pods controlled by it.
4874 &quot;enabled&quot;: True or False, # Enables vertical pod autoscaling.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04004875 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004876 &quot;desiredBinaryAuthorization&quot;: { # Configuration for Binary Authorization. # The desired configuration options for the Binary Authorization feature.
4877 &quot;enabled&quot;: True or False, # Enable Binary Authorization for this cluster. If enabled, all container
4878 # images will be validated by Binary Authorization.
Dan O'Mearadd494642020-05-01 07:42:23 -07004879 },
Takashi Matsuo06694102015-09-11 13:55:40 -07004880 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004881 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster) of the cluster to update.
4882 # Specified in the format `projects/*/locations/*/clusters/*`.
4883 &quot;projectId&quot;: &quot;A String&quot;, # Deprecated. The Google Developers Console [project ID or project
4884 # number](https://support.google.com/cloud/answer/6158840).
4885 # This field has been deprecated and replaced by the name field.
4886 &quot;zone&quot;: &quot;A String&quot;, # Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07004887 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4888 # cluster resides. This field has been deprecated and replaced by the name
4889 # field.
Bu Sun Kim65020912020-05-20 12:08:20 -07004890 &quot;clusterId&quot;: &quot;A String&quot;, # Deprecated. The name of the cluster to upgrade.
4891 # This field has been deprecated and replaced by the name field.
Takashi Matsuo06694102015-09-11 13:55:40 -07004892 }
4893
4894 x__xgafv: string, V1 error format.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04004895 Allowed values
4896 1 - v1 error format
4897 2 - v2 error format
Takashi Matsuo06694102015-09-11 13:55:40 -07004898
4899Returns:
4900 An object of the form:
4901
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04004902 { # This operation resource represents operations that may have happened or are
4903 # happening on the cluster. All fields are output only.
Bu Sun Kim65020912020-05-20 12:08:20 -07004904 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
4905 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004906 { # StatusCondition describes why a cluster or a node pool has a certain status
4907 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07004908 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
4909 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004910 },
4911 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07004912 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
Dan O'Mearadd494642020-05-01 07:42:23 -07004913 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07004914 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07004915 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4916 # or
4917 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4918 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07004919 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
4920 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
4921 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
4922 &quot;stages&quot;: [ # Substages of an operation or a stage.
4923 # Object with schema name: OperationProgress
4924 ],
4925 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
4926 # Unset for single-stage operations.
4927 &quot;metrics&quot;: [ # Progress metric bundle, for example:
4928 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
4929 # {name: &quot;nodes total&quot;, int_value: 32}]
4930 # or
4931 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
4932 # {name: &quot;progress scale&quot;, double_value: 1.0}]
4933 { # Progress metric is (string, int|float|string) pair.
4934 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
4935 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
4936 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
4937 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
4938 },
4939 ],
4940 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
4941 # Unset for single-stage operations.
4942 },
4943 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
4944 { # StatusCondition describes why a cluster or a node pool has a certain status
4945 # (e.g., ERROR or DEGRADED).
4946 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
4947 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
4948 },
4949 ],
4950 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
4951 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4952 # operation is taking place. This field is deprecated, use location instead.
4953 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
4954 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
4955 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
4956 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
4957 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
4958 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Takashi Matsuo06694102015-09-11 13:55:40 -07004959 }</pre>
4960</div>
4961
4962</body></html>