blob: 6fcd34c6fbc6d357d079ce79c6f9725ffb7018f6 [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;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 -0700153 # cluster.
154 # cluster, enabling additional functionality.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700155 &quot;kubernetesDashboard&quot;: { # Configuration for the Kubernetes Dashboard. # Configuration for the Kubernetes Dashboard.
156 # This addon is deprecated, and will be disabled in 1.15. It is recommended
157 # to use the Cloud Console to manage and monitor your Kubernetes clusters,
158 # workloads and applications. For more information, see:
159 # https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
160 &quot;disabled&quot;: True or False, # Whether the Kubernetes Dashboard is enabled for this cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -0700161 },
162 &quot;cloudRunConfig&quot;: { # Configuration options for the Cloud Run feature. # Configuration for the Cloud Run addon, which allows the user to use a
163 # managed Knative service.
164 &quot;disabled&quot;: True or False, # Whether Cloud Run addon is enabled for this cluster.
165 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700166 &quot;httpLoadBalancing&quot;: { # Configuration options for the HTTP (L7) load balancing controller addon, # Configuration for the HTTP (L7) load balancing controller addon, which
167 # makes it easy to set up HTTP load balancers for services in a cluster.
168 # which makes it easy to set up HTTP load balancers for services in a cluster.
169 &quot;disabled&quot;: True or False, # Whether the HTTP Load Balancing controller is enabled in the cluster.
170 # When enabled, it runs a small pod in the cluster that manages the load
171 # balancers.
172 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700173 &quot;horizontalPodAutoscaling&quot;: { # Configuration options for the horizontal pod autoscaling feature, which # Configuration for the horizontal pod autoscaling feature, which
174 # increases or decreases the number of replica pods a replication controller
175 # has based on the resource usage of the existing pods.
176 # increases or decreases the number of replica pods a replication controller
177 # has based on the resource usage of the existing pods.
178 &quot;disabled&quot;: True or False, # Whether the Horizontal Pod Autoscaling feature is enabled in the cluster.
179 # When enabled, it ensures that metrics are collected into Stackdriver
180 # Monitoring.
181 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700182 &quot;dnsCacheConfig&quot;: { # Configuration for NodeLocal DNSCache # Configuration for NodeLocalDNS, a dns cache running on cluster nodes
183 &quot;enabled&quot;: True or False, # Whether NodeLocal DNSCache is enabled for this cluster.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700184 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700185 &quot;networkPolicyConfig&quot;: { # Configuration for NetworkPolicy. This only tracks whether the addon # Configuration for NetworkPolicy. This only tracks whether the addon
186 # is enabled or not on the Master, it does not track whether network policy
187 # is enabled for the nodes.
188 # is enabled or not on the Master, it does not track whether network policy
189 # is enabled for the nodes.
190 &quot;disabled&quot;: True or False, # Whether NetworkPolicy is enabled for this cluster.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700191 },
192 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700193 &quot;clusterId&quot;: &quot;A String&quot;, # Deprecated. The name of the cluster to upgrade.
194 # This field has been deprecated and replaced by the name field.
195 &quot;projectId&quot;: &quot;A String&quot;, # Deprecated. The Google Developers Console [project ID or project
196 # number](https://support.google.com/cloud/answer/6158840).
197 # This field has been deprecated and replaced by the name field.
198 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster) of the cluster to set addons.
199 # Specified in the format `projects/*/locations/*/clusters/*`.
200 &quot;zone&quot;: &quot;A String&quot;, # Deprecated. The name of the Google Compute Engine
201 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
202 # cluster resides. This field has been deprecated and replaced by the name
203 # field.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400204 }
205
206 x__xgafv: string, V1 error format.
207 Allowed values
208 1 - v1 error format
209 2 - v2 error format
210
211Returns:
212 An object of the form:
213
214 { # This operation resource represents operations that may have happened or are
215 # happening on the cluster. All fields are output only.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700216 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
217 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
218 # Unset for single-stage operations.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700219 &quot;metrics&quot;: [ # Progress metric bundle, for example:
220 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
221 # {name: &quot;nodes total&quot;, int_value: 32}]
222 # or
223 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
224 # {name: &quot;progress scale&quot;, double_value: 1.0}]
225 { # Progress metric is (string, int|float|string) pair.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700226 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700227 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
228 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700229 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700230 },
231 ],
232 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
233 # Unset for single-stage operations.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700234 &quot;stages&quot;: [ # Substages of an operation or a stage.
235 # Object with schema name: OperationProgress
236 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700237 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700238 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
239 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
240 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
241 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
242 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
243 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
244 { # StatusCondition describes why a cluster or a node pool has a certain status
245 # (e.g., ERROR or DEGRADED).
246 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
247 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
248 },
249 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700250 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
251 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
252 # operation is taking place. This field is deprecated, use location instead.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700253 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
Bu Sun Kim65020912020-05-20 12:08:20 -0700254 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700255 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
256 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
257 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -0700258 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700259 { # StatusCondition describes why a cluster or a node pool has a certain status
260 # (e.g., ERROR or DEGRADED).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700261 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700262 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700263 },
264 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700265 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -0700266 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
267 # or
268 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
269 # in which the cluster resides.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700270 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700271 }</pre>
272</div>
273
274<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700275 <code class="details" id="completeIpRotation">completeIpRotation(projectId, zone, clusterId, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700276 <pre>Completes master IP rotation.
277
278Args:
279 projectId: string, Deprecated. The Google Developers Console [project ID or project
280number](https://developers.google.com/console/help/new/#projectnumber).
281This field has been deprecated and replaced by the name field. (required)
282 zone: string, Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -0700283[zone](https://cloud.google.com/compute/docs/zones#available) in which the
284cluster resides. This field has been deprecated and replaced by the name
285field. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700286 clusterId: string, Deprecated. The name of the cluster.
287This field has been deprecated and replaced by the name field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700288 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700289 The object takes the form of:
290
291{ # CompleteIPRotationRequest moves the cluster master back into single-IP mode.
Bu Sun Kim65020912020-05-20 12:08:20 -0700292 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster id) of the cluster to complete IP
293 # rotation. Specified in the format `projects/*/locations/*/clusters/*`.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700294 &quot;clusterId&quot;: &quot;A String&quot;, # Deprecated. The name of the cluster.
295 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -0700296 &quot;projectId&quot;: &quot;A String&quot;, # Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700297 # number](https://developers.google.com/console/help/new/#projectnumber).
298 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -0700299 &quot;zone&quot;: &quot;A String&quot;, # Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -0700300 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
301 # cluster resides. This field has been deprecated and replaced by the name
302 # field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700303 }
304
305 x__xgafv: string, V1 error format.
306 Allowed values
307 1 - v1 error format
308 2 - v2 error format
309
310Returns:
311 An object of the form:
312
313 { # This operation resource represents operations that may have happened or are
314 # happening on the cluster. All fields are output only.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700315 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
316 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
317 # Unset for single-stage operations.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700318 &quot;metrics&quot;: [ # Progress metric bundle, for example:
319 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
320 # {name: &quot;nodes total&quot;, int_value: 32}]
321 # or
322 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
323 # {name: &quot;progress scale&quot;, double_value: 1.0}]
324 { # Progress metric is (string, int|float|string) pair.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700325 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700326 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
327 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700328 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700329 },
330 ],
331 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
332 # Unset for single-stage operations.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700333 &quot;stages&quot;: [ # Substages of an operation or a stage.
334 # Object with schema name: OperationProgress
335 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700336 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700337 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
338 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
339 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
340 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
341 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
342 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
343 { # StatusCondition describes why a cluster or a node pool has a certain status
344 # (e.g., ERROR or DEGRADED).
345 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
346 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
347 },
348 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700349 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
350 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
351 # operation is taking place. This field is deprecated, use location instead.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700352 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
Bu Sun Kim65020912020-05-20 12:08:20 -0700353 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700354 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
355 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
356 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -0700357 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700358 { # StatusCondition describes why a cluster or a node pool has a certain status
359 # (e.g., ERROR or DEGRADED).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700360 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700361 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700362 },
363 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700364 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -0700365 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
366 # or
367 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
368 # in which the cluster resides.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700369 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400370 }</pre>
371</div>
372
373<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700374 <code class="details" id="create">create(projectId, zone, body=None, x__xgafv=None)</code>
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400375 <pre>Creates a cluster, consisting of the specified number and type of Google
376Compute Engine instances.
377
Bu Sun Kim65020912020-05-20 12:08:20 -0700378By default, the cluster is created in the project&#x27;s
Dan O'Mearadd494642020-05-01 07:42:23 -0700379[default
380network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks).
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400381
382One firewall is added for the cluster. After cluster creation,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700383the Kubelet creates routes for each node to allow the containers
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400384on that node to communicate with all other instances in the
385cluster.
386
Bu Sun Kim65020912020-05-20 12:08:20 -0700387Finally, an entry is added to the project&#x27;s global metadata indicating
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700388which CIDR range the cluster is using.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400389
390Args:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700391 projectId: string, Deprecated. The Google Developers Console [project ID or project
392number](https://support.google.com/cloud/answer/6158840).
393This field has been deprecated and replaced by the parent field. (required)
394 zone: string, Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -0700395[zone](https://cloud.google.com/compute/docs/zones#available) in which the
396cluster resides. This field has been deprecated and replaced by the parent
397field. (required)
398 body: object, The request body.
Takashi Matsuo06694102015-09-11 13:55:40 -0700399 The object takes the form of:
400
401{ # CreateClusterRequest creates a cluster.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700402 &quot;zone&quot;: &quot;A String&quot;, # Deprecated. The name of the Google Compute Engine
403 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
404 # cluster resides. This field has been deprecated and replaced by the parent
405 # field.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700406 &quot;parent&quot;: &quot;A String&quot;, # The parent (project and location) where the cluster will be created.
407 # Specified in the format `projects/*/locations/*`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700408 &quot;cluster&quot;: { # A Google Kubernetes Engine cluster. # Required. A [cluster
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700409 # resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters)
410 &quot;currentMasterVersion&quot;: &quot;A String&quot;, # [Output only] The current software version of the master endpoint.
411 &quot;currentNodeVersion&quot;: &quot;A String&quot;, # [Output only] Deprecated, use
412 # [NodePools.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools)
413 # instead. The current version of the node software components. If they are
414 # currently at multiple versions because they&#x27;re in the process of being
415 # upgraded, this reflects the minimum version of all nodes.
416 &quot;authenticatorGroupsConfig&quot;: { # Configuration for returning group information from authenticators. # Configuration controlling RBAC group membership information.
417 &quot;securityGroup&quot;: &quot;A String&quot;, # The name of the security group-of-groups to be used. Only relevant
418 # if enabled = true.
419 &quot;enabled&quot;: True or False, # Whether this cluster should return group membership lookups
420 # during authentication using a group of security groups.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700421 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700422 &quot;enableKubernetesAlpha&quot;: True or False, # Kubernetes alpha features are enabled on this cluster. This includes alpha
423 # API groups (e.g. v1alpha1) and features that may not be production ready in
424 # the kubernetes version of the master and nodes.
425 # The cluster has no SLA for uptime and master/node upgrades are disabled.
426 # Alpha enabled clusters are automatically deleted thirty days after
427 # creation.
428 &quot;ipAllocationPolicy&quot;: { # Configuration for controlling how IPs are allocated in the cluster. # Configuration for cluster IP allocation.
429 &quot;servicesSecondaryRangeName&quot;: &quot;A String&quot;, # The name of the secondary range to be used as for the services
430 # CIDR block. The secondary range will be used for service
431 # ClusterIPs. This must be an existing secondary range associated
432 # with the cluster subnetwork.
433 #
434 # This field is only applicable with use_ip_aliases is true and
435 # create_subnetwork is false.
436 &quot;subnetworkName&quot;: &quot;A String&quot;, # A custom subnetwork name to be used if `create_subnetwork` is true. If
437 # this field is empty, then an automatic name will be chosen for the new
438 # subnetwork.
439 &quot;nodeIpv4Cidr&quot;: &quot;A String&quot;, # This field is deprecated, use node_ipv4_cidr_block.
440 &quot;servicesIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP address range of the services IPs in this cluster. If blank, a range
441 # will be automatically chosen with the default size.
442 #
443 # This field is only applicable when `use_ip_aliases` is true.
444 #
445 # Set to blank to have a range chosen with the default size.
446 #
447 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
448 # netmask.
449 #
450 # Set to a
451 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
452 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
453 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
454 # to use.
455 &quot;servicesIpv4Cidr&quot;: &quot;A String&quot;, # This field is deprecated, use services_ipv4_cidr_block.
456 &quot;clusterSecondaryRangeName&quot;: &quot;A String&quot;, # The name of the secondary range to be used for the cluster CIDR
457 # block. The secondary range will be used for pod IP
458 # addresses. This must be an existing secondary range associated
459 # with the cluster subnetwork.
460 #
461 # This field is only applicable with use_ip_aliases is true and
462 # create_subnetwork is false.
463 &quot;tpuIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP address range of the Cloud TPUs in this cluster. If unspecified, a
464 # range will be automatically chosen with the default size.
465 #
466 # This field is only applicable when `use_ip_aliases` is true.
467 #
468 # If unspecified, the range will use the default size.
469 #
470 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
471 # netmask.
472 #
473 # Set to a
474 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
475 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
476 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
477 # to use.
478 &quot;nodeIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP address range of the instance IPs in this cluster.
479 #
480 # This is applicable only if `create_subnetwork` is true.
481 #
482 # Set to blank to have a range chosen with the default size.
483 #
484 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
485 # netmask.
486 #
487 # Set to a
488 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
489 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
490 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
491 # to use.
492 &quot;useIpAliases&quot;: True or False, # Whether alias IPs will be used for pod IPs in the cluster.
493 &quot;createSubnetwork&quot;: True or False, # Whether a new subnetwork will be created automatically for the cluster.
494 #
495 # This field is only applicable when `use_ip_aliases` is true.
496 &quot;clusterIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP address range for the cluster pod IPs. If this field is set, then
497 # `cluster.cluster_ipv4_cidr` must be left blank.
498 #
499 # This field is only applicable when `use_ip_aliases` is true.
500 #
501 # Set to blank to have a range chosen with the default size.
502 #
503 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
504 # netmask.
505 #
506 # Set to a
507 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
508 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
509 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
510 # to use.
511 &quot;clusterIpv4Cidr&quot;: &quot;A String&quot;, # This field is deprecated, use cluster_ipv4_cidr_block.
512 },
513 &quot;loggingService&quot;: &quot;A String&quot;, # The logging service the cluster should use to write logs.
514 # Currently available options:
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700515 #
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700516 # * `logging.googleapis.com/kubernetes` - The Cloud Logging
517 # service with a Kubernetes-native resource model
518 # * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
519 # available as of GKE 1.15).
520 # * `none` - no logs will be exported from the cluster.
521 #
522 # If left as an empty string,`logging.googleapis.com/kubernetes` will be
523 # used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
524 &quot;zone&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
525 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
526 # cluster resides. This field is deprecated, use location instead.
527 &quot;legacyAbac&quot;: { # Configuration for the legacy Attribute Based Access Control authorization # Configuration for the legacy ABAC authorization mode.
528 # mode.
529 &quot;enabled&quot;: True or False, # Whether the ABAC authorizer is enabled for this cluster. When enabled,
530 # identities in the system, including service accounts, nodes, and
531 # controllers, will have statically granted permissions beyond those
532 # provided by the RBAC configuration or IAM.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700533 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700534 &quot;resourceLabels&quot;: { # The resource labels for the cluster to use to annotate any related
535 # Google Compute Engine resources.
536 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700537 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700538 &quot;nodeIpv4CidrSize&quot;: 42, # [Output only] The size of the address space on each node for hosting
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400539 # containers. This is provisioned from within the `container_ipv4_cidr`
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700540 # range. This field will only be set when cluster is in route-based network
541 # mode.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700542 &quot;releaseChannel&quot;: { # ReleaseChannel indicates which release channel a cluster is # Release channel configuration.
543 # subscribed to. Release channels are arranged in order of risk.
544 #
545 # When a cluster is subscribed to a release channel, Google maintains
546 # both the master version and the node version. Node auto-upgrade
547 # defaults to true and cannot be disabled.
548 &quot;channel&quot;: &quot;A String&quot;, # channel specifies which release channel the cluster is subscribed to.
Bu Sun Kim65020912020-05-20 12:08:20 -0700549 },
550 &quot;maintenancePolicy&quot;: { # MaintenancePolicy defines the maintenance policy to be used for the cluster. # Configure the maintenance policy for this cluster.
551 &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 -0700552 &quot;maintenanceExclusions&quot;: { # Exceptions to maintenance window. Non-emergency maintenance should not
553 # occur in these windows.
554 &quot;a_key&quot;: { # Represents an arbitrary window of time.
555 &quot;endTime&quot;: &quot;A String&quot;, # The time that the window ends. The end time should take place after the
556 # start time.
557 &quot;startTime&quot;: &quot;A String&quot;, # The time that the window first starts.
558 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700559 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700560 &quot;dailyMaintenanceWindow&quot;: { # Time window specified for daily maintenance operations. # DailyMaintenanceWindow specifies a daily maintenance operation window.
561 &quot;duration&quot;: &quot;A String&quot;, # [Output only] Duration of the time window, automatically chosen to be
562 # smallest possible in the given scenario.
563 # Duration will be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)
564 # format &quot;PTnHnMnS&quot;.
565 &quot;startTime&quot;: &quot;A String&quot;, # Time within the maintenance window to start the maintenance operations.
566 # Time format should be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)
567 # format &quot;HH:MM&quot;, where HH : [00-23] and MM : [00-59] GMT.
568 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700569 &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 -0700570 # maintenance to occur. The time windows may be overlapping. If no
571 # maintenance windows are set, maintenance can occur at any time.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700572 &quot;window&quot;: { # Represents an arbitrary window of time. # The window of the first recurrence.
573 &quot;endTime&quot;: &quot;A String&quot;, # The time that the window ends. The end time should take place after the
574 # start time.
575 &quot;startTime&quot;: &quot;A String&quot;, # The time that the window first starts.
576 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700577 &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 -0700578 # this window reccurs. They go on for the span of time between the start and
579 # end time.
580 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700581 # For example, to have something repeat every weekday, you&#x27;d use:
Dan O'Mearadd494642020-05-01 07:42:23 -0700582 # &lt;code&gt;FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR&lt;/code&gt;
583 # To repeat some window daily (equivalent to the DailyMaintenanceWindow):
584 # &lt;code&gt;FREQ=DAILY&lt;/code&gt;
585 # For the first weekend of every month:
586 # &lt;code&gt;FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU&lt;/code&gt;
587 # This specifies how frequently the window starts. Eg, if you wanted to have
Bu Sun Kim65020912020-05-20 12:08:20 -0700588 # a 9-5 UTC-4 window every weekday, you&#x27;d use something like:
Dan O'Mearadd494642020-05-01 07:42:23 -0700589 # &lt;code&gt;
590 # start time = 2019-01-01T09:00:00-0400
591 # end time = 2019-01-01T17:00:00-0400
592 # recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
593 # &lt;/code&gt;
594 # Windows can span multiple days. Eg, to make the window encompass every
595 # weekend from midnight Saturday till the last minute of Sunday UTC:
596 # &lt;code&gt;
597 # start time = 2019-01-05T00:00:00Z
598 # end time = 2019-01-07T23:59:00Z
599 # recurrence = FREQ=WEEKLY;BYDAY=SA
600 # &lt;/code&gt;
Bu Sun Kim65020912020-05-20 12:08:20 -0700601 # Note the start and end time&#x27;s specific dates are largely arbitrary except
Dan O'Mearadd494642020-05-01 07:42:23 -0700602 # to specify duration of the window and when it first starts.
603 # The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.
Dan O'Mearadd494642020-05-01 07:42:23 -0700604 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700605 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700606 &quot;resourceVersion&quot;: &quot;A String&quot;, # A hash identifying the version of this policy, so that updates to fields of
607 # the policy won&#x27;t accidentally undo intermediate changes (and so that users
608 # of the API unaware of some fields won&#x27;t accidentally remove other fields).
Dan O'Mearadd494642020-05-01 07:42:23 -0700609 # Make a &lt;code&gt;get()&lt;/code&gt; request to the cluster to get the current
610 # resource version and include it with requests to set the policy.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700611 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700612 &quot;monitoringService&quot;: &quot;A String&quot;, # The monitoring service the cluster should use to write metrics.
613 # Currently available options:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700614 #
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700615 # * &quot;monitoring.googleapis.com/kubernetes&quot; - The Cloud Monitoring
616 # service with a Kubernetes-native resource model
617 # * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
618 # longer available as of GKE 1.15).
619 # * `none` - No metrics will be exported from the cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -0700620 #
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700621 # If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
622 # used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
623 &quot;binaryAuthorization&quot;: { # Configuration for Binary Authorization. # Configuration for Binary Authorization.
624 &quot;enabled&quot;: True or False, # Enable Binary Authorization for this cluster. If enabled, all container
625 # images will be validated by Binary Authorization.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700626 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700627 &quot;expireTime&quot;: &quot;A String&quot;, # [Output only] The time the cluster will be automatically
628 # deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
629 &quot;instanceGroupUrls&quot;: [ # Deprecated. Use node_pools.instance_group_urls.
Bu Sun Kim65020912020-05-20 12:08:20 -0700630 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700631 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700632 &quot;endpoint&quot;: &quot;A String&quot;, # [Output only] The IP address of this cluster&#x27;s master endpoint.
633 # The endpoint can be accessed from the internet at
634 # `https://username:password@endpoint/`.
635 #
636 # See the `masterAuth` property of this resource for username and
637 # password information.
638 &quot;shieldedNodes&quot;: { # Configuration of Shielded Nodes feature. # Shielded Nodes configuration.
639 &quot;enabled&quot;: True or False, # Whether Shielded Nodes features are enabled on all nodes in this cluster.
640 },
641 &quot;masterAuthorizedNetworksConfig&quot;: { # Configuration options for the master authorized networks feature. Enabled # The configuration options for master authorized networks feature.
642 # master authorized networks will disallow all external traffic to access
643 # Kubernetes master through HTTPS except traffic from the given CIDR blocks,
644 # Google Compute Engine Public IPs and Google Prod IPs.
645 &quot;enabled&quot;: True or False, # Whether or not master authorized networks is enabled.
646 &quot;cidrBlocks&quot;: [ # cidr_blocks define up to 50 external networks that could access
647 # Kubernetes master through HTTPS.
648 { # CidrBlock contains an optional name and one CIDR block.
649 &quot;displayName&quot;: &quot;A String&quot;, # display_name is an optional field for users to identify CIDR blocks.
650 &quot;cidrBlock&quot;: &quot;A String&quot;, # cidr_block must be specified in CIDR notation.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700651 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700652 ],
653 },
654 &quot;conditions&quot;: [ # Which conditions caused the current cluster state.
655 { # StatusCondition describes why a cluster or a node pool has a certain status
656 # (e.g., ERROR or DEGRADED).
657 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
658 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
659 },
660 ],
661 &quot;network&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
662 # [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
663 # to which the cluster is connected. If left unspecified, the `default`
664 # network will be used.
665 &quot;status&quot;: &quot;A String&quot;, # [Output only] The current status of this cluster.
666 &quot;autoscaling&quot;: { # ClusterAutoscaling contains global, per-cluster information # Cluster-level autoscaling configuration.
667 # required by Cluster Autoscaler to automatically adjust
668 # the size of the cluster and create/delete
669 # node pools based on the current needs.
670 &quot;resourceLimits&quot;: [ # Contains global constraints regarding minimum and maximum
671 # amount of resources in the cluster.
672 { # Contains information about amount of some resource in the cluster.
673 # For memory, value should be in GB.
674 &quot;minimum&quot;: &quot;A String&quot;, # Minimum amount of the resource in the cluster.
675 &quot;resourceType&quot;: &quot;A String&quot;, # Resource name &quot;cpu&quot;, &quot;memory&quot; or gpu-specific string.
676 &quot;maximum&quot;: &quot;A String&quot;, # Maximum amount of the resource in the cluster.
677 },
678 ],
679 &quot;autoprovisioningNodePoolDefaults&quot;: { # AutoprovisioningNodePoolDefaults contains defaults for a node pool created # AutoprovisioningNodePoolDefaults contains defaults for a node pool
680 # created by NAP.
681 # by NAP.
682 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs.
683 &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.
684 # node pool.
685 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool.
686 # the Auto Upgrades will proceed.
687 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
688 # with the description of the upgrade.
689 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
690 # with the approximate start time for the upgrades, in
691 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
692 },
693 &quot;autoRepair&quot;: True or False, # A flag that specifies whether the node auto-repair is enabled for the node
694 # pool. If enabled, the nodes in this node pool will be monitored and, if
695 # they fail health checks too many times, an automatic repair action will be
696 # triggered.
697 &quot;autoUpgrade&quot;: True or False, # A flag that specifies whether node auto-upgrade is enabled for the node
698 # pool. If enabled, node auto-upgrade helps keep the nodes in your node pool
699 # up to date with the latest release version of Kubernetes.
700 },
701 &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 -0700702 # disruption caused by an upgrade.
703 #
704 # maxUnavailable controls the number of nodes that can be simultaneously
705 # unavailable.
706 #
707 # maxSurge controls the number of additional nodes that can be added to the
708 # node pool temporarily for the time of the upgrade to increase the number of
709 # available nodes.
710 #
711 # (maxUnavailable + maxSurge) determines the level of parallelism (how many
712 # nodes are being upgraded at the same time).
713 #
714 # Note: upgrades inevitably introduce some disruption since workloads need to
715 # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
716 # this holds true. (Disruption stays within the limits of
717 # PodDisruptionBudget, if it is configured.)
718 #
719 # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
720 # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
721 # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
722 # down 3 old (not yet upgraded) nodes at the same time. This ensures that
723 # there are always at least 4 nodes available.
Bu Sun Kim65020912020-05-20 12:08:20 -0700724 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during
Dan O'Mearadd494642020-05-01 07:42:23 -0700725 # the upgrade process. A node is considered available if its status is
726 # Ready.
Bu Sun Kim65020912020-05-20 12:08:20 -0700727 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size
728 # of the node pool during the upgrade process.
Dan O'Mearadd494642020-05-01 07:42:23 -0700729 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700730 &quot;oauthScopes&quot;: [ # Scopes that are used by NAP when creating node pools.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700731 &quot;A String&quot;,
732 ],
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700733 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700734 &quot;enableNodeAutoprovisioning&quot;: True or False, # Enables automatic node pool creation and deletion.
735 &quot;autoprovisioningLocations&quot;: [ # The list of Google Compute Engine
736 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
737 # NodePool&#x27;s nodes can be created by NAP.
738 &quot;A String&quot;,
739 ],
740 },
741 &quot;labelFingerprint&quot;: &quot;A String&quot;, # The fingerprint of the set of labels for this cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -0700742 &quot;networkPolicy&quot;: { # Configuration options for the NetworkPolicy feature. # Configuration options for the NetworkPolicy feature.
743 # https://kubernetes.io/docs/concepts/services-networking/networkpolicies/
Bu Sun Kim65020912020-05-20 12:08:20 -0700744 &quot;enabled&quot;: True or False, # Whether network policy is enabled on the cluster.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700745 &quot;provider&quot;: &quot;A String&quot;, # The selected network policy provider.
Bu Sun Kim65020912020-05-20 12:08:20 -0700746 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700747 &quot;clusterIpv4Cidr&quot;: &quot;A String&quot;, # The IP address range of the container pods in this cluster, in
Bu Sun Kim65020912020-05-20 12:08:20 -0700748 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700749 # notation (e.g. `10.96.0.0/14`). Leave blank to have
750 # one automatically chosen or specify a `/14` block in `10.0.0.0/8`.
751 &quot;defaultMaxPodsConstraint&quot;: { # Constraints applied to pods. # The default constraint on the maximum number of pods that can be run
752 # simultaneously on a node in the node pool of this cluster. Only honored
753 # if cluster created with IP Alias support.
754 &quot;maxPodsPerNode&quot;: &quot;A String&quot;, # Constraint enforced on the max num of pods per node.
Takashi Matsuo06694102015-09-11 13:55:40 -0700755 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700756 &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 -0400757 # For requests, this field should only be used in lieu of a
Bu Sun Kim65020912020-05-20 12:08:20 -0700758 # &quot;node_pool&quot; object, since this configuration (along with the
759 # &quot;initial_node_count&quot;) will be used to create a &quot;NodePool&quot; object with an
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400760 # auto-generated name. Do not use this and a node_pool at the same time.
761 # For responses, this field will be populated with the node configuration of
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700762 # the first node pool. (For configuration of each node pool, see
763 # `node_pool.config`)
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400764 #
765 # If unspecified, the defaults are used.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700766 # This field is deprecated, use node_pool.config instead.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700767 &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;)
768 #
769 # If unspecified, the default disk type is &#x27;pd-standard&#x27;
770 &quot;bootDiskKmsKey&quot;: &quot;A String&quot;, #
771 # The Customer Managed Encryption Key used to encrypt the boot disk attached
772 # to each node in the node pool. This should be of the form
773 # projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
774 # For more information about protecting resources with Cloud KMS Keys please
775 # see:
776 # https://cloud.google.com/compute/docs/disks/customer-managed-encryption
777 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
778 &quot;enableIntegrityMonitoring&quot;: True or False, # Defines whether the instance has integrity monitoring enabled.
779 #
780 # Enables monitoring and attestation of the boot integrity of the instance.
781 # The attestation is performed against the integrity policy baseline. This
782 # baseline is initially derived from the implicitly trusted boot image when
783 # the instance is created.
784 &quot;enableSecureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled.
785 #
786 # Secure Boot helps ensure that the system only runs authentic software by
787 # verifying the digital signature of all boot components, and halting the
788 # boot process if signature verification fails.
789 },
790 &quot;labels&quot;: { # The map of Kubernetes labels (key/value pairs) to be applied to each node.
791 # These will added in addition to any default label(s) that
792 # Kubernetes may apply to the node.
793 # In case of conflict in label keys, the applied set may differ depending on
794 # the Kubernetes version -- it&#x27;s best to assume the behavior is undefined
795 # and conflicts should be avoided.
796 # For more information, including usage and the valid values, see:
797 # https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
798 &quot;a_key&quot;: &quot;A String&quot;,
799 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700800 &quot;oauthScopes&quot;: [ # The set of Google API scopes to be made available on all of the
801 # node VMs under the &quot;default&quot; service account.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400802 #
803 # The following scopes are recommended, but not required, and by default are
804 # not included:
805 #
806 # * `https://www.googleapis.com/auth/compute` is required for mounting
807 # persistent storage on your nodes.
808 # * `https://www.googleapis.com/auth/devstorage.read_only` is required for
809 # communicating with **gcr.io**
Dan O'Mearadd494642020-05-01 07:42:23 -0700810 # (the [Google Container
811 # Registry](https://cloud.google.com/container-registry/)).
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400812 #
813 # If unspecified, no scopes are added, unless Cloud Logging or Cloud
814 # Monitoring are enabled, in which case their required scopes will be added.
Bu Sun Kim65020912020-05-20 12:08:20 -0700815 &quot;A String&quot;,
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400816 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700817 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used by this instance. The instance may be
818 # scheduled on the specified or newer CPU platform. Applicable values are the
819 # friendly names of CPU platforms, such as
820 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Haswell&amp;quot;&lt;/code&gt; or
821 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Sandy Bridge&amp;quot;&lt;/code&gt;. For more
822 # information, read [how to specify min CPU
823 # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
824 &quot;localSsdCount&quot;: 42, # The number of local SSD disks to be attached to the node.
825 #
826 # The limit for this value is dependent upon the maximum number of
827 # disks available on a machine per zone. See:
828 # https://cloud.google.com/compute/docs/disks/local-ssd
829 # for more information.
Bu Sun Kim65020912020-05-20 12:08:20 -0700830 &quot;taints&quot;: [ # List of kubernetes taints to be applied to each node.
Dan O'Mearadd494642020-05-01 07:42:23 -0700831 #
832 # For more information, including usage and the valid values, see:
833 # https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
834 { # Kubernetes taint is comprised of three fields: key, value, and effect. Effect
835 # can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute.
836 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700837 # See
838 # [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration)
839 # for more information, including usage and the valid values.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700840 &quot;value&quot;: &quot;A String&quot;, # Value for taint.
841 &quot;key&quot;: &quot;A String&quot;, # Key for taint.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700842 &quot;effect&quot;: &quot;A String&quot;, # Effect for taint.
Dan O'Mearadd494642020-05-01 07:42:23 -0700843 },
844 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700845 &quot;imageType&quot;: &quot;A String&quot;, # The image type to use for this node. Note that for a given image type,
846 # the latest version of it will be used.
847 &quot;reservationAffinity&quot;: { # [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) # The optional reservation affinity. Setting this field will apply
848 # the specified [Zonal Compute
849 # Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
850 # to this node pool.
851 # is the configuration of desired reservation which instances could take
852 # capacity from.
853 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Corresponds to the type of reservation consumption.
854 &quot;key&quot;: &quot;A String&quot;, # Corresponds to the label key of a reservation resource. To target a
855 # SPECIFIC_RESERVATION by name, specify &quot;googleapis.com/reservation-name&quot; as
856 # the key and specify the name of your reservation as its value.
857 &quot;values&quot;: [ # Corresponds to the label value(s) of reservation resource(s).
858 &quot;A String&quot;,
859 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700860 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700861 &quot;machineType&quot;: &quot;A String&quot;, # The name of a Google Compute Engine [machine
862 # type](https://cloud.google.com/compute/docs/machine-types) (e.g.
863 # `n1-standard-1`).
864 #
865 # If unspecified, the default machine type is
866 # `n1-standard-1`.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700867 &quot;nodeGroup&quot;: &quot;A String&quot;, # Setting this field will assign instances of this
868 # pool to run on the specified node group. This is useful for running
869 # workloads on [sole tenant
870 # nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes).
Bu Sun Kim65020912020-05-20 12:08:20 -0700871 &quot;metadata&quot;: { # The metadata key/value pairs assigned to instances in the cluster.
872 #
873 # Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
874 # in length. These are reflected as part of a URL in the metadata server.
875 # Additionally, to avoid ambiguity, keys must not conflict with any other
876 # metadata keys for the project or be one of the reserved keys:
877 # &quot;cluster-location&quot;
878 # &quot;cluster-name&quot;
879 # &quot;cluster-uid&quot;
880 # &quot;configure-sh&quot;
881 # &quot;containerd-configure-sh&quot;
882 # &quot;enable-os-login&quot;
883 # &quot;gci-ensure-gke-docker&quot;
884 # &quot;gci-metrics-enabled&quot;
885 # &quot;gci-update-strategy&quot;
886 # &quot;instance-template&quot;
887 # &quot;kube-env&quot;
888 # &quot;startup-script&quot;
889 # &quot;user-data&quot;
890 # &quot;disable-address-manager&quot;
891 # &quot;windows-startup-script-ps1&quot;
892 # &quot;common-psm1&quot;
893 # &quot;k8s-node-setup-psm1&quot;
894 # &quot;install-ssh-psm1&quot;
895 # &quot;user-profile-psm1&quot;
896 # &quot;serial-port-logging-enable&quot;
897 #
898 # Values are free-form strings, and only have meaning as interpreted by
899 # the image running in the instance. The only restriction placed on them is
900 # that each value&#x27;s size must be less than or equal to 32 KB.
901 #
902 # The total size of all keys and values must be less than 512 KB.
903 &quot;a_key&quot;: &quot;A String&quot;,
904 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700905 &quot;tags&quot;: [ # The list of instance tags applied to all nodes. Tags are used to identify
906 # valid sources or targets for network firewalls and are specified by
907 # the client during cluster or node pool creation. Each tag within the list
908 # must comply with RFC1035.
909 &quot;A String&quot;,
910 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700911 &quot;sandboxConfig&quot;: { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node.
912 &quot;type&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node.
913 },
914 &quot;preemptible&quot;: True or False, # Whether the nodes are created as preemptible VM instances. See:
915 # https://cloud.google.com/compute/docs/instances/preemptible for more
916 # information about preemptible VM instances.
917 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to # The workload metadata configuration for this node.
918 # workloads on the node pool.
919 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running
920 # on the node pool.
921 },
922 &quot;diskSizeGb&quot;: 42, # Size of the disk attached to each node, specified in GB.
923 # The smallest allowed disk size is 10GB.
924 #
925 # If unspecified, the default disk size is 100GB.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700926 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs.
927 # Specify the email address of the Service Account; otherwise, if no Service
928 # Account is specified, the &quot;default&quot; service account is used.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700929 &quot;accelerators&quot;: [ # A list of hardware accelerators to be attached to each node.
930 # See https://cloud.google.com/compute/docs/gpus for more information about
931 # support for GPUs.
932 { # AcceleratorConfig represents a Hardware Accelerator request.
933 &quot;acceleratorType&quot;: &quot;A String&quot;, # The accelerator type resource name. List of supported accelerators
934 # [here](https://cloud.google.com/compute/docs/gpus)
935 &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of the accelerator cards exposed to an instance.
936 },
937 ],
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400938 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700939 &quot;resourceUsageExportConfig&quot;: { # Configuration for exporting cluster resource usages. # Configuration for exporting resource usages. Resource usage export is
940 # disabled when this config is unspecified.
941 &quot;enableNetworkEgressMetering&quot;: True or False, # Whether to enable network egress metering for this cluster. If enabled, a
942 # daemonset will be created in the cluster to meter network egress traffic.
943 &quot;bigqueryDestination&quot;: { # Parameters for using BigQuery as the destination of resource usage export. # Configuration to use BigQuery as usage export destination.
944 &quot;datasetId&quot;: &quot;A String&quot;, # The ID of a BigQuery Dataset.
945 },
946 &quot;consumptionMeteringConfig&quot;: { # Parameters for controlling consumption metering. # Configuration to enable resource consumption metering.
947 &quot;enabled&quot;: True or False, # Whether to enable consumption metering for this cluster. If enabled, a
948 # second BigQuery table will be created to hold resource consumption
949 # records.
950 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700951 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700952 &quot;initialNodeCount&quot;: 42, # The number of nodes to create in this cluster. You must ensure that your
953 # Compute Engine [resource quota](https://cloud.google.com/compute/quotas)
954 # is sufficient for this number of instances. You must also have available
955 # firewall and routes quota.
956 # For requests, this field should only be used in lieu of a
957 # &quot;node_pool&quot; object, since this configuration (along with the
958 # &quot;node_config&quot;) will be used to create a &quot;NodePool&quot; object with an
959 # auto-generated name. Do not use this and a node_pool at the same time.
960 #
961 # This field is deprecated, use node_pool.initial_node_count instead.
Bu Sun Kim65020912020-05-20 12:08:20 -0700962 &quot;name&quot;: &quot;A String&quot;, # The name of this cluster. The name must be unique within this project
963 # and location (e.g. zone or region), and can be up to 40 characters with
964 # the following restrictions:
965 #
966 # * Lowercase letters, numbers, and hyphens only.
967 # * Must start with a letter.
968 # * Must end with a number or a letter.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700969 &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
970 # policies.
971 # policies.
972 &quot;workloadPool&quot;: &quot;A String&quot;, # The workload pool to attach all Kubernetes service accounts to.
973 },
974 &quot;networkConfig&quot;: { # NetworkConfig reports the relative names of network &amp; subnetwork. # Configuration for cluster networking.
975 &quot;network&quot;: &quot;A String&quot;, # Output only. The relative name of the Google Compute Engine
976 # network(https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
977 # to which the cluster is connected. Example:
978 # projects/my-project/global/networks/my-network
979 &quot;enableIntraNodeVisibility&quot;: True or False, # Whether Intra-node visibility is enabled for this cluster.
980 # This makes same node pod to pod traffic visible for VPC network.
981 &quot;subnetwork&quot;: &quot;A String&quot;, # Output only. The relative name of the Google Compute Engine
982 # [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the
983 # cluster is connected. Example:
984 # projects/my-project/regions/us-central1/subnetworks/my-subnet
985 },
986 &quot;databaseEncryption&quot;: { # Configuration of etcd encryption. # Configuration of etcd encryption.
987 &quot;state&quot;: &quot;A String&quot;, # Denotes the state of etcd encryption.
988 &quot;keyName&quot;: &quot;A String&quot;, # Name of CloudKMS key to use for the encryption of secrets in etcd.
989 # Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key
990 },
991 &quot;privateClusterConfig&quot;: { # Configuration options for private clusters. # Configuration for private cluster.
992 &quot;privateEndpoint&quot;: &quot;A String&quot;, # Output only. The internal IP address of this cluster&#x27;s master endpoint.
993 &quot;peeringName&quot;: &quot;A String&quot;, # Output only. The peering name in the customer VPC used by this cluster.
994 &quot;enablePrivateNodes&quot;: True or False, # Whether nodes have internal IP addresses only. If enabled, all nodes are
995 # given only RFC 1918 private addresses and communicate with the master via
996 # private networking.
997 &quot;publicEndpoint&quot;: &quot;A String&quot;, # Output only. The external IP address of this cluster&#x27;s master endpoint.
998 &quot;enablePrivateEndpoint&quot;: True or False, # Whether the master&#x27;s internal IP address is used as the cluster endpoint.
999 &quot;masterIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP range in CIDR notation to use for the hosted master network. This
1000 # range will be used for assigning internal IP addresses to the master or
1001 # set of masters, as well as the ILB VIP. This range must not overlap with
1002 # any other ranges in use within the cluster&#x27;s network.
1003 },
1004 &quot;createTime&quot;: &quot;A String&quot;, # [Output only] The time the cluster was created, in
1005 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1006 &quot;nodePools&quot;: [ # The node pools associated with this cluster.
1007 # This field should not be set if &quot;node_config&quot; or &quot;initial_node_count&quot; are
1008 # specified.
1009 { # NodePool contains the name and configuration for a cluster&#x27;s node pool.
1010 # Node pools are a set of nodes (i.e. VM&#x27;s), with a common configuration and
1011 # specification, under the control of the cluster master. They may have a set
1012 # of Kubernetes labels applied to them, which may be used to reference them
1013 # during pod scheduling. They may also be resized up or down, to accommodate
1014 # the workload.
1015 &quot;selfLink&quot;: &quot;A String&quot;, # [Output only] Server-defined URL for the resource.
1016 &quot;management&quot;: { # NodeManagement defines the set of node management services turned on for the # NodeManagement configuration for this NodePool.
1017 # node pool.
1018 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool.
1019 # the Auto Upgrades will proceed.
1020 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
1021 # with the description of the upgrade.
1022 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
1023 # with the approximate start time for the upgrades, in
1024 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1025 },
1026 &quot;autoRepair&quot;: True or False, # A flag that specifies whether the node auto-repair is enabled for the node
1027 # pool. If enabled, the nodes in this node pool will be monitored and, if
1028 # they fail health checks too many times, an automatic repair action will be
1029 # triggered.
1030 &quot;autoUpgrade&quot;: True or False, # A flag that specifies whether node auto-upgrade is enabled for the node
1031 # pool. If enabled, node auto-upgrade helps keep the nodes in your node pool
1032 # up to date with the latest release version of Kubernetes.
1033 },
1034 &quot;upgradeSettings&quot;: { # These upgrade settings control the level of parallelism and the level of # Upgrade settings control disruption and speed of the upgrade.
1035 # disruption caused by an upgrade.
1036 #
1037 # maxUnavailable controls the number of nodes that can be simultaneously
1038 # unavailable.
1039 #
1040 # maxSurge controls the number of additional nodes that can be added to the
1041 # node pool temporarily for the time of the upgrade to increase the number of
1042 # available nodes.
1043 #
1044 # (maxUnavailable + maxSurge) determines the level of parallelism (how many
1045 # nodes are being upgraded at the same time).
1046 #
1047 # Note: upgrades inevitably introduce some disruption since workloads need to
1048 # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
1049 # this holds true. (Disruption stays within the limits of
1050 # PodDisruptionBudget, if it is configured.)
1051 #
1052 # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
1053 # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
1054 # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
1055 # down 3 old (not yet upgraded) nodes at the same time. This ensures that
1056 # there are always at least 4 nodes available.
1057 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during
1058 # the upgrade process. A node is considered available if its status is
1059 # Ready.
1060 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size
1061 # of the node pool during the upgrade process.
1062 },
1063 &quot;initialNodeCount&quot;: 42, # The initial node count for the pool. You must ensure that your
1064 # Compute Engine [resource quota](https://cloud.google.com/compute/quotas)
1065 # is sufficient for this number of instances. You must also have available
1066 # firewall and routes quota.
1067 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output only] Additional information about the current status of this
1068 # node pool instance, if available.
1069 &quot;version&quot;: &quot;A String&quot;, # The version of the Kubernetes of this node.
1070 &quot;conditions&quot;: [ # Which conditions caused the current node pool state.
1071 { # StatusCondition describes why a cluster or a node pool has a certain status
1072 # (e.g., ERROR or DEGRADED).
1073 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
1074 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
1075 },
1076 ],
1077 &quot;config&quot;: { # Parameters that describe the nodes in a cluster. # The node configuration of the pool.
1078 &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;)
1079 #
1080 # If unspecified, the default disk type is &#x27;pd-standard&#x27;
1081 &quot;bootDiskKmsKey&quot;: &quot;A String&quot;, #
1082 # The Customer Managed Encryption Key used to encrypt the boot disk attached
1083 # to each node in the node pool. This should be of the form
1084 # projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
1085 # For more information about protecting resources with Cloud KMS Keys please
1086 # see:
1087 # https://cloud.google.com/compute/docs/disks/customer-managed-encryption
1088 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
1089 &quot;enableIntegrityMonitoring&quot;: True or False, # Defines whether the instance has integrity monitoring enabled.
1090 #
1091 # Enables monitoring and attestation of the boot integrity of the instance.
1092 # The attestation is performed against the integrity policy baseline. This
1093 # baseline is initially derived from the implicitly trusted boot image when
1094 # the instance is created.
1095 &quot;enableSecureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled.
1096 #
1097 # Secure Boot helps ensure that the system only runs authentic software by
1098 # verifying the digital signature of all boot components, and halting the
1099 # boot process if signature verification fails.
1100 },
1101 &quot;labels&quot;: { # The map of Kubernetes labels (key/value pairs) to be applied to each node.
1102 # These will added in addition to any default label(s) that
1103 # Kubernetes may apply to the node.
1104 # In case of conflict in label keys, the applied set may differ depending on
1105 # the Kubernetes version -- it&#x27;s best to assume the behavior is undefined
1106 # and conflicts should be avoided.
1107 # For more information, including usage and the valid values, see:
1108 # https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
1109 &quot;a_key&quot;: &quot;A String&quot;,
1110 },
1111 &quot;oauthScopes&quot;: [ # The set of Google API scopes to be made available on all of the
1112 # node VMs under the &quot;default&quot; service account.
1113 #
1114 # The following scopes are recommended, but not required, and by default are
1115 # not included:
1116 #
1117 # * `https://www.googleapis.com/auth/compute` is required for mounting
1118 # persistent storage on your nodes.
1119 # * `https://www.googleapis.com/auth/devstorage.read_only` is required for
1120 # communicating with **gcr.io**
1121 # (the [Google Container
1122 # Registry](https://cloud.google.com/container-registry/)).
1123 #
1124 # If unspecified, no scopes are added, unless Cloud Logging or Cloud
1125 # Monitoring are enabled, in which case their required scopes will be added.
1126 &quot;A String&quot;,
1127 ],
1128 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used by this instance. The instance may be
1129 # scheduled on the specified or newer CPU platform. Applicable values are the
1130 # friendly names of CPU platforms, such as
1131 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Haswell&amp;quot;&lt;/code&gt; or
1132 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Sandy Bridge&amp;quot;&lt;/code&gt;. For more
1133 # information, read [how to specify min CPU
1134 # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
1135 &quot;localSsdCount&quot;: 42, # The number of local SSD disks to be attached to the node.
1136 #
1137 # The limit for this value is dependent upon the maximum number of
1138 # disks available on a machine per zone. See:
1139 # https://cloud.google.com/compute/docs/disks/local-ssd
1140 # for more information.
1141 &quot;taints&quot;: [ # List of kubernetes taints to be applied to each node.
1142 #
1143 # For more information, including usage and the valid values, see:
1144 # https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
1145 { # Kubernetes taint is comprised of three fields: key, value, and effect. Effect
1146 # can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute.
1147 #
1148 # See
1149 # [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration)
1150 # for more information, including usage and the valid values.
1151 &quot;value&quot;: &quot;A String&quot;, # Value for taint.
1152 &quot;key&quot;: &quot;A String&quot;, # Key for taint.
1153 &quot;effect&quot;: &quot;A String&quot;, # Effect for taint.
1154 },
1155 ],
1156 &quot;imageType&quot;: &quot;A String&quot;, # The image type to use for this node. Note that for a given image type,
1157 # the latest version of it will be used.
1158 &quot;reservationAffinity&quot;: { # [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) # The optional reservation affinity. Setting this field will apply
1159 # the specified [Zonal Compute
1160 # Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
1161 # to this node pool.
1162 # is the configuration of desired reservation which instances could take
1163 # capacity from.
1164 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Corresponds to the type of reservation consumption.
1165 &quot;key&quot;: &quot;A String&quot;, # Corresponds to the label key of a reservation resource. To target a
1166 # SPECIFIC_RESERVATION by name, specify &quot;googleapis.com/reservation-name&quot; as
1167 # the key and specify the name of your reservation as its value.
1168 &quot;values&quot;: [ # Corresponds to the label value(s) of reservation resource(s).
1169 &quot;A String&quot;,
1170 ],
1171 },
1172 &quot;machineType&quot;: &quot;A String&quot;, # The name of a Google Compute Engine [machine
1173 # type](https://cloud.google.com/compute/docs/machine-types) (e.g.
1174 # `n1-standard-1`).
1175 #
1176 # If unspecified, the default machine type is
1177 # `n1-standard-1`.
1178 &quot;nodeGroup&quot;: &quot;A String&quot;, # Setting this field will assign instances of this
1179 # pool to run on the specified node group. This is useful for running
1180 # workloads on [sole tenant
1181 # nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes).
1182 &quot;metadata&quot;: { # The metadata key/value pairs assigned to instances in the cluster.
1183 #
1184 # Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
1185 # in length. These are reflected as part of a URL in the metadata server.
1186 # Additionally, to avoid ambiguity, keys must not conflict with any other
1187 # metadata keys for the project or be one of the reserved keys:
1188 # &quot;cluster-location&quot;
1189 # &quot;cluster-name&quot;
1190 # &quot;cluster-uid&quot;
1191 # &quot;configure-sh&quot;
1192 # &quot;containerd-configure-sh&quot;
1193 # &quot;enable-os-login&quot;
1194 # &quot;gci-ensure-gke-docker&quot;
1195 # &quot;gci-metrics-enabled&quot;
1196 # &quot;gci-update-strategy&quot;
1197 # &quot;instance-template&quot;
1198 # &quot;kube-env&quot;
1199 # &quot;startup-script&quot;
1200 # &quot;user-data&quot;
1201 # &quot;disable-address-manager&quot;
1202 # &quot;windows-startup-script-ps1&quot;
1203 # &quot;common-psm1&quot;
1204 # &quot;k8s-node-setup-psm1&quot;
1205 # &quot;install-ssh-psm1&quot;
1206 # &quot;user-profile-psm1&quot;
1207 # &quot;serial-port-logging-enable&quot;
1208 #
1209 # Values are free-form strings, and only have meaning as interpreted by
1210 # the image running in the instance. The only restriction placed on them is
1211 # that each value&#x27;s size must be less than or equal to 32 KB.
1212 #
1213 # The total size of all keys and values must be less than 512 KB.
1214 &quot;a_key&quot;: &quot;A String&quot;,
1215 },
1216 &quot;tags&quot;: [ # The list of instance tags applied to all nodes. Tags are used to identify
1217 # valid sources or targets for network firewalls and are specified by
1218 # the client during cluster or node pool creation. Each tag within the list
1219 # must comply with RFC1035.
1220 &quot;A String&quot;,
1221 ],
1222 &quot;sandboxConfig&quot;: { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node.
1223 &quot;type&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node.
1224 },
1225 &quot;preemptible&quot;: True or False, # Whether the nodes are created as preemptible VM instances. See:
1226 # https://cloud.google.com/compute/docs/instances/preemptible for more
1227 # information about preemptible VM instances.
1228 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to # The workload metadata configuration for this node.
1229 # workloads on the node pool.
1230 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running
1231 # on the node pool.
1232 },
1233 &quot;diskSizeGb&quot;: 42, # Size of the disk attached to each node, specified in GB.
1234 # The smallest allowed disk size is 10GB.
1235 #
1236 # If unspecified, the default disk size is 100GB.
1237 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs.
1238 # Specify the email address of the Service Account; otherwise, if no Service
1239 # Account is specified, the &quot;default&quot; service account is used.
1240 &quot;accelerators&quot;: [ # A list of hardware accelerators to be attached to each node.
1241 # See https://cloud.google.com/compute/docs/gpus for more information about
1242 # support for GPUs.
1243 { # AcceleratorConfig represents a Hardware Accelerator request.
1244 &quot;acceleratorType&quot;: &quot;A String&quot;, # The accelerator type resource name. List of supported accelerators
1245 # [here](https://cloud.google.com/compute/docs/gpus)
1246 &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of the accelerator cards exposed to an instance.
1247 },
1248 ],
1249 },
1250 &quot;name&quot;: &quot;A String&quot;, # The name of the node pool.
1251 &quot;maxPodsConstraint&quot;: { # Constraints applied to pods. # The constraint on the maximum number of pods that can be run
1252 # simultaneously on a node in the node pool.
1253 &quot;maxPodsPerNode&quot;: &quot;A String&quot;, # Constraint enforced on the max num of pods per node.
1254 },
1255 &quot;autoscaling&quot;: { # NodePoolAutoscaling contains information required by cluster autoscaler to # Autoscaler configuration for this NodePool. Autoscaler is enabled
1256 # only if a valid configuration is present.
1257 # adjust the size of the node pool to the current cluster usage.
1258 &quot;minNodeCount&quot;: 42, # Minimum number of nodes in the NodePool. Must be &gt;= 1 and &lt;=
1259 # max_node_count.
1260 &quot;maxNodeCount&quot;: 42, # Maximum number of nodes in the NodePool. Must be &gt;= min_node_count. There
1261 # has to enough quota to scale up the cluster.
1262 &quot;enabled&quot;: True or False, # Is autoscaling enabled for this node pool.
1263 &quot;autoprovisioned&quot;: True or False, # Can this node pool be deleted automatically.
1264 },
1265 &quot;podIpv4CidrSize&quot;: 42, # [Output only] The pod CIDR block size per node in this node pool.
1266 &quot;instanceGroupUrls&quot;: [ # [Output only] The resource URLs of the [managed instance
1267 # groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
1268 # associated with this node pool.
1269 &quot;A String&quot;,
1270 ],
1271 &quot;status&quot;: &quot;A String&quot;, # [Output only] The status of the nodes in this pool instance.
1272 &quot;locations&quot;: [ # The list of Google Compute Engine
1273 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
1274 # NodePool&#x27;s nodes should be located.
1275 &quot;A String&quot;,
1276 ],
1277 },
1278 ],
1279 &quot;subnetwork&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
1280 # [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which
1281 # the cluster is connected.
1282 &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.
1283 # cluster, enabling additional functionality.
1284 &quot;kubernetesDashboard&quot;: { # Configuration for the Kubernetes Dashboard. # Configuration for the Kubernetes Dashboard.
1285 # This addon is deprecated, and will be disabled in 1.15. It is recommended
1286 # to use the Cloud Console to manage and monitor your Kubernetes clusters,
1287 # workloads and applications. For more information, see:
1288 # https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
1289 &quot;disabled&quot;: True or False, # Whether the Kubernetes Dashboard is enabled for this cluster.
1290 },
1291 &quot;cloudRunConfig&quot;: { # Configuration options for the Cloud Run feature. # Configuration for the Cloud Run addon, which allows the user to use a
1292 # managed Knative service.
1293 &quot;disabled&quot;: True or False, # Whether Cloud Run addon is enabled for this cluster.
1294 },
1295 &quot;httpLoadBalancing&quot;: { # Configuration options for the HTTP (L7) load balancing controller addon, # Configuration for the HTTP (L7) load balancing controller addon, which
1296 # makes it easy to set up HTTP load balancers for services in a cluster.
1297 # which makes it easy to set up HTTP load balancers for services in a cluster.
1298 &quot;disabled&quot;: True or False, # Whether the HTTP Load Balancing controller is enabled in the cluster.
1299 # When enabled, it runs a small pod in the cluster that manages the load
1300 # balancers.
1301 },
1302 &quot;horizontalPodAutoscaling&quot;: { # Configuration options for the horizontal pod autoscaling feature, which # Configuration for the horizontal pod autoscaling feature, which
1303 # increases or decreases the number of replica pods a replication controller
1304 # has based on the resource usage of the existing pods.
1305 # increases or decreases the number of replica pods a replication controller
1306 # has based on the resource usage of the existing pods.
1307 &quot;disabled&quot;: True or False, # Whether the Horizontal Pod Autoscaling feature is enabled in the cluster.
1308 # When enabled, it ensures that metrics are collected into Stackdriver
1309 # Monitoring.
1310 },
1311 &quot;dnsCacheConfig&quot;: { # Configuration for NodeLocal DNSCache # Configuration for NodeLocalDNS, a dns cache running on cluster nodes
1312 &quot;enabled&quot;: True or False, # Whether NodeLocal DNSCache is enabled for this cluster.
1313 },
1314 &quot;networkPolicyConfig&quot;: { # Configuration for NetworkPolicy. This only tracks whether the addon # Configuration for NetworkPolicy. This only tracks whether the addon
1315 # is enabled or not on the Master, it does not track whether network policy
1316 # is enabled for the nodes.
1317 # is enabled or not on the Master, it does not track whether network policy
1318 # is enabled for the nodes.
1319 &quot;disabled&quot;: True or False, # Whether NetworkPolicy is enabled for this cluster.
1320 },
1321 },
1322 &quot;masterAuth&quot;: { # The authentication information for accessing the master endpoint. # The authentication information for accessing the master endpoint.
1323 # If unspecified, the defaults are used:
1324 # For clusters before v1.12, if master_auth is unspecified, `username` will
1325 # be set to &quot;admin&quot;, a random password will be generated, and a client
1326 # certificate will be issued.
1327 # Authentication can be done using HTTP basic auth or using client
1328 # certificates.
1329 &quot;clientKey&quot;: &quot;A String&quot;, # [Output only] Base64-encoded private key used by clients to authenticate
1330 # to the cluster endpoint.
1331 &quot;clientCertificate&quot;: &quot;A String&quot;, # [Output only] Base64-encoded public certificate used by clients to
1332 # authenticate to the cluster endpoint.
1333 &quot;username&quot;: &quot;A String&quot;, # The username to use for HTTP basic authentication to the master endpoint.
1334 # For clusters v1.6.0 and later, basic authentication can be disabled by
1335 # leaving username unspecified (or setting it to the empty string).
1336 &quot;password&quot;: &quot;A String&quot;, # The password to use for HTTP basic authentication to the master endpoint.
1337 # Because the master endpoint is open to the Internet, you should create a
1338 # strong password. If a password is provided for cluster creation, username
1339 # must be non-empty.
1340 &quot;clientCertificateConfig&quot;: { # Configuration for client certificates on the cluster. # Configuration for client certificate authentication on the cluster. For
1341 # clusters before v1.12, if no configuration is specified, a client
1342 # certificate is issued.
1343 &quot;issueClientCertificate&quot;: True or False, # Issue a client certificate.
1344 },
1345 &quot;clusterCaCertificate&quot;: &quot;A String&quot;, # [Output only] Base64-encoded public certificate that is the root of
1346 # trust for the cluster.
1347 },
1348 &quot;verticalPodAutoscaling&quot;: { # VerticalPodAutoscaling contains global, per-cluster information # Cluster-level Vertical Pod Autoscaling configuration.
1349 # required by Vertical Pod Autoscaler to automatically adjust
1350 # the resources of pods controlled by it.
1351 &quot;enabled&quot;: True or False, # Enables vertical pod autoscaling.
1352 },
1353 &quot;enableTpu&quot;: True or False, # Enable the ability to use Cloud TPUs in this cluster.
1354 &quot;initialClusterVersion&quot;: &quot;A String&quot;, # The initial Kubernetes version for this cluster. Valid versions are those
1355 # found in validMasterVersions returned by getServerConfig. The version can
1356 # be upgraded over time; such upgrades are reflected in
1357 # currentMasterVersion and currentNodeVersion.
Bu Sun Kim65020912020-05-20 12:08:20 -07001358 #
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001359 # Users may specify either explicit versions offered by
1360 # Kubernetes Engine or version aliases, which have the following behavior:
1361 #
1362 # - &quot;latest&quot;: picks the highest valid Kubernetes version
1363 # - &quot;1.X&quot;: picks the highest valid patch+gke.N patch in the 1.X version
1364 # - &quot;1.X.Y&quot;: picks the highest valid gke.N patch in the 1.X.Y version
1365 # - &quot;1.X.Y-gke.N&quot;: picks an explicit Kubernetes version
1366 # - &quot;&quot;,&quot;-&quot;: picks the default Kubernetes version
1367 &quot;currentNodeCount&quot;: 42, # [Output only] The number of nodes currently in the cluster. Deprecated.
1368 # Call Kubernetes API directly to retrieve node information.
1369 &quot;tpuIpv4CidrBlock&quot;: &quot;A String&quot;, # [Output only] The IP address range of the Cloud TPUs in this cluster, in
1370 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
1371 # notation (e.g. `1.2.3.4/29`).
1372 &quot;locations&quot;: [ # The list of Google Compute Engine
1373 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
1374 # cluster&#x27;s nodes should be located.
1375 &quot;A String&quot;,
1376 ],
1377 &quot;selfLink&quot;: &quot;A String&quot;, # [Output only] Server-defined URL for the resource.
1378 &quot;description&quot;: &quot;A String&quot;, # An optional description of this cluster.
1379 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output only] Additional information about the current status of this
1380 # cluster, if available.
Bu Sun Kim65020912020-05-20 12:08:20 -07001381 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
1382 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1383 # or
1384 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1385 # in which the cluster resides.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001386 &quot;servicesIpv4Cidr&quot;: &quot;A String&quot;, # [Output only] The IP address range of the Kubernetes services in
1387 # this cluster, in
1388 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
1389 # notation (e.g. `1.2.3.4/29`). Service addresses are
1390 # typically put in the last `/16` from the container CIDR.
Takashi Matsuo06694102015-09-11 13:55:40 -07001391 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001392 &quot;projectId&quot;: &quot;A String&quot;, # Deprecated. The Google Developers Console [project ID or project
1393 # number](https://support.google.com/cloud/answer/6158840).
1394 # This field has been deprecated and replaced by the parent field.
Takashi Matsuo06694102015-09-11 13:55:40 -07001395 }
1396
1397 x__xgafv: string, V1 error format.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04001398 Allowed values
1399 1 - v1 error format
1400 2 - v2 error format
Takashi Matsuo06694102015-09-11 13:55:40 -07001401
1402Returns:
1403 An object of the form:
1404
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04001405 { # This operation resource represents operations that may have happened or are
1406 # happening on the cluster. All fields are output only.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001407 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
1408 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
1409 # Unset for single-stage operations.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001410 &quot;metrics&quot;: [ # Progress metric bundle, for example:
1411 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
1412 # {name: &quot;nodes total&quot;, int_value: 32}]
1413 # or
1414 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
1415 # {name: &quot;progress scale&quot;, double_value: 1.0}]
1416 { # Progress metric is (string, int|float|string) pair.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001417 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001418 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
1419 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001420 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001421 },
1422 ],
1423 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
1424 # Unset for single-stage operations.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001425 &quot;stages&quot;: [ # Substages of an operation or a stage.
1426 # Object with schema name: OperationProgress
1427 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001428 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001429 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
1430 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
1431 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
1432 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
1433 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1434 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
1435 { # StatusCondition describes why a cluster or a node pool has a certain status
1436 # (e.g., ERROR or DEGRADED).
1437 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
1438 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
1439 },
1440 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001441 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
1442 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1443 # operation is taking place. This field is deprecated, use location instead.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001444 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
Bu Sun Kim65020912020-05-20 12:08:20 -07001445 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001446 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
1447 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
1448 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07001449 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001450 { # StatusCondition describes why a cluster or a node pool has a certain status
1451 # (e.g., ERROR or DEGRADED).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001452 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001453 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001454 },
1455 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001456 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001457 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1458 # or
1459 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1460 # in which the cluster resides.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001461 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
Takashi Matsuo06694102015-09-11 13:55:40 -07001462 }</pre>
1463</div>
1464
1465<div class="method">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001466 <code class="details" id="delete">delete(projectId, zone, clusterId, name=None, x__xgafv=None)</code>
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04001467 <pre>Deletes the cluster, including the Kubernetes endpoint and all worker
1468nodes.
1469
1470Firewalls and routes that were configured during cluster creation
1471are also deleted.
1472
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001473Other Google Compute Engine resources that might be in use by the cluster,
Bu Sun Kim65020912020-05-20 12:08:20 -07001474such as load balancer resources, are not deleted if they weren&#x27;t present
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001475when the cluster was initially created.
Takashi Matsuo06694102015-09-11 13:55:40 -07001476
1477Args:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001478 projectId: string, Deprecated. The Google Developers Console [project ID or project
1479number](https://support.google.com/cloud/answer/6158840).
1480This field has been deprecated and replaced by the name field. (required)
1481 zone: string, Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001482[zone](https://cloud.google.com/compute/docs/zones#available) in which the
1483cluster resides. This field has been deprecated and replaced by the name
1484field. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001485 clusterId: string, Deprecated. The name of the cluster to delete.
1486This field has been deprecated and replaced by the name field. (required)
1487 name: string, The name (project, location, cluster) of the cluster to delete.
Bu Sun Kim65020912020-05-20 12:08:20 -07001488Specified in the format `projects/*/locations/*/clusters/*`.
Takashi Matsuo06694102015-09-11 13:55:40 -07001489 x__xgafv: string, V1 error format.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04001490 Allowed values
1491 1 - v1 error format
1492 2 - v2 error format
Takashi Matsuo06694102015-09-11 13:55:40 -07001493
1494Returns:
1495 An object of the form:
1496
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04001497 { # This operation resource represents operations that may have happened or are
1498 # happening on the cluster. All fields are output only.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001499 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
1500 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
1501 # Unset for single-stage operations.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001502 &quot;metrics&quot;: [ # Progress metric bundle, for example:
1503 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
1504 # {name: &quot;nodes total&quot;, int_value: 32}]
1505 # or
1506 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
1507 # {name: &quot;progress scale&quot;, double_value: 1.0}]
1508 { # Progress metric is (string, int|float|string) pair.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001509 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001510 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
1511 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001512 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001513 },
1514 ],
1515 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
1516 # Unset for single-stage operations.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001517 &quot;stages&quot;: [ # Substages of an operation or a stage.
1518 # Object with schema name: OperationProgress
1519 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001520 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001521 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
1522 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
1523 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
1524 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
1525 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1526 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
1527 { # StatusCondition describes why a cluster or a node pool has a certain status
1528 # (e.g., ERROR or DEGRADED).
1529 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
1530 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
1531 },
1532 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001533 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
1534 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1535 # operation is taking place. This field is deprecated, use location instead.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001536 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
Bu Sun Kim65020912020-05-20 12:08:20 -07001537 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001538 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
1539 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
1540 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07001541 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001542 { # StatusCondition describes why a cluster or a node pool has a certain status
1543 # (e.g., ERROR or DEGRADED).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001544 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001545 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001546 },
1547 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001548 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001549 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1550 # or
1551 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1552 # in which the cluster resides.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001553 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
Takashi Matsuo06694102015-09-11 13:55:40 -07001554 }</pre>
1555</div>
1556
1557<div class="method">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001558 <code class="details" id="get">get(projectId, zone, clusterId, name=None, x__xgafv=None)</code>
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -07001559 <pre>Gets the details of a specific cluster.
Takashi Matsuo06694102015-09-11 13:55:40 -07001560
1561Args:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001562 projectId: string, Deprecated. The Google Developers Console [project ID or project
1563number](https://support.google.com/cloud/answer/6158840).
1564This field has been deprecated and replaced by the name field. (required)
1565 zone: string, Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001566[zone](https://cloud.google.com/compute/docs/zones#available) in which the
1567cluster resides. This field has been deprecated and replaced by the name
1568field. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001569 clusterId: string, Deprecated. The name of the cluster to retrieve.
1570This field has been deprecated and replaced by the name field. (required)
1571 name: string, The name (project, location, cluster) of the cluster to retrieve.
Bu Sun Kim65020912020-05-20 12:08:20 -07001572Specified in the format `projects/*/locations/*/clusters/*`.
Takashi Matsuo06694102015-09-11 13:55:40 -07001573 x__xgafv: string, V1 error format.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04001574 Allowed values
1575 1 - v1 error format
1576 2 - v2 error format
Takashi Matsuo06694102015-09-11 13:55:40 -07001577
1578Returns:
1579 An object of the form:
1580
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001581 { # A Google Kubernetes Engine cluster.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001582 &quot;currentMasterVersion&quot;: &quot;A String&quot;, # [Output only] The current software version of the master endpoint.
1583 &quot;currentNodeVersion&quot;: &quot;A String&quot;, # [Output only] Deprecated, use
1584 # [NodePools.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools)
1585 # instead. The current version of the node software components. If they are
1586 # currently at multiple versions because they&#x27;re in the process of being
1587 # upgraded, this reflects the minimum version of all nodes.
1588 &quot;authenticatorGroupsConfig&quot;: { # Configuration for returning group information from authenticators. # Configuration controlling RBAC group membership information.
1589 &quot;securityGroup&quot;: &quot;A String&quot;, # The name of the security group-of-groups to be used. Only relevant
1590 # if enabled = true.
1591 &quot;enabled&quot;: True or False, # Whether this cluster should return group membership lookups
1592 # during authentication using a group of security groups.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001593 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001594 &quot;enableKubernetesAlpha&quot;: True or False, # Kubernetes alpha features are enabled on this cluster. This includes alpha
1595 # API groups (e.g. v1alpha1) and features that may not be production ready in
1596 # the kubernetes version of the master and nodes.
1597 # The cluster has no SLA for uptime and master/node upgrades are disabled.
1598 # Alpha enabled clusters are automatically deleted thirty days after
1599 # creation.
1600 &quot;ipAllocationPolicy&quot;: { # Configuration for controlling how IPs are allocated in the cluster. # Configuration for cluster IP allocation.
1601 &quot;servicesSecondaryRangeName&quot;: &quot;A String&quot;, # The name of the secondary range to be used as for the services
1602 # CIDR block. The secondary range will be used for service
1603 # ClusterIPs. This must be an existing secondary range associated
1604 # with the cluster subnetwork.
1605 #
1606 # This field is only applicable with use_ip_aliases is true and
1607 # create_subnetwork is false.
1608 &quot;subnetworkName&quot;: &quot;A String&quot;, # A custom subnetwork name to be used if `create_subnetwork` is true. If
1609 # this field is empty, then an automatic name will be chosen for the new
1610 # subnetwork.
1611 &quot;nodeIpv4Cidr&quot;: &quot;A String&quot;, # This field is deprecated, use node_ipv4_cidr_block.
1612 &quot;servicesIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP address range of the services IPs in this cluster. If blank, a range
1613 # will be automatically chosen with the default size.
1614 #
1615 # This field is only applicable when `use_ip_aliases` is true.
1616 #
1617 # Set to blank to have a range chosen with the default size.
1618 #
1619 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
1620 # netmask.
1621 #
1622 # Set to a
1623 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
1624 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
1625 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
1626 # to use.
1627 &quot;servicesIpv4Cidr&quot;: &quot;A String&quot;, # This field is deprecated, use services_ipv4_cidr_block.
1628 &quot;clusterSecondaryRangeName&quot;: &quot;A String&quot;, # The name of the secondary range to be used for the cluster CIDR
1629 # block. The secondary range will be used for pod IP
1630 # addresses. This must be an existing secondary range associated
1631 # with the cluster subnetwork.
1632 #
1633 # This field is only applicable with use_ip_aliases is true and
1634 # create_subnetwork is false.
1635 &quot;tpuIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP address range of the Cloud TPUs in this cluster. If unspecified, a
1636 # range will be automatically chosen with the default size.
1637 #
1638 # This field is only applicable when `use_ip_aliases` is true.
1639 #
1640 # If unspecified, the range will use the default size.
1641 #
1642 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
1643 # netmask.
1644 #
1645 # Set to a
1646 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
1647 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
1648 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
1649 # to use.
1650 &quot;nodeIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP address range of the instance IPs in this cluster.
1651 #
1652 # This is applicable only if `create_subnetwork` is true.
1653 #
1654 # Set to blank to have a range chosen with the default size.
1655 #
1656 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
1657 # netmask.
1658 #
1659 # Set to a
1660 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
1661 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
1662 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
1663 # to use.
1664 &quot;useIpAliases&quot;: True or False, # Whether alias IPs will be used for pod IPs in the cluster.
1665 &quot;createSubnetwork&quot;: True or False, # Whether a new subnetwork will be created automatically for the cluster.
1666 #
1667 # This field is only applicable when `use_ip_aliases` is true.
1668 &quot;clusterIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP address range for the cluster pod IPs. If this field is set, then
1669 # `cluster.cluster_ipv4_cidr` must be left blank.
1670 #
1671 # This field is only applicable when `use_ip_aliases` is true.
1672 #
1673 # Set to blank to have a range chosen with the default size.
1674 #
1675 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
1676 # netmask.
1677 #
1678 # Set to a
1679 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
1680 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
1681 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
1682 # to use.
1683 &quot;clusterIpv4Cidr&quot;: &quot;A String&quot;, # This field is deprecated, use cluster_ipv4_cidr_block.
1684 },
1685 &quot;loggingService&quot;: &quot;A String&quot;, # The logging service the cluster should use to write logs.
1686 # Currently available options:
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001687 #
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001688 # * `logging.googleapis.com/kubernetes` - The Cloud Logging
1689 # service with a Kubernetes-native resource model
1690 # * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
1691 # available as of GKE 1.15).
1692 # * `none` - no logs will be exported from the cluster.
1693 #
1694 # If left as an empty string,`logging.googleapis.com/kubernetes` will be
1695 # used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
1696 &quot;zone&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
1697 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1698 # cluster resides. This field is deprecated, use location instead.
1699 &quot;legacyAbac&quot;: { # Configuration for the legacy Attribute Based Access Control authorization # Configuration for the legacy ABAC authorization mode.
1700 # mode.
1701 &quot;enabled&quot;: True or False, # Whether the ABAC authorizer is enabled for this cluster. When enabled,
1702 # identities in the system, including service accounts, nodes, and
1703 # controllers, will have statically granted permissions beyond those
1704 # provided by the RBAC configuration or IAM.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001705 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001706 &quot;resourceLabels&quot;: { # The resource labels for the cluster to use to annotate any related
1707 # Google Compute Engine resources.
1708 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001709 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001710 &quot;nodeIpv4CidrSize&quot;: 42, # [Output only] The size of the address space on each node for hosting
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04001711 # containers. This is provisioned from within the `container_ipv4_cidr`
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001712 # range. This field will only be set when cluster is in route-based network
1713 # mode.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001714 &quot;releaseChannel&quot;: { # ReleaseChannel indicates which release channel a cluster is # Release channel configuration.
1715 # subscribed to. Release channels are arranged in order of risk.
1716 #
1717 # When a cluster is subscribed to a release channel, Google maintains
1718 # both the master version and the node version. Node auto-upgrade
1719 # defaults to true and cannot be disabled.
1720 &quot;channel&quot;: &quot;A String&quot;, # channel specifies which release channel the cluster is subscribed to.
Bu Sun Kim65020912020-05-20 12:08:20 -07001721 },
1722 &quot;maintenancePolicy&quot;: { # MaintenancePolicy defines the maintenance policy to be used for the cluster. # Configure the maintenance policy for this cluster.
1723 &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 -07001724 &quot;maintenanceExclusions&quot;: { # Exceptions to maintenance window. Non-emergency maintenance should not
1725 # occur in these windows.
1726 &quot;a_key&quot;: { # Represents an arbitrary window of time.
1727 &quot;endTime&quot;: &quot;A String&quot;, # The time that the window ends. The end time should take place after the
1728 # start time.
1729 &quot;startTime&quot;: &quot;A String&quot;, # The time that the window first starts.
1730 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001731 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001732 &quot;dailyMaintenanceWindow&quot;: { # Time window specified for daily maintenance operations. # DailyMaintenanceWindow specifies a daily maintenance operation window.
1733 &quot;duration&quot;: &quot;A String&quot;, # [Output only] Duration of the time window, automatically chosen to be
1734 # smallest possible in the given scenario.
1735 # Duration will be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)
1736 # format &quot;PTnHnMnS&quot;.
1737 &quot;startTime&quot;: &quot;A String&quot;, # Time within the maintenance window to start the maintenance operations.
1738 # Time format should be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)
1739 # format &quot;HH:MM&quot;, where HH : [00-23] and MM : [00-59] GMT.
1740 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001741 &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 -07001742 # maintenance to occur. The time windows may be overlapping. If no
1743 # maintenance windows are set, maintenance can occur at any time.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001744 &quot;window&quot;: { # Represents an arbitrary window of time. # The window of the first recurrence.
1745 &quot;endTime&quot;: &quot;A String&quot;, # The time that the window ends. The end time should take place after the
1746 # start time.
1747 &quot;startTime&quot;: &quot;A String&quot;, # The time that the window first starts.
1748 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001749 &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 -07001750 # this window reccurs. They go on for the span of time between the start and
1751 # end time.
1752 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001753 # For example, to have something repeat every weekday, you&#x27;d use:
Dan O'Mearadd494642020-05-01 07:42:23 -07001754 # &lt;code&gt;FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR&lt;/code&gt;
1755 # To repeat some window daily (equivalent to the DailyMaintenanceWindow):
1756 # &lt;code&gt;FREQ=DAILY&lt;/code&gt;
1757 # For the first weekend of every month:
1758 # &lt;code&gt;FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU&lt;/code&gt;
1759 # This specifies how frequently the window starts. Eg, if you wanted to have
Bu Sun Kim65020912020-05-20 12:08:20 -07001760 # a 9-5 UTC-4 window every weekday, you&#x27;d use something like:
Dan O'Mearadd494642020-05-01 07:42:23 -07001761 # &lt;code&gt;
1762 # start time = 2019-01-01T09:00:00-0400
1763 # end time = 2019-01-01T17:00:00-0400
1764 # recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
1765 # &lt;/code&gt;
1766 # Windows can span multiple days. Eg, to make the window encompass every
1767 # weekend from midnight Saturday till the last minute of Sunday UTC:
1768 # &lt;code&gt;
1769 # start time = 2019-01-05T00:00:00Z
1770 # end time = 2019-01-07T23:59:00Z
1771 # recurrence = FREQ=WEEKLY;BYDAY=SA
1772 # &lt;/code&gt;
Bu Sun Kim65020912020-05-20 12:08:20 -07001773 # Note the start and end time&#x27;s specific dates are largely arbitrary except
Dan O'Mearadd494642020-05-01 07:42:23 -07001774 # to specify duration of the window and when it first starts.
1775 # The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.
Dan O'Mearadd494642020-05-01 07:42:23 -07001776 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001777 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001778 &quot;resourceVersion&quot;: &quot;A String&quot;, # A hash identifying the version of this policy, so that updates to fields of
1779 # the policy won&#x27;t accidentally undo intermediate changes (and so that users
1780 # of the API unaware of some fields won&#x27;t accidentally remove other fields).
Dan O'Mearadd494642020-05-01 07:42:23 -07001781 # Make a &lt;code&gt;get()&lt;/code&gt; request to the cluster to get the current
1782 # resource version and include it with requests to set the policy.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001783 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001784 &quot;monitoringService&quot;: &quot;A String&quot;, # The monitoring service the cluster should use to write metrics.
1785 # Currently available options:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001786 #
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001787 # * &quot;monitoring.googleapis.com/kubernetes&quot; - The Cloud Monitoring
1788 # service with a Kubernetes-native resource model
1789 # * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
1790 # longer available as of GKE 1.15).
1791 # * `none` - No metrics will be exported from the cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -07001792 #
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001793 # If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
1794 # used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
1795 &quot;binaryAuthorization&quot;: { # Configuration for Binary Authorization. # Configuration for Binary Authorization.
1796 &quot;enabled&quot;: True or False, # Enable Binary Authorization for this cluster. If enabled, all container
1797 # images will be validated by Binary Authorization.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001798 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001799 &quot;expireTime&quot;: &quot;A String&quot;, # [Output only] The time the cluster will be automatically
1800 # deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1801 &quot;instanceGroupUrls&quot;: [ # Deprecated. Use node_pools.instance_group_urls.
Bu Sun Kim65020912020-05-20 12:08:20 -07001802 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001803 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001804 &quot;endpoint&quot;: &quot;A String&quot;, # [Output only] The IP address of this cluster&#x27;s master endpoint.
1805 # The endpoint can be accessed from the internet at
1806 # `https://username:password@endpoint/`.
1807 #
1808 # See the `masterAuth` property of this resource for username and
1809 # password information.
1810 &quot;shieldedNodes&quot;: { # Configuration of Shielded Nodes feature. # Shielded Nodes configuration.
1811 &quot;enabled&quot;: True or False, # Whether Shielded Nodes features are enabled on all nodes in this cluster.
1812 },
1813 &quot;masterAuthorizedNetworksConfig&quot;: { # Configuration options for the master authorized networks feature. Enabled # The configuration options for master authorized networks feature.
1814 # master authorized networks will disallow all external traffic to access
1815 # Kubernetes master through HTTPS except traffic from the given CIDR blocks,
1816 # Google Compute Engine Public IPs and Google Prod IPs.
1817 &quot;enabled&quot;: True or False, # Whether or not master authorized networks is enabled.
1818 &quot;cidrBlocks&quot;: [ # cidr_blocks define up to 50 external networks that could access
1819 # Kubernetes master through HTTPS.
1820 { # CidrBlock contains an optional name and one CIDR block.
1821 &quot;displayName&quot;: &quot;A String&quot;, # display_name is an optional field for users to identify CIDR blocks.
1822 &quot;cidrBlock&quot;: &quot;A String&quot;, # cidr_block must be specified in CIDR notation.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001823 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001824 ],
1825 },
1826 &quot;conditions&quot;: [ # Which conditions caused the current cluster state.
1827 { # StatusCondition describes why a cluster or a node pool has a certain status
1828 # (e.g., ERROR or DEGRADED).
1829 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
1830 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
1831 },
1832 ],
1833 &quot;network&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
1834 # [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
1835 # to which the cluster is connected. If left unspecified, the `default`
1836 # network will be used.
1837 &quot;status&quot;: &quot;A String&quot;, # [Output only] The current status of this cluster.
1838 &quot;autoscaling&quot;: { # ClusterAutoscaling contains global, per-cluster information # Cluster-level autoscaling configuration.
1839 # required by Cluster Autoscaler to automatically adjust
1840 # the size of the cluster and create/delete
1841 # node pools based on the current needs.
1842 &quot;resourceLimits&quot;: [ # Contains global constraints regarding minimum and maximum
1843 # amount of resources in the cluster.
1844 { # Contains information about amount of some resource in the cluster.
1845 # For memory, value should be in GB.
1846 &quot;minimum&quot;: &quot;A String&quot;, # Minimum amount of the resource in the cluster.
1847 &quot;resourceType&quot;: &quot;A String&quot;, # Resource name &quot;cpu&quot;, &quot;memory&quot; or gpu-specific string.
1848 &quot;maximum&quot;: &quot;A String&quot;, # Maximum amount of the resource in the cluster.
1849 },
1850 ],
1851 &quot;autoprovisioningNodePoolDefaults&quot;: { # AutoprovisioningNodePoolDefaults contains defaults for a node pool created # AutoprovisioningNodePoolDefaults contains defaults for a node pool
1852 # created by NAP.
1853 # by NAP.
1854 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs.
1855 &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.
1856 # node pool.
1857 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool.
1858 # the Auto Upgrades will proceed.
1859 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
1860 # with the description of the upgrade.
1861 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
1862 # with the approximate start time for the upgrades, in
1863 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1864 },
1865 &quot;autoRepair&quot;: True or False, # A flag that specifies whether the node auto-repair is enabled for the node
1866 # pool. If enabled, the nodes in this node pool will be monitored and, if
1867 # they fail health checks too many times, an automatic repair action will be
1868 # triggered.
1869 &quot;autoUpgrade&quot;: True or False, # A flag that specifies whether node auto-upgrade is enabled for the node
1870 # pool. If enabled, node auto-upgrade helps keep the nodes in your node pool
1871 # up to date with the latest release version of Kubernetes.
1872 },
1873 &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 -07001874 # disruption caused by an upgrade.
1875 #
1876 # maxUnavailable controls the number of nodes that can be simultaneously
1877 # unavailable.
1878 #
1879 # maxSurge controls the number of additional nodes that can be added to the
1880 # node pool temporarily for the time of the upgrade to increase the number of
1881 # available nodes.
1882 #
1883 # (maxUnavailable + maxSurge) determines the level of parallelism (how many
1884 # nodes are being upgraded at the same time).
1885 #
1886 # Note: upgrades inevitably introduce some disruption since workloads need to
1887 # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
1888 # this holds true. (Disruption stays within the limits of
1889 # PodDisruptionBudget, if it is configured.)
1890 #
1891 # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
1892 # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
1893 # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
1894 # down 3 old (not yet upgraded) nodes at the same time. This ensures that
1895 # there are always at least 4 nodes available.
Bu Sun Kim65020912020-05-20 12:08:20 -07001896 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during
Dan O'Mearadd494642020-05-01 07:42:23 -07001897 # the upgrade process. A node is considered available if its status is
1898 # Ready.
Bu Sun Kim65020912020-05-20 12:08:20 -07001899 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size
1900 # of the node pool during the upgrade process.
Dan O'Mearadd494642020-05-01 07:42:23 -07001901 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001902 &quot;oauthScopes&quot;: [ # Scopes that are used by NAP when creating node pools.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001903 &quot;A String&quot;,
1904 ],
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -07001905 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001906 &quot;enableNodeAutoprovisioning&quot;: True or False, # Enables automatic node pool creation and deletion.
1907 &quot;autoprovisioningLocations&quot;: [ # The list of Google Compute Engine
1908 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
1909 # NodePool&#x27;s nodes can be created by NAP.
1910 &quot;A String&quot;,
1911 ],
1912 },
1913 &quot;labelFingerprint&quot;: &quot;A String&quot;, # The fingerprint of the set of labels for this cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -07001914 &quot;networkPolicy&quot;: { # Configuration options for the NetworkPolicy feature. # Configuration options for the NetworkPolicy feature.
1915 # https://kubernetes.io/docs/concepts/services-networking/networkpolicies/
Bu Sun Kim65020912020-05-20 12:08:20 -07001916 &quot;enabled&quot;: True or False, # Whether network policy is enabled on the cluster.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001917 &quot;provider&quot;: &quot;A String&quot;, # The selected network policy provider.
Bu Sun Kim65020912020-05-20 12:08:20 -07001918 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001919 &quot;clusterIpv4Cidr&quot;: &quot;A String&quot;, # The IP address range of the container pods in this cluster, in
Bu Sun Kim65020912020-05-20 12:08:20 -07001920 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001921 # notation (e.g. `10.96.0.0/14`). Leave blank to have
1922 # one automatically chosen or specify a `/14` block in `10.0.0.0/8`.
1923 &quot;defaultMaxPodsConstraint&quot;: { # Constraints applied to pods. # The default constraint on the maximum number of pods that can be run
1924 # simultaneously on a node in the node pool of this cluster. Only honored
1925 # if cluster created with IP Alias support.
1926 &quot;maxPodsPerNode&quot;: &quot;A String&quot;, # Constraint enforced on the max num of pods per node.
Takashi Matsuo06694102015-09-11 13:55:40 -07001927 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001928 &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 -04001929 # For requests, this field should only be used in lieu of a
Bu Sun Kim65020912020-05-20 12:08:20 -07001930 # &quot;node_pool&quot; object, since this configuration (along with the
1931 # &quot;initial_node_count&quot;) will be used to create a &quot;NodePool&quot; object with an
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04001932 # auto-generated name. Do not use this and a node_pool at the same time.
1933 # For responses, this field will be populated with the node configuration of
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001934 # the first node pool. (For configuration of each node pool, see
1935 # `node_pool.config`)
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04001936 #
1937 # If unspecified, the defaults are used.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001938 # This field is deprecated, use node_pool.config instead.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001939 &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;)
1940 #
1941 # If unspecified, the default disk type is &#x27;pd-standard&#x27;
1942 &quot;bootDiskKmsKey&quot;: &quot;A String&quot;, #
1943 # The Customer Managed Encryption Key used to encrypt the boot disk attached
1944 # to each node in the node pool. This should be of the form
1945 # projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
1946 # For more information about protecting resources with Cloud KMS Keys please
1947 # see:
1948 # https://cloud.google.com/compute/docs/disks/customer-managed-encryption
1949 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
1950 &quot;enableIntegrityMonitoring&quot;: True or False, # Defines whether the instance has integrity monitoring enabled.
1951 #
1952 # Enables monitoring and attestation of the boot integrity of the instance.
1953 # The attestation is performed against the integrity policy baseline. This
1954 # baseline is initially derived from the implicitly trusted boot image when
1955 # the instance is created.
1956 &quot;enableSecureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled.
1957 #
1958 # Secure Boot helps ensure that the system only runs authentic software by
1959 # verifying the digital signature of all boot components, and halting the
1960 # boot process if signature verification fails.
1961 },
1962 &quot;labels&quot;: { # The map of Kubernetes labels (key/value pairs) to be applied to each node.
1963 # These will added in addition to any default label(s) that
1964 # Kubernetes may apply to the node.
1965 # In case of conflict in label keys, the applied set may differ depending on
1966 # the Kubernetes version -- it&#x27;s best to assume the behavior is undefined
1967 # and conflicts should be avoided.
1968 # For more information, including usage and the valid values, see:
1969 # https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
1970 &quot;a_key&quot;: &quot;A String&quot;,
1971 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001972 &quot;oauthScopes&quot;: [ # The set of Google API scopes to be made available on all of the
1973 # node VMs under the &quot;default&quot; service account.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04001974 #
1975 # The following scopes are recommended, but not required, and by default are
1976 # not included:
1977 #
1978 # * `https://www.googleapis.com/auth/compute` is required for mounting
1979 # persistent storage on your nodes.
1980 # * `https://www.googleapis.com/auth/devstorage.read_only` is required for
1981 # communicating with **gcr.io**
Dan O'Mearadd494642020-05-01 07:42:23 -07001982 # (the [Google Container
1983 # Registry](https://cloud.google.com/container-registry/)).
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04001984 #
1985 # If unspecified, no scopes are added, unless Cloud Logging or Cloud
1986 # Monitoring are enabled, in which case their required scopes will be added.
Bu Sun Kim65020912020-05-20 12:08:20 -07001987 &quot;A String&quot;,
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04001988 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001989 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used by this instance. The instance may be
1990 # scheduled on the specified or newer CPU platform. Applicable values are the
1991 # friendly names of CPU platforms, such as
1992 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Haswell&amp;quot;&lt;/code&gt; or
1993 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Sandy Bridge&amp;quot;&lt;/code&gt;. For more
1994 # information, read [how to specify min CPU
1995 # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
1996 &quot;localSsdCount&quot;: 42, # The number of local SSD disks to be attached to the node.
1997 #
1998 # The limit for this value is dependent upon the maximum number of
1999 # disks available on a machine per zone. See:
2000 # https://cloud.google.com/compute/docs/disks/local-ssd
2001 # for more information.
Bu Sun Kim65020912020-05-20 12:08:20 -07002002 &quot;taints&quot;: [ # List of kubernetes taints to be applied to each node.
Dan O'Mearadd494642020-05-01 07:42:23 -07002003 #
2004 # For more information, including usage and the valid values, see:
2005 # https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
2006 { # Kubernetes taint is comprised of three fields: key, value, and effect. Effect
2007 # can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute.
2008 #
Bu Sun Kim65020912020-05-20 12:08:20 -07002009 # See
2010 # [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration)
2011 # for more information, including usage and the valid values.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002012 &quot;value&quot;: &quot;A String&quot;, # Value for taint.
2013 &quot;key&quot;: &quot;A String&quot;, # Key for taint.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002014 &quot;effect&quot;: &quot;A String&quot;, # Effect for taint.
Dan O'Mearadd494642020-05-01 07:42:23 -07002015 },
2016 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002017 &quot;imageType&quot;: &quot;A String&quot;, # The image type to use for this node. Note that for a given image type,
2018 # the latest version of it will be used.
2019 &quot;reservationAffinity&quot;: { # [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) # The optional reservation affinity. Setting this field will apply
2020 # the specified [Zonal Compute
2021 # Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
2022 # to this node pool.
2023 # is the configuration of desired reservation which instances could take
2024 # capacity from.
2025 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Corresponds to the type of reservation consumption.
2026 &quot;key&quot;: &quot;A String&quot;, # Corresponds to the label key of a reservation resource. To target a
2027 # SPECIFIC_RESERVATION by name, specify &quot;googleapis.com/reservation-name&quot; as
2028 # the key and specify the name of your reservation as its value.
2029 &quot;values&quot;: [ # Corresponds to the label value(s) of reservation resource(s).
2030 &quot;A String&quot;,
2031 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002032 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002033 &quot;machineType&quot;: &quot;A String&quot;, # The name of a Google Compute Engine [machine
2034 # type](https://cloud.google.com/compute/docs/machine-types) (e.g.
2035 # `n1-standard-1`).
2036 #
2037 # If unspecified, the default machine type is
2038 # `n1-standard-1`.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002039 &quot;nodeGroup&quot;: &quot;A String&quot;, # Setting this field will assign instances of this
2040 # pool to run on the specified node group. This is useful for running
2041 # workloads on [sole tenant
2042 # nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes).
Bu Sun Kim65020912020-05-20 12:08:20 -07002043 &quot;metadata&quot;: { # The metadata key/value pairs assigned to instances in the cluster.
2044 #
2045 # Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
2046 # in length. These are reflected as part of a URL in the metadata server.
2047 # Additionally, to avoid ambiguity, keys must not conflict with any other
2048 # metadata keys for the project or be one of the reserved keys:
2049 # &quot;cluster-location&quot;
2050 # &quot;cluster-name&quot;
2051 # &quot;cluster-uid&quot;
2052 # &quot;configure-sh&quot;
2053 # &quot;containerd-configure-sh&quot;
2054 # &quot;enable-os-login&quot;
2055 # &quot;gci-ensure-gke-docker&quot;
2056 # &quot;gci-metrics-enabled&quot;
2057 # &quot;gci-update-strategy&quot;
2058 # &quot;instance-template&quot;
2059 # &quot;kube-env&quot;
2060 # &quot;startup-script&quot;
2061 # &quot;user-data&quot;
2062 # &quot;disable-address-manager&quot;
2063 # &quot;windows-startup-script-ps1&quot;
2064 # &quot;common-psm1&quot;
2065 # &quot;k8s-node-setup-psm1&quot;
2066 # &quot;install-ssh-psm1&quot;
2067 # &quot;user-profile-psm1&quot;
2068 # &quot;serial-port-logging-enable&quot;
2069 #
2070 # Values are free-form strings, and only have meaning as interpreted by
2071 # the image running in the instance. The only restriction placed on them is
2072 # that each value&#x27;s size must be less than or equal to 32 KB.
2073 #
2074 # The total size of all keys and values must be less than 512 KB.
2075 &quot;a_key&quot;: &quot;A String&quot;,
2076 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002077 &quot;tags&quot;: [ # The list of instance tags applied to all nodes. Tags are used to identify
2078 # valid sources or targets for network firewalls and are specified by
2079 # the client during cluster or node pool creation. Each tag within the list
2080 # must comply with RFC1035.
2081 &quot;A String&quot;,
2082 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002083 &quot;sandboxConfig&quot;: { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node.
2084 &quot;type&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node.
2085 },
2086 &quot;preemptible&quot;: True or False, # Whether the nodes are created as preemptible VM instances. See:
2087 # https://cloud.google.com/compute/docs/instances/preemptible for more
2088 # information about preemptible VM instances.
2089 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to # The workload metadata configuration for this node.
2090 # workloads on the node pool.
2091 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running
2092 # on the node pool.
2093 },
2094 &quot;diskSizeGb&quot;: 42, # Size of the disk attached to each node, specified in GB.
2095 # The smallest allowed disk size is 10GB.
2096 #
2097 # If unspecified, the default disk size is 100GB.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002098 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs.
2099 # Specify the email address of the Service Account; otherwise, if no Service
2100 # Account is specified, the &quot;default&quot; service account is used.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002101 &quot;accelerators&quot;: [ # A list of hardware accelerators to be attached to each node.
2102 # See https://cloud.google.com/compute/docs/gpus for more information about
2103 # support for GPUs.
2104 { # AcceleratorConfig represents a Hardware Accelerator request.
2105 &quot;acceleratorType&quot;: &quot;A String&quot;, # The accelerator type resource name. List of supported accelerators
2106 # [here](https://cloud.google.com/compute/docs/gpus)
2107 &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of the accelerator cards exposed to an instance.
2108 },
2109 ],
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04002110 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002111 &quot;resourceUsageExportConfig&quot;: { # Configuration for exporting cluster resource usages. # Configuration for exporting resource usages. Resource usage export is
2112 # disabled when this config is unspecified.
2113 &quot;enableNetworkEgressMetering&quot;: True or False, # Whether to enable network egress metering for this cluster. If enabled, a
2114 # daemonset will be created in the cluster to meter network egress traffic.
2115 &quot;bigqueryDestination&quot;: { # Parameters for using BigQuery as the destination of resource usage export. # Configuration to use BigQuery as usage export destination.
2116 &quot;datasetId&quot;: &quot;A String&quot;, # The ID of a BigQuery Dataset.
2117 },
2118 &quot;consumptionMeteringConfig&quot;: { # Parameters for controlling consumption metering. # Configuration to enable resource consumption metering.
2119 &quot;enabled&quot;: True or False, # Whether to enable consumption metering for this cluster. If enabled, a
2120 # second BigQuery table will be created to hold resource consumption
2121 # records.
2122 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002123 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002124 &quot;initialNodeCount&quot;: 42, # The number of nodes to create in this cluster. You must ensure that your
2125 # Compute Engine [resource quota](https://cloud.google.com/compute/quotas)
2126 # is sufficient for this number of instances. You must also have available
2127 # firewall and routes quota.
2128 # For requests, this field should only be used in lieu of a
2129 # &quot;node_pool&quot; object, since this configuration (along with the
2130 # &quot;node_config&quot;) will be used to create a &quot;NodePool&quot; object with an
2131 # auto-generated name. Do not use this and a node_pool at the same time.
2132 #
2133 # This field is deprecated, use node_pool.initial_node_count instead.
Bu Sun Kim65020912020-05-20 12:08:20 -07002134 &quot;name&quot;: &quot;A String&quot;, # The name of this cluster. The name must be unique within this project
2135 # and location (e.g. zone or region), and can be up to 40 characters with
2136 # the following restrictions:
2137 #
2138 # * Lowercase letters, numbers, and hyphens only.
2139 # * Must start with a letter.
2140 # * Must end with a number or a letter.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002141 &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
2142 # policies.
2143 # policies.
2144 &quot;workloadPool&quot;: &quot;A String&quot;, # The workload pool to attach all Kubernetes service accounts to.
2145 },
2146 &quot;networkConfig&quot;: { # NetworkConfig reports the relative names of network &amp; subnetwork. # Configuration for cluster networking.
2147 &quot;network&quot;: &quot;A String&quot;, # Output only. The relative name of the Google Compute Engine
2148 # network(https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
2149 # to which the cluster is connected. Example:
2150 # projects/my-project/global/networks/my-network
2151 &quot;enableIntraNodeVisibility&quot;: True or False, # Whether Intra-node visibility is enabled for this cluster.
2152 # This makes same node pod to pod traffic visible for VPC network.
2153 &quot;subnetwork&quot;: &quot;A String&quot;, # Output only. The relative name of the Google Compute Engine
2154 # [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the
2155 # cluster is connected. Example:
2156 # projects/my-project/regions/us-central1/subnetworks/my-subnet
2157 },
2158 &quot;databaseEncryption&quot;: { # Configuration of etcd encryption. # Configuration of etcd encryption.
2159 &quot;state&quot;: &quot;A String&quot;, # Denotes the state of etcd encryption.
2160 &quot;keyName&quot;: &quot;A String&quot;, # Name of CloudKMS key to use for the encryption of secrets in etcd.
2161 # Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key
2162 },
2163 &quot;privateClusterConfig&quot;: { # Configuration options for private clusters. # Configuration for private cluster.
2164 &quot;privateEndpoint&quot;: &quot;A String&quot;, # Output only. The internal IP address of this cluster&#x27;s master endpoint.
2165 &quot;peeringName&quot;: &quot;A String&quot;, # Output only. The peering name in the customer VPC used by this cluster.
2166 &quot;enablePrivateNodes&quot;: True or False, # Whether nodes have internal IP addresses only. If enabled, all nodes are
2167 # given only RFC 1918 private addresses and communicate with the master via
2168 # private networking.
2169 &quot;publicEndpoint&quot;: &quot;A String&quot;, # Output only. The external IP address of this cluster&#x27;s master endpoint.
2170 &quot;enablePrivateEndpoint&quot;: True or False, # Whether the master&#x27;s internal IP address is used as the cluster endpoint.
2171 &quot;masterIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP range in CIDR notation to use for the hosted master network. This
2172 # range will be used for assigning internal IP addresses to the master or
2173 # set of masters, as well as the ILB VIP. This range must not overlap with
2174 # any other ranges in use within the cluster&#x27;s network.
2175 },
2176 &quot;createTime&quot;: &quot;A String&quot;, # [Output only] The time the cluster was created, in
2177 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
2178 &quot;nodePools&quot;: [ # The node pools associated with this cluster.
2179 # This field should not be set if &quot;node_config&quot; or &quot;initial_node_count&quot; are
2180 # specified.
2181 { # NodePool contains the name and configuration for a cluster&#x27;s node pool.
2182 # Node pools are a set of nodes (i.e. VM&#x27;s), with a common configuration and
2183 # specification, under the control of the cluster master. They may have a set
2184 # of Kubernetes labels applied to them, which may be used to reference them
2185 # during pod scheduling. They may also be resized up or down, to accommodate
2186 # the workload.
2187 &quot;selfLink&quot;: &quot;A String&quot;, # [Output only] Server-defined URL for the resource.
2188 &quot;management&quot;: { # NodeManagement defines the set of node management services turned on for the # NodeManagement configuration for this NodePool.
2189 # node pool.
2190 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool.
2191 # the Auto Upgrades will proceed.
2192 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
2193 # with the description of the upgrade.
2194 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
2195 # with the approximate start time for the upgrades, in
2196 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
2197 },
2198 &quot;autoRepair&quot;: True or False, # A flag that specifies whether the node auto-repair is enabled for the node
2199 # pool. If enabled, the nodes in this node pool will be monitored and, if
2200 # they fail health checks too many times, an automatic repair action will be
2201 # triggered.
2202 &quot;autoUpgrade&quot;: True or False, # A flag that specifies whether node auto-upgrade is enabled for the node
2203 # pool. If enabled, node auto-upgrade helps keep the nodes in your node pool
2204 # up to date with the latest release version of Kubernetes.
2205 },
2206 &quot;upgradeSettings&quot;: { # These upgrade settings control the level of parallelism and the level of # Upgrade settings control disruption and speed of the upgrade.
2207 # disruption caused by an upgrade.
2208 #
2209 # maxUnavailable controls the number of nodes that can be simultaneously
2210 # unavailable.
2211 #
2212 # maxSurge controls the number of additional nodes that can be added to the
2213 # node pool temporarily for the time of the upgrade to increase the number of
2214 # available nodes.
2215 #
2216 # (maxUnavailable + maxSurge) determines the level of parallelism (how many
2217 # nodes are being upgraded at the same time).
2218 #
2219 # Note: upgrades inevitably introduce some disruption since workloads need to
2220 # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
2221 # this holds true. (Disruption stays within the limits of
2222 # PodDisruptionBudget, if it is configured.)
2223 #
2224 # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
2225 # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
2226 # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
2227 # down 3 old (not yet upgraded) nodes at the same time. This ensures that
2228 # there are always at least 4 nodes available.
2229 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during
2230 # the upgrade process. A node is considered available if its status is
2231 # Ready.
2232 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size
2233 # of the node pool during the upgrade process.
2234 },
2235 &quot;initialNodeCount&quot;: 42, # The initial node count for the pool. You must ensure that your
2236 # Compute Engine [resource quota](https://cloud.google.com/compute/quotas)
2237 # is sufficient for this number of instances. You must also have available
2238 # firewall and routes quota.
2239 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output only] Additional information about the current status of this
2240 # node pool instance, if available.
2241 &quot;version&quot;: &quot;A String&quot;, # The version of the Kubernetes of this node.
2242 &quot;conditions&quot;: [ # Which conditions caused the current node pool state.
2243 { # StatusCondition describes why a cluster or a node pool has a certain status
2244 # (e.g., ERROR or DEGRADED).
2245 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
2246 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
2247 },
2248 ],
2249 &quot;config&quot;: { # Parameters that describe the nodes in a cluster. # The node configuration of the pool.
2250 &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;)
2251 #
2252 # If unspecified, the default disk type is &#x27;pd-standard&#x27;
2253 &quot;bootDiskKmsKey&quot;: &quot;A String&quot;, #
2254 # The Customer Managed Encryption Key used to encrypt the boot disk attached
2255 # to each node in the node pool. This should be of the form
2256 # projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
2257 # For more information about protecting resources with Cloud KMS Keys please
2258 # see:
2259 # https://cloud.google.com/compute/docs/disks/customer-managed-encryption
2260 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
2261 &quot;enableIntegrityMonitoring&quot;: True or False, # Defines whether the instance has integrity monitoring enabled.
2262 #
2263 # Enables monitoring and attestation of the boot integrity of the instance.
2264 # The attestation is performed against the integrity policy baseline. This
2265 # baseline is initially derived from the implicitly trusted boot image when
2266 # the instance is created.
2267 &quot;enableSecureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled.
2268 #
2269 # Secure Boot helps ensure that the system only runs authentic software by
2270 # verifying the digital signature of all boot components, and halting the
2271 # boot process if signature verification fails.
2272 },
2273 &quot;labels&quot;: { # The map of Kubernetes labels (key/value pairs) to be applied to each node.
2274 # These will added in addition to any default label(s) that
2275 # Kubernetes may apply to the node.
2276 # In case of conflict in label keys, the applied set may differ depending on
2277 # the Kubernetes version -- it&#x27;s best to assume the behavior is undefined
2278 # and conflicts should be avoided.
2279 # For more information, including usage and the valid values, see:
2280 # https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
2281 &quot;a_key&quot;: &quot;A String&quot;,
2282 },
2283 &quot;oauthScopes&quot;: [ # The set of Google API scopes to be made available on all of the
2284 # node VMs under the &quot;default&quot; service account.
2285 #
2286 # The following scopes are recommended, but not required, and by default are
2287 # not included:
2288 #
2289 # * `https://www.googleapis.com/auth/compute` is required for mounting
2290 # persistent storage on your nodes.
2291 # * `https://www.googleapis.com/auth/devstorage.read_only` is required for
2292 # communicating with **gcr.io**
2293 # (the [Google Container
2294 # Registry](https://cloud.google.com/container-registry/)).
2295 #
2296 # If unspecified, no scopes are added, unless Cloud Logging or Cloud
2297 # Monitoring are enabled, in which case their required scopes will be added.
2298 &quot;A String&quot;,
2299 ],
2300 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used by this instance. The instance may be
2301 # scheduled on the specified or newer CPU platform. Applicable values are the
2302 # friendly names of CPU platforms, such as
2303 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Haswell&amp;quot;&lt;/code&gt; or
2304 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Sandy Bridge&amp;quot;&lt;/code&gt;. For more
2305 # information, read [how to specify min CPU
2306 # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
2307 &quot;localSsdCount&quot;: 42, # The number of local SSD disks to be attached to the node.
2308 #
2309 # The limit for this value is dependent upon the maximum number of
2310 # disks available on a machine per zone. See:
2311 # https://cloud.google.com/compute/docs/disks/local-ssd
2312 # for more information.
2313 &quot;taints&quot;: [ # List of kubernetes taints to be applied to each node.
2314 #
2315 # For more information, including usage and the valid values, see:
2316 # https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
2317 { # Kubernetes taint is comprised of three fields: key, value, and effect. Effect
2318 # can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute.
2319 #
2320 # See
2321 # [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration)
2322 # for more information, including usage and the valid values.
2323 &quot;value&quot;: &quot;A String&quot;, # Value for taint.
2324 &quot;key&quot;: &quot;A String&quot;, # Key for taint.
2325 &quot;effect&quot;: &quot;A String&quot;, # Effect for taint.
2326 },
2327 ],
2328 &quot;imageType&quot;: &quot;A String&quot;, # The image type to use for this node. Note that for a given image type,
2329 # the latest version of it will be used.
2330 &quot;reservationAffinity&quot;: { # [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) # The optional reservation affinity. Setting this field will apply
2331 # the specified [Zonal Compute
2332 # Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
2333 # to this node pool.
2334 # is the configuration of desired reservation which instances could take
2335 # capacity from.
2336 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Corresponds to the type of reservation consumption.
2337 &quot;key&quot;: &quot;A String&quot;, # Corresponds to the label key of a reservation resource. To target a
2338 # SPECIFIC_RESERVATION by name, specify &quot;googleapis.com/reservation-name&quot; as
2339 # the key and specify the name of your reservation as its value.
2340 &quot;values&quot;: [ # Corresponds to the label value(s) of reservation resource(s).
2341 &quot;A String&quot;,
2342 ],
2343 },
2344 &quot;machineType&quot;: &quot;A String&quot;, # The name of a Google Compute Engine [machine
2345 # type](https://cloud.google.com/compute/docs/machine-types) (e.g.
2346 # `n1-standard-1`).
2347 #
2348 # If unspecified, the default machine type is
2349 # `n1-standard-1`.
2350 &quot;nodeGroup&quot;: &quot;A String&quot;, # Setting this field will assign instances of this
2351 # pool to run on the specified node group. This is useful for running
2352 # workloads on [sole tenant
2353 # nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes).
2354 &quot;metadata&quot;: { # The metadata key/value pairs assigned to instances in the cluster.
2355 #
2356 # Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
2357 # in length. These are reflected as part of a URL in the metadata server.
2358 # Additionally, to avoid ambiguity, keys must not conflict with any other
2359 # metadata keys for the project or be one of the reserved keys:
2360 # &quot;cluster-location&quot;
2361 # &quot;cluster-name&quot;
2362 # &quot;cluster-uid&quot;
2363 # &quot;configure-sh&quot;
2364 # &quot;containerd-configure-sh&quot;
2365 # &quot;enable-os-login&quot;
2366 # &quot;gci-ensure-gke-docker&quot;
2367 # &quot;gci-metrics-enabled&quot;
2368 # &quot;gci-update-strategy&quot;
2369 # &quot;instance-template&quot;
2370 # &quot;kube-env&quot;
2371 # &quot;startup-script&quot;
2372 # &quot;user-data&quot;
2373 # &quot;disable-address-manager&quot;
2374 # &quot;windows-startup-script-ps1&quot;
2375 # &quot;common-psm1&quot;
2376 # &quot;k8s-node-setup-psm1&quot;
2377 # &quot;install-ssh-psm1&quot;
2378 # &quot;user-profile-psm1&quot;
2379 # &quot;serial-port-logging-enable&quot;
2380 #
2381 # Values are free-form strings, and only have meaning as interpreted by
2382 # the image running in the instance. The only restriction placed on them is
2383 # that each value&#x27;s size must be less than or equal to 32 KB.
2384 #
2385 # The total size of all keys and values must be less than 512 KB.
2386 &quot;a_key&quot;: &quot;A String&quot;,
2387 },
2388 &quot;tags&quot;: [ # The list of instance tags applied to all nodes. Tags are used to identify
2389 # valid sources or targets for network firewalls and are specified by
2390 # the client during cluster or node pool creation. Each tag within the list
2391 # must comply with RFC1035.
2392 &quot;A String&quot;,
2393 ],
2394 &quot;sandboxConfig&quot;: { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node.
2395 &quot;type&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node.
2396 },
2397 &quot;preemptible&quot;: True or False, # Whether the nodes are created as preemptible VM instances. See:
2398 # https://cloud.google.com/compute/docs/instances/preemptible for more
2399 # information about preemptible VM instances.
2400 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to # The workload metadata configuration for this node.
2401 # workloads on the node pool.
2402 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running
2403 # on the node pool.
2404 },
2405 &quot;diskSizeGb&quot;: 42, # Size of the disk attached to each node, specified in GB.
2406 # The smallest allowed disk size is 10GB.
2407 #
2408 # If unspecified, the default disk size is 100GB.
2409 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs.
2410 # Specify the email address of the Service Account; otherwise, if no Service
2411 # Account is specified, the &quot;default&quot; service account is used.
2412 &quot;accelerators&quot;: [ # A list of hardware accelerators to be attached to each node.
2413 # See https://cloud.google.com/compute/docs/gpus for more information about
2414 # support for GPUs.
2415 { # AcceleratorConfig represents a Hardware Accelerator request.
2416 &quot;acceleratorType&quot;: &quot;A String&quot;, # The accelerator type resource name. List of supported accelerators
2417 # [here](https://cloud.google.com/compute/docs/gpus)
2418 &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of the accelerator cards exposed to an instance.
2419 },
2420 ],
2421 },
2422 &quot;name&quot;: &quot;A String&quot;, # The name of the node pool.
2423 &quot;maxPodsConstraint&quot;: { # Constraints applied to pods. # The constraint on the maximum number of pods that can be run
2424 # simultaneously on a node in the node pool.
2425 &quot;maxPodsPerNode&quot;: &quot;A String&quot;, # Constraint enforced on the max num of pods per node.
2426 },
2427 &quot;autoscaling&quot;: { # NodePoolAutoscaling contains information required by cluster autoscaler to # Autoscaler configuration for this NodePool. Autoscaler is enabled
2428 # only if a valid configuration is present.
2429 # adjust the size of the node pool to the current cluster usage.
2430 &quot;minNodeCount&quot;: 42, # Minimum number of nodes in the NodePool. Must be &gt;= 1 and &lt;=
2431 # max_node_count.
2432 &quot;maxNodeCount&quot;: 42, # Maximum number of nodes in the NodePool. Must be &gt;= min_node_count. There
2433 # has to enough quota to scale up the cluster.
2434 &quot;enabled&quot;: True or False, # Is autoscaling enabled for this node pool.
2435 &quot;autoprovisioned&quot;: True or False, # Can this node pool be deleted automatically.
2436 },
2437 &quot;podIpv4CidrSize&quot;: 42, # [Output only] The pod CIDR block size per node in this node pool.
2438 &quot;instanceGroupUrls&quot;: [ # [Output only] The resource URLs of the [managed instance
2439 # groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
2440 # associated with this node pool.
2441 &quot;A String&quot;,
2442 ],
2443 &quot;status&quot;: &quot;A String&quot;, # [Output only] The status of the nodes in this pool instance.
2444 &quot;locations&quot;: [ # The list of Google Compute Engine
2445 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
2446 # NodePool&#x27;s nodes should be located.
2447 &quot;A String&quot;,
2448 ],
2449 },
2450 ],
2451 &quot;subnetwork&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
2452 # [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which
2453 # the cluster is connected.
2454 &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.
2455 # cluster, enabling additional functionality.
2456 &quot;kubernetesDashboard&quot;: { # Configuration for the Kubernetes Dashboard. # Configuration for the Kubernetes Dashboard.
2457 # This addon is deprecated, and will be disabled in 1.15. It is recommended
2458 # to use the Cloud Console to manage and monitor your Kubernetes clusters,
2459 # workloads and applications. For more information, see:
2460 # https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
2461 &quot;disabled&quot;: True or False, # Whether the Kubernetes Dashboard is enabled for this cluster.
2462 },
2463 &quot;cloudRunConfig&quot;: { # Configuration options for the Cloud Run feature. # Configuration for the Cloud Run addon, which allows the user to use a
2464 # managed Knative service.
2465 &quot;disabled&quot;: True or False, # Whether Cloud Run addon is enabled for this cluster.
2466 },
2467 &quot;httpLoadBalancing&quot;: { # Configuration options for the HTTP (L7) load balancing controller addon, # Configuration for the HTTP (L7) load balancing controller addon, which
2468 # makes it easy to set up HTTP load balancers for services in a cluster.
2469 # which makes it easy to set up HTTP load balancers for services in a cluster.
2470 &quot;disabled&quot;: True or False, # Whether the HTTP Load Balancing controller is enabled in the cluster.
2471 # When enabled, it runs a small pod in the cluster that manages the load
2472 # balancers.
2473 },
2474 &quot;horizontalPodAutoscaling&quot;: { # Configuration options for the horizontal pod autoscaling feature, which # Configuration for the horizontal pod autoscaling feature, which
2475 # increases or decreases the number of replica pods a replication controller
2476 # has based on the resource usage of the existing pods.
2477 # increases or decreases the number of replica pods a replication controller
2478 # has based on the resource usage of the existing pods.
2479 &quot;disabled&quot;: True or False, # Whether the Horizontal Pod Autoscaling feature is enabled in the cluster.
2480 # When enabled, it ensures that metrics are collected into Stackdriver
2481 # Monitoring.
2482 },
2483 &quot;dnsCacheConfig&quot;: { # Configuration for NodeLocal DNSCache # Configuration for NodeLocalDNS, a dns cache running on cluster nodes
2484 &quot;enabled&quot;: True or False, # Whether NodeLocal DNSCache is enabled for this cluster.
2485 },
2486 &quot;networkPolicyConfig&quot;: { # Configuration for NetworkPolicy. This only tracks whether the addon # Configuration for NetworkPolicy. This only tracks whether the addon
2487 # is enabled or not on the Master, it does not track whether network policy
2488 # is enabled for the nodes.
2489 # is enabled or not on the Master, it does not track whether network policy
2490 # is enabled for the nodes.
2491 &quot;disabled&quot;: True or False, # Whether NetworkPolicy is enabled for this cluster.
2492 },
2493 },
2494 &quot;masterAuth&quot;: { # The authentication information for accessing the master endpoint. # The authentication information for accessing the master endpoint.
2495 # If unspecified, the defaults are used:
2496 # For clusters before v1.12, if master_auth is unspecified, `username` will
2497 # be set to &quot;admin&quot;, a random password will be generated, and a client
2498 # certificate will be issued.
2499 # Authentication can be done using HTTP basic auth or using client
2500 # certificates.
2501 &quot;clientKey&quot;: &quot;A String&quot;, # [Output only] Base64-encoded private key used by clients to authenticate
2502 # to the cluster endpoint.
2503 &quot;clientCertificate&quot;: &quot;A String&quot;, # [Output only] Base64-encoded public certificate used by clients to
2504 # authenticate to the cluster endpoint.
2505 &quot;username&quot;: &quot;A String&quot;, # The username to use for HTTP basic authentication to the master endpoint.
2506 # For clusters v1.6.0 and later, basic authentication can be disabled by
2507 # leaving username unspecified (or setting it to the empty string).
2508 &quot;password&quot;: &quot;A String&quot;, # The password to use for HTTP basic authentication to the master endpoint.
2509 # Because the master endpoint is open to the Internet, you should create a
2510 # strong password. If a password is provided for cluster creation, username
2511 # must be non-empty.
2512 &quot;clientCertificateConfig&quot;: { # Configuration for client certificates on the cluster. # Configuration for client certificate authentication on the cluster. For
2513 # clusters before v1.12, if no configuration is specified, a client
2514 # certificate is issued.
2515 &quot;issueClientCertificate&quot;: True or False, # Issue a client certificate.
2516 },
2517 &quot;clusterCaCertificate&quot;: &quot;A String&quot;, # [Output only] Base64-encoded public certificate that is the root of
2518 # trust for the cluster.
2519 },
2520 &quot;verticalPodAutoscaling&quot;: { # VerticalPodAutoscaling contains global, per-cluster information # Cluster-level Vertical Pod Autoscaling configuration.
2521 # required by Vertical Pod Autoscaler to automatically adjust
2522 # the resources of pods controlled by it.
2523 &quot;enabled&quot;: True or False, # Enables vertical pod autoscaling.
2524 },
2525 &quot;enableTpu&quot;: True or False, # Enable the ability to use Cloud TPUs in this cluster.
2526 &quot;initialClusterVersion&quot;: &quot;A String&quot;, # The initial Kubernetes version for this cluster. Valid versions are those
2527 # found in validMasterVersions returned by getServerConfig. The version can
2528 # be upgraded over time; such upgrades are reflected in
2529 # currentMasterVersion and currentNodeVersion.
Bu Sun Kim65020912020-05-20 12:08:20 -07002530 #
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002531 # Users may specify either explicit versions offered by
2532 # Kubernetes Engine or version aliases, which have the following behavior:
2533 #
2534 # - &quot;latest&quot;: picks the highest valid Kubernetes version
2535 # - &quot;1.X&quot;: picks the highest valid patch+gke.N patch in the 1.X version
2536 # - &quot;1.X.Y&quot;: picks the highest valid gke.N patch in the 1.X.Y version
2537 # - &quot;1.X.Y-gke.N&quot;: picks an explicit Kubernetes version
2538 # - &quot;&quot;,&quot;-&quot;: picks the default Kubernetes version
2539 &quot;currentNodeCount&quot;: 42, # [Output only] The number of nodes currently in the cluster. Deprecated.
2540 # Call Kubernetes API directly to retrieve node information.
2541 &quot;tpuIpv4CidrBlock&quot;: &quot;A String&quot;, # [Output only] The IP address range of the Cloud TPUs in this cluster, in
2542 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
2543 # notation (e.g. `1.2.3.4/29`).
2544 &quot;locations&quot;: [ # The list of Google Compute Engine
2545 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
2546 # cluster&#x27;s nodes should be located.
2547 &quot;A String&quot;,
2548 ],
2549 &quot;selfLink&quot;: &quot;A String&quot;, # [Output only] Server-defined URL for the resource.
2550 &quot;description&quot;: &quot;A String&quot;, # An optional description of this cluster.
2551 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output only] Additional information about the current status of this
2552 # cluster, if available.
Bu Sun Kim65020912020-05-20 12:08:20 -07002553 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
2554 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
2555 # or
2556 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
2557 # in which the cluster resides.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002558 &quot;servicesIpv4Cidr&quot;: &quot;A String&quot;, # [Output only] The IP address range of the Kubernetes services in
2559 # this cluster, in
2560 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
2561 # notation (e.g. `1.2.3.4/29`). Service addresses are
2562 # typically put in the last `/16` from the container CIDR.
Takashi Matsuo06694102015-09-11 13:55:40 -07002563 }</pre>
2564</div>
2565
2566<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07002567 <code class="details" id="legacyAbac">legacyAbac(projectId, zone, clusterId, body=None, x__xgafv=None)</code>
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04002568 <pre>Enables or disables the ABAC authorization mechanism on a cluster.
Takashi Matsuo06694102015-09-11 13:55:40 -07002569
2570Args:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002571 projectId: string, Deprecated. The Google Developers Console [project ID or project
2572number](https://support.google.com/cloud/answer/6158840).
2573This field has been deprecated and replaced by the name field. (required)
2574 zone: string, Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07002575[zone](https://cloud.google.com/compute/docs/zones#available) in which the
2576cluster resides. This field has been deprecated and replaced by the name
2577field. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002578 clusterId: string, Deprecated. The name of the cluster to update.
2579This field has been deprecated and replaced by the name field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07002580 body: object, The request body.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04002581 The object takes the form of:
2582
2583{ # SetLegacyAbacRequest enables or disables the ABAC authorization mechanism for
2584 # a cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -07002585 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster id) of the cluster to set legacy abac.
2586 # Specified in the format `projects/*/locations/*/clusters/*`.
Bu Sun Kim65020912020-05-20 12:08:20 -07002587 &quot;zone&quot;: &quot;A String&quot;, # Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07002588 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
2589 # cluster resides. This field has been deprecated and replaced by the name
2590 # field.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002591 &quot;clusterId&quot;: &quot;A String&quot;, # Deprecated. The name of the cluster to update.
2592 # This field has been deprecated and replaced by the name field.
2593 &quot;projectId&quot;: &quot;A String&quot;, # Deprecated. The Google Developers Console [project ID or project
2594 # number](https://support.google.com/cloud/answer/6158840).
2595 # This field has been deprecated and replaced by the name field.
2596 &quot;enabled&quot;: True or False, # Required. Whether ABAC authorization will be enabled in the cluster.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04002597 }
2598
Takashi Matsuo06694102015-09-11 13:55:40 -07002599 x__xgafv: string, V1 error format.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04002600 Allowed values
2601 1 - v1 error format
2602 2 - v2 error format
2603
2604Returns:
2605 An object of the form:
2606
2607 { # This operation resource represents operations that may have happened or are
2608 # happening on the cluster. All fields are output only.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002609 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
2610 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
2611 # Unset for single-stage operations.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002612 &quot;metrics&quot;: [ # Progress metric bundle, for example:
2613 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
2614 # {name: &quot;nodes total&quot;, int_value: 32}]
2615 # or
2616 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
2617 # {name: &quot;progress scale&quot;, double_value: 1.0}]
2618 { # Progress metric is (string, int|float|string) pair.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002619 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002620 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
2621 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002622 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002623 },
2624 ],
2625 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
2626 # Unset for single-stage operations.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002627 &quot;stages&quot;: [ # Substages of an operation or a stage.
2628 # Object with schema name: OperationProgress
2629 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002630 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002631 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
2632 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
2633 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
2634 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
2635 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
2636 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
2637 { # StatusCondition describes why a cluster or a node pool has a certain status
2638 # (e.g., ERROR or DEGRADED).
2639 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
2640 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
2641 },
2642 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002643 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
2644 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
2645 # operation is taking place. This field is deprecated, use location instead.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002646 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
Bu Sun Kim65020912020-05-20 12:08:20 -07002647 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002648 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
2649 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
2650 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07002651 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002652 { # StatusCondition describes why a cluster or a node pool has a certain status
2653 # (e.g., ERROR or DEGRADED).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002654 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002655 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002656 },
2657 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002658 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07002659 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
2660 # or
2661 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
2662 # in which the cluster resides.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002663 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04002664 }</pre>
2665</div>
2666
2667<div class="method">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002668 <code class="details" id="list">list(projectId, zone, parent=None, x__xgafv=None)</code>
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04002669 <pre>Lists all clusters owned by a project in either the specified zone or all
2670zones.
2671
2672Args:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002673 projectId: string, Deprecated. The Google Developers Console [project ID or project
2674number](https://support.google.com/cloud/answer/6158840).
2675This field has been deprecated and replaced by the parent field. (required)
2676 zone: string, Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07002677[zone](https://cloud.google.com/compute/docs/zones#available) in which the
Bu Sun Kim65020912020-05-20 12:08:20 -07002678cluster resides, or &quot;-&quot; for all zones. This field has been deprecated and
Dan O'Mearadd494642020-05-01 07:42:23 -07002679replaced by the parent field. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002680 parent: string, The parent (project and location) where the clusters will be listed.
Bu Sun Kim65020912020-05-20 12:08:20 -07002681Specified in the format `projects/*/locations/*`.
2682Location &quot;-&quot; matches all zones and all regions.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04002683 x__xgafv: string, V1 error format.
2684 Allowed values
2685 1 - v1 error format
2686 2 - v2 error format
Takashi Matsuo06694102015-09-11 13:55:40 -07002687
2688Returns:
2689 An object of the form:
2690
2691 { # ListClustersResponse is the result of ListClustersRequest.
Bu Sun Kim65020912020-05-20 12:08:20 -07002692 &quot;clusters&quot;: [ # A list of clusters in the project in the specified zone, or
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04002693 # across all ones.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002694 { # A Google Kubernetes Engine cluster.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002695 &quot;currentMasterVersion&quot;: &quot;A String&quot;, # [Output only] The current software version of the master endpoint.
2696 &quot;currentNodeVersion&quot;: &quot;A String&quot;, # [Output only] Deprecated, use
2697 # [NodePools.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools)
2698 # instead. The current version of the node software components. If they are
2699 # currently at multiple versions because they&#x27;re in the process of being
2700 # upgraded, this reflects the minimum version of all nodes.
2701 &quot;authenticatorGroupsConfig&quot;: { # Configuration for returning group information from authenticators. # Configuration controlling RBAC group membership information.
2702 &quot;securityGroup&quot;: &quot;A String&quot;, # The name of the security group-of-groups to be used. Only relevant
2703 # if enabled = true.
2704 &quot;enabled&quot;: True or False, # Whether this cluster should return group membership lookups
2705 # during authentication using a group of security groups.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002706 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002707 &quot;enableKubernetesAlpha&quot;: True or False, # Kubernetes alpha features are enabled on this cluster. This includes alpha
2708 # API groups (e.g. v1alpha1) and features that may not be production ready in
2709 # the kubernetes version of the master and nodes.
2710 # The cluster has no SLA for uptime and master/node upgrades are disabled.
2711 # Alpha enabled clusters are automatically deleted thirty days after
2712 # creation.
2713 &quot;ipAllocationPolicy&quot;: { # Configuration for controlling how IPs are allocated in the cluster. # Configuration for cluster IP allocation.
2714 &quot;servicesSecondaryRangeName&quot;: &quot;A String&quot;, # The name of the secondary range to be used as for the services
2715 # CIDR block. The secondary range will be used for service
2716 # ClusterIPs. This must be an existing secondary range associated
2717 # with the cluster subnetwork.
2718 #
2719 # This field is only applicable with use_ip_aliases is true and
2720 # create_subnetwork is false.
2721 &quot;subnetworkName&quot;: &quot;A String&quot;, # A custom subnetwork name to be used if `create_subnetwork` is true. If
2722 # this field is empty, then an automatic name will be chosen for the new
2723 # subnetwork.
2724 &quot;nodeIpv4Cidr&quot;: &quot;A String&quot;, # This field is deprecated, use node_ipv4_cidr_block.
2725 &quot;servicesIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP address range of the services IPs in this cluster. If blank, a range
2726 # will be automatically chosen with the default size.
2727 #
2728 # This field is only applicable when `use_ip_aliases` is true.
2729 #
2730 # Set to blank to have a range chosen with the default size.
2731 #
2732 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
2733 # netmask.
2734 #
2735 # Set to a
2736 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
2737 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
2738 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
2739 # to use.
2740 &quot;servicesIpv4Cidr&quot;: &quot;A String&quot;, # This field is deprecated, use services_ipv4_cidr_block.
2741 &quot;clusterSecondaryRangeName&quot;: &quot;A String&quot;, # The name of the secondary range to be used for the cluster CIDR
2742 # block. The secondary range will be used for pod IP
2743 # addresses. This must be an existing secondary range associated
2744 # with the cluster subnetwork.
2745 #
2746 # This field is only applicable with use_ip_aliases is true and
2747 # create_subnetwork is false.
2748 &quot;tpuIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP address range of the Cloud TPUs in this cluster. If unspecified, a
2749 # range will be automatically chosen with the default size.
2750 #
2751 # This field is only applicable when `use_ip_aliases` is true.
2752 #
2753 # If unspecified, the range will use the default size.
2754 #
2755 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
2756 # netmask.
2757 #
2758 # Set to a
2759 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
2760 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
2761 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
2762 # to use.
2763 &quot;nodeIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP address range of the instance IPs in this cluster.
2764 #
2765 # This is applicable only if `create_subnetwork` is true.
2766 #
2767 # Set to blank to have a range chosen with the default size.
2768 #
2769 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
2770 # netmask.
2771 #
2772 # Set to a
2773 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
2774 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
2775 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
2776 # to use.
2777 &quot;useIpAliases&quot;: True or False, # Whether alias IPs will be used for pod IPs in the cluster.
2778 &quot;createSubnetwork&quot;: True or False, # Whether a new subnetwork will be created automatically for the cluster.
2779 #
2780 # This field is only applicable when `use_ip_aliases` is true.
2781 &quot;clusterIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP address range for the cluster pod IPs. If this field is set, then
2782 # `cluster.cluster_ipv4_cidr` must be left blank.
2783 #
2784 # This field is only applicable when `use_ip_aliases` is true.
2785 #
2786 # Set to blank to have a range chosen with the default size.
2787 #
2788 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
2789 # netmask.
2790 #
2791 # Set to a
2792 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
2793 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
2794 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
2795 # to use.
2796 &quot;clusterIpv4Cidr&quot;: &quot;A String&quot;, # This field is deprecated, use cluster_ipv4_cidr_block.
2797 },
2798 &quot;loggingService&quot;: &quot;A String&quot;, # The logging service the cluster should use to write logs.
2799 # Currently available options:
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002800 #
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002801 # * `logging.googleapis.com/kubernetes` - The Cloud Logging
2802 # service with a Kubernetes-native resource model
2803 # * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
2804 # available as of GKE 1.15).
2805 # * `none` - no logs will be exported from the cluster.
2806 #
2807 # If left as an empty string,`logging.googleapis.com/kubernetes` will be
2808 # used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
2809 &quot;zone&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
2810 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
2811 # cluster resides. This field is deprecated, use location instead.
2812 &quot;legacyAbac&quot;: { # Configuration for the legacy Attribute Based Access Control authorization # Configuration for the legacy ABAC authorization mode.
2813 # mode.
2814 &quot;enabled&quot;: True or False, # Whether the ABAC authorizer is enabled for this cluster. When enabled,
2815 # identities in the system, including service accounts, nodes, and
2816 # controllers, will have statically granted permissions beyond those
2817 # provided by the RBAC configuration or IAM.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002818 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002819 &quot;resourceLabels&quot;: { # The resource labels for the cluster to use to annotate any related
2820 # Google Compute Engine resources.
2821 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002822 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002823 &quot;nodeIpv4CidrSize&quot;: 42, # [Output only] The size of the address space on each node for hosting
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04002824 # containers. This is provisioned from within the `container_ipv4_cidr`
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002825 # range. This field will only be set when cluster is in route-based network
2826 # mode.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002827 &quot;releaseChannel&quot;: { # ReleaseChannel indicates which release channel a cluster is # Release channel configuration.
2828 # subscribed to. Release channels are arranged in order of risk.
2829 #
2830 # When a cluster is subscribed to a release channel, Google maintains
2831 # both the master version and the node version. Node auto-upgrade
2832 # defaults to true and cannot be disabled.
2833 &quot;channel&quot;: &quot;A String&quot;, # channel specifies which release channel the cluster is subscribed to.
Bu Sun Kim65020912020-05-20 12:08:20 -07002834 },
2835 &quot;maintenancePolicy&quot;: { # MaintenancePolicy defines the maintenance policy to be used for the cluster. # Configure the maintenance policy for this cluster.
2836 &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 -07002837 &quot;maintenanceExclusions&quot;: { # Exceptions to maintenance window. Non-emergency maintenance should not
2838 # occur in these windows.
2839 &quot;a_key&quot;: { # Represents an arbitrary window of time.
2840 &quot;endTime&quot;: &quot;A String&quot;, # The time that the window ends. The end time should take place after the
2841 # start time.
2842 &quot;startTime&quot;: &quot;A String&quot;, # The time that the window first starts.
2843 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002844 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002845 &quot;dailyMaintenanceWindow&quot;: { # Time window specified for daily maintenance operations. # DailyMaintenanceWindow specifies a daily maintenance operation window.
2846 &quot;duration&quot;: &quot;A String&quot;, # [Output only] Duration of the time window, automatically chosen to be
2847 # smallest possible in the given scenario.
2848 # Duration will be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)
2849 # format &quot;PTnHnMnS&quot;.
2850 &quot;startTime&quot;: &quot;A String&quot;, # Time within the maintenance window to start the maintenance operations.
2851 # Time format should be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)
2852 # format &quot;HH:MM&quot;, where HH : [00-23] and MM : [00-59] GMT.
2853 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002854 &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 -07002855 # maintenance to occur. The time windows may be overlapping. If no
2856 # maintenance windows are set, maintenance can occur at any time.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002857 &quot;window&quot;: { # Represents an arbitrary window of time. # The window of the first recurrence.
2858 &quot;endTime&quot;: &quot;A String&quot;, # The time that the window ends. The end time should take place after the
2859 # start time.
2860 &quot;startTime&quot;: &quot;A String&quot;, # The time that the window first starts.
2861 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002862 &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 -07002863 # this window reccurs. They go on for the span of time between the start and
2864 # end time.
2865 #
Bu Sun Kim65020912020-05-20 12:08:20 -07002866 # For example, to have something repeat every weekday, you&#x27;d use:
Dan O'Mearadd494642020-05-01 07:42:23 -07002867 # &lt;code&gt;FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR&lt;/code&gt;
2868 # To repeat some window daily (equivalent to the DailyMaintenanceWindow):
2869 # &lt;code&gt;FREQ=DAILY&lt;/code&gt;
2870 # For the first weekend of every month:
2871 # &lt;code&gt;FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU&lt;/code&gt;
2872 # This specifies how frequently the window starts. Eg, if you wanted to have
Bu Sun Kim65020912020-05-20 12:08:20 -07002873 # a 9-5 UTC-4 window every weekday, you&#x27;d use something like:
Dan O'Mearadd494642020-05-01 07:42:23 -07002874 # &lt;code&gt;
2875 # start time = 2019-01-01T09:00:00-0400
2876 # end time = 2019-01-01T17:00:00-0400
2877 # recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
2878 # &lt;/code&gt;
2879 # Windows can span multiple days. Eg, to make the window encompass every
2880 # weekend from midnight Saturday till the last minute of Sunday UTC:
2881 # &lt;code&gt;
2882 # start time = 2019-01-05T00:00:00Z
2883 # end time = 2019-01-07T23:59:00Z
2884 # recurrence = FREQ=WEEKLY;BYDAY=SA
2885 # &lt;/code&gt;
Bu Sun Kim65020912020-05-20 12:08:20 -07002886 # Note the start and end time&#x27;s specific dates are largely arbitrary except
Dan O'Mearadd494642020-05-01 07:42:23 -07002887 # to specify duration of the window and when it first starts.
2888 # The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.
Dan O'Mearadd494642020-05-01 07:42:23 -07002889 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002890 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002891 &quot;resourceVersion&quot;: &quot;A String&quot;, # A hash identifying the version of this policy, so that updates to fields of
2892 # the policy won&#x27;t accidentally undo intermediate changes (and so that users
2893 # of the API unaware of some fields won&#x27;t accidentally remove other fields).
Dan O'Mearadd494642020-05-01 07:42:23 -07002894 # Make a &lt;code&gt;get()&lt;/code&gt; request to the cluster to get the current
2895 # resource version and include it with requests to set the policy.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002896 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002897 &quot;monitoringService&quot;: &quot;A String&quot;, # The monitoring service the cluster should use to write metrics.
2898 # Currently available options:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002899 #
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002900 # * &quot;monitoring.googleapis.com/kubernetes&quot; - The Cloud Monitoring
2901 # service with a Kubernetes-native resource model
2902 # * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
2903 # longer available as of GKE 1.15).
2904 # * `none` - No metrics will be exported from the cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -07002905 #
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002906 # If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
2907 # used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
2908 &quot;binaryAuthorization&quot;: { # Configuration for Binary Authorization. # Configuration for Binary Authorization.
2909 &quot;enabled&quot;: True or False, # Enable Binary Authorization for this cluster. If enabled, all container
2910 # images will be validated by Binary Authorization.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002911 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002912 &quot;expireTime&quot;: &quot;A String&quot;, # [Output only] The time the cluster will be automatically
2913 # deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
2914 &quot;instanceGroupUrls&quot;: [ # Deprecated. Use node_pools.instance_group_urls.
Bu Sun Kim65020912020-05-20 12:08:20 -07002915 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002916 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002917 &quot;endpoint&quot;: &quot;A String&quot;, # [Output only] The IP address of this cluster&#x27;s master endpoint.
2918 # The endpoint can be accessed from the internet at
2919 # `https://username:password@endpoint/`.
2920 #
2921 # See the `masterAuth` property of this resource for username and
2922 # password information.
2923 &quot;shieldedNodes&quot;: { # Configuration of Shielded Nodes feature. # Shielded Nodes configuration.
2924 &quot;enabled&quot;: True or False, # Whether Shielded Nodes features are enabled on all nodes in this cluster.
2925 },
2926 &quot;masterAuthorizedNetworksConfig&quot;: { # Configuration options for the master authorized networks feature. Enabled # The configuration options for master authorized networks feature.
2927 # master authorized networks will disallow all external traffic to access
2928 # Kubernetes master through HTTPS except traffic from the given CIDR blocks,
2929 # Google Compute Engine Public IPs and Google Prod IPs.
2930 &quot;enabled&quot;: True or False, # Whether or not master authorized networks is enabled.
2931 &quot;cidrBlocks&quot;: [ # cidr_blocks define up to 50 external networks that could access
2932 # Kubernetes master through HTTPS.
2933 { # CidrBlock contains an optional name and one CIDR block.
2934 &quot;displayName&quot;: &quot;A String&quot;, # display_name is an optional field for users to identify CIDR blocks.
2935 &quot;cidrBlock&quot;: &quot;A String&quot;, # cidr_block must be specified in CIDR notation.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002936 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002937 ],
2938 },
2939 &quot;conditions&quot;: [ # Which conditions caused the current cluster state.
2940 { # StatusCondition describes why a cluster or a node pool has a certain status
2941 # (e.g., ERROR or DEGRADED).
2942 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
2943 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
2944 },
2945 ],
2946 &quot;network&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
2947 # [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
2948 # to which the cluster is connected. If left unspecified, the `default`
2949 # network will be used.
2950 &quot;status&quot;: &quot;A String&quot;, # [Output only] The current status of this cluster.
2951 &quot;autoscaling&quot;: { # ClusterAutoscaling contains global, per-cluster information # Cluster-level autoscaling configuration.
2952 # required by Cluster Autoscaler to automatically adjust
2953 # the size of the cluster and create/delete
2954 # node pools based on the current needs.
2955 &quot;resourceLimits&quot;: [ # Contains global constraints regarding minimum and maximum
2956 # amount of resources in the cluster.
2957 { # Contains information about amount of some resource in the cluster.
2958 # For memory, value should be in GB.
2959 &quot;minimum&quot;: &quot;A String&quot;, # Minimum amount of the resource in the cluster.
2960 &quot;resourceType&quot;: &quot;A String&quot;, # Resource name &quot;cpu&quot;, &quot;memory&quot; or gpu-specific string.
2961 &quot;maximum&quot;: &quot;A String&quot;, # Maximum amount of the resource in the cluster.
2962 },
2963 ],
2964 &quot;autoprovisioningNodePoolDefaults&quot;: { # AutoprovisioningNodePoolDefaults contains defaults for a node pool created # AutoprovisioningNodePoolDefaults contains defaults for a node pool
2965 # created by NAP.
2966 # by NAP.
2967 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs.
2968 &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.
2969 # node pool.
2970 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool.
2971 # the Auto Upgrades will proceed.
2972 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
2973 # with the description of the upgrade.
2974 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
2975 # with the approximate start time for the upgrades, in
2976 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
2977 },
2978 &quot;autoRepair&quot;: True or False, # A flag that specifies whether the node auto-repair is enabled for the node
2979 # pool. If enabled, the nodes in this node pool will be monitored and, if
2980 # they fail health checks too many times, an automatic repair action will be
2981 # triggered.
2982 &quot;autoUpgrade&quot;: True or False, # A flag that specifies whether node auto-upgrade is enabled for the node
2983 # pool. If enabled, node auto-upgrade helps keep the nodes in your node pool
2984 # up to date with the latest release version of Kubernetes.
2985 },
2986 &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 -07002987 # disruption caused by an upgrade.
2988 #
2989 # maxUnavailable controls the number of nodes that can be simultaneously
2990 # unavailable.
2991 #
2992 # maxSurge controls the number of additional nodes that can be added to the
2993 # node pool temporarily for the time of the upgrade to increase the number of
2994 # available nodes.
2995 #
2996 # (maxUnavailable + maxSurge) determines the level of parallelism (how many
2997 # nodes are being upgraded at the same time).
2998 #
2999 # Note: upgrades inevitably introduce some disruption since workloads need to
3000 # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
3001 # this holds true. (Disruption stays within the limits of
3002 # PodDisruptionBudget, if it is configured.)
3003 #
3004 # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
3005 # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
3006 # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
3007 # down 3 old (not yet upgraded) nodes at the same time. This ensures that
3008 # there are always at least 4 nodes available.
Bu Sun Kim65020912020-05-20 12:08:20 -07003009 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during
Dan O'Mearadd494642020-05-01 07:42:23 -07003010 # the upgrade process. A node is considered available if its status is
3011 # Ready.
Bu Sun Kim65020912020-05-20 12:08:20 -07003012 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size
3013 # of the node pool during the upgrade process.
Dan O'Mearadd494642020-05-01 07:42:23 -07003014 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003015 &quot;oauthScopes&quot;: [ # Scopes that are used by NAP when creating node pools.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003016 &quot;A String&quot;,
3017 ],
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -07003018 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003019 &quot;enableNodeAutoprovisioning&quot;: True or False, # Enables automatic node pool creation and deletion.
3020 &quot;autoprovisioningLocations&quot;: [ # The list of Google Compute Engine
3021 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
3022 # NodePool&#x27;s nodes can be created by NAP.
3023 &quot;A String&quot;,
3024 ],
3025 },
3026 &quot;labelFingerprint&quot;: &quot;A String&quot;, # The fingerprint of the set of labels for this cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -07003027 &quot;networkPolicy&quot;: { # Configuration options for the NetworkPolicy feature. # Configuration options for the NetworkPolicy feature.
3028 # https://kubernetes.io/docs/concepts/services-networking/networkpolicies/
Bu Sun Kim65020912020-05-20 12:08:20 -07003029 &quot;enabled&quot;: True or False, # Whether network policy is enabled on the cluster.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003030 &quot;provider&quot;: &quot;A String&quot;, # The selected network policy provider.
Bu Sun Kim65020912020-05-20 12:08:20 -07003031 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003032 &quot;clusterIpv4Cidr&quot;: &quot;A String&quot;, # The IP address range of the container pods in this cluster, in
Bu Sun Kim65020912020-05-20 12:08:20 -07003033 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003034 # notation (e.g. `10.96.0.0/14`). Leave blank to have
3035 # one automatically chosen or specify a `/14` block in `10.0.0.0/8`.
3036 &quot;defaultMaxPodsConstraint&quot;: { # Constraints applied to pods. # The default constraint on the maximum number of pods that can be run
3037 # simultaneously on a node in the node pool of this cluster. Only honored
3038 # if cluster created with IP Alias support.
3039 &quot;maxPodsPerNode&quot;: &quot;A String&quot;, # Constraint enforced on the max num of pods per node.
Takashi Matsuo06694102015-09-11 13:55:40 -07003040 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003041 &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 -04003042 # For requests, this field should only be used in lieu of a
Bu Sun Kim65020912020-05-20 12:08:20 -07003043 # &quot;node_pool&quot; object, since this configuration (along with the
3044 # &quot;initial_node_count&quot;) will be used to create a &quot;NodePool&quot; object with an
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04003045 # auto-generated name. Do not use this and a node_pool at the same time.
3046 # For responses, this field will be populated with the node configuration of
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003047 # the first node pool. (For configuration of each node pool, see
3048 # `node_pool.config`)
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04003049 #
3050 # If unspecified, the defaults are used.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003051 # This field is deprecated, use node_pool.config instead.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003052 &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;)
3053 #
3054 # If unspecified, the default disk type is &#x27;pd-standard&#x27;
3055 &quot;bootDiskKmsKey&quot;: &quot;A String&quot;, #
3056 # The Customer Managed Encryption Key used to encrypt the boot disk attached
3057 # to each node in the node pool. This should be of the form
3058 # projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
3059 # For more information about protecting resources with Cloud KMS Keys please
3060 # see:
3061 # https://cloud.google.com/compute/docs/disks/customer-managed-encryption
3062 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
3063 &quot;enableIntegrityMonitoring&quot;: True or False, # Defines whether the instance has integrity monitoring enabled.
3064 #
3065 # Enables monitoring and attestation of the boot integrity of the instance.
3066 # The attestation is performed against the integrity policy baseline. This
3067 # baseline is initially derived from the implicitly trusted boot image when
3068 # the instance is created.
3069 &quot;enableSecureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled.
3070 #
3071 # Secure Boot helps ensure that the system only runs authentic software by
3072 # verifying the digital signature of all boot components, and halting the
3073 # boot process if signature verification fails.
3074 },
3075 &quot;labels&quot;: { # The map of Kubernetes labels (key/value pairs) to be applied to each node.
3076 # These will added in addition to any default label(s) that
3077 # Kubernetes may apply to the node.
3078 # In case of conflict in label keys, the applied set may differ depending on
3079 # the Kubernetes version -- it&#x27;s best to assume the behavior is undefined
3080 # and conflicts should be avoided.
3081 # For more information, including usage and the valid values, see:
3082 # https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
3083 &quot;a_key&quot;: &quot;A String&quot;,
3084 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003085 &quot;oauthScopes&quot;: [ # The set of Google API scopes to be made available on all of the
3086 # node VMs under the &quot;default&quot; service account.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04003087 #
3088 # The following scopes are recommended, but not required, and by default are
3089 # not included:
3090 #
3091 # * `https://www.googleapis.com/auth/compute` is required for mounting
3092 # persistent storage on your nodes.
3093 # * `https://www.googleapis.com/auth/devstorage.read_only` is required for
3094 # communicating with **gcr.io**
Dan O'Mearadd494642020-05-01 07:42:23 -07003095 # (the [Google Container
3096 # Registry](https://cloud.google.com/container-registry/)).
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04003097 #
3098 # If unspecified, no scopes are added, unless Cloud Logging or Cloud
3099 # Monitoring are enabled, in which case their required scopes will be added.
Bu Sun Kim65020912020-05-20 12:08:20 -07003100 &quot;A String&quot;,
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04003101 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003102 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used by this instance. The instance may be
3103 # scheduled on the specified or newer CPU platform. Applicable values are the
3104 # friendly names of CPU platforms, such as
3105 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Haswell&amp;quot;&lt;/code&gt; or
3106 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Sandy Bridge&amp;quot;&lt;/code&gt;. For more
3107 # information, read [how to specify min CPU
3108 # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
3109 &quot;localSsdCount&quot;: 42, # The number of local SSD disks to be attached to the node.
3110 #
3111 # The limit for this value is dependent upon the maximum number of
3112 # disks available on a machine per zone. See:
3113 # https://cloud.google.com/compute/docs/disks/local-ssd
3114 # for more information.
Bu Sun Kim65020912020-05-20 12:08:20 -07003115 &quot;taints&quot;: [ # List of kubernetes taints to be applied to each node.
Dan O'Mearadd494642020-05-01 07:42:23 -07003116 #
3117 # For more information, including usage and the valid values, see:
3118 # https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
3119 { # Kubernetes taint is comprised of three fields: key, value, and effect. Effect
3120 # can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute.
3121 #
Bu Sun Kim65020912020-05-20 12:08:20 -07003122 # See
3123 # [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration)
3124 # for more information, including usage and the valid values.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003125 &quot;value&quot;: &quot;A String&quot;, # Value for taint.
3126 &quot;key&quot;: &quot;A String&quot;, # Key for taint.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003127 &quot;effect&quot;: &quot;A String&quot;, # Effect for taint.
Dan O'Mearadd494642020-05-01 07:42:23 -07003128 },
3129 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003130 &quot;imageType&quot;: &quot;A String&quot;, # The image type to use for this node. Note that for a given image type,
3131 # the latest version of it will be used.
3132 &quot;reservationAffinity&quot;: { # [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) # The optional reservation affinity. Setting this field will apply
3133 # the specified [Zonal Compute
3134 # Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
3135 # to this node pool.
3136 # is the configuration of desired reservation which instances could take
3137 # capacity from.
3138 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Corresponds to the type of reservation consumption.
3139 &quot;key&quot;: &quot;A String&quot;, # Corresponds to the label key of a reservation resource. To target a
3140 # SPECIFIC_RESERVATION by name, specify &quot;googleapis.com/reservation-name&quot; as
3141 # the key and specify the name of your reservation as its value.
3142 &quot;values&quot;: [ # Corresponds to the label value(s) of reservation resource(s).
3143 &quot;A String&quot;,
3144 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003145 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003146 &quot;machineType&quot;: &quot;A String&quot;, # The name of a Google Compute Engine [machine
3147 # type](https://cloud.google.com/compute/docs/machine-types) (e.g.
3148 # `n1-standard-1`).
3149 #
3150 # If unspecified, the default machine type is
3151 # `n1-standard-1`.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003152 &quot;nodeGroup&quot;: &quot;A String&quot;, # Setting this field will assign instances of this
3153 # pool to run on the specified node group. This is useful for running
3154 # workloads on [sole tenant
3155 # nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes).
Bu Sun Kim65020912020-05-20 12:08:20 -07003156 &quot;metadata&quot;: { # The metadata key/value pairs assigned to instances in the cluster.
3157 #
3158 # Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
3159 # in length. These are reflected as part of a URL in the metadata server.
3160 # Additionally, to avoid ambiguity, keys must not conflict with any other
3161 # metadata keys for the project or be one of the reserved keys:
3162 # &quot;cluster-location&quot;
3163 # &quot;cluster-name&quot;
3164 # &quot;cluster-uid&quot;
3165 # &quot;configure-sh&quot;
3166 # &quot;containerd-configure-sh&quot;
3167 # &quot;enable-os-login&quot;
3168 # &quot;gci-ensure-gke-docker&quot;
3169 # &quot;gci-metrics-enabled&quot;
3170 # &quot;gci-update-strategy&quot;
3171 # &quot;instance-template&quot;
3172 # &quot;kube-env&quot;
3173 # &quot;startup-script&quot;
3174 # &quot;user-data&quot;
3175 # &quot;disable-address-manager&quot;
3176 # &quot;windows-startup-script-ps1&quot;
3177 # &quot;common-psm1&quot;
3178 # &quot;k8s-node-setup-psm1&quot;
3179 # &quot;install-ssh-psm1&quot;
3180 # &quot;user-profile-psm1&quot;
3181 # &quot;serial-port-logging-enable&quot;
3182 #
3183 # Values are free-form strings, and only have meaning as interpreted by
3184 # the image running in the instance. The only restriction placed on them is
3185 # that each value&#x27;s size must be less than or equal to 32 KB.
3186 #
3187 # The total size of all keys and values must be less than 512 KB.
3188 &quot;a_key&quot;: &quot;A String&quot;,
3189 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003190 &quot;tags&quot;: [ # The list of instance tags applied to all nodes. Tags are used to identify
3191 # valid sources or targets for network firewalls and are specified by
3192 # the client during cluster or node pool creation. Each tag within the list
3193 # must comply with RFC1035.
3194 &quot;A String&quot;,
3195 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003196 &quot;sandboxConfig&quot;: { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node.
3197 &quot;type&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node.
3198 },
3199 &quot;preemptible&quot;: True or False, # Whether the nodes are created as preemptible VM instances. See:
3200 # https://cloud.google.com/compute/docs/instances/preemptible for more
3201 # information about preemptible VM instances.
3202 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to # The workload metadata configuration for this node.
3203 # workloads on the node pool.
3204 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running
3205 # on the node pool.
3206 },
3207 &quot;diskSizeGb&quot;: 42, # Size of the disk attached to each node, specified in GB.
3208 # The smallest allowed disk size is 10GB.
3209 #
3210 # If unspecified, the default disk size is 100GB.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003211 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs.
3212 # Specify the email address of the Service Account; otherwise, if no Service
3213 # Account is specified, the &quot;default&quot; service account is used.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003214 &quot;accelerators&quot;: [ # A list of hardware accelerators to be attached to each node.
3215 # See https://cloud.google.com/compute/docs/gpus for more information about
3216 # support for GPUs.
3217 { # AcceleratorConfig represents a Hardware Accelerator request.
3218 &quot;acceleratorType&quot;: &quot;A String&quot;, # The accelerator type resource name. List of supported accelerators
3219 # [here](https://cloud.google.com/compute/docs/gpus)
3220 &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of the accelerator cards exposed to an instance.
3221 },
3222 ],
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04003223 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003224 &quot;resourceUsageExportConfig&quot;: { # Configuration for exporting cluster resource usages. # Configuration for exporting resource usages. Resource usage export is
3225 # disabled when this config is unspecified.
3226 &quot;enableNetworkEgressMetering&quot;: True or False, # Whether to enable network egress metering for this cluster. If enabled, a
3227 # daemonset will be created in the cluster to meter network egress traffic.
3228 &quot;bigqueryDestination&quot;: { # Parameters for using BigQuery as the destination of resource usage export. # Configuration to use BigQuery as usage export destination.
3229 &quot;datasetId&quot;: &quot;A String&quot;, # The ID of a BigQuery Dataset.
3230 },
3231 &quot;consumptionMeteringConfig&quot;: { # Parameters for controlling consumption metering. # Configuration to enable resource consumption metering.
3232 &quot;enabled&quot;: True or False, # Whether to enable consumption metering for this cluster. If enabled, a
3233 # second BigQuery table will be created to hold resource consumption
3234 # records.
3235 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003236 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003237 &quot;initialNodeCount&quot;: 42, # The number of nodes to create in this cluster. You must ensure that your
3238 # Compute Engine [resource quota](https://cloud.google.com/compute/quotas)
3239 # is sufficient for this number of instances. You must also have available
3240 # firewall and routes quota.
3241 # For requests, this field should only be used in lieu of a
3242 # &quot;node_pool&quot; object, since this configuration (along with the
3243 # &quot;node_config&quot;) will be used to create a &quot;NodePool&quot; object with an
3244 # auto-generated name. Do not use this and a node_pool at the same time.
3245 #
3246 # This field is deprecated, use node_pool.initial_node_count instead.
Bu Sun Kim65020912020-05-20 12:08:20 -07003247 &quot;name&quot;: &quot;A String&quot;, # The name of this cluster. The name must be unique within this project
3248 # and location (e.g. zone or region), and can be up to 40 characters with
3249 # the following restrictions:
3250 #
3251 # * Lowercase letters, numbers, and hyphens only.
3252 # * Must start with a letter.
3253 # * Must end with a number or a letter.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003254 &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
3255 # policies.
3256 # policies.
3257 &quot;workloadPool&quot;: &quot;A String&quot;, # The workload pool to attach all Kubernetes service accounts to.
3258 },
3259 &quot;networkConfig&quot;: { # NetworkConfig reports the relative names of network &amp; subnetwork. # Configuration for cluster networking.
3260 &quot;network&quot;: &quot;A String&quot;, # Output only. The relative name of the Google Compute Engine
3261 # network(https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
3262 # to which the cluster is connected. Example:
3263 # projects/my-project/global/networks/my-network
3264 &quot;enableIntraNodeVisibility&quot;: True or False, # Whether Intra-node visibility is enabled for this cluster.
3265 # This makes same node pod to pod traffic visible for VPC network.
3266 &quot;subnetwork&quot;: &quot;A String&quot;, # Output only. The relative name of the Google Compute Engine
3267 # [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the
3268 # cluster is connected. Example:
3269 # projects/my-project/regions/us-central1/subnetworks/my-subnet
3270 },
3271 &quot;databaseEncryption&quot;: { # Configuration of etcd encryption. # Configuration of etcd encryption.
3272 &quot;state&quot;: &quot;A String&quot;, # Denotes the state of etcd encryption.
3273 &quot;keyName&quot;: &quot;A String&quot;, # Name of CloudKMS key to use for the encryption of secrets in etcd.
3274 # Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key
3275 },
3276 &quot;privateClusterConfig&quot;: { # Configuration options for private clusters. # Configuration for private cluster.
3277 &quot;privateEndpoint&quot;: &quot;A String&quot;, # Output only. The internal IP address of this cluster&#x27;s master endpoint.
3278 &quot;peeringName&quot;: &quot;A String&quot;, # Output only. The peering name in the customer VPC used by this cluster.
3279 &quot;enablePrivateNodes&quot;: True or False, # Whether nodes have internal IP addresses only. If enabled, all nodes are
3280 # given only RFC 1918 private addresses and communicate with the master via
3281 # private networking.
3282 &quot;publicEndpoint&quot;: &quot;A String&quot;, # Output only. The external IP address of this cluster&#x27;s master endpoint.
3283 &quot;enablePrivateEndpoint&quot;: True or False, # Whether the master&#x27;s internal IP address is used as the cluster endpoint.
3284 &quot;masterIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP range in CIDR notation to use for the hosted master network. This
3285 # range will be used for assigning internal IP addresses to the master or
3286 # set of masters, as well as the ILB VIP. This range must not overlap with
3287 # any other ranges in use within the cluster&#x27;s network.
3288 },
3289 &quot;createTime&quot;: &quot;A String&quot;, # [Output only] The time the cluster was created, in
3290 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
3291 &quot;nodePools&quot;: [ # The node pools associated with this cluster.
3292 # This field should not be set if &quot;node_config&quot; or &quot;initial_node_count&quot; are
3293 # specified.
3294 { # NodePool contains the name and configuration for a cluster&#x27;s node pool.
3295 # Node pools are a set of nodes (i.e. VM&#x27;s), with a common configuration and
3296 # specification, under the control of the cluster master. They may have a set
3297 # of Kubernetes labels applied to them, which may be used to reference them
3298 # during pod scheduling. They may also be resized up or down, to accommodate
3299 # the workload.
3300 &quot;selfLink&quot;: &quot;A String&quot;, # [Output only] Server-defined URL for the resource.
3301 &quot;management&quot;: { # NodeManagement defines the set of node management services turned on for the # NodeManagement configuration for this NodePool.
3302 # node pool.
3303 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool.
3304 # the Auto Upgrades will proceed.
3305 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
3306 # with the description of the upgrade.
3307 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
3308 # with the approximate start time for the upgrades, in
3309 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
3310 },
3311 &quot;autoRepair&quot;: True or False, # A flag that specifies whether the node auto-repair is enabled for the node
3312 # pool. If enabled, the nodes in this node pool will be monitored and, if
3313 # they fail health checks too many times, an automatic repair action will be
3314 # triggered.
3315 &quot;autoUpgrade&quot;: True or False, # A flag that specifies whether node auto-upgrade is enabled for the node
3316 # pool. If enabled, node auto-upgrade helps keep the nodes in your node pool
3317 # up to date with the latest release version of Kubernetes.
3318 },
3319 &quot;upgradeSettings&quot;: { # These upgrade settings control the level of parallelism and the level of # Upgrade settings control disruption and speed of the upgrade.
3320 # disruption caused by an upgrade.
3321 #
3322 # maxUnavailable controls the number of nodes that can be simultaneously
3323 # unavailable.
3324 #
3325 # maxSurge controls the number of additional nodes that can be added to the
3326 # node pool temporarily for the time of the upgrade to increase the number of
3327 # available nodes.
3328 #
3329 # (maxUnavailable + maxSurge) determines the level of parallelism (how many
3330 # nodes are being upgraded at the same time).
3331 #
3332 # Note: upgrades inevitably introduce some disruption since workloads need to
3333 # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
3334 # this holds true. (Disruption stays within the limits of
3335 # PodDisruptionBudget, if it is configured.)
3336 #
3337 # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
3338 # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
3339 # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
3340 # down 3 old (not yet upgraded) nodes at the same time. This ensures that
3341 # there are always at least 4 nodes available.
3342 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during
3343 # the upgrade process. A node is considered available if its status is
3344 # Ready.
3345 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size
3346 # of the node pool during the upgrade process.
3347 },
3348 &quot;initialNodeCount&quot;: 42, # The initial node count for the pool. You must ensure that your
3349 # Compute Engine [resource quota](https://cloud.google.com/compute/quotas)
3350 # is sufficient for this number of instances. You must also have available
3351 # firewall and routes quota.
3352 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output only] Additional information about the current status of this
3353 # node pool instance, if available.
3354 &quot;version&quot;: &quot;A String&quot;, # The version of the Kubernetes of this node.
3355 &quot;conditions&quot;: [ # Which conditions caused the current node pool state.
3356 { # StatusCondition describes why a cluster or a node pool has a certain status
3357 # (e.g., ERROR or DEGRADED).
3358 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
3359 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
3360 },
3361 ],
3362 &quot;config&quot;: { # Parameters that describe the nodes in a cluster. # The node configuration of the pool.
3363 &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;)
3364 #
3365 # If unspecified, the default disk type is &#x27;pd-standard&#x27;
3366 &quot;bootDiskKmsKey&quot;: &quot;A String&quot;, #
3367 # The Customer Managed Encryption Key used to encrypt the boot disk attached
3368 # to each node in the node pool. This should be of the form
3369 # projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
3370 # For more information about protecting resources with Cloud KMS Keys please
3371 # see:
3372 # https://cloud.google.com/compute/docs/disks/customer-managed-encryption
3373 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
3374 &quot;enableIntegrityMonitoring&quot;: True or False, # Defines whether the instance has integrity monitoring enabled.
3375 #
3376 # Enables monitoring and attestation of the boot integrity of the instance.
3377 # The attestation is performed against the integrity policy baseline. This
3378 # baseline is initially derived from the implicitly trusted boot image when
3379 # the instance is created.
3380 &quot;enableSecureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled.
3381 #
3382 # Secure Boot helps ensure that the system only runs authentic software by
3383 # verifying the digital signature of all boot components, and halting the
3384 # boot process if signature verification fails.
3385 },
3386 &quot;labels&quot;: { # The map of Kubernetes labels (key/value pairs) to be applied to each node.
3387 # These will added in addition to any default label(s) that
3388 # Kubernetes may apply to the node.
3389 # In case of conflict in label keys, the applied set may differ depending on
3390 # the Kubernetes version -- it&#x27;s best to assume the behavior is undefined
3391 # and conflicts should be avoided.
3392 # For more information, including usage and the valid values, see:
3393 # https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
3394 &quot;a_key&quot;: &quot;A String&quot;,
3395 },
3396 &quot;oauthScopes&quot;: [ # The set of Google API scopes to be made available on all of the
3397 # node VMs under the &quot;default&quot; service account.
3398 #
3399 # The following scopes are recommended, but not required, and by default are
3400 # not included:
3401 #
3402 # * `https://www.googleapis.com/auth/compute` is required for mounting
3403 # persistent storage on your nodes.
3404 # * `https://www.googleapis.com/auth/devstorage.read_only` is required for
3405 # communicating with **gcr.io**
3406 # (the [Google Container
3407 # Registry](https://cloud.google.com/container-registry/)).
3408 #
3409 # If unspecified, no scopes are added, unless Cloud Logging or Cloud
3410 # Monitoring are enabled, in which case their required scopes will be added.
3411 &quot;A String&quot;,
3412 ],
3413 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used by this instance. The instance may be
3414 # scheduled on the specified or newer CPU platform. Applicable values are the
3415 # friendly names of CPU platforms, such as
3416 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Haswell&amp;quot;&lt;/code&gt; or
3417 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Sandy Bridge&amp;quot;&lt;/code&gt;. For more
3418 # information, read [how to specify min CPU
3419 # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
3420 &quot;localSsdCount&quot;: 42, # The number of local SSD disks to be attached to the node.
3421 #
3422 # The limit for this value is dependent upon the maximum number of
3423 # disks available on a machine per zone. See:
3424 # https://cloud.google.com/compute/docs/disks/local-ssd
3425 # for more information.
3426 &quot;taints&quot;: [ # List of kubernetes taints to be applied to each node.
3427 #
3428 # For more information, including usage and the valid values, see:
3429 # https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
3430 { # Kubernetes taint is comprised of three fields: key, value, and effect. Effect
3431 # can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute.
3432 #
3433 # See
3434 # [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration)
3435 # for more information, including usage and the valid values.
3436 &quot;value&quot;: &quot;A String&quot;, # Value for taint.
3437 &quot;key&quot;: &quot;A String&quot;, # Key for taint.
3438 &quot;effect&quot;: &quot;A String&quot;, # Effect for taint.
3439 },
3440 ],
3441 &quot;imageType&quot;: &quot;A String&quot;, # The image type to use for this node. Note that for a given image type,
3442 # the latest version of it will be used.
3443 &quot;reservationAffinity&quot;: { # [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) # The optional reservation affinity. Setting this field will apply
3444 # the specified [Zonal Compute
3445 # Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
3446 # to this node pool.
3447 # is the configuration of desired reservation which instances could take
3448 # capacity from.
3449 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Corresponds to the type of reservation consumption.
3450 &quot;key&quot;: &quot;A String&quot;, # Corresponds to the label key of a reservation resource. To target a
3451 # SPECIFIC_RESERVATION by name, specify &quot;googleapis.com/reservation-name&quot; as
3452 # the key and specify the name of your reservation as its value.
3453 &quot;values&quot;: [ # Corresponds to the label value(s) of reservation resource(s).
3454 &quot;A String&quot;,
3455 ],
3456 },
3457 &quot;machineType&quot;: &quot;A String&quot;, # The name of a Google Compute Engine [machine
3458 # type](https://cloud.google.com/compute/docs/machine-types) (e.g.
3459 # `n1-standard-1`).
3460 #
3461 # If unspecified, the default machine type is
3462 # `n1-standard-1`.
3463 &quot;nodeGroup&quot;: &quot;A String&quot;, # Setting this field will assign instances of this
3464 # pool to run on the specified node group. This is useful for running
3465 # workloads on [sole tenant
3466 # nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes).
3467 &quot;metadata&quot;: { # The metadata key/value pairs assigned to instances in the cluster.
3468 #
3469 # Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
3470 # in length. These are reflected as part of a URL in the metadata server.
3471 # Additionally, to avoid ambiguity, keys must not conflict with any other
3472 # metadata keys for the project or be one of the reserved keys:
3473 # &quot;cluster-location&quot;
3474 # &quot;cluster-name&quot;
3475 # &quot;cluster-uid&quot;
3476 # &quot;configure-sh&quot;
3477 # &quot;containerd-configure-sh&quot;
3478 # &quot;enable-os-login&quot;
3479 # &quot;gci-ensure-gke-docker&quot;
3480 # &quot;gci-metrics-enabled&quot;
3481 # &quot;gci-update-strategy&quot;
3482 # &quot;instance-template&quot;
3483 # &quot;kube-env&quot;
3484 # &quot;startup-script&quot;
3485 # &quot;user-data&quot;
3486 # &quot;disable-address-manager&quot;
3487 # &quot;windows-startup-script-ps1&quot;
3488 # &quot;common-psm1&quot;
3489 # &quot;k8s-node-setup-psm1&quot;
3490 # &quot;install-ssh-psm1&quot;
3491 # &quot;user-profile-psm1&quot;
3492 # &quot;serial-port-logging-enable&quot;
3493 #
3494 # Values are free-form strings, and only have meaning as interpreted by
3495 # the image running in the instance. The only restriction placed on them is
3496 # that each value&#x27;s size must be less than or equal to 32 KB.
3497 #
3498 # The total size of all keys and values must be less than 512 KB.
3499 &quot;a_key&quot;: &quot;A String&quot;,
3500 },
3501 &quot;tags&quot;: [ # The list of instance tags applied to all nodes. Tags are used to identify
3502 # valid sources or targets for network firewalls and are specified by
3503 # the client during cluster or node pool creation. Each tag within the list
3504 # must comply with RFC1035.
3505 &quot;A String&quot;,
3506 ],
3507 &quot;sandboxConfig&quot;: { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node.
3508 &quot;type&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node.
3509 },
3510 &quot;preemptible&quot;: True or False, # Whether the nodes are created as preemptible VM instances. See:
3511 # https://cloud.google.com/compute/docs/instances/preemptible for more
3512 # information about preemptible VM instances.
3513 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to # The workload metadata configuration for this node.
3514 # workloads on the node pool.
3515 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running
3516 # on the node pool.
3517 },
3518 &quot;diskSizeGb&quot;: 42, # Size of the disk attached to each node, specified in GB.
3519 # The smallest allowed disk size is 10GB.
3520 #
3521 # If unspecified, the default disk size is 100GB.
3522 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs.
3523 # Specify the email address of the Service Account; otherwise, if no Service
3524 # Account is specified, the &quot;default&quot; service account is used.
3525 &quot;accelerators&quot;: [ # A list of hardware accelerators to be attached to each node.
3526 # See https://cloud.google.com/compute/docs/gpus for more information about
3527 # support for GPUs.
3528 { # AcceleratorConfig represents a Hardware Accelerator request.
3529 &quot;acceleratorType&quot;: &quot;A String&quot;, # The accelerator type resource name. List of supported accelerators
3530 # [here](https://cloud.google.com/compute/docs/gpus)
3531 &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of the accelerator cards exposed to an instance.
3532 },
3533 ],
3534 },
3535 &quot;name&quot;: &quot;A String&quot;, # The name of the node pool.
3536 &quot;maxPodsConstraint&quot;: { # Constraints applied to pods. # The constraint on the maximum number of pods that can be run
3537 # simultaneously on a node in the node pool.
3538 &quot;maxPodsPerNode&quot;: &quot;A String&quot;, # Constraint enforced on the max num of pods per node.
3539 },
3540 &quot;autoscaling&quot;: { # NodePoolAutoscaling contains information required by cluster autoscaler to # Autoscaler configuration for this NodePool. Autoscaler is enabled
3541 # only if a valid configuration is present.
3542 # adjust the size of the node pool to the current cluster usage.
3543 &quot;minNodeCount&quot;: 42, # Minimum number of nodes in the NodePool. Must be &gt;= 1 and &lt;=
3544 # max_node_count.
3545 &quot;maxNodeCount&quot;: 42, # Maximum number of nodes in the NodePool. Must be &gt;= min_node_count. There
3546 # has to enough quota to scale up the cluster.
3547 &quot;enabled&quot;: True or False, # Is autoscaling enabled for this node pool.
3548 &quot;autoprovisioned&quot;: True or False, # Can this node pool be deleted automatically.
3549 },
3550 &quot;podIpv4CidrSize&quot;: 42, # [Output only] The pod CIDR block size per node in this node pool.
3551 &quot;instanceGroupUrls&quot;: [ # [Output only] The resource URLs of the [managed instance
3552 # groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
3553 # associated with this node pool.
3554 &quot;A String&quot;,
3555 ],
3556 &quot;status&quot;: &quot;A String&quot;, # [Output only] The status of the nodes in this pool instance.
3557 &quot;locations&quot;: [ # The list of Google Compute Engine
3558 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
3559 # NodePool&#x27;s nodes should be located.
3560 &quot;A String&quot;,
3561 ],
3562 },
3563 ],
3564 &quot;subnetwork&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
3565 # [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which
3566 # the cluster is connected.
3567 &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.
3568 # cluster, enabling additional functionality.
3569 &quot;kubernetesDashboard&quot;: { # Configuration for the Kubernetes Dashboard. # Configuration for the Kubernetes Dashboard.
3570 # This addon is deprecated, and will be disabled in 1.15. It is recommended
3571 # to use the Cloud Console to manage and monitor your Kubernetes clusters,
3572 # workloads and applications. For more information, see:
3573 # https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
3574 &quot;disabled&quot;: True or False, # Whether the Kubernetes Dashboard is enabled for this cluster.
3575 },
3576 &quot;cloudRunConfig&quot;: { # Configuration options for the Cloud Run feature. # Configuration for the Cloud Run addon, which allows the user to use a
3577 # managed Knative service.
3578 &quot;disabled&quot;: True or False, # Whether Cloud Run addon is enabled for this cluster.
3579 },
3580 &quot;httpLoadBalancing&quot;: { # Configuration options for the HTTP (L7) load balancing controller addon, # Configuration for the HTTP (L7) load balancing controller addon, which
3581 # makes it easy to set up HTTP load balancers for services in a cluster.
3582 # which makes it easy to set up HTTP load balancers for services in a cluster.
3583 &quot;disabled&quot;: True or False, # Whether the HTTP Load Balancing controller is enabled in the cluster.
3584 # When enabled, it runs a small pod in the cluster that manages the load
3585 # balancers.
3586 },
3587 &quot;horizontalPodAutoscaling&quot;: { # Configuration options for the horizontal pod autoscaling feature, which # Configuration for the horizontal pod autoscaling feature, which
3588 # increases or decreases the number of replica pods a replication controller
3589 # has based on the resource usage of the existing pods.
3590 # increases or decreases the number of replica pods a replication controller
3591 # has based on the resource usage of the existing pods.
3592 &quot;disabled&quot;: True or False, # Whether the Horizontal Pod Autoscaling feature is enabled in the cluster.
3593 # When enabled, it ensures that metrics are collected into Stackdriver
3594 # Monitoring.
3595 },
3596 &quot;dnsCacheConfig&quot;: { # Configuration for NodeLocal DNSCache # Configuration for NodeLocalDNS, a dns cache running on cluster nodes
3597 &quot;enabled&quot;: True or False, # Whether NodeLocal DNSCache is enabled for this cluster.
3598 },
3599 &quot;networkPolicyConfig&quot;: { # Configuration for NetworkPolicy. This only tracks whether the addon # Configuration for NetworkPolicy. This only tracks whether the addon
3600 # is enabled or not on the Master, it does not track whether network policy
3601 # is enabled for the nodes.
3602 # is enabled or not on the Master, it does not track whether network policy
3603 # is enabled for the nodes.
3604 &quot;disabled&quot;: True or False, # Whether NetworkPolicy is enabled for this cluster.
3605 },
3606 },
3607 &quot;masterAuth&quot;: { # The authentication information for accessing the master endpoint. # The authentication information for accessing the master endpoint.
3608 # If unspecified, the defaults are used:
3609 # For clusters before v1.12, if master_auth is unspecified, `username` will
3610 # be set to &quot;admin&quot;, a random password will be generated, and a client
3611 # certificate will be issued.
3612 # Authentication can be done using HTTP basic auth or using client
3613 # certificates.
3614 &quot;clientKey&quot;: &quot;A String&quot;, # [Output only] Base64-encoded private key used by clients to authenticate
3615 # to the cluster endpoint.
3616 &quot;clientCertificate&quot;: &quot;A String&quot;, # [Output only] Base64-encoded public certificate used by clients to
3617 # authenticate to the cluster endpoint.
3618 &quot;username&quot;: &quot;A String&quot;, # The username to use for HTTP basic authentication to the master endpoint.
3619 # For clusters v1.6.0 and later, basic authentication can be disabled by
3620 # leaving username unspecified (or setting it to the empty string).
3621 &quot;password&quot;: &quot;A String&quot;, # The password to use for HTTP basic authentication to the master endpoint.
3622 # Because the master endpoint is open to the Internet, you should create a
3623 # strong password. If a password is provided for cluster creation, username
3624 # must be non-empty.
3625 &quot;clientCertificateConfig&quot;: { # Configuration for client certificates on the cluster. # Configuration for client certificate authentication on the cluster. For
3626 # clusters before v1.12, if no configuration is specified, a client
3627 # certificate is issued.
3628 &quot;issueClientCertificate&quot;: True or False, # Issue a client certificate.
3629 },
3630 &quot;clusterCaCertificate&quot;: &quot;A String&quot;, # [Output only] Base64-encoded public certificate that is the root of
3631 # trust for the cluster.
3632 },
3633 &quot;verticalPodAutoscaling&quot;: { # VerticalPodAutoscaling contains global, per-cluster information # Cluster-level Vertical Pod Autoscaling configuration.
3634 # required by Vertical Pod Autoscaler to automatically adjust
3635 # the resources of pods controlled by it.
3636 &quot;enabled&quot;: True or False, # Enables vertical pod autoscaling.
3637 },
3638 &quot;enableTpu&quot;: True or False, # Enable the ability to use Cloud TPUs in this cluster.
3639 &quot;initialClusterVersion&quot;: &quot;A String&quot;, # The initial Kubernetes version for this cluster. Valid versions are those
3640 # found in validMasterVersions returned by getServerConfig. The version can
3641 # be upgraded over time; such upgrades are reflected in
3642 # currentMasterVersion and currentNodeVersion.
Bu Sun Kim65020912020-05-20 12:08:20 -07003643 #
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003644 # Users may specify either explicit versions offered by
3645 # Kubernetes Engine or version aliases, which have the following behavior:
3646 #
3647 # - &quot;latest&quot;: picks the highest valid Kubernetes version
3648 # - &quot;1.X&quot;: picks the highest valid patch+gke.N patch in the 1.X version
3649 # - &quot;1.X.Y&quot;: picks the highest valid gke.N patch in the 1.X.Y version
3650 # - &quot;1.X.Y-gke.N&quot;: picks an explicit Kubernetes version
3651 # - &quot;&quot;,&quot;-&quot;: picks the default Kubernetes version
3652 &quot;currentNodeCount&quot;: 42, # [Output only] The number of nodes currently in the cluster. Deprecated.
3653 # Call Kubernetes API directly to retrieve node information.
3654 &quot;tpuIpv4CidrBlock&quot;: &quot;A String&quot;, # [Output only] The IP address range of the Cloud TPUs in this cluster, in
3655 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
3656 # notation (e.g. `1.2.3.4/29`).
3657 &quot;locations&quot;: [ # The list of Google Compute Engine
3658 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
3659 # cluster&#x27;s nodes should be located.
3660 &quot;A String&quot;,
3661 ],
3662 &quot;selfLink&quot;: &quot;A String&quot;, # [Output only] Server-defined URL for the resource.
3663 &quot;description&quot;: &quot;A String&quot;, # An optional description of this cluster.
3664 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output only] Additional information about the current status of this
3665 # cluster, if available.
Bu Sun Kim65020912020-05-20 12:08:20 -07003666 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
3667 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
3668 # or
3669 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
3670 # in which the cluster resides.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003671 &quot;servicesIpv4Cidr&quot;: &quot;A String&quot;, # [Output only] The IP address range of the Kubernetes services in
3672 # this cluster, in
3673 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
3674 # notation (e.g. `1.2.3.4/29`). Service addresses are
3675 # typically put in the last `/16` from the container CIDR.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003676 },
3677 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003678 &quot;missingZones&quot;: [ # If any zones are listed here, the list of clusters returned
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003679 # may be missing those zones.
Bu Sun Kim65020912020-05-20 12:08:20 -07003680 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003681 ],
3682 }</pre>
3683</div>
3684
3685<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07003686 <code class="details" id="locations">locations(projectId, zone, clusterId, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003687 <pre>Sets the locations for a specific cluster.
Dan O'Mearadd494642020-05-01 07:42:23 -07003688Deprecated. Use
3689[projects.locations.clusters.update](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters/update)
3690instead.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003691
3692Args:
3693 projectId: string, Deprecated. The Google Developers Console [project ID or project
3694number](https://support.google.com/cloud/answer/6158840).
3695This field has been deprecated and replaced by the name field. (required)
3696 zone: string, Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07003697[zone](https://cloud.google.com/compute/docs/zones#available) in which the
3698cluster resides. This field has been deprecated and replaced by the name
3699field. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003700 clusterId: string, Deprecated. The name of the cluster to upgrade.
3701This field has been deprecated and replaced by the name field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07003702 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003703 The object takes the form of:
3704
3705{ # SetLocationsRequest sets the locations of the cluster.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003706 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster) of the cluster to set locations.
3707 # Specified in the format `projects/*/locations/*/clusters/*`.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003708 &quot;zone&quot;: &quot;A String&quot;, # Deprecated. The name of the Google Compute Engine
3709 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
3710 # cluster resides. This field has been deprecated and replaced by the name
3711 # field.
3712 &quot;clusterId&quot;: &quot;A String&quot;, # Deprecated. The name of the cluster to upgrade.
3713 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07003714 &quot;projectId&quot;: &quot;A String&quot;, # Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003715 # number](https://support.google.com/cloud/answer/6158840).
3716 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07003717 &quot;locations&quot;: [ # Required. The desired list of Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07003718 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
Bu Sun Kim65020912020-05-20 12:08:20 -07003719 # cluster&#x27;s nodes should be located. Changing the locations a cluster is in
Dan O'Mearadd494642020-05-01 07:42:23 -07003720 # will result in nodes being either created or removed from the cluster,
3721 # depending on whether locations are being added or removed.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003722 #
Bu Sun Kim65020912020-05-20 12:08:20 -07003723 # This list must always include the cluster&#x27;s primary zone.
3724 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003725 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003726 }
3727
3728 x__xgafv: string, V1 error format.
3729 Allowed values
3730 1 - v1 error format
3731 2 - v2 error format
3732
3733Returns:
3734 An object of the form:
3735
3736 { # This operation resource represents operations that may have happened or are
3737 # happening on the cluster. All fields are output only.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003738 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
3739 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
3740 # Unset for single-stage operations.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003741 &quot;metrics&quot;: [ # Progress metric bundle, for example:
3742 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
3743 # {name: &quot;nodes total&quot;, int_value: 32}]
3744 # or
3745 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
3746 # {name: &quot;progress scale&quot;, double_value: 1.0}]
3747 { # Progress metric is (string, int|float|string) pair.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003748 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003749 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
3750 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003751 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003752 },
3753 ],
3754 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
3755 # Unset for single-stage operations.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003756 &quot;stages&quot;: [ # Substages of an operation or a stage.
3757 # Object with schema name: OperationProgress
3758 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003759 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003760 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
3761 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
3762 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
3763 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
3764 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
3765 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
3766 { # StatusCondition describes why a cluster or a node pool has a certain status
3767 # (e.g., ERROR or DEGRADED).
3768 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
3769 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
3770 },
3771 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003772 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
3773 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
3774 # operation is taking place. This field is deprecated, use location instead.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003775 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
Bu Sun Kim65020912020-05-20 12:08:20 -07003776 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003777 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
3778 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
3779 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07003780 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003781 { # StatusCondition describes why a cluster or a node pool has a certain status
3782 # (e.g., ERROR or DEGRADED).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003783 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003784 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003785 },
3786 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003787 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07003788 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
3789 # or
3790 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
3791 # in which the cluster resides.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003792 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003793 }</pre>
3794</div>
3795
3796<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07003797 <code class="details" id="logging">logging(projectId, zone, clusterId, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003798 <pre>Sets the logging service for a specific cluster.
3799
3800Args:
3801 projectId: string, Deprecated. The Google Developers Console [project ID or project
3802number](https://support.google.com/cloud/answer/6158840).
3803This field has been deprecated and replaced by the name field. (required)
3804 zone: string, Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07003805[zone](https://cloud.google.com/compute/docs/zones#available) in which the
3806cluster resides. This field has been deprecated and replaced by the name
3807field. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003808 clusterId: string, Deprecated. The name of the cluster to upgrade.
3809This field has been deprecated and replaced by the name field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07003810 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003811 The object takes the form of:
3812
3813{ # SetLoggingServiceRequest sets the logging service of a cluster.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003814 &quot;clusterId&quot;: &quot;A String&quot;, # Deprecated. The name of the cluster to upgrade.
3815 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07003816 &quot;projectId&quot;: &quot;A String&quot;, # Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003817 # number](https://support.google.com/cloud/answer/6158840).
3818 # This field has been deprecated and replaced by the name field.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003819 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster) of the cluster to set logging.
3820 # Specified in the format `projects/*/locations/*/clusters/*`.
Bu Sun Kim65020912020-05-20 12:08:20 -07003821 &quot;zone&quot;: &quot;A String&quot;, # Deprecated. The name of the Google Compute Engine
3822 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
3823 # cluster resides. This field has been deprecated and replaced by the name
3824 # field.
Bu Sun Kim65020912020-05-20 12:08:20 -07003825 &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 -07003826 # Currently available options:
3827 #
Dan O'Mearadd494642020-05-01 07:42:23 -07003828 # * `logging.googleapis.com/kubernetes` - The Cloud Logging
3829 # service with a Kubernetes-native resource model
3830 # * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
3831 # available as of GKE 1.15).
3832 # * `none` - no logs will be exported from the cluster.
3833 #
3834 # If left as an empty string,`logging.googleapis.com/kubernetes` will be
3835 # used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003836 }
3837
3838 x__xgafv: string, V1 error format.
3839 Allowed values
3840 1 - v1 error format
3841 2 - v2 error format
3842
3843Returns:
3844 An object of the form:
3845
3846 { # This operation resource represents operations that may have happened or are
3847 # happening on the cluster. All fields are output only.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003848 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
3849 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
3850 # Unset for single-stage operations.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003851 &quot;metrics&quot;: [ # Progress metric bundle, for example:
3852 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
3853 # {name: &quot;nodes total&quot;, int_value: 32}]
3854 # or
3855 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
3856 # {name: &quot;progress scale&quot;, double_value: 1.0}]
3857 { # Progress metric is (string, int|float|string) pair.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003858 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003859 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
3860 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003861 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003862 },
3863 ],
3864 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
3865 # Unset for single-stage operations.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003866 &quot;stages&quot;: [ # Substages of an operation or a stage.
3867 # Object with schema name: OperationProgress
3868 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003869 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003870 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
3871 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
3872 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
3873 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
3874 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
3875 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
3876 { # StatusCondition describes why a cluster or a node pool has a certain status
3877 # (e.g., ERROR or DEGRADED).
3878 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
3879 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
3880 },
3881 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003882 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
3883 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
3884 # operation is taking place. This field is deprecated, use location instead.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003885 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
Bu Sun Kim65020912020-05-20 12:08:20 -07003886 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003887 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
3888 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
3889 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07003890 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003891 { # StatusCondition describes why a cluster or a node pool has a certain status
3892 # (e.g., ERROR or DEGRADED).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003893 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003894 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003895 },
3896 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003897 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07003898 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
3899 # or
3900 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
3901 # in which the cluster resides.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003902 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003903 }</pre>
3904</div>
3905
3906<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07003907 <code class="details" id="master">master(projectId, zone, clusterId, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003908 <pre>Updates the master for a specific cluster.
3909
3910Args:
3911 projectId: string, Deprecated. The Google Developers Console [project ID or project
3912number](https://support.google.com/cloud/answer/6158840).
3913This field has been deprecated and replaced by the name field. (required)
3914 zone: string, Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07003915[zone](https://cloud.google.com/compute/docs/zones#available) in which the
3916cluster resides. This field has been deprecated and replaced by the name
3917field. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003918 clusterId: string, Deprecated. The name of the cluster to upgrade.
3919This field has been deprecated and replaced by the name field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07003920 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003921 The object takes the form of:
3922
3923{ # UpdateMasterRequest updates the master of the cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -07003924 &quot;masterVersion&quot;: &quot;A String&quot;, # Required. The Kubernetes version to change the master to.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003925 #
3926 # Users may specify either explicit versions offered by Kubernetes Engine or
3927 # version aliases, which have the following behavior:
3928 #
Bu Sun Kim65020912020-05-20 12:08:20 -07003929 # - &quot;latest&quot;: picks the highest valid Kubernetes version
3930 # - &quot;1.X&quot;: picks the highest valid patch+gke.N patch in the 1.X version
3931 # - &quot;1.X.Y&quot;: picks the highest valid gke.N patch in the 1.X.Y version
3932 # - &quot;1.X.Y-gke.N&quot;: picks an explicit Kubernetes version
3933 # - &quot;-&quot;: picks the default Kubernetes version
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003934 &quot;projectId&quot;: &quot;A String&quot;, # Deprecated. The Google Developers Console [project ID or project
3935 # number](https://support.google.com/cloud/answer/6158840).
3936 # This field has been deprecated and replaced by the name field.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003937 &quot;zone&quot;: &quot;A String&quot;, # Deprecated. The name of the Google Compute Engine
3938 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
3939 # cluster resides. This field has been deprecated and replaced by the name
3940 # field.
Bu Sun Kim65020912020-05-20 12:08:20 -07003941 &quot;clusterId&quot;: &quot;A String&quot;, # Deprecated. The name of the cluster to upgrade.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003942 # This field has been deprecated and replaced by the name field.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003943 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster) of the cluster to update.
3944 # Specified in the format `projects/*/locations/*/clusters/*`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003945 }
3946
3947 x__xgafv: string, V1 error format.
3948 Allowed values
3949 1 - v1 error format
3950 2 - v2 error format
3951
3952Returns:
3953 An object of the form:
3954
3955 { # This operation resource represents operations that may have happened or are
3956 # happening on the cluster. All fields are output only.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003957 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
3958 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
3959 # Unset for single-stage operations.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003960 &quot;metrics&quot;: [ # Progress metric bundle, for example:
3961 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
3962 # {name: &quot;nodes total&quot;, int_value: 32}]
3963 # or
3964 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
3965 # {name: &quot;progress scale&quot;, double_value: 1.0}]
3966 { # Progress metric is (string, int|float|string) pair.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003967 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003968 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
3969 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003970 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003971 },
3972 ],
3973 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
3974 # Unset for single-stage operations.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003975 &quot;stages&quot;: [ # Substages of an operation or a stage.
3976 # Object with schema name: OperationProgress
3977 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003978 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003979 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
3980 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
3981 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
3982 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
3983 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
3984 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
3985 { # StatusCondition describes why a cluster or a node pool has a certain status
3986 # (e.g., ERROR or DEGRADED).
3987 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
3988 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
3989 },
3990 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003991 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
3992 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
3993 # operation is taking place. This field is deprecated, use location instead.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003994 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
Bu Sun Kim65020912020-05-20 12:08:20 -07003995 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003996 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
3997 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
3998 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07003999 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004000 { # StatusCondition describes why a cluster or a node pool has a certain status
4001 # (e.g., ERROR or DEGRADED).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004002 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004003 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004004 },
4005 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07004006 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07004007 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4008 # or
4009 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4010 # in which the cluster resides.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004011 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004012 }</pre>
4013</div>
4014
4015<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07004016 <code class="details" id="monitoring">monitoring(projectId, zone, clusterId, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004017 <pre>Sets the monitoring service for a specific cluster.
4018
4019Args:
4020 projectId: string, Deprecated. The Google Developers Console [project ID or project
4021number](https://support.google.com/cloud/answer/6158840).
4022This field has been deprecated and replaced by the name field. (required)
4023 zone: string, Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07004024[zone](https://cloud.google.com/compute/docs/zones#available) in which the
4025cluster resides. This field has been deprecated and replaced by the name
4026field. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004027 clusterId: string, Deprecated. The name of the cluster to upgrade.
4028This field has been deprecated and replaced by the name field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07004029 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004030 The object takes the form of:
4031
4032{ # SetMonitoringServiceRequest sets the monitoring service of a cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -07004033 &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 -07004034 # Currently available options:
4035 #
Bu Sun Kim65020912020-05-20 12:08:20 -07004036 # * &quot;monitoring.googleapis.com/kubernetes&quot; - The Cloud Monitoring
Dan O'Mearadd494642020-05-01 07:42:23 -07004037 # service with a Kubernetes-native resource model
4038 # * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
4039 # longer available as of GKE 1.15).
4040 # * `none` - No metrics will be exported from the cluster.
4041 #
4042 # If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
4043 # used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004044 &quot;clusterId&quot;: &quot;A String&quot;, # Deprecated. The name of the cluster to upgrade.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004045 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07004046 &quot;zone&quot;: &quot;A String&quot;, # Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07004047 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4048 # cluster resides. This field has been deprecated and replaced by the name
4049 # field.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004050 &quot;projectId&quot;: &quot;A String&quot;, # Deprecated. The Google Developers Console [project ID or project
4051 # number](https://support.google.com/cloud/answer/6158840).
4052 # This field has been deprecated and replaced by the name field.
4053 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster) of the cluster to set monitoring.
4054 # Specified in the format `projects/*/locations/*/clusters/*`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004055 }
4056
4057 x__xgafv: string, V1 error format.
4058 Allowed values
4059 1 - v1 error format
4060 2 - v2 error format
4061
4062Returns:
4063 An object of the form:
4064
4065 { # This operation resource represents operations that may have happened or are
4066 # happening on the cluster. All fields are output only.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004067 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
4068 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
4069 # Unset for single-stage operations.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004070 &quot;metrics&quot;: [ # Progress metric bundle, for example:
4071 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
4072 # {name: &quot;nodes total&quot;, int_value: 32}]
4073 # or
4074 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
4075 # {name: &quot;progress scale&quot;, double_value: 1.0}]
4076 { # Progress metric is (string, int|float|string) pair.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004077 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004078 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
4079 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004080 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004081 },
4082 ],
4083 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
4084 # Unset for single-stage operations.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004085 &quot;stages&quot;: [ # Substages of an operation or a stage.
4086 # Object with schema name: OperationProgress
4087 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004088 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004089 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
4090 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
4091 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
4092 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
4093 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
4094 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
4095 { # StatusCondition describes why a cluster or a node pool has a certain status
4096 # (e.g., ERROR or DEGRADED).
4097 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
4098 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
4099 },
4100 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004101 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
4102 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4103 # operation is taking place. This field is deprecated, use location instead.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004104 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
Bu Sun Kim65020912020-05-20 12:08:20 -07004105 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004106 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
4107 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
4108 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07004109 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004110 { # StatusCondition describes why a cluster or a node pool has a certain status
4111 # (e.g., ERROR or DEGRADED).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004112 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004113 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004114 },
4115 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07004116 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07004117 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4118 # or
4119 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4120 # in which the cluster resides.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004121 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04004122 }</pre>
4123</div>
4124
4125<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07004126 <code class="details" id="resourceLabels">resourceLabels(projectId, zone, clusterId, body=None, x__xgafv=None)</code>
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04004127 <pre>Sets labels on a cluster.
4128
4129Args:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004130 projectId: string, Deprecated. The Google Developers Console [project ID or project
4131number](https://developers.google.com/console/help/new/#projectnumber).
4132This field has been deprecated and replaced by the name field. (required)
4133 zone: string, Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07004134[zone](https://cloud.google.com/compute/docs/zones#available) in which the
4135cluster resides. This field has been deprecated and replaced by the name
4136field. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004137 clusterId: string, Deprecated. The name of the cluster.
4138This field has been deprecated and replaced by the name field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07004139 body: object, The request body.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04004140 The object takes the form of:
4141
4142{ # SetLabelsRequest sets the Google Cloud Platform labels on a Google Container
4143 # Engine cluster, which will in turn set them for Google Compute Engine
4144 # resources used by that cluster
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004145 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster id) of the cluster to set labels.
4146 # Specified in the format `projects/*/locations/*/clusters/*`.
4147 &quot;projectId&quot;: &quot;A String&quot;, # Deprecated. The Google Developers Console [project ID or project
4148 # number](https://developers.google.com/console/help/new/#projectnumber).
4149 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07004150 &quot;clusterId&quot;: &quot;A String&quot;, # Deprecated. The name of the cluster.
4151 # This field has been deprecated and replaced by the name field.
4152 &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 -04004153 # used to detect conflicts. The fingerprint is initially generated by
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004154 # Kubernetes Engine and changes after every request to modify or update
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04004155 # labels. You must always provide an up-to-date fingerprint hash when
Dan O'Mearadd494642020-05-01 07:42:23 -07004156 # updating or changing labels. Make a &lt;code&gt;get()&lt;/code&gt; request to the
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04004157 # resource to get the latest fingerprint.
Bu Sun Kim65020912020-05-20 12:08:20 -07004158 &quot;zone&quot;: &quot;A String&quot;, # Deprecated. The name of the Google Compute Engine
4159 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4160 # cluster resides. This field has been deprecated and replaced by the name
4161 # field.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004162 &quot;resourceLabels&quot;: { # Required. The labels to set for that cluster.
4163 &quot;a_key&quot;: &quot;A String&quot;,
4164 },
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04004165 }
4166
4167 x__xgafv: string, V1 error format.
4168 Allowed values
4169 1 - v1 error format
4170 2 - v2 error format
4171
4172Returns:
4173 An object of the form:
4174
4175 { # This operation resource represents operations that may have happened or are
4176 # happening on the cluster. All fields are output only.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004177 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
4178 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
4179 # Unset for single-stage operations.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004180 &quot;metrics&quot;: [ # Progress metric bundle, for example:
4181 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
4182 # {name: &quot;nodes total&quot;, int_value: 32}]
4183 # or
4184 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
4185 # {name: &quot;progress scale&quot;, double_value: 1.0}]
4186 { # Progress metric is (string, int|float|string) pair.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004187 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004188 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
4189 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004190 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004191 },
4192 ],
4193 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
4194 # Unset for single-stage operations.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004195 &quot;stages&quot;: [ # Substages of an operation or a stage.
4196 # Object with schema name: OperationProgress
4197 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004198 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004199 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
4200 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
4201 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
4202 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
4203 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
4204 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
4205 { # StatusCondition describes why a cluster or a node pool has a certain status
4206 # (e.g., ERROR or DEGRADED).
4207 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
4208 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
4209 },
4210 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004211 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
4212 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4213 # operation is taking place. This field is deprecated, use location instead.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004214 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
Bu Sun Kim65020912020-05-20 12:08:20 -07004215 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004216 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
4217 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
4218 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07004219 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004220 { # StatusCondition describes why a cluster or a node pool has a certain status
4221 # (e.g., ERROR or DEGRADED).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004222 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004223 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004224 },
4225 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07004226 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07004227 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4228 # or
4229 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4230 # in which the cluster resides.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004231 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04004232 }</pre>
4233</div>
4234
4235<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07004236 <code class="details" id="setMaintenancePolicy">setMaintenancePolicy(projectId, zone, clusterId, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004237 <pre>Sets the maintenance policy for a cluster.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04004238
4239Args:
Dan O'Mearadd494642020-05-01 07:42:23 -07004240 projectId: string, Required. The Google Developers Console [project ID or project
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04004241number](https://support.google.com/cloud/answer/6158840). (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07004242 zone: string, Required. The name of the Google Compute Engine
4243[zone](https://cloud.google.com/compute/docs/zones#available) in which the
4244cluster resides. (required)
4245 clusterId: string, Required. The name of the cluster to update. (required)
4246 body: object, The request body.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04004247 The object takes the form of:
4248
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004249{ # SetMaintenancePolicyRequest sets the maintenance policy for a cluster.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004250 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster id) of the cluster to set maintenance
4251 # policy.
4252 # Specified in the format `projects/*/locations/*/clusters/*`.
Bu Sun Kim65020912020-05-20 12:08:20 -07004253 &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 -07004254 # clears the existing maintenance policy.
Bu Sun Kim65020912020-05-20 12:08:20 -07004255 &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 -07004256 &quot;maintenanceExclusions&quot;: { # Exceptions to maintenance window. Non-emergency maintenance should not
4257 # occur in these windows.
4258 &quot;a_key&quot;: { # Represents an arbitrary window of time.
4259 &quot;endTime&quot;: &quot;A String&quot;, # The time that the window ends. The end time should take place after the
4260 # start time.
4261 &quot;startTime&quot;: &quot;A String&quot;, # The time that the window first starts.
4262 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004263 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004264 &quot;dailyMaintenanceWindow&quot;: { # Time window specified for daily maintenance operations. # DailyMaintenanceWindow specifies a daily maintenance operation window.
4265 &quot;duration&quot;: &quot;A String&quot;, # [Output only] Duration of the time window, automatically chosen to be
4266 # smallest possible in the given scenario.
4267 # Duration will be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)
4268 # format &quot;PTnHnMnS&quot;.
4269 &quot;startTime&quot;: &quot;A String&quot;, # Time within the maintenance window to start the maintenance operations.
4270 # Time format should be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)
4271 # format &quot;HH:MM&quot;, where HH : [00-23] and MM : [00-59] GMT.
4272 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004273 &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 -07004274 # maintenance to occur. The time windows may be overlapping. If no
4275 # maintenance windows are set, maintenance can occur at any time.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004276 &quot;window&quot;: { # Represents an arbitrary window of time. # The window of the first recurrence.
4277 &quot;endTime&quot;: &quot;A String&quot;, # The time that the window ends. The end time should take place after the
4278 # start time.
4279 &quot;startTime&quot;: &quot;A String&quot;, # The time that the window first starts.
4280 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004281 &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 -07004282 # this window reccurs. They go on for the span of time between the start and
4283 # end time.
4284 #
Bu Sun Kim65020912020-05-20 12:08:20 -07004285 # For example, to have something repeat every weekday, you&#x27;d use:
Dan O'Mearadd494642020-05-01 07:42:23 -07004286 # &lt;code&gt;FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR&lt;/code&gt;
4287 # To repeat some window daily (equivalent to the DailyMaintenanceWindow):
4288 # &lt;code&gt;FREQ=DAILY&lt;/code&gt;
4289 # For the first weekend of every month:
4290 # &lt;code&gt;FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU&lt;/code&gt;
4291 # This specifies how frequently the window starts. Eg, if you wanted to have
Bu Sun Kim65020912020-05-20 12:08:20 -07004292 # a 9-5 UTC-4 window every weekday, you&#x27;d use something like:
Dan O'Mearadd494642020-05-01 07:42:23 -07004293 # &lt;code&gt;
4294 # start time = 2019-01-01T09:00:00-0400
4295 # end time = 2019-01-01T17:00:00-0400
4296 # recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
4297 # &lt;/code&gt;
4298 # Windows can span multiple days. Eg, to make the window encompass every
4299 # weekend from midnight Saturday till the last minute of Sunday UTC:
4300 # &lt;code&gt;
4301 # start time = 2019-01-05T00:00:00Z
4302 # end time = 2019-01-07T23:59:00Z
4303 # recurrence = FREQ=WEEKLY;BYDAY=SA
4304 # &lt;/code&gt;
Bu Sun Kim65020912020-05-20 12:08:20 -07004305 # Note the start and end time&#x27;s specific dates are largely arbitrary except
Dan O'Mearadd494642020-05-01 07:42:23 -07004306 # to specify duration of the window and when it first starts.
4307 # The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.
Dan O'Mearadd494642020-05-01 07:42:23 -07004308 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004309 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004310 &quot;resourceVersion&quot;: &quot;A String&quot;, # A hash identifying the version of this policy, so that updates to fields of
4311 # the policy won&#x27;t accidentally undo intermediate changes (and so that users
4312 # of the API unaware of some fields won&#x27;t accidentally remove other fields).
Dan O'Mearadd494642020-05-01 07:42:23 -07004313 # Make a &lt;code&gt;get()&lt;/code&gt; request to the cluster to get the current
4314 # resource version and include it with requests to set the policy.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04004315 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004316 &quot;projectId&quot;: &quot;A String&quot;, # Required. The Google Developers Console [project ID or project
4317 # number](https://support.google.com/cloud/answer/6158840).
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004318 &quot;clusterId&quot;: &quot;A String&quot;, # Required. The name of the cluster to update.
Bu Sun Kim65020912020-05-20 12:08:20 -07004319 &quot;zone&quot;: &quot;A String&quot;, # Required. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07004320 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4321 # cluster resides.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04004322 }
4323
4324 x__xgafv: string, V1 error format.
4325 Allowed values
4326 1 - v1 error format
4327 2 - v2 error format
4328
4329Returns:
4330 An object of the form:
4331
4332 { # This operation resource represents operations that may have happened or are
4333 # happening on the cluster. All fields are output only.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004334 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
4335 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
4336 # Unset for single-stage operations.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004337 &quot;metrics&quot;: [ # Progress metric bundle, for example:
4338 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
4339 # {name: &quot;nodes total&quot;, int_value: 32}]
4340 # or
4341 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
4342 # {name: &quot;progress scale&quot;, double_value: 1.0}]
4343 { # Progress metric is (string, int|float|string) pair.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004344 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004345 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
4346 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004347 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004348 },
4349 ],
4350 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
4351 # Unset for single-stage operations.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004352 &quot;stages&quot;: [ # Substages of an operation or a stage.
4353 # Object with schema name: OperationProgress
4354 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004355 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004356 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
4357 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
4358 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
4359 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
4360 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
4361 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
4362 { # StatusCondition describes why a cluster or a node pool has a certain status
4363 # (e.g., ERROR or DEGRADED).
4364 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
4365 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
4366 },
4367 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004368 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
4369 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4370 # operation is taking place. This field is deprecated, use location instead.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004371 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
Bu Sun Kim65020912020-05-20 12:08:20 -07004372 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004373 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
4374 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
4375 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07004376 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004377 { # StatusCondition describes why a cluster or a node pool has a certain status
4378 # (e.g., ERROR or DEGRADED).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004379 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004380 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004381 },
4382 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07004383 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07004384 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4385 # or
4386 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4387 # in which the cluster resides.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004388 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004389 }</pre>
4390</div>
4391
4392<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07004393 <code class="details" id="setMasterAuth">setMasterAuth(projectId, zone, clusterId, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004394 <pre>Sets master auth materials. Currently supports changing the admin password
4395or a specific cluster, either via password generation or explicitly setting
4396the password.
4397
4398Args:
4399 projectId: string, Deprecated. The Google Developers Console [project ID or project
4400number](https://support.google.com/cloud/answer/6158840).
4401This field has been deprecated and replaced by the name field. (required)
4402 zone: string, Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07004403[zone](https://cloud.google.com/compute/docs/zones#available) in which the
4404cluster resides. This field has been deprecated and replaced by the name
4405field. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004406 clusterId: string, Deprecated. The name of the cluster to upgrade.
4407This field has been deprecated and replaced by the name field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07004408 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004409 The object takes the form of:
4410
4411{ # SetMasterAuthRequest updates the admin password of a cluster.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004412 &quot;zone&quot;: &quot;A String&quot;, # Deprecated. The name of the Google Compute Engine
4413 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4414 # cluster resides. This field has been deprecated and replaced by the name
4415 # field.
Bu Sun Kim65020912020-05-20 12:08:20 -07004416 &quot;clusterId&quot;: &quot;A String&quot;, # Deprecated. The name of the cluster to upgrade.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004417 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07004418 &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 -07004419 # Authentication can be done using HTTP basic auth or using client
4420 # certificates.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004421 &quot;clientKey&quot;: &quot;A String&quot;, # [Output only] Base64-encoded private key used by clients to authenticate
4422 # to the cluster endpoint.
4423 &quot;clientCertificate&quot;: &quot;A String&quot;, # [Output only] Base64-encoded public certificate used by clients to
4424 # authenticate to the cluster endpoint.
4425 &quot;username&quot;: &quot;A String&quot;, # The username to use for HTTP basic authentication to the master endpoint.
4426 # For clusters v1.6.0 and later, basic authentication can be disabled by
4427 # leaving username unspecified (or setting it to the empty string).
Bu Sun Kim65020912020-05-20 12:08:20 -07004428 &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 -07004429 # Because the master endpoint is open to the Internet, you should create a
4430 # strong password. If a password is provided for cluster creation, username
4431 # must be non-empty.
Bu Sun Kim65020912020-05-20 12:08:20 -07004432 &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 -07004433 # clusters before v1.12, if no configuration is specified, a client
4434 # certificate is issued.
Bu Sun Kim65020912020-05-20 12:08:20 -07004435 &quot;issueClientCertificate&quot;: True or False, # Issue a client certificate.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004436 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004437 &quot;clusterCaCertificate&quot;: &quot;A String&quot;, # [Output only] Base64-encoded public certificate that is the root of
4438 # trust for the cluster.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004439 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004440 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster) of the cluster to set auth.
4441 # Specified in the format `projects/*/locations/*/clusters/*`.
4442 &quot;action&quot;: &quot;A String&quot;, # Required. The exact form of action to be taken on the master auth.
4443 &quot;projectId&quot;: &quot;A String&quot;, # Deprecated. The Google Developers Console [project ID or project
4444 # number](https://support.google.com/cloud/answer/6158840).
4445 # This field has been deprecated and replaced by the name field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004446 }
4447
4448 x__xgafv: string, V1 error format.
4449 Allowed values
4450 1 - v1 error format
4451 2 - v2 error format
4452
4453Returns:
4454 An object of the form:
4455
4456 { # This operation resource represents operations that may have happened or are
4457 # happening on the cluster. All fields are output only.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004458 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
4459 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
4460 # Unset for single-stage operations.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004461 &quot;metrics&quot;: [ # Progress metric bundle, for example:
4462 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
4463 # {name: &quot;nodes total&quot;, int_value: 32}]
4464 # or
4465 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
4466 # {name: &quot;progress scale&quot;, double_value: 1.0}]
4467 { # Progress metric is (string, int|float|string) pair.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004468 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004469 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
4470 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004471 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004472 },
4473 ],
4474 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
4475 # Unset for single-stage operations.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004476 &quot;stages&quot;: [ # Substages of an operation or a stage.
4477 # Object with schema name: OperationProgress
4478 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004479 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004480 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
4481 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
4482 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
4483 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
4484 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
4485 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
4486 { # StatusCondition describes why a cluster or a node pool has a certain status
4487 # (e.g., ERROR or DEGRADED).
4488 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
4489 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
4490 },
4491 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004492 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
4493 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4494 # operation is taking place. This field is deprecated, use location instead.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004495 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
Bu Sun Kim65020912020-05-20 12:08:20 -07004496 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004497 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
4498 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
4499 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07004500 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004501 { # StatusCondition describes why a cluster or a node pool has a certain status
4502 # (e.g., ERROR or DEGRADED).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004503 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004504 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004505 },
4506 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07004507 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07004508 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4509 # or
4510 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4511 # in which the cluster resides.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004512 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004513 }</pre>
4514</div>
4515
4516<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07004517 <code class="details" id="setNetworkPolicy">setNetworkPolicy(projectId, zone, clusterId, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004518 <pre>Enables or disables Network Policy for a cluster.
4519
4520Args:
4521 projectId: string, Deprecated. The Google Developers Console [project ID or project
4522number](https://developers.google.com/console/help/new/#projectnumber).
4523This field has been deprecated and replaced by the name field. (required)
4524 zone: string, Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07004525[zone](https://cloud.google.com/compute/docs/zones#available) in which the
4526cluster resides. This field has been deprecated and replaced by the name
4527field. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004528 clusterId: string, Deprecated. The name of the cluster.
4529This field has been deprecated and replaced by the name field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07004530 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004531 The object takes the form of:
4532
4533{ # SetNetworkPolicyRequest enables/disables network policy for a cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -07004534 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster id) of the cluster to set networking
4535 # policy. Specified in the format `projects/*/locations/*/clusters/*`.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004536 &quot;clusterId&quot;: &quot;A String&quot;, # Deprecated. The name of the cluster.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004537 # This field has been deprecated and replaced by the name field.
4538 &quot;zone&quot;: &quot;A String&quot;, # Deprecated. The name of the Google Compute Engine
4539 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4540 # cluster resides. This field has been deprecated and replaced by the name
4541 # field.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004542 &quot;networkPolicy&quot;: { # Configuration options for the NetworkPolicy feature. # Required. Configuration options for the NetworkPolicy feature.
4543 # https://kubernetes.io/docs/concepts/services-networking/networkpolicies/
4544 &quot;enabled&quot;: True or False, # Whether network policy is enabled on the cluster.
4545 &quot;provider&quot;: &quot;A String&quot;, # The selected network policy provider.
4546 },
4547 &quot;projectId&quot;: &quot;A String&quot;, # Deprecated. The Google Developers Console [project ID or project
4548 # number](https://developers.google.com/console/help/new/#projectnumber).
4549 # This field has been deprecated and replaced by the name field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004550 }
4551
4552 x__xgafv: string, V1 error format.
4553 Allowed values
4554 1 - v1 error format
4555 2 - v2 error format
4556
4557Returns:
4558 An object of the form:
4559
4560 { # This operation resource represents operations that may have happened or are
4561 # happening on the cluster. All fields are output only.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004562 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
4563 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
4564 # Unset for single-stage operations.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004565 &quot;metrics&quot;: [ # Progress metric bundle, for example:
4566 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
4567 # {name: &quot;nodes total&quot;, int_value: 32}]
4568 # or
4569 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
4570 # {name: &quot;progress scale&quot;, double_value: 1.0}]
4571 { # Progress metric is (string, int|float|string) pair.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004572 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004573 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
4574 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004575 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004576 },
4577 ],
4578 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
4579 # Unset for single-stage operations.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004580 &quot;stages&quot;: [ # Substages of an operation or a stage.
4581 # Object with schema name: OperationProgress
4582 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004583 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004584 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
4585 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
4586 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
4587 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
4588 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
4589 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
4590 { # StatusCondition describes why a cluster or a node pool has a certain status
4591 # (e.g., ERROR or DEGRADED).
4592 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
4593 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
4594 },
4595 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004596 &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.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004599 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
Bu Sun Kim65020912020-05-20 12:08:20 -07004600 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004601 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
4602 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
4603 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07004604 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004605 { # StatusCondition describes why a cluster or a node pool has a certain status
4606 # (e.g., ERROR or DEGRADED).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004607 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004608 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004609 },
4610 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07004611 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07004612 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4613 # or
4614 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4615 # in which the cluster resides.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004616 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04004617 }</pre>
4618</div>
4619
4620<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07004621 <code class="details" id="startIpRotation">startIpRotation(projectId, zone, clusterId, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004622 <pre>Starts master IP rotation.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04004623
4624Args:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004625 projectId: string, Deprecated. The Google Developers Console [project ID or project
4626number](https://developers.google.com/console/help/new/#projectnumber).
4627This field has been deprecated and replaced by the name field. (required)
4628 zone: string, Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07004629[zone](https://cloud.google.com/compute/docs/zones#available) in which the
4630cluster resides. This field has been deprecated and replaced by the name
4631field. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004632 clusterId: string, Deprecated. The name of the cluster.
4633This field has been deprecated and replaced by the name field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07004634 body: object, The request body.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04004635 The object takes the form of:
4636
4637{ # StartIPRotationRequest creates a new IP for the cluster and then performs
4638 # a node upgrade on each node pool to point to the new IP.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004639 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster id) of the cluster to start IP
4640 # rotation. Specified in the format `projects/*/locations/*/clusters/*`.
Bu Sun Kim65020912020-05-20 12:08:20 -07004641 &quot;zone&quot;: &quot;A String&quot;, # Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07004642 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4643 # cluster resides. This field has been deprecated and replaced by the name
4644 # field.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004645 &quot;rotateCredentials&quot;: True or False, # Whether to rotate credentials during IP rotation.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004646 &quot;projectId&quot;: &quot;A String&quot;, # Deprecated. The Google Developers Console [project ID or project
4647 # number](https://developers.google.com/console/help/new/#projectnumber).
4648 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07004649 &quot;clusterId&quot;: &quot;A String&quot;, # Deprecated. The name of the cluster.
4650 # This field has been deprecated and replaced by the name field.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04004651 }
4652
4653 x__xgafv: string, V1 error format.
4654 Allowed values
4655 1 - v1 error format
4656 2 - v2 error format
4657
4658Returns:
4659 An object of the form:
4660
4661 { # This operation resource represents operations that may have happened or are
4662 # happening on the cluster. All fields are output only.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004663 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
4664 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
4665 # Unset for single-stage operations.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004666 &quot;metrics&quot;: [ # Progress metric bundle, for example:
4667 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
4668 # {name: &quot;nodes total&quot;, int_value: 32}]
4669 # or
4670 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
4671 # {name: &quot;progress scale&quot;, double_value: 1.0}]
4672 { # Progress metric is (string, int|float|string) pair.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004673 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004674 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
4675 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004676 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004677 },
4678 ],
4679 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
4680 # Unset for single-stage operations.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004681 &quot;stages&quot;: [ # Substages of an operation or a stage.
4682 # Object with schema name: OperationProgress
4683 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004684 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004685 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
4686 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
4687 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
4688 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
4689 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
4690 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
4691 { # StatusCondition describes why a cluster or a node pool has a certain status
4692 # (e.g., ERROR or DEGRADED).
4693 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
4694 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
4695 },
4696 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004697 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
4698 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4699 # operation is taking place. This field is deprecated, use location instead.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004700 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
Bu Sun Kim65020912020-05-20 12:08:20 -07004701 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004702 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
4703 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
4704 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07004705 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004706 { # StatusCondition describes why a cluster or a node pool has a certain status
4707 # (e.g., ERROR or DEGRADED).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004708 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004709 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004710 },
4711 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07004712 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07004713 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4714 # or
4715 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4716 # in which the cluster resides.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004717 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
Takashi Matsuo06694102015-09-11 13:55:40 -07004718 }</pre>
4719</div>
4720
4721<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07004722 <code class="details" id="update">update(projectId, zone, clusterId, body=None, x__xgafv=None)</code>
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -07004723 <pre>Updates the settings of a specific cluster.
Takashi Matsuo06694102015-09-11 13:55:40 -07004724
4725Args:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004726 projectId: string, Deprecated. The Google Developers Console [project ID or project
4727number](https://support.google.com/cloud/answer/6158840).
4728This field has been deprecated and replaced by the name field. (required)
4729 zone: string, Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07004730[zone](https://cloud.google.com/compute/docs/zones#available) in which the
4731cluster resides. This field has been deprecated and replaced by the name
4732field. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004733 clusterId: string, Deprecated. The name of the cluster to upgrade.
4734This field has been deprecated and replaced by the name field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07004735 body: object, The request body.
Takashi Matsuo06694102015-09-11 13:55:40 -07004736 The object takes the form of:
4737
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -07004738{ # UpdateClusterRequest updates the settings of a cluster.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004739 &quot;clusterId&quot;: &quot;A String&quot;, # Deprecated. The name of the cluster to upgrade.
4740 # This field has been deprecated and replaced by the name field.
4741 &quot;projectId&quot;: &quot;A String&quot;, # Deprecated. The Google Developers Console [project ID or project
4742 # number](https://support.google.com/cloud/answer/6158840).
4743 # This field has been deprecated and replaced by the name field.
4744 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster) of the cluster to update.
4745 # Specified in the format `projects/*/locations/*/clusters/*`.
Bu Sun Kim65020912020-05-20 12:08:20 -07004746 &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 -04004747 # be applied to a cluster with each request, so at most one field can be
4748 # provided.
Bu Sun Kim65020912020-05-20 12:08:20 -07004749 &quot;desiredNodeVersion&quot;: &quot;A String&quot;, # The Kubernetes version to change the nodes to (typically an
4750 # upgrade).
4751 #
4752 # Users may specify either explicit versions offered by
4753 # Kubernetes Engine or version aliases, which have the following behavior:
4754 #
4755 # - &quot;latest&quot;: picks the highest valid Kubernetes version
4756 # - &quot;1.X&quot;: picks the highest valid patch+gke.N patch in the 1.X version
4757 # - &quot;1.X.Y&quot;: picks the highest valid gke.N patch in the 1.X.Y version
4758 # - &quot;1.X.Y-gke.N&quot;: picks an explicit Kubernetes version
4759 # - &quot;-&quot;: picks the Kubernetes master version
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004760 &quot;desiredWorkloadIdentityConfig&quot;: { # Configuration for the use of Kubernetes Service Accounts in GCP IAM # Configuration for Workload Identity.
4761 # policies.
4762 &quot;workloadPool&quot;: &quot;A String&quot;, # The workload pool to attach all Kubernetes service accounts to.
4763 },
4764 &quot;desiredVerticalPodAutoscaling&quot;: { # VerticalPodAutoscaling contains global, per-cluster information # Cluster-level Vertical Pod Autoscaling configuration.
4765 # required by Vertical Pod Autoscaler to automatically adjust
4766 # the resources of pods controlled by it.
4767 &quot;enabled&quot;: True or False, # Enables vertical pod autoscaling.
4768 },
4769 &quot;desiredResourceUsageExportConfig&quot;: { # Configuration for exporting cluster resource usages. # The desired configuration for exporting resource usage.
4770 &quot;enableNetworkEgressMetering&quot;: True or False, # Whether to enable network egress metering for this cluster. If enabled, a
4771 # daemonset will be created in the cluster to meter network egress traffic.
4772 &quot;bigqueryDestination&quot;: { # Parameters for using BigQuery as the destination of resource usage export. # Configuration to use BigQuery as usage export destination.
4773 &quot;datasetId&quot;: &quot;A String&quot;, # The ID of a BigQuery Dataset.
4774 },
4775 &quot;consumptionMeteringConfig&quot;: { # Parameters for controlling consumption metering. # Configuration to enable resource consumption metering.
4776 &quot;enabled&quot;: True or False, # Whether to enable consumption metering for this cluster. If enabled, a
4777 # second BigQuery table will be created to hold resource consumption
4778 # records.
4779 },
4780 },
4781 &quot;desiredMasterVersion&quot;: &quot;A String&quot;, # The Kubernetes version to change the master to.
4782 #
4783 # Users may specify either explicit versions offered by
4784 # Kubernetes Engine or version aliases, which have the following behavior:
4785 #
4786 # - &quot;latest&quot;: picks the highest valid Kubernetes version
4787 # - &quot;1.X&quot;: picks the highest valid patch+gke.N patch in the 1.X version
4788 # - &quot;1.X.Y&quot;: picks the highest valid gke.N patch in the 1.X.Y version
4789 # - &quot;1.X.Y-gke.N&quot;: picks an explicit Kubernetes version
4790 # - &quot;-&quot;: picks the default Kubernetes version
4791 &quot;desiredMonitoringService&quot;: &quot;A String&quot;, # The monitoring service the cluster should use to write metrics.
4792 # Currently available options:
4793 #
4794 # * &quot;monitoring.googleapis.com/kubernetes&quot; - The Cloud Monitoring
4795 # service with a Kubernetes-native resource model
4796 # * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
4797 # longer available as of GKE 1.15).
4798 # * `none` - No metrics will be exported from the cluster.
4799 #
4800 # If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
4801 # used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
4802 &quot;desiredLoggingService&quot;: &quot;A String&quot;, # The logging service the cluster should use to write logs.
4803 # Currently available options:
4804 #
4805 # * `logging.googleapis.com/kubernetes` - The Cloud Logging
4806 # service with a Kubernetes-native resource model
4807 # * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
4808 # available as of GKE 1.15).
4809 # * `none` - no logs will be exported from the cluster.
4810 #
4811 # If left as an empty string,`logging.googleapis.com/kubernetes` will be
4812 # used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
4813 &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.
4814 # cluster, enabling additional functionality.
4815 &quot;kubernetesDashboard&quot;: { # Configuration for the Kubernetes Dashboard. # Configuration for the Kubernetes Dashboard.
4816 # This addon is deprecated, and will be disabled in 1.15. It is recommended
4817 # to use the Cloud Console to manage and monitor your Kubernetes clusters,
4818 # workloads and applications. For more information, see:
4819 # https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
4820 &quot;disabled&quot;: True or False, # Whether the Kubernetes Dashboard is enabled for this cluster.
4821 },
4822 &quot;cloudRunConfig&quot;: { # Configuration options for the Cloud Run feature. # Configuration for the Cloud Run addon, which allows the user to use a
4823 # managed Knative service.
4824 &quot;disabled&quot;: True or False, # Whether Cloud Run addon is enabled for this cluster.
4825 },
4826 &quot;httpLoadBalancing&quot;: { # Configuration options for the HTTP (L7) load balancing controller addon, # Configuration for the HTTP (L7) load balancing controller addon, which
4827 # makes it easy to set up HTTP load balancers for services in a cluster.
4828 # which makes it easy to set up HTTP load balancers for services in a cluster.
4829 &quot;disabled&quot;: True or False, # Whether the HTTP Load Balancing controller is enabled in the cluster.
4830 # When enabled, it runs a small pod in the cluster that manages the load
4831 # balancers.
4832 },
4833 &quot;horizontalPodAutoscaling&quot;: { # Configuration options for the horizontal pod autoscaling feature, which # Configuration for the horizontal pod autoscaling feature, which
4834 # increases or decreases the number of replica pods a replication controller
4835 # has based on the resource usage of the existing pods.
4836 # increases or decreases the number of replica pods a replication controller
4837 # has based on the resource usage of the existing pods.
4838 &quot;disabled&quot;: True or False, # Whether the Horizontal Pod Autoscaling feature is enabled in the cluster.
4839 # When enabled, it ensures that metrics are collected into Stackdriver
4840 # Monitoring.
4841 },
4842 &quot;dnsCacheConfig&quot;: { # Configuration for NodeLocal DNSCache # Configuration for NodeLocalDNS, a dns cache running on cluster nodes
4843 &quot;enabled&quot;: True or False, # Whether NodeLocal DNSCache is enabled for this cluster.
4844 },
4845 &quot;networkPolicyConfig&quot;: { # Configuration for NetworkPolicy. This only tracks whether the addon # Configuration for NetworkPolicy. This only tracks whether the addon
4846 # is enabled or not on the Master, it does not track whether network policy
4847 # is enabled for the nodes.
4848 # is enabled or not on the Master, it does not track whether network policy
4849 # is enabled for the nodes.
4850 &quot;disabled&quot;: True or False, # Whether NetworkPolicy is enabled for this cluster.
4851 },
4852 },
4853 &quot;desiredNodePoolAutoscaling&quot;: { # NodePoolAutoscaling contains information required by cluster autoscaler to # Autoscaler configuration for the node pool specified in
4854 # desired_node_pool_id. If there is only one pool in the
4855 # cluster and desired_node_pool_id is not provided then
4856 # the change applies to that single node pool.
4857 # adjust the size of the node pool to the current cluster usage.
4858 &quot;minNodeCount&quot;: 42, # Minimum number of nodes in the NodePool. Must be &gt;= 1 and &lt;=
4859 # max_node_count.
4860 &quot;maxNodeCount&quot;: 42, # Maximum number of nodes in the NodePool. Must be &gt;= min_node_count. There
4861 # has to enough quota to scale up the cluster.
4862 &quot;enabled&quot;: True or False, # Is autoscaling enabled for this node pool.
4863 &quot;autoprovisioned&quot;: True or False, # Can this node pool be deleted automatically.
4864 },
4865 &quot;desiredLocations&quot;: [ # The desired list of Google Compute Engine
4866 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
4867 # cluster&#x27;s nodes should be located. Changing the locations a cluster is in
4868 # will result in nodes being either created or removed from the cluster,
4869 # depending on whether locations are being added or removed.
4870 #
4871 # This list must always include the cluster&#x27;s primary zone.
4872 &quot;A String&quot;,
4873 ],
4874 &quot;desiredMasterAuthorizedNetworksConfig&quot;: { # Configuration options for the master authorized networks feature. Enabled # The desired configuration options for master authorized networks feature.
4875 # master authorized networks will disallow all external traffic to access
4876 # Kubernetes master through HTTPS except traffic from the given CIDR blocks,
4877 # Google Compute Engine Public IPs and Google Prod IPs.
4878 &quot;enabled&quot;: True or False, # Whether or not master authorized networks is enabled.
4879 &quot;cidrBlocks&quot;: [ # cidr_blocks define up to 50 external networks that could access
4880 # Kubernetes master through HTTPS.
4881 { # CidrBlock contains an optional name and one CIDR block.
4882 &quot;displayName&quot;: &quot;A String&quot;, # display_name is an optional field for users to identify CIDR blocks.
4883 &quot;cidrBlock&quot;: &quot;A String&quot;, # cidr_block must be specified in CIDR notation.
4884 },
4885 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07004886 },
4887 &quot;desiredClusterAutoscaling&quot;: { # ClusterAutoscaling contains global, per-cluster information # Cluster-level autoscaling configuration.
Dan O'Mearadd494642020-05-01 07:42:23 -07004888 # required by Cluster Autoscaler to automatically adjust
4889 # the size of the cluster and create/delete
4890 # node pools based on the current needs.
Bu Sun Kim65020912020-05-20 12:08:20 -07004891 &quot;resourceLimits&quot;: [ # Contains global constraints regarding minimum and maximum
4892 # amount of resources in the cluster.
4893 { # Contains information about amount of some resource in the cluster.
4894 # For memory, value should be in GB.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004895 &quot;minimum&quot;: &quot;A String&quot;, # Minimum amount of the resource in the cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -07004896 &quot;resourceType&quot;: &quot;A String&quot;, # Resource name &quot;cpu&quot;, &quot;memory&quot; or gpu-specific string.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004897 &quot;maximum&quot;: &quot;A String&quot;, # Maximum amount of the resource in the cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -07004898 },
4899 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07004900 &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 -07004901 # created by NAP.
4902 # by NAP.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004903 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs.
Bu Sun Kim65020912020-05-20 12:08:20 -07004904 &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 -07004905 # node pool.
Bu Sun Kim65020912020-05-20 12:08:20 -07004906 &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 -07004907 # the Auto Upgrades will proceed.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004908 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
4909 # with the description of the upgrade.
Bu Sun Kim65020912020-05-20 12:08:20 -07004910 &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 -07004911 # with the approximate start time for the upgrades, in
4912 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
4913 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004914 &quot;autoRepair&quot;: True or False, # A flag that specifies whether the node auto-repair is enabled for the node
4915 # pool. If enabled, the nodes in this node pool will be monitored and, if
4916 # they fail health checks too many times, an automatic repair action will be
4917 # triggered.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004918 &quot;autoUpgrade&quot;: True or False, # A flag that specifies whether node auto-upgrade is enabled for the node
4919 # pool. If enabled, node auto-upgrade helps keep the nodes in your node pool
4920 # up to date with the latest release version of Kubernetes.
Dan O'Mearadd494642020-05-01 07:42:23 -07004921 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004922 &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 -07004923 # disruption caused by an upgrade.
4924 #
4925 # maxUnavailable controls the number of nodes that can be simultaneously
4926 # unavailable.
4927 #
4928 # maxSurge controls the number of additional nodes that can be added to the
4929 # node pool temporarily for the time of the upgrade to increase the number of
4930 # available nodes.
4931 #
4932 # (maxUnavailable + maxSurge) determines the level of parallelism (how many
4933 # nodes are being upgraded at the same time).
4934 #
4935 # Note: upgrades inevitably introduce some disruption since workloads need to
4936 # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
4937 # this holds true. (Disruption stays within the limits of
4938 # PodDisruptionBudget, if it is configured.)
4939 #
4940 # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
4941 # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
4942 # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
4943 # down 3 old (not yet upgraded) nodes at the same time. This ensures that
4944 # there are always at least 4 nodes available.
Bu Sun Kim65020912020-05-20 12:08:20 -07004945 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during
Dan O'Mearadd494642020-05-01 07:42:23 -07004946 # the upgrade process. A node is considered available if its status is
4947 # Ready.
Bu Sun Kim65020912020-05-20 12:08:20 -07004948 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size
4949 # of the node pool during the upgrade process.
Dan O'Mearadd494642020-05-01 07:42:23 -07004950 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004951 &quot;oauthScopes&quot;: [ # Scopes that are used by NAP when creating node pools.
4952 &quot;A String&quot;,
4953 ],
Dan O'Mearadd494642020-05-01 07:42:23 -07004954 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004955 &quot;enableNodeAutoprovisioning&quot;: True or False, # Enables automatic node pool creation and deletion.
4956 &quot;autoprovisioningLocations&quot;: [ # The list of Google Compute Engine
4957 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
4958 # NodePool&#x27;s nodes can be created by NAP.
4959 &quot;A String&quot;,
4960 ],
4961 },
4962 &quot;desiredNodePoolId&quot;: &quot;A String&quot;, # The node pool to be upgraded. This field is mandatory if
4963 # &quot;desired_node_version&quot;, &quot;desired_image_family&quot; or
4964 # &quot;desired_node_pool_autoscaling&quot; is specified and there is more than one
4965 # node pool on the cluster.
4966 &quot;desiredImageType&quot;: &quot;A String&quot;, # The desired image type for the node pool.
4967 # NOTE: Set the &quot;desired_node_pool&quot; field as well.
4968 &quot;desiredReleaseChannel&quot;: { # ReleaseChannel indicates which release channel a cluster is # The desired release channel configuration.
4969 # subscribed to. Release channels are arranged in order of risk.
4970 #
4971 # When a cluster is subscribed to a release channel, Google maintains
4972 # both the master version and the node version. Node auto-upgrade
4973 # defaults to true and cannot be disabled.
4974 &quot;channel&quot;: &quot;A String&quot;, # channel specifies which release channel the cluster is subscribed to.
4975 },
4976 &quot;desiredIntraNodeVisibilityConfig&quot;: { # IntraNodeVisibilityConfig contains the desired config of the intra-node # The desired config of Intra-node visibility.
4977 # visibility on this cluster.
4978 &quot;enabled&quot;: True or False, # Enables intra node visibility for this cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -07004979 },
4980 &quot;desiredDatabaseEncryption&quot;: { # Configuration of etcd encryption. # Configuration of etcd encryption.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004981 &quot;state&quot;: &quot;A String&quot;, # Denotes the state of etcd encryption.
Bu Sun Kim65020912020-05-20 12:08:20 -07004982 &quot;keyName&quot;: &quot;A String&quot;, # Name of CloudKMS key to use for the encryption of secrets in etcd.
4983 # Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key
Bu Sun Kim65020912020-05-20 12:08:20 -07004984 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004985 &quot;desiredShieldedNodes&quot;: { # Configuration of Shielded Nodes feature. # Configuration for Shielded Nodes.
4986 &quot;enabled&quot;: True or False, # Whether Shielded Nodes features are enabled on all nodes in this cluster.
Dan O'Mearadd494642020-05-01 07:42:23 -07004987 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004988 &quot;desiredBinaryAuthorization&quot;: { # Configuration for Binary Authorization. # The desired configuration options for the Binary Authorization feature.
4989 &quot;enabled&quot;: True or False, # Enable Binary Authorization for this cluster. If enabled, all container
4990 # images will be validated by Binary Authorization.
Dan O'Mearadd494642020-05-01 07:42:23 -07004991 },
Takashi Matsuo06694102015-09-11 13:55:40 -07004992 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004993 &quot;zone&quot;: &quot;A String&quot;, # Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07004994 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4995 # cluster resides. This field has been deprecated and replaced by the name
4996 # field.
Takashi Matsuo06694102015-09-11 13:55:40 -07004997 }
4998
4999 x__xgafv: string, V1 error format.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04005000 Allowed values
5001 1 - v1 error format
5002 2 - v2 error format
Takashi Matsuo06694102015-09-11 13:55:40 -07005003
5004Returns:
5005 An object of the form:
5006
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04005007 { # This operation resource represents operations that may have happened or are
5008 # happening on the cluster. All fields are output only.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07005009 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
5010 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
5011 # Unset for single-stage operations.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07005012 &quot;metrics&quot;: [ # Progress metric bundle, for example:
5013 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
5014 # {name: &quot;nodes total&quot;, int_value: 32}]
5015 # or
5016 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
5017 # {name: &quot;progress scale&quot;, double_value: 1.0}]
5018 { # Progress metric is (string, int|float|string) pair.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07005019 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07005020 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
5021 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07005022 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07005023 },
5024 ],
5025 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
5026 # Unset for single-stage operations.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07005027 &quot;stages&quot;: [ # Substages of an operation or a stage.
5028 # Object with schema name: OperationProgress
5029 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07005030 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07005031 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
5032 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
5033 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
5034 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
5035 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
5036 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
5037 { # StatusCondition describes why a cluster or a node pool has a certain status
5038 # (e.g., ERROR or DEGRADED).
5039 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
5040 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
5041 },
5042 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07005043 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
5044 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
5045 # operation is taking place. This field is deprecated, use location instead.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07005046 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
Bu Sun Kim65020912020-05-20 12:08:20 -07005047 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07005048 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
5049 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
5050 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07005051 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07005052 { # StatusCondition describes why a cluster or a node pool has a certain status
5053 # (e.g., ERROR or DEGRADED).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07005054 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kimd059ad82020-07-22 17:02:09 -07005055 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07005056 },
5057 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07005058 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07005059 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
5060 # or
5061 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
5062 # in which the cluster resides.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07005063 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
Takashi Matsuo06694102015-09-11 13:55:40 -07005064 }</pre>
5065</div>
5066
5067</body></html>