blob: 0cb091d5e532805f9f4a46761389bff292eeb3de [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 Kim65020912020-05-20 12:08:20 -070094 <code><a href="#delete">delete(name, projectId=None, zone=None, clusterId=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 Kim4ed7d3f2020-05-27 12:20:54 -070097 <code><a href="#get">get(name, clusterId=None, projectId=None, zone=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 Kim65020912020-05-20 12:08:20 -0700103 <code><a href="#list">list(parent, projectId=None, zone=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 Kim4ed7d3f2020-05-27 12:20:54 -0700153 &quot;clusterId&quot;: &quot;A String&quot;, # Deprecated. The name of the cluster.
154 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -0700155 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster id) of the cluster to complete IP
156 # rotation. Specified in the format `projects/*/locations/*/clusters/*`.
157 &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;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
177 { # StatusCondition describes why a cluster or a node pool has a certain status
178 # (e.g., ERROR or DEGRADED).
179 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
180 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
181 },
182 ],
183 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
184 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
185 # Unset for single-stage operations.
186 &quot;stages&quot;: [ # Substages of an operation or a stage.
187 # Object with schema name: OperationProgress
188 ],
189 &quot;metrics&quot;: [ # Progress metric bundle, for example:
190 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
191 # {name: &quot;nodes total&quot;, int_value: 32}]
192 # or
193 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
194 # {name: &quot;progress scale&quot;, double_value: 1.0}]
195 { # Progress metric is (string, int|float|string) pair.
196 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
197 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
198 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
199 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
200 },
201 ],
202 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
203 # Unset for single-stage operations.
204 },
205 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
206 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
207 # operation is taking place. This field is deprecated, use location instead.
208 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
209 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
210 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
211 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
212 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
213 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Bu Sun Kim65020912020-05-20 12:08:20 -0700214 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
215 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700216 { # StatusCondition describes why a cluster or a node pool has a certain status
217 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -0700218 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700219 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700220 },
221 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700222 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
Dan O'Mearadd494642020-05-01 07:42:23 -0700223 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -0700224 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -0700225 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
226 # or
227 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
228 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -0700229 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
230 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
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 Kim4ed7d3f2020-05-27 12:20:54 -0700258 &quot;parent&quot;: &quot;A String&quot;, # The parent (project and location) where the cluster will be created.
259 # Specified in the format `projects/*/locations/*`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700260 &quot;cluster&quot;: { # A Google Kubernetes Engine cluster. # Required. A [cluster
Dan O'Mearadd494642020-05-01 07:42:23 -0700261 # resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.zones.clusters)
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700262 &quot;createTime&quot;: &quot;A String&quot;, # [Output only] The time the cluster was created, in
263 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
264 &quot;clusterIpv4Cidr&quot;: &quot;A String&quot;, # The IP address range of the container pods in this cluster, in
265 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
266 # notation (e.g. `10.96.0.0/14`). Leave blank to have
267 # one automatically chosen or specify a `/14` block in `10.0.0.0/8`.
268 &quot;autoscaling&quot;: { # ClusterAutoscaling contains global, per-cluster information # Cluster-level autoscaling configuration.
269 # required by Cluster Autoscaler to automatically adjust
270 # the size of the cluster and create/delete
271 # node pools based on the current needs.
272 &quot;autoprovisioningLocations&quot;: [ # The list of Google Compute Engine
273 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
274 # NodePool&#x27;s nodes can be created by NAP.
275 &quot;A String&quot;,
276 ],
277 &quot;resourceLimits&quot;: [ # Contains global constraints regarding minimum and maximum
278 # amount of resources in the cluster.
279 { # Contains information about amount of some resource in the cluster.
280 # For memory, value should be in GB.
281 &quot;minimum&quot;: &quot;A String&quot;, # Minimum amount of the resource in the cluster.
282 &quot;maximum&quot;: &quot;A String&quot;, # Maximum amount of the resource in the cluster.
283 &quot;resourceType&quot;: &quot;A String&quot;, # Resource name &quot;cpu&quot;, &quot;memory&quot; or gpu-specific string.
284 },
285 ],
286 &quot;enableNodeAutoprovisioning&quot;: True or False, # Enables automatic node pool creation and deletion.
287 &quot;autoprovisioningNodePoolDefaults&quot;: { # AutoprovisioningNodePoolDefaults contains defaults for a node pool created # AutoprovisioningNodePoolDefaults contains defaults for a node pool
288 # created by NAP.
289 # by NAP.
290 &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.
291 # node pool.
292 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool.
293 # the Auto Upgrades will proceed.
294 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
295 # with the approximate start time for the upgrades, in
296 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
297 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
298 # with the description of the upgrade.
299 },
300 &quot;autoRepair&quot;: True or False, # A flag that specifies whether the node auto-repair is enabled for the node
301 # pool. If enabled, the nodes in this node pool will be monitored and, if
302 # they fail health checks too many times, an automatic repair action will be
303 # triggered.
304 &quot;autoUpgrade&quot;: True or False, # A flag that specifies whether node auto-upgrade is enabled for the node
305 # pool. If enabled, node auto-upgrade helps keep the nodes in your node pool
306 # up to date with the latest release version of Kubernetes.
307 },
308 &quot;oauthScopes&quot;: [ # Scopes that are used by NAP when creating node pools. If oauth_scopes are
309 # specified, service_account should be empty.
310 &quot;A String&quot;,
311 ],
312 &quot;upgradeSettings&quot;: { # These upgrade settings control the level of parallelism and the level of # Specifies the upgrade settings for NAP created node pools
313 # disruption caused by an upgrade.
314 #
315 # maxUnavailable controls the number of nodes that can be simultaneously
316 # unavailable.
317 #
318 # maxSurge controls the number of additional nodes that can be added to the
319 # node pool temporarily for the time of the upgrade to increase the number of
320 # available nodes.
321 #
322 # (maxUnavailable + maxSurge) determines the level of parallelism (how many
323 # nodes are being upgraded at the same time).
324 #
325 # Note: upgrades inevitably introduce some disruption since workloads need to
326 # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
327 # this holds true. (Disruption stays within the limits of
328 # PodDisruptionBudget, if it is configured.)
329 #
330 # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
331 # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
332 # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
333 # down 3 old (not yet upgraded) nodes at the same time. This ensures that
334 # there are always at least 4 nodes available.
335 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during
336 # the upgrade process. A node is considered available if its status is
337 # Ready.
338 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size
339 # of the node pool during the upgrade process.
340 },
341 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs. If
342 # service_account is specified, scopes should be empty.
343 },
344 },
345 &quot;initialNodeCount&quot;: 42, # The number of nodes to create in this cluster. You must ensure that your
346 # Compute Engine &lt;a href=&quot;/compute/docs/resource-quotas&quot;&gt;resource quota&lt;/a&gt;
347 # is sufficient for this number of instances. You must also have available
348 # firewall and routes quota.
349 # For requests, this field should only be used in lieu of a
350 # &quot;node_pool&quot; object, since this configuration (along with the
351 # &quot;node_config&quot;) will be used to create a &quot;NodePool&quot; object with an
352 # auto-generated name. Do not use this and a node_pool at the same time.
353 #
354 # This field is deprecated, use node_pool.initial_node_count instead.
355 &quot;instanceGroupUrls&quot;: [ # Deprecated. Use node_pools.instance_group_urls.
356 &quot;A String&quot;,
357 ],
358 &quot;privateClusterConfig&quot;: { # Configuration options for private clusters. # Configuration for private cluster.
359 &quot;masterIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP range in CIDR notation to use for the hosted master network. This
360 # range will be used for assigning internal IP addresses to the master or
361 # set of masters, as well as the ILB VIP. This range must not overlap with
362 # any other ranges in use within the cluster&#x27;s network.
363 &quot;enablePrivateNodes&quot;: True or False, # Whether nodes have internal IP addresses only. If enabled, all nodes are
364 # given only RFC 1918 private addresses and communicate with the master via
365 # private networking.
366 &quot;privateEndpoint&quot;: &quot;A String&quot;, # Output only. The internal IP address of this cluster&#x27;s master endpoint.
367 &quot;enablePrivateEndpoint&quot;: True or False, # Whether the master&#x27;s internal IP address is used as the cluster endpoint.
368 &quot;peeringName&quot;: &quot;A String&quot;, # Output only. The peering name in the customer VPC used by this cluster.
369 &quot;publicEndpoint&quot;: &quot;A String&quot;, # Output only. The external IP address of this cluster&#x27;s master endpoint.
370 },
371 &quot;shieldedNodes&quot;: { # Configuration of Shielded Nodes feature. # Shielded Nodes configuration.
372 &quot;enabled&quot;: True or False, # Whether Shielded Nodes features are enabled on all nodes in this cluster.
373 },
374 &quot;verticalPodAutoscaling&quot;: { # VerticalPodAutoscaling contains global, per-cluster information # Cluster-level Vertical Pod Autoscaling configuration.
375 # required by Vertical Pod Autoscaler to automatically adjust
376 # the resources of pods controlled by it.
377 &quot;enabled&quot;: True or False, # Enables vertical pod autoscaling.
378 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700379 &quot;defaultMaxPodsConstraint&quot;: { # Constraints applied to pods. # The default constraint on the maximum number of pods that can be run
380 # simultaneously on a node in the node pool of this cluster. Only honored
381 # if cluster created with IP Alias support.
382 &quot;maxPodsPerNode&quot;: &quot;A String&quot;, # Constraint enforced on the max num of pods per node.
383 },
384 &quot;network&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
385 # [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
386 # to which the cluster is connected. If left unspecified, the `default`
387 # network will be used.
388 &quot;labelFingerprint&quot;: &quot;A String&quot;, # The fingerprint of the set of labels for this cluster.
389 &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 -0700390 # containers. This is provisioned from within the `container_ipv4_cidr`
391 # range. This field will only be set when cluster is in route-based network
392 # mode.
Bu Sun Kim65020912020-05-20 12:08:20 -0700393 &quot;masterAuthorizedNetworksConfig&quot;: { # Configuration options for the master authorized networks feature. Enabled # The configuration options for master authorized networks feature.
394 # master authorized networks will disallow all external traffic to access
395 # Kubernetes master through HTTPS except traffic from the given CIDR blocks,
396 # Google Compute Engine Public IPs and Google Prod IPs.
Bu Sun Kim65020912020-05-20 12:08:20 -0700397 &quot;cidrBlocks&quot;: [ # cidr_blocks define up to 50 external networks that could access
398 # Kubernetes master through HTTPS.
399 { # CidrBlock contains an optional name and one CIDR block.
400 &quot;displayName&quot;: &quot;A String&quot;, # display_name is an optional field for users to identify CIDR blocks.
401 &quot;cidrBlock&quot;: &quot;A String&quot;, # cidr_block must be specified in CIDR notation.
402 },
403 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700404 &quot;enabled&quot;: True or False, # Whether or not master authorized networks is enabled.
Bu Sun Kim65020912020-05-20 12:08:20 -0700405 },
406 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output only] Additional information about the current status of this
407 # cluster, if available.
408 &quot;masterAuth&quot;: { # The authentication information for accessing the master endpoint. # The authentication information for accessing the master endpoint.
409 # If unspecified, the defaults are used:
410 # For clusters before v1.12, if master_auth is unspecified, `username` will
411 # be set to &quot;admin&quot;, a random password will be generated, and a client
412 # certificate will be issued.
413 # Authentication can be done using HTTP basic auth or using client
414 # certificates.
Bu Sun Kim65020912020-05-20 12:08:20 -0700415 &quot;password&quot;: &quot;A String&quot;, # The password to use for HTTP basic authentication to the master endpoint.
416 # Because the master endpoint is open to the Internet, you should create a
417 # strong password. If a password is provided for cluster creation, username
418 # must be non-empty.
419 &quot;clientCertificateConfig&quot;: { # Configuration for client certificates on the cluster. # Configuration for client certificate authentication on the cluster. For
420 # clusters before v1.12, if no configuration is specified, a client
421 # certificate is issued.
422 &quot;issueClientCertificate&quot;: True or False, # Issue a client certificate.
423 },
424 &quot;clientKey&quot;: &quot;A String&quot;, # [Output only] Base64-encoded private key used by clients to authenticate
425 # to the cluster endpoint.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700426 &quot;clusterCaCertificate&quot;: &quot;A String&quot;, # [Output only] Base64-encoded public certificate that is the root of
427 # trust for the cluster.
428 &quot;clientCertificate&quot;: &quot;A String&quot;, # [Output only] Base64-encoded public certificate used by clients to
429 # authenticate to the cluster endpoint.
430 &quot;username&quot;: &quot;A String&quot;, # The username to use for HTTP basic authentication to the master endpoint.
431 # For clusters v1.6.0 and later, basic authentication can be disabled by
432 # leaving username unspecified (or setting it to the empty string).
Bu Sun Kim65020912020-05-20 12:08:20 -0700433 },
434 &quot;authenticatorGroupsConfig&quot;: { # Configuration for returning group information from authenticators. # Configuration controlling RBAC group membership information.
435 &quot;enabled&quot;: True or False, # Whether this cluster should return group membership lookups
436 # during authentication using a group of security groups.
437 &quot;securityGroup&quot;: &quot;A String&quot;, # The name of the security group-of-groups to be used. Only relevant
438 # if enabled = true.
439 },
440 &quot;currentMasterVersion&quot;: &quot;A String&quot;, # [Output only] The current software version of the master endpoint.
441 &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.
442 # cluster, enabling additional functionality.
443 &quot;networkPolicyConfig&quot;: { # Configuration for NetworkPolicy. This only tracks whether the addon # Configuration for NetworkPolicy. This only tracks whether the addon
444 # is enabled or not on the Master, it does not track whether network policy
445 # is enabled for the nodes.
446 # is enabled or not on the Master, it does not track whether network policy
447 # is enabled for the nodes.
448 &quot;disabled&quot;: True or False, # Whether NetworkPolicy is enabled for this cluster.
449 },
450 &quot;cloudRunConfig&quot;: { # Configuration options for the Cloud Run feature. # Configuration for the Cloud Run addon, which allows the user to use a
451 # managed Knative service.
452 &quot;disabled&quot;: True or False, # Whether Cloud Run addon is enabled for this cluster.
453 },
454 &quot;horizontalPodAutoscaling&quot;: { # Configuration options for the horizontal pod autoscaling feature, which # Configuration for the horizontal pod autoscaling feature, which
455 # increases or decreases the number of replica pods a replication controller
456 # has based on the resource usage of the existing pods.
457 # increases or decreases the number of replica pods a replication controller
458 # has based on the resource usage of the existing pods.
459 &quot;disabled&quot;: True or False, # Whether the Horizontal Pod Autoscaling feature is enabled in the cluster.
460 # When enabled, it ensures that metrics are collected into Stackdriver
461 # Monitoring.
462 },
463 &quot;httpLoadBalancing&quot;: { # Configuration options for the HTTP (L7) load balancing controller addon, # Configuration for the HTTP (L7) load balancing controller addon, which
464 # makes it easy to set up HTTP load balancers for services in a cluster.
465 # which makes it easy to set up HTTP load balancers for services in a cluster.
466 &quot;disabled&quot;: True or False, # Whether the HTTP Load Balancing controller is enabled in the cluster.
467 # When enabled, it runs a small pod in the cluster that manages the load
468 # balancers.
469 },
470 &quot;kubernetesDashboard&quot;: { # Configuration for the Kubernetes Dashboard. # Configuration for the Kubernetes Dashboard.
471 # This addon is deprecated, and will be disabled in 1.15. It is recommended
472 # to use the Cloud Console to manage and monitor your Kubernetes clusters,
473 # workloads and applications. For more information, see:
474 # https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
475 &quot;disabled&quot;: True or False, # Whether the Kubernetes Dashboard is enabled for this cluster.
476 },
477 },
478 &quot;currentNodeVersion&quot;: &quot;A String&quot;, # [Output only] Deprecated, use
479 # [NodePools.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.zones.clusters.nodePools)
480 # instead. The current version of the node software components. If they are
481 # currently at multiple versions because they&#x27;re in the process of being
482 # upgraded, this reflects the minimum version of all nodes.
483 &quot;subnetwork&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
484 # [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which
485 # the cluster is connected.
486 &quot;resourceLabels&quot;: { # The resource labels for the cluster to use to annotate any related
487 # Google Compute Engine resources.
488 &quot;a_key&quot;: &quot;A String&quot;,
489 },
490 &quot;maintenancePolicy&quot;: { # MaintenancePolicy defines the maintenance policy to be used for the cluster. # Configure the maintenance policy for this cluster.
491 &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 -0700492 &quot;maintenanceExclusions&quot;: { # Exceptions to maintenance window. Non-emergency maintenance should not
493 # occur in these windows.
494 &quot;a_key&quot;: { # Represents an arbitrary window of time.
495 &quot;endTime&quot;: &quot;A String&quot;, # The time that the window ends. The end time should take place after the
496 # start time.
497 &quot;startTime&quot;: &quot;A String&quot;, # The time that the window first starts.
498 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700499 },
500 &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 -0700501 # maintenance to occur. The time windows may be overlapping. If no
502 # maintenance windows are set, maintenance can occur at any time.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700503 &quot;window&quot;: { # Represents an arbitrary window of time. # The window of the first recurrence.
504 &quot;endTime&quot;: &quot;A String&quot;, # The time that the window ends. The end time should take place after the
505 # start time.
506 &quot;startTime&quot;: &quot;A String&quot;, # The time that the window first starts.
507 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700508 &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 -0700509 # this window reccurs. They go on for the span of time between the start and
510 # end time.
511 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700512 # For example, to have something repeat every weekday, you&#x27;d use:
Dan O'Mearadd494642020-05-01 07:42:23 -0700513 # &lt;code&gt;FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR&lt;/code&gt;
514 # To repeat some window daily (equivalent to the DailyMaintenanceWindow):
515 # &lt;code&gt;FREQ=DAILY&lt;/code&gt;
516 # For the first weekend of every month:
517 # &lt;code&gt;FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU&lt;/code&gt;
518 # This specifies how frequently the window starts. Eg, if you wanted to have
Bu Sun Kim65020912020-05-20 12:08:20 -0700519 # a 9-5 UTC-4 window every weekday, you&#x27;d use something like:
Dan O'Mearadd494642020-05-01 07:42:23 -0700520 # &lt;code&gt;
521 # start time = 2019-01-01T09:00:00-0400
522 # end time = 2019-01-01T17:00:00-0400
523 # recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
524 # &lt;/code&gt;
525 # Windows can span multiple days. Eg, to make the window encompass every
526 # weekend from midnight Saturday till the last minute of Sunday UTC:
527 # &lt;code&gt;
528 # start time = 2019-01-05T00:00:00Z
529 # end time = 2019-01-07T23:59:00Z
530 # recurrence = FREQ=WEEKLY;BYDAY=SA
531 # &lt;/code&gt;
Bu Sun Kim65020912020-05-20 12:08:20 -0700532 # Note the start and end time&#x27;s specific dates are largely arbitrary except
Dan O'Mearadd494642020-05-01 07:42:23 -0700533 # to specify duration of the window and when it first starts.
534 # The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.
Dan O'Mearadd494642020-05-01 07:42:23 -0700535 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700536 &quot;dailyMaintenanceWindow&quot;: { # Time window specified for daily maintenance operations. # DailyMaintenanceWindow specifies a daily maintenance operation window.
537 &quot;startTime&quot;: &quot;A String&quot;, # Time within the maintenance window to start the maintenance operations.
538 # Time format should be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)
539 # format &quot;HH:MM&quot;, where HH : [00-23] and MM : [00-59] GMT.
540 &quot;duration&quot;: &quot;A String&quot;, # [Output only] Duration of the time window, automatically chosen to be
541 # smallest possible in the given scenario.
542 # Duration will be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)
543 # format &quot;PTnHnMnS&quot;.
Dan O'Mearadd494642020-05-01 07:42:23 -0700544 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700545 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700546 &quot;resourceVersion&quot;: &quot;A String&quot;, # A hash identifying the version of this policy, so that updates to fields of
547 # the policy won&#x27;t accidentally undo intermediate changes (and so that users
548 # of the API unaware of some fields won&#x27;t accidentally remove other fields).
Dan O'Mearadd494642020-05-01 07:42:23 -0700549 # Make a &lt;code&gt;get()&lt;/code&gt; request to the cluster to get the current
550 # resource version and include it with requests to set the policy.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700551 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700552 &quot;initialClusterVersion&quot;: &quot;A String&quot;, # The initial Kubernetes version for this cluster. Valid versions are those
553 # found in validMasterVersions returned by getServerConfig. The version can
554 # be upgraded over time; such upgrades are reflected in
555 # currentMasterVersion and currentNodeVersion.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700556 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700557 # Users may specify either explicit versions offered by
558 # Kubernetes Engine or version aliases, which have the following behavior:
559 #
560 # - &quot;latest&quot;: picks the highest valid Kubernetes version
561 # - &quot;1.X&quot;: picks the highest valid patch+gke.N patch in the 1.X version
562 # - &quot;1.X.Y&quot;: picks the highest valid gke.N patch in the 1.X.Y version
563 # - &quot;1.X.Y-gke.N&quot;: picks an explicit Kubernetes version
564 # - &quot;&quot;,&quot;-&quot;: picks the default Kubernetes version
565 &quot;ipAllocationPolicy&quot;: { # Configuration for controlling how IPs are allocated in the cluster. # Configuration for cluster IP allocation.
Bu Sun Kim65020912020-05-20 12:08:20 -0700566 &quot;nodeIpv4Cidr&quot;: &quot;A String&quot;, # This field is deprecated, use node_ipv4_cidr_block.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700567 &quot;clusterSecondaryRangeName&quot;: &quot;A String&quot;, # The name of the secondary range to be used for the cluster CIDR
568 # block. The secondary range will be used for pod IP
569 # addresses. This must be an existing secondary range associated
570 # with the cluster subnetwork.
571 #
572 # This field is only applicable with use_ip_aliases is true and
573 # create_subnetwork is false.
Bu Sun Kim65020912020-05-20 12:08:20 -0700574 &quot;clusterIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP address range for the cluster pod IPs. If this field is set, then
575 # `cluster.cluster_ipv4_cidr` must be left blank.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700576 #
577 # This field is only applicable when `use_ip_aliases` is true.
Bu Sun Kim65020912020-05-20 12:08:20 -0700578 #
579 # Set to blank to have a range chosen with the default size.
580 #
581 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
582 # netmask.
583 #
584 # Set to a
585 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
586 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
587 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
588 # to use.
Bu Sun Kim65020912020-05-20 12:08:20 -0700589 &quot;nodeIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP address range of the instance IPs in this cluster.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700590 #
591 # This is applicable only if `create_subnetwork` is true.
592 #
593 # Set to blank to have a range chosen with the default size.
594 #
595 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
596 # netmask.
597 #
598 # Set to a
599 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
600 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
601 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
602 # to use.
Bu Sun Kim65020912020-05-20 12:08:20 -0700603 &quot;tpuIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP address range of the Cloud TPUs in this cluster. If unspecified, a
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700604 # range will be automatically chosen with the default size.
605 #
606 # This field is only applicable when `use_ip_aliases` is true.
607 #
608 # If unspecified, the range will use the default size.
609 #
610 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
611 # netmask.
612 #
613 # Set to a
614 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
615 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
616 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
617 # to use.
Bu Sun Kim65020912020-05-20 12:08:20 -0700618 &quot;useIpAliases&quot;: True or False, # Whether alias IPs will be used for pod IPs in the cluster.
619 &quot;servicesSecondaryRangeName&quot;: &quot;A String&quot;, # The name of the secondary range to be used as for the services
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700620 # CIDR block. The secondary range will be used for service
621 # ClusterIPs. This must be an existing secondary range associated
622 # with the cluster subnetwork.
623 #
624 # This field is only applicable with use_ip_aliases is true and
625 # create_subnetwork is false.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700626 &quot;createSubnetwork&quot;: True or False, # Whether a new subnetwork will be created automatically for the cluster.
627 #
628 # This field is only applicable when `use_ip_aliases` is true.
Bu Sun Kim65020912020-05-20 12:08:20 -0700629 &quot;subnetworkName&quot;: &quot;A String&quot;, # A custom subnetwork name to be used if `create_subnetwork` is true. If
630 # this field is empty, then an automatic name will be chosen for the new
631 # subnetwork.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700632 &quot;clusterIpv4Cidr&quot;: &quot;A String&quot;, # This field is deprecated, use cluster_ipv4_cidr_block.
633 &quot;servicesIpv4Cidr&quot;: &quot;A String&quot;, # This field is deprecated, use services_ipv4_cidr_block.
634 &quot;servicesIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP address range of the services IPs in this cluster. If blank, a range
635 # will be automatically chosen with the default size.
636 #
637 # This field is only applicable when `use_ip_aliases` is true.
638 #
639 # Set to blank to have a range chosen with the default size.
640 #
641 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
642 # netmask.
643 #
644 # Set to a
645 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
646 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
647 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
648 # to use.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700649 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700650 &quot;legacyAbac&quot;: { # Configuration for the legacy Attribute Based Access Control authorization # Configuration for the legacy ABAC authorization mode.
651 # mode.
652 &quot;enabled&quot;: True or False, # Whether the ABAC authorizer is enabled for this cluster. When enabled,
653 # identities in the system, including service accounts, nodes, and
654 # controllers, will have statically granted permissions beyond those
655 # provided by the RBAC configuration or IAM.
Dan O'Mearadd494642020-05-01 07:42:23 -0700656 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700657 &quot;resourceUsageExportConfig&quot;: { # Configuration for exporting cluster resource usages. # Configuration for exporting resource usages. Resource usage export is
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700658 # disabled when this config is unspecified.
Bu Sun Kim65020912020-05-20 12:08:20 -0700659 &quot;enableNetworkEgressMetering&quot;: True or False, # Whether to enable network egress metering for this cluster. If enabled, a
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700660 # daemonset will be created in the cluster to meter network egress traffic.
Bu Sun Kim65020912020-05-20 12:08:20 -0700661 &quot;consumptionMeteringConfig&quot;: { # Parameters for controlling consumption metering. # Configuration to enable resource consumption metering.
662 &quot;enabled&quot;: True or False, # Whether to enable consumption metering for this cluster. If enabled, a
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700663 # second BigQuery table will be created to hold resource consumption
664 # records.
665 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700666 &quot;bigqueryDestination&quot;: { # Parameters for using BigQuery as the destination of resource usage export. # Configuration to use BigQuery as usage export destination.
667 &quot;datasetId&quot;: &quot;A String&quot;, # The ID of a BigQuery Dataset.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700668 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700669 },
670 &quot;enableTpu&quot;: True or False, # Enable the ability to use Cloud TPUs in this cluster.
671 &quot;locations&quot;: [ # The list of Google Compute Engine
672 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
673 # cluster&#x27;s nodes should be located.
674 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700675 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700676 &quot;nodePools&quot;: [ # The node pools associated with this cluster.
677 # This field should not be set if &quot;node_config&quot; or &quot;initial_node_count&quot; are
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700678 # specified.
Bu Sun Kim65020912020-05-20 12:08:20 -0700679 { # NodePool contains the name and configuration for a cluster&#x27;s node pool.
680 # Node pools are a set of nodes (i.e. VM&#x27;s), with a common configuration and
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700681 # specification, under the control of the cluster master. They may have a set
682 # of Kubernetes labels applied to them, which may be used to reference them
683 # during pod scheduling. They may also be resized up or down, to accommodate
684 # the workload.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700685 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output only] Additional information about the current status of this
686 # node pool instance, if available.
687 &quot;autoscaling&quot;: { # NodePoolAutoscaling contains information required by cluster autoscaler to # Autoscaler configuration for this NodePool. Autoscaler is enabled
688 # only if a valid configuration is present.
689 # adjust the size of the node pool to the current cluster usage.
690 &quot;maxNodeCount&quot;: 42, # Maximum number of nodes in the NodePool. Must be &gt;= min_node_count. There
691 # has to enough quota to scale up the cluster.
692 &quot;autoprovisioned&quot;: True or False, # Can this node pool be deleted automatically.
693 &quot;minNodeCount&quot;: 42, # Minimum number of nodes in the NodePool. Must be &gt;= 1 and &lt;=
694 # max_node_count.
695 &quot;enabled&quot;: True or False, # Is autoscaling enabled for this node pool.
696 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700697 &quot;initialNodeCount&quot;: 42, # The initial node count for the pool. You must ensure that your
698 # Compute Engine &lt;a href=&quot;/compute/docs/resource-quotas&quot;&gt;resource quota&lt;/a&gt;
699 # is sufficient for this number of instances. You must also have available
700 # firewall and routes quota.
Bu Sun Kim65020912020-05-20 12:08:20 -0700701 &quot;selfLink&quot;: &quot;A String&quot;, # [Output only] Server-defined URL for the resource.
702 &quot;upgradeSettings&quot;: { # These upgrade settings control the level of parallelism and the level of # Upgrade settings control disruption and speed of the upgrade.
Dan O'Mearadd494642020-05-01 07:42:23 -0700703 # disruption caused by an upgrade.
704 #
705 # maxUnavailable controls the number of nodes that can be simultaneously
706 # unavailable.
707 #
708 # maxSurge controls the number of additional nodes that can be added to the
709 # node pool temporarily for the time of the upgrade to increase the number of
710 # available nodes.
711 #
712 # (maxUnavailable + maxSurge) determines the level of parallelism (how many
713 # nodes are being upgraded at the same time).
714 #
715 # Note: upgrades inevitably introduce some disruption since workloads need to
716 # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
717 # this holds true. (Disruption stays within the limits of
718 # PodDisruptionBudget, if it is configured.)
719 #
720 # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
721 # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
722 # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
723 # down 3 old (not yet upgraded) nodes at the same time. This ensures that
724 # there are always at least 4 nodes available.
Bu Sun Kim65020912020-05-20 12:08:20 -0700725 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during
Dan O'Mearadd494642020-05-01 07:42:23 -0700726 # the upgrade process. A node is considered available if its status is
727 # Ready.
Bu Sun Kim65020912020-05-20 12:08:20 -0700728 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size
729 # of the node pool during the upgrade process.
Dan O'Mearadd494642020-05-01 07:42:23 -0700730 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700731 &quot;locations&quot;: [ # The list of Google Compute Engine
732 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
733 # NodePool&#x27;s nodes should be located.
734 &quot;A String&quot;,
735 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700736 &quot;instanceGroupUrls&quot;: [ # [Output only] The resource URLs of the [managed instance
737 # groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
738 # associated with this node pool.
739 &quot;A String&quot;,
740 ],
741 &quot;version&quot;: &quot;A String&quot;, # The version of the Kubernetes of this node.
742 &quot;podIpv4CidrSize&quot;: 42, # [Output only] The pod CIDR block size per node in this node pool.
743 &quot;conditions&quot;: [ # Which conditions caused the current node pool state.
744 { # StatusCondition describes why a cluster or a node pool has a certain status
745 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -0700746 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700747 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Dan O'Mearadd494642020-05-01 07:42:23 -0700748 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700749 ],
750 &quot;status&quot;: &quot;A String&quot;, # [Output only] The status of the nodes in this pool instance.
751 &quot;config&quot;: { # Parameters that describe the nodes in a cluster. # The node configuration of the pool.
Bu Sun Kim65020912020-05-20 12:08:20 -0700752 &quot;oauthScopes&quot;: [ # The set of Google API scopes to be made available on all of the
753 # node VMs under the &quot;default&quot; service account.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700754 #
755 # The following scopes are recommended, but not required, and by default are
756 # not included:
757 #
758 # * `https://www.googleapis.com/auth/compute` is required for mounting
759 # persistent storage on your nodes.
760 # * `https://www.googleapis.com/auth/devstorage.read_only` is required for
761 # communicating with **gcr.io**
Dan O'Mearadd494642020-05-01 07:42:23 -0700762 # (the [Google Container
763 # Registry](https://cloud.google.com/container-registry/)).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700764 #
765 # If unspecified, no scopes are added, unless Cloud Logging or Cloud
766 # Monitoring are enabled, in which case their required scopes will be added.
Bu Sun Kim65020912020-05-20 12:08:20 -0700767 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700768 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700769 &quot;taints&quot;: [ # List of kubernetes taints to be applied to each node.
Dan O'Mearadd494642020-05-01 07:42:23 -0700770 #
771 # For more information, including usage and the valid values, see:
772 # https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
773 { # Kubernetes taint is comprised of three fields: key, value, and effect. Effect
774 # can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute.
775 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700776 # See
777 # [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration)
778 # for more information, including usage and the valid values.
Bu Sun Kim65020912020-05-20 12:08:20 -0700779 &quot;effect&quot;: &quot;A String&quot;, # Effect for taint.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700780 &quot;value&quot;: &quot;A String&quot;, # Value for taint.
781 &quot;key&quot;: &quot;A String&quot;, # Key for taint.
Dan O'Mearadd494642020-05-01 07:42:23 -0700782 },
783 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700784 &quot;labels&quot;: { # The map of Kubernetes labels (key/value pairs) to be applied to each node.
785 # These will added in addition to any default label(s) that
786 # Kubernetes may apply to the node.
787 # In case of conflict in label keys, the applied set may differ depending on
788 # the Kubernetes version -- it&#x27;s best to assume the behavior is undefined
789 # and conflicts should be avoided.
790 # For more information, including usage and the valid values, see:
791 # https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
792 &quot;a_key&quot;: &quot;A String&quot;,
793 },
794 &quot;diskSizeGb&quot;: 42, # Size of the disk attached to each node, specified in GB.
795 # The smallest allowed disk size is 10GB.
796 #
797 # If unspecified, the default disk size is 100GB.
798 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to # The workload metadata configuration for this node.
799 # workloads on the node pool.
800 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running
801 # on the node pool.
802 },
803 &quot;accelerators&quot;: [ # A list of hardware accelerators to be attached to each node.
804 # See https://cloud.google.com/compute/docs/gpus for more information about
805 # support for GPUs.
806 { # AcceleratorConfig represents a Hardware Accelerator request.
Bu Sun Kim65020912020-05-20 12:08:20 -0700807 &quot;acceleratorType&quot;: &quot;A String&quot;, # The accelerator type resource name. List of supported accelerators
808 # [here](https://cloud.google.com/compute/docs/gpus)
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700809 &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of the accelerator cards exposed to an instance.
Bu Sun Kim65020912020-05-20 12:08:20 -0700810 },
811 ],
812 &quot;machineType&quot;: &quot;A String&quot;, # The name of a Google Compute Engine [machine
813 # type](https://cloud.google.com/compute/docs/machine-types) (e.g.
814 # `n1-standard-1`).
815 #
816 # If unspecified, the default machine type is
817 # `n1-standard-1`.
818 &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;)
819 #
820 # If unspecified, the default disk type is &#x27;pd-standard&#x27;
821 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
Bu Sun Kim65020912020-05-20 12:08:20 -0700822 &quot;enableIntegrityMonitoring&quot;: True or False, # Defines whether the instance has integrity monitoring enabled.
823 #
824 # Enables monitoring and attestation of the boot integrity of the instance.
825 # The attestation is performed against the integrity policy baseline. This
826 # baseline is initially derived from the implicitly trusted boot image when
827 # the instance is created.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700828 &quot;enableSecureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled.
829 #
830 # Secure Boot helps ensure that the system only runs authentic software by
831 # verifying the digital signature of all boot components, and halting the
832 # boot process if signature verification fails.
Bu Sun Kim65020912020-05-20 12:08:20 -0700833 },
834 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used by this instance. The instance may be
835 # scheduled on the specified or newer CPU platform. Applicable values are the
836 # friendly names of CPU platforms, such as
837 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Haswell&amp;quot;&lt;/code&gt; or
838 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Sandy Bridge&amp;quot;&lt;/code&gt;. For more
839 # information, read [how to specify min CPU
840 # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
841 &quot;preemptible&quot;: True or False, # Whether the nodes are created as preemptible VM instances. See:
842 # https://cloud.google.com/compute/docs/instances/preemptible for more
843 # information about preemptible VM instances.
844 &quot;localSsdCount&quot;: 42, # The number of local SSD disks to be attached to the node.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700845 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700846 # The limit for this value is dependent upon the maximum number of
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700847 # disks available on a machine per zone. See:
Dan O'Mearadd494642020-05-01 07:42:23 -0700848 # https://cloud.google.com/compute/docs/disks/local-ssd
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700849 # for more information.
Bu Sun Kim65020912020-05-20 12:08:20 -0700850 &quot;sandboxConfig&quot;: { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node.
851 &quot;type&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700852 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700853 &quot;metadata&quot;: { # The metadata key/value pairs assigned to instances in the cluster.
854 #
855 # Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
856 # in length. These are reflected as part of a URL in the metadata server.
857 # Additionally, to avoid ambiguity, keys must not conflict with any other
858 # metadata keys for the project or be one of the reserved keys:
859 # &quot;cluster-location&quot;
860 # &quot;cluster-name&quot;
861 # &quot;cluster-uid&quot;
862 # &quot;configure-sh&quot;
863 # &quot;containerd-configure-sh&quot;
864 # &quot;enable-os-login&quot;
865 # &quot;gci-ensure-gke-docker&quot;
866 # &quot;gci-metrics-enabled&quot;
867 # &quot;gci-update-strategy&quot;
868 # &quot;instance-template&quot;
869 # &quot;kube-env&quot;
870 # &quot;startup-script&quot;
871 # &quot;user-data&quot;
872 # &quot;disable-address-manager&quot;
873 # &quot;windows-startup-script-ps1&quot;
874 # &quot;common-psm1&quot;
875 # &quot;k8s-node-setup-psm1&quot;
876 # &quot;install-ssh-psm1&quot;
877 # &quot;user-profile-psm1&quot;
878 # &quot;serial-port-logging-enable&quot;
879 #
880 # Values are free-form strings, and only have meaning as interpreted by
881 # the image running in the instance. The only restriction placed on them is
882 # that each value&#x27;s size must be less than or equal to 32 KB.
883 #
884 # The total size of all keys and values must be less than 512 KB.
885 &quot;a_key&quot;: &quot;A String&quot;,
886 },
887 &quot;reservationAffinity&quot;: { # [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) # The optional reservation affinity. Setting this field will apply
888 # the specified [Zonal Compute
889 # Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
890 # to this node pool.
891 # is the configuration of desired reservation which instances could take
892 # capacity from.
Bu Sun Kim65020912020-05-20 12:08:20 -0700893 &quot;values&quot;: [ # Corresponds to the label value(s) of reservation resource(s).
894 &quot;A String&quot;,
895 ],
896 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Corresponds to the type of reservation consumption.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700897 &quot;key&quot;: &quot;A String&quot;, # Corresponds to the label key of a reservation resource. To target a
898 # SPECIFIC_RESERVATION by name, specify &quot;googleapis.com/reservation-name&quot; as
899 # the key and specify the name of your reservation as its value.
Bu Sun Kim65020912020-05-20 12:08:20 -0700900 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700901 &quot;tags&quot;: [ # The list of instance tags applied to all nodes. Tags are used to identify
902 # valid sources or targets for network firewalls and are specified by
903 # the client during cluster or node pool creation. Each tag within the list
904 # must comply with RFC1035.
905 &quot;A String&quot;,
906 ],
907 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs.
908 # Specify the email address of the Service Account; otherwise, if no Service
909 # Account is specified, the &quot;default&quot; service account is used.
910 &quot;imageType&quot;: &quot;A String&quot;, # The image type to use for this node. Note that for a given image type,
911 # the latest version of it will be used.
Bu Sun Kim65020912020-05-20 12:08:20 -0700912 },
913 &quot;maxPodsConstraint&quot;: { # Constraints applied to pods. # The constraint on the maximum number of pods that can be run
914 # simultaneously on a node in the node pool.
915 &quot;maxPodsPerNode&quot;: &quot;A String&quot;, # Constraint enforced on the max num of pods per node.
916 },
917 &quot;name&quot;: &quot;A String&quot;, # The name of the node pool.
918 &quot;management&quot;: { # NodeManagement defines the set of node management services turned on for the # NodeManagement configuration for this NodePool.
919 # node pool.
920 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool.
921 # the Auto Upgrades will proceed.
Bu Sun Kim65020912020-05-20 12:08:20 -0700922 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
923 # with the approximate start time for the upgrades, in
924 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700925 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
926 # with the description of the upgrade.
Bu Sun Kim65020912020-05-20 12:08:20 -0700927 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700928 &quot;autoRepair&quot;: True or False, # A flag that specifies whether the node auto-repair is enabled for the node
929 # pool. If enabled, the nodes in this node pool will be monitored and, if
930 # they fail health checks too many times, an automatic repair action will be
931 # triggered.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700932 &quot;autoUpgrade&quot;: True or False, # A flag that specifies whether node auto-upgrade is enabled for the node
933 # pool. If enabled, node auto-upgrade helps keep the nodes in your node pool
934 # up to date with the latest release version of Kubernetes.
Bu Sun Kim65020912020-05-20 12:08:20 -0700935 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700936 },
937 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700938 &quot;selfLink&quot;: &quot;A String&quot;, # [Output only] Server-defined URL for the resource.
939 &quot;networkPolicy&quot;: { # Configuration options for the NetworkPolicy feature. # Configuration options for the NetworkPolicy feature.
940 # https://kubernetes.io/docs/concepts/services-networking/networkpolicies/
941 &quot;provider&quot;: &quot;A String&quot;, # The selected network policy provider.
942 &quot;enabled&quot;: True or False, # Whether network policy is enabled on the cluster.
943 },
944 &quot;servicesIpv4Cidr&quot;: &quot;A String&quot;, # [Output only] The IP address range of the Kubernetes services in
945 # this cluster, in
946 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
947 # notation (e.g. `1.2.3.4/29`). Service addresses are
948 # typically put in the last `/16` from the container CIDR.
949 &quot;enableKubernetesAlpha&quot;: True or False, # Kubernetes alpha features are enabled on this cluster. This includes alpha
950 # API groups (e.g. v1alpha1) and features that may not be production ready in
951 # the kubernetes version of the master and nodes.
952 # The cluster has no SLA for uptime and master/node upgrades are disabled.
953 # Alpha enabled clusters are automatically deleted thirty days after
954 # creation.
955 &quot;description&quot;: &quot;A String&quot;, # An optional description of this cluster.
956 &quot;conditions&quot;: [ # Which conditions caused the current cluster state.
957 { # StatusCondition describes why a cluster or a node pool has a certain status
958 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -0700959 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700960 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim65020912020-05-20 12:08:20 -0700961 },
962 ],
963 &quot;currentNodeCount&quot;: 42, # [Output only] The number of nodes currently in the cluster. Deprecated.
964 # Call Kubernetes API directly to retrieve node information.
965 &quot;monitoringService&quot;: &quot;A String&quot;, # The monitoring service the cluster should use to write metrics.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700966 # Currently available options:
967 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700968 # * &quot;monitoring.googleapis.com/kubernetes&quot; - The Cloud Monitoring
Dan O'Mearadd494642020-05-01 07:42:23 -0700969 # service with a Kubernetes-native resource model
970 # * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
971 # longer available as of GKE 1.15).
972 # * `none` - No metrics will be exported from the cluster.
973 #
974 # If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
975 # used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
Bu Sun Kim65020912020-05-20 12:08:20 -0700976 &quot;databaseEncryption&quot;: { # Configuration of etcd encryption. # Configuration of etcd encryption.
977 &quot;keyName&quot;: &quot;A String&quot;, # Name of CloudKMS key to use for the encryption of secrets in etcd.
978 # Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key
979 &quot;state&quot;: &quot;A String&quot;, # Denotes the state of etcd encryption.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700980 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700981 &quot;binaryAuthorization&quot;: { # Configuration for Binary Authorization. # Configuration for Binary Authorization.
982 &quot;enabled&quot;: True or False, # Enable Binary Authorization for this cluster. If enabled, all container
983 # images will be validated by Binary Authorization.
984 },
985 &quot;tpuIpv4CidrBlock&quot;: &quot;A String&quot;, # [Output only] The IP address range of the Cloud TPUs in this cluster, in
986 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
987 # notation (e.g. `1.2.3.4/29`).
988 &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
989 # policies.
990 # policies.
991 &quot;workloadPool&quot;: &quot;A String&quot;, # The workload pool to attach all Kubernetes service accounts to.
992 },
993 &quot;zone&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
994 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
995 # cluster resides. This field is deprecated, use location instead.
996 &quot;expireTime&quot;: &quot;A String&quot;, # [Output only] The time the cluster will be automatically
997 # deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
998 &quot;loggingService&quot;: &quot;A String&quot;, # The logging service the cluster should use to write logs.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700999 # Currently available options:
1000 #
Dan O'Mearadd494642020-05-01 07:42:23 -07001001 # * `logging.googleapis.com/kubernetes` - The Cloud Logging
1002 # service with a Kubernetes-native resource model
1003 # * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
1004 # available as of GKE 1.15).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001005 # * `none` - no logs will be exported from the cluster.
Dan O'Mearadd494642020-05-01 07:42:23 -07001006 #
1007 # If left as an empty string,`logging.googleapis.com/kubernetes` will be
1008 # used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
Bu Sun Kim65020912020-05-20 12:08:20 -07001009 &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 -07001010 # For requests, this field should only be used in lieu of a
Bu Sun Kim65020912020-05-20 12:08:20 -07001011 # &quot;node_pool&quot; object, since this configuration (along with the
1012 # &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 -07001013 # auto-generated name. Do not use this and a node_pool at the same time.
1014 # For responses, this field will be populated with the node configuration of
1015 # the first node pool. (For configuration of each node pool, see
1016 # `node_pool.config`)
1017 #
1018 # If unspecified, the defaults are used.
1019 # This field is deprecated, use node_pool.config instead.
Bu Sun Kim65020912020-05-20 12:08:20 -07001020 &quot;oauthScopes&quot;: [ # The set of Google API scopes to be made available on all of the
1021 # node VMs under the &quot;default&quot; service account.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001022 #
1023 # The following scopes are recommended, but not required, and by default are
1024 # not included:
1025 #
1026 # * `https://www.googleapis.com/auth/compute` is required for mounting
1027 # persistent storage on your nodes.
1028 # * `https://www.googleapis.com/auth/devstorage.read_only` is required for
1029 # communicating with **gcr.io**
Dan O'Mearadd494642020-05-01 07:42:23 -07001030 # (the [Google Container
1031 # Registry](https://cloud.google.com/container-registry/)).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001032 #
1033 # If unspecified, no scopes are added, unless Cloud Logging or Cloud
1034 # Monitoring are enabled, in which case their required scopes will be added.
Bu Sun Kim65020912020-05-20 12:08:20 -07001035 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001036 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001037 &quot;taints&quot;: [ # List of kubernetes taints to be applied to each node.
Dan O'Mearadd494642020-05-01 07:42:23 -07001038 #
1039 # For more information, including usage and the valid values, see:
1040 # https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
1041 { # Kubernetes taint is comprised of three fields: key, value, and effect. Effect
1042 # can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute.
1043 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001044 # See
1045 # [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration)
1046 # for more information, including usage and the valid values.
Bu Sun Kim65020912020-05-20 12:08:20 -07001047 &quot;effect&quot;: &quot;A String&quot;, # Effect for taint.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001048 &quot;value&quot;: &quot;A String&quot;, # Value for taint.
1049 &quot;key&quot;: &quot;A String&quot;, # Key for taint.
Dan O'Mearadd494642020-05-01 07:42:23 -07001050 },
1051 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001052 &quot;labels&quot;: { # The map of Kubernetes labels (key/value pairs) to be applied to each node.
1053 # These will added in addition to any default label(s) that
1054 # Kubernetes may apply to the node.
1055 # In case of conflict in label keys, the applied set may differ depending on
1056 # the Kubernetes version -- it&#x27;s best to assume the behavior is undefined
1057 # and conflicts should be avoided.
1058 # For more information, including usage and the valid values, see:
1059 # https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
1060 &quot;a_key&quot;: &quot;A String&quot;,
1061 },
1062 &quot;diskSizeGb&quot;: 42, # Size of the disk attached to each node, specified in GB.
1063 # The smallest allowed disk size is 10GB.
1064 #
1065 # If unspecified, the default disk size is 100GB.
1066 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to # The workload metadata configuration for this node.
1067 # workloads on the node pool.
1068 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running
1069 # on the node pool.
1070 },
1071 &quot;accelerators&quot;: [ # A list of hardware accelerators to be attached to each node.
1072 # See https://cloud.google.com/compute/docs/gpus for more information about
1073 # support for GPUs.
1074 { # AcceleratorConfig represents a Hardware Accelerator request.
Bu Sun Kim65020912020-05-20 12:08:20 -07001075 &quot;acceleratorType&quot;: &quot;A String&quot;, # The accelerator type resource name. List of supported accelerators
1076 # [here](https://cloud.google.com/compute/docs/gpus)
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001077 &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of the accelerator cards exposed to an instance.
Bu Sun Kim65020912020-05-20 12:08:20 -07001078 },
1079 ],
1080 &quot;machineType&quot;: &quot;A String&quot;, # The name of a Google Compute Engine [machine
1081 # type](https://cloud.google.com/compute/docs/machine-types) (e.g.
1082 # `n1-standard-1`).
1083 #
1084 # If unspecified, the default machine type is
1085 # `n1-standard-1`.
1086 &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;)
1087 #
1088 # If unspecified, the default disk type is &#x27;pd-standard&#x27;
1089 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
Bu Sun Kim65020912020-05-20 12:08:20 -07001090 &quot;enableIntegrityMonitoring&quot;: True or False, # Defines whether the instance has integrity monitoring enabled.
1091 #
1092 # Enables monitoring and attestation of the boot integrity of the instance.
1093 # The attestation is performed against the integrity policy baseline. This
1094 # baseline is initially derived from the implicitly trusted boot image when
1095 # the instance is created.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001096 &quot;enableSecureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled.
1097 #
1098 # Secure Boot helps ensure that the system only runs authentic software by
1099 # verifying the digital signature of all boot components, and halting the
1100 # boot process if signature verification fails.
Bu Sun Kim65020912020-05-20 12:08:20 -07001101 },
1102 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used by this instance. The instance may be
1103 # scheduled on the specified or newer CPU platform. Applicable values are the
1104 # friendly names of CPU platforms, such as
1105 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Haswell&amp;quot;&lt;/code&gt; or
1106 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Sandy Bridge&amp;quot;&lt;/code&gt;. For more
1107 # information, read [how to specify min CPU
1108 # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
1109 &quot;preemptible&quot;: True or False, # Whether the nodes are created as preemptible VM instances. See:
1110 # https://cloud.google.com/compute/docs/instances/preemptible for more
1111 # information about preemptible VM instances.
1112 &quot;localSsdCount&quot;: 42, # The number of local SSD disks to be attached to the node.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001113 #
Dan O'Mearadd494642020-05-01 07:42:23 -07001114 # The limit for this value is dependent upon the maximum number of
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001115 # disks available on a machine per zone. See:
Dan O'Mearadd494642020-05-01 07:42:23 -07001116 # https://cloud.google.com/compute/docs/disks/local-ssd
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001117 # for more information.
Bu Sun Kim65020912020-05-20 12:08:20 -07001118 &quot;sandboxConfig&quot;: { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node.
1119 &quot;type&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node.
1120 },
1121 &quot;metadata&quot;: { # The metadata key/value pairs assigned to instances in the cluster.
1122 #
1123 # Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
1124 # in length. These are reflected as part of a URL in the metadata server.
1125 # Additionally, to avoid ambiguity, keys must not conflict with any other
1126 # metadata keys for the project or be one of the reserved keys:
1127 # &quot;cluster-location&quot;
1128 # &quot;cluster-name&quot;
1129 # &quot;cluster-uid&quot;
1130 # &quot;configure-sh&quot;
1131 # &quot;containerd-configure-sh&quot;
1132 # &quot;enable-os-login&quot;
1133 # &quot;gci-ensure-gke-docker&quot;
1134 # &quot;gci-metrics-enabled&quot;
1135 # &quot;gci-update-strategy&quot;
1136 # &quot;instance-template&quot;
1137 # &quot;kube-env&quot;
1138 # &quot;startup-script&quot;
1139 # &quot;user-data&quot;
1140 # &quot;disable-address-manager&quot;
1141 # &quot;windows-startup-script-ps1&quot;
1142 # &quot;common-psm1&quot;
1143 # &quot;k8s-node-setup-psm1&quot;
1144 # &quot;install-ssh-psm1&quot;
1145 # &quot;user-profile-psm1&quot;
1146 # &quot;serial-port-logging-enable&quot;
1147 #
1148 # Values are free-form strings, and only have meaning as interpreted by
1149 # the image running in the instance. The only restriction placed on them is
1150 # that each value&#x27;s size must be less than or equal to 32 KB.
1151 #
1152 # The total size of all keys and values must be less than 512 KB.
1153 &quot;a_key&quot;: &quot;A String&quot;,
1154 },
1155 &quot;reservationAffinity&quot;: { # [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) # The optional reservation affinity. Setting this field will apply
1156 # the specified [Zonal Compute
1157 # Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
1158 # to this node pool.
1159 # is the configuration of desired reservation which instances could take
1160 # capacity from.
Bu Sun Kim65020912020-05-20 12:08:20 -07001161 &quot;values&quot;: [ # Corresponds to the label value(s) of reservation resource(s).
1162 &quot;A String&quot;,
1163 ],
1164 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Corresponds to the type of reservation consumption.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001165 &quot;key&quot;: &quot;A String&quot;, # Corresponds to the label key of a reservation resource. To target a
1166 # SPECIFIC_RESERVATION by name, specify &quot;googleapis.com/reservation-name&quot; as
1167 # the key and specify the name of your reservation as its value.
Bu Sun Kim65020912020-05-20 12:08:20 -07001168 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001169 &quot;tags&quot;: [ # The list of instance tags applied to all nodes. Tags are used to identify
1170 # valid sources or targets for network firewalls and are specified by
1171 # the client during cluster or node pool creation. Each tag within the list
1172 # must comply with RFC1035.
1173 &quot;A String&quot;,
1174 ],
1175 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs.
1176 # Specify the email address of the Service Account; otherwise, if no Service
1177 # Account is specified, the &quot;default&quot; service account is used.
1178 &quot;imageType&quot;: &quot;A String&quot;, # The image type to use for this node. Note that for a given image type,
1179 # the latest version of it will be used.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001180 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001181 &quot;status&quot;: &quot;A String&quot;, # [Output only] The current status of this cluster.
1182 &quot;networkConfig&quot;: { # NetworkConfig reports the relative names of network &amp; subnetwork. # Configuration for cluster networking.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001183 &quot;enableIntraNodeVisibility&quot;: True or False, # Whether Intra-node visibility is enabled for this cluster.
1184 # This makes same node pod to pod traffic visible for VPC network.
Bu Sun Kim65020912020-05-20 12:08:20 -07001185 &quot;subnetwork&quot;: &quot;A String&quot;, # Output only. The relative name of the Google Compute Engine
1186 # [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the
1187 # cluster is connected. Example:
1188 # projects/my-project/regions/us-central1/subnetworks/my-subnet
1189 &quot;network&quot;: &quot;A String&quot;, # Output only. The relative name of the Google Compute Engine
1190 # network(https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
1191 # to which the cluster is connected. Example:
1192 # projects/my-project/global/networks/my-network
Bu Sun Kim65020912020-05-20 12:08:20 -07001193 },
1194 &quot;name&quot;: &quot;A String&quot;, # The name of this cluster. The name must be unique within this project
1195 # and location (e.g. zone or region), and can be up to 40 characters with
1196 # the following restrictions:
1197 #
1198 # * Lowercase letters, numbers, and hyphens only.
1199 # * Must start with a letter.
1200 # * Must end with a number or a letter.
1201 &quot;endpoint&quot;: &quot;A String&quot;, # [Output only] The IP address of this cluster&#x27;s master endpoint.
1202 # The endpoint can be accessed from the internet at
1203 # `https://username:password@endpoint/`.
1204 #
1205 # See the `masterAuth` property of this resource for username and
1206 # password information.
1207 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
1208 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1209 # or
1210 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1211 # in which the cluster resides.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001212 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001213 &quot;projectId&quot;: &quot;A String&quot;, # Deprecated. The Google Developers Console [project ID or project
1214 # number](https://support.google.com/cloud/answer/6158840).
1215 # This field has been deprecated and replaced by the parent field.
Bu Sun Kim65020912020-05-20 12:08:20 -07001216 &quot;zone&quot;: &quot;A String&quot;, # Deprecated. The name of the Google Compute Engine
1217 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1218 # cluster resides. This field has been deprecated and replaced by the parent
1219 # field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001220 }
1221
1222 x__xgafv: string, V1 error format.
1223 Allowed values
1224 1 - v1 error format
1225 2 - v2 error format
1226
1227Returns:
1228 An object of the form:
1229
1230 { # This operation resource represents operations that may have happened or are
1231 # happening on the cluster. All fields are output only.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001232 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
1233 { # StatusCondition describes why a cluster or a node pool has a certain status
1234 # (e.g., ERROR or DEGRADED).
1235 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
1236 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
1237 },
1238 ],
1239 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
1240 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
1241 # Unset for single-stage operations.
1242 &quot;stages&quot;: [ # Substages of an operation or a stage.
1243 # Object with schema name: OperationProgress
1244 ],
1245 &quot;metrics&quot;: [ # Progress metric bundle, for example:
1246 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
1247 # {name: &quot;nodes total&quot;, int_value: 32}]
1248 # or
1249 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
1250 # {name: &quot;progress scale&quot;, double_value: 1.0}]
1251 { # Progress metric is (string, int|float|string) pair.
1252 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
1253 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
1254 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
1255 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
1256 },
1257 ],
1258 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
1259 # Unset for single-stage operations.
1260 },
1261 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
1262 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1263 # operation is taking place. This field is deprecated, use location instead.
1264 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
1265 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
1266 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
1267 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
1268 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
1269 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Bu Sun Kim65020912020-05-20 12:08:20 -07001270 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
1271 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001272 { # StatusCondition describes why a cluster or a node pool has a certain status
1273 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07001274 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001275 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001276 },
1277 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001278 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
Dan O'Mearadd494642020-05-01 07:42:23 -07001279 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07001280 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001281 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1282 # or
1283 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1284 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07001285 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
1286 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001287 }</pre>
1288</div>
1289
1290<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -07001291 <code class="details" id="delete">delete(name, projectId=None, zone=None, clusterId=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001292 <pre>Deletes the cluster, including the Kubernetes endpoint and all worker
1293nodes.
1294
1295Firewalls and routes that were configured during cluster creation
1296are also deleted.
1297
1298Other Google Compute Engine resources that might be in use by the cluster,
Bu Sun Kim65020912020-05-20 12:08:20 -07001299such as load balancer resources, are not deleted if they weren&#x27;t present
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001300when the cluster was initially created.
1301
1302Args:
1303 name: string, The name (project, location, cluster) of the cluster to delete.
Bu Sun Kim65020912020-05-20 12:08:20 -07001304Specified in the format `projects/*/locations/*/clusters/*`. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001305 projectId: string, Deprecated. The Google Developers Console [project ID or project
1306number](https://support.google.com/cloud/answer/6158840).
1307This field has been deprecated and replaced by the name field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001308 zone: string, Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001309[zone](https://cloud.google.com/compute/docs/zones#available) in which the
1310cluster resides. This field has been deprecated and replaced by the name
1311field.
Bu Sun Kim65020912020-05-20 12:08:20 -07001312 clusterId: string, Deprecated. The name of the cluster to delete.
1313This field has been deprecated and replaced by the name field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001314 x__xgafv: string, V1 error format.
1315 Allowed values
1316 1 - v1 error format
1317 2 - v2 error format
1318
1319Returns:
1320 An object of the form:
1321
1322 { # This operation resource represents operations that may have happened or are
1323 # happening on the cluster. All fields are output only.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001324 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
1325 { # StatusCondition describes why a cluster or a node pool has a certain status
1326 # (e.g., ERROR or DEGRADED).
1327 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
1328 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
1329 },
1330 ],
1331 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
1332 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
1333 # Unset for single-stage operations.
1334 &quot;stages&quot;: [ # Substages of an operation or a stage.
1335 # Object with schema name: OperationProgress
1336 ],
1337 &quot;metrics&quot;: [ # Progress metric bundle, for example:
1338 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
1339 # {name: &quot;nodes total&quot;, int_value: 32}]
1340 # or
1341 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
1342 # {name: &quot;progress scale&quot;, double_value: 1.0}]
1343 { # Progress metric is (string, int|float|string) pair.
1344 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
1345 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
1346 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
1347 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
1348 },
1349 ],
1350 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
1351 # Unset for single-stage operations.
1352 },
1353 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
1354 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1355 # operation is taking place. This field is deprecated, use location instead.
1356 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
1357 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
1358 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
1359 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
1360 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
1361 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Bu Sun Kim65020912020-05-20 12:08:20 -07001362 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
1363 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001364 { # StatusCondition describes why a cluster or a node pool has a certain status
1365 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07001366 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001367 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001368 },
1369 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001370 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
Dan O'Mearadd494642020-05-01 07:42:23 -07001371 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07001372 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001373 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1374 # or
1375 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1376 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07001377 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
1378 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001379 }</pre>
1380</div>
1381
1382<div class="method">
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001383 <code class="details" id="get">get(name, clusterId=None, projectId=None, zone=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001384 <pre>Gets the details of a specific cluster.
1385
1386Args:
1387 name: string, The name (project, location, cluster) of the cluster to retrieve.
Bu Sun Kim65020912020-05-20 12:08:20 -07001388Specified in the format `projects/*/locations/*/clusters/*`. (required)
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001389 clusterId: string, Deprecated. The name of the cluster to retrieve.
1390This field has been deprecated and replaced by the name field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001391 projectId: string, Deprecated. The Google Developers Console [project ID or project
1392number](https://support.google.com/cloud/answer/6158840).
1393This field has been deprecated and replaced by the name field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001394 zone: string, Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001395[zone](https://cloud.google.com/compute/docs/zones#available) in which the
1396cluster resides. This field has been deprecated and replaced by the name
1397field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001398 x__xgafv: string, V1 error format.
1399 Allowed values
1400 1 - v1 error format
1401 2 - v2 error format
1402
1403Returns:
1404 An object of the form:
1405
1406 { # A Google Kubernetes Engine cluster.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001407 &quot;createTime&quot;: &quot;A String&quot;, # [Output only] The time the cluster was created, in
1408 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1409 &quot;clusterIpv4Cidr&quot;: &quot;A String&quot;, # The IP address range of the container pods in this cluster, in
1410 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
1411 # notation (e.g. `10.96.0.0/14`). Leave blank to have
1412 # one automatically chosen or specify a `/14` block in `10.0.0.0/8`.
1413 &quot;autoscaling&quot;: { # ClusterAutoscaling contains global, per-cluster information # Cluster-level autoscaling configuration.
1414 # required by Cluster Autoscaler to automatically adjust
1415 # the size of the cluster and create/delete
1416 # node pools based on the current needs.
1417 &quot;autoprovisioningLocations&quot;: [ # The list of Google Compute Engine
1418 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
1419 # NodePool&#x27;s nodes can be created by NAP.
1420 &quot;A String&quot;,
1421 ],
1422 &quot;resourceLimits&quot;: [ # Contains global constraints regarding minimum and maximum
1423 # amount of resources in the cluster.
1424 { # Contains information about amount of some resource in the cluster.
1425 # For memory, value should be in GB.
1426 &quot;minimum&quot;: &quot;A String&quot;, # Minimum amount of the resource in the cluster.
1427 &quot;maximum&quot;: &quot;A String&quot;, # Maximum amount of the resource in the cluster.
1428 &quot;resourceType&quot;: &quot;A String&quot;, # Resource name &quot;cpu&quot;, &quot;memory&quot; or gpu-specific string.
1429 },
1430 ],
1431 &quot;enableNodeAutoprovisioning&quot;: True or False, # Enables automatic node pool creation and deletion.
1432 &quot;autoprovisioningNodePoolDefaults&quot;: { # AutoprovisioningNodePoolDefaults contains defaults for a node pool created # AutoprovisioningNodePoolDefaults contains defaults for a node pool
1433 # created by NAP.
1434 # by NAP.
1435 &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.
1436 # node pool.
1437 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool.
1438 # the Auto Upgrades will proceed.
1439 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
1440 # with the approximate start time for the upgrades, in
1441 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1442 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
1443 # with the description of the upgrade.
1444 },
1445 &quot;autoRepair&quot;: True or False, # A flag that specifies whether the node auto-repair is enabled for the node
1446 # pool. If enabled, the nodes in this node pool will be monitored and, if
1447 # they fail health checks too many times, an automatic repair action will be
1448 # triggered.
1449 &quot;autoUpgrade&quot;: True or False, # A flag that specifies whether node auto-upgrade is enabled for the node
1450 # pool. If enabled, node auto-upgrade helps keep the nodes in your node pool
1451 # up to date with the latest release version of Kubernetes.
1452 },
1453 &quot;oauthScopes&quot;: [ # Scopes that are used by NAP when creating node pools. If oauth_scopes are
1454 # specified, service_account should be empty.
1455 &quot;A String&quot;,
1456 ],
1457 &quot;upgradeSettings&quot;: { # These upgrade settings control the level of parallelism and the level of # Specifies the upgrade settings for NAP created node pools
1458 # disruption caused by an upgrade.
1459 #
1460 # maxUnavailable controls the number of nodes that can be simultaneously
1461 # unavailable.
1462 #
1463 # maxSurge controls the number of additional nodes that can be added to the
1464 # node pool temporarily for the time of the upgrade to increase the number of
1465 # available nodes.
1466 #
1467 # (maxUnavailable + maxSurge) determines the level of parallelism (how many
1468 # nodes are being upgraded at the same time).
1469 #
1470 # Note: upgrades inevitably introduce some disruption since workloads need to
1471 # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
1472 # this holds true. (Disruption stays within the limits of
1473 # PodDisruptionBudget, if it is configured.)
1474 #
1475 # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
1476 # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
1477 # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
1478 # down 3 old (not yet upgraded) nodes at the same time. This ensures that
1479 # there are always at least 4 nodes available.
1480 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during
1481 # the upgrade process. A node is considered available if its status is
1482 # Ready.
1483 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size
1484 # of the node pool during the upgrade process.
1485 },
1486 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs. If
1487 # service_account is specified, scopes should be empty.
1488 },
1489 },
1490 &quot;initialNodeCount&quot;: 42, # The number of nodes to create in this cluster. You must ensure that your
1491 # Compute Engine &lt;a href=&quot;/compute/docs/resource-quotas&quot;&gt;resource quota&lt;/a&gt;
1492 # is sufficient for this number of instances. You must also have available
1493 # firewall and routes quota.
1494 # For requests, this field should only be used in lieu of a
1495 # &quot;node_pool&quot; object, since this configuration (along with the
1496 # &quot;node_config&quot;) will be used to create a &quot;NodePool&quot; object with an
1497 # auto-generated name. Do not use this and a node_pool at the same time.
1498 #
1499 # This field is deprecated, use node_pool.initial_node_count instead.
1500 &quot;instanceGroupUrls&quot;: [ # Deprecated. Use node_pools.instance_group_urls.
1501 &quot;A String&quot;,
1502 ],
1503 &quot;privateClusterConfig&quot;: { # Configuration options for private clusters. # Configuration for private cluster.
1504 &quot;masterIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP range in CIDR notation to use for the hosted master network. This
1505 # range will be used for assigning internal IP addresses to the master or
1506 # set of masters, as well as the ILB VIP. This range must not overlap with
1507 # any other ranges in use within the cluster&#x27;s network.
1508 &quot;enablePrivateNodes&quot;: True or False, # Whether nodes have internal IP addresses only. If enabled, all nodes are
1509 # given only RFC 1918 private addresses and communicate with the master via
1510 # private networking.
1511 &quot;privateEndpoint&quot;: &quot;A String&quot;, # Output only. The internal IP address of this cluster&#x27;s master endpoint.
1512 &quot;enablePrivateEndpoint&quot;: True or False, # Whether the master&#x27;s internal IP address is used as the cluster endpoint.
1513 &quot;peeringName&quot;: &quot;A String&quot;, # Output only. The peering name in the customer VPC used by this cluster.
1514 &quot;publicEndpoint&quot;: &quot;A String&quot;, # Output only. The external IP address of this cluster&#x27;s master endpoint.
1515 },
1516 &quot;shieldedNodes&quot;: { # Configuration of Shielded Nodes feature. # Shielded Nodes configuration.
1517 &quot;enabled&quot;: True or False, # Whether Shielded Nodes features are enabled on all nodes in this cluster.
1518 },
1519 &quot;verticalPodAutoscaling&quot;: { # VerticalPodAutoscaling contains global, per-cluster information # Cluster-level Vertical Pod Autoscaling configuration.
1520 # required by Vertical Pod Autoscaler to automatically adjust
1521 # the resources of pods controlled by it.
1522 &quot;enabled&quot;: True or False, # Enables vertical pod autoscaling.
1523 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001524 &quot;defaultMaxPodsConstraint&quot;: { # Constraints applied to pods. # The default constraint on the maximum number of pods that can be run
1525 # simultaneously on a node in the node pool of this cluster. Only honored
1526 # if cluster created with IP Alias support.
1527 &quot;maxPodsPerNode&quot;: &quot;A String&quot;, # Constraint enforced on the max num of pods per node.
1528 },
1529 &quot;network&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
1530 # [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
1531 # to which the cluster is connected. If left unspecified, the `default`
1532 # network will be used.
1533 &quot;labelFingerprint&quot;: &quot;A String&quot;, # The fingerprint of the set of labels for this cluster.
1534 &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 -07001535 # containers. This is provisioned from within the `container_ipv4_cidr`
1536 # range. This field will only be set when cluster is in route-based network
1537 # mode.
Bu Sun Kim65020912020-05-20 12:08:20 -07001538 &quot;masterAuthorizedNetworksConfig&quot;: { # Configuration options for the master authorized networks feature. Enabled # The configuration options for master authorized networks feature.
1539 # master authorized networks will disallow all external traffic to access
1540 # Kubernetes master through HTTPS except traffic from the given CIDR blocks,
1541 # Google Compute Engine Public IPs and Google Prod IPs.
Bu Sun Kim65020912020-05-20 12:08:20 -07001542 &quot;cidrBlocks&quot;: [ # cidr_blocks define up to 50 external networks that could access
1543 # Kubernetes master through HTTPS.
1544 { # CidrBlock contains an optional name and one CIDR block.
1545 &quot;displayName&quot;: &quot;A String&quot;, # display_name is an optional field for users to identify CIDR blocks.
1546 &quot;cidrBlock&quot;: &quot;A String&quot;, # cidr_block must be specified in CIDR notation.
1547 },
1548 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001549 &quot;enabled&quot;: True or False, # Whether or not master authorized networks is enabled.
Bu Sun Kim65020912020-05-20 12:08:20 -07001550 },
1551 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output only] Additional information about the current status of this
1552 # cluster, if available.
1553 &quot;masterAuth&quot;: { # The authentication information for accessing the master endpoint. # The authentication information for accessing the master endpoint.
1554 # If unspecified, the defaults are used:
1555 # For clusters before v1.12, if master_auth is unspecified, `username` will
1556 # be set to &quot;admin&quot;, a random password will be generated, and a client
1557 # certificate will be issued.
1558 # Authentication can be done using HTTP basic auth or using client
1559 # certificates.
Bu Sun Kim65020912020-05-20 12:08:20 -07001560 &quot;password&quot;: &quot;A String&quot;, # The password to use for HTTP basic authentication to the master endpoint.
1561 # Because the master endpoint is open to the Internet, you should create a
1562 # strong password. If a password is provided for cluster creation, username
1563 # must be non-empty.
1564 &quot;clientCertificateConfig&quot;: { # Configuration for client certificates on the cluster. # Configuration for client certificate authentication on the cluster. For
1565 # clusters before v1.12, if no configuration is specified, a client
1566 # certificate is issued.
1567 &quot;issueClientCertificate&quot;: True or False, # Issue a client certificate.
1568 },
1569 &quot;clientKey&quot;: &quot;A String&quot;, # [Output only] Base64-encoded private key used by clients to authenticate
1570 # to the cluster endpoint.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001571 &quot;clusterCaCertificate&quot;: &quot;A String&quot;, # [Output only] Base64-encoded public certificate that is the root of
1572 # trust for the cluster.
1573 &quot;clientCertificate&quot;: &quot;A String&quot;, # [Output only] Base64-encoded public certificate used by clients to
1574 # authenticate to the cluster endpoint.
1575 &quot;username&quot;: &quot;A String&quot;, # The username to use for HTTP basic authentication to the master endpoint.
1576 # For clusters v1.6.0 and later, basic authentication can be disabled by
1577 # leaving username unspecified (or setting it to the empty string).
Bu Sun Kim65020912020-05-20 12:08:20 -07001578 },
1579 &quot;authenticatorGroupsConfig&quot;: { # Configuration for returning group information from authenticators. # Configuration controlling RBAC group membership information.
1580 &quot;enabled&quot;: True or False, # Whether this cluster should return group membership lookups
1581 # during authentication using a group of security groups.
1582 &quot;securityGroup&quot;: &quot;A String&quot;, # The name of the security group-of-groups to be used. Only relevant
1583 # if enabled = true.
1584 },
1585 &quot;currentMasterVersion&quot;: &quot;A String&quot;, # [Output only] The current software version of the master endpoint.
1586 &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.
1587 # cluster, enabling additional functionality.
1588 &quot;networkPolicyConfig&quot;: { # Configuration for NetworkPolicy. This only tracks whether the addon # Configuration for NetworkPolicy. This only tracks whether the addon
1589 # is enabled or not on the Master, it does not track whether network policy
1590 # is enabled for the nodes.
1591 # is enabled or not on the Master, it does not track whether network policy
1592 # is enabled for the nodes.
1593 &quot;disabled&quot;: True or False, # Whether NetworkPolicy is enabled for this cluster.
1594 },
1595 &quot;cloudRunConfig&quot;: { # Configuration options for the Cloud Run feature. # Configuration for the Cloud Run addon, which allows the user to use a
1596 # managed Knative service.
1597 &quot;disabled&quot;: True or False, # Whether Cloud Run addon is enabled for this cluster.
1598 },
1599 &quot;horizontalPodAutoscaling&quot;: { # Configuration options for the horizontal pod autoscaling feature, which # Configuration for the horizontal pod autoscaling feature, which
1600 # increases or decreases the number of replica pods a replication controller
1601 # has based on the resource usage of the existing pods.
1602 # increases or decreases the number of replica pods a replication controller
1603 # has based on the resource usage of the existing pods.
1604 &quot;disabled&quot;: True or False, # Whether the Horizontal Pod Autoscaling feature is enabled in the cluster.
1605 # When enabled, it ensures that metrics are collected into Stackdriver
1606 # Monitoring.
1607 },
1608 &quot;httpLoadBalancing&quot;: { # Configuration options for the HTTP (L7) load balancing controller addon, # Configuration for the HTTP (L7) load balancing controller addon, which
1609 # makes it easy to set up HTTP load balancers for services in a cluster.
1610 # which makes it easy to set up HTTP load balancers for services in a cluster.
1611 &quot;disabled&quot;: True or False, # Whether the HTTP Load Balancing controller is enabled in the cluster.
1612 # When enabled, it runs a small pod in the cluster that manages the load
1613 # balancers.
1614 },
1615 &quot;kubernetesDashboard&quot;: { # Configuration for the Kubernetes Dashboard. # Configuration for the Kubernetes Dashboard.
1616 # This addon is deprecated, and will be disabled in 1.15. It is recommended
1617 # to use the Cloud Console to manage and monitor your Kubernetes clusters,
1618 # workloads and applications. For more information, see:
1619 # https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
1620 &quot;disabled&quot;: True or False, # Whether the Kubernetes Dashboard is enabled for this cluster.
1621 },
1622 },
1623 &quot;currentNodeVersion&quot;: &quot;A String&quot;, # [Output only] Deprecated, use
1624 # [NodePools.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.zones.clusters.nodePools)
1625 # instead. The current version of the node software components. If they are
1626 # currently at multiple versions because they&#x27;re in the process of being
1627 # upgraded, this reflects the minimum version of all nodes.
1628 &quot;subnetwork&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
1629 # [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which
1630 # the cluster is connected.
1631 &quot;resourceLabels&quot;: { # The resource labels for the cluster to use to annotate any related
1632 # Google Compute Engine resources.
1633 &quot;a_key&quot;: &quot;A String&quot;,
1634 },
1635 &quot;maintenancePolicy&quot;: { # MaintenancePolicy defines the maintenance policy to be used for the cluster. # Configure the maintenance policy for this cluster.
1636 &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 -07001637 &quot;maintenanceExclusions&quot;: { # Exceptions to maintenance window. Non-emergency maintenance should not
1638 # occur in these windows.
1639 &quot;a_key&quot;: { # Represents an arbitrary window of time.
1640 &quot;endTime&quot;: &quot;A String&quot;, # The time that the window ends. The end time should take place after the
1641 # start time.
1642 &quot;startTime&quot;: &quot;A String&quot;, # The time that the window first starts.
1643 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001644 },
1645 &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 -07001646 # maintenance to occur. The time windows may be overlapping. If no
1647 # maintenance windows are set, maintenance can occur at any time.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001648 &quot;window&quot;: { # Represents an arbitrary window of time. # The window of the first recurrence.
1649 &quot;endTime&quot;: &quot;A String&quot;, # The time that the window ends. The end time should take place after the
1650 # start time.
1651 &quot;startTime&quot;: &quot;A String&quot;, # The time that the window first starts.
1652 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001653 &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 -07001654 # this window reccurs. They go on for the span of time between the start and
1655 # end time.
1656 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001657 # For example, to have something repeat every weekday, you&#x27;d use:
Dan O'Mearadd494642020-05-01 07:42:23 -07001658 # &lt;code&gt;FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR&lt;/code&gt;
1659 # To repeat some window daily (equivalent to the DailyMaintenanceWindow):
1660 # &lt;code&gt;FREQ=DAILY&lt;/code&gt;
1661 # For the first weekend of every month:
1662 # &lt;code&gt;FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU&lt;/code&gt;
1663 # This specifies how frequently the window starts. Eg, if you wanted to have
Bu Sun Kim65020912020-05-20 12:08:20 -07001664 # a 9-5 UTC-4 window every weekday, you&#x27;d use something like:
Dan O'Mearadd494642020-05-01 07:42:23 -07001665 # &lt;code&gt;
1666 # start time = 2019-01-01T09:00:00-0400
1667 # end time = 2019-01-01T17:00:00-0400
1668 # recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
1669 # &lt;/code&gt;
1670 # Windows can span multiple days. Eg, to make the window encompass every
1671 # weekend from midnight Saturday till the last minute of Sunday UTC:
1672 # &lt;code&gt;
1673 # start time = 2019-01-05T00:00:00Z
1674 # end time = 2019-01-07T23:59:00Z
1675 # recurrence = FREQ=WEEKLY;BYDAY=SA
1676 # &lt;/code&gt;
Bu Sun Kim65020912020-05-20 12:08:20 -07001677 # Note the start and end time&#x27;s specific dates are largely arbitrary except
Dan O'Mearadd494642020-05-01 07:42:23 -07001678 # to specify duration of the window and when it first starts.
1679 # The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.
Dan O'Mearadd494642020-05-01 07:42:23 -07001680 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001681 &quot;dailyMaintenanceWindow&quot;: { # Time window specified for daily maintenance operations. # DailyMaintenanceWindow specifies a daily maintenance operation window.
1682 &quot;startTime&quot;: &quot;A String&quot;, # Time within the maintenance window to start the maintenance operations.
1683 # Time format should be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)
1684 # format &quot;HH:MM&quot;, where HH : [00-23] and MM : [00-59] GMT.
1685 &quot;duration&quot;: &quot;A String&quot;, # [Output only] Duration of the time window, automatically chosen to be
1686 # smallest possible in the given scenario.
1687 # Duration will be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)
1688 # format &quot;PTnHnMnS&quot;.
Dan O'Mearadd494642020-05-01 07:42:23 -07001689 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001690 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001691 &quot;resourceVersion&quot;: &quot;A String&quot;, # A hash identifying the version of this policy, so that updates to fields of
1692 # the policy won&#x27;t accidentally undo intermediate changes (and so that users
1693 # of the API unaware of some fields won&#x27;t accidentally remove other fields).
Dan O'Mearadd494642020-05-01 07:42:23 -07001694 # Make a &lt;code&gt;get()&lt;/code&gt; request to the cluster to get the current
1695 # resource version and include it with requests to set the policy.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001696 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001697 &quot;initialClusterVersion&quot;: &quot;A String&quot;, # The initial Kubernetes version for this cluster. Valid versions are those
1698 # found in validMasterVersions returned by getServerConfig. The version can
1699 # be upgraded over time; such upgrades are reflected in
1700 # currentMasterVersion and currentNodeVersion.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001701 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001702 # Users may specify either explicit versions offered by
1703 # Kubernetes Engine or version aliases, which have the following behavior:
1704 #
1705 # - &quot;latest&quot;: picks the highest valid Kubernetes version
1706 # - &quot;1.X&quot;: picks the highest valid patch+gke.N patch in the 1.X version
1707 # - &quot;1.X.Y&quot;: picks the highest valid gke.N patch in the 1.X.Y version
1708 # - &quot;1.X.Y-gke.N&quot;: picks an explicit Kubernetes version
1709 # - &quot;&quot;,&quot;-&quot;: picks the default Kubernetes version
1710 &quot;ipAllocationPolicy&quot;: { # Configuration for controlling how IPs are allocated in the cluster. # Configuration for cluster IP allocation.
Bu Sun Kim65020912020-05-20 12:08:20 -07001711 &quot;nodeIpv4Cidr&quot;: &quot;A String&quot;, # This field is deprecated, use node_ipv4_cidr_block.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001712 &quot;clusterSecondaryRangeName&quot;: &quot;A String&quot;, # The name of the secondary range to be used for the cluster CIDR
1713 # block. The secondary range will be used for pod IP
1714 # addresses. This must be an existing secondary range associated
1715 # with the cluster subnetwork.
1716 #
1717 # This field is only applicable with use_ip_aliases is true and
1718 # create_subnetwork is false.
Bu Sun Kim65020912020-05-20 12:08:20 -07001719 &quot;clusterIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP address range for the cluster pod IPs. If this field is set, then
1720 # `cluster.cluster_ipv4_cidr` must be left blank.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001721 #
1722 # This field is only applicable when `use_ip_aliases` is true.
Bu Sun Kim65020912020-05-20 12:08:20 -07001723 #
1724 # Set to blank to have a range chosen with the default size.
1725 #
1726 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
1727 # netmask.
1728 #
1729 # Set to a
1730 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
1731 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
1732 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
1733 # to use.
Bu Sun Kim65020912020-05-20 12:08:20 -07001734 &quot;nodeIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP address range of the instance IPs in this cluster.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001735 #
1736 # This is applicable only if `create_subnetwork` is true.
1737 #
1738 # Set to blank to have a range chosen with the default size.
1739 #
1740 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
1741 # netmask.
1742 #
1743 # Set to a
1744 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
1745 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
1746 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
1747 # to use.
Bu Sun Kim65020912020-05-20 12:08:20 -07001748 &quot;tpuIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP address range of the Cloud TPUs in this cluster. If unspecified, a
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001749 # range will be automatically chosen with the default size.
1750 #
1751 # This field is only applicable when `use_ip_aliases` is true.
1752 #
1753 # If unspecified, the range will use the default size.
1754 #
1755 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
1756 # netmask.
1757 #
1758 # Set to a
1759 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
1760 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
1761 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
1762 # to use.
Bu Sun Kim65020912020-05-20 12:08:20 -07001763 &quot;useIpAliases&quot;: True or False, # Whether alias IPs will be used for pod IPs in the cluster.
1764 &quot;servicesSecondaryRangeName&quot;: &quot;A String&quot;, # The name of the secondary range to be used as for the services
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001765 # CIDR block. The secondary range will be used for service
1766 # ClusterIPs. This must be an existing secondary range associated
1767 # with the cluster subnetwork.
1768 #
1769 # This field is only applicable with use_ip_aliases is true and
1770 # create_subnetwork is false.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001771 &quot;createSubnetwork&quot;: True or False, # Whether a new subnetwork will be created automatically for the cluster.
1772 #
1773 # This field is only applicable when `use_ip_aliases` is true.
Bu Sun Kim65020912020-05-20 12:08:20 -07001774 &quot;subnetworkName&quot;: &quot;A String&quot;, # A custom subnetwork name to be used if `create_subnetwork` is true. If
1775 # this field is empty, then an automatic name will be chosen for the new
1776 # subnetwork.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001777 &quot;clusterIpv4Cidr&quot;: &quot;A String&quot;, # This field is deprecated, use cluster_ipv4_cidr_block.
1778 &quot;servicesIpv4Cidr&quot;: &quot;A String&quot;, # This field is deprecated, use services_ipv4_cidr_block.
1779 &quot;servicesIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP address range of the services IPs in this cluster. If blank, a range
1780 # will be automatically chosen with the default size.
1781 #
1782 # This field is only applicable when `use_ip_aliases` is true.
1783 #
1784 # Set to blank to have a range chosen with the default size.
1785 #
1786 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
1787 # netmask.
1788 #
1789 # Set to a
1790 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
1791 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
1792 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
1793 # to use.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001794 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001795 &quot;legacyAbac&quot;: { # Configuration for the legacy Attribute Based Access Control authorization # Configuration for the legacy ABAC authorization mode.
1796 # mode.
1797 &quot;enabled&quot;: True or False, # Whether the ABAC authorizer is enabled for this cluster. When enabled,
1798 # identities in the system, including service accounts, nodes, and
1799 # controllers, will have statically granted permissions beyond those
1800 # provided by the RBAC configuration or IAM.
Dan O'Mearadd494642020-05-01 07:42:23 -07001801 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001802 &quot;resourceUsageExportConfig&quot;: { # Configuration for exporting cluster resource usages. # Configuration for exporting resource usages. Resource usage export is
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001803 # disabled when this config is unspecified.
Bu Sun Kim65020912020-05-20 12:08:20 -07001804 &quot;enableNetworkEgressMetering&quot;: True or False, # Whether to enable network egress metering for this cluster. If enabled, a
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001805 # daemonset will be created in the cluster to meter network egress traffic.
Bu Sun Kim65020912020-05-20 12:08:20 -07001806 &quot;consumptionMeteringConfig&quot;: { # Parameters for controlling consumption metering. # Configuration to enable resource consumption metering.
1807 &quot;enabled&quot;: True or False, # Whether to enable consumption metering for this cluster. If enabled, a
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001808 # second BigQuery table will be created to hold resource consumption
1809 # records.
1810 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001811 &quot;bigqueryDestination&quot;: { # Parameters for using BigQuery as the destination of resource usage export. # Configuration to use BigQuery as usage export destination.
1812 &quot;datasetId&quot;: &quot;A String&quot;, # The ID of a BigQuery Dataset.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001813 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001814 },
1815 &quot;enableTpu&quot;: True or False, # Enable the ability to use Cloud TPUs in this cluster.
1816 &quot;locations&quot;: [ # The list of Google Compute Engine
1817 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
1818 # cluster&#x27;s nodes should be located.
1819 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001820 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001821 &quot;nodePools&quot;: [ # The node pools associated with this cluster.
1822 # This field should not be set if &quot;node_config&quot; or &quot;initial_node_count&quot; are
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001823 # specified.
Bu Sun Kim65020912020-05-20 12:08:20 -07001824 { # NodePool contains the name and configuration for a cluster&#x27;s node pool.
1825 # Node pools are a set of nodes (i.e. VM&#x27;s), with a common configuration and
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001826 # specification, under the control of the cluster master. They may have a set
1827 # of Kubernetes labels applied to them, which may be used to reference them
1828 # during pod scheduling. They may also be resized up or down, to accommodate
1829 # the workload.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001830 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output only] Additional information about the current status of this
1831 # node pool instance, if available.
1832 &quot;autoscaling&quot;: { # NodePoolAutoscaling contains information required by cluster autoscaler to # Autoscaler configuration for this NodePool. Autoscaler is enabled
1833 # only if a valid configuration is present.
1834 # adjust the size of the node pool to the current cluster usage.
1835 &quot;maxNodeCount&quot;: 42, # Maximum number of nodes in the NodePool. Must be &gt;= min_node_count. There
1836 # has to enough quota to scale up the cluster.
1837 &quot;autoprovisioned&quot;: True or False, # Can this node pool be deleted automatically.
1838 &quot;minNodeCount&quot;: 42, # Minimum number of nodes in the NodePool. Must be &gt;= 1 and &lt;=
1839 # max_node_count.
1840 &quot;enabled&quot;: True or False, # Is autoscaling enabled for this node pool.
1841 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001842 &quot;initialNodeCount&quot;: 42, # The initial node count for the pool. You must ensure that your
1843 # Compute Engine &lt;a href=&quot;/compute/docs/resource-quotas&quot;&gt;resource quota&lt;/a&gt;
1844 # is sufficient for this number of instances. You must also have available
1845 # firewall and routes quota.
Bu Sun Kim65020912020-05-20 12:08:20 -07001846 &quot;selfLink&quot;: &quot;A String&quot;, # [Output only] Server-defined URL for the resource.
1847 &quot;upgradeSettings&quot;: { # These upgrade settings control the level of parallelism and the level of # Upgrade settings control disruption and speed of the upgrade.
Dan O'Mearadd494642020-05-01 07:42:23 -07001848 # disruption caused by an upgrade.
1849 #
1850 # maxUnavailable controls the number of nodes that can be simultaneously
1851 # unavailable.
1852 #
1853 # maxSurge controls the number of additional nodes that can be added to the
1854 # node pool temporarily for the time of the upgrade to increase the number of
1855 # available nodes.
1856 #
1857 # (maxUnavailable + maxSurge) determines the level of parallelism (how many
1858 # nodes are being upgraded at the same time).
1859 #
1860 # Note: upgrades inevitably introduce some disruption since workloads need to
1861 # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
1862 # this holds true. (Disruption stays within the limits of
1863 # PodDisruptionBudget, if it is configured.)
1864 #
1865 # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
1866 # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
1867 # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
1868 # down 3 old (not yet upgraded) nodes at the same time. This ensures that
1869 # there are always at least 4 nodes available.
Bu Sun Kim65020912020-05-20 12:08:20 -07001870 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during
Dan O'Mearadd494642020-05-01 07:42:23 -07001871 # the upgrade process. A node is considered available if its status is
1872 # Ready.
Bu Sun Kim65020912020-05-20 12:08:20 -07001873 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size
1874 # of the node pool during the upgrade process.
Dan O'Mearadd494642020-05-01 07:42:23 -07001875 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001876 &quot;locations&quot;: [ # The list of Google Compute Engine
1877 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
1878 # NodePool&#x27;s nodes should be located.
1879 &quot;A String&quot;,
1880 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001881 &quot;instanceGroupUrls&quot;: [ # [Output only] The resource URLs of the [managed instance
1882 # groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
1883 # associated with this node pool.
1884 &quot;A String&quot;,
1885 ],
1886 &quot;version&quot;: &quot;A String&quot;, # The version of the Kubernetes of this node.
1887 &quot;podIpv4CidrSize&quot;: 42, # [Output only] The pod CIDR block size per node in this node pool.
1888 &quot;conditions&quot;: [ # Which conditions caused the current node pool state.
1889 { # StatusCondition describes why a cluster or a node pool has a certain status
1890 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07001891 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001892 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Dan O'Mearadd494642020-05-01 07:42:23 -07001893 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001894 ],
1895 &quot;status&quot;: &quot;A String&quot;, # [Output only] The status of the nodes in this pool instance.
1896 &quot;config&quot;: { # Parameters that describe the nodes in a cluster. # The node configuration of the pool.
Bu Sun Kim65020912020-05-20 12:08:20 -07001897 &quot;oauthScopes&quot;: [ # The set of Google API scopes to be made available on all of the
1898 # node VMs under the &quot;default&quot; service account.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001899 #
1900 # The following scopes are recommended, but not required, and by default are
1901 # not included:
1902 #
1903 # * `https://www.googleapis.com/auth/compute` is required for mounting
1904 # persistent storage on your nodes.
1905 # * `https://www.googleapis.com/auth/devstorage.read_only` is required for
1906 # communicating with **gcr.io**
Dan O'Mearadd494642020-05-01 07:42:23 -07001907 # (the [Google Container
1908 # Registry](https://cloud.google.com/container-registry/)).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001909 #
1910 # If unspecified, no scopes are added, unless Cloud Logging or Cloud
1911 # Monitoring are enabled, in which case their required scopes will be added.
Bu Sun Kim65020912020-05-20 12:08:20 -07001912 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001913 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001914 &quot;taints&quot;: [ # List of kubernetes taints to be applied to each node.
Dan O'Mearadd494642020-05-01 07:42:23 -07001915 #
1916 # For more information, including usage and the valid values, see:
1917 # https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
1918 { # Kubernetes taint is comprised of three fields: key, value, and effect. Effect
1919 # can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute.
1920 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001921 # See
1922 # [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration)
1923 # for more information, including usage and the valid values.
Bu Sun Kim65020912020-05-20 12:08:20 -07001924 &quot;effect&quot;: &quot;A String&quot;, # Effect for taint.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001925 &quot;value&quot;: &quot;A String&quot;, # Value for taint.
1926 &quot;key&quot;: &quot;A String&quot;, # Key for taint.
Dan O'Mearadd494642020-05-01 07:42:23 -07001927 },
1928 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001929 &quot;labels&quot;: { # The map of Kubernetes labels (key/value pairs) to be applied to each node.
1930 # These will added in addition to any default label(s) that
1931 # Kubernetes may apply to the node.
1932 # In case of conflict in label keys, the applied set may differ depending on
1933 # the Kubernetes version -- it&#x27;s best to assume the behavior is undefined
1934 # and conflicts should be avoided.
1935 # For more information, including usage and the valid values, see:
1936 # https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
1937 &quot;a_key&quot;: &quot;A String&quot;,
1938 },
1939 &quot;diskSizeGb&quot;: 42, # Size of the disk attached to each node, specified in GB.
1940 # The smallest allowed disk size is 10GB.
1941 #
1942 # If unspecified, the default disk size is 100GB.
1943 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to # The workload metadata configuration for this node.
1944 # workloads on the node pool.
1945 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running
1946 # on the node pool.
1947 },
1948 &quot;accelerators&quot;: [ # A list of hardware accelerators to be attached to each node.
1949 # See https://cloud.google.com/compute/docs/gpus for more information about
1950 # support for GPUs.
1951 { # AcceleratorConfig represents a Hardware Accelerator request.
Bu Sun Kim65020912020-05-20 12:08:20 -07001952 &quot;acceleratorType&quot;: &quot;A String&quot;, # The accelerator type resource name. List of supported accelerators
1953 # [here](https://cloud.google.com/compute/docs/gpus)
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001954 &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of the accelerator cards exposed to an instance.
Bu Sun Kim65020912020-05-20 12:08:20 -07001955 },
1956 ],
1957 &quot;machineType&quot;: &quot;A String&quot;, # The name of a Google Compute Engine [machine
1958 # type](https://cloud.google.com/compute/docs/machine-types) (e.g.
1959 # `n1-standard-1`).
1960 #
1961 # If unspecified, the default machine type is
1962 # `n1-standard-1`.
1963 &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;)
1964 #
1965 # If unspecified, the default disk type is &#x27;pd-standard&#x27;
1966 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
Bu Sun Kim65020912020-05-20 12:08:20 -07001967 &quot;enableIntegrityMonitoring&quot;: True or False, # Defines whether the instance has integrity monitoring enabled.
1968 #
1969 # Enables monitoring and attestation of the boot integrity of the instance.
1970 # The attestation is performed against the integrity policy baseline. This
1971 # baseline is initially derived from the implicitly trusted boot image when
1972 # the instance is created.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001973 &quot;enableSecureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled.
1974 #
1975 # Secure Boot helps ensure that the system only runs authentic software by
1976 # verifying the digital signature of all boot components, and halting the
1977 # boot process if signature verification fails.
Bu Sun Kim65020912020-05-20 12:08:20 -07001978 },
1979 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used by this instance. The instance may be
1980 # scheduled on the specified or newer CPU platform. Applicable values are the
1981 # friendly names of CPU platforms, such as
1982 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Haswell&amp;quot;&lt;/code&gt; or
1983 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Sandy Bridge&amp;quot;&lt;/code&gt;. For more
1984 # information, read [how to specify min CPU
1985 # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
1986 &quot;preemptible&quot;: True or False, # Whether the nodes are created as preemptible VM instances. See:
1987 # https://cloud.google.com/compute/docs/instances/preemptible for more
1988 # information about preemptible VM instances.
1989 &quot;localSsdCount&quot;: 42, # The number of local SSD disks to be attached to the node.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001990 #
Dan O'Mearadd494642020-05-01 07:42:23 -07001991 # The limit for this value is dependent upon the maximum number of
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001992 # disks available on a machine per zone. See:
Dan O'Mearadd494642020-05-01 07:42:23 -07001993 # https://cloud.google.com/compute/docs/disks/local-ssd
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001994 # for more information.
Bu Sun Kim65020912020-05-20 12:08:20 -07001995 &quot;sandboxConfig&quot;: { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node.
1996 &quot;type&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001997 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001998 &quot;metadata&quot;: { # The metadata key/value pairs assigned to instances in the cluster.
1999 #
2000 # Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
2001 # in length. These are reflected as part of a URL in the metadata server.
2002 # Additionally, to avoid ambiguity, keys must not conflict with any other
2003 # metadata keys for the project or be one of the reserved keys:
2004 # &quot;cluster-location&quot;
2005 # &quot;cluster-name&quot;
2006 # &quot;cluster-uid&quot;
2007 # &quot;configure-sh&quot;
2008 # &quot;containerd-configure-sh&quot;
2009 # &quot;enable-os-login&quot;
2010 # &quot;gci-ensure-gke-docker&quot;
2011 # &quot;gci-metrics-enabled&quot;
2012 # &quot;gci-update-strategy&quot;
2013 # &quot;instance-template&quot;
2014 # &quot;kube-env&quot;
2015 # &quot;startup-script&quot;
2016 # &quot;user-data&quot;
2017 # &quot;disable-address-manager&quot;
2018 # &quot;windows-startup-script-ps1&quot;
2019 # &quot;common-psm1&quot;
2020 # &quot;k8s-node-setup-psm1&quot;
2021 # &quot;install-ssh-psm1&quot;
2022 # &quot;user-profile-psm1&quot;
2023 # &quot;serial-port-logging-enable&quot;
2024 #
2025 # Values are free-form strings, and only have meaning as interpreted by
2026 # the image running in the instance. The only restriction placed on them is
2027 # that each value&#x27;s size must be less than or equal to 32 KB.
2028 #
2029 # The total size of all keys and values must be less than 512 KB.
2030 &quot;a_key&quot;: &quot;A String&quot;,
2031 },
2032 &quot;reservationAffinity&quot;: { # [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) # The optional reservation affinity. Setting this field will apply
2033 # the specified [Zonal Compute
2034 # Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
2035 # to this node pool.
2036 # is the configuration of desired reservation which instances could take
2037 # capacity from.
Bu Sun Kim65020912020-05-20 12:08:20 -07002038 &quot;values&quot;: [ # Corresponds to the label value(s) of reservation resource(s).
2039 &quot;A String&quot;,
2040 ],
2041 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Corresponds to the type of reservation consumption.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002042 &quot;key&quot;: &quot;A String&quot;, # Corresponds to the label key of a reservation resource. To target a
2043 # SPECIFIC_RESERVATION by name, specify &quot;googleapis.com/reservation-name&quot; as
2044 # the key and specify the name of your reservation as its value.
Bu Sun Kim65020912020-05-20 12:08:20 -07002045 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002046 &quot;tags&quot;: [ # The list of instance tags applied to all nodes. Tags are used to identify
2047 # valid sources or targets for network firewalls and are specified by
2048 # the client during cluster or node pool creation. Each tag within the list
2049 # must comply with RFC1035.
2050 &quot;A String&quot;,
2051 ],
2052 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs.
2053 # Specify the email address of the Service Account; otherwise, if no Service
2054 # Account is specified, the &quot;default&quot; service account is used.
2055 &quot;imageType&quot;: &quot;A String&quot;, # The image type to use for this node. Note that for a given image type,
2056 # the latest version of it will be used.
Bu Sun Kim65020912020-05-20 12:08:20 -07002057 },
2058 &quot;maxPodsConstraint&quot;: { # Constraints applied to pods. # The constraint on the maximum number of pods that can be run
2059 # simultaneously on a node in the node pool.
2060 &quot;maxPodsPerNode&quot;: &quot;A String&quot;, # Constraint enforced on the max num of pods per node.
2061 },
2062 &quot;name&quot;: &quot;A String&quot;, # The name of the node pool.
2063 &quot;management&quot;: { # NodeManagement defines the set of node management services turned on for the # NodeManagement configuration for this NodePool.
2064 # node pool.
2065 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool.
2066 # the Auto Upgrades will proceed.
Bu Sun Kim65020912020-05-20 12:08:20 -07002067 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
2068 # with the approximate start time for the upgrades, in
2069 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002070 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
2071 # with the description of the upgrade.
Bu Sun Kim65020912020-05-20 12:08:20 -07002072 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002073 &quot;autoRepair&quot;: True or False, # A flag that specifies whether the node auto-repair is enabled for the node
2074 # pool. If enabled, the nodes in this node pool will be monitored and, if
2075 # they fail health checks too many times, an automatic repair action will be
2076 # triggered.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002077 &quot;autoUpgrade&quot;: True or False, # A flag that specifies whether node auto-upgrade is enabled for the node
2078 # pool. If enabled, node auto-upgrade helps keep the nodes in your node pool
2079 # up to date with the latest release version of Kubernetes.
Bu Sun Kim65020912020-05-20 12:08:20 -07002080 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002081 },
2082 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002083 &quot;selfLink&quot;: &quot;A String&quot;, # [Output only] Server-defined URL for the resource.
2084 &quot;networkPolicy&quot;: { # Configuration options for the NetworkPolicy feature. # Configuration options for the NetworkPolicy feature.
2085 # https://kubernetes.io/docs/concepts/services-networking/networkpolicies/
2086 &quot;provider&quot;: &quot;A String&quot;, # The selected network policy provider.
2087 &quot;enabled&quot;: True or False, # Whether network policy is enabled on the cluster.
2088 },
2089 &quot;servicesIpv4Cidr&quot;: &quot;A String&quot;, # [Output only] The IP address range of the Kubernetes services in
2090 # this cluster, in
2091 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
2092 # notation (e.g. `1.2.3.4/29`). Service addresses are
2093 # typically put in the last `/16` from the container CIDR.
2094 &quot;enableKubernetesAlpha&quot;: True or False, # Kubernetes alpha features are enabled on this cluster. This includes alpha
2095 # API groups (e.g. v1alpha1) and features that may not be production ready in
2096 # the kubernetes version of the master and nodes.
2097 # The cluster has no SLA for uptime and master/node upgrades are disabled.
2098 # Alpha enabled clusters are automatically deleted thirty days after
2099 # creation.
2100 &quot;description&quot;: &quot;A String&quot;, # An optional description of this cluster.
2101 &quot;conditions&quot;: [ # Which conditions caused the current cluster state.
2102 { # StatusCondition describes why a cluster or a node pool has a certain status
2103 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07002104 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002105 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim65020912020-05-20 12:08:20 -07002106 },
2107 ],
2108 &quot;currentNodeCount&quot;: 42, # [Output only] The number of nodes currently in the cluster. Deprecated.
2109 # Call Kubernetes API directly to retrieve node information.
2110 &quot;monitoringService&quot;: &quot;A String&quot;, # The monitoring service the cluster should use to write metrics.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002111 # Currently available options:
2112 #
Bu Sun Kim65020912020-05-20 12:08:20 -07002113 # * &quot;monitoring.googleapis.com/kubernetes&quot; - The Cloud Monitoring
Dan O'Mearadd494642020-05-01 07:42:23 -07002114 # service with a Kubernetes-native resource model
2115 # * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
2116 # longer available as of GKE 1.15).
2117 # * `none` - No metrics will be exported from the cluster.
2118 #
2119 # If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
2120 # used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
Bu Sun Kim65020912020-05-20 12:08:20 -07002121 &quot;databaseEncryption&quot;: { # Configuration of etcd encryption. # Configuration of etcd encryption.
2122 &quot;keyName&quot;: &quot;A String&quot;, # Name of CloudKMS key to use for the encryption of secrets in etcd.
2123 # Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key
2124 &quot;state&quot;: &quot;A String&quot;, # Denotes the state of etcd encryption.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002125 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002126 &quot;binaryAuthorization&quot;: { # Configuration for Binary Authorization. # Configuration for Binary Authorization.
2127 &quot;enabled&quot;: True or False, # Enable Binary Authorization for this cluster. If enabled, all container
2128 # images will be validated by Binary Authorization.
2129 },
2130 &quot;tpuIpv4CidrBlock&quot;: &quot;A String&quot;, # [Output only] The IP address range of the Cloud TPUs in this cluster, in
2131 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
2132 # notation (e.g. `1.2.3.4/29`).
2133 &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
2134 # policies.
2135 # policies.
2136 &quot;workloadPool&quot;: &quot;A String&quot;, # The workload pool to attach all Kubernetes service accounts to.
2137 },
2138 &quot;zone&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
2139 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
2140 # cluster resides. This field is deprecated, use location instead.
2141 &quot;expireTime&quot;: &quot;A String&quot;, # [Output only] The time the cluster will be automatically
2142 # deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
2143 &quot;loggingService&quot;: &quot;A String&quot;, # The logging service the cluster should use to write logs.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002144 # Currently available options:
2145 #
Dan O'Mearadd494642020-05-01 07:42:23 -07002146 # * `logging.googleapis.com/kubernetes` - The Cloud Logging
2147 # service with a Kubernetes-native resource model
2148 # * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
2149 # available as of GKE 1.15).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002150 # * `none` - no logs will be exported from the cluster.
Dan O'Mearadd494642020-05-01 07:42:23 -07002151 #
2152 # If left as an empty string,`logging.googleapis.com/kubernetes` will be
2153 # used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
Bu Sun Kim65020912020-05-20 12:08:20 -07002154 &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 -07002155 # For requests, this field should only be used in lieu of a
Bu Sun Kim65020912020-05-20 12:08:20 -07002156 # &quot;node_pool&quot; object, since this configuration (along with the
2157 # &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 -07002158 # auto-generated name. Do not use this and a node_pool at the same time.
2159 # For responses, this field will be populated with the node configuration of
2160 # the first node pool. (For configuration of each node pool, see
2161 # `node_pool.config`)
2162 #
2163 # If unspecified, the defaults are used.
2164 # This field is deprecated, use node_pool.config instead.
Bu Sun Kim65020912020-05-20 12:08:20 -07002165 &quot;oauthScopes&quot;: [ # The set of Google API scopes to be made available on all of the
2166 # node VMs under the &quot;default&quot; service account.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002167 #
2168 # The following scopes are recommended, but not required, and by default are
2169 # not included:
2170 #
2171 # * `https://www.googleapis.com/auth/compute` is required for mounting
2172 # persistent storage on your nodes.
2173 # * `https://www.googleapis.com/auth/devstorage.read_only` is required for
2174 # communicating with **gcr.io**
Dan O'Mearadd494642020-05-01 07:42:23 -07002175 # (the [Google Container
2176 # Registry](https://cloud.google.com/container-registry/)).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002177 #
2178 # If unspecified, no scopes are added, unless Cloud Logging or Cloud
2179 # Monitoring are enabled, in which case their required scopes will be added.
Bu Sun Kim65020912020-05-20 12:08:20 -07002180 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002181 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002182 &quot;taints&quot;: [ # List of kubernetes taints to be applied to each node.
Dan O'Mearadd494642020-05-01 07:42:23 -07002183 #
2184 # For more information, including usage and the valid values, see:
2185 # https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
2186 { # Kubernetes taint is comprised of three fields: key, value, and effect. Effect
2187 # can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute.
2188 #
Bu Sun Kim65020912020-05-20 12:08:20 -07002189 # See
2190 # [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration)
2191 # for more information, including usage and the valid values.
Bu Sun Kim65020912020-05-20 12:08:20 -07002192 &quot;effect&quot;: &quot;A String&quot;, # Effect for taint.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002193 &quot;value&quot;: &quot;A String&quot;, # Value for taint.
2194 &quot;key&quot;: &quot;A String&quot;, # Key for taint.
Dan O'Mearadd494642020-05-01 07:42:23 -07002195 },
2196 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002197 &quot;labels&quot;: { # The map of Kubernetes labels (key/value pairs) to be applied to each node.
2198 # These will added in addition to any default label(s) that
2199 # Kubernetes may apply to the node.
2200 # In case of conflict in label keys, the applied set may differ depending on
2201 # the Kubernetes version -- it&#x27;s best to assume the behavior is undefined
2202 # and conflicts should be avoided.
2203 # For more information, including usage and the valid values, see:
2204 # https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
2205 &quot;a_key&quot;: &quot;A String&quot;,
2206 },
2207 &quot;diskSizeGb&quot;: 42, # Size of the disk attached to each node, specified in GB.
2208 # The smallest allowed disk size is 10GB.
2209 #
2210 # If unspecified, the default disk size is 100GB.
2211 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to # The workload metadata configuration for this node.
2212 # workloads on the node pool.
2213 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running
2214 # on the node pool.
2215 },
2216 &quot;accelerators&quot;: [ # A list of hardware accelerators to be attached to each node.
2217 # See https://cloud.google.com/compute/docs/gpus for more information about
2218 # support for GPUs.
2219 { # AcceleratorConfig represents a Hardware Accelerator request.
Bu Sun Kim65020912020-05-20 12:08:20 -07002220 &quot;acceleratorType&quot;: &quot;A String&quot;, # The accelerator type resource name. List of supported accelerators
2221 # [here](https://cloud.google.com/compute/docs/gpus)
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002222 &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of the accelerator cards exposed to an instance.
Bu Sun Kim65020912020-05-20 12:08:20 -07002223 },
2224 ],
2225 &quot;machineType&quot;: &quot;A String&quot;, # The name of a Google Compute Engine [machine
2226 # type](https://cloud.google.com/compute/docs/machine-types) (e.g.
2227 # `n1-standard-1`).
2228 #
2229 # If unspecified, the default machine type is
2230 # `n1-standard-1`.
2231 &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;)
2232 #
2233 # If unspecified, the default disk type is &#x27;pd-standard&#x27;
2234 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
Bu Sun Kim65020912020-05-20 12:08:20 -07002235 &quot;enableIntegrityMonitoring&quot;: True or False, # Defines whether the instance has integrity monitoring enabled.
2236 #
2237 # Enables monitoring and attestation of the boot integrity of the instance.
2238 # The attestation is performed against the integrity policy baseline. This
2239 # baseline is initially derived from the implicitly trusted boot image when
2240 # the instance is created.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002241 &quot;enableSecureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled.
2242 #
2243 # Secure Boot helps ensure that the system only runs authentic software by
2244 # verifying the digital signature of all boot components, and halting the
2245 # boot process if signature verification fails.
Bu Sun Kim65020912020-05-20 12:08:20 -07002246 },
2247 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used by this instance. The instance may be
2248 # scheduled on the specified or newer CPU platform. Applicable values are the
2249 # friendly names of CPU platforms, such as
2250 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Haswell&amp;quot;&lt;/code&gt; or
2251 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Sandy Bridge&amp;quot;&lt;/code&gt;. For more
2252 # information, read [how to specify min CPU
2253 # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
2254 &quot;preemptible&quot;: True or False, # Whether the nodes are created as preemptible VM instances. See:
2255 # https://cloud.google.com/compute/docs/instances/preemptible for more
2256 # information about preemptible VM instances.
2257 &quot;localSsdCount&quot;: 42, # The number of local SSD disks to be attached to the node.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002258 #
Dan O'Mearadd494642020-05-01 07:42:23 -07002259 # The limit for this value is dependent upon the maximum number of
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002260 # disks available on a machine per zone. See:
Dan O'Mearadd494642020-05-01 07:42:23 -07002261 # https://cloud.google.com/compute/docs/disks/local-ssd
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002262 # for more information.
Bu Sun Kim65020912020-05-20 12:08:20 -07002263 &quot;sandboxConfig&quot;: { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node.
2264 &quot;type&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node.
2265 },
2266 &quot;metadata&quot;: { # The metadata key/value pairs assigned to instances in the cluster.
2267 #
2268 # Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
2269 # in length. These are reflected as part of a URL in the metadata server.
2270 # Additionally, to avoid ambiguity, keys must not conflict with any other
2271 # metadata keys for the project or be one of the reserved keys:
2272 # &quot;cluster-location&quot;
2273 # &quot;cluster-name&quot;
2274 # &quot;cluster-uid&quot;
2275 # &quot;configure-sh&quot;
2276 # &quot;containerd-configure-sh&quot;
2277 # &quot;enable-os-login&quot;
2278 # &quot;gci-ensure-gke-docker&quot;
2279 # &quot;gci-metrics-enabled&quot;
2280 # &quot;gci-update-strategy&quot;
2281 # &quot;instance-template&quot;
2282 # &quot;kube-env&quot;
2283 # &quot;startup-script&quot;
2284 # &quot;user-data&quot;
2285 # &quot;disable-address-manager&quot;
2286 # &quot;windows-startup-script-ps1&quot;
2287 # &quot;common-psm1&quot;
2288 # &quot;k8s-node-setup-psm1&quot;
2289 # &quot;install-ssh-psm1&quot;
2290 # &quot;user-profile-psm1&quot;
2291 # &quot;serial-port-logging-enable&quot;
2292 #
2293 # Values are free-form strings, and only have meaning as interpreted by
2294 # the image running in the instance. The only restriction placed on them is
2295 # that each value&#x27;s size must be less than or equal to 32 KB.
2296 #
2297 # The total size of all keys and values must be less than 512 KB.
2298 &quot;a_key&quot;: &quot;A String&quot;,
2299 },
2300 &quot;reservationAffinity&quot;: { # [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) # The optional reservation affinity. Setting this field will apply
2301 # the specified [Zonal Compute
2302 # Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
2303 # to this node pool.
2304 # is the configuration of desired reservation which instances could take
2305 # capacity from.
Bu Sun Kim65020912020-05-20 12:08:20 -07002306 &quot;values&quot;: [ # Corresponds to the label value(s) of reservation resource(s).
2307 &quot;A String&quot;,
2308 ],
2309 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Corresponds to the type of reservation consumption.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002310 &quot;key&quot;: &quot;A String&quot;, # Corresponds to the label key of a reservation resource. To target a
2311 # SPECIFIC_RESERVATION by name, specify &quot;googleapis.com/reservation-name&quot; as
2312 # the key and specify the name of your reservation as its value.
Bu Sun Kim65020912020-05-20 12:08:20 -07002313 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002314 &quot;tags&quot;: [ # The list of instance tags applied to all nodes. Tags are used to identify
2315 # valid sources or targets for network firewalls and are specified by
2316 # the client during cluster or node pool creation. Each tag within the list
2317 # must comply with RFC1035.
2318 &quot;A String&quot;,
2319 ],
2320 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs.
2321 # Specify the email address of the Service Account; otherwise, if no Service
2322 # Account is specified, the &quot;default&quot; service account is used.
2323 &quot;imageType&quot;: &quot;A String&quot;, # The image type to use for this node. Note that for a given image type,
2324 # the latest version of it will be used.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002325 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002326 &quot;status&quot;: &quot;A String&quot;, # [Output only] The current status of this cluster.
2327 &quot;networkConfig&quot;: { # NetworkConfig reports the relative names of network &amp; subnetwork. # Configuration for cluster networking.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002328 &quot;enableIntraNodeVisibility&quot;: True or False, # Whether Intra-node visibility is enabled for this cluster.
2329 # This makes same node pod to pod traffic visible for VPC network.
Bu Sun Kim65020912020-05-20 12:08:20 -07002330 &quot;subnetwork&quot;: &quot;A String&quot;, # Output only. The relative name of the Google Compute Engine
2331 # [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the
2332 # cluster is connected. Example:
2333 # projects/my-project/regions/us-central1/subnetworks/my-subnet
2334 &quot;network&quot;: &quot;A String&quot;, # Output only. The relative name of the Google Compute Engine
2335 # network(https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
2336 # to which the cluster is connected. Example:
2337 # projects/my-project/global/networks/my-network
Bu Sun Kim65020912020-05-20 12:08:20 -07002338 },
2339 &quot;name&quot;: &quot;A String&quot;, # The name of this cluster. The name must be unique within this project
2340 # and location (e.g. zone or region), and can be up to 40 characters with
2341 # the following restrictions:
2342 #
2343 # * Lowercase letters, numbers, and hyphens only.
2344 # * Must start with a letter.
2345 # * Must end with a number or a letter.
2346 &quot;endpoint&quot;: &quot;A String&quot;, # [Output only] The IP address of this cluster&#x27;s master endpoint.
2347 # The endpoint can be accessed from the internet at
2348 # `https://username:password@endpoint/`.
2349 #
2350 # See the `masterAuth` property of this resource for username and
2351 # password information.
2352 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
2353 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
2354 # or
2355 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
2356 # in which the cluster resides.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002357 }</pre>
2358</div>
2359
2360<div class="method">
2361 <code class="details" id="getJwks">getJwks(parent, x__xgafv=None)</code>
2362 <pre>Gets the public component of the cluster signing keys in
2363JSON Web Key format.
2364This API is not yet intended for general use, and is not available for all
2365clusters.
2366
2367Args:
2368 parent: string, The cluster (project, location, cluster id) to get keys for. Specified in
Bu Sun Kim65020912020-05-20 12:08:20 -07002369the format `projects/*/locations/*/clusters/*`. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002370 x__xgafv: string, V1 error format.
2371 Allowed values
2372 1 - v1 error format
2373 2 - v2 error format
2374
2375Returns:
2376 An object of the form:
2377
2378 { # GetJSONWebKeysResponse is a valid JSON Web Key Set as specififed in rfc 7517
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002379 &quot;cacheHeader&quot;: { # RFC-2616: cache control support # OnePlatform automatically extracts this field and uses it to set the HTTP
2380 # Cache-Control header.
2381 &quot;directive&quot;: &quot;A String&quot;, # 14.9 request and response directives
2382 &quot;age&quot;: &quot;A String&quot;, # 14.6 response cache age, in seconds since the response is generated
2383 &quot;expires&quot;: &quot;A String&quot;, # 14.21 response cache expires, in RFC 1123 date format
2384 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002385 &quot;keys&quot;: [ # The public component of the keys used by the cluster to sign token
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002386 # requests.
2387 { # Jwk is a JSON Web Key as specified in RFC 7517
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002388 &quot;x&quot;: &quot;A String&quot;, # Used for ECDSA keys.
Bu Sun Kim65020912020-05-20 12:08:20 -07002389 &quot;crv&quot;: &quot;A String&quot;, # Used for ECDSA keys.
2390 &quot;kid&quot;: &quot;A String&quot;, # Key ID.
Bu Sun Kim65020912020-05-20 12:08:20 -07002391 &quot;kty&quot;: &quot;A String&quot;, # Key Type.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002392 &quot;e&quot;: &quot;A String&quot;, # Used for RSA keys.
Bu Sun Kim65020912020-05-20 12:08:20 -07002393 &quot;n&quot;: &quot;A String&quot;, # Used for RSA keys.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002394 &quot;alg&quot;: &quot;A String&quot;, # Algorithm.
Bu Sun Kim65020912020-05-20 12:08:20 -07002395 &quot;use&quot;: &quot;A String&quot;, # Permitted uses for the public keys.
2396 &quot;y&quot;: &quot;A String&quot;, # Used for ECDSA keys.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002397 },
2398 ],
2399 }</pre>
2400</div>
2401
2402<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -07002403 <code class="details" id="list">list(parent, projectId=None, zone=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002404 <pre>Lists all clusters owned by a project in either the specified zone or all
2405zones.
2406
2407Args:
2408 parent: string, The parent (project and location) where the clusters will be listed.
Bu Sun Kim65020912020-05-20 12:08:20 -07002409Specified in the format `projects/*/locations/*`.
2410Location &quot;-&quot; matches all zones and all regions. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002411 projectId: string, Deprecated. The Google Developers Console [project ID or project
2412number](https://support.google.com/cloud/answer/6158840).
2413This field has been deprecated and replaced by the parent field.
Bu Sun Kim65020912020-05-20 12:08:20 -07002414 zone: string, Deprecated. The name of the Google Compute Engine
2415[zone](https://cloud.google.com/compute/docs/zones#available) in which the
2416cluster resides, or &quot;-&quot; for all zones. This field has been deprecated and
2417replaced by the parent field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002418 x__xgafv: string, V1 error format.
2419 Allowed values
2420 1 - v1 error format
2421 2 - v2 error format
2422
2423Returns:
2424 An object of the form:
2425
2426 { # ListClustersResponse is the result of ListClustersRequest.
Bu Sun Kim65020912020-05-20 12:08:20 -07002427 &quot;clusters&quot;: [ # A list of clusters in the project in the specified zone, or
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002428 # across all ones.
2429 { # A Google Kubernetes Engine cluster.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002430 &quot;createTime&quot;: &quot;A String&quot;, # [Output only] The time the cluster was created, in
2431 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
2432 &quot;clusterIpv4Cidr&quot;: &quot;A String&quot;, # The IP address range of the container pods in this cluster, in
2433 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
2434 # notation (e.g. `10.96.0.0/14`). Leave blank to have
2435 # one automatically chosen or specify a `/14` block in `10.0.0.0/8`.
2436 &quot;autoscaling&quot;: { # ClusterAutoscaling contains global, per-cluster information # Cluster-level autoscaling configuration.
2437 # required by Cluster Autoscaler to automatically adjust
2438 # the size of the cluster and create/delete
2439 # node pools based on the current needs.
2440 &quot;autoprovisioningLocations&quot;: [ # The list of Google Compute Engine
2441 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
2442 # NodePool&#x27;s nodes can be created by NAP.
2443 &quot;A String&quot;,
2444 ],
2445 &quot;resourceLimits&quot;: [ # Contains global constraints regarding minimum and maximum
2446 # amount of resources in the cluster.
2447 { # Contains information about amount of some resource in the cluster.
2448 # For memory, value should be in GB.
2449 &quot;minimum&quot;: &quot;A String&quot;, # Minimum amount of the resource in the cluster.
2450 &quot;maximum&quot;: &quot;A String&quot;, # Maximum amount of the resource in the cluster.
2451 &quot;resourceType&quot;: &quot;A String&quot;, # Resource name &quot;cpu&quot;, &quot;memory&quot; or gpu-specific string.
2452 },
2453 ],
2454 &quot;enableNodeAutoprovisioning&quot;: True or False, # Enables automatic node pool creation and deletion.
2455 &quot;autoprovisioningNodePoolDefaults&quot;: { # AutoprovisioningNodePoolDefaults contains defaults for a node pool created # AutoprovisioningNodePoolDefaults contains defaults for a node pool
2456 # created by NAP.
2457 # by NAP.
2458 &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.
2459 # node pool.
2460 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool.
2461 # the Auto Upgrades will proceed.
2462 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
2463 # with the approximate start time for the upgrades, in
2464 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
2465 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
2466 # with the description of the upgrade.
2467 },
2468 &quot;autoRepair&quot;: True or False, # A flag that specifies whether the node auto-repair is enabled for the node
2469 # pool. If enabled, the nodes in this node pool will be monitored and, if
2470 # they fail health checks too many times, an automatic repair action will be
2471 # triggered.
2472 &quot;autoUpgrade&quot;: True or False, # A flag that specifies whether node auto-upgrade is enabled for the node
2473 # pool. If enabled, node auto-upgrade helps keep the nodes in your node pool
2474 # up to date with the latest release version of Kubernetes.
2475 },
2476 &quot;oauthScopes&quot;: [ # Scopes that are used by NAP when creating node pools. If oauth_scopes are
2477 # specified, service_account should be empty.
2478 &quot;A String&quot;,
2479 ],
2480 &quot;upgradeSettings&quot;: { # These upgrade settings control the level of parallelism and the level of # Specifies the upgrade settings for NAP created node pools
2481 # disruption caused by an upgrade.
2482 #
2483 # maxUnavailable controls the number of nodes that can be simultaneously
2484 # unavailable.
2485 #
2486 # maxSurge controls the number of additional nodes that can be added to the
2487 # node pool temporarily for the time of the upgrade to increase the number of
2488 # available nodes.
2489 #
2490 # (maxUnavailable + maxSurge) determines the level of parallelism (how many
2491 # nodes are being upgraded at the same time).
2492 #
2493 # Note: upgrades inevitably introduce some disruption since workloads need to
2494 # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
2495 # this holds true. (Disruption stays within the limits of
2496 # PodDisruptionBudget, if it is configured.)
2497 #
2498 # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
2499 # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
2500 # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
2501 # down 3 old (not yet upgraded) nodes at the same time. This ensures that
2502 # there are always at least 4 nodes available.
2503 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during
2504 # the upgrade process. A node is considered available if its status is
2505 # Ready.
2506 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size
2507 # of the node pool during the upgrade process.
2508 },
2509 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs. If
2510 # service_account is specified, scopes should be empty.
2511 },
2512 },
2513 &quot;initialNodeCount&quot;: 42, # The number of nodes to create in this cluster. You must ensure that your
2514 # Compute Engine &lt;a href=&quot;/compute/docs/resource-quotas&quot;&gt;resource quota&lt;/a&gt;
2515 # is sufficient for this number of instances. You must also have available
2516 # firewall and routes quota.
2517 # For requests, this field should only be used in lieu of a
2518 # &quot;node_pool&quot; object, since this configuration (along with the
2519 # &quot;node_config&quot;) will be used to create a &quot;NodePool&quot; object with an
2520 # auto-generated name. Do not use this and a node_pool at the same time.
2521 #
2522 # This field is deprecated, use node_pool.initial_node_count instead.
2523 &quot;instanceGroupUrls&quot;: [ # Deprecated. Use node_pools.instance_group_urls.
2524 &quot;A String&quot;,
2525 ],
2526 &quot;privateClusterConfig&quot;: { # Configuration options for private clusters. # Configuration for private cluster.
2527 &quot;masterIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP range in CIDR notation to use for the hosted master network. This
2528 # range will be used for assigning internal IP addresses to the master or
2529 # set of masters, as well as the ILB VIP. This range must not overlap with
2530 # any other ranges in use within the cluster&#x27;s network.
2531 &quot;enablePrivateNodes&quot;: True or False, # Whether nodes have internal IP addresses only. If enabled, all nodes are
2532 # given only RFC 1918 private addresses and communicate with the master via
2533 # private networking.
2534 &quot;privateEndpoint&quot;: &quot;A String&quot;, # Output only. The internal IP address of this cluster&#x27;s master endpoint.
2535 &quot;enablePrivateEndpoint&quot;: True or False, # Whether the master&#x27;s internal IP address is used as the cluster endpoint.
2536 &quot;peeringName&quot;: &quot;A String&quot;, # Output only. The peering name in the customer VPC used by this cluster.
2537 &quot;publicEndpoint&quot;: &quot;A String&quot;, # Output only. The external IP address of this cluster&#x27;s master endpoint.
2538 },
2539 &quot;shieldedNodes&quot;: { # Configuration of Shielded Nodes feature. # Shielded Nodes configuration.
2540 &quot;enabled&quot;: True or False, # Whether Shielded Nodes features are enabled on all nodes in this cluster.
2541 },
2542 &quot;verticalPodAutoscaling&quot;: { # VerticalPodAutoscaling contains global, per-cluster information # Cluster-level Vertical Pod Autoscaling configuration.
2543 # required by Vertical Pod Autoscaler to automatically adjust
2544 # the resources of pods controlled by it.
2545 &quot;enabled&quot;: True or False, # Enables vertical pod autoscaling.
2546 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002547 &quot;defaultMaxPodsConstraint&quot;: { # Constraints applied to pods. # The default constraint on the maximum number of pods that can be run
2548 # simultaneously on a node in the node pool of this cluster. Only honored
2549 # if cluster created with IP Alias support.
2550 &quot;maxPodsPerNode&quot;: &quot;A String&quot;, # Constraint enforced on the max num of pods per node.
2551 },
2552 &quot;network&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
2553 # [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
2554 # to which the cluster is connected. If left unspecified, the `default`
2555 # network will be used.
2556 &quot;labelFingerprint&quot;: &quot;A String&quot;, # The fingerprint of the set of labels for this cluster.
2557 &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 -07002558 # containers. This is provisioned from within the `container_ipv4_cidr`
2559 # range. This field will only be set when cluster is in route-based network
2560 # mode.
Bu Sun Kim65020912020-05-20 12:08:20 -07002561 &quot;masterAuthorizedNetworksConfig&quot;: { # Configuration options for the master authorized networks feature. Enabled # The configuration options for master authorized networks feature.
2562 # master authorized networks will disallow all external traffic to access
2563 # Kubernetes master through HTTPS except traffic from the given CIDR blocks,
2564 # Google Compute Engine Public IPs and Google Prod IPs.
Bu Sun Kim65020912020-05-20 12:08:20 -07002565 &quot;cidrBlocks&quot;: [ # cidr_blocks define up to 50 external networks that could access
2566 # Kubernetes master through HTTPS.
2567 { # CidrBlock contains an optional name and one CIDR block.
2568 &quot;displayName&quot;: &quot;A String&quot;, # display_name is an optional field for users to identify CIDR blocks.
2569 &quot;cidrBlock&quot;: &quot;A String&quot;, # cidr_block must be specified in CIDR notation.
2570 },
2571 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002572 &quot;enabled&quot;: True or False, # Whether or not master authorized networks is enabled.
Bu Sun Kim65020912020-05-20 12:08:20 -07002573 },
2574 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output only] Additional information about the current status of this
2575 # cluster, if available.
2576 &quot;masterAuth&quot;: { # The authentication information for accessing the master endpoint. # The authentication information for accessing the master endpoint.
2577 # If unspecified, the defaults are used:
2578 # For clusters before v1.12, if master_auth is unspecified, `username` will
2579 # be set to &quot;admin&quot;, a random password will be generated, and a client
2580 # certificate will be issued.
2581 # Authentication can be done using HTTP basic auth or using client
2582 # certificates.
Bu Sun Kim65020912020-05-20 12:08:20 -07002583 &quot;password&quot;: &quot;A String&quot;, # The password to use for HTTP basic authentication to the master endpoint.
2584 # Because the master endpoint is open to the Internet, you should create a
2585 # strong password. If a password is provided for cluster creation, username
2586 # must be non-empty.
2587 &quot;clientCertificateConfig&quot;: { # Configuration for client certificates on the cluster. # Configuration for client certificate authentication on the cluster. For
2588 # clusters before v1.12, if no configuration is specified, a client
2589 # certificate is issued.
2590 &quot;issueClientCertificate&quot;: True or False, # Issue a client certificate.
2591 },
2592 &quot;clientKey&quot;: &quot;A String&quot;, # [Output only] Base64-encoded private key used by clients to authenticate
2593 # to the cluster endpoint.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002594 &quot;clusterCaCertificate&quot;: &quot;A String&quot;, # [Output only] Base64-encoded public certificate that is the root of
2595 # trust for the cluster.
2596 &quot;clientCertificate&quot;: &quot;A String&quot;, # [Output only] Base64-encoded public certificate used by clients to
2597 # authenticate to the cluster endpoint.
2598 &quot;username&quot;: &quot;A String&quot;, # The username to use for HTTP basic authentication to the master endpoint.
2599 # For clusters v1.6.0 and later, basic authentication can be disabled by
2600 # leaving username unspecified (or setting it to the empty string).
Bu Sun Kim65020912020-05-20 12:08:20 -07002601 },
2602 &quot;authenticatorGroupsConfig&quot;: { # Configuration for returning group information from authenticators. # Configuration controlling RBAC group membership information.
2603 &quot;enabled&quot;: True or False, # Whether this cluster should return group membership lookups
2604 # during authentication using a group of security groups.
2605 &quot;securityGroup&quot;: &quot;A String&quot;, # The name of the security group-of-groups to be used. Only relevant
2606 # if enabled = true.
2607 },
2608 &quot;currentMasterVersion&quot;: &quot;A String&quot;, # [Output only] The current software version of the master endpoint.
2609 &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.
2610 # cluster, enabling additional functionality.
2611 &quot;networkPolicyConfig&quot;: { # Configuration for NetworkPolicy. This only tracks whether the addon # Configuration for NetworkPolicy. This only tracks whether the addon
2612 # is enabled or not on the Master, it does not track whether network policy
2613 # is enabled for the nodes.
2614 # is enabled or not on the Master, it does not track whether network policy
2615 # is enabled for the nodes.
2616 &quot;disabled&quot;: True or False, # Whether NetworkPolicy is enabled for this cluster.
2617 },
2618 &quot;cloudRunConfig&quot;: { # Configuration options for the Cloud Run feature. # Configuration for the Cloud Run addon, which allows the user to use a
2619 # managed Knative service.
2620 &quot;disabled&quot;: True or False, # Whether Cloud Run addon is enabled for this cluster.
2621 },
2622 &quot;horizontalPodAutoscaling&quot;: { # Configuration options for the horizontal pod autoscaling feature, which # Configuration for the horizontal pod autoscaling feature, which
2623 # increases or decreases the number of replica pods a replication controller
2624 # has based on the resource usage of the existing pods.
2625 # increases or decreases the number of replica pods a replication controller
2626 # has based on the resource usage of the existing pods.
2627 &quot;disabled&quot;: True or False, # Whether the Horizontal Pod Autoscaling feature is enabled in the cluster.
2628 # When enabled, it ensures that metrics are collected into Stackdriver
2629 # Monitoring.
2630 },
2631 &quot;httpLoadBalancing&quot;: { # Configuration options for the HTTP (L7) load balancing controller addon, # Configuration for the HTTP (L7) load balancing controller addon, which
2632 # makes it easy to set up HTTP load balancers for services in a cluster.
2633 # which makes it easy to set up HTTP load balancers for services in a cluster.
2634 &quot;disabled&quot;: True or False, # Whether the HTTP Load Balancing controller is enabled in the cluster.
2635 # When enabled, it runs a small pod in the cluster that manages the load
2636 # balancers.
2637 },
2638 &quot;kubernetesDashboard&quot;: { # Configuration for the Kubernetes Dashboard. # Configuration for the Kubernetes Dashboard.
2639 # This addon is deprecated, and will be disabled in 1.15. It is recommended
2640 # to use the Cloud Console to manage and monitor your Kubernetes clusters,
2641 # workloads and applications. For more information, see:
2642 # https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
2643 &quot;disabled&quot;: True or False, # Whether the Kubernetes Dashboard is enabled for this cluster.
2644 },
2645 },
2646 &quot;currentNodeVersion&quot;: &quot;A String&quot;, # [Output only] Deprecated, use
2647 # [NodePools.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.zones.clusters.nodePools)
2648 # instead. The current version of the node software components. If they are
2649 # currently at multiple versions because they&#x27;re in the process of being
2650 # upgraded, this reflects the minimum version of all nodes.
2651 &quot;subnetwork&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
2652 # [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which
2653 # the cluster is connected.
2654 &quot;resourceLabels&quot;: { # The resource labels for the cluster to use to annotate any related
2655 # Google Compute Engine resources.
2656 &quot;a_key&quot;: &quot;A String&quot;,
2657 },
2658 &quot;maintenancePolicy&quot;: { # MaintenancePolicy defines the maintenance policy to be used for the cluster. # Configure the maintenance policy for this cluster.
2659 &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 -07002660 &quot;maintenanceExclusions&quot;: { # Exceptions to maintenance window. Non-emergency maintenance should not
2661 # occur in these windows.
2662 &quot;a_key&quot;: { # Represents an arbitrary window of time.
2663 &quot;endTime&quot;: &quot;A String&quot;, # The time that the window ends. The end time should take place after the
2664 # start time.
2665 &quot;startTime&quot;: &quot;A String&quot;, # The time that the window first starts.
2666 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002667 },
2668 &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 -07002669 # maintenance to occur. The time windows may be overlapping. If no
2670 # maintenance windows are set, maintenance can occur at any time.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002671 &quot;window&quot;: { # Represents an arbitrary window of time. # The window of the first recurrence.
2672 &quot;endTime&quot;: &quot;A String&quot;, # The time that the window ends. The end time should take place after the
2673 # start time.
2674 &quot;startTime&quot;: &quot;A String&quot;, # The time that the window first starts.
2675 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002676 &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 -07002677 # this window reccurs. They go on for the span of time between the start and
2678 # end time.
2679 #
Bu Sun Kim65020912020-05-20 12:08:20 -07002680 # For example, to have something repeat every weekday, you&#x27;d use:
Dan O'Mearadd494642020-05-01 07:42:23 -07002681 # &lt;code&gt;FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR&lt;/code&gt;
2682 # To repeat some window daily (equivalent to the DailyMaintenanceWindow):
2683 # &lt;code&gt;FREQ=DAILY&lt;/code&gt;
2684 # For the first weekend of every month:
2685 # &lt;code&gt;FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU&lt;/code&gt;
2686 # This specifies how frequently the window starts. Eg, if you wanted to have
Bu Sun Kim65020912020-05-20 12:08:20 -07002687 # a 9-5 UTC-4 window every weekday, you&#x27;d use something like:
Dan O'Mearadd494642020-05-01 07:42:23 -07002688 # &lt;code&gt;
2689 # start time = 2019-01-01T09:00:00-0400
2690 # end time = 2019-01-01T17:00:00-0400
2691 # recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
2692 # &lt;/code&gt;
2693 # Windows can span multiple days. Eg, to make the window encompass every
2694 # weekend from midnight Saturday till the last minute of Sunday UTC:
2695 # &lt;code&gt;
2696 # start time = 2019-01-05T00:00:00Z
2697 # end time = 2019-01-07T23:59:00Z
2698 # recurrence = FREQ=WEEKLY;BYDAY=SA
2699 # &lt;/code&gt;
Bu Sun Kim65020912020-05-20 12:08:20 -07002700 # Note the start and end time&#x27;s specific dates are largely arbitrary except
Dan O'Mearadd494642020-05-01 07:42:23 -07002701 # to specify duration of the window and when it first starts.
2702 # The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.
Dan O'Mearadd494642020-05-01 07:42:23 -07002703 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002704 &quot;dailyMaintenanceWindow&quot;: { # Time window specified for daily maintenance operations. # DailyMaintenanceWindow specifies a daily maintenance operation window.
2705 &quot;startTime&quot;: &quot;A String&quot;, # Time within the maintenance window to start the maintenance operations.
2706 # Time format should be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)
2707 # format &quot;HH:MM&quot;, where HH : [00-23] and MM : [00-59] GMT.
2708 &quot;duration&quot;: &quot;A String&quot;, # [Output only] Duration of the time window, automatically chosen to be
2709 # smallest possible in the given scenario.
2710 # Duration will be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)
2711 # format &quot;PTnHnMnS&quot;.
Dan O'Mearadd494642020-05-01 07:42:23 -07002712 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002713 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002714 &quot;resourceVersion&quot;: &quot;A String&quot;, # A hash identifying the version of this policy, so that updates to fields of
2715 # the policy won&#x27;t accidentally undo intermediate changes (and so that users
2716 # of the API unaware of some fields won&#x27;t accidentally remove other fields).
Dan O'Mearadd494642020-05-01 07:42:23 -07002717 # Make a &lt;code&gt;get()&lt;/code&gt; request to the cluster to get the current
2718 # resource version and include it with requests to set the policy.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002719 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002720 &quot;initialClusterVersion&quot;: &quot;A String&quot;, # The initial Kubernetes version for this cluster. Valid versions are those
2721 # found in validMasterVersions returned by getServerConfig. The version can
2722 # be upgraded over time; such upgrades are reflected in
2723 # currentMasterVersion and currentNodeVersion.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002724 #
Bu Sun Kim65020912020-05-20 12:08:20 -07002725 # Users may specify either explicit versions offered by
2726 # Kubernetes Engine or version aliases, which have the following behavior:
2727 #
2728 # - &quot;latest&quot;: picks the highest valid Kubernetes version
2729 # - &quot;1.X&quot;: picks the highest valid patch+gke.N patch in the 1.X version
2730 # - &quot;1.X.Y&quot;: picks the highest valid gke.N patch in the 1.X.Y version
2731 # - &quot;1.X.Y-gke.N&quot;: picks an explicit Kubernetes version
2732 # - &quot;&quot;,&quot;-&quot;: picks the default Kubernetes version
2733 &quot;ipAllocationPolicy&quot;: { # Configuration for controlling how IPs are allocated in the cluster. # Configuration for cluster IP allocation.
Bu Sun Kim65020912020-05-20 12:08:20 -07002734 &quot;nodeIpv4Cidr&quot;: &quot;A String&quot;, # This field is deprecated, use node_ipv4_cidr_block.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002735 &quot;clusterSecondaryRangeName&quot;: &quot;A String&quot;, # The name of the secondary range to be used for the cluster CIDR
2736 # block. The secondary range will be used for pod IP
2737 # addresses. This must be an existing secondary range associated
2738 # with the cluster subnetwork.
2739 #
2740 # This field is only applicable with use_ip_aliases is true and
2741 # create_subnetwork is false.
Bu Sun Kim65020912020-05-20 12:08:20 -07002742 &quot;clusterIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP address range for the cluster pod IPs. If this field is set, then
2743 # `cluster.cluster_ipv4_cidr` must be left blank.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002744 #
2745 # This field is only applicable when `use_ip_aliases` is true.
Bu Sun Kim65020912020-05-20 12:08:20 -07002746 #
2747 # Set to blank to have a range chosen with the default size.
2748 #
2749 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
2750 # netmask.
2751 #
2752 # Set to a
2753 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
2754 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
2755 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
2756 # to use.
Bu Sun Kim65020912020-05-20 12:08:20 -07002757 &quot;nodeIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP address range of the instance IPs in this cluster.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002758 #
2759 # This is applicable only if `create_subnetwork` is true.
2760 #
2761 # Set to blank to have a range chosen with the default size.
2762 #
2763 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
2764 # netmask.
2765 #
2766 # Set to a
2767 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
2768 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
2769 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
2770 # to use.
Bu Sun Kim65020912020-05-20 12:08:20 -07002771 &quot;tpuIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP address range of the Cloud TPUs in this cluster. If unspecified, a
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002772 # range will be automatically chosen with the default size.
2773 #
2774 # This field is only applicable when `use_ip_aliases` is true.
2775 #
2776 # If unspecified, the range will use the default size.
2777 #
2778 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
2779 # netmask.
2780 #
2781 # Set to a
2782 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
2783 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
2784 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
2785 # to use.
Bu Sun Kim65020912020-05-20 12:08:20 -07002786 &quot;useIpAliases&quot;: True or False, # Whether alias IPs will be used for pod IPs in the cluster.
2787 &quot;servicesSecondaryRangeName&quot;: &quot;A String&quot;, # The name of the secondary range to be used as for the services
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002788 # CIDR block. The secondary range will be used for service
2789 # ClusterIPs. This must be an existing secondary range associated
2790 # with the cluster subnetwork.
2791 #
2792 # This field is only applicable with use_ip_aliases is true and
2793 # create_subnetwork is false.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002794 &quot;createSubnetwork&quot;: True or False, # Whether a new subnetwork will be created automatically for the cluster.
2795 #
2796 # This field is only applicable when `use_ip_aliases` is true.
Bu Sun Kim65020912020-05-20 12:08:20 -07002797 &quot;subnetworkName&quot;: &quot;A String&quot;, # A custom subnetwork name to be used if `create_subnetwork` is true. If
2798 # this field is empty, then an automatic name will be chosen for the new
2799 # subnetwork.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002800 &quot;clusterIpv4Cidr&quot;: &quot;A String&quot;, # This field is deprecated, use cluster_ipv4_cidr_block.
2801 &quot;servicesIpv4Cidr&quot;: &quot;A String&quot;, # This field is deprecated, use services_ipv4_cidr_block.
2802 &quot;servicesIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP address range of the services IPs in this cluster. If blank, a range
2803 # will be automatically chosen with the default size.
2804 #
2805 # This field is only applicable when `use_ip_aliases` is true.
2806 #
2807 # Set to blank to have a range chosen with the default size.
2808 #
2809 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
2810 # netmask.
2811 #
2812 # Set to a
2813 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
2814 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
2815 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
2816 # to use.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002817 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002818 &quot;legacyAbac&quot;: { # Configuration for the legacy Attribute Based Access Control authorization # Configuration for the legacy ABAC authorization mode.
2819 # mode.
2820 &quot;enabled&quot;: True or False, # Whether the ABAC authorizer is enabled for this cluster. When enabled,
2821 # identities in the system, including service accounts, nodes, and
2822 # controllers, will have statically granted permissions beyond those
2823 # provided by the RBAC configuration or IAM.
Dan O'Mearadd494642020-05-01 07:42:23 -07002824 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002825 &quot;resourceUsageExportConfig&quot;: { # Configuration for exporting cluster resource usages. # Configuration for exporting resource usages. Resource usage export is
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002826 # disabled when this config is unspecified.
Bu Sun Kim65020912020-05-20 12:08:20 -07002827 &quot;enableNetworkEgressMetering&quot;: True or False, # Whether to enable network egress metering for this cluster. If enabled, a
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002828 # daemonset will be created in the cluster to meter network egress traffic.
Bu Sun Kim65020912020-05-20 12:08:20 -07002829 &quot;consumptionMeteringConfig&quot;: { # Parameters for controlling consumption metering. # Configuration to enable resource consumption metering.
2830 &quot;enabled&quot;: True or False, # Whether to enable consumption metering for this cluster. If enabled, a
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002831 # second BigQuery table will be created to hold resource consumption
2832 # records.
2833 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002834 &quot;bigqueryDestination&quot;: { # Parameters for using BigQuery as the destination of resource usage export. # Configuration to use BigQuery as usage export destination.
2835 &quot;datasetId&quot;: &quot;A String&quot;, # The ID of a BigQuery Dataset.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002836 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002837 },
2838 &quot;enableTpu&quot;: True or False, # Enable the ability to use Cloud TPUs in this cluster.
2839 &quot;locations&quot;: [ # The list of Google Compute Engine
2840 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
2841 # cluster&#x27;s nodes should be located.
2842 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002843 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002844 &quot;nodePools&quot;: [ # The node pools associated with this cluster.
2845 # This field should not be set if &quot;node_config&quot; or &quot;initial_node_count&quot; are
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002846 # specified.
Bu Sun Kim65020912020-05-20 12:08:20 -07002847 { # NodePool contains the name and configuration for a cluster&#x27;s node pool.
2848 # Node pools are a set of nodes (i.e. VM&#x27;s), with a common configuration and
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002849 # specification, under the control of the cluster master. They may have a set
2850 # of Kubernetes labels applied to them, which may be used to reference them
2851 # during pod scheduling. They may also be resized up or down, to accommodate
2852 # the workload.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002853 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output only] Additional information about the current status of this
2854 # node pool instance, if available.
2855 &quot;autoscaling&quot;: { # NodePoolAutoscaling contains information required by cluster autoscaler to # Autoscaler configuration for this NodePool. Autoscaler is enabled
2856 # only if a valid configuration is present.
2857 # adjust the size of the node pool to the current cluster usage.
2858 &quot;maxNodeCount&quot;: 42, # Maximum number of nodes in the NodePool. Must be &gt;= min_node_count. There
2859 # has to enough quota to scale up the cluster.
2860 &quot;autoprovisioned&quot;: True or False, # Can this node pool be deleted automatically.
2861 &quot;minNodeCount&quot;: 42, # Minimum number of nodes in the NodePool. Must be &gt;= 1 and &lt;=
2862 # max_node_count.
2863 &quot;enabled&quot;: True or False, # Is autoscaling enabled for this node pool.
2864 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002865 &quot;initialNodeCount&quot;: 42, # The initial node count for the pool. You must ensure that your
2866 # Compute Engine &lt;a href=&quot;/compute/docs/resource-quotas&quot;&gt;resource quota&lt;/a&gt;
2867 # is sufficient for this number of instances. You must also have available
2868 # firewall and routes quota.
Bu Sun Kim65020912020-05-20 12:08:20 -07002869 &quot;selfLink&quot;: &quot;A String&quot;, # [Output only] Server-defined URL for the resource.
2870 &quot;upgradeSettings&quot;: { # These upgrade settings control the level of parallelism and the level of # Upgrade settings control disruption and speed of the upgrade.
Dan O'Mearadd494642020-05-01 07:42:23 -07002871 # disruption caused by an upgrade.
2872 #
2873 # maxUnavailable controls the number of nodes that can be simultaneously
2874 # unavailable.
2875 #
2876 # maxSurge controls the number of additional nodes that can be added to the
2877 # node pool temporarily for the time of the upgrade to increase the number of
2878 # available nodes.
2879 #
2880 # (maxUnavailable + maxSurge) determines the level of parallelism (how many
2881 # nodes are being upgraded at the same time).
2882 #
2883 # Note: upgrades inevitably introduce some disruption since workloads need to
2884 # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
2885 # this holds true. (Disruption stays within the limits of
2886 # PodDisruptionBudget, if it is configured.)
2887 #
2888 # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
2889 # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
2890 # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
2891 # down 3 old (not yet upgraded) nodes at the same time. This ensures that
2892 # there are always at least 4 nodes available.
Bu Sun Kim65020912020-05-20 12:08:20 -07002893 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during
Dan O'Mearadd494642020-05-01 07:42:23 -07002894 # the upgrade process. A node is considered available if its status is
2895 # Ready.
Bu Sun Kim65020912020-05-20 12:08:20 -07002896 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size
2897 # of the node pool during the upgrade process.
Dan O'Mearadd494642020-05-01 07:42:23 -07002898 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002899 &quot;locations&quot;: [ # The list of Google Compute Engine
2900 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
2901 # NodePool&#x27;s nodes should be located.
2902 &quot;A String&quot;,
2903 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002904 &quot;instanceGroupUrls&quot;: [ # [Output only] The resource URLs of the [managed instance
2905 # groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
2906 # associated with this node pool.
2907 &quot;A String&quot;,
2908 ],
2909 &quot;version&quot;: &quot;A String&quot;, # The version of the Kubernetes of this node.
2910 &quot;podIpv4CidrSize&quot;: 42, # [Output only] The pod CIDR block size per node in this node pool.
2911 &quot;conditions&quot;: [ # Which conditions caused the current node pool state.
2912 { # StatusCondition describes why a cluster or a node pool has a certain status
2913 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07002914 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002915 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Dan O'Mearadd494642020-05-01 07:42:23 -07002916 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002917 ],
2918 &quot;status&quot;: &quot;A String&quot;, # [Output only] The status of the nodes in this pool instance.
2919 &quot;config&quot;: { # Parameters that describe the nodes in a cluster. # The node configuration of the pool.
Bu Sun Kim65020912020-05-20 12:08:20 -07002920 &quot;oauthScopes&quot;: [ # The set of Google API scopes to be made available on all of the
2921 # node VMs under the &quot;default&quot; service account.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002922 #
2923 # The following scopes are recommended, but not required, and by default are
2924 # not included:
2925 #
2926 # * `https://www.googleapis.com/auth/compute` is required for mounting
2927 # persistent storage on your nodes.
2928 # * `https://www.googleapis.com/auth/devstorage.read_only` is required for
2929 # communicating with **gcr.io**
Dan O'Mearadd494642020-05-01 07:42:23 -07002930 # (the [Google Container
2931 # Registry](https://cloud.google.com/container-registry/)).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002932 #
2933 # If unspecified, no scopes are added, unless Cloud Logging or Cloud
2934 # Monitoring are enabled, in which case their required scopes will be added.
Bu Sun Kim65020912020-05-20 12:08:20 -07002935 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002936 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002937 &quot;taints&quot;: [ # List of kubernetes taints to be applied to each node.
Dan O'Mearadd494642020-05-01 07:42:23 -07002938 #
2939 # For more information, including usage and the valid values, see:
2940 # https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
2941 { # Kubernetes taint is comprised of three fields: key, value, and effect. Effect
2942 # can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute.
2943 #
Bu Sun Kim65020912020-05-20 12:08:20 -07002944 # See
2945 # [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration)
2946 # for more information, including usage and the valid values.
Bu Sun Kim65020912020-05-20 12:08:20 -07002947 &quot;effect&quot;: &quot;A String&quot;, # Effect for taint.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002948 &quot;value&quot;: &quot;A String&quot;, # Value for taint.
2949 &quot;key&quot;: &quot;A String&quot;, # Key for taint.
Dan O'Mearadd494642020-05-01 07:42:23 -07002950 },
2951 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002952 &quot;labels&quot;: { # The map of Kubernetes labels (key/value pairs) to be applied to each node.
2953 # These will added in addition to any default label(s) that
2954 # Kubernetes may apply to the node.
2955 # In case of conflict in label keys, the applied set may differ depending on
2956 # the Kubernetes version -- it&#x27;s best to assume the behavior is undefined
2957 # and conflicts should be avoided.
2958 # For more information, including usage and the valid values, see:
2959 # https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
2960 &quot;a_key&quot;: &quot;A String&quot;,
2961 },
2962 &quot;diskSizeGb&quot;: 42, # Size of the disk attached to each node, specified in GB.
2963 # The smallest allowed disk size is 10GB.
2964 #
2965 # If unspecified, the default disk size is 100GB.
2966 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to # The workload metadata configuration for this node.
2967 # workloads on the node pool.
2968 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running
2969 # on the node pool.
2970 },
2971 &quot;accelerators&quot;: [ # A list of hardware accelerators to be attached to each node.
2972 # See https://cloud.google.com/compute/docs/gpus for more information about
2973 # support for GPUs.
2974 { # AcceleratorConfig represents a Hardware Accelerator request.
Bu Sun Kim65020912020-05-20 12:08:20 -07002975 &quot;acceleratorType&quot;: &quot;A String&quot;, # The accelerator type resource name. List of supported accelerators
2976 # [here](https://cloud.google.com/compute/docs/gpus)
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002977 &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of the accelerator cards exposed to an instance.
Bu Sun Kim65020912020-05-20 12:08:20 -07002978 },
2979 ],
2980 &quot;machineType&quot;: &quot;A String&quot;, # The name of a Google Compute Engine [machine
2981 # type](https://cloud.google.com/compute/docs/machine-types) (e.g.
2982 # `n1-standard-1`).
2983 #
2984 # If unspecified, the default machine type is
2985 # `n1-standard-1`.
2986 &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;)
2987 #
2988 # If unspecified, the default disk type is &#x27;pd-standard&#x27;
2989 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
Bu Sun Kim65020912020-05-20 12:08:20 -07002990 &quot;enableIntegrityMonitoring&quot;: True or False, # Defines whether the instance has integrity monitoring enabled.
2991 #
2992 # Enables monitoring and attestation of the boot integrity of the instance.
2993 # The attestation is performed against the integrity policy baseline. This
2994 # baseline is initially derived from the implicitly trusted boot image when
2995 # the instance is created.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002996 &quot;enableSecureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled.
2997 #
2998 # Secure Boot helps ensure that the system only runs authentic software by
2999 # verifying the digital signature of all boot components, and halting the
3000 # boot process if signature verification fails.
Bu Sun Kim65020912020-05-20 12:08:20 -07003001 },
3002 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used by this instance. The instance may be
3003 # scheduled on the specified or newer CPU platform. Applicable values are the
3004 # friendly names of CPU platforms, such as
3005 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Haswell&amp;quot;&lt;/code&gt; or
3006 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Sandy Bridge&amp;quot;&lt;/code&gt;. For more
3007 # information, read [how to specify min CPU
3008 # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
3009 &quot;preemptible&quot;: True or False, # Whether the nodes are created as preemptible VM instances. See:
3010 # https://cloud.google.com/compute/docs/instances/preemptible for more
3011 # information about preemptible VM instances.
3012 &quot;localSsdCount&quot;: 42, # The number of local SSD disks to be attached to the node.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003013 #
Dan O'Mearadd494642020-05-01 07:42:23 -07003014 # The limit for this value is dependent upon the maximum number of
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003015 # disks available on a machine per zone. See:
Dan O'Mearadd494642020-05-01 07:42:23 -07003016 # https://cloud.google.com/compute/docs/disks/local-ssd
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003017 # for more information.
Bu Sun Kim65020912020-05-20 12:08:20 -07003018 &quot;sandboxConfig&quot;: { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node.
3019 &quot;type&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003020 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003021 &quot;metadata&quot;: { # The metadata key/value pairs assigned to instances in the cluster.
3022 #
3023 # Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
3024 # in length. These are reflected as part of a URL in the metadata server.
3025 # Additionally, to avoid ambiguity, keys must not conflict with any other
3026 # metadata keys for the project or be one of the reserved keys:
3027 # &quot;cluster-location&quot;
3028 # &quot;cluster-name&quot;
3029 # &quot;cluster-uid&quot;
3030 # &quot;configure-sh&quot;
3031 # &quot;containerd-configure-sh&quot;
3032 # &quot;enable-os-login&quot;
3033 # &quot;gci-ensure-gke-docker&quot;
3034 # &quot;gci-metrics-enabled&quot;
3035 # &quot;gci-update-strategy&quot;
3036 # &quot;instance-template&quot;
3037 # &quot;kube-env&quot;
3038 # &quot;startup-script&quot;
3039 # &quot;user-data&quot;
3040 # &quot;disable-address-manager&quot;
3041 # &quot;windows-startup-script-ps1&quot;
3042 # &quot;common-psm1&quot;
3043 # &quot;k8s-node-setup-psm1&quot;
3044 # &quot;install-ssh-psm1&quot;
3045 # &quot;user-profile-psm1&quot;
3046 # &quot;serial-port-logging-enable&quot;
3047 #
3048 # Values are free-form strings, and only have meaning as interpreted by
3049 # the image running in the instance. The only restriction placed on them is
3050 # that each value&#x27;s size must be less than or equal to 32 KB.
3051 #
3052 # The total size of all keys and values must be less than 512 KB.
3053 &quot;a_key&quot;: &quot;A String&quot;,
3054 },
3055 &quot;reservationAffinity&quot;: { # [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) # The optional reservation affinity. Setting this field will apply
3056 # the specified [Zonal Compute
3057 # Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
3058 # to this node pool.
3059 # is the configuration of desired reservation which instances could take
3060 # capacity from.
Bu Sun Kim65020912020-05-20 12:08:20 -07003061 &quot;values&quot;: [ # Corresponds to the label value(s) of reservation resource(s).
3062 &quot;A String&quot;,
3063 ],
3064 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Corresponds to the type of reservation consumption.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003065 &quot;key&quot;: &quot;A String&quot;, # Corresponds to the label key of a reservation resource. To target a
3066 # SPECIFIC_RESERVATION by name, specify &quot;googleapis.com/reservation-name&quot; as
3067 # the key and specify the name of your reservation as its value.
Bu Sun Kim65020912020-05-20 12:08:20 -07003068 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003069 &quot;tags&quot;: [ # The list of instance tags applied to all nodes. Tags are used to identify
3070 # valid sources or targets for network firewalls and are specified by
3071 # the client during cluster or node pool creation. Each tag within the list
3072 # must comply with RFC1035.
3073 &quot;A String&quot;,
3074 ],
3075 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs.
3076 # Specify the email address of the Service Account; otherwise, if no Service
3077 # Account is specified, the &quot;default&quot; service account is used.
3078 &quot;imageType&quot;: &quot;A String&quot;, # The image type to use for this node. Note that for a given image type,
3079 # the latest version of it will be used.
Bu Sun Kim65020912020-05-20 12:08:20 -07003080 },
3081 &quot;maxPodsConstraint&quot;: { # Constraints applied to pods. # The constraint on the maximum number of pods that can be run
3082 # simultaneously on a node in the node pool.
3083 &quot;maxPodsPerNode&quot;: &quot;A String&quot;, # Constraint enforced on the max num of pods per node.
3084 },
3085 &quot;name&quot;: &quot;A String&quot;, # The name of the node pool.
3086 &quot;management&quot;: { # NodeManagement defines the set of node management services turned on for the # NodeManagement configuration for this NodePool.
3087 # node pool.
3088 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool.
3089 # the Auto Upgrades will proceed.
Bu Sun Kim65020912020-05-20 12:08:20 -07003090 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
3091 # with the approximate start time for the upgrades, in
3092 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003093 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
3094 # with the description of the upgrade.
Bu Sun Kim65020912020-05-20 12:08:20 -07003095 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003096 &quot;autoRepair&quot;: True or False, # A flag that specifies whether the node auto-repair is enabled for the node
3097 # pool. If enabled, the nodes in this node pool will be monitored and, if
3098 # they fail health checks too many times, an automatic repair action will be
3099 # triggered.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003100 &quot;autoUpgrade&quot;: True or False, # A flag that specifies whether node auto-upgrade is enabled for the node
3101 # pool. If enabled, node auto-upgrade helps keep the nodes in your node pool
3102 # up to date with the latest release version of Kubernetes.
Bu Sun Kim65020912020-05-20 12:08:20 -07003103 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003104 },
3105 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003106 &quot;selfLink&quot;: &quot;A String&quot;, # [Output only] Server-defined URL for the resource.
3107 &quot;networkPolicy&quot;: { # Configuration options for the NetworkPolicy feature. # Configuration options for the NetworkPolicy feature.
3108 # https://kubernetes.io/docs/concepts/services-networking/networkpolicies/
3109 &quot;provider&quot;: &quot;A String&quot;, # The selected network policy provider.
3110 &quot;enabled&quot;: True or False, # Whether network policy is enabled on the cluster.
3111 },
3112 &quot;servicesIpv4Cidr&quot;: &quot;A String&quot;, # [Output only] The IP address range of the Kubernetes services in
3113 # this cluster, in
3114 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
3115 # notation (e.g. `1.2.3.4/29`). Service addresses are
3116 # typically put in the last `/16` from the container CIDR.
3117 &quot;enableKubernetesAlpha&quot;: True or False, # Kubernetes alpha features are enabled on this cluster. This includes alpha
3118 # API groups (e.g. v1alpha1) and features that may not be production ready in
3119 # the kubernetes version of the master and nodes.
3120 # The cluster has no SLA for uptime and master/node upgrades are disabled.
3121 # Alpha enabled clusters are automatically deleted thirty days after
3122 # creation.
3123 &quot;description&quot;: &quot;A String&quot;, # An optional description of this cluster.
3124 &quot;conditions&quot;: [ # Which conditions caused the current cluster state.
3125 { # StatusCondition describes why a cluster or a node pool has a certain status
3126 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07003127 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003128 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim65020912020-05-20 12:08:20 -07003129 },
3130 ],
3131 &quot;currentNodeCount&quot;: 42, # [Output only] The number of nodes currently in the cluster. Deprecated.
3132 # Call Kubernetes API directly to retrieve node information.
3133 &quot;monitoringService&quot;: &quot;A String&quot;, # The monitoring service the cluster should use to write metrics.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003134 # Currently available options:
3135 #
Bu Sun Kim65020912020-05-20 12:08:20 -07003136 # * &quot;monitoring.googleapis.com/kubernetes&quot; - The Cloud Monitoring
Dan O'Mearadd494642020-05-01 07:42:23 -07003137 # service with a Kubernetes-native resource model
3138 # * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
3139 # longer available as of GKE 1.15).
3140 # * `none` - No metrics will be exported from the cluster.
3141 #
3142 # If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
3143 # used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
Bu Sun Kim65020912020-05-20 12:08:20 -07003144 &quot;databaseEncryption&quot;: { # Configuration of etcd encryption. # Configuration of etcd encryption.
3145 &quot;keyName&quot;: &quot;A String&quot;, # Name of CloudKMS key to use for the encryption of secrets in etcd.
3146 # Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key
3147 &quot;state&quot;: &quot;A String&quot;, # Denotes the state of etcd encryption.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003148 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003149 &quot;binaryAuthorization&quot;: { # Configuration for Binary Authorization. # Configuration for Binary Authorization.
3150 &quot;enabled&quot;: True or False, # Enable Binary Authorization for this cluster. If enabled, all container
3151 # images will be validated by Binary Authorization.
3152 },
3153 &quot;tpuIpv4CidrBlock&quot;: &quot;A String&quot;, # [Output only] The IP address range of the Cloud TPUs in this cluster, in
3154 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
3155 # notation (e.g. `1.2.3.4/29`).
3156 &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
3157 # policies.
3158 # policies.
3159 &quot;workloadPool&quot;: &quot;A String&quot;, # The workload pool to attach all Kubernetes service accounts to.
3160 },
3161 &quot;zone&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
3162 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
3163 # cluster resides. This field is deprecated, use location instead.
3164 &quot;expireTime&quot;: &quot;A String&quot;, # [Output only] The time the cluster will be automatically
3165 # deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
3166 &quot;loggingService&quot;: &quot;A String&quot;, # The logging service the cluster should use to write logs.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003167 # Currently available options:
3168 #
Dan O'Mearadd494642020-05-01 07:42:23 -07003169 # * `logging.googleapis.com/kubernetes` - The Cloud Logging
3170 # service with a Kubernetes-native resource model
3171 # * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
3172 # available as of GKE 1.15).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003173 # * `none` - no logs will be exported from the cluster.
Dan O'Mearadd494642020-05-01 07:42:23 -07003174 #
3175 # If left as an empty string,`logging.googleapis.com/kubernetes` will be
3176 # used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
Bu Sun Kim65020912020-05-20 12:08:20 -07003177 &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 -07003178 # For requests, this field should only be used in lieu of a
Bu Sun Kim65020912020-05-20 12:08:20 -07003179 # &quot;node_pool&quot; object, since this configuration (along with the
3180 # &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 -07003181 # auto-generated name. Do not use this and a node_pool at the same time.
3182 # For responses, this field will be populated with the node configuration of
3183 # the first node pool. (For configuration of each node pool, see
3184 # `node_pool.config`)
3185 #
3186 # If unspecified, the defaults are used.
3187 # This field is deprecated, use node_pool.config instead.
Bu Sun Kim65020912020-05-20 12:08:20 -07003188 &quot;oauthScopes&quot;: [ # The set of Google API scopes to be made available on all of the
3189 # node VMs under the &quot;default&quot; service account.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003190 #
3191 # The following scopes are recommended, but not required, and by default are
3192 # not included:
3193 #
3194 # * `https://www.googleapis.com/auth/compute` is required for mounting
3195 # persistent storage on your nodes.
3196 # * `https://www.googleapis.com/auth/devstorage.read_only` is required for
3197 # communicating with **gcr.io**
Dan O'Mearadd494642020-05-01 07:42:23 -07003198 # (the [Google Container
3199 # Registry](https://cloud.google.com/container-registry/)).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003200 #
3201 # If unspecified, no scopes are added, unless Cloud Logging or Cloud
3202 # Monitoring are enabled, in which case their required scopes will be added.
Bu Sun Kim65020912020-05-20 12:08:20 -07003203 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003204 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003205 &quot;taints&quot;: [ # List of kubernetes taints to be applied to each node.
Dan O'Mearadd494642020-05-01 07:42:23 -07003206 #
3207 # For more information, including usage and the valid values, see:
3208 # https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
3209 { # Kubernetes taint is comprised of three fields: key, value, and effect. Effect
3210 # can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute.
3211 #
Bu Sun Kim65020912020-05-20 12:08:20 -07003212 # See
3213 # [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration)
3214 # for more information, including usage and the valid values.
Bu Sun Kim65020912020-05-20 12:08:20 -07003215 &quot;effect&quot;: &quot;A String&quot;, # Effect for taint.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003216 &quot;value&quot;: &quot;A String&quot;, # Value for taint.
3217 &quot;key&quot;: &quot;A String&quot;, # Key for taint.
Dan O'Mearadd494642020-05-01 07:42:23 -07003218 },
3219 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003220 &quot;labels&quot;: { # The map of Kubernetes labels (key/value pairs) to be applied to each node.
3221 # These will added in addition to any default label(s) that
3222 # Kubernetes may apply to the node.
3223 # In case of conflict in label keys, the applied set may differ depending on
3224 # the Kubernetes version -- it&#x27;s best to assume the behavior is undefined
3225 # and conflicts should be avoided.
3226 # For more information, including usage and the valid values, see:
3227 # https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
3228 &quot;a_key&quot;: &quot;A String&quot;,
3229 },
3230 &quot;diskSizeGb&quot;: 42, # Size of the disk attached to each node, specified in GB.
3231 # The smallest allowed disk size is 10GB.
3232 #
3233 # If unspecified, the default disk size is 100GB.
3234 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to # The workload metadata configuration for this node.
3235 # workloads on the node pool.
3236 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running
3237 # on the node pool.
3238 },
3239 &quot;accelerators&quot;: [ # A list of hardware accelerators to be attached to each node.
3240 # See https://cloud.google.com/compute/docs/gpus for more information about
3241 # support for GPUs.
3242 { # AcceleratorConfig represents a Hardware Accelerator request.
Bu Sun Kim65020912020-05-20 12:08:20 -07003243 &quot;acceleratorType&quot;: &quot;A String&quot;, # The accelerator type resource name. List of supported accelerators
3244 # [here](https://cloud.google.com/compute/docs/gpus)
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003245 &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of the accelerator cards exposed to an instance.
Bu Sun Kim65020912020-05-20 12:08:20 -07003246 },
3247 ],
3248 &quot;machineType&quot;: &quot;A String&quot;, # The name of a Google Compute Engine [machine
3249 # type](https://cloud.google.com/compute/docs/machine-types) (e.g.
3250 # `n1-standard-1`).
3251 #
3252 # If unspecified, the default machine type is
3253 # `n1-standard-1`.
3254 &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;)
3255 #
3256 # If unspecified, the default disk type is &#x27;pd-standard&#x27;
3257 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
Bu Sun Kim65020912020-05-20 12:08:20 -07003258 &quot;enableIntegrityMonitoring&quot;: True or False, # Defines whether the instance has integrity monitoring enabled.
3259 #
3260 # Enables monitoring and attestation of the boot integrity of the instance.
3261 # The attestation is performed against the integrity policy baseline. This
3262 # baseline is initially derived from the implicitly trusted boot image when
3263 # the instance is created.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003264 &quot;enableSecureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled.
3265 #
3266 # Secure Boot helps ensure that the system only runs authentic software by
3267 # verifying the digital signature of all boot components, and halting the
3268 # boot process if signature verification fails.
Bu Sun Kim65020912020-05-20 12:08:20 -07003269 },
3270 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used by this instance. The instance may be
3271 # scheduled on the specified or newer CPU platform. Applicable values are the
3272 # friendly names of CPU platforms, such as
3273 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Haswell&amp;quot;&lt;/code&gt; or
3274 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Sandy Bridge&amp;quot;&lt;/code&gt;. For more
3275 # information, read [how to specify min CPU
3276 # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
3277 &quot;preemptible&quot;: True or False, # Whether the nodes are created as preemptible VM instances. See:
3278 # https://cloud.google.com/compute/docs/instances/preemptible for more
3279 # information about preemptible VM instances.
3280 &quot;localSsdCount&quot;: 42, # The number of local SSD disks to be attached to the node.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003281 #
Dan O'Mearadd494642020-05-01 07:42:23 -07003282 # The limit for this value is dependent upon the maximum number of
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003283 # disks available on a machine per zone. See:
Dan O'Mearadd494642020-05-01 07:42:23 -07003284 # https://cloud.google.com/compute/docs/disks/local-ssd
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003285 # for more information.
Bu Sun Kim65020912020-05-20 12:08:20 -07003286 &quot;sandboxConfig&quot;: { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node.
3287 &quot;type&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node.
3288 },
3289 &quot;metadata&quot;: { # The metadata key/value pairs assigned to instances in the cluster.
3290 #
3291 # Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
3292 # in length. These are reflected as part of a URL in the metadata server.
3293 # Additionally, to avoid ambiguity, keys must not conflict with any other
3294 # metadata keys for the project or be one of the reserved keys:
3295 # &quot;cluster-location&quot;
3296 # &quot;cluster-name&quot;
3297 # &quot;cluster-uid&quot;
3298 # &quot;configure-sh&quot;
3299 # &quot;containerd-configure-sh&quot;
3300 # &quot;enable-os-login&quot;
3301 # &quot;gci-ensure-gke-docker&quot;
3302 # &quot;gci-metrics-enabled&quot;
3303 # &quot;gci-update-strategy&quot;
3304 # &quot;instance-template&quot;
3305 # &quot;kube-env&quot;
3306 # &quot;startup-script&quot;
3307 # &quot;user-data&quot;
3308 # &quot;disable-address-manager&quot;
3309 # &quot;windows-startup-script-ps1&quot;
3310 # &quot;common-psm1&quot;
3311 # &quot;k8s-node-setup-psm1&quot;
3312 # &quot;install-ssh-psm1&quot;
3313 # &quot;user-profile-psm1&quot;
3314 # &quot;serial-port-logging-enable&quot;
3315 #
3316 # Values are free-form strings, and only have meaning as interpreted by
3317 # the image running in the instance. The only restriction placed on them is
3318 # that each value&#x27;s size must be less than or equal to 32 KB.
3319 #
3320 # The total size of all keys and values must be less than 512 KB.
3321 &quot;a_key&quot;: &quot;A String&quot;,
3322 },
3323 &quot;reservationAffinity&quot;: { # [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) # The optional reservation affinity. Setting this field will apply
3324 # the specified [Zonal Compute
3325 # Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
3326 # to this node pool.
3327 # is the configuration of desired reservation which instances could take
3328 # capacity from.
Bu Sun Kim65020912020-05-20 12:08:20 -07003329 &quot;values&quot;: [ # Corresponds to the label value(s) of reservation resource(s).
3330 &quot;A String&quot;,
3331 ],
3332 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Corresponds to the type of reservation consumption.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003333 &quot;key&quot;: &quot;A String&quot;, # Corresponds to the label key of a reservation resource. To target a
3334 # SPECIFIC_RESERVATION by name, specify &quot;googleapis.com/reservation-name&quot; as
3335 # the key and specify the name of your reservation as its value.
Bu Sun Kim65020912020-05-20 12:08:20 -07003336 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003337 &quot;tags&quot;: [ # The list of instance tags applied to all nodes. Tags are used to identify
3338 # valid sources or targets for network firewalls and are specified by
3339 # the client during cluster or node pool creation. Each tag within the list
3340 # must comply with RFC1035.
3341 &quot;A String&quot;,
3342 ],
3343 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs.
3344 # Specify the email address of the Service Account; otherwise, if no Service
3345 # Account is specified, the &quot;default&quot; service account is used.
3346 &quot;imageType&quot;: &quot;A String&quot;, # The image type to use for this node. Note that for a given image type,
3347 # the latest version of it will be used.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003348 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003349 &quot;status&quot;: &quot;A String&quot;, # [Output only] The current status of this cluster.
3350 &quot;networkConfig&quot;: { # NetworkConfig reports the relative names of network &amp; subnetwork. # Configuration for cluster networking.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003351 &quot;enableIntraNodeVisibility&quot;: True or False, # Whether Intra-node visibility is enabled for this cluster.
3352 # This makes same node pod to pod traffic visible for VPC network.
Bu Sun Kim65020912020-05-20 12:08:20 -07003353 &quot;subnetwork&quot;: &quot;A String&quot;, # Output only. The relative name of the Google Compute Engine
3354 # [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the
3355 # cluster is connected. Example:
3356 # projects/my-project/regions/us-central1/subnetworks/my-subnet
3357 &quot;network&quot;: &quot;A String&quot;, # Output only. The relative name of the Google Compute Engine
3358 # network(https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
3359 # to which the cluster is connected. Example:
3360 # projects/my-project/global/networks/my-network
Bu Sun Kim65020912020-05-20 12:08:20 -07003361 },
3362 &quot;name&quot;: &quot;A String&quot;, # The name of this cluster. The name must be unique within this project
3363 # and location (e.g. zone or region), and can be up to 40 characters with
3364 # the following restrictions:
3365 #
3366 # * Lowercase letters, numbers, and hyphens only.
3367 # * Must start with a letter.
3368 # * Must end with a number or a letter.
3369 &quot;endpoint&quot;: &quot;A String&quot;, # [Output only] The IP address of this cluster&#x27;s master endpoint.
3370 # The endpoint can be accessed from the internet at
3371 # `https://username:password@endpoint/`.
3372 #
3373 # See the `masterAuth` property of this resource for username and
3374 # password information.
3375 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
3376 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
3377 # or
3378 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
3379 # in which the cluster resides.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003380 },
3381 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003382 &quot;missingZones&quot;: [ # If any zones are listed here, the list of clusters returned
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003383 # may be missing those zones.
Bu Sun Kim65020912020-05-20 12:08:20 -07003384 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003385 ],
3386 }</pre>
3387</div>
3388
3389<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07003390 <code class="details" id="setAddons">setAddons(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003391 <pre>Sets the addons for a specific cluster.
3392
3393Args:
3394 name: string, The name (project, location, cluster) of the cluster to set addons.
Bu Sun Kim65020912020-05-20 12:08:20 -07003395Specified in the format `projects/*/locations/*/clusters/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07003396 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003397 The object takes the form of:
3398
3399{ # SetAddonsConfigRequest sets the addons associated with the cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -07003400 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster) of the cluster to set addons.
3401 # Specified in the format `projects/*/locations/*/clusters/*`.
3402 &quot;projectId&quot;: &quot;A String&quot;, # Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003403 # number](https://support.google.com/cloud/answer/6158840).
3404 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07003405 &quot;zone&quot;: &quot;A String&quot;, # Deprecated. The name of the Google Compute Engine
3406 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
3407 # cluster resides. This field has been deprecated and replaced by the name
3408 # field.
3409 &quot;clusterId&quot;: &quot;A String&quot;, # Deprecated. The name of the cluster to upgrade.
3410 # This field has been deprecated and replaced by the name field.
3411 &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 -07003412 # cluster.
3413 # cluster, enabling additional functionality.
Bu Sun Kim65020912020-05-20 12:08:20 -07003414 &quot;networkPolicyConfig&quot;: { # Configuration for NetworkPolicy. This only tracks whether the addon # Configuration for NetworkPolicy. This only tracks whether the addon
3415 # is enabled or not on the Master, it does not track whether network policy
3416 # is enabled for the nodes.
3417 # is enabled or not on the Master, it does not track whether network policy
3418 # is enabled for the nodes.
3419 &quot;disabled&quot;: True or False, # Whether NetworkPolicy is enabled for this cluster.
3420 },
3421 &quot;cloudRunConfig&quot;: { # Configuration options for the Cloud Run feature. # Configuration for the Cloud Run addon, which allows the user to use a
3422 # managed Knative service.
3423 &quot;disabled&quot;: True or False, # Whether Cloud Run addon is enabled for this cluster.
3424 },
3425 &quot;horizontalPodAutoscaling&quot;: { # Configuration options for the horizontal pod autoscaling feature, which # Configuration for the horizontal pod autoscaling feature, which
3426 # increases or decreases the number of replica pods a replication controller
3427 # has based on the resource usage of the existing pods.
3428 # increases or decreases the number of replica pods a replication controller
3429 # has based on the resource usage of the existing pods.
3430 &quot;disabled&quot;: True or False, # Whether the Horizontal Pod Autoscaling feature is enabled in the cluster.
3431 # When enabled, it ensures that metrics are collected into Stackdriver
3432 # Monitoring.
3433 },
3434 &quot;httpLoadBalancing&quot;: { # Configuration options for the HTTP (L7) load balancing controller addon, # Configuration for the HTTP (L7) load balancing controller addon, which
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003435 # makes it easy to set up HTTP load balancers for services in a cluster.
3436 # which makes it easy to set up HTTP load balancers for services in a cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -07003437 &quot;disabled&quot;: True or False, # Whether the HTTP Load Balancing controller is enabled in the cluster.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003438 # When enabled, it runs a small pod in the cluster that manages the load
3439 # balancers.
3440 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003441 &quot;kubernetesDashboard&quot;: { # Configuration for the Kubernetes Dashboard. # Configuration for the Kubernetes Dashboard.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003442 # This addon is deprecated, and will be disabled in 1.15. It is recommended
3443 # to use the Cloud Console to manage and monitor your Kubernetes clusters,
3444 # workloads and applications. For more information, see:
3445 # https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
Bu Sun Kim65020912020-05-20 12:08:20 -07003446 &quot;disabled&quot;: True or False, # Whether the Kubernetes Dashboard is enabled for this cluster.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003447 },
3448 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003449 }
3450
3451 x__xgafv: string, V1 error format.
3452 Allowed values
3453 1 - v1 error format
3454 2 - v2 error format
3455
3456Returns:
3457 An object of the form:
3458
3459 { # This operation resource represents operations that may have happened or are
3460 # happening on the cluster. All fields are output only.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003461 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
3462 { # StatusCondition describes why a cluster or a node pool has a certain status
3463 # (e.g., ERROR or DEGRADED).
3464 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
3465 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
3466 },
3467 ],
3468 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
3469 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
3470 # Unset for single-stage operations.
3471 &quot;stages&quot;: [ # Substages of an operation or a stage.
3472 # Object with schema name: OperationProgress
3473 ],
3474 &quot;metrics&quot;: [ # Progress metric bundle, for example:
3475 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
3476 # {name: &quot;nodes total&quot;, int_value: 32}]
3477 # or
3478 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
3479 # {name: &quot;progress scale&quot;, double_value: 1.0}]
3480 { # Progress metric is (string, int|float|string) pair.
3481 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
3482 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
3483 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
3484 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
3485 },
3486 ],
3487 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
3488 # Unset for single-stage operations.
3489 },
3490 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
3491 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
3492 # operation is taking place. This field is deprecated, use location instead.
3493 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
3494 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
3495 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
3496 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
3497 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
3498 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Bu Sun Kim65020912020-05-20 12:08:20 -07003499 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
3500 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003501 { # StatusCondition describes why a cluster or a node pool has a certain status
3502 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07003503 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003504 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003505 },
3506 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003507 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
Dan O'Mearadd494642020-05-01 07:42:23 -07003508 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07003509 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07003510 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
3511 # or
3512 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
3513 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07003514 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
3515 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003516 }</pre>
3517</div>
3518
3519<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07003520 <code class="details" id="setLegacyAbac">setLegacyAbac(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003521 <pre>Enables or disables the ABAC authorization mechanism on a cluster.
3522
3523Args:
3524 name: string, The name (project, location, cluster id) of the cluster to set legacy abac.
Bu Sun Kim65020912020-05-20 12:08:20 -07003525Specified in the format `projects/*/locations/*/clusters/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07003526 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003527 The object takes the form of:
3528
3529{ # SetLegacyAbacRequest enables or disables the ABAC authorization mechanism for
3530 # a cluster.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003531 &quot;clusterId&quot;: &quot;A String&quot;, # Deprecated. The name of the cluster to update.
3532 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07003533 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster id) of the cluster to set legacy abac.
3534 # Specified in the format `projects/*/locations/*/clusters/*`.
3535 &quot;enabled&quot;: True or False, # Required. Whether ABAC authorization will be enabled in the cluster.
3536 &quot;projectId&quot;: &quot;A String&quot;, # Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003537 # number](https://support.google.com/cloud/answer/6158840).
3538 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07003539 &quot;zone&quot;: &quot;A String&quot;, # Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07003540 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
3541 # cluster resides. This field has been deprecated and replaced by the name
3542 # field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003543 }
3544
3545 x__xgafv: string, V1 error format.
3546 Allowed values
3547 1 - v1 error format
3548 2 - v2 error format
3549
3550Returns:
3551 An object of the form:
3552
3553 { # This operation resource represents operations that may have happened or are
3554 # happening on the cluster. All fields are output only.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003555 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
3556 { # StatusCondition describes why a cluster or a node pool has a certain status
3557 # (e.g., ERROR or DEGRADED).
3558 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
3559 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
3560 },
3561 ],
3562 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
3563 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
3564 # Unset for single-stage operations.
3565 &quot;stages&quot;: [ # Substages of an operation or a stage.
3566 # Object with schema name: OperationProgress
3567 ],
3568 &quot;metrics&quot;: [ # Progress metric bundle, for example:
3569 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
3570 # {name: &quot;nodes total&quot;, int_value: 32}]
3571 # or
3572 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
3573 # {name: &quot;progress scale&quot;, double_value: 1.0}]
3574 { # Progress metric is (string, int|float|string) pair.
3575 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
3576 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
3577 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
3578 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
3579 },
3580 ],
3581 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
3582 # Unset for single-stage operations.
3583 },
3584 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
3585 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
3586 # operation is taking place. This field is deprecated, use location instead.
3587 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
3588 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
3589 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
3590 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
3591 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
3592 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Bu Sun Kim65020912020-05-20 12:08:20 -07003593 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
3594 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003595 { # StatusCondition describes why a cluster or a node pool has a certain status
3596 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07003597 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003598 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003599 },
3600 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003601 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
Dan O'Mearadd494642020-05-01 07:42:23 -07003602 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07003603 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07003604 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
3605 # or
3606 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
3607 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07003608 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
3609 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003610 }</pre>
3611</div>
3612
3613<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07003614 <code class="details" id="setLocations">setLocations(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003615 <pre>Sets the locations for a specific cluster.
Dan O'Mearadd494642020-05-01 07:42:23 -07003616Deprecated. Use
3617[projects.locations.clusters.update](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters/update)
3618instead.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003619
3620Args:
3621 name: string, The name (project, location, cluster) of the cluster to set locations.
Bu Sun Kim65020912020-05-20 12:08:20 -07003622Specified in the format `projects/*/locations/*/clusters/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07003623 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003624 The object takes the form of:
3625
3626{ # SetLocationsRequest sets the locations of the cluster.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003627 &quot;clusterId&quot;: &quot;A String&quot;, # Deprecated. The name of the cluster to upgrade.
3628 # This field has been deprecated and replaced by the name field.
3629 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster) of the cluster to set locations.
3630 # Specified in the format `projects/*/locations/*/clusters/*`.
Bu Sun Kim65020912020-05-20 12:08:20 -07003631 &quot;projectId&quot;: &quot;A String&quot;, # Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003632 # number](https://support.google.com/cloud/answer/6158840).
3633 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07003634 &quot;locations&quot;: [ # Required. The desired list of Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07003635 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
Bu Sun Kim65020912020-05-20 12:08:20 -07003636 # cluster&#x27;s nodes should be located. Changing the locations a cluster is in
Dan O'Mearadd494642020-05-01 07:42:23 -07003637 # will result in nodes being either created or removed from the cluster,
3638 # depending on whether locations are being added or removed.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003639 #
Bu Sun Kim65020912020-05-20 12:08:20 -07003640 # This list must always include the cluster&#x27;s primary zone.
3641 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003642 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003643 &quot;zone&quot;: &quot;A String&quot;, # Deprecated. The name of the Google Compute Engine
3644 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
3645 # cluster resides. This field has been deprecated and replaced by the name
3646 # field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003647 }
3648
3649 x__xgafv: string, V1 error format.
3650 Allowed values
3651 1 - v1 error format
3652 2 - v2 error format
3653
3654Returns:
3655 An object of the form:
3656
3657 { # This operation resource represents operations that may have happened or are
3658 # happening on the cluster. All fields are output only.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003659 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
3660 { # StatusCondition describes why a cluster or a node pool has a certain status
3661 # (e.g., ERROR or DEGRADED).
3662 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
3663 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
3664 },
3665 ],
3666 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
3667 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
3668 # Unset for single-stage operations.
3669 &quot;stages&quot;: [ # Substages of an operation or a stage.
3670 # Object with schema name: OperationProgress
3671 ],
3672 &quot;metrics&quot;: [ # Progress metric bundle, for example:
3673 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
3674 # {name: &quot;nodes total&quot;, int_value: 32}]
3675 # or
3676 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
3677 # {name: &quot;progress scale&quot;, double_value: 1.0}]
3678 { # Progress metric is (string, int|float|string) pair.
3679 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
3680 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
3681 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
3682 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
3683 },
3684 ],
3685 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
3686 # Unset for single-stage operations.
3687 },
3688 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
3689 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
3690 # operation is taking place. This field is deprecated, use location instead.
3691 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
3692 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
3693 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
3694 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
3695 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
3696 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Bu Sun Kim65020912020-05-20 12:08:20 -07003697 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
3698 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003699 { # StatusCondition describes why a cluster or a node pool has a certain status
3700 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07003701 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003702 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003703 },
3704 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003705 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
Dan O'Mearadd494642020-05-01 07:42:23 -07003706 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07003707 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07003708 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
3709 # or
3710 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
3711 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07003712 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
3713 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003714 }</pre>
3715</div>
3716
3717<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07003718 <code class="details" id="setLogging">setLogging(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003719 <pre>Sets the logging service for a specific cluster.
3720
3721Args:
3722 name: string, The name (project, location, cluster) of the cluster to set logging.
Bu Sun Kim65020912020-05-20 12:08:20 -07003723Specified in the format `projects/*/locations/*/clusters/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07003724 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003725 The object takes the form of:
3726
3727{ # SetLoggingServiceRequest sets the logging service of a cluster.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003728 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster) of the cluster to set logging.
3729 # Specified in the format `projects/*/locations/*/clusters/*`.
Bu Sun Kim65020912020-05-20 12:08:20 -07003730 &quot;projectId&quot;: &quot;A String&quot;, # Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003731 # number](https://support.google.com/cloud/answer/6158840).
3732 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07003733 &quot;zone&quot;: &quot;A String&quot;, # Deprecated. The name of the Google Compute Engine
3734 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
3735 # cluster resides. This field has been deprecated and replaced by the name
3736 # field.
3737 &quot;clusterId&quot;: &quot;A String&quot;, # Deprecated. The name of the cluster to upgrade.
3738 # This field has been deprecated and replaced by the name field.
3739 &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 -07003740 # Currently available options:
3741 #
Dan O'Mearadd494642020-05-01 07:42:23 -07003742 # * `logging.googleapis.com/kubernetes` - The Cloud Logging
3743 # service with a Kubernetes-native resource model
3744 # * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
3745 # available as of GKE 1.15).
3746 # * `none` - no logs will be exported from the cluster.
3747 #
3748 # If left as an empty string,`logging.googleapis.com/kubernetes` will be
3749 # used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003750 }
3751
3752 x__xgafv: string, V1 error format.
3753 Allowed values
3754 1 - v1 error format
3755 2 - v2 error format
3756
3757Returns:
3758 An object of the form:
3759
3760 { # This operation resource represents operations that may have happened or are
3761 # happening on the cluster. All fields are output only.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003762 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
3763 { # StatusCondition describes why a cluster or a node pool has a certain status
3764 # (e.g., ERROR or DEGRADED).
3765 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
3766 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
3767 },
3768 ],
3769 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
3770 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
3771 # Unset for single-stage operations.
3772 &quot;stages&quot;: [ # Substages of an operation or a stage.
3773 # Object with schema name: OperationProgress
3774 ],
3775 &quot;metrics&quot;: [ # Progress metric bundle, for example:
3776 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
3777 # {name: &quot;nodes total&quot;, int_value: 32}]
3778 # or
3779 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
3780 # {name: &quot;progress scale&quot;, double_value: 1.0}]
3781 { # Progress metric is (string, int|float|string) pair.
3782 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
3783 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
3784 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
3785 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
3786 },
3787 ],
3788 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
3789 # Unset for single-stage operations.
3790 },
3791 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
3792 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
3793 # operation is taking place. This field is deprecated, use location instead.
3794 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
3795 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
3796 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
3797 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
3798 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
3799 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Bu Sun Kim65020912020-05-20 12:08:20 -07003800 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
3801 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003802 { # StatusCondition describes why a cluster or a node pool has a certain status
3803 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07003804 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003805 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003806 },
3807 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003808 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
Dan O'Mearadd494642020-05-01 07:42:23 -07003809 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07003810 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07003811 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
3812 # or
3813 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
3814 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07003815 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
3816 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003817 }</pre>
3818</div>
3819
3820<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07003821 <code class="details" id="setMaintenancePolicy">setMaintenancePolicy(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003822 <pre>Sets the maintenance policy for a cluster.
3823
3824Args:
3825 name: string, The name (project, location, cluster id) of the cluster to set maintenance
3826policy.
Bu Sun Kim65020912020-05-20 12:08:20 -07003827Specified in the format `projects/*/locations/*/clusters/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07003828 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003829 The object takes the form of:
3830
3831{ # SetMaintenancePolicyRequest sets the maintenance policy for a cluster.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003832 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster id) of the cluster to set maintenance
3833 # policy.
3834 # Specified in the format `projects/*/locations/*/clusters/*`.
Bu Sun Kim65020912020-05-20 12:08:20 -07003835 &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 -07003836 # clears the existing maintenance policy.
Bu Sun Kim65020912020-05-20 12:08:20 -07003837 &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 -07003838 &quot;maintenanceExclusions&quot;: { # Exceptions to maintenance window. Non-emergency maintenance should not
3839 # occur in these windows.
3840 &quot;a_key&quot;: { # Represents an arbitrary window of time.
3841 &quot;endTime&quot;: &quot;A String&quot;, # The time that the window ends. The end time should take place after the
3842 # start time.
3843 &quot;startTime&quot;: &quot;A String&quot;, # The time that the window first starts.
3844 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003845 },
3846 &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 -07003847 # maintenance to occur. The time windows may be overlapping. If no
3848 # maintenance windows are set, maintenance can occur at any time.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003849 &quot;window&quot;: { # Represents an arbitrary window of time. # The window of the first recurrence.
3850 &quot;endTime&quot;: &quot;A String&quot;, # The time that the window ends. The end time should take place after the
3851 # start time.
3852 &quot;startTime&quot;: &quot;A String&quot;, # The time that the window first starts.
3853 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003854 &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 -07003855 # this window reccurs. They go on for the span of time between the start and
3856 # end time.
3857 #
Bu Sun Kim65020912020-05-20 12:08:20 -07003858 # For example, to have something repeat every weekday, you&#x27;d use:
Dan O'Mearadd494642020-05-01 07:42:23 -07003859 # &lt;code&gt;FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR&lt;/code&gt;
3860 # To repeat some window daily (equivalent to the DailyMaintenanceWindow):
3861 # &lt;code&gt;FREQ=DAILY&lt;/code&gt;
3862 # For the first weekend of every month:
3863 # &lt;code&gt;FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU&lt;/code&gt;
3864 # This specifies how frequently the window starts. Eg, if you wanted to have
Bu Sun Kim65020912020-05-20 12:08:20 -07003865 # a 9-5 UTC-4 window every weekday, you&#x27;d use something like:
Dan O'Mearadd494642020-05-01 07:42:23 -07003866 # &lt;code&gt;
3867 # start time = 2019-01-01T09:00:00-0400
3868 # end time = 2019-01-01T17:00:00-0400
3869 # recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
3870 # &lt;/code&gt;
3871 # Windows can span multiple days. Eg, to make the window encompass every
3872 # weekend from midnight Saturday till the last minute of Sunday UTC:
3873 # &lt;code&gt;
3874 # start time = 2019-01-05T00:00:00Z
3875 # end time = 2019-01-07T23:59:00Z
3876 # recurrence = FREQ=WEEKLY;BYDAY=SA
3877 # &lt;/code&gt;
Bu Sun Kim65020912020-05-20 12:08:20 -07003878 # Note the start and end time&#x27;s specific dates are largely arbitrary except
Dan O'Mearadd494642020-05-01 07:42:23 -07003879 # to specify duration of the window and when it first starts.
3880 # The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.
Dan O'Mearadd494642020-05-01 07:42:23 -07003881 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003882 &quot;dailyMaintenanceWindow&quot;: { # Time window specified for daily maintenance operations. # DailyMaintenanceWindow specifies a daily maintenance operation window.
3883 &quot;startTime&quot;: &quot;A String&quot;, # Time within the maintenance window to start the maintenance operations.
3884 # Time format should be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)
3885 # format &quot;HH:MM&quot;, where HH : [00-23] and MM : [00-59] GMT.
3886 &quot;duration&quot;: &quot;A String&quot;, # [Output only] Duration of the time window, automatically chosen to be
3887 # smallest possible in the given scenario.
3888 # Duration will be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)
3889 # format &quot;PTnHnMnS&quot;.
Dan O'Mearadd494642020-05-01 07:42:23 -07003890 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003891 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003892 &quot;resourceVersion&quot;: &quot;A String&quot;, # A hash identifying the version of this policy, so that updates to fields of
3893 # the policy won&#x27;t accidentally undo intermediate changes (and so that users
3894 # of the API unaware of some fields won&#x27;t accidentally remove other fields).
Dan O'Mearadd494642020-05-01 07:42:23 -07003895 # Make a &lt;code&gt;get()&lt;/code&gt; request to the cluster to get the current
3896 # resource version and include it with requests to set the policy.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003897 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003898 &quot;projectId&quot;: &quot;A String&quot;, # Required. The Google Developers Console [project ID or project
3899 # number](https://support.google.com/cloud/answer/6158840).
3900 &quot;zone&quot;: &quot;A String&quot;, # Required. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07003901 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
3902 # cluster resides.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003903 &quot;clusterId&quot;: &quot;A String&quot;, # Required. The name of the cluster to update.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003904 }
3905
3906 x__xgafv: string, V1 error format.
3907 Allowed values
3908 1 - v1 error format
3909 2 - v2 error format
3910
3911Returns:
3912 An object of the form:
3913
3914 { # This operation resource represents operations that may have happened or are
3915 # happening on the cluster. All fields are output only.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003916 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
3917 { # StatusCondition describes why a cluster or a node pool has a certain status
3918 # (e.g., ERROR or DEGRADED).
3919 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
3920 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
3921 },
3922 ],
3923 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
3924 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
3925 # Unset for single-stage operations.
3926 &quot;stages&quot;: [ # Substages of an operation or a stage.
3927 # Object with schema name: OperationProgress
3928 ],
3929 &quot;metrics&quot;: [ # Progress metric bundle, for example:
3930 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
3931 # {name: &quot;nodes total&quot;, int_value: 32}]
3932 # or
3933 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
3934 # {name: &quot;progress scale&quot;, double_value: 1.0}]
3935 { # Progress metric is (string, int|float|string) pair.
3936 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
3937 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
3938 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
3939 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
3940 },
3941 ],
3942 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
3943 # Unset for single-stage operations.
3944 },
3945 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
3946 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
3947 # operation is taking place. This field is deprecated, use location instead.
3948 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
3949 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
3950 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
3951 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
3952 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
3953 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Bu Sun Kim65020912020-05-20 12:08:20 -07003954 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
3955 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003956 { # StatusCondition describes why a cluster or a node pool has a certain status
3957 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07003958 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003959 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003960 },
3961 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003962 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
Dan O'Mearadd494642020-05-01 07:42:23 -07003963 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07003964 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07003965 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
3966 # or
3967 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
3968 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07003969 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
3970 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003971 }</pre>
3972</div>
3973
3974<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07003975 <code class="details" id="setMasterAuth">setMasterAuth(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003976 <pre>Sets master auth materials. Currently supports changing the admin password
3977or a specific cluster, either via password generation or explicitly setting
3978the password.
3979
3980Args:
3981 name: string, The name (project, location, cluster) of the cluster to set auth.
Bu Sun Kim65020912020-05-20 12:08:20 -07003982Specified in the format `projects/*/locations/*/clusters/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07003983 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003984 The object takes the form of:
3985
3986{ # SetMasterAuthRequest updates the admin password of a cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -07003987 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster) of the cluster to set auth.
3988 # Specified in the format `projects/*/locations/*/clusters/*`.
3989 &quot;action&quot;: &quot;A String&quot;, # Required. The exact form of action to be taken on the master auth.
3990 &quot;projectId&quot;: &quot;A String&quot;, # Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003991 # number](https://support.google.com/cloud/answer/6158840).
3992 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07003993 &quot;clusterId&quot;: &quot;A String&quot;, # Deprecated. The name of the cluster to upgrade.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003994 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07003995 &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 -07003996 # Authentication can be done using HTTP basic auth or using client
3997 # certificates.
Bu Sun Kim65020912020-05-20 12:08:20 -07003998 &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 -07003999 # Because the master endpoint is open to the Internet, you should create a
4000 # strong password. If a password is provided for cluster creation, username
4001 # must be non-empty.
Bu Sun Kim65020912020-05-20 12:08:20 -07004002 &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 -07004003 # clusters before v1.12, if no configuration is specified, a client
4004 # certificate is issued.
Bu Sun Kim65020912020-05-20 12:08:20 -07004005 &quot;issueClientCertificate&quot;: True or False, # Issue a client certificate.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004006 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004007 &quot;clientKey&quot;: &quot;A String&quot;, # [Output only] Base64-encoded private key used by clients to authenticate
4008 # to the cluster endpoint.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004009 &quot;clusterCaCertificate&quot;: &quot;A String&quot;, # [Output only] Base64-encoded public certificate that is the root of
4010 # trust for the cluster.
4011 &quot;clientCertificate&quot;: &quot;A String&quot;, # [Output only] Base64-encoded public certificate used by clients to
4012 # authenticate to the cluster endpoint.
4013 &quot;username&quot;: &quot;A String&quot;, # The username to use for HTTP basic authentication to the master endpoint.
4014 # For clusters v1.6.0 and later, basic authentication can be disabled by
4015 # leaving username unspecified (or setting it to the empty string).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004016 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004017 &quot;zone&quot;: &quot;A String&quot;, # Deprecated. The name of the Google Compute Engine
4018 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4019 # cluster resides. This field has been deprecated and replaced by the name
4020 # field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004021 }
4022
4023 x__xgafv: string, V1 error format.
4024 Allowed values
4025 1 - v1 error format
4026 2 - v2 error format
4027
4028Returns:
4029 An object of the form:
4030
4031 { # This operation resource represents operations that may have happened or are
4032 # happening on the cluster. All fields are output only.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004033 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
4034 { # StatusCondition describes why a cluster or a node pool has a certain status
4035 # (e.g., ERROR or DEGRADED).
4036 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
4037 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
4038 },
4039 ],
4040 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
4041 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
4042 # Unset for single-stage operations.
4043 &quot;stages&quot;: [ # Substages of an operation or a stage.
4044 # Object with schema name: OperationProgress
4045 ],
4046 &quot;metrics&quot;: [ # Progress metric bundle, for example:
4047 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
4048 # {name: &quot;nodes total&quot;, int_value: 32}]
4049 # or
4050 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
4051 # {name: &quot;progress scale&quot;, double_value: 1.0}]
4052 { # Progress metric is (string, int|float|string) pair.
4053 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
4054 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
4055 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
4056 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
4057 },
4058 ],
4059 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
4060 # Unset for single-stage operations.
4061 },
4062 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
4063 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4064 # operation is taking place. This field is deprecated, use location instead.
4065 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
4066 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
4067 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
4068 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
4069 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
4070 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Bu Sun Kim65020912020-05-20 12:08:20 -07004071 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
4072 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004073 { # StatusCondition describes why a cluster or a node pool has a certain status
4074 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07004075 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004076 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004077 },
4078 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07004079 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
Dan O'Mearadd494642020-05-01 07:42:23 -07004080 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07004081 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07004082 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4083 # or
4084 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4085 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07004086 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
4087 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004088 }</pre>
4089</div>
4090
4091<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07004092 <code class="details" id="setMonitoring">setMonitoring(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004093 <pre>Sets the monitoring service for a specific cluster.
4094
4095Args:
4096 name: string, The name (project, location, cluster) of the cluster to set monitoring.
Bu Sun Kim65020912020-05-20 12:08:20 -07004097Specified in the format `projects/*/locations/*/clusters/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07004098 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004099 The object takes the form of:
4100
4101{ # SetMonitoringServiceRequest sets the monitoring service of a cluster.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004102 &quot;clusterId&quot;: &quot;A String&quot;, # Deprecated. The name of the cluster to upgrade.
4103 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07004104 &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 -07004105 # Currently available options:
4106 #
Bu Sun Kim65020912020-05-20 12:08:20 -07004107 # * &quot;monitoring.googleapis.com/kubernetes&quot; - The Cloud Monitoring
Dan O'Mearadd494642020-05-01 07:42:23 -07004108 # service with a Kubernetes-native resource model
4109 # * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
4110 # longer available as of GKE 1.15).
4111 # * `none` - No metrics will be exported from the cluster.
4112 #
4113 # If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
4114 # used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
Bu Sun Kim65020912020-05-20 12:08:20 -07004115 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster) of the cluster to set monitoring.
4116 # Specified in the format `projects/*/locations/*/clusters/*`.
4117 &quot;projectId&quot;: &quot;A String&quot;, # Deprecated. The Google Developers Console [project ID or project
4118 # number](https://support.google.com/cloud/answer/6158840).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004119 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07004120 &quot;zone&quot;: &quot;A String&quot;, # Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07004121 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4122 # cluster resides. This field has been deprecated and replaced by the name
4123 # field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004124 }
4125
4126 x__xgafv: string, V1 error format.
4127 Allowed values
4128 1 - v1 error format
4129 2 - v2 error format
4130
4131Returns:
4132 An object of the form:
4133
4134 { # This operation resource represents operations that may have happened or are
4135 # happening on the cluster. All fields are output only.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004136 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
4137 { # StatusCondition describes why a cluster or a node pool has a certain status
4138 # (e.g., ERROR or DEGRADED).
4139 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
4140 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
4141 },
4142 ],
4143 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
4144 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
4145 # Unset for single-stage operations.
4146 &quot;stages&quot;: [ # Substages of an operation or a stage.
4147 # Object with schema name: OperationProgress
4148 ],
4149 &quot;metrics&quot;: [ # Progress metric bundle, for example:
4150 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
4151 # {name: &quot;nodes total&quot;, int_value: 32}]
4152 # or
4153 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
4154 # {name: &quot;progress scale&quot;, double_value: 1.0}]
4155 { # Progress metric is (string, int|float|string) pair.
4156 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
4157 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
4158 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
4159 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
4160 },
4161 ],
4162 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
4163 # Unset for single-stage operations.
4164 },
4165 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
4166 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4167 # operation is taking place. This field is deprecated, use location instead.
4168 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
4169 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
4170 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
4171 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
4172 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
4173 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Bu Sun Kim65020912020-05-20 12:08:20 -07004174 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
4175 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004176 { # StatusCondition describes why a cluster or a node pool has a certain status
4177 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07004178 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004179 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004180 },
4181 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07004182 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
Dan O'Mearadd494642020-05-01 07:42:23 -07004183 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07004184 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07004185 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4186 # or
4187 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4188 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07004189 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
4190 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004191 }</pre>
4192</div>
4193
4194<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07004195 <code class="details" id="setNetworkPolicy">setNetworkPolicy(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004196 <pre>Enables or disables Network Policy for a cluster.
4197
4198Args:
4199 name: string, The name (project, location, cluster id) of the cluster to set networking
Bu Sun Kim65020912020-05-20 12:08:20 -07004200policy. Specified in the format `projects/*/locations/*/clusters/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07004201 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004202 The object takes the form of:
4203
4204{ # SetNetworkPolicyRequest enables/disables network policy for a cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -07004205 &quot;clusterId&quot;: &quot;A String&quot;, # Deprecated. The name of the cluster.
4206 # This field has been deprecated and replaced by the name field.
4207 &quot;networkPolicy&quot;: { # Configuration options for the NetworkPolicy feature. # Required. Configuration options for the NetworkPolicy feature.
4208 # https://kubernetes.io/docs/concepts/services-networking/networkpolicies/
4209 &quot;provider&quot;: &quot;A String&quot;, # The selected network policy provider.
4210 &quot;enabled&quot;: True or False, # Whether network policy is enabled on the cluster.
4211 },
4212 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster id) of the cluster to set networking
4213 # policy. Specified in the format `projects/*/locations/*/clusters/*`.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004214 &quot;projectId&quot;: &quot;A String&quot;, # Deprecated. The Google Developers Console [project ID or project
4215 # number](https://developers.google.com/console/help/new/#projectnumber).
4216 # This field has been deprecated and replaced by the name field.
4217 &quot;zone&quot;: &quot;A String&quot;, # Deprecated. The name of the Google Compute Engine
4218 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4219 # cluster resides. This field has been deprecated and replaced by the name
4220 # field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004221 }
4222
4223 x__xgafv: string, V1 error format.
4224 Allowed values
4225 1 - v1 error format
4226 2 - v2 error format
4227
4228Returns:
4229 An object of the form:
4230
4231 { # This operation resource represents operations that may have happened or are
4232 # happening on the cluster. All fields are output only.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004233 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
4234 { # StatusCondition describes why a cluster or a node pool has a certain status
4235 # (e.g., ERROR or DEGRADED).
4236 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
4237 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
4238 },
4239 ],
4240 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
4241 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
4242 # Unset for single-stage operations.
4243 &quot;stages&quot;: [ # Substages of an operation or a stage.
4244 # Object with schema name: OperationProgress
4245 ],
4246 &quot;metrics&quot;: [ # Progress metric bundle, for example:
4247 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
4248 # {name: &quot;nodes total&quot;, int_value: 32}]
4249 # or
4250 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
4251 # {name: &quot;progress scale&quot;, double_value: 1.0}]
4252 { # Progress metric is (string, int|float|string) pair.
4253 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
4254 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
4255 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
4256 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
4257 },
4258 ],
4259 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
4260 # Unset for single-stage operations.
4261 },
4262 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
4263 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4264 # operation is taking place. This field is deprecated, use location instead.
4265 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
4266 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
4267 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
4268 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
4269 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
4270 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Bu Sun Kim65020912020-05-20 12:08:20 -07004271 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
4272 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004273 { # StatusCondition describes why a cluster or a node pool has a certain status
4274 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07004275 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004276 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004277 },
4278 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07004279 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
Dan O'Mearadd494642020-05-01 07:42:23 -07004280 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
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 Kim65020912020-05-20 12:08:20 -07004286 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
4287 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004288 }</pre>
4289</div>
4290
4291<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07004292 <code class="details" id="setResourceLabels">setResourceLabels(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004293 <pre>Sets labels on a cluster.
4294
4295Args:
4296 name: string, The name (project, location, cluster id) of the cluster to set labels.
Bu Sun Kim65020912020-05-20 12:08:20 -07004297Specified in the format `projects/*/locations/*/clusters/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07004298 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004299 The object takes the form of:
4300
4301{ # SetLabelsRequest sets the Google Cloud Platform labels on a Google Container
4302 # Engine cluster, which will in turn set them for Google Compute Engine
4303 # resources used by that cluster
Bu Sun Kim65020912020-05-20 12:08:20 -07004304 &quot;clusterId&quot;: &quot;A String&quot;, # Deprecated. The name of the cluster.
4305 # This field has been deprecated and replaced by the name field.
4306 &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 -07004307 # used to detect conflicts. The fingerprint is initially generated by
4308 # Kubernetes Engine and changes after every request to modify or update
4309 # labels. You must always provide an up-to-date fingerprint hash when
Dan O'Mearadd494642020-05-01 07:42:23 -07004310 # updating or changing labels. Make a &lt;code&gt;get()&lt;/code&gt; request to the
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004311 # resource to get the latest fingerprint.
Bu Sun Kim65020912020-05-20 12:08:20 -07004312 &quot;zone&quot;: &quot;A String&quot;, # Deprecated. The name of the Google Compute Engine
4313 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4314 # cluster resides. This field has been deprecated and replaced by the name
4315 # field.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004316 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster id) of the cluster to set labels.
4317 # Specified in the format `projects/*/locations/*/clusters/*`.
4318 &quot;resourceLabels&quot;: { # Required. The labels to set for that cluster.
4319 &quot;a_key&quot;: &quot;A String&quot;,
4320 },
4321 &quot;projectId&quot;: &quot;A String&quot;, # Deprecated. The Google Developers Console [project ID or project
4322 # number](https://developers.google.com/console/help/new/#projectnumber).
4323 # This field has been deprecated and replaced by the name field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004324 }
4325
4326 x__xgafv: string, V1 error format.
4327 Allowed values
4328 1 - v1 error format
4329 2 - v2 error format
4330
4331Returns:
4332 An object of the form:
4333
4334 { # This operation resource represents operations that may have happened or are
4335 # happening on the cluster. All fields are output only.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004336 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
4337 { # StatusCondition describes why a cluster or a node pool has a certain status
4338 # (e.g., ERROR or DEGRADED).
4339 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
4340 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
4341 },
4342 ],
4343 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
4344 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
4345 # Unset for single-stage operations.
4346 &quot;stages&quot;: [ # Substages of an operation or a stage.
4347 # Object with schema name: OperationProgress
4348 ],
4349 &quot;metrics&quot;: [ # Progress metric bundle, for example:
4350 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
4351 # {name: &quot;nodes total&quot;, int_value: 32}]
4352 # or
4353 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
4354 # {name: &quot;progress scale&quot;, double_value: 1.0}]
4355 { # Progress metric is (string, int|float|string) pair.
4356 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
4357 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
4358 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
4359 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
4360 },
4361 ],
4362 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
4363 # Unset for single-stage operations.
4364 },
4365 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
4366 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4367 # operation is taking place. This field is deprecated, use location instead.
4368 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
4369 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
4370 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
4371 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
4372 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
4373 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Bu Sun Kim65020912020-05-20 12:08:20 -07004374 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
4375 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004376 { # StatusCondition describes why a cluster or a node pool has a certain status
4377 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07004378 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004379 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004380 },
4381 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07004382 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
Dan O'Mearadd494642020-05-01 07:42:23 -07004383 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07004384 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07004385 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4386 # or
4387 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4388 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07004389 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
4390 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004391 }</pre>
4392</div>
4393
4394<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07004395 <code class="details" id="startIpRotation">startIpRotation(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004396 <pre>Starts master IP rotation.
4397
4398Args:
4399 name: string, The name (project, location, cluster id) of the cluster to start IP
Bu Sun Kim65020912020-05-20 12:08:20 -07004400rotation. Specified in the format `projects/*/locations/*/clusters/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07004401 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004402 The object takes the form of:
4403
4404{ # StartIPRotationRequest creates a new IP for the cluster and then performs
4405 # a node upgrade on each node pool to point to the new IP.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004406 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster id) of the cluster to start IP
4407 # rotation. Specified in the format `projects/*/locations/*/clusters/*`.
Bu Sun Kim65020912020-05-20 12:08:20 -07004408 &quot;projectId&quot;: &quot;A String&quot;, # Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004409 # number](https://developers.google.com/console/help/new/#projectnumber).
4410 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07004411 &quot;zone&quot;: &quot;A String&quot;, # Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07004412 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4413 # cluster resides. This field has been deprecated and replaced by the name
4414 # field.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004415 &quot;rotateCredentials&quot;: True or False, # Whether to rotate credentials during IP rotation.
Bu Sun Kim65020912020-05-20 12:08:20 -07004416 &quot;clusterId&quot;: &quot;A String&quot;, # Deprecated. The name of the cluster.
4417 # This field has been deprecated and replaced by the name field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004418 }
4419
4420 x__xgafv: string, V1 error format.
4421 Allowed values
4422 1 - v1 error format
4423 2 - v2 error format
4424
4425Returns:
4426 An object of the form:
4427
4428 { # This operation resource represents operations that may have happened or are
4429 # happening on the cluster. All fields are output only.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004430 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
4431 { # StatusCondition describes why a cluster or a node pool has a certain status
4432 # (e.g., ERROR or DEGRADED).
4433 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
4434 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
4435 },
4436 ],
4437 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
4438 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
4439 # Unset for single-stage operations.
4440 &quot;stages&quot;: [ # Substages of an operation or a stage.
4441 # Object with schema name: OperationProgress
4442 ],
4443 &quot;metrics&quot;: [ # Progress metric bundle, for example:
4444 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
4445 # {name: &quot;nodes total&quot;, int_value: 32}]
4446 # or
4447 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
4448 # {name: &quot;progress scale&quot;, double_value: 1.0}]
4449 { # Progress metric is (string, int|float|string) pair.
4450 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
4451 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
4452 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
4453 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
4454 },
4455 ],
4456 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
4457 # Unset for single-stage operations.
4458 },
4459 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
4460 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4461 # operation is taking place. This field is deprecated, use location instead.
4462 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
4463 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
4464 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
4465 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
4466 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
4467 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Bu Sun Kim65020912020-05-20 12:08:20 -07004468 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
4469 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004470 { # StatusCondition describes why a cluster or a node pool has a certain status
4471 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07004472 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004473 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004474 },
4475 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07004476 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
Dan O'Mearadd494642020-05-01 07:42:23 -07004477 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07004478 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07004479 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4480 # or
4481 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4482 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07004483 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
4484 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004485 }</pre>
4486</div>
4487
4488<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07004489 <code class="details" id="update">update(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004490 <pre>Updates the settings of a specific cluster.
4491
4492Args:
4493 name: string, The name (project, location, cluster) of the cluster to update.
Bu Sun Kim65020912020-05-20 12:08:20 -07004494Specified in the format `projects/*/locations/*/clusters/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07004495 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004496 The object takes the form of:
4497
4498{ # UpdateClusterRequest updates the settings of a cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -07004499 &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 -07004500 # be applied to a cluster with each request, so at most one field can be
4501 # provided.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004502 &quot;desiredImageType&quot;: &quot;A String&quot;, # The desired image type for the node pool.
4503 # NOTE: Set the &quot;desired_node_pool&quot; field as well.
4504 &quot;desiredWorkloadIdentityConfig&quot;: { # Configuration for the use of Kubernetes Service Accounts in GCP IAM # Configuration for Workload Identity.
4505 # policies.
4506 &quot;workloadPool&quot;: &quot;A String&quot;, # The workload pool to attach all Kubernetes service accounts to.
4507 },
4508 &quot;desiredNodePoolId&quot;: &quot;A String&quot;, # The node pool to be upgraded. This field is mandatory if
4509 # &quot;desired_node_version&quot;, &quot;desired_image_family&quot; or
4510 # &quot;desired_node_pool_autoscaling&quot; is specified and there is more than one
4511 # node pool on the cluster.
4512 &quot;desiredMasterVersion&quot;: &quot;A String&quot;, # The Kubernetes version to change the master to.
4513 #
4514 # Users may specify either explicit versions offered by
4515 # Kubernetes Engine or version aliases, which have the following behavior:
4516 #
4517 # - &quot;latest&quot;: picks the highest valid Kubernetes version
4518 # - &quot;1.X&quot;: picks the highest valid patch+gke.N patch in the 1.X version
4519 # - &quot;1.X.Y&quot;: picks the highest valid gke.N patch in the 1.X.Y version
4520 # - &quot;1.X.Y-gke.N&quot;: picks an explicit Kubernetes version
4521 # - &quot;-&quot;: picks the default Kubernetes version
4522 &quot;desiredShieldedNodes&quot;: { # Configuration of Shielded Nodes feature. # Configuration for Shielded Nodes.
4523 &quot;enabled&quot;: True or False, # Whether Shielded Nodes features are enabled on all nodes in this cluster.
4524 },
4525 &quot;desiredLoggingService&quot;: &quot;A String&quot;, # The logging service the cluster should use to write logs.
4526 # Currently available options:
4527 #
4528 # * `logging.googleapis.com/kubernetes` - The Cloud Logging
4529 # service with a Kubernetes-native resource model
4530 # * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
4531 # available as of GKE 1.15).
4532 # * `none` - no logs will be exported from the cluster.
4533 #
4534 # If left as an empty string,`logging.googleapis.com/kubernetes` will be
4535 # used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
4536 &quot;desiredVerticalPodAutoscaling&quot;: { # VerticalPodAutoscaling contains global, per-cluster information # Cluster-level Vertical Pod Autoscaling configuration.
4537 # required by Vertical Pod Autoscaler to automatically adjust
4538 # the resources of pods controlled by it.
4539 &quot;enabled&quot;: True or False, # Enables vertical pod autoscaling.
4540 },
4541 &quot;desiredBinaryAuthorization&quot;: { # Configuration for Binary Authorization. # The desired configuration options for the Binary Authorization feature.
4542 &quot;enabled&quot;: True or False, # Enable Binary Authorization for this cluster. If enabled, all container
4543 # images will be validated by Binary Authorization.
4544 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004545 &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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004546 # cluster, enabling additional functionality.
Bu Sun Kim65020912020-05-20 12:08:20 -07004547 &quot;networkPolicyConfig&quot;: { # Configuration for NetworkPolicy. This only tracks whether the addon # Configuration for NetworkPolicy. This only tracks whether the addon
4548 # is enabled or not on the Master, it does not track whether network policy
4549 # is enabled for the nodes.
4550 # is enabled or not on the Master, it does not track whether network policy
4551 # is enabled for the nodes.
4552 &quot;disabled&quot;: True or False, # Whether NetworkPolicy is enabled for this cluster.
4553 },
4554 &quot;cloudRunConfig&quot;: { # Configuration options for the Cloud Run feature. # Configuration for the Cloud Run addon, which allows the user to use a
4555 # managed Knative service.
4556 &quot;disabled&quot;: True or False, # Whether Cloud Run addon is enabled for this cluster.
4557 },
4558 &quot;horizontalPodAutoscaling&quot;: { # Configuration options for the horizontal pod autoscaling feature, which # Configuration for the horizontal pod autoscaling feature, which
4559 # increases or decreases the number of replica pods a replication controller
4560 # has based on the resource usage of the existing pods.
4561 # increases or decreases the number of replica pods a replication controller
4562 # has based on the resource usage of the existing pods.
4563 &quot;disabled&quot;: True or False, # Whether the Horizontal Pod Autoscaling feature is enabled in the cluster.
4564 # When enabled, it ensures that metrics are collected into Stackdriver
4565 # Monitoring.
4566 },
4567 &quot;httpLoadBalancing&quot;: { # Configuration options for the HTTP (L7) load balancing controller addon, # Configuration for the HTTP (L7) load balancing controller addon, which
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004568 # makes it easy to set up HTTP load balancers for services in a cluster.
4569 # which makes it easy to set up HTTP load balancers for services in a cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -07004570 &quot;disabled&quot;: True or False, # Whether the HTTP Load Balancing controller is enabled in the cluster.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004571 # When enabled, it runs a small pod in the cluster that manages the load
4572 # balancers.
4573 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004574 &quot;kubernetesDashboard&quot;: { # Configuration for the Kubernetes Dashboard. # Configuration for the Kubernetes Dashboard.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004575 # This addon is deprecated, and will be disabled in 1.15. It is recommended
4576 # to use the Cloud Console to manage and monitor your Kubernetes clusters,
4577 # workloads and applications. For more information, see:
4578 # https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
Bu Sun Kim65020912020-05-20 12:08:20 -07004579 &quot;disabled&quot;: True or False, # Whether the Kubernetes Dashboard is enabled for this cluster.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004580 },
4581 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004582 &quot;desiredNodeVersion&quot;: &quot;A String&quot;, # The Kubernetes version to change the nodes to (typically an
4583 # upgrade).
4584 #
4585 # Users may specify either explicit versions offered by
4586 # Kubernetes Engine or version aliases, which have the following behavior:
4587 #
4588 # - &quot;latest&quot;: picks the highest valid Kubernetes version
4589 # - &quot;1.X&quot;: picks the highest valid patch+gke.N patch in the 1.X version
4590 # - &quot;1.X.Y&quot;: picks the highest valid gke.N patch in the 1.X.Y version
4591 # - &quot;1.X.Y-gke.N&quot;: picks an explicit Kubernetes version
4592 # - &quot;-&quot;: picks the Kubernetes master version
4593 &quot;desiredIntraNodeVisibilityConfig&quot;: { # IntraNodeVisibilityConfig contains the desired config of the intra-node # The desired config of Intra-node visibility.
4594 # visibility on this cluster.
4595 &quot;enabled&quot;: True or False, # Enables intra node visibility for this cluster.
4596 },
4597 &quot;desiredClusterAutoscaling&quot;: { # ClusterAutoscaling contains global, per-cluster information # Cluster-level autoscaling configuration.
Dan O'Mearadd494642020-05-01 07:42:23 -07004598 # required by Cluster Autoscaler to automatically adjust
4599 # the size of the cluster and create/delete
4600 # node pools based on the current needs.
Bu Sun Kim65020912020-05-20 12:08:20 -07004601 &quot;autoprovisioningLocations&quot;: [ # The list of Google Compute Engine
4602 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
4603 # NodePool&#x27;s nodes can be created by NAP.
4604 &quot;A String&quot;,
4605 ],
4606 &quot;resourceLimits&quot;: [ # Contains global constraints regarding minimum and maximum
4607 # amount of resources in the cluster.
4608 { # Contains information about amount of some resource in the cluster.
4609 # For memory, value should be in GB.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004610 &quot;minimum&quot;: &quot;A String&quot;, # Minimum amount of the resource in the cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -07004611 &quot;maximum&quot;: &quot;A String&quot;, # Maximum amount of the resource in the cluster.
4612 &quot;resourceType&quot;: &quot;A String&quot;, # Resource name &quot;cpu&quot;, &quot;memory&quot; or gpu-specific string.
Bu Sun Kim65020912020-05-20 12:08:20 -07004613 },
4614 ],
4615 &quot;enableNodeAutoprovisioning&quot;: True or False, # Enables automatic node pool creation and deletion.
4616 &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 -07004617 # created by NAP.
4618 # by NAP.
Bu Sun Kim65020912020-05-20 12:08:20 -07004619 &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 -07004620 # node pool.
Bu Sun Kim65020912020-05-20 12:08:20 -07004621 &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 -07004622 # the Auto Upgrades will proceed.
Bu Sun Kim65020912020-05-20 12:08:20 -07004623 &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 -07004624 # with the approximate start time for the upgrades, in
4625 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004626 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
4627 # with the description of the upgrade.
Dan O'Mearadd494642020-05-01 07:42:23 -07004628 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004629 &quot;autoRepair&quot;: True or False, # A flag that specifies whether the node auto-repair is enabled for the node
4630 # pool. If enabled, the nodes in this node pool will be monitored and, if
4631 # they fail health checks too many times, an automatic repair action will be
4632 # triggered.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004633 &quot;autoUpgrade&quot;: True or False, # A flag that specifies whether node auto-upgrade is enabled for the node
4634 # pool. If enabled, node auto-upgrade helps keep the nodes in your node pool
4635 # up to date with the latest release version of Kubernetes.
Dan O'Mearadd494642020-05-01 07:42:23 -07004636 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004637 &quot;oauthScopes&quot;: [ # Scopes that are used by NAP when creating node pools. If oauth_scopes are
4638 # specified, service_account should be empty.
4639 &quot;A String&quot;,
4640 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07004641 &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 -07004642 # disruption caused by an upgrade.
4643 #
4644 # maxUnavailable controls the number of nodes that can be simultaneously
4645 # unavailable.
4646 #
4647 # maxSurge controls the number of additional nodes that can be added to the
4648 # node pool temporarily for the time of the upgrade to increase the number of
4649 # available nodes.
4650 #
4651 # (maxUnavailable + maxSurge) determines the level of parallelism (how many
4652 # nodes are being upgraded at the same time).
4653 #
4654 # Note: upgrades inevitably introduce some disruption since workloads need to
4655 # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
4656 # this holds true. (Disruption stays within the limits of
4657 # PodDisruptionBudget, if it is configured.)
4658 #
4659 # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
4660 # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
4661 # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
4662 # down 3 old (not yet upgraded) nodes at the same time. This ensures that
4663 # there are always at least 4 nodes available.
Bu Sun Kim65020912020-05-20 12:08:20 -07004664 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during
Dan O'Mearadd494642020-05-01 07:42:23 -07004665 # the upgrade process. A node is considered available if its status is
4666 # Ready.
Bu Sun Kim65020912020-05-20 12:08:20 -07004667 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size
4668 # of the node pool during the upgrade process.
Dan O'Mearadd494642020-05-01 07:42:23 -07004669 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004670 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs. If
4671 # service_account is specified, scopes should be empty.
Dan O'Mearadd494642020-05-01 07:42:23 -07004672 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004673 },
4674 &quot;desiredDatabaseEncryption&quot;: { # Configuration of etcd encryption. # Configuration of etcd encryption.
4675 &quot;keyName&quot;: &quot;A String&quot;, # Name of CloudKMS key to use for the encryption of secrets in etcd.
4676 # Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key
4677 &quot;state&quot;: &quot;A String&quot;, # Denotes the state of etcd encryption.
4678 },
4679 &quot;desiredMasterAuthorizedNetworksConfig&quot;: { # Configuration options for the master authorized networks feature. Enabled # The desired configuration options for master authorized networks feature.
4680 # master authorized networks will disallow all external traffic to access
4681 # Kubernetes master through HTTPS except traffic from the given CIDR blocks,
4682 # Google Compute Engine Public IPs and Google Prod IPs.
Bu Sun Kim65020912020-05-20 12:08:20 -07004683 &quot;cidrBlocks&quot;: [ # cidr_blocks define up to 50 external networks that could access
4684 # Kubernetes master through HTTPS.
4685 { # CidrBlock contains an optional name and one CIDR block.
4686 &quot;displayName&quot;: &quot;A String&quot;, # display_name is an optional field for users to identify CIDR blocks.
4687 &quot;cidrBlock&quot;: &quot;A String&quot;, # cidr_block must be specified in CIDR notation.
Dan O'Mearadd494642020-05-01 07:42:23 -07004688 },
4689 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004690 &quot;enabled&quot;: True or False, # Whether or not master authorized networks is enabled.
Dan O'Mearadd494642020-05-01 07:42:23 -07004691 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004692 &quot;desiredResourceUsageExportConfig&quot;: { # Configuration for exporting cluster resource usages. # The desired configuration for exporting resource usage.
4693 &quot;enableNetworkEgressMetering&quot;: True or False, # Whether to enable network egress metering for this cluster. If enabled, a
4694 # daemonset will be created in the cluster to meter network egress traffic.
4695 &quot;consumptionMeteringConfig&quot;: { # Parameters for controlling consumption metering. # Configuration to enable resource consumption metering.
4696 &quot;enabled&quot;: True or False, # Whether to enable consumption metering for this cluster. If enabled, a
4697 # second BigQuery table will be created to hold resource consumption
4698 # records.
4699 },
4700 &quot;bigqueryDestination&quot;: { # Parameters for using BigQuery as the destination of resource usage export. # Configuration to use BigQuery as usage export destination.
4701 &quot;datasetId&quot;: &quot;A String&quot;, # The ID of a BigQuery Dataset.
4702 },
Dan O'Mearadd494642020-05-01 07:42:23 -07004703 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004704 &quot;desiredNodePoolAutoscaling&quot;: { # NodePoolAutoscaling contains information required by cluster autoscaler to # Autoscaler configuration for the node pool specified in
4705 # desired_node_pool_id. If there is only one pool in the
4706 # cluster and desired_node_pool_id is not provided then
4707 # the change applies to that single node pool.
4708 # adjust the size of the node pool to the current cluster usage.
Bu Sun Kim65020912020-05-20 12:08:20 -07004709 &quot;maxNodeCount&quot;: 42, # Maximum number of nodes in the NodePool. Must be &gt;= min_node_count. There
4710 # has to enough quota to scale up the cluster.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004711 &quot;autoprovisioned&quot;: True or False, # Can this node pool be deleted automatically.
Bu Sun Kim65020912020-05-20 12:08:20 -07004712 &quot;minNodeCount&quot;: 42, # Minimum number of nodes in the NodePool. Must be &gt;= 1 and &lt;=
4713 # max_node_count.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004714 &quot;enabled&quot;: True or False, # Is autoscaling enabled for this node pool.
Bu Sun Kim65020912020-05-20 12:08:20 -07004715 },
4716 &quot;desiredLocations&quot;: [ # The desired list of Google Compute Engine
4717 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
4718 # cluster&#x27;s nodes should be located. Changing the locations a cluster is in
4719 # will result in nodes being either created or removed from the cluster,
4720 # depending on whether locations are being added or removed.
4721 #
4722 # This list must always include the cluster&#x27;s primary zone.
4723 &quot;A String&quot;,
4724 ],
4725 &quot;desiredMonitoringService&quot;: &quot;A String&quot;, # The monitoring service the cluster should use to write metrics.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004726 # Currently available options:
4727 #
Bu Sun Kim65020912020-05-20 12:08:20 -07004728 # * &quot;monitoring.googleapis.com/kubernetes&quot; - The Cloud Monitoring
Dan O'Mearadd494642020-05-01 07:42:23 -07004729 # service with a Kubernetes-native resource model
4730 # * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
4731 # longer available as of GKE 1.15).
4732 # * `none` - No metrics will be exported from the cluster.
4733 #
4734 # If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
4735 # used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004736 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004737 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster) of the cluster to update.
4738 # Specified in the format `projects/*/locations/*/clusters/*`.
4739 &quot;projectId&quot;: &quot;A String&quot;, # Deprecated. The Google Developers Console [project ID or project
4740 # number](https://support.google.com/cloud/answer/6158840).
4741 # This field has been deprecated and replaced by the name field.
4742 &quot;zone&quot;: &quot;A String&quot;, # Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07004743 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4744 # cluster resides. This field has been deprecated and replaced by the name
4745 # field.
Bu Sun Kim65020912020-05-20 12:08:20 -07004746 &quot;clusterId&quot;: &quot;A String&quot;, # Deprecated. The name of the cluster to upgrade.
4747 # This field has been deprecated and replaced by the name field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004748 }
4749
4750 x__xgafv: string, V1 error format.
4751 Allowed values
4752 1 - v1 error format
4753 2 - v2 error format
4754
4755Returns:
4756 An object of the form:
4757
4758 { # This operation resource represents operations that may have happened or are
4759 # happening on the cluster. All fields are output only.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004760 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
4761 { # StatusCondition describes why a cluster or a node pool has a certain status
4762 # (e.g., ERROR or DEGRADED).
4763 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
4764 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
4765 },
4766 ],
4767 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
4768 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
4769 # Unset for single-stage operations.
4770 &quot;stages&quot;: [ # Substages of an operation or a stage.
4771 # Object with schema name: OperationProgress
4772 ],
4773 &quot;metrics&quot;: [ # Progress metric bundle, for example:
4774 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
4775 # {name: &quot;nodes total&quot;, int_value: 32}]
4776 # or
4777 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
4778 # {name: &quot;progress scale&quot;, double_value: 1.0}]
4779 { # Progress metric is (string, int|float|string) pair.
4780 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
4781 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
4782 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
4783 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
4784 },
4785 ],
4786 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
4787 # Unset for single-stage operations.
4788 },
4789 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
4790 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4791 # operation is taking place. This field is deprecated, use location instead.
4792 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
4793 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
4794 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
4795 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
4796 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
4797 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Bu Sun Kim65020912020-05-20 12:08:20 -07004798 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
4799 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004800 { # StatusCondition describes why a cluster or a node pool has a certain status
4801 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07004802 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004803 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004804 },
4805 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07004806 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
Dan O'Mearadd494642020-05-01 07:42:23 -07004807 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07004808 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07004809 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4810 # or
4811 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4812 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07004813 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
4814 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004815 }</pre>
4816</div>
4817
4818<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07004819 <code class="details" id="updateMaster">updateMaster(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004820 <pre>Updates the master for a specific cluster.
4821
4822Args:
4823 name: string, The name (project, location, cluster) of the cluster to update.
Bu Sun Kim65020912020-05-20 12:08:20 -07004824Specified in the format `projects/*/locations/*/clusters/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07004825 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004826 The object takes the form of:
4827
4828{ # UpdateMasterRequest updates the master of the cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -07004829 &quot;projectId&quot;: &quot;A String&quot;, # Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004830 # number](https://support.google.com/cloud/answer/6158840).
4831 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07004832 &quot;masterVersion&quot;: &quot;A String&quot;, # Required. The Kubernetes version to change the master to.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004833 #
4834 # Users may specify either explicit versions offered by Kubernetes Engine or
4835 # version aliases, which have the following behavior:
4836 #
Bu Sun Kim65020912020-05-20 12:08:20 -07004837 # - &quot;latest&quot;: picks the highest valid Kubernetes version
4838 # - &quot;1.X&quot;: picks the highest valid patch+gke.N patch in the 1.X version
4839 # - &quot;1.X.Y&quot;: picks the highest valid gke.N patch in the 1.X.Y version
4840 # - &quot;1.X.Y-gke.N&quot;: picks an explicit Kubernetes version
4841 # - &quot;-&quot;: picks the default Kubernetes version
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004842 &quot;zone&quot;: &quot;A String&quot;, # Deprecated. The name of the Google Compute Engine
4843 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4844 # cluster resides. This field has been deprecated and replaced by the name
4845 # field.
Bu Sun Kim65020912020-05-20 12:08:20 -07004846 &quot;clusterId&quot;: &quot;A String&quot;, # Deprecated. The name of the cluster to upgrade.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004847 # This field has been deprecated and replaced by the name field.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004848 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster) of the cluster to update.
4849 # Specified in the format `projects/*/locations/*/clusters/*`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004850 }
4851
4852 x__xgafv: string, V1 error format.
4853 Allowed values
4854 1 - v1 error format
4855 2 - v2 error format
4856
4857Returns:
4858 An object of the form:
4859
4860 { # This operation resource represents operations that may have happened or are
4861 # happening on the cluster. All fields are output only.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004862 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
4863 { # StatusCondition describes why a cluster or a node pool has a certain status
4864 # (e.g., ERROR or DEGRADED).
4865 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
4866 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
4867 },
4868 ],
4869 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
4870 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
4871 # Unset for single-stage operations.
4872 &quot;stages&quot;: [ # Substages of an operation or a stage.
4873 # Object with schema name: OperationProgress
4874 ],
4875 &quot;metrics&quot;: [ # Progress metric bundle, for example:
4876 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
4877 # {name: &quot;nodes total&quot;, int_value: 32}]
4878 # or
4879 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
4880 # {name: &quot;progress scale&quot;, double_value: 1.0}]
4881 { # Progress metric is (string, int|float|string) pair.
4882 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
4883 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
4884 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
4885 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
4886 },
4887 ],
4888 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
4889 # Unset for single-stage operations.
4890 },
4891 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
4892 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4893 # operation is taking place. This field is deprecated, use location instead.
4894 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
4895 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
4896 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
4897 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
4898 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
4899 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Bu Sun Kim65020912020-05-20 12:08:20 -07004900 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
4901 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004902 { # StatusCondition describes why a cluster or a node pool has a certain status
4903 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07004904 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004905 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004906 },
4907 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07004908 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
Dan O'Mearadd494642020-05-01 07:42:23 -07004909 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07004910 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07004911 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4912 # or
4913 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4914 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07004915 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
4916 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004917 }</pre>
4918</div>
4919
4920</body></html>