blob: 375dec6bb9c1e0b4dc03c13c245d1468f5aca36b [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 Kim4ed7d3f2020-05-27 12:20:54 -0700213 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
214 { # StatusCondition describes why a cluster or a node pool has a certain status
215 # (e.g., ERROR or DEGRADED).
216 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
217 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
218 },
219 ],
220 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
221 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
222 # Unset for single-stage operations.
223 &quot;stages&quot;: [ # Substages of an operation or a stage.
224 # Object with schema name: OperationProgress
225 ],
226 &quot;metrics&quot;: [ # Progress metric bundle, for example:
227 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
228 # {name: &quot;nodes total&quot;, int_value: 32}]
229 # or
230 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
231 # {name: &quot;progress scale&quot;, double_value: 1.0}]
232 { # Progress metric is (string, int|float|string) pair.
233 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
234 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
235 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
236 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
237 },
238 ],
239 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
240 # Unset for single-stage operations.
241 },
242 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
243 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
244 # operation is taking place. This field is deprecated, use location instead.
245 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
246 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
247 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
248 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
249 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
250 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Bu Sun Kim65020912020-05-20 12:08:20 -0700251 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
252 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700253 { # StatusCondition describes why a cluster or a node pool has a certain status
254 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -0700255 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700256 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700257 },
258 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700259 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
Dan O'Mearadd494642020-05-01 07:42:23 -0700260 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -0700261 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -0700262 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
263 # or
264 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
265 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -0700266 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
267 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
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 Kim4ed7d3f2020-05-27 12:20:54 -0700289 &quot;clusterId&quot;: &quot;A String&quot;, # Deprecated. The name of the cluster.
290 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -0700291 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster id) of the cluster to complete IP
292 # rotation. Specified in the format `projects/*/locations/*/clusters/*`.
293 &quot;projectId&quot;: &quot;A String&quot;, # Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700294 # number](https://developers.google.com/console/help/new/#projectnumber).
295 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -0700296 &quot;zone&quot;: &quot;A String&quot;, # Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -0700297 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
298 # cluster resides. This field has been deprecated and replaced by the name
299 # 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 Kim4ed7d3f2020-05-27 12:20:54 -0700312 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
313 { # StatusCondition describes why a cluster or a node pool has a certain status
314 # (e.g., ERROR or DEGRADED).
315 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
316 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
317 },
318 ],
319 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
320 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
321 # Unset for single-stage operations.
322 &quot;stages&quot;: [ # Substages of an operation or a stage.
323 # Object with schema name: OperationProgress
324 ],
325 &quot;metrics&quot;: [ # Progress metric bundle, for example:
326 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
327 # {name: &quot;nodes total&quot;, int_value: 32}]
328 # or
329 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
330 # {name: &quot;progress scale&quot;, double_value: 1.0}]
331 { # Progress metric is (string, int|float|string) pair.
332 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
333 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
334 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
335 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
336 },
337 ],
338 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
339 # Unset for single-stage operations.
340 },
341 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
342 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
343 # operation is taking place. This field is deprecated, use location instead.
344 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
345 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
346 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
347 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
348 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
349 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Bu Sun Kim65020912020-05-20 12:08:20 -0700350 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
351 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700352 { # StatusCondition describes why a cluster or a node pool has a certain status
353 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -0700354 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700355 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700356 },
357 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700358 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
Dan O'Mearadd494642020-05-01 07:42:23 -0700359 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -0700360 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -0700361 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
362 # or
363 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
364 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -0700365 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
366 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
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 Kim4ed7d3f2020-05-27 12:20:54 -0700399 &quot;parent&quot;: &quot;A String&quot;, # The parent (project and location) where the cluster will be created.
400 # Specified in the format `projects/*/locations/*`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700401 &quot;cluster&quot;: { # A Google Kubernetes Engine cluster. # Required. A [cluster
Dan O'Mearadd494642020-05-01 07:42:23 -0700402 # resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.zones.clusters)
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700403 &quot;createTime&quot;: &quot;A String&quot;, # [Output only] The time the cluster was created, in
404 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
405 &quot;clusterIpv4Cidr&quot;: &quot;A String&quot;, # The IP address range of the container pods in this cluster, in
406 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
407 # notation (e.g. `10.96.0.0/14`). Leave blank to have
408 # one automatically chosen or specify a `/14` block in `10.0.0.0/8`.
409 &quot;autoscaling&quot;: { # ClusterAutoscaling contains global, per-cluster information # Cluster-level autoscaling configuration.
410 # required by Cluster Autoscaler to automatically adjust
411 # the size of the cluster and create/delete
412 # node pools based on the current needs.
413 &quot;autoprovisioningLocations&quot;: [ # The list of Google Compute Engine
414 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
415 # NodePool&#x27;s nodes can be created by NAP.
416 &quot;A String&quot;,
417 ],
418 &quot;resourceLimits&quot;: [ # Contains global constraints regarding minimum and maximum
419 # amount of resources in the cluster.
420 { # Contains information about amount of some resource in the cluster.
421 # For memory, value should be in GB.
422 &quot;minimum&quot;: &quot;A String&quot;, # Minimum amount of the resource in the cluster.
423 &quot;maximum&quot;: &quot;A String&quot;, # Maximum amount of the resource in the cluster.
424 &quot;resourceType&quot;: &quot;A String&quot;, # Resource name &quot;cpu&quot;, &quot;memory&quot; or gpu-specific string.
425 },
426 ],
427 &quot;enableNodeAutoprovisioning&quot;: True or False, # Enables automatic node pool creation and deletion.
428 &quot;autoprovisioningNodePoolDefaults&quot;: { # AutoprovisioningNodePoolDefaults contains defaults for a node pool created # AutoprovisioningNodePoolDefaults contains defaults for a node pool
429 # created by NAP.
430 # by NAP.
431 &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.
432 # node pool.
433 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool.
434 # the Auto Upgrades will proceed.
435 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
436 # with the approximate start time for the upgrades, in
437 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
438 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
439 # with the description of the upgrade.
440 },
441 &quot;autoRepair&quot;: True or False, # A flag that specifies whether the node auto-repair is enabled for the node
442 # pool. If enabled, the nodes in this node pool will be monitored and, if
443 # they fail health checks too many times, an automatic repair action will be
444 # triggered.
445 &quot;autoUpgrade&quot;: True or False, # A flag that specifies whether node auto-upgrade is enabled for the node
446 # pool. If enabled, node auto-upgrade helps keep the nodes in your node pool
447 # up to date with the latest release version of Kubernetes.
448 },
449 &quot;oauthScopes&quot;: [ # Scopes that are used by NAP when creating node pools. If oauth_scopes are
450 # specified, service_account should be empty.
451 &quot;A String&quot;,
452 ],
453 &quot;upgradeSettings&quot;: { # These upgrade settings control the level of parallelism and the level of # Specifies the upgrade settings for NAP created node pools
454 # disruption caused by an upgrade.
455 #
456 # maxUnavailable controls the number of nodes that can be simultaneously
457 # unavailable.
458 #
459 # maxSurge controls the number of additional nodes that can be added to the
460 # node pool temporarily for the time of the upgrade to increase the number of
461 # available nodes.
462 #
463 # (maxUnavailable + maxSurge) determines the level of parallelism (how many
464 # nodes are being upgraded at the same time).
465 #
466 # Note: upgrades inevitably introduce some disruption since workloads need to
467 # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
468 # this holds true. (Disruption stays within the limits of
469 # PodDisruptionBudget, if it is configured.)
470 #
471 # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
472 # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
473 # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
474 # down 3 old (not yet upgraded) nodes at the same time. This ensures that
475 # there are always at least 4 nodes available.
476 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during
477 # the upgrade process. A node is considered available if its status is
478 # Ready.
479 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size
480 # of the node pool during the upgrade process.
481 },
482 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs. If
483 # service_account is specified, scopes should be empty.
484 },
485 },
486 &quot;initialNodeCount&quot;: 42, # The number of nodes to create in this cluster. You must ensure that your
487 # Compute Engine &lt;a href=&quot;/compute/docs/resource-quotas&quot;&gt;resource quota&lt;/a&gt;
488 # is sufficient for this number of instances. You must also have available
489 # firewall and routes quota.
490 # For requests, this field should only be used in lieu of a
491 # &quot;node_pool&quot; object, since this configuration (along with the
492 # &quot;node_config&quot;) will be used to create a &quot;NodePool&quot; object with an
493 # auto-generated name. Do not use this and a node_pool at the same time.
494 #
495 # This field is deprecated, use node_pool.initial_node_count instead.
496 &quot;instanceGroupUrls&quot;: [ # Deprecated. Use node_pools.instance_group_urls.
497 &quot;A String&quot;,
498 ],
499 &quot;privateClusterConfig&quot;: { # Configuration options for private clusters. # Configuration for private cluster.
500 &quot;masterIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP range in CIDR notation to use for the hosted master network. This
501 # range will be used for assigning internal IP addresses to the master or
502 # set of masters, as well as the ILB VIP. This range must not overlap with
503 # any other ranges in use within the cluster&#x27;s network.
504 &quot;enablePrivateNodes&quot;: True or False, # Whether nodes have internal IP addresses only. If enabled, all nodes are
505 # given only RFC 1918 private addresses and communicate with the master via
506 # private networking.
507 &quot;privateEndpoint&quot;: &quot;A String&quot;, # Output only. The internal IP address of this cluster&#x27;s master endpoint.
508 &quot;enablePrivateEndpoint&quot;: True or False, # Whether the master&#x27;s internal IP address is used as the cluster endpoint.
509 &quot;peeringName&quot;: &quot;A String&quot;, # Output only. The peering name in the customer VPC used by this cluster.
510 &quot;publicEndpoint&quot;: &quot;A String&quot;, # Output only. The external IP address of this cluster&#x27;s master endpoint.
511 },
512 &quot;shieldedNodes&quot;: { # Configuration of Shielded Nodes feature. # Shielded Nodes configuration.
513 &quot;enabled&quot;: True or False, # Whether Shielded Nodes features are enabled on all nodes in this cluster.
514 },
515 &quot;verticalPodAutoscaling&quot;: { # VerticalPodAutoscaling contains global, per-cluster information # Cluster-level Vertical Pod Autoscaling configuration.
516 # required by Vertical Pod Autoscaler to automatically adjust
517 # the resources of pods controlled by it.
518 &quot;enabled&quot;: True or False, # Enables vertical pod autoscaling.
519 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700520 &quot;defaultMaxPodsConstraint&quot;: { # Constraints applied to pods. # The default constraint on the maximum number of pods that can be run
521 # simultaneously on a node in the node pool of this cluster. Only honored
522 # if cluster created with IP Alias support.
523 &quot;maxPodsPerNode&quot;: &quot;A String&quot;, # Constraint enforced on the max num of pods per node.
524 },
525 &quot;network&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
526 # [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
527 # to which the cluster is connected. If left unspecified, the `default`
528 # network will be used.
529 &quot;labelFingerprint&quot;: &quot;A String&quot;, # The fingerprint of the set of labels for this cluster.
530 &quot;nodeIpv4CidrSize&quot;: 42, # [Output only] The size of the address space on each node for hosting
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400531 # containers. This is provisioned from within the `container_ipv4_cidr`
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700532 # range. This field will only be set when cluster is in route-based network
533 # mode.
Bu Sun Kim65020912020-05-20 12:08:20 -0700534 &quot;masterAuthorizedNetworksConfig&quot;: { # Configuration options for the master authorized networks feature. Enabled # The configuration options for master authorized networks feature.
535 # master authorized networks will disallow all external traffic to access
536 # Kubernetes master through HTTPS except traffic from the given CIDR blocks,
537 # Google Compute Engine Public IPs and Google Prod IPs.
Bu Sun Kim65020912020-05-20 12:08:20 -0700538 &quot;cidrBlocks&quot;: [ # cidr_blocks define up to 50 external networks that could access
539 # Kubernetes master through HTTPS.
540 { # CidrBlock contains an optional name and one CIDR block.
541 &quot;displayName&quot;: &quot;A String&quot;, # display_name is an optional field for users to identify CIDR blocks.
542 &quot;cidrBlock&quot;: &quot;A String&quot;, # cidr_block must be specified in CIDR notation.
543 },
544 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700545 &quot;enabled&quot;: True or False, # Whether or not master authorized networks is enabled.
Bu Sun Kim65020912020-05-20 12:08:20 -0700546 },
547 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output only] Additional information about the current status of this
548 # cluster, if available.
549 &quot;masterAuth&quot;: { # The authentication information for accessing the master endpoint. # The authentication information for accessing the master endpoint.
550 # If unspecified, the defaults are used:
551 # For clusters before v1.12, if master_auth is unspecified, `username` will
552 # be set to &quot;admin&quot;, a random password will be generated, and a client
553 # certificate will be issued.
554 # Authentication can be done using HTTP basic auth or using client
555 # certificates.
Bu Sun Kim65020912020-05-20 12:08:20 -0700556 &quot;password&quot;: &quot;A String&quot;, # The password to use for HTTP basic authentication to the master endpoint.
557 # Because the master endpoint is open to the Internet, you should create a
558 # strong password. If a password is provided for cluster creation, username
559 # must be non-empty.
560 &quot;clientCertificateConfig&quot;: { # Configuration for client certificates on the cluster. # Configuration for client certificate authentication on the cluster. For
561 # clusters before v1.12, if no configuration is specified, a client
562 # certificate is issued.
563 &quot;issueClientCertificate&quot;: True or False, # Issue a client certificate.
564 },
565 &quot;clientKey&quot;: &quot;A String&quot;, # [Output only] Base64-encoded private key used by clients to authenticate
566 # to the cluster endpoint.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700567 &quot;clusterCaCertificate&quot;: &quot;A String&quot;, # [Output only] Base64-encoded public certificate that is the root of
568 # trust for the cluster.
569 &quot;clientCertificate&quot;: &quot;A String&quot;, # [Output only] Base64-encoded public certificate used by clients to
570 # authenticate to the cluster endpoint.
571 &quot;username&quot;: &quot;A String&quot;, # The username to use for HTTP basic authentication to the master endpoint.
572 # For clusters v1.6.0 and later, basic authentication can be disabled by
573 # leaving username unspecified (or setting it to the empty string).
Bu Sun Kim65020912020-05-20 12:08:20 -0700574 },
575 &quot;authenticatorGroupsConfig&quot;: { # Configuration for returning group information from authenticators. # Configuration controlling RBAC group membership information.
576 &quot;enabled&quot;: True or False, # Whether this cluster should return group membership lookups
577 # during authentication using a group of security groups.
578 &quot;securityGroup&quot;: &quot;A String&quot;, # The name of the security group-of-groups to be used. Only relevant
579 # if enabled = true.
580 },
581 &quot;currentMasterVersion&quot;: &quot;A String&quot;, # [Output only] The current software version of the master endpoint.
582 &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.
583 # cluster, enabling additional functionality.
584 &quot;networkPolicyConfig&quot;: { # Configuration for NetworkPolicy. This only tracks whether the addon # Configuration for NetworkPolicy. This only tracks whether the addon
585 # is enabled or not on the Master, it does not track whether network policy
586 # is enabled for the nodes.
587 # is enabled or not on the Master, it does not track whether network policy
588 # is enabled for the nodes.
589 &quot;disabled&quot;: True or False, # Whether NetworkPolicy is enabled for this cluster.
590 },
591 &quot;cloudRunConfig&quot;: { # Configuration options for the Cloud Run feature. # Configuration for the Cloud Run addon, which allows the user to use a
592 # managed Knative service.
593 &quot;disabled&quot;: True or False, # Whether Cloud Run addon is enabled for this cluster.
594 },
595 &quot;horizontalPodAutoscaling&quot;: { # Configuration options for the horizontal pod autoscaling feature, which # Configuration for the horizontal pod autoscaling feature, which
596 # increases or decreases the number of replica pods a replication controller
597 # has based on the resource usage of the existing pods.
598 # increases or decreases the number of replica pods a replication controller
599 # has based on the resource usage of the existing pods.
600 &quot;disabled&quot;: True or False, # Whether the Horizontal Pod Autoscaling feature is enabled in the cluster.
601 # When enabled, it ensures that metrics are collected into Stackdriver
602 # Monitoring.
603 },
604 &quot;httpLoadBalancing&quot;: { # Configuration options for the HTTP (L7) load balancing controller addon, # Configuration for the HTTP (L7) load balancing controller addon, which
605 # makes it easy to set up HTTP load balancers for services in a cluster.
606 # which makes it easy to set up HTTP load balancers for services in a cluster.
607 &quot;disabled&quot;: True or False, # Whether the HTTP Load Balancing controller is enabled in the cluster.
608 # When enabled, it runs a small pod in the cluster that manages the load
609 # balancers.
610 },
611 &quot;kubernetesDashboard&quot;: { # Configuration for the Kubernetes Dashboard. # Configuration for the Kubernetes Dashboard.
612 # This addon is deprecated, and will be disabled in 1.15. It is recommended
613 # to use the Cloud Console to manage and monitor your Kubernetes clusters,
614 # workloads and applications. For more information, see:
615 # https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
616 &quot;disabled&quot;: True or False, # Whether the Kubernetes Dashboard is enabled for this cluster.
617 },
618 },
619 &quot;currentNodeVersion&quot;: &quot;A String&quot;, # [Output only] Deprecated, use
620 # [NodePools.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.zones.clusters.nodePools)
621 # instead. The current version of the node software components. If they are
622 # currently at multiple versions because they&#x27;re in the process of being
623 # upgraded, this reflects the minimum version of all nodes.
624 &quot;subnetwork&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
625 # [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which
626 # the cluster is connected.
627 &quot;resourceLabels&quot;: { # The resource labels for the cluster to use to annotate any related
628 # Google Compute Engine resources.
629 &quot;a_key&quot;: &quot;A String&quot;,
630 },
631 &quot;maintenancePolicy&quot;: { # MaintenancePolicy defines the maintenance policy to be used for the cluster. # Configure the maintenance policy for this cluster.
632 &quot;window&quot;: { # MaintenanceWindow defines the maintenance window to be used for the cluster. # Specifies the maintenance window in which maintenance may be performed.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700633 &quot;maintenanceExclusions&quot;: { # Exceptions to maintenance window. Non-emergency maintenance should not
634 # occur in these windows.
635 &quot;a_key&quot;: { # Represents an arbitrary window of time.
636 &quot;endTime&quot;: &quot;A String&quot;, # The time that the window ends. The end time should take place after the
637 # start time.
638 &quot;startTime&quot;: &quot;A String&quot;, # The time that the window first starts.
639 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700640 },
641 &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 -0700642 # maintenance to occur. The time windows may be overlapping. If no
643 # maintenance windows are set, maintenance can occur at any time.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700644 &quot;window&quot;: { # Represents an arbitrary window of time. # The window of the first recurrence.
645 &quot;endTime&quot;: &quot;A String&quot;, # The time that the window ends. The end time should take place after the
646 # start time.
647 &quot;startTime&quot;: &quot;A String&quot;, # The time that the window first starts.
648 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700649 &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 -0700650 # this window reccurs. They go on for the span of time between the start and
651 # end time.
652 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700653 # For example, to have something repeat every weekday, you&#x27;d use:
Dan O'Mearadd494642020-05-01 07:42:23 -0700654 # &lt;code&gt;FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR&lt;/code&gt;
655 # To repeat some window daily (equivalent to the DailyMaintenanceWindow):
656 # &lt;code&gt;FREQ=DAILY&lt;/code&gt;
657 # For the first weekend of every month:
658 # &lt;code&gt;FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU&lt;/code&gt;
659 # This specifies how frequently the window starts. Eg, if you wanted to have
Bu Sun Kim65020912020-05-20 12:08:20 -0700660 # a 9-5 UTC-4 window every weekday, you&#x27;d use something like:
Dan O'Mearadd494642020-05-01 07:42:23 -0700661 # &lt;code&gt;
662 # start time = 2019-01-01T09:00:00-0400
663 # end time = 2019-01-01T17:00:00-0400
664 # recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
665 # &lt;/code&gt;
666 # Windows can span multiple days. Eg, to make the window encompass every
667 # weekend from midnight Saturday till the last minute of Sunday UTC:
668 # &lt;code&gt;
669 # start time = 2019-01-05T00:00:00Z
670 # end time = 2019-01-07T23:59:00Z
671 # recurrence = FREQ=WEEKLY;BYDAY=SA
672 # &lt;/code&gt;
Bu Sun Kim65020912020-05-20 12:08:20 -0700673 # Note the start and end time&#x27;s specific dates are largely arbitrary except
Dan O'Mearadd494642020-05-01 07:42:23 -0700674 # to specify duration of the window and when it first starts.
675 # The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.
Dan O'Mearadd494642020-05-01 07:42:23 -0700676 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700677 &quot;dailyMaintenanceWindow&quot;: { # Time window specified for daily maintenance operations. # DailyMaintenanceWindow specifies a daily maintenance operation window.
678 &quot;startTime&quot;: &quot;A String&quot;, # Time within the maintenance window to start the maintenance operations.
679 # Time format should be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)
680 # format &quot;HH:MM&quot;, where HH : [00-23] and MM : [00-59] GMT.
681 &quot;duration&quot;: &quot;A String&quot;, # [Output only] Duration of the time window, automatically chosen to be
682 # smallest possible in the given scenario.
683 # Duration will be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)
684 # format &quot;PTnHnMnS&quot;.
Dan O'Mearadd494642020-05-01 07:42:23 -0700685 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700686 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700687 &quot;resourceVersion&quot;: &quot;A String&quot;, # A hash identifying the version of this policy, so that updates to fields of
688 # the policy won&#x27;t accidentally undo intermediate changes (and so that users
689 # of the API unaware of some fields won&#x27;t accidentally remove other fields).
Dan O'Mearadd494642020-05-01 07:42:23 -0700690 # Make a &lt;code&gt;get()&lt;/code&gt; request to the cluster to get the current
691 # resource version and include it with requests to set the policy.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700692 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700693 &quot;initialClusterVersion&quot;: &quot;A String&quot;, # The initial Kubernetes version for this cluster. Valid versions are those
694 # found in validMasterVersions returned by getServerConfig. The version can
695 # be upgraded over time; such upgrades are reflected in
696 # currentMasterVersion and currentNodeVersion.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700697 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700698 # Users may specify either explicit versions offered by
699 # Kubernetes Engine or version aliases, which have the following behavior:
700 #
701 # - &quot;latest&quot;: picks the highest valid Kubernetes version
702 # - &quot;1.X&quot;: picks the highest valid patch+gke.N patch in the 1.X version
703 # - &quot;1.X.Y&quot;: picks the highest valid gke.N patch in the 1.X.Y version
704 # - &quot;1.X.Y-gke.N&quot;: picks an explicit Kubernetes version
705 # - &quot;&quot;,&quot;-&quot;: picks the default Kubernetes version
706 &quot;ipAllocationPolicy&quot;: { # Configuration for controlling how IPs are allocated in the cluster. # Configuration for cluster IP allocation.
Bu Sun Kim65020912020-05-20 12:08:20 -0700707 &quot;nodeIpv4Cidr&quot;: &quot;A String&quot;, # This field is deprecated, use node_ipv4_cidr_block.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700708 &quot;clusterSecondaryRangeName&quot;: &quot;A String&quot;, # The name of the secondary range to be used for the cluster CIDR
709 # block. The secondary range will be used for pod IP
710 # addresses. This must be an existing secondary range associated
711 # with the cluster subnetwork.
712 #
713 # This field is only applicable with use_ip_aliases is true and
714 # create_subnetwork is false.
Bu Sun Kim65020912020-05-20 12:08:20 -0700715 &quot;clusterIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP address range for the cluster pod IPs. If this field is set, then
716 # `cluster.cluster_ipv4_cidr` must be left blank.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700717 #
718 # This field is only applicable when `use_ip_aliases` is true.
Bu Sun Kim65020912020-05-20 12:08:20 -0700719 #
720 # Set to blank to have a range chosen with the default size.
721 #
722 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
723 # netmask.
724 #
725 # Set to a
726 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
727 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
728 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
729 # to use.
Bu Sun Kim65020912020-05-20 12:08:20 -0700730 &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 -0700731 #
732 # This is applicable only if `create_subnetwork` is true.
733 #
734 # Set to blank to have a range chosen with the default size.
735 #
736 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
737 # netmask.
738 #
739 # Set to a
740 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
741 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
742 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
743 # to use.
Bu Sun Kim65020912020-05-20 12:08:20 -0700744 &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 -0700745 # range will be automatically chosen with the default size.
746 #
747 # This field is only applicable when `use_ip_aliases` is true.
748 #
749 # If unspecified, the range will use the default size.
750 #
751 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
752 # netmask.
753 #
754 # Set to a
755 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
756 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
757 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
758 # to use.
Bu Sun Kim65020912020-05-20 12:08:20 -0700759 &quot;useIpAliases&quot;: True or False, # Whether alias IPs will be used for pod IPs in the cluster.
760 &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 -0700761 # CIDR block. The secondary range will be used for service
762 # ClusterIPs. This must be an existing secondary range associated
763 # with the cluster subnetwork.
764 #
765 # This field is only applicable with use_ip_aliases is true and
766 # create_subnetwork is false.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700767 &quot;createSubnetwork&quot;: True or False, # Whether a new subnetwork will be created automatically for the cluster.
768 #
769 # This field is only applicable when `use_ip_aliases` is true.
Bu Sun Kim65020912020-05-20 12:08:20 -0700770 &quot;subnetworkName&quot;: &quot;A String&quot;, # A custom subnetwork name to be used if `create_subnetwork` is true. If
771 # this field is empty, then an automatic name will be chosen for the new
772 # subnetwork.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700773 &quot;clusterIpv4Cidr&quot;: &quot;A String&quot;, # This field is deprecated, use cluster_ipv4_cidr_block.
774 &quot;servicesIpv4Cidr&quot;: &quot;A String&quot;, # This field is deprecated, use services_ipv4_cidr_block.
775 &quot;servicesIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP address range of the services IPs in this cluster. If blank, a range
776 # will be automatically chosen with the default size.
777 #
778 # This field is only applicable when `use_ip_aliases` is true.
779 #
780 # Set to blank to have a range chosen with the default size.
781 #
782 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
783 # netmask.
784 #
785 # Set to a
786 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
787 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
788 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
789 # to use.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700790 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700791 &quot;legacyAbac&quot;: { # Configuration for the legacy Attribute Based Access Control authorization # Configuration for the legacy ABAC authorization mode.
792 # mode.
793 &quot;enabled&quot;: True or False, # Whether the ABAC authorizer is enabled for this cluster. When enabled,
794 # identities in the system, including service accounts, nodes, and
795 # controllers, will have statically granted permissions beyond those
796 # provided by the RBAC configuration or IAM.
Dan O'Mearadd494642020-05-01 07:42:23 -0700797 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700798 &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 -0700799 # disabled when this config is unspecified.
Bu Sun Kim65020912020-05-20 12:08:20 -0700800 &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 -0700801 # daemonset will be created in the cluster to meter network egress traffic.
Bu Sun Kim65020912020-05-20 12:08:20 -0700802 &quot;consumptionMeteringConfig&quot;: { # Parameters for controlling consumption metering. # Configuration to enable resource consumption metering.
803 &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 -0700804 # second BigQuery table will be created to hold resource consumption
805 # records.
806 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700807 &quot;bigqueryDestination&quot;: { # Parameters for using BigQuery as the destination of resource usage export. # Configuration to use BigQuery as usage export destination.
808 &quot;datasetId&quot;: &quot;A String&quot;, # The ID of a BigQuery Dataset.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700809 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700810 },
811 &quot;enableTpu&quot;: True or False, # Enable the ability to use Cloud TPUs in this cluster.
812 &quot;locations&quot;: [ # The list of Google Compute Engine
813 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
814 # cluster&#x27;s nodes should be located.
815 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700816 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700817 &quot;nodePools&quot;: [ # The node pools associated with this cluster.
818 # 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 -0400819 # specified.
Bu Sun Kim65020912020-05-20 12:08:20 -0700820 { # NodePool contains the name and configuration for a cluster&#x27;s node pool.
821 # Node pools are a set of nodes (i.e. VM&#x27;s), with a common configuration and
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400822 # specification, under the control of the cluster master. They may have a set
823 # of Kubernetes labels applied to them, which may be used to reference them
824 # during pod scheduling. They may also be resized up or down, to accommodate
825 # the workload.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700826 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output only] Additional information about the current status of this
827 # node pool instance, if available.
828 &quot;autoscaling&quot;: { # NodePoolAutoscaling contains information required by cluster autoscaler to # Autoscaler configuration for this NodePool. Autoscaler is enabled
829 # only if a valid configuration is present.
830 # adjust the size of the node pool to the current cluster usage.
831 &quot;maxNodeCount&quot;: 42, # Maximum number of nodes in the NodePool. Must be &gt;= min_node_count. There
832 # has to enough quota to scale up the cluster.
833 &quot;autoprovisioned&quot;: True or False, # Can this node pool be deleted automatically.
834 &quot;minNodeCount&quot;: 42, # Minimum number of nodes in the NodePool. Must be &gt;= 1 and &lt;=
835 # max_node_count.
836 &quot;enabled&quot;: True or False, # Is autoscaling enabled for this node pool.
837 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700838 &quot;initialNodeCount&quot;: 42, # The initial node count for the pool. You must ensure that your
839 # Compute Engine &lt;a href=&quot;/compute/docs/resource-quotas&quot;&gt;resource quota&lt;/a&gt;
840 # is sufficient for this number of instances. You must also have available
841 # firewall and routes quota.
Bu Sun Kim65020912020-05-20 12:08:20 -0700842 &quot;selfLink&quot;: &quot;A String&quot;, # [Output only] Server-defined URL for the resource.
843 &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 -0700844 # disruption caused by an upgrade.
845 #
846 # maxUnavailable controls the number of nodes that can be simultaneously
847 # unavailable.
848 #
849 # maxSurge controls the number of additional nodes that can be added to the
850 # node pool temporarily for the time of the upgrade to increase the number of
851 # available nodes.
852 #
853 # (maxUnavailable + maxSurge) determines the level of parallelism (how many
854 # nodes are being upgraded at the same time).
855 #
856 # Note: upgrades inevitably introduce some disruption since workloads need to
857 # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
858 # this holds true. (Disruption stays within the limits of
859 # PodDisruptionBudget, if it is configured.)
860 #
861 # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
862 # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
863 # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
864 # down 3 old (not yet upgraded) nodes at the same time. This ensures that
865 # there are always at least 4 nodes available.
Bu Sun Kim65020912020-05-20 12:08:20 -0700866 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during
Dan O'Mearadd494642020-05-01 07:42:23 -0700867 # the upgrade process. A node is considered available if its status is
868 # Ready.
Bu Sun Kim65020912020-05-20 12:08:20 -0700869 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size
870 # of the node pool during the upgrade process.
Dan O'Mearadd494642020-05-01 07:42:23 -0700871 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700872 &quot;locations&quot;: [ # The list of Google Compute Engine
873 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
874 # NodePool&#x27;s nodes should be located.
875 &quot;A String&quot;,
876 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700877 &quot;instanceGroupUrls&quot;: [ # [Output only] The resource URLs of the [managed instance
878 # groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
879 # associated with this node pool.
880 &quot;A String&quot;,
881 ],
882 &quot;version&quot;: &quot;A String&quot;, # The version of the Kubernetes of this node.
883 &quot;podIpv4CidrSize&quot;: 42, # [Output only] The pod CIDR block size per node in this node pool.
884 &quot;conditions&quot;: [ # Which conditions caused the current node pool state.
885 { # StatusCondition describes why a cluster or a node pool has a certain status
886 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -0700887 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700888 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Dan O'Mearadd494642020-05-01 07:42:23 -0700889 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700890 ],
891 &quot;status&quot;: &quot;A String&quot;, # [Output only] The status of the nodes in this pool instance.
892 &quot;config&quot;: { # Parameters that describe the nodes in a cluster. # The node configuration of the pool.
Bu Sun Kim65020912020-05-20 12:08:20 -0700893 &quot;oauthScopes&quot;: [ # The set of Google API scopes to be made available on all of the
894 # node VMs under the &quot;default&quot; service account.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400895 #
896 # The following scopes are recommended, but not required, and by default are
897 # not included:
898 #
899 # * `https://www.googleapis.com/auth/compute` is required for mounting
900 # persistent storage on your nodes.
901 # * `https://www.googleapis.com/auth/devstorage.read_only` is required for
902 # communicating with **gcr.io**
Dan O'Mearadd494642020-05-01 07:42:23 -0700903 # (the [Google Container
904 # Registry](https://cloud.google.com/container-registry/)).
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400905 #
906 # If unspecified, no scopes are added, unless Cloud Logging or Cloud
907 # Monitoring are enabled, in which case their required scopes will be added.
Bu Sun Kim65020912020-05-20 12:08:20 -0700908 &quot;A String&quot;,
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700909 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700910 &quot;taints&quot;: [ # List of kubernetes taints to be applied to each node.
Dan O'Mearadd494642020-05-01 07:42:23 -0700911 #
912 # For more information, including usage and the valid values, see:
913 # https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
914 { # Kubernetes taint is comprised of three fields: key, value, and effect. Effect
915 # can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute.
916 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700917 # See
918 # [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration)
919 # for more information, including usage and the valid values.
Bu Sun Kim65020912020-05-20 12:08:20 -0700920 &quot;effect&quot;: &quot;A String&quot;, # Effect for taint.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700921 &quot;value&quot;: &quot;A String&quot;, # Value for taint.
922 &quot;key&quot;: &quot;A String&quot;, # Key for taint.
Dan O'Mearadd494642020-05-01 07:42:23 -0700923 },
924 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700925 &quot;labels&quot;: { # The map of Kubernetes labels (key/value pairs) to be applied to each node.
926 # These will added in addition to any default label(s) that
927 # Kubernetes may apply to the node.
928 # In case of conflict in label keys, the applied set may differ depending on
929 # the Kubernetes version -- it&#x27;s best to assume the behavior is undefined
930 # and conflicts should be avoided.
931 # For more information, including usage and the valid values, see:
932 # https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
933 &quot;a_key&quot;: &quot;A String&quot;,
934 },
935 &quot;diskSizeGb&quot;: 42, # Size of the disk attached to each node, specified in GB.
936 # The smallest allowed disk size is 10GB.
937 #
938 # If unspecified, the default disk size is 100GB.
939 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to # The workload metadata configuration for this node.
940 # workloads on the node pool.
941 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running
942 # on the node pool.
943 },
944 &quot;accelerators&quot;: [ # A list of hardware accelerators to be attached to each node.
945 # See https://cloud.google.com/compute/docs/gpus for more information about
946 # support for GPUs.
947 { # AcceleratorConfig represents a Hardware Accelerator request.
Bu Sun Kim65020912020-05-20 12:08:20 -0700948 &quot;acceleratorType&quot;: &quot;A String&quot;, # The accelerator type resource name. List of supported accelerators
949 # [here](https://cloud.google.com/compute/docs/gpus)
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700950 &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of the accelerator cards exposed to an instance.
Bu Sun Kim65020912020-05-20 12:08:20 -0700951 },
952 ],
953 &quot;machineType&quot;: &quot;A String&quot;, # The name of a Google Compute Engine [machine
954 # type](https://cloud.google.com/compute/docs/machine-types) (e.g.
955 # `n1-standard-1`).
956 #
957 # If unspecified, the default machine type is
958 # `n1-standard-1`.
959 &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;)
960 #
961 # If unspecified, the default disk type is &#x27;pd-standard&#x27;
962 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
Bu Sun Kim65020912020-05-20 12:08:20 -0700963 &quot;enableIntegrityMonitoring&quot;: True or False, # Defines whether the instance has integrity monitoring enabled.
964 #
965 # Enables monitoring and attestation of the boot integrity of the instance.
966 # The attestation is performed against the integrity policy baseline. This
967 # baseline is initially derived from the implicitly trusted boot image when
968 # the instance is created.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700969 &quot;enableSecureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled.
970 #
971 # Secure Boot helps ensure that the system only runs authentic software by
972 # verifying the digital signature of all boot components, and halting the
973 # boot process if signature verification fails.
Bu Sun Kim65020912020-05-20 12:08:20 -0700974 },
975 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used by this instance. The instance may be
976 # scheduled on the specified or newer CPU platform. Applicable values are the
977 # friendly names of CPU platforms, such as
978 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Haswell&amp;quot;&lt;/code&gt; or
979 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Sandy Bridge&amp;quot;&lt;/code&gt;. For more
980 # information, read [how to specify min CPU
981 # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
982 &quot;preemptible&quot;: True or False, # Whether the nodes are created as preemptible VM instances. See:
983 # https://cloud.google.com/compute/docs/instances/preemptible for more
984 # information about preemptible VM instances.
985 &quot;localSsdCount&quot;: 42, # The number of local SSD disks to be attached to the node.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400986 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700987 # The limit for this value is dependent upon the maximum number of
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400988 # disks available on a machine per zone. See:
Dan O'Mearadd494642020-05-01 07:42:23 -0700989 # https://cloud.google.com/compute/docs/disks/local-ssd
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400990 # for more information.
Bu Sun Kim65020912020-05-20 12:08:20 -0700991 &quot;sandboxConfig&quot;: { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node.
992 &quot;type&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700993 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700994 &quot;metadata&quot;: { # The metadata key/value pairs assigned to instances in the cluster.
995 #
996 # Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
997 # in length. These are reflected as part of a URL in the metadata server.
998 # Additionally, to avoid ambiguity, keys must not conflict with any other
999 # metadata keys for the project or be one of the reserved keys:
1000 # &quot;cluster-location&quot;
1001 # &quot;cluster-name&quot;
1002 # &quot;cluster-uid&quot;
1003 # &quot;configure-sh&quot;
1004 # &quot;containerd-configure-sh&quot;
1005 # &quot;enable-os-login&quot;
1006 # &quot;gci-ensure-gke-docker&quot;
1007 # &quot;gci-metrics-enabled&quot;
1008 # &quot;gci-update-strategy&quot;
1009 # &quot;instance-template&quot;
1010 # &quot;kube-env&quot;
1011 # &quot;startup-script&quot;
1012 # &quot;user-data&quot;
1013 # &quot;disable-address-manager&quot;
1014 # &quot;windows-startup-script-ps1&quot;
1015 # &quot;common-psm1&quot;
1016 # &quot;k8s-node-setup-psm1&quot;
1017 # &quot;install-ssh-psm1&quot;
1018 # &quot;user-profile-psm1&quot;
1019 # &quot;serial-port-logging-enable&quot;
1020 #
1021 # Values are free-form strings, and only have meaning as interpreted by
1022 # the image running in the instance. The only restriction placed on them is
1023 # that each value&#x27;s size must be less than or equal to 32 KB.
1024 #
1025 # The total size of all keys and values must be less than 512 KB.
1026 &quot;a_key&quot;: &quot;A String&quot;,
1027 },
1028 &quot;reservationAffinity&quot;: { # [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) # The optional reservation affinity. Setting this field will apply
1029 # the specified [Zonal Compute
1030 # Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
1031 # to this node pool.
1032 # is the configuration of desired reservation which instances could take
1033 # capacity from.
Bu Sun Kim65020912020-05-20 12:08:20 -07001034 &quot;values&quot;: [ # Corresponds to the label value(s) of reservation resource(s).
1035 &quot;A String&quot;,
1036 ],
1037 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Corresponds to the type of reservation consumption.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001038 &quot;key&quot;: &quot;A String&quot;, # Corresponds to the label key of a reservation resource. To target a
1039 # SPECIFIC_RESERVATION by name, specify &quot;googleapis.com/reservation-name&quot; as
1040 # the key and specify the name of your reservation as its value.
Bu Sun Kim65020912020-05-20 12:08:20 -07001041 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001042 &quot;tags&quot;: [ # The list of instance tags applied to all nodes. Tags are used to identify
1043 # valid sources or targets for network firewalls and are specified by
1044 # the client during cluster or node pool creation. Each tag within the list
1045 # must comply with RFC1035.
1046 &quot;A String&quot;,
1047 ],
1048 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs.
1049 # Specify the email address of the Service Account; otherwise, if no Service
1050 # Account is specified, the &quot;default&quot; service account is used.
1051 &quot;imageType&quot;: &quot;A String&quot;, # The image type to use for this node. Note that for a given image type,
1052 # the latest version of it will be used.
Bu Sun Kim65020912020-05-20 12:08:20 -07001053 },
1054 &quot;maxPodsConstraint&quot;: { # Constraints applied to pods. # The constraint on the maximum number of pods that can be run
1055 # simultaneously on a node in the node pool.
1056 &quot;maxPodsPerNode&quot;: &quot;A String&quot;, # Constraint enforced on the max num of pods per node.
1057 },
1058 &quot;name&quot;: &quot;A String&quot;, # The name of the node pool.
1059 &quot;management&quot;: { # NodeManagement defines the set of node management services turned on for the # NodeManagement configuration for this NodePool.
1060 # node pool.
1061 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool.
1062 # the Auto Upgrades will proceed.
Bu Sun Kim65020912020-05-20 12:08:20 -07001063 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
1064 # with the approximate start time for the upgrades, in
1065 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001066 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
1067 # with the description of the upgrade.
Bu Sun Kim65020912020-05-20 12:08:20 -07001068 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001069 &quot;autoRepair&quot;: True or False, # A flag that specifies whether the node auto-repair is enabled for the node
1070 # pool. If enabled, the nodes in this node pool will be monitored and, if
1071 # they fail health checks too many times, an automatic repair action will be
1072 # triggered.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001073 &quot;autoUpgrade&quot;: True or False, # A flag that specifies whether node auto-upgrade is enabled for the node
1074 # pool. If enabled, node auto-upgrade helps keep the nodes in your node pool
1075 # up to date with the latest release version of Kubernetes.
Bu Sun Kim65020912020-05-20 12:08:20 -07001076 },
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -07001077 },
1078 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001079 &quot;selfLink&quot;: &quot;A String&quot;, # [Output only] Server-defined URL for the resource.
1080 &quot;networkPolicy&quot;: { # Configuration options for the NetworkPolicy feature. # Configuration options for the NetworkPolicy feature.
1081 # https://kubernetes.io/docs/concepts/services-networking/networkpolicies/
1082 &quot;provider&quot;: &quot;A String&quot;, # The selected network policy provider.
1083 &quot;enabled&quot;: True or False, # Whether network policy is enabled on the cluster.
1084 },
1085 &quot;servicesIpv4Cidr&quot;: &quot;A String&quot;, # [Output only] The IP address range of the Kubernetes services in
1086 # this cluster, in
1087 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
1088 # notation (e.g. `1.2.3.4/29`). Service addresses are
1089 # typically put in the last `/16` from the container CIDR.
1090 &quot;enableKubernetesAlpha&quot;: True or False, # Kubernetes alpha features are enabled on this cluster. This includes alpha
1091 # API groups (e.g. v1alpha1) and features that may not be production ready in
1092 # the kubernetes version of the master and nodes.
1093 # The cluster has no SLA for uptime and master/node upgrades are disabled.
1094 # Alpha enabled clusters are automatically deleted thirty days after
1095 # creation.
1096 &quot;description&quot;: &quot;A String&quot;, # An optional description of this cluster.
1097 &quot;conditions&quot;: [ # Which conditions caused the current cluster state.
1098 { # StatusCondition describes why a cluster or a node pool has a certain status
1099 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07001100 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001101 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim65020912020-05-20 12:08:20 -07001102 },
1103 ],
1104 &quot;currentNodeCount&quot;: 42, # [Output only] The number of nodes currently in the cluster. Deprecated.
1105 # Call Kubernetes API directly to retrieve node information.
1106 &quot;monitoringService&quot;: &quot;A String&quot;, # The monitoring service the cluster should use to write metrics.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04001107 # Currently available options:
1108 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001109 # * &quot;monitoring.googleapis.com/kubernetes&quot; - The Cloud Monitoring
Dan O'Mearadd494642020-05-01 07:42:23 -07001110 # service with a Kubernetes-native resource model
1111 # * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
1112 # longer available as of GKE 1.15).
1113 # * `none` - No metrics will be exported from the cluster.
1114 #
1115 # If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
1116 # used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
Bu Sun Kim65020912020-05-20 12:08:20 -07001117 &quot;databaseEncryption&quot;: { # Configuration of etcd encryption. # Configuration of etcd encryption.
1118 &quot;keyName&quot;: &quot;A String&quot;, # Name of CloudKMS key to use for the encryption of secrets in etcd.
1119 # Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key
1120 &quot;state&quot;: &quot;A String&quot;, # Denotes the state of etcd encryption.
Takashi Matsuo06694102015-09-11 13:55:40 -07001121 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001122 &quot;binaryAuthorization&quot;: { # Configuration for Binary Authorization. # Configuration for Binary Authorization.
1123 &quot;enabled&quot;: True or False, # Enable Binary Authorization for this cluster. If enabled, all container
1124 # images will be validated by Binary Authorization.
1125 },
1126 &quot;tpuIpv4CidrBlock&quot;: &quot;A String&quot;, # [Output only] The IP address range of the Cloud TPUs in this cluster, in
1127 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
1128 # notation (e.g. `1.2.3.4/29`).
1129 &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
1130 # policies.
1131 # policies.
1132 &quot;workloadPool&quot;: &quot;A String&quot;, # The workload pool to attach all Kubernetes service accounts to.
1133 },
1134 &quot;zone&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
1135 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1136 # cluster resides. This field is deprecated, use location instead.
1137 &quot;expireTime&quot;: &quot;A String&quot;, # [Output only] The time the cluster will be automatically
1138 # deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1139 &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 -07001140 # Currently available options:
1141 #
Dan O'Mearadd494642020-05-01 07:42:23 -07001142 # * `logging.googleapis.com/kubernetes` - The Cloud Logging
1143 # service with a Kubernetes-native resource model
1144 # * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
1145 # available as of GKE 1.15).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001146 # * `none` - no logs will be exported from the cluster.
Dan O'Mearadd494642020-05-01 07:42:23 -07001147 #
1148 # If left as an empty string,`logging.googleapis.com/kubernetes` will be
1149 # used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
Bu Sun Kim65020912020-05-20 12:08:20 -07001150 &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 -04001151 # For requests, this field should only be used in lieu of a
Bu Sun Kim65020912020-05-20 12:08:20 -07001152 # &quot;node_pool&quot; object, since this configuration (along with the
1153 # &quot;initial_node_count&quot;) will be used to create a &quot;NodePool&quot; object with an
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04001154 # auto-generated name. Do not use this and a node_pool at the same time.
1155 # For responses, this field will be populated with the node configuration of
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001156 # the first node pool. (For configuration of each node pool, see
1157 # `node_pool.config`)
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04001158 #
1159 # If unspecified, the defaults are used.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001160 # This field is deprecated, use node_pool.config instead.
Bu Sun Kim65020912020-05-20 12:08:20 -07001161 &quot;oauthScopes&quot;: [ # The set of Google API scopes to be made available on all of the
1162 # node VMs under the &quot;default&quot; service account.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04001163 #
1164 # The following scopes are recommended, but not required, and by default are
1165 # not included:
1166 #
1167 # * `https://www.googleapis.com/auth/compute` is required for mounting
1168 # persistent storage on your nodes.
1169 # * `https://www.googleapis.com/auth/devstorage.read_only` is required for
1170 # communicating with **gcr.io**
Dan O'Mearadd494642020-05-01 07:42:23 -07001171 # (the [Google Container
1172 # Registry](https://cloud.google.com/container-registry/)).
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04001173 #
1174 # If unspecified, no scopes are added, unless Cloud Logging or Cloud
1175 # Monitoring are enabled, in which case their required scopes will be added.
Bu Sun Kim65020912020-05-20 12:08:20 -07001176 &quot;A String&quot;,
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04001177 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001178 &quot;taints&quot;: [ # List of kubernetes taints to be applied to each node.
Dan O'Mearadd494642020-05-01 07:42:23 -07001179 #
1180 # For more information, including usage and the valid values, see:
1181 # https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
1182 { # Kubernetes taint is comprised of three fields: key, value, and effect. Effect
1183 # can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute.
1184 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001185 # See
1186 # [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration)
1187 # for more information, including usage and the valid values.
Bu Sun Kim65020912020-05-20 12:08:20 -07001188 &quot;effect&quot;: &quot;A String&quot;, # Effect for taint.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001189 &quot;value&quot;: &quot;A String&quot;, # Value for taint.
1190 &quot;key&quot;: &quot;A String&quot;, # Key for taint.
Dan O'Mearadd494642020-05-01 07:42:23 -07001191 },
1192 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001193 &quot;labels&quot;: { # The map of Kubernetes labels (key/value pairs) to be applied to each node.
1194 # These will added in addition to any default label(s) that
1195 # Kubernetes may apply to the node.
1196 # In case of conflict in label keys, the applied set may differ depending on
1197 # the Kubernetes version -- it&#x27;s best to assume the behavior is undefined
1198 # and conflicts should be avoided.
1199 # For more information, including usage and the valid values, see:
1200 # https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
1201 &quot;a_key&quot;: &quot;A String&quot;,
1202 },
1203 &quot;diskSizeGb&quot;: 42, # Size of the disk attached to each node, specified in GB.
1204 # The smallest allowed disk size is 10GB.
1205 #
1206 # If unspecified, the default disk size is 100GB.
1207 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to # The workload metadata configuration for this node.
1208 # workloads on the node pool.
1209 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running
1210 # on the node pool.
1211 },
1212 &quot;accelerators&quot;: [ # A list of hardware accelerators to be attached to each node.
1213 # See https://cloud.google.com/compute/docs/gpus for more information about
1214 # support for GPUs.
1215 { # AcceleratorConfig represents a Hardware Accelerator request.
Bu Sun Kim65020912020-05-20 12:08:20 -07001216 &quot;acceleratorType&quot;: &quot;A String&quot;, # The accelerator type resource name. List of supported accelerators
1217 # [here](https://cloud.google.com/compute/docs/gpus)
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001218 &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of the accelerator cards exposed to an instance.
Bu Sun Kim65020912020-05-20 12:08:20 -07001219 },
1220 ],
1221 &quot;machineType&quot;: &quot;A String&quot;, # The name of a Google Compute Engine [machine
1222 # type](https://cloud.google.com/compute/docs/machine-types) (e.g.
1223 # `n1-standard-1`).
1224 #
1225 # If unspecified, the default machine type is
1226 # `n1-standard-1`.
1227 &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;)
1228 #
1229 # If unspecified, the default disk type is &#x27;pd-standard&#x27;
1230 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
Bu Sun Kim65020912020-05-20 12:08:20 -07001231 &quot;enableIntegrityMonitoring&quot;: True or False, # Defines whether the instance has integrity monitoring enabled.
1232 #
1233 # Enables monitoring and attestation of the boot integrity of the instance.
1234 # The attestation is performed against the integrity policy baseline. This
1235 # baseline is initially derived from the implicitly trusted boot image when
1236 # the instance is created.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001237 &quot;enableSecureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled.
1238 #
1239 # Secure Boot helps ensure that the system only runs authentic software by
1240 # verifying the digital signature of all boot components, and halting the
1241 # boot process if signature verification fails.
Bu Sun Kim65020912020-05-20 12:08:20 -07001242 },
1243 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used by this instance. The instance may be
1244 # scheduled on the specified or newer CPU platform. Applicable values are the
1245 # friendly names of CPU platforms, such as
1246 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Haswell&amp;quot;&lt;/code&gt; or
1247 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Sandy Bridge&amp;quot;&lt;/code&gt;. For more
1248 # information, read [how to specify min CPU
1249 # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
1250 &quot;preemptible&quot;: True or False, # Whether the nodes are created as preemptible VM instances. See:
1251 # https://cloud.google.com/compute/docs/instances/preemptible for more
1252 # information about preemptible VM instances.
1253 &quot;localSsdCount&quot;: 42, # The number of local SSD disks to be attached to the node.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04001254 #
Dan O'Mearadd494642020-05-01 07:42:23 -07001255 # The limit for this value is dependent upon the maximum number of
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04001256 # disks available on a machine per zone. See:
Dan O'Mearadd494642020-05-01 07:42:23 -07001257 # https://cloud.google.com/compute/docs/disks/local-ssd
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04001258 # for more information.
Bu Sun Kim65020912020-05-20 12:08:20 -07001259 &quot;sandboxConfig&quot;: { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node.
1260 &quot;type&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node.
1261 },
1262 &quot;metadata&quot;: { # The metadata key/value pairs assigned to instances in the cluster.
1263 #
1264 # Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
1265 # in length. These are reflected as part of a URL in the metadata server.
1266 # Additionally, to avoid ambiguity, keys must not conflict with any other
1267 # metadata keys for the project or be one of the reserved keys:
1268 # &quot;cluster-location&quot;
1269 # &quot;cluster-name&quot;
1270 # &quot;cluster-uid&quot;
1271 # &quot;configure-sh&quot;
1272 # &quot;containerd-configure-sh&quot;
1273 # &quot;enable-os-login&quot;
1274 # &quot;gci-ensure-gke-docker&quot;
1275 # &quot;gci-metrics-enabled&quot;
1276 # &quot;gci-update-strategy&quot;
1277 # &quot;instance-template&quot;
1278 # &quot;kube-env&quot;
1279 # &quot;startup-script&quot;
1280 # &quot;user-data&quot;
1281 # &quot;disable-address-manager&quot;
1282 # &quot;windows-startup-script-ps1&quot;
1283 # &quot;common-psm1&quot;
1284 # &quot;k8s-node-setup-psm1&quot;
1285 # &quot;install-ssh-psm1&quot;
1286 # &quot;user-profile-psm1&quot;
1287 # &quot;serial-port-logging-enable&quot;
1288 #
1289 # Values are free-form strings, and only have meaning as interpreted by
1290 # the image running in the instance. The only restriction placed on them is
1291 # that each value&#x27;s size must be less than or equal to 32 KB.
1292 #
1293 # The total size of all keys and values must be less than 512 KB.
1294 &quot;a_key&quot;: &quot;A String&quot;,
1295 },
1296 &quot;reservationAffinity&quot;: { # [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) # The optional reservation affinity. Setting this field will apply
1297 # the specified [Zonal Compute
1298 # Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
1299 # to this node pool.
1300 # is the configuration of desired reservation which instances could take
1301 # capacity from.
Bu Sun Kim65020912020-05-20 12:08:20 -07001302 &quot;values&quot;: [ # Corresponds to the label value(s) of reservation resource(s).
1303 &quot;A String&quot;,
1304 ],
1305 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Corresponds to the type of reservation consumption.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001306 &quot;key&quot;: &quot;A String&quot;, # Corresponds to the label key of a reservation resource. To target a
1307 # SPECIFIC_RESERVATION by name, specify &quot;googleapis.com/reservation-name&quot; as
1308 # the key and specify the name of your reservation as its value.
Bu Sun Kim65020912020-05-20 12:08:20 -07001309 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001310 &quot;tags&quot;: [ # The list of instance tags applied to all nodes. Tags are used to identify
1311 # valid sources or targets for network firewalls and are specified by
1312 # the client during cluster or node pool creation. Each tag within the list
1313 # must comply with RFC1035.
1314 &quot;A String&quot;,
1315 ],
1316 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs.
1317 # Specify the email address of the Service Account; otherwise, if no Service
1318 # Account is specified, the &quot;default&quot; service account is used.
1319 &quot;imageType&quot;: &quot;A String&quot;, # The image type to use for this node. Note that for a given image type,
1320 # the latest version of it will be used.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04001321 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001322 &quot;status&quot;: &quot;A String&quot;, # [Output only] The current status of this cluster.
1323 &quot;networkConfig&quot;: { # NetworkConfig reports the relative names of network &amp; subnetwork. # Configuration for cluster networking.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001324 &quot;enableIntraNodeVisibility&quot;: True or False, # Whether Intra-node visibility is enabled for this cluster.
1325 # This makes same node pod to pod traffic visible for VPC network.
Bu Sun Kim65020912020-05-20 12:08:20 -07001326 &quot;subnetwork&quot;: &quot;A String&quot;, # Output only. The relative name of the Google Compute Engine
1327 # [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the
1328 # cluster is connected. Example:
1329 # projects/my-project/regions/us-central1/subnetworks/my-subnet
1330 &quot;network&quot;: &quot;A String&quot;, # Output only. The relative name of the Google Compute Engine
1331 # network(https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
1332 # to which the cluster is connected. Example:
1333 # projects/my-project/global/networks/my-network
Bu Sun Kim65020912020-05-20 12:08:20 -07001334 },
1335 &quot;name&quot;: &quot;A String&quot;, # The name of this cluster. The name must be unique within this project
1336 # and location (e.g. zone or region), and can be up to 40 characters with
1337 # the following restrictions:
1338 #
1339 # * Lowercase letters, numbers, and hyphens only.
1340 # * Must start with a letter.
1341 # * Must end with a number or a letter.
1342 &quot;endpoint&quot;: &quot;A String&quot;, # [Output only] The IP address of this cluster&#x27;s master endpoint.
1343 # The endpoint can be accessed from the internet at
1344 # `https://username:password@endpoint/`.
1345 #
1346 # See the `masterAuth` property of this resource for username and
1347 # password information.
1348 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
1349 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1350 # or
1351 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1352 # in which the cluster resides.
Takashi Matsuo06694102015-09-11 13:55:40 -07001353 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001354 &quot;projectId&quot;: &quot;A String&quot;, # Deprecated. The Google Developers Console [project ID or project
1355 # number](https://support.google.com/cloud/answer/6158840).
1356 # This field has been deprecated and replaced by the parent field.
Bu Sun Kim65020912020-05-20 12:08:20 -07001357 &quot;zone&quot;: &quot;A String&quot;, # Deprecated. The name of the Google Compute Engine
1358 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1359 # cluster resides. This field has been deprecated and replaced by the parent
1360 # field.
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 Kim4ed7d3f2020-05-27 12:20:54 -07001373 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
1374 { # StatusCondition describes why a cluster or a node pool has a certain status
1375 # (e.g., ERROR or DEGRADED).
1376 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
1377 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
1378 },
1379 ],
1380 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
1381 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
1382 # Unset for single-stage operations.
1383 &quot;stages&quot;: [ # Substages of an operation or a stage.
1384 # Object with schema name: OperationProgress
1385 ],
1386 &quot;metrics&quot;: [ # Progress metric bundle, for example:
1387 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
1388 # {name: &quot;nodes total&quot;, int_value: 32}]
1389 # or
1390 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
1391 # {name: &quot;progress scale&quot;, double_value: 1.0}]
1392 { # Progress metric is (string, int|float|string) pair.
1393 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
1394 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
1395 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
1396 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
1397 },
1398 ],
1399 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
1400 # Unset for single-stage operations.
1401 },
1402 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
1403 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1404 # operation is taking place. This field is deprecated, use location instead.
1405 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
1406 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
1407 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
1408 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
1409 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
1410 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Bu Sun Kim65020912020-05-20 12:08:20 -07001411 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
1412 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001413 { # StatusCondition describes why a cluster or a node pool has a certain status
1414 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07001415 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001416 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001417 },
1418 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001419 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
Dan O'Mearadd494642020-05-01 07:42:23 -07001420 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07001421 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001422 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1423 # or
1424 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1425 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07001426 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
1427 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
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 Kim4ed7d3f2020-05-27 12:20:54 -07001465 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
1466 { # StatusCondition describes why a cluster or a node pool has a certain status
1467 # (e.g., ERROR or DEGRADED).
1468 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
1469 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
1470 },
1471 ],
1472 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
1473 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
1474 # Unset for single-stage operations.
1475 &quot;stages&quot;: [ # Substages of an operation or a stage.
1476 # Object with schema name: OperationProgress
1477 ],
1478 &quot;metrics&quot;: [ # Progress metric bundle, for example:
1479 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
1480 # {name: &quot;nodes total&quot;, int_value: 32}]
1481 # or
1482 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
1483 # {name: &quot;progress scale&quot;, double_value: 1.0}]
1484 { # Progress metric is (string, int|float|string) pair.
1485 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
1486 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
1487 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
1488 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
1489 },
1490 ],
1491 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
1492 # Unset for single-stage operations.
1493 },
1494 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
1495 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1496 # operation is taking place. This field is deprecated, use location instead.
1497 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
1498 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
1499 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
1500 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
1501 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
1502 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Bu Sun Kim65020912020-05-20 12:08:20 -07001503 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
1504 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001505 { # StatusCondition describes why a cluster or a node pool has a certain status
1506 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07001507 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001508 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001509 },
1510 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001511 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
Dan O'Mearadd494642020-05-01 07:42:23 -07001512 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07001513 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001514 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1515 # or
1516 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1517 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07001518 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
1519 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
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 Kim4ed7d3f2020-05-27 12:20:54 -07001548 &quot;createTime&quot;: &quot;A String&quot;, # [Output only] The time the cluster was created, in
1549 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1550 &quot;clusterIpv4Cidr&quot;: &quot;A String&quot;, # The IP address range of the container pods in this cluster, in
1551 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
1552 # notation (e.g. `10.96.0.0/14`). Leave blank to have
1553 # one automatically chosen or specify a `/14` block in `10.0.0.0/8`.
1554 &quot;autoscaling&quot;: { # ClusterAutoscaling contains global, per-cluster information # Cluster-level autoscaling configuration.
1555 # required by Cluster Autoscaler to automatically adjust
1556 # the size of the cluster and create/delete
1557 # node pools based on the current needs.
1558 &quot;autoprovisioningLocations&quot;: [ # The list of Google Compute Engine
1559 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
1560 # NodePool&#x27;s nodes can be created by NAP.
1561 &quot;A String&quot;,
1562 ],
1563 &quot;resourceLimits&quot;: [ # Contains global constraints regarding minimum and maximum
1564 # amount of resources in the cluster.
1565 { # Contains information about amount of some resource in the cluster.
1566 # For memory, value should be in GB.
1567 &quot;minimum&quot;: &quot;A String&quot;, # Minimum amount of the resource in the cluster.
1568 &quot;maximum&quot;: &quot;A String&quot;, # Maximum amount of the resource in the cluster.
1569 &quot;resourceType&quot;: &quot;A String&quot;, # Resource name &quot;cpu&quot;, &quot;memory&quot; or gpu-specific string.
1570 },
1571 ],
1572 &quot;enableNodeAutoprovisioning&quot;: True or False, # Enables automatic node pool creation and deletion.
1573 &quot;autoprovisioningNodePoolDefaults&quot;: { # AutoprovisioningNodePoolDefaults contains defaults for a node pool created # AutoprovisioningNodePoolDefaults contains defaults for a node pool
1574 # created by NAP.
1575 # by NAP.
1576 &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.
1577 # node pool.
1578 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool.
1579 # the Auto Upgrades will proceed.
1580 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
1581 # with the approximate start time for the upgrades, in
1582 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1583 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
1584 # with the description of the upgrade.
1585 },
1586 &quot;autoRepair&quot;: True or False, # A flag that specifies whether the node auto-repair is enabled for the node
1587 # pool. If enabled, the nodes in this node pool will be monitored and, if
1588 # they fail health checks too many times, an automatic repair action will be
1589 # triggered.
1590 &quot;autoUpgrade&quot;: True or False, # A flag that specifies whether node auto-upgrade is enabled for the node
1591 # pool. If enabled, node auto-upgrade helps keep the nodes in your node pool
1592 # up to date with the latest release version of Kubernetes.
1593 },
1594 &quot;oauthScopes&quot;: [ # Scopes that are used by NAP when creating node pools. If oauth_scopes are
1595 # specified, service_account should be empty.
1596 &quot;A String&quot;,
1597 ],
1598 &quot;upgradeSettings&quot;: { # These upgrade settings control the level of parallelism and the level of # Specifies the upgrade settings for NAP created node pools
1599 # disruption caused by an upgrade.
1600 #
1601 # maxUnavailable controls the number of nodes that can be simultaneously
1602 # unavailable.
1603 #
1604 # maxSurge controls the number of additional nodes that can be added to the
1605 # node pool temporarily for the time of the upgrade to increase the number of
1606 # available nodes.
1607 #
1608 # (maxUnavailable + maxSurge) determines the level of parallelism (how many
1609 # nodes are being upgraded at the same time).
1610 #
1611 # Note: upgrades inevitably introduce some disruption since workloads need to
1612 # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
1613 # this holds true. (Disruption stays within the limits of
1614 # PodDisruptionBudget, if it is configured.)
1615 #
1616 # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
1617 # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
1618 # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
1619 # down 3 old (not yet upgraded) nodes at the same time. This ensures that
1620 # there are always at least 4 nodes available.
1621 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during
1622 # the upgrade process. A node is considered available if its status is
1623 # Ready.
1624 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size
1625 # of the node pool during the upgrade process.
1626 },
1627 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs. If
1628 # service_account is specified, scopes should be empty.
1629 },
1630 },
1631 &quot;initialNodeCount&quot;: 42, # The number of nodes to create in this cluster. You must ensure that your
1632 # Compute Engine &lt;a href=&quot;/compute/docs/resource-quotas&quot;&gt;resource quota&lt;/a&gt;
1633 # is sufficient for this number of instances. You must also have available
1634 # firewall and routes quota.
1635 # For requests, this field should only be used in lieu of a
1636 # &quot;node_pool&quot; object, since this configuration (along with the
1637 # &quot;node_config&quot;) will be used to create a &quot;NodePool&quot; object with an
1638 # auto-generated name. Do not use this and a node_pool at the same time.
1639 #
1640 # This field is deprecated, use node_pool.initial_node_count instead.
1641 &quot;instanceGroupUrls&quot;: [ # Deprecated. Use node_pools.instance_group_urls.
1642 &quot;A String&quot;,
1643 ],
1644 &quot;privateClusterConfig&quot;: { # Configuration options for private clusters. # Configuration for private cluster.
1645 &quot;masterIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP range in CIDR notation to use for the hosted master network. This
1646 # range will be used for assigning internal IP addresses to the master or
1647 # set of masters, as well as the ILB VIP. This range must not overlap with
1648 # any other ranges in use within the cluster&#x27;s network.
1649 &quot;enablePrivateNodes&quot;: True or False, # Whether nodes have internal IP addresses only. If enabled, all nodes are
1650 # given only RFC 1918 private addresses and communicate with the master via
1651 # private networking.
1652 &quot;privateEndpoint&quot;: &quot;A String&quot;, # Output only. The internal IP address of this cluster&#x27;s master endpoint.
1653 &quot;enablePrivateEndpoint&quot;: True or False, # Whether the master&#x27;s internal IP address is used as the cluster endpoint.
1654 &quot;peeringName&quot;: &quot;A String&quot;, # Output only. The peering name in the customer VPC used by this cluster.
1655 &quot;publicEndpoint&quot;: &quot;A String&quot;, # Output only. The external IP address of this cluster&#x27;s master endpoint.
1656 },
1657 &quot;shieldedNodes&quot;: { # Configuration of Shielded Nodes feature. # Shielded Nodes configuration.
1658 &quot;enabled&quot;: True or False, # Whether Shielded Nodes features are enabled on all nodes in this cluster.
1659 },
1660 &quot;verticalPodAutoscaling&quot;: { # VerticalPodAutoscaling contains global, per-cluster information # Cluster-level Vertical Pod Autoscaling configuration.
1661 # required by Vertical Pod Autoscaler to automatically adjust
1662 # the resources of pods controlled by it.
1663 &quot;enabled&quot;: True or False, # Enables vertical pod autoscaling.
1664 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001665 &quot;defaultMaxPodsConstraint&quot;: { # Constraints applied to pods. # The default constraint on the maximum number of pods that can be run
1666 # simultaneously on a node in the node pool of this cluster. Only honored
1667 # if cluster created with IP Alias support.
1668 &quot;maxPodsPerNode&quot;: &quot;A String&quot;, # Constraint enforced on the max num of pods per node.
1669 },
1670 &quot;network&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
1671 # [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
1672 # to which the cluster is connected. If left unspecified, the `default`
1673 # network will be used.
1674 &quot;labelFingerprint&quot;: &quot;A String&quot;, # The fingerprint of the set of labels for this cluster.
1675 &quot;nodeIpv4CidrSize&quot;: 42, # [Output only] The size of the address space on each node for hosting
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04001676 # containers. This is provisioned from within the `container_ipv4_cidr`
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001677 # range. This field will only be set when cluster is in route-based network
1678 # mode.
Bu Sun Kim65020912020-05-20 12:08:20 -07001679 &quot;masterAuthorizedNetworksConfig&quot;: { # Configuration options for the master authorized networks feature. Enabled # The configuration options for master authorized networks feature.
1680 # master authorized networks will disallow all external traffic to access
1681 # Kubernetes master through HTTPS except traffic from the given CIDR blocks,
1682 # Google Compute Engine Public IPs and Google Prod IPs.
Bu Sun Kim65020912020-05-20 12:08:20 -07001683 &quot;cidrBlocks&quot;: [ # cidr_blocks define up to 50 external networks that could access
1684 # Kubernetes master through HTTPS.
1685 { # CidrBlock contains an optional name and one CIDR block.
1686 &quot;displayName&quot;: &quot;A String&quot;, # display_name is an optional field for users to identify CIDR blocks.
1687 &quot;cidrBlock&quot;: &quot;A String&quot;, # cidr_block must be specified in CIDR notation.
1688 },
1689 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001690 &quot;enabled&quot;: True or False, # Whether or not master authorized networks is enabled.
Bu Sun Kim65020912020-05-20 12:08:20 -07001691 },
1692 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output only] Additional information about the current status of this
1693 # cluster, if available.
1694 &quot;masterAuth&quot;: { # The authentication information for accessing the master endpoint. # The authentication information for accessing the master endpoint.
1695 # If unspecified, the defaults are used:
1696 # For clusters before v1.12, if master_auth is unspecified, `username` will
1697 # be set to &quot;admin&quot;, a random password will be generated, and a client
1698 # certificate will be issued.
1699 # Authentication can be done using HTTP basic auth or using client
1700 # certificates.
Bu Sun Kim65020912020-05-20 12:08:20 -07001701 &quot;password&quot;: &quot;A String&quot;, # The password to use for HTTP basic authentication to the master endpoint.
1702 # Because the master endpoint is open to the Internet, you should create a
1703 # strong password. If a password is provided for cluster creation, username
1704 # must be non-empty.
1705 &quot;clientCertificateConfig&quot;: { # Configuration for client certificates on the cluster. # Configuration for client certificate authentication on the cluster. For
1706 # clusters before v1.12, if no configuration is specified, a client
1707 # certificate is issued.
1708 &quot;issueClientCertificate&quot;: True or False, # Issue a client certificate.
1709 },
1710 &quot;clientKey&quot;: &quot;A String&quot;, # [Output only] Base64-encoded private key used by clients to authenticate
1711 # to the cluster endpoint.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001712 &quot;clusterCaCertificate&quot;: &quot;A String&quot;, # [Output only] Base64-encoded public certificate that is the root of
1713 # trust for the cluster.
1714 &quot;clientCertificate&quot;: &quot;A String&quot;, # [Output only] Base64-encoded public certificate used by clients to
1715 # authenticate to the cluster endpoint.
1716 &quot;username&quot;: &quot;A String&quot;, # The username to use for HTTP basic authentication to the master endpoint.
1717 # For clusters v1.6.0 and later, basic authentication can be disabled by
1718 # leaving username unspecified (or setting it to the empty string).
Bu Sun Kim65020912020-05-20 12:08:20 -07001719 },
1720 &quot;authenticatorGroupsConfig&quot;: { # Configuration for returning group information from authenticators. # Configuration controlling RBAC group membership information.
1721 &quot;enabled&quot;: True or False, # Whether this cluster should return group membership lookups
1722 # during authentication using a group of security groups.
1723 &quot;securityGroup&quot;: &quot;A String&quot;, # The name of the security group-of-groups to be used. Only relevant
1724 # if enabled = true.
1725 },
1726 &quot;currentMasterVersion&quot;: &quot;A String&quot;, # [Output only] The current software version of the master endpoint.
1727 &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.
1728 # cluster, enabling additional functionality.
1729 &quot;networkPolicyConfig&quot;: { # Configuration for NetworkPolicy. This only tracks whether the addon # Configuration for NetworkPolicy. This only tracks whether the addon
1730 # is enabled or not on the Master, it does not track whether network policy
1731 # is enabled for the nodes.
1732 # is enabled or not on the Master, it does not track whether network policy
1733 # is enabled for the nodes.
1734 &quot;disabled&quot;: True or False, # Whether NetworkPolicy is enabled for this cluster.
1735 },
1736 &quot;cloudRunConfig&quot;: { # Configuration options for the Cloud Run feature. # Configuration for the Cloud Run addon, which allows the user to use a
1737 # managed Knative service.
1738 &quot;disabled&quot;: True or False, # Whether Cloud Run addon is enabled for this cluster.
1739 },
1740 &quot;horizontalPodAutoscaling&quot;: { # Configuration options for the horizontal pod autoscaling feature, which # Configuration for the horizontal pod autoscaling feature, which
1741 # increases or decreases the number of replica pods a replication controller
1742 # has based on the resource usage of the existing pods.
1743 # increases or decreases the number of replica pods a replication controller
1744 # has based on the resource usage of the existing pods.
1745 &quot;disabled&quot;: True or False, # Whether the Horizontal Pod Autoscaling feature is enabled in the cluster.
1746 # When enabled, it ensures that metrics are collected into Stackdriver
1747 # Monitoring.
1748 },
1749 &quot;httpLoadBalancing&quot;: { # Configuration options for the HTTP (L7) load balancing controller addon, # Configuration for the HTTP (L7) load balancing controller addon, which
1750 # makes it easy to set up HTTP load balancers for services in a cluster.
1751 # which makes it easy to set up HTTP load balancers for services in a cluster.
1752 &quot;disabled&quot;: True or False, # Whether the HTTP Load Balancing controller is enabled in the cluster.
1753 # When enabled, it runs a small pod in the cluster that manages the load
1754 # balancers.
1755 },
1756 &quot;kubernetesDashboard&quot;: { # Configuration for the Kubernetes Dashboard. # Configuration for the Kubernetes Dashboard.
1757 # This addon is deprecated, and will be disabled in 1.15. It is recommended
1758 # to use the Cloud Console to manage and monitor your Kubernetes clusters,
1759 # workloads and applications. For more information, see:
1760 # https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
1761 &quot;disabled&quot;: True or False, # Whether the Kubernetes Dashboard is enabled for this cluster.
1762 },
1763 },
1764 &quot;currentNodeVersion&quot;: &quot;A String&quot;, # [Output only] Deprecated, use
1765 # [NodePools.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.zones.clusters.nodePools)
1766 # instead. The current version of the node software components. If they are
1767 # currently at multiple versions because they&#x27;re in the process of being
1768 # upgraded, this reflects the minimum version of all nodes.
1769 &quot;subnetwork&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
1770 # [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which
1771 # the cluster is connected.
1772 &quot;resourceLabels&quot;: { # The resource labels for the cluster to use to annotate any related
1773 # Google Compute Engine resources.
1774 &quot;a_key&quot;: &quot;A String&quot;,
1775 },
1776 &quot;maintenancePolicy&quot;: { # MaintenancePolicy defines the maintenance policy to be used for the cluster. # Configure the maintenance policy for this cluster.
1777 &quot;window&quot;: { # MaintenanceWindow defines the maintenance window to be used for the cluster. # Specifies the maintenance window in which maintenance may be performed.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001778 &quot;maintenanceExclusions&quot;: { # Exceptions to maintenance window. Non-emergency maintenance should not
1779 # occur in these windows.
1780 &quot;a_key&quot;: { # Represents an arbitrary window of time.
1781 &quot;endTime&quot;: &quot;A String&quot;, # The time that the window ends. The end time should take place after the
1782 # start time.
1783 &quot;startTime&quot;: &quot;A String&quot;, # The time that the window first starts.
1784 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001785 },
1786 &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 -07001787 # maintenance to occur. The time windows may be overlapping. If no
1788 # maintenance windows are set, maintenance can occur at any time.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001789 &quot;window&quot;: { # Represents an arbitrary window of time. # The window of the first recurrence.
1790 &quot;endTime&quot;: &quot;A String&quot;, # The time that the window ends. The end time should take place after the
1791 # start time.
1792 &quot;startTime&quot;: &quot;A String&quot;, # The time that the window first starts.
1793 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001794 &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 -07001795 # this window reccurs. They go on for the span of time between the start and
1796 # end time.
1797 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001798 # For example, to have something repeat every weekday, you&#x27;d use:
Dan O'Mearadd494642020-05-01 07:42:23 -07001799 # &lt;code&gt;FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR&lt;/code&gt;
1800 # To repeat some window daily (equivalent to the DailyMaintenanceWindow):
1801 # &lt;code&gt;FREQ=DAILY&lt;/code&gt;
1802 # For the first weekend of every month:
1803 # &lt;code&gt;FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU&lt;/code&gt;
1804 # This specifies how frequently the window starts. Eg, if you wanted to have
Bu Sun Kim65020912020-05-20 12:08:20 -07001805 # a 9-5 UTC-4 window every weekday, you&#x27;d use something like:
Dan O'Mearadd494642020-05-01 07:42:23 -07001806 # &lt;code&gt;
1807 # start time = 2019-01-01T09:00:00-0400
1808 # end time = 2019-01-01T17:00:00-0400
1809 # recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
1810 # &lt;/code&gt;
1811 # Windows can span multiple days. Eg, to make the window encompass every
1812 # weekend from midnight Saturday till the last minute of Sunday UTC:
1813 # &lt;code&gt;
1814 # start time = 2019-01-05T00:00:00Z
1815 # end time = 2019-01-07T23:59:00Z
1816 # recurrence = FREQ=WEEKLY;BYDAY=SA
1817 # &lt;/code&gt;
Bu Sun Kim65020912020-05-20 12:08:20 -07001818 # Note the start and end time&#x27;s specific dates are largely arbitrary except
Dan O'Mearadd494642020-05-01 07:42:23 -07001819 # to specify duration of the window and when it first starts.
1820 # The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.
Dan O'Mearadd494642020-05-01 07:42:23 -07001821 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001822 &quot;dailyMaintenanceWindow&quot;: { # Time window specified for daily maintenance operations. # DailyMaintenanceWindow specifies a daily maintenance operation window.
1823 &quot;startTime&quot;: &quot;A String&quot;, # Time within the maintenance window to start the maintenance operations.
1824 # Time format should be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)
1825 # format &quot;HH:MM&quot;, where HH : [00-23] and MM : [00-59] GMT.
1826 &quot;duration&quot;: &quot;A String&quot;, # [Output only] Duration of the time window, automatically chosen to be
1827 # smallest possible in the given scenario.
1828 # Duration will be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)
1829 # format &quot;PTnHnMnS&quot;.
Dan O'Mearadd494642020-05-01 07:42:23 -07001830 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001831 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001832 &quot;resourceVersion&quot;: &quot;A String&quot;, # A hash identifying the version of this policy, so that updates to fields of
1833 # the policy won&#x27;t accidentally undo intermediate changes (and so that users
1834 # of the API unaware of some fields won&#x27;t accidentally remove other fields).
Dan O'Mearadd494642020-05-01 07:42:23 -07001835 # Make a &lt;code&gt;get()&lt;/code&gt; request to the cluster to get the current
1836 # resource version and include it with requests to set the policy.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001837 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001838 &quot;initialClusterVersion&quot;: &quot;A String&quot;, # The initial Kubernetes version for this cluster. Valid versions are those
1839 # found in validMasterVersions returned by getServerConfig. The version can
1840 # be upgraded over time; such upgrades are reflected in
1841 # currentMasterVersion and currentNodeVersion.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001842 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001843 # Users may specify either explicit versions offered by
1844 # Kubernetes Engine or version aliases, which have the following behavior:
1845 #
1846 # - &quot;latest&quot;: picks the highest valid Kubernetes version
1847 # - &quot;1.X&quot;: picks the highest valid patch+gke.N patch in the 1.X version
1848 # - &quot;1.X.Y&quot;: picks the highest valid gke.N patch in the 1.X.Y version
1849 # - &quot;1.X.Y-gke.N&quot;: picks an explicit Kubernetes version
1850 # - &quot;&quot;,&quot;-&quot;: picks the default Kubernetes version
1851 &quot;ipAllocationPolicy&quot;: { # Configuration for controlling how IPs are allocated in the cluster. # Configuration for cluster IP allocation.
Bu Sun Kim65020912020-05-20 12:08:20 -07001852 &quot;nodeIpv4Cidr&quot;: &quot;A String&quot;, # This field is deprecated, use node_ipv4_cidr_block.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001853 &quot;clusterSecondaryRangeName&quot;: &quot;A String&quot;, # The name of the secondary range to be used for the cluster CIDR
1854 # block. The secondary range will be used for pod IP
1855 # addresses. This must be an existing secondary range associated
1856 # with the cluster subnetwork.
1857 #
1858 # This field is only applicable with use_ip_aliases is true and
1859 # create_subnetwork is false.
Bu Sun Kim65020912020-05-20 12:08:20 -07001860 &quot;clusterIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP address range for the cluster pod IPs. If this field is set, then
1861 # `cluster.cluster_ipv4_cidr` must be left blank.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001862 #
1863 # This field is only applicable when `use_ip_aliases` is true.
Bu Sun Kim65020912020-05-20 12:08:20 -07001864 #
1865 # Set to blank to have a range chosen with the default size.
1866 #
1867 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
1868 # netmask.
1869 #
1870 # Set to a
1871 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
1872 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
1873 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
1874 # to use.
Bu Sun Kim65020912020-05-20 12:08:20 -07001875 &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 -07001876 #
1877 # This is applicable only if `create_subnetwork` is true.
1878 #
1879 # Set to blank to have a range chosen with the default size.
1880 #
1881 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
1882 # netmask.
1883 #
1884 # Set to a
1885 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
1886 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
1887 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
1888 # to use.
Bu Sun Kim65020912020-05-20 12:08:20 -07001889 &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 -07001890 # range will be automatically chosen with the default size.
1891 #
1892 # This field is only applicable when `use_ip_aliases` is true.
1893 #
1894 # If unspecified, the range will use the default size.
1895 #
1896 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
1897 # netmask.
1898 #
1899 # Set to a
1900 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
1901 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
1902 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
1903 # to use.
Bu Sun Kim65020912020-05-20 12:08:20 -07001904 &quot;useIpAliases&quot;: True or False, # Whether alias IPs will be used for pod IPs in the cluster.
1905 &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 -07001906 # CIDR block. The secondary range will be used for service
1907 # ClusterIPs. This must be an existing secondary range associated
1908 # with the cluster subnetwork.
1909 #
1910 # This field is only applicable with use_ip_aliases is true and
1911 # create_subnetwork is false.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001912 &quot;createSubnetwork&quot;: True or False, # Whether a new subnetwork will be created automatically for the cluster.
1913 #
1914 # This field is only applicable when `use_ip_aliases` is true.
Bu Sun Kim65020912020-05-20 12:08:20 -07001915 &quot;subnetworkName&quot;: &quot;A String&quot;, # A custom subnetwork name to be used if `create_subnetwork` is true. If
1916 # this field is empty, then an automatic name will be chosen for the new
1917 # subnetwork.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001918 &quot;clusterIpv4Cidr&quot;: &quot;A String&quot;, # This field is deprecated, use cluster_ipv4_cidr_block.
1919 &quot;servicesIpv4Cidr&quot;: &quot;A String&quot;, # This field is deprecated, use services_ipv4_cidr_block.
1920 &quot;servicesIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP address range of the services IPs in this cluster. If blank, a range
1921 # will be automatically chosen with the default size.
1922 #
1923 # This field is only applicable when `use_ip_aliases` is true.
1924 #
1925 # Set to blank to have a range chosen with the default size.
1926 #
1927 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
1928 # netmask.
1929 #
1930 # Set to a
1931 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
1932 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
1933 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
1934 # to use.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001935 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001936 &quot;legacyAbac&quot;: { # Configuration for the legacy Attribute Based Access Control authorization # Configuration for the legacy ABAC authorization mode.
1937 # mode.
1938 &quot;enabled&quot;: True or False, # Whether the ABAC authorizer is enabled for this cluster. When enabled,
1939 # identities in the system, including service accounts, nodes, and
1940 # controllers, will have statically granted permissions beyond those
1941 # provided by the RBAC configuration or IAM.
Dan O'Mearadd494642020-05-01 07:42:23 -07001942 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001943 &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 -07001944 # disabled when this config is unspecified.
Bu Sun Kim65020912020-05-20 12:08:20 -07001945 &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 -07001946 # daemonset will be created in the cluster to meter network egress traffic.
Bu Sun Kim65020912020-05-20 12:08:20 -07001947 &quot;consumptionMeteringConfig&quot;: { # Parameters for controlling consumption metering. # Configuration to enable resource consumption metering.
1948 &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 -07001949 # second BigQuery table will be created to hold resource consumption
1950 # records.
1951 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001952 &quot;bigqueryDestination&quot;: { # Parameters for using BigQuery as the destination of resource usage export. # Configuration to use BigQuery as usage export destination.
1953 &quot;datasetId&quot;: &quot;A String&quot;, # The ID of a BigQuery Dataset.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001954 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001955 },
1956 &quot;enableTpu&quot;: True or False, # Enable the ability to use Cloud TPUs in this cluster.
1957 &quot;locations&quot;: [ # The list of Google Compute Engine
1958 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
1959 # cluster&#x27;s nodes should be located.
1960 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001961 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001962 &quot;nodePools&quot;: [ # The node pools associated with this cluster.
1963 # 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 -04001964 # specified.
Bu Sun Kim65020912020-05-20 12:08:20 -07001965 { # NodePool contains the name and configuration for a cluster&#x27;s node pool.
1966 # Node pools are a set of nodes (i.e. VM&#x27;s), with a common configuration and
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04001967 # specification, under the control of the cluster master. They may have a set
1968 # of Kubernetes labels applied to them, which may be used to reference them
1969 # during pod scheduling. They may also be resized up or down, to accommodate
1970 # the workload.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001971 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output only] Additional information about the current status of this
1972 # node pool instance, if available.
1973 &quot;autoscaling&quot;: { # NodePoolAutoscaling contains information required by cluster autoscaler to # Autoscaler configuration for this NodePool. Autoscaler is enabled
1974 # only if a valid configuration is present.
1975 # adjust the size of the node pool to the current cluster usage.
1976 &quot;maxNodeCount&quot;: 42, # Maximum number of nodes in the NodePool. Must be &gt;= min_node_count. There
1977 # has to enough quota to scale up the cluster.
1978 &quot;autoprovisioned&quot;: True or False, # Can this node pool be deleted automatically.
1979 &quot;minNodeCount&quot;: 42, # Minimum number of nodes in the NodePool. Must be &gt;= 1 and &lt;=
1980 # max_node_count.
1981 &quot;enabled&quot;: True or False, # Is autoscaling enabled for this node pool.
1982 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001983 &quot;initialNodeCount&quot;: 42, # The initial node count for the pool. You must ensure that your
1984 # Compute Engine &lt;a href=&quot;/compute/docs/resource-quotas&quot;&gt;resource quota&lt;/a&gt;
1985 # is sufficient for this number of instances. You must also have available
1986 # firewall and routes quota.
Bu Sun Kim65020912020-05-20 12:08:20 -07001987 &quot;selfLink&quot;: &quot;A String&quot;, # [Output only] Server-defined URL for the resource.
1988 &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 -07001989 # disruption caused by an upgrade.
1990 #
1991 # maxUnavailable controls the number of nodes that can be simultaneously
1992 # unavailable.
1993 #
1994 # maxSurge controls the number of additional nodes that can be added to the
1995 # node pool temporarily for the time of the upgrade to increase the number of
1996 # available nodes.
1997 #
1998 # (maxUnavailable + maxSurge) determines the level of parallelism (how many
1999 # nodes are being upgraded at the same time).
2000 #
2001 # Note: upgrades inevitably introduce some disruption since workloads need to
2002 # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
2003 # this holds true. (Disruption stays within the limits of
2004 # PodDisruptionBudget, if it is configured.)
2005 #
2006 # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
2007 # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
2008 # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
2009 # down 3 old (not yet upgraded) nodes at the same time. This ensures that
2010 # there are always at least 4 nodes available.
Bu Sun Kim65020912020-05-20 12:08:20 -07002011 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during
Dan O'Mearadd494642020-05-01 07:42:23 -07002012 # the upgrade process. A node is considered available if its status is
2013 # Ready.
Bu Sun Kim65020912020-05-20 12:08:20 -07002014 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size
2015 # of the node pool during the upgrade process.
Dan O'Mearadd494642020-05-01 07:42:23 -07002016 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002017 &quot;locations&quot;: [ # The list of Google Compute Engine
2018 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
2019 # NodePool&#x27;s nodes should be located.
2020 &quot;A String&quot;,
2021 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002022 &quot;instanceGroupUrls&quot;: [ # [Output only] The resource URLs of the [managed instance
2023 # groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
2024 # associated with this node pool.
2025 &quot;A String&quot;,
2026 ],
2027 &quot;version&quot;: &quot;A String&quot;, # The version of the Kubernetes of this node.
2028 &quot;podIpv4CidrSize&quot;: 42, # [Output only] The pod CIDR block size per node in this node pool.
2029 &quot;conditions&quot;: [ # Which conditions caused the current node pool state.
2030 { # StatusCondition describes why a cluster or a node pool has a certain status
2031 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07002032 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002033 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Dan O'Mearadd494642020-05-01 07:42:23 -07002034 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002035 ],
2036 &quot;status&quot;: &quot;A String&quot;, # [Output only] The status of the nodes in this pool instance.
2037 &quot;config&quot;: { # Parameters that describe the nodes in a cluster. # The node configuration of the pool.
Bu Sun Kim65020912020-05-20 12:08:20 -07002038 &quot;oauthScopes&quot;: [ # The set of Google API scopes to be made available on all of the
2039 # node VMs under the &quot;default&quot; service account.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04002040 #
2041 # The following scopes are recommended, but not required, and by default are
2042 # not included:
2043 #
2044 # * `https://www.googleapis.com/auth/compute` is required for mounting
2045 # persistent storage on your nodes.
2046 # * `https://www.googleapis.com/auth/devstorage.read_only` is required for
2047 # communicating with **gcr.io**
Dan O'Mearadd494642020-05-01 07:42:23 -07002048 # (the [Google Container
2049 # Registry](https://cloud.google.com/container-registry/)).
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04002050 #
2051 # If unspecified, no scopes are added, unless Cloud Logging or Cloud
2052 # Monitoring are enabled, in which case their required scopes will be added.
Bu Sun Kim65020912020-05-20 12:08:20 -07002053 &quot;A String&quot;,
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -07002054 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002055 &quot;taints&quot;: [ # List of kubernetes taints to be applied to each node.
Dan O'Mearadd494642020-05-01 07:42:23 -07002056 #
2057 # For more information, including usage and the valid values, see:
2058 # https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
2059 { # Kubernetes taint is comprised of three fields: key, value, and effect. Effect
2060 # can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute.
2061 #
Bu Sun Kim65020912020-05-20 12:08:20 -07002062 # See
2063 # [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration)
2064 # for more information, including usage and the valid values.
Bu Sun Kim65020912020-05-20 12:08:20 -07002065 &quot;effect&quot;: &quot;A String&quot;, # Effect for taint.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002066 &quot;value&quot;: &quot;A String&quot;, # Value for taint.
2067 &quot;key&quot;: &quot;A String&quot;, # Key for taint.
Dan O'Mearadd494642020-05-01 07:42:23 -07002068 },
2069 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002070 &quot;labels&quot;: { # The map of Kubernetes labels (key/value pairs) to be applied to each node.
2071 # These will added in addition to any default label(s) that
2072 # Kubernetes may apply to the node.
2073 # In case of conflict in label keys, the applied set may differ depending on
2074 # the Kubernetes version -- it&#x27;s best to assume the behavior is undefined
2075 # and conflicts should be avoided.
2076 # For more information, including usage and the valid values, see:
2077 # https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
2078 &quot;a_key&quot;: &quot;A String&quot;,
2079 },
2080 &quot;diskSizeGb&quot;: 42, # Size of the disk attached to each node, specified in GB.
2081 # The smallest allowed disk size is 10GB.
2082 #
2083 # If unspecified, the default disk size is 100GB.
2084 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to # The workload metadata configuration for this node.
2085 # workloads on the node pool.
2086 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running
2087 # on the node pool.
2088 },
2089 &quot;accelerators&quot;: [ # A list of hardware accelerators to be attached to each node.
2090 # See https://cloud.google.com/compute/docs/gpus for more information about
2091 # support for GPUs.
2092 { # AcceleratorConfig represents a Hardware Accelerator request.
Bu Sun Kim65020912020-05-20 12:08:20 -07002093 &quot;acceleratorType&quot;: &quot;A String&quot;, # The accelerator type resource name. List of supported accelerators
2094 # [here](https://cloud.google.com/compute/docs/gpus)
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002095 &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of the accelerator cards exposed to an instance.
Bu Sun Kim65020912020-05-20 12:08:20 -07002096 },
2097 ],
2098 &quot;machineType&quot;: &quot;A String&quot;, # The name of a Google Compute Engine [machine
2099 # type](https://cloud.google.com/compute/docs/machine-types) (e.g.
2100 # `n1-standard-1`).
2101 #
2102 # If unspecified, the default machine type is
2103 # `n1-standard-1`.
2104 &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;)
2105 #
2106 # If unspecified, the default disk type is &#x27;pd-standard&#x27;
2107 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
Bu Sun Kim65020912020-05-20 12:08:20 -07002108 &quot;enableIntegrityMonitoring&quot;: True or False, # Defines whether the instance has integrity monitoring enabled.
2109 #
2110 # Enables monitoring and attestation of the boot integrity of the instance.
2111 # The attestation is performed against the integrity policy baseline. This
2112 # baseline is initially derived from the implicitly trusted boot image when
2113 # the instance is created.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002114 &quot;enableSecureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled.
2115 #
2116 # Secure Boot helps ensure that the system only runs authentic software by
2117 # verifying the digital signature of all boot components, and halting the
2118 # boot process if signature verification fails.
Bu Sun Kim65020912020-05-20 12:08:20 -07002119 },
2120 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used by this instance. The instance may be
2121 # scheduled on the specified or newer CPU platform. Applicable values are the
2122 # friendly names of CPU platforms, such as
2123 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Haswell&amp;quot;&lt;/code&gt; or
2124 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Sandy Bridge&amp;quot;&lt;/code&gt;. For more
2125 # information, read [how to specify min CPU
2126 # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
2127 &quot;preemptible&quot;: True or False, # Whether the nodes are created as preemptible VM instances. See:
2128 # https://cloud.google.com/compute/docs/instances/preemptible for more
2129 # information about preemptible VM instances.
2130 &quot;localSsdCount&quot;: 42, # The number of local SSD disks to be attached to the node.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04002131 #
Dan O'Mearadd494642020-05-01 07:42:23 -07002132 # The limit for this value is dependent upon the maximum number of
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04002133 # disks available on a machine per zone. See:
Dan O'Mearadd494642020-05-01 07:42:23 -07002134 # https://cloud.google.com/compute/docs/disks/local-ssd
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04002135 # for more information.
Bu Sun Kim65020912020-05-20 12:08:20 -07002136 &quot;sandboxConfig&quot;: { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node.
2137 &quot;type&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002138 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002139 &quot;metadata&quot;: { # The metadata key/value pairs assigned to instances in the cluster.
2140 #
2141 # Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
2142 # in length. These are reflected as part of a URL in the metadata server.
2143 # Additionally, to avoid ambiguity, keys must not conflict with any other
2144 # metadata keys for the project or be one of the reserved keys:
2145 # &quot;cluster-location&quot;
2146 # &quot;cluster-name&quot;
2147 # &quot;cluster-uid&quot;
2148 # &quot;configure-sh&quot;
2149 # &quot;containerd-configure-sh&quot;
2150 # &quot;enable-os-login&quot;
2151 # &quot;gci-ensure-gke-docker&quot;
2152 # &quot;gci-metrics-enabled&quot;
2153 # &quot;gci-update-strategy&quot;
2154 # &quot;instance-template&quot;
2155 # &quot;kube-env&quot;
2156 # &quot;startup-script&quot;
2157 # &quot;user-data&quot;
2158 # &quot;disable-address-manager&quot;
2159 # &quot;windows-startup-script-ps1&quot;
2160 # &quot;common-psm1&quot;
2161 # &quot;k8s-node-setup-psm1&quot;
2162 # &quot;install-ssh-psm1&quot;
2163 # &quot;user-profile-psm1&quot;
2164 # &quot;serial-port-logging-enable&quot;
2165 #
2166 # Values are free-form strings, and only have meaning as interpreted by
2167 # the image running in the instance. The only restriction placed on them is
2168 # that each value&#x27;s size must be less than or equal to 32 KB.
2169 #
2170 # The total size of all keys and values must be less than 512 KB.
2171 &quot;a_key&quot;: &quot;A String&quot;,
2172 },
2173 &quot;reservationAffinity&quot;: { # [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) # The optional reservation affinity. Setting this field will apply
2174 # the specified [Zonal Compute
2175 # Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
2176 # to this node pool.
2177 # is the configuration of desired reservation which instances could take
2178 # capacity from.
Bu Sun Kim65020912020-05-20 12:08:20 -07002179 &quot;values&quot;: [ # Corresponds to the label value(s) of reservation resource(s).
2180 &quot;A String&quot;,
2181 ],
2182 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Corresponds to the type of reservation consumption.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002183 &quot;key&quot;: &quot;A String&quot;, # Corresponds to the label key of a reservation resource. To target a
2184 # SPECIFIC_RESERVATION by name, specify &quot;googleapis.com/reservation-name&quot; as
2185 # the key and specify the name of your reservation as its value.
Bu Sun Kim65020912020-05-20 12:08:20 -07002186 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002187 &quot;tags&quot;: [ # The list of instance tags applied to all nodes. Tags are used to identify
2188 # valid sources or targets for network firewalls and are specified by
2189 # the client during cluster or node pool creation. Each tag within the list
2190 # must comply with RFC1035.
2191 &quot;A String&quot;,
2192 ],
2193 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs.
2194 # Specify the email address of the Service Account; otherwise, if no Service
2195 # Account is specified, the &quot;default&quot; service account is used.
2196 &quot;imageType&quot;: &quot;A String&quot;, # The image type to use for this node. Note that for a given image type,
2197 # the latest version of it will be used.
Bu Sun Kim65020912020-05-20 12:08:20 -07002198 },
2199 &quot;maxPodsConstraint&quot;: { # Constraints applied to pods. # The constraint on the maximum number of pods that can be run
2200 # simultaneously on a node in the node pool.
2201 &quot;maxPodsPerNode&quot;: &quot;A String&quot;, # Constraint enforced on the max num of pods per node.
2202 },
2203 &quot;name&quot;: &quot;A String&quot;, # The name of the node pool.
2204 &quot;management&quot;: { # NodeManagement defines the set of node management services turned on for the # NodeManagement configuration for this NodePool.
2205 # node pool.
2206 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool.
2207 # the Auto Upgrades will proceed.
Bu Sun Kim65020912020-05-20 12:08:20 -07002208 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
2209 # with the approximate start time for the upgrades, in
2210 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002211 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
2212 # with the description of the upgrade.
Bu Sun Kim65020912020-05-20 12:08:20 -07002213 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002214 &quot;autoRepair&quot;: True or False, # A flag that specifies whether the node auto-repair is enabled for the node
2215 # pool. If enabled, the nodes in this node pool will be monitored and, if
2216 # they fail health checks too many times, an automatic repair action will be
2217 # triggered.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002218 &quot;autoUpgrade&quot;: True or False, # A flag that specifies whether node auto-upgrade is enabled for the node
2219 # pool. If enabled, node auto-upgrade helps keep the nodes in your node pool
2220 # up to date with the latest release version of Kubernetes.
Bu Sun Kim65020912020-05-20 12:08:20 -07002221 },
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -07002222 },
2223 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002224 &quot;selfLink&quot;: &quot;A String&quot;, # [Output only] Server-defined URL for the resource.
2225 &quot;networkPolicy&quot;: { # Configuration options for the NetworkPolicy feature. # Configuration options for the NetworkPolicy feature.
2226 # https://kubernetes.io/docs/concepts/services-networking/networkpolicies/
2227 &quot;provider&quot;: &quot;A String&quot;, # The selected network policy provider.
2228 &quot;enabled&quot;: True or False, # Whether network policy is enabled on the cluster.
2229 },
2230 &quot;servicesIpv4Cidr&quot;: &quot;A String&quot;, # [Output only] The IP address range of the Kubernetes services in
2231 # this cluster, in
2232 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
2233 # notation (e.g. `1.2.3.4/29`). Service addresses are
2234 # typically put in the last `/16` from the container CIDR.
2235 &quot;enableKubernetesAlpha&quot;: True or False, # Kubernetes alpha features are enabled on this cluster. This includes alpha
2236 # API groups (e.g. v1alpha1) and features that may not be production ready in
2237 # the kubernetes version of the master and nodes.
2238 # The cluster has no SLA for uptime and master/node upgrades are disabled.
2239 # Alpha enabled clusters are automatically deleted thirty days after
2240 # creation.
2241 &quot;description&quot;: &quot;A String&quot;, # An optional description of this cluster.
2242 &quot;conditions&quot;: [ # Which conditions caused the current cluster state.
2243 { # StatusCondition describes why a cluster or a node pool has a certain status
2244 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07002245 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002246 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim65020912020-05-20 12:08:20 -07002247 },
2248 ],
2249 &quot;currentNodeCount&quot;: 42, # [Output only] The number of nodes currently in the cluster. Deprecated.
2250 # Call Kubernetes API directly to retrieve node information.
2251 &quot;monitoringService&quot;: &quot;A String&quot;, # The monitoring service the cluster should use to write metrics.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04002252 # Currently available options:
2253 #
Bu Sun Kim65020912020-05-20 12:08:20 -07002254 # * &quot;monitoring.googleapis.com/kubernetes&quot; - The Cloud Monitoring
Dan O'Mearadd494642020-05-01 07:42:23 -07002255 # service with a Kubernetes-native resource model
2256 # * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
2257 # longer available as of GKE 1.15).
2258 # * `none` - No metrics will be exported from the cluster.
2259 #
2260 # If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
2261 # used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
Bu Sun Kim65020912020-05-20 12:08:20 -07002262 &quot;databaseEncryption&quot;: { # Configuration of etcd encryption. # Configuration of etcd encryption.
2263 &quot;keyName&quot;: &quot;A String&quot;, # Name of CloudKMS key to use for the encryption of secrets in etcd.
2264 # Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key
2265 &quot;state&quot;: &quot;A String&quot;, # Denotes the state of etcd encryption.
Takashi Matsuo06694102015-09-11 13:55:40 -07002266 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002267 &quot;binaryAuthorization&quot;: { # Configuration for Binary Authorization. # Configuration for Binary Authorization.
2268 &quot;enabled&quot;: True or False, # Enable Binary Authorization for this cluster. If enabled, all container
2269 # images will be validated by Binary Authorization.
2270 },
2271 &quot;tpuIpv4CidrBlock&quot;: &quot;A String&quot;, # [Output only] The IP address range of the Cloud TPUs in this cluster, in
2272 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
2273 # notation (e.g. `1.2.3.4/29`).
2274 &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
2275 # policies.
2276 # policies.
2277 &quot;workloadPool&quot;: &quot;A String&quot;, # The workload pool to attach all Kubernetes service accounts to.
2278 },
2279 &quot;zone&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
2280 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
2281 # cluster resides. This field is deprecated, use location instead.
2282 &quot;expireTime&quot;: &quot;A String&quot;, # [Output only] The time the cluster will be automatically
2283 # deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
2284 &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 -07002285 # Currently available options:
2286 #
Dan O'Mearadd494642020-05-01 07:42:23 -07002287 # * `logging.googleapis.com/kubernetes` - The Cloud Logging
2288 # service with a Kubernetes-native resource model
2289 # * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
2290 # available as of GKE 1.15).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002291 # * `none` - no logs will be exported from the cluster.
Dan O'Mearadd494642020-05-01 07:42:23 -07002292 #
2293 # If left as an empty string,`logging.googleapis.com/kubernetes` will be
2294 # used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
Bu Sun Kim65020912020-05-20 12:08:20 -07002295 &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 -04002296 # For requests, this field should only be used in lieu of a
Bu Sun Kim65020912020-05-20 12:08:20 -07002297 # &quot;node_pool&quot; object, since this configuration (along with the
2298 # &quot;initial_node_count&quot;) will be used to create a &quot;NodePool&quot; object with an
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04002299 # auto-generated name. Do not use this and a node_pool at the same time.
2300 # For responses, this field will be populated with the node configuration of
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002301 # the first node pool. (For configuration of each node pool, see
2302 # `node_pool.config`)
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04002303 #
2304 # If unspecified, the defaults are used.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002305 # This field is deprecated, use node_pool.config instead.
Bu Sun Kim65020912020-05-20 12:08:20 -07002306 &quot;oauthScopes&quot;: [ # The set of Google API scopes to be made available on all of the
2307 # node VMs under the &quot;default&quot; service account.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04002308 #
2309 # The following scopes are recommended, but not required, and by default are
2310 # not included:
2311 #
2312 # * `https://www.googleapis.com/auth/compute` is required for mounting
2313 # persistent storage on your nodes.
2314 # * `https://www.googleapis.com/auth/devstorage.read_only` is required for
2315 # communicating with **gcr.io**
Dan O'Mearadd494642020-05-01 07:42:23 -07002316 # (the [Google Container
2317 # Registry](https://cloud.google.com/container-registry/)).
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04002318 #
2319 # If unspecified, no scopes are added, unless Cloud Logging or Cloud
2320 # Monitoring are enabled, in which case their required scopes will be added.
Bu Sun Kim65020912020-05-20 12:08:20 -07002321 &quot;A String&quot;,
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04002322 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002323 &quot;taints&quot;: [ # List of kubernetes taints to be applied to each node.
Dan O'Mearadd494642020-05-01 07:42:23 -07002324 #
2325 # For more information, including usage and the valid values, see:
2326 # https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
2327 { # Kubernetes taint is comprised of three fields: key, value, and effect. Effect
2328 # can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute.
2329 #
Bu Sun Kim65020912020-05-20 12:08:20 -07002330 # See
2331 # [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration)
2332 # for more information, including usage and the valid values.
Bu Sun Kim65020912020-05-20 12:08:20 -07002333 &quot;effect&quot;: &quot;A String&quot;, # Effect for taint.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002334 &quot;value&quot;: &quot;A String&quot;, # Value for taint.
2335 &quot;key&quot;: &quot;A String&quot;, # Key for taint.
Dan O'Mearadd494642020-05-01 07:42:23 -07002336 },
2337 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002338 &quot;labels&quot;: { # The map of Kubernetes labels (key/value pairs) to be applied to each node.
2339 # These will added in addition to any default label(s) that
2340 # Kubernetes may apply to the node.
2341 # In case of conflict in label keys, the applied set may differ depending on
2342 # the Kubernetes version -- it&#x27;s best to assume the behavior is undefined
2343 # and conflicts should be avoided.
2344 # For more information, including usage and the valid values, see:
2345 # https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
2346 &quot;a_key&quot;: &quot;A String&quot;,
2347 },
2348 &quot;diskSizeGb&quot;: 42, # Size of the disk attached to each node, specified in GB.
2349 # The smallest allowed disk size is 10GB.
2350 #
2351 # If unspecified, the default disk size is 100GB.
2352 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to # The workload metadata configuration for this node.
2353 # workloads on the node pool.
2354 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running
2355 # on the node pool.
2356 },
2357 &quot;accelerators&quot;: [ # A list of hardware accelerators to be attached to each node.
2358 # See https://cloud.google.com/compute/docs/gpus for more information about
2359 # support for GPUs.
2360 { # AcceleratorConfig represents a Hardware Accelerator request.
Bu Sun Kim65020912020-05-20 12:08:20 -07002361 &quot;acceleratorType&quot;: &quot;A String&quot;, # The accelerator type resource name. List of supported accelerators
2362 # [here](https://cloud.google.com/compute/docs/gpus)
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002363 &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of the accelerator cards exposed to an instance.
Bu Sun Kim65020912020-05-20 12:08:20 -07002364 },
2365 ],
2366 &quot;machineType&quot;: &quot;A String&quot;, # The name of a Google Compute Engine [machine
2367 # type](https://cloud.google.com/compute/docs/machine-types) (e.g.
2368 # `n1-standard-1`).
2369 #
2370 # If unspecified, the default machine type is
2371 # `n1-standard-1`.
2372 &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;)
2373 #
2374 # If unspecified, the default disk type is &#x27;pd-standard&#x27;
2375 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
Bu Sun Kim65020912020-05-20 12:08:20 -07002376 &quot;enableIntegrityMonitoring&quot;: True or False, # Defines whether the instance has integrity monitoring enabled.
2377 #
2378 # Enables monitoring and attestation of the boot integrity of the instance.
2379 # The attestation is performed against the integrity policy baseline. This
2380 # baseline is initially derived from the implicitly trusted boot image when
2381 # the instance is created.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002382 &quot;enableSecureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled.
2383 #
2384 # Secure Boot helps ensure that the system only runs authentic software by
2385 # verifying the digital signature of all boot components, and halting the
2386 # boot process if signature verification fails.
Bu Sun Kim65020912020-05-20 12:08:20 -07002387 },
2388 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used by this instance. The instance may be
2389 # scheduled on the specified or newer CPU platform. Applicable values are the
2390 # friendly names of CPU platforms, such as
2391 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Haswell&amp;quot;&lt;/code&gt; or
2392 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Sandy Bridge&amp;quot;&lt;/code&gt;. For more
2393 # information, read [how to specify min CPU
2394 # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
2395 &quot;preemptible&quot;: True or False, # Whether the nodes are created as preemptible VM instances. See:
2396 # https://cloud.google.com/compute/docs/instances/preemptible for more
2397 # information about preemptible VM instances.
2398 &quot;localSsdCount&quot;: 42, # The number of local SSD disks to be attached to the node.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04002399 #
Dan O'Mearadd494642020-05-01 07:42:23 -07002400 # The limit for this value is dependent upon the maximum number of
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04002401 # disks available on a machine per zone. See:
Dan O'Mearadd494642020-05-01 07:42:23 -07002402 # https://cloud.google.com/compute/docs/disks/local-ssd
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04002403 # for more information.
Bu Sun Kim65020912020-05-20 12:08:20 -07002404 &quot;sandboxConfig&quot;: { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node.
2405 &quot;type&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node.
2406 },
2407 &quot;metadata&quot;: { # The metadata key/value pairs assigned to instances in the cluster.
2408 #
2409 # Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
2410 # in length. These are reflected as part of a URL in the metadata server.
2411 # Additionally, to avoid ambiguity, keys must not conflict with any other
2412 # metadata keys for the project or be one of the reserved keys:
2413 # &quot;cluster-location&quot;
2414 # &quot;cluster-name&quot;
2415 # &quot;cluster-uid&quot;
2416 # &quot;configure-sh&quot;
2417 # &quot;containerd-configure-sh&quot;
2418 # &quot;enable-os-login&quot;
2419 # &quot;gci-ensure-gke-docker&quot;
2420 # &quot;gci-metrics-enabled&quot;
2421 # &quot;gci-update-strategy&quot;
2422 # &quot;instance-template&quot;
2423 # &quot;kube-env&quot;
2424 # &quot;startup-script&quot;
2425 # &quot;user-data&quot;
2426 # &quot;disable-address-manager&quot;
2427 # &quot;windows-startup-script-ps1&quot;
2428 # &quot;common-psm1&quot;
2429 # &quot;k8s-node-setup-psm1&quot;
2430 # &quot;install-ssh-psm1&quot;
2431 # &quot;user-profile-psm1&quot;
2432 # &quot;serial-port-logging-enable&quot;
2433 #
2434 # Values are free-form strings, and only have meaning as interpreted by
2435 # the image running in the instance. The only restriction placed on them is
2436 # that each value&#x27;s size must be less than or equal to 32 KB.
2437 #
2438 # The total size of all keys and values must be less than 512 KB.
2439 &quot;a_key&quot;: &quot;A String&quot;,
2440 },
2441 &quot;reservationAffinity&quot;: { # [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) # The optional reservation affinity. Setting this field will apply
2442 # the specified [Zonal Compute
2443 # Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
2444 # to this node pool.
2445 # is the configuration of desired reservation which instances could take
2446 # capacity from.
Bu Sun Kim65020912020-05-20 12:08:20 -07002447 &quot;values&quot;: [ # Corresponds to the label value(s) of reservation resource(s).
2448 &quot;A String&quot;,
2449 ],
2450 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Corresponds to the type of reservation consumption.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002451 &quot;key&quot;: &quot;A String&quot;, # Corresponds to the label key of a reservation resource. To target a
2452 # SPECIFIC_RESERVATION by name, specify &quot;googleapis.com/reservation-name&quot; as
2453 # the key and specify the name of your reservation as its value.
Bu Sun Kim65020912020-05-20 12:08:20 -07002454 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002455 &quot;tags&quot;: [ # The list of instance tags applied to all nodes. Tags are used to identify
2456 # valid sources or targets for network firewalls and are specified by
2457 # the client during cluster or node pool creation. Each tag within the list
2458 # must comply with RFC1035.
2459 &quot;A String&quot;,
2460 ],
2461 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs.
2462 # Specify the email address of the Service Account; otherwise, if no Service
2463 # Account is specified, the &quot;default&quot; service account is used.
2464 &quot;imageType&quot;: &quot;A String&quot;, # The image type to use for this node. Note that for a given image type,
2465 # the latest version of it will be used.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04002466 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002467 &quot;status&quot;: &quot;A String&quot;, # [Output only] The current status of this cluster.
2468 &quot;networkConfig&quot;: { # NetworkConfig reports the relative names of network &amp; subnetwork. # Configuration for cluster networking.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002469 &quot;enableIntraNodeVisibility&quot;: True or False, # Whether Intra-node visibility is enabled for this cluster.
2470 # This makes same node pod to pod traffic visible for VPC network.
Bu Sun Kim65020912020-05-20 12:08:20 -07002471 &quot;subnetwork&quot;: &quot;A String&quot;, # Output only. The relative name of the Google Compute Engine
2472 # [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the
2473 # cluster is connected. Example:
2474 # projects/my-project/regions/us-central1/subnetworks/my-subnet
2475 &quot;network&quot;: &quot;A String&quot;, # Output only. The relative name of the Google Compute Engine
2476 # network(https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
2477 # to which the cluster is connected. Example:
2478 # projects/my-project/global/networks/my-network
Bu Sun Kim65020912020-05-20 12:08:20 -07002479 },
2480 &quot;name&quot;: &quot;A String&quot;, # The name of this cluster. The name must be unique within this project
2481 # and location (e.g. zone or region), and can be up to 40 characters with
2482 # the following restrictions:
2483 #
2484 # * Lowercase letters, numbers, and hyphens only.
2485 # * Must start with a letter.
2486 # * Must end with a number or a letter.
2487 &quot;endpoint&quot;: &quot;A String&quot;, # [Output only] The IP address of this cluster&#x27;s master endpoint.
2488 # The endpoint can be accessed from the internet at
2489 # `https://username:password@endpoint/`.
2490 #
2491 # See the `masterAuth` property of this resource for username and
2492 # password information.
2493 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
2494 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
2495 # or
2496 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
2497 # in which the cluster resides.
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 Kim4ed7d3f2020-05-27 12:20:54 -07002520 &quot;clusterId&quot;: &quot;A String&quot;, # Deprecated. The name of the cluster to update.
2521 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07002522 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster id) of the cluster to set legacy abac.
2523 # Specified in the format `projects/*/locations/*/clusters/*`.
2524 &quot;enabled&quot;: True or False, # Required. Whether ABAC authorization will be enabled in the cluster.
2525 &quot;projectId&quot;: &quot;A String&quot;, # Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002526 # number](https://support.google.com/cloud/answer/6158840).
2527 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07002528 &quot;zone&quot;: &quot;A String&quot;, # Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07002529 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
2530 # cluster resides. This field has been deprecated and replaced by the name
2531 # 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 Kim4ed7d3f2020-05-27 12:20:54 -07002544 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
2545 { # StatusCondition describes why a cluster or a node pool has a certain status
2546 # (e.g., ERROR or DEGRADED).
2547 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
2548 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
2549 },
2550 ],
2551 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
2552 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
2553 # Unset for single-stage operations.
2554 &quot;stages&quot;: [ # Substages of an operation or a stage.
2555 # Object with schema name: OperationProgress
2556 ],
2557 &quot;metrics&quot;: [ # Progress metric bundle, for example:
2558 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
2559 # {name: &quot;nodes total&quot;, int_value: 32}]
2560 # or
2561 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
2562 # {name: &quot;progress scale&quot;, double_value: 1.0}]
2563 { # Progress metric is (string, int|float|string) pair.
2564 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
2565 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
2566 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
2567 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
2568 },
2569 ],
2570 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
2571 # Unset for single-stage operations.
2572 },
2573 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
2574 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
2575 # operation is taking place. This field is deprecated, use location instead.
2576 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
2577 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
2578 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
2579 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
2580 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
2581 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Bu Sun Kim65020912020-05-20 12:08:20 -07002582 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
2583 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002584 { # StatusCondition describes why a cluster or a node pool has a certain status
2585 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07002586 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002587 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002588 },
2589 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002590 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
Dan O'Mearadd494642020-05-01 07:42:23 -07002591 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07002592 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07002593 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
2594 # or
2595 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
2596 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07002597 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
2598 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
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 Kim4ed7d3f2020-05-27 12:20:54 -07002630 &quot;createTime&quot;: &quot;A String&quot;, # [Output only] The time the cluster was created, in
2631 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
2632 &quot;clusterIpv4Cidr&quot;: &quot;A String&quot;, # The IP address range of the container pods in this cluster, in
2633 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
2634 # notation (e.g. `10.96.0.0/14`). Leave blank to have
2635 # one automatically chosen or specify a `/14` block in `10.0.0.0/8`.
2636 &quot;autoscaling&quot;: { # ClusterAutoscaling contains global, per-cluster information # Cluster-level autoscaling configuration.
2637 # required by Cluster Autoscaler to automatically adjust
2638 # the size of the cluster and create/delete
2639 # node pools based on the current needs.
2640 &quot;autoprovisioningLocations&quot;: [ # The list of Google Compute Engine
2641 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
2642 # NodePool&#x27;s nodes can be created by NAP.
2643 &quot;A String&quot;,
2644 ],
2645 &quot;resourceLimits&quot;: [ # Contains global constraints regarding minimum and maximum
2646 # amount of resources in the cluster.
2647 { # Contains information about amount of some resource in the cluster.
2648 # For memory, value should be in GB.
2649 &quot;minimum&quot;: &quot;A String&quot;, # Minimum amount of the resource in the cluster.
2650 &quot;maximum&quot;: &quot;A String&quot;, # Maximum amount of the resource in the cluster.
2651 &quot;resourceType&quot;: &quot;A String&quot;, # Resource name &quot;cpu&quot;, &quot;memory&quot; or gpu-specific string.
2652 },
2653 ],
2654 &quot;enableNodeAutoprovisioning&quot;: True or False, # Enables automatic node pool creation and deletion.
2655 &quot;autoprovisioningNodePoolDefaults&quot;: { # AutoprovisioningNodePoolDefaults contains defaults for a node pool created # AutoprovisioningNodePoolDefaults contains defaults for a node pool
2656 # created by NAP.
2657 # by NAP.
2658 &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.
2659 # node pool.
2660 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool.
2661 # the Auto Upgrades will proceed.
2662 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
2663 # with the approximate start time for the upgrades, in
2664 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
2665 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
2666 # with the description of the upgrade.
2667 },
2668 &quot;autoRepair&quot;: True or False, # A flag that specifies whether the node auto-repair is enabled for the node
2669 # pool. If enabled, the nodes in this node pool will be monitored and, if
2670 # they fail health checks too many times, an automatic repair action will be
2671 # triggered.
2672 &quot;autoUpgrade&quot;: True or False, # A flag that specifies whether node auto-upgrade is enabled for the node
2673 # pool. If enabled, node auto-upgrade helps keep the nodes in your node pool
2674 # up to date with the latest release version of Kubernetes.
2675 },
2676 &quot;oauthScopes&quot;: [ # Scopes that are used by NAP when creating node pools. If oauth_scopes are
2677 # specified, service_account should be empty.
2678 &quot;A String&quot;,
2679 ],
2680 &quot;upgradeSettings&quot;: { # These upgrade settings control the level of parallelism and the level of # Specifies the upgrade settings for NAP created node pools
2681 # disruption caused by an upgrade.
2682 #
2683 # maxUnavailable controls the number of nodes that can be simultaneously
2684 # unavailable.
2685 #
2686 # maxSurge controls the number of additional nodes that can be added to the
2687 # node pool temporarily for the time of the upgrade to increase the number of
2688 # available nodes.
2689 #
2690 # (maxUnavailable + maxSurge) determines the level of parallelism (how many
2691 # nodes are being upgraded at the same time).
2692 #
2693 # Note: upgrades inevitably introduce some disruption since workloads need to
2694 # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
2695 # this holds true. (Disruption stays within the limits of
2696 # PodDisruptionBudget, if it is configured.)
2697 #
2698 # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
2699 # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
2700 # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
2701 # down 3 old (not yet upgraded) nodes at the same time. This ensures that
2702 # there are always at least 4 nodes available.
2703 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during
2704 # the upgrade process. A node is considered available if its status is
2705 # Ready.
2706 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size
2707 # of the node pool during the upgrade process.
2708 },
2709 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs. If
2710 # service_account is specified, scopes should be empty.
2711 },
2712 },
2713 &quot;initialNodeCount&quot;: 42, # The number of nodes to create in this cluster. You must ensure that your
2714 # Compute Engine &lt;a href=&quot;/compute/docs/resource-quotas&quot;&gt;resource quota&lt;/a&gt;
2715 # is sufficient for this number of instances. You must also have available
2716 # firewall and routes quota.
2717 # For requests, this field should only be used in lieu of a
2718 # &quot;node_pool&quot; object, since this configuration (along with the
2719 # &quot;node_config&quot;) will be used to create a &quot;NodePool&quot; object with an
2720 # auto-generated name. Do not use this and a node_pool at the same time.
2721 #
2722 # This field is deprecated, use node_pool.initial_node_count instead.
2723 &quot;instanceGroupUrls&quot;: [ # Deprecated. Use node_pools.instance_group_urls.
2724 &quot;A String&quot;,
2725 ],
2726 &quot;privateClusterConfig&quot;: { # Configuration options for private clusters. # Configuration for private cluster.
2727 &quot;masterIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP range in CIDR notation to use for the hosted master network. This
2728 # range will be used for assigning internal IP addresses to the master or
2729 # set of masters, as well as the ILB VIP. This range must not overlap with
2730 # any other ranges in use within the cluster&#x27;s network.
2731 &quot;enablePrivateNodes&quot;: True or False, # Whether nodes have internal IP addresses only. If enabled, all nodes are
2732 # given only RFC 1918 private addresses and communicate with the master via
2733 # private networking.
2734 &quot;privateEndpoint&quot;: &quot;A String&quot;, # Output only. The internal IP address of this cluster&#x27;s master endpoint.
2735 &quot;enablePrivateEndpoint&quot;: True or False, # Whether the master&#x27;s internal IP address is used as the cluster endpoint.
2736 &quot;peeringName&quot;: &quot;A String&quot;, # Output only. The peering name in the customer VPC used by this cluster.
2737 &quot;publicEndpoint&quot;: &quot;A String&quot;, # Output only. The external IP address of this cluster&#x27;s master endpoint.
2738 },
2739 &quot;shieldedNodes&quot;: { # Configuration of Shielded Nodes feature. # Shielded Nodes configuration.
2740 &quot;enabled&quot;: True or False, # Whether Shielded Nodes features are enabled on all nodes in this cluster.
2741 },
2742 &quot;verticalPodAutoscaling&quot;: { # VerticalPodAutoscaling contains global, per-cluster information # Cluster-level Vertical Pod Autoscaling configuration.
2743 # required by Vertical Pod Autoscaler to automatically adjust
2744 # the resources of pods controlled by it.
2745 &quot;enabled&quot;: True or False, # Enables vertical pod autoscaling.
2746 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002747 &quot;defaultMaxPodsConstraint&quot;: { # Constraints applied to pods. # The default constraint on the maximum number of pods that can be run
2748 # simultaneously on a node in the node pool of this cluster. Only honored
2749 # if cluster created with IP Alias support.
2750 &quot;maxPodsPerNode&quot;: &quot;A String&quot;, # Constraint enforced on the max num of pods per node.
2751 },
2752 &quot;network&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
2753 # [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
2754 # to which the cluster is connected. If left unspecified, the `default`
2755 # network will be used.
2756 &quot;labelFingerprint&quot;: &quot;A String&quot;, # The fingerprint of the set of labels for this cluster.
2757 &quot;nodeIpv4CidrSize&quot;: 42, # [Output only] The size of the address space on each node for hosting
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04002758 # containers. This is provisioned from within the `container_ipv4_cidr`
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002759 # range. This field will only be set when cluster is in route-based network
2760 # mode.
Bu Sun Kim65020912020-05-20 12:08:20 -07002761 &quot;masterAuthorizedNetworksConfig&quot;: { # Configuration options for the master authorized networks feature. Enabled # The configuration options for master authorized networks feature.
2762 # master authorized networks will disallow all external traffic to access
2763 # Kubernetes master through HTTPS except traffic from the given CIDR blocks,
2764 # Google Compute Engine Public IPs and Google Prod IPs.
Bu Sun Kim65020912020-05-20 12:08:20 -07002765 &quot;cidrBlocks&quot;: [ # cidr_blocks define up to 50 external networks that could access
2766 # Kubernetes master through HTTPS.
2767 { # CidrBlock contains an optional name and one CIDR block.
2768 &quot;displayName&quot;: &quot;A String&quot;, # display_name is an optional field for users to identify CIDR blocks.
2769 &quot;cidrBlock&quot;: &quot;A String&quot;, # cidr_block must be specified in CIDR notation.
2770 },
2771 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002772 &quot;enabled&quot;: True or False, # Whether or not master authorized networks is enabled.
Bu Sun Kim65020912020-05-20 12:08:20 -07002773 },
2774 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output only] Additional information about the current status of this
2775 # cluster, if available.
2776 &quot;masterAuth&quot;: { # The authentication information for accessing the master endpoint. # The authentication information for accessing the master endpoint.
2777 # If unspecified, the defaults are used:
2778 # For clusters before v1.12, if master_auth is unspecified, `username` will
2779 # be set to &quot;admin&quot;, a random password will be generated, and a client
2780 # certificate will be issued.
2781 # Authentication can be done using HTTP basic auth or using client
2782 # certificates.
Bu Sun Kim65020912020-05-20 12:08:20 -07002783 &quot;password&quot;: &quot;A String&quot;, # The password to use for HTTP basic authentication to the master endpoint.
2784 # Because the master endpoint is open to the Internet, you should create a
2785 # strong password. If a password is provided for cluster creation, username
2786 # must be non-empty.
2787 &quot;clientCertificateConfig&quot;: { # Configuration for client certificates on the cluster. # Configuration for client certificate authentication on the cluster. For
2788 # clusters before v1.12, if no configuration is specified, a client
2789 # certificate is issued.
2790 &quot;issueClientCertificate&quot;: True or False, # Issue a client certificate.
2791 },
2792 &quot;clientKey&quot;: &quot;A String&quot;, # [Output only] Base64-encoded private key used by clients to authenticate
2793 # to the cluster endpoint.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002794 &quot;clusterCaCertificate&quot;: &quot;A String&quot;, # [Output only] Base64-encoded public certificate that is the root of
2795 # trust for the cluster.
2796 &quot;clientCertificate&quot;: &quot;A String&quot;, # [Output only] Base64-encoded public certificate used by clients to
2797 # authenticate to the cluster endpoint.
2798 &quot;username&quot;: &quot;A String&quot;, # The username to use for HTTP basic authentication to the master endpoint.
2799 # For clusters v1.6.0 and later, basic authentication can be disabled by
2800 # leaving username unspecified (or setting it to the empty string).
Bu Sun Kim65020912020-05-20 12:08:20 -07002801 },
2802 &quot;authenticatorGroupsConfig&quot;: { # Configuration for returning group information from authenticators. # Configuration controlling RBAC group membership information.
2803 &quot;enabled&quot;: True or False, # Whether this cluster should return group membership lookups
2804 # during authentication using a group of security groups.
2805 &quot;securityGroup&quot;: &quot;A String&quot;, # The name of the security group-of-groups to be used. Only relevant
2806 # if enabled = true.
2807 },
2808 &quot;currentMasterVersion&quot;: &quot;A String&quot;, # [Output only] The current software version of the master endpoint.
2809 &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.
2810 # cluster, enabling additional functionality.
2811 &quot;networkPolicyConfig&quot;: { # Configuration for NetworkPolicy. This only tracks whether the addon # Configuration for NetworkPolicy. This only tracks whether the addon
2812 # is enabled or not on the Master, it does not track whether network policy
2813 # is enabled for the nodes.
2814 # is enabled or not on the Master, it does not track whether network policy
2815 # is enabled for the nodes.
2816 &quot;disabled&quot;: True or False, # Whether NetworkPolicy is enabled for this cluster.
2817 },
2818 &quot;cloudRunConfig&quot;: { # Configuration options for the Cloud Run feature. # Configuration for the Cloud Run addon, which allows the user to use a
2819 # managed Knative service.
2820 &quot;disabled&quot;: True or False, # Whether Cloud Run addon is enabled for this cluster.
2821 },
2822 &quot;horizontalPodAutoscaling&quot;: { # Configuration options for the horizontal pod autoscaling feature, which # Configuration for the horizontal pod autoscaling feature, which
2823 # increases or decreases the number of replica pods a replication controller
2824 # has based on the resource usage of the existing pods.
2825 # increases or decreases the number of replica pods a replication controller
2826 # has based on the resource usage of the existing pods.
2827 &quot;disabled&quot;: True or False, # Whether the Horizontal Pod Autoscaling feature is enabled in the cluster.
2828 # When enabled, it ensures that metrics are collected into Stackdriver
2829 # Monitoring.
2830 },
2831 &quot;httpLoadBalancing&quot;: { # Configuration options for the HTTP (L7) load balancing controller addon, # Configuration for the HTTP (L7) load balancing controller addon, which
2832 # makes it easy to set up HTTP load balancers for services in a cluster.
2833 # which makes it easy to set up HTTP load balancers for services in a cluster.
2834 &quot;disabled&quot;: True or False, # Whether the HTTP Load Balancing controller is enabled in the cluster.
2835 # When enabled, it runs a small pod in the cluster that manages the load
2836 # balancers.
2837 },
2838 &quot;kubernetesDashboard&quot;: { # Configuration for the Kubernetes Dashboard. # Configuration for the Kubernetes Dashboard.
2839 # This addon is deprecated, and will be disabled in 1.15. It is recommended
2840 # to use the Cloud Console to manage and monitor your Kubernetes clusters,
2841 # workloads and applications. For more information, see:
2842 # https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
2843 &quot;disabled&quot;: True or False, # Whether the Kubernetes Dashboard is enabled for this cluster.
2844 },
2845 },
2846 &quot;currentNodeVersion&quot;: &quot;A String&quot;, # [Output only] Deprecated, use
2847 # [NodePools.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.zones.clusters.nodePools)
2848 # instead. The current version of the node software components. If they are
2849 # currently at multiple versions because they&#x27;re in the process of being
2850 # upgraded, this reflects the minimum version of all nodes.
2851 &quot;subnetwork&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
2852 # [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which
2853 # the cluster is connected.
2854 &quot;resourceLabels&quot;: { # The resource labels for the cluster to use to annotate any related
2855 # Google Compute Engine resources.
2856 &quot;a_key&quot;: &quot;A String&quot;,
2857 },
2858 &quot;maintenancePolicy&quot;: { # MaintenancePolicy defines the maintenance policy to be used for the cluster. # Configure the maintenance policy for this cluster.
2859 &quot;window&quot;: { # MaintenanceWindow defines the maintenance window to be used for the cluster. # Specifies the maintenance window in which maintenance may be performed.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002860 &quot;maintenanceExclusions&quot;: { # Exceptions to maintenance window. Non-emergency maintenance should not
2861 # occur in these windows.
2862 &quot;a_key&quot;: { # Represents an arbitrary window of time.
2863 &quot;endTime&quot;: &quot;A String&quot;, # The time that the window ends. The end time should take place after the
2864 # start time.
2865 &quot;startTime&quot;: &quot;A String&quot;, # The time that the window first starts.
2866 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002867 },
2868 &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 -07002869 # maintenance to occur. The time windows may be overlapping. If no
2870 # maintenance windows are set, maintenance can occur at any time.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002871 &quot;window&quot;: { # Represents an arbitrary window of time. # The window of the first recurrence.
2872 &quot;endTime&quot;: &quot;A String&quot;, # The time that the window ends. The end time should take place after the
2873 # start time.
2874 &quot;startTime&quot;: &quot;A String&quot;, # The time that the window first starts.
2875 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002876 &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 -07002877 # this window reccurs. They go on for the span of time between the start and
2878 # end time.
2879 #
Bu Sun Kim65020912020-05-20 12:08:20 -07002880 # For example, to have something repeat every weekday, you&#x27;d use:
Dan O'Mearadd494642020-05-01 07:42:23 -07002881 # &lt;code&gt;FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR&lt;/code&gt;
2882 # To repeat some window daily (equivalent to the DailyMaintenanceWindow):
2883 # &lt;code&gt;FREQ=DAILY&lt;/code&gt;
2884 # For the first weekend of every month:
2885 # &lt;code&gt;FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU&lt;/code&gt;
2886 # This specifies how frequently the window starts. Eg, if you wanted to have
Bu Sun Kim65020912020-05-20 12:08:20 -07002887 # a 9-5 UTC-4 window every weekday, you&#x27;d use something like:
Dan O'Mearadd494642020-05-01 07:42:23 -07002888 # &lt;code&gt;
2889 # start time = 2019-01-01T09:00:00-0400
2890 # end time = 2019-01-01T17:00:00-0400
2891 # recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
2892 # &lt;/code&gt;
2893 # Windows can span multiple days. Eg, to make the window encompass every
2894 # weekend from midnight Saturday till the last minute of Sunday UTC:
2895 # &lt;code&gt;
2896 # start time = 2019-01-05T00:00:00Z
2897 # end time = 2019-01-07T23:59:00Z
2898 # recurrence = FREQ=WEEKLY;BYDAY=SA
2899 # &lt;/code&gt;
Bu Sun Kim65020912020-05-20 12:08:20 -07002900 # Note the start and end time&#x27;s specific dates are largely arbitrary except
Dan O'Mearadd494642020-05-01 07:42:23 -07002901 # to specify duration of the window and when it first starts.
2902 # The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.
Dan O'Mearadd494642020-05-01 07:42:23 -07002903 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002904 &quot;dailyMaintenanceWindow&quot;: { # Time window specified for daily maintenance operations. # DailyMaintenanceWindow specifies a daily maintenance operation window.
2905 &quot;startTime&quot;: &quot;A String&quot;, # Time within the maintenance window to start the maintenance operations.
2906 # Time format should be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)
2907 # format &quot;HH:MM&quot;, where HH : [00-23] and MM : [00-59] GMT.
2908 &quot;duration&quot;: &quot;A String&quot;, # [Output only] Duration of the time window, automatically chosen to be
2909 # smallest possible in the given scenario.
2910 # Duration will be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)
2911 # format &quot;PTnHnMnS&quot;.
Dan O'Mearadd494642020-05-01 07:42:23 -07002912 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002913 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002914 &quot;resourceVersion&quot;: &quot;A String&quot;, # A hash identifying the version of this policy, so that updates to fields of
2915 # the policy won&#x27;t accidentally undo intermediate changes (and so that users
2916 # of the API unaware of some fields won&#x27;t accidentally remove other fields).
Dan O'Mearadd494642020-05-01 07:42:23 -07002917 # Make a &lt;code&gt;get()&lt;/code&gt; request to the cluster to get the current
2918 # resource version and include it with requests to set the policy.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002919 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002920 &quot;initialClusterVersion&quot;: &quot;A String&quot;, # The initial Kubernetes version for this cluster. Valid versions are those
2921 # found in validMasterVersions returned by getServerConfig. The version can
2922 # be upgraded over time; such upgrades are reflected in
2923 # currentMasterVersion and currentNodeVersion.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002924 #
Bu Sun Kim65020912020-05-20 12:08:20 -07002925 # Users may specify either explicit versions offered by
2926 # Kubernetes Engine or version aliases, which have the following behavior:
2927 #
2928 # - &quot;latest&quot;: picks the highest valid Kubernetes version
2929 # - &quot;1.X&quot;: picks the highest valid patch+gke.N patch in the 1.X version
2930 # - &quot;1.X.Y&quot;: picks the highest valid gke.N patch in the 1.X.Y version
2931 # - &quot;1.X.Y-gke.N&quot;: picks an explicit Kubernetes version
2932 # - &quot;&quot;,&quot;-&quot;: picks the default Kubernetes version
2933 &quot;ipAllocationPolicy&quot;: { # Configuration for controlling how IPs are allocated in the cluster. # Configuration for cluster IP allocation.
Bu Sun Kim65020912020-05-20 12:08:20 -07002934 &quot;nodeIpv4Cidr&quot;: &quot;A String&quot;, # This field is deprecated, use node_ipv4_cidr_block.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002935 &quot;clusterSecondaryRangeName&quot;: &quot;A String&quot;, # The name of the secondary range to be used for the cluster CIDR
2936 # block. The secondary range will be used for pod IP
2937 # addresses. This must be an existing secondary range associated
2938 # with the cluster subnetwork.
2939 #
2940 # This field is only applicable with use_ip_aliases is true and
2941 # create_subnetwork is false.
Bu Sun Kim65020912020-05-20 12:08:20 -07002942 &quot;clusterIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP address range for the cluster pod IPs. If this field is set, then
2943 # `cluster.cluster_ipv4_cidr` must be left blank.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002944 #
2945 # This field is only applicable when `use_ip_aliases` is true.
Bu Sun Kim65020912020-05-20 12:08:20 -07002946 #
2947 # Set to blank to have a range chosen with the default size.
2948 #
2949 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
2950 # netmask.
2951 #
2952 # Set to a
2953 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
2954 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
2955 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
2956 # to use.
Bu Sun Kim65020912020-05-20 12:08:20 -07002957 &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 -07002958 #
2959 # This is applicable only if `create_subnetwork` is true.
2960 #
2961 # Set to blank to have a range chosen with the default size.
2962 #
2963 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
2964 # netmask.
2965 #
2966 # Set to a
2967 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
2968 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
2969 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
2970 # to use.
Bu Sun Kim65020912020-05-20 12:08:20 -07002971 &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 -07002972 # range will be automatically chosen with the default size.
2973 #
2974 # This field is only applicable when `use_ip_aliases` is true.
2975 #
2976 # If unspecified, the range will use the default size.
2977 #
2978 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
2979 # netmask.
2980 #
2981 # Set to a
2982 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
2983 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
2984 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
2985 # to use.
Bu Sun Kim65020912020-05-20 12:08:20 -07002986 &quot;useIpAliases&quot;: True or False, # Whether alias IPs will be used for pod IPs in the cluster.
2987 &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 -07002988 # CIDR block. The secondary range will be used for service
2989 # ClusterIPs. This must be an existing secondary range associated
2990 # with the cluster subnetwork.
2991 #
2992 # This field is only applicable with use_ip_aliases is true and
2993 # create_subnetwork is false.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002994 &quot;createSubnetwork&quot;: True or False, # Whether a new subnetwork will be created automatically for the cluster.
2995 #
2996 # This field is only applicable when `use_ip_aliases` is true.
Bu Sun Kim65020912020-05-20 12:08:20 -07002997 &quot;subnetworkName&quot;: &quot;A String&quot;, # A custom subnetwork name to be used if `create_subnetwork` is true. If
2998 # this field is empty, then an automatic name will be chosen for the new
2999 # subnetwork.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003000 &quot;clusterIpv4Cidr&quot;: &quot;A String&quot;, # This field is deprecated, use cluster_ipv4_cidr_block.
3001 &quot;servicesIpv4Cidr&quot;: &quot;A String&quot;, # This field is deprecated, use services_ipv4_cidr_block.
3002 &quot;servicesIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP address range of the services IPs in this cluster. If blank, a range
3003 # will be automatically chosen with the default size.
3004 #
3005 # This field is only applicable when `use_ip_aliases` is true.
3006 #
3007 # Set to blank to have a range chosen with the default size.
3008 #
3009 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
3010 # netmask.
3011 #
3012 # Set to a
3013 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
3014 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
3015 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
3016 # to use.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003017 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003018 &quot;legacyAbac&quot;: { # Configuration for the legacy Attribute Based Access Control authorization # Configuration for the legacy ABAC authorization mode.
3019 # mode.
3020 &quot;enabled&quot;: True or False, # Whether the ABAC authorizer is enabled for this cluster. When enabled,
3021 # identities in the system, including service accounts, nodes, and
3022 # controllers, will have statically granted permissions beyond those
3023 # provided by the RBAC configuration or IAM.
Dan O'Mearadd494642020-05-01 07:42:23 -07003024 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003025 &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 -07003026 # disabled when this config is unspecified.
Bu Sun Kim65020912020-05-20 12:08:20 -07003027 &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 -07003028 # daemonset will be created in the cluster to meter network egress traffic.
Bu Sun Kim65020912020-05-20 12:08:20 -07003029 &quot;consumptionMeteringConfig&quot;: { # Parameters for controlling consumption metering. # Configuration to enable resource consumption metering.
3030 &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 -07003031 # second BigQuery table will be created to hold resource consumption
3032 # records.
3033 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003034 &quot;bigqueryDestination&quot;: { # Parameters for using BigQuery as the destination of resource usage export. # Configuration to use BigQuery as usage export destination.
3035 &quot;datasetId&quot;: &quot;A String&quot;, # The ID of a BigQuery Dataset.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003036 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003037 },
3038 &quot;enableTpu&quot;: True or False, # Enable the ability to use Cloud TPUs in this cluster.
3039 &quot;locations&quot;: [ # The list of Google Compute Engine
3040 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
3041 # cluster&#x27;s nodes should be located.
3042 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003043 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003044 &quot;nodePools&quot;: [ # The node pools associated with this cluster.
3045 # 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 -04003046 # specified.
Bu Sun Kim65020912020-05-20 12:08:20 -07003047 { # NodePool contains the name and configuration for a cluster&#x27;s node pool.
3048 # Node pools are a set of nodes (i.e. VM&#x27;s), with a common configuration and
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04003049 # specification, under the control of the cluster master. They may have a set
3050 # of Kubernetes labels applied to them, which may be used to reference them
3051 # during pod scheduling. They may also be resized up or down, to accommodate
3052 # the workload.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003053 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output only] Additional information about the current status of this
3054 # node pool instance, if available.
3055 &quot;autoscaling&quot;: { # NodePoolAutoscaling contains information required by cluster autoscaler to # Autoscaler configuration for this NodePool. Autoscaler is enabled
3056 # only if a valid configuration is present.
3057 # adjust the size of the node pool to the current cluster usage.
3058 &quot;maxNodeCount&quot;: 42, # Maximum number of nodes in the NodePool. Must be &gt;= min_node_count. There
3059 # has to enough quota to scale up the cluster.
3060 &quot;autoprovisioned&quot;: True or False, # Can this node pool be deleted automatically.
3061 &quot;minNodeCount&quot;: 42, # Minimum number of nodes in the NodePool. Must be &gt;= 1 and &lt;=
3062 # max_node_count.
3063 &quot;enabled&quot;: True or False, # Is autoscaling enabled for this node pool.
3064 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003065 &quot;initialNodeCount&quot;: 42, # The initial node count for the pool. You must ensure that your
3066 # Compute Engine &lt;a href=&quot;/compute/docs/resource-quotas&quot;&gt;resource quota&lt;/a&gt;
3067 # is sufficient for this number of instances. You must also have available
3068 # firewall and routes quota.
Bu Sun Kim65020912020-05-20 12:08:20 -07003069 &quot;selfLink&quot;: &quot;A String&quot;, # [Output only] Server-defined URL for the resource.
3070 &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 -07003071 # disruption caused by an upgrade.
3072 #
3073 # maxUnavailable controls the number of nodes that can be simultaneously
3074 # unavailable.
3075 #
3076 # maxSurge controls the number of additional nodes that can be added to the
3077 # node pool temporarily for the time of the upgrade to increase the number of
3078 # available nodes.
3079 #
3080 # (maxUnavailable + maxSurge) determines the level of parallelism (how many
3081 # nodes are being upgraded at the same time).
3082 #
3083 # Note: upgrades inevitably introduce some disruption since workloads need to
3084 # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
3085 # this holds true. (Disruption stays within the limits of
3086 # PodDisruptionBudget, if it is configured.)
3087 #
3088 # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
3089 # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
3090 # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
3091 # down 3 old (not yet upgraded) nodes at the same time. This ensures that
3092 # there are always at least 4 nodes available.
Bu Sun Kim65020912020-05-20 12:08:20 -07003093 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during
Dan O'Mearadd494642020-05-01 07:42:23 -07003094 # the upgrade process. A node is considered available if its status is
3095 # Ready.
Bu Sun Kim65020912020-05-20 12:08:20 -07003096 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size
3097 # of the node pool during the upgrade process.
Dan O'Mearadd494642020-05-01 07:42:23 -07003098 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003099 &quot;locations&quot;: [ # The list of Google Compute Engine
3100 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
3101 # NodePool&#x27;s nodes should be located.
3102 &quot;A String&quot;,
3103 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003104 &quot;instanceGroupUrls&quot;: [ # [Output only] The resource URLs of the [managed instance
3105 # groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
3106 # associated with this node pool.
3107 &quot;A String&quot;,
3108 ],
3109 &quot;version&quot;: &quot;A String&quot;, # The version of the Kubernetes of this node.
3110 &quot;podIpv4CidrSize&quot;: 42, # [Output only] The pod CIDR block size per node in this node pool.
3111 &quot;conditions&quot;: [ # Which conditions caused the current node pool state.
3112 { # StatusCondition describes why a cluster or a node pool has a certain status
3113 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07003114 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003115 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Dan O'Mearadd494642020-05-01 07:42:23 -07003116 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003117 ],
3118 &quot;status&quot;: &quot;A String&quot;, # [Output only] The status of the nodes in this pool instance.
3119 &quot;config&quot;: { # Parameters that describe the nodes in a cluster. # The node configuration of the pool.
Bu Sun Kim65020912020-05-20 12:08:20 -07003120 &quot;oauthScopes&quot;: [ # The set of Google API scopes to be made available on all of the
3121 # node VMs under the &quot;default&quot; service account.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04003122 #
3123 # The following scopes are recommended, but not required, and by default are
3124 # not included:
3125 #
3126 # * `https://www.googleapis.com/auth/compute` is required for mounting
3127 # persistent storage on your nodes.
3128 # * `https://www.googleapis.com/auth/devstorage.read_only` is required for
3129 # communicating with **gcr.io**
Dan O'Mearadd494642020-05-01 07:42:23 -07003130 # (the [Google Container
3131 # Registry](https://cloud.google.com/container-registry/)).
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04003132 #
3133 # If unspecified, no scopes are added, unless Cloud Logging or Cloud
3134 # Monitoring are enabled, in which case their required scopes will be added.
Bu Sun Kim65020912020-05-20 12:08:20 -07003135 &quot;A String&quot;,
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -07003136 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003137 &quot;taints&quot;: [ # List of kubernetes taints to be applied to each node.
Dan O'Mearadd494642020-05-01 07:42:23 -07003138 #
3139 # For more information, including usage and the valid values, see:
3140 # https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
3141 { # Kubernetes taint is comprised of three fields: key, value, and effect. Effect
3142 # can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute.
3143 #
Bu Sun Kim65020912020-05-20 12:08:20 -07003144 # See
3145 # [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration)
3146 # for more information, including usage and the valid values.
Bu Sun Kim65020912020-05-20 12:08:20 -07003147 &quot;effect&quot;: &quot;A String&quot;, # Effect for taint.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003148 &quot;value&quot;: &quot;A String&quot;, # Value for taint.
3149 &quot;key&quot;: &quot;A String&quot;, # Key for taint.
Dan O'Mearadd494642020-05-01 07:42:23 -07003150 },
3151 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003152 &quot;labels&quot;: { # The map of Kubernetes labels (key/value pairs) to be applied to each node.
3153 # These will added in addition to any default label(s) that
3154 # Kubernetes may apply to the node.
3155 # In case of conflict in label keys, the applied set may differ depending on
3156 # the Kubernetes version -- it&#x27;s best to assume the behavior is undefined
3157 # and conflicts should be avoided.
3158 # For more information, including usage and the valid values, see:
3159 # https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
3160 &quot;a_key&quot;: &quot;A String&quot;,
3161 },
3162 &quot;diskSizeGb&quot;: 42, # Size of the disk attached to each node, specified in GB.
3163 # The smallest allowed disk size is 10GB.
3164 #
3165 # If unspecified, the default disk size is 100GB.
3166 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to # The workload metadata configuration for this node.
3167 # workloads on the node pool.
3168 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running
3169 # on the node pool.
3170 },
3171 &quot;accelerators&quot;: [ # A list of hardware accelerators to be attached to each node.
3172 # See https://cloud.google.com/compute/docs/gpus for more information about
3173 # support for GPUs.
3174 { # AcceleratorConfig represents a Hardware Accelerator request.
Bu Sun Kim65020912020-05-20 12:08:20 -07003175 &quot;acceleratorType&quot;: &quot;A String&quot;, # The accelerator type resource name. List of supported accelerators
3176 # [here](https://cloud.google.com/compute/docs/gpus)
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003177 &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of the accelerator cards exposed to an instance.
Bu Sun Kim65020912020-05-20 12:08:20 -07003178 },
3179 ],
3180 &quot;machineType&quot;: &quot;A String&quot;, # The name of a Google Compute Engine [machine
3181 # type](https://cloud.google.com/compute/docs/machine-types) (e.g.
3182 # `n1-standard-1`).
3183 #
3184 # If unspecified, the default machine type is
3185 # `n1-standard-1`.
3186 &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;)
3187 #
3188 # If unspecified, the default disk type is &#x27;pd-standard&#x27;
3189 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
Bu Sun Kim65020912020-05-20 12:08:20 -07003190 &quot;enableIntegrityMonitoring&quot;: True or False, # Defines whether the instance has integrity monitoring enabled.
3191 #
3192 # Enables monitoring and attestation of the boot integrity of the instance.
3193 # The attestation is performed against the integrity policy baseline. This
3194 # baseline is initially derived from the implicitly trusted boot image when
3195 # the instance is created.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003196 &quot;enableSecureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled.
3197 #
3198 # Secure Boot helps ensure that the system only runs authentic software by
3199 # verifying the digital signature of all boot components, and halting the
3200 # boot process if signature verification fails.
Bu Sun Kim65020912020-05-20 12:08:20 -07003201 },
3202 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used by this instance. The instance may be
3203 # scheduled on the specified or newer CPU platform. Applicable values are the
3204 # friendly names of CPU platforms, such as
3205 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Haswell&amp;quot;&lt;/code&gt; or
3206 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Sandy Bridge&amp;quot;&lt;/code&gt;. For more
3207 # information, read [how to specify min CPU
3208 # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
3209 &quot;preemptible&quot;: True or False, # Whether the nodes are created as preemptible VM instances. See:
3210 # https://cloud.google.com/compute/docs/instances/preemptible for more
3211 # information about preemptible VM instances.
3212 &quot;localSsdCount&quot;: 42, # The number of local SSD disks to be attached to the node.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04003213 #
Dan O'Mearadd494642020-05-01 07:42:23 -07003214 # The limit for this value is dependent upon the maximum number of
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04003215 # disks available on a machine per zone. See:
Dan O'Mearadd494642020-05-01 07:42:23 -07003216 # https://cloud.google.com/compute/docs/disks/local-ssd
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04003217 # for more information.
Bu Sun Kim65020912020-05-20 12:08:20 -07003218 &quot;sandboxConfig&quot;: { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node.
3219 &quot;type&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003220 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003221 &quot;metadata&quot;: { # The metadata key/value pairs assigned to instances in the cluster.
3222 #
3223 # Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
3224 # in length. These are reflected as part of a URL in the metadata server.
3225 # Additionally, to avoid ambiguity, keys must not conflict with any other
3226 # metadata keys for the project or be one of the reserved keys:
3227 # &quot;cluster-location&quot;
3228 # &quot;cluster-name&quot;
3229 # &quot;cluster-uid&quot;
3230 # &quot;configure-sh&quot;
3231 # &quot;containerd-configure-sh&quot;
3232 # &quot;enable-os-login&quot;
3233 # &quot;gci-ensure-gke-docker&quot;
3234 # &quot;gci-metrics-enabled&quot;
3235 # &quot;gci-update-strategy&quot;
3236 # &quot;instance-template&quot;
3237 # &quot;kube-env&quot;
3238 # &quot;startup-script&quot;
3239 # &quot;user-data&quot;
3240 # &quot;disable-address-manager&quot;
3241 # &quot;windows-startup-script-ps1&quot;
3242 # &quot;common-psm1&quot;
3243 # &quot;k8s-node-setup-psm1&quot;
3244 # &quot;install-ssh-psm1&quot;
3245 # &quot;user-profile-psm1&quot;
3246 # &quot;serial-port-logging-enable&quot;
3247 #
3248 # Values are free-form strings, and only have meaning as interpreted by
3249 # the image running in the instance. The only restriction placed on them is
3250 # that each value&#x27;s size must be less than or equal to 32 KB.
3251 #
3252 # The total size of all keys and values must be less than 512 KB.
3253 &quot;a_key&quot;: &quot;A String&quot;,
3254 },
3255 &quot;reservationAffinity&quot;: { # [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) # The optional reservation affinity. Setting this field will apply
3256 # the specified [Zonal Compute
3257 # Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
3258 # to this node pool.
3259 # is the configuration of desired reservation which instances could take
3260 # capacity from.
Bu Sun Kim65020912020-05-20 12:08:20 -07003261 &quot;values&quot;: [ # Corresponds to the label value(s) of reservation resource(s).
3262 &quot;A String&quot;,
3263 ],
3264 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Corresponds to the type of reservation consumption.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003265 &quot;key&quot;: &quot;A String&quot;, # Corresponds to the label key of a reservation resource. To target a
3266 # SPECIFIC_RESERVATION by name, specify &quot;googleapis.com/reservation-name&quot; as
3267 # the key and specify the name of your reservation as its value.
Bu Sun Kim65020912020-05-20 12:08:20 -07003268 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003269 &quot;tags&quot;: [ # The list of instance tags applied to all nodes. Tags are used to identify
3270 # valid sources or targets for network firewalls and are specified by
3271 # the client during cluster or node pool creation. Each tag within the list
3272 # must comply with RFC1035.
3273 &quot;A String&quot;,
3274 ],
3275 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs.
3276 # Specify the email address of the Service Account; otherwise, if no Service
3277 # Account is specified, the &quot;default&quot; service account is used.
3278 &quot;imageType&quot;: &quot;A String&quot;, # The image type to use for this node. Note that for a given image type,
3279 # the latest version of it will be used.
Bu Sun Kim65020912020-05-20 12:08:20 -07003280 },
3281 &quot;maxPodsConstraint&quot;: { # Constraints applied to pods. # The constraint on the maximum number of pods that can be run
3282 # simultaneously on a node in the node pool.
3283 &quot;maxPodsPerNode&quot;: &quot;A String&quot;, # Constraint enforced on the max num of pods per node.
3284 },
3285 &quot;name&quot;: &quot;A String&quot;, # The name of the node pool.
3286 &quot;management&quot;: { # NodeManagement defines the set of node management services turned on for the # NodeManagement configuration for this NodePool.
3287 # node pool.
3288 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool.
3289 # the Auto Upgrades will proceed.
Bu Sun Kim65020912020-05-20 12:08:20 -07003290 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
3291 # with the approximate start time for the upgrades, in
3292 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003293 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
3294 # with the description of the upgrade.
Bu Sun Kim65020912020-05-20 12:08:20 -07003295 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003296 &quot;autoRepair&quot;: True or False, # A flag that specifies whether the node auto-repair is enabled for the node
3297 # pool. If enabled, the nodes in this node pool will be monitored and, if
3298 # they fail health checks too many times, an automatic repair action will be
3299 # triggered.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003300 &quot;autoUpgrade&quot;: True or False, # A flag that specifies whether node auto-upgrade is enabled for the node
3301 # pool. If enabled, node auto-upgrade helps keep the nodes in your node pool
3302 # up to date with the latest release version of Kubernetes.
Bu Sun Kim65020912020-05-20 12:08:20 -07003303 },
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -07003304 },
3305 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003306 &quot;selfLink&quot;: &quot;A String&quot;, # [Output only] Server-defined URL for the resource.
3307 &quot;networkPolicy&quot;: { # Configuration options for the NetworkPolicy feature. # Configuration options for the NetworkPolicy feature.
3308 # https://kubernetes.io/docs/concepts/services-networking/networkpolicies/
3309 &quot;provider&quot;: &quot;A String&quot;, # The selected network policy provider.
3310 &quot;enabled&quot;: True or False, # Whether network policy is enabled on the cluster.
3311 },
3312 &quot;servicesIpv4Cidr&quot;: &quot;A String&quot;, # [Output only] The IP address range of the Kubernetes services in
3313 # this cluster, in
3314 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
3315 # notation (e.g. `1.2.3.4/29`). Service addresses are
3316 # typically put in the last `/16` from the container CIDR.
3317 &quot;enableKubernetesAlpha&quot;: True or False, # Kubernetes alpha features are enabled on this cluster. This includes alpha
3318 # API groups (e.g. v1alpha1) and features that may not be production ready in
3319 # the kubernetes version of the master and nodes.
3320 # The cluster has no SLA for uptime and master/node upgrades are disabled.
3321 # Alpha enabled clusters are automatically deleted thirty days after
3322 # creation.
3323 &quot;description&quot;: &quot;A String&quot;, # An optional description of this cluster.
3324 &quot;conditions&quot;: [ # Which conditions caused the current cluster state.
3325 { # StatusCondition describes why a cluster or a node pool has a certain status
3326 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07003327 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003328 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim65020912020-05-20 12:08:20 -07003329 },
3330 ],
3331 &quot;currentNodeCount&quot;: 42, # [Output only] The number of nodes currently in the cluster. Deprecated.
3332 # Call Kubernetes API directly to retrieve node information.
3333 &quot;monitoringService&quot;: &quot;A String&quot;, # The monitoring service the cluster should use to write metrics.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04003334 # Currently available options:
3335 #
Bu Sun Kim65020912020-05-20 12:08:20 -07003336 # * &quot;monitoring.googleapis.com/kubernetes&quot; - The Cloud Monitoring
Dan O'Mearadd494642020-05-01 07:42:23 -07003337 # service with a Kubernetes-native resource model
3338 # * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
3339 # longer available as of GKE 1.15).
3340 # * `none` - No metrics will be exported from the cluster.
3341 #
3342 # If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
3343 # used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
Bu Sun Kim65020912020-05-20 12:08:20 -07003344 &quot;databaseEncryption&quot;: { # Configuration of etcd encryption. # Configuration of etcd encryption.
3345 &quot;keyName&quot;: &quot;A String&quot;, # Name of CloudKMS key to use for the encryption of secrets in etcd.
3346 # Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key
3347 &quot;state&quot;: &quot;A String&quot;, # Denotes the state of etcd encryption.
Takashi Matsuo06694102015-09-11 13:55:40 -07003348 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003349 &quot;binaryAuthorization&quot;: { # Configuration for Binary Authorization. # Configuration for Binary Authorization.
3350 &quot;enabled&quot;: True or False, # Enable Binary Authorization for this cluster. If enabled, all container
3351 # images will be validated by Binary Authorization.
3352 },
3353 &quot;tpuIpv4CidrBlock&quot;: &quot;A String&quot;, # [Output only] The IP address range of the Cloud TPUs in this cluster, in
3354 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
3355 # notation (e.g. `1.2.3.4/29`).
3356 &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
3357 # policies.
3358 # policies.
3359 &quot;workloadPool&quot;: &quot;A String&quot;, # The workload pool to attach all Kubernetes service accounts to.
3360 },
3361 &quot;zone&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
3362 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
3363 # cluster resides. This field is deprecated, use location instead.
3364 &quot;expireTime&quot;: &quot;A String&quot;, # [Output only] The time the cluster will be automatically
3365 # deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
3366 &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 -07003367 # Currently available options:
3368 #
Dan O'Mearadd494642020-05-01 07:42:23 -07003369 # * `logging.googleapis.com/kubernetes` - The Cloud Logging
3370 # service with a Kubernetes-native resource model
3371 # * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
3372 # available as of GKE 1.15).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003373 # * `none` - no logs will be exported from the cluster.
Dan O'Mearadd494642020-05-01 07:42:23 -07003374 #
3375 # If left as an empty string,`logging.googleapis.com/kubernetes` will be
3376 # used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
Bu Sun Kim65020912020-05-20 12:08:20 -07003377 &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 -04003378 # For requests, this field should only be used in lieu of a
Bu Sun Kim65020912020-05-20 12:08:20 -07003379 # &quot;node_pool&quot; object, since this configuration (along with the
3380 # &quot;initial_node_count&quot;) will be used to create a &quot;NodePool&quot; object with an
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04003381 # auto-generated name. Do not use this and a node_pool at the same time.
3382 # For responses, this field will be populated with the node configuration of
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003383 # the first node pool. (For configuration of each node pool, see
3384 # `node_pool.config`)
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04003385 #
3386 # If unspecified, the defaults are used.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003387 # This field is deprecated, use node_pool.config instead.
Bu Sun Kim65020912020-05-20 12:08:20 -07003388 &quot;oauthScopes&quot;: [ # The set of Google API scopes to be made available on all of the
3389 # node VMs under the &quot;default&quot; service account.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04003390 #
3391 # The following scopes are recommended, but not required, and by default are
3392 # not included:
3393 #
3394 # * `https://www.googleapis.com/auth/compute` is required for mounting
3395 # persistent storage on your nodes.
3396 # * `https://www.googleapis.com/auth/devstorage.read_only` is required for
3397 # communicating with **gcr.io**
Dan O'Mearadd494642020-05-01 07:42:23 -07003398 # (the [Google Container
3399 # Registry](https://cloud.google.com/container-registry/)).
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04003400 #
3401 # If unspecified, no scopes are added, unless Cloud Logging or Cloud
3402 # Monitoring are enabled, in which case their required scopes will be added.
Bu Sun Kim65020912020-05-20 12:08:20 -07003403 &quot;A String&quot;,
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04003404 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003405 &quot;taints&quot;: [ # List of kubernetes taints to be applied to each node.
Dan O'Mearadd494642020-05-01 07:42:23 -07003406 #
3407 # For more information, including usage and the valid values, see:
3408 # https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
3409 { # Kubernetes taint is comprised of three fields: key, value, and effect. Effect
3410 # can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute.
3411 #
Bu Sun Kim65020912020-05-20 12:08:20 -07003412 # See
3413 # [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration)
3414 # for more information, including usage and the valid values.
Bu Sun Kim65020912020-05-20 12:08:20 -07003415 &quot;effect&quot;: &quot;A String&quot;, # Effect for taint.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003416 &quot;value&quot;: &quot;A String&quot;, # Value for taint.
3417 &quot;key&quot;: &quot;A String&quot;, # Key for taint.
Dan O'Mearadd494642020-05-01 07:42:23 -07003418 },
3419 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003420 &quot;labels&quot;: { # The map of Kubernetes labels (key/value pairs) to be applied to each node.
3421 # These will added in addition to any default label(s) that
3422 # Kubernetes may apply to the node.
3423 # In case of conflict in label keys, the applied set may differ depending on
3424 # the Kubernetes version -- it&#x27;s best to assume the behavior is undefined
3425 # and conflicts should be avoided.
3426 # For more information, including usage and the valid values, see:
3427 # https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
3428 &quot;a_key&quot;: &quot;A String&quot;,
3429 },
3430 &quot;diskSizeGb&quot;: 42, # Size of the disk attached to each node, specified in GB.
3431 # The smallest allowed disk size is 10GB.
3432 #
3433 # If unspecified, the default disk size is 100GB.
3434 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to # The workload metadata configuration for this node.
3435 # workloads on the node pool.
3436 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running
3437 # on the node pool.
3438 },
3439 &quot;accelerators&quot;: [ # A list of hardware accelerators to be attached to each node.
3440 # See https://cloud.google.com/compute/docs/gpus for more information about
3441 # support for GPUs.
3442 { # AcceleratorConfig represents a Hardware Accelerator request.
Bu Sun Kim65020912020-05-20 12:08:20 -07003443 &quot;acceleratorType&quot;: &quot;A String&quot;, # The accelerator type resource name. List of supported accelerators
3444 # [here](https://cloud.google.com/compute/docs/gpus)
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003445 &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of the accelerator cards exposed to an instance.
Bu Sun Kim65020912020-05-20 12:08:20 -07003446 },
3447 ],
3448 &quot;machineType&quot;: &quot;A String&quot;, # The name of a Google Compute Engine [machine
3449 # type](https://cloud.google.com/compute/docs/machine-types) (e.g.
3450 # `n1-standard-1`).
3451 #
3452 # If unspecified, the default machine type is
3453 # `n1-standard-1`.
3454 &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;)
3455 #
3456 # If unspecified, the default disk type is &#x27;pd-standard&#x27;
3457 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
Bu Sun Kim65020912020-05-20 12:08:20 -07003458 &quot;enableIntegrityMonitoring&quot;: True or False, # Defines whether the instance has integrity monitoring enabled.
3459 #
3460 # Enables monitoring and attestation of the boot integrity of the instance.
3461 # The attestation is performed against the integrity policy baseline. This
3462 # baseline is initially derived from the implicitly trusted boot image when
3463 # the instance is created.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003464 &quot;enableSecureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled.
3465 #
3466 # Secure Boot helps ensure that the system only runs authentic software by
3467 # verifying the digital signature of all boot components, and halting the
3468 # boot process if signature verification fails.
Bu Sun Kim65020912020-05-20 12:08:20 -07003469 },
3470 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used by this instance. The instance may be
3471 # scheduled on the specified or newer CPU platform. Applicable values are the
3472 # friendly names of CPU platforms, such as
3473 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Haswell&amp;quot;&lt;/code&gt; or
3474 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Sandy Bridge&amp;quot;&lt;/code&gt;. For more
3475 # information, read [how to specify min CPU
3476 # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
3477 &quot;preemptible&quot;: True or False, # Whether the nodes are created as preemptible VM instances. See:
3478 # https://cloud.google.com/compute/docs/instances/preemptible for more
3479 # information about preemptible VM instances.
3480 &quot;localSsdCount&quot;: 42, # The number of local SSD disks to be attached to the node.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04003481 #
Dan O'Mearadd494642020-05-01 07:42:23 -07003482 # The limit for this value is dependent upon the maximum number of
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04003483 # disks available on a machine per zone. See:
Dan O'Mearadd494642020-05-01 07:42:23 -07003484 # https://cloud.google.com/compute/docs/disks/local-ssd
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04003485 # for more information.
Bu Sun Kim65020912020-05-20 12:08:20 -07003486 &quot;sandboxConfig&quot;: { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node.
3487 &quot;type&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node.
3488 },
3489 &quot;metadata&quot;: { # The metadata key/value pairs assigned to instances in the cluster.
3490 #
3491 # Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
3492 # in length. These are reflected as part of a URL in the metadata server.
3493 # Additionally, to avoid ambiguity, keys must not conflict with any other
3494 # metadata keys for the project or be one of the reserved keys:
3495 # &quot;cluster-location&quot;
3496 # &quot;cluster-name&quot;
3497 # &quot;cluster-uid&quot;
3498 # &quot;configure-sh&quot;
3499 # &quot;containerd-configure-sh&quot;
3500 # &quot;enable-os-login&quot;
3501 # &quot;gci-ensure-gke-docker&quot;
3502 # &quot;gci-metrics-enabled&quot;
3503 # &quot;gci-update-strategy&quot;
3504 # &quot;instance-template&quot;
3505 # &quot;kube-env&quot;
3506 # &quot;startup-script&quot;
3507 # &quot;user-data&quot;
3508 # &quot;disable-address-manager&quot;
3509 # &quot;windows-startup-script-ps1&quot;
3510 # &quot;common-psm1&quot;
3511 # &quot;k8s-node-setup-psm1&quot;
3512 # &quot;install-ssh-psm1&quot;
3513 # &quot;user-profile-psm1&quot;
3514 # &quot;serial-port-logging-enable&quot;
3515 #
3516 # Values are free-form strings, and only have meaning as interpreted by
3517 # the image running in the instance. The only restriction placed on them is
3518 # that each value&#x27;s size must be less than or equal to 32 KB.
3519 #
3520 # The total size of all keys and values must be less than 512 KB.
3521 &quot;a_key&quot;: &quot;A String&quot;,
3522 },
3523 &quot;reservationAffinity&quot;: { # [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) # The optional reservation affinity. Setting this field will apply
3524 # the specified [Zonal Compute
3525 # Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
3526 # to this node pool.
3527 # is the configuration of desired reservation which instances could take
3528 # capacity from.
Bu Sun Kim65020912020-05-20 12:08:20 -07003529 &quot;values&quot;: [ # Corresponds to the label value(s) of reservation resource(s).
3530 &quot;A String&quot;,
3531 ],
3532 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Corresponds to the type of reservation consumption.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003533 &quot;key&quot;: &quot;A String&quot;, # Corresponds to the label key of a reservation resource. To target a
3534 # SPECIFIC_RESERVATION by name, specify &quot;googleapis.com/reservation-name&quot; as
3535 # the key and specify the name of your reservation as its value.
Bu Sun Kim65020912020-05-20 12:08:20 -07003536 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003537 &quot;tags&quot;: [ # The list of instance tags applied to all nodes. Tags are used to identify
3538 # valid sources or targets for network firewalls and are specified by
3539 # the client during cluster or node pool creation. Each tag within the list
3540 # must comply with RFC1035.
3541 &quot;A String&quot;,
3542 ],
3543 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs.
3544 # Specify the email address of the Service Account; otherwise, if no Service
3545 # Account is specified, the &quot;default&quot; service account is used.
3546 &quot;imageType&quot;: &quot;A String&quot;, # The image type to use for this node. Note that for a given image type,
3547 # the latest version of it will be used.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04003548 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003549 &quot;status&quot;: &quot;A String&quot;, # [Output only] The current status of this cluster.
3550 &quot;networkConfig&quot;: { # NetworkConfig reports the relative names of network &amp; subnetwork. # Configuration for cluster networking.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003551 &quot;enableIntraNodeVisibility&quot;: True or False, # Whether Intra-node visibility is enabled for this cluster.
3552 # This makes same node pod to pod traffic visible for VPC network.
Bu Sun Kim65020912020-05-20 12:08:20 -07003553 &quot;subnetwork&quot;: &quot;A String&quot;, # Output only. The relative name of the Google Compute Engine
3554 # [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the
3555 # cluster is connected. Example:
3556 # projects/my-project/regions/us-central1/subnetworks/my-subnet
3557 &quot;network&quot;: &quot;A String&quot;, # Output only. The relative name of the Google Compute Engine
3558 # network(https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
3559 # to which the cluster is connected. Example:
3560 # projects/my-project/global/networks/my-network
Bu Sun Kim65020912020-05-20 12:08:20 -07003561 },
3562 &quot;name&quot;: &quot;A String&quot;, # The name of this cluster. The name must be unique within this project
3563 # and location (e.g. zone or region), and can be up to 40 characters with
3564 # the following restrictions:
3565 #
3566 # * Lowercase letters, numbers, and hyphens only.
3567 # * Must start with a letter.
3568 # * Must end with a number or a letter.
3569 &quot;endpoint&quot;: &quot;A String&quot;, # [Output only] The IP address of this cluster&#x27;s master endpoint.
3570 # The endpoint can be accessed from the internet at
3571 # `https://username:password@endpoint/`.
3572 #
3573 # See the `masterAuth` property of this resource for username and
3574 # password information.
3575 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
3576 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
3577 # or
3578 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
3579 # in which the cluster resides.
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 Kim4ed7d3f2020-05-27 12:20:54 -07003610 &quot;clusterId&quot;: &quot;A String&quot;, # Deprecated. The name of the cluster to upgrade.
3611 # This field has been deprecated and replaced by the name field.
3612 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster) of the cluster to set locations.
3613 # Specified in the format `projects/*/locations/*/clusters/*`.
Bu Sun Kim65020912020-05-20 12:08:20 -07003614 &quot;projectId&quot;: &quot;A String&quot;, # Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003615 # number](https://support.google.com/cloud/answer/6158840).
3616 # This field has been deprecated and replaced by the name 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 Kim4ed7d3f2020-05-27 12:20:54 -07003626 &quot;zone&quot;: &quot;A String&quot;, # Deprecated. The name of the Google Compute Engine
3627 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
3628 # cluster resides. This field has been deprecated and replaced by the name
3629 # field.
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 Kim4ed7d3f2020-05-27 12:20:54 -07003642 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
3643 { # StatusCondition describes why a cluster or a node pool has a certain status
3644 # (e.g., ERROR or DEGRADED).
3645 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
3646 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
3647 },
3648 ],
3649 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
3650 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
3651 # Unset for single-stage operations.
3652 &quot;stages&quot;: [ # Substages of an operation or a stage.
3653 # Object with schema name: OperationProgress
3654 ],
3655 &quot;metrics&quot;: [ # Progress metric bundle, for example:
3656 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
3657 # {name: &quot;nodes total&quot;, int_value: 32}]
3658 # or
3659 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
3660 # {name: &quot;progress scale&quot;, double_value: 1.0}]
3661 { # Progress metric is (string, int|float|string) pair.
3662 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
3663 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
3664 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
3665 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
3666 },
3667 ],
3668 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
3669 # Unset for single-stage operations.
3670 },
3671 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
3672 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
3673 # operation is taking place. This field is deprecated, use location instead.
3674 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
3675 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
3676 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
3677 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
3678 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
3679 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Bu Sun Kim65020912020-05-20 12:08:20 -07003680 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
3681 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003682 { # StatusCondition describes why a cluster or a node pool has a certain status
3683 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07003684 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003685 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003686 },
3687 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003688 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
Dan O'Mearadd494642020-05-01 07:42:23 -07003689 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07003690 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07003691 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
3692 # or
3693 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
3694 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07003695 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
3696 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
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 Kim4ed7d3f2020-05-27 12:20:54 -07003718 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster) of the cluster to set logging.
3719 # Specified in the format `projects/*/locations/*/clusters/*`.
Bu Sun Kim65020912020-05-20 12:08:20 -07003720 &quot;projectId&quot;: &quot;A String&quot;, # Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003721 # number](https://support.google.com/cloud/answer/6158840).
3722 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07003723 &quot;zone&quot;: &quot;A String&quot;, # Deprecated. The name of the Google Compute Engine
3724 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
3725 # cluster resides. This field has been deprecated and replaced by the name
3726 # field.
3727 &quot;clusterId&quot;: &quot;A String&quot;, # Deprecated. The name of the cluster to upgrade.
3728 # This field has been deprecated and replaced by the name field.
3729 &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 -07003730 # Currently available options:
3731 #
Dan O'Mearadd494642020-05-01 07:42:23 -07003732 # * `logging.googleapis.com/kubernetes` - The Cloud Logging
3733 # service with a Kubernetes-native resource model
3734 # * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
3735 # available as of GKE 1.15).
3736 # * `none` - no logs will be exported from the cluster.
3737 #
3738 # If left as an empty string,`logging.googleapis.com/kubernetes` will be
3739 # used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
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 Kim4ed7d3f2020-05-27 12:20:54 -07003752 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
3753 { # StatusCondition describes why a cluster or a node pool has a certain status
3754 # (e.g., ERROR or DEGRADED).
3755 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
3756 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
3757 },
3758 ],
3759 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
3760 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
3761 # Unset for single-stage operations.
3762 &quot;stages&quot;: [ # Substages of an operation or a stage.
3763 # Object with schema name: OperationProgress
3764 ],
3765 &quot;metrics&quot;: [ # Progress metric bundle, for example:
3766 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
3767 # {name: &quot;nodes total&quot;, int_value: 32}]
3768 # or
3769 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
3770 # {name: &quot;progress scale&quot;, double_value: 1.0}]
3771 { # Progress metric is (string, int|float|string) pair.
3772 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
3773 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
3774 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
3775 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
3776 },
3777 ],
3778 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
3779 # Unset for single-stage operations.
3780 },
3781 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
3782 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
3783 # operation is taking place. This field is deprecated, use location instead.
3784 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
3785 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
3786 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
3787 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
3788 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
3789 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Bu Sun Kim65020912020-05-20 12:08:20 -07003790 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
3791 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003792 { # StatusCondition describes why a cluster or a node pool has a certain status
3793 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07003794 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003795 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003796 },
3797 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003798 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
Dan O'Mearadd494642020-05-01 07:42:23 -07003799 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07003800 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07003801 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
3802 # or
3803 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
3804 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07003805 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
3806 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
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;projectId&quot;: &quot;A String&quot;, # Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003829 # number](https://support.google.com/cloud/answer/6158840).
3830 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07003831 &quot;masterVersion&quot;: &quot;A String&quot;, # Required. The Kubernetes version to change the master to.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003832 #
3833 # Users may specify either explicit versions offered by Kubernetes Engine or
3834 # version aliases, which have the following behavior:
3835 #
Bu Sun Kim65020912020-05-20 12:08:20 -07003836 # - &quot;latest&quot;: picks the highest valid Kubernetes version
3837 # - &quot;1.X&quot;: picks the highest valid patch+gke.N patch in the 1.X version
3838 # - &quot;1.X.Y&quot;: picks the highest valid gke.N patch in the 1.X.Y version
3839 # - &quot;1.X.Y-gke.N&quot;: picks an explicit Kubernetes version
3840 # - &quot;-&quot;: picks the default Kubernetes version
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003841 &quot;zone&quot;: &quot;A String&quot;, # Deprecated. The name of the Google Compute Engine
3842 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
3843 # cluster resides. This field has been deprecated and replaced by the name
3844 # field.
Bu Sun Kim65020912020-05-20 12:08:20 -07003845 &quot;clusterId&quot;: &quot;A String&quot;, # Deprecated. The name of the cluster to upgrade.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003846 # This field has been deprecated and replaced by the name field.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003847 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster) of the cluster to update.
3848 # Specified in the format `projects/*/locations/*/clusters/*`.
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 Kim4ed7d3f2020-05-27 12:20:54 -07003861 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
3862 { # StatusCondition describes why a cluster or a node pool has a certain status
3863 # (e.g., ERROR or DEGRADED).
3864 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
3865 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
3866 },
3867 ],
3868 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
3869 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
3870 # Unset for single-stage operations.
3871 &quot;stages&quot;: [ # Substages of an operation or a stage.
3872 # Object with schema name: OperationProgress
3873 ],
3874 &quot;metrics&quot;: [ # Progress metric bundle, for example:
3875 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
3876 # {name: &quot;nodes total&quot;, int_value: 32}]
3877 # or
3878 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
3879 # {name: &quot;progress scale&quot;, double_value: 1.0}]
3880 { # Progress metric is (string, int|float|string) pair.
3881 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
3882 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
3883 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
3884 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
3885 },
3886 ],
3887 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
3888 # Unset for single-stage operations.
3889 },
3890 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
3891 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
3892 # operation is taking place. This field is deprecated, use location instead.
3893 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
3894 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
3895 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
3896 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
3897 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
3898 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Bu Sun Kim65020912020-05-20 12:08:20 -07003899 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
3900 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003901 { # StatusCondition describes why a cluster or a node pool has a certain status
3902 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07003903 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003904 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003905 },
3906 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003907 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
Dan O'Mearadd494642020-05-01 07:42:23 -07003908 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07003909 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07003910 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
3911 # or
3912 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
3913 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07003914 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
3915 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
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 Kim4ed7d3f2020-05-27 12:20:54 -07003937 &quot;clusterId&quot;: &quot;A String&quot;, # Deprecated. The name of the cluster to upgrade.
3938 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07003939 &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 -07003940 # Currently available options:
3941 #
Bu Sun Kim65020912020-05-20 12:08:20 -07003942 # * &quot;monitoring.googleapis.com/kubernetes&quot; - The Cloud Monitoring
Dan O'Mearadd494642020-05-01 07:42:23 -07003943 # service with a Kubernetes-native resource model
3944 # * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
3945 # longer available as of GKE 1.15).
3946 # * `none` - No metrics will be exported from the cluster.
3947 #
3948 # If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
3949 # used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
Bu Sun Kim65020912020-05-20 12:08:20 -07003950 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster) of the cluster to set monitoring.
3951 # Specified in the format `projects/*/locations/*/clusters/*`.
3952 &quot;projectId&quot;: &quot;A String&quot;, # Deprecated. The Google Developers Console [project ID or project
3953 # number](https://support.google.com/cloud/answer/6158840).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003954 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07003955 &quot;zone&quot;: &quot;A String&quot;, # Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07003956 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
3957 # cluster resides. This field has been deprecated and replaced by the name
3958 # 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 Kim4ed7d3f2020-05-27 12:20:54 -07003971 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
3972 { # StatusCondition describes why a cluster or a node pool has a certain status
3973 # (e.g., ERROR or DEGRADED).
3974 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
3975 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
3976 },
3977 ],
3978 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
3979 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
3980 # Unset for single-stage operations.
3981 &quot;stages&quot;: [ # Substages of an operation or a stage.
3982 # Object with schema name: OperationProgress
3983 ],
3984 &quot;metrics&quot;: [ # Progress metric bundle, for example:
3985 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
3986 # {name: &quot;nodes total&quot;, int_value: 32}]
3987 # or
3988 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
3989 # {name: &quot;progress scale&quot;, double_value: 1.0}]
3990 { # Progress metric is (string, int|float|string) pair.
3991 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
3992 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
3993 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
3994 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
3995 },
3996 ],
3997 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
3998 # Unset for single-stage operations.
3999 },
4000 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
4001 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4002 # operation is taking place. This field is deprecated, use location instead.
4003 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
4004 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
4005 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
4006 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
4007 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
4008 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Bu Sun Kim65020912020-05-20 12:08:20 -07004009 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
4010 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004011 { # StatusCondition describes why a cluster or a node pool has a certain status
4012 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07004013 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004014 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004015 },
4016 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07004017 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
Dan O'Mearadd494642020-05-01 07:42:23 -07004018 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07004019 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07004020 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4021 # or
4022 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4023 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07004024 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
4025 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
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;clusterId&quot;: &quot;A String&quot;, # Deprecated. The name of the cluster.
4050 # This field has been deprecated and replaced by the name field.
4051 &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 -04004052 # used to detect conflicts. The fingerprint is initially generated by
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004053 # Kubernetes Engine and changes after every request to modify or update
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04004054 # labels. You must always provide an up-to-date fingerprint hash when
Dan O'Mearadd494642020-05-01 07:42:23 -07004055 # updating or changing labels. Make a &lt;code&gt;get()&lt;/code&gt; request to the
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04004056 # resource to get the latest fingerprint.
Bu Sun Kim65020912020-05-20 12:08:20 -07004057 &quot;zone&quot;: &quot;A String&quot;, # Deprecated. The name of the Google Compute Engine
4058 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4059 # cluster resides. This field has been deprecated and replaced by the name
4060 # field.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004061 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster id) of the cluster to set labels.
4062 # Specified in the format `projects/*/locations/*/clusters/*`.
4063 &quot;resourceLabels&quot;: { # Required. The labels to set for that cluster.
4064 &quot;a_key&quot;: &quot;A String&quot;,
4065 },
4066 &quot;projectId&quot;: &quot;A String&quot;, # Deprecated. The Google Developers Console [project ID or project
4067 # number](https://developers.google.com/console/help/new/#projectnumber).
4068 # This field has been deprecated and replaced by the name 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 Kim4ed7d3f2020-05-27 12:20:54 -07004081 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
4082 { # StatusCondition describes why a cluster or a node pool has a certain status
4083 # (e.g., ERROR or DEGRADED).
4084 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
4085 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
4086 },
4087 ],
4088 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
4089 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
4090 # Unset for single-stage operations.
4091 &quot;stages&quot;: [ # Substages of an operation or a stage.
4092 # Object with schema name: OperationProgress
4093 ],
4094 &quot;metrics&quot;: [ # Progress metric bundle, for example:
4095 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
4096 # {name: &quot;nodes total&quot;, int_value: 32}]
4097 # or
4098 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
4099 # {name: &quot;progress scale&quot;, double_value: 1.0}]
4100 { # Progress metric is (string, int|float|string) pair.
4101 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
4102 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
4103 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
4104 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
4105 },
4106 ],
4107 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
4108 # Unset for single-stage operations.
4109 },
4110 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
4111 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4112 # operation is taking place. This field is deprecated, use location instead.
4113 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
4114 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
4115 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
4116 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
4117 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
4118 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Bu Sun Kim65020912020-05-20 12:08:20 -07004119 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
4120 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004121 { # StatusCondition describes why a cluster or a node pool has a certain status
4122 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07004123 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004124 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004125 },
4126 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07004127 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
Dan O'Mearadd494642020-05-01 07:42:23 -07004128 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07004129 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07004130 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4131 # or
4132 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4133 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07004134 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
4135 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
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 Kim4ed7d3f2020-05-27 12:20:54 -07004154 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster id) of the cluster to set maintenance
4155 # policy.
4156 # Specified in the format `projects/*/locations/*/clusters/*`.
Bu Sun Kim65020912020-05-20 12:08:20 -07004157 &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 -07004158 # clears the existing maintenance policy.
Bu Sun Kim65020912020-05-20 12:08:20 -07004159 &quot;window&quot;: { # MaintenanceWindow defines the maintenance window to be used for the cluster. # Specifies the maintenance window in which maintenance may be performed.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004160 &quot;maintenanceExclusions&quot;: { # Exceptions to maintenance window. Non-emergency maintenance should not
4161 # occur in these windows.
4162 &quot;a_key&quot;: { # Represents an arbitrary window of time.
4163 &quot;endTime&quot;: &quot;A String&quot;, # The time that the window ends. The end time should take place after the
4164 # start time.
4165 &quot;startTime&quot;: &quot;A String&quot;, # The time that the window first starts.
4166 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004167 },
4168 &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 -07004169 # maintenance to occur. The time windows may be overlapping. If no
4170 # maintenance windows are set, maintenance can occur at any time.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004171 &quot;window&quot;: { # Represents an arbitrary window of time. # The window of the first recurrence.
4172 &quot;endTime&quot;: &quot;A String&quot;, # The time that the window ends. The end time should take place after the
4173 # start time.
4174 &quot;startTime&quot;: &quot;A String&quot;, # The time that the window first starts.
4175 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004176 &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 -07004177 # this window reccurs. They go on for the span of time between the start and
4178 # end time.
4179 #
Bu Sun Kim65020912020-05-20 12:08:20 -07004180 # For example, to have something repeat every weekday, you&#x27;d use:
Dan O'Mearadd494642020-05-01 07:42:23 -07004181 # &lt;code&gt;FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR&lt;/code&gt;
4182 # To repeat some window daily (equivalent to the DailyMaintenanceWindow):
4183 # &lt;code&gt;FREQ=DAILY&lt;/code&gt;
4184 # For the first weekend of every month:
4185 # &lt;code&gt;FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU&lt;/code&gt;
4186 # This specifies how frequently the window starts. Eg, if you wanted to have
Bu Sun Kim65020912020-05-20 12:08:20 -07004187 # a 9-5 UTC-4 window every weekday, you&#x27;d use something like:
Dan O'Mearadd494642020-05-01 07:42:23 -07004188 # &lt;code&gt;
4189 # start time = 2019-01-01T09:00:00-0400
4190 # end time = 2019-01-01T17:00:00-0400
4191 # recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
4192 # &lt;/code&gt;
4193 # Windows can span multiple days. Eg, to make the window encompass every
4194 # weekend from midnight Saturday till the last minute of Sunday UTC:
4195 # &lt;code&gt;
4196 # start time = 2019-01-05T00:00:00Z
4197 # end time = 2019-01-07T23:59:00Z
4198 # recurrence = FREQ=WEEKLY;BYDAY=SA
4199 # &lt;/code&gt;
Bu Sun Kim65020912020-05-20 12:08:20 -07004200 # Note the start and end time&#x27;s specific dates are largely arbitrary except
Dan O'Mearadd494642020-05-01 07:42:23 -07004201 # to specify duration of the window and when it first starts.
4202 # The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.
Dan O'Mearadd494642020-05-01 07:42:23 -07004203 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004204 &quot;dailyMaintenanceWindow&quot;: { # Time window specified for daily maintenance operations. # DailyMaintenanceWindow specifies a daily maintenance operation window.
4205 &quot;startTime&quot;: &quot;A String&quot;, # Time within the maintenance window to start the maintenance operations.
4206 # Time format should be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)
4207 # format &quot;HH:MM&quot;, where HH : [00-23] and MM : [00-59] GMT.
4208 &quot;duration&quot;: &quot;A String&quot;, # [Output only] Duration of the time window, automatically chosen to be
4209 # smallest possible in the given scenario.
4210 # Duration will be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)
4211 # format &quot;PTnHnMnS&quot;.
Dan O'Mearadd494642020-05-01 07:42:23 -07004212 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004213 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004214 &quot;resourceVersion&quot;: &quot;A String&quot;, # A hash identifying the version of this policy, so that updates to fields of
4215 # the policy won&#x27;t accidentally undo intermediate changes (and so that users
4216 # of the API unaware of some fields won&#x27;t accidentally remove other fields).
Dan O'Mearadd494642020-05-01 07:42:23 -07004217 # Make a &lt;code&gt;get()&lt;/code&gt; request to the cluster to get the current
4218 # resource version and include it with requests to set the policy.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04004219 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004220 &quot;projectId&quot;: &quot;A String&quot;, # Required. The Google Developers Console [project ID or project
4221 # number](https://support.google.com/cloud/answer/6158840).
4222 &quot;zone&quot;: &quot;A String&quot;, # Required. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07004223 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4224 # cluster resides.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004225 &quot;clusterId&quot;: &quot;A String&quot;, # Required. The name of the cluster to update.
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 Kim4ed7d3f2020-05-27 12:20:54 -07004238 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
4239 { # StatusCondition describes why a cluster or a node pool has a certain status
4240 # (e.g., ERROR or DEGRADED).
4241 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
4242 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
4243 },
4244 ],
4245 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
4246 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
4247 # Unset for single-stage operations.
4248 &quot;stages&quot;: [ # Substages of an operation or a stage.
4249 # Object with schema name: OperationProgress
4250 ],
4251 &quot;metrics&quot;: [ # Progress metric bundle, for example:
4252 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
4253 # {name: &quot;nodes total&quot;, int_value: 32}]
4254 # or
4255 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
4256 # {name: &quot;progress scale&quot;, double_value: 1.0}]
4257 { # Progress metric is (string, int|float|string) pair.
4258 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
4259 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
4260 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
4261 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
4262 },
4263 ],
4264 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
4265 # Unset for single-stage operations.
4266 },
4267 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
4268 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4269 # operation is taking place. This field is deprecated, use location instead.
4270 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
4271 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
4272 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
4273 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
4274 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
4275 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Bu Sun Kim65020912020-05-20 12:08:20 -07004276 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
4277 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004278 { # StatusCondition describes why a cluster or a node pool has a certain status
4279 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07004280 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004281 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004282 },
4283 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07004284 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
Dan O'Mearadd494642020-05-01 07:42:23 -07004285 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07004286 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07004287 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4288 # or
4289 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4290 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07004291 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
4292 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
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;name&quot;: &quot;A String&quot;, # The name (project, location, cluster) of the cluster to set auth.
4317 # Specified in the format `projects/*/locations/*/clusters/*`.
4318 &quot;action&quot;: &quot;A String&quot;, # Required. The exact form of action to be taken on the master auth.
4319 &quot;projectId&quot;: &quot;A String&quot;, # Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004320 # number](https://support.google.com/cloud/answer/6158840).
4321 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07004322 &quot;clusterId&quot;: &quot;A String&quot;, # Deprecated. The name of the cluster to upgrade.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004323 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07004324 &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 -07004325 # Authentication can be done using HTTP basic auth or using client
4326 # certificates.
Bu Sun Kim65020912020-05-20 12:08:20 -07004327 &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 -07004328 # Because the master endpoint is open to the Internet, you should create a
4329 # strong password. If a password is provided for cluster creation, username
4330 # must be non-empty.
Bu Sun Kim65020912020-05-20 12:08:20 -07004331 &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 -07004332 # clusters before v1.12, if no configuration is specified, a client
4333 # certificate is issued.
Bu Sun Kim65020912020-05-20 12:08:20 -07004334 &quot;issueClientCertificate&quot;: True or False, # Issue a client certificate.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004335 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004336 &quot;clientKey&quot;: &quot;A String&quot;, # [Output only] Base64-encoded private key used by clients to authenticate
4337 # to the cluster endpoint.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004338 &quot;clusterCaCertificate&quot;: &quot;A String&quot;, # [Output only] Base64-encoded public certificate that is the root of
4339 # trust for the cluster.
4340 &quot;clientCertificate&quot;: &quot;A String&quot;, # [Output only] Base64-encoded public certificate used by clients to
4341 # authenticate to the cluster endpoint.
4342 &quot;username&quot;: &quot;A String&quot;, # The username to use for HTTP basic authentication to the master endpoint.
4343 # For clusters v1.6.0 and later, basic authentication can be disabled by
4344 # leaving username unspecified (or setting it to the empty string).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004345 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004346 &quot;zone&quot;: &quot;A String&quot;, # Deprecated. The name of the Google Compute Engine
4347 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4348 # cluster resides. This field has been deprecated and replaced by the name
4349 # field.
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 Kim4ed7d3f2020-05-27 12:20:54 -07004362 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
4363 { # StatusCondition describes why a cluster or a node pool has a certain status
4364 # (e.g., ERROR or DEGRADED).
4365 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
4366 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
4367 },
4368 ],
4369 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
4370 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
4371 # Unset for single-stage operations.
4372 &quot;stages&quot;: [ # Substages of an operation or a stage.
4373 # Object with schema name: OperationProgress
4374 ],
4375 &quot;metrics&quot;: [ # Progress metric bundle, for example:
4376 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
4377 # {name: &quot;nodes total&quot;, int_value: 32}]
4378 # or
4379 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
4380 # {name: &quot;progress scale&quot;, double_value: 1.0}]
4381 { # Progress metric is (string, int|float|string) pair.
4382 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
4383 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
4384 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
4385 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
4386 },
4387 ],
4388 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
4389 # Unset for single-stage operations.
4390 },
4391 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
4392 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4393 # operation is taking place. This field is deprecated, use location instead.
4394 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
4395 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
4396 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
4397 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
4398 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
4399 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Bu Sun Kim65020912020-05-20 12:08:20 -07004400 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
4401 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004402 { # StatusCondition describes why a cluster or a node pool has a certain status
4403 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07004404 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004405 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004406 },
4407 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07004408 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
Dan O'Mearadd494642020-05-01 07:42:23 -07004409 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07004410 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07004411 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4412 # or
4413 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4414 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07004415 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
4416 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
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;clusterId&quot;: &quot;A String&quot;, # Deprecated. The name of the cluster.
4439 # This field has been deprecated and replaced by the name field.
4440 &quot;networkPolicy&quot;: { # Configuration options for the NetworkPolicy feature. # Required. Configuration options for the NetworkPolicy feature.
4441 # https://kubernetes.io/docs/concepts/services-networking/networkpolicies/
4442 &quot;provider&quot;: &quot;A String&quot;, # The selected network policy provider.
4443 &quot;enabled&quot;: True or False, # Whether network policy is enabled on the cluster.
4444 },
4445 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster id) of the cluster to set networking
4446 # policy. Specified in the format `projects/*/locations/*/clusters/*`.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004447 &quot;projectId&quot;: &quot;A String&quot;, # Deprecated. The Google Developers Console [project ID or project
4448 # number](https://developers.google.com/console/help/new/#projectnumber).
4449 # This field has been deprecated and replaced by the name field.
4450 &quot;zone&quot;: &quot;A String&quot;, # Deprecated. The name of the Google Compute Engine
4451 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4452 # cluster resides. This field has been deprecated and replaced by the name
4453 # field.
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 Kim4ed7d3f2020-05-27 12:20:54 -07004466 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
4467 { # StatusCondition describes why a cluster or a node pool has a certain status
4468 # (e.g., ERROR or DEGRADED).
4469 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
4470 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
4471 },
4472 ],
4473 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
4474 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
4475 # Unset for single-stage operations.
4476 &quot;stages&quot;: [ # Substages of an operation or a stage.
4477 # Object with schema name: OperationProgress
4478 ],
4479 &quot;metrics&quot;: [ # Progress metric bundle, for example:
4480 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
4481 # {name: &quot;nodes total&quot;, int_value: 32}]
4482 # or
4483 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
4484 # {name: &quot;progress scale&quot;, double_value: 1.0}]
4485 { # Progress metric is (string, int|float|string) pair.
4486 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
4487 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
4488 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
4489 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
4490 },
4491 ],
4492 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
4493 # Unset for single-stage operations.
4494 },
4495 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
4496 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4497 # operation is taking place. This field is deprecated, use location instead.
4498 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
4499 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
4500 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
4501 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
4502 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
4503 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Bu Sun Kim65020912020-05-20 12:08:20 -07004504 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
4505 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004506 { # StatusCondition describes why a cluster or a node pool has a certain status
4507 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07004508 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004509 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004510 },
4511 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07004512 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
Dan O'Mearadd494642020-05-01 07:42:23 -07004513 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07004514 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07004515 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4516 # or
4517 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4518 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07004519 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
4520 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
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 Kim4ed7d3f2020-05-27 12:20:54 -07004543 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster id) of the cluster to start IP
4544 # rotation. Specified in the format `projects/*/locations/*/clusters/*`.
Bu Sun Kim65020912020-05-20 12:08:20 -07004545 &quot;projectId&quot;: &quot;A String&quot;, # Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004546 # number](https://developers.google.com/console/help/new/#projectnumber).
4547 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07004548 &quot;zone&quot;: &quot;A String&quot;, # Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07004549 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4550 # cluster resides. This field has been deprecated and replaced by the name
4551 # field.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004552 &quot;rotateCredentials&quot;: True or False, # Whether to rotate credentials during IP rotation.
Bu Sun Kim65020912020-05-20 12:08:20 -07004553 &quot;clusterId&quot;: &quot;A String&quot;, # Deprecated. The name of the cluster.
4554 # This field has been deprecated and replaced by the name field.
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 Kim4ed7d3f2020-05-27 12:20:54 -07004567 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
4568 { # StatusCondition describes why a cluster or a node pool has a certain status
4569 # (e.g., ERROR or DEGRADED).
4570 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
4571 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
4572 },
4573 ],
4574 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
4575 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
4576 # Unset for single-stage operations.
4577 &quot;stages&quot;: [ # Substages of an operation or a stage.
4578 # Object with schema name: OperationProgress
4579 ],
4580 &quot;metrics&quot;: [ # Progress metric bundle, for example:
4581 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
4582 # {name: &quot;nodes total&quot;, int_value: 32}]
4583 # or
4584 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
4585 # {name: &quot;progress scale&quot;, double_value: 1.0}]
4586 { # Progress metric is (string, int|float|string) pair.
4587 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
4588 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
4589 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
4590 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
4591 },
4592 ],
4593 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
4594 # Unset for single-stage operations.
4595 },
4596 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
4597 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4598 # operation is taking place. This field is deprecated, use location instead.
4599 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
4600 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
4601 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
4602 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
4603 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
4604 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Bu Sun Kim65020912020-05-20 12:08:20 -07004605 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
4606 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004607 { # StatusCondition describes why a cluster or a node pool has a certain status
4608 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07004609 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004610 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004611 },
4612 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07004613 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
Dan O'Mearadd494642020-05-01 07:42:23 -07004614 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07004615 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07004616 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4617 # or
4618 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4619 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07004620 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
4621 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
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 Kim4ed7d3f2020-05-27 12:20:54 -07004646 &quot;desiredImageType&quot;: &quot;A String&quot;, # The desired image type for the node pool.
4647 # NOTE: Set the &quot;desired_node_pool&quot; field as well.
4648 &quot;desiredWorkloadIdentityConfig&quot;: { # Configuration for the use of Kubernetes Service Accounts in GCP IAM # Configuration for Workload Identity.
4649 # policies.
4650 &quot;workloadPool&quot;: &quot;A String&quot;, # The workload pool to attach all Kubernetes service accounts to.
4651 },
4652 &quot;desiredNodePoolId&quot;: &quot;A String&quot;, # The node pool to be upgraded. This field is mandatory if
4653 # &quot;desired_node_version&quot;, &quot;desired_image_family&quot; or
4654 # &quot;desired_node_pool_autoscaling&quot; is specified and there is more than one
4655 # node pool on the cluster.
4656 &quot;desiredMasterVersion&quot;: &quot;A String&quot;, # The Kubernetes version to change the master to.
4657 #
4658 # Users may specify either explicit versions offered by
4659 # Kubernetes Engine or version aliases, which have the following behavior:
4660 #
4661 # - &quot;latest&quot;: picks the highest valid Kubernetes version
4662 # - &quot;1.X&quot;: picks the highest valid patch+gke.N patch in the 1.X version
4663 # - &quot;1.X.Y&quot;: picks the highest valid gke.N patch in the 1.X.Y version
4664 # - &quot;1.X.Y-gke.N&quot;: picks an explicit Kubernetes version
4665 # - &quot;-&quot;: picks the default Kubernetes version
4666 &quot;desiredShieldedNodes&quot;: { # Configuration of Shielded Nodes feature. # Configuration for Shielded Nodes.
4667 &quot;enabled&quot;: True or False, # Whether Shielded Nodes features are enabled on all nodes in this cluster.
4668 },
4669 &quot;desiredLoggingService&quot;: &quot;A String&quot;, # The logging service the cluster should use to write logs.
4670 # Currently available options:
4671 #
4672 # * `logging.googleapis.com/kubernetes` - The Cloud Logging
4673 # service with a Kubernetes-native resource model
4674 # * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
4675 # available as of GKE 1.15).
4676 # * `none` - no logs will be exported from the cluster.
4677 #
4678 # If left as an empty string,`logging.googleapis.com/kubernetes` will be
4679 # used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
4680 &quot;desiredVerticalPodAutoscaling&quot;: { # VerticalPodAutoscaling contains global, per-cluster information # Cluster-level Vertical Pod Autoscaling configuration.
4681 # required by Vertical Pod Autoscaler to automatically adjust
4682 # the resources of pods controlled by it.
4683 &quot;enabled&quot;: True or False, # Enables vertical pod autoscaling.
4684 },
4685 &quot;desiredBinaryAuthorization&quot;: { # Configuration for Binary Authorization. # The desired configuration options for the Binary Authorization feature.
4686 &quot;enabled&quot;: True or False, # Enable Binary Authorization for this cluster. If enabled, all container
4687 # images will be validated by Binary Authorization.
4688 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004689 &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 -04004690 # cluster, enabling additional functionality.
Bu Sun Kim65020912020-05-20 12:08:20 -07004691 &quot;networkPolicyConfig&quot;: { # Configuration for NetworkPolicy. This only tracks whether the addon # Configuration for NetworkPolicy. This only tracks whether the addon
4692 # is enabled or not on the Master, it does not track whether network policy
4693 # is enabled for the nodes.
4694 # is enabled or not on the Master, it does not track whether network policy
4695 # is enabled for the nodes.
4696 &quot;disabled&quot;: True or False, # Whether NetworkPolicy is enabled for this cluster.
4697 },
4698 &quot;cloudRunConfig&quot;: { # Configuration options for the Cloud Run feature. # Configuration for the Cloud Run addon, which allows the user to use a
4699 # managed Knative service.
4700 &quot;disabled&quot;: True or False, # Whether Cloud Run addon is enabled for this cluster.
4701 },
4702 &quot;horizontalPodAutoscaling&quot;: { # Configuration options for the horizontal pod autoscaling feature, which # Configuration for the horizontal pod autoscaling feature, which
4703 # increases or decreases the number of replica pods a replication controller
4704 # has based on the resource usage of the existing pods.
4705 # increases or decreases the number of replica pods a replication controller
4706 # has based on the resource usage of the existing pods.
4707 &quot;disabled&quot;: True or False, # Whether the Horizontal Pod Autoscaling feature is enabled in the cluster.
4708 # When enabled, it ensures that metrics are collected into Stackdriver
4709 # Monitoring.
4710 },
4711 &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 -04004712 # makes it easy to set up HTTP load balancers for services in a cluster.
4713 # which makes it easy to set up HTTP load balancers for services in a cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -07004714 &quot;disabled&quot;: True or False, # Whether the HTTP Load Balancing controller is enabled in the cluster.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04004715 # When enabled, it runs a small pod in the cluster that manages the load
4716 # balancers.
4717 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004718 &quot;kubernetesDashboard&quot;: { # Configuration for the Kubernetes Dashboard. # Configuration for the Kubernetes Dashboard.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004719 # This addon is deprecated, and will be disabled in 1.15. It is recommended
4720 # to use the Cloud Console to manage and monitor your Kubernetes clusters,
4721 # workloads and applications. For more information, see:
4722 # https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
Bu Sun Kim65020912020-05-20 12:08:20 -07004723 &quot;disabled&quot;: True or False, # Whether the Kubernetes Dashboard is enabled for this cluster.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04004724 },
4725 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004726 &quot;desiredNodeVersion&quot;: &quot;A String&quot;, # The Kubernetes version to change the nodes to (typically an
4727 # upgrade).
4728 #
4729 # Users may specify either explicit versions offered by
4730 # Kubernetes Engine or version aliases, which have the following behavior:
4731 #
4732 # - &quot;latest&quot;: picks the highest valid Kubernetes version
4733 # - &quot;1.X&quot;: picks the highest valid patch+gke.N patch in the 1.X version
4734 # - &quot;1.X.Y&quot;: picks the highest valid gke.N patch in the 1.X.Y version
4735 # - &quot;1.X.Y-gke.N&quot;: picks an explicit Kubernetes version
4736 # - &quot;-&quot;: picks the Kubernetes master version
4737 &quot;desiredIntraNodeVisibilityConfig&quot;: { # IntraNodeVisibilityConfig contains the desired config of the intra-node # The desired config of Intra-node visibility.
4738 # visibility on this cluster.
4739 &quot;enabled&quot;: True or False, # Enables intra node visibility for this cluster.
4740 },
4741 &quot;desiredClusterAutoscaling&quot;: { # ClusterAutoscaling contains global, per-cluster information # Cluster-level autoscaling configuration.
Dan O'Mearadd494642020-05-01 07:42:23 -07004742 # required by Cluster Autoscaler to automatically adjust
4743 # the size of the cluster and create/delete
4744 # node pools based on the current needs.
Bu Sun Kim65020912020-05-20 12:08:20 -07004745 &quot;autoprovisioningLocations&quot;: [ # The list of Google Compute Engine
4746 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
4747 # NodePool&#x27;s nodes can be created by NAP.
4748 &quot;A String&quot;,
4749 ],
4750 &quot;resourceLimits&quot;: [ # Contains global constraints regarding minimum and maximum
4751 # amount of resources in the cluster.
4752 { # Contains information about amount of some resource in the cluster.
4753 # For memory, value should be in GB.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004754 &quot;minimum&quot;: &quot;A String&quot;, # Minimum amount of the resource in the cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -07004755 &quot;maximum&quot;: &quot;A String&quot;, # Maximum amount of the resource in the cluster.
4756 &quot;resourceType&quot;: &quot;A String&quot;, # Resource name &quot;cpu&quot;, &quot;memory&quot; or gpu-specific string.
Bu Sun Kim65020912020-05-20 12:08:20 -07004757 },
4758 ],
4759 &quot;enableNodeAutoprovisioning&quot;: True or False, # Enables automatic node pool creation and deletion.
4760 &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 -07004761 # created by NAP.
4762 # by NAP.
Bu Sun Kim65020912020-05-20 12:08:20 -07004763 &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 -07004764 # node pool.
Bu Sun Kim65020912020-05-20 12:08:20 -07004765 &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 -07004766 # the Auto Upgrades will proceed.
Bu Sun Kim65020912020-05-20 12:08:20 -07004767 &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 -07004768 # with the approximate start time for the upgrades, in
4769 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004770 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
4771 # with the description of the upgrade.
Dan O'Mearadd494642020-05-01 07:42:23 -07004772 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004773 &quot;autoRepair&quot;: True or False, # A flag that specifies whether the node auto-repair is enabled for the node
4774 # pool. If enabled, the nodes in this node pool will be monitored and, if
4775 # they fail health checks too many times, an automatic repair action will be
4776 # triggered.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004777 &quot;autoUpgrade&quot;: True or False, # A flag that specifies whether node auto-upgrade is enabled for the node
4778 # pool. If enabled, node auto-upgrade helps keep the nodes in your node pool
4779 # up to date with the latest release version of Kubernetes.
Dan O'Mearadd494642020-05-01 07:42:23 -07004780 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004781 &quot;oauthScopes&quot;: [ # Scopes that are used by NAP when creating node pools. If oauth_scopes are
4782 # specified, service_account should be empty.
4783 &quot;A String&quot;,
4784 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07004785 &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 -07004786 # disruption caused by an upgrade.
4787 #
4788 # maxUnavailable controls the number of nodes that can be simultaneously
4789 # unavailable.
4790 #
4791 # maxSurge controls the number of additional nodes that can be added to the
4792 # node pool temporarily for the time of the upgrade to increase the number of
4793 # available nodes.
4794 #
4795 # (maxUnavailable + maxSurge) determines the level of parallelism (how many
4796 # nodes are being upgraded at the same time).
4797 #
4798 # Note: upgrades inevitably introduce some disruption since workloads need to
4799 # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
4800 # this holds true. (Disruption stays within the limits of
4801 # PodDisruptionBudget, if it is configured.)
4802 #
4803 # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
4804 # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
4805 # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
4806 # down 3 old (not yet upgraded) nodes at the same time. This ensures that
4807 # there are always at least 4 nodes available.
Bu Sun Kim65020912020-05-20 12:08:20 -07004808 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during
Dan O'Mearadd494642020-05-01 07:42:23 -07004809 # the upgrade process. A node is considered available if its status is
4810 # Ready.
Bu Sun Kim65020912020-05-20 12:08:20 -07004811 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size
4812 # of the node pool during the upgrade process.
Dan O'Mearadd494642020-05-01 07:42:23 -07004813 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004814 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs. If
4815 # service_account is specified, scopes should be empty.
Dan O'Mearadd494642020-05-01 07:42:23 -07004816 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004817 },
4818 &quot;desiredDatabaseEncryption&quot;: { # Configuration of etcd encryption. # Configuration of etcd encryption.
4819 &quot;keyName&quot;: &quot;A String&quot;, # Name of CloudKMS key to use for the encryption of secrets in etcd.
4820 # Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key
4821 &quot;state&quot;: &quot;A String&quot;, # Denotes the state of etcd encryption.
4822 },
4823 &quot;desiredMasterAuthorizedNetworksConfig&quot;: { # Configuration options for the master authorized networks feature. Enabled # The desired configuration options for master authorized networks feature.
4824 # master authorized networks will disallow all external traffic to access
4825 # Kubernetes master through HTTPS except traffic from the given CIDR blocks,
4826 # Google Compute Engine Public IPs and Google Prod IPs.
Bu Sun Kim65020912020-05-20 12:08:20 -07004827 &quot;cidrBlocks&quot;: [ # cidr_blocks define up to 50 external networks that could access
4828 # Kubernetes master through HTTPS.
4829 { # CidrBlock contains an optional name and one CIDR block.
4830 &quot;displayName&quot;: &quot;A String&quot;, # display_name is an optional field for users to identify CIDR blocks.
4831 &quot;cidrBlock&quot;: &quot;A String&quot;, # cidr_block must be specified in CIDR notation.
Dan O'Mearadd494642020-05-01 07:42:23 -07004832 },
4833 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004834 &quot;enabled&quot;: True or False, # Whether or not master authorized networks is enabled.
Dan O'Mearadd494642020-05-01 07:42:23 -07004835 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004836 &quot;desiredResourceUsageExportConfig&quot;: { # Configuration for exporting cluster resource usages. # The desired configuration for exporting resource usage.
4837 &quot;enableNetworkEgressMetering&quot;: True or False, # Whether to enable network egress metering for this cluster. If enabled, a
4838 # daemonset will be created in the cluster to meter network egress traffic.
4839 &quot;consumptionMeteringConfig&quot;: { # Parameters for controlling consumption metering. # Configuration to enable resource consumption metering.
4840 &quot;enabled&quot;: True or False, # Whether to enable consumption metering for this cluster. If enabled, a
4841 # second BigQuery table will be created to hold resource consumption
4842 # records.
4843 },
4844 &quot;bigqueryDestination&quot;: { # Parameters for using BigQuery as the destination of resource usage export. # Configuration to use BigQuery as usage export destination.
4845 &quot;datasetId&quot;: &quot;A String&quot;, # The ID of a BigQuery Dataset.
4846 },
Dan O'Mearadd494642020-05-01 07:42:23 -07004847 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004848 &quot;desiredNodePoolAutoscaling&quot;: { # NodePoolAutoscaling contains information required by cluster autoscaler to # Autoscaler configuration for the node pool specified in
4849 # desired_node_pool_id. If there is only one pool in the
4850 # cluster and desired_node_pool_id is not provided then
4851 # the change applies to that single node pool.
4852 # adjust the size of the node pool to the current cluster usage.
Bu Sun Kim65020912020-05-20 12:08:20 -07004853 &quot;maxNodeCount&quot;: 42, # Maximum number of nodes in the NodePool. Must be &gt;= min_node_count. There
4854 # has to enough quota to scale up the cluster.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004855 &quot;autoprovisioned&quot;: True or False, # Can this node pool be deleted automatically.
Bu Sun Kim65020912020-05-20 12:08:20 -07004856 &quot;minNodeCount&quot;: 42, # Minimum number of nodes in the NodePool. Must be &gt;= 1 and &lt;=
4857 # max_node_count.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004858 &quot;enabled&quot;: True or False, # Is autoscaling enabled for this node pool.
Bu Sun Kim65020912020-05-20 12:08:20 -07004859 },
4860 &quot;desiredLocations&quot;: [ # The desired list of Google Compute Engine
4861 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
4862 # cluster&#x27;s nodes should be located. Changing the locations a cluster is in
4863 # will result in nodes being either created or removed from the cluster,
4864 # depending on whether locations are being added or removed.
4865 #
4866 # This list must always include the cluster&#x27;s primary zone.
4867 &quot;A String&quot;,
4868 ],
4869 &quot;desiredMonitoringService&quot;: &quot;A String&quot;, # The monitoring service the cluster should use to write metrics.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04004870 # Currently available options:
4871 #
Bu Sun Kim65020912020-05-20 12:08:20 -07004872 # * &quot;monitoring.googleapis.com/kubernetes&quot; - The Cloud Monitoring
Dan O'Mearadd494642020-05-01 07:42:23 -07004873 # service with a Kubernetes-native resource model
4874 # * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
4875 # longer available as of GKE 1.15).
4876 # * `none` - No metrics will be exported from the cluster.
4877 #
4878 # If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
4879 # used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
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 Kim4ed7d3f2020-05-27 12:20:54 -07004904 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
4905 { # StatusCondition describes why a cluster or a node pool has a certain status
4906 # (e.g., ERROR or DEGRADED).
4907 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
4908 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
4909 },
4910 ],
4911 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
4912 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
4913 # Unset for single-stage operations.
4914 &quot;stages&quot;: [ # Substages of an operation or a stage.
4915 # Object with schema name: OperationProgress
4916 ],
4917 &quot;metrics&quot;: [ # Progress metric bundle, for example:
4918 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
4919 # {name: &quot;nodes total&quot;, int_value: 32}]
4920 # or
4921 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
4922 # {name: &quot;progress scale&quot;, double_value: 1.0}]
4923 { # Progress metric is (string, int|float|string) pair.
4924 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
4925 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
4926 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
4927 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
4928 },
4929 ],
4930 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
4931 # Unset for single-stage operations.
4932 },
4933 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
4934 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4935 # operation is taking place. This field is deprecated, use location instead.
4936 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
4937 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
4938 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
4939 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
4940 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
4941 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Bu Sun Kim65020912020-05-20 12:08:20 -07004942 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
4943 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004944 { # StatusCondition describes why a cluster or a node pool has a certain status
4945 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07004946 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004947 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004948 },
4949 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07004950 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
Dan O'Mearadd494642020-05-01 07:42:23 -07004951 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07004952 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07004953 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4954 # or
4955 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4956 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07004957 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
4958 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Takashi Matsuo06694102015-09-11 13:55:40 -07004959 }</pre>
4960</div>
4961
4962</body></html>