blob: b8d2c01e6ec75a1ff332055c33933b202aef9f72 [file] [log] [blame]
Bu Sun Kim715bd7f2019-06-14 16:50:42 -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
75<h1><a href="container_v1.html">Kubernetes Engine API</a> . <a href="container_v1.projects.html">projects</a> . <a href="container_v1.projects.locations.html">locations</a> . <a href="container_v1.projects.locations.clusters.html">clusters</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="container_v1.projects.locations.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="container_v1.projects.locations.clusters.well_known.html">well_known()</a></code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070084</p>
Dan O'Mearadd494642020-05-01 07:42:23 -070085<p class="firstline">Returns the well_known Resource.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070086
87<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070088 <code><a href="#completeIpRotation">completeIpRotation(name, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070089<p class="firstline">Completes master IP rotation.</p>
90<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070091 <code><a href="#create">create(parent, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070092<p class="firstline">Creates a cluster, consisting of the specified number and type of Google</p>
93<p class="toc_element">
Bu Sun Kimd059ad82020-07-22 17:02:09 -070094 <code><a href="#delete">delete(name, clusterId=None, projectId=None, zone=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070095<p class="firstline">Deletes the cluster, including the Kubernetes endpoint and all worker</p>
96<p class="toc_element">
Bu Sun Kimd059ad82020-07-22 17:02:09 -070097 <code><a href="#get">get(name, clusterId=None, zone=None, projectId=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070098<p class="firstline">Gets the details of a specific cluster.</p>
99<p class="toc_element">
100 <code><a href="#getJwks">getJwks(parent, x__xgafv=None)</a></code></p>
101<p class="firstline">Gets the public component of the cluster signing keys in</p>
102<p class="toc_element">
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700103 <code><a href="#list">list(parent, zone=None, projectId=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700104<p class="firstline">Lists all clusters owned by a project in either the specified zone or all</p>
105<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700106 <code><a href="#setAddons">setAddons(name, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700107<p class="firstline">Sets the addons for a specific cluster.</p>
108<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700109 <code><a href="#setLegacyAbac">setLegacyAbac(name, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700110<p class="firstline">Enables or disables the ABAC authorization mechanism on a cluster.</p>
111<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700112 <code><a href="#setLocations">setLocations(name, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700113<p class="firstline">Sets the locations for a specific cluster.</p>
114<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700115 <code><a href="#setLogging">setLogging(name, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700116<p class="firstline">Sets the logging service for a specific cluster.</p>
117<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700118 <code><a href="#setMaintenancePolicy">setMaintenancePolicy(name, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700119<p class="firstline">Sets the maintenance policy for a cluster.</p>
120<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700121 <code><a href="#setMasterAuth">setMasterAuth(name, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700122<p class="firstline">Sets master auth materials. Currently supports changing the admin password</p>
123<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700124 <code><a href="#setMonitoring">setMonitoring(name, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700125<p class="firstline">Sets the monitoring service for a specific cluster.</p>
126<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700127 <code><a href="#setNetworkPolicy">setNetworkPolicy(name, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700128<p class="firstline">Enables or disables Network Policy for a cluster.</p>
129<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700130 <code><a href="#setResourceLabels">setResourceLabels(name, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700131<p class="firstline">Sets labels on a cluster.</p>
132<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700133 <code><a href="#startIpRotation">startIpRotation(name, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700134<p class="firstline">Starts master IP rotation.</p>
135<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700136 <code><a href="#update">update(name, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700137<p class="firstline">Updates the settings of a specific cluster.</p>
138<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700139 <code><a href="#updateMaster">updateMaster(name, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700140<p class="firstline">Updates the master for a specific cluster.</p>
141<h3>Method Details</h3>
142<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700143 <code class="details" id="completeIpRotation">completeIpRotation(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700144 <pre>Completes master IP rotation.
145
146Args:
147 name: string, The name (project, location, cluster id) of the cluster to complete IP
Bu Sun Kim65020912020-05-20 12:08:20 -0700148rotation. Specified in the format `projects/*/locations/*/clusters/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700149 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700150 The object takes the form of:
151
152{ # CompleteIPRotationRequest moves the cluster master back into single-IP mode.
Bu Sun Kim65020912020-05-20 12:08:20 -0700153 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster id) of the cluster to complete IP
154 # rotation. Specified in the format `projects/*/locations/*/clusters/*`.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700155 &quot;clusterId&quot;: &quot;A String&quot;, # Deprecated. The name of the cluster.
156 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -0700157 &quot;projectId&quot;: &quot;A String&quot;, # Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700158 # number](https://developers.google.com/console/help/new/#projectnumber).
159 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -0700160 &quot;zone&quot;: &quot;A String&quot;, # Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -0700161 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
162 # cluster resides. This field has been deprecated and replaced by the name
163 # field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700164 }
165
166 x__xgafv: string, V1 error format.
167 Allowed values
168 1 - v1 error format
169 2 - v2 error format
170
171Returns:
172 An object of the form:
173
174 { # This operation resource represents operations that may have happened or are
175 # happening on the cluster. All fields are output only.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700176 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
177 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
178 # Unset for single-stage operations.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700179 &quot;metrics&quot;: [ # Progress metric bundle, for example:
180 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
181 # {name: &quot;nodes total&quot;, int_value: 32}]
182 # or
183 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
184 # {name: &quot;progress scale&quot;, double_value: 1.0}]
185 { # Progress metric is (string, int|float|string) pair.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700186 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700187 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
188 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700189 &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 -0700190 },
191 ],
192 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
193 # Unset for single-stage operations.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700194 &quot;stages&quot;: [ # Substages of an operation or a stage.
195 # Object with schema name: OperationProgress
196 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700197 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700198 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
199 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
200 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
201 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
202 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
203 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
204 { # StatusCondition describes why a cluster or a node pool has a certain status
205 # (e.g., ERROR or DEGRADED).
206 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
207 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
208 },
209 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700210 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
211 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
212 # operation is taking place. This field is deprecated, use location instead.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700213 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
Bu Sun Kim65020912020-05-20 12:08:20 -0700214 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700215 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
216 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
217 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -0700218 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700219 { # StatusCondition describes why a cluster or a node pool has a certain status
220 # (e.g., ERROR or DEGRADED).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700221 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700222 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700223 },
224 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700225 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -0700226 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
227 # or
228 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
229 # in which the cluster resides.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700230 &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 -0700231 }</pre>
232</div>
233
234<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700235 <code class="details" id="create">create(parent, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700236 <pre>Creates a cluster, consisting of the specified number and type of Google
237Compute Engine instances.
238
Bu Sun Kim65020912020-05-20 12:08:20 -0700239By default, the cluster is created in the project&#x27;s
Dan O'Mearadd494642020-05-01 07:42:23 -0700240[default
241network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700242
243One firewall is added for the cluster. After cluster creation,
244the Kubelet creates routes for each node to allow the containers
245on that node to communicate with all other instances in the
246cluster.
247
Bu Sun Kim65020912020-05-20 12:08:20 -0700248Finally, an entry is added to the project&#x27;s global metadata indicating
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700249which CIDR range the cluster is using.
250
251Args:
252 parent: string, The parent (project and location) where the cluster will be created.
Bu Sun Kim65020912020-05-20 12:08:20 -0700253Specified in the format `projects/*/locations/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700254 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700255 The object takes the form of:
256
257{ # CreateClusterRequest creates a cluster.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700258 &quot;zone&quot;: &quot;A String&quot;, # Deprecated. The name of the Google Compute Engine
259 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
260 # cluster resides. This field has been deprecated and replaced by the parent
261 # field.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700262 &quot;parent&quot;: &quot;A String&quot;, # The parent (project and location) where the cluster will be created.
263 # Specified in the format `projects/*/locations/*`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700264 &quot;cluster&quot;: { # A Google Kubernetes Engine cluster. # Required. A [cluster
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700265 # resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters)
266 &quot;currentMasterVersion&quot;: &quot;A String&quot;, # [Output only] The current software version of the master endpoint.
267 &quot;currentNodeVersion&quot;: &quot;A String&quot;, # [Output only] Deprecated, use
268 # [NodePools.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools)
269 # instead. The current version of the node software components. If they are
270 # currently at multiple versions because they&#x27;re in the process of being
271 # upgraded, this reflects the minimum version of all nodes.
272 &quot;authenticatorGroupsConfig&quot;: { # Configuration for returning group information from authenticators. # Configuration controlling RBAC group membership information.
273 &quot;securityGroup&quot;: &quot;A String&quot;, # The name of the security group-of-groups to be used. Only relevant
274 # if enabled = true.
275 &quot;enabled&quot;: True or False, # Whether this cluster should return group membership lookups
276 # during authentication using a group of security groups.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700277 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700278 &quot;enableKubernetesAlpha&quot;: True or False, # Kubernetes alpha features are enabled on this cluster. This includes alpha
279 # API groups (e.g. v1alpha1) and features that may not be production ready in
280 # the kubernetes version of the master and nodes.
281 # The cluster has no SLA for uptime and master/node upgrades are disabled.
282 # Alpha enabled clusters are automatically deleted thirty days after
283 # creation.
284 &quot;ipAllocationPolicy&quot;: { # Configuration for controlling how IPs are allocated in the cluster. # Configuration for cluster IP allocation.
285 &quot;servicesSecondaryRangeName&quot;: &quot;A String&quot;, # The name of the secondary range to be used as for the services
286 # CIDR block. The secondary range will be used for service
287 # ClusterIPs. This must be an existing secondary range associated
288 # with the cluster subnetwork.
289 #
290 # This field is only applicable with use_ip_aliases is true and
291 # create_subnetwork is false.
292 &quot;subnetworkName&quot;: &quot;A String&quot;, # A custom subnetwork name to be used if `create_subnetwork` is true. If
293 # this field is empty, then an automatic name will be chosen for the new
294 # subnetwork.
295 &quot;nodeIpv4Cidr&quot;: &quot;A String&quot;, # This field is deprecated, use node_ipv4_cidr_block.
296 &quot;servicesIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP address range of the services IPs in this cluster. If blank, a range
297 # will be automatically chosen with the default size.
298 #
299 # This field is only applicable when `use_ip_aliases` is true.
300 #
301 # Set to blank to have a range chosen with the default size.
302 #
303 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
304 # netmask.
305 #
306 # Set to a
307 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
308 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
309 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
310 # to use.
311 &quot;servicesIpv4Cidr&quot;: &quot;A String&quot;, # This field is deprecated, use services_ipv4_cidr_block.
312 &quot;clusterSecondaryRangeName&quot;: &quot;A String&quot;, # The name of the secondary range to be used for the cluster CIDR
313 # block. The secondary range will be used for pod IP
314 # addresses. This must be an existing secondary range associated
315 # with the cluster subnetwork.
316 #
317 # This field is only applicable with use_ip_aliases is true and
318 # create_subnetwork is false.
319 &quot;tpuIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP address range of the Cloud TPUs in this cluster. If unspecified, a
320 # range will be automatically chosen with the default size.
321 #
322 # This field is only applicable when `use_ip_aliases` is true.
323 #
324 # If unspecified, the range will use the default size.
325 #
326 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
327 # netmask.
328 #
329 # Set to a
330 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
331 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
332 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
333 # to use.
334 &quot;nodeIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP address range of the instance IPs in this cluster.
335 #
336 # This is applicable only if `create_subnetwork` is true.
337 #
338 # Set to blank to have a range chosen with the default size.
339 #
340 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
341 # netmask.
342 #
343 # Set to a
344 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
345 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
346 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
347 # to use.
348 &quot;useIpAliases&quot;: True or False, # Whether alias IPs will be used for pod IPs in the cluster.
349 &quot;createSubnetwork&quot;: True or False, # Whether a new subnetwork will be created automatically for the cluster.
350 #
351 # This field is only applicable when `use_ip_aliases` is true.
352 &quot;clusterIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP address range for the cluster pod IPs. If this field is set, then
353 # `cluster.cluster_ipv4_cidr` must be left blank.
354 #
355 # This field is only applicable when `use_ip_aliases` is true.
356 #
357 # Set to blank to have a range chosen with the default size.
358 #
359 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
360 # netmask.
361 #
362 # Set to a
363 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
364 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
365 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
366 # to use.
367 &quot;clusterIpv4Cidr&quot;: &quot;A String&quot;, # This field is deprecated, use cluster_ipv4_cidr_block.
368 },
369 &quot;loggingService&quot;: &quot;A String&quot;, # The logging service the cluster should use to write logs.
370 # Currently available options:
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700371 #
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700372 # * `logging.googleapis.com/kubernetes` - The Cloud Logging
373 # service with a Kubernetes-native resource model
374 # * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
375 # available as of GKE 1.15).
376 # * `none` - no logs will be exported from the cluster.
377 #
378 # If left as an empty string,`logging.googleapis.com/kubernetes` will be
379 # used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
380 &quot;zone&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
381 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
382 # cluster resides. This field is deprecated, use location instead.
383 &quot;legacyAbac&quot;: { # Configuration for the legacy Attribute Based Access Control authorization # Configuration for the legacy ABAC authorization mode.
384 # mode.
385 &quot;enabled&quot;: True or False, # Whether the ABAC authorizer is enabled for this cluster. When enabled,
386 # identities in the system, including service accounts, nodes, and
387 # controllers, will have statically granted permissions beyond those
388 # provided by the RBAC configuration or IAM.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700389 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700390 &quot;resourceLabels&quot;: { # The resource labels for the cluster to use to annotate any related
391 # Google Compute Engine resources.
392 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700393 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700394 &quot;nodeIpv4CidrSize&quot;: 42, # [Output only] The size of the address space on each node for hosting
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700395 # containers. This is provisioned from within the `container_ipv4_cidr`
396 # range. This field will only be set when cluster is in route-based network
397 # mode.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700398 &quot;releaseChannel&quot;: { # ReleaseChannel indicates which release channel a cluster is # Release channel configuration.
399 # subscribed to. Release channels are arranged in order of risk.
400 #
401 # When a cluster is subscribed to a release channel, Google maintains
402 # both the master version and the node version. Node auto-upgrade
403 # defaults to true and cannot be disabled.
404 &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 -0700405 },
406 &quot;maintenancePolicy&quot;: { # MaintenancePolicy defines the maintenance policy to be used for the cluster. # Configure the maintenance policy for this cluster.
407 &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 -0700408 &quot;maintenanceExclusions&quot;: { # Exceptions to maintenance window. Non-emergency maintenance should not
409 # occur in these windows.
410 &quot;a_key&quot;: { # Represents an arbitrary window of time.
411 &quot;endTime&quot;: &quot;A String&quot;, # The time that the window ends. The end time should take place after the
412 # start time.
413 &quot;startTime&quot;: &quot;A String&quot;, # The time that the window first starts.
414 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700415 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700416 &quot;dailyMaintenanceWindow&quot;: { # Time window specified for daily maintenance operations. # DailyMaintenanceWindow specifies a daily maintenance operation window.
417 &quot;duration&quot;: &quot;A String&quot;, # [Output only] Duration of the time window, automatically chosen to be
418 # smallest possible in the given scenario.
419 # Duration will be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)
420 # format &quot;PTnHnMnS&quot;.
421 &quot;startTime&quot;: &quot;A String&quot;, # Time within the maintenance window to start the maintenance operations.
422 # Time format should be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)
423 # format &quot;HH:MM&quot;, where HH : [00-23] and MM : [00-59] GMT.
424 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700425 &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 -0700426 # maintenance to occur. The time windows may be overlapping. If no
427 # maintenance windows are set, maintenance can occur at any time.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700428 &quot;window&quot;: { # Represents an arbitrary window of time. # The window of the first recurrence.
429 &quot;endTime&quot;: &quot;A String&quot;, # The time that the window ends. The end time should take place after the
430 # start time.
431 &quot;startTime&quot;: &quot;A String&quot;, # The time that the window first starts.
432 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700433 &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 -0700434 # this window reccurs. They go on for the span of time between the start and
435 # end time.
436 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700437 # For example, to have something repeat every weekday, you&#x27;d use:
Dan O'Mearadd494642020-05-01 07:42:23 -0700438 # &lt;code&gt;FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR&lt;/code&gt;
439 # To repeat some window daily (equivalent to the DailyMaintenanceWindow):
440 # &lt;code&gt;FREQ=DAILY&lt;/code&gt;
441 # For the first weekend of every month:
442 # &lt;code&gt;FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU&lt;/code&gt;
443 # This specifies how frequently the window starts. Eg, if you wanted to have
Bu Sun Kim65020912020-05-20 12:08:20 -0700444 # a 9-5 UTC-4 window every weekday, you&#x27;d use something like:
Dan O'Mearadd494642020-05-01 07:42:23 -0700445 # &lt;code&gt;
446 # start time = 2019-01-01T09:00:00-0400
447 # end time = 2019-01-01T17:00:00-0400
448 # recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
449 # &lt;/code&gt;
450 # Windows can span multiple days. Eg, to make the window encompass every
451 # weekend from midnight Saturday till the last minute of Sunday UTC:
452 # &lt;code&gt;
453 # start time = 2019-01-05T00:00:00Z
454 # end time = 2019-01-07T23:59:00Z
455 # recurrence = FREQ=WEEKLY;BYDAY=SA
456 # &lt;/code&gt;
Bu Sun Kim65020912020-05-20 12:08:20 -0700457 # Note the start and end time&#x27;s specific dates are largely arbitrary except
Dan O'Mearadd494642020-05-01 07:42:23 -0700458 # to specify duration of the window and when it first starts.
459 # The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.
Dan O'Mearadd494642020-05-01 07:42:23 -0700460 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700461 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700462 &quot;resourceVersion&quot;: &quot;A String&quot;, # A hash identifying the version of this policy, so that updates to fields of
463 # the policy won&#x27;t accidentally undo intermediate changes (and so that users
464 # of the API unaware of some fields won&#x27;t accidentally remove other fields).
Dan O'Mearadd494642020-05-01 07:42:23 -0700465 # Make a &lt;code&gt;get()&lt;/code&gt; request to the cluster to get the current
466 # resource version and include it with requests to set the policy.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700467 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700468 &quot;monitoringService&quot;: &quot;A String&quot;, # The monitoring service the cluster should use to write metrics.
469 # Currently available options:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700470 #
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700471 # * &quot;monitoring.googleapis.com/kubernetes&quot; - The Cloud Monitoring
472 # service with a Kubernetes-native resource model
473 # * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
474 # longer available as of GKE 1.15).
475 # * `none` - No metrics will be exported from the cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -0700476 #
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700477 # If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
478 # used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
479 &quot;binaryAuthorization&quot;: { # Configuration for Binary Authorization. # Configuration for Binary Authorization.
480 &quot;enabled&quot;: True or False, # Enable Binary Authorization for this cluster. If enabled, all container
481 # images will be validated by Binary Authorization.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700482 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700483 &quot;expireTime&quot;: &quot;A String&quot;, # [Output only] The time the cluster will be automatically
484 # deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
485 &quot;instanceGroupUrls&quot;: [ # Deprecated. Use node_pools.instance_group_urls.
Bu Sun Kim65020912020-05-20 12:08:20 -0700486 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700487 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700488 &quot;endpoint&quot;: &quot;A String&quot;, # [Output only] The IP address of this cluster&#x27;s master endpoint.
489 # The endpoint can be accessed from the internet at
490 # `https://username:password@endpoint/`.
491 #
492 # See the `masterAuth` property of this resource for username and
493 # password information.
494 &quot;shieldedNodes&quot;: { # Configuration of Shielded Nodes feature. # Shielded Nodes configuration.
495 &quot;enabled&quot;: True or False, # Whether Shielded Nodes features are enabled on all nodes in this cluster.
496 },
497 &quot;masterAuthorizedNetworksConfig&quot;: { # Configuration options for the master authorized networks feature. Enabled # The configuration options for master authorized networks feature.
498 # master authorized networks will disallow all external traffic to access
499 # Kubernetes master through HTTPS except traffic from the given CIDR blocks,
500 # Google Compute Engine Public IPs and Google Prod IPs.
501 &quot;enabled&quot;: True or False, # Whether or not master authorized networks is enabled.
502 &quot;cidrBlocks&quot;: [ # cidr_blocks define up to 50 external networks that could access
503 # Kubernetes master through HTTPS.
504 { # CidrBlock contains an optional name and one CIDR block.
505 &quot;displayName&quot;: &quot;A String&quot;, # display_name is an optional field for users to identify CIDR blocks.
506 &quot;cidrBlock&quot;: &quot;A String&quot;, # cidr_block must be specified in CIDR notation.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700507 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700508 ],
509 },
510 &quot;conditions&quot;: [ # Which conditions caused the current cluster state.
511 { # StatusCondition describes why a cluster or a node pool has a certain status
512 # (e.g., ERROR or DEGRADED).
513 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
514 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
515 },
516 ],
517 &quot;network&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
518 # [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
519 # to which the cluster is connected. If left unspecified, the `default`
520 # network will be used.
521 &quot;status&quot;: &quot;A String&quot;, # [Output only] The current status of this cluster.
522 &quot;autoscaling&quot;: { # ClusterAutoscaling contains global, per-cluster information # Cluster-level autoscaling configuration.
523 # required by Cluster Autoscaler to automatically adjust
524 # the size of the cluster and create/delete
525 # node pools based on the current needs.
526 &quot;resourceLimits&quot;: [ # Contains global constraints regarding minimum and maximum
527 # amount of resources in the cluster.
528 { # Contains information about amount of some resource in the cluster.
529 # For memory, value should be in GB.
530 &quot;minimum&quot;: &quot;A String&quot;, # Minimum amount of the resource in the cluster.
531 &quot;resourceType&quot;: &quot;A String&quot;, # Resource name &quot;cpu&quot;, &quot;memory&quot; or gpu-specific string.
532 &quot;maximum&quot;: &quot;A String&quot;, # Maximum amount of the resource in the cluster.
533 },
534 ],
535 &quot;autoprovisioningNodePoolDefaults&quot;: { # AutoprovisioningNodePoolDefaults contains defaults for a node pool created # AutoprovisioningNodePoolDefaults contains defaults for a node pool
536 # created by NAP.
537 # by NAP.
538 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs.
539 &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.
540 # node pool.
541 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool.
542 # the Auto Upgrades will proceed.
543 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
544 # with the description of the upgrade.
545 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
546 # with the approximate start time for the upgrades, in
547 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
548 },
549 &quot;autoRepair&quot;: True or False, # A flag that specifies whether the node auto-repair is enabled for the node
550 # pool. If enabled, the nodes in this node pool will be monitored and, if
551 # they fail health checks too many times, an automatic repair action will be
552 # triggered.
553 &quot;autoUpgrade&quot;: True or False, # A flag that specifies whether node auto-upgrade is enabled for the node
554 # pool. If enabled, node auto-upgrade helps keep the nodes in your node pool
555 # up to date with the latest release version of Kubernetes.
556 },
557 &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 -0700558 # disruption caused by an upgrade.
559 #
560 # maxUnavailable controls the number of nodes that can be simultaneously
561 # unavailable.
562 #
563 # maxSurge controls the number of additional nodes that can be added to the
564 # node pool temporarily for the time of the upgrade to increase the number of
565 # available nodes.
566 #
567 # (maxUnavailable + maxSurge) determines the level of parallelism (how many
568 # nodes are being upgraded at the same time).
569 #
570 # Note: upgrades inevitably introduce some disruption since workloads need to
571 # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
572 # this holds true. (Disruption stays within the limits of
573 # PodDisruptionBudget, if it is configured.)
574 #
575 # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
576 # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
577 # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
578 # down 3 old (not yet upgraded) nodes at the same time. This ensures that
579 # there are always at least 4 nodes available.
Bu Sun Kim65020912020-05-20 12:08:20 -0700580 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during
Dan O'Mearadd494642020-05-01 07:42:23 -0700581 # the upgrade process. A node is considered available if its status is
582 # Ready.
Bu Sun Kim65020912020-05-20 12:08:20 -0700583 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size
584 # of the node pool during the upgrade process.
Dan O'Mearadd494642020-05-01 07:42:23 -0700585 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700586 &quot;oauthScopes&quot;: [ # Scopes that are used by NAP when creating node pools.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700587 &quot;A String&quot;,
588 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700589 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700590 &quot;enableNodeAutoprovisioning&quot;: True or False, # Enables automatic node pool creation and deletion.
591 &quot;autoprovisioningLocations&quot;: [ # The list of Google Compute Engine
592 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
593 # NodePool&#x27;s nodes can be created by NAP.
594 &quot;A String&quot;,
595 ],
596 },
597 &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 -0700598 &quot;networkPolicy&quot;: { # Configuration options for the NetworkPolicy feature. # Configuration options for the NetworkPolicy feature.
599 # https://kubernetes.io/docs/concepts/services-networking/networkpolicies/
Bu Sun Kim65020912020-05-20 12:08:20 -0700600 &quot;enabled&quot;: True or False, # Whether network policy is enabled on the cluster.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700601 &quot;provider&quot;: &quot;A String&quot;, # The selected network policy provider.
Bu Sun Kim65020912020-05-20 12:08:20 -0700602 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700603 &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 -0700604 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700605 # notation (e.g. `10.96.0.0/14`). Leave blank to have
606 # one automatically chosen or specify a `/14` block in `10.0.0.0/8`.
607 &quot;defaultMaxPodsConstraint&quot;: { # Constraints applied to pods. # The default constraint on the maximum number of pods that can be run
608 # simultaneously on a node in the node pool of this cluster. Only honored
609 # if cluster created with IP Alias support.
610 &quot;maxPodsPerNode&quot;: &quot;A String&quot;, # Constraint enforced on the max num of pods per node.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700611 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700612 &quot;nodeConfig&quot;: { # Parameters that describe the nodes in a cluster. # Parameters used in creating the cluster&#x27;s nodes.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700613 # For requests, this field should only be used in lieu of a
Bu Sun Kim65020912020-05-20 12:08:20 -0700614 # &quot;node_pool&quot; object, since this configuration (along with the
615 # &quot;initial_node_count&quot;) will be used to create a &quot;NodePool&quot; object with an
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700616 # auto-generated name. Do not use this and a node_pool at the same time.
617 # For responses, this field will be populated with the node configuration of
618 # the first node pool. (For configuration of each node pool, see
619 # `node_pool.config`)
620 #
621 # If unspecified, the defaults are used.
622 # This field is deprecated, use node_pool.config instead.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700623 &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;)
624 #
625 # If unspecified, the default disk type is &#x27;pd-standard&#x27;
626 &quot;bootDiskKmsKey&quot;: &quot;A String&quot;, #
627 # The Customer Managed Encryption Key used to encrypt the boot disk attached
628 # to each node in the node pool. This should be of the form
629 # projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
630 # For more information about protecting resources with Cloud KMS Keys please
631 # see:
632 # https://cloud.google.com/compute/docs/disks/customer-managed-encryption
633 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
634 &quot;enableIntegrityMonitoring&quot;: True or False, # Defines whether the instance has integrity monitoring enabled.
635 #
636 # Enables monitoring and attestation of the boot integrity of the instance.
637 # The attestation is performed against the integrity policy baseline. This
638 # baseline is initially derived from the implicitly trusted boot image when
639 # the instance is created.
640 &quot;enableSecureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled.
641 #
642 # Secure Boot helps ensure that the system only runs authentic software by
643 # verifying the digital signature of all boot components, and halting the
644 # boot process if signature verification fails.
645 },
646 &quot;labels&quot;: { # The map of Kubernetes labels (key/value pairs) to be applied to each node.
647 # These will added in addition to any default label(s) that
648 # Kubernetes may apply to the node.
649 # In case of conflict in label keys, the applied set may differ depending on
650 # the Kubernetes version -- it&#x27;s best to assume the behavior is undefined
651 # and conflicts should be avoided.
652 # For more information, including usage and the valid values, see:
653 # https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
654 &quot;a_key&quot;: &quot;A String&quot;,
655 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700656 &quot;oauthScopes&quot;: [ # The set of Google API scopes to be made available on all of the
657 # node VMs under the &quot;default&quot; service account.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700658 #
659 # The following scopes are recommended, but not required, and by default are
660 # not included:
661 #
662 # * `https://www.googleapis.com/auth/compute` is required for mounting
663 # persistent storage on your nodes.
664 # * `https://www.googleapis.com/auth/devstorage.read_only` is required for
665 # communicating with **gcr.io**
Dan O'Mearadd494642020-05-01 07:42:23 -0700666 # (the [Google Container
667 # Registry](https://cloud.google.com/container-registry/)).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700668 #
669 # If unspecified, no scopes are added, unless Cloud Logging or Cloud
670 # Monitoring are enabled, in which case their required scopes will be added.
Bu Sun Kim65020912020-05-20 12:08:20 -0700671 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700672 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700673 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used by this instance. The instance may be
674 # scheduled on the specified or newer CPU platform. Applicable values are the
675 # friendly names of CPU platforms, such as
676 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Haswell&amp;quot;&lt;/code&gt; or
677 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Sandy Bridge&amp;quot;&lt;/code&gt;. For more
678 # information, read [how to specify min CPU
679 # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
680 &quot;localSsdCount&quot;: 42, # The number of local SSD disks to be attached to the node.
681 #
682 # The limit for this value is dependent upon the maximum number of
683 # disks available on a machine per zone. See:
684 # https://cloud.google.com/compute/docs/disks/local-ssd
685 # for more information.
Bu Sun Kim65020912020-05-20 12:08:20 -0700686 &quot;taints&quot;: [ # List of kubernetes taints to be applied to each node.
Dan O'Mearadd494642020-05-01 07:42:23 -0700687 #
688 # For more information, including usage and the valid values, see:
689 # https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
690 { # Kubernetes taint is comprised of three fields: key, value, and effect. Effect
691 # can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute.
692 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700693 # See
694 # [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration)
695 # for more information, including usage and the valid values.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700696 &quot;value&quot;: &quot;A String&quot;, # Value for taint.
697 &quot;key&quot;: &quot;A String&quot;, # Key for taint.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700698 &quot;effect&quot;: &quot;A String&quot;, # Effect for taint.
Dan O'Mearadd494642020-05-01 07:42:23 -0700699 },
700 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700701 &quot;imageType&quot;: &quot;A String&quot;, # The image type to use for this node. Note that for a given image type,
702 # the latest version of it will be used.
703 &quot;reservationAffinity&quot;: { # [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) # The optional reservation affinity. Setting this field will apply
704 # the specified [Zonal Compute
705 # Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
706 # to this node pool.
707 # is the configuration of desired reservation which instances could take
708 # capacity from.
709 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Corresponds to the type of reservation consumption.
710 &quot;key&quot;: &quot;A String&quot;, # Corresponds to the label key of a reservation resource. To target a
711 # SPECIFIC_RESERVATION by name, specify &quot;googleapis.com/reservation-name&quot; as
712 # the key and specify the name of your reservation as its value.
713 &quot;values&quot;: [ # Corresponds to the label value(s) of reservation resource(s).
714 &quot;A String&quot;,
715 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700716 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700717 &quot;machineType&quot;: &quot;A String&quot;, # The name of a Google Compute Engine [machine
718 # type](https://cloud.google.com/compute/docs/machine-types) (e.g.
719 # `n1-standard-1`).
720 #
721 # If unspecified, the default machine type is
722 # `n1-standard-1`.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700723 &quot;nodeGroup&quot;: &quot;A String&quot;, # Setting this field will assign instances of this
724 # pool to run on the specified node group. This is useful for running
725 # workloads on [sole tenant
726 # nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes).
Bu Sun Kim65020912020-05-20 12:08:20 -0700727 &quot;metadata&quot;: { # The metadata key/value pairs assigned to instances in the cluster.
728 #
729 # Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
730 # in length. These are reflected as part of a URL in the metadata server.
731 # Additionally, to avoid ambiguity, keys must not conflict with any other
732 # metadata keys for the project or be one of the reserved keys:
733 # &quot;cluster-location&quot;
734 # &quot;cluster-name&quot;
735 # &quot;cluster-uid&quot;
736 # &quot;configure-sh&quot;
737 # &quot;containerd-configure-sh&quot;
738 # &quot;enable-os-login&quot;
739 # &quot;gci-ensure-gke-docker&quot;
740 # &quot;gci-metrics-enabled&quot;
741 # &quot;gci-update-strategy&quot;
742 # &quot;instance-template&quot;
743 # &quot;kube-env&quot;
744 # &quot;startup-script&quot;
745 # &quot;user-data&quot;
746 # &quot;disable-address-manager&quot;
747 # &quot;windows-startup-script-ps1&quot;
748 # &quot;common-psm1&quot;
749 # &quot;k8s-node-setup-psm1&quot;
750 # &quot;install-ssh-psm1&quot;
751 # &quot;user-profile-psm1&quot;
752 # &quot;serial-port-logging-enable&quot;
753 #
754 # Values are free-form strings, and only have meaning as interpreted by
755 # the image running in the instance. The only restriction placed on them is
756 # that each value&#x27;s size must be less than or equal to 32 KB.
757 #
758 # The total size of all keys and values must be less than 512 KB.
759 &quot;a_key&quot;: &quot;A String&quot;,
760 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700761 &quot;tags&quot;: [ # The list of instance tags applied to all nodes. Tags are used to identify
762 # valid sources or targets for network firewalls and are specified by
763 # the client during cluster or node pool creation. Each tag within the list
764 # must comply with RFC1035.
765 &quot;A String&quot;,
766 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700767 &quot;sandboxConfig&quot;: { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node.
768 &quot;type&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node.
769 },
770 &quot;preemptible&quot;: True or False, # Whether the nodes are created as preemptible VM instances. See:
771 # https://cloud.google.com/compute/docs/instances/preemptible for more
772 # information about preemptible VM instances.
773 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to # The workload metadata configuration for this node.
774 # workloads on the node pool.
775 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running
776 # on the node pool.
777 },
778 &quot;diskSizeGb&quot;: 42, # Size of the disk attached to each node, specified in GB.
779 # The smallest allowed disk size is 10GB.
780 #
781 # If unspecified, the default disk size is 100GB.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700782 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs.
783 # Specify the email address of the Service Account; otherwise, if no Service
784 # Account is specified, the &quot;default&quot; service account is used.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700785 &quot;accelerators&quot;: [ # A list of hardware accelerators to be attached to each node.
786 # See https://cloud.google.com/compute/docs/gpus for more information about
787 # support for GPUs.
788 { # AcceleratorConfig represents a Hardware Accelerator request.
789 &quot;acceleratorType&quot;: &quot;A String&quot;, # The accelerator type resource name. List of supported accelerators
790 # [here](https://cloud.google.com/compute/docs/gpus)
791 &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of the accelerator cards exposed to an instance.
792 },
793 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700794 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700795 &quot;resourceUsageExportConfig&quot;: { # Configuration for exporting cluster resource usages. # Configuration for exporting resource usages. Resource usage export is
796 # disabled when this config is unspecified.
797 &quot;enableNetworkEgressMetering&quot;: True or False, # Whether to enable network egress metering for this cluster. If enabled, a
798 # daemonset will be created in the cluster to meter network egress traffic.
799 &quot;bigqueryDestination&quot;: { # Parameters for using BigQuery as the destination of resource usage export. # Configuration to use BigQuery as usage export destination.
800 &quot;datasetId&quot;: &quot;A String&quot;, # The ID of a BigQuery Dataset.
801 },
802 &quot;consumptionMeteringConfig&quot;: { # Parameters for controlling consumption metering. # Configuration to enable resource consumption metering.
803 &quot;enabled&quot;: True or False, # Whether to enable consumption metering for this cluster. If enabled, a
804 # second BigQuery table will be created to hold resource consumption
805 # records.
806 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700807 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700808 &quot;initialNodeCount&quot;: 42, # The number of nodes to create in this cluster. You must ensure that your
809 # Compute Engine [resource quota](https://cloud.google.com/compute/quotas)
810 # is sufficient for this number of instances. You must also have available
811 # firewall and routes quota.
812 # For requests, this field should only be used in lieu of a
813 # &quot;node_pool&quot; object, since this configuration (along with the
814 # &quot;node_config&quot;) will be used to create a &quot;NodePool&quot; object with an
815 # auto-generated name. Do not use this and a node_pool at the same time.
816 #
817 # This field is deprecated, use node_pool.initial_node_count instead.
Bu Sun Kim65020912020-05-20 12:08:20 -0700818 &quot;name&quot;: &quot;A String&quot;, # The name of this cluster. The name must be unique within this project
819 # and location (e.g. zone or region), and can be up to 40 characters with
820 # the following restrictions:
821 #
822 # * Lowercase letters, numbers, and hyphens only.
823 # * Must start with a letter.
824 # * Must end with a number or a letter.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700825 &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
826 # policies.
827 # policies.
828 &quot;workloadPool&quot;: &quot;A String&quot;, # The workload pool to attach all Kubernetes service accounts to.
829 },
830 &quot;networkConfig&quot;: { # NetworkConfig reports the relative names of network &amp; subnetwork. # Configuration for cluster networking.
831 &quot;network&quot;: &quot;A String&quot;, # Output only. The relative name of the Google Compute Engine
832 # network(https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
833 # to which the cluster is connected. Example:
834 # projects/my-project/global/networks/my-network
835 &quot;enableIntraNodeVisibility&quot;: True or False, # Whether Intra-node visibility is enabled for this cluster.
836 # This makes same node pod to pod traffic visible for VPC network.
837 &quot;subnetwork&quot;: &quot;A String&quot;, # Output only. The relative name of the Google Compute Engine
838 # [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the
839 # cluster is connected. Example:
840 # projects/my-project/regions/us-central1/subnetworks/my-subnet
841 },
842 &quot;databaseEncryption&quot;: { # Configuration of etcd encryption. # Configuration of etcd encryption.
843 &quot;state&quot;: &quot;A String&quot;, # Denotes the state of etcd encryption.
844 &quot;keyName&quot;: &quot;A String&quot;, # Name of CloudKMS key to use for the encryption of secrets in etcd.
845 # Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key
846 },
847 &quot;privateClusterConfig&quot;: { # Configuration options for private clusters. # Configuration for private cluster.
848 &quot;privateEndpoint&quot;: &quot;A String&quot;, # Output only. The internal IP address of this cluster&#x27;s master endpoint.
849 &quot;peeringName&quot;: &quot;A String&quot;, # Output only. The peering name in the customer VPC used by this cluster.
850 &quot;enablePrivateNodes&quot;: True or False, # Whether nodes have internal IP addresses only. If enabled, all nodes are
851 # given only RFC 1918 private addresses and communicate with the master via
852 # private networking.
853 &quot;publicEndpoint&quot;: &quot;A String&quot;, # Output only. The external IP address of this cluster&#x27;s master endpoint.
854 &quot;enablePrivateEndpoint&quot;: True or False, # Whether the master&#x27;s internal IP address is used as the cluster endpoint.
855 &quot;masterIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP range in CIDR notation to use for the hosted master network. This
856 # range will be used for assigning internal IP addresses to the master or
857 # set of masters, as well as the ILB VIP. This range must not overlap with
858 # any other ranges in use within the cluster&#x27;s network.
859 },
860 &quot;createTime&quot;: &quot;A String&quot;, # [Output only] The time the cluster was created, in
861 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
862 &quot;nodePools&quot;: [ # The node pools associated with this cluster.
863 # This field should not be set if &quot;node_config&quot; or &quot;initial_node_count&quot; are
864 # specified.
865 { # NodePool contains the name and configuration for a cluster&#x27;s node pool.
866 # Node pools are a set of nodes (i.e. VM&#x27;s), with a common configuration and
867 # specification, under the control of the cluster master. They may have a set
868 # of Kubernetes labels applied to them, which may be used to reference them
869 # during pod scheduling. They may also be resized up or down, to accommodate
870 # the workload.
871 &quot;selfLink&quot;: &quot;A String&quot;, # [Output only] Server-defined URL for the resource.
872 &quot;management&quot;: { # NodeManagement defines the set of node management services turned on for the # NodeManagement configuration for this NodePool.
873 # node pool.
874 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool.
875 # the Auto Upgrades will proceed.
876 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
877 # with the description of the upgrade.
878 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
879 # with the approximate start time for the upgrades, in
880 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
881 },
882 &quot;autoRepair&quot;: True or False, # A flag that specifies whether the node auto-repair is enabled for the node
883 # pool. If enabled, the nodes in this node pool will be monitored and, if
884 # they fail health checks too many times, an automatic repair action will be
885 # triggered.
886 &quot;autoUpgrade&quot;: True or False, # A flag that specifies whether node auto-upgrade is enabled for the node
887 # pool. If enabled, node auto-upgrade helps keep the nodes in your node pool
888 # up to date with the latest release version of Kubernetes.
889 },
890 &quot;upgradeSettings&quot;: { # These upgrade settings control the level of parallelism and the level of # Upgrade settings control disruption and speed of the upgrade.
891 # disruption caused by an upgrade.
892 #
893 # maxUnavailable controls the number of nodes that can be simultaneously
894 # unavailable.
895 #
896 # maxSurge controls the number of additional nodes that can be added to the
897 # node pool temporarily for the time of the upgrade to increase the number of
898 # available nodes.
899 #
900 # (maxUnavailable + maxSurge) determines the level of parallelism (how many
901 # nodes are being upgraded at the same time).
902 #
903 # Note: upgrades inevitably introduce some disruption since workloads need to
904 # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
905 # this holds true. (Disruption stays within the limits of
906 # PodDisruptionBudget, if it is configured.)
907 #
908 # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
909 # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
910 # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
911 # down 3 old (not yet upgraded) nodes at the same time. This ensures that
912 # there are always at least 4 nodes available.
913 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during
914 # the upgrade process. A node is considered available if its status is
915 # Ready.
916 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size
917 # of the node pool during the upgrade process.
918 },
919 &quot;initialNodeCount&quot;: 42, # The initial node count for the pool. You must ensure that your
920 # Compute Engine [resource quota](https://cloud.google.com/compute/quotas)
921 # is sufficient for this number of instances. You must also have available
922 # firewall and routes quota.
923 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output only] Additional information about the current status of this
924 # node pool instance, if available.
925 &quot;version&quot;: &quot;A String&quot;, # The version of the Kubernetes of this node.
926 &quot;conditions&quot;: [ # Which conditions caused the current node pool state.
927 { # StatusCondition describes why a cluster or a node pool has a certain status
928 # (e.g., ERROR or DEGRADED).
929 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
930 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
931 },
932 ],
933 &quot;config&quot;: { # Parameters that describe the nodes in a cluster. # The node configuration of the pool.
934 &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;)
935 #
936 # If unspecified, the default disk type is &#x27;pd-standard&#x27;
937 &quot;bootDiskKmsKey&quot;: &quot;A String&quot;, #
938 # The Customer Managed Encryption Key used to encrypt the boot disk attached
939 # to each node in the node pool. This should be of the form
940 # projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
941 # For more information about protecting resources with Cloud KMS Keys please
942 # see:
943 # https://cloud.google.com/compute/docs/disks/customer-managed-encryption
944 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
945 &quot;enableIntegrityMonitoring&quot;: True or False, # Defines whether the instance has integrity monitoring enabled.
946 #
947 # Enables monitoring and attestation of the boot integrity of the instance.
948 # The attestation is performed against the integrity policy baseline. This
949 # baseline is initially derived from the implicitly trusted boot image when
950 # the instance is created.
951 &quot;enableSecureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled.
952 #
953 # Secure Boot helps ensure that the system only runs authentic software by
954 # verifying the digital signature of all boot components, and halting the
955 # boot process if signature verification fails.
956 },
957 &quot;labels&quot;: { # The map of Kubernetes labels (key/value pairs) to be applied to each node.
958 # These will added in addition to any default label(s) that
959 # Kubernetes may apply to the node.
960 # In case of conflict in label keys, the applied set may differ depending on
961 # the Kubernetes version -- it&#x27;s best to assume the behavior is undefined
962 # and conflicts should be avoided.
963 # For more information, including usage and the valid values, see:
964 # https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
965 &quot;a_key&quot;: &quot;A String&quot;,
966 },
967 &quot;oauthScopes&quot;: [ # The set of Google API scopes to be made available on all of the
968 # node VMs under the &quot;default&quot; service account.
969 #
970 # The following scopes are recommended, but not required, and by default are
971 # not included:
972 #
973 # * `https://www.googleapis.com/auth/compute` is required for mounting
974 # persistent storage on your nodes.
975 # * `https://www.googleapis.com/auth/devstorage.read_only` is required for
976 # communicating with **gcr.io**
977 # (the [Google Container
978 # Registry](https://cloud.google.com/container-registry/)).
979 #
980 # If unspecified, no scopes are added, unless Cloud Logging or Cloud
981 # Monitoring are enabled, in which case their required scopes will be added.
982 &quot;A String&quot;,
983 ],
984 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used by this instance. The instance may be
985 # scheduled on the specified or newer CPU platform. Applicable values are the
986 # friendly names of CPU platforms, such as
987 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Haswell&amp;quot;&lt;/code&gt; or
988 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Sandy Bridge&amp;quot;&lt;/code&gt;. For more
989 # information, read [how to specify min CPU
990 # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
991 &quot;localSsdCount&quot;: 42, # The number of local SSD disks to be attached to the node.
992 #
993 # The limit for this value is dependent upon the maximum number of
994 # disks available on a machine per zone. See:
995 # https://cloud.google.com/compute/docs/disks/local-ssd
996 # for more information.
997 &quot;taints&quot;: [ # List of kubernetes taints to be applied to each node.
998 #
999 # For more information, including usage and the valid values, see:
1000 # https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
1001 { # Kubernetes taint is comprised of three fields: key, value, and effect. Effect
1002 # can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute.
1003 #
1004 # See
1005 # [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration)
1006 # for more information, including usage and the valid values.
1007 &quot;value&quot;: &quot;A String&quot;, # Value for taint.
1008 &quot;key&quot;: &quot;A String&quot;, # Key for taint.
1009 &quot;effect&quot;: &quot;A String&quot;, # Effect for taint.
1010 },
1011 ],
1012 &quot;imageType&quot;: &quot;A String&quot;, # The image type to use for this node. Note that for a given image type,
1013 # the latest version of it will be used.
1014 &quot;reservationAffinity&quot;: { # [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) # The optional reservation affinity. Setting this field will apply
1015 # the specified [Zonal Compute
1016 # Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
1017 # to this node pool.
1018 # is the configuration of desired reservation which instances could take
1019 # capacity from.
1020 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Corresponds to the type of reservation consumption.
1021 &quot;key&quot;: &quot;A String&quot;, # Corresponds to the label key of a reservation resource. To target a
1022 # SPECIFIC_RESERVATION by name, specify &quot;googleapis.com/reservation-name&quot; as
1023 # the key and specify the name of your reservation as its value.
1024 &quot;values&quot;: [ # Corresponds to the label value(s) of reservation resource(s).
1025 &quot;A String&quot;,
1026 ],
1027 },
1028 &quot;machineType&quot;: &quot;A String&quot;, # The name of a Google Compute Engine [machine
1029 # type](https://cloud.google.com/compute/docs/machine-types) (e.g.
1030 # `n1-standard-1`).
1031 #
1032 # If unspecified, the default machine type is
1033 # `n1-standard-1`.
1034 &quot;nodeGroup&quot;: &quot;A String&quot;, # Setting this field will assign instances of this
1035 # pool to run on the specified node group. This is useful for running
1036 # workloads on [sole tenant
1037 # nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes).
1038 &quot;metadata&quot;: { # The metadata key/value pairs assigned to instances in the cluster.
1039 #
1040 # Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
1041 # in length. These are reflected as part of a URL in the metadata server.
1042 # Additionally, to avoid ambiguity, keys must not conflict with any other
1043 # metadata keys for the project or be one of the reserved keys:
1044 # &quot;cluster-location&quot;
1045 # &quot;cluster-name&quot;
1046 # &quot;cluster-uid&quot;
1047 # &quot;configure-sh&quot;
1048 # &quot;containerd-configure-sh&quot;
1049 # &quot;enable-os-login&quot;
1050 # &quot;gci-ensure-gke-docker&quot;
1051 # &quot;gci-metrics-enabled&quot;
1052 # &quot;gci-update-strategy&quot;
1053 # &quot;instance-template&quot;
1054 # &quot;kube-env&quot;
1055 # &quot;startup-script&quot;
1056 # &quot;user-data&quot;
1057 # &quot;disable-address-manager&quot;
1058 # &quot;windows-startup-script-ps1&quot;
1059 # &quot;common-psm1&quot;
1060 # &quot;k8s-node-setup-psm1&quot;
1061 # &quot;install-ssh-psm1&quot;
1062 # &quot;user-profile-psm1&quot;
1063 # &quot;serial-port-logging-enable&quot;
1064 #
1065 # Values are free-form strings, and only have meaning as interpreted by
1066 # the image running in the instance. The only restriction placed on them is
1067 # that each value&#x27;s size must be less than or equal to 32 KB.
1068 #
1069 # The total size of all keys and values must be less than 512 KB.
1070 &quot;a_key&quot;: &quot;A String&quot;,
1071 },
1072 &quot;tags&quot;: [ # The list of instance tags applied to all nodes. Tags are used to identify
1073 # valid sources or targets for network firewalls and are specified by
1074 # the client during cluster or node pool creation. Each tag within the list
1075 # must comply with RFC1035.
1076 &quot;A String&quot;,
1077 ],
1078 &quot;sandboxConfig&quot;: { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node.
1079 &quot;type&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node.
1080 },
1081 &quot;preemptible&quot;: True or False, # Whether the nodes are created as preemptible VM instances. See:
1082 # https://cloud.google.com/compute/docs/instances/preemptible for more
1083 # information about preemptible VM instances.
1084 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to # The workload metadata configuration for this node.
1085 # workloads on the node pool.
1086 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running
1087 # on the node pool.
1088 },
1089 &quot;diskSizeGb&quot;: 42, # Size of the disk attached to each node, specified in GB.
1090 # The smallest allowed disk size is 10GB.
1091 #
1092 # If unspecified, the default disk size is 100GB.
1093 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs.
1094 # Specify the email address of the Service Account; otherwise, if no Service
1095 # Account is specified, the &quot;default&quot; service account is used.
1096 &quot;accelerators&quot;: [ # A list of hardware accelerators to be attached to each node.
1097 # See https://cloud.google.com/compute/docs/gpus for more information about
1098 # support for GPUs.
1099 { # AcceleratorConfig represents a Hardware Accelerator request.
1100 &quot;acceleratorType&quot;: &quot;A String&quot;, # The accelerator type resource name. List of supported accelerators
1101 # [here](https://cloud.google.com/compute/docs/gpus)
1102 &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of the accelerator cards exposed to an instance.
1103 },
1104 ],
1105 },
1106 &quot;name&quot;: &quot;A String&quot;, # The name of the node pool.
1107 &quot;maxPodsConstraint&quot;: { # Constraints applied to pods. # The constraint on the maximum number of pods that can be run
1108 # simultaneously on a node in the node pool.
1109 &quot;maxPodsPerNode&quot;: &quot;A String&quot;, # Constraint enforced on the max num of pods per node.
1110 },
1111 &quot;autoscaling&quot;: { # NodePoolAutoscaling contains information required by cluster autoscaler to # Autoscaler configuration for this NodePool. Autoscaler is enabled
1112 # only if a valid configuration is present.
1113 # adjust the size of the node pool to the current cluster usage.
1114 &quot;minNodeCount&quot;: 42, # Minimum number of nodes in the NodePool. Must be &gt;= 1 and &lt;=
1115 # max_node_count.
1116 &quot;maxNodeCount&quot;: 42, # Maximum number of nodes in the NodePool. Must be &gt;= min_node_count. There
1117 # has to enough quota to scale up the cluster.
1118 &quot;enabled&quot;: True or False, # Is autoscaling enabled for this node pool.
1119 &quot;autoprovisioned&quot;: True or False, # Can this node pool be deleted automatically.
1120 },
1121 &quot;podIpv4CidrSize&quot;: 42, # [Output only] The pod CIDR block size per node in this node pool.
1122 &quot;instanceGroupUrls&quot;: [ # [Output only] The resource URLs of the [managed instance
1123 # groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
1124 # associated with this node pool.
1125 &quot;A String&quot;,
1126 ],
1127 &quot;status&quot;: &quot;A String&quot;, # [Output only] The status of the nodes in this pool instance.
1128 &quot;locations&quot;: [ # The list of Google Compute Engine
1129 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
1130 # NodePool&#x27;s nodes should be located.
1131 &quot;A String&quot;,
1132 ],
1133 },
1134 ],
1135 &quot;subnetwork&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
1136 # [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which
1137 # the cluster is connected.
1138 &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.
1139 # cluster, enabling additional functionality.
1140 &quot;kubernetesDashboard&quot;: { # Configuration for the Kubernetes Dashboard. # Configuration for the Kubernetes Dashboard.
1141 # This addon is deprecated, and will be disabled in 1.15. It is recommended
1142 # to use the Cloud Console to manage and monitor your Kubernetes clusters,
1143 # workloads and applications. For more information, see:
1144 # https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
1145 &quot;disabled&quot;: True or False, # Whether the Kubernetes Dashboard is enabled for this cluster.
1146 },
1147 &quot;cloudRunConfig&quot;: { # Configuration options for the Cloud Run feature. # Configuration for the Cloud Run addon, which allows the user to use a
1148 # managed Knative service.
1149 &quot;disabled&quot;: True or False, # Whether Cloud Run addon is enabled for this cluster.
1150 },
1151 &quot;httpLoadBalancing&quot;: { # Configuration options for the HTTP (L7) load balancing controller addon, # Configuration for the HTTP (L7) load balancing controller addon, which
1152 # makes it easy to set up HTTP load balancers for services in a cluster.
1153 # which makes it easy to set up HTTP load balancers for services in a cluster.
1154 &quot;disabled&quot;: True or False, # Whether the HTTP Load Balancing controller is enabled in the cluster.
1155 # When enabled, it runs a small pod in the cluster that manages the load
1156 # balancers.
1157 },
1158 &quot;horizontalPodAutoscaling&quot;: { # Configuration options for the horizontal pod autoscaling feature, which # Configuration for the horizontal pod autoscaling feature, which
1159 # increases or decreases the number of replica pods a replication controller
1160 # has based on the resource usage of the existing pods.
1161 # increases or decreases the number of replica pods a replication controller
1162 # has based on the resource usage of the existing pods.
1163 &quot;disabled&quot;: True or False, # Whether the Horizontal Pod Autoscaling feature is enabled in the cluster.
1164 # When enabled, it ensures that metrics are collected into Stackdriver
1165 # Monitoring.
1166 },
1167 &quot;dnsCacheConfig&quot;: { # Configuration for NodeLocal DNSCache # Configuration for NodeLocalDNS, a dns cache running on cluster nodes
1168 &quot;enabled&quot;: True or False, # Whether NodeLocal DNSCache is enabled for this cluster.
1169 },
1170 &quot;networkPolicyConfig&quot;: { # Configuration for NetworkPolicy. This only tracks whether the addon # Configuration for NetworkPolicy. This only tracks whether the addon
1171 # is enabled or not on the Master, it does not track whether network policy
1172 # is enabled for the nodes.
1173 # is enabled or not on the Master, it does not track whether network policy
1174 # is enabled for the nodes.
1175 &quot;disabled&quot;: True or False, # Whether NetworkPolicy is enabled for this cluster.
1176 },
1177 },
1178 &quot;masterAuth&quot;: { # The authentication information for accessing the master endpoint. # The authentication information for accessing the master endpoint.
1179 # If unspecified, the defaults are used:
1180 # For clusters before v1.12, if master_auth is unspecified, `username` will
1181 # be set to &quot;admin&quot;, a random password will be generated, and a client
1182 # certificate will be issued.
1183 # Authentication can be done using HTTP basic auth or using client
1184 # certificates.
1185 &quot;clientKey&quot;: &quot;A String&quot;, # [Output only] Base64-encoded private key used by clients to authenticate
1186 # to the cluster endpoint.
1187 &quot;clientCertificate&quot;: &quot;A String&quot;, # [Output only] Base64-encoded public certificate used by clients to
1188 # authenticate to the cluster endpoint.
1189 &quot;username&quot;: &quot;A String&quot;, # The username to use for HTTP basic authentication to the master endpoint.
1190 # For clusters v1.6.0 and later, basic authentication can be disabled by
1191 # leaving username unspecified (or setting it to the empty string).
1192 &quot;password&quot;: &quot;A String&quot;, # The password to use for HTTP basic authentication to the master endpoint.
1193 # Because the master endpoint is open to the Internet, you should create a
1194 # strong password. If a password is provided for cluster creation, username
1195 # must be non-empty.
1196 &quot;clientCertificateConfig&quot;: { # Configuration for client certificates on the cluster. # Configuration for client certificate authentication on the cluster. For
1197 # clusters before v1.12, if no configuration is specified, a client
1198 # certificate is issued.
1199 &quot;issueClientCertificate&quot;: True or False, # Issue a client certificate.
1200 },
1201 &quot;clusterCaCertificate&quot;: &quot;A String&quot;, # [Output only] Base64-encoded public certificate that is the root of
1202 # trust for the cluster.
1203 },
1204 &quot;verticalPodAutoscaling&quot;: { # VerticalPodAutoscaling contains global, per-cluster information # Cluster-level Vertical Pod Autoscaling configuration.
1205 # required by Vertical Pod Autoscaler to automatically adjust
1206 # the resources of pods controlled by it.
1207 &quot;enabled&quot;: True or False, # Enables vertical pod autoscaling.
1208 },
1209 &quot;enableTpu&quot;: True or False, # Enable the ability to use Cloud TPUs in this cluster.
1210 &quot;initialClusterVersion&quot;: &quot;A String&quot;, # The initial Kubernetes version for this cluster. Valid versions are those
1211 # found in validMasterVersions returned by getServerConfig. The version can
1212 # be upgraded over time; such upgrades are reflected in
1213 # currentMasterVersion and currentNodeVersion.
Bu Sun Kim65020912020-05-20 12:08:20 -07001214 #
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001215 # Users may specify either explicit versions offered by
1216 # Kubernetes Engine or version aliases, which have the following behavior:
1217 #
1218 # - &quot;latest&quot;: picks the highest valid Kubernetes version
1219 # - &quot;1.X&quot;: picks the highest valid patch+gke.N patch in the 1.X version
1220 # - &quot;1.X.Y&quot;: picks the highest valid gke.N patch in the 1.X.Y version
1221 # - &quot;1.X.Y-gke.N&quot;: picks an explicit Kubernetes version
1222 # - &quot;&quot;,&quot;-&quot;: picks the default Kubernetes version
1223 &quot;currentNodeCount&quot;: 42, # [Output only] The number of nodes currently in the cluster. Deprecated.
1224 # Call Kubernetes API directly to retrieve node information.
1225 &quot;tpuIpv4CidrBlock&quot;: &quot;A String&quot;, # [Output only] The IP address range of the Cloud TPUs in this cluster, in
1226 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
1227 # notation (e.g. `1.2.3.4/29`).
1228 &quot;locations&quot;: [ # The list of Google Compute Engine
1229 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
1230 # cluster&#x27;s nodes should be located.
1231 &quot;A String&quot;,
1232 ],
1233 &quot;selfLink&quot;: &quot;A String&quot;, # [Output only] Server-defined URL for the resource.
1234 &quot;description&quot;: &quot;A String&quot;, # An optional description of this cluster.
1235 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output only] Additional information about the current status of this
1236 # cluster, if available.
Bu Sun Kim65020912020-05-20 12:08:20 -07001237 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
1238 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1239 # or
1240 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1241 # in which the cluster resides.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001242 &quot;servicesIpv4Cidr&quot;: &quot;A String&quot;, # [Output only] The IP address range of the Kubernetes services in
1243 # this cluster, in
1244 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
1245 # notation (e.g. `1.2.3.4/29`). Service addresses are
1246 # typically put in the last `/16` from the container CIDR.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001247 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001248 &quot;projectId&quot;: &quot;A String&quot;, # Deprecated. The Google Developers Console [project ID or project
1249 # number](https://support.google.com/cloud/answer/6158840).
1250 # This field has been deprecated and replaced by the parent field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001251 }
1252
1253 x__xgafv: string, V1 error format.
1254 Allowed values
1255 1 - v1 error format
1256 2 - v2 error format
1257
1258Returns:
1259 An object of the form:
1260
1261 { # This operation resource represents operations that may have happened or are
1262 # happening on the cluster. All fields are output only.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001263 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
1264 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
1265 # Unset for single-stage operations.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001266 &quot;metrics&quot;: [ # Progress metric bundle, for example:
1267 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
1268 # {name: &quot;nodes total&quot;, int_value: 32}]
1269 # or
1270 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
1271 # {name: &quot;progress scale&quot;, double_value: 1.0}]
1272 { # Progress metric is (string, int|float|string) pair.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001273 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001274 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
1275 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001276 &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 -07001277 },
1278 ],
1279 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
1280 # Unset for single-stage operations.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001281 &quot;stages&quot;: [ # Substages of an operation or a stage.
1282 # Object with schema name: OperationProgress
1283 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001284 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001285 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
1286 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
1287 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
1288 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
1289 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1290 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
1291 { # StatusCondition describes why a cluster or a node pool has a certain status
1292 # (e.g., ERROR or DEGRADED).
1293 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
1294 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
1295 },
1296 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001297 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
1298 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1299 # operation is taking place. This field is deprecated, use location instead.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001300 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
Bu Sun Kim65020912020-05-20 12:08:20 -07001301 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001302 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
1303 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
1304 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07001305 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001306 { # StatusCondition describes why a cluster or a node pool has a certain status
1307 # (e.g., ERROR or DEGRADED).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001308 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001309 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001310 },
1311 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001312 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001313 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1314 # or
1315 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1316 # in which the cluster resides.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001317 &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 -07001318 }</pre>
1319</div>
1320
1321<div class="method">
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001322 <code class="details" id="delete">delete(name, clusterId=None, projectId=None, zone=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001323 <pre>Deletes the cluster, including the Kubernetes endpoint and all worker
1324nodes.
1325
1326Firewalls and routes that were configured during cluster creation
1327are also deleted.
1328
1329Other Google Compute Engine resources that might be in use by the cluster,
Bu Sun Kim65020912020-05-20 12:08:20 -07001330such as load balancer resources, are not deleted if they weren&#x27;t present
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001331when the cluster was initially created.
1332
1333Args:
1334 name: string, The name (project, location, cluster) of the cluster to delete.
Bu Sun Kim65020912020-05-20 12:08:20 -07001335Specified in the format `projects/*/locations/*/clusters/*`. (required)
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001336 clusterId: string, Deprecated. The name of the cluster to delete.
1337This field has been deprecated and replaced by the name field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001338 projectId: string, Deprecated. The Google Developers Console [project ID or project
1339number](https://support.google.com/cloud/answer/6158840).
1340This field has been deprecated and replaced by the name field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001341 zone: string, Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001342[zone](https://cloud.google.com/compute/docs/zones#available) in which the
1343cluster resides. This field has been deprecated and replaced by the name
1344field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001345 x__xgafv: string, V1 error format.
1346 Allowed values
1347 1 - v1 error format
1348 2 - v2 error format
1349
1350Returns:
1351 An object of the form:
1352
1353 { # This operation resource represents operations that may have happened or are
1354 # happening on the cluster. All fields are output only.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001355 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
1356 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
1357 # Unset for single-stage operations.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001358 &quot;metrics&quot;: [ # Progress metric bundle, for example:
1359 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
1360 # {name: &quot;nodes total&quot;, int_value: 32}]
1361 # or
1362 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
1363 # {name: &quot;progress scale&quot;, double_value: 1.0}]
1364 { # Progress metric is (string, int|float|string) pair.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001365 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001366 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
1367 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001368 &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 -07001369 },
1370 ],
1371 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
1372 # Unset for single-stage operations.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001373 &quot;stages&quot;: [ # Substages of an operation or a stage.
1374 # Object with schema name: OperationProgress
1375 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001376 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001377 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
1378 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
1379 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
1380 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
1381 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1382 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
1383 { # StatusCondition describes why a cluster or a node pool has a certain status
1384 # (e.g., ERROR or DEGRADED).
1385 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
1386 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
1387 },
1388 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001389 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
1390 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1391 # operation is taking place. This field is deprecated, use location instead.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001392 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
Bu Sun Kim65020912020-05-20 12:08:20 -07001393 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001394 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
1395 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
1396 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07001397 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001398 { # StatusCondition describes why a cluster or a node pool has a certain status
1399 # (e.g., ERROR or DEGRADED).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001400 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001401 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001402 },
1403 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001404 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001405 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1406 # or
1407 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1408 # in which the cluster resides.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001409 &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 -07001410 }</pre>
1411</div>
1412
1413<div class="method">
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001414 <code class="details" id="get">get(name, clusterId=None, zone=None, projectId=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001415 <pre>Gets the details of a specific cluster.
1416
1417Args:
1418 name: string, The name (project, location, cluster) of the cluster to retrieve.
Bu Sun Kim65020912020-05-20 12:08:20 -07001419Specified in the format `projects/*/locations/*/clusters/*`. (required)
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001420 clusterId: string, Deprecated. The name of the cluster to retrieve.
1421This field has been deprecated and replaced by the name field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001422 zone: string, Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001423[zone](https://cloud.google.com/compute/docs/zones#available) in which the
1424cluster resides. This field has been deprecated and replaced by the name
1425field.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001426 projectId: string, Deprecated. The Google Developers Console [project ID or project
1427number](https://support.google.com/cloud/answer/6158840).
1428This field has been deprecated and replaced by the name field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001429 x__xgafv: string, V1 error format.
1430 Allowed values
1431 1 - v1 error format
1432 2 - v2 error format
1433
1434Returns:
1435 An object of the form:
1436
1437 { # A Google Kubernetes Engine cluster.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001438 &quot;currentMasterVersion&quot;: &quot;A String&quot;, # [Output only] The current software version of the master endpoint.
1439 &quot;currentNodeVersion&quot;: &quot;A String&quot;, # [Output only] Deprecated, use
1440 # [NodePools.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools)
1441 # instead. The current version of the node software components. If they are
1442 # currently at multiple versions because they&#x27;re in the process of being
1443 # upgraded, this reflects the minimum version of all nodes.
1444 &quot;authenticatorGroupsConfig&quot;: { # Configuration for returning group information from authenticators. # Configuration controlling RBAC group membership information.
1445 &quot;securityGroup&quot;: &quot;A String&quot;, # The name of the security group-of-groups to be used. Only relevant
1446 # if enabled = true.
1447 &quot;enabled&quot;: True or False, # Whether this cluster should return group membership lookups
1448 # during authentication using a group of security groups.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001449 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001450 &quot;enableKubernetesAlpha&quot;: True or False, # Kubernetes alpha features are enabled on this cluster. This includes alpha
1451 # API groups (e.g. v1alpha1) and features that may not be production ready in
1452 # the kubernetes version of the master and nodes.
1453 # The cluster has no SLA for uptime and master/node upgrades are disabled.
1454 # Alpha enabled clusters are automatically deleted thirty days after
1455 # creation.
1456 &quot;ipAllocationPolicy&quot;: { # Configuration for controlling how IPs are allocated in the cluster. # Configuration for cluster IP allocation.
1457 &quot;servicesSecondaryRangeName&quot;: &quot;A String&quot;, # The name of the secondary range to be used as for the services
1458 # CIDR block. The secondary range will be used for service
1459 # ClusterIPs. This must be an existing secondary range associated
1460 # with the cluster subnetwork.
1461 #
1462 # This field is only applicable with use_ip_aliases is true and
1463 # create_subnetwork is false.
1464 &quot;subnetworkName&quot;: &quot;A String&quot;, # A custom subnetwork name to be used if `create_subnetwork` is true. If
1465 # this field is empty, then an automatic name will be chosen for the new
1466 # subnetwork.
1467 &quot;nodeIpv4Cidr&quot;: &quot;A String&quot;, # This field is deprecated, use node_ipv4_cidr_block.
1468 &quot;servicesIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP address range of the services IPs in this cluster. If blank, a range
1469 # will be automatically chosen with the default size.
1470 #
1471 # This field is only applicable when `use_ip_aliases` is true.
1472 #
1473 # Set to blank to have a range chosen with the default size.
1474 #
1475 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
1476 # netmask.
1477 #
1478 # Set to a
1479 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
1480 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
1481 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
1482 # to use.
1483 &quot;servicesIpv4Cidr&quot;: &quot;A String&quot;, # This field is deprecated, use services_ipv4_cidr_block.
1484 &quot;clusterSecondaryRangeName&quot;: &quot;A String&quot;, # The name of the secondary range to be used for the cluster CIDR
1485 # block. The secondary range will be used for pod IP
1486 # addresses. This must be an existing secondary range associated
1487 # with the cluster subnetwork.
1488 #
1489 # This field is only applicable with use_ip_aliases is true and
1490 # create_subnetwork is false.
1491 &quot;tpuIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP address range of the Cloud TPUs in this cluster. If unspecified, a
1492 # range will be automatically chosen with the default size.
1493 #
1494 # This field is only applicable when `use_ip_aliases` is true.
1495 #
1496 # If unspecified, the range will use the default size.
1497 #
1498 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
1499 # netmask.
1500 #
1501 # Set to a
1502 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
1503 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
1504 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
1505 # to use.
1506 &quot;nodeIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP address range of the instance IPs in this cluster.
1507 #
1508 # This is applicable only if `create_subnetwork` is true.
1509 #
1510 # Set to blank to have a range chosen with the default size.
1511 #
1512 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
1513 # netmask.
1514 #
1515 # Set to a
1516 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
1517 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
1518 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
1519 # to use.
1520 &quot;useIpAliases&quot;: True or False, # Whether alias IPs will be used for pod IPs in the cluster.
1521 &quot;createSubnetwork&quot;: True or False, # Whether a new subnetwork will be created automatically for the cluster.
1522 #
1523 # This field is only applicable when `use_ip_aliases` is true.
1524 &quot;clusterIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP address range for the cluster pod IPs. If this field is set, then
1525 # `cluster.cluster_ipv4_cidr` must be left blank.
1526 #
1527 # This field is only applicable when `use_ip_aliases` is true.
1528 #
1529 # Set to blank to have a range chosen with the default size.
1530 #
1531 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
1532 # netmask.
1533 #
1534 # Set to a
1535 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
1536 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
1537 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
1538 # to use.
1539 &quot;clusterIpv4Cidr&quot;: &quot;A String&quot;, # This field is deprecated, use cluster_ipv4_cidr_block.
1540 },
1541 &quot;loggingService&quot;: &quot;A String&quot;, # The logging service the cluster should use to write logs.
1542 # Currently available options:
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001543 #
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001544 # * `logging.googleapis.com/kubernetes` - The Cloud Logging
1545 # service with a Kubernetes-native resource model
1546 # * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
1547 # available as of GKE 1.15).
1548 # * `none` - no logs will be exported from the cluster.
1549 #
1550 # If left as an empty string,`logging.googleapis.com/kubernetes` will be
1551 # used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
1552 &quot;zone&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
1553 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1554 # cluster resides. This field is deprecated, use location instead.
1555 &quot;legacyAbac&quot;: { # Configuration for the legacy Attribute Based Access Control authorization # Configuration for the legacy ABAC authorization mode.
1556 # mode.
1557 &quot;enabled&quot;: True or False, # Whether the ABAC authorizer is enabled for this cluster. When enabled,
1558 # identities in the system, including service accounts, nodes, and
1559 # controllers, will have statically granted permissions beyond those
1560 # provided by the RBAC configuration or IAM.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001561 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001562 &quot;resourceLabels&quot;: { # The resource labels for the cluster to use to annotate any related
1563 # Google Compute Engine resources.
1564 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001565 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001566 &quot;nodeIpv4CidrSize&quot;: 42, # [Output only] The size of the address space on each node for hosting
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001567 # containers. This is provisioned from within the `container_ipv4_cidr`
1568 # range. This field will only be set when cluster is in route-based network
1569 # mode.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001570 &quot;releaseChannel&quot;: { # ReleaseChannel indicates which release channel a cluster is # Release channel configuration.
1571 # subscribed to. Release channels are arranged in order of risk.
1572 #
1573 # When a cluster is subscribed to a release channel, Google maintains
1574 # both the master version and the node version. Node auto-upgrade
1575 # defaults to true and cannot be disabled.
1576 &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 -07001577 },
1578 &quot;maintenancePolicy&quot;: { # MaintenancePolicy defines the maintenance policy to be used for the cluster. # Configure the maintenance policy for this cluster.
1579 &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 -07001580 &quot;maintenanceExclusions&quot;: { # Exceptions to maintenance window. Non-emergency maintenance should not
1581 # occur in these windows.
1582 &quot;a_key&quot;: { # Represents an arbitrary window of time.
1583 &quot;endTime&quot;: &quot;A String&quot;, # The time that the window ends. The end time should take place after the
1584 # start time.
1585 &quot;startTime&quot;: &quot;A String&quot;, # The time that the window first starts.
1586 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001587 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001588 &quot;dailyMaintenanceWindow&quot;: { # Time window specified for daily maintenance operations. # DailyMaintenanceWindow specifies a daily maintenance operation window.
1589 &quot;duration&quot;: &quot;A String&quot;, # [Output only] Duration of the time window, automatically chosen to be
1590 # smallest possible in the given scenario.
1591 # Duration will be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)
1592 # format &quot;PTnHnMnS&quot;.
1593 &quot;startTime&quot;: &quot;A String&quot;, # Time within the maintenance window to start the maintenance operations.
1594 # Time format should be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)
1595 # format &quot;HH:MM&quot;, where HH : [00-23] and MM : [00-59] GMT.
1596 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001597 &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 -07001598 # maintenance to occur. The time windows may be overlapping. If no
1599 # maintenance windows are set, maintenance can occur at any time.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001600 &quot;window&quot;: { # Represents an arbitrary window of time. # The window of the first recurrence.
1601 &quot;endTime&quot;: &quot;A String&quot;, # The time that the window ends. The end time should take place after the
1602 # start time.
1603 &quot;startTime&quot;: &quot;A String&quot;, # The time that the window first starts.
1604 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001605 &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 -07001606 # this window reccurs. They go on for the span of time between the start and
1607 # end time.
1608 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001609 # For example, to have something repeat every weekday, you&#x27;d use:
Dan O'Mearadd494642020-05-01 07:42:23 -07001610 # &lt;code&gt;FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR&lt;/code&gt;
1611 # To repeat some window daily (equivalent to the DailyMaintenanceWindow):
1612 # &lt;code&gt;FREQ=DAILY&lt;/code&gt;
1613 # For the first weekend of every month:
1614 # &lt;code&gt;FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU&lt;/code&gt;
1615 # This specifies how frequently the window starts. Eg, if you wanted to have
Bu Sun Kim65020912020-05-20 12:08:20 -07001616 # a 9-5 UTC-4 window every weekday, you&#x27;d use something like:
Dan O'Mearadd494642020-05-01 07:42:23 -07001617 # &lt;code&gt;
1618 # start time = 2019-01-01T09:00:00-0400
1619 # end time = 2019-01-01T17:00:00-0400
1620 # recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
1621 # &lt;/code&gt;
1622 # Windows can span multiple days. Eg, to make the window encompass every
1623 # weekend from midnight Saturday till the last minute of Sunday UTC:
1624 # &lt;code&gt;
1625 # start time = 2019-01-05T00:00:00Z
1626 # end time = 2019-01-07T23:59:00Z
1627 # recurrence = FREQ=WEEKLY;BYDAY=SA
1628 # &lt;/code&gt;
Bu Sun Kim65020912020-05-20 12:08:20 -07001629 # Note the start and end time&#x27;s specific dates are largely arbitrary except
Dan O'Mearadd494642020-05-01 07:42:23 -07001630 # to specify duration of the window and when it first starts.
1631 # The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.
Dan O'Mearadd494642020-05-01 07:42:23 -07001632 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001633 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001634 &quot;resourceVersion&quot;: &quot;A String&quot;, # A hash identifying the version of this policy, so that updates to fields of
1635 # the policy won&#x27;t accidentally undo intermediate changes (and so that users
1636 # of the API unaware of some fields won&#x27;t accidentally remove other fields).
Dan O'Mearadd494642020-05-01 07:42:23 -07001637 # Make a &lt;code&gt;get()&lt;/code&gt; request to the cluster to get the current
1638 # resource version and include it with requests to set the policy.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001639 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001640 &quot;monitoringService&quot;: &quot;A String&quot;, # The monitoring service the cluster should use to write metrics.
1641 # Currently available options:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001642 #
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001643 # * &quot;monitoring.googleapis.com/kubernetes&quot; - The Cloud Monitoring
1644 # service with a Kubernetes-native resource model
1645 # * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
1646 # longer available as of GKE 1.15).
1647 # * `none` - No metrics will be exported from the cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -07001648 #
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001649 # If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
1650 # used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
1651 &quot;binaryAuthorization&quot;: { # Configuration for Binary Authorization. # Configuration for Binary Authorization.
1652 &quot;enabled&quot;: True or False, # Enable Binary Authorization for this cluster. If enabled, all container
1653 # images will be validated by Binary Authorization.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001654 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001655 &quot;expireTime&quot;: &quot;A String&quot;, # [Output only] The time the cluster will be automatically
1656 # deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1657 &quot;instanceGroupUrls&quot;: [ # Deprecated. Use node_pools.instance_group_urls.
Bu Sun Kim65020912020-05-20 12:08:20 -07001658 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001659 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001660 &quot;endpoint&quot;: &quot;A String&quot;, # [Output only] The IP address of this cluster&#x27;s master endpoint.
1661 # The endpoint can be accessed from the internet at
1662 # `https://username:password@endpoint/`.
1663 #
1664 # See the `masterAuth` property of this resource for username and
1665 # password information.
1666 &quot;shieldedNodes&quot;: { # Configuration of Shielded Nodes feature. # Shielded Nodes configuration.
1667 &quot;enabled&quot;: True or False, # Whether Shielded Nodes features are enabled on all nodes in this cluster.
1668 },
1669 &quot;masterAuthorizedNetworksConfig&quot;: { # Configuration options for the master authorized networks feature. Enabled # The configuration options for master authorized networks feature.
1670 # master authorized networks will disallow all external traffic to access
1671 # Kubernetes master through HTTPS except traffic from the given CIDR blocks,
1672 # Google Compute Engine Public IPs and Google Prod IPs.
1673 &quot;enabled&quot;: True or False, # Whether or not master authorized networks is enabled.
1674 &quot;cidrBlocks&quot;: [ # cidr_blocks define up to 50 external networks that could access
1675 # Kubernetes master through HTTPS.
1676 { # CidrBlock contains an optional name and one CIDR block.
1677 &quot;displayName&quot;: &quot;A String&quot;, # display_name is an optional field for users to identify CIDR blocks.
1678 &quot;cidrBlock&quot;: &quot;A String&quot;, # cidr_block must be specified in CIDR notation.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001679 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001680 ],
1681 },
1682 &quot;conditions&quot;: [ # Which conditions caused the current cluster state.
1683 { # StatusCondition describes why a cluster or a node pool has a certain status
1684 # (e.g., ERROR or DEGRADED).
1685 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
1686 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
1687 },
1688 ],
1689 &quot;network&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
1690 # [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
1691 # to which the cluster is connected. If left unspecified, the `default`
1692 # network will be used.
1693 &quot;status&quot;: &quot;A String&quot;, # [Output only] The current status of this cluster.
1694 &quot;autoscaling&quot;: { # ClusterAutoscaling contains global, per-cluster information # Cluster-level autoscaling configuration.
1695 # required by Cluster Autoscaler to automatically adjust
1696 # the size of the cluster and create/delete
1697 # node pools based on the current needs.
1698 &quot;resourceLimits&quot;: [ # Contains global constraints regarding minimum and maximum
1699 # amount of resources in the cluster.
1700 { # Contains information about amount of some resource in the cluster.
1701 # For memory, value should be in GB.
1702 &quot;minimum&quot;: &quot;A String&quot;, # Minimum amount of the resource in the cluster.
1703 &quot;resourceType&quot;: &quot;A String&quot;, # Resource name &quot;cpu&quot;, &quot;memory&quot; or gpu-specific string.
1704 &quot;maximum&quot;: &quot;A String&quot;, # Maximum amount of the resource in the cluster.
1705 },
1706 ],
1707 &quot;autoprovisioningNodePoolDefaults&quot;: { # AutoprovisioningNodePoolDefaults contains defaults for a node pool created # AutoprovisioningNodePoolDefaults contains defaults for a node pool
1708 # created by NAP.
1709 # by NAP.
1710 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs.
1711 &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.
1712 # node pool.
1713 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool.
1714 # the Auto Upgrades will proceed.
1715 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
1716 # with the description of the upgrade.
1717 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
1718 # with the approximate start time for the upgrades, in
1719 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1720 },
1721 &quot;autoRepair&quot;: True or False, # A flag that specifies whether the node auto-repair is enabled for the node
1722 # pool. If enabled, the nodes in this node pool will be monitored and, if
1723 # they fail health checks too many times, an automatic repair action will be
1724 # triggered.
1725 &quot;autoUpgrade&quot;: True or False, # A flag that specifies whether node auto-upgrade is enabled for the node
1726 # pool. If enabled, node auto-upgrade helps keep the nodes in your node pool
1727 # up to date with the latest release version of Kubernetes.
1728 },
1729 &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 -07001730 # disruption caused by an upgrade.
1731 #
1732 # maxUnavailable controls the number of nodes that can be simultaneously
1733 # unavailable.
1734 #
1735 # maxSurge controls the number of additional nodes that can be added to the
1736 # node pool temporarily for the time of the upgrade to increase the number of
1737 # available nodes.
1738 #
1739 # (maxUnavailable + maxSurge) determines the level of parallelism (how many
1740 # nodes are being upgraded at the same time).
1741 #
1742 # Note: upgrades inevitably introduce some disruption since workloads need to
1743 # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
1744 # this holds true. (Disruption stays within the limits of
1745 # PodDisruptionBudget, if it is configured.)
1746 #
1747 # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
1748 # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
1749 # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
1750 # down 3 old (not yet upgraded) nodes at the same time. This ensures that
1751 # there are always at least 4 nodes available.
Bu Sun Kim65020912020-05-20 12:08:20 -07001752 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during
Dan O'Mearadd494642020-05-01 07:42:23 -07001753 # the upgrade process. A node is considered available if its status is
1754 # Ready.
Bu Sun Kim65020912020-05-20 12:08:20 -07001755 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size
1756 # of the node pool during the upgrade process.
Dan O'Mearadd494642020-05-01 07:42:23 -07001757 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001758 &quot;oauthScopes&quot;: [ # Scopes that are used by NAP when creating node pools.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001759 &quot;A String&quot;,
1760 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001761 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001762 &quot;enableNodeAutoprovisioning&quot;: True or False, # Enables automatic node pool creation and deletion.
1763 &quot;autoprovisioningLocations&quot;: [ # The list of Google Compute Engine
1764 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
1765 # NodePool&#x27;s nodes can be created by NAP.
1766 &quot;A String&quot;,
1767 ],
1768 },
1769 &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 -07001770 &quot;networkPolicy&quot;: { # Configuration options for the NetworkPolicy feature. # Configuration options for the NetworkPolicy feature.
1771 # https://kubernetes.io/docs/concepts/services-networking/networkpolicies/
Bu Sun Kim65020912020-05-20 12:08:20 -07001772 &quot;enabled&quot;: True or False, # Whether network policy is enabled on the cluster.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001773 &quot;provider&quot;: &quot;A String&quot;, # The selected network policy provider.
Bu Sun Kim65020912020-05-20 12:08:20 -07001774 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001775 &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 -07001776 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001777 # notation (e.g. `10.96.0.0/14`). Leave blank to have
1778 # one automatically chosen or specify a `/14` block in `10.0.0.0/8`.
1779 &quot;defaultMaxPodsConstraint&quot;: { # Constraints applied to pods. # The default constraint on the maximum number of pods that can be run
1780 # simultaneously on a node in the node pool of this cluster. Only honored
1781 # if cluster created with IP Alias support.
1782 &quot;maxPodsPerNode&quot;: &quot;A String&quot;, # Constraint enforced on the max num of pods per node.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001783 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001784 &quot;nodeConfig&quot;: { # Parameters that describe the nodes in a cluster. # Parameters used in creating the cluster&#x27;s nodes.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001785 # For requests, this field should only be used in lieu of a
Bu Sun Kim65020912020-05-20 12:08:20 -07001786 # &quot;node_pool&quot; object, since this configuration (along with the
1787 # &quot;initial_node_count&quot;) will be used to create a &quot;NodePool&quot; object with an
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001788 # auto-generated name. Do not use this and a node_pool at the same time.
1789 # For responses, this field will be populated with the node configuration of
1790 # the first node pool. (For configuration of each node pool, see
1791 # `node_pool.config`)
1792 #
1793 # If unspecified, the defaults are used.
1794 # This field is deprecated, use node_pool.config instead.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001795 &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;)
1796 #
1797 # If unspecified, the default disk type is &#x27;pd-standard&#x27;
1798 &quot;bootDiskKmsKey&quot;: &quot;A String&quot;, #
1799 # The Customer Managed Encryption Key used to encrypt the boot disk attached
1800 # to each node in the node pool. This should be of the form
1801 # projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
1802 # For more information about protecting resources with Cloud KMS Keys please
1803 # see:
1804 # https://cloud.google.com/compute/docs/disks/customer-managed-encryption
1805 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
1806 &quot;enableIntegrityMonitoring&quot;: True or False, # Defines whether the instance has integrity monitoring enabled.
1807 #
1808 # Enables monitoring and attestation of the boot integrity of the instance.
1809 # The attestation is performed against the integrity policy baseline. This
1810 # baseline is initially derived from the implicitly trusted boot image when
1811 # the instance is created.
1812 &quot;enableSecureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled.
1813 #
1814 # Secure Boot helps ensure that the system only runs authentic software by
1815 # verifying the digital signature of all boot components, and halting the
1816 # boot process if signature verification fails.
1817 },
1818 &quot;labels&quot;: { # The map of Kubernetes labels (key/value pairs) to be applied to each node.
1819 # These will added in addition to any default label(s) that
1820 # Kubernetes may apply to the node.
1821 # In case of conflict in label keys, the applied set may differ depending on
1822 # the Kubernetes version -- it&#x27;s best to assume the behavior is undefined
1823 # and conflicts should be avoided.
1824 # For more information, including usage and the valid values, see:
1825 # https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
1826 &quot;a_key&quot;: &quot;A String&quot;,
1827 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001828 &quot;oauthScopes&quot;: [ # The set of Google API scopes to be made available on all of the
1829 # node VMs under the &quot;default&quot; service account.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001830 #
1831 # The following scopes are recommended, but not required, and by default are
1832 # not included:
1833 #
1834 # * `https://www.googleapis.com/auth/compute` is required for mounting
1835 # persistent storage on your nodes.
1836 # * `https://www.googleapis.com/auth/devstorage.read_only` is required for
1837 # communicating with **gcr.io**
Dan O'Mearadd494642020-05-01 07:42:23 -07001838 # (the [Google Container
1839 # Registry](https://cloud.google.com/container-registry/)).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001840 #
1841 # If unspecified, no scopes are added, unless Cloud Logging or Cloud
1842 # Monitoring are enabled, in which case their required scopes will be added.
Bu Sun Kim65020912020-05-20 12:08:20 -07001843 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001844 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001845 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used by this instance. The instance may be
1846 # scheduled on the specified or newer CPU platform. Applicable values are the
1847 # friendly names of CPU platforms, such as
1848 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Haswell&amp;quot;&lt;/code&gt; or
1849 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Sandy Bridge&amp;quot;&lt;/code&gt;. For more
1850 # information, read [how to specify min CPU
1851 # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
1852 &quot;localSsdCount&quot;: 42, # The number of local SSD disks to be attached to the node.
1853 #
1854 # The limit for this value is dependent upon the maximum number of
1855 # disks available on a machine per zone. See:
1856 # https://cloud.google.com/compute/docs/disks/local-ssd
1857 # for more information.
Bu Sun Kim65020912020-05-20 12:08:20 -07001858 &quot;taints&quot;: [ # List of kubernetes taints to be applied to each node.
Dan O'Mearadd494642020-05-01 07:42:23 -07001859 #
1860 # For more information, including usage and the valid values, see:
1861 # https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
1862 { # Kubernetes taint is comprised of three fields: key, value, and effect. Effect
1863 # can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute.
1864 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001865 # See
1866 # [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration)
1867 # for more information, including usage and the valid values.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001868 &quot;value&quot;: &quot;A String&quot;, # Value for taint.
1869 &quot;key&quot;: &quot;A String&quot;, # Key for taint.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001870 &quot;effect&quot;: &quot;A String&quot;, # Effect for taint.
Dan O'Mearadd494642020-05-01 07:42:23 -07001871 },
1872 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001873 &quot;imageType&quot;: &quot;A String&quot;, # The image type to use for this node. Note that for a given image type,
1874 # the latest version of it will be used.
1875 &quot;reservationAffinity&quot;: { # [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) # The optional reservation affinity. Setting this field will apply
1876 # the specified [Zonal Compute
1877 # Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
1878 # to this node pool.
1879 # is the configuration of desired reservation which instances could take
1880 # capacity from.
1881 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Corresponds to the type of reservation consumption.
1882 &quot;key&quot;: &quot;A String&quot;, # Corresponds to the label key of a reservation resource. To target a
1883 # SPECIFIC_RESERVATION by name, specify &quot;googleapis.com/reservation-name&quot; as
1884 # the key and specify the name of your reservation as its value.
1885 &quot;values&quot;: [ # Corresponds to the label value(s) of reservation resource(s).
1886 &quot;A String&quot;,
1887 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001888 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001889 &quot;machineType&quot;: &quot;A String&quot;, # The name of a Google Compute Engine [machine
1890 # type](https://cloud.google.com/compute/docs/machine-types) (e.g.
1891 # `n1-standard-1`).
1892 #
1893 # If unspecified, the default machine type is
1894 # `n1-standard-1`.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001895 &quot;nodeGroup&quot;: &quot;A String&quot;, # Setting this field will assign instances of this
1896 # pool to run on the specified node group. This is useful for running
1897 # workloads on [sole tenant
1898 # nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes).
Bu Sun Kim65020912020-05-20 12:08:20 -07001899 &quot;metadata&quot;: { # The metadata key/value pairs assigned to instances in the cluster.
1900 #
1901 # Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
1902 # in length. These are reflected as part of a URL in the metadata server.
1903 # Additionally, to avoid ambiguity, keys must not conflict with any other
1904 # metadata keys for the project or be one of the reserved keys:
1905 # &quot;cluster-location&quot;
1906 # &quot;cluster-name&quot;
1907 # &quot;cluster-uid&quot;
1908 # &quot;configure-sh&quot;
1909 # &quot;containerd-configure-sh&quot;
1910 # &quot;enable-os-login&quot;
1911 # &quot;gci-ensure-gke-docker&quot;
1912 # &quot;gci-metrics-enabled&quot;
1913 # &quot;gci-update-strategy&quot;
1914 # &quot;instance-template&quot;
1915 # &quot;kube-env&quot;
1916 # &quot;startup-script&quot;
1917 # &quot;user-data&quot;
1918 # &quot;disable-address-manager&quot;
1919 # &quot;windows-startup-script-ps1&quot;
1920 # &quot;common-psm1&quot;
1921 # &quot;k8s-node-setup-psm1&quot;
1922 # &quot;install-ssh-psm1&quot;
1923 # &quot;user-profile-psm1&quot;
1924 # &quot;serial-port-logging-enable&quot;
1925 #
1926 # Values are free-form strings, and only have meaning as interpreted by
1927 # the image running in the instance. The only restriction placed on them is
1928 # that each value&#x27;s size must be less than or equal to 32 KB.
1929 #
1930 # The total size of all keys and values must be less than 512 KB.
1931 &quot;a_key&quot;: &quot;A String&quot;,
1932 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001933 &quot;tags&quot;: [ # The list of instance tags applied to all nodes. Tags are used to identify
1934 # valid sources or targets for network firewalls and are specified by
1935 # the client during cluster or node pool creation. Each tag within the list
1936 # must comply with RFC1035.
1937 &quot;A String&quot;,
1938 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001939 &quot;sandboxConfig&quot;: { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node.
1940 &quot;type&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node.
1941 },
1942 &quot;preemptible&quot;: True or False, # Whether the nodes are created as preemptible VM instances. See:
1943 # https://cloud.google.com/compute/docs/instances/preemptible for more
1944 # information about preemptible VM instances.
1945 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to # The workload metadata configuration for this node.
1946 # workloads on the node pool.
1947 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running
1948 # on the node pool.
1949 },
1950 &quot;diskSizeGb&quot;: 42, # Size of the disk attached to each node, specified in GB.
1951 # The smallest allowed disk size is 10GB.
1952 #
1953 # If unspecified, the default disk size is 100GB.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001954 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs.
1955 # Specify the email address of the Service Account; otherwise, if no Service
1956 # Account is specified, the &quot;default&quot; service account is used.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001957 &quot;accelerators&quot;: [ # A list of hardware accelerators to be attached to each node.
1958 # See https://cloud.google.com/compute/docs/gpus for more information about
1959 # support for GPUs.
1960 { # AcceleratorConfig represents a Hardware Accelerator request.
1961 &quot;acceleratorType&quot;: &quot;A String&quot;, # The accelerator type resource name. List of supported accelerators
1962 # [here](https://cloud.google.com/compute/docs/gpus)
1963 &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of the accelerator cards exposed to an instance.
1964 },
1965 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001966 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001967 &quot;resourceUsageExportConfig&quot;: { # Configuration for exporting cluster resource usages. # Configuration for exporting resource usages. Resource usage export is
1968 # disabled when this config is unspecified.
1969 &quot;enableNetworkEgressMetering&quot;: True or False, # Whether to enable network egress metering for this cluster. If enabled, a
1970 # daemonset will be created in the cluster to meter network egress traffic.
1971 &quot;bigqueryDestination&quot;: { # Parameters for using BigQuery as the destination of resource usage export. # Configuration to use BigQuery as usage export destination.
1972 &quot;datasetId&quot;: &quot;A String&quot;, # The ID of a BigQuery Dataset.
1973 },
1974 &quot;consumptionMeteringConfig&quot;: { # Parameters for controlling consumption metering. # Configuration to enable resource consumption metering.
1975 &quot;enabled&quot;: True or False, # Whether to enable consumption metering for this cluster. If enabled, a
1976 # second BigQuery table will be created to hold resource consumption
1977 # records.
1978 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001979 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001980 &quot;initialNodeCount&quot;: 42, # The number of nodes to create in this cluster. You must ensure that your
1981 # Compute Engine [resource quota](https://cloud.google.com/compute/quotas)
1982 # is sufficient for this number of instances. You must also have available
1983 # firewall and routes quota.
1984 # For requests, this field should only be used in lieu of a
1985 # &quot;node_pool&quot; object, since this configuration (along with the
1986 # &quot;node_config&quot;) will be used to create a &quot;NodePool&quot; object with an
1987 # auto-generated name. Do not use this and a node_pool at the same time.
1988 #
1989 # This field is deprecated, use node_pool.initial_node_count instead.
Bu Sun Kim65020912020-05-20 12:08:20 -07001990 &quot;name&quot;: &quot;A String&quot;, # The name of this cluster. The name must be unique within this project
1991 # and location (e.g. zone or region), and can be up to 40 characters with
1992 # the following restrictions:
1993 #
1994 # * Lowercase letters, numbers, and hyphens only.
1995 # * Must start with a letter.
1996 # * Must end with a number or a letter.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001997 &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
1998 # policies.
1999 # policies.
2000 &quot;workloadPool&quot;: &quot;A String&quot;, # The workload pool to attach all Kubernetes service accounts to.
2001 },
2002 &quot;networkConfig&quot;: { # NetworkConfig reports the relative names of network &amp; subnetwork. # Configuration for cluster networking.
2003 &quot;network&quot;: &quot;A String&quot;, # Output only. The relative name of the Google Compute Engine
2004 # network(https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
2005 # to which the cluster is connected. Example:
2006 # projects/my-project/global/networks/my-network
2007 &quot;enableIntraNodeVisibility&quot;: True or False, # Whether Intra-node visibility is enabled for this cluster.
2008 # This makes same node pod to pod traffic visible for VPC network.
2009 &quot;subnetwork&quot;: &quot;A String&quot;, # Output only. The relative name of the Google Compute Engine
2010 # [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the
2011 # cluster is connected. Example:
2012 # projects/my-project/regions/us-central1/subnetworks/my-subnet
2013 },
2014 &quot;databaseEncryption&quot;: { # Configuration of etcd encryption. # Configuration of etcd encryption.
2015 &quot;state&quot;: &quot;A String&quot;, # Denotes the state of etcd encryption.
2016 &quot;keyName&quot;: &quot;A String&quot;, # Name of CloudKMS key to use for the encryption of secrets in etcd.
2017 # Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key
2018 },
2019 &quot;privateClusterConfig&quot;: { # Configuration options for private clusters. # Configuration for private cluster.
2020 &quot;privateEndpoint&quot;: &quot;A String&quot;, # Output only. The internal IP address of this cluster&#x27;s master endpoint.
2021 &quot;peeringName&quot;: &quot;A String&quot;, # Output only. The peering name in the customer VPC used by this cluster.
2022 &quot;enablePrivateNodes&quot;: True or False, # Whether nodes have internal IP addresses only. If enabled, all nodes are
2023 # given only RFC 1918 private addresses and communicate with the master via
2024 # private networking.
2025 &quot;publicEndpoint&quot;: &quot;A String&quot;, # Output only. The external IP address of this cluster&#x27;s master endpoint.
2026 &quot;enablePrivateEndpoint&quot;: True or False, # Whether the master&#x27;s internal IP address is used as the cluster endpoint.
2027 &quot;masterIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP range in CIDR notation to use for the hosted master network. This
2028 # range will be used for assigning internal IP addresses to the master or
2029 # set of masters, as well as the ILB VIP. This range must not overlap with
2030 # any other ranges in use within the cluster&#x27;s network.
2031 },
2032 &quot;createTime&quot;: &quot;A String&quot;, # [Output only] The time the cluster was created, in
2033 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
2034 &quot;nodePools&quot;: [ # The node pools associated with this cluster.
2035 # This field should not be set if &quot;node_config&quot; or &quot;initial_node_count&quot; are
2036 # specified.
2037 { # NodePool contains the name and configuration for a cluster&#x27;s node pool.
2038 # Node pools are a set of nodes (i.e. VM&#x27;s), with a common configuration and
2039 # specification, under the control of the cluster master. They may have a set
2040 # of Kubernetes labels applied to them, which may be used to reference them
2041 # during pod scheduling. They may also be resized up or down, to accommodate
2042 # the workload.
2043 &quot;selfLink&quot;: &quot;A String&quot;, # [Output only] Server-defined URL for the resource.
2044 &quot;management&quot;: { # NodeManagement defines the set of node management services turned on for the # NodeManagement configuration for this NodePool.
2045 # node pool.
2046 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool.
2047 # the Auto Upgrades will proceed.
2048 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
2049 # with the description of the upgrade.
2050 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
2051 # with the approximate start time for the upgrades, in
2052 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
2053 },
2054 &quot;autoRepair&quot;: True or False, # A flag that specifies whether the node auto-repair is enabled for the node
2055 # pool. If enabled, the nodes in this node pool will be monitored and, if
2056 # they fail health checks too many times, an automatic repair action will be
2057 # triggered.
2058 &quot;autoUpgrade&quot;: True or False, # A flag that specifies whether node auto-upgrade is enabled for the node
2059 # pool. If enabled, node auto-upgrade helps keep the nodes in your node pool
2060 # up to date with the latest release version of Kubernetes.
2061 },
2062 &quot;upgradeSettings&quot;: { # These upgrade settings control the level of parallelism and the level of # Upgrade settings control disruption and speed of the upgrade.
2063 # disruption caused by an upgrade.
2064 #
2065 # maxUnavailable controls the number of nodes that can be simultaneously
2066 # unavailable.
2067 #
2068 # maxSurge controls the number of additional nodes that can be added to the
2069 # node pool temporarily for the time of the upgrade to increase the number of
2070 # available nodes.
2071 #
2072 # (maxUnavailable + maxSurge) determines the level of parallelism (how many
2073 # nodes are being upgraded at the same time).
2074 #
2075 # Note: upgrades inevitably introduce some disruption since workloads need to
2076 # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
2077 # this holds true. (Disruption stays within the limits of
2078 # PodDisruptionBudget, if it is configured.)
2079 #
2080 # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
2081 # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
2082 # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
2083 # down 3 old (not yet upgraded) nodes at the same time. This ensures that
2084 # there are always at least 4 nodes available.
2085 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during
2086 # the upgrade process. A node is considered available if its status is
2087 # Ready.
2088 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size
2089 # of the node pool during the upgrade process.
2090 },
2091 &quot;initialNodeCount&quot;: 42, # The initial node count for the pool. You must ensure that your
2092 # Compute Engine [resource quota](https://cloud.google.com/compute/quotas)
2093 # is sufficient for this number of instances. You must also have available
2094 # firewall and routes quota.
2095 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output only] Additional information about the current status of this
2096 # node pool instance, if available.
2097 &quot;version&quot;: &quot;A String&quot;, # The version of the Kubernetes of this node.
2098 &quot;conditions&quot;: [ # Which conditions caused the current node pool state.
2099 { # StatusCondition describes why a cluster or a node pool has a certain status
2100 # (e.g., ERROR or DEGRADED).
2101 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
2102 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
2103 },
2104 ],
2105 &quot;config&quot;: { # Parameters that describe the nodes in a cluster. # The node configuration of the pool.
2106 &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;)
2107 #
2108 # If unspecified, the default disk type is &#x27;pd-standard&#x27;
2109 &quot;bootDiskKmsKey&quot;: &quot;A String&quot;, #
2110 # The Customer Managed Encryption Key used to encrypt the boot disk attached
2111 # to each node in the node pool. This should be of the form
2112 # projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
2113 # For more information about protecting resources with Cloud KMS Keys please
2114 # see:
2115 # https://cloud.google.com/compute/docs/disks/customer-managed-encryption
2116 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
2117 &quot;enableIntegrityMonitoring&quot;: True or False, # Defines whether the instance has integrity monitoring enabled.
2118 #
2119 # Enables monitoring and attestation of the boot integrity of the instance.
2120 # The attestation is performed against the integrity policy baseline. This
2121 # baseline is initially derived from the implicitly trusted boot image when
2122 # the instance is created.
2123 &quot;enableSecureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled.
2124 #
2125 # Secure Boot helps ensure that the system only runs authentic software by
2126 # verifying the digital signature of all boot components, and halting the
2127 # boot process if signature verification fails.
2128 },
2129 &quot;labels&quot;: { # The map of Kubernetes labels (key/value pairs) to be applied to each node.
2130 # These will added in addition to any default label(s) that
2131 # Kubernetes may apply to the node.
2132 # In case of conflict in label keys, the applied set may differ depending on
2133 # the Kubernetes version -- it&#x27;s best to assume the behavior is undefined
2134 # and conflicts should be avoided.
2135 # For more information, including usage and the valid values, see:
2136 # https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
2137 &quot;a_key&quot;: &quot;A String&quot;,
2138 },
2139 &quot;oauthScopes&quot;: [ # The set of Google API scopes to be made available on all of the
2140 # node VMs under the &quot;default&quot; service account.
2141 #
2142 # The following scopes are recommended, but not required, and by default are
2143 # not included:
2144 #
2145 # * `https://www.googleapis.com/auth/compute` is required for mounting
2146 # persistent storage on your nodes.
2147 # * `https://www.googleapis.com/auth/devstorage.read_only` is required for
2148 # communicating with **gcr.io**
2149 # (the [Google Container
2150 # Registry](https://cloud.google.com/container-registry/)).
2151 #
2152 # If unspecified, no scopes are added, unless Cloud Logging or Cloud
2153 # Monitoring are enabled, in which case their required scopes will be added.
2154 &quot;A String&quot;,
2155 ],
2156 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used by this instance. The instance may be
2157 # scheduled on the specified or newer CPU platform. Applicable values are the
2158 # friendly names of CPU platforms, such as
2159 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Haswell&amp;quot;&lt;/code&gt; or
2160 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Sandy Bridge&amp;quot;&lt;/code&gt;. For more
2161 # information, read [how to specify min CPU
2162 # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
2163 &quot;localSsdCount&quot;: 42, # The number of local SSD disks to be attached to the node.
2164 #
2165 # The limit for this value is dependent upon the maximum number of
2166 # disks available on a machine per zone. See:
2167 # https://cloud.google.com/compute/docs/disks/local-ssd
2168 # for more information.
2169 &quot;taints&quot;: [ # List of kubernetes taints to be applied to each node.
2170 #
2171 # For more information, including usage and the valid values, see:
2172 # https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
2173 { # Kubernetes taint is comprised of three fields: key, value, and effect. Effect
2174 # can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute.
2175 #
2176 # See
2177 # [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration)
2178 # for more information, including usage and the valid values.
2179 &quot;value&quot;: &quot;A String&quot;, # Value for taint.
2180 &quot;key&quot;: &quot;A String&quot;, # Key for taint.
2181 &quot;effect&quot;: &quot;A String&quot;, # Effect for taint.
2182 },
2183 ],
2184 &quot;imageType&quot;: &quot;A String&quot;, # The image type to use for this node. Note that for a given image type,
2185 # the latest version of it will be used.
2186 &quot;reservationAffinity&quot;: { # [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) # The optional reservation affinity. Setting this field will apply
2187 # the specified [Zonal Compute
2188 # Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
2189 # to this node pool.
2190 # is the configuration of desired reservation which instances could take
2191 # capacity from.
2192 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Corresponds to the type of reservation consumption.
2193 &quot;key&quot;: &quot;A String&quot;, # Corresponds to the label key of a reservation resource. To target a
2194 # SPECIFIC_RESERVATION by name, specify &quot;googleapis.com/reservation-name&quot; as
2195 # the key and specify the name of your reservation as its value.
2196 &quot;values&quot;: [ # Corresponds to the label value(s) of reservation resource(s).
2197 &quot;A String&quot;,
2198 ],
2199 },
2200 &quot;machineType&quot;: &quot;A String&quot;, # The name of a Google Compute Engine [machine
2201 # type](https://cloud.google.com/compute/docs/machine-types) (e.g.
2202 # `n1-standard-1`).
2203 #
2204 # If unspecified, the default machine type is
2205 # `n1-standard-1`.
2206 &quot;nodeGroup&quot;: &quot;A String&quot;, # Setting this field will assign instances of this
2207 # pool to run on the specified node group. This is useful for running
2208 # workloads on [sole tenant
2209 # nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes).
2210 &quot;metadata&quot;: { # The metadata key/value pairs assigned to instances in the cluster.
2211 #
2212 # Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
2213 # in length. These are reflected as part of a URL in the metadata server.
2214 # Additionally, to avoid ambiguity, keys must not conflict with any other
2215 # metadata keys for the project or be one of the reserved keys:
2216 # &quot;cluster-location&quot;
2217 # &quot;cluster-name&quot;
2218 # &quot;cluster-uid&quot;
2219 # &quot;configure-sh&quot;
2220 # &quot;containerd-configure-sh&quot;
2221 # &quot;enable-os-login&quot;
2222 # &quot;gci-ensure-gke-docker&quot;
2223 # &quot;gci-metrics-enabled&quot;
2224 # &quot;gci-update-strategy&quot;
2225 # &quot;instance-template&quot;
2226 # &quot;kube-env&quot;
2227 # &quot;startup-script&quot;
2228 # &quot;user-data&quot;
2229 # &quot;disable-address-manager&quot;
2230 # &quot;windows-startup-script-ps1&quot;
2231 # &quot;common-psm1&quot;
2232 # &quot;k8s-node-setup-psm1&quot;
2233 # &quot;install-ssh-psm1&quot;
2234 # &quot;user-profile-psm1&quot;
2235 # &quot;serial-port-logging-enable&quot;
2236 #
2237 # Values are free-form strings, and only have meaning as interpreted by
2238 # the image running in the instance. The only restriction placed on them is
2239 # that each value&#x27;s size must be less than or equal to 32 KB.
2240 #
2241 # The total size of all keys and values must be less than 512 KB.
2242 &quot;a_key&quot;: &quot;A String&quot;,
2243 },
2244 &quot;tags&quot;: [ # The list of instance tags applied to all nodes. Tags are used to identify
2245 # valid sources or targets for network firewalls and are specified by
2246 # the client during cluster or node pool creation. Each tag within the list
2247 # must comply with RFC1035.
2248 &quot;A String&quot;,
2249 ],
2250 &quot;sandboxConfig&quot;: { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node.
2251 &quot;type&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node.
2252 },
2253 &quot;preemptible&quot;: True or False, # Whether the nodes are created as preemptible VM instances. See:
2254 # https://cloud.google.com/compute/docs/instances/preemptible for more
2255 # information about preemptible VM instances.
2256 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to # The workload metadata configuration for this node.
2257 # workloads on the node pool.
2258 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running
2259 # on the node pool.
2260 },
2261 &quot;diskSizeGb&quot;: 42, # Size of the disk attached to each node, specified in GB.
2262 # The smallest allowed disk size is 10GB.
2263 #
2264 # If unspecified, the default disk size is 100GB.
2265 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs.
2266 # Specify the email address of the Service Account; otherwise, if no Service
2267 # Account is specified, the &quot;default&quot; service account is used.
2268 &quot;accelerators&quot;: [ # A list of hardware accelerators to be attached to each node.
2269 # See https://cloud.google.com/compute/docs/gpus for more information about
2270 # support for GPUs.
2271 { # AcceleratorConfig represents a Hardware Accelerator request.
2272 &quot;acceleratorType&quot;: &quot;A String&quot;, # The accelerator type resource name. List of supported accelerators
2273 # [here](https://cloud.google.com/compute/docs/gpus)
2274 &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of the accelerator cards exposed to an instance.
2275 },
2276 ],
2277 },
2278 &quot;name&quot;: &quot;A String&quot;, # The name of the node pool.
2279 &quot;maxPodsConstraint&quot;: { # Constraints applied to pods. # The constraint on the maximum number of pods that can be run
2280 # simultaneously on a node in the node pool.
2281 &quot;maxPodsPerNode&quot;: &quot;A String&quot;, # Constraint enforced on the max num of pods per node.
2282 },
2283 &quot;autoscaling&quot;: { # NodePoolAutoscaling contains information required by cluster autoscaler to # Autoscaler configuration for this NodePool. Autoscaler is enabled
2284 # only if a valid configuration is present.
2285 # adjust the size of the node pool to the current cluster usage.
2286 &quot;minNodeCount&quot;: 42, # Minimum number of nodes in the NodePool. Must be &gt;= 1 and &lt;=
2287 # max_node_count.
2288 &quot;maxNodeCount&quot;: 42, # Maximum number of nodes in the NodePool. Must be &gt;= min_node_count. There
2289 # has to enough quota to scale up the cluster.
2290 &quot;enabled&quot;: True or False, # Is autoscaling enabled for this node pool.
2291 &quot;autoprovisioned&quot;: True or False, # Can this node pool be deleted automatically.
2292 },
2293 &quot;podIpv4CidrSize&quot;: 42, # [Output only] The pod CIDR block size per node in this node pool.
2294 &quot;instanceGroupUrls&quot;: [ # [Output only] The resource URLs of the [managed instance
2295 # groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
2296 # associated with this node pool.
2297 &quot;A String&quot;,
2298 ],
2299 &quot;status&quot;: &quot;A String&quot;, # [Output only] The status of the nodes in this pool instance.
2300 &quot;locations&quot;: [ # The list of Google Compute Engine
2301 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
2302 # NodePool&#x27;s nodes should be located.
2303 &quot;A String&quot;,
2304 ],
2305 },
2306 ],
2307 &quot;subnetwork&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
2308 # [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which
2309 # the cluster is connected.
2310 &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.
2311 # cluster, enabling additional functionality.
2312 &quot;kubernetesDashboard&quot;: { # Configuration for the Kubernetes Dashboard. # Configuration for the Kubernetes Dashboard.
2313 # This addon is deprecated, and will be disabled in 1.15. It is recommended
2314 # to use the Cloud Console to manage and monitor your Kubernetes clusters,
2315 # workloads and applications. For more information, see:
2316 # https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
2317 &quot;disabled&quot;: True or False, # Whether the Kubernetes Dashboard is enabled for this cluster.
2318 },
2319 &quot;cloudRunConfig&quot;: { # Configuration options for the Cloud Run feature. # Configuration for the Cloud Run addon, which allows the user to use a
2320 # managed Knative service.
2321 &quot;disabled&quot;: True or False, # Whether Cloud Run addon is enabled for this cluster.
2322 },
2323 &quot;httpLoadBalancing&quot;: { # Configuration options for the HTTP (L7) load balancing controller addon, # Configuration for the HTTP (L7) load balancing controller addon, which
2324 # makes it easy to set up HTTP load balancers for services in a cluster.
2325 # which makes it easy to set up HTTP load balancers for services in a cluster.
2326 &quot;disabled&quot;: True or False, # Whether the HTTP Load Balancing controller is enabled in the cluster.
2327 # When enabled, it runs a small pod in the cluster that manages the load
2328 # balancers.
2329 },
2330 &quot;horizontalPodAutoscaling&quot;: { # Configuration options for the horizontal pod autoscaling feature, which # Configuration for the horizontal pod autoscaling feature, which
2331 # increases or decreases the number of replica pods a replication controller
2332 # has based on the resource usage of the existing pods.
2333 # increases or decreases the number of replica pods a replication controller
2334 # has based on the resource usage of the existing pods.
2335 &quot;disabled&quot;: True or False, # Whether the Horizontal Pod Autoscaling feature is enabled in the cluster.
2336 # When enabled, it ensures that metrics are collected into Stackdriver
2337 # Monitoring.
2338 },
2339 &quot;dnsCacheConfig&quot;: { # Configuration for NodeLocal DNSCache # Configuration for NodeLocalDNS, a dns cache running on cluster nodes
2340 &quot;enabled&quot;: True or False, # Whether NodeLocal DNSCache is enabled for this cluster.
2341 },
2342 &quot;networkPolicyConfig&quot;: { # Configuration for NetworkPolicy. This only tracks whether the addon # Configuration for NetworkPolicy. This only tracks whether the addon
2343 # is enabled or not on the Master, it does not track whether network policy
2344 # is enabled for the nodes.
2345 # is enabled or not on the Master, it does not track whether network policy
2346 # is enabled for the nodes.
2347 &quot;disabled&quot;: True or False, # Whether NetworkPolicy is enabled for this cluster.
2348 },
2349 },
2350 &quot;masterAuth&quot;: { # The authentication information for accessing the master endpoint. # The authentication information for accessing the master endpoint.
2351 # If unspecified, the defaults are used:
2352 # For clusters before v1.12, if master_auth is unspecified, `username` will
2353 # be set to &quot;admin&quot;, a random password will be generated, and a client
2354 # certificate will be issued.
2355 # Authentication can be done using HTTP basic auth or using client
2356 # certificates.
2357 &quot;clientKey&quot;: &quot;A String&quot;, # [Output only] Base64-encoded private key used by clients to authenticate
2358 # to the cluster endpoint.
2359 &quot;clientCertificate&quot;: &quot;A String&quot;, # [Output only] Base64-encoded public certificate used by clients to
2360 # authenticate to the cluster endpoint.
2361 &quot;username&quot;: &quot;A String&quot;, # The username to use for HTTP basic authentication to the master endpoint.
2362 # For clusters v1.6.0 and later, basic authentication can be disabled by
2363 # leaving username unspecified (or setting it to the empty string).
2364 &quot;password&quot;: &quot;A String&quot;, # The password to use for HTTP basic authentication to the master endpoint.
2365 # Because the master endpoint is open to the Internet, you should create a
2366 # strong password. If a password is provided for cluster creation, username
2367 # must be non-empty.
2368 &quot;clientCertificateConfig&quot;: { # Configuration for client certificates on the cluster. # Configuration for client certificate authentication on the cluster. For
2369 # clusters before v1.12, if no configuration is specified, a client
2370 # certificate is issued.
2371 &quot;issueClientCertificate&quot;: True or False, # Issue a client certificate.
2372 },
2373 &quot;clusterCaCertificate&quot;: &quot;A String&quot;, # [Output only] Base64-encoded public certificate that is the root of
2374 # trust for the cluster.
2375 },
2376 &quot;verticalPodAutoscaling&quot;: { # VerticalPodAutoscaling contains global, per-cluster information # Cluster-level Vertical Pod Autoscaling configuration.
2377 # required by Vertical Pod Autoscaler to automatically adjust
2378 # the resources of pods controlled by it.
2379 &quot;enabled&quot;: True or False, # Enables vertical pod autoscaling.
2380 },
2381 &quot;enableTpu&quot;: True or False, # Enable the ability to use Cloud TPUs in this cluster.
2382 &quot;initialClusterVersion&quot;: &quot;A String&quot;, # The initial Kubernetes version for this cluster. Valid versions are those
2383 # found in validMasterVersions returned by getServerConfig. The version can
2384 # be upgraded over time; such upgrades are reflected in
2385 # currentMasterVersion and currentNodeVersion.
Bu Sun Kim65020912020-05-20 12:08:20 -07002386 #
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002387 # Users may specify either explicit versions offered by
2388 # Kubernetes Engine or version aliases, which have the following behavior:
2389 #
2390 # - &quot;latest&quot;: picks the highest valid Kubernetes version
2391 # - &quot;1.X&quot;: picks the highest valid patch+gke.N patch in the 1.X version
2392 # - &quot;1.X.Y&quot;: picks the highest valid gke.N patch in the 1.X.Y version
2393 # - &quot;1.X.Y-gke.N&quot;: picks an explicit Kubernetes version
2394 # - &quot;&quot;,&quot;-&quot;: picks the default Kubernetes version
2395 &quot;currentNodeCount&quot;: 42, # [Output only] The number of nodes currently in the cluster. Deprecated.
2396 # Call Kubernetes API directly to retrieve node information.
2397 &quot;tpuIpv4CidrBlock&quot;: &quot;A String&quot;, # [Output only] The IP address range of the Cloud TPUs in this cluster, in
2398 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
2399 # notation (e.g. `1.2.3.4/29`).
2400 &quot;locations&quot;: [ # The list of Google Compute Engine
2401 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
2402 # cluster&#x27;s nodes should be located.
2403 &quot;A String&quot;,
2404 ],
2405 &quot;selfLink&quot;: &quot;A String&quot;, # [Output only] Server-defined URL for the resource.
2406 &quot;description&quot;: &quot;A String&quot;, # An optional description of this cluster.
2407 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output only] Additional information about the current status of this
2408 # cluster, if available.
Bu Sun Kim65020912020-05-20 12:08:20 -07002409 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
2410 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
2411 # or
2412 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
2413 # in which the cluster resides.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002414 &quot;servicesIpv4Cidr&quot;: &quot;A String&quot;, # [Output only] The IP address range of the Kubernetes services in
2415 # this cluster, in
2416 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
2417 # notation (e.g. `1.2.3.4/29`). Service addresses are
2418 # typically put in the last `/16` from the container CIDR.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002419 }</pre>
2420</div>
2421
2422<div class="method">
2423 <code class="details" id="getJwks">getJwks(parent, x__xgafv=None)</code>
2424 <pre>Gets the public component of the cluster signing keys in
2425JSON Web Key format.
2426This API is not yet intended for general use, and is not available for all
2427clusters.
2428
2429Args:
2430 parent: string, The cluster (project, location, cluster id) to get keys for. Specified in
Bu Sun Kim65020912020-05-20 12:08:20 -07002431the format `projects/*/locations/*/clusters/*`. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002432 x__xgafv: string, V1 error format.
2433 Allowed values
2434 1 - v1 error format
2435 2 - v2 error format
2436
2437Returns:
2438 An object of the form:
2439
2440 { # GetJSONWebKeysResponse is a valid JSON Web Key Set as specififed in rfc 7517
Bu Sun Kim65020912020-05-20 12:08:20 -07002441 &quot;keys&quot;: [ # The public component of the keys used by the cluster to sign token
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002442 # requests.
2443 { # Jwk is a JSON Web Key as specified in RFC 7517
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002444 &quot;alg&quot;: &quot;A String&quot;, # Algorithm.
2445 &quot;y&quot;: &quot;A String&quot;, # Used for ECDSA keys.
2446 &quot;use&quot;: &quot;A String&quot;, # Permitted uses for the public keys.
2447 &quot;e&quot;: &quot;A String&quot;, # Used for RSA keys.
2448 &quot;kid&quot;: &quot;A String&quot;, # Key ID.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002449 &quot;x&quot;: &quot;A String&quot;, # Used for ECDSA keys.
Bu Sun Kim65020912020-05-20 12:08:20 -07002450 &quot;crv&quot;: &quot;A String&quot;, # Used for ECDSA keys.
Bu Sun Kim65020912020-05-20 12:08:20 -07002451 &quot;n&quot;: &quot;A String&quot;, # Used for RSA keys.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002452 &quot;kty&quot;: &quot;A String&quot;, # Key Type.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002453 },
2454 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002455 &quot;cacheHeader&quot;: { # RFC-2616: cache control support # OnePlatform automatically extracts this field and uses it to set the HTTP
2456 # Cache-Control header.
2457 &quot;expires&quot;: &quot;A String&quot;, # 14.21 response cache expires, in RFC 1123 date format
2458 &quot;directive&quot;: &quot;A String&quot;, # 14.9 request and response directives
2459 &quot;age&quot;: &quot;A String&quot;, # 14.6 response cache age, in seconds since the response is generated
2460 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002461 }</pre>
2462</div>
2463
2464<div class="method">
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002465 <code class="details" id="list">list(parent, zone=None, projectId=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002466 <pre>Lists all clusters owned by a project in either the specified zone or all
2467zones.
2468
2469Args:
2470 parent: string, The parent (project and location) where the clusters will be listed.
Bu Sun Kim65020912020-05-20 12:08:20 -07002471Specified in the format `projects/*/locations/*`.
2472Location &quot;-&quot; matches all zones and all regions. (required)
Bu Sun Kim65020912020-05-20 12:08:20 -07002473 zone: string, Deprecated. The name of the Google Compute Engine
2474[zone](https://cloud.google.com/compute/docs/zones#available) in which the
2475cluster resides, or &quot;-&quot; for all zones. This field has been deprecated and
2476replaced by the parent field.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002477 projectId: string, Deprecated. The Google Developers Console [project ID or project
2478number](https://support.google.com/cloud/answer/6158840).
2479This field has been deprecated and replaced by the parent field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002480 x__xgafv: string, V1 error format.
2481 Allowed values
2482 1 - v1 error format
2483 2 - v2 error format
2484
2485Returns:
2486 An object of the form:
2487
2488 { # ListClustersResponse is the result of ListClustersRequest.
Bu Sun Kim65020912020-05-20 12:08:20 -07002489 &quot;clusters&quot;: [ # A list of clusters in the project in the specified zone, or
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002490 # across all ones.
2491 { # A Google Kubernetes Engine cluster.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002492 &quot;currentMasterVersion&quot;: &quot;A String&quot;, # [Output only] The current software version of the master endpoint.
2493 &quot;currentNodeVersion&quot;: &quot;A String&quot;, # [Output only] Deprecated, use
2494 # [NodePools.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools)
2495 # instead. The current version of the node software components. If they are
2496 # currently at multiple versions because they&#x27;re in the process of being
2497 # upgraded, this reflects the minimum version of all nodes.
2498 &quot;authenticatorGroupsConfig&quot;: { # Configuration for returning group information from authenticators. # Configuration controlling RBAC group membership information.
2499 &quot;securityGroup&quot;: &quot;A String&quot;, # The name of the security group-of-groups to be used. Only relevant
2500 # if enabled = true.
2501 &quot;enabled&quot;: True or False, # Whether this cluster should return group membership lookups
2502 # during authentication using a group of security groups.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002503 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002504 &quot;enableKubernetesAlpha&quot;: True or False, # Kubernetes alpha features are enabled on this cluster. This includes alpha
2505 # API groups (e.g. v1alpha1) and features that may not be production ready in
2506 # the kubernetes version of the master and nodes.
2507 # The cluster has no SLA for uptime and master/node upgrades are disabled.
2508 # Alpha enabled clusters are automatically deleted thirty days after
2509 # creation.
2510 &quot;ipAllocationPolicy&quot;: { # Configuration for controlling how IPs are allocated in the cluster. # Configuration for cluster IP allocation.
2511 &quot;servicesSecondaryRangeName&quot;: &quot;A String&quot;, # The name of the secondary range to be used as for the services
2512 # CIDR block. The secondary range will be used for service
2513 # ClusterIPs. This must be an existing secondary range associated
2514 # with the cluster subnetwork.
2515 #
2516 # This field is only applicable with use_ip_aliases is true and
2517 # create_subnetwork is false.
2518 &quot;subnetworkName&quot;: &quot;A String&quot;, # A custom subnetwork name to be used if `create_subnetwork` is true. If
2519 # this field is empty, then an automatic name will be chosen for the new
2520 # subnetwork.
2521 &quot;nodeIpv4Cidr&quot;: &quot;A String&quot;, # This field is deprecated, use node_ipv4_cidr_block.
2522 &quot;servicesIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP address range of the services IPs in this cluster. If blank, a range
2523 # will be automatically chosen with the default size.
2524 #
2525 # This field is only applicable when `use_ip_aliases` is true.
2526 #
2527 # Set to blank to have a range chosen with the default size.
2528 #
2529 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
2530 # netmask.
2531 #
2532 # Set to a
2533 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
2534 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
2535 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
2536 # to use.
2537 &quot;servicesIpv4Cidr&quot;: &quot;A String&quot;, # This field is deprecated, use services_ipv4_cidr_block.
2538 &quot;clusterSecondaryRangeName&quot;: &quot;A String&quot;, # The name of the secondary range to be used for the cluster CIDR
2539 # block. The secondary range will be used for pod IP
2540 # addresses. This must be an existing secondary range associated
2541 # with the cluster subnetwork.
2542 #
2543 # This field is only applicable with use_ip_aliases is true and
2544 # create_subnetwork is false.
2545 &quot;tpuIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP address range of the Cloud TPUs in this cluster. If unspecified, a
2546 # range will be automatically chosen with the default size.
2547 #
2548 # This field is only applicable when `use_ip_aliases` is true.
2549 #
2550 # If unspecified, the range will use the default size.
2551 #
2552 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
2553 # netmask.
2554 #
2555 # Set to a
2556 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
2557 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
2558 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
2559 # to use.
2560 &quot;nodeIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP address range of the instance IPs in this cluster.
2561 #
2562 # This is applicable only if `create_subnetwork` is true.
2563 #
2564 # Set to blank to have a range chosen with the default size.
2565 #
2566 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
2567 # netmask.
2568 #
2569 # Set to a
2570 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
2571 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
2572 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
2573 # to use.
2574 &quot;useIpAliases&quot;: True or False, # Whether alias IPs will be used for pod IPs in the cluster.
2575 &quot;createSubnetwork&quot;: True or False, # Whether a new subnetwork will be created automatically for the cluster.
2576 #
2577 # This field is only applicable when `use_ip_aliases` is true.
2578 &quot;clusterIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP address range for the cluster pod IPs. If this field is set, then
2579 # `cluster.cluster_ipv4_cidr` must be left blank.
2580 #
2581 # This field is only applicable when `use_ip_aliases` is true.
2582 #
2583 # Set to blank to have a range chosen with the default size.
2584 #
2585 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
2586 # netmask.
2587 #
2588 # Set to a
2589 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
2590 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
2591 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
2592 # to use.
2593 &quot;clusterIpv4Cidr&quot;: &quot;A String&quot;, # This field is deprecated, use cluster_ipv4_cidr_block.
2594 },
2595 &quot;loggingService&quot;: &quot;A String&quot;, # The logging service the cluster should use to write logs.
2596 # Currently available options:
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002597 #
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002598 # * `logging.googleapis.com/kubernetes` - The Cloud Logging
2599 # service with a Kubernetes-native resource model
2600 # * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
2601 # available as of GKE 1.15).
2602 # * `none` - no logs will be exported from the cluster.
2603 #
2604 # If left as an empty string,`logging.googleapis.com/kubernetes` will be
2605 # used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
2606 &quot;zone&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
2607 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
2608 # cluster resides. This field is deprecated, use location instead.
2609 &quot;legacyAbac&quot;: { # Configuration for the legacy Attribute Based Access Control authorization # Configuration for the legacy ABAC authorization mode.
2610 # mode.
2611 &quot;enabled&quot;: True or False, # Whether the ABAC authorizer is enabled for this cluster. When enabled,
2612 # identities in the system, including service accounts, nodes, and
2613 # controllers, will have statically granted permissions beyond those
2614 # provided by the RBAC configuration or IAM.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002615 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002616 &quot;resourceLabels&quot;: { # The resource labels for the cluster to use to annotate any related
2617 # Google Compute Engine resources.
2618 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002619 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002620 &quot;nodeIpv4CidrSize&quot;: 42, # [Output only] The size of the address space on each node for hosting
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002621 # containers. This is provisioned from within the `container_ipv4_cidr`
2622 # range. This field will only be set when cluster is in route-based network
2623 # mode.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002624 &quot;releaseChannel&quot;: { # ReleaseChannel indicates which release channel a cluster is # Release channel configuration.
2625 # subscribed to. Release channels are arranged in order of risk.
2626 #
2627 # When a cluster is subscribed to a release channel, Google maintains
2628 # both the master version and the node version. Node auto-upgrade
2629 # defaults to true and cannot be disabled.
2630 &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 -07002631 },
2632 &quot;maintenancePolicy&quot;: { # MaintenancePolicy defines the maintenance policy to be used for the cluster. # Configure the maintenance policy for this cluster.
2633 &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 -07002634 &quot;maintenanceExclusions&quot;: { # Exceptions to maintenance window. Non-emergency maintenance should not
2635 # occur in these windows.
2636 &quot;a_key&quot;: { # Represents an arbitrary window of time.
2637 &quot;endTime&quot;: &quot;A String&quot;, # The time that the window ends. The end time should take place after the
2638 # start time.
2639 &quot;startTime&quot;: &quot;A String&quot;, # The time that the window first starts.
2640 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002641 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002642 &quot;dailyMaintenanceWindow&quot;: { # Time window specified for daily maintenance operations. # DailyMaintenanceWindow specifies a daily maintenance operation window.
2643 &quot;duration&quot;: &quot;A String&quot;, # [Output only] Duration of the time window, automatically chosen to be
2644 # smallest possible in the given scenario.
2645 # Duration will be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)
2646 # format &quot;PTnHnMnS&quot;.
2647 &quot;startTime&quot;: &quot;A String&quot;, # Time within the maintenance window to start the maintenance operations.
2648 # Time format should be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)
2649 # format &quot;HH:MM&quot;, where HH : [00-23] and MM : [00-59] GMT.
2650 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002651 &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 -07002652 # maintenance to occur. The time windows may be overlapping. If no
2653 # maintenance windows are set, maintenance can occur at any time.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002654 &quot;window&quot;: { # Represents an arbitrary window of time. # The window of the first recurrence.
2655 &quot;endTime&quot;: &quot;A String&quot;, # The time that the window ends. The end time should take place after the
2656 # start time.
2657 &quot;startTime&quot;: &quot;A String&quot;, # The time that the window first starts.
2658 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002659 &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 -07002660 # this window reccurs. They go on for the span of time between the start and
2661 # end time.
2662 #
Bu Sun Kim65020912020-05-20 12:08:20 -07002663 # For example, to have something repeat every weekday, you&#x27;d use:
Dan O'Mearadd494642020-05-01 07:42:23 -07002664 # &lt;code&gt;FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR&lt;/code&gt;
2665 # To repeat some window daily (equivalent to the DailyMaintenanceWindow):
2666 # &lt;code&gt;FREQ=DAILY&lt;/code&gt;
2667 # For the first weekend of every month:
2668 # &lt;code&gt;FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU&lt;/code&gt;
2669 # This specifies how frequently the window starts. Eg, if you wanted to have
Bu Sun Kim65020912020-05-20 12:08:20 -07002670 # a 9-5 UTC-4 window every weekday, you&#x27;d use something like:
Dan O'Mearadd494642020-05-01 07:42:23 -07002671 # &lt;code&gt;
2672 # start time = 2019-01-01T09:00:00-0400
2673 # end time = 2019-01-01T17:00:00-0400
2674 # recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
2675 # &lt;/code&gt;
2676 # Windows can span multiple days. Eg, to make the window encompass every
2677 # weekend from midnight Saturday till the last minute of Sunday UTC:
2678 # &lt;code&gt;
2679 # start time = 2019-01-05T00:00:00Z
2680 # end time = 2019-01-07T23:59:00Z
2681 # recurrence = FREQ=WEEKLY;BYDAY=SA
2682 # &lt;/code&gt;
Bu Sun Kim65020912020-05-20 12:08:20 -07002683 # Note the start and end time&#x27;s specific dates are largely arbitrary except
Dan O'Mearadd494642020-05-01 07:42:23 -07002684 # to specify duration of the window and when it first starts.
2685 # The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.
Dan O'Mearadd494642020-05-01 07:42:23 -07002686 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002687 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002688 &quot;resourceVersion&quot;: &quot;A String&quot;, # A hash identifying the version of this policy, so that updates to fields of
2689 # the policy won&#x27;t accidentally undo intermediate changes (and so that users
2690 # of the API unaware of some fields won&#x27;t accidentally remove other fields).
Dan O'Mearadd494642020-05-01 07:42:23 -07002691 # Make a &lt;code&gt;get()&lt;/code&gt; request to the cluster to get the current
2692 # resource version and include it with requests to set the policy.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002693 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002694 &quot;monitoringService&quot;: &quot;A String&quot;, # The monitoring service the cluster should use to write metrics.
2695 # Currently available options:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002696 #
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002697 # * &quot;monitoring.googleapis.com/kubernetes&quot; - The Cloud Monitoring
2698 # service with a Kubernetes-native resource model
2699 # * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
2700 # longer available as of GKE 1.15).
2701 # * `none` - No metrics will be exported from the cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -07002702 #
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002703 # If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
2704 # used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
2705 &quot;binaryAuthorization&quot;: { # Configuration for Binary Authorization. # Configuration for Binary Authorization.
2706 &quot;enabled&quot;: True or False, # Enable Binary Authorization for this cluster. If enabled, all container
2707 # images will be validated by Binary Authorization.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002708 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002709 &quot;expireTime&quot;: &quot;A String&quot;, # [Output only] The time the cluster will be automatically
2710 # deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
2711 &quot;instanceGroupUrls&quot;: [ # Deprecated. Use node_pools.instance_group_urls.
Bu Sun Kim65020912020-05-20 12:08:20 -07002712 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002713 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002714 &quot;endpoint&quot;: &quot;A String&quot;, # [Output only] The IP address of this cluster&#x27;s master endpoint.
2715 # The endpoint can be accessed from the internet at
2716 # `https://username:password@endpoint/`.
2717 #
2718 # See the `masterAuth` property of this resource for username and
2719 # password information.
2720 &quot;shieldedNodes&quot;: { # Configuration of Shielded Nodes feature. # Shielded Nodes configuration.
2721 &quot;enabled&quot;: True or False, # Whether Shielded Nodes features are enabled on all nodes in this cluster.
2722 },
2723 &quot;masterAuthorizedNetworksConfig&quot;: { # Configuration options for the master authorized networks feature. Enabled # The configuration options for master authorized networks feature.
2724 # master authorized networks will disallow all external traffic to access
2725 # Kubernetes master through HTTPS except traffic from the given CIDR blocks,
2726 # Google Compute Engine Public IPs and Google Prod IPs.
2727 &quot;enabled&quot;: True or False, # Whether or not master authorized networks is enabled.
2728 &quot;cidrBlocks&quot;: [ # cidr_blocks define up to 50 external networks that could access
2729 # Kubernetes master through HTTPS.
2730 { # CidrBlock contains an optional name and one CIDR block.
2731 &quot;displayName&quot;: &quot;A String&quot;, # display_name is an optional field for users to identify CIDR blocks.
2732 &quot;cidrBlock&quot;: &quot;A String&quot;, # cidr_block must be specified in CIDR notation.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002733 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002734 ],
2735 },
2736 &quot;conditions&quot;: [ # Which conditions caused the current cluster state.
2737 { # StatusCondition describes why a cluster or a node pool has a certain status
2738 # (e.g., ERROR or DEGRADED).
2739 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
2740 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
2741 },
2742 ],
2743 &quot;network&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
2744 # [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
2745 # to which the cluster is connected. If left unspecified, the `default`
2746 # network will be used.
2747 &quot;status&quot;: &quot;A String&quot;, # [Output only] The current status of this cluster.
2748 &quot;autoscaling&quot;: { # ClusterAutoscaling contains global, per-cluster information # Cluster-level autoscaling configuration.
2749 # required by Cluster Autoscaler to automatically adjust
2750 # the size of the cluster and create/delete
2751 # node pools based on the current needs.
2752 &quot;resourceLimits&quot;: [ # Contains global constraints regarding minimum and maximum
2753 # amount of resources in the cluster.
2754 { # Contains information about amount of some resource in the cluster.
2755 # For memory, value should be in GB.
2756 &quot;minimum&quot;: &quot;A String&quot;, # Minimum amount of the resource in the cluster.
2757 &quot;resourceType&quot;: &quot;A String&quot;, # Resource name &quot;cpu&quot;, &quot;memory&quot; or gpu-specific string.
2758 &quot;maximum&quot;: &quot;A String&quot;, # Maximum amount of the resource in the cluster.
2759 },
2760 ],
2761 &quot;autoprovisioningNodePoolDefaults&quot;: { # AutoprovisioningNodePoolDefaults contains defaults for a node pool created # AutoprovisioningNodePoolDefaults contains defaults for a node pool
2762 # created by NAP.
2763 # by NAP.
2764 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs.
2765 &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.
2766 # node pool.
2767 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool.
2768 # the Auto Upgrades will proceed.
2769 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
2770 # with the description of the upgrade.
2771 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
2772 # with the approximate start time for the upgrades, in
2773 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
2774 },
2775 &quot;autoRepair&quot;: True or False, # A flag that specifies whether the node auto-repair is enabled for the node
2776 # pool. If enabled, the nodes in this node pool will be monitored and, if
2777 # they fail health checks too many times, an automatic repair action will be
2778 # triggered.
2779 &quot;autoUpgrade&quot;: True or False, # A flag that specifies whether node auto-upgrade is enabled for the node
2780 # pool. If enabled, node auto-upgrade helps keep the nodes in your node pool
2781 # up to date with the latest release version of Kubernetes.
2782 },
2783 &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 -07002784 # disruption caused by an upgrade.
2785 #
2786 # maxUnavailable controls the number of nodes that can be simultaneously
2787 # unavailable.
2788 #
2789 # maxSurge controls the number of additional nodes that can be added to the
2790 # node pool temporarily for the time of the upgrade to increase the number of
2791 # available nodes.
2792 #
2793 # (maxUnavailable + maxSurge) determines the level of parallelism (how many
2794 # nodes are being upgraded at the same time).
2795 #
2796 # Note: upgrades inevitably introduce some disruption since workloads need to
2797 # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
2798 # this holds true. (Disruption stays within the limits of
2799 # PodDisruptionBudget, if it is configured.)
2800 #
2801 # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
2802 # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
2803 # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
2804 # down 3 old (not yet upgraded) nodes at the same time. This ensures that
2805 # there are always at least 4 nodes available.
Bu Sun Kim65020912020-05-20 12:08:20 -07002806 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during
Dan O'Mearadd494642020-05-01 07:42:23 -07002807 # the upgrade process. A node is considered available if its status is
2808 # Ready.
Bu Sun Kim65020912020-05-20 12:08:20 -07002809 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size
2810 # of the node pool during the upgrade process.
Dan O'Mearadd494642020-05-01 07:42:23 -07002811 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002812 &quot;oauthScopes&quot;: [ # Scopes that are used by NAP when creating node pools.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002813 &quot;A String&quot;,
2814 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002815 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002816 &quot;enableNodeAutoprovisioning&quot;: True or False, # Enables automatic node pool creation and deletion.
2817 &quot;autoprovisioningLocations&quot;: [ # The list of Google Compute Engine
2818 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
2819 # NodePool&#x27;s nodes can be created by NAP.
2820 &quot;A String&quot;,
2821 ],
2822 },
2823 &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 -07002824 &quot;networkPolicy&quot;: { # Configuration options for the NetworkPolicy feature. # Configuration options for the NetworkPolicy feature.
2825 # https://kubernetes.io/docs/concepts/services-networking/networkpolicies/
Bu Sun Kim65020912020-05-20 12:08:20 -07002826 &quot;enabled&quot;: True or False, # Whether network policy is enabled on the cluster.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002827 &quot;provider&quot;: &quot;A String&quot;, # The selected network policy provider.
Bu Sun Kim65020912020-05-20 12:08:20 -07002828 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002829 &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 -07002830 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002831 # notation (e.g. `10.96.0.0/14`). Leave blank to have
2832 # one automatically chosen or specify a `/14` block in `10.0.0.0/8`.
2833 &quot;defaultMaxPodsConstraint&quot;: { # Constraints applied to pods. # The default constraint on the maximum number of pods that can be run
2834 # simultaneously on a node in the node pool of this cluster. Only honored
2835 # if cluster created with IP Alias support.
2836 &quot;maxPodsPerNode&quot;: &quot;A String&quot;, # Constraint enforced on the max num of pods per node.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002837 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002838 &quot;nodeConfig&quot;: { # Parameters that describe the nodes in a cluster. # Parameters used in creating the cluster&#x27;s nodes.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002839 # For requests, this field should only be used in lieu of a
Bu Sun Kim65020912020-05-20 12:08:20 -07002840 # &quot;node_pool&quot; object, since this configuration (along with the
2841 # &quot;initial_node_count&quot;) will be used to create a &quot;NodePool&quot; object with an
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002842 # auto-generated name. Do not use this and a node_pool at the same time.
2843 # For responses, this field will be populated with the node configuration of
2844 # the first node pool. (For configuration of each node pool, see
2845 # `node_pool.config`)
2846 #
2847 # If unspecified, the defaults are used.
2848 # This field is deprecated, use node_pool.config instead.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002849 &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;)
2850 #
2851 # If unspecified, the default disk type is &#x27;pd-standard&#x27;
2852 &quot;bootDiskKmsKey&quot;: &quot;A String&quot;, #
2853 # The Customer Managed Encryption Key used to encrypt the boot disk attached
2854 # to each node in the node pool. This should be of the form
2855 # projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
2856 # For more information about protecting resources with Cloud KMS Keys please
2857 # see:
2858 # https://cloud.google.com/compute/docs/disks/customer-managed-encryption
2859 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
2860 &quot;enableIntegrityMonitoring&quot;: True or False, # Defines whether the instance has integrity monitoring enabled.
2861 #
2862 # Enables monitoring and attestation of the boot integrity of the instance.
2863 # The attestation is performed against the integrity policy baseline. This
2864 # baseline is initially derived from the implicitly trusted boot image when
2865 # the instance is created.
2866 &quot;enableSecureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled.
2867 #
2868 # Secure Boot helps ensure that the system only runs authentic software by
2869 # verifying the digital signature of all boot components, and halting the
2870 # boot process if signature verification fails.
2871 },
2872 &quot;labels&quot;: { # The map of Kubernetes labels (key/value pairs) to be applied to each node.
2873 # These will added in addition to any default label(s) that
2874 # Kubernetes may apply to the node.
2875 # In case of conflict in label keys, the applied set may differ depending on
2876 # the Kubernetes version -- it&#x27;s best to assume the behavior is undefined
2877 # and conflicts should be avoided.
2878 # For more information, including usage and the valid values, see:
2879 # https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
2880 &quot;a_key&quot;: &quot;A String&quot;,
2881 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002882 &quot;oauthScopes&quot;: [ # The set of Google API scopes to be made available on all of the
2883 # node VMs under the &quot;default&quot; service account.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002884 #
2885 # The following scopes are recommended, but not required, and by default are
2886 # not included:
2887 #
2888 # * `https://www.googleapis.com/auth/compute` is required for mounting
2889 # persistent storage on your nodes.
2890 # * `https://www.googleapis.com/auth/devstorage.read_only` is required for
2891 # communicating with **gcr.io**
Dan O'Mearadd494642020-05-01 07:42:23 -07002892 # (the [Google Container
2893 # Registry](https://cloud.google.com/container-registry/)).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002894 #
2895 # If unspecified, no scopes are added, unless Cloud Logging or Cloud
2896 # Monitoring are enabled, in which case their required scopes will be added.
Bu Sun Kim65020912020-05-20 12:08:20 -07002897 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002898 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002899 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used by this instance. The instance may be
2900 # scheduled on the specified or newer CPU platform. Applicable values are the
2901 # friendly names of CPU platforms, such as
2902 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Haswell&amp;quot;&lt;/code&gt; or
2903 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Sandy Bridge&amp;quot;&lt;/code&gt;. For more
2904 # information, read [how to specify min CPU
2905 # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
2906 &quot;localSsdCount&quot;: 42, # The number of local SSD disks to be attached to the node.
2907 #
2908 # The limit for this value is dependent upon the maximum number of
2909 # disks available on a machine per zone. See:
2910 # https://cloud.google.com/compute/docs/disks/local-ssd
2911 # for more information.
Bu Sun Kim65020912020-05-20 12:08:20 -07002912 &quot;taints&quot;: [ # List of kubernetes taints to be applied to each node.
Dan O'Mearadd494642020-05-01 07:42:23 -07002913 #
2914 # For more information, including usage and the valid values, see:
2915 # https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
2916 { # Kubernetes taint is comprised of three fields: key, value, and effect. Effect
2917 # can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute.
2918 #
Bu Sun Kim65020912020-05-20 12:08:20 -07002919 # See
2920 # [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration)
2921 # for more information, including usage and the valid values.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002922 &quot;value&quot;: &quot;A String&quot;, # Value for taint.
2923 &quot;key&quot;: &quot;A String&quot;, # Key for taint.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002924 &quot;effect&quot;: &quot;A String&quot;, # Effect for taint.
Dan O'Mearadd494642020-05-01 07:42:23 -07002925 },
2926 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002927 &quot;imageType&quot;: &quot;A String&quot;, # The image type to use for this node. Note that for a given image type,
2928 # the latest version of it will be used.
2929 &quot;reservationAffinity&quot;: { # [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) # The optional reservation affinity. Setting this field will apply
2930 # the specified [Zonal Compute
2931 # Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
2932 # to this node pool.
2933 # is the configuration of desired reservation which instances could take
2934 # capacity from.
2935 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Corresponds to the type of reservation consumption.
2936 &quot;key&quot;: &quot;A String&quot;, # Corresponds to the label key of a reservation resource. To target a
2937 # SPECIFIC_RESERVATION by name, specify &quot;googleapis.com/reservation-name&quot; as
2938 # the key and specify the name of your reservation as its value.
2939 &quot;values&quot;: [ # Corresponds to the label value(s) of reservation resource(s).
2940 &quot;A String&quot;,
2941 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002942 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002943 &quot;machineType&quot;: &quot;A String&quot;, # The name of a Google Compute Engine [machine
2944 # type](https://cloud.google.com/compute/docs/machine-types) (e.g.
2945 # `n1-standard-1`).
2946 #
2947 # If unspecified, the default machine type is
2948 # `n1-standard-1`.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002949 &quot;nodeGroup&quot;: &quot;A String&quot;, # Setting this field will assign instances of this
2950 # pool to run on the specified node group. This is useful for running
2951 # workloads on [sole tenant
2952 # nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes).
Bu Sun Kim65020912020-05-20 12:08:20 -07002953 &quot;metadata&quot;: { # The metadata key/value pairs assigned to instances in the cluster.
2954 #
2955 # Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
2956 # in length. These are reflected as part of a URL in the metadata server.
2957 # Additionally, to avoid ambiguity, keys must not conflict with any other
2958 # metadata keys for the project or be one of the reserved keys:
2959 # &quot;cluster-location&quot;
2960 # &quot;cluster-name&quot;
2961 # &quot;cluster-uid&quot;
2962 # &quot;configure-sh&quot;
2963 # &quot;containerd-configure-sh&quot;
2964 # &quot;enable-os-login&quot;
2965 # &quot;gci-ensure-gke-docker&quot;
2966 # &quot;gci-metrics-enabled&quot;
2967 # &quot;gci-update-strategy&quot;
2968 # &quot;instance-template&quot;
2969 # &quot;kube-env&quot;
2970 # &quot;startup-script&quot;
2971 # &quot;user-data&quot;
2972 # &quot;disable-address-manager&quot;
2973 # &quot;windows-startup-script-ps1&quot;
2974 # &quot;common-psm1&quot;
2975 # &quot;k8s-node-setup-psm1&quot;
2976 # &quot;install-ssh-psm1&quot;
2977 # &quot;user-profile-psm1&quot;
2978 # &quot;serial-port-logging-enable&quot;
2979 #
2980 # Values are free-form strings, and only have meaning as interpreted by
2981 # the image running in the instance. The only restriction placed on them is
2982 # that each value&#x27;s size must be less than or equal to 32 KB.
2983 #
2984 # The total size of all keys and values must be less than 512 KB.
2985 &quot;a_key&quot;: &quot;A String&quot;,
2986 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002987 &quot;tags&quot;: [ # The list of instance tags applied to all nodes. Tags are used to identify
2988 # valid sources or targets for network firewalls and are specified by
2989 # the client during cluster or node pool creation. Each tag within the list
2990 # must comply with RFC1035.
2991 &quot;A String&quot;,
2992 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002993 &quot;sandboxConfig&quot;: { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node.
2994 &quot;type&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node.
2995 },
2996 &quot;preemptible&quot;: True or False, # Whether the nodes are created as preemptible VM instances. See:
2997 # https://cloud.google.com/compute/docs/instances/preemptible for more
2998 # information about preemptible VM instances.
2999 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to # The workload metadata configuration for this node.
3000 # workloads on the node pool.
3001 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running
3002 # on the node pool.
3003 },
3004 &quot;diskSizeGb&quot;: 42, # Size of the disk attached to each node, specified in GB.
3005 # The smallest allowed disk size is 10GB.
3006 #
3007 # If unspecified, the default disk size is 100GB.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003008 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs.
3009 # Specify the email address of the Service Account; otherwise, if no Service
3010 # Account is specified, the &quot;default&quot; service account is used.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003011 &quot;accelerators&quot;: [ # A list of hardware accelerators to be attached to each node.
3012 # See https://cloud.google.com/compute/docs/gpus for more information about
3013 # support for GPUs.
3014 { # AcceleratorConfig represents a Hardware Accelerator request.
3015 &quot;acceleratorType&quot;: &quot;A String&quot;, # The accelerator type resource name. List of supported accelerators
3016 # [here](https://cloud.google.com/compute/docs/gpus)
3017 &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of the accelerator cards exposed to an instance.
3018 },
3019 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003020 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003021 &quot;resourceUsageExportConfig&quot;: { # Configuration for exporting cluster resource usages. # Configuration for exporting resource usages. Resource usage export is
3022 # disabled when this config is unspecified.
3023 &quot;enableNetworkEgressMetering&quot;: True or False, # Whether to enable network egress metering for this cluster. If enabled, a
3024 # daemonset will be created in the cluster to meter network egress traffic.
3025 &quot;bigqueryDestination&quot;: { # Parameters for using BigQuery as the destination of resource usage export. # Configuration to use BigQuery as usage export destination.
3026 &quot;datasetId&quot;: &quot;A String&quot;, # The ID of a BigQuery Dataset.
3027 },
3028 &quot;consumptionMeteringConfig&quot;: { # Parameters for controlling consumption metering. # Configuration to enable resource consumption metering.
3029 &quot;enabled&quot;: True or False, # Whether to enable consumption metering for this cluster. If enabled, a
3030 # second BigQuery table will be created to hold resource consumption
3031 # records.
3032 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003033 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003034 &quot;initialNodeCount&quot;: 42, # The number of nodes to create in this cluster. You must ensure that your
3035 # Compute Engine [resource quota](https://cloud.google.com/compute/quotas)
3036 # is sufficient for this number of instances. You must also have available
3037 # firewall and routes quota.
3038 # For requests, this field should only be used in lieu of a
3039 # &quot;node_pool&quot; object, since this configuration (along with the
3040 # &quot;node_config&quot;) will be used to create a &quot;NodePool&quot; object with an
3041 # auto-generated name. Do not use this and a node_pool at the same time.
3042 #
3043 # This field is deprecated, use node_pool.initial_node_count instead.
Bu Sun Kim65020912020-05-20 12:08:20 -07003044 &quot;name&quot;: &quot;A String&quot;, # The name of this cluster. The name must be unique within this project
3045 # and location (e.g. zone or region), and can be up to 40 characters with
3046 # the following restrictions:
3047 #
3048 # * Lowercase letters, numbers, and hyphens only.
3049 # * Must start with a letter.
3050 # * Must end with a number or a letter.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003051 &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
3052 # policies.
3053 # policies.
3054 &quot;workloadPool&quot;: &quot;A String&quot;, # The workload pool to attach all Kubernetes service accounts to.
3055 },
3056 &quot;networkConfig&quot;: { # NetworkConfig reports the relative names of network &amp; subnetwork. # Configuration for cluster networking.
3057 &quot;network&quot;: &quot;A String&quot;, # Output only. The relative name of the Google Compute Engine
3058 # network(https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
3059 # to which the cluster is connected. Example:
3060 # projects/my-project/global/networks/my-network
3061 &quot;enableIntraNodeVisibility&quot;: True or False, # Whether Intra-node visibility is enabled for this cluster.
3062 # This makes same node pod to pod traffic visible for VPC network.
3063 &quot;subnetwork&quot;: &quot;A String&quot;, # Output only. The relative name of the Google Compute Engine
3064 # [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the
3065 # cluster is connected. Example:
3066 # projects/my-project/regions/us-central1/subnetworks/my-subnet
3067 },
3068 &quot;databaseEncryption&quot;: { # Configuration of etcd encryption. # Configuration of etcd encryption.
3069 &quot;state&quot;: &quot;A String&quot;, # Denotes the state of etcd encryption.
3070 &quot;keyName&quot;: &quot;A String&quot;, # Name of CloudKMS key to use for the encryption of secrets in etcd.
3071 # Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key
3072 },
3073 &quot;privateClusterConfig&quot;: { # Configuration options for private clusters. # Configuration for private cluster.
3074 &quot;privateEndpoint&quot;: &quot;A String&quot;, # Output only. The internal IP address of this cluster&#x27;s master endpoint.
3075 &quot;peeringName&quot;: &quot;A String&quot;, # Output only. The peering name in the customer VPC used by this cluster.
3076 &quot;enablePrivateNodes&quot;: True or False, # Whether nodes have internal IP addresses only. If enabled, all nodes are
3077 # given only RFC 1918 private addresses and communicate with the master via
3078 # private networking.
3079 &quot;publicEndpoint&quot;: &quot;A String&quot;, # Output only. The external IP address of this cluster&#x27;s master endpoint.
3080 &quot;enablePrivateEndpoint&quot;: True or False, # Whether the master&#x27;s internal IP address is used as the cluster endpoint.
3081 &quot;masterIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP range in CIDR notation to use for the hosted master network. This
3082 # range will be used for assigning internal IP addresses to the master or
3083 # set of masters, as well as the ILB VIP. This range must not overlap with
3084 # any other ranges in use within the cluster&#x27;s network.
3085 },
3086 &quot;createTime&quot;: &quot;A String&quot;, # [Output only] The time the cluster was created, in
3087 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
3088 &quot;nodePools&quot;: [ # The node pools associated with this cluster.
3089 # This field should not be set if &quot;node_config&quot; or &quot;initial_node_count&quot; are
3090 # specified.
3091 { # NodePool contains the name and configuration for a cluster&#x27;s node pool.
3092 # Node pools are a set of nodes (i.e. VM&#x27;s), with a common configuration and
3093 # specification, under the control of the cluster master. They may have a set
3094 # of Kubernetes labels applied to them, which may be used to reference them
3095 # during pod scheduling. They may also be resized up or down, to accommodate
3096 # the workload.
3097 &quot;selfLink&quot;: &quot;A String&quot;, # [Output only] Server-defined URL for the resource.
3098 &quot;management&quot;: { # NodeManagement defines the set of node management services turned on for the # NodeManagement configuration for this NodePool.
3099 # node pool.
3100 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool.
3101 # the Auto Upgrades will proceed.
3102 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
3103 # with the description of the upgrade.
3104 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
3105 # with the approximate start time for the upgrades, in
3106 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
3107 },
3108 &quot;autoRepair&quot;: True or False, # A flag that specifies whether the node auto-repair is enabled for the node
3109 # pool. If enabled, the nodes in this node pool will be monitored and, if
3110 # they fail health checks too many times, an automatic repair action will be
3111 # triggered.
3112 &quot;autoUpgrade&quot;: True or False, # A flag that specifies whether node auto-upgrade is enabled for the node
3113 # pool. If enabled, node auto-upgrade helps keep the nodes in your node pool
3114 # up to date with the latest release version of Kubernetes.
3115 },
3116 &quot;upgradeSettings&quot;: { # These upgrade settings control the level of parallelism and the level of # Upgrade settings control disruption and speed of the upgrade.
3117 # disruption caused by an upgrade.
3118 #
3119 # maxUnavailable controls the number of nodes that can be simultaneously
3120 # unavailable.
3121 #
3122 # maxSurge controls the number of additional nodes that can be added to the
3123 # node pool temporarily for the time of the upgrade to increase the number of
3124 # available nodes.
3125 #
3126 # (maxUnavailable + maxSurge) determines the level of parallelism (how many
3127 # nodes are being upgraded at the same time).
3128 #
3129 # Note: upgrades inevitably introduce some disruption since workloads need to
3130 # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
3131 # this holds true. (Disruption stays within the limits of
3132 # PodDisruptionBudget, if it is configured.)
3133 #
3134 # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
3135 # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
3136 # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
3137 # down 3 old (not yet upgraded) nodes at the same time. This ensures that
3138 # there are always at least 4 nodes available.
3139 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during
3140 # the upgrade process. A node is considered available if its status is
3141 # Ready.
3142 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size
3143 # of the node pool during the upgrade process.
3144 },
3145 &quot;initialNodeCount&quot;: 42, # The initial node count for the pool. You must ensure that your
3146 # Compute Engine [resource quota](https://cloud.google.com/compute/quotas)
3147 # is sufficient for this number of instances. You must also have available
3148 # firewall and routes quota.
3149 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output only] Additional information about the current status of this
3150 # node pool instance, if available.
3151 &quot;version&quot;: &quot;A String&quot;, # The version of the Kubernetes of this node.
3152 &quot;conditions&quot;: [ # Which conditions caused the current node pool state.
3153 { # StatusCondition describes why a cluster or a node pool has a certain status
3154 # (e.g., ERROR or DEGRADED).
3155 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
3156 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
3157 },
3158 ],
3159 &quot;config&quot;: { # Parameters that describe the nodes in a cluster. # The node configuration of the pool.
3160 &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;)
3161 #
3162 # If unspecified, the default disk type is &#x27;pd-standard&#x27;
3163 &quot;bootDiskKmsKey&quot;: &quot;A String&quot;, #
3164 # The Customer Managed Encryption Key used to encrypt the boot disk attached
3165 # to each node in the node pool. This should be of the form
3166 # projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
3167 # For more information about protecting resources with Cloud KMS Keys please
3168 # see:
3169 # https://cloud.google.com/compute/docs/disks/customer-managed-encryption
3170 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
3171 &quot;enableIntegrityMonitoring&quot;: True or False, # Defines whether the instance has integrity monitoring enabled.
3172 #
3173 # Enables monitoring and attestation of the boot integrity of the instance.
3174 # The attestation is performed against the integrity policy baseline. This
3175 # baseline is initially derived from the implicitly trusted boot image when
3176 # the instance is created.
3177 &quot;enableSecureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled.
3178 #
3179 # Secure Boot helps ensure that the system only runs authentic software by
3180 # verifying the digital signature of all boot components, and halting the
3181 # boot process if signature verification fails.
3182 },
3183 &quot;labels&quot;: { # The map of Kubernetes labels (key/value pairs) to be applied to each node.
3184 # These will added in addition to any default label(s) that
3185 # Kubernetes may apply to the node.
3186 # In case of conflict in label keys, the applied set may differ depending on
3187 # the Kubernetes version -- it&#x27;s best to assume the behavior is undefined
3188 # and conflicts should be avoided.
3189 # For more information, including usage and the valid values, see:
3190 # https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
3191 &quot;a_key&quot;: &quot;A String&quot;,
3192 },
3193 &quot;oauthScopes&quot;: [ # The set of Google API scopes to be made available on all of the
3194 # node VMs under the &quot;default&quot; service account.
3195 #
3196 # The following scopes are recommended, but not required, and by default are
3197 # not included:
3198 #
3199 # * `https://www.googleapis.com/auth/compute` is required for mounting
3200 # persistent storage on your nodes.
3201 # * `https://www.googleapis.com/auth/devstorage.read_only` is required for
3202 # communicating with **gcr.io**
3203 # (the [Google Container
3204 # Registry](https://cloud.google.com/container-registry/)).
3205 #
3206 # If unspecified, no scopes are added, unless Cloud Logging or Cloud
3207 # Monitoring are enabled, in which case their required scopes will be added.
3208 &quot;A String&quot;,
3209 ],
3210 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used by this instance. The instance may be
3211 # scheduled on the specified or newer CPU platform. Applicable values are the
3212 # friendly names of CPU platforms, such as
3213 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Haswell&amp;quot;&lt;/code&gt; or
3214 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Sandy Bridge&amp;quot;&lt;/code&gt;. For more
3215 # information, read [how to specify min CPU
3216 # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
3217 &quot;localSsdCount&quot;: 42, # The number of local SSD disks to be attached to the node.
3218 #
3219 # The limit for this value is dependent upon the maximum number of
3220 # disks available on a machine per zone. See:
3221 # https://cloud.google.com/compute/docs/disks/local-ssd
3222 # for more information.
3223 &quot;taints&quot;: [ # List of kubernetes taints to be applied to each node.
3224 #
3225 # For more information, including usage and the valid values, see:
3226 # https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
3227 { # Kubernetes taint is comprised of three fields: key, value, and effect. Effect
3228 # can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute.
3229 #
3230 # See
3231 # [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration)
3232 # for more information, including usage and the valid values.
3233 &quot;value&quot;: &quot;A String&quot;, # Value for taint.
3234 &quot;key&quot;: &quot;A String&quot;, # Key for taint.
3235 &quot;effect&quot;: &quot;A String&quot;, # Effect for taint.
3236 },
3237 ],
3238 &quot;imageType&quot;: &quot;A String&quot;, # The image type to use for this node. Note that for a given image type,
3239 # the latest version of it will be used.
3240 &quot;reservationAffinity&quot;: { # [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) # The optional reservation affinity. Setting this field will apply
3241 # the specified [Zonal Compute
3242 # Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
3243 # to this node pool.
3244 # is the configuration of desired reservation which instances could take
3245 # capacity from.
3246 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Corresponds to the type of reservation consumption.
3247 &quot;key&quot;: &quot;A String&quot;, # Corresponds to the label key of a reservation resource. To target a
3248 # SPECIFIC_RESERVATION by name, specify &quot;googleapis.com/reservation-name&quot; as
3249 # the key and specify the name of your reservation as its value.
3250 &quot;values&quot;: [ # Corresponds to the label value(s) of reservation resource(s).
3251 &quot;A String&quot;,
3252 ],
3253 },
3254 &quot;machineType&quot;: &quot;A String&quot;, # The name of a Google Compute Engine [machine
3255 # type](https://cloud.google.com/compute/docs/machine-types) (e.g.
3256 # `n1-standard-1`).
3257 #
3258 # If unspecified, the default machine type is
3259 # `n1-standard-1`.
3260 &quot;nodeGroup&quot;: &quot;A String&quot;, # Setting this field will assign instances of this
3261 # pool to run on the specified node group. This is useful for running
3262 # workloads on [sole tenant
3263 # nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes).
3264 &quot;metadata&quot;: { # The metadata key/value pairs assigned to instances in the cluster.
3265 #
3266 # Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
3267 # in length. These are reflected as part of a URL in the metadata server.
3268 # Additionally, to avoid ambiguity, keys must not conflict with any other
3269 # metadata keys for the project or be one of the reserved keys:
3270 # &quot;cluster-location&quot;
3271 # &quot;cluster-name&quot;
3272 # &quot;cluster-uid&quot;
3273 # &quot;configure-sh&quot;
3274 # &quot;containerd-configure-sh&quot;
3275 # &quot;enable-os-login&quot;
3276 # &quot;gci-ensure-gke-docker&quot;
3277 # &quot;gci-metrics-enabled&quot;
3278 # &quot;gci-update-strategy&quot;
3279 # &quot;instance-template&quot;
3280 # &quot;kube-env&quot;
3281 # &quot;startup-script&quot;
3282 # &quot;user-data&quot;
3283 # &quot;disable-address-manager&quot;
3284 # &quot;windows-startup-script-ps1&quot;
3285 # &quot;common-psm1&quot;
3286 # &quot;k8s-node-setup-psm1&quot;
3287 # &quot;install-ssh-psm1&quot;
3288 # &quot;user-profile-psm1&quot;
3289 # &quot;serial-port-logging-enable&quot;
3290 #
3291 # Values are free-form strings, and only have meaning as interpreted by
3292 # the image running in the instance. The only restriction placed on them is
3293 # that each value&#x27;s size must be less than or equal to 32 KB.
3294 #
3295 # The total size of all keys and values must be less than 512 KB.
3296 &quot;a_key&quot;: &quot;A String&quot;,
3297 },
3298 &quot;tags&quot;: [ # The list of instance tags applied to all nodes. Tags are used to identify
3299 # valid sources or targets for network firewalls and are specified by
3300 # the client during cluster or node pool creation. Each tag within the list
3301 # must comply with RFC1035.
3302 &quot;A String&quot;,
3303 ],
3304 &quot;sandboxConfig&quot;: { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node.
3305 &quot;type&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node.
3306 },
3307 &quot;preemptible&quot;: True or False, # Whether the nodes are created as preemptible VM instances. See:
3308 # https://cloud.google.com/compute/docs/instances/preemptible for more
3309 # information about preemptible VM instances.
3310 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to # The workload metadata configuration for this node.
3311 # workloads on the node pool.
3312 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running
3313 # on the node pool.
3314 },
3315 &quot;diskSizeGb&quot;: 42, # Size of the disk attached to each node, specified in GB.
3316 # The smallest allowed disk size is 10GB.
3317 #
3318 # If unspecified, the default disk size is 100GB.
3319 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs.
3320 # Specify the email address of the Service Account; otherwise, if no Service
3321 # Account is specified, the &quot;default&quot; service account is used.
3322 &quot;accelerators&quot;: [ # A list of hardware accelerators to be attached to each node.
3323 # See https://cloud.google.com/compute/docs/gpus for more information about
3324 # support for GPUs.
3325 { # AcceleratorConfig represents a Hardware Accelerator request.
3326 &quot;acceleratorType&quot;: &quot;A String&quot;, # The accelerator type resource name. List of supported accelerators
3327 # [here](https://cloud.google.com/compute/docs/gpus)
3328 &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of the accelerator cards exposed to an instance.
3329 },
3330 ],
3331 },
3332 &quot;name&quot;: &quot;A String&quot;, # The name of the node pool.
3333 &quot;maxPodsConstraint&quot;: { # Constraints applied to pods. # The constraint on the maximum number of pods that can be run
3334 # simultaneously on a node in the node pool.
3335 &quot;maxPodsPerNode&quot;: &quot;A String&quot;, # Constraint enforced on the max num of pods per node.
3336 },
3337 &quot;autoscaling&quot;: { # NodePoolAutoscaling contains information required by cluster autoscaler to # Autoscaler configuration for this NodePool. Autoscaler is enabled
3338 # only if a valid configuration is present.
3339 # adjust the size of the node pool to the current cluster usage.
3340 &quot;minNodeCount&quot;: 42, # Minimum number of nodes in the NodePool. Must be &gt;= 1 and &lt;=
3341 # max_node_count.
3342 &quot;maxNodeCount&quot;: 42, # Maximum number of nodes in the NodePool. Must be &gt;= min_node_count. There
3343 # has to enough quota to scale up the cluster.
3344 &quot;enabled&quot;: True or False, # Is autoscaling enabled for this node pool.
3345 &quot;autoprovisioned&quot;: True or False, # Can this node pool be deleted automatically.
3346 },
3347 &quot;podIpv4CidrSize&quot;: 42, # [Output only] The pod CIDR block size per node in this node pool.
3348 &quot;instanceGroupUrls&quot;: [ # [Output only] The resource URLs of the [managed instance
3349 # groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
3350 # associated with this node pool.
3351 &quot;A String&quot;,
3352 ],
3353 &quot;status&quot;: &quot;A String&quot;, # [Output only] The status of the nodes in this pool instance.
3354 &quot;locations&quot;: [ # The list of Google Compute Engine
3355 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
3356 # NodePool&#x27;s nodes should be located.
3357 &quot;A String&quot;,
3358 ],
3359 },
3360 ],
3361 &quot;subnetwork&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
3362 # [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which
3363 # the cluster is connected.
3364 &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.
3365 # cluster, enabling additional functionality.
3366 &quot;kubernetesDashboard&quot;: { # Configuration for the Kubernetes Dashboard. # Configuration for the Kubernetes Dashboard.
3367 # This addon is deprecated, and will be disabled in 1.15. It is recommended
3368 # to use the Cloud Console to manage and monitor your Kubernetes clusters,
3369 # workloads and applications. For more information, see:
3370 # https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
3371 &quot;disabled&quot;: True or False, # Whether the Kubernetes Dashboard is enabled for this cluster.
3372 },
3373 &quot;cloudRunConfig&quot;: { # Configuration options for the Cloud Run feature. # Configuration for the Cloud Run addon, which allows the user to use a
3374 # managed Knative service.
3375 &quot;disabled&quot;: True or False, # Whether Cloud Run addon is enabled for this cluster.
3376 },
3377 &quot;httpLoadBalancing&quot;: { # Configuration options for the HTTP (L7) load balancing controller addon, # Configuration for the HTTP (L7) load balancing controller addon, which
3378 # makes it easy to set up HTTP load balancers for services in a cluster.
3379 # which makes it easy to set up HTTP load balancers for services in a cluster.
3380 &quot;disabled&quot;: True or False, # Whether the HTTP Load Balancing controller is enabled in the cluster.
3381 # When enabled, it runs a small pod in the cluster that manages the load
3382 # balancers.
3383 },
3384 &quot;horizontalPodAutoscaling&quot;: { # Configuration options for the horizontal pod autoscaling feature, which # Configuration for the horizontal pod autoscaling feature, which
3385 # increases or decreases the number of replica pods a replication controller
3386 # has based on the resource usage of the existing pods.
3387 # increases or decreases the number of replica pods a replication controller
3388 # has based on the resource usage of the existing pods.
3389 &quot;disabled&quot;: True or False, # Whether the Horizontal Pod Autoscaling feature is enabled in the cluster.
3390 # When enabled, it ensures that metrics are collected into Stackdriver
3391 # Monitoring.
3392 },
3393 &quot;dnsCacheConfig&quot;: { # Configuration for NodeLocal DNSCache # Configuration for NodeLocalDNS, a dns cache running on cluster nodes
3394 &quot;enabled&quot;: True or False, # Whether NodeLocal DNSCache is enabled for this cluster.
3395 },
3396 &quot;networkPolicyConfig&quot;: { # Configuration for NetworkPolicy. This only tracks whether the addon # Configuration for NetworkPolicy. This only tracks whether the addon
3397 # is enabled or not on the Master, it does not track whether network policy
3398 # is enabled for the nodes.
3399 # is enabled or not on the Master, it does not track whether network policy
3400 # is enabled for the nodes.
3401 &quot;disabled&quot;: True or False, # Whether NetworkPolicy is enabled for this cluster.
3402 },
3403 },
3404 &quot;masterAuth&quot;: { # The authentication information for accessing the master endpoint. # The authentication information for accessing the master endpoint.
3405 # If unspecified, the defaults are used:
3406 # For clusters before v1.12, if master_auth is unspecified, `username` will
3407 # be set to &quot;admin&quot;, a random password will be generated, and a client
3408 # certificate will be issued.
3409 # Authentication can be done using HTTP basic auth or using client
3410 # certificates.
3411 &quot;clientKey&quot;: &quot;A String&quot;, # [Output only] Base64-encoded private key used by clients to authenticate
3412 # to the cluster endpoint.
3413 &quot;clientCertificate&quot;: &quot;A String&quot;, # [Output only] Base64-encoded public certificate used by clients to
3414 # authenticate to the cluster endpoint.
3415 &quot;username&quot;: &quot;A String&quot;, # The username to use for HTTP basic authentication to the master endpoint.
3416 # For clusters v1.6.0 and later, basic authentication can be disabled by
3417 # leaving username unspecified (or setting it to the empty string).
3418 &quot;password&quot;: &quot;A String&quot;, # The password to use for HTTP basic authentication to the master endpoint.
3419 # Because the master endpoint is open to the Internet, you should create a
3420 # strong password. If a password is provided for cluster creation, username
3421 # must be non-empty.
3422 &quot;clientCertificateConfig&quot;: { # Configuration for client certificates on the cluster. # Configuration for client certificate authentication on the cluster. For
3423 # clusters before v1.12, if no configuration is specified, a client
3424 # certificate is issued.
3425 &quot;issueClientCertificate&quot;: True or False, # Issue a client certificate.
3426 },
3427 &quot;clusterCaCertificate&quot;: &quot;A String&quot;, # [Output only] Base64-encoded public certificate that is the root of
3428 # trust for the cluster.
3429 },
3430 &quot;verticalPodAutoscaling&quot;: { # VerticalPodAutoscaling contains global, per-cluster information # Cluster-level Vertical Pod Autoscaling configuration.
3431 # required by Vertical Pod Autoscaler to automatically adjust
3432 # the resources of pods controlled by it.
3433 &quot;enabled&quot;: True or False, # Enables vertical pod autoscaling.
3434 },
3435 &quot;enableTpu&quot;: True or False, # Enable the ability to use Cloud TPUs in this cluster.
3436 &quot;initialClusterVersion&quot;: &quot;A String&quot;, # The initial Kubernetes version for this cluster. Valid versions are those
3437 # found in validMasterVersions returned by getServerConfig. The version can
3438 # be upgraded over time; such upgrades are reflected in
3439 # currentMasterVersion and currentNodeVersion.
Bu Sun Kim65020912020-05-20 12:08:20 -07003440 #
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003441 # Users may specify either explicit versions offered by
3442 # Kubernetes Engine or version aliases, which have the following behavior:
3443 #
3444 # - &quot;latest&quot;: picks the highest valid Kubernetes version
3445 # - &quot;1.X&quot;: picks the highest valid patch+gke.N patch in the 1.X version
3446 # - &quot;1.X.Y&quot;: picks the highest valid gke.N patch in the 1.X.Y version
3447 # - &quot;1.X.Y-gke.N&quot;: picks an explicit Kubernetes version
3448 # - &quot;&quot;,&quot;-&quot;: picks the default Kubernetes version
3449 &quot;currentNodeCount&quot;: 42, # [Output only] The number of nodes currently in the cluster. Deprecated.
3450 # Call Kubernetes API directly to retrieve node information.
3451 &quot;tpuIpv4CidrBlock&quot;: &quot;A String&quot;, # [Output only] The IP address range of the Cloud TPUs in this cluster, in
3452 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
3453 # notation (e.g. `1.2.3.4/29`).
3454 &quot;locations&quot;: [ # The list of Google Compute Engine
3455 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
3456 # cluster&#x27;s nodes should be located.
3457 &quot;A String&quot;,
3458 ],
3459 &quot;selfLink&quot;: &quot;A String&quot;, # [Output only] Server-defined URL for the resource.
3460 &quot;description&quot;: &quot;A String&quot;, # An optional description of this cluster.
3461 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output only] Additional information about the current status of this
3462 # cluster, if available.
Bu Sun Kim65020912020-05-20 12:08:20 -07003463 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
3464 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
3465 # or
3466 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
3467 # in which the cluster resides.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003468 &quot;servicesIpv4Cidr&quot;: &quot;A String&quot;, # [Output only] The IP address range of the Kubernetes services in
3469 # this cluster, in
3470 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
3471 # notation (e.g. `1.2.3.4/29`). Service addresses are
3472 # typically put in the last `/16` from the container CIDR.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003473 },
3474 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003475 &quot;missingZones&quot;: [ # If any zones are listed here, the list of clusters returned
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003476 # may be missing those zones.
Bu Sun Kim65020912020-05-20 12:08:20 -07003477 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003478 ],
3479 }</pre>
3480</div>
3481
3482<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07003483 <code class="details" id="setAddons">setAddons(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003484 <pre>Sets the addons for a specific cluster.
3485
3486Args:
3487 name: string, The name (project, location, cluster) of the cluster to set addons.
Bu Sun Kim65020912020-05-20 12:08:20 -07003488Specified in the format `projects/*/locations/*/clusters/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07003489 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003490 The object takes the form of:
3491
3492{ # SetAddonsConfigRequest sets the addons associated with the cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -07003493 &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 -07003494 # cluster.
3495 # cluster, enabling additional functionality.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003496 &quot;kubernetesDashboard&quot;: { # Configuration for the Kubernetes Dashboard. # Configuration for the Kubernetes Dashboard.
3497 # This addon is deprecated, and will be disabled in 1.15. It is recommended
3498 # to use the Cloud Console to manage and monitor your Kubernetes clusters,
3499 # workloads and applications. For more information, see:
3500 # https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
3501 &quot;disabled&quot;: True or False, # Whether the Kubernetes Dashboard is enabled for this cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -07003502 },
3503 &quot;cloudRunConfig&quot;: { # Configuration options for the Cloud Run feature. # Configuration for the Cloud Run addon, which allows the user to use a
3504 # managed Knative service.
3505 &quot;disabled&quot;: True or False, # Whether Cloud Run addon is enabled for this cluster.
3506 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003507 &quot;httpLoadBalancing&quot;: { # Configuration options for the HTTP (L7) load balancing controller addon, # Configuration for the HTTP (L7) load balancing controller addon, which
3508 # makes it easy to set up HTTP load balancers for services in a cluster.
3509 # which makes it easy to set up HTTP load balancers for services in a cluster.
3510 &quot;disabled&quot;: True or False, # Whether the HTTP Load Balancing controller is enabled in the cluster.
3511 # When enabled, it runs a small pod in the cluster that manages the load
3512 # balancers.
3513 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003514 &quot;horizontalPodAutoscaling&quot;: { # Configuration options for the horizontal pod autoscaling feature, which # Configuration for the horizontal pod autoscaling feature, which
3515 # increases or decreases the number of replica pods a replication controller
3516 # has based on the resource usage of the existing pods.
3517 # increases or decreases the number of replica pods a replication controller
3518 # has based on the resource usage of the existing pods.
3519 &quot;disabled&quot;: True or False, # Whether the Horizontal Pod Autoscaling feature is enabled in the cluster.
3520 # When enabled, it ensures that metrics are collected into Stackdriver
3521 # Monitoring.
3522 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003523 &quot;dnsCacheConfig&quot;: { # Configuration for NodeLocal DNSCache # Configuration for NodeLocalDNS, a dns cache running on cluster nodes
3524 &quot;enabled&quot;: True or False, # Whether NodeLocal DNSCache is enabled for this cluster.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003525 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003526 &quot;networkPolicyConfig&quot;: { # Configuration for NetworkPolicy. This only tracks whether the addon # Configuration for NetworkPolicy. This only tracks whether the addon
3527 # is enabled or not on the Master, it does not track whether network policy
3528 # is enabled for the nodes.
3529 # is enabled or not on the Master, it does not track whether network policy
3530 # is enabled for the nodes.
3531 &quot;disabled&quot;: True or False, # Whether NetworkPolicy is enabled for this cluster.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003532 },
3533 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003534 &quot;clusterId&quot;: &quot;A String&quot;, # Deprecated. The name of the cluster to upgrade.
3535 # This field has been deprecated and replaced by the name field.
3536 &quot;projectId&quot;: &quot;A String&quot;, # Deprecated. The Google Developers Console [project ID or project
3537 # number](https://support.google.com/cloud/answer/6158840).
3538 # This field has been deprecated and replaced by the name field.
3539 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster) of the cluster to set addons.
3540 # Specified in the format `projects/*/locations/*/clusters/*`.
3541 &quot;zone&quot;: &quot;A String&quot;, # Deprecated. The name of the Google Compute Engine
3542 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
3543 # cluster resides. This field has been deprecated and replaced by the name
3544 # field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003545 }
3546
3547 x__xgafv: string, V1 error format.
3548 Allowed values
3549 1 - v1 error format
3550 2 - v2 error format
3551
3552Returns:
3553 An object of the form:
3554
3555 { # This operation resource represents operations that may have happened or are
3556 # happening on the cluster. All fields are output only.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003557 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
3558 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
3559 # Unset for single-stage operations.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003560 &quot;metrics&quot;: [ # Progress metric bundle, for example:
3561 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
3562 # {name: &quot;nodes total&quot;, int_value: 32}]
3563 # or
3564 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
3565 # {name: &quot;progress scale&quot;, double_value: 1.0}]
3566 { # Progress metric is (string, int|float|string) pair.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003567 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003568 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
3569 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003570 &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 -07003571 },
3572 ],
3573 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
3574 # Unset for single-stage operations.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003575 &quot;stages&quot;: [ # Substages of an operation or a stage.
3576 # Object with schema name: OperationProgress
3577 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003578 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003579 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
3580 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
3581 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
3582 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
3583 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
3584 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
3585 { # StatusCondition describes why a cluster or a node pool has a certain status
3586 # (e.g., ERROR or DEGRADED).
3587 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
3588 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
3589 },
3590 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003591 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
3592 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
3593 # operation is taking place. This field is deprecated, use location instead.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003594 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
Bu Sun Kim65020912020-05-20 12:08:20 -07003595 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003596 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
3597 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
3598 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07003599 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003600 { # StatusCondition describes why a cluster or a node pool has a certain status
3601 # (e.g., ERROR or DEGRADED).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003602 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003603 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003604 },
3605 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003606 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07003607 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
3608 # or
3609 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
3610 # in which the cluster resides.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003611 &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 -07003612 }</pre>
3613</div>
3614
3615<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07003616 <code class="details" id="setLegacyAbac">setLegacyAbac(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003617 <pre>Enables or disables the ABAC authorization mechanism on a cluster.
3618
3619Args:
3620 name: string, The name (project, location, cluster id) of the cluster to set legacy abac.
Bu Sun Kim65020912020-05-20 12:08:20 -07003621Specified in the format `projects/*/locations/*/clusters/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07003622 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003623 The object takes the form of:
3624
3625{ # SetLegacyAbacRequest enables or disables the ABAC authorization mechanism for
3626 # a cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -07003627 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster id) of the cluster to set legacy abac.
3628 # Specified in the format `projects/*/locations/*/clusters/*`.
Bu Sun Kim65020912020-05-20 12:08:20 -07003629 &quot;zone&quot;: &quot;A String&quot;, # Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07003630 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
3631 # cluster resides. This field has been deprecated and replaced by the name
3632 # field.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003633 &quot;clusterId&quot;: &quot;A String&quot;, # Deprecated. The name of the cluster to update.
3634 # This field has been deprecated and replaced by the name field.
3635 &quot;projectId&quot;: &quot;A String&quot;, # Deprecated. The Google Developers Console [project ID or project
3636 # number](https://support.google.com/cloud/answer/6158840).
3637 # This field has been deprecated and replaced by the name field.
3638 &quot;enabled&quot;: True or False, # Required. Whether ABAC authorization will be enabled in the cluster.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003639 }
3640
3641 x__xgafv: string, V1 error format.
3642 Allowed values
3643 1 - v1 error format
3644 2 - v2 error format
3645
3646Returns:
3647 An object of the form:
3648
3649 { # This operation resource represents operations that may have happened or are
3650 # happening on the cluster. All fields are output only.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003651 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
3652 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
3653 # Unset for single-stage operations.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003654 &quot;metrics&quot;: [ # Progress metric bundle, for example:
3655 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
3656 # {name: &quot;nodes total&quot;, int_value: 32}]
3657 # or
3658 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
3659 # {name: &quot;progress scale&quot;, double_value: 1.0}]
3660 { # Progress metric is (string, int|float|string) pair.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003661 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003662 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
3663 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003664 &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 -07003665 },
3666 ],
3667 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
3668 # Unset for single-stage operations.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003669 &quot;stages&quot;: [ # Substages of an operation or a stage.
3670 # Object with schema name: OperationProgress
3671 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003672 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003673 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
3674 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
3675 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
3676 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
3677 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
3678 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
3679 { # StatusCondition describes why a cluster or a node pool has a certain status
3680 # (e.g., ERROR or DEGRADED).
3681 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
3682 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
3683 },
3684 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003685 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
3686 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
3687 # operation is taking place. This field is deprecated, use location instead.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003688 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
Bu Sun Kim65020912020-05-20 12:08:20 -07003689 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003690 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
3691 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
3692 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07003693 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003694 { # StatusCondition describes why a cluster or a node pool has a certain status
3695 # (e.g., ERROR or DEGRADED).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003696 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003697 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003698 },
3699 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003700 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07003701 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
3702 # or
3703 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
3704 # in which the cluster resides.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003705 &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 -07003706 }</pre>
3707</div>
3708
3709<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07003710 <code class="details" id="setLocations">setLocations(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003711 <pre>Sets the locations for a specific cluster.
Dan O'Mearadd494642020-05-01 07:42:23 -07003712Deprecated. Use
3713[projects.locations.clusters.update](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters/update)
3714instead.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003715
3716Args:
3717 name: string, The name (project, location, cluster) of the cluster to set locations.
Bu Sun Kim65020912020-05-20 12:08:20 -07003718Specified in the format `projects/*/locations/*/clusters/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07003719 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003720 The object takes the form of:
3721
3722{ # SetLocationsRequest sets the locations of the cluster.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003723 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster) of the cluster to set locations.
3724 # Specified in the format `projects/*/locations/*/clusters/*`.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003725 &quot;zone&quot;: &quot;A String&quot;, # Deprecated. The name of the Google Compute Engine
3726 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
3727 # cluster resides. This field has been deprecated and replaced by the name
3728 # field.
3729 &quot;clusterId&quot;: &quot;A String&quot;, # Deprecated. The name of the cluster to upgrade.
3730 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07003731 &quot;projectId&quot;: &quot;A String&quot;, # Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003732 # number](https://support.google.com/cloud/answer/6158840).
3733 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07003734 &quot;locations&quot;: [ # Required. The desired list of Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07003735 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
Bu Sun Kim65020912020-05-20 12:08:20 -07003736 # cluster&#x27;s nodes should be located. Changing the locations a cluster is in
Dan O'Mearadd494642020-05-01 07:42:23 -07003737 # will result in nodes being either created or removed from the cluster,
3738 # depending on whether locations are being added or removed.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003739 #
Bu Sun Kim65020912020-05-20 12:08:20 -07003740 # This list must always include the cluster&#x27;s primary zone.
3741 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003742 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003743 }
3744
3745 x__xgafv: string, V1 error format.
3746 Allowed values
3747 1 - v1 error format
3748 2 - v2 error format
3749
3750Returns:
3751 An object of the form:
3752
3753 { # This operation resource represents operations that may have happened or are
3754 # happening on the cluster. All fields are output only.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003755 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
3756 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
3757 # Unset for single-stage operations.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003758 &quot;metrics&quot;: [ # Progress metric bundle, for example:
3759 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
3760 # {name: &quot;nodes total&quot;, int_value: 32}]
3761 # or
3762 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
3763 # {name: &quot;progress scale&quot;, double_value: 1.0}]
3764 { # Progress metric is (string, int|float|string) pair.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003765 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003766 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
3767 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003768 &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 -07003769 },
3770 ],
3771 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
3772 # Unset for single-stage operations.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003773 &quot;stages&quot;: [ # Substages of an operation or a stage.
3774 # Object with schema name: OperationProgress
3775 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003776 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003777 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
3778 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
3779 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
3780 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
3781 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
3782 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
3783 { # StatusCondition describes why a cluster or a node pool has a certain status
3784 # (e.g., ERROR or DEGRADED).
3785 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
3786 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
3787 },
3788 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003789 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
3790 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
3791 # operation is taking place. This field is deprecated, use location instead.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003792 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
Bu Sun Kim65020912020-05-20 12:08:20 -07003793 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003794 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
3795 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
3796 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07003797 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003798 { # StatusCondition describes why a cluster or a node pool has a certain status
3799 # (e.g., ERROR or DEGRADED).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003800 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003801 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003802 },
3803 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003804 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07003805 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
3806 # or
3807 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
3808 # in which the cluster resides.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003809 &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 -07003810 }</pre>
3811</div>
3812
3813<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07003814 <code class="details" id="setLogging">setLogging(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003815 <pre>Sets the logging service for a specific cluster.
3816
3817Args:
3818 name: string, The name (project, location, cluster) of the cluster to set logging.
Bu Sun Kim65020912020-05-20 12:08:20 -07003819Specified in the format `projects/*/locations/*/clusters/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07003820 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003821 The object takes the form of:
3822
3823{ # SetLoggingServiceRequest sets the logging service of a cluster.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003824 &quot;clusterId&quot;: &quot;A String&quot;, # Deprecated. The name of the cluster to upgrade.
3825 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07003826 &quot;projectId&quot;: &quot;A String&quot;, # Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003827 # number](https://support.google.com/cloud/answer/6158840).
3828 # This field has been deprecated and replaced by the name field.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003829 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster) of the cluster to set logging.
3830 # Specified in the format `projects/*/locations/*/clusters/*`.
Bu Sun Kim65020912020-05-20 12:08:20 -07003831 &quot;zone&quot;: &quot;A String&quot;, # Deprecated. The name of the Google Compute Engine
3832 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
3833 # cluster resides. This field has been deprecated and replaced by the name
3834 # field.
Bu Sun Kim65020912020-05-20 12:08:20 -07003835 &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 -07003836 # Currently available options:
3837 #
Dan O'Mearadd494642020-05-01 07:42:23 -07003838 # * `logging.googleapis.com/kubernetes` - The Cloud Logging
3839 # service with a Kubernetes-native resource model
3840 # * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
3841 # available as of GKE 1.15).
3842 # * `none` - no logs will be exported from the cluster.
3843 #
3844 # If left as an empty string,`logging.googleapis.com/kubernetes` will be
3845 # used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003846 }
3847
3848 x__xgafv: string, V1 error format.
3849 Allowed values
3850 1 - v1 error format
3851 2 - v2 error format
3852
3853Returns:
3854 An object of the form:
3855
3856 { # This operation resource represents operations that may have happened or are
3857 # happening on the cluster. All fields are output only.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003858 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
3859 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
3860 # Unset for single-stage operations.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003861 &quot;metrics&quot;: [ # Progress metric bundle, for example:
3862 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
3863 # {name: &quot;nodes total&quot;, int_value: 32}]
3864 # or
3865 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
3866 # {name: &quot;progress scale&quot;, double_value: 1.0}]
3867 { # Progress metric is (string, int|float|string) pair.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003868 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003869 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
3870 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003871 &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 -07003872 },
3873 ],
3874 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
3875 # Unset for single-stage operations.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003876 &quot;stages&quot;: [ # Substages of an operation or a stage.
3877 # Object with schema name: OperationProgress
3878 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003879 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003880 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
3881 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
3882 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
3883 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
3884 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
3885 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
3886 { # StatusCondition describes why a cluster or a node pool has a certain status
3887 # (e.g., ERROR or DEGRADED).
3888 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
3889 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
3890 },
3891 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003892 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
3893 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
3894 # operation is taking place. This field is deprecated, use location instead.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003895 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
Bu Sun Kim65020912020-05-20 12:08:20 -07003896 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003897 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
3898 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
3899 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07003900 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003901 { # StatusCondition describes why a cluster or a node pool has a certain status
3902 # (e.g., ERROR or DEGRADED).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003903 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003904 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003905 },
3906 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003907 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07003908 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
3909 # or
3910 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
3911 # in which the cluster resides.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003912 &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 -07003913 }</pre>
3914</div>
3915
3916<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07003917 <code class="details" id="setMaintenancePolicy">setMaintenancePolicy(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003918 <pre>Sets the maintenance policy for a cluster.
3919
3920Args:
3921 name: string, The name (project, location, cluster id) of the cluster to set maintenance
3922policy.
Bu Sun Kim65020912020-05-20 12:08:20 -07003923Specified in the format `projects/*/locations/*/clusters/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07003924 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003925 The object takes the form of:
3926
3927{ # SetMaintenancePolicyRequest sets the maintenance policy for a cluster.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003928 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster id) of the cluster to set maintenance
3929 # policy.
3930 # Specified in the format `projects/*/locations/*/clusters/*`.
Bu Sun Kim65020912020-05-20 12:08:20 -07003931 &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 -07003932 # clears the existing maintenance policy.
Bu Sun Kim65020912020-05-20 12:08:20 -07003933 &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 -07003934 &quot;maintenanceExclusions&quot;: { # Exceptions to maintenance window. Non-emergency maintenance should not
3935 # occur in these windows.
3936 &quot;a_key&quot;: { # Represents an arbitrary window of time.
3937 &quot;endTime&quot;: &quot;A String&quot;, # The time that the window ends. The end time should take place after the
3938 # start time.
3939 &quot;startTime&quot;: &quot;A String&quot;, # The time that the window first starts.
3940 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003941 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003942 &quot;dailyMaintenanceWindow&quot;: { # Time window specified for daily maintenance operations. # DailyMaintenanceWindow specifies a daily maintenance operation window.
3943 &quot;duration&quot;: &quot;A String&quot;, # [Output only] Duration of the time window, automatically chosen to be
3944 # smallest possible in the given scenario.
3945 # Duration will be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)
3946 # format &quot;PTnHnMnS&quot;.
3947 &quot;startTime&quot;: &quot;A String&quot;, # Time within the maintenance window to start the maintenance operations.
3948 # Time format should be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)
3949 # format &quot;HH:MM&quot;, where HH : [00-23] and MM : [00-59] GMT.
3950 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003951 &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 -07003952 # maintenance to occur. The time windows may be overlapping. If no
3953 # maintenance windows are set, maintenance can occur at any time.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003954 &quot;window&quot;: { # Represents an arbitrary window of time. # The window of the first recurrence.
3955 &quot;endTime&quot;: &quot;A String&quot;, # The time that the window ends. The end time should take place after the
3956 # start time.
3957 &quot;startTime&quot;: &quot;A String&quot;, # The time that the window first starts.
3958 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003959 &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 -07003960 # this window reccurs. They go on for the span of time between the start and
3961 # end time.
3962 #
Bu Sun Kim65020912020-05-20 12:08:20 -07003963 # For example, to have something repeat every weekday, you&#x27;d use:
Dan O'Mearadd494642020-05-01 07:42:23 -07003964 # &lt;code&gt;FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR&lt;/code&gt;
3965 # To repeat some window daily (equivalent to the DailyMaintenanceWindow):
3966 # &lt;code&gt;FREQ=DAILY&lt;/code&gt;
3967 # For the first weekend of every month:
3968 # &lt;code&gt;FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU&lt;/code&gt;
3969 # This specifies how frequently the window starts. Eg, if you wanted to have
Bu Sun Kim65020912020-05-20 12:08:20 -07003970 # a 9-5 UTC-4 window every weekday, you&#x27;d use something like:
Dan O'Mearadd494642020-05-01 07:42:23 -07003971 # &lt;code&gt;
3972 # start time = 2019-01-01T09:00:00-0400
3973 # end time = 2019-01-01T17:00:00-0400
3974 # recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
3975 # &lt;/code&gt;
3976 # Windows can span multiple days. Eg, to make the window encompass every
3977 # weekend from midnight Saturday till the last minute of Sunday UTC:
3978 # &lt;code&gt;
3979 # start time = 2019-01-05T00:00:00Z
3980 # end time = 2019-01-07T23:59:00Z
3981 # recurrence = FREQ=WEEKLY;BYDAY=SA
3982 # &lt;/code&gt;
Bu Sun Kim65020912020-05-20 12:08:20 -07003983 # Note the start and end time&#x27;s specific dates are largely arbitrary except
Dan O'Mearadd494642020-05-01 07:42:23 -07003984 # to specify duration of the window and when it first starts.
3985 # The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.
Dan O'Mearadd494642020-05-01 07:42:23 -07003986 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003987 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003988 &quot;resourceVersion&quot;: &quot;A String&quot;, # A hash identifying the version of this policy, so that updates to fields of
3989 # the policy won&#x27;t accidentally undo intermediate changes (and so that users
3990 # of the API unaware of some fields won&#x27;t accidentally remove other fields).
Dan O'Mearadd494642020-05-01 07:42:23 -07003991 # Make a &lt;code&gt;get()&lt;/code&gt; request to the cluster to get the current
3992 # resource version and include it with requests to set the policy.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003993 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003994 &quot;projectId&quot;: &quot;A String&quot;, # Required. The Google Developers Console [project ID or project
3995 # number](https://support.google.com/cloud/answer/6158840).
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003996 &quot;clusterId&quot;: &quot;A String&quot;, # Required. The name of the cluster to update.
Bu Sun Kim65020912020-05-20 12:08:20 -07003997 &quot;zone&quot;: &quot;A String&quot;, # Required. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07003998 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
3999 # cluster resides.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004000 }
4001
4002 x__xgafv: string, V1 error format.
4003 Allowed values
4004 1 - v1 error format
4005 2 - v2 error format
4006
4007Returns:
4008 An object of the form:
4009
4010 { # This operation resource represents operations that may have happened or are
4011 # happening on the cluster. All fields are output only.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004012 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
4013 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
4014 # Unset for single-stage operations.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004015 &quot;metrics&quot;: [ # Progress metric bundle, for example:
4016 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
4017 # {name: &quot;nodes total&quot;, int_value: 32}]
4018 # or
4019 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
4020 # {name: &quot;progress scale&quot;, double_value: 1.0}]
4021 { # Progress metric is (string, int|float|string) pair.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004022 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004023 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
4024 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004025 &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 -07004026 },
4027 ],
4028 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
4029 # Unset for single-stage operations.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004030 &quot;stages&quot;: [ # Substages of an operation or a stage.
4031 # Object with schema name: OperationProgress
4032 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004033 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004034 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
4035 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
4036 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
4037 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
4038 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
4039 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
4040 { # StatusCondition describes why a cluster or a node pool has a certain status
4041 # (e.g., ERROR or DEGRADED).
4042 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
4043 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
4044 },
4045 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004046 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
4047 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4048 # operation is taking place. This field is deprecated, use location instead.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004049 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
Bu Sun Kim65020912020-05-20 12:08:20 -07004050 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004051 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
4052 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
4053 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07004054 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004055 { # StatusCondition describes why a cluster or a node pool has a certain status
4056 # (e.g., ERROR or DEGRADED).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004057 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004058 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004059 },
4060 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07004061 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07004062 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4063 # or
4064 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4065 # in which the cluster resides.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004066 &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 -07004067 }</pre>
4068</div>
4069
4070<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07004071 <code class="details" id="setMasterAuth">setMasterAuth(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004072 <pre>Sets master auth materials. Currently supports changing the admin password
4073or a specific cluster, either via password generation or explicitly setting
4074the password.
4075
4076Args:
4077 name: string, The name (project, location, cluster) of the cluster to set auth.
Bu Sun Kim65020912020-05-20 12:08:20 -07004078Specified in the format `projects/*/locations/*/clusters/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07004079 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004080 The object takes the form of:
4081
4082{ # SetMasterAuthRequest updates the admin password of a cluster.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004083 &quot;zone&quot;: &quot;A String&quot;, # Deprecated. The name of the Google Compute Engine
4084 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4085 # cluster resides. This field has been deprecated and replaced by the name
4086 # field.
Bu Sun Kim65020912020-05-20 12:08:20 -07004087 &quot;clusterId&quot;: &quot;A String&quot;, # Deprecated. The name of the cluster to upgrade.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004088 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07004089 &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 -07004090 # Authentication can be done using HTTP basic auth or using client
4091 # certificates.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004092 &quot;clientKey&quot;: &quot;A String&quot;, # [Output only] Base64-encoded private key used by clients to authenticate
4093 # to the cluster endpoint.
4094 &quot;clientCertificate&quot;: &quot;A String&quot;, # [Output only] Base64-encoded public certificate used by clients to
4095 # authenticate to the cluster endpoint.
4096 &quot;username&quot;: &quot;A String&quot;, # The username to use for HTTP basic authentication to the master endpoint.
4097 # For clusters v1.6.0 and later, basic authentication can be disabled by
4098 # leaving username unspecified (or setting it to the empty string).
Bu Sun Kim65020912020-05-20 12:08:20 -07004099 &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 -07004100 # Because the master endpoint is open to the Internet, you should create a
4101 # strong password. If a password is provided for cluster creation, username
4102 # must be non-empty.
Bu Sun Kim65020912020-05-20 12:08:20 -07004103 &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 -07004104 # clusters before v1.12, if no configuration is specified, a client
4105 # certificate is issued.
Bu Sun Kim65020912020-05-20 12:08:20 -07004106 &quot;issueClientCertificate&quot;: True or False, # Issue a client certificate.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004107 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004108 &quot;clusterCaCertificate&quot;: &quot;A String&quot;, # [Output only] Base64-encoded public certificate that is the root of
4109 # trust for the cluster.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004110 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004111 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster) of the cluster to set auth.
4112 # Specified in the format `projects/*/locations/*/clusters/*`.
4113 &quot;action&quot;: &quot;A String&quot;, # Required. The exact form of action to be taken on the master auth.
4114 &quot;projectId&quot;: &quot;A String&quot;, # Deprecated. The Google Developers Console [project ID or project
4115 # number](https://support.google.com/cloud/answer/6158840).
4116 # This field has been deprecated and replaced by the name field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004117 }
4118
4119 x__xgafv: string, V1 error format.
4120 Allowed values
4121 1 - v1 error format
4122 2 - v2 error format
4123
4124Returns:
4125 An object of the form:
4126
4127 { # This operation resource represents operations that may have happened or are
4128 # happening on the cluster. All fields are output only.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004129 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
4130 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
4131 # Unset for single-stage operations.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004132 &quot;metrics&quot;: [ # Progress metric bundle, for example:
4133 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
4134 # {name: &quot;nodes total&quot;, int_value: 32}]
4135 # or
4136 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
4137 # {name: &quot;progress scale&quot;, double_value: 1.0}]
4138 { # Progress metric is (string, int|float|string) pair.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004139 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004140 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
4141 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004142 &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 -07004143 },
4144 ],
4145 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
4146 # Unset for single-stage operations.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004147 &quot;stages&quot;: [ # Substages of an operation or a stage.
4148 # Object with schema name: OperationProgress
4149 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004150 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004151 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
4152 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
4153 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
4154 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
4155 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
4156 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
4157 { # StatusCondition describes why a cluster or a node pool has a certain status
4158 # (e.g., ERROR or DEGRADED).
4159 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
4160 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
4161 },
4162 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004163 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
4164 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4165 # operation is taking place. This field is deprecated, use location instead.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004166 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
Bu Sun Kim65020912020-05-20 12:08:20 -07004167 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004168 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
4169 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
4170 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07004171 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004172 { # StatusCondition describes why a cluster or a node pool has a certain status
4173 # (e.g., ERROR or DEGRADED).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004174 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004175 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004176 },
4177 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07004178 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07004179 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4180 # or
4181 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4182 # in which the cluster resides.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004183 &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 -07004184 }</pre>
4185</div>
4186
4187<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07004188 <code class="details" id="setMonitoring">setMonitoring(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004189 <pre>Sets the monitoring service for a specific cluster.
4190
4191Args:
4192 name: string, The name (project, location, cluster) of the cluster to set monitoring.
Bu Sun Kim65020912020-05-20 12:08:20 -07004193Specified in the format `projects/*/locations/*/clusters/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07004194 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004195 The object takes the form of:
4196
4197{ # SetMonitoringServiceRequest sets the monitoring service of a cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -07004198 &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 -07004199 # Currently available options:
4200 #
Bu Sun Kim65020912020-05-20 12:08:20 -07004201 # * &quot;monitoring.googleapis.com/kubernetes&quot; - The Cloud Monitoring
Dan O'Mearadd494642020-05-01 07:42:23 -07004202 # service with a Kubernetes-native resource model
4203 # * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
4204 # longer available as of GKE 1.15).
4205 # * `none` - No metrics will be exported from the cluster.
4206 #
4207 # If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
4208 # used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004209 &quot;clusterId&quot;: &quot;A String&quot;, # Deprecated. The name of the cluster to upgrade.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004210 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07004211 &quot;zone&quot;: &quot;A String&quot;, # Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07004212 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4213 # cluster resides. This field has been deprecated and replaced by the name
4214 # field.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004215 &quot;projectId&quot;: &quot;A String&quot;, # Deprecated. The Google Developers Console [project ID or project
4216 # number](https://support.google.com/cloud/answer/6158840).
4217 # This field has been deprecated and replaced by the name field.
4218 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster) of the cluster to set monitoring.
4219 # Specified in the format `projects/*/locations/*/clusters/*`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004220 }
4221
4222 x__xgafv: string, V1 error format.
4223 Allowed values
4224 1 - v1 error format
4225 2 - v2 error format
4226
4227Returns:
4228 An object of the form:
4229
4230 { # This operation resource represents operations that may have happened or are
4231 # happening on the cluster. All fields are output only.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004232 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
4233 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
4234 # Unset for single-stage operations.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004235 &quot;metrics&quot;: [ # Progress metric bundle, for example:
4236 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
4237 # {name: &quot;nodes total&quot;, int_value: 32}]
4238 # or
4239 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
4240 # {name: &quot;progress scale&quot;, double_value: 1.0}]
4241 { # Progress metric is (string, int|float|string) pair.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004242 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004243 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
4244 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004245 &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 -07004246 },
4247 ],
4248 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
4249 # Unset for single-stage operations.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004250 &quot;stages&quot;: [ # Substages of an operation or a stage.
4251 # Object with schema name: OperationProgress
4252 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004253 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004254 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
4255 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
4256 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
4257 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
4258 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
4259 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
4260 { # StatusCondition describes why a cluster or a node pool has a certain status
4261 # (e.g., ERROR or DEGRADED).
4262 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
4263 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
4264 },
4265 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004266 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
4267 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4268 # operation is taking place. This field is deprecated, use location instead.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004269 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
Bu Sun Kim65020912020-05-20 12:08:20 -07004270 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004271 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
4272 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
4273 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07004274 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004275 { # StatusCondition describes why a cluster or a node pool has a certain status
4276 # (e.g., ERROR or DEGRADED).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004277 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004278 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004279 },
4280 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07004281 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07004282 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4283 # or
4284 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4285 # in which the cluster resides.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004286 &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 -07004287 }</pre>
4288</div>
4289
4290<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07004291 <code class="details" id="setNetworkPolicy">setNetworkPolicy(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004292 <pre>Enables or disables Network Policy for a cluster.
4293
4294Args:
4295 name: string, The name (project, location, cluster id) of the cluster to set networking
Bu Sun Kim65020912020-05-20 12:08:20 -07004296policy. Specified in the format `projects/*/locations/*/clusters/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07004297 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004298 The object takes the form of:
4299
4300{ # SetNetworkPolicyRequest enables/disables network policy for a cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -07004301 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster id) of the cluster to set networking
4302 # policy. Specified in the format `projects/*/locations/*/clusters/*`.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004303 &quot;clusterId&quot;: &quot;A String&quot;, # Deprecated. The name of the cluster.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004304 # This field has been deprecated and replaced by the name field.
4305 &quot;zone&quot;: &quot;A String&quot;, # Deprecated. The name of the Google Compute Engine
4306 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4307 # cluster resides. This field has been deprecated and replaced by the name
4308 # field.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004309 &quot;networkPolicy&quot;: { # Configuration options for the NetworkPolicy feature. # Required. Configuration options for the NetworkPolicy feature.
4310 # https://kubernetes.io/docs/concepts/services-networking/networkpolicies/
4311 &quot;enabled&quot;: True or False, # Whether network policy is enabled on the cluster.
4312 &quot;provider&quot;: &quot;A String&quot;, # The selected network policy provider.
4313 },
4314 &quot;projectId&quot;: &quot;A String&quot;, # Deprecated. The Google Developers Console [project ID or project
4315 # number](https://developers.google.com/console/help/new/#projectnumber).
4316 # This field has been deprecated and replaced by the name field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004317 }
4318
4319 x__xgafv: string, V1 error format.
4320 Allowed values
4321 1 - v1 error format
4322 2 - v2 error format
4323
4324Returns:
4325 An object of the form:
4326
4327 { # This operation resource represents operations that may have happened or are
4328 # happening on the cluster. All fields are output only.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004329 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
4330 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
4331 # Unset for single-stage operations.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004332 &quot;metrics&quot;: [ # Progress metric bundle, for example:
4333 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
4334 # {name: &quot;nodes total&quot;, int_value: 32}]
4335 # or
4336 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
4337 # {name: &quot;progress scale&quot;, double_value: 1.0}]
4338 { # Progress metric is (string, int|float|string) pair.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004339 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004340 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
4341 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004342 &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 -07004343 },
4344 ],
4345 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
4346 # Unset for single-stage operations.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004347 &quot;stages&quot;: [ # Substages of an operation or a stage.
4348 # Object with schema name: OperationProgress
4349 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004350 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004351 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
4352 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
4353 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
4354 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
4355 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
4356 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
4357 { # StatusCondition describes why a cluster or a node pool has a certain status
4358 # (e.g., ERROR or DEGRADED).
4359 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
4360 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
4361 },
4362 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004363 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
4364 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4365 # operation is taking place. This field is deprecated, use location instead.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004366 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
Bu Sun Kim65020912020-05-20 12:08:20 -07004367 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004368 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
4369 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
4370 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07004371 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004372 { # StatusCondition describes why a cluster or a node pool has a certain status
4373 # (e.g., ERROR or DEGRADED).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004374 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004375 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004376 },
4377 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07004378 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07004379 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4380 # or
4381 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4382 # in which the cluster resides.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004383 &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 -07004384 }</pre>
4385</div>
4386
4387<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07004388 <code class="details" id="setResourceLabels">setResourceLabels(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004389 <pre>Sets labels on a cluster.
4390
4391Args:
4392 name: string, The name (project, location, cluster id) of the cluster to set labels.
Bu Sun Kim65020912020-05-20 12:08:20 -07004393Specified in the format `projects/*/locations/*/clusters/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07004394 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004395 The object takes the form of:
4396
4397{ # SetLabelsRequest sets the Google Cloud Platform labels on a Google Container
4398 # Engine cluster, which will in turn set them for Google Compute Engine
4399 # resources used by that cluster
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004400 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster id) of the cluster to set labels.
4401 # Specified in the format `projects/*/locations/*/clusters/*`.
4402 &quot;projectId&quot;: &quot;A String&quot;, # Deprecated. The Google Developers Console [project ID or project
4403 # number](https://developers.google.com/console/help/new/#projectnumber).
4404 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07004405 &quot;clusterId&quot;: &quot;A String&quot;, # Deprecated. The name of the cluster.
4406 # This field has been deprecated and replaced by the name field.
4407 &quot;labelFingerprint&quot;: &quot;A String&quot;, # Required. The fingerprint of the previous set of labels for this resource,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004408 # used to detect conflicts. The fingerprint is initially generated by
4409 # Kubernetes Engine and changes after every request to modify or update
4410 # labels. You must always provide an up-to-date fingerprint hash when
Dan O'Mearadd494642020-05-01 07:42:23 -07004411 # updating or changing labels. Make a &lt;code&gt;get()&lt;/code&gt; request to the
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004412 # resource to get the latest fingerprint.
Bu Sun Kim65020912020-05-20 12:08:20 -07004413 &quot;zone&quot;: &quot;A String&quot;, # Deprecated. The name of the Google Compute Engine
4414 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4415 # cluster resides. This field has been deprecated and replaced by the name
4416 # field.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004417 &quot;resourceLabels&quot;: { # Required. The labels to set for that cluster.
4418 &quot;a_key&quot;: &quot;A String&quot;,
4419 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004420 }
4421
4422 x__xgafv: string, V1 error format.
4423 Allowed values
4424 1 - v1 error format
4425 2 - v2 error format
4426
4427Returns:
4428 An object of the form:
4429
4430 { # This operation resource represents operations that may have happened or are
4431 # happening on the cluster. All fields are output only.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004432 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
4433 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
4434 # Unset for single-stage operations.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004435 &quot;metrics&quot;: [ # Progress metric bundle, for example:
4436 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
4437 # {name: &quot;nodes total&quot;, int_value: 32}]
4438 # or
4439 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
4440 # {name: &quot;progress scale&quot;, double_value: 1.0}]
4441 { # Progress metric is (string, int|float|string) pair.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004442 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004443 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
4444 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004445 &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 -07004446 },
4447 ],
4448 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
4449 # Unset for single-stage operations.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004450 &quot;stages&quot;: [ # Substages of an operation or a stage.
4451 # Object with schema name: OperationProgress
4452 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004453 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004454 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
4455 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
4456 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
4457 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
4458 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
4459 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
4460 { # StatusCondition describes why a cluster or a node pool has a certain status
4461 # (e.g., ERROR or DEGRADED).
4462 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
4463 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
4464 },
4465 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004466 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
4467 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4468 # operation is taking place. This field is deprecated, use location instead.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004469 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
Bu Sun Kim65020912020-05-20 12:08:20 -07004470 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004471 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
4472 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
4473 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07004474 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004475 { # StatusCondition describes why a cluster or a node pool has a certain status
4476 # (e.g., ERROR or DEGRADED).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004477 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004478 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004479 },
4480 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07004481 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07004482 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4483 # or
4484 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4485 # in which the cluster resides.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004486 &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 -07004487 }</pre>
4488</div>
4489
4490<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07004491 <code class="details" id="startIpRotation">startIpRotation(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004492 <pre>Starts master IP rotation.
4493
4494Args:
4495 name: string, The name (project, location, cluster id) of the cluster to start IP
Bu Sun Kim65020912020-05-20 12:08:20 -07004496rotation. Specified in the format `projects/*/locations/*/clusters/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07004497 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004498 The object takes the form of:
4499
4500{ # StartIPRotationRequest creates a new IP for the cluster and then performs
4501 # a node upgrade on each node pool to point to the new IP.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004502 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster id) of the cluster to start IP
4503 # rotation. Specified in the format `projects/*/locations/*/clusters/*`.
Bu Sun Kim65020912020-05-20 12:08:20 -07004504 &quot;zone&quot;: &quot;A String&quot;, # Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07004505 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4506 # cluster resides. This field has been deprecated and replaced by the name
4507 # field.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004508 &quot;rotateCredentials&quot;: True or False, # Whether to rotate credentials during IP rotation.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004509 &quot;projectId&quot;: &quot;A String&quot;, # Deprecated. The Google Developers Console [project ID or project
4510 # number](https://developers.google.com/console/help/new/#projectnumber).
4511 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07004512 &quot;clusterId&quot;: &quot;A String&quot;, # Deprecated. The name of the cluster.
4513 # This field has been deprecated and replaced by the name field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004514 }
4515
4516 x__xgafv: string, V1 error format.
4517 Allowed values
4518 1 - v1 error format
4519 2 - v2 error format
4520
4521Returns:
4522 An object of the form:
4523
4524 { # This operation resource represents operations that may have happened or are
4525 # happening on the cluster. All fields are output only.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004526 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
4527 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
4528 # Unset for single-stage operations.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004529 &quot;metrics&quot;: [ # Progress metric bundle, for example:
4530 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
4531 # {name: &quot;nodes total&quot;, int_value: 32}]
4532 # or
4533 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
4534 # {name: &quot;progress scale&quot;, double_value: 1.0}]
4535 { # Progress metric is (string, int|float|string) pair.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004536 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004537 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
4538 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004539 &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 -07004540 },
4541 ],
4542 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
4543 # Unset for single-stage operations.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004544 &quot;stages&quot;: [ # Substages of an operation or a stage.
4545 # Object with schema name: OperationProgress
4546 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004547 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004548 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
4549 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
4550 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
4551 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
4552 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
4553 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
4554 { # StatusCondition describes why a cluster or a node pool has a certain status
4555 # (e.g., ERROR or DEGRADED).
4556 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
4557 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
4558 },
4559 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004560 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
4561 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4562 # operation is taking place. This field is deprecated, use location instead.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004563 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
Bu Sun Kim65020912020-05-20 12:08:20 -07004564 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004565 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
4566 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
4567 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07004568 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004569 { # StatusCondition describes why a cluster or a node pool has a certain status
4570 # (e.g., ERROR or DEGRADED).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004571 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004572 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004573 },
4574 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07004575 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07004576 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4577 # or
4578 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4579 # in which the cluster resides.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004580 &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 -07004581 }</pre>
4582</div>
4583
4584<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07004585 <code class="details" id="update">update(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004586 <pre>Updates the settings of a specific cluster.
4587
4588Args:
4589 name: string, The name (project, location, cluster) of the cluster to update.
Bu Sun Kim65020912020-05-20 12:08:20 -07004590Specified in the format `projects/*/locations/*/clusters/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07004591 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004592 The object takes the form of:
4593
4594{ # UpdateClusterRequest updates the settings of a cluster.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004595 &quot;clusterId&quot;: &quot;A String&quot;, # Deprecated. The name of the cluster to upgrade.
4596 # This field has been deprecated and replaced by the name field.
4597 &quot;projectId&quot;: &quot;A String&quot;, # Deprecated. The Google Developers Console [project ID or project
4598 # number](https://support.google.com/cloud/answer/6158840).
4599 # This field has been deprecated and replaced by the name field.
4600 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster) of the cluster to update.
4601 # Specified in the format `projects/*/locations/*/clusters/*`.
Bu Sun Kim65020912020-05-20 12:08:20 -07004602 &quot;update&quot;: { # ClusterUpdate describes an update to the cluster. Exactly one update can # Required. A description of the update.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004603 # be applied to a cluster with each request, so at most one field can be
4604 # provided.
Bu Sun Kim65020912020-05-20 12:08:20 -07004605 &quot;desiredNodeVersion&quot;: &quot;A String&quot;, # The Kubernetes version to change the nodes to (typically an
4606 # upgrade).
4607 #
4608 # Users may specify either explicit versions offered by
4609 # Kubernetes Engine or version aliases, which have the following behavior:
4610 #
4611 # - &quot;latest&quot;: picks the highest valid Kubernetes version
4612 # - &quot;1.X&quot;: picks the highest valid patch+gke.N patch in the 1.X version
4613 # - &quot;1.X.Y&quot;: picks the highest valid gke.N patch in the 1.X.Y version
4614 # - &quot;1.X.Y-gke.N&quot;: picks an explicit Kubernetes version
4615 # - &quot;-&quot;: picks the Kubernetes master version
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004616 &quot;desiredWorkloadIdentityConfig&quot;: { # Configuration for the use of Kubernetes Service Accounts in GCP IAM # Configuration for Workload Identity.
4617 # policies.
4618 &quot;workloadPool&quot;: &quot;A String&quot;, # The workload pool to attach all Kubernetes service accounts to.
4619 },
4620 &quot;desiredVerticalPodAutoscaling&quot;: { # VerticalPodAutoscaling contains global, per-cluster information # Cluster-level Vertical Pod Autoscaling configuration.
4621 # required by Vertical Pod Autoscaler to automatically adjust
4622 # the resources of pods controlled by it.
4623 &quot;enabled&quot;: True or False, # Enables vertical pod autoscaling.
4624 },
4625 &quot;desiredResourceUsageExportConfig&quot;: { # Configuration for exporting cluster resource usages. # The desired configuration for exporting resource usage.
4626 &quot;enableNetworkEgressMetering&quot;: True or False, # Whether to enable network egress metering for this cluster. If enabled, a
4627 # daemonset will be created in the cluster to meter network egress traffic.
4628 &quot;bigqueryDestination&quot;: { # Parameters for using BigQuery as the destination of resource usage export. # Configuration to use BigQuery as usage export destination.
4629 &quot;datasetId&quot;: &quot;A String&quot;, # The ID of a BigQuery Dataset.
4630 },
4631 &quot;consumptionMeteringConfig&quot;: { # Parameters for controlling consumption metering. # Configuration to enable resource consumption metering.
4632 &quot;enabled&quot;: True or False, # Whether to enable consumption metering for this cluster. If enabled, a
4633 # second BigQuery table will be created to hold resource consumption
4634 # records.
4635 },
4636 },
4637 &quot;desiredMasterVersion&quot;: &quot;A String&quot;, # The Kubernetes version to change the master to.
4638 #
4639 # Users may specify either explicit versions offered by
4640 # Kubernetes Engine or version aliases, which have the following behavior:
4641 #
4642 # - &quot;latest&quot;: picks the highest valid Kubernetes version
4643 # - &quot;1.X&quot;: picks the highest valid patch+gke.N patch in the 1.X version
4644 # - &quot;1.X.Y&quot;: picks the highest valid gke.N patch in the 1.X.Y version
4645 # - &quot;1.X.Y-gke.N&quot;: picks an explicit Kubernetes version
4646 # - &quot;-&quot;: picks the default Kubernetes version
4647 &quot;desiredMonitoringService&quot;: &quot;A String&quot;, # The monitoring service the cluster should use to write metrics.
4648 # Currently available options:
4649 #
4650 # * &quot;monitoring.googleapis.com/kubernetes&quot; - The Cloud Monitoring
4651 # service with a Kubernetes-native resource model
4652 # * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
4653 # longer available as of GKE 1.15).
4654 # * `none` - No metrics will be exported from the cluster.
4655 #
4656 # If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
4657 # used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
4658 &quot;desiredLoggingService&quot;: &quot;A String&quot;, # The logging service the cluster should use to write logs.
4659 # Currently available options:
4660 #
4661 # * `logging.googleapis.com/kubernetes` - The Cloud Logging
4662 # service with a Kubernetes-native resource model
4663 # * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
4664 # available as of GKE 1.15).
4665 # * `none` - no logs will be exported from the cluster.
4666 #
4667 # If left as an empty string,`logging.googleapis.com/kubernetes` will be
4668 # used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
4669 &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.
4670 # cluster, enabling additional functionality.
4671 &quot;kubernetesDashboard&quot;: { # Configuration for the Kubernetes Dashboard. # Configuration for the Kubernetes Dashboard.
4672 # This addon is deprecated, and will be disabled in 1.15. It is recommended
4673 # to use the Cloud Console to manage and monitor your Kubernetes clusters,
4674 # workloads and applications. For more information, see:
4675 # https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
4676 &quot;disabled&quot;: True or False, # Whether the Kubernetes Dashboard is enabled for this cluster.
4677 },
4678 &quot;cloudRunConfig&quot;: { # Configuration options for the Cloud Run feature. # Configuration for the Cloud Run addon, which allows the user to use a
4679 # managed Knative service.
4680 &quot;disabled&quot;: True or False, # Whether Cloud Run addon is enabled for this cluster.
4681 },
4682 &quot;httpLoadBalancing&quot;: { # Configuration options for the HTTP (L7) load balancing controller addon, # Configuration for the HTTP (L7) load balancing controller addon, which
4683 # makes it easy to set up HTTP load balancers for services in a cluster.
4684 # which makes it easy to set up HTTP load balancers for services in a cluster.
4685 &quot;disabled&quot;: True or False, # Whether the HTTP Load Balancing controller is enabled in the cluster.
4686 # When enabled, it runs a small pod in the cluster that manages the load
4687 # balancers.
4688 },
4689 &quot;horizontalPodAutoscaling&quot;: { # Configuration options for the horizontal pod autoscaling feature, which # Configuration for the horizontal pod autoscaling feature, which
4690 # increases or decreases the number of replica pods a replication controller
4691 # has based on the resource usage of the existing pods.
4692 # increases or decreases the number of replica pods a replication controller
4693 # has based on the resource usage of the existing pods.
4694 &quot;disabled&quot;: True or False, # Whether the Horizontal Pod Autoscaling feature is enabled in the cluster.
4695 # When enabled, it ensures that metrics are collected into Stackdriver
4696 # Monitoring.
4697 },
4698 &quot;dnsCacheConfig&quot;: { # Configuration for NodeLocal DNSCache # Configuration for NodeLocalDNS, a dns cache running on cluster nodes
4699 &quot;enabled&quot;: True or False, # Whether NodeLocal DNSCache is enabled for this cluster.
4700 },
4701 &quot;networkPolicyConfig&quot;: { # Configuration for NetworkPolicy. This only tracks whether the addon # Configuration for NetworkPolicy. This only tracks whether the addon
4702 # is enabled or not on the Master, it does not track whether network policy
4703 # is enabled for the nodes.
4704 # is enabled or not on the Master, it does not track whether network policy
4705 # is enabled for the nodes.
4706 &quot;disabled&quot;: True or False, # Whether NetworkPolicy is enabled for this cluster.
4707 },
4708 },
4709 &quot;desiredNodePoolAutoscaling&quot;: { # NodePoolAutoscaling contains information required by cluster autoscaler to # Autoscaler configuration for the node pool specified in
4710 # desired_node_pool_id. If there is only one pool in the
4711 # cluster and desired_node_pool_id is not provided then
4712 # the change applies to that single node pool.
4713 # adjust the size of the node pool to the current cluster usage.
4714 &quot;minNodeCount&quot;: 42, # Minimum number of nodes in the NodePool. Must be &gt;= 1 and &lt;=
4715 # max_node_count.
4716 &quot;maxNodeCount&quot;: 42, # Maximum number of nodes in the NodePool. Must be &gt;= min_node_count. There
4717 # has to enough quota to scale up the cluster.
4718 &quot;enabled&quot;: True or False, # Is autoscaling enabled for this node pool.
4719 &quot;autoprovisioned&quot;: True or False, # Can this node pool be deleted automatically.
4720 },
4721 &quot;desiredLocations&quot;: [ # The desired list of Google Compute Engine
4722 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
4723 # cluster&#x27;s nodes should be located. Changing the locations a cluster is in
4724 # will result in nodes being either created or removed from the cluster,
4725 # depending on whether locations are being added or removed.
4726 #
4727 # This list must always include the cluster&#x27;s primary zone.
4728 &quot;A String&quot;,
4729 ],
4730 &quot;desiredMasterAuthorizedNetworksConfig&quot;: { # Configuration options for the master authorized networks feature. Enabled # The desired configuration options for master authorized networks feature.
4731 # master authorized networks will disallow all external traffic to access
4732 # Kubernetes master through HTTPS except traffic from the given CIDR blocks,
4733 # Google Compute Engine Public IPs and Google Prod IPs.
4734 &quot;enabled&quot;: True or False, # Whether or not master authorized networks is enabled.
4735 &quot;cidrBlocks&quot;: [ # cidr_blocks define up to 50 external networks that could access
4736 # Kubernetes master through HTTPS.
4737 { # CidrBlock contains an optional name and one CIDR block.
4738 &quot;displayName&quot;: &quot;A String&quot;, # display_name is an optional field for users to identify CIDR blocks.
4739 &quot;cidrBlock&quot;: &quot;A String&quot;, # cidr_block must be specified in CIDR notation.
4740 },
4741 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07004742 },
4743 &quot;desiredClusterAutoscaling&quot;: { # ClusterAutoscaling contains global, per-cluster information # Cluster-level autoscaling configuration.
Dan O'Mearadd494642020-05-01 07:42:23 -07004744 # required by Cluster Autoscaler to automatically adjust
4745 # the size of the cluster and create/delete
4746 # node pools based on the current needs.
Bu Sun Kim65020912020-05-20 12:08:20 -07004747 &quot;resourceLimits&quot;: [ # Contains global constraints regarding minimum and maximum
4748 # amount of resources in the cluster.
4749 { # Contains information about amount of some resource in the cluster.
4750 # For memory, value should be in GB.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004751 &quot;minimum&quot;: &quot;A String&quot;, # Minimum amount of the resource in the cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -07004752 &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 -07004753 &quot;maximum&quot;: &quot;A String&quot;, # Maximum amount of the resource in the cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -07004754 },
4755 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07004756 &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 -07004757 # created by NAP.
4758 # by NAP.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004759 &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 -07004760 &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 -07004761 # node pool.
Bu Sun Kim65020912020-05-20 12:08:20 -07004762 &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 -07004763 # the Auto Upgrades will proceed.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004764 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
4765 # with the description of the upgrade.
Bu Sun Kim65020912020-05-20 12:08:20 -07004766 &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 -07004767 # with the approximate start time for the upgrades, in
4768 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
4769 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004770 &quot;autoRepair&quot;: True or False, # A flag that specifies whether the node auto-repair is enabled for the node
4771 # pool. If enabled, the nodes in this node pool will be monitored and, if
4772 # they fail health checks too many times, an automatic repair action will be
4773 # triggered.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004774 &quot;autoUpgrade&quot;: True or False, # A flag that specifies whether node auto-upgrade is enabled for the node
4775 # pool. If enabled, node auto-upgrade helps keep the nodes in your node pool
4776 # up to date with the latest release version of Kubernetes.
Dan O'Mearadd494642020-05-01 07:42:23 -07004777 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004778 &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 -07004779 # disruption caused by an upgrade.
4780 #
4781 # maxUnavailable controls the number of nodes that can be simultaneously
4782 # unavailable.
4783 #
4784 # maxSurge controls the number of additional nodes that can be added to the
4785 # node pool temporarily for the time of the upgrade to increase the number of
4786 # available nodes.
4787 #
4788 # (maxUnavailable + maxSurge) determines the level of parallelism (how many
4789 # nodes are being upgraded at the same time).
4790 #
4791 # Note: upgrades inevitably introduce some disruption since workloads need to
4792 # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
4793 # this holds true. (Disruption stays within the limits of
4794 # PodDisruptionBudget, if it is configured.)
4795 #
4796 # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
4797 # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
4798 # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
4799 # down 3 old (not yet upgraded) nodes at the same time. This ensures that
4800 # there are always at least 4 nodes available.
Bu Sun Kim65020912020-05-20 12:08:20 -07004801 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during
Dan O'Mearadd494642020-05-01 07:42:23 -07004802 # the upgrade process. A node is considered available if its status is
4803 # Ready.
Bu Sun Kim65020912020-05-20 12:08:20 -07004804 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size
4805 # of the node pool during the upgrade process.
Dan O'Mearadd494642020-05-01 07:42:23 -07004806 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004807 &quot;oauthScopes&quot;: [ # Scopes that are used by NAP when creating node pools.
4808 &quot;A String&quot;,
4809 ],
Dan O'Mearadd494642020-05-01 07:42:23 -07004810 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004811 &quot;enableNodeAutoprovisioning&quot;: True or False, # Enables automatic node pool creation and deletion.
4812 &quot;autoprovisioningLocations&quot;: [ # The list of Google Compute Engine
4813 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
4814 # NodePool&#x27;s nodes can be created by NAP.
4815 &quot;A String&quot;,
4816 ],
4817 },
4818 &quot;desiredNodePoolId&quot;: &quot;A String&quot;, # The node pool to be upgraded. This field is mandatory if
4819 # &quot;desired_node_version&quot;, &quot;desired_image_family&quot; or
4820 # &quot;desired_node_pool_autoscaling&quot; is specified and there is more than one
4821 # node pool on the cluster.
4822 &quot;desiredImageType&quot;: &quot;A String&quot;, # The desired image type for the node pool.
4823 # NOTE: Set the &quot;desired_node_pool&quot; field as well.
4824 &quot;desiredReleaseChannel&quot;: { # ReleaseChannel indicates which release channel a cluster is # The desired release channel configuration.
4825 # subscribed to. Release channels are arranged in order of risk.
4826 #
4827 # When a cluster is subscribed to a release channel, Google maintains
4828 # both the master version and the node version. Node auto-upgrade
4829 # defaults to true and cannot be disabled.
4830 &quot;channel&quot;: &quot;A String&quot;, # channel specifies which release channel the cluster is subscribed to.
4831 },
4832 &quot;desiredIntraNodeVisibilityConfig&quot;: { # IntraNodeVisibilityConfig contains the desired config of the intra-node # The desired config of Intra-node visibility.
4833 # visibility on this cluster.
4834 &quot;enabled&quot;: True or False, # Enables intra node visibility for this cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -07004835 },
4836 &quot;desiredDatabaseEncryption&quot;: { # Configuration of etcd encryption. # Configuration of etcd encryption.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004837 &quot;state&quot;: &quot;A String&quot;, # Denotes the state of etcd encryption.
Bu Sun Kim65020912020-05-20 12:08:20 -07004838 &quot;keyName&quot;: &quot;A String&quot;, # Name of CloudKMS key to use for the encryption of secrets in etcd.
4839 # Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key
Bu Sun Kim65020912020-05-20 12:08:20 -07004840 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004841 &quot;desiredShieldedNodes&quot;: { # Configuration of Shielded Nodes feature. # Configuration for Shielded Nodes.
4842 &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 -07004843 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004844 &quot;desiredBinaryAuthorization&quot;: { # Configuration for Binary Authorization. # The desired configuration options for the Binary Authorization feature.
4845 &quot;enabled&quot;: True or False, # Enable Binary Authorization for this cluster. If enabled, all container
4846 # images will be validated by Binary Authorization.
Dan O'Mearadd494642020-05-01 07:42:23 -07004847 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004848 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004849 &quot;zone&quot;: &quot;A String&quot;, # Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07004850 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4851 # cluster resides. This field has been deprecated and replaced by the name
4852 # field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004853 }
4854
4855 x__xgafv: string, V1 error format.
4856 Allowed values
4857 1 - v1 error format
4858 2 - v2 error format
4859
4860Returns:
4861 An object of the form:
4862
4863 { # This operation resource represents operations that may have happened or are
4864 # happening on the cluster. All fields are output only.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004865 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
4866 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
4867 # Unset for single-stage operations.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004868 &quot;metrics&quot;: [ # Progress metric bundle, for example:
4869 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
4870 # {name: &quot;nodes total&quot;, int_value: 32}]
4871 # or
4872 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
4873 # {name: &quot;progress scale&quot;, double_value: 1.0}]
4874 { # Progress metric is (string, int|float|string) pair.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004875 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004876 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
4877 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004878 &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 -07004879 },
4880 ],
4881 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
4882 # Unset for single-stage operations.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004883 &quot;stages&quot;: [ # Substages of an operation or a stage.
4884 # Object with schema name: OperationProgress
4885 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004886 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004887 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
4888 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
4889 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
4890 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
4891 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
4892 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
4893 { # StatusCondition describes why a cluster or a node pool has a certain status
4894 # (e.g., ERROR or DEGRADED).
4895 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
4896 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
4897 },
4898 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004899 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
4900 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4901 # operation is taking place. This field is deprecated, use location instead.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004902 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
Bu Sun Kim65020912020-05-20 12:08:20 -07004903 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004904 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
4905 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
4906 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07004907 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004908 { # StatusCondition describes why a cluster or a node pool has a certain status
4909 # (e.g., ERROR or DEGRADED).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004910 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004911 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004912 },
4913 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07004914 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07004915 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4916 # or
4917 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4918 # in which the cluster resides.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004919 &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 -07004920 }</pre>
4921</div>
4922
4923<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07004924 <code class="details" id="updateMaster">updateMaster(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004925 <pre>Updates the master for a specific cluster.
4926
4927Args:
4928 name: string, The name (project, location, cluster) of the cluster to update.
Bu Sun Kim65020912020-05-20 12:08:20 -07004929Specified in the format `projects/*/locations/*/clusters/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07004930 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004931 The object takes the form of:
4932
4933{ # UpdateMasterRequest updates the master of the cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -07004934 &quot;masterVersion&quot;: &quot;A String&quot;, # Required. The Kubernetes version to change the master to.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004935 #
4936 # Users may specify either explicit versions offered by Kubernetes Engine or
4937 # version aliases, which have the following behavior:
4938 #
Bu Sun Kim65020912020-05-20 12:08:20 -07004939 # - &quot;latest&quot;: picks the highest valid Kubernetes version
4940 # - &quot;1.X&quot;: picks the highest valid patch+gke.N patch in the 1.X version
4941 # - &quot;1.X.Y&quot;: picks the highest valid gke.N patch in the 1.X.Y version
4942 # - &quot;1.X.Y-gke.N&quot;: picks an explicit Kubernetes version
4943 # - &quot;-&quot;: picks the default Kubernetes version
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004944 &quot;projectId&quot;: &quot;A String&quot;, # Deprecated. The Google Developers Console [project ID or project
4945 # number](https://support.google.com/cloud/answer/6158840).
4946 # This field has been deprecated and replaced by the name field.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004947 &quot;zone&quot;: &quot;A String&quot;, # Deprecated. The name of the Google Compute Engine
4948 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4949 # cluster resides. This field has been deprecated and replaced by the name
4950 # field.
Bu Sun Kim65020912020-05-20 12:08:20 -07004951 &quot;clusterId&quot;: &quot;A String&quot;, # Deprecated. The name of the cluster to upgrade.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004952 # This field has been deprecated and replaced by the name field.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004953 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster) of the cluster to update.
4954 # Specified in the format `projects/*/locations/*/clusters/*`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004955 }
4956
4957 x__xgafv: string, V1 error format.
4958 Allowed values
4959 1 - v1 error format
4960 2 - v2 error format
4961
4962Returns:
4963 An object of the form:
4964
4965 { # This operation resource represents operations that may have happened or are
4966 # happening on the cluster. All fields are output only.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004967 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
4968 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
4969 # Unset for single-stage operations.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004970 &quot;metrics&quot;: [ # Progress metric bundle, for example:
4971 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
4972 # {name: &quot;nodes total&quot;, int_value: 32}]
4973 # or
4974 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
4975 # {name: &quot;progress scale&quot;, double_value: 1.0}]
4976 { # Progress metric is (string, int|float|string) pair.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004977 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004978 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
4979 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004980 &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 -07004981 },
4982 ],
4983 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
4984 # Unset for single-stage operations.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004985 &quot;stages&quot;: [ # Substages of an operation or a stage.
4986 # Object with schema name: OperationProgress
4987 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004988 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004989 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
4990 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
4991 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
4992 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
4993 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
4994 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
4995 { # StatusCondition describes why a cluster or a node pool has a certain status
4996 # (e.g., ERROR or DEGRADED).
4997 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
4998 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
4999 },
5000 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07005001 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
5002 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
5003 # operation is taking place. This field is deprecated, use location instead.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07005004 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
Bu Sun Kim65020912020-05-20 12:08:20 -07005005 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07005006 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
5007 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
5008 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07005009 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07005010 { # StatusCondition describes why a cluster or a node pool has a certain status
5011 # (e.g., ERROR or DEGRADED).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07005012 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kimd059ad82020-07-22 17:02:09 -07005013 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07005014 },
5015 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07005016 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07005017 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
5018 # or
5019 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
5020 # in which the cluster resides.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07005021 &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 -07005022 }</pre>
5023</div>
5024
5025</body></html>