blob: 58bd5ab9085e8bb6e1cf1d483c318f277f9e83b4 [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_v1beta1.html">Kubernetes Engine API</a> . <a href="container_v1beta1.projects.html">projects</a> . <a href="container_v1beta1.projects.zones.html">zones</a> . <a href="container_v1beta1.projects.zones.clusters.html">clusters</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="container_v1beta1.projects.zones.clusters.nodePools.html">nodePools()</a></code>
79</p>
80<p class="firstline">Returns the nodePools Resource.</p>
81
82<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070083 <code><a href="#addons">addons(projectId, zone, clusterId, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070084<p class="firstline">Sets the addons for a specific cluster.</p>
85<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070086 <code><a href="#completeIpRotation">completeIpRotation(projectId, zone, clusterId, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070087<p class="firstline">Completes master IP rotation.</p>
88<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070089 <code><a href="#create">create(projectId, zone, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070090<p class="firstline">Creates a cluster, consisting of the specified number and type of Google</p>
91<p class="toc_element">
92 <code><a href="#delete">delete(projectId, zone, clusterId, name=None, x__xgafv=None)</a></code></p>
93<p class="firstline">Deletes the cluster, including the Kubernetes endpoint and all worker</p>
94<p class="toc_element">
95 <code><a href="#get">get(projectId, zone, clusterId, name=None, x__xgafv=None)</a></code></p>
96<p class="firstline">Gets the details for a specific cluster.</p>
97<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070098 <code><a href="#legacyAbac">legacyAbac(projectId, zone, clusterId, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070099<p class="firstline">Enables or disables the ABAC authorization mechanism on a cluster.</p>
100<p class="toc_element">
101 <code><a href="#list">list(projectId, zone, parent=None, x__xgafv=None)</a></code></p>
102<p class="firstline">Lists all clusters owned by a project in either the specified zone or all</p>
103<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700104 <code><a href="#locations">locations(projectId, zone, clusterId, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700105<p class="firstline">Sets the locations for a specific cluster.</p>
106<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700107 <code><a href="#logging">logging(projectId, zone, clusterId, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700108<p class="firstline">Sets the logging service for a specific cluster.</p>
109<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700110 <code><a href="#master">master(projectId, zone, clusterId, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700111<p class="firstline">Updates the master for a specific cluster.</p>
112<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700113 <code><a href="#monitoring">monitoring(projectId, zone, clusterId, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700114<p class="firstline">Sets the monitoring service for a specific cluster.</p>
115<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700116 <code><a href="#resourceLabels">resourceLabels(projectId, zone, clusterId, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700117<p class="firstline">Sets labels on a cluster.</p>
118<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700119 <code><a href="#setMaintenancePolicy">setMaintenancePolicy(projectId, zone, clusterId, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700120<p class="firstline">Sets the maintenance policy for a cluster.</p>
121<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700122 <code><a href="#setMasterAuth">setMasterAuth(projectId, zone, clusterId, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700123<p class="firstline">Sets master auth materials. Currently supports changing the admin password</p>
124<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700125 <code><a href="#setNetworkPolicy">setNetworkPolicy(projectId, zone, clusterId, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700126<p class="firstline">Enables or disables Network Policy for a cluster.</p>
127<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700128 <code><a href="#startIpRotation">startIpRotation(projectId, zone, clusterId, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700129<p class="firstline">Starts master IP rotation.</p>
130<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700131 <code><a href="#update">update(projectId, zone, clusterId, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700132<p class="firstline">Updates the settings for a specific cluster.</p>
133<h3>Method Details</h3>
134<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700135 <code class="details" id="addons">addons(projectId, zone, clusterId, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700136 <pre>Sets the addons for a specific cluster.
137
138Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700139 projectId: string, Required. Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700140number](https://support.google.com/cloud/answer/6158840).
141This field has been deprecated and replaced by the name field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700142 zone: string, Required. Deprecated. The name of the Google Compute Engine
143[zone](https://cloud.google.com/compute/docs/zones#available) in which the
144cluster resides. This field has been deprecated and replaced by the name
145field. (required)
146 clusterId: string, Required. Deprecated. The name of the cluster to upgrade.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700147This field has been deprecated and replaced by the name field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700148 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700149 The object takes the form of:
150
151{ # SetAddonsRequest sets the addons associated with the cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -0700152 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster) of the cluster to set addons.
153 # Specified in the format `projects/*/locations/*/clusters/*`.
154 &quot;projectId&quot;: &quot;A String&quot;, # Required. Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700155 # number](https://support.google.com/cloud/answer/6158840).
156 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -0700157 &quot;zone&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the Google Compute Engine
158 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
159 # cluster resides. This field has been deprecated and replaced by the name
160 # field.
161 &quot;clusterId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the cluster to upgrade.
162 # This field has been deprecated and replaced by the name field.
163 &quot;addonsConfig&quot;: { # Configuration for the addons that can be automatically spun up in the # Required. The desired configurations for the various addons available to run in the
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700164 # cluster.
165 # cluster, enabling additional functionality.
Bu Sun Kim65020912020-05-20 12:08:20 -0700166 &quot;networkPolicyConfig&quot;: { # Configuration for NetworkPolicy. This only tracks whether the addon # Configuration for NetworkPolicy. This only tracks whether the addon
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700167 # is enabled or not on the Master, it does not track whether network policy
168 # is enabled for the nodes.
169 # is enabled or not on the Master, it does not track whether network policy
170 # is enabled for the nodes.
Bu Sun Kim65020912020-05-20 12:08:20 -0700171 &quot;disabled&quot;: True or False, # Whether NetworkPolicy is enabled for this cluster.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700172 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700173 &quot;configConnectorConfig&quot;: { # Configuration options for the Config Connector add-on. # Configuration for the ConfigConnector add-on, a Kubernetes
174 # extension to manage hosted GCP services through the Kubernetes API
175 &quot;enabled&quot;: True or False, # Whether Cloud Connector is enabled for this cluster.
176 },
177 &quot;cloudRunConfig&quot;: { # Configuration options for the Cloud Run feature. # Configuration for the Cloud Run addon. The `IstioConfig` addon must be
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700178 # enabled in order to enable Cloud Run addon. This option can only be enabled
179 # at cluster creation time.
Bu Sun Kim65020912020-05-20 12:08:20 -0700180 &quot;disabled&quot;: True or False, # Whether Cloud Run addon is enabled for this cluster.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700181 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700182 &quot;horizontalPodAutoscaling&quot;: { # Configuration options for the horizontal pod autoscaling feature, which # Configuration for the horizontal pod autoscaling feature, which
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700183 # increases or decreases the number of replica pods a replication controller
184 # has based on the resource usage of the existing pods.
185 # increases or decreases the number of replica pods a replication controller
186 # has based on the resource usage of the existing pods.
Bu Sun Kim65020912020-05-20 12:08:20 -0700187 &quot;disabled&quot;: True or False, # Whether the Horizontal Pod Autoscaling feature is enabled in the cluster.
Dan O'Mearadd494642020-05-01 07:42:23 -0700188 # When enabled, it ensures that metrics are collected into Stackdriver
189 # Monitoring.
190 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700191 &quot;httpLoadBalancing&quot;: { # Configuration options for the HTTP (L7) load balancing controller addon, # Configuration for the HTTP (L7) load balancing controller addon, which
192 # makes it easy to set up HTTP load balancers for services in a cluster.
193 # which makes it easy to set up HTTP load balancers for services in a cluster.
194 &quot;disabled&quot;: True or False, # Whether the HTTP Load Balancing controller is enabled in the cluster.
195 # When enabled, it runs a small pod in the cluster that manages the load
196 # balancers.
Dan O'Mearadd494642020-05-01 07:42:23 -0700197 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700198 &quot;kubernetesDashboard&quot;: { # Configuration for the Kubernetes Dashboard. # Configuration for the Kubernetes Dashboard.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700199 # This addon is deprecated, and will be disabled in 1.15. It is recommended
200 # to use the Cloud Console to manage and monitor your Kubernetes clusters,
201 # workloads and applications. For more information, see:
202 # https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
Bu Sun Kim65020912020-05-20 12:08:20 -0700203 &quot;disabled&quot;: True or False, # Whether the Kubernetes Dashboard is enabled for this cluster.
204 },
205 &quot;dnsCacheConfig&quot;: { # Configuration for NodeLocal DNSCache # Configuration for NodeLocalDNS, a dns cache running on cluster nodes
206 &quot;enabled&quot;: True or False, # Whether NodeLocal DNSCache is enabled for this cluster.
207 },
208 &quot;kalmConfig&quot;: { # Configuration options for the KALM addon. # Configuration for the KALM addon, which manages the lifecycle of k8s
209 # applications.
210 &quot;enabled&quot;: True or False, # Whether KALM is enabled for this cluster.
211 },
212 &quot;gcePersistentDiskCsiDriverConfig&quot;: { # Configuration for the Compute Engine PD CSI driver. This option can only be # Configuration for the Compute Engine Persistent Disk CSI driver.
213 # enabled at cluster creation time.
214 &quot;enabled&quot;: True or False, # Whether the Compute Engine PD CSI driver is enabled for this cluster.
215 },
216 &quot;istioConfig&quot;: { # Configuration options for Istio addon. # Configuration for Istio, an open platform to connect, manage, and secure
217 # microservices.
218 &quot;disabled&quot;: True or False, # Whether Istio is enabled for this cluster.
219 &quot;auth&quot;: &quot;A String&quot;, # The specified Istio auth mode, either none, or mutual TLS.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700220 },
221 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700222 }
223
224 x__xgafv: string, V1 error format.
225 Allowed values
226 1 - v1 error format
227 2 - v2 error format
228
229Returns:
230 An object of the form:
231
232 { # This operation resource represents operations that may have happened or are
233 # happening on the cluster. All fields are output only.
Bu Sun Kim65020912020-05-20 12:08:20 -0700234 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700235 { # StatusCondition describes why a cluster or a node pool has a certain status
236 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -0700237 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
238 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700239 },
240 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700241 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -0700242 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
243 # or
244 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
245 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -0700246 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
247 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
248 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
249 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
250 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
251 { # StatusCondition describes why a cluster or a node pool has a certain status
252 # (e.g., ERROR or DEGRADED).
253 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
254 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
255 },
256 ],
257 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
258 &quot;stages&quot;: [ # Substages of an operation or a stage.
259 # Object with schema name: OperationProgress
260 ],
261 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
262 # Unset for single-stage operations.
263 &quot;metrics&quot;: [ # Progress metric bundle, for example:
264 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
265 # {name: &quot;nodes total&quot;, int_value: 32}]
266 # or
267 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
268 # {name: &quot;progress scale&quot;, double_value: 1.0}]
269 { # Progress metric is (string, int|float|string) pair.
270 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
271 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
272 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
273 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
274 },
275 ],
276 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
277 # Unset for single-stage operations.
278 },
279 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
280 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
281 # operation is taking place. This field is deprecated, use location instead.
282 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
283 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
284 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
285 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
286 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
287 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
288 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700289 }</pre>
290</div>
291
292<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700293 <code class="details" id="completeIpRotation">completeIpRotation(projectId, zone, clusterId, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700294 <pre>Completes master IP rotation.
295
296Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700297 projectId: string, Required. Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700298number](https://developers.google.com/console/help/new/#projectnumber).
299This field has been deprecated and replaced by the name field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700300 zone: string, Required. Deprecated. The name of the Google Compute Engine
301[zone](https://cloud.google.com/compute/docs/zones#available) in which the
302cluster resides. This field has been deprecated and replaced by the name
303field. (required)
304 clusterId: string, Required. Deprecated. The name of the cluster.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700305This field has been deprecated and replaced by the name field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700306 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700307 The object takes the form of:
308
309{ # CompleteIPRotationRequest moves the cluster master back into single-IP mode.
Bu Sun Kim65020912020-05-20 12:08:20 -0700310 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster id) of the cluster to complete IP
311 # rotation. Specified in the format `projects/*/locations/*/clusters/*`.
312 &quot;projectId&quot;: &quot;A String&quot;, # Required. Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700313 # number](https://developers.google.com/console/help/new/#projectnumber).
314 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -0700315 &quot;zone&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -0700316 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
317 # cluster resides. This field has been deprecated and replaced by the name
318 # field.
Bu Sun Kim65020912020-05-20 12:08:20 -0700319 &quot;clusterId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the cluster.
320 # This field has been deprecated and replaced by the name field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700321 }
322
323 x__xgafv: string, V1 error format.
324 Allowed values
325 1 - v1 error format
326 2 - v2 error format
327
328Returns:
329 An object of the form:
330
331 { # This operation resource represents operations that may have happened or are
332 # happening on the cluster. All fields are output only.
Bu Sun Kim65020912020-05-20 12:08:20 -0700333 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700334 { # StatusCondition describes why a cluster or a node pool has a certain status
335 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -0700336 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
337 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700338 },
339 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700340 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -0700341 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
342 # or
343 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
344 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -0700345 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
346 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
347 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
348 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
349 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
350 { # StatusCondition describes why a cluster or a node pool has a certain status
351 # (e.g., ERROR or DEGRADED).
352 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
353 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
354 },
355 ],
356 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
357 &quot;stages&quot;: [ # Substages of an operation or a stage.
358 # Object with schema name: OperationProgress
359 ],
360 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
361 # Unset for single-stage operations.
362 &quot;metrics&quot;: [ # Progress metric bundle, for example:
363 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
364 # {name: &quot;nodes total&quot;, int_value: 32}]
365 # or
366 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
367 # {name: &quot;progress scale&quot;, double_value: 1.0}]
368 { # Progress metric is (string, int|float|string) pair.
369 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
370 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
371 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
372 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
373 },
374 ],
375 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
376 # Unset for single-stage operations.
377 },
378 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
379 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
380 # operation is taking place. This field is deprecated, use location instead.
381 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
382 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
383 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
384 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
385 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
386 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
387 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700388 }</pre>
389</div>
390
391<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700392 <code class="details" id="create">create(projectId, zone, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700393 <pre>Creates a cluster, consisting of the specified number and type of Google
394Compute Engine instances.
395
Bu Sun Kim65020912020-05-20 12:08:20 -0700396By default, the cluster is created in the project&#x27;s
Dan O'Mearadd494642020-05-01 07:42:23 -0700397[default
398network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700399
400One firewall is added for the cluster. After cluster creation,
401the Kubelet creates routes for each node to allow the containers
402on that node to communicate with all other instances in the
403cluster.
404
Bu Sun Kim65020912020-05-20 12:08:20 -0700405Finally, an entry is added to the project&#x27;s global metadata indicating
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700406which CIDR range the cluster is using.
407
408Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700409 projectId: string, Required. Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700410number](https://support.google.com/cloud/answer/6158840).
411This field has been deprecated and replaced by the parent field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700412 zone: string, Required. Deprecated. The name of the Google Compute Engine
413[zone](https://cloud.google.com/compute/docs/zones#available) in which the
414cluster resides. This field has been deprecated and replaced by the parent
415field. (required)
416 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700417 The object takes the form of:
418
419{ # CreateClusterRequest creates a cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -0700420 &quot;projectId&quot;: &quot;A String&quot;, # Required. Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700421 # number](https://support.google.com/cloud/answer/6158840).
422 # This field has been deprecated and replaced by the parent field.
Bu Sun Kim65020912020-05-20 12:08:20 -0700423 &quot;cluster&quot;: { # A Google Kubernetes Engine cluster. # Required. A [cluster
Dan O'Mearadd494642020-05-01 07:42:23 -0700424 # resource](https://cloud.google.com/container-engine/reference/rest/v1beta1/projects.zones.clusters)
Bu Sun Kim65020912020-05-20 12:08:20 -0700425 &quot;defaultMaxPodsConstraint&quot;: { # Constraints applied to pods. # The default constraint on the maximum number of pods that can be run
426 # simultaneously on a node in the node pool of this cluster. Only honored
427 # if cluster created with IP Alias support.
428 &quot;maxPodsPerNode&quot;: &quot;A String&quot;, # Constraint enforced on the max num of pods per node.
429 },
430 &quot;network&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
431 # [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
432 # to which the cluster is connected. If left unspecified, the `default`
433 # network will be used. On output this shows the network ID instead of the
434 # name.
435 &quot;labelFingerprint&quot;: &quot;A String&quot;, # The fingerprint of the set of labels for this cluster.
436 &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 -0700437 # containers. This is provisioned from within the `container_ipv4_cidr`
438 # range. This field will only be set when cluster is in route-based network
439 # mode.
Bu Sun Kim65020912020-05-20 12:08:20 -0700440 &quot;masterAuthorizedNetworksConfig&quot;: { # Configuration options for the master authorized networks feature. Enabled # The configuration options for master authorized networks feature.
441 # master authorized networks will disallow all external traffic to access
442 # Kubernetes master through HTTPS except traffic from the given CIDR blocks,
443 # Google Compute Engine Public IPs and Google Prod IPs.
444 &quot;cidrBlocks&quot;: [ # cidr_blocks define up to 10 external networks that could access
445 # Kubernetes master through HTTPS.
446 { # CidrBlock contains an optional name and one CIDR block.
447 &quot;displayName&quot;: &quot;A String&quot;, # display_name is an optional field for users to identify CIDR blocks.
448 &quot;cidrBlock&quot;: &quot;A String&quot;, # cidr_block must be specified in CIDR notation.
449 },
450 ],
451 &quot;enabled&quot;: True or False, # Whether or not master authorized networks is enabled.
452 },
453 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output only] Additional information about the current status of this
454 # cluster, if available.
455 &quot;masterAuth&quot;: { # The authentication information for accessing the master endpoint. # The authentication information for accessing the master endpoint.
456 # If unspecified, the defaults are used:
457 # For clusters before v1.12, if master_auth is unspecified, `username` will
458 # be set to &quot;admin&quot;, a random password will be generated, and a client
459 # certificate will be issued.
460 # Authentication can be done using HTTP basic auth or using client
461 # certificates.
462 &quot;password&quot;: &quot;A String&quot;, # The password to use for HTTP basic authentication to the master endpoint.
463 # Because the master endpoint is open to the Internet, you should create a
464 # strong password. If a password is provided for cluster creation, username
465 # must be non-empty.
466 &quot;clientCertificateConfig&quot;: { # Configuration for client certificates on the cluster. # Configuration for client certificate authentication on the cluster. For
467 # clusters before v1.12, if no configuration is specified, a client
468 # certificate is issued.
469 &quot;issueClientCertificate&quot;: True or False, # Issue a client certificate.
470 },
471 &quot;clientKey&quot;: &quot;A String&quot;, # [Output only] Base64-encoded private key used by clients to authenticate
472 # to the cluster endpoint.
473 &quot;clusterCaCertificate&quot;: &quot;A String&quot;,
474 &quot;clientCertificate&quot;: &quot;A String&quot;, # [Output only] Base64-encoded public certificate used by clients to
475 # authenticate to the cluster endpoint.
476 &quot;username&quot;: &quot;A String&quot;, # The username to use for HTTP basic authentication to the master endpoint.
477 # For clusters v1.6.0 and later, basic authentication can be disabled by
478 # leaving username unspecified (or setting it to the empty string).
479 },
480 &quot;authenticatorGroupsConfig&quot;: { # Configuration for returning group information from authenticators. # Configuration controlling RBAC group membership information.
481 &quot;enabled&quot;: True or False, # Whether this cluster should return group membership lookups
482 # during authentication using a group of security groups.
483 &quot;securityGroup&quot;: &quot;A String&quot;, # The name of the security group-of-groups to be used. Only relevant
484 # if enabled = true.
485 },
486 &quot;masterIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP prefix in CIDR notation to use for the hosted master network.
487 # This prefix will be used for assigning private IP addresses to the
488 # master or set of masters, as well as the ILB VIP.
489 # This field is deprecated, use
490 # private_cluster_config.master_ipv4_cidr_block instead.
491 &quot;clusterTelemetry&quot;: { # Telemetry integration for the cluster. # Telemetry integration for the cluster.
492 &quot;type&quot;: &quot;A String&quot;, # Type of the integration.
493 },
494 &quot;currentMasterVersion&quot;: &quot;A String&quot;, # [Output only] The current software version of the master endpoint.
495 &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.
496 # cluster, enabling additional functionality.
497 &quot;networkPolicyConfig&quot;: { # Configuration for NetworkPolicy. This only tracks whether the addon # Configuration for NetworkPolicy. This only tracks whether the addon
498 # is enabled or not on the Master, it does not track whether network policy
499 # is enabled for the nodes.
500 # is enabled or not on the Master, it does not track whether network policy
501 # is enabled for the nodes.
502 &quot;disabled&quot;: True or False, # Whether NetworkPolicy is enabled for this cluster.
503 },
504 &quot;configConnectorConfig&quot;: { # Configuration options for the Config Connector add-on. # Configuration for the ConfigConnector add-on, a Kubernetes
505 # extension to manage hosted GCP services through the Kubernetes API
506 &quot;enabled&quot;: True or False, # Whether Cloud Connector is enabled for this cluster.
507 },
508 &quot;cloudRunConfig&quot;: { # Configuration options for the Cloud Run feature. # Configuration for the Cloud Run addon. The `IstioConfig` addon must be
509 # enabled in order to enable Cloud Run addon. This option can only be enabled
510 # at cluster creation time.
511 &quot;disabled&quot;: True or False, # Whether Cloud Run addon is enabled for this cluster.
512 },
513 &quot;horizontalPodAutoscaling&quot;: { # Configuration options for the horizontal pod autoscaling feature, which # Configuration for the horizontal pod autoscaling feature, which
514 # increases or decreases the number of replica pods a replication controller
515 # has based on the resource usage of the existing pods.
516 # increases or decreases the number of replica pods a replication controller
517 # has based on the resource usage of the existing pods.
518 &quot;disabled&quot;: True or False, # Whether the Horizontal Pod Autoscaling feature is enabled in the cluster.
519 # When enabled, it ensures that metrics are collected into Stackdriver
520 # Monitoring.
521 },
522 &quot;httpLoadBalancing&quot;: { # Configuration options for the HTTP (L7) load balancing controller addon, # Configuration for the HTTP (L7) load balancing controller addon, which
523 # makes it easy to set up HTTP load balancers for services in a cluster.
524 # which makes it easy to set up HTTP load balancers for services in a cluster.
525 &quot;disabled&quot;: True or False, # Whether the HTTP Load Balancing controller is enabled in the cluster.
526 # When enabled, it runs a small pod in the cluster that manages the load
527 # balancers.
528 },
529 &quot;kubernetesDashboard&quot;: { # Configuration for the Kubernetes Dashboard. # Configuration for the Kubernetes Dashboard.
530 # This addon is deprecated, and will be disabled in 1.15. It is recommended
531 # to use the Cloud Console to manage and monitor your Kubernetes clusters,
532 # workloads and applications. For more information, see:
533 # https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
534 &quot;disabled&quot;: True or False, # Whether the Kubernetes Dashboard is enabled for this cluster.
535 },
536 &quot;dnsCacheConfig&quot;: { # Configuration for NodeLocal DNSCache # Configuration for NodeLocalDNS, a dns cache running on cluster nodes
537 &quot;enabled&quot;: True or False, # Whether NodeLocal DNSCache is enabled for this cluster.
538 },
539 &quot;kalmConfig&quot;: { # Configuration options for the KALM addon. # Configuration for the KALM addon, which manages the lifecycle of k8s
540 # applications.
541 &quot;enabled&quot;: True or False, # Whether KALM is enabled for this cluster.
542 },
543 &quot;gcePersistentDiskCsiDriverConfig&quot;: { # Configuration for the Compute Engine PD CSI driver. This option can only be # Configuration for the Compute Engine Persistent Disk CSI driver.
544 # enabled at cluster creation time.
545 &quot;enabled&quot;: True or False, # Whether the Compute Engine PD CSI driver is enabled for this cluster.
546 },
547 &quot;istioConfig&quot;: { # Configuration options for Istio addon. # Configuration for Istio, an open platform to connect, manage, and secure
548 # microservices.
549 &quot;disabled&quot;: True or False, # Whether Istio is enabled for this cluster.
550 &quot;auth&quot;: &quot;A String&quot;, # The specified Istio auth mode, either none, or mutual TLS.
551 },
552 },
553 &quot;podSecurityPolicyConfig&quot;: { # Configuration for the PodSecurityPolicy feature. # Configuration for the PodSecurityPolicy feature.
554 &quot;enabled&quot;: True or False, # Enable the PodSecurityPolicy controller for this cluster. If enabled, pods
555 # must be valid under a PodSecurityPolicy to be created.
556 },
557 &quot;currentNodeVersion&quot;: &quot;A String&quot;, # [Output only] Deprecated, use
558 # [NodePool.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1beta1/projects.locations.clusters.nodePools)
559 # instead. The current version of the node software components.
560 # If they are currently at multiple versions because they&#x27;re in the process
561 # of being upgraded, this reflects the minimum version of all nodes.
562 &quot;subnetwork&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
563 # [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which
564 # the cluster is connected. On output this shows the subnetwork ID instead of
565 # the name.
566 &quot;maintenancePolicy&quot;: { # MaintenancePolicy defines the maintenance policy to be used for the cluster. # Configure the maintenance policy for this cluster.
567 &quot;resourceVersion&quot;: &quot;A String&quot;, # A hash identifying the version of this policy, so that updates to fields of
568 # the policy won&#x27;t accidentally undo intermediate changes (and so that users
569 # of the API unaware of some fields won&#x27;t accidentally remove other fields).
570 # Make a &lt;code&gt;get()&lt;/code&gt; request to the cluster to get the current
571 # resource version and include it with requests to set the policy.
572 &quot;window&quot;: { # MaintenanceWindow defines the maintenance window to be used for the cluster. # Specifies the maintenance window in which maintenance may be performed.
573 &quot;dailyMaintenanceWindow&quot;: { # Time window specified for daily maintenance operations. # DailyMaintenanceWindow specifies a daily maintenance operation window.
574 &quot;duration&quot;: &quot;A String&quot;, # [Output only] Duration of the time window, automatically chosen to be
575 # smallest possible in the given scenario.
576 &quot;startTime&quot;: &quot;A String&quot;, # Time within the maintenance window to start the maintenance operations.
577 # It must be in format &quot;HH:MM&quot;, where HH : [00-23] and MM : [00-59] GMT.
578 },
579 &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 -0700580 # maintenance to occur. The time windows may be overlapping. If no
581 # maintenance windows are set, maintenance can occur at any time.
Bu Sun Kim65020912020-05-20 12:08:20 -0700582 &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 -0700583 # this window reccurs. They go on for the span of time between the start and
584 # end time.
585 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700586 # For example, to have something repeat every weekday, you&#x27;d use:
Dan O'Mearadd494642020-05-01 07:42:23 -0700587 # &lt;code&gt;FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR&lt;/code&gt;
588 # To repeat some window daily (equivalent to the DailyMaintenanceWindow):
589 # &lt;code&gt;FREQ=DAILY&lt;/code&gt;
590 # For the first weekend of every month:
591 # &lt;code&gt;FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU&lt;/code&gt;
592 # This specifies how frequently the window starts. Eg, if you wanted to have
Bu Sun Kim65020912020-05-20 12:08:20 -0700593 # a 9-5 UTC-4 window every weekday, you&#x27;d use something like:
Dan O'Mearadd494642020-05-01 07:42:23 -0700594 # &lt;code&gt;
595 # start time = 2019-01-01T09:00:00-0400
596 # end time = 2019-01-01T17:00:00-0400
597 # recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
598 # &lt;/code&gt;
599 # Windows can span multiple days. Eg, to make the window encompass every
600 # weekend from midnight Saturday till the last minute of Sunday UTC:
601 # &lt;code&gt;
602 # start time = 2019-01-05T00:00:00Z
603 # end time = 2019-01-07T23:59:00Z
604 # recurrence = FREQ=WEEKLY;BYDAY=SA
605 # &lt;/code&gt;
Bu Sun Kim65020912020-05-20 12:08:20 -0700606 # Note the start and end time&#x27;s specific dates are largely arbitrary except
Dan O'Mearadd494642020-05-01 07:42:23 -0700607 # to specify duration of the window and when it first starts.
608 # The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.
Bu Sun Kim65020912020-05-20 12:08:20 -0700609 &quot;window&quot;: { # Represents an arbitrary window of time. # The window of the first recurrence.
610 &quot;endTime&quot;: &quot;A String&quot;, # The time that the window ends. The end time should take place after the
Dan O'Mearadd494642020-05-01 07:42:23 -0700611 # start time.
Bu Sun Kim65020912020-05-20 12:08:20 -0700612 &quot;startTime&quot;: &quot;A String&quot;, # The time that the window first starts.
Dan O'Mearadd494642020-05-01 07:42:23 -0700613 },
614 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700615 &quot;maintenanceExclusions&quot;: { # Exceptions to maintenance window. Non-emergency maintenance should not
Dan O'Mearadd494642020-05-01 07:42:23 -0700616 # occur in these windows.
Bu Sun Kim65020912020-05-20 12:08:20 -0700617 &quot;a_key&quot;: { # Represents an arbitrary window of time.
618 &quot;endTime&quot;: &quot;A String&quot;, # The time that the window ends. The end time should take place after the
Dan O'Mearadd494642020-05-01 07:42:23 -0700619 # start time.
Bu Sun Kim65020912020-05-20 12:08:20 -0700620 &quot;startTime&quot;: &quot;A String&quot;, # The time that the window first starts.
Dan O'Mearadd494642020-05-01 07:42:23 -0700621 },
622 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700623 },
624 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700625 &quot;resourceLabels&quot;: { # The resource labels for the cluster to use to annotate any related
626 # Google Compute Engine resources.
627 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700628 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700629 &quot;initialClusterVersion&quot;: &quot;A String&quot;, # The initial Kubernetes version for this cluster. Valid versions are those
630 # found in validMasterVersions returned by getServerConfig. The version can
631 # be upgraded over time; such upgrades are reflected in
632 # currentMasterVersion and currentNodeVersion.
Dan O'Mearadd494642020-05-01 07:42:23 -0700633 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700634 # Users may specify either explicit versions offered by
635 # Kubernetes Engine or version aliases, which have the following behavior:
Dan O'Mearadd494642020-05-01 07:42:23 -0700636 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700637 # - &quot;latest&quot;: picks the highest valid Kubernetes version
638 # - &quot;1.X&quot;: picks the highest valid patch+gke.N patch in the 1.X version
639 # - &quot;1.X.Y&quot;: picks the highest valid gke.N patch in the 1.X.Y version
640 # - &quot;1.X.Y-gke.N&quot;: picks an explicit Kubernetes version
641 # - &quot;&quot;,&quot;-&quot;: picks the default Kubernetes version
642 &quot;ipAllocationPolicy&quot;: { # Configuration for controlling how IPs are allocated in the cluster. # Configuration for cluster IP allocation.
643 &quot;useRoutes&quot;: True or False, # Whether routes will be used for pod IPs in the cluster.
644 # This is used in conjunction with use_ip_aliases. It cannot be true if
645 # use_ip_aliases is true. If both use_ip_aliases and use_routes are false,
646 # then the server picks the default IP allocation mode
647 &quot;servicesIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP address range of the services IPs in this cluster. If blank, a range
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700648 # will be automatically chosen with the default size.
649 #
650 # This field is only applicable when `use_ip_aliases` is true.
651 #
652 # Set to blank to have a range chosen with the default size.
653 #
654 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
655 # netmask.
656 #
657 # Set to a
658 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
659 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
660 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
661 # to use.
Bu Sun Kim65020912020-05-20 12:08:20 -0700662 &quot;allowRouteOverlap&quot;: True or False, # If true, allow allocation of cluster CIDR ranges that overlap with certain
663 # kinds of network routes. By default we do not allow cluster CIDR ranges to
664 # intersect with any user declared routes. With allow_route_overlap == true,
665 # we allow overlapping with CIDR ranges that are larger than the cluster CIDR
666 # range.
667 #
668 # If this field is set to true, then cluster and services CIDRs must be
669 # fully-specified (e.g. `10.96.0.0/14`, but not `/14`), which means:
670 # 1) When `use_ip_aliases` is true, `cluster_ipv4_cidr_block` and
671 # `services_ipv4_cidr_block` must be fully-specified.
672 # 2) When `use_ip_aliases` is false, `cluster.cluster_ipv4_cidr` muse be
673 # fully-specified.
674 &quot;nodeIpv4Cidr&quot;: &quot;A String&quot;, # This field is deprecated, use node_ipv4_cidr_block.
675 &quot;clusterIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP address range for the cluster pod IPs. If this field is set, then
676 # `cluster.cluster_ipv4_cidr` must be left blank.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700677 #
678 # This field is only applicable when `use_ip_aliases` is true.
Bu Sun Kim65020912020-05-20 12:08:20 -0700679 #
680 # Set to blank to have a range chosen with the default size.
681 #
682 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
683 # netmask.
684 #
685 # Set to a
686 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
687 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
688 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
689 # to use.
690 &quot;clusterSecondaryRangeName&quot;: &quot;A String&quot;, # The name of the secondary range to be used for the cluster CIDR
691 # block. The secondary range will be used for pod IP
692 # addresses. This must be an existing secondary range associated
693 # with the cluster subnetwork.
694 #
695 # This field is only applicable with use_ip_aliases and
696 # create_subnetwork is false.
697 &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 -0700698 #
699 # This is applicable only if `create_subnetwork` is true.
700 #
701 # Set to blank to have a range chosen with the default size.
702 #
703 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
704 # netmask.
705 #
706 # Set to a
707 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
708 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
709 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
710 # to use.
Bu Sun Kim65020912020-05-20 12:08:20 -0700711 &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 -0700712 # range will be automatically chosen with the default size.
713 #
714 # This field is only applicable when `use_ip_aliases` is true.
715 #
716 # If unspecified, the range will use the default size.
717 #
718 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
719 # netmask.
720 #
721 # Set to a
722 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
723 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
724 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
725 # to use.
Dan O'Mearadd494642020-05-01 07:42:23 -0700726 # This field is deprecated, use cluster.tpu_config.ipv4_cidr_block instead.
Bu Sun Kim65020912020-05-20 12:08:20 -0700727 &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 -0700728 # CIDR block. The secondary range will be used for service
729 # ClusterIPs. This must be an existing secondary range associated
730 # with the cluster subnetwork.
731 #
732 # This field is only applicable with use_ip_aliases and
733 # create_subnetwork is false.
Bu Sun Kim65020912020-05-20 12:08:20 -0700734 &quot;useIpAliases&quot;: True or False, # Whether alias IPs will be used for pod IPs in the cluster.
735 # This is used in conjunction with use_routes. It cannot
736 # be true if use_routes is true. If both use_ip_aliases and use_routes are
737 # false, then the server picks the default IP allocation mode
738 &quot;createSubnetwork&quot;: True or False, # Whether a new subnetwork will be created automatically for the cluster.
739 #
740 # This field is only applicable when `use_ip_aliases` is true.
741 &quot;subnetworkName&quot;: &quot;A String&quot;, # A custom subnetwork name to be used if `create_subnetwork` is true. If
742 # this field is empty, then an automatic name will be chosen for the new
743 # subnetwork.
744 &quot;clusterIpv4Cidr&quot;: &quot;A String&quot;, # This field is deprecated, use cluster_ipv4_cidr_block.
745 &quot;servicesIpv4Cidr&quot;: &quot;A String&quot;, # This field is deprecated, use services_ipv4_cidr_block.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700746 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700747 &quot;legacyAbac&quot;: { # Configuration for the legacy Attribute Based Access Control authorization # Configuration for the legacy ABAC authorization mode.
748 # mode.
749 &quot;enabled&quot;: True or False, # Whether the ABAC authorizer is enabled for this cluster. When enabled,
750 # identities in the system, including service accounts, nodes, and
751 # controllers, will have statically granted permissions beyond those
752 # provided by the RBAC configuration or IAM.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700753 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700754 &quot;enableTpu&quot;: True or False, # Enable the ability to use Cloud TPUs in this cluster.
755 # This field is deprecated, use tpu_config.enabled instead.
756 &quot;resourceUsageExportConfig&quot;: { # Configuration for exporting cluster resource usages. # Configuration for exporting resource usages. Resource usage export is
757 # disabled when this config unspecified.
758 &quot;enableNetworkEgressMetering&quot;: True or False, # Whether to enable network egress metering for this cluster. If enabled, a
759 # daemonset will be created in the cluster to meter network egress traffic.
760 &quot;consumptionMeteringConfig&quot;: { # Parameters for controlling consumption metering. # Configuration to enable resource consumption metering.
761 &quot;enabled&quot;: True or False, # Whether to enable consumption metering for this cluster. If enabled, a
762 # second BigQuery table will be created to hold resource consumption
763 # records.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700764 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700765 &quot;bigqueryDestination&quot;: { # Parameters for using BigQuery as the destination of resource usage export. # Configuration to use BigQuery as usage export destination.
766 &quot;datasetId&quot;: &quot;A String&quot;, # The ID of a BigQuery Dataset.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700767 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700768 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700769 &quot;locations&quot;: [ # The list of Google Compute Engine
770 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
771 # cluster&#x27;s nodes should be located.
772 &quot;A String&quot;,
773 ],
774 &quot;nodePools&quot;: [ # The node pools associated with this cluster.
775 # 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 -0700776 # specified.
Bu Sun Kim65020912020-05-20 12:08:20 -0700777 { # NodePool contains the name and configuration for a cluster&#x27;s node pool.
778 # 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 -0700779 # specification, under the control of the cluster master. They may have a set
780 # of Kubernetes labels applied to them, which may be used to reference them
781 # during pod scheduling. They may also be resized up or down, to accommodate
782 # the workload.
Bu Sun Kim65020912020-05-20 12:08:20 -0700783 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output only] Additional information about the current status of this
784 # node pool instance, if available.
785 &quot;autoscaling&quot;: { # NodePoolAutoscaling contains information required by cluster autoscaler to # Autoscaler configuration for this NodePool. Autoscaler is enabled
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700786 # only if a valid configuration is present.
787 # adjust the size of the node pool to the current cluster usage.
Bu Sun Kim65020912020-05-20 12:08:20 -0700788 &quot;minNodeCount&quot;: 42, # Minimum number of nodes in the NodePool. Must be &gt;= 1 and &lt;=
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700789 # max_node_count.
Bu Sun Kim65020912020-05-20 12:08:20 -0700790 &quot;autoprovisioned&quot;: True or False, # Can this node pool be deleted automatically.
791 &quot;enabled&quot;: True or False, # Is autoscaling enabled for this node pool.
792 &quot;maxNodeCount&quot;: 42, # Maximum number of nodes in the NodePool. Must be &gt;= min_node_count. There
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700793 # has to enough quota to scale up the cluster.
794 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700795 &quot;initialNodeCount&quot;: 42, # The initial node count for the pool. You must ensure that your
796 # Compute Engine &lt;a href=&quot;/compute/docs/resource-quotas&quot;&gt;resource quota&lt;/a&gt;
797 # is sufficient for this number of instances. You must also have available
798 # firewall and routes quota.
799 &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 -0700800 # disruption caused by an upgrade.
801 #
802 # maxUnavailable controls the number of nodes that can be simultaneously
803 # unavailable.
804 #
805 # maxSurge controls the number of additional nodes that can be added to the
806 # node pool temporarily for the time of the upgrade to increase the number of
807 # available nodes.
808 #
809 # (maxUnavailable + maxSurge) determines the level of parallelism (how many
810 # nodes are being upgraded at the same time).
811 #
812 # Note: upgrades inevitably introduce some disruption since workloads need to
813 # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
814 # this holds true. (Disruption stays within the limits of
815 # PodDisruptionBudget, if it is configured.)
816 #
817 # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
818 # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
819 # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
820 # down 3 old (not yet upgraded) nodes at the same time. This ensures that
821 # there are always at least 4 nodes available.
Bu Sun Kim65020912020-05-20 12:08:20 -0700822 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size
Dan O'Mearadd494642020-05-01 07:42:23 -0700823 # of the node pool during the upgrade process.
Bu Sun Kim65020912020-05-20 12:08:20 -0700824 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during
Dan O'Mearadd494642020-05-01 07:42:23 -0700825 # the upgrade process. A node is considered available if its status is
826 # Ready.
827 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700828 &quot;selfLink&quot;: &quot;A String&quot;, # [Output only] Server-defined URL for the resource.
829 &quot;locations&quot;: [ # The list of Google Compute Engine
830 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
831 # NodePool&#x27;s nodes should be located.
832 &quot;A String&quot;,
833 ],
834 &quot;instanceGroupUrls&quot;: [ # [Output only] The resource URLs of the [managed instance
Dan O'Mearadd494642020-05-01 07:42:23 -0700835 # groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
836 # associated with this node pool.
Bu Sun Kim65020912020-05-20 12:08:20 -0700837 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -0700838 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700839 &quot;version&quot;: &quot;A String&quot;, # The version of the Kubernetes of this node.
840 &quot;podIpv4CidrSize&quot;: 42, # [Output only] The pod CIDR block size per node in this node pool.
841 &quot;conditions&quot;: [ # Which conditions caused the current node pool state.
842 { # StatusCondition describes why a cluster or a node pool has a certain status
843 # (e.g., ERROR or DEGRADED).
844 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
845 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Dan O'Mearadd494642020-05-01 07:42:23 -0700846 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700847 ],
848 &quot;status&quot;: &quot;A String&quot;, # [Output only] The status of the nodes in this pool instance.
849 &quot;config&quot;: { # Parameters that describe the nodes in a cluster. # The node configuration of the pool.
850 &quot;diskSizeGb&quot;: 42, # Size of the disk attached to each node, specified in GB.
851 # The smallest allowed disk size is 10GB.
852 #
853 # If unspecified, the default disk size is 100GB.
854 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to # The workload metadata configuration for this node.
855 # workloads on the node pool.
856 &quot;nodeMetadata&quot;: &quot;A String&quot;, # NodeMetadata is the configuration for how to expose metadata to the
857 # workloads running on the node.
858 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running
859 # on the node pool.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700860 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700861 &quot;accelerators&quot;: [ # A list of hardware accelerators to be attached to each node.
862 # See https://cloud.google.com/compute/docs/gpus for more information about
863 # support for GPUs.
864 { # AcceleratorConfig represents a Hardware Accelerator request.
865 &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of the accelerator cards exposed to an instance.
866 &quot;acceleratorType&quot;: &quot;A String&quot;, # The accelerator type resource name. List of supported accelerators
867 # [here](https://cloud.google.com/compute/docs/gpus)
868 },
869 ],
870 &quot;machineType&quot;: &quot;A String&quot;, # The name of a Google Compute Engine [machine
Dan O'Mearadd494642020-05-01 07:42:23 -0700871 # type](https://cloud.google.com/compute/docs/machine-types) (e.g.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700872 # `n1-standard-1`).
873 #
874 # If unspecified, the default machine type is
875 # `n1-standard-1`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700876 &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;)
877 #
878 # If unspecified, the default disk type is &#x27;pd-standard&#x27;
879 &quot;bootDiskKmsKey&quot;: &quot;A String&quot;, #
880 # The Customer Managed Encryption Key used to encrypt the boot disk attached
881 # to each node in the node pool. This should be of the form
882 # projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
883 # For more information about protecting resources with Cloud KMS Keys please
884 # see:
885 # https://cloud.google.com/compute/docs/disks/customer-managed-encryption
886 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
887 &quot;enableSecureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled.
888 #
889 # Secure Boot helps ensure that the system only runs authentic software by
890 # verifying the digital signature of all boot components, and halting the
891 # boot process if signature verification fails.
892 &quot;enableIntegrityMonitoring&quot;: True or False, # Defines whether the instance has integrity monitoring enabled.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700893 #
894 # Enables monitoring and attestation of the boot integrity of the instance.
895 # The attestation is performed against the integrity policy baseline. This
896 # baseline is initially derived from the implicitly trusted boot image when
897 # the instance is created.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700898 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700899 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used by this instance. The instance may be
900 # scheduled on the specified or newer CPU platform. Applicable values are the
901 # friendly names of CPU platforms, such as
902 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Haswell&amp;quot;&lt;/code&gt; or
903 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Sandy Bridge&amp;quot;&lt;/code&gt;. For more
904 # information, read [how to specify min CPU
905 # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
906 &quot;preemptible&quot;: True or False, # Whether the nodes are created as preemptible VM instances. See:
907 # https://cloud.google.com/compute/docs/instances/preemptible for more
908 # inforamtion about preemptible VM instances.
909 &quot;localSsdCount&quot;: 42, # The number of local SSD disks to be attached to the node.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700910 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700911 # The limit for this value is dependent upon the maximum number of
912 # disks available on a machine per zone. See:
913 # https://cloud.google.com/compute/docs/disks/local-ssd
914 # for more information.
915 &quot;sandboxConfig&quot;: { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node.
916 &quot;type&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node.
917 &quot;sandboxType&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node (e.g. &#x27;gvisor&#x27;)
918 },
919 &quot;metadata&quot;: { # The metadata key/value pairs assigned to instances in the cluster.
920 #
921 # Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
922 # in length. These are reflected as part of a URL in the metadata server.
923 # Additionally, to avoid ambiguity, keys must not conflict with any other
924 # metadata keys for the project or be one of the reserved keys:
925 # &quot;cluster-location&quot;
926 # &quot;cluster-name&quot;
927 # &quot;cluster-uid&quot;
928 # &quot;configure-sh&quot;
929 # &quot;containerd-configure-sh&quot;
930 # &quot;enable-oslogin&quot;
931 # &quot;gci-ensure-gke-docker&quot;
932 # &quot;gci-metrics-enabled&quot;
933 # &quot;gci-update-strategy&quot;
934 # &quot;instance-template&quot;
935 # &quot;kube-env&quot;
936 # &quot;startup-script&quot;
937 # &quot;user-data&quot;
938 # &quot;disable-address-manager&quot;
939 # &quot;windows-startup-script-ps1&quot;
940 # &quot;common-psm1&quot;
941 # &quot;k8s-node-setup-psm1&quot;
942 # &quot;install-ssh-psm1&quot;
943 # &quot;user-profile-psm1&quot;
944 # &quot;serial-port-logging-enable&quot;
945 # Values are free-form strings, and only have meaning as interpreted by
946 # the image running in the instance. The only restriction placed on them is
947 # that each value&#x27;s size must be less than or equal to 32 KB.
948 #
949 # The total size of all keys and values must be less than 512 KB.
950 &quot;a_key&quot;: &quot;A String&quot;,
951 },
952 &quot;reservationAffinity&quot;: { # [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) # The optional reservation affinity. Setting this field will apply
953 # the specified [Zonal Compute
954 # Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
955 # to this node pool.
956 # is the configuration of desired reservation which instances could take
957 # capacity from.
958 &quot;key&quot;: &quot;A String&quot;, # Corresponds to the label key of a reservation resource. To target a
959 # SPECIFIC_RESERVATION by name, specify &quot;googleapis.com/reservation-name&quot; as
960 # the key and specify the name of your reservation as its value.
961 &quot;values&quot;: [ # Corresponds to the label value(s) of reservation resource(s).
962 &quot;A String&quot;,
963 ],
964 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Corresponds to the type of reservation consumption.
965 },
966 &quot;tags&quot;: [ # The list of instance tags applied to all nodes. Tags are used to identify
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700967 # valid sources or targets for network firewalls and are specified by
968 # the client during cluster or node pool creation. Each tag within the list
969 # must comply with RFC1035.
Bu Sun Kim65020912020-05-20 12:08:20 -0700970 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700971 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700972 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs.
Dan O'Mearadd494642020-05-01 07:42:23 -0700973 # Specify the email address of the Service Account; otherwise, if no Service
Bu Sun Kim65020912020-05-20 12:08:20 -0700974 # Account is specified, the &quot;default&quot; service account is used.
975 &quot;imageType&quot;: &quot;A String&quot;, # The image type to use for this node. Note that for a given image type,
976 # the latest version of it will be used.
977 &quot;oauthScopes&quot;: [ # The set of Google API scopes to be made available on all of the
978 # node VMs under the &quot;default&quot; service account.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700979 #
980 # The following scopes are recommended, but not required, and by default are
981 # not included:
982 #
983 # * `https://www.googleapis.com/auth/compute` is required for mounting
984 # persistent storage on your nodes.
985 # * `https://www.googleapis.com/auth/devstorage.read_only` is required for
986 # communicating with **gcr.io**
Dan O'Mearadd494642020-05-01 07:42:23 -0700987 # (the [Google Container
988 # Registry](https://cloud.google.com/container-registry/)).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700989 #
990 # If unspecified, no scopes are added, unless Cloud Logging or Cloud
991 # Monitoring are enabled, in which case their required scopes will be added.
Bu Sun Kim65020912020-05-20 12:08:20 -0700992 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700993 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700994 &quot;taints&quot;: [ # List of kubernetes taints to be applied to each node.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700995 #
996 # For more information, including usage and the valid values, see:
997 # https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
998 { # Kubernetes taint is comprised of three fields: key, value, and effect. Effect
999 # can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute.
1000 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001001 # See
1002 # [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration)
1003 # for more information, including usage and the valid values.
1004 &quot;key&quot;: &quot;A String&quot;, # Key for taint.
1005 &quot;value&quot;: &quot;A String&quot;, # Value for taint.
1006 &quot;effect&quot;: &quot;A String&quot;, # Effect for taint.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001007 },
1008 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001009 &quot;labels&quot;: { # The map of Kubernetes labels (key/value pairs) to be applied to each node.
1010 # These will added in addition to any default label(s) that
1011 # Kubernetes may apply to the node.
1012 # In case of conflict in label keys, the applied set may differ depending on
1013 # the Kubernetes version -- it&#x27;s best to assume the behavior is undefined
1014 # and conflicts should be avoided.
1015 # For more information, including usage and the valid values, see:
1016 # https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
1017 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001018 },
1019 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001020 &quot;name&quot;: &quot;A String&quot;, # The name of the node pool.
1021 &quot;maxPodsConstraint&quot;: { # Constraints applied to pods. # The constraint on the maximum number of pods that can be run
1022 # simultaneously on a node in the node pool.
1023 &quot;maxPodsPerNode&quot;: &quot;A String&quot;, # Constraint enforced on the max num of pods per node.
1024 },
1025 &quot;management&quot;: { # NodeManagement defines the set of node management services turned on for the # NodeManagement configuration for this NodePool.
1026 # node pool.
1027 &quot;autoUpgrade&quot;: True or False, # Whether the nodes will be automatically upgraded.
1028 &quot;autoRepair&quot;: True or False, # Whether the nodes will be automatically repaired.
1029 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool.
1030 # the Auto Upgrades will proceed.
1031 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
1032 # with the description of the upgrade.
1033 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
1034 # with the approximate start time for the upgrades, in
1035 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1036 },
1037 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001038 },
1039 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001040 &quot;selfLink&quot;: &quot;A String&quot;, # [Output only] Server-defined URL for the resource.
1041 &quot;servicesIpv4Cidr&quot;: &quot;A String&quot;, # [Output only] The IP address range of the Kubernetes services in
1042 # this cluster, in
1043 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
1044 # notation (e.g. `1.2.3.4/29`). Service addresses are
1045 # typically put in the last `/16` from the container CIDR.
1046 &quot;networkPolicy&quot;: { # Configuration options for the NetworkPolicy feature. # Configuration options for the NetworkPolicy feature.
1047 # https://kubernetes.io/docs/concepts/services-networking/networkpolicies/
1048 &quot;enabled&quot;: True or False, # Whether network policy is enabled on the cluster.
1049 &quot;provider&quot;: &quot;A String&quot;, # The selected network policy provider.
1050 },
1051 &quot;releaseChannel&quot;: { # ReleaseChannel indicates which release channel a cluster is # Release channel configuration.
1052 # subscribed to. Release channels are arranged in order of risk and
1053 # frequency of updates.
1054 #
1055 # When a cluster is subscribed to a release channel, Google maintains
1056 # both the master version and the node version. Node auto-upgrade
1057 # defaults to true and cannot be disabled. Updates to version related
1058 # fields (e.g. current_master_version) return an error.
1059 &quot;channel&quot;: &quot;A String&quot;, # channel specifies which release channel the cluster is subscribed to.
1060 },
1061 &quot;enableKubernetesAlpha&quot;: True or False, # Kubernetes alpha features are enabled on this cluster. This includes alpha
1062 # API groups (e.g. v1beta1) and features that may not be production ready in
1063 # the kubernetes version of the master and nodes.
1064 # The cluster has no SLA for uptime and master/node upgrades are disabled.
1065 # Alpha enabled clusters are automatically deleted thirty days after
1066 # creation.
1067 &quot;description&quot;: &quot;A String&quot;, # An optional description of this cluster.
1068 &quot;conditions&quot;: [ # Which conditions caused the current cluster state.
1069 { # StatusCondition describes why a cluster or a node pool has a certain status
1070 # (e.g., ERROR or DEGRADED).
1071 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
1072 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
1073 },
1074 ],
1075 &quot;privateCluster&quot;: True or False, # If this is a private cluster setup. Private clusters are clusters that, by
1076 # default have no external IP addresses on the nodes and where nodes and the
1077 # master communicate over private IP addresses.
1078 # This field is deprecated, use private_cluster_config.enable_private_nodes
1079 # instead.
1080 &quot;currentNodeCount&quot;: 42, # [Output only] The number of nodes currently in the cluster. Deprecated.
1081 # Call Kubernetes API directly to retrieve node information.
1082 &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 -07001083 # Currently available options:
1084 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001085 # * &quot;monitoring.googleapis.com/kubernetes&quot; - The Cloud Monitoring
Dan O'Mearadd494642020-05-01 07:42:23 -07001086 # service with a Kubernetes-native resource model
1087 # * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
1088 # longer available as of GKE 1.15).
1089 # * `none` - No metrics will be exported from the cluster.
1090 #
1091 # If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
1092 # used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
Bu Sun Kim65020912020-05-20 12:08:20 -07001093 &quot;databaseEncryption&quot;: { # Configuration of etcd encryption. # Configuration of etcd encryption.
1094 &quot;state&quot;: &quot;A String&quot;, # Denotes the state of etcd encryption.
1095 &quot;keyName&quot;: &quot;A String&quot;, # Name of CloudKMS key to use for the encryption of secrets in etcd.
Dan O'Mearadd494642020-05-01 07:42:23 -07001096 # Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001097 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001098 &quot;binaryAuthorization&quot;: { # Configuration for Binary Authorization. # Configuration for Binary Authorization.
1099 &quot;enabled&quot;: True or False, # Enable Binary Authorization for this cluster. If enabled, all container
1100 # images will be validated by Google Binauthz.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001101 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001102 &quot;tpuIpv4CidrBlock&quot;: &quot;A String&quot;, # [Output only] The IP address range of the Cloud TPUs in this cluster, in
1103 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
1104 # notation (e.g. `1.2.3.4/29`).
1105 &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
1106 # policies.
1107 # policies.
1108 &quot;identityNamespace&quot;: &quot;A String&quot;, # IAM Identity Namespace to attach all Kubernetes Service Accounts to.
1109 &quot;workloadPool&quot;: &quot;A String&quot;, # The workload pool to attach all Kubernetes service accounts to.
1110 },
1111 &quot;zone&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001112 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1113 # cluster resides. This field is deprecated, use location instead.
Bu Sun Kim65020912020-05-20 12:08:20 -07001114 &quot;loggingService&quot;: &quot;A String&quot;, # The logging service the cluster should use to write logs.
1115 # Currently available options:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001116 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001117 # * `logging.googleapis.com/kubernetes` - The Cloud Logging
1118 # service with a Kubernetes-native resource model
1119 # * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
1120 # available as of GKE 1.15).
1121 # * `none` - no logs will be exported from the cluster.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001122 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001123 # If left as an empty string,`logging.googleapis.com/kubernetes` will be
1124 # used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
1125 &quot;expireTime&quot;: &quot;A String&quot;, # [Output only] The time the cluster will be automatically
1126 # deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1127 &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 -07001128 # For requests, this field should only be used in lieu of a
Bu Sun Kim65020912020-05-20 12:08:20 -07001129 # &quot;node_pool&quot; object, since this configuration (along with the
1130 # &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 -07001131 # auto-generated name. Do not use this and a node_pool at the same time.
1132 # For responses, this field will be populated with the node configuration of
1133 # the first node pool. (For configuration of each node pool, see
1134 # `node_pool.config`)
1135 #
1136 # If unspecified, the defaults are used.
1137 # This field is deprecated, use node_pool.config instead.
Bu Sun Kim65020912020-05-20 12:08:20 -07001138 &quot;diskSizeGb&quot;: 42, # Size of the disk attached to each node, specified in GB.
1139 # The smallest allowed disk size is 10GB.
1140 #
1141 # If unspecified, the default disk size is 100GB.
1142 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to # The workload metadata configuration for this node.
1143 # workloads on the node pool.
1144 &quot;nodeMetadata&quot;: &quot;A String&quot;, # NodeMetadata is the configuration for how to expose metadata to the
1145 # workloads running on the node.
1146 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running
1147 # on the node pool.
Dan O'Mearadd494642020-05-01 07:42:23 -07001148 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001149 &quot;accelerators&quot;: [ # A list of hardware accelerators to be attached to each node.
1150 # See https://cloud.google.com/compute/docs/gpus for more information about
1151 # support for GPUs.
1152 { # AcceleratorConfig represents a Hardware Accelerator request.
1153 &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of the accelerator cards exposed to an instance.
1154 &quot;acceleratorType&quot;: &quot;A String&quot;, # The accelerator type resource name. List of supported accelerators
1155 # [here](https://cloud.google.com/compute/docs/gpus)
1156 },
1157 ],
1158 &quot;machineType&quot;: &quot;A String&quot;, # The name of a Google Compute Engine [machine
Dan O'Mearadd494642020-05-01 07:42:23 -07001159 # type](https://cloud.google.com/compute/docs/machine-types) (e.g.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001160 # `n1-standard-1`).
1161 #
1162 # If unspecified, the default machine type is
1163 # `n1-standard-1`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001164 &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;)
1165 #
1166 # If unspecified, the default disk type is &#x27;pd-standard&#x27;
1167 &quot;bootDiskKmsKey&quot;: &quot;A String&quot;, #
1168 # The Customer Managed Encryption Key used to encrypt the boot disk attached
1169 # to each node in the node pool. This should be of the form
1170 # projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
1171 # For more information about protecting resources with Cloud KMS Keys please
1172 # see:
1173 # https://cloud.google.com/compute/docs/disks/customer-managed-encryption
1174 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
1175 &quot;enableSecureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled.
1176 #
1177 # Secure Boot helps ensure that the system only runs authentic software by
1178 # verifying the digital signature of all boot components, and halting the
1179 # boot process if signature verification fails.
1180 &quot;enableIntegrityMonitoring&quot;: True or False, # Defines whether the instance has integrity monitoring enabled.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001181 #
1182 # Enables monitoring and attestation of the boot integrity of the instance.
1183 # The attestation is performed against the integrity policy baseline. This
1184 # baseline is initially derived from the implicitly trusted boot image when
1185 # the instance is created.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001186 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001187 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used by this instance. The instance may be
1188 # scheduled on the specified or newer CPU platform. Applicable values are the
1189 # friendly names of CPU platforms, such as
1190 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Haswell&amp;quot;&lt;/code&gt; or
1191 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Sandy Bridge&amp;quot;&lt;/code&gt;. For more
1192 # information, read [how to specify min CPU
1193 # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
1194 &quot;preemptible&quot;: True or False, # Whether the nodes are created as preemptible VM instances. See:
1195 # https://cloud.google.com/compute/docs/instances/preemptible for more
1196 # inforamtion about preemptible VM instances.
1197 &quot;localSsdCount&quot;: 42, # The number of local SSD disks to be attached to the node.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001198 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001199 # The limit for this value is dependent upon the maximum number of
1200 # disks available on a machine per zone. See:
1201 # https://cloud.google.com/compute/docs/disks/local-ssd
1202 # for more information.
1203 &quot;sandboxConfig&quot;: { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node.
1204 &quot;type&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node.
1205 &quot;sandboxType&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node (e.g. &#x27;gvisor&#x27;)
1206 },
1207 &quot;metadata&quot;: { # The metadata key/value pairs assigned to instances in the cluster.
1208 #
1209 # Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
1210 # in length. These are reflected as part of a URL in the metadata server.
1211 # Additionally, to avoid ambiguity, keys must not conflict with any other
1212 # metadata keys for the project or be one of the reserved keys:
1213 # &quot;cluster-location&quot;
1214 # &quot;cluster-name&quot;
1215 # &quot;cluster-uid&quot;
1216 # &quot;configure-sh&quot;
1217 # &quot;containerd-configure-sh&quot;
1218 # &quot;enable-oslogin&quot;
1219 # &quot;gci-ensure-gke-docker&quot;
1220 # &quot;gci-metrics-enabled&quot;
1221 # &quot;gci-update-strategy&quot;
1222 # &quot;instance-template&quot;
1223 # &quot;kube-env&quot;
1224 # &quot;startup-script&quot;
1225 # &quot;user-data&quot;
1226 # &quot;disable-address-manager&quot;
1227 # &quot;windows-startup-script-ps1&quot;
1228 # &quot;common-psm1&quot;
1229 # &quot;k8s-node-setup-psm1&quot;
1230 # &quot;install-ssh-psm1&quot;
1231 # &quot;user-profile-psm1&quot;
1232 # &quot;serial-port-logging-enable&quot;
1233 # Values are free-form strings, and only have meaning as interpreted by
1234 # the image running in the instance. The only restriction placed on them is
1235 # that each value&#x27;s size must be less than or equal to 32 KB.
1236 #
1237 # The total size of all keys and values must be less than 512 KB.
1238 &quot;a_key&quot;: &quot;A String&quot;,
1239 },
1240 &quot;reservationAffinity&quot;: { # [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) # The optional reservation affinity. Setting this field will apply
1241 # the specified [Zonal Compute
1242 # Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
1243 # to this node pool.
1244 # is the configuration of desired reservation which instances could take
1245 # capacity from.
1246 &quot;key&quot;: &quot;A String&quot;, # Corresponds to the label key of a reservation resource. To target a
1247 # SPECIFIC_RESERVATION by name, specify &quot;googleapis.com/reservation-name&quot; as
1248 # the key and specify the name of your reservation as its value.
1249 &quot;values&quot;: [ # Corresponds to the label value(s) of reservation resource(s).
1250 &quot;A String&quot;,
1251 ],
1252 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Corresponds to the type of reservation consumption.
1253 },
1254 &quot;tags&quot;: [ # The list of instance tags applied to all nodes. Tags are used to identify
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001255 # valid sources or targets for network firewalls and are specified by
1256 # the client during cluster or node pool creation. Each tag within the list
1257 # must comply with RFC1035.
Bu Sun Kim65020912020-05-20 12:08:20 -07001258 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001259 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001260 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs.
Dan O'Mearadd494642020-05-01 07:42:23 -07001261 # Specify the email address of the Service Account; otherwise, if no Service
Bu Sun Kim65020912020-05-20 12:08:20 -07001262 # Account is specified, the &quot;default&quot; service account is used.
1263 &quot;imageType&quot;: &quot;A String&quot;, # The image type to use for this node. Note that for a given image type,
1264 # the latest version of it will be used.
1265 &quot;oauthScopes&quot;: [ # The set of Google API scopes to be made available on all of the
1266 # node VMs under the &quot;default&quot; service account.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001267 #
1268 # The following scopes are recommended, but not required, and by default are
1269 # not included:
1270 #
1271 # * `https://www.googleapis.com/auth/compute` is required for mounting
1272 # persistent storage on your nodes.
1273 # * `https://www.googleapis.com/auth/devstorage.read_only` is required for
1274 # communicating with **gcr.io**
Dan O'Mearadd494642020-05-01 07:42:23 -07001275 # (the [Google Container
1276 # Registry](https://cloud.google.com/container-registry/)).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001277 #
1278 # If unspecified, no scopes are added, unless Cloud Logging or Cloud
1279 # Monitoring are enabled, in which case their required scopes will be added.
Bu Sun Kim65020912020-05-20 12:08:20 -07001280 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001281 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001282 &quot;taints&quot;: [ # List of kubernetes taints to be applied to each node.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001283 #
1284 # For more information, including usage and the valid values, see:
1285 # https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
1286 { # Kubernetes taint is comprised of three fields: key, value, and effect. Effect
1287 # can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute.
1288 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001289 # See
1290 # [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration)
1291 # for more information, including usage and the valid values.
1292 &quot;key&quot;: &quot;A String&quot;, # Key for taint.
1293 &quot;value&quot;: &quot;A String&quot;, # Value for taint.
1294 &quot;effect&quot;: &quot;A String&quot;, # Effect for taint.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001295 },
1296 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001297 &quot;labels&quot;: { # The map of Kubernetes labels (key/value pairs) to be applied to each node.
1298 # These will added in addition to any default label(s) that
1299 # Kubernetes may apply to the node.
1300 # In case of conflict in label keys, the applied set may differ depending on
1301 # the Kubernetes version -- it&#x27;s best to assume the behavior is undefined
1302 # and conflicts should be avoided.
1303 # For more information, including usage and the valid values, see:
1304 # https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
1305 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001306 },
1307 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001308 &quot;status&quot;: &quot;A String&quot;, # [Output only] The current status of this cluster.
1309 &quot;tpuConfig&quot;: { # Configuration for Cloud TPU. # Configuration for Cloud TPU support;
1310 &quot;enabled&quot;: True or False, # Whether Cloud TPU integration is enabled or not.
1311 &quot;ipv4CidrBlock&quot;: &quot;A String&quot;, # IPv4 CIDR block reserved for Cloud TPU in the VPC.
1312 &quot;useServiceNetworking&quot;: True or False, # Whether to use service networking for Cloud TPU or not.
1313 },
1314 &quot;networkConfig&quot;: { # NetworkConfig reports the relative names of network &amp; subnetwork. # Configuration for cluster networking.
1315 &quot;subnetwork&quot;: &quot;A String&quot;, # Output only. The relative name of the Google Compute Engine
1316 # [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the
1317 # cluster is connected. Example:
1318 # projects/my-project/regions/us-central1/subnetworks/my-subnet
1319 &quot;network&quot;: &quot;A String&quot;, # Output only. The relative name of the Google Compute Engine
1320 # network(https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
1321 # to which the cluster is connected. Example:
1322 # projects/my-project/global/networks/my-network
1323 &quot;enableIntraNodeVisibility&quot;: True or False, # Whether Intra-node visibility is enabled for this cluster.
1324 # This makes same node pod to pod traffic visible for VPC network.
1325 },
1326 &quot;name&quot;: &quot;A String&quot;, # The name of this cluster. The name must be unique within this project
1327 # and location (e.g. zone or region), and can be up to 40 characters with
1328 # the following restrictions:
1329 #
1330 # * Lowercase letters, numbers, and hyphens only.
1331 # * Must start with a letter.
1332 # * Must end with a number or a letter.
1333 &quot;endpoint&quot;: &quot;A String&quot;, # [Output only] The IP address of this cluster&#x27;s master endpoint.
1334 # The endpoint can be accessed from the internet at
1335 # `https://username:password@endpoint/`.
1336 #
1337 # See the `masterAuth` property of this resource for username and
1338 # password information.
1339 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
1340 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1341 # or
1342 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1343 # in which the cluster resides.
1344 &quot;createTime&quot;: &quot;A String&quot;, # [Output only] The time the cluster was created, in
1345 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1346 &quot;clusterIpv4Cidr&quot;: &quot;A String&quot;, # The IP address range of the container pods in this cluster, in
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001347 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
1348 # notation (e.g. `10.96.0.0/14`). Leave blank to have
1349 # one automatically chosen or specify a `/14` block in `10.0.0.0/8`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001350 &quot;autoscaling&quot;: { # ClusterAutoscaling contains global, per-cluster information # Cluster-level autoscaling configuration.
1351 # required by Cluster Autoscaler to automatically adjust
1352 # the size of the cluster and create/delete
1353 # node pools based on the current needs.
1354 &quot;resourceLimits&quot;: [ # Contains global constraints regarding minimum and maximum
1355 # amount of resources in the cluster.
1356 { # Contains information about amount of some resource in the cluster.
1357 # For memory, value should be in GB.
1358 &quot;maximum&quot;: &quot;A String&quot;, # Maximum amount of the resource in the cluster.
1359 &quot;resourceType&quot;: &quot;A String&quot;, # Resource name &quot;cpu&quot;, &quot;memory&quot; or gpu-specific string.
1360 &quot;minimum&quot;: &quot;A String&quot;, # Minimum amount of the resource in the cluster.
1361 },
1362 ],
1363 &quot;autoscalingProfile&quot;: &quot;A String&quot;, # Defines autoscaling behaviour.
1364 &quot;enableNodeAutoprovisioning&quot;: True or False, # Enables automatic node pool creation and deletion.
1365 &quot;autoprovisioningNodePoolDefaults&quot;: { # AutoprovisioningNodePoolDefaults contains defaults for a node pool created # AutoprovisioningNodePoolDefaults contains defaults for a node pool
1366 # created by NAP.
1367 # by NAP.
1368 &quot;oauthScopes&quot;: [ # Scopes that are used by NAP when creating node pools. If oauth_scopes are
1369 # specified, service_account should be empty.
1370 &quot;A String&quot;,
1371 ],
1372 &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.
1373 # node pool.
1374 &quot;autoUpgrade&quot;: True or False, # Whether the nodes will be automatically upgraded.
1375 &quot;autoRepair&quot;: True or False, # Whether the nodes will be automatically repaired.
1376 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool.
1377 # the Auto Upgrades will proceed.
1378 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
1379 # with the description of the upgrade.
1380 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
1381 # with the approximate start time for the upgrades, in
1382 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1383 },
1384 },
1385 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used for NAP created node pools.
1386 # The instance may be scheduled on the specified or newer CPU platform.
1387 # Applicable values are the friendly names of CPU platforms, such as
1388 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Haswell&amp;quot;&lt;/code&gt; or
1389 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Sandy Bridge&amp;quot;&lt;/code&gt;. For more
1390 # information, read [how to specify min CPU
1391 # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
1392 # To unset the min cpu platform field pass &quot;automatic&quot; as field value.
1393 &quot;upgradeSettings&quot;: { # These upgrade settings control the level of parallelism and the level of # Specifies the upgrade settings for NAP created node pools
1394 # disruption caused by an upgrade.
1395 #
1396 # maxUnavailable controls the number of nodes that can be simultaneously
1397 # unavailable.
1398 #
1399 # maxSurge controls the number of additional nodes that can be added to the
1400 # node pool temporarily for the time of the upgrade to increase the number of
1401 # available nodes.
1402 #
1403 # (maxUnavailable + maxSurge) determines the level of parallelism (how many
1404 # nodes are being upgraded at the same time).
1405 #
1406 # Note: upgrades inevitably introduce some disruption since workloads need to
1407 # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
1408 # this holds true. (Disruption stays within the limits of
1409 # PodDisruptionBudget, if it is configured.)
1410 #
1411 # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
1412 # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
1413 # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
1414 # down 3 old (not yet upgraded) nodes at the same time. This ensures that
1415 # there are always at least 4 nodes available.
1416 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size
1417 # of the node pool during the upgrade process.
1418 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during
1419 # the upgrade process. A node is considered available if its status is
1420 # Ready.
1421 },
1422 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs. If
1423 # service_account is specified, scopes should be empty.
1424 },
1425 &quot;autoprovisioningLocations&quot;: [ # The list of Google Compute Engine
1426 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
1427 # NodePool&#x27;s nodes can be created by NAP.
1428 &quot;A String&quot;,
1429 ],
Dan O'Mearadd494642020-05-01 07:42:23 -07001430 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001431 &quot;initialNodeCount&quot;: 42, # The number of nodes to create in this cluster. You must ensure that your
1432 # Compute Engine &lt;a href=&quot;/compute/docs/resource-quotas&quot;&gt;resource quota&lt;/a&gt;
Dan O'Mearadd494642020-05-01 07:42:23 -07001433 # is sufficient for this number of instances. You must also have available
1434 # firewall and routes quota.
1435 # For requests, this field should only be used in lieu of a
Bu Sun Kim65020912020-05-20 12:08:20 -07001436 # &quot;node_pool&quot; object, since this configuration (along with the
1437 # &quot;node_config&quot;) will be used to create a &quot;NodePool&quot; object with an
Dan O'Mearadd494642020-05-01 07:42:23 -07001438 # auto-generated name. Do not use this and a node_pool at the same time.
1439 #
1440 # This field is deprecated, use node_pool.initial_node_count instead.
Bu Sun Kim65020912020-05-20 12:08:20 -07001441 &quot;instanceGroupUrls&quot;: [ # Deprecated. Use node_pools.instance_group_urls.
1442 &quot;A String&quot;,
1443 ],
1444 &quot;privateClusterConfig&quot;: { # Configuration options for private clusters. # Configuration for private cluster.
1445 &quot;privateEndpoint&quot;: &quot;A String&quot;, # Output only. The internal IP address of this cluster&#x27;s master endpoint.
1446 &quot;enablePrivateEndpoint&quot;: True or False, # Whether the master&#x27;s internal IP address is used as the cluster endpoint.
1447 &quot;peeringName&quot;: &quot;A String&quot;, # Output only. The peering name in the customer VPC used by this cluster.
1448 &quot;masterGlobalAccessConfig&quot;: { # Configuration for controlling master global access settings. # Controls master global access settings.
1449 &quot;enabled&quot;: True or False, # Whenever master is accessible globally or not.
1450 },
1451 &quot;publicEndpoint&quot;: &quot;A String&quot;, # Output only. The external IP address of this cluster&#x27;s master endpoint.
1452 &quot;enablePrivateNodes&quot;: True or False, # Whether nodes have internal IP addresses only. If enabled, all nodes are
1453 # given only RFC 1918 private addresses and communicate with the master via
1454 # private networking.
1455 &quot;masterIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP range in CIDR notation to use for the hosted master network. This
1456 # range will be used for assigning internal IP addresses to the master or
1457 # set of masters, as well as the ILB VIP. This range must not overlap with
1458 # any other ranges in use within the cluster&#x27;s network.
1459 },
1460 &quot;shieldedNodes&quot;: { # Configuration of Shielded Nodes feature. # Shielded Nodes configuration.
1461 &quot;enabled&quot;: True or False, # Whether Shielded Nodes features are enabled on all nodes in this cluster.
1462 },
1463 &quot;verticalPodAutoscaling&quot;: { # VerticalPodAutoscaling contains global, per-cluster information # Cluster-level Vertical Pod Autoscaling configuration.
1464 # required by Vertical Pod Autoscaler to automatically adjust
1465 # the resources of pods controlled by it.
1466 &quot;enabled&quot;: True or False, # Enables vertical pod autoscaling.
1467 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001468 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001469 &quot;zone&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the Google Compute Engine
1470 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1471 # cluster resides. This field has been deprecated and replaced by the parent
1472 # field.
1473 &quot;parent&quot;: &quot;A String&quot;, # The parent (project and location) where the cluster will be created.
1474 # Specified in the format `projects/*/locations/*`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001475 }
1476
1477 x__xgafv: string, V1 error format.
1478 Allowed values
1479 1 - v1 error format
1480 2 - v2 error format
1481
1482Returns:
1483 An object of the form:
1484
1485 { # This operation resource represents operations that may have happened or are
1486 # happening on the cluster. All fields are output only.
Bu Sun Kim65020912020-05-20 12:08:20 -07001487 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001488 { # StatusCondition describes why a cluster or a node pool has a certain status
1489 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07001490 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
1491 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001492 },
1493 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001494 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001495 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1496 # or
1497 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1498 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07001499 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
1500 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1501 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
1502 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1503 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
1504 { # StatusCondition describes why a cluster or a node pool has a certain status
1505 # (e.g., ERROR or DEGRADED).
1506 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
1507 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
1508 },
1509 ],
1510 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
1511 &quot;stages&quot;: [ # Substages of an operation or a stage.
1512 # Object with schema name: OperationProgress
1513 ],
1514 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
1515 # Unset for single-stage operations.
1516 &quot;metrics&quot;: [ # Progress metric bundle, for example:
1517 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
1518 # {name: &quot;nodes total&quot;, int_value: 32}]
1519 # or
1520 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
1521 # {name: &quot;progress scale&quot;, double_value: 1.0}]
1522 { # Progress metric is (string, int|float|string) pair.
1523 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
1524 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
1525 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
1526 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
1527 },
1528 ],
1529 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
1530 # Unset for single-stage operations.
1531 },
1532 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
1533 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1534 # operation is taking place. This field is deprecated, use location instead.
1535 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
1536 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
1537 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
1538 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
1539 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
1540 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
1541 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001542 }</pre>
1543</div>
1544
1545<div class="method">
1546 <code class="details" id="delete">delete(projectId, zone, clusterId, name=None, x__xgafv=None)</code>
1547 <pre>Deletes the cluster, including the Kubernetes endpoint and all worker
1548nodes.
1549
1550Firewalls and routes that were configured during cluster creation
1551are also deleted.
1552
1553Other Google Compute Engine resources that might be in use by the cluster,
Bu Sun Kim65020912020-05-20 12:08:20 -07001554such as load balancer resources, are not deleted if they weren&#x27;t present
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001555when the cluster was initially created.
1556
1557Args:
Dan O'Mearadd494642020-05-01 07:42:23 -07001558 projectId: string, Required. Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001559number](https://support.google.com/cloud/answer/6158840).
1560This field has been deprecated and replaced by the name field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001561 zone: string, Required. Deprecated. The name of the Google Compute Engine
1562[zone](https://cloud.google.com/compute/docs/zones#available) in which the
1563cluster resides. This field has been deprecated and replaced by the name
1564field. (required)
1565 clusterId: string, Required. Deprecated. The name of the cluster to delete.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001566This field has been deprecated and replaced by the name field. (required)
1567 name: string, The name (project, location, cluster) of the cluster to delete.
Bu Sun Kim65020912020-05-20 12:08:20 -07001568Specified in the format `projects/*/locations/*/clusters/*`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001569 x__xgafv: string, V1 error format.
1570 Allowed values
1571 1 - v1 error format
1572 2 - v2 error format
1573
1574Returns:
1575 An object of the form:
1576
1577 { # This operation resource represents operations that may have happened or are
1578 # happening on the cluster. All fields are output only.
Bu Sun Kim65020912020-05-20 12:08:20 -07001579 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001580 { # StatusCondition describes why a cluster or a node pool has a certain status
1581 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07001582 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
1583 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001584 },
1585 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001586 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001587 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1588 # or
1589 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1590 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07001591 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
1592 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1593 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
1594 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1595 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
1596 { # StatusCondition describes why a cluster or a node pool has a certain status
1597 # (e.g., ERROR or DEGRADED).
1598 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
1599 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
1600 },
1601 ],
1602 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
1603 &quot;stages&quot;: [ # Substages of an operation or a stage.
1604 # Object with schema name: OperationProgress
1605 ],
1606 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
1607 # Unset for single-stage operations.
1608 &quot;metrics&quot;: [ # Progress metric bundle, for example:
1609 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
1610 # {name: &quot;nodes total&quot;, int_value: 32}]
1611 # or
1612 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
1613 # {name: &quot;progress scale&quot;, double_value: 1.0}]
1614 { # Progress metric is (string, int|float|string) pair.
1615 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
1616 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
1617 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
1618 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
1619 },
1620 ],
1621 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
1622 # Unset for single-stage operations.
1623 },
1624 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
1625 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1626 # operation is taking place. This field is deprecated, use location instead.
1627 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
1628 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
1629 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
1630 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
1631 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
1632 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
1633 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001634 }</pre>
1635</div>
1636
1637<div class="method">
1638 <code class="details" id="get">get(projectId, zone, clusterId, name=None, x__xgafv=None)</code>
1639 <pre>Gets the details for a specific cluster.
1640
1641Args:
Dan O'Mearadd494642020-05-01 07:42:23 -07001642 projectId: string, Required. Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001643number](https://support.google.com/cloud/answer/6158840).
1644This field has been deprecated and replaced by the name field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001645 zone: string, Required. Deprecated. The name of the Google Compute Engine
1646[zone](https://cloud.google.com/compute/docs/zones#available) in which the
1647cluster resides. This field has been deprecated and replaced by the name
1648field. (required)
1649 clusterId: string, Required. Deprecated. The name of the cluster to retrieve.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001650This field has been deprecated and replaced by the name field. (required)
1651 name: string, The name (project, location, cluster) of the cluster to retrieve.
Bu Sun Kim65020912020-05-20 12:08:20 -07001652Specified in the format `projects/*/locations/*/clusters/*`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001653 x__xgafv: string, V1 error format.
1654 Allowed values
1655 1 - v1 error format
1656 2 - v2 error format
1657
1658Returns:
1659 An object of the form:
1660
1661 { # A Google Kubernetes Engine cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -07001662 &quot;defaultMaxPodsConstraint&quot;: { # Constraints applied to pods. # The default constraint on the maximum number of pods that can be run
1663 # simultaneously on a node in the node pool of this cluster. Only honored
1664 # if cluster created with IP Alias support.
1665 &quot;maxPodsPerNode&quot;: &quot;A String&quot;, # Constraint enforced on the max num of pods per node.
1666 },
1667 &quot;network&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
1668 # [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
1669 # to which the cluster is connected. If left unspecified, the `default`
1670 # network will be used. On output this shows the network ID instead of the
1671 # name.
1672 &quot;labelFingerprint&quot;: &quot;A String&quot;, # The fingerprint of the set of labels for this cluster.
1673 &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 -07001674 # containers. This is provisioned from within the `container_ipv4_cidr`
1675 # range. This field will only be set when cluster is in route-based network
1676 # mode.
Bu Sun Kim65020912020-05-20 12:08:20 -07001677 &quot;masterAuthorizedNetworksConfig&quot;: { # Configuration options for the master authorized networks feature. Enabled # The configuration options for master authorized networks feature.
1678 # master authorized networks will disallow all external traffic to access
1679 # Kubernetes master through HTTPS except traffic from the given CIDR blocks,
1680 # Google Compute Engine Public IPs and Google Prod IPs.
1681 &quot;cidrBlocks&quot;: [ # cidr_blocks define up to 10 external networks that could access
1682 # Kubernetes master through HTTPS.
1683 { # CidrBlock contains an optional name and one CIDR block.
1684 &quot;displayName&quot;: &quot;A String&quot;, # display_name is an optional field for users to identify CIDR blocks.
1685 &quot;cidrBlock&quot;: &quot;A String&quot;, # cidr_block must be specified in CIDR notation.
1686 },
1687 ],
1688 &quot;enabled&quot;: True or False, # Whether or not master authorized networks is enabled.
1689 },
1690 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output only] Additional information about the current status of this
1691 # cluster, if available.
1692 &quot;masterAuth&quot;: { # The authentication information for accessing the master endpoint. # The authentication information for accessing the master endpoint.
1693 # If unspecified, the defaults are used:
1694 # For clusters before v1.12, if master_auth is unspecified, `username` will
1695 # be set to &quot;admin&quot;, a random password will be generated, and a client
1696 # certificate will be issued.
1697 # Authentication can be done using HTTP basic auth or using client
1698 # certificates.
1699 &quot;password&quot;: &quot;A String&quot;, # The password to use for HTTP basic authentication to the master endpoint.
1700 # Because the master endpoint is open to the Internet, you should create a
1701 # strong password. If a password is provided for cluster creation, username
1702 # must be non-empty.
1703 &quot;clientCertificateConfig&quot;: { # Configuration for client certificates on the cluster. # Configuration for client certificate authentication on the cluster. For
1704 # clusters before v1.12, if no configuration is specified, a client
1705 # certificate is issued.
1706 &quot;issueClientCertificate&quot;: True or False, # Issue a client certificate.
1707 },
1708 &quot;clientKey&quot;: &quot;A String&quot;, # [Output only] Base64-encoded private key used by clients to authenticate
1709 # to the cluster endpoint.
1710 &quot;clusterCaCertificate&quot;: &quot;A String&quot;,
1711 &quot;clientCertificate&quot;: &quot;A String&quot;, # [Output only] Base64-encoded public certificate used by clients to
1712 # authenticate to the cluster endpoint.
1713 &quot;username&quot;: &quot;A String&quot;, # The username to use for HTTP basic authentication to the master endpoint.
1714 # For clusters v1.6.0 and later, basic authentication can be disabled by
1715 # leaving username unspecified (or setting it to the empty string).
1716 },
1717 &quot;authenticatorGroupsConfig&quot;: { # Configuration for returning group information from authenticators. # Configuration controlling RBAC group membership information.
1718 &quot;enabled&quot;: True or False, # Whether this cluster should return group membership lookups
1719 # during authentication using a group of security groups.
1720 &quot;securityGroup&quot;: &quot;A String&quot;, # The name of the security group-of-groups to be used. Only relevant
1721 # if enabled = true.
1722 },
1723 &quot;masterIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP prefix in CIDR notation to use for the hosted master network.
1724 # This prefix will be used for assigning private IP addresses to the
1725 # master or set of masters, as well as the ILB VIP.
1726 # This field is deprecated, use
1727 # private_cluster_config.master_ipv4_cidr_block instead.
1728 &quot;clusterTelemetry&quot;: { # Telemetry integration for the cluster. # Telemetry integration for the cluster.
1729 &quot;type&quot;: &quot;A String&quot;, # Type of the integration.
1730 },
1731 &quot;currentMasterVersion&quot;: &quot;A String&quot;, # [Output only] The current software version of the master endpoint.
1732 &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.
1733 # cluster, enabling additional functionality.
1734 &quot;networkPolicyConfig&quot;: { # Configuration for NetworkPolicy. This only tracks whether the addon # Configuration for NetworkPolicy. This only tracks whether the addon
1735 # is enabled or not on the Master, it does not track whether network policy
1736 # is enabled for the nodes.
1737 # is enabled or not on the Master, it does not track whether network policy
1738 # is enabled for the nodes.
1739 &quot;disabled&quot;: True or False, # Whether NetworkPolicy is enabled for this cluster.
1740 },
1741 &quot;configConnectorConfig&quot;: { # Configuration options for the Config Connector add-on. # Configuration for the ConfigConnector add-on, a Kubernetes
1742 # extension to manage hosted GCP services through the Kubernetes API
1743 &quot;enabled&quot;: True or False, # Whether Cloud Connector is enabled for this cluster.
1744 },
1745 &quot;cloudRunConfig&quot;: { # Configuration options for the Cloud Run feature. # Configuration for the Cloud Run addon. The `IstioConfig` addon must be
1746 # enabled in order to enable Cloud Run addon. This option can only be enabled
1747 # at cluster creation time.
1748 &quot;disabled&quot;: True or False, # Whether Cloud Run addon is enabled for this cluster.
1749 },
1750 &quot;horizontalPodAutoscaling&quot;: { # Configuration options for the horizontal pod autoscaling feature, which # Configuration for the horizontal pod autoscaling feature, which
1751 # increases or decreases the number of replica pods a replication controller
1752 # has based on the resource usage of the existing pods.
1753 # increases or decreases the number of replica pods a replication controller
1754 # has based on the resource usage of the existing pods.
1755 &quot;disabled&quot;: True or False, # Whether the Horizontal Pod Autoscaling feature is enabled in the cluster.
1756 # When enabled, it ensures that metrics are collected into Stackdriver
1757 # Monitoring.
1758 },
1759 &quot;httpLoadBalancing&quot;: { # Configuration options for the HTTP (L7) load balancing controller addon, # Configuration for the HTTP (L7) load balancing controller addon, which
1760 # makes it easy to set up HTTP load balancers for services in a cluster.
1761 # which makes it easy to set up HTTP load balancers for services in a cluster.
1762 &quot;disabled&quot;: True or False, # Whether the HTTP Load Balancing controller is enabled in the cluster.
1763 # When enabled, it runs a small pod in the cluster that manages the load
1764 # balancers.
1765 },
1766 &quot;kubernetesDashboard&quot;: { # Configuration for the Kubernetes Dashboard. # Configuration for the Kubernetes Dashboard.
1767 # This addon is deprecated, and will be disabled in 1.15. It is recommended
1768 # to use the Cloud Console to manage and monitor your Kubernetes clusters,
1769 # workloads and applications. For more information, see:
1770 # https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
1771 &quot;disabled&quot;: True or False, # Whether the Kubernetes Dashboard is enabled for this cluster.
1772 },
1773 &quot;dnsCacheConfig&quot;: { # Configuration for NodeLocal DNSCache # Configuration for NodeLocalDNS, a dns cache running on cluster nodes
1774 &quot;enabled&quot;: True or False, # Whether NodeLocal DNSCache is enabled for this cluster.
1775 },
1776 &quot;kalmConfig&quot;: { # Configuration options for the KALM addon. # Configuration for the KALM addon, which manages the lifecycle of k8s
1777 # applications.
1778 &quot;enabled&quot;: True or False, # Whether KALM is enabled for this cluster.
1779 },
1780 &quot;gcePersistentDiskCsiDriverConfig&quot;: { # Configuration for the Compute Engine PD CSI driver. This option can only be # Configuration for the Compute Engine Persistent Disk CSI driver.
1781 # enabled at cluster creation time.
1782 &quot;enabled&quot;: True or False, # Whether the Compute Engine PD CSI driver is enabled for this cluster.
1783 },
1784 &quot;istioConfig&quot;: { # Configuration options for Istio addon. # Configuration for Istio, an open platform to connect, manage, and secure
1785 # microservices.
1786 &quot;disabled&quot;: True or False, # Whether Istio is enabled for this cluster.
1787 &quot;auth&quot;: &quot;A String&quot;, # The specified Istio auth mode, either none, or mutual TLS.
1788 },
1789 },
1790 &quot;podSecurityPolicyConfig&quot;: { # Configuration for the PodSecurityPolicy feature. # Configuration for the PodSecurityPolicy feature.
1791 &quot;enabled&quot;: True or False, # Enable the PodSecurityPolicy controller for this cluster. If enabled, pods
1792 # must be valid under a PodSecurityPolicy to be created.
1793 },
1794 &quot;currentNodeVersion&quot;: &quot;A String&quot;, # [Output only] Deprecated, use
1795 # [NodePool.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1beta1/projects.locations.clusters.nodePools)
1796 # instead. The current version of the node software components.
1797 # If they are currently at multiple versions because they&#x27;re in the process
1798 # of being upgraded, this reflects the minimum version of all nodes.
1799 &quot;subnetwork&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
1800 # [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which
1801 # the cluster is connected. On output this shows the subnetwork ID instead of
1802 # the name.
1803 &quot;maintenancePolicy&quot;: { # MaintenancePolicy defines the maintenance policy to be used for the cluster. # Configure the maintenance policy for this cluster.
1804 &quot;resourceVersion&quot;: &quot;A String&quot;, # A hash identifying the version of this policy, so that updates to fields of
1805 # the policy won&#x27;t accidentally undo intermediate changes (and so that users
1806 # of the API unaware of some fields won&#x27;t accidentally remove other fields).
1807 # Make a &lt;code&gt;get()&lt;/code&gt; request to the cluster to get the current
1808 # resource version and include it with requests to set the policy.
1809 &quot;window&quot;: { # MaintenanceWindow defines the maintenance window to be used for the cluster. # Specifies the maintenance window in which maintenance may be performed.
1810 &quot;dailyMaintenanceWindow&quot;: { # Time window specified for daily maintenance operations. # DailyMaintenanceWindow specifies a daily maintenance operation window.
1811 &quot;duration&quot;: &quot;A String&quot;, # [Output only] Duration of the time window, automatically chosen to be
1812 # smallest possible in the given scenario.
1813 &quot;startTime&quot;: &quot;A String&quot;, # Time within the maintenance window to start the maintenance operations.
1814 # It must be in format &quot;HH:MM&quot;, where HH : [00-23] and MM : [00-59] GMT.
1815 },
1816 &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 -07001817 # maintenance to occur. The time windows may be overlapping. If no
1818 # maintenance windows are set, maintenance can occur at any time.
Bu Sun Kim65020912020-05-20 12:08:20 -07001819 &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 -07001820 # this window reccurs. They go on for the span of time between the start and
1821 # end time.
1822 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001823 # For example, to have something repeat every weekday, you&#x27;d use:
Dan O'Mearadd494642020-05-01 07:42:23 -07001824 # &lt;code&gt;FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR&lt;/code&gt;
1825 # To repeat some window daily (equivalent to the DailyMaintenanceWindow):
1826 # &lt;code&gt;FREQ=DAILY&lt;/code&gt;
1827 # For the first weekend of every month:
1828 # &lt;code&gt;FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU&lt;/code&gt;
1829 # This specifies how frequently the window starts. Eg, if you wanted to have
Bu Sun Kim65020912020-05-20 12:08:20 -07001830 # a 9-5 UTC-4 window every weekday, you&#x27;d use something like:
Dan O'Mearadd494642020-05-01 07:42:23 -07001831 # &lt;code&gt;
1832 # start time = 2019-01-01T09:00:00-0400
1833 # end time = 2019-01-01T17:00:00-0400
1834 # recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
1835 # &lt;/code&gt;
1836 # Windows can span multiple days. Eg, to make the window encompass every
1837 # weekend from midnight Saturday till the last minute of Sunday UTC:
1838 # &lt;code&gt;
1839 # start time = 2019-01-05T00:00:00Z
1840 # end time = 2019-01-07T23:59:00Z
1841 # recurrence = FREQ=WEEKLY;BYDAY=SA
1842 # &lt;/code&gt;
Bu Sun Kim65020912020-05-20 12:08:20 -07001843 # Note the start and end time&#x27;s specific dates are largely arbitrary except
Dan O'Mearadd494642020-05-01 07:42:23 -07001844 # to specify duration of the window and when it first starts.
1845 # The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.
Bu Sun Kim65020912020-05-20 12:08:20 -07001846 &quot;window&quot;: { # Represents an arbitrary window of time. # The window of the first recurrence.
1847 &quot;endTime&quot;: &quot;A String&quot;, # The time that the window ends. The end time should take place after the
Dan O'Mearadd494642020-05-01 07:42:23 -07001848 # start time.
Bu Sun Kim65020912020-05-20 12:08:20 -07001849 &quot;startTime&quot;: &quot;A String&quot;, # The time that the window first starts.
Dan O'Mearadd494642020-05-01 07:42:23 -07001850 },
1851 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001852 &quot;maintenanceExclusions&quot;: { # Exceptions to maintenance window. Non-emergency maintenance should not
Dan O'Mearadd494642020-05-01 07:42:23 -07001853 # occur in these windows.
Bu Sun Kim65020912020-05-20 12:08:20 -07001854 &quot;a_key&quot;: { # Represents an arbitrary window of time.
1855 &quot;endTime&quot;: &quot;A String&quot;, # The time that the window ends. The end time should take place after the
Dan O'Mearadd494642020-05-01 07:42:23 -07001856 # start time.
Bu Sun Kim65020912020-05-20 12:08:20 -07001857 &quot;startTime&quot;: &quot;A String&quot;, # The time that the window first starts.
Dan O'Mearadd494642020-05-01 07:42:23 -07001858 },
1859 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001860 },
1861 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001862 &quot;resourceLabels&quot;: { # The resource labels for the cluster to use to annotate any related
1863 # Google Compute Engine resources.
1864 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001865 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001866 &quot;initialClusterVersion&quot;: &quot;A String&quot;, # The initial Kubernetes version for this cluster. Valid versions are those
1867 # found in validMasterVersions returned by getServerConfig. The version can
1868 # be upgraded over time; such upgrades are reflected in
1869 # currentMasterVersion and currentNodeVersion.
Dan O'Mearadd494642020-05-01 07:42:23 -07001870 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001871 # Users may specify either explicit versions offered by
1872 # Kubernetes Engine or version aliases, which have the following behavior:
Dan O'Mearadd494642020-05-01 07:42:23 -07001873 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001874 # - &quot;latest&quot;: picks the highest valid Kubernetes version
1875 # - &quot;1.X&quot;: picks the highest valid patch+gke.N patch in the 1.X version
1876 # - &quot;1.X.Y&quot;: picks the highest valid gke.N patch in the 1.X.Y version
1877 # - &quot;1.X.Y-gke.N&quot;: picks an explicit Kubernetes version
1878 # - &quot;&quot;,&quot;-&quot;: picks the default Kubernetes version
1879 &quot;ipAllocationPolicy&quot;: { # Configuration for controlling how IPs are allocated in the cluster. # Configuration for cluster IP allocation.
1880 &quot;useRoutes&quot;: True or False, # Whether routes will be used for pod IPs in the cluster.
1881 # This is used in conjunction with use_ip_aliases. It cannot be true if
1882 # use_ip_aliases is true. If both use_ip_aliases and use_routes are false,
1883 # then the server picks the default IP allocation mode
1884 &quot;servicesIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP address range of the services IPs in this cluster. If blank, a range
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001885 # will be automatically chosen with the default size.
1886 #
1887 # This field is only applicable when `use_ip_aliases` is true.
1888 #
1889 # Set to blank to have a range chosen with the default size.
1890 #
1891 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
1892 # netmask.
1893 #
1894 # Set to a
1895 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
1896 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
1897 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
1898 # to use.
Bu Sun Kim65020912020-05-20 12:08:20 -07001899 &quot;allowRouteOverlap&quot;: True or False, # If true, allow allocation of cluster CIDR ranges that overlap with certain
1900 # kinds of network routes. By default we do not allow cluster CIDR ranges to
1901 # intersect with any user declared routes. With allow_route_overlap == true,
1902 # we allow overlapping with CIDR ranges that are larger than the cluster CIDR
1903 # range.
1904 #
1905 # If this field is set to true, then cluster and services CIDRs must be
1906 # fully-specified (e.g. `10.96.0.0/14`, but not `/14`), which means:
1907 # 1) When `use_ip_aliases` is true, `cluster_ipv4_cidr_block` and
1908 # `services_ipv4_cidr_block` must be fully-specified.
1909 # 2) When `use_ip_aliases` is false, `cluster.cluster_ipv4_cidr` muse be
1910 # fully-specified.
1911 &quot;nodeIpv4Cidr&quot;: &quot;A String&quot;, # This field is deprecated, use node_ipv4_cidr_block.
1912 &quot;clusterIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP address range for the cluster pod IPs. If this field is set, then
1913 # `cluster.cluster_ipv4_cidr` must be left blank.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001914 #
1915 # This field is only applicable when `use_ip_aliases` is true.
Bu Sun Kim65020912020-05-20 12:08:20 -07001916 #
1917 # Set to blank to have a range chosen with the default size.
1918 #
1919 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
1920 # netmask.
1921 #
1922 # Set to a
1923 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
1924 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
1925 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
1926 # to use.
1927 &quot;clusterSecondaryRangeName&quot;: &quot;A String&quot;, # The name of the secondary range to be used for the cluster CIDR
1928 # block. The secondary range will be used for pod IP
1929 # addresses. This must be an existing secondary range associated
1930 # with the cluster subnetwork.
1931 #
1932 # This field is only applicable with use_ip_aliases and
1933 # create_subnetwork is false.
1934 &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 -07001935 #
1936 # This is applicable only if `create_subnetwork` is true.
1937 #
1938 # Set to blank to have a range chosen with the default size.
1939 #
1940 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
1941 # netmask.
1942 #
1943 # Set to a
1944 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
1945 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
1946 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
1947 # to use.
Bu Sun Kim65020912020-05-20 12:08:20 -07001948 &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 -07001949 # range will be automatically chosen with the default size.
1950 #
1951 # This field is only applicable when `use_ip_aliases` is true.
1952 #
1953 # If unspecified, the range will use the default size.
1954 #
1955 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
1956 # netmask.
1957 #
1958 # Set to a
1959 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
1960 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
1961 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
1962 # to use.
Dan O'Mearadd494642020-05-01 07:42:23 -07001963 # This field is deprecated, use cluster.tpu_config.ipv4_cidr_block instead.
Bu Sun Kim65020912020-05-20 12:08:20 -07001964 &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 -07001965 # CIDR block. The secondary range will be used for service
1966 # ClusterIPs. This must be an existing secondary range associated
1967 # with the cluster subnetwork.
1968 #
1969 # This field is only applicable with use_ip_aliases and
1970 # create_subnetwork is false.
Bu Sun Kim65020912020-05-20 12:08:20 -07001971 &quot;useIpAliases&quot;: True or False, # Whether alias IPs will be used for pod IPs in the cluster.
1972 # This is used in conjunction with use_routes. It cannot
1973 # be true if use_routes is true. If both use_ip_aliases and use_routes are
1974 # false, then the server picks the default IP allocation mode
1975 &quot;createSubnetwork&quot;: True or False, # Whether a new subnetwork will be created automatically for the cluster.
1976 #
1977 # This field is only applicable when `use_ip_aliases` is true.
1978 &quot;subnetworkName&quot;: &quot;A String&quot;, # A custom subnetwork name to be used if `create_subnetwork` is true. If
1979 # this field is empty, then an automatic name will be chosen for the new
1980 # subnetwork.
1981 &quot;clusterIpv4Cidr&quot;: &quot;A String&quot;, # This field is deprecated, use cluster_ipv4_cidr_block.
1982 &quot;servicesIpv4Cidr&quot;: &quot;A String&quot;, # This field is deprecated, use services_ipv4_cidr_block.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001983 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001984 &quot;legacyAbac&quot;: { # Configuration for the legacy Attribute Based Access Control authorization # Configuration for the legacy ABAC authorization mode.
1985 # mode.
1986 &quot;enabled&quot;: True or False, # Whether the ABAC authorizer is enabled for this cluster. When enabled,
1987 # identities in the system, including service accounts, nodes, and
1988 # controllers, will have statically granted permissions beyond those
1989 # provided by the RBAC configuration or IAM.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001990 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001991 &quot;enableTpu&quot;: True or False, # Enable the ability to use Cloud TPUs in this cluster.
1992 # This field is deprecated, use tpu_config.enabled instead.
1993 &quot;resourceUsageExportConfig&quot;: { # Configuration for exporting cluster resource usages. # Configuration for exporting resource usages. Resource usage export is
1994 # disabled when this config unspecified.
1995 &quot;enableNetworkEgressMetering&quot;: True or False, # Whether to enable network egress metering for this cluster. If enabled, a
1996 # daemonset will be created in the cluster to meter network egress traffic.
1997 &quot;consumptionMeteringConfig&quot;: { # Parameters for controlling consumption metering. # Configuration to enable resource consumption metering.
1998 &quot;enabled&quot;: True or False, # Whether to enable consumption metering for this cluster. If enabled, a
1999 # second BigQuery table will be created to hold resource consumption
2000 # records.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002001 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002002 &quot;bigqueryDestination&quot;: { # Parameters for using BigQuery as the destination of resource usage export. # Configuration to use BigQuery as usage export destination.
2003 &quot;datasetId&quot;: &quot;A String&quot;, # The ID of a BigQuery Dataset.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002004 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002005 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002006 &quot;locations&quot;: [ # The list of Google Compute Engine
2007 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
2008 # cluster&#x27;s nodes should be located.
2009 &quot;A String&quot;,
2010 ],
2011 &quot;nodePools&quot;: [ # The node pools associated with this cluster.
2012 # 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 -07002013 # specified.
Bu Sun Kim65020912020-05-20 12:08:20 -07002014 { # NodePool contains the name and configuration for a cluster&#x27;s node pool.
2015 # 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 -07002016 # specification, under the control of the cluster master. They may have a set
2017 # of Kubernetes labels applied to them, which may be used to reference them
2018 # during pod scheduling. They may also be resized up or down, to accommodate
2019 # the workload.
Bu Sun Kim65020912020-05-20 12:08:20 -07002020 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output only] Additional information about the current status of this
2021 # node pool instance, if available.
2022 &quot;autoscaling&quot;: { # NodePoolAutoscaling contains information required by cluster autoscaler to # Autoscaler configuration for this NodePool. Autoscaler is enabled
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002023 # only if a valid configuration is present.
2024 # adjust the size of the node pool to the current cluster usage.
Bu Sun Kim65020912020-05-20 12:08:20 -07002025 &quot;minNodeCount&quot;: 42, # Minimum number of nodes in the NodePool. Must be &gt;= 1 and &lt;=
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002026 # max_node_count.
Bu Sun Kim65020912020-05-20 12:08:20 -07002027 &quot;autoprovisioned&quot;: True or False, # Can this node pool be deleted automatically.
2028 &quot;enabled&quot;: True or False, # Is autoscaling enabled for this node pool.
2029 &quot;maxNodeCount&quot;: 42, # Maximum number of nodes in the NodePool. Must be &gt;= min_node_count. There
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002030 # has to enough quota to scale up the cluster.
2031 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002032 &quot;initialNodeCount&quot;: 42, # The initial node count for the pool. You must ensure that your
2033 # Compute Engine &lt;a href=&quot;/compute/docs/resource-quotas&quot;&gt;resource quota&lt;/a&gt;
2034 # is sufficient for this number of instances. You must also have available
2035 # firewall and routes quota.
2036 &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 -07002037 # disruption caused by an upgrade.
2038 #
2039 # maxUnavailable controls the number of nodes that can be simultaneously
2040 # unavailable.
2041 #
2042 # maxSurge controls the number of additional nodes that can be added to the
2043 # node pool temporarily for the time of the upgrade to increase the number of
2044 # available nodes.
2045 #
2046 # (maxUnavailable + maxSurge) determines the level of parallelism (how many
2047 # nodes are being upgraded at the same time).
2048 #
2049 # Note: upgrades inevitably introduce some disruption since workloads need to
2050 # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
2051 # this holds true. (Disruption stays within the limits of
2052 # PodDisruptionBudget, if it is configured.)
2053 #
2054 # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
2055 # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
2056 # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
2057 # down 3 old (not yet upgraded) nodes at the same time. This ensures that
2058 # there are always at least 4 nodes available.
Bu Sun Kim65020912020-05-20 12:08:20 -07002059 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size
Dan O'Mearadd494642020-05-01 07:42:23 -07002060 # of the node pool during the upgrade process.
Bu Sun Kim65020912020-05-20 12:08:20 -07002061 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during
Dan O'Mearadd494642020-05-01 07:42:23 -07002062 # the upgrade process. A node is considered available if its status is
2063 # Ready.
2064 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002065 &quot;selfLink&quot;: &quot;A String&quot;, # [Output only] Server-defined URL for the resource.
2066 &quot;locations&quot;: [ # The list of Google Compute Engine
2067 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
2068 # NodePool&#x27;s nodes should be located.
2069 &quot;A String&quot;,
2070 ],
2071 &quot;instanceGroupUrls&quot;: [ # [Output only] The resource URLs of the [managed instance
Dan O'Mearadd494642020-05-01 07:42:23 -07002072 # groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
2073 # associated with this node pool.
Bu Sun Kim65020912020-05-20 12:08:20 -07002074 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07002075 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002076 &quot;version&quot;: &quot;A String&quot;, # The version of the Kubernetes of this node.
2077 &quot;podIpv4CidrSize&quot;: 42, # [Output only] The pod CIDR block size per node in this node pool.
2078 &quot;conditions&quot;: [ # Which conditions caused the current node pool state.
2079 { # StatusCondition describes why a cluster or a node pool has a certain status
2080 # (e.g., ERROR or DEGRADED).
2081 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
2082 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Dan O'Mearadd494642020-05-01 07:42:23 -07002083 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002084 ],
2085 &quot;status&quot;: &quot;A String&quot;, # [Output only] The status of the nodes in this pool instance.
2086 &quot;config&quot;: { # Parameters that describe the nodes in a cluster. # The node configuration of the pool.
2087 &quot;diskSizeGb&quot;: 42, # Size of the disk attached to each node, specified in GB.
2088 # The smallest allowed disk size is 10GB.
2089 #
2090 # If unspecified, the default disk size is 100GB.
2091 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to # The workload metadata configuration for this node.
2092 # workloads on the node pool.
2093 &quot;nodeMetadata&quot;: &quot;A String&quot;, # NodeMetadata is the configuration for how to expose metadata to the
2094 # workloads running on the node.
2095 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running
2096 # on the node pool.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002097 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002098 &quot;accelerators&quot;: [ # A list of hardware accelerators to be attached to each node.
2099 # See https://cloud.google.com/compute/docs/gpus for more information about
2100 # support for GPUs.
2101 { # AcceleratorConfig represents a Hardware Accelerator request.
2102 &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of the accelerator cards exposed to an instance.
2103 &quot;acceleratorType&quot;: &quot;A String&quot;, # The accelerator type resource name. List of supported accelerators
2104 # [here](https://cloud.google.com/compute/docs/gpus)
2105 },
2106 ],
2107 &quot;machineType&quot;: &quot;A String&quot;, # The name of a Google Compute Engine [machine
Dan O'Mearadd494642020-05-01 07:42:23 -07002108 # type](https://cloud.google.com/compute/docs/machine-types) (e.g.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002109 # `n1-standard-1`).
2110 #
2111 # If unspecified, the default machine type is
2112 # `n1-standard-1`.
Bu Sun Kim65020912020-05-20 12:08:20 -07002113 &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;)
2114 #
2115 # If unspecified, the default disk type is &#x27;pd-standard&#x27;
2116 &quot;bootDiskKmsKey&quot;: &quot;A String&quot;, #
2117 # The Customer Managed Encryption Key used to encrypt the boot disk attached
2118 # to each node in the node pool. This should be of the form
2119 # projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
2120 # For more information about protecting resources with Cloud KMS Keys please
2121 # see:
2122 # https://cloud.google.com/compute/docs/disks/customer-managed-encryption
2123 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
2124 &quot;enableSecureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled.
2125 #
2126 # Secure Boot helps ensure that the system only runs authentic software by
2127 # verifying the digital signature of all boot components, and halting the
2128 # boot process if signature verification fails.
2129 &quot;enableIntegrityMonitoring&quot;: True or False, # Defines whether the instance has integrity monitoring enabled.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002130 #
2131 # Enables monitoring and attestation of the boot integrity of the instance.
2132 # The attestation is performed against the integrity policy baseline. This
2133 # baseline is initially derived from the implicitly trusted boot image when
2134 # the instance is created.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002135 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002136 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used by this instance. The instance may be
2137 # scheduled on the specified or newer CPU platform. Applicable values are the
2138 # friendly names of CPU platforms, such as
2139 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Haswell&amp;quot;&lt;/code&gt; or
2140 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Sandy Bridge&amp;quot;&lt;/code&gt;. For more
2141 # information, read [how to specify min CPU
2142 # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
2143 &quot;preemptible&quot;: True or False, # Whether the nodes are created as preemptible VM instances. See:
2144 # https://cloud.google.com/compute/docs/instances/preemptible for more
2145 # inforamtion about preemptible VM instances.
2146 &quot;localSsdCount&quot;: 42, # The number of local SSD disks to be attached to the node.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002147 #
Bu Sun Kim65020912020-05-20 12:08:20 -07002148 # The limit for this value is dependent upon the maximum number of
2149 # disks available on a machine per zone. See:
2150 # https://cloud.google.com/compute/docs/disks/local-ssd
2151 # for more information.
2152 &quot;sandboxConfig&quot;: { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node.
2153 &quot;type&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node.
2154 &quot;sandboxType&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node (e.g. &#x27;gvisor&#x27;)
2155 },
2156 &quot;metadata&quot;: { # The metadata key/value pairs assigned to instances in the cluster.
2157 #
2158 # Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
2159 # in length. These are reflected as part of a URL in the metadata server.
2160 # Additionally, to avoid ambiguity, keys must not conflict with any other
2161 # metadata keys for the project or be one of the reserved keys:
2162 # &quot;cluster-location&quot;
2163 # &quot;cluster-name&quot;
2164 # &quot;cluster-uid&quot;
2165 # &quot;configure-sh&quot;
2166 # &quot;containerd-configure-sh&quot;
2167 # &quot;enable-oslogin&quot;
2168 # &quot;gci-ensure-gke-docker&quot;
2169 # &quot;gci-metrics-enabled&quot;
2170 # &quot;gci-update-strategy&quot;
2171 # &quot;instance-template&quot;
2172 # &quot;kube-env&quot;
2173 # &quot;startup-script&quot;
2174 # &quot;user-data&quot;
2175 # &quot;disable-address-manager&quot;
2176 # &quot;windows-startup-script-ps1&quot;
2177 # &quot;common-psm1&quot;
2178 # &quot;k8s-node-setup-psm1&quot;
2179 # &quot;install-ssh-psm1&quot;
2180 # &quot;user-profile-psm1&quot;
2181 # &quot;serial-port-logging-enable&quot;
2182 # Values are free-form strings, and only have meaning as interpreted by
2183 # the image running in the instance. The only restriction placed on them is
2184 # that each value&#x27;s size must be less than or equal to 32 KB.
2185 #
2186 # The total size of all keys and values must be less than 512 KB.
2187 &quot;a_key&quot;: &quot;A String&quot;,
2188 },
2189 &quot;reservationAffinity&quot;: { # [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) # The optional reservation affinity. Setting this field will apply
2190 # the specified [Zonal Compute
2191 # Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
2192 # to this node pool.
2193 # is the configuration of desired reservation which instances could take
2194 # capacity from.
2195 &quot;key&quot;: &quot;A String&quot;, # Corresponds to the label key of a reservation resource. To target a
2196 # SPECIFIC_RESERVATION by name, specify &quot;googleapis.com/reservation-name&quot; as
2197 # the key and specify the name of your reservation as its value.
2198 &quot;values&quot;: [ # Corresponds to the label value(s) of reservation resource(s).
2199 &quot;A String&quot;,
2200 ],
2201 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Corresponds to the type of reservation consumption.
2202 },
2203 &quot;tags&quot;: [ # The list of instance tags applied to all nodes. Tags are used to identify
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002204 # valid sources or targets for network firewalls and are specified by
2205 # the client during cluster or node pool creation. Each tag within the list
2206 # must comply with RFC1035.
Bu Sun Kim65020912020-05-20 12:08:20 -07002207 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002208 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002209 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs.
Dan O'Mearadd494642020-05-01 07:42:23 -07002210 # Specify the email address of the Service Account; otherwise, if no Service
Bu Sun Kim65020912020-05-20 12:08:20 -07002211 # Account is specified, the &quot;default&quot; service account is used.
2212 &quot;imageType&quot;: &quot;A String&quot;, # The image type to use for this node. Note that for a given image type,
2213 # the latest version of it will be used.
2214 &quot;oauthScopes&quot;: [ # The set of Google API scopes to be made available on all of the
2215 # node VMs under the &quot;default&quot; service account.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002216 #
2217 # The following scopes are recommended, but not required, and by default are
2218 # not included:
2219 #
2220 # * `https://www.googleapis.com/auth/compute` is required for mounting
2221 # persistent storage on your nodes.
2222 # * `https://www.googleapis.com/auth/devstorage.read_only` is required for
2223 # communicating with **gcr.io**
Dan O'Mearadd494642020-05-01 07:42:23 -07002224 # (the [Google Container
2225 # Registry](https://cloud.google.com/container-registry/)).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002226 #
2227 # If unspecified, no scopes are added, unless Cloud Logging or Cloud
2228 # Monitoring are enabled, in which case their required scopes will be added.
Bu Sun Kim65020912020-05-20 12:08:20 -07002229 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002230 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002231 &quot;taints&quot;: [ # List of kubernetes taints to be applied to each node.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002232 #
2233 # For more information, including usage and the valid values, see:
2234 # https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
2235 { # Kubernetes taint is comprised of three fields: key, value, and effect. Effect
2236 # can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute.
2237 #
Bu Sun Kim65020912020-05-20 12:08:20 -07002238 # See
2239 # [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration)
2240 # for more information, including usage and the valid values.
2241 &quot;key&quot;: &quot;A String&quot;, # Key for taint.
2242 &quot;value&quot;: &quot;A String&quot;, # Value for taint.
2243 &quot;effect&quot;: &quot;A String&quot;, # Effect for taint.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002244 },
2245 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002246 &quot;labels&quot;: { # The map of Kubernetes labels (key/value pairs) to be applied to each node.
2247 # These will added in addition to any default label(s) that
2248 # Kubernetes may apply to the node.
2249 # In case of conflict in label keys, the applied set may differ depending on
2250 # the Kubernetes version -- it&#x27;s best to assume the behavior is undefined
2251 # and conflicts should be avoided.
2252 # For more information, including usage and the valid values, see:
2253 # https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
2254 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002255 },
2256 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002257 &quot;name&quot;: &quot;A String&quot;, # The name of the node pool.
2258 &quot;maxPodsConstraint&quot;: { # Constraints applied to pods. # The constraint on the maximum number of pods that can be run
2259 # simultaneously on a node in the node pool.
2260 &quot;maxPodsPerNode&quot;: &quot;A String&quot;, # Constraint enforced on the max num of pods per node.
2261 },
2262 &quot;management&quot;: { # NodeManagement defines the set of node management services turned on for the # NodeManagement configuration for this NodePool.
2263 # node pool.
2264 &quot;autoUpgrade&quot;: True or False, # Whether the nodes will be automatically upgraded.
2265 &quot;autoRepair&quot;: True or False, # Whether the nodes will be automatically repaired.
2266 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool.
2267 # the Auto Upgrades will proceed.
2268 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
2269 # with the description of the upgrade.
2270 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
2271 # with the approximate start time for the upgrades, in
2272 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
2273 },
2274 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002275 },
2276 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002277 &quot;selfLink&quot;: &quot;A String&quot;, # [Output only] Server-defined URL for the resource.
2278 &quot;servicesIpv4Cidr&quot;: &quot;A String&quot;, # [Output only] The IP address range of the Kubernetes services in
2279 # this cluster, in
2280 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
2281 # notation (e.g. `1.2.3.4/29`). Service addresses are
2282 # typically put in the last `/16` from the container CIDR.
2283 &quot;networkPolicy&quot;: { # Configuration options for the NetworkPolicy feature. # Configuration options for the NetworkPolicy feature.
2284 # https://kubernetes.io/docs/concepts/services-networking/networkpolicies/
2285 &quot;enabled&quot;: True or False, # Whether network policy is enabled on the cluster.
2286 &quot;provider&quot;: &quot;A String&quot;, # The selected network policy provider.
2287 },
2288 &quot;releaseChannel&quot;: { # ReleaseChannel indicates which release channel a cluster is # Release channel configuration.
2289 # subscribed to. Release channels are arranged in order of risk and
2290 # frequency of updates.
2291 #
2292 # When a cluster is subscribed to a release channel, Google maintains
2293 # both the master version and the node version. Node auto-upgrade
2294 # defaults to true and cannot be disabled. Updates to version related
2295 # fields (e.g. current_master_version) return an error.
2296 &quot;channel&quot;: &quot;A String&quot;, # channel specifies which release channel the cluster is subscribed to.
2297 },
2298 &quot;enableKubernetesAlpha&quot;: True or False, # Kubernetes alpha features are enabled on this cluster. This includes alpha
2299 # API groups (e.g. v1beta1) and features that may not be production ready in
2300 # the kubernetes version of the master and nodes.
2301 # The cluster has no SLA for uptime and master/node upgrades are disabled.
2302 # Alpha enabled clusters are automatically deleted thirty days after
2303 # creation.
2304 &quot;description&quot;: &quot;A String&quot;, # An optional description of this cluster.
2305 &quot;conditions&quot;: [ # Which conditions caused the current cluster state.
2306 { # StatusCondition describes why a cluster or a node pool has a certain status
2307 # (e.g., ERROR or DEGRADED).
2308 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
2309 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
2310 },
2311 ],
2312 &quot;privateCluster&quot;: True or False, # If this is a private cluster setup. Private clusters are clusters that, by
2313 # default have no external IP addresses on the nodes and where nodes and the
2314 # master communicate over private IP addresses.
2315 # This field is deprecated, use private_cluster_config.enable_private_nodes
2316 # instead.
2317 &quot;currentNodeCount&quot;: 42, # [Output only] The number of nodes currently in the cluster. Deprecated.
2318 # Call Kubernetes API directly to retrieve node information.
2319 &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 -07002320 # Currently available options:
2321 #
Bu Sun Kim65020912020-05-20 12:08:20 -07002322 # * &quot;monitoring.googleapis.com/kubernetes&quot; - The Cloud Monitoring
Dan O'Mearadd494642020-05-01 07:42:23 -07002323 # service with a Kubernetes-native resource model
2324 # * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
2325 # longer available as of GKE 1.15).
2326 # * `none` - No metrics will be exported from the cluster.
2327 #
2328 # If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
2329 # used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
Bu Sun Kim65020912020-05-20 12:08:20 -07002330 &quot;databaseEncryption&quot;: { # Configuration of etcd encryption. # Configuration of etcd encryption.
2331 &quot;state&quot;: &quot;A String&quot;, # Denotes the state of etcd encryption.
2332 &quot;keyName&quot;: &quot;A String&quot;, # Name of CloudKMS key to use for the encryption of secrets in etcd.
Dan O'Mearadd494642020-05-01 07:42:23 -07002333 # Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002334 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002335 &quot;binaryAuthorization&quot;: { # Configuration for Binary Authorization. # Configuration for Binary Authorization.
2336 &quot;enabled&quot;: True or False, # Enable Binary Authorization for this cluster. If enabled, all container
2337 # images will be validated by Google Binauthz.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002338 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002339 &quot;tpuIpv4CidrBlock&quot;: &quot;A String&quot;, # [Output only] The IP address range of the Cloud TPUs in this cluster, in
2340 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
2341 # notation (e.g. `1.2.3.4/29`).
2342 &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
2343 # policies.
2344 # policies.
2345 &quot;identityNamespace&quot;: &quot;A String&quot;, # IAM Identity Namespace to attach all Kubernetes Service Accounts to.
2346 &quot;workloadPool&quot;: &quot;A String&quot;, # The workload pool to attach all Kubernetes service accounts to.
2347 },
2348 &quot;zone&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07002349 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
2350 # cluster resides. This field is deprecated, use location instead.
Bu Sun Kim65020912020-05-20 12:08:20 -07002351 &quot;loggingService&quot;: &quot;A String&quot;, # The logging service the cluster should use to write logs.
2352 # Currently available options:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002353 #
Bu Sun Kim65020912020-05-20 12:08:20 -07002354 # * `logging.googleapis.com/kubernetes` - The Cloud Logging
2355 # service with a Kubernetes-native resource model
2356 # * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
2357 # available as of GKE 1.15).
2358 # * `none` - no logs will be exported from the cluster.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002359 #
Bu Sun Kim65020912020-05-20 12:08:20 -07002360 # If left as an empty string,`logging.googleapis.com/kubernetes` will be
2361 # used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
2362 &quot;expireTime&quot;: &quot;A String&quot;, # [Output only] The time the cluster will be automatically
2363 # deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
2364 &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 -07002365 # For requests, this field should only be used in lieu of a
Bu Sun Kim65020912020-05-20 12:08:20 -07002366 # &quot;node_pool&quot; object, since this configuration (along with the
2367 # &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 -07002368 # auto-generated name. Do not use this and a node_pool at the same time.
2369 # For responses, this field will be populated with the node configuration of
2370 # the first node pool. (For configuration of each node pool, see
2371 # `node_pool.config`)
2372 #
2373 # If unspecified, the defaults are used.
2374 # This field is deprecated, use node_pool.config instead.
Bu Sun Kim65020912020-05-20 12:08:20 -07002375 &quot;diskSizeGb&quot;: 42, # Size of the disk attached to each node, specified in GB.
2376 # The smallest allowed disk size is 10GB.
2377 #
2378 # If unspecified, the default disk size is 100GB.
2379 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to # The workload metadata configuration for this node.
2380 # workloads on the node pool.
2381 &quot;nodeMetadata&quot;: &quot;A String&quot;, # NodeMetadata is the configuration for how to expose metadata to the
2382 # workloads running on the node.
2383 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running
2384 # on the node pool.
Dan O'Mearadd494642020-05-01 07:42:23 -07002385 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002386 &quot;accelerators&quot;: [ # A list of hardware accelerators to be attached to each node.
2387 # See https://cloud.google.com/compute/docs/gpus for more information about
2388 # support for GPUs.
2389 { # AcceleratorConfig represents a Hardware Accelerator request.
2390 &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of the accelerator cards exposed to an instance.
2391 &quot;acceleratorType&quot;: &quot;A String&quot;, # The accelerator type resource name. List of supported accelerators
2392 # [here](https://cloud.google.com/compute/docs/gpus)
2393 },
2394 ],
2395 &quot;machineType&quot;: &quot;A String&quot;, # The name of a Google Compute Engine [machine
Dan O'Mearadd494642020-05-01 07:42:23 -07002396 # type](https://cloud.google.com/compute/docs/machine-types) (e.g.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002397 # `n1-standard-1`).
2398 #
2399 # If unspecified, the default machine type is
2400 # `n1-standard-1`.
Bu Sun Kim65020912020-05-20 12:08:20 -07002401 &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;)
2402 #
2403 # If unspecified, the default disk type is &#x27;pd-standard&#x27;
2404 &quot;bootDiskKmsKey&quot;: &quot;A String&quot;, #
2405 # The Customer Managed Encryption Key used to encrypt the boot disk attached
2406 # to each node in the node pool. This should be of the form
2407 # projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
2408 # For more information about protecting resources with Cloud KMS Keys please
2409 # see:
2410 # https://cloud.google.com/compute/docs/disks/customer-managed-encryption
2411 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
2412 &quot;enableSecureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled.
2413 #
2414 # Secure Boot helps ensure that the system only runs authentic software by
2415 # verifying the digital signature of all boot components, and halting the
2416 # boot process if signature verification fails.
2417 &quot;enableIntegrityMonitoring&quot;: True or False, # Defines whether the instance has integrity monitoring enabled.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002418 #
2419 # Enables monitoring and attestation of the boot integrity of the instance.
2420 # The attestation is performed against the integrity policy baseline. This
2421 # baseline is initially derived from the implicitly trusted boot image when
2422 # the instance is created.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002423 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002424 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used by this instance. The instance may be
2425 # scheduled on the specified or newer CPU platform. Applicable values are the
2426 # friendly names of CPU platforms, such as
2427 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Haswell&amp;quot;&lt;/code&gt; or
2428 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Sandy Bridge&amp;quot;&lt;/code&gt;. For more
2429 # information, read [how to specify min CPU
2430 # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
2431 &quot;preemptible&quot;: True or False, # Whether the nodes are created as preemptible VM instances. See:
2432 # https://cloud.google.com/compute/docs/instances/preemptible for more
2433 # inforamtion about preemptible VM instances.
2434 &quot;localSsdCount&quot;: 42, # The number of local SSD disks to be attached to the node.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002435 #
Bu Sun Kim65020912020-05-20 12:08:20 -07002436 # The limit for this value is dependent upon the maximum number of
2437 # disks available on a machine per zone. See:
2438 # https://cloud.google.com/compute/docs/disks/local-ssd
2439 # for more information.
2440 &quot;sandboxConfig&quot;: { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node.
2441 &quot;type&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node.
2442 &quot;sandboxType&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node (e.g. &#x27;gvisor&#x27;)
2443 },
2444 &quot;metadata&quot;: { # The metadata key/value pairs assigned to instances in the cluster.
2445 #
2446 # Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
2447 # in length. These are reflected as part of a URL in the metadata server.
2448 # Additionally, to avoid ambiguity, keys must not conflict with any other
2449 # metadata keys for the project or be one of the reserved keys:
2450 # &quot;cluster-location&quot;
2451 # &quot;cluster-name&quot;
2452 # &quot;cluster-uid&quot;
2453 # &quot;configure-sh&quot;
2454 # &quot;containerd-configure-sh&quot;
2455 # &quot;enable-oslogin&quot;
2456 # &quot;gci-ensure-gke-docker&quot;
2457 # &quot;gci-metrics-enabled&quot;
2458 # &quot;gci-update-strategy&quot;
2459 # &quot;instance-template&quot;
2460 # &quot;kube-env&quot;
2461 # &quot;startup-script&quot;
2462 # &quot;user-data&quot;
2463 # &quot;disable-address-manager&quot;
2464 # &quot;windows-startup-script-ps1&quot;
2465 # &quot;common-psm1&quot;
2466 # &quot;k8s-node-setup-psm1&quot;
2467 # &quot;install-ssh-psm1&quot;
2468 # &quot;user-profile-psm1&quot;
2469 # &quot;serial-port-logging-enable&quot;
2470 # Values are free-form strings, and only have meaning as interpreted by
2471 # the image running in the instance. The only restriction placed on them is
2472 # that each value&#x27;s size must be less than or equal to 32 KB.
2473 #
2474 # The total size of all keys and values must be less than 512 KB.
2475 &quot;a_key&quot;: &quot;A String&quot;,
2476 },
2477 &quot;reservationAffinity&quot;: { # [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) # The optional reservation affinity. Setting this field will apply
2478 # the specified [Zonal Compute
2479 # Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
2480 # to this node pool.
2481 # is the configuration of desired reservation which instances could take
2482 # capacity from.
2483 &quot;key&quot;: &quot;A String&quot;, # Corresponds to the label key of a reservation resource. To target a
2484 # SPECIFIC_RESERVATION by name, specify &quot;googleapis.com/reservation-name&quot; as
2485 # the key and specify the name of your reservation as its value.
2486 &quot;values&quot;: [ # Corresponds to the label value(s) of reservation resource(s).
2487 &quot;A String&quot;,
2488 ],
2489 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Corresponds to the type of reservation consumption.
2490 },
2491 &quot;tags&quot;: [ # The list of instance tags applied to all nodes. Tags are used to identify
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002492 # valid sources or targets for network firewalls and are specified by
2493 # the client during cluster or node pool creation. Each tag within the list
2494 # must comply with RFC1035.
Bu Sun Kim65020912020-05-20 12:08:20 -07002495 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002496 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002497 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs.
Dan O'Mearadd494642020-05-01 07:42:23 -07002498 # Specify the email address of the Service Account; otherwise, if no Service
Bu Sun Kim65020912020-05-20 12:08:20 -07002499 # Account is specified, the &quot;default&quot; service account is used.
2500 &quot;imageType&quot;: &quot;A String&quot;, # The image type to use for this node. Note that for a given image type,
2501 # the latest version of it will be used.
2502 &quot;oauthScopes&quot;: [ # The set of Google API scopes to be made available on all of the
2503 # node VMs under the &quot;default&quot; service account.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002504 #
2505 # The following scopes are recommended, but not required, and by default are
2506 # not included:
2507 #
2508 # * `https://www.googleapis.com/auth/compute` is required for mounting
2509 # persistent storage on your nodes.
2510 # * `https://www.googleapis.com/auth/devstorage.read_only` is required for
2511 # communicating with **gcr.io**
Dan O'Mearadd494642020-05-01 07:42:23 -07002512 # (the [Google Container
2513 # Registry](https://cloud.google.com/container-registry/)).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002514 #
2515 # If unspecified, no scopes are added, unless Cloud Logging or Cloud
2516 # Monitoring are enabled, in which case their required scopes will be added.
Bu Sun Kim65020912020-05-20 12:08:20 -07002517 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002518 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002519 &quot;taints&quot;: [ # List of kubernetes taints to be applied to each node.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002520 #
2521 # For more information, including usage and the valid values, see:
2522 # https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
2523 { # Kubernetes taint is comprised of three fields: key, value, and effect. Effect
2524 # can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute.
2525 #
Bu Sun Kim65020912020-05-20 12:08:20 -07002526 # See
2527 # [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration)
2528 # for more information, including usage and the valid values.
2529 &quot;key&quot;: &quot;A String&quot;, # Key for taint.
2530 &quot;value&quot;: &quot;A String&quot;, # Value for taint.
2531 &quot;effect&quot;: &quot;A String&quot;, # Effect for taint.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002532 },
2533 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002534 &quot;labels&quot;: { # The map of Kubernetes labels (key/value pairs) to be applied to each node.
2535 # These will added in addition to any default label(s) that
2536 # Kubernetes may apply to the node.
2537 # In case of conflict in label keys, the applied set may differ depending on
2538 # the Kubernetes version -- it&#x27;s best to assume the behavior is undefined
2539 # and conflicts should be avoided.
2540 # For more information, including usage and the valid values, see:
2541 # https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
2542 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002543 },
2544 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002545 &quot;status&quot;: &quot;A String&quot;, # [Output only] The current status of this cluster.
2546 &quot;tpuConfig&quot;: { # Configuration for Cloud TPU. # Configuration for Cloud TPU support;
2547 &quot;enabled&quot;: True or False, # Whether Cloud TPU integration is enabled or not.
2548 &quot;ipv4CidrBlock&quot;: &quot;A String&quot;, # IPv4 CIDR block reserved for Cloud TPU in the VPC.
2549 &quot;useServiceNetworking&quot;: True or False, # Whether to use service networking for Cloud TPU or not.
2550 },
2551 &quot;networkConfig&quot;: { # NetworkConfig reports the relative names of network &amp; subnetwork. # Configuration for cluster networking.
2552 &quot;subnetwork&quot;: &quot;A String&quot;, # Output only. The relative name of the Google Compute Engine
2553 # [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the
2554 # cluster is connected. Example:
2555 # projects/my-project/regions/us-central1/subnetworks/my-subnet
2556 &quot;network&quot;: &quot;A String&quot;, # Output only. The relative name of the Google Compute Engine
2557 # network(https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
2558 # to which the cluster is connected. Example:
2559 # projects/my-project/global/networks/my-network
2560 &quot;enableIntraNodeVisibility&quot;: True or False, # Whether Intra-node visibility is enabled for this cluster.
2561 # This makes same node pod to pod traffic visible for VPC network.
2562 },
2563 &quot;name&quot;: &quot;A String&quot;, # The name of this cluster. The name must be unique within this project
2564 # and location (e.g. zone or region), and can be up to 40 characters with
2565 # the following restrictions:
2566 #
2567 # * Lowercase letters, numbers, and hyphens only.
2568 # * Must start with a letter.
2569 # * Must end with a number or a letter.
2570 &quot;endpoint&quot;: &quot;A String&quot;, # [Output only] The IP address of this cluster&#x27;s master endpoint.
2571 # The endpoint can be accessed from the internet at
2572 # `https://username:password@endpoint/`.
2573 #
2574 # See the `masterAuth` property of this resource for username and
2575 # password information.
2576 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
2577 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
2578 # or
2579 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
2580 # in which the cluster resides.
2581 &quot;createTime&quot;: &quot;A String&quot;, # [Output only] The time the cluster was created, in
2582 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
2583 &quot;clusterIpv4Cidr&quot;: &quot;A String&quot;, # The IP address range of the container pods in this cluster, in
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002584 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
2585 # notation (e.g. `10.96.0.0/14`). Leave blank to have
2586 # one automatically chosen or specify a `/14` block in `10.0.0.0/8`.
Bu Sun Kim65020912020-05-20 12:08:20 -07002587 &quot;autoscaling&quot;: { # ClusterAutoscaling contains global, per-cluster information # Cluster-level autoscaling configuration.
2588 # required by Cluster Autoscaler to automatically adjust
2589 # the size of the cluster and create/delete
2590 # node pools based on the current needs.
2591 &quot;resourceLimits&quot;: [ # Contains global constraints regarding minimum and maximum
2592 # amount of resources in the cluster.
2593 { # Contains information about amount of some resource in the cluster.
2594 # For memory, value should be in GB.
2595 &quot;maximum&quot;: &quot;A String&quot;, # Maximum amount of the resource in the cluster.
2596 &quot;resourceType&quot;: &quot;A String&quot;, # Resource name &quot;cpu&quot;, &quot;memory&quot; or gpu-specific string.
2597 &quot;minimum&quot;: &quot;A String&quot;, # Minimum amount of the resource in the cluster.
2598 },
2599 ],
2600 &quot;autoscalingProfile&quot;: &quot;A String&quot;, # Defines autoscaling behaviour.
2601 &quot;enableNodeAutoprovisioning&quot;: True or False, # Enables automatic node pool creation and deletion.
2602 &quot;autoprovisioningNodePoolDefaults&quot;: { # AutoprovisioningNodePoolDefaults contains defaults for a node pool created # AutoprovisioningNodePoolDefaults contains defaults for a node pool
2603 # created by NAP.
2604 # by NAP.
2605 &quot;oauthScopes&quot;: [ # Scopes that are used by NAP when creating node pools. If oauth_scopes are
2606 # specified, service_account should be empty.
2607 &quot;A String&quot;,
2608 ],
2609 &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.
2610 # node pool.
2611 &quot;autoUpgrade&quot;: True or False, # Whether the nodes will be automatically upgraded.
2612 &quot;autoRepair&quot;: True or False, # Whether the nodes will be automatically repaired.
2613 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool.
2614 # the Auto Upgrades will proceed.
2615 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
2616 # with the description of the upgrade.
2617 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
2618 # with the approximate start time for the upgrades, in
2619 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
2620 },
2621 },
2622 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used for NAP created node pools.
2623 # The instance may be scheduled on the specified or newer CPU platform.
2624 # Applicable values are the friendly names of CPU platforms, such as
2625 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Haswell&amp;quot;&lt;/code&gt; or
2626 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Sandy Bridge&amp;quot;&lt;/code&gt;. For more
2627 # information, read [how to specify min CPU
2628 # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
2629 # To unset the min cpu platform field pass &quot;automatic&quot; as field value.
2630 &quot;upgradeSettings&quot;: { # These upgrade settings control the level of parallelism and the level of # Specifies the upgrade settings for NAP created node pools
2631 # disruption caused by an upgrade.
2632 #
2633 # maxUnavailable controls the number of nodes that can be simultaneously
2634 # unavailable.
2635 #
2636 # maxSurge controls the number of additional nodes that can be added to the
2637 # node pool temporarily for the time of the upgrade to increase the number of
2638 # available nodes.
2639 #
2640 # (maxUnavailable + maxSurge) determines the level of parallelism (how many
2641 # nodes are being upgraded at the same time).
2642 #
2643 # Note: upgrades inevitably introduce some disruption since workloads need to
2644 # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
2645 # this holds true. (Disruption stays within the limits of
2646 # PodDisruptionBudget, if it is configured.)
2647 #
2648 # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
2649 # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
2650 # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
2651 # down 3 old (not yet upgraded) nodes at the same time. This ensures that
2652 # there are always at least 4 nodes available.
2653 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size
2654 # of the node pool during the upgrade process.
2655 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during
2656 # the upgrade process. A node is considered available if its status is
2657 # Ready.
2658 },
2659 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs. If
2660 # service_account is specified, scopes should be empty.
2661 },
2662 &quot;autoprovisioningLocations&quot;: [ # The list of Google Compute Engine
2663 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
2664 # NodePool&#x27;s nodes can be created by NAP.
2665 &quot;A String&quot;,
2666 ],
Dan O'Mearadd494642020-05-01 07:42:23 -07002667 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002668 &quot;initialNodeCount&quot;: 42, # The number of nodes to create in this cluster. You must ensure that your
2669 # Compute Engine &lt;a href=&quot;/compute/docs/resource-quotas&quot;&gt;resource quota&lt;/a&gt;
Dan O'Mearadd494642020-05-01 07:42:23 -07002670 # is sufficient for this number of instances. You must also have available
2671 # firewall and routes quota.
2672 # For requests, this field should only be used in lieu of a
Bu Sun Kim65020912020-05-20 12:08:20 -07002673 # &quot;node_pool&quot; object, since this configuration (along with the
2674 # &quot;node_config&quot;) will be used to create a &quot;NodePool&quot; object with an
Dan O'Mearadd494642020-05-01 07:42:23 -07002675 # auto-generated name. Do not use this and a node_pool at the same time.
2676 #
2677 # This field is deprecated, use node_pool.initial_node_count instead.
Bu Sun Kim65020912020-05-20 12:08:20 -07002678 &quot;instanceGroupUrls&quot;: [ # Deprecated. Use node_pools.instance_group_urls.
2679 &quot;A String&quot;,
2680 ],
2681 &quot;privateClusterConfig&quot;: { # Configuration options for private clusters. # Configuration for private cluster.
2682 &quot;privateEndpoint&quot;: &quot;A String&quot;, # Output only. The internal IP address of this cluster&#x27;s master endpoint.
2683 &quot;enablePrivateEndpoint&quot;: True or False, # Whether the master&#x27;s internal IP address is used as the cluster endpoint.
2684 &quot;peeringName&quot;: &quot;A String&quot;, # Output only. The peering name in the customer VPC used by this cluster.
2685 &quot;masterGlobalAccessConfig&quot;: { # Configuration for controlling master global access settings. # Controls master global access settings.
2686 &quot;enabled&quot;: True or False, # Whenever master is accessible globally or not.
2687 },
2688 &quot;publicEndpoint&quot;: &quot;A String&quot;, # Output only. The external IP address of this cluster&#x27;s master endpoint.
2689 &quot;enablePrivateNodes&quot;: True or False, # Whether nodes have internal IP addresses only. If enabled, all nodes are
2690 # given only RFC 1918 private addresses and communicate with the master via
2691 # private networking.
2692 &quot;masterIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP range in CIDR notation to use for the hosted master network. This
2693 # range will be used for assigning internal IP addresses to the master or
2694 # set of masters, as well as the ILB VIP. This range must not overlap with
2695 # any other ranges in use within the cluster&#x27;s network.
2696 },
2697 &quot;shieldedNodes&quot;: { # Configuration of Shielded Nodes feature. # Shielded Nodes configuration.
2698 &quot;enabled&quot;: True or False, # Whether Shielded Nodes features are enabled on all nodes in this cluster.
2699 },
2700 &quot;verticalPodAutoscaling&quot;: { # VerticalPodAutoscaling contains global, per-cluster information # Cluster-level Vertical Pod Autoscaling configuration.
2701 # required by Vertical Pod Autoscaler to automatically adjust
2702 # the resources of pods controlled by it.
2703 &quot;enabled&quot;: True or False, # Enables vertical pod autoscaling.
2704 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002705 }</pre>
2706</div>
2707
2708<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07002709 <code class="details" id="legacyAbac">legacyAbac(projectId, zone, clusterId, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002710 <pre>Enables or disables the ABAC authorization mechanism on a cluster.
2711
2712Args:
Dan O'Mearadd494642020-05-01 07:42:23 -07002713 projectId: string, Required. Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002714number](https://support.google.com/cloud/answer/6158840).
2715This field has been deprecated and replaced by the name field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07002716 zone: string, Required. Deprecated. The name of the Google Compute Engine
2717[zone](https://cloud.google.com/compute/docs/zones#available) in which the
2718cluster resides. This field has been deprecated and replaced by the name
2719field. (required)
2720 clusterId: string, Required. Deprecated. The name of the cluster to update.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002721This field has been deprecated and replaced by the name field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07002722 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002723 The object takes the form of:
2724
2725{ # SetLegacyAbacRequest enables or disables the ABAC authorization mechanism for
2726 # a cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -07002727 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster id) of the cluster to set legacy abac.
2728 # Specified in the format `projects/*/locations/*/clusters/*`.
2729 &quot;enabled&quot;: True or False, # Required. Whether ABAC authorization will be enabled in the cluster.
2730 &quot;projectId&quot;: &quot;A String&quot;, # Required. Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002731 # number](https://support.google.com/cloud/answer/6158840).
2732 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07002733 &quot;zone&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07002734 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
2735 # cluster resides. This field has been deprecated and replaced by the name
2736 # field.
Bu Sun Kim65020912020-05-20 12:08:20 -07002737 &quot;clusterId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the cluster to update.
2738 # This field has been deprecated and replaced by the name field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002739 }
2740
2741 x__xgafv: string, V1 error format.
2742 Allowed values
2743 1 - v1 error format
2744 2 - v2 error format
2745
2746Returns:
2747 An object of the form:
2748
2749 { # This operation resource represents operations that may have happened or are
2750 # happening on the cluster. All fields are output only.
Bu Sun Kim65020912020-05-20 12:08:20 -07002751 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002752 { # StatusCondition describes why a cluster or a node pool has a certain status
2753 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07002754 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
2755 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002756 },
2757 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002758 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07002759 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
2760 # or
2761 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
2762 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07002763 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
2764 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
2765 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
2766 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
2767 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
2768 { # StatusCondition describes why a cluster or a node pool has a certain status
2769 # (e.g., ERROR or DEGRADED).
2770 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
2771 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
2772 },
2773 ],
2774 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
2775 &quot;stages&quot;: [ # Substages of an operation or a stage.
2776 # Object with schema name: OperationProgress
2777 ],
2778 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
2779 # Unset for single-stage operations.
2780 &quot;metrics&quot;: [ # Progress metric bundle, for example:
2781 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
2782 # {name: &quot;nodes total&quot;, int_value: 32}]
2783 # or
2784 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
2785 # {name: &quot;progress scale&quot;, double_value: 1.0}]
2786 { # Progress metric is (string, int|float|string) pair.
2787 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
2788 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
2789 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
2790 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
2791 },
2792 ],
2793 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
2794 # Unset for single-stage operations.
2795 },
2796 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
2797 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
2798 # operation is taking place. This field is deprecated, use location instead.
2799 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
2800 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
2801 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
2802 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
2803 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
2804 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
2805 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002806 }</pre>
2807</div>
2808
2809<div class="method">
2810 <code class="details" id="list">list(projectId, zone, parent=None, x__xgafv=None)</code>
2811 <pre>Lists all clusters owned by a project in either the specified zone or all
2812zones.
2813
2814Args:
Dan O'Mearadd494642020-05-01 07:42:23 -07002815 projectId: string, Required. Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002816number](https://support.google.com/cloud/answer/6158840).
2817This field has been deprecated and replaced by the parent field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07002818 zone: string, Required. Deprecated. The name of the Google Compute Engine
2819[zone](https://cloud.google.com/compute/docs/zones#available) in which the
Bu Sun Kim65020912020-05-20 12:08:20 -07002820cluster resides, or &quot;-&quot; for all zones. This field has been deprecated and
Dan O'Mearadd494642020-05-01 07:42:23 -07002821replaced by the parent field. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002822 parent: string, The parent (project and location) where the clusters will be listed.
Bu Sun Kim65020912020-05-20 12:08:20 -07002823Specified in the format `projects/*/locations/*`.
2824Location &quot;-&quot; matches all zones and all regions.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002825 x__xgafv: string, V1 error format.
2826 Allowed values
2827 1 - v1 error format
2828 2 - v2 error format
2829
2830Returns:
2831 An object of the form:
2832
2833 { # ListClustersResponse is the result of ListClustersRequest.
Bu Sun Kim65020912020-05-20 12:08:20 -07002834 &quot;clusters&quot;: [ # A list of clusters in the project in the specified zone, or
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002835 # across all ones.
2836 { # A Google Kubernetes Engine cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -07002837 &quot;defaultMaxPodsConstraint&quot;: { # Constraints applied to pods. # The default constraint on the maximum number of pods that can be run
2838 # simultaneously on a node in the node pool of this cluster. Only honored
2839 # if cluster created with IP Alias support.
2840 &quot;maxPodsPerNode&quot;: &quot;A String&quot;, # Constraint enforced on the max num of pods per node.
2841 },
2842 &quot;network&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
2843 # [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
2844 # to which the cluster is connected. If left unspecified, the `default`
2845 # network will be used. On output this shows the network ID instead of the
2846 # name.
2847 &quot;labelFingerprint&quot;: &quot;A String&quot;, # The fingerprint of the set of labels for this cluster.
2848 &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 -07002849 # containers. This is provisioned from within the `container_ipv4_cidr`
2850 # range. This field will only be set when cluster is in route-based network
2851 # mode.
Bu Sun Kim65020912020-05-20 12:08:20 -07002852 &quot;masterAuthorizedNetworksConfig&quot;: { # Configuration options for the master authorized networks feature. Enabled # The configuration options for master authorized networks feature.
2853 # master authorized networks will disallow all external traffic to access
2854 # Kubernetes master through HTTPS except traffic from the given CIDR blocks,
2855 # Google Compute Engine Public IPs and Google Prod IPs.
2856 &quot;cidrBlocks&quot;: [ # cidr_blocks define up to 10 external networks that could access
2857 # Kubernetes master through HTTPS.
2858 { # CidrBlock contains an optional name and one CIDR block.
2859 &quot;displayName&quot;: &quot;A String&quot;, # display_name is an optional field for users to identify CIDR blocks.
2860 &quot;cidrBlock&quot;: &quot;A String&quot;, # cidr_block must be specified in CIDR notation.
2861 },
2862 ],
2863 &quot;enabled&quot;: True or False, # Whether or not master authorized networks is enabled.
2864 },
2865 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output only] Additional information about the current status of this
2866 # cluster, if available.
2867 &quot;masterAuth&quot;: { # The authentication information for accessing the master endpoint. # The authentication information for accessing the master endpoint.
2868 # If unspecified, the defaults are used:
2869 # For clusters before v1.12, if master_auth is unspecified, `username` will
2870 # be set to &quot;admin&quot;, a random password will be generated, and a client
2871 # certificate will be issued.
2872 # Authentication can be done using HTTP basic auth or using client
2873 # certificates.
2874 &quot;password&quot;: &quot;A String&quot;, # The password to use for HTTP basic authentication to the master endpoint.
2875 # Because the master endpoint is open to the Internet, you should create a
2876 # strong password. If a password is provided for cluster creation, username
2877 # must be non-empty.
2878 &quot;clientCertificateConfig&quot;: { # Configuration for client certificates on the cluster. # Configuration for client certificate authentication on the cluster. For
2879 # clusters before v1.12, if no configuration is specified, a client
2880 # certificate is issued.
2881 &quot;issueClientCertificate&quot;: True or False, # Issue a client certificate.
2882 },
2883 &quot;clientKey&quot;: &quot;A String&quot;, # [Output only] Base64-encoded private key used by clients to authenticate
2884 # to the cluster endpoint.
2885 &quot;clusterCaCertificate&quot;: &quot;A String&quot;,
2886 &quot;clientCertificate&quot;: &quot;A String&quot;, # [Output only] Base64-encoded public certificate used by clients to
2887 # authenticate to the cluster endpoint.
2888 &quot;username&quot;: &quot;A String&quot;, # The username to use for HTTP basic authentication to the master endpoint.
2889 # For clusters v1.6.0 and later, basic authentication can be disabled by
2890 # leaving username unspecified (or setting it to the empty string).
2891 },
2892 &quot;authenticatorGroupsConfig&quot;: { # Configuration for returning group information from authenticators. # Configuration controlling RBAC group membership information.
2893 &quot;enabled&quot;: True or False, # Whether this cluster should return group membership lookups
2894 # during authentication using a group of security groups.
2895 &quot;securityGroup&quot;: &quot;A String&quot;, # The name of the security group-of-groups to be used. Only relevant
2896 # if enabled = true.
2897 },
2898 &quot;masterIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP prefix in CIDR notation to use for the hosted master network.
2899 # This prefix will be used for assigning private IP addresses to the
2900 # master or set of masters, as well as the ILB VIP.
2901 # This field is deprecated, use
2902 # private_cluster_config.master_ipv4_cidr_block instead.
2903 &quot;clusterTelemetry&quot;: { # Telemetry integration for the cluster. # Telemetry integration for the cluster.
2904 &quot;type&quot;: &quot;A String&quot;, # Type of the integration.
2905 },
2906 &quot;currentMasterVersion&quot;: &quot;A String&quot;, # [Output only] The current software version of the master endpoint.
2907 &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.
2908 # cluster, enabling additional functionality.
2909 &quot;networkPolicyConfig&quot;: { # Configuration for NetworkPolicy. This only tracks whether the addon # Configuration for NetworkPolicy. This only tracks whether the addon
2910 # is enabled or not on the Master, it does not track whether network policy
2911 # is enabled for the nodes.
2912 # is enabled or not on the Master, it does not track whether network policy
2913 # is enabled for the nodes.
2914 &quot;disabled&quot;: True or False, # Whether NetworkPolicy is enabled for this cluster.
2915 },
2916 &quot;configConnectorConfig&quot;: { # Configuration options for the Config Connector add-on. # Configuration for the ConfigConnector add-on, a Kubernetes
2917 # extension to manage hosted GCP services through the Kubernetes API
2918 &quot;enabled&quot;: True or False, # Whether Cloud Connector is enabled for this cluster.
2919 },
2920 &quot;cloudRunConfig&quot;: { # Configuration options for the Cloud Run feature. # Configuration for the Cloud Run addon. The `IstioConfig` addon must be
2921 # enabled in order to enable Cloud Run addon. This option can only be enabled
2922 # at cluster creation time.
2923 &quot;disabled&quot;: True or False, # Whether Cloud Run addon is enabled for this cluster.
2924 },
2925 &quot;horizontalPodAutoscaling&quot;: { # Configuration options for the horizontal pod autoscaling feature, which # Configuration for the horizontal pod autoscaling feature, which
2926 # increases or decreases the number of replica pods a replication controller
2927 # has based on the resource usage of the existing pods.
2928 # increases or decreases the number of replica pods a replication controller
2929 # has based on the resource usage of the existing pods.
2930 &quot;disabled&quot;: True or False, # Whether the Horizontal Pod Autoscaling feature is enabled in the cluster.
2931 # When enabled, it ensures that metrics are collected into Stackdriver
2932 # Monitoring.
2933 },
2934 &quot;httpLoadBalancing&quot;: { # Configuration options for the HTTP (L7) load balancing controller addon, # Configuration for the HTTP (L7) load balancing controller addon, which
2935 # makes it easy to set up HTTP load balancers for services in a cluster.
2936 # which makes it easy to set up HTTP load balancers for services in a cluster.
2937 &quot;disabled&quot;: True or False, # Whether the HTTP Load Balancing controller is enabled in the cluster.
2938 # When enabled, it runs a small pod in the cluster that manages the load
2939 # balancers.
2940 },
2941 &quot;kubernetesDashboard&quot;: { # Configuration for the Kubernetes Dashboard. # Configuration for the Kubernetes Dashboard.
2942 # This addon is deprecated, and will be disabled in 1.15. It is recommended
2943 # to use the Cloud Console to manage and monitor your Kubernetes clusters,
2944 # workloads and applications. For more information, see:
2945 # https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
2946 &quot;disabled&quot;: True or False, # Whether the Kubernetes Dashboard is enabled for this cluster.
2947 },
2948 &quot;dnsCacheConfig&quot;: { # Configuration for NodeLocal DNSCache # Configuration for NodeLocalDNS, a dns cache running on cluster nodes
2949 &quot;enabled&quot;: True or False, # Whether NodeLocal DNSCache is enabled for this cluster.
2950 },
2951 &quot;kalmConfig&quot;: { # Configuration options for the KALM addon. # Configuration for the KALM addon, which manages the lifecycle of k8s
2952 # applications.
2953 &quot;enabled&quot;: True or False, # Whether KALM is enabled for this cluster.
2954 },
2955 &quot;gcePersistentDiskCsiDriverConfig&quot;: { # Configuration for the Compute Engine PD CSI driver. This option can only be # Configuration for the Compute Engine Persistent Disk CSI driver.
2956 # enabled at cluster creation time.
2957 &quot;enabled&quot;: True or False, # Whether the Compute Engine PD CSI driver is enabled for this cluster.
2958 },
2959 &quot;istioConfig&quot;: { # Configuration options for Istio addon. # Configuration for Istio, an open platform to connect, manage, and secure
2960 # microservices.
2961 &quot;disabled&quot;: True or False, # Whether Istio is enabled for this cluster.
2962 &quot;auth&quot;: &quot;A String&quot;, # The specified Istio auth mode, either none, or mutual TLS.
2963 },
2964 },
2965 &quot;podSecurityPolicyConfig&quot;: { # Configuration for the PodSecurityPolicy feature. # Configuration for the PodSecurityPolicy feature.
2966 &quot;enabled&quot;: True or False, # Enable the PodSecurityPolicy controller for this cluster. If enabled, pods
2967 # must be valid under a PodSecurityPolicy to be created.
2968 },
2969 &quot;currentNodeVersion&quot;: &quot;A String&quot;, # [Output only] Deprecated, use
2970 # [NodePool.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1beta1/projects.locations.clusters.nodePools)
2971 # instead. The current version of the node software components.
2972 # If they are currently at multiple versions because they&#x27;re in the process
2973 # of being upgraded, this reflects the minimum version of all nodes.
2974 &quot;subnetwork&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
2975 # [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which
2976 # the cluster is connected. On output this shows the subnetwork ID instead of
2977 # the name.
2978 &quot;maintenancePolicy&quot;: { # MaintenancePolicy defines the maintenance policy to be used for the cluster. # Configure the maintenance policy for this cluster.
2979 &quot;resourceVersion&quot;: &quot;A String&quot;, # A hash identifying the version of this policy, so that updates to fields of
2980 # the policy won&#x27;t accidentally undo intermediate changes (and so that users
2981 # of the API unaware of some fields won&#x27;t accidentally remove other fields).
2982 # Make a &lt;code&gt;get()&lt;/code&gt; request to the cluster to get the current
2983 # resource version and include it with requests to set the policy.
2984 &quot;window&quot;: { # MaintenanceWindow defines the maintenance window to be used for the cluster. # Specifies the maintenance window in which maintenance may be performed.
2985 &quot;dailyMaintenanceWindow&quot;: { # Time window specified for daily maintenance operations. # DailyMaintenanceWindow specifies a daily maintenance operation window.
2986 &quot;duration&quot;: &quot;A String&quot;, # [Output only] Duration of the time window, automatically chosen to be
2987 # smallest possible in the given scenario.
2988 &quot;startTime&quot;: &quot;A String&quot;, # Time within the maintenance window to start the maintenance operations.
2989 # It must be in format &quot;HH:MM&quot;, where HH : [00-23] and MM : [00-59] GMT.
2990 },
2991 &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 -07002992 # maintenance to occur. The time windows may be overlapping. If no
2993 # maintenance windows are set, maintenance can occur at any time.
Bu Sun Kim65020912020-05-20 12:08:20 -07002994 &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 -07002995 # this window reccurs. They go on for the span of time between the start and
2996 # end time.
2997 #
Bu Sun Kim65020912020-05-20 12:08:20 -07002998 # For example, to have something repeat every weekday, you&#x27;d use:
Dan O'Mearadd494642020-05-01 07:42:23 -07002999 # &lt;code&gt;FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR&lt;/code&gt;
3000 # To repeat some window daily (equivalent to the DailyMaintenanceWindow):
3001 # &lt;code&gt;FREQ=DAILY&lt;/code&gt;
3002 # For the first weekend of every month:
3003 # &lt;code&gt;FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU&lt;/code&gt;
3004 # This specifies how frequently the window starts. Eg, if you wanted to have
Bu Sun Kim65020912020-05-20 12:08:20 -07003005 # a 9-5 UTC-4 window every weekday, you&#x27;d use something like:
Dan O'Mearadd494642020-05-01 07:42:23 -07003006 # &lt;code&gt;
3007 # start time = 2019-01-01T09:00:00-0400
3008 # end time = 2019-01-01T17:00:00-0400
3009 # recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
3010 # &lt;/code&gt;
3011 # Windows can span multiple days. Eg, to make the window encompass every
3012 # weekend from midnight Saturday till the last minute of Sunday UTC:
3013 # &lt;code&gt;
3014 # start time = 2019-01-05T00:00:00Z
3015 # end time = 2019-01-07T23:59:00Z
3016 # recurrence = FREQ=WEEKLY;BYDAY=SA
3017 # &lt;/code&gt;
Bu Sun Kim65020912020-05-20 12:08:20 -07003018 # Note the start and end time&#x27;s specific dates are largely arbitrary except
Dan O'Mearadd494642020-05-01 07:42:23 -07003019 # to specify duration of the window and when it first starts.
3020 # The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.
Bu Sun Kim65020912020-05-20 12:08:20 -07003021 &quot;window&quot;: { # Represents an arbitrary window of time. # The window of the first recurrence.
3022 &quot;endTime&quot;: &quot;A String&quot;, # The time that the window ends. The end time should take place after the
Dan O'Mearadd494642020-05-01 07:42:23 -07003023 # start time.
Bu Sun Kim65020912020-05-20 12:08:20 -07003024 &quot;startTime&quot;: &quot;A String&quot;, # The time that the window first starts.
Dan O'Mearadd494642020-05-01 07:42:23 -07003025 },
3026 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003027 &quot;maintenanceExclusions&quot;: { # Exceptions to maintenance window. Non-emergency maintenance should not
Dan O'Mearadd494642020-05-01 07:42:23 -07003028 # occur in these windows.
Bu Sun Kim65020912020-05-20 12:08:20 -07003029 &quot;a_key&quot;: { # Represents an arbitrary window of time.
3030 &quot;endTime&quot;: &quot;A String&quot;, # The time that the window ends. The end time should take place after the
Dan O'Mearadd494642020-05-01 07:42:23 -07003031 # start time.
Bu Sun Kim65020912020-05-20 12:08:20 -07003032 &quot;startTime&quot;: &quot;A String&quot;, # The time that the window first starts.
Dan O'Mearadd494642020-05-01 07:42:23 -07003033 },
3034 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003035 },
3036 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003037 &quot;resourceLabels&quot;: { # The resource labels for the cluster to use to annotate any related
3038 # Google Compute Engine resources.
3039 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003040 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003041 &quot;initialClusterVersion&quot;: &quot;A String&quot;, # The initial Kubernetes version for this cluster. Valid versions are those
3042 # found in validMasterVersions returned by getServerConfig. The version can
3043 # be upgraded over time; such upgrades are reflected in
3044 # currentMasterVersion and currentNodeVersion.
Dan O'Mearadd494642020-05-01 07:42:23 -07003045 #
Bu Sun Kim65020912020-05-20 12:08:20 -07003046 # Users may specify either explicit versions offered by
3047 # Kubernetes Engine or version aliases, which have the following behavior:
Dan O'Mearadd494642020-05-01 07:42:23 -07003048 #
Bu Sun Kim65020912020-05-20 12:08:20 -07003049 # - &quot;latest&quot;: picks the highest valid Kubernetes version
3050 # - &quot;1.X&quot;: picks the highest valid patch+gke.N patch in the 1.X version
3051 # - &quot;1.X.Y&quot;: picks the highest valid gke.N patch in the 1.X.Y version
3052 # - &quot;1.X.Y-gke.N&quot;: picks an explicit Kubernetes version
3053 # - &quot;&quot;,&quot;-&quot;: picks the default Kubernetes version
3054 &quot;ipAllocationPolicy&quot;: { # Configuration for controlling how IPs are allocated in the cluster. # Configuration for cluster IP allocation.
3055 &quot;useRoutes&quot;: True or False, # Whether routes will be used for pod IPs in the cluster.
3056 # This is used in conjunction with use_ip_aliases. It cannot be true if
3057 # use_ip_aliases is true. If both use_ip_aliases and use_routes are false,
3058 # then the server picks the default IP allocation mode
3059 &quot;servicesIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP address range of the services IPs in this cluster. If blank, a range
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003060 # will be automatically chosen with the default size.
3061 #
3062 # This field is only applicable when `use_ip_aliases` is true.
3063 #
3064 # Set to blank to have a range chosen with the default size.
3065 #
3066 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
3067 # netmask.
3068 #
3069 # Set to a
3070 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
3071 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
3072 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
3073 # to use.
Bu Sun Kim65020912020-05-20 12:08:20 -07003074 &quot;allowRouteOverlap&quot;: True or False, # If true, allow allocation of cluster CIDR ranges that overlap with certain
3075 # kinds of network routes. By default we do not allow cluster CIDR ranges to
3076 # intersect with any user declared routes. With allow_route_overlap == true,
3077 # we allow overlapping with CIDR ranges that are larger than the cluster CIDR
3078 # range.
3079 #
3080 # If this field is set to true, then cluster and services CIDRs must be
3081 # fully-specified (e.g. `10.96.0.0/14`, but not `/14`), which means:
3082 # 1) When `use_ip_aliases` is true, `cluster_ipv4_cidr_block` and
3083 # `services_ipv4_cidr_block` must be fully-specified.
3084 # 2) When `use_ip_aliases` is false, `cluster.cluster_ipv4_cidr` muse be
3085 # fully-specified.
3086 &quot;nodeIpv4Cidr&quot;: &quot;A String&quot;, # This field is deprecated, use node_ipv4_cidr_block.
3087 &quot;clusterIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP address range for the cluster pod IPs. If this field is set, then
3088 # `cluster.cluster_ipv4_cidr` must be left blank.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003089 #
3090 # This field is only applicable when `use_ip_aliases` is true.
Bu Sun Kim65020912020-05-20 12:08:20 -07003091 #
3092 # Set to blank to have a range chosen with the default size.
3093 #
3094 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
3095 # netmask.
3096 #
3097 # Set to a
3098 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
3099 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
3100 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
3101 # to use.
3102 &quot;clusterSecondaryRangeName&quot;: &quot;A String&quot;, # The name of the secondary range to be used for the cluster CIDR
3103 # block. The secondary range will be used for pod IP
3104 # addresses. This must be an existing secondary range associated
3105 # with the cluster subnetwork.
3106 #
3107 # This field is only applicable with use_ip_aliases and
3108 # create_subnetwork is false.
3109 &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 -07003110 #
3111 # This is applicable only if `create_subnetwork` is true.
3112 #
3113 # Set to blank to have a range chosen with the default size.
3114 #
3115 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
3116 # netmask.
3117 #
3118 # Set to a
3119 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
3120 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
3121 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
3122 # to use.
Bu Sun Kim65020912020-05-20 12:08:20 -07003123 &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 -07003124 # range will be automatically chosen with the default size.
3125 #
3126 # This field is only applicable when `use_ip_aliases` is true.
3127 #
3128 # If unspecified, the range will use the default size.
3129 #
3130 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
3131 # netmask.
3132 #
3133 # Set to a
3134 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
3135 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
3136 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
3137 # to use.
Dan O'Mearadd494642020-05-01 07:42:23 -07003138 # This field is deprecated, use cluster.tpu_config.ipv4_cidr_block instead.
Bu Sun Kim65020912020-05-20 12:08:20 -07003139 &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 -07003140 # CIDR block. The secondary range will be used for service
3141 # ClusterIPs. This must be an existing secondary range associated
3142 # with the cluster subnetwork.
3143 #
3144 # This field is only applicable with use_ip_aliases and
3145 # create_subnetwork is false.
Bu Sun Kim65020912020-05-20 12:08:20 -07003146 &quot;useIpAliases&quot;: True or False, # Whether alias IPs will be used for pod IPs in the cluster.
3147 # This is used in conjunction with use_routes. It cannot
3148 # be true if use_routes is true. If both use_ip_aliases and use_routes are
3149 # false, then the server picks the default IP allocation mode
3150 &quot;createSubnetwork&quot;: True or False, # Whether a new subnetwork will be created automatically for the cluster.
3151 #
3152 # This field is only applicable when `use_ip_aliases` is true.
3153 &quot;subnetworkName&quot;: &quot;A String&quot;, # A custom subnetwork name to be used if `create_subnetwork` is true. If
3154 # this field is empty, then an automatic name will be chosen for the new
3155 # subnetwork.
3156 &quot;clusterIpv4Cidr&quot;: &quot;A String&quot;, # This field is deprecated, use cluster_ipv4_cidr_block.
3157 &quot;servicesIpv4Cidr&quot;: &quot;A String&quot;, # This field is deprecated, use services_ipv4_cidr_block.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003158 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003159 &quot;legacyAbac&quot;: { # Configuration for the legacy Attribute Based Access Control authorization # Configuration for the legacy ABAC authorization mode.
3160 # mode.
3161 &quot;enabled&quot;: True or False, # Whether the ABAC authorizer is enabled for this cluster. When enabled,
3162 # identities in the system, including service accounts, nodes, and
3163 # controllers, will have statically granted permissions beyond those
3164 # provided by the RBAC configuration or IAM.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003165 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003166 &quot;enableTpu&quot;: True or False, # Enable the ability to use Cloud TPUs in this cluster.
3167 # This field is deprecated, use tpu_config.enabled instead.
3168 &quot;resourceUsageExportConfig&quot;: { # Configuration for exporting cluster resource usages. # Configuration for exporting resource usages. Resource usage export is
3169 # disabled when this config unspecified.
3170 &quot;enableNetworkEgressMetering&quot;: True or False, # Whether to enable network egress metering for this cluster. If enabled, a
3171 # daemonset will be created in the cluster to meter network egress traffic.
3172 &quot;consumptionMeteringConfig&quot;: { # Parameters for controlling consumption metering. # Configuration to enable resource consumption metering.
3173 &quot;enabled&quot;: True or False, # Whether to enable consumption metering for this cluster. If enabled, a
3174 # second BigQuery table will be created to hold resource consumption
3175 # records.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003176 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003177 &quot;bigqueryDestination&quot;: { # Parameters for using BigQuery as the destination of resource usage export. # Configuration to use BigQuery as usage export destination.
3178 &quot;datasetId&quot;: &quot;A String&quot;, # The ID of a BigQuery Dataset.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003179 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003180 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003181 &quot;locations&quot;: [ # The list of Google Compute Engine
3182 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
3183 # cluster&#x27;s nodes should be located.
3184 &quot;A String&quot;,
3185 ],
3186 &quot;nodePools&quot;: [ # The node pools associated with this cluster.
3187 # 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 -07003188 # specified.
Bu Sun Kim65020912020-05-20 12:08:20 -07003189 { # NodePool contains the name and configuration for a cluster&#x27;s node pool.
3190 # 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 -07003191 # specification, under the control of the cluster master. They may have a set
3192 # of Kubernetes labels applied to them, which may be used to reference them
3193 # during pod scheduling. They may also be resized up or down, to accommodate
3194 # the workload.
Bu Sun Kim65020912020-05-20 12:08:20 -07003195 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output only] Additional information about the current status of this
3196 # node pool instance, if available.
3197 &quot;autoscaling&quot;: { # NodePoolAutoscaling contains information required by cluster autoscaler to # Autoscaler configuration for this NodePool. Autoscaler is enabled
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003198 # only if a valid configuration is present.
3199 # adjust the size of the node pool to the current cluster usage.
Bu Sun Kim65020912020-05-20 12:08:20 -07003200 &quot;minNodeCount&quot;: 42, # Minimum number of nodes in the NodePool. Must be &gt;= 1 and &lt;=
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003201 # max_node_count.
Bu Sun Kim65020912020-05-20 12:08:20 -07003202 &quot;autoprovisioned&quot;: True or False, # Can this node pool be deleted automatically.
3203 &quot;enabled&quot;: True or False, # Is autoscaling enabled for this node pool.
3204 &quot;maxNodeCount&quot;: 42, # Maximum number of nodes in the NodePool. Must be &gt;= min_node_count. There
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003205 # has to enough quota to scale up the cluster.
3206 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003207 &quot;initialNodeCount&quot;: 42, # The initial node count for the pool. You must ensure that your
3208 # Compute Engine &lt;a href=&quot;/compute/docs/resource-quotas&quot;&gt;resource quota&lt;/a&gt;
3209 # is sufficient for this number of instances. You must also have available
3210 # firewall and routes quota.
3211 &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 -07003212 # disruption caused by an upgrade.
3213 #
3214 # maxUnavailable controls the number of nodes that can be simultaneously
3215 # unavailable.
3216 #
3217 # maxSurge controls the number of additional nodes that can be added to the
3218 # node pool temporarily for the time of the upgrade to increase the number of
3219 # available nodes.
3220 #
3221 # (maxUnavailable + maxSurge) determines the level of parallelism (how many
3222 # nodes are being upgraded at the same time).
3223 #
3224 # Note: upgrades inevitably introduce some disruption since workloads need to
3225 # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
3226 # this holds true. (Disruption stays within the limits of
3227 # PodDisruptionBudget, if it is configured.)
3228 #
3229 # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
3230 # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
3231 # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
3232 # down 3 old (not yet upgraded) nodes at the same time. This ensures that
3233 # there are always at least 4 nodes available.
Bu Sun Kim65020912020-05-20 12:08:20 -07003234 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size
Dan O'Mearadd494642020-05-01 07:42:23 -07003235 # of the node pool during the upgrade process.
Bu Sun Kim65020912020-05-20 12:08:20 -07003236 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during
Dan O'Mearadd494642020-05-01 07:42:23 -07003237 # the upgrade process. A node is considered available if its status is
3238 # Ready.
3239 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003240 &quot;selfLink&quot;: &quot;A String&quot;, # [Output only] Server-defined URL for the resource.
3241 &quot;locations&quot;: [ # The list of Google Compute Engine
3242 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
3243 # NodePool&#x27;s nodes should be located.
3244 &quot;A String&quot;,
3245 ],
3246 &quot;instanceGroupUrls&quot;: [ # [Output only] The resource URLs of the [managed instance
Dan O'Mearadd494642020-05-01 07:42:23 -07003247 # groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
3248 # associated with this node pool.
Bu Sun Kim65020912020-05-20 12:08:20 -07003249 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07003250 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003251 &quot;version&quot;: &quot;A String&quot;, # The version of the Kubernetes of this node.
3252 &quot;podIpv4CidrSize&quot;: 42, # [Output only] The pod CIDR block size per node in this node pool.
3253 &quot;conditions&quot;: [ # Which conditions caused the current node pool state.
3254 { # StatusCondition describes why a cluster or a node pool has a certain status
3255 # (e.g., ERROR or DEGRADED).
3256 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
3257 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Dan O'Mearadd494642020-05-01 07:42:23 -07003258 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003259 ],
3260 &quot;status&quot;: &quot;A String&quot;, # [Output only] The status of the nodes in this pool instance.
3261 &quot;config&quot;: { # Parameters that describe the nodes in a cluster. # The node configuration of the pool.
3262 &quot;diskSizeGb&quot;: 42, # Size of the disk attached to each node, specified in GB.
3263 # The smallest allowed disk size is 10GB.
3264 #
3265 # If unspecified, the default disk size is 100GB.
3266 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to # The workload metadata configuration for this node.
3267 # workloads on the node pool.
3268 &quot;nodeMetadata&quot;: &quot;A String&quot;, # NodeMetadata is the configuration for how to expose metadata to the
3269 # workloads running on the node.
3270 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running
3271 # on the node pool.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003272 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003273 &quot;accelerators&quot;: [ # A list of hardware accelerators to be attached to each node.
3274 # See https://cloud.google.com/compute/docs/gpus for more information about
3275 # support for GPUs.
3276 { # AcceleratorConfig represents a Hardware Accelerator request.
3277 &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of the accelerator cards exposed to an instance.
3278 &quot;acceleratorType&quot;: &quot;A String&quot;, # The accelerator type resource name. List of supported accelerators
3279 # [here](https://cloud.google.com/compute/docs/gpus)
3280 },
3281 ],
3282 &quot;machineType&quot;: &quot;A String&quot;, # The name of a Google Compute Engine [machine
Dan O'Mearadd494642020-05-01 07:42:23 -07003283 # type](https://cloud.google.com/compute/docs/machine-types) (e.g.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003284 # `n1-standard-1`).
3285 #
3286 # If unspecified, the default machine type is
3287 # `n1-standard-1`.
Bu Sun Kim65020912020-05-20 12:08:20 -07003288 &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;)
3289 #
3290 # If unspecified, the default disk type is &#x27;pd-standard&#x27;
3291 &quot;bootDiskKmsKey&quot;: &quot;A String&quot;, #
3292 # The Customer Managed Encryption Key used to encrypt the boot disk attached
3293 # to each node in the node pool. This should be of the form
3294 # projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
3295 # For more information about protecting resources with Cloud KMS Keys please
3296 # see:
3297 # https://cloud.google.com/compute/docs/disks/customer-managed-encryption
3298 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
3299 &quot;enableSecureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled.
3300 #
3301 # Secure Boot helps ensure that the system only runs authentic software by
3302 # verifying the digital signature of all boot components, and halting the
3303 # boot process if signature verification fails.
3304 &quot;enableIntegrityMonitoring&quot;: True or False, # Defines whether the instance has integrity monitoring enabled.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003305 #
3306 # Enables monitoring and attestation of the boot integrity of the instance.
3307 # The attestation is performed against the integrity policy baseline. This
3308 # baseline is initially derived from the implicitly trusted boot image when
3309 # the instance is created.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003310 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003311 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used by this instance. The instance may be
3312 # scheduled on the specified or newer CPU platform. Applicable values are the
3313 # friendly names of CPU platforms, such as
3314 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Haswell&amp;quot;&lt;/code&gt; or
3315 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Sandy Bridge&amp;quot;&lt;/code&gt;. For more
3316 # information, read [how to specify min CPU
3317 # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
3318 &quot;preemptible&quot;: True or False, # Whether the nodes are created as preemptible VM instances. See:
3319 # https://cloud.google.com/compute/docs/instances/preemptible for more
3320 # inforamtion about preemptible VM instances.
3321 &quot;localSsdCount&quot;: 42, # The number of local SSD disks to be attached to the node.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003322 #
Bu Sun Kim65020912020-05-20 12:08:20 -07003323 # The limit for this value is dependent upon the maximum number of
3324 # disks available on a machine per zone. See:
3325 # https://cloud.google.com/compute/docs/disks/local-ssd
3326 # for more information.
3327 &quot;sandboxConfig&quot;: { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node.
3328 &quot;type&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node.
3329 &quot;sandboxType&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node (e.g. &#x27;gvisor&#x27;)
3330 },
3331 &quot;metadata&quot;: { # The metadata key/value pairs assigned to instances in the cluster.
3332 #
3333 # Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
3334 # in length. These are reflected as part of a URL in the metadata server.
3335 # Additionally, to avoid ambiguity, keys must not conflict with any other
3336 # metadata keys for the project or be one of the reserved keys:
3337 # &quot;cluster-location&quot;
3338 # &quot;cluster-name&quot;
3339 # &quot;cluster-uid&quot;
3340 # &quot;configure-sh&quot;
3341 # &quot;containerd-configure-sh&quot;
3342 # &quot;enable-oslogin&quot;
3343 # &quot;gci-ensure-gke-docker&quot;
3344 # &quot;gci-metrics-enabled&quot;
3345 # &quot;gci-update-strategy&quot;
3346 # &quot;instance-template&quot;
3347 # &quot;kube-env&quot;
3348 # &quot;startup-script&quot;
3349 # &quot;user-data&quot;
3350 # &quot;disable-address-manager&quot;
3351 # &quot;windows-startup-script-ps1&quot;
3352 # &quot;common-psm1&quot;
3353 # &quot;k8s-node-setup-psm1&quot;
3354 # &quot;install-ssh-psm1&quot;
3355 # &quot;user-profile-psm1&quot;
3356 # &quot;serial-port-logging-enable&quot;
3357 # Values are free-form strings, and only have meaning as interpreted by
3358 # the image running in the instance. The only restriction placed on them is
3359 # that each value&#x27;s size must be less than or equal to 32 KB.
3360 #
3361 # The total size of all keys and values must be less than 512 KB.
3362 &quot;a_key&quot;: &quot;A String&quot;,
3363 },
3364 &quot;reservationAffinity&quot;: { # [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) # The optional reservation affinity. Setting this field will apply
3365 # the specified [Zonal Compute
3366 # Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
3367 # to this node pool.
3368 # is the configuration of desired reservation which instances could take
3369 # capacity from.
3370 &quot;key&quot;: &quot;A String&quot;, # Corresponds to the label key of a reservation resource. To target a
3371 # SPECIFIC_RESERVATION by name, specify &quot;googleapis.com/reservation-name&quot; as
3372 # the key and specify the name of your reservation as its value.
3373 &quot;values&quot;: [ # Corresponds to the label value(s) of reservation resource(s).
3374 &quot;A String&quot;,
3375 ],
3376 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Corresponds to the type of reservation consumption.
3377 },
3378 &quot;tags&quot;: [ # The list of instance tags applied to all nodes. Tags are used to identify
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003379 # valid sources or targets for network firewalls and are specified by
3380 # the client during cluster or node pool creation. Each tag within the list
3381 # must comply with RFC1035.
Bu Sun Kim65020912020-05-20 12:08:20 -07003382 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003383 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003384 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs.
Dan O'Mearadd494642020-05-01 07:42:23 -07003385 # Specify the email address of the Service Account; otherwise, if no Service
Bu Sun Kim65020912020-05-20 12:08:20 -07003386 # Account is specified, the &quot;default&quot; service account is used.
3387 &quot;imageType&quot;: &quot;A String&quot;, # The image type to use for this node. Note that for a given image type,
3388 # the latest version of it will be used.
3389 &quot;oauthScopes&quot;: [ # The set of Google API scopes to be made available on all of the
3390 # node VMs under the &quot;default&quot; service account.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003391 #
3392 # The following scopes are recommended, but not required, and by default are
3393 # not included:
3394 #
3395 # * `https://www.googleapis.com/auth/compute` is required for mounting
3396 # persistent storage on your nodes.
3397 # * `https://www.googleapis.com/auth/devstorage.read_only` is required for
3398 # communicating with **gcr.io**
Dan O'Mearadd494642020-05-01 07:42:23 -07003399 # (the [Google Container
3400 # Registry](https://cloud.google.com/container-registry/)).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003401 #
3402 # If unspecified, no scopes are added, unless Cloud Logging or Cloud
3403 # Monitoring are enabled, in which case their required scopes will be added.
Bu Sun Kim65020912020-05-20 12:08:20 -07003404 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003405 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003406 &quot;taints&quot;: [ # List of kubernetes taints to be applied to each node.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003407 #
3408 # For more information, including usage and the valid values, see:
3409 # https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
3410 { # Kubernetes taint is comprised of three fields: key, value, and effect. Effect
3411 # can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute.
3412 #
Bu Sun Kim65020912020-05-20 12:08:20 -07003413 # See
3414 # [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration)
3415 # for more information, including usage and the valid values.
3416 &quot;key&quot;: &quot;A String&quot;, # Key for taint.
3417 &quot;value&quot;: &quot;A String&quot;, # Value for taint.
3418 &quot;effect&quot;: &quot;A String&quot;, # Effect for taint.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003419 },
3420 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003421 &quot;labels&quot;: { # The map of Kubernetes labels (key/value pairs) to be applied to each node.
3422 # These will added in addition to any default label(s) that
3423 # Kubernetes may apply to the node.
3424 # In case of conflict in label keys, the applied set may differ depending on
3425 # the Kubernetes version -- it&#x27;s best to assume the behavior is undefined
3426 # and conflicts should be avoided.
3427 # For more information, including usage and the valid values, see:
3428 # https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
3429 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003430 },
3431 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003432 &quot;name&quot;: &quot;A String&quot;, # The name of the node pool.
3433 &quot;maxPodsConstraint&quot;: { # Constraints applied to pods. # The constraint on the maximum number of pods that can be run
3434 # simultaneously on a node in the node pool.
3435 &quot;maxPodsPerNode&quot;: &quot;A String&quot;, # Constraint enforced on the max num of pods per node.
3436 },
3437 &quot;management&quot;: { # NodeManagement defines the set of node management services turned on for the # NodeManagement configuration for this NodePool.
3438 # node pool.
3439 &quot;autoUpgrade&quot;: True or False, # Whether the nodes will be automatically upgraded.
3440 &quot;autoRepair&quot;: True or False, # Whether the nodes will be automatically repaired.
3441 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool.
3442 # the Auto Upgrades will proceed.
3443 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
3444 # with the description of the upgrade.
3445 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
3446 # with the approximate start time for the upgrades, in
3447 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
3448 },
3449 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003450 },
3451 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003452 &quot;selfLink&quot;: &quot;A String&quot;, # [Output only] Server-defined URL for the resource.
3453 &quot;servicesIpv4Cidr&quot;: &quot;A String&quot;, # [Output only] The IP address range of the Kubernetes services in
3454 # this cluster, in
3455 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
3456 # notation (e.g. `1.2.3.4/29`). Service addresses are
3457 # typically put in the last `/16` from the container CIDR.
3458 &quot;networkPolicy&quot;: { # Configuration options for the NetworkPolicy feature. # Configuration options for the NetworkPolicy feature.
3459 # https://kubernetes.io/docs/concepts/services-networking/networkpolicies/
3460 &quot;enabled&quot;: True or False, # Whether network policy is enabled on the cluster.
3461 &quot;provider&quot;: &quot;A String&quot;, # The selected network policy provider.
3462 },
3463 &quot;releaseChannel&quot;: { # ReleaseChannel indicates which release channel a cluster is # Release channel configuration.
3464 # subscribed to. Release channels are arranged in order of risk and
3465 # frequency of updates.
3466 #
3467 # When a cluster is subscribed to a release channel, Google maintains
3468 # both the master version and the node version. Node auto-upgrade
3469 # defaults to true and cannot be disabled. Updates to version related
3470 # fields (e.g. current_master_version) return an error.
3471 &quot;channel&quot;: &quot;A String&quot;, # channel specifies which release channel the cluster is subscribed to.
3472 },
3473 &quot;enableKubernetesAlpha&quot;: True or False, # Kubernetes alpha features are enabled on this cluster. This includes alpha
3474 # API groups (e.g. v1beta1) and features that may not be production ready in
3475 # the kubernetes version of the master and nodes.
3476 # The cluster has no SLA for uptime and master/node upgrades are disabled.
3477 # Alpha enabled clusters are automatically deleted thirty days after
3478 # creation.
3479 &quot;description&quot;: &quot;A String&quot;, # An optional description of this cluster.
3480 &quot;conditions&quot;: [ # Which conditions caused the current cluster state.
3481 { # StatusCondition describes why a cluster or a node pool has a certain status
3482 # (e.g., ERROR or DEGRADED).
3483 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
3484 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
3485 },
3486 ],
3487 &quot;privateCluster&quot;: True or False, # If this is a private cluster setup. Private clusters are clusters that, by
3488 # default have no external IP addresses on the nodes and where nodes and the
3489 # master communicate over private IP addresses.
3490 # This field is deprecated, use private_cluster_config.enable_private_nodes
3491 # instead.
3492 &quot;currentNodeCount&quot;: 42, # [Output only] The number of nodes currently in the cluster. Deprecated.
3493 # Call Kubernetes API directly to retrieve node information.
3494 &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 -07003495 # Currently available options:
3496 #
Bu Sun Kim65020912020-05-20 12:08:20 -07003497 # * &quot;monitoring.googleapis.com/kubernetes&quot; - The Cloud Monitoring
Dan O'Mearadd494642020-05-01 07:42:23 -07003498 # service with a Kubernetes-native resource model
3499 # * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
3500 # longer available as of GKE 1.15).
3501 # * `none` - No metrics will be exported from the cluster.
3502 #
3503 # If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
3504 # used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
Bu Sun Kim65020912020-05-20 12:08:20 -07003505 &quot;databaseEncryption&quot;: { # Configuration of etcd encryption. # Configuration of etcd encryption.
3506 &quot;state&quot;: &quot;A String&quot;, # Denotes the state of etcd encryption.
3507 &quot;keyName&quot;: &quot;A String&quot;, # Name of CloudKMS key to use for the encryption of secrets in etcd.
Dan O'Mearadd494642020-05-01 07:42:23 -07003508 # Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003509 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003510 &quot;binaryAuthorization&quot;: { # Configuration for Binary Authorization. # Configuration for Binary Authorization.
3511 &quot;enabled&quot;: True or False, # Enable Binary Authorization for this cluster. If enabled, all container
3512 # images will be validated by Google Binauthz.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003513 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003514 &quot;tpuIpv4CidrBlock&quot;: &quot;A String&quot;, # [Output only] The IP address range of the Cloud TPUs in this cluster, in
3515 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
3516 # notation (e.g. `1.2.3.4/29`).
3517 &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
3518 # policies.
3519 # policies.
3520 &quot;identityNamespace&quot;: &quot;A String&quot;, # IAM Identity Namespace to attach all Kubernetes Service Accounts to.
3521 &quot;workloadPool&quot;: &quot;A String&quot;, # The workload pool to attach all Kubernetes service accounts to.
3522 },
3523 &quot;zone&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07003524 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
3525 # cluster resides. This field is deprecated, use location instead.
Bu Sun Kim65020912020-05-20 12:08:20 -07003526 &quot;loggingService&quot;: &quot;A String&quot;, # The logging service the cluster should use to write logs.
3527 # Currently available options:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003528 #
Bu Sun Kim65020912020-05-20 12:08:20 -07003529 # * `logging.googleapis.com/kubernetes` - The Cloud Logging
3530 # service with a Kubernetes-native resource model
3531 # * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
3532 # available as of GKE 1.15).
3533 # * `none` - no logs will be exported from the cluster.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003534 #
Bu Sun Kim65020912020-05-20 12:08:20 -07003535 # If left as an empty string,`logging.googleapis.com/kubernetes` will be
3536 # used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
3537 &quot;expireTime&quot;: &quot;A String&quot;, # [Output only] The time the cluster will be automatically
3538 # deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
3539 &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 -07003540 # For requests, this field should only be used in lieu of a
Bu Sun Kim65020912020-05-20 12:08:20 -07003541 # &quot;node_pool&quot; object, since this configuration (along with the
3542 # &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 -07003543 # auto-generated name. Do not use this and a node_pool at the same time.
3544 # For responses, this field will be populated with the node configuration of
3545 # the first node pool. (For configuration of each node pool, see
3546 # `node_pool.config`)
3547 #
3548 # If unspecified, the defaults are used.
3549 # This field is deprecated, use node_pool.config instead.
Bu Sun Kim65020912020-05-20 12:08:20 -07003550 &quot;diskSizeGb&quot;: 42, # Size of the disk attached to each node, specified in GB.
3551 # The smallest allowed disk size is 10GB.
3552 #
3553 # If unspecified, the default disk size is 100GB.
3554 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to # The workload metadata configuration for this node.
3555 # workloads on the node pool.
3556 &quot;nodeMetadata&quot;: &quot;A String&quot;, # NodeMetadata is the configuration for how to expose metadata to the
3557 # workloads running on the node.
3558 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running
3559 # on the node pool.
Dan O'Mearadd494642020-05-01 07:42:23 -07003560 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003561 &quot;accelerators&quot;: [ # A list of hardware accelerators to be attached to each node.
3562 # See https://cloud.google.com/compute/docs/gpus for more information about
3563 # support for GPUs.
3564 { # AcceleratorConfig represents a Hardware Accelerator request.
3565 &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of the accelerator cards exposed to an instance.
3566 &quot;acceleratorType&quot;: &quot;A String&quot;, # The accelerator type resource name. List of supported accelerators
3567 # [here](https://cloud.google.com/compute/docs/gpus)
3568 },
3569 ],
3570 &quot;machineType&quot;: &quot;A String&quot;, # The name of a Google Compute Engine [machine
Dan O'Mearadd494642020-05-01 07:42:23 -07003571 # type](https://cloud.google.com/compute/docs/machine-types) (e.g.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003572 # `n1-standard-1`).
3573 #
3574 # If unspecified, the default machine type is
3575 # `n1-standard-1`.
Bu Sun Kim65020912020-05-20 12:08:20 -07003576 &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;)
3577 #
3578 # If unspecified, the default disk type is &#x27;pd-standard&#x27;
3579 &quot;bootDiskKmsKey&quot;: &quot;A String&quot;, #
3580 # The Customer Managed Encryption Key used to encrypt the boot disk attached
3581 # to each node in the node pool. This should be of the form
3582 # projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
3583 # For more information about protecting resources with Cloud KMS Keys please
3584 # see:
3585 # https://cloud.google.com/compute/docs/disks/customer-managed-encryption
3586 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
3587 &quot;enableSecureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled.
3588 #
3589 # Secure Boot helps ensure that the system only runs authentic software by
3590 # verifying the digital signature of all boot components, and halting the
3591 # boot process if signature verification fails.
3592 &quot;enableIntegrityMonitoring&quot;: True or False, # Defines whether the instance has integrity monitoring enabled.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003593 #
3594 # Enables monitoring and attestation of the boot integrity of the instance.
3595 # The attestation is performed against the integrity policy baseline. This
3596 # baseline is initially derived from the implicitly trusted boot image when
3597 # the instance is created.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003598 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003599 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used by this instance. The instance may be
3600 # scheduled on the specified or newer CPU platform. Applicable values are the
3601 # friendly names of CPU platforms, such as
3602 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Haswell&amp;quot;&lt;/code&gt; or
3603 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Sandy Bridge&amp;quot;&lt;/code&gt;. For more
3604 # information, read [how to specify min CPU
3605 # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
3606 &quot;preemptible&quot;: True or False, # Whether the nodes are created as preemptible VM instances. See:
3607 # https://cloud.google.com/compute/docs/instances/preemptible for more
3608 # inforamtion about preemptible VM instances.
3609 &quot;localSsdCount&quot;: 42, # The number of local SSD disks to be attached to the node.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003610 #
Bu Sun Kim65020912020-05-20 12:08:20 -07003611 # The limit for this value is dependent upon the maximum number of
3612 # disks available on a machine per zone. See:
3613 # https://cloud.google.com/compute/docs/disks/local-ssd
3614 # for more information.
3615 &quot;sandboxConfig&quot;: { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node.
3616 &quot;type&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node.
3617 &quot;sandboxType&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node (e.g. &#x27;gvisor&#x27;)
3618 },
3619 &quot;metadata&quot;: { # The metadata key/value pairs assigned to instances in the cluster.
3620 #
3621 # Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
3622 # in length. These are reflected as part of a URL in the metadata server.
3623 # Additionally, to avoid ambiguity, keys must not conflict with any other
3624 # metadata keys for the project or be one of the reserved keys:
3625 # &quot;cluster-location&quot;
3626 # &quot;cluster-name&quot;
3627 # &quot;cluster-uid&quot;
3628 # &quot;configure-sh&quot;
3629 # &quot;containerd-configure-sh&quot;
3630 # &quot;enable-oslogin&quot;
3631 # &quot;gci-ensure-gke-docker&quot;
3632 # &quot;gci-metrics-enabled&quot;
3633 # &quot;gci-update-strategy&quot;
3634 # &quot;instance-template&quot;
3635 # &quot;kube-env&quot;
3636 # &quot;startup-script&quot;
3637 # &quot;user-data&quot;
3638 # &quot;disable-address-manager&quot;
3639 # &quot;windows-startup-script-ps1&quot;
3640 # &quot;common-psm1&quot;
3641 # &quot;k8s-node-setup-psm1&quot;
3642 # &quot;install-ssh-psm1&quot;
3643 # &quot;user-profile-psm1&quot;
3644 # &quot;serial-port-logging-enable&quot;
3645 # Values are free-form strings, and only have meaning as interpreted by
3646 # the image running in the instance. The only restriction placed on them is
3647 # that each value&#x27;s size must be less than or equal to 32 KB.
3648 #
3649 # The total size of all keys and values must be less than 512 KB.
3650 &quot;a_key&quot;: &quot;A String&quot;,
3651 },
3652 &quot;reservationAffinity&quot;: { # [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) # The optional reservation affinity. Setting this field will apply
3653 # the specified [Zonal Compute
3654 # Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
3655 # to this node pool.
3656 # is the configuration of desired reservation which instances could take
3657 # capacity from.
3658 &quot;key&quot;: &quot;A String&quot;, # Corresponds to the label key of a reservation resource. To target a
3659 # SPECIFIC_RESERVATION by name, specify &quot;googleapis.com/reservation-name&quot; as
3660 # the key and specify the name of your reservation as its value.
3661 &quot;values&quot;: [ # Corresponds to the label value(s) of reservation resource(s).
3662 &quot;A String&quot;,
3663 ],
3664 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Corresponds to the type of reservation consumption.
3665 },
3666 &quot;tags&quot;: [ # The list of instance tags applied to all nodes. Tags are used to identify
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003667 # valid sources or targets for network firewalls and are specified by
3668 # the client during cluster or node pool creation. Each tag within the list
3669 # must comply with RFC1035.
Bu Sun Kim65020912020-05-20 12:08:20 -07003670 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003671 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003672 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs.
Dan O'Mearadd494642020-05-01 07:42:23 -07003673 # Specify the email address of the Service Account; otherwise, if no Service
Bu Sun Kim65020912020-05-20 12:08:20 -07003674 # Account is specified, the &quot;default&quot; service account is used.
3675 &quot;imageType&quot;: &quot;A String&quot;, # The image type to use for this node. Note that for a given image type,
3676 # the latest version of it will be used.
3677 &quot;oauthScopes&quot;: [ # The set of Google API scopes to be made available on all of the
3678 # node VMs under the &quot;default&quot; service account.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003679 #
3680 # The following scopes are recommended, but not required, and by default are
3681 # not included:
3682 #
3683 # * `https://www.googleapis.com/auth/compute` is required for mounting
3684 # persistent storage on your nodes.
3685 # * `https://www.googleapis.com/auth/devstorage.read_only` is required for
3686 # communicating with **gcr.io**
Dan O'Mearadd494642020-05-01 07:42:23 -07003687 # (the [Google Container
3688 # Registry](https://cloud.google.com/container-registry/)).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003689 #
3690 # If unspecified, no scopes are added, unless Cloud Logging or Cloud
3691 # Monitoring are enabled, in which case their required scopes will be added.
Bu Sun Kim65020912020-05-20 12:08:20 -07003692 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003693 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003694 &quot;taints&quot;: [ # List of kubernetes taints to be applied to each node.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003695 #
3696 # For more information, including usage and the valid values, see:
3697 # https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
3698 { # Kubernetes taint is comprised of three fields: key, value, and effect. Effect
3699 # can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute.
3700 #
Bu Sun Kim65020912020-05-20 12:08:20 -07003701 # See
3702 # [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration)
3703 # for more information, including usage and the valid values.
3704 &quot;key&quot;: &quot;A String&quot;, # Key for taint.
3705 &quot;value&quot;: &quot;A String&quot;, # Value for taint.
3706 &quot;effect&quot;: &quot;A String&quot;, # Effect for taint.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003707 },
3708 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003709 &quot;labels&quot;: { # The map of Kubernetes labels (key/value pairs) to be applied to each node.
3710 # These will added in addition to any default label(s) that
3711 # Kubernetes may apply to the node.
3712 # In case of conflict in label keys, the applied set may differ depending on
3713 # the Kubernetes version -- it&#x27;s best to assume the behavior is undefined
3714 # and conflicts should be avoided.
3715 # For more information, including usage and the valid values, see:
3716 # https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
3717 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003718 },
3719 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003720 &quot;status&quot;: &quot;A String&quot;, # [Output only] The current status of this cluster.
3721 &quot;tpuConfig&quot;: { # Configuration for Cloud TPU. # Configuration for Cloud TPU support;
3722 &quot;enabled&quot;: True or False, # Whether Cloud TPU integration is enabled or not.
3723 &quot;ipv4CidrBlock&quot;: &quot;A String&quot;, # IPv4 CIDR block reserved for Cloud TPU in the VPC.
3724 &quot;useServiceNetworking&quot;: True or False, # Whether to use service networking for Cloud TPU or not.
3725 },
3726 &quot;networkConfig&quot;: { # NetworkConfig reports the relative names of network &amp; subnetwork. # Configuration for cluster networking.
3727 &quot;subnetwork&quot;: &quot;A String&quot;, # Output only. The relative name of the Google Compute Engine
3728 # [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the
3729 # cluster is connected. Example:
3730 # projects/my-project/regions/us-central1/subnetworks/my-subnet
3731 &quot;network&quot;: &quot;A String&quot;, # Output only. The relative name of the Google Compute Engine
3732 # network(https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
3733 # to which the cluster is connected. Example:
3734 # projects/my-project/global/networks/my-network
3735 &quot;enableIntraNodeVisibility&quot;: True or False, # Whether Intra-node visibility is enabled for this cluster.
3736 # This makes same node pod to pod traffic visible for VPC network.
3737 },
3738 &quot;name&quot;: &quot;A String&quot;, # The name of this cluster. The name must be unique within this project
3739 # and location (e.g. zone or region), and can be up to 40 characters with
3740 # the following restrictions:
3741 #
3742 # * Lowercase letters, numbers, and hyphens only.
3743 # * Must start with a letter.
3744 # * Must end with a number or a letter.
3745 &quot;endpoint&quot;: &quot;A String&quot;, # [Output only] The IP address of this cluster&#x27;s master endpoint.
3746 # The endpoint can be accessed from the internet at
3747 # `https://username:password@endpoint/`.
3748 #
3749 # See the `masterAuth` property of this resource for username and
3750 # password information.
3751 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
3752 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
3753 # or
3754 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
3755 # in which the cluster resides.
3756 &quot;createTime&quot;: &quot;A String&quot;, # [Output only] The time the cluster was created, in
3757 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
3758 &quot;clusterIpv4Cidr&quot;: &quot;A String&quot;, # The IP address range of the container pods in this cluster, in
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003759 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
3760 # notation (e.g. `10.96.0.0/14`). Leave blank to have
3761 # one automatically chosen or specify a `/14` block in `10.0.0.0/8`.
Bu Sun Kim65020912020-05-20 12:08:20 -07003762 &quot;autoscaling&quot;: { # ClusterAutoscaling contains global, per-cluster information # Cluster-level autoscaling configuration.
3763 # required by Cluster Autoscaler to automatically adjust
3764 # the size of the cluster and create/delete
3765 # node pools based on the current needs.
3766 &quot;resourceLimits&quot;: [ # Contains global constraints regarding minimum and maximum
3767 # amount of resources in the cluster.
3768 { # Contains information about amount of some resource in the cluster.
3769 # For memory, value should be in GB.
3770 &quot;maximum&quot;: &quot;A String&quot;, # Maximum amount of the resource in the cluster.
3771 &quot;resourceType&quot;: &quot;A String&quot;, # Resource name &quot;cpu&quot;, &quot;memory&quot; or gpu-specific string.
3772 &quot;minimum&quot;: &quot;A String&quot;, # Minimum amount of the resource in the cluster.
3773 },
3774 ],
3775 &quot;autoscalingProfile&quot;: &quot;A String&quot;, # Defines autoscaling behaviour.
3776 &quot;enableNodeAutoprovisioning&quot;: True or False, # Enables automatic node pool creation and deletion.
3777 &quot;autoprovisioningNodePoolDefaults&quot;: { # AutoprovisioningNodePoolDefaults contains defaults for a node pool created # AutoprovisioningNodePoolDefaults contains defaults for a node pool
3778 # created by NAP.
3779 # by NAP.
3780 &quot;oauthScopes&quot;: [ # Scopes that are used by NAP when creating node pools. If oauth_scopes are
3781 # specified, service_account should be empty.
3782 &quot;A String&quot;,
3783 ],
3784 &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.
3785 # node pool.
3786 &quot;autoUpgrade&quot;: True or False, # Whether the nodes will be automatically upgraded.
3787 &quot;autoRepair&quot;: True or False, # Whether the nodes will be automatically repaired.
3788 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool.
3789 # the Auto Upgrades will proceed.
3790 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
3791 # with the description of the upgrade.
3792 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
3793 # with the approximate start time for the upgrades, in
3794 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
3795 },
3796 },
3797 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used for NAP created node pools.
3798 # The instance may be scheduled on the specified or newer CPU platform.
3799 # Applicable values are the friendly names of CPU platforms, such as
3800 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Haswell&amp;quot;&lt;/code&gt; or
3801 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Sandy Bridge&amp;quot;&lt;/code&gt;. For more
3802 # information, read [how to specify min CPU
3803 # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
3804 # To unset the min cpu platform field pass &quot;automatic&quot; as field value.
3805 &quot;upgradeSettings&quot;: { # These upgrade settings control the level of parallelism and the level of # Specifies the upgrade settings for NAP created node pools
3806 # disruption caused by an upgrade.
3807 #
3808 # maxUnavailable controls the number of nodes that can be simultaneously
3809 # unavailable.
3810 #
3811 # maxSurge controls the number of additional nodes that can be added to the
3812 # node pool temporarily for the time of the upgrade to increase the number of
3813 # available nodes.
3814 #
3815 # (maxUnavailable + maxSurge) determines the level of parallelism (how many
3816 # nodes are being upgraded at the same time).
3817 #
3818 # Note: upgrades inevitably introduce some disruption since workloads need to
3819 # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
3820 # this holds true. (Disruption stays within the limits of
3821 # PodDisruptionBudget, if it is configured.)
3822 #
3823 # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
3824 # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
3825 # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
3826 # down 3 old (not yet upgraded) nodes at the same time. This ensures that
3827 # there are always at least 4 nodes available.
3828 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size
3829 # of the node pool during the upgrade process.
3830 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during
3831 # the upgrade process. A node is considered available if its status is
3832 # Ready.
3833 },
3834 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs. If
3835 # service_account is specified, scopes should be empty.
3836 },
3837 &quot;autoprovisioningLocations&quot;: [ # The list of Google Compute Engine
3838 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
3839 # NodePool&#x27;s nodes can be created by NAP.
3840 &quot;A String&quot;,
3841 ],
Dan O'Mearadd494642020-05-01 07:42:23 -07003842 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003843 &quot;initialNodeCount&quot;: 42, # The number of nodes to create in this cluster. You must ensure that your
3844 # Compute Engine &lt;a href=&quot;/compute/docs/resource-quotas&quot;&gt;resource quota&lt;/a&gt;
Dan O'Mearadd494642020-05-01 07:42:23 -07003845 # is sufficient for this number of instances. You must also have available
3846 # firewall and routes quota.
3847 # For requests, this field should only be used in lieu of a
Bu Sun Kim65020912020-05-20 12:08:20 -07003848 # &quot;node_pool&quot; object, since this configuration (along with the
3849 # &quot;node_config&quot;) will be used to create a &quot;NodePool&quot; object with an
Dan O'Mearadd494642020-05-01 07:42:23 -07003850 # auto-generated name. Do not use this and a node_pool at the same time.
3851 #
3852 # This field is deprecated, use node_pool.initial_node_count instead.
Bu Sun Kim65020912020-05-20 12:08:20 -07003853 &quot;instanceGroupUrls&quot;: [ # Deprecated. Use node_pools.instance_group_urls.
3854 &quot;A String&quot;,
3855 ],
3856 &quot;privateClusterConfig&quot;: { # Configuration options for private clusters. # Configuration for private cluster.
3857 &quot;privateEndpoint&quot;: &quot;A String&quot;, # Output only. The internal IP address of this cluster&#x27;s master endpoint.
3858 &quot;enablePrivateEndpoint&quot;: True or False, # Whether the master&#x27;s internal IP address is used as the cluster endpoint.
3859 &quot;peeringName&quot;: &quot;A String&quot;, # Output only. The peering name in the customer VPC used by this cluster.
3860 &quot;masterGlobalAccessConfig&quot;: { # Configuration for controlling master global access settings. # Controls master global access settings.
3861 &quot;enabled&quot;: True or False, # Whenever master is accessible globally or not.
3862 },
3863 &quot;publicEndpoint&quot;: &quot;A String&quot;, # Output only. The external IP address of this cluster&#x27;s master endpoint.
3864 &quot;enablePrivateNodes&quot;: True or False, # Whether nodes have internal IP addresses only. If enabled, all nodes are
3865 # given only RFC 1918 private addresses and communicate with the master via
3866 # private networking.
3867 &quot;masterIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP range in CIDR notation to use for the hosted master network. This
3868 # range will be used for assigning internal IP addresses to the master or
3869 # set of masters, as well as the ILB VIP. This range must not overlap with
3870 # any other ranges in use within the cluster&#x27;s network.
3871 },
3872 &quot;shieldedNodes&quot;: { # Configuration of Shielded Nodes feature. # Shielded Nodes configuration.
3873 &quot;enabled&quot;: True or False, # Whether Shielded Nodes features are enabled on all nodes in this cluster.
3874 },
3875 &quot;verticalPodAutoscaling&quot;: { # VerticalPodAutoscaling contains global, per-cluster information # Cluster-level Vertical Pod Autoscaling configuration.
3876 # required by Vertical Pod Autoscaler to automatically adjust
3877 # the resources of pods controlled by it.
3878 &quot;enabled&quot;: True or False, # Enables vertical pod autoscaling.
3879 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003880 },
3881 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003882 &quot;missingZones&quot;: [ # If any zones are listed here, the list of clusters returned
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003883 # may be missing those zones.
Bu Sun Kim65020912020-05-20 12:08:20 -07003884 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003885 ],
3886 }</pre>
3887</div>
3888
3889<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07003890 <code class="details" id="locations">locations(projectId, zone, clusterId, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003891 <pre>Sets the locations for a specific cluster.
Dan O'Mearadd494642020-05-01 07:42:23 -07003892Deprecated. Use
3893[projects.locations.clusters.update](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1beta1/projects.locations.clusters/update)
3894instead.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003895
3896Args:
Dan O'Mearadd494642020-05-01 07:42:23 -07003897 projectId: string, Required. Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003898number](https://support.google.com/cloud/answer/6158840).
3899This field has been deprecated and replaced by the name field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07003900 zone: string, Required. Deprecated. The name of the Google Compute Engine
3901[zone](https://cloud.google.com/compute/docs/zones#available) in which the
3902cluster resides. This field has been deprecated and replaced by the name
3903field. (required)
3904 clusterId: string, Required. Deprecated. The name of the cluster to upgrade.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003905This field has been deprecated and replaced by the name field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07003906 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003907 The object takes the form of:
3908
3909{ # SetLocationsRequest sets the locations of the cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -07003910 &quot;projectId&quot;: &quot;A String&quot;, # Required. Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003911 # number](https://support.google.com/cloud/answer/6158840).
3912 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07003913 &quot;zone&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07003914 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
3915 # cluster resides. This field has been deprecated and replaced by the name
3916 # field.
Bu Sun Kim65020912020-05-20 12:08:20 -07003917 &quot;locations&quot;: [ # Required. The desired list of Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07003918 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
Bu Sun Kim65020912020-05-20 12:08:20 -07003919 # cluster&#x27;s nodes should be located. Changing the locations a cluster is in
Dan O'Mearadd494642020-05-01 07:42:23 -07003920 # will result in nodes being either created or removed from the cluster,
3921 # depending on whether locations are being added or removed.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003922 #
Bu Sun Kim65020912020-05-20 12:08:20 -07003923 # This list must always include the cluster&#x27;s primary zone.
3924 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003925 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003926 &quot;clusterId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the cluster to upgrade.
3927 # This field has been deprecated and replaced by the name field.
3928 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster) of the cluster to set locations.
3929 # Specified in the format `projects/*/locations/*/clusters/*`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003930 }
3931
3932 x__xgafv: string, V1 error format.
3933 Allowed values
3934 1 - v1 error format
3935 2 - v2 error format
3936
3937Returns:
3938 An object of the form:
3939
3940 { # This operation resource represents operations that may have happened or are
3941 # happening on the cluster. All fields are output only.
Bu Sun Kim65020912020-05-20 12:08:20 -07003942 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003943 { # StatusCondition describes why a cluster or a node pool has a certain status
3944 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07003945 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
3946 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003947 },
3948 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003949 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07003950 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
3951 # or
3952 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
3953 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07003954 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
3955 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
3956 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
3957 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
3958 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
3959 { # StatusCondition describes why a cluster or a node pool has a certain status
3960 # (e.g., ERROR or DEGRADED).
3961 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
3962 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
3963 },
3964 ],
3965 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
3966 &quot;stages&quot;: [ # Substages of an operation or a stage.
3967 # Object with schema name: OperationProgress
3968 ],
3969 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
3970 # Unset for single-stage operations.
3971 &quot;metrics&quot;: [ # Progress metric bundle, for example:
3972 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
3973 # {name: &quot;nodes total&quot;, int_value: 32}]
3974 # or
3975 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
3976 # {name: &quot;progress scale&quot;, double_value: 1.0}]
3977 { # Progress metric is (string, int|float|string) pair.
3978 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
3979 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
3980 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
3981 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
3982 },
3983 ],
3984 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
3985 # Unset for single-stage operations.
3986 },
3987 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
3988 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
3989 # operation is taking place. This field is deprecated, use location instead.
3990 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
3991 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
3992 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
3993 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
3994 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
3995 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
3996 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003997 }</pre>
3998</div>
3999
4000<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07004001 <code class="details" id="logging">logging(projectId, zone, clusterId, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004002 <pre>Sets the logging service for a specific cluster.
4003
4004Args:
Dan O'Mearadd494642020-05-01 07:42:23 -07004005 projectId: string, Required. Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004006number](https://support.google.com/cloud/answer/6158840).
4007This field has been deprecated and replaced by the name field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07004008 zone: string, Required. Deprecated. The name of the Google Compute Engine
4009[zone](https://cloud.google.com/compute/docs/zones#available) in which the
4010cluster resides. This field has been deprecated and replaced by the name
4011field. (required)
4012 clusterId: string, Required. Deprecated. The name of the cluster to upgrade.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004013This field has been deprecated and replaced by the name field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07004014 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004015 The object takes the form of:
4016
4017{ # SetLoggingServiceRequest sets the logging service of a cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -07004018 &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 -07004019 # Currently available options:
4020 #
Dan O'Mearadd494642020-05-01 07:42:23 -07004021 # * `logging.googleapis.com/kubernetes` - The Cloud Logging
4022 # service with a Kubernetes-native resource model
4023 # * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
4024 # available as of GKE 1.15).
4025 # * `none` - no logs will be exported from the cluster.
4026 #
4027 # If left as an empty string,`logging.googleapis.com/kubernetes` will be
4028 # used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
Bu Sun Kim65020912020-05-20 12:08:20 -07004029 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster) of the cluster to set logging.
4030 # Specified in the format `projects/*/locations/*/clusters/*`.
4031 &quot;projectId&quot;: &quot;A String&quot;, # Required. Deprecated. The Google Developers Console [project ID or project
4032 # number](https://support.google.com/cloud/answer/6158840).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004033 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07004034 &quot;zone&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07004035 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4036 # cluster resides. This field has been deprecated and replaced by the name
4037 # field.
Bu Sun Kim65020912020-05-20 12:08:20 -07004038 &quot;clusterId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the cluster to upgrade.
4039 # This field has been deprecated and replaced by the name field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004040 }
4041
4042 x__xgafv: string, V1 error format.
4043 Allowed values
4044 1 - v1 error format
4045 2 - v2 error format
4046
4047Returns:
4048 An object of the form:
4049
4050 { # This operation resource represents operations that may have happened or are
4051 # happening on the cluster. All fields are output only.
Bu Sun Kim65020912020-05-20 12:08:20 -07004052 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004053 { # StatusCondition describes why a cluster or a node pool has a certain status
4054 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07004055 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
4056 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004057 },
4058 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07004059 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07004060 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4061 # or
4062 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4063 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07004064 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
4065 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
4066 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
4067 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
4068 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
4069 { # StatusCondition describes why a cluster or a node pool has a certain status
4070 # (e.g., ERROR or DEGRADED).
4071 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
4072 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
4073 },
4074 ],
4075 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
4076 &quot;stages&quot;: [ # Substages of an operation or a stage.
4077 # Object with schema name: OperationProgress
4078 ],
4079 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
4080 # Unset for single-stage operations.
4081 &quot;metrics&quot;: [ # Progress metric bundle, for example:
4082 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
4083 # {name: &quot;nodes total&quot;, int_value: 32}]
4084 # or
4085 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
4086 # {name: &quot;progress scale&quot;, double_value: 1.0}]
4087 { # Progress metric is (string, int|float|string) pair.
4088 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
4089 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
4090 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
4091 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
4092 },
4093 ],
4094 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
4095 # Unset for single-stage operations.
4096 },
4097 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
4098 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4099 # operation is taking place. This field is deprecated, use location instead.
4100 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
4101 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
4102 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
4103 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
4104 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
4105 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
4106 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004107 }</pre>
4108</div>
4109
4110<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07004111 <code class="details" id="master">master(projectId, zone, clusterId, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004112 <pre>Updates the master for a specific cluster.
4113
4114Args:
Dan O'Mearadd494642020-05-01 07:42:23 -07004115 projectId: string, Required. Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004116number](https://support.google.com/cloud/answer/6158840).
4117This field has been deprecated and replaced by the name field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07004118 zone: string, Required. Deprecated. The name of the Google Compute Engine
4119[zone](https://cloud.google.com/compute/docs/zones#available) in which the
4120cluster resides. This field has been deprecated and replaced by the name
4121field. (required)
4122 clusterId: string, Required. Deprecated. The name of the cluster to upgrade.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004123This field has been deprecated and replaced by the name field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07004124 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004125 The object takes the form of:
4126
4127{ # UpdateMasterRequest updates the master of the cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -07004128 &quot;projectId&quot;: &quot;A String&quot;, # Required. Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004129 # number](https://support.google.com/cloud/answer/6158840).
4130 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07004131 &quot;zone&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the Google Compute Engine
4132 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4133 # cluster resides. This field has been deprecated and replaced by the name
4134 # field.
4135 &quot;masterVersion&quot;: &quot;A String&quot;, # Required. The Kubernetes version to change the master to.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004136 #
4137 # Users may specify either explicit versions offered by
4138 # Kubernetes Engine or version aliases, which have the following behavior:
4139 #
Bu Sun Kim65020912020-05-20 12:08:20 -07004140 # - &quot;latest&quot;: picks the highest valid Kubernetes version
4141 # - &quot;1.X&quot;: picks the highest valid patch+gke.N patch in the 1.X version
4142 # - &quot;1.X.Y&quot;: picks the highest valid gke.N patch in the 1.X.Y version
4143 # - &quot;1.X.Y-gke.N&quot;: picks an explicit Kubernetes version
4144 # - &quot;-&quot;: picks the default Kubernetes version
4145 &quot;clusterId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the cluster to upgrade.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004146 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07004147 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster) of the cluster to update.
4148 # Specified in the format `projects/*/locations/*/clusters/*`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004149 }
4150
4151 x__xgafv: string, V1 error format.
4152 Allowed values
4153 1 - v1 error format
4154 2 - v2 error format
4155
4156Returns:
4157 An object of the form:
4158
4159 { # This operation resource represents operations that may have happened or are
4160 # happening on the cluster. All fields are output only.
Bu Sun Kim65020912020-05-20 12:08:20 -07004161 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004162 { # StatusCondition describes why a cluster or a node pool has a certain status
4163 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07004164 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
4165 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004166 },
4167 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07004168 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07004169 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4170 # or
4171 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4172 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07004173 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
4174 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
4175 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
4176 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
4177 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
4178 { # StatusCondition describes why a cluster or a node pool has a certain status
4179 # (e.g., ERROR or DEGRADED).
4180 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
4181 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
4182 },
4183 ],
4184 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
4185 &quot;stages&quot;: [ # Substages of an operation or a stage.
4186 # Object with schema name: OperationProgress
4187 ],
4188 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
4189 # Unset for single-stage operations.
4190 &quot;metrics&quot;: [ # Progress metric bundle, for example:
4191 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
4192 # {name: &quot;nodes total&quot;, int_value: 32}]
4193 # or
4194 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
4195 # {name: &quot;progress scale&quot;, double_value: 1.0}]
4196 { # Progress metric is (string, int|float|string) pair.
4197 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
4198 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
4199 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
4200 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
4201 },
4202 ],
4203 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
4204 # Unset for single-stage operations.
4205 },
4206 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
4207 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4208 # operation is taking place. This field is deprecated, use location instead.
4209 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
4210 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
4211 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
4212 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
4213 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
4214 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
4215 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004216 }</pre>
4217</div>
4218
4219<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07004220 <code class="details" id="monitoring">monitoring(projectId, zone, clusterId, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004221 <pre>Sets the monitoring service for a specific cluster.
4222
4223Args:
Dan O'Mearadd494642020-05-01 07:42:23 -07004224 projectId: string, Required. Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004225number](https://support.google.com/cloud/answer/6158840).
4226This field has been deprecated and replaced by the name field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07004227 zone: string, Required. Deprecated. The name of the Google Compute Engine
4228[zone](https://cloud.google.com/compute/docs/zones#available) in which the
4229cluster resides. This field has been deprecated and replaced by the name
4230field. (required)
4231 clusterId: string, Required. Deprecated. The name of the cluster to upgrade.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004232This field has been deprecated and replaced by the name field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07004233 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004234 The object takes the form of:
4235
4236{ # SetMonitoringServiceRequest sets the monitoring service of a cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -07004237 &quot;projectId&quot;: &quot;A String&quot;, # Required. Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004238 # number](https://support.google.com/cloud/answer/6158840).
4239 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07004240 &quot;zone&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the Google Compute Engine
4241 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4242 # cluster resides. This field has been deprecated and replaced by the name
4243 # field.
4244 &quot;clusterId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the cluster to upgrade.
4245 # This field has been deprecated and replaced by the name field.
4246 &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 -07004247 # Currently available options:
4248 #
Bu Sun Kim65020912020-05-20 12:08:20 -07004249 # * &quot;monitoring.googleapis.com/kubernetes&quot; - The Cloud Monitoring
Dan O'Mearadd494642020-05-01 07:42:23 -07004250 # service with a Kubernetes-native resource model
4251 # * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
4252 # longer available as of GKE 1.15).
4253 # * `none` - No metrics will be exported from the cluster.
4254 #
4255 # If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
4256 # used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
Bu Sun Kim65020912020-05-20 12:08:20 -07004257 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster) of the cluster to set monitoring.
4258 # Specified in the format `projects/*/locations/*/clusters/*`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004259 }
4260
4261 x__xgafv: string, V1 error format.
4262 Allowed values
4263 1 - v1 error format
4264 2 - v2 error format
4265
4266Returns:
4267 An object of the form:
4268
4269 { # This operation resource represents operations that may have happened or are
4270 # happening on the cluster. All fields are output only.
Bu Sun Kim65020912020-05-20 12:08:20 -07004271 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004272 { # StatusCondition describes why a cluster or a node pool has a certain status
4273 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07004274 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
4275 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004276 },
4277 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07004278 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07004279 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4280 # or
4281 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4282 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07004283 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
4284 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
4285 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
4286 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
4287 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
4288 { # StatusCondition describes why a cluster or a node pool has a certain status
4289 # (e.g., ERROR or DEGRADED).
4290 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
4291 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
4292 },
4293 ],
4294 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
4295 &quot;stages&quot;: [ # Substages of an operation or a stage.
4296 # Object with schema name: OperationProgress
4297 ],
4298 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
4299 # Unset for single-stage operations.
4300 &quot;metrics&quot;: [ # Progress metric bundle, for example:
4301 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
4302 # {name: &quot;nodes total&quot;, int_value: 32}]
4303 # or
4304 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
4305 # {name: &quot;progress scale&quot;, double_value: 1.0}]
4306 { # Progress metric is (string, int|float|string) pair.
4307 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
4308 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
4309 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
4310 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
4311 },
4312 ],
4313 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
4314 # Unset for single-stage operations.
4315 },
4316 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
4317 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4318 # operation is taking place. This field is deprecated, use location instead.
4319 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
4320 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
4321 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
4322 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
4323 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
4324 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
4325 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004326 }</pre>
4327</div>
4328
4329<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07004330 <code class="details" id="resourceLabels">resourceLabels(projectId, zone, clusterId, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004331 <pre>Sets labels on a cluster.
4332
4333Args:
Dan O'Mearadd494642020-05-01 07:42:23 -07004334 projectId: string, Required. Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004335number](https://developers.google.com/console/help/new/#projectnumber).
4336This field has been deprecated and replaced by the name field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07004337 zone: string, Required. Deprecated. The name of the Google Compute Engine
4338[zone](https://cloud.google.com/compute/docs/zones#available) in which the
4339cluster resides. This field has been deprecated and replaced by the name
4340field. (required)
4341 clusterId: string, Required. Deprecated. The name of the cluster.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004342This field has been deprecated and replaced by the name field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07004343 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004344 The object takes the form of:
4345
4346{ # SetLabelsRequest sets the Google Cloud Platform labels on a Google Container
4347 # Engine cluster, which will in turn set them for Google Compute Engine
4348 # resources used by that cluster
Bu Sun Kim65020912020-05-20 12:08:20 -07004349 &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 -07004350 # used to detect conflicts. The fingerprint is initially generated by
4351 # Kubernetes Engine and changes after every request to modify or update
4352 # labels. You must always provide an up-to-date fingerprint hash when
Dan O'Mearadd494642020-05-01 07:42:23 -07004353 # updating or changing labels. Make a &lt;code&gt;get()&lt;/code&gt; request to the
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004354 # resource to get the latest fingerprint.
Bu Sun Kim65020912020-05-20 12:08:20 -07004355 &quot;zone&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the Google Compute Engine
4356 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4357 # cluster resides. This field has been deprecated and replaced by the name
4358 # field.
4359 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster id) of the cluster to set labels.
4360 # Specified in the format `projects/*/locations/*/clusters/*`.
4361 &quot;resourceLabels&quot;: { # Required. The labels to set for that cluster.
4362 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004363 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004364 &quot;projectId&quot;: &quot;A String&quot;, # Required. Deprecated. The Google Developers Console [project ID or project
4365 # number](https://developers.google.com/console/help/new/#projectnumber).
4366 # This field has been deprecated and replaced by the name field.
4367 &quot;clusterId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the cluster.
4368 # This field has been deprecated and replaced by the name field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004369 }
4370
4371 x__xgafv: string, V1 error format.
4372 Allowed values
4373 1 - v1 error format
4374 2 - v2 error format
4375
4376Returns:
4377 An object of the form:
4378
4379 { # This operation resource represents operations that may have happened or are
4380 # happening on the cluster. All fields are output only.
Bu Sun Kim65020912020-05-20 12:08:20 -07004381 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004382 { # StatusCondition describes why a cluster or a node pool has a certain status
4383 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07004384 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
4385 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004386 },
4387 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07004388 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07004389 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4390 # or
4391 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4392 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07004393 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
4394 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
4395 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
4396 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
4397 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
4398 { # StatusCondition describes why a cluster or a node pool has a certain status
4399 # (e.g., ERROR or DEGRADED).
4400 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
4401 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
4402 },
4403 ],
4404 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
4405 &quot;stages&quot;: [ # Substages of an operation or a stage.
4406 # Object with schema name: OperationProgress
4407 ],
4408 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
4409 # Unset for single-stage operations.
4410 &quot;metrics&quot;: [ # Progress metric bundle, for example:
4411 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
4412 # {name: &quot;nodes total&quot;, int_value: 32}]
4413 # or
4414 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
4415 # {name: &quot;progress scale&quot;, double_value: 1.0}]
4416 { # Progress metric is (string, int|float|string) pair.
4417 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
4418 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
4419 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
4420 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
4421 },
4422 ],
4423 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
4424 # Unset for single-stage operations.
4425 },
4426 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
4427 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4428 # operation is taking place. This field is deprecated, use location instead.
4429 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
4430 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
4431 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
4432 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
4433 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
4434 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
4435 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004436 }</pre>
4437</div>
4438
4439<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07004440 <code class="details" id="setMaintenancePolicy">setMaintenancePolicy(projectId, zone, clusterId, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004441 <pre>Sets the maintenance policy for a cluster.
4442
4443Args:
Dan O'Mearadd494642020-05-01 07:42:23 -07004444 projectId: string, Required. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004445number](https://support.google.com/cloud/answer/6158840). (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07004446 zone: string, Required. The name of the Google Compute Engine
4447[zone](https://cloud.google.com/compute/docs/zones#available) in which the
4448cluster resides. (required)
4449 clusterId: string, Required. The name of the cluster to update. (required)
4450 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004451 The object takes the form of:
4452
4453{ # SetMaintenancePolicyRequest sets the maintenance policy for a cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -07004454 &quot;clusterId&quot;: &quot;A String&quot;, # Required. The name of the cluster to update.
4455 &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 -07004456 # clears the existing maintenance policy.
Bu Sun Kim65020912020-05-20 12:08:20 -07004457 &quot;resourceVersion&quot;: &quot;A String&quot;, # A hash identifying the version of this policy, so that updates to fields of
4458 # the policy won&#x27;t accidentally undo intermediate changes (and so that users
4459 # of the API unaware of some fields won&#x27;t accidentally remove other fields).
4460 # Make a &lt;code&gt;get()&lt;/code&gt; request to the cluster to get the current
4461 # resource version and include it with requests to set the policy.
4462 &quot;window&quot;: { # MaintenanceWindow defines the maintenance window to be used for the cluster. # Specifies the maintenance window in which maintenance may be performed.
4463 &quot;dailyMaintenanceWindow&quot;: { # Time window specified for daily maintenance operations. # DailyMaintenanceWindow specifies a daily maintenance operation window.
4464 &quot;duration&quot;: &quot;A String&quot;, # [Output only] Duration of the time window, automatically chosen to be
4465 # smallest possible in the given scenario.
4466 &quot;startTime&quot;: &quot;A String&quot;, # Time within the maintenance window to start the maintenance operations.
4467 # It must be in format &quot;HH:MM&quot;, where HH : [00-23] and MM : [00-59] GMT.
4468 },
4469 &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 -07004470 # maintenance to occur. The time windows may be overlapping. If no
4471 # maintenance windows are set, maintenance can occur at any time.
Bu Sun Kim65020912020-05-20 12:08:20 -07004472 &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 -07004473 # this window reccurs. They go on for the span of time between the start and
4474 # end time.
4475 #
Bu Sun Kim65020912020-05-20 12:08:20 -07004476 # For example, to have something repeat every weekday, you&#x27;d use:
Dan O'Mearadd494642020-05-01 07:42:23 -07004477 # &lt;code&gt;FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR&lt;/code&gt;
4478 # To repeat some window daily (equivalent to the DailyMaintenanceWindow):
4479 # &lt;code&gt;FREQ=DAILY&lt;/code&gt;
4480 # For the first weekend of every month:
4481 # &lt;code&gt;FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU&lt;/code&gt;
4482 # This specifies how frequently the window starts. Eg, if you wanted to have
Bu Sun Kim65020912020-05-20 12:08:20 -07004483 # a 9-5 UTC-4 window every weekday, you&#x27;d use something like:
Dan O'Mearadd494642020-05-01 07:42:23 -07004484 # &lt;code&gt;
4485 # start time = 2019-01-01T09:00:00-0400
4486 # end time = 2019-01-01T17:00:00-0400
4487 # recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
4488 # &lt;/code&gt;
4489 # Windows can span multiple days. Eg, to make the window encompass every
4490 # weekend from midnight Saturday till the last minute of Sunday UTC:
4491 # &lt;code&gt;
4492 # start time = 2019-01-05T00:00:00Z
4493 # end time = 2019-01-07T23:59:00Z
4494 # recurrence = FREQ=WEEKLY;BYDAY=SA
4495 # &lt;/code&gt;
Bu Sun Kim65020912020-05-20 12:08:20 -07004496 # Note the start and end time&#x27;s specific dates are largely arbitrary except
Dan O'Mearadd494642020-05-01 07:42:23 -07004497 # to specify duration of the window and when it first starts.
4498 # The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.
Bu Sun Kim65020912020-05-20 12:08:20 -07004499 &quot;window&quot;: { # Represents an arbitrary window of time. # The window of the first recurrence.
4500 &quot;endTime&quot;: &quot;A String&quot;, # The time that the window ends. The end time should take place after the
Dan O'Mearadd494642020-05-01 07:42:23 -07004501 # start time.
Bu Sun Kim65020912020-05-20 12:08:20 -07004502 &quot;startTime&quot;: &quot;A String&quot;, # The time that the window first starts.
Dan O'Mearadd494642020-05-01 07:42:23 -07004503 },
4504 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004505 &quot;maintenanceExclusions&quot;: { # Exceptions to maintenance window. Non-emergency maintenance should not
Dan O'Mearadd494642020-05-01 07:42:23 -07004506 # occur in these windows.
Bu Sun Kim65020912020-05-20 12:08:20 -07004507 &quot;a_key&quot;: { # Represents an arbitrary window of time.
4508 &quot;endTime&quot;: &quot;A String&quot;, # The time that the window ends. The end time should take place after the
Dan O'Mearadd494642020-05-01 07:42:23 -07004509 # start time.
Bu Sun Kim65020912020-05-20 12:08:20 -07004510 &quot;startTime&quot;: &quot;A String&quot;, # The time that the window first starts.
Dan O'Mearadd494642020-05-01 07:42:23 -07004511 },
4512 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004513 },
4514 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004515 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster id) of the cluster to set maintenance
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004516 # policy.
Bu Sun Kim65020912020-05-20 12:08:20 -07004517 # Specified in the format `projects/*/locations/*/clusters/*`.
4518 &quot;projectId&quot;: &quot;A String&quot;, # Required. The Google Developers Console [project ID or project
4519 # number](https://support.google.com/cloud/answer/6158840).
4520 &quot;zone&quot;: &quot;A String&quot;, # Required. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07004521 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4522 # cluster resides.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004523 }
4524
4525 x__xgafv: string, V1 error format.
4526 Allowed values
4527 1 - v1 error format
4528 2 - v2 error format
4529
4530Returns:
4531 An object of the form:
4532
4533 { # This operation resource represents operations that may have happened or are
4534 # happening on the cluster. All fields are output only.
Bu Sun Kim65020912020-05-20 12:08:20 -07004535 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004536 { # StatusCondition describes why a cluster or a node pool has a certain status
4537 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07004538 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
4539 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004540 },
4541 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07004542 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07004543 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4544 # or
4545 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4546 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07004547 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
4548 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
4549 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
4550 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
4551 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
4552 { # StatusCondition describes why a cluster or a node pool has a certain status
4553 # (e.g., ERROR or DEGRADED).
4554 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
4555 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
4556 },
4557 ],
4558 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
4559 &quot;stages&quot;: [ # Substages of an operation or a stage.
4560 # Object with schema name: OperationProgress
4561 ],
4562 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
4563 # Unset for single-stage operations.
4564 &quot;metrics&quot;: [ # Progress metric bundle, for example:
4565 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
4566 # {name: &quot;nodes total&quot;, int_value: 32}]
4567 # or
4568 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
4569 # {name: &quot;progress scale&quot;, double_value: 1.0}]
4570 { # Progress metric is (string, int|float|string) pair.
4571 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
4572 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
4573 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
4574 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
4575 },
4576 ],
4577 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
4578 # Unset for single-stage operations.
4579 },
4580 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
4581 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4582 # operation is taking place. This field is deprecated, use location instead.
4583 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
4584 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
4585 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
4586 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
4587 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
4588 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
4589 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004590 }</pre>
4591</div>
4592
4593<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07004594 <code class="details" id="setMasterAuth">setMasterAuth(projectId, zone, clusterId, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004595 <pre>Sets master auth materials. Currently supports changing the admin password
4596or a specific cluster, either via password generation or explicitly setting
4597the password.
4598
4599Args:
Dan O'Mearadd494642020-05-01 07:42:23 -07004600 projectId: string, Required. Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004601number](https://support.google.com/cloud/answer/6158840).
4602This field has been deprecated and replaced by the name field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07004603 zone: string, Required. Deprecated. The name of the Google Compute Engine
4604[zone](https://cloud.google.com/compute/docs/zones#available) in which the
4605cluster resides. This field has been deprecated and replaced by the name
4606field. (required)
4607 clusterId: string, Required. Deprecated. The name of the cluster to upgrade.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004608This field has been deprecated and replaced by the name field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07004609 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004610 The object takes the form of:
4611
4612{ # SetMasterAuthRequest updates the admin password of a cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -07004613 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster) of the cluster to set auth.
4614 # Specified in the format `projects/*/locations/*/clusters/*`.
4615 &quot;action&quot;: &quot;A String&quot;, # Required. The exact form of action to be taken on the master auth.
4616 &quot;projectId&quot;: &quot;A String&quot;, # Required. Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004617 # number](https://support.google.com/cloud/answer/6158840).
4618 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07004619 &quot;clusterId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the cluster to upgrade.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004620 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07004621 &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 -07004622 # Authentication can be done using HTTP basic auth or using client
4623 # certificates.
Bu Sun Kim65020912020-05-20 12:08:20 -07004624 &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 -07004625 # Because the master endpoint is open to the Internet, you should create a
4626 # strong password. If a password is provided for cluster creation, username
4627 # must be non-empty.
Bu Sun Kim65020912020-05-20 12:08:20 -07004628 &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 -07004629 # clusters before v1.12, if no configuration is specified, a client
4630 # certificate is issued.
Bu Sun Kim65020912020-05-20 12:08:20 -07004631 &quot;issueClientCertificate&quot;: True or False, # Issue a client certificate.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004632 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004633 &quot;clientKey&quot;: &quot;A String&quot;, # [Output only] Base64-encoded private key used by clients to authenticate
4634 # to the cluster endpoint.
4635 &quot;clusterCaCertificate&quot;: &quot;A String&quot;,
4636 &quot;clientCertificate&quot;: &quot;A String&quot;, # [Output only] Base64-encoded public certificate used by clients to
4637 # authenticate to the cluster endpoint.
4638 &quot;username&quot;: &quot;A String&quot;, # The username to use for HTTP basic authentication to the master endpoint.
4639 # For clusters v1.6.0 and later, basic authentication can be disabled by
4640 # leaving username unspecified (or setting it to the empty string).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004641 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004642 &quot;zone&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the Google Compute Engine
4643 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4644 # cluster resides. This field has been deprecated and replaced by the name
4645 # field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004646 }
4647
4648 x__xgafv: string, V1 error format.
4649 Allowed values
4650 1 - v1 error format
4651 2 - v2 error format
4652
4653Returns:
4654 An object of the form:
4655
4656 { # This operation resource represents operations that may have happened or are
4657 # happening on the cluster. All fields are output only.
Bu Sun Kim65020912020-05-20 12:08:20 -07004658 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004659 { # StatusCondition describes why a cluster or a node pool has a certain status
4660 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07004661 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
4662 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004663 },
4664 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07004665 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07004666 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4667 # or
4668 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4669 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07004670 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
4671 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
4672 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
4673 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
4674 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
4675 { # StatusCondition describes why a cluster or a node pool has a certain status
4676 # (e.g., ERROR or DEGRADED).
4677 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
4678 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
4679 },
4680 ],
4681 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
4682 &quot;stages&quot;: [ # Substages of an operation or a stage.
4683 # Object with schema name: OperationProgress
4684 ],
4685 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
4686 # Unset for single-stage operations.
4687 &quot;metrics&quot;: [ # Progress metric bundle, for example:
4688 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
4689 # {name: &quot;nodes total&quot;, int_value: 32}]
4690 # or
4691 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
4692 # {name: &quot;progress scale&quot;, double_value: 1.0}]
4693 { # Progress metric is (string, int|float|string) pair.
4694 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
4695 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
4696 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
4697 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
4698 },
4699 ],
4700 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
4701 # Unset for single-stage operations.
4702 },
4703 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
4704 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4705 # operation is taking place. This field is deprecated, use location instead.
4706 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
4707 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
4708 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
4709 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
4710 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
4711 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
4712 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004713 }</pre>
4714</div>
4715
4716<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07004717 <code class="details" id="setNetworkPolicy">setNetworkPolicy(projectId, zone, clusterId, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004718 <pre>Enables or disables Network Policy for a cluster.
4719
4720Args:
Dan O'Mearadd494642020-05-01 07:42:23 -07004721 projectId: string, Required. Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004722number](https://developers.google.com/console/help/new/#projectnumber).
4723This field has been deprecated and replaced by the name field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07004724 zone: string, Required. Deprecated. The name of the Google Compute Engine
4725[zone](https://cloud.google.com/compute/docs/zones#available) in which the
4726cluster resides. This field has been deprecated and replaced by the name
4727field. (required)
4728 clusterId: string, Required. Deprecated. The name of the cluster.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004729This field has been deprecated and replaced by the name field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07004730 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004731 The object takes the form of:
4732
4733{ # SetNetworkPolicyRequest enables/disables network policy for a cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -07004734 &quot;projectId&quot;: &quot;A String&quot;, # Required. Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004735 # number](https://developers.google.com/console/help/new/#projectnumber).
4736 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07004737 &quot;zone&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07004738 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4739 # cluster resides. This field has been deprecated and replaced by the name
4740 # field.
Bu Sun Kim65020912020-05-20 12:08:20 -07004741 &quot;clusterId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the cluster.
4742 # This field has been deprecated and replaced by the name field.
4743 &quot;networkPolicy&quot;: { # Configuration options for the NetworkPolicy feature. # Required. Configuration options for the NetworkPolicy feature.
4744 # https://kubernetes.io/docs/concepts/services-networking/networkpolicies/
4745 &quot;enabled&quot;: True or False, # Whether network policy is enabled on the cluster.
4746 &quot;provider&quot;: &quot;A String&quot;, # The selected network policy provider.
4747 },
4748 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster id) of the cluster to set networking
4749 # policy. Specified in the format `projects/*/locations/*/clusters/*`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004750 }
4751
4752 x__xgafv: string, V1 error format.
4753 Allowed values
4754 1 - v1 error format
4755 2 - v2 error format
4756
4757Returns:
4758 An object of the form:
4759
4760 { # This operation resource represents operations that may have happened or are
4761 # happening on the cluster. All fields are output only.
Bu Sun Kim65020912020-05-20 12:08:20 -07004762 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004763 { # StatusCondition describes why a cluster or a node pool has a certain status
4764 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07004765 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
4766 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004767 },
4768 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07004769 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07004770 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4771 # or
4772 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4773 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07004774 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
4775 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
4776 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
4777 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
4778 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
4779 { # StatusCondition describes why a cluster or a node pool has a certain status
4780 # (e.g., ERROR or DEGRADED).
4781 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
4782 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
4783 },
4784 ],
4785 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
4786 &quot;stages&quot;: [ # Substages of an operation or a stage.
4787 # Object with schema name: OperationProgress
4788 ],
4789 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
4790 # Unset for single-stage operations.
4791 &quot;metrics&quot;: [ # Progress metric bundle, for example:
4792 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
4793 # {name: &quot;nodes total&quot;, int_value: 32}]
4794 # or
4795 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
4796 # {name: &quot;progress scale&quot;, double_value: 1.0}]
4797 { # Progress metric is (string, int|float|string) pair.
4798 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
4799 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
4800 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
4801 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
4802 },
4803 ],
4804 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
4805 # Unset for single-stage operations.
4806 },
4807 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
4808 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4809 # operation is taking place. This field is deprecated, use location instead.
4810 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
4811 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
4812 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
4813 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
4814 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
4815 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
4816 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004817 }</pre>
4818</div>
4819
4820<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07004821 <code class="details" id="startIpRotation">startIpRotation(projectId, zone, clusterId, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004822 <pre>Starts master IP rotation.
4823
4824Args:
Dan O'Mearadd494642020-05-01 07:42:23 -07004825 projectId: string, Required. Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004826number](https://developers.google.com/console/help/new/#projectnumber).
4827This field has been deprecated and replaced by the name field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07004828 zone: string, Required. Deprecated. The name of the Google Compute Engine
4829[zone](https://cloud.google.com/compute/docs/zones#available) in which the
4830cluster resides. This field has been deprecated and replaced by the name
4831field. (required)
4832 clusterId: string, Required. Deprecated. The name of the cluster.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004833This field has been deprecated and replaced by the name field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07004834 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004835 The object takes the form of:
4836
4837{ # StartIPRotationRequest creates a new IP for the cluster and then performs
4838 # a node upgrade on each node pool to point to the new IP.
Bu Sun Kim65020912020-05-20 12:08:20 -07004839 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster id) of the cluster to start IP
4840 # rotation. Specified in the format `projects/*/locations/*/clusters/*`.
4841 &quot;projectId&quot;: &quot;A String&quot;, # Required. Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004842 # number](https://developers.google.com/console/help/new/#projectnumber).
4843 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07004844 &quot;zone&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07004845 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4846 # cluster resides. This field has been deprecated and replaced by the name
4847 # field.
Bu Sun Kim65020912020-05-20 12:08:20 -07004848 &quot;clusterId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the cluster.
4849 # This field has been deprecated and replaced by the name field.
4850 &quot;rotateCredentials&quot;: True or False, # Whether to rotate credentials during IP rotation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004851 }
4852
4853 x__xgafv: string, V1 error format.
4854 Allowed values
4855 1 - v1 error format
4856 2 - v2 error format
4857
4858Returns:
4859 An object of the form:
4860
4861 { # This operation resource represents operations that may have happened or are
4862 # happening on the cluster. All fields are output only.
Bu Sun Kim65020912020-05-20 12:08:20 -07004863 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004864 { # StatusCondition describes why a cluster or a node pool has a certain status
4865 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07004866 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
4867 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004868 },
4869 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07004870 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07004871 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4872 # or
4873 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4874 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07004875 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
4876 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
4877 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
4878 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
4879 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
4880 { # StatusCondition describes why a cluster or a node pool has a certain status
4881 # (e.g., ERROR or DEGRADED).
4882 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
4883 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
4884 },
4885 ],
4886 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
4887 &quot;stages&quot;: [ # Substages of an operation or a stage.
4888 # Object with schema name: OperationProgress
4889 ],
4890 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
4891 # Unset for single-stage operations.
4892 &quot;metrics&quot;: [ # Progress metric bundle, for example:
4893 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
4894 # {name: &quot;nodes total&quot;, int_value: 32}]
4895 # or
4896 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
4897 # {name: &quot;progress scale&quot;, double_value: 1.0}]
4898 { # Progress metric is (string, int|float|string) pair.
4899 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
4900 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
4901 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
4902 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
4903 },
4904 ],
4905 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
4906 # Unset for single-stage operations.
4907 },
4908 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
4909 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4910 # operation is taking place. This field is deprecated, use location instead.
4911 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
4912 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
4913 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
4914 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
4915 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
4916 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
4917 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004918 }</pre>
4919</div>
4920
4921<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07004922 <code class="details" id="update">update(projectId, zone, clusterId, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004923 <pre>Updates the settings for a specific cluster.
4924
4925Args:
Dan O'Mearadd494642020-05-01 07:42:23 -07004926 projectId: string, Required. Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004927number](https://support.google.com/cloud/answer/6158840).
4928This field has been deprecated and replaced by the name field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07004929 zone: string, Required. Deprecated. The name of the Google Compute Engine
4930[zone](https://cloud.google.com/compute/docs/zones#available) in which the
4931cluster resides. This field has been deprecated and replaced by the name
4932field. (required)
4933 clusterId: string, Required. Deprecated. The name of the cluster to upgrade.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004934This field has been deprecated and replaced by the name field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07004935 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004936 The object takes the form of:
4937
4938{ # UpdateClusterRequest updates the settings of a cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -07004939 &quot;projectId&quot;: &quot;A String&quot;, # Required. Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004940 # number](https://support.google.com/cloud/answer/6158840).
4941 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07004942 &quot;zone&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the Google Compute Engine
4943 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4944 # cluster resides. This field has been deprecated and replaced by the name
4945 # field.
4946 &quot;clusterId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the cluster to upgrade.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004947 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07004948 &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 -07004949 # be applied to a cluster with each request, so at most one field can be
4950 # provided.
Bu Sun Kim65020912020-05-20 12:08:20 -07004951 &quot;desiredPrivateClusterConfig&quot;: { # Configuration options for private clusters. # The desired private cluster configuration.
4952 &quot;privateEndpoint&quot;: &quot;A String&quot;, # Output only. The internal IP address of this cluster&#x27;s master endpoint.
4953 &quot;enablePrivateEndpoint&quot;: True or False, # Whether the master&#x27;s internal IP address is used as the cluster endpoint.
4954 &quot;peeringName&quot;: &quot;A String&quot;, # Output only. The peering name in the customer VPC used by this cluster.
4955 &quot;masterGlobalAccessConfig&quot;: { # Configuration for controlling master global access settings. # Controls master global access settings.
4956 &quot;enabled&quot;: True or False, # Whenever master is accessible globally or not.
4957 },
4958 &quot;publicEndpoint&quot;: &quot;A String&quot;, # Output only. The external IP address of this cluster&#x27;s master endpoint.
4959 &quot;enablePrivateNodes&quot;: True or False, # Whether nodes have internal IP addresses only. If enabled, all nodes are
4960 # given only RFC 1918 private addresses and communicate with the master via
4961 # private networking.
4962 &quot;masterIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP range in CIDR notation to use for the hosted master network. This
4963 # range will be used for assigning internal IP addresses to the master or
4964 # set of masters, as well as the ILB VIP. This range must not overlap with
4965 # any other ranges in use within the cluster&#x27;s network.
Dan O'Mearadd494642020-05-01 07:42:23 -07004966 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004967 &quot;desiredVerticalPodAutoscaling&quot;: { # VerticalPodAutoscaling contains global, per-cluster information # Cluster-level Vertical Pod Autoscaling configuration.
4968 # required by Vertical Pod Autoscaler to automatically adjust
4969 # the resources of pods controlled by it.
4970 &quot;enabled&quot;: True or False, # Enables vertical pod autoscaling.
4971 },
4972 &quot;desiredBinaryAuthorization&quot;: { # Configuration for Binary Authorization. # The desired configuration options for the Binary Authorization feature.
4973 &quot;enabled&quot;: True or False, # Enable Binary Authorization for this cluster. If enabled, all container
4974 # images will be validated by Google Binauthz.
4975 },
4976 &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.
4977 # cluster, enabling additional functionality.
4978 &quot;networkPolicyConfig&quot;: { # Configuration for NetworkPolicy. This only tracks whether the addon # Configuration for NetworkPolicy. This only tracks whether the addon
4979 # is enabled or not on the Master, it does not track whether network policy
4980 # is enabled for the nodes.
4981 # is enabled or not on the Master, it does not track whether network policy
4982 # is enabled for the nodes.
4983 &quot;disabled&quot;: True or False, # Whether NetworkPolicy is enabled for this cluster.
4984 },
4985 &quot;configConnectorConfig&quot;: { # Configuration options for the Config Connector add-on. # Configuration for the ConfigConnector add-on, a Kubernetes
4986 # extension to manage hosted GCP services through the Kubernetes API
4987 &quot;enabled&quot;: True or False, # Whether Cloud Connector is enabled for this cluster.
4988 },
4989 &quot;cloudRunConfig&quot;: { # Configuration options for the Cloud Run feature. # Configuration for the Cloud Run addon. The `IstioConfig` addon must be
4990 # enabled in order to enable Cloud Run addon. This option can only be enabled
4991 # at cluster creation time.
4992 &quot;disabled&quot;: True or False, # Whether Cloud Run addon is enabled for this cluster.
4993 },
4994 &quot;horizontalPodAutoscaling&quot;: { # Configuration options for the horizontal pod autoscaling feature, which # Configuration for the horizontal pod autoscaling feature, which
4995 # increases or decreases the number of replica pods a replication controller
4996 # has based on the resource usage of the existing pods.
4997 # increases or decreases the number of replica pods a replication controller
4998 # has based on the resource usage of the existing pods.
4999 &quot;disabled&quot;: True or False, # Whether the Horizontal Pod Autoscaling feature is enabled in the cluster.
5000 # When enabled, it ensures that metrics are collected into Stackdriver
5001 # Monitoring.
5002 },
5003 &quot;httpLoadBalancing&quot;: { # Configuration options for the HTTP (L7) load balancing controller addon, # Configuration for the HTTP (L7) load balancing controller addon, which
5004 # makes it easy to set up HTTP load balancers for services in a cluster.
5005 # which makes it easy to set up HTTP load balancers for services in a cluster.
5006 &quot;disabled&quot;: True or False, # Whether the HTTP Load Balancing controller is enabled in the cluster.
5007 # When enabled, it runs a small pod in the cluster that manages the load
5008 # balancers.
5009 },
5010 &quot;kubernetesDashboard&quot;: { # Configuration for the Kubernetes Dashboard. # Configuration for the Kubernetes Dashboard.
5011 # This addon is deprecated, and will be disabled in 1.15. It is recommended
5012 # to use the Cloud Console to manage and monitor your Kubernetes clusters,
5013 # workloads and applications. For more information, see:
5014 # https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
5015 &quot;disabled&quot;: True or False, # Whether the Kubernetes Dashboard is enabled for this cluster.
5016 },
5017 &quot;dnsCacheConfig&quot;: { # Configuration for NodeLocal DNSCache # Configuration for NodeLocalDNS, a dns cache running on cluster nodes
5018 &quot;enabled&quot;: True or False, # Whether NodeLocal DNSCache is enabled for this cluster.
5019 },
5020 &quot;kalmConfig&quot;: { # Configuration options for the KALM addon. # Configuration for the KALM addon, which manages the lifecycle of k8s
5021 # applications.
5022 &quot;enabled&quot;: True or False, # Whether KALM is enabled for this cluster.
5023 },
5024 &quot;gcePersistentDiskCsiDriverConfig&quot;: { # Configuration for the Compute Engine PD CSI driver. This option can only be # Configuration for the Compute Engine Persistent Disk CSI driver.
5025 # enabled at cluster creation time.
5026 &quot;enabled&quot;: True or False, # Whether the Compute Engine PD CSI driver is enabled for this cluster.
5027 },
5028 &quot;istioConfig&quot;: { # Configuration options for Istio addon. # Configuration for Istio, an open platform to connect, manage, and secure
5029 # microservices.
5030 &quot;disabled&quot;: True or False, # Whether Istio is enabled for this cluster.
5031 &quot;auth&quot;: &quot;A String&quot;, # The specified Istio auth mode, either none, or mutual TLS.
5032 },
5033 },
5034 &quot;desiredNodeVersion&quot;: &quot;A String&quot;, # The Kubernetes version to change the nodes to (typically an
5035 # upgrade).
5036 #
5037 # Users may specify either explicit versions offered by
5038 # Kubernetes Engine or version aliases, which have the following behavior:
5039 #
5040 # - &quot;latest&quot;: picks the highest valid Kubernetes version
5041 # - &quot;1.X&quot;: picks the highest valid patch+gke.N patch in the 1.X version
5042 # - &quot;1.X.Y&quot;: picks the highest valid gke.N patch in the 1.X.Y version
5043 # - &quot;1.X.Y-gke.N&quot;: picks an explicit Kubernetes version
5044 # - &quot;-&quot;: picks the Kubernetes master version
5045 &quot;desiredIntraNodeVisibilityConfig&quot;: { # IntraNodeVisibilityConfig contains the desired config of the intra-node # The desired config of Intra-node visibility.
5046 # visibility on this cluster.
5047 &quot;enabled&quot;: True or False, # Enables intra node visibility for this cluster.
5048 },
5049 &quot;desiredPodSecurityPolicyConfig&quot;: { # Configuration for the PodSecurityPolicy feature. # The desired configuration options for the PodSecurityPolicy feature.
5050 &quot;enabled&quot;: True or False, # Enable the PodSecurityPolicy controller for this cluster. If enabled, pods
5051 # must be valid under a PodSecurityPolicy to be created.
5052 },
5053 &quot;desiredClusterAutoscaling&quot;: { # ClusterAutoscaling contains global, per-cluster information # Cluster-level autoscaling configuration.
Dan O'Mearadd494642020-05-01 07:42:23 -07005054 # required by Cluster Autoscaler to automatically adjust
5055 # the size of the cluster and create/delete
5056 # node pools based on the current needs.
Bu Sun Kim65020912020-05-20 12:08:20 -07005057 &quot;resourceLimits&quot;: [ # Contains global constraints regarding minimum and maximum
5058 # amount of resources in the cluster.
5059 { # Contains information about amount of some resource in the cluster.
5060 # For memory, value should be in GB.
5061 &quot;maximum&quot;: &quot;A String&quot;, # Maximum amount of the resource in the cluster.
5062 &quot;resourceType&quot;: &quot;A String&quot;, # Resource name &quot;cpu&quot;, &quot;memory&quot; or gpu-specific string.
5063 &quot;minimum&quot;: &quot;A String&quot;, # Minimum amount of the resource in the cluster.
5064 },
5065 ],
5066 &quot;autoscalingProfile&quot;: &quot;A String&quot;, # Defines autoscaling behaviour.
5067 &quot;enableNodeAutoprovisioning&quot;: True or False, # Enables automatic node pool creation and deletion.
5068 &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 -07005069 # created by NAP.
5070 # by NAP.
Bu Sun Kim65020912020-05-20 12:08:20 -07005071 &quot;oauthScopes&quot;: [ # Scopes that are used by NAP when creating node pools. If oauth_scopes are
5072 # specified, service_account should be empty.
5073 &quot;A String&quot;,
5074 ],
5075 &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.
5076 # node pool.
5077 &quot;autoUpgrade&quot;: True or False, # Whether the nodes will be automatically upgraded.
5078 &quot;autoRepair&quot;: True or False, # Whether the nodes will be automatically repaired.
5079 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool.
5080 # the Auto Upgrades will proceed.
5081 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
5082 # with the description of the upgrade.
5083 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
5084 # with the approximate start time for the upgrades, in
5085 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
5086 },
5087 },
5088 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used for NAP created node pools.
Dan O'Mearadd494642020-05-01 07:42:23 -07005089 # The instance may be scheduled on the specified or newer CPU platform.
5090 # Applicable values are the friendly names of CPU platforms, such as
5091 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Haswell&amp;quot;&lt;/code&gt; or
5092 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Sandy Bridge&amp;quot;&lt;/code&gt;. For more
5093 # information, read [how to specify min CPU
5094 # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
Bu Sun Kim65020912020-05-20 12:08:20 -07005095 # To unset the min cpu platform field pass &quot;automatic&quot; as field value.
5096 &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 -07005097 # disruption caused by an upgrade.
5098 #
5099 # maxUnavailable controls the number of nodes that can be simultaneously
5100 # unavailable.
5101 #
5102 # maxSurge controls the number of additional nodes that can be added to the
5103 # node pool temporarily for the time of the upgrade to increase the number of
5104 # available nodes.
5105 #
5106 # (maxUnavailable + maxSurge) determines the level of parallelism (how many
5107 # nodes are being upgraded at the same time).
5108 #
5109 # Note: upgrades inevitably introduce some disruption since workloads need to
5110 # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
5111 # this holds true. (Disruption stays within the limits of
5112 # PodDisruptionBudget, if it is configured.)
5113 #
5114 # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
5115 # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
5116 # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
5117 # down 3 old (not yet upgraded) nodes at the same time. This ensures that
5118 # there are always at least 4 nodes available.
Bu Sun Kim65020912020-05-20 12:08:20 -07005119 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size
Dan O'Mearadd494642020-05-01 07:42:23 -07005120 # of the node pool during the upgrade process.
Bu Sun Kim65020912020-05-20 12:08:20 -07005121 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during
Dan O'Mearadd494642020-05-01 07:42:23 -07005122 # the upgrade process. A node is considered available if its status is
5123 # Ready.
5124 },
Bu Sun Kim65020912020-05-20 12:08:20 -07005125 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs. If
5126 # service_account is specified, scopes should be empty.
Dan O'Mearadd494642020-05-01 07:42:23 -07005127 },
Bu Sun Kim65020912020-05-20 12:08:20 -07005128 &quot;autoprovisioningLocations&quot;: [ # The list of Google Compute Engine
5129 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
5130 # NodePool&#x27;s nodes can be created by NAP.
5131 &quot;A String&quot;,
5132 ],
5133 },
5134 &quot;desiredDatabaseEncryption&quot;: { # Configuration of etcd encryption. # Configuration of etcd encryption.
5135 &quot;state&quot;: &quot;A String&quot;, # Denotes the state of etcd encryption.
5136 &quot;keyName&quot;: &quot;A String&quot;, # Name of CloudKMS key to use for the encryption of secrets in etcd.
5137 # Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key
5138 },
5139 &quot;desiredMasterAuthorizedNetworksConfig&quot;: { # Configuration options for the master authorized networks feature. Enabled # The desired configuration options for master authorized networks feature.
5140 # master authorized networks will disallow all external traffic to access
5141 # Kubernetes master through HTTPS except traffic from the given CIDR blocks,
5142 # Google Compute Engine Public IPs and Google Prod IPs.
5143 &quot;cidrBlocks&quot;: [ # cidr_blocks define up to 10 external networks that could access
5144 # Kubernetes master through HTTPS.
5145 { # CidrBlock contains an optional name and one CIDR block.
5146 &quot;displayName&quot;: &quot;A String&quot;, # display_name is an optional field for users to identify CIDR blocks.
5147 &quot;cidrBlock&quot;: &quot;A String&quot;, # cidr_block must be specified in CIDR notation.
Dan O'Mearadd494642020-05-01 07:42:23 -07005148 },
5149 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07005150 &quot;enabled&quot;: True or False, # Whether or not master authorized networks is enabled.
Dan O'Mearadd494642020-05-01 07:42:23 -07005151 },
Bu Sun Kim65020912020-05-20 12:08:20 -07005152 &quot;desiredTpuConfig&quot;: { # Configuration for Cloud TPU. # The desired Cloud TPU configuration.
5153 &quot;enabled&quot;: True or False, # Whether Cloud TPU integration is enabled or not.
5154 &quot;ipv4CidrBlock&quot;: &quot;A String&quot;, # IPv4 CIDR block reserved for Cloud TPU in the VPC.
5155 &quot;useServiceNetworking&quot;: True or False, # Whether to use service networking for Cloud TPU or not.
5156 },
5157 &quot;desiredResourceUsageExportConfig&quot;: { # Configuration for exporting cluster resource usages. # The desired configuration for exporting resource usage.
5158 &quot;enableNetworkEgressMetering&quot;: True or False, # Whether to enable network egress metering for this cluster. If enabled, a
5159 # daemonset will be created in the cluster to meter network egress traffic.
5160 &quot;consumptionMeteringConfig&quot;: { # Parameters for controlling consumption metering. # Configuration to enable resource consumption metering.
5161 &quot;enabled&quot;: True or False, # Whether to enable consumption metering for this cluster. If enabled, a
5162 # second BigQuery table will be created to hold resource consumption
5163 # records.
5164 },
5165 &quot;bigqueryDestination&quot;: { # Parameters for using BigQuery as the destination of resource usage export. # Configuration to use BigQuery as usage export destination.
5166 &quot;datasetId&quot;: &quot;A String&quot;, # The ID of a BigQuery Dataset.
5167 },
5168 },
5169 &quot;desiredLocations&quot;: [ # The desired list of Google Compute Engine
5170 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
5171 # cluster&#x27;s nodes should be located. Changing the locations a cluster is in
5172 # will result in nodes being either created or removed from the cluster,
5173 # depending on whether locations are being added or removed.
5174 #
5175 # This list must always include the cluster&#x27;s primary zone.
5176 &quot;A String&quot;,
5177 ],
5178 &quot;desiredNodePoolAutoscaling&quot;: { # NodePoolAutoscaling contains information required by cluster autoscaler to # Autoscaler configuration for the node pool specified in
Dan O'Mearadd494642020-05-01 07:42:23 -07005179 # desired_node_pool_id. If there is only one pool in the
5180 # cluster and desired_node_pool_id is not provided then
5181 # the change applies to that single node pool.
5182 # adjust the size of the node pool to the current cluster usage.
Bu Sun Kim65020912020-05-20 12:08:20 -07005183 &quot;minNodeCount&quot;: 42, # Minimum number of nodes in the NodePool. Must be &gt;= 1 and &lt;=
Dan O'Mearadd494642020-05-01 07:42:23 -07005184 # max_node_count.
Bu Sun Kim65020912020-05-20 12:08:20 -07005185 &quot;autoprovisioned&quot;: True or False, # Can this node pool be deleted automatically.
5186 &quot;enabled&quot;: True or False, # Is autoscaling enabled for this node pool.
5187 &quot;maxNodeCount&quot;: 42, # Maximum number of nodes in the NodePool. Must be &gt;= min_node_count. There
Dan O'Mearadd494642020-05-01 07:42:23 -07005188 # has to enough quota to scale up the cluster.
5189 },
Bu Sun Kim65020912020-05-20 12:08:20 -07005190 &quot;desiredMonitoringService&quot;: &quot;A String&quot;, # The monitoring service the cluster should use to write metrics.
Dan O'Mearadd494642020-05-01 07:42:23 -07005191 # Currently available options:
5192 #
Bu Sun Kim65020912020-05-20 12:08:20 -07005193 # * &quot;monitoring.googleapis.com/kubernetes&quot; - The Cloud Monitoring
Dan O'Mearadd494642020-05-01 07:42:23 -07005194 # service with a Kubernetes-native resource model
5195 # * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
5196 # longer available as of GKE 1.15).
5197 # * `none` - No metrics will be exported from the cluster.
5198 #
5199 # If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
5200 # used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
Bu Sun Kim65020912020-05-20 12:08:20 -07005201 &quot;desiredImageType&quot;: &quot;A String&quot;, # The desired image type for the node pool.
5202 # NOTE: Set the &quot;desired_node_pool&quot; field as well.
5203 &quot;desiredClusterTelemetry&quot;: { # Telemetry integration for the cluster. # The desired telemetry integration for the cluster.
5204 &quot;type&quot;: &quot;A String&quot;, # Type of the integration.
Dan O'Mearadd494642020-05-01 07:42:23 -07005205 },
Bu Sun Kim65020912020-05-20 12:08:20 -07005206 &quot;desiredWorkloadIdentityConfig&quot;: { # Configuration for the use of Kubernetes Service Accounts in GCP IAM # Configuration for Workload Identity.
5207 # policies.
5208 &quot;identityNamespace&quot;: &quot;A String&quot;, # IAM Identity Namespace to attach all Kubernetes Service Accounts to.
5209 &quot;workloadPool&quot;: &quot;A String&quot;, # The workload pool to attach all Kubernetes service accounts to.
Dan O'Mearadd494642020-05-01 07:42:23 -07005210 },
Bu Sun Kim65020912020-05-20 12:08:20 -07005211 &quot;desiredNodePoolId&quot;: &quot;A String&quot;, # The node pool to be upgraded. This field is mandatory if
5212 # &quot;desired_node_version&quot;, &quot;desired_image_family&quot;,
5213 # &quot;desired_node_pool_autoscaling&quot;, or &quot;desired_workload_metadata_config&quot;
5214 # is specified and there is more than one node pool on the cluster.
5215 &quot;desiredReleaseChannel&quot;: { # ReleaseChannel indicates which release channel a cluster is # The desired release channel configuration.
5216 # subscribed to. Release channels are arranged in order of risk and
5217 # frequency of updates.
5218 #
5219 # When a cluster is subscribed to a release channel, Google maintains
5220 # both the master version and the node version. Node auto-upgrade
5221 # defaults to true and cannot be disabled. Updates to version related
5222 # fields (e.g. current_master_version) return an error.
5223 &quot;channel&quot;: &quot;A String&quot;, # channel specifies which release channel the cluster is subscribed to.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07005224 },
Bu Sun Kim65020912020-05-20 12:08:20 -07005225 &quot;desiredMasterVersion&quot;: &quot;A String&quot;, # The Kubernetes version to change the master to. The only valid value is the
5226 # latest supported version.
5227 #
5228 # Users may specify either explicit versions offered by
5229 # Kubernetes Engine or version aliases, which have the following behavior:
5230 #
5231 # - &quot;latest&quot;: picks the highest valid Kubernetes version
5232 # - &quot;1.X&quot;: picks the highest valid patch+gke.N patch in the 1.X version
5233 # - &quot;1.X.Y&quot;: picks the highest valid gke.N patch in the 1.X.Y version
5234 # - &quot;1.X.Y-gke.N&quot;: picks an explicit Kubernetes version
5235 # - &quot;-&quot;: picks the default Kubernetes version
5236 &quot;desiredShieldedNodes&quot;: { # Configuration of Shielded Nodes feature. # Configuration for Shielded Nodes.
5237 &quot;enabled&quot;: True or False, # Whether Shielded Nodes features are enabled on all nodes in this cluster.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07005238 },
Bu Sun Kim65020912020-05-20 12:08:20 -07005239 &quot;desiredLoggingService&quot;: &quot;A String&quot;, # The logging service the cluster should use to write logs.
5240 # Currently available options:
5241 #
5242 # * `logging.googleapis.com/kubernetes` - The Cloud Logging
5243 # service with a Kubernetes-native resource model
5244 # * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
5245 # available as of GKE 1.15).
5246 # * `none` - no logs will be exported from the cluster.
5247 #
5248 # If left as an empty string,`logging.googleapis.com/kubernetes` will be
5249 # used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07005250 },
Bu Sun Kim65020912020-05-20 12:08:20 -07005251 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster) of the cluster to update.
5252 # Specified in the format `projects/*/locations/*/clusters/*`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07005253 }
5254
5255 x__xgafv: string, V1 error format.
5256 Allowed values
5257 1 - v1 error format
5258 2 - v2 error format
5259
5260Returns:
5261 An object of the form:
5262
5263 { # This operation resource represents operations that may have happened or are
5264 # happening on the cluster. All fields are output only.
Bu Sun Kim65020912020-05-20 12:08:20 -07005265 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07005266 { # StatusCondition describes why a cluster or a node pool has a certain status
5267 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07005268 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
5269 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07005270 },
5271 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07005272 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07005273 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
5274 # or
5275 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
5276 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07005277 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
5278 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
5279 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
5280 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
5281 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
5282 { # StatusCondition describes why a cluster or a node pool has a certain status
5283 # (e.g., ERROR or DEGRADED).
5284 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
5285 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
5286 },
5287 ],
5288 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
5289 &quot;stages&quot;: [ # Substages of an operation or a stage.
5290 # Object with schema name: OperationProgress
5291 ],
5292 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
5293 # Unset for single-stage operations.
5294 &quot;metrics&quot;: [ # Progress metric bundle, for example:
5295 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
5296 # {name: &quot;nodes total&quot;, int_value: 32}]
5297 # or
5298 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
5299 # {name: &quot;progress scale&quot;, double_value: 1.0}]
5300 { # Progress metric is (string, int|float|string) pair.
5301 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
5302 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
5303 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
5304 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
5305 },
5306 ],
5307 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
5308 # Unset for single-stage operations.
5309 },
5310 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
5311 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
5312 # operation is taking place. This field is deprecated, use location instead.
5313 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
5314 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
5315 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
5316 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
5317 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
5318 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
5319 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07005320 }</pre>
5321</div>
5322
5323</body></html>