blob: 00b787663754e2f1b1e13611b8ef664679c1aa22 [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.locations.html">locations</a> . <a href="container_v1beta1.projects.locations.clusters.html">clusters</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="container_v1beta1.projects.locations.clusters.nodePools.html">nodePools()</a></code>
79</p>
80<p class="firstline">Returns the nodePools Resource.</p>
81
82<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070083 <code><a href="container_v1beta1.projects.locations.clusters.well_known.html">well_known()</a></code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070084</p>
Dan O'Mearadd494642020-05-01 07:42:23 -070085<p class="firstline">Returns the well_known Resource.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070086
87<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070088 <code><a href="#completeIpRotation">completeIpRotation(name, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070089<p class="firstline">Completes master IP rotation.</p>
90<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070091 <code><a href="#create">create(parent, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070092<p class="firstline">Creates a cluster, consisting of the specified number and type of Google</p>
93<p class="toc_element">
Bu Sun Kim65020912020-05-20 12:08:20 -070094 <code><a href="#delete">delete(name, clusterId=None, projectId=None, zone=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070095<p class="firstline">Deletes the cluster, including the Kubernetes endpoint and all worker</p>
96<p class="toc_element">
Bu Sun Kim65020912020-05-20 12:08:20 -070097 <code><a href="#get">get(name, projectId=None, zone=None, clusterId=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070098<p class="firstline">Gets the details for a specific cluster.</p>
99<p class="toc_element">
100 <code><a href="#getJwks">getJwks(parent, x__xgafv=None)</a></code></p>
101<p class="firstline">Gets the public component of the cluster signing keys in</p>
102<p class="toc_element">
Bu Sun Kim65020912020-05-20 12:08:20 -0700103 <code><a href="#list">list(parent, projectId=None, zone=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700104<p class="firstline">Lists all clusters owned by a project in either the specified zone or all</p>
105<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700106 <code><a href="#setAddons">setAddons(name, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700107<p class="firstline">Sets the addons for a specific cluster.</p>
108<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700109 <code><a href="#setLegacyAbac">setLegacyAbac(name, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700110<p class="firstline">Enables or disables the ABAC authorization mechanism on a cluster.</p>
111<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700112 <code><a href="#setLocations">setLocations(name, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700113<p class="firstline">Sets the locations for a specific cluster.</p>
114<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700115 <code><a href="#setLogging">setLogging(name, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700116<p class="firstline">Sets the logging service for a specific cluster.</p>
117<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700118 <code><a href="#setMaintenancePolicy">setMaintenancePolicy(name, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700119<p class="firstline">Sets the maintenance policy for a cluster.</p>
120<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700121 <code><a href="#setMasterAuth">setMasterAuth(name, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700122<p class="firstline">Sets master auth materials. Currently supports changing the admin password</p>
123<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700124 <code><a href="#setMonitoring">setMonitoring(name, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700125<p class="firstline">Sets the monitoring service for a specific cluster.</p>
126<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700127 <code><a href="#setNetworkPolicy">setNetworkPolicy(name, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700128<p class="firstline">Enables or disables Network Policy for a cluster.</p>
129<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700130 <code><a href="#setResourceLabels">setResourceLabels(name, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700131<p class="firstline">Sets labels on a cluster.</p>
132<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700133 <code><a href="#startIpRotation">startIpRotation(name, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700134<p class="firstline">Starts master IP rotation.</p>
135<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700136 <code><a href="#update">update(name, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700137<p class="firstline">Updates the settings for a specific cluster.</p>
138<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700139 <code><a href="#updateMaster">updateMaster(name, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700140<p class="firstline">Updates the master for a specific cluster.</p>
141<h3>Method Details</h3>
142<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700143 <code class="details" id="completeIpRotation">completeIpRotation(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700144 <pre>Completes master IP rotation.
145
146Args:
147 name: string, The name (project, location, cluster id) of the cluster to complete IP
Bu Sun Kim65020912020-05-20 12:08:20 -0700148rotation. Specified in the format `projects/*/locations/*/clusters/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700149 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700150 The object takes the form of:
151
152{ # CompleteIPRotationRequest moves the cluster master back into single-IP mode.
Bu Sun Kim65020912020-05-20 12:08:20 -0700153 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster id) of the cluster to complete IP
154 # rotation. Specified in the format `projects/*/locations/*/clusters/*`.
155 &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 -0700156 # number](https://developers.google.com/console/help/new/#projectnumber).
157 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -0700158 &quot;zone&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -0700159 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
160 # cluster resides. This field has been deprecated and replaced by the name
161 # field.
Bu Sun Kim65020912020-05-20 12:08:20 -0700162 &quot;clusterId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the cluster.
163 # This field has been deprecated and replaced by the name field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700164 }
165
166 x__xgafv: string, V1 error format.
167 Allowed values
168 1 - v1 error format
169 2 - v2 error format
170
171Returns:
172 An object of the form:
173
174 { # This operation resource represents operations that may have happened or are
175 # happening on the cluster. All fields are output only.
Bu Sun Kim65020912020-05-20 12:08:20 -0700176 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700177 { # StatusCondition describes why a cluster or a node pool has a certain status
178 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -0700179 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
180 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700181 },
182 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700183 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -0700184 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
185 # or
186 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
187 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -0700188 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
189 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
190 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
191 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
192 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
193 { # StatusCondition describes why a cluster or a node pool has a certain status
194 # (e.g., ERROR or DEGRADED).
195 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
196 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
197 },
198 ],
199 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
200 &quot;stages&quot;: [ # Substages of an operation or a stage.
201 # Object with schema name: OperationProgress
202 ],
203 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
204 # Unset for single-stage operations.
205 &quot;metrics&quot;: [ # Progress metric bundle, for example:
206 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
207 # {name: &quot;nodes total&quot;, int_value: 32}]
208 # or
209 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
210 # {name: &quot;progress scale&quot;, double_value: 1.0}]
211 { # Progress metric is (string, int|float|string) pair.
212 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
213 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
214 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
215 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
216 },
217 ],
218 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
219 # Unset for single-stage operations.
220 },
221 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
222 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
223 # operation is taking place. This field is deprecated, use location instead.
224 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
225 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
226 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
227 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
228 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
229 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
230 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700231 }</pre>
232</div>
233
234<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700235 <code class="details" id="create">create(parent, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700236 <pre>Creates a cluster, consisting of the specified number and type of Google
237Compute Engine instances.
238
Bu Sun Kim65020912020-05-20 12:08:20 -0700239By default, the cluster is created in the project&#x27;s
Dan O'Mearadd494642020-05-01 07:42:23 -0700240[default
241network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700242
243One firewall is added for the cluster. After cluster creation,
244the Kubelet creates routes for each node to allow the containers
245on that node to communicate with all other instances in the
246cluster.
247
Bu Sun Kim65020912020-05-20 12:08:20 -0700248Finally, an entry is added to the project&#x27;s global metadata indicating
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700249which CIDR range the cluster is using.
250
251Args:
252 parent: string, The parent (project and location) where the cluster will be created.
Bu Sun Kim65020912020-05-20 12:08:20 -0700253Specified in the format `projects/*/locations/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700254 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700255 The object takes the form of:
256
257{ # CreateClusterRequest creates a cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -0700258 &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 -0700259 # number](https://support.google.com/cloud/answer/6158840).
260 # This field has been deprecated and replaced by the parent field.
Bu Sun Kim65020912020-05-20 12:08:20 -0700261 &quot;cluster&quot;: { # A Google Kubernetes Engine cluster. # Required. A [cluster
Dan O'Mearadd494642020-05-01 07:42:23 -0700262 # resource](https://cloud.google.com/container-engine/reference/rest/v1beta1/projects.zones.clusters)
Bu Sun Kim65020912020-05-20 12:08:20 -0700263 &quot;defaultMaxPodsConstraint&quot;: { # Constraints applied to pods. # The default constraint on the maximum number of pods that can be run
264 # simultaneously on a node in the node pool of this cluster. Only honored
265 # if cluster created with IP Alias support.
266 &quot;maxPodsPerNode&quot;: &quot;A String&quot;, # Constraint enforced on the max num of pods per node.
267 },
268 &quot;network&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
269 # [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
270 # to which the cluster is connected. If left unspecified, the `default`
271 # network will be used. On output this shows the network ID instead of the
272 # name.
273 &quot;labelFingerprint&quot;: &quot;A String&quot;, # The fingerprint of the set of labels for this cluster.
274 &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 -0700275 # containers. This is provisioned from within the `container_ipv4_cidr`
276 # range. This field will only be set when cluster is in route-based network
277 # mode.
Bu Sun Kim65020912020-05-20 12:08:20 -0700278 &quot;masterAuthorizedNetworksConfig&quot;: { # Configuration options for the master authorized networks feature. Enabled # The configuration options for master authorized networks feature.
279 # master authorized networks will disallow all external traffic to access
280 # Kubernetes master through HTTPS except traffic from the given CIDR blocks,
281 # Google Compute Engine Public IPs and Google Prod IPs.
282 &quot;cidrBlocks&quot;: [ # cidr_blocks define up to 10 external networks that could access
283 # Kubernetes master through HTTPS.
284 { # CidrBlock contains an optional name and one CIDR block.
285 &quot;displayName&quot;: &quot;A String&quot;, # display_name is an optional field for users to identify CIDR blocks.
286 &quot;cidrBlock&quot;: &quot;A String&quot;, # cidr_block must be specified in CIDR notation.
287 },
288 ],
289 &quot;enabled&quot;: True or False, # Whether or not master authorized networks is enabled.
290 },
291 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output only] Additional information about the current status of this
292 # cluster, if available.
293 &quot;masterAuth&quot;: { # The authentication information for accessing the master endpoint. # The authentication information for accessing the master endpoint.
294 # If unspecified, the defaults are used:
295 # For clusters before v1.12, if master_auth is unspecified, `username` will
296 # be set to &quot;admin&quot;, a random password will be generated, and a client
297 # certificate will be issued.
298 # Authentication can be done using HTTP basic auth or using client
299 # certificates.
300 &quot;password&quot;: &quot;A String&quot;, # The password to use for HTTP basic authentication to the master endpoint.
301 # Because the master endpoint is open to the Internet, you should create a
302 # strong password. If a password is provided for cluster creation, username
303 # must be non-empty.
304 &quot;clientCertificateConfig&quot;: { # Configuration for client certificates on the cluster. # Configuration for client certificate authentication on the cluster. For
305 # clusters before v1.12, if no configuration is specified, a client
306 # certificate is issued.
307 &quot;issueClientCertificate&quot;: True or False, # Issue a client certificate.
308 },
309 &quot;clientKey&quot;: &quot;A String&quot;, # [Output only] Base64-encoded private key used by clients to authenticate
310 # to the cluster endpoint.
311 &quot;clusterCaCertificate&quot;: &quot;A String&quot;,
312 &quot;clientCertificate&quot;: &quot;A String&quot;, # [Output only] Base64-encoded public certificate used by clients to
313 # authenticate to the cluster endpoint.
314 &quot;username&quot;: &quot;A String&quot;, # The username to use for HTTP basic authentication to the master endpoint.
315 # For clusters v1.6.0 and later, basic authentication can be disabled by
316 # leaving username unspecified (or setting it to the empty string).
317 },
318 &quot;authenticatorGroupsConfig&quot;: { # Configuration for returning group information from authenticators. # Configuration controlling RBAC group membership information.
319 &quot;enabled&quot;: True or False, # Whether this cluster should return group membership lookups
320 # during authentication using a group of security groups.
321 &quot;securityGroup&quot;: &quot;A String&quot;, # The name of the security group-of-groups to be used. Only relevant
322 # if enabled = true.
323 },
324 &quot;masterIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP prefix in CIDR notation to use for the hosted master network.
325 # This prefix will be used for assigning private IP addresses to the
326 # master or set of masters, as well as the ILB VIP.
327 # This field is deprecated, use
328 # private_cluster_config.master_ipv4_cidr_block instead.
329 &quot;clusterTelemetry&quot;: { # Telemetry integration for the cluster. # Telemetry integration for the cluster.
330 &quot;type&quot;: &quot;A String&quot;, # Type of the integration.
331 },
332 &quot;currentMasterVersion&quot;: &quot;A String&quot;, # [Output only] The current software version of the master endpoint.
333 &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.
334 # cluster, enabling additional functionality.
335 &quot;networkPolicyConfig&quot;: { # Configuration for NetworkPolicy. This only tracks whether the addon # Configuration for NetworkPolicy. This only tracks whether the addon
336 # is enabled or not on the Master, it does not track whether network policy
337 # is enabled for the nodes.
338 # is enabled or not on the Master, it does not track whether network policy
339 # is enabled for the nodes.
340 &quot;disabled&quot;: True or False, # Whether NetworkPolicy is enabled for this cluster.
341 },
342 &quot;configConnectorConfig&quot;: { # Configuration options for the Config Connector add-on. # Configuration for the ConfigConnector add-on, a Kubernetes
343 # extension to manage hosted GCP services through the Kubernetes API
344 &quot;enabled&quot;: True or False, # Whether Cloud Connector is enabled for this cluster.
345 },
346 &quot;cloudRunConfig&quot;: { # Configuration options for the Cloud Run feature. # Configuration for the Cloud Run addon. The `IstioConfig` addon must be
347 # enabled in order to enable Cloud Run addon. This option can only be enabled
348 # at cluster creation time.
349 &quot;disabled&quot;: True or False, # Whether Cloud Run addon is enabled for this cluster.
350 },
351 &quot;horizontalPodAutoscaling&quot;: { # Configuration options for the horizontal pod autoscaling feature, which # Configuration for the horizontal pod autoscaling feature, which
352 # increases or decreases the number of replica pods a replication controller
353 # has based on the resource usage of the existing pods.
354 # increases or decreases the number of replica pods a replication controller
355 # has based on the resource usage of the existing pods.
356 &quot;disabled&quot;: True or False, # Whether the Horizontal Pod Autoscaling feature is enabled in the cluster.
357 # When enabled, it ensures that metrics are collected into Stackdriver
358 # Monitoring.
359 },
360 &quot;httpLoadBalancing&quot;: { # Configuration options for the HTTP (L7) load balancing controller addon, # Configuration for the HTTP (L7) load balancing controller addon, which
361 # makes it easy to set up HTTP load balancers for services in a cluster.
362 # which makes it easy to set up HTTP load balancers for services in a cluster.
363 &quot;disabled&quot;: True or False, # Whether the HTTP Load Balancing controller is enabled in the cluster.
364 # When enabled, it runs a small pod in the cluster that manages the load
365 # balancers.
366 },
367 &quot;kubernetesDashboard&quot;: { # Configuration for the Kubernetes Dashboard. # Configuration for the Kubernetes Dashboard.
368 # This addon is deprecated, and will be disabled in 1.15. It is recommended
369 # to use the Cloud Console to manage and monitor your Kubernetes clusters,
370 # workloads and applications. For more information, see:
371 # https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
372 &quot;disabled&quot;: True or False, # Whether the Kubernetes Dashboard is enabled for this cluster.
373 },
374 &quot;dnsCacheConfig&quot;: { # Configuration for NodeLocal DNSCache # Configuration for NodeLocalDNS, a dns cache running on cluster nodes
375 &quot;enabled&quot;: True or False, # Whether NodeLocal DNSCache is enabled for this cluster.
376 },
377 &quot;kalmConfig&quot;: { # Configuration options for the KALM addon. # Configuration for the KALM addon, which manages the lifecycle of k8s
378 # applications.
379 &quot;enabled&quot;: True or False, # Whether KALM is enabled for this cluster.
380 },
381 &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.
382 # enabled at cluster creation time.
383 &quot;enabled&quot;: True or False, # Whether the Compute Engine PD CSI driver is enabled for this cluster.
384 },
385 &quot;istioConfig&quot;: { # Configuration options for Istio addon. # Configuration for Istio, an open platform to connect, manage, and secure
386 # microservices.
387 &quot;disabled&quot;: True or False, # Whether Istio is enabled for this cluster.
388 &quot;auth&quot;: &quot;A String&quot;, # The specified Istio auth mode, either none, or mutual TLS.
389 },
390 },
391 &quot;podSecurityPolicyConfig&quot;: { # Configuration for the PodSecurityPolicy feature. # Configuration for the PodSecurityPolicy feature.
392 &quot;enabled&quot;: True or False, # Enable the PodSecurityPolicy controller for this cluster. If enabled, pods
393 # must be valid under a PodSecurityPolicy to be created.
394 },
395 &quot;currentNodeVersion&quot;: &quot;A String&quot;, # [Output only] Deprecated, use
396 # [NodePool.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1beta1/projects.locations.clusters.nodePools)
397 # instead. The current version of the node software components.
398 # If they are currently at multiple versions because they&#x27;re in the process
399 # of being upgraded, this reflects the minimum version of all nodes.
400 &quot;subnetwork&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
401 # [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which
402 # the cluster is connected. On output this shows the subnetwork ID instead of
403 # the name.
404 &quot;maintenancePolicy&quot;: { # MaintenancePolicy defines the maintenance policy to be used for the cluster. # Configure the maintenance policy for this cluster.
405 &quot;resourceVersion&quot;: &quot;A String&quot;, # A hash identifying the version of this policy, so that updates to fields of
406 # the policy won&#x27;t accidentally undo intermediate changes (and so that users
407 # of the API unaware of some fields won&#x27;t accidentally remove other fields).
408 # Make a &lt;code&gt;get()&lt;/code&gt; request to the cluster to get the current
409 # resource version and include it with requests to set the policy.
410 &quot;window&quot;: { # MaintenanceWindow defines the maintenance window to be used for the cluster. # Specifies the maintenance window in which maintenance may be performed.
411 &quot;dailyMaintenanceWindow&quot;: { # Time window specified for daily maintenance operations. # DailyMaintenanceWindow specifies a daily maintenance operation window.
412 &quot;duration&quot;: &quot;A String&quot;, # [Output only] Duration of the time window, automatically chosen to be
413 # smallest possible in the given scenario.
414 &quot;startTime&quot;: &quot;A String&quot;, # Time within the maintenance window to start the maintenance operations.
415 # It must be in format &quot;HH:MM&quot;, where HH : [00-23] and MM : [00-59] GMT.
416 },
417 &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 -0700418 # maintenance to occur. The time windows may be overlapping. If no
419 # maintenance windows are set, maintenance can occur at any time.
Bu Sun Kim65020912020-05-20 12:08:20 -0700420 &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 -0700421 # this window reccurs. They go on for the span of time between the start and
422 # end time.
423 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700424 # For example, to have something repeat every weekday, you&#x27;d use:
Dan O'Mearadd494642020-05-01 07:42:23 -0700425 # &lt;code&gt;FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR&lt;/code&gt;
426 # To repeat some window daily (equivalent to the DailyMaintenanceWindow):
427 # &lt;code&gt;FREQ=DAILY&lt;/code&gt;
428 # For the first weekend of every month:
429 # &lt;code&gt;FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU&lt;/code&gt;
430 # This specifies how frequently the window starts. Eg, if you wanted to have
Bu Sun Kim65020912020-05-20 12:08:20 -0700431 # a 9-5 UTC-4 window every weekday, you&#x27;d use something like:
Dan O'Mearadd494642020-05-01 07:42:23 -0700432 # &lt;code&gt;
433 # start time = 2019-01-01T09:00:00-0400
434 # end time = 2019-01-01T17:00:00-0400
435 # recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
436 # &lt;/code&gt;
437 # Windows can span multiple days. Eg, to make the window encompass every
438 # weekend from midnight Saturday till the last minute of Sunday UTC:
439 # &lt;code&gt;
440 # start time = 2019-01-05T00:00:00Z
441 # end time = 2019-01-07T23:59:00Z
442 # recurrence = FREQ=WEEKLY;BYDAY=SA
443 # &lt;/code&gt;
Bu Sun Kim65020912020-05-20 12:08:20 -0700444 # Note the start and end time&#x27;s specific dates are largely arbitrary except
Dan O'Mearadd494642020-05-01 07:42:23 -0700445 # to specify duration of the window and when it first starts.
446 # The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.
Bu Sun Kim65020912020-05-20 12:08:20 -0700447 &quot;window&quot;: { # Represents an arbitrary window of time. # The window of the first recurrence.
448 &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 -0700449 # start time.
Bu Sun Kim65020912020-05-20 12:08:20 -0700450 &quot;startTime&quot;: &quot;A String&quot;, # The time that the window first starts.
Dan O'Mearadd494642020-05-01 07:42:23 -0700451 },
452 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700453 &quot;maintenanceExclusions&quot;: { # Exceptions to maintenance window. Non-emergency maintenance should not
Dan O'Mearadd494642020-05-01 07:42:23 -0700454 # occur in these windows.
Bu Sun Kim65020912020-05-20 12:08:20 -0700455 &quot;a_key&quot;: { # Represents an arbitrary window of time.
456 &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 -0700457 # start time.
Bu Sun Kim65020912020-05-20 12:08:20 -0700458 &quot;startTime&quot;: &quot;A String&quot;, # The time that the window first starts.
Dan O'Mearadd494642020-05-01 07:42:23 -0700459 },
460 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700461 },
462 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700463 &quot;resourceLabels&quot;: { # The resource labels for the cluster to use to annotate any related
464 # Google Compute Engine resources.
465 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700466 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700467 &quot;initialClusterVersion&quot;: &quot;A String&quot;, # The initial Kubernetes version for this cluster. Valid versions are those
468 # found in validMasterVersions returned by getServerConfig. The version can
469 # be upgraded over time; such upgrades are reflected in
470 # currentMasterVersion and currentNodeVersion.
Dan O'Mearadd494642020-05-01 07:42:23 -0700471 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700472 # Users may specify either explicit versions offered by
473 # Kubernetes Engine or version aliases, which have the following behavior:
Dan O'Mearadd494642020-05-01 07:42:23 -0700474 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700475 # - &quot;latest&quot;: picks the highest valid Kubernetes version
476 # - &quot;1.X&quot;: picks the highest valid patch+gke.N patch in the 1.X version
477 # - &quot;1.X.Y&quot;: picks the highest valid gke.N patch in the 1.X.Y version
478 # - &quot;1.X.Y-gke.N&quot;: picks an explicit Kubernetes version
479 # - &quot;&quot;,&quot;-&quot;: picks the default Kubernetes version
480 &quot;ipAllocationPolicy&quot;: { # Configuration for controlling how IPs are allocated in the cluster. # Configuration for cluster IP allocation.
481 &quot;useRoutes&quot;: True or False, # Whether routes will be used for pod IPs in the cluster.
482 # This is used in conjunction with use_ip_aliases. It cannot be true if
483 # use_ip_aliases is true. If both use_ip_aliases and use_routes are false,
484 # then the server picks the default IP allocation mode
485 &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 -0700486 # will be automatically chosen with the default size.
487 #
488 # This field is only applicable when `use_ip_aliases` is true.
489 #
490 # Set to blank to have a range chosen with the default size.
491 #
492 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
493 # netmask.
494 #
495 # Set to a
496 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
497 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
498 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
499 # to use.
Bu Sun Kim65020912020-05-20 12:08:20 -0700500 &quot;allowRouteOverlap&quot;: True or False, # If true, allow allocation of cluster CIDR ranges that overlap with certain
501 # kinds of network routes. By default we do not allow cluster CIDR ranges to
502 # intersect with any user declared routes. With allow_route_overlap == true,
503 # we allow overlapping with CIDR ranges that are larger than the cluster CIDR
504 # range.
505 #
506 # If this field is set to true, then cluster and services CIDRs must be
507 # fully-specified (e.g. `10.96.0.0/14`, but not `/14`), which means:
508 # 1) When `use_ip_aliases` is true, `cluster_ipv4_cidr_block` and
509 # `services_ipv4_cidr_block` must be fully-specified.
510 # 2) When `use_ip_aliases` is false, `cluster.cluster_ipv4_cidr` muse be
511 # fully-specified.
512 &quot;nodeIpv4Cidr&quot;: &quot;A String&quot;, # This field is deprecated, use node_ipv4_cidr_block.
513 &quot;clusterIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP address range for the cluster pod IPs. If this field is set, then
514 # `cluster.cluster_ipv4_cidr` must be left blank.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700515 #
516 # This field is only applicable when `use_ip_aliases` is true.
Bu Sun Kim65020912020-05-20 12:08:20 -0700517 #
518 # Set to blank to have a range chosen with the default size.
519 #
520 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
521 # netmask.
522 #
523 # Set to a
524 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
525 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
526 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
527 # to use.
528 &quot;clusterSecondaryRangeName&quot;: &quot;A String&quot;, # The name of the secondary range to be used for the cluster CIDR
529 # block. The secondary range will be used for pod IP
530 # addresses. This must be an existing secondary range associated
531 # with the cluster subnetwork.
532 #
533 # This field is only applicable with use_ip_aliases and
534 # create_subnetwork is false.
535 &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 -0700536 #
537 # This is applicable only if `create_subnetwork` is true.
538 #
539 # Set to blank to have a range chosen with the default size.
540 #
541 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
542 # netmask.
543 #
544 # Set to a
545 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
546 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
547 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
548 # to use.
Bu Sun Kim65020912020-05-20 12:08:20 -0700549 &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 -0700550 # range will be automatically chosen with the default size.
551 #
552 # This field is only applicable when `use_ip_aliases` is true.
553 #
554 # If unspecified, the range will use the default size.
555 #
556 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
557 # netmask.
558 #
559 # Set to a
560 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
561 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
562 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
563 # to use.
Dan O'Mearadd494642020-05-01 07:42:23 -0700564 # This field is deprecated, use cluster.tpu_config.ipv4_cidr_block instead.
Bu Sun Kim65020912020-05-20 12:08:20 -0700565 &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 -0700566 # CIDR block. The secondary range will be used for service
567 # ClusterIPs. This must be an existing secondary range associated
568 # with the cluster subnetwork.
569 #
570 # This field is only applicable with use_ip_aliases and
571 # create_subnetwork is false.
Bu Sun Kim65020912020-05-20 12:08:20 -0700572 &quot;useIpAliases&quot;: True or False, # Whether alias IPs will be used for pod IPs in the cluster.
573 # This is used in conjunction with use_routes. It cannot
574 # be true if use_routes is true. If both use_ip_aliases and use_routes are
575 # false, then the server picks the default IP allocation mode
576 &quot;createSubnetwork&quot;: True or False, # Whether a new subnetwork will be created automatically for the cluster.
577 #
578 # This field is only applicable when `use_ip_aliases` is true.
579 &quot;subnetworkName&quot;: &quot;A String&quot;, # A custom subnetwork name to be used if `create_subnetwork` is true. If
580 # this field is empty, then an automatic name will be chosen for the new
581 # subnetwork.
582 &quot;clusterIpv4Cidr&quot;: &quot;A String&quot;, # This field is deprecated, use cluster_ipv4_cidr_block.
583 &quot;servicesIpv4Cidr&quot;: &quot;A String&quot;, # This field is deprecated, use services_ipv4_cidr_block.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700584 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700585 &quot;legacyAbac&quot;: { # Configuration for the legacy Attribute Based Access Control authorization # Configuration for the legacy ABAC authorization mode.
586 # mode.
587 &quot;enabled&quot;: True or False, # Whether the ABAC authorizer is enabled for this cluster. When enabled,
588 # identities in the system, including service accounts, nodes, and
589 # controllers, will have statically granted permissions beyond those
590 # provided by the RBAC configuration or IAM.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700591 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700592 &quot;enableTpu&quot;: True or False, # Enable the ability to use Cloud TPUs in this cluster.
593 # This field is deprecated, use tpu_config.enabled instead.
594 &quot;resourceUsageExportConfig&quot;: { # Configuration for exporting cluster resource usages. # Configuration for exporting resource usages. Resource usage export is
595 # disabled when this config unspecified.
596 &quot;enableNetworkEgressMetering&quot;: True or False, # Whether to enable network egress metering for this cluster. If enabled, a
597 # daemonset will be created in the cluster to meter network egress traffic.
598 &quot;consumptionMeteringConfig&quot;: { # Parameters for controlling consumption metering. # Configuration to enable resource consumption metering.
599 &quot;enabled&quot;: True or False, # Whether to enable consumption metering for this cluster. If enabled, a
600 # second BigQuery table will be created to hold resource consumption
601 # records.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700602 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700603 &quot;bigqueryDestination&quot;: { # Parameters for using BigQuery as the destination of resource usage export. # Configuration to use BigQuery as usage export destination.
604 &quot;datasetId&quot;: &quot;A String&quot;, # The ID of a BigQuery Dataset.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700605 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700606 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700607 &quot;locations&quot;: [ # The list of Google Compute Engine
608 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
609 # cluster&#x27;s nodes should be located.
610 &quot;A String&quot;,
611 ],
612 &quot;nodePools&quot;: [ # The node pools associated with this cluster.
613 # 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 -0700614 # specified.
Bu Sun Kim65020912020-05-20 12:08:20 -0700615 { # NodePool contains the name and configuration for a cluster&#x27;s node pool.
616 # 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 -0700617 # specification, under the control of the cluster master. They may have a set
618 # of Kubernetes labels applied to them, which may be used to reference them
619 # during pod scheduling. They may also be resized up or down, to accommodate
620 # the workload.
Bu Sun Kim65020912020-05-20 12:08:20 -0700621 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output only] Additional information about the current status of this
622 # node pool instance, if available.
623 &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 -0700624 # only if a valid configuration is present.
625 # adjust the size of the node pool to the current cluster usage.
Bu Sun Kim65020912020-05-20 12:08:20 -0700626 &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 -0700627 # max_node_count.
Bu Sun Kim65020912020-05-20 12:08:20 -0700628 &quot;autoprovisioned&quot;: True or False, # Can this node pool be deleted automatically.
629 &quot;enabled&quot;: True or False, # Is autoscaling enabled for this node pool.
630 &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 -0700631 # has to enough quota to scale up the cluster.
632 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700633 &quot;initialNodeCount&quot;: 42, # The initial node count for the pool. You must ensure that your
634 # Compute Engine &lt;a href=&quot;/compute/docs/resource-quotas&quot;&gt;resource quota&lt;/a&gt;
635 # is sufficient for this number of instances. You must also have available
636 # firewall and routes quota.
637 &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 -0700638 # disruption caused by an upgrade.
639 #
640 # maxUnavailable controls the number of nodes that can be simultaneously
641 # unavailable.
642 #
643 # maxSurge controls the number of additional nodes that can be added to the
644 # node pool temporarily for the time of the upgrade to increase the number of
645 # available nodes.
646 #
647 # (maxUnavailable + maxSurge) determines the level of parallelism (how many
648 # nodes are being upgraded at the same time).
649 #
650 # Note: upgrades inevitably introduce some disruption since workloads need to
651 # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
652 # this holds true. (Disruption stays within the limits of
653 # PodDisruptionBudget, if it is configured.)
654 #
655 # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
656 # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
657 # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
658 # down 3 old (not yet upgraded) nodes at the same time. This ensures that
659 # there are always at least 4 nodes available.
Bu Sun Kim65020912020-05-20 12:08:20 -0700660 &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 -0700661 # of the node pool during the upgrade process.
Bu Sun Kim65020912020-05-20 12:08:20 -0700662 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during
Dan O'Mearadd494642020-05-01 07:42:23 -0700663 # the upgrade process. A node is considered available if its status is
664 # Ready.
665 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700666 &quot;selfLink&quot;: &quot;A String&quot;, # [Output only] Server-defined URL for the resource.
667 &quot;locations&quot;: [ # The list of Google Compute Engine
668 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
669 # NodePool&#x27;s nodes should be located.
670 &quot;A String&quot;,
671 ],
672 &quot;instanceGroupUrls&quot;: [ # [Output only] The resource URLs of the [managed instance
Dan O'Mearadd494642020-05-01 07:42:23 -0700673 # groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
674 # associated with this node pool.
Bu Sun Kim65020912020-05-20 12:08:20 -0700675 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -0700676 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700677 &quot;version&quot;: &quot;A String&quot;, # The version of the Kubernetes of this node.
678 &quot;podIpv4CidrSize&quot;: 42, # [Output only] The pod CIDR block size per node in this node pool.
679 &quot;conditions&quot;: [ # Which conditions caused the current node pool state.
680 { # StatusCondition describes why a cluster or a node pool has a certain status
681 # (e.g., ERROR or DEGRADED).
682 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
683 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Dan O'Mearadd494642020-05-01 07:42:23 -0700684 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700685 ],
686 &quot;status&quot;: &quot;A String&quot;, # [Output only] The status of the nodes in this pool instance.
687 &quot;config&quot;: { # Parameters that describe the nodes in a cluster. # The node configuration of the pool.
688 &quot;diskSizeGb&quot;: 42, # Size of the disk attached to each node, specified in GB.
689 # The smallest allowed disk size is 10GB.
690 #
691 # If unspecified, the default disk size is 100GB.
692 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to # The workload metadata configuration for this node.
693 # workloads on the node pool.
694 &quot;nodeMetadata&quot;: &quot;A String&quot;, # NodeMetadata is the configuration for how to expose metadata to the
695 # workloads running on the node.
696 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running
697 # on the node pool.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700698 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700699 &quot;accelerators&quot;: [ # A list of hardware accelerators to be attached to each node.
700 # See https://cloud.google.com/compute/docs/gpus for more information about
701 # support for GPUs.
702 { # AcceleratorConfig represents a Hardware Accelerator request.
703 &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of the accelerator cards exposed to an instance.
704 &quot;acceleratorType&quot;: &quot;A String&quot;, # The accelerator type resource name. List of supported accelerators
705 # [here](https://cloud.google.com/compute/docs/gpus)
706 },
707 ],
708 &quot;machineType&quot;: &quot;A String&quot;, # The name of a Google Compute Engine [machine
Dan O'Mearadd494642020-05-01 07:42:23 -0700709 # type](https://cloud.google.com/compute/docs/machine-types) (e.g.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700710 # `n1-standard-1`).
711 #
712 # If unspecified, the default machine type is
713 # `n1-standard-1`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700714 &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;)
715 #
716 # If unspecified, the default disk type is &#x27;pd-standard&#x27;
717 &quot;bootDiskKmsKey&quot;: &quot;A String&quot;, #
718 # The Customer Managed Encryption Key used to encrypt the boot disk attached
719 # to each node in the node pool. This should be of the form
720 # projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
721 # For more information about protecting resources with Cloud KMS Keys please
722 # see:
723 # https://cloud.google.com/compute/docs/disks/customer-managed-encryption
724 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
725 &quot;enableSecureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled.
726 #
727 # Secure Boot helps ensure that the system only runs authentic software by
728 # verifying the digital signature of all boot components, and halting the
729 # boot process if signature verification fails.
730 &quot;enableIntegrityMonitoring&quot;: True or False, # Defines whether the instance has integrity monitoring enabled.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700731 #
732 # Enables monitoring and attestation of the boot integrity of the instance.
733 # The attestation is performed against the integrity policy baseline. This
734 # baseline is initially derived from the implicitly trusted boot image when
735 # the instance is created.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700736 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700737 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used by this instance. The instance may be
738 # scheduled on the specified or newer CPU platform. Applicable values are the
739 # friendly names of CPU platforms, such as
740 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Haswell&amp;quot;&lt;/code&gt; or
741 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Sandy Bridge&amp;quot;&lt;/code&gt;. For more
742 # information, read [how to specify min CPU
743 # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
744 &quot;preemptible&quot;: True or False, # Whether the nodes are created as preemptible VM instances. See:
745 # https://cloud.google.com/compute/docs/instances/preemptible for more
746 # inforamtion about preemptible VM instances.
747 &quot;localSsdCount&quot;: 42, # The number of local SSD disks to be attached to the node.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700748 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700749 # The limit for this value is dependent upon the maximum number of
750 # disks available on a machine per zone. See:
751 # https://cloud.google.com/compute/docs/disks/local-ssd
752 # for more information.
753 &quot;sandboxConfig&quot;: { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node.
754 &quot;type&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node.
755 &quot;sandboxType&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node (e.g. &#x27;gvisor&#x27;)
756 },
757 &quot;metadata&quot;: { # The metadata key/value pairs assigned to instances in the cluster.
758 #
759 # Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
760 # in length. These are reflected as part of a URL in the metadata server.
761 # Additionally, to avoid ambiguity, keys must not conflict with any other
762 # metadata keys for the project or be one of the reserved keys:
763 # &quot;cluster-location&quot;
764 # &quot;cluster-name&quot;
765 # &quot;cluster-uid&quot;
766 # &quot;configure-sh&quot;
767 # &quot;containerd-configure-sh&quot;
768 # &quot;enable-oslogin&quot;
769 # &quot;gci-ensure-gke-docker&quot;
770 # &quot;gci-metrics-enabled&quot;
771 # &quot;gci-update-strategy&quot;
772 # &quot;instance-template&quot;
773 # &quot;kube-env&quot;
774 # &quot;startup-script&quot;
775 # &quot;user-data&quot;
776 # &quot;disable-address-manager&quot;
777 # &quot;windows-startup-script-ps1&quot;
778 # &quot;common-psm1&quot;
779 # &quot;k8s-node-setup-psm1&quot;
780 # &quot;install-ssh-psm1&quot;
781 # &quot;user-profile-psm1&quot;
782 # &quot;serial-port-logging-enable&quot;
783 # Values are free-form strings, and only have meaning as interpreted by
784 # the image running in the instance. The only restriction placed on them is
785 # that each value&#x27;s size must be less than or equal to 32 KB.
786 #
787 # The total size of all keys and values must be less than 512 KB.
788 &quot;a_key&quot;: &quot;A String&quot;,
789 },
790 &quot;reservationAffinity&quot;: { # [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) # The optional reservation affinity. Setting this field will apply
791 # the specified [Zonal Compute
792 # Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
793 # to this node pool.
794 # is the configuration of desired reservation which instances could take
795 # capacity from.
796 &quot;key&quot;: &quot;A String&quot;, # Corresponds to the label key of a reservation resource. To target a
797 # SPECIFIC_RESERVATION by name, specify &quot;googleapis.com/reservation-name&quot; as
798 # the key and specify the name of your reservation as its value.
799 &quot;values&quot;: [ # Corresponds to the label value(s) of reservation resource(s).
800 &quot;A String&quot;,
801 ],
802 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Corresponds to the type of reservation consumption.
803 },
804 &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 -0700805 # valid sources or targets for network firewalls and are specified by
806 # the client during cluster or node pool creation. Each tag within the list
807 # must comply with RFC1035.
Bu Sun Kim65020912020-05-20 12:08:20 -0700808 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700809 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700810 &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 -0700811 # Specify the email address of the Service Account; otherwise, if no Service
Bu Sun Kim65020912020-05-20 12:08:20 -0700812 # Account is specified, the &quot;default&quot; service account is used.
813 &quot;imageType&quot;: &quot;A String&quot;, # The image type to use for this node. Note that for a given image type,
814 # the latest version of it will be used.
815 &quot;oauthScopes&quot;: [ # The set of Google API scopes to be made available on all of the
816 # node VMs under the &quot;default&quot; service account.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700817 #
818 # The following scopes are recommended, but not required, and by default are
819 # not included:
820 #
821 # * `https://www.googleapis.com/auth/compute` is required for mounting
822 # persistent storage on your nodes.
823 # * `https://www.googleapis.com/auth/devstorage.read_only` is required for
824 # communicating with **gcr.io**
Dan O'Mearadd494642020-05-01 07:42:23 -0700825 # (the [Google Container
826 # Registry](https://cloud.google.com/container-registry/)).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700827 #
828 # If unspecified, no scopes are added, unless Cloud Logging or Cloud
829 # Monitoring are enabled, in which case their required scopes will be added.
Bu Sun Kim65020912020-05-20 12:08:20 -0700830 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700831 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700832 &quot;taints&quot;: [ # List of kubernetes taints to be applied to each node.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700833 #
834 # For more information, including usage and the valid values, see:
835 # https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
836 { # Kubernetes taint is comprised of three fields: key, value, and effect. Effect
837 # can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute.
838 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700839 # See
840 # [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration)
841 # for more information, including usage and the valid values.
842 &quot;key&quot;: &quot;A String&quot;, # Key for taint.
843 &quot;value&quot;: &quot;A String&quot;, # Value for taint.
844 &quot;effect&quot;: &quot;A String&quot;, # Effect for taint.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700845 },
846 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700847 &quot;labels&quot;: { # The map of Kubernetes labels (key/value pairs) to be applied to each node.
848 # These will added in addition to any default label(s) that
849 # Kubernetes may apply to the node.
850 # In case of conflict in label keys, the applied set may differ depending on
851 # the Kubernetes version -- it&#x27;s best to assume the behavior is undefined
852 # and conflicts should be avoided.
853 # For more information, including usage and the valid values, see:
854 # https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
855 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700856 },
857 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700858 &quot;name&quot;: &quot;A String&quot;, # The name of the node pool.
859 &quot;maxPodsConstraint&quot;: { # Constraints applied to pods. # The constraint on the maximum number of pods that can be run
860 # simultaneously on a node in the node pool.
861 &quot;maxPodsPerNode&quot;: &quot;A String&quot;, # Constraint enforced on the max num of pods per node.
862 },
863 &quot;management&quot;: { # NodeManagement defines the set of node management services turned on for the # NodeManagement configuration for this NodePool.
864 # node pool.
865 &quot;autoUpgrade&quot;: True or False, # Whether the nodes will be automatically upgraded.
866 &quot;autoRepair&quot;: True or False, # Whether the nodes will be automatically repaired.
867 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool.
868 # the Auto Upgrades will proceed.
869 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
870 # with the description of the upgrade.
871 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
872 # with the approximate start time for the upgrades, in
873 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
874 },
875 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700876 },
877 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700878 &quot;selfLink&quot;: &quot;A String&quot;, # [Output only] Server-defined URL for the resource.
879 &quot;servicesIpv4Cidr&quot;: &quot;A String&quot;, # [Output only] The IP address range of the Kubernetes services in
880 # this cluster, in
881 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
882 # notation (e.g. `1.2.3.4/29`). Service addresses are
883 # typically put in the last `/16` from the container CIDR.
884 &quot;networkPolicy&quot;: { # Configuration options for the NetworkPolicy feature. # Configuration options for the NetworkPolicy feature.
885 # https://kubernetes.io/docs/concepts/services-networking/networkpolicies/
886 &quot;enabled&quot;: True or False, # Whether network policy is enabled on the cluster.
887 &quot;provider&quot;: &quot;A String&quot;, # The selected network policy provider.
888 },
889 &quot;releaseChannel&quot;: { # ReleaseChannel indicates which release channel a cluster is # Release channel configuration.
890 # subscribed to. Release channels are arranged in order of risk and
891 # frequency of updates.
892 #
893 # When a cluster is subscribed to a release channel, Google maintains
894 # both the master version and the node version. Node auto-upgrade
895 # defaults to true and cannot be disabled. Updates to version related
896 # fields (e.g. current_master_version) return an error.
897 &quot;channel&quot;: &quot;A String&quot;, # channel specifies which release channel the cluster is subscribed to.
898 },
899 &quot;enableKubernetesAlpha&quot;: True or False, # Kubernetes alpha features are enabled on this cluster. This includes alpha
900 # API groups (e.g. v1beta1) and features that may not be production ready in
901 # the kubernetes version of the master and nodes.
902 # The cluster has no SLA for uptime and master/node upgrades are disabled.
903 # Alpha enabled clusters are automatically deleted thirty days after
904 # creation.
905 &quot;description&quot;: &quot;A String&quot;, # An optional description of this cluster.
906 &quot;conditions&quot;: [ # Which conditions caused the current cluster state.
907 { # StatusCondition describes why a cluster or a node pool has a certain status
908 # (e.g., ERROR or DEGRADED).
909 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
910 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
911 },
912 ],
913 &quot;privateCluster&quot;: True or False, # If this is a private cluster setup. Private clusters are clusters that, by
914 # default have no external IP addresses on the nodes and where nodes and the
915 # master communicate over private IP addresses.
916 # This field is deprecated, use private_cluster_config.enable_private_nodes
917 # instead.
918 &quot;currentNodeCount&quot;: 42, # [Output only] The number of nodes currently in the cluster. Deprecated.
919 # Call Kubernetes API directly to retrieve node information.
920 &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 -0700921 # Currently available options:
922 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700923 # * &quot;monitoring.googleapis.com/kubernetes&quot; - The Cloud Monitoring
Dan O'Mearadd494642020-05-01 07:42:23 -0700924 # service with a Kubernetes-native resource model
925 # * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
926 # longer available as of GKE 1.15).
927 # * `none` - No metrics will be exported from the cluster.
928 #
929 # If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
930 # used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
Bu Sun Kim65020912020-05-20 12:08:20 -0700931 &quot;databaseEncryption&quot;: { # Configuration of etcd encryption. # Configuration of etcd encryption.
932 &quot;state&quot;: &quot;A String&quot;, # Denotes the state of etcd encryption.
933 &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 -0700934 # Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700935 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700936 &quot;binaryAuthorization&quot;: { # Configuration for Binary Authorization. # Configuration for Binary Authorization.
937 &quot;enabled&quot;: True or False, # Enable Binary Authorization for this cluster. If enabled, all container
938 # images will be validated by Google Binauthz.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700939 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700940 &quot;tpuIpv4CidrBlock&quot;: &quot;A String&quot;, # [Output only] The IP address range of the Cloud TPUs in this cluster, in
941 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
942 # notation (e.g. `1.2.3.4/29`).
943 &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
944 # policies.
945 # policies.
946 &quot;identityNamespace&quot;: &quot;A String&quot;, # IAM Identity Namespace to attach all Kubernetes Service Accounts to.
947 &quot;workloadPool&quot;: &quot;A String&quot;, # The workload pool to attach all Kubernetes service accounts to.
948 },
949 &quot;zone&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -0700950 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
951 # cluster resides. This field is deprecated, use location instead.
Bu Sun Kim65020912020-05-20 12:08:20 -0700952 &quot;loggingService&quot;: &quot;A String&quot;, # The logging service the cluster should use to write logs.
953 # Currently available options:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700954 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700955 # * `logging.googleapis.com/kubernetes` - The Cloud Logging
956 # service with a Kubernetes-native resource model
957 # * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
958 # available as of GKE 1.15).
959 # * `none` - no logs will be exported from the cluster.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700960 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700961 # If left as an empty string,`logging.googleapis.com/kubernetes` will be
962 # used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
963 &quot;expireTime&quot;: &quot;A String&quot;, # [Output only] The time the cluster will be automatically
964 # deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
965 &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 -0700966 # For requests, this field should only be used in lieu of a
Bu Sun Kim65020912020-05-20 12:08:20 -0700967 # &quot;node_pool&quot; object, since this configuration (along with the
968 # &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 -0700969 # auto-generated name. Do not use this and a node_pool at the same time.
970 # For responses, this field will be populated with the node configuration of
971 # the first node pool. (For configuration of each node pool, see
972 # `node_pool.config`)
973 #
974 # If unspecified, the defaults are used.
975 # This field is deprecated, use node_pool.config instead.
Bu Sun Kim65020912020-05-20 12:08:20 -0700976 &quot;diskSizeGb&quot;: 42, # Size of the disk attached to each node, specified in GB.
977 # The smallest allowed disk size is 10GB.
978 #
979 # If unspecified, the default disk size is 100GB.
980 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to # The workload metadata configuration for this node.
981 # workloads on the node pool.
982 &quot;nodeMetadata&quot;: &quot;A String&quot;, # NodeMetadata is the configuration for how to expose metadata to the
983 # workloads running on the node.
984 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running
985 # on the node pool.
Dan O'Mearadd494642020-05-01 07:42:23 -0700986 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700987 &quot;accelerators&quot;: [ # A list of hardware accelerators to be attached to each node.
988 # See https://cloud.google.com/compute/docs/gpus for more information about
989 # support for GPUs.
990 { # AcceleratorConfig represents a Hardware Accelerator request.
991 &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of the accelerator cards exposed to an instance.
992 &quot;acceleratorType&quot;: &quot;A String&quot;, # The accelerator type resource name. List of supported accelerators
993 # [here](https://cloud.google.com/compute/docs/gpus)
994 },
995 ],
996 &quot;machineType&quot;: &quot;A String&quot;, # The name of a Google Compute Engine [machine
Dan O'Mearadd494642020-05-01 07:42:23 -0700997 # type](https://cloud.google.com/compute/docs/machine-types) (e.g.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700998 # `n1-standard-1`).
999 #
1000 # If unspecified, the default machine type is
1001 # `n1-standard-1`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001002 &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;)
1003 #
1004 # If unspecified, the default disk type is &#x27;pd-standard&#x27;
1005 &quot;bootDiskKmsKey&quot;: &quot;A String&quot;, #
1006 # The Customer Managed Encryption Key used to encrypt the boot disk attached
1007 # to each node in the node pool. This should be of the form
1008 # projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
1009 # For more information about protecting resources with Cloud KMS Keys please
1010 # see:
1011 # https://cloud.google.com/compute/docs/disks/customer-managed-encryption
1012 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
1013 &quot;enableSecureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled.
1014 #
1015 # Secure Boot helps ensure that the system only runs authentic software by
1016 # verifying the digital signature of all boot components, and halting the
1017 # boot process if signature verification fails.
1018 &quot;enableIntegrityMonitoring&quot;: True or False, # Defines whether the instance has integrity monitoring enabled.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001019 #
1020 # Enables monitoring and attestation of the boot integrity of the instance.
1021 # The attestation is performed against the integrity policy baseline. This
1022 # baseline is initially derived from the implicitly trusted boot image when
1023 # the instance is created.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001024 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001025 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used by this instance. The instance may be
1026 # scheduled on the specified or newer CPU platform. Applicable values are the
1027 # friendly names of CPU platforms, such as
1028 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Haswell&amp;quot;&lt;/code&gt; or
1029 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Sandy Bridge&amp;quot;&lt;/code&gt;. For more
1030 # information, read [how to specify min CPU
1031 # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
1032 &quot;preemptible&quot;: True or False, # Whether the nodes are created as preemptible VM instances. See:
1033 # https://cloud.google.com/compute/docs/instances/preemptible for more
1034 # inforamtion about preemptible VM instances.
1035 &quot;localSsdCount&quot;: 42, # The number of local SSD disks to be attached to the node.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001036 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001037 # The limit for this value is dependent upon the maximum number of
1038 # disks available on a machine per zone. See:
1039 # https://cloud.google.com/compute/docs/disks/local-ssd
1040 # for more information.
1041 &quot;sandboxConfig&quot;: { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node.
1042 &quot;type&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node.
1043 &quot;sandboxType&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node (e.g. &#x27;gvisor&#x27;)
1044 },
1045 &quot;metadata&quot;: { # The metadata key/value pairs assigned to instances in the cluster.
1046 #
1047 # Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
1048 # in length. These are reflected as part of a URL in the metadata server.
1049 # Additionally, to avoid ambiguity, keys must not conflict with any other
1050 # metadata keys for the project or be one of the reserved keys:
1051 # &quot;cluster-location&quot;
1052 # &quot;cluster-name&quot;
1053 # &quot;cluster-uid&quot;
1054 # &quot;configure-sh&quot;
1055 # &quot;containerd-configure-sh&quot;
1056 # &quot;enable-oslogin&quot;
1057 # &quot;gci-ensure-gke-docker&quot;
1058 # &quot;gci-metrics-enabled&quot;
1059 # &quot;gci-update-strategy&quot;
1060 # &quot;instance-template&quot;
1061 # &quot;kube-env&quot;
1062 # &quot;startup-script&quot;
1063 # &quot;user-data&quot;
1064 # &quot;disable-address-manager&quot;
1065 # &quot;windows-startup-script-ps1&quot;
1066 # &quot;common-psm1&quot;
1067 # &quot;k8s-node-setup-psm1&quot;
1068 # &quot;install-ssh-psm1&quot;
1069 # &quot;user-profile-psm1&quot;
1070 # &quot;serial-port-logging-enable&quot;
1071 # Values are free-form strings, and only have meaning as interpreted by
1072 # the image running in the instance. The only restriction placed on them is
1073 # that each value&#x27;s size must be less than or equal to 32 KB.
1074 #
1075 # The total size of all keys and values must be less than 512 KB.
1076 &quot;a_key&quot;: &quot;A String&quot;,
1077 },
1078 &quot;reservationAffinity&quot;: { # [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) # The optional reservation affinity. Setting this field will apply
1079 # the specified [Zonal Compute
1080 # Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
1081 # to this node pool.
1082 # is the configuration of desired reservation which instances could take
1083 # capacity from.
1084 &quot;key&quot;: &quot;A String&quot;, # Corresponds to the label key of a reservation resource. To target a
1085 # SPECIFIC_RESERVATION by name, specify &quot;googleapis.com/reservation-name&quot; as
1086 # the key and specify the name of your reservation as its value.
1087 &quot;values&quot;: [ # Corresponds to the label value(s) of reservation resource(s).
1088 &quot;A String&quot;,
1089 ],
1090 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Corresponds to the type of reservation consumption.
1091 },
1092 &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 -07001093 # valid sources or targets for network firewalls and are specified by
1094 # the client during cluster or node pool creation. Each tag within the list
1095 # must comply with RFC1035.
Bu Sun Kim65020912020-05-20 12:08:20 -07001096 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001097 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001098 &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 -07001099 # Specify the email address of the Service Account; otherwise, if no Service
Bu Sun Kim65020912020-05-20 12:08:20 -07001100 # Account is specified, the &quot;default&quot; service account is used.
1101 &quot;imageType&quot;: &quot;A String&quot;, # The image type to use for this node. Note that for a given image type,
1102 # the latest version of it will be used.
1103 &quot;oauthScopes&quot;: [ # The set of Google API scopes to be made available on all of the
1104 # node VMs under the &quot;default&quot; service account.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001105 #
1106 # The following scopes are recommended, but not required, and by default are
1107 # not included:
1108 #
1109 # * `https://www.googleapis.com/auth/compute` is required for mounting
1110 # persistent storage on your nodes.
1111 # * `https://www.googleapis.com/auth/devstorage.read_only` is required for
1112 # communicating with **gcr.io**
Dan O'Mearadd494642020-05-01 07:42:23 -07001113 # (the [Google Container
1114 # Registry](https://cloud.google.com/container-registry/)).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001115 #
1116 # If unspecified, no scopes are added, unless Cloud Logging or Cloud
1117 # Monitoring are enabled, in which case their required scopes will be added.
Bu Sun Kim65020912020-05-20 12:08:20 -07001118 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001119 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001120 &quot;taints&quot;: [ # List of kubernetes taints to be applied to each node.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001121 #
1122 # For more information, including usage and the valid values, see:
1123 # https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
1124 { # Kubernetes taint is comprised of three fields: key, value, and effect. Effect
1125 # can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute.
1126 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001127 # See
1128 # [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration)
1129 # for more information, including usage and the valid values.
1130 &quot;key&quot;: &quot;A String&quot;, # Key for taint.
1131 &quot;value&quot;: &quot;A String&quot;, # Value for taint.
1132 &quot;effect&quot;: &quot;A String&quot;, # Effect for taint.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001133 },
1134 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001135 &quot;labels&quot;: { # The map of Kubernetes labels (key/value pairs) to be applied to each node.
1136 # These will added in addition to any default label(s) that
1137 # Kubernetes may apply to the node.
1138 # In case of conflict in label keys, the applied set may differ depending on
1139 # the Kubernetes version -- it&#x27;s best to assume the behavior is undefined
1140 # and conflicts should be avoided.
1141 # For more information, including usage and the valid values, see:
1142 # https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
1143 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001144 },
1145 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001146 &quot;status&quot;: &quot;A String&quot;, # [Output only] The current status of this cluster.
1147 &quot;tpuConfig&quot;: { # Configuration for Cloud TPU. # Configuration for Cloud TPU support;
1148 &quot;enabled&quot;: True or False, # Whether Cloud TPU integration is enabled or not.
1149 &quot;ipv4CidrBlock&quot;: &quot;A String&quot;, # IPv4 CIDR block reserved for Cloud TPU in the VPC.
1150 &quot;useServiceNetworking&quot;: True or False, # Whether to use service networking for Cloud TPU or not.
1151 },
1152 &quot;networkConfig&quot;: { # NetworkConfig reports the relative names of network &amp; subnetwork. # Configuration for cluster networking.
1153 &quot;subnetwork&quot;: &quot;A String&quot;, # Output only. The relative name of the Google Compute Engine
1154 # [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the
1155 # cluster is connected. Example:
1156 # projects/my-project/regions/us-central1/subnetworks/my-subnet
1157 &quot;network&quot;: &quot;A String&quot;, # Output only. The relative name of the Google Compute Engine
1158 # network(https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
1159 # to which the cluster is connected. Example:
1160 # projects/my-project/global/networks/my-network
1161 &quot;enableIntraNodeVisibility&quot;: True or False, # Whether Intra-node visibility is enabled for this cluster.
1162 # This makes same node pod to pod traffic visible for VPC network.
1163 },
1164 &quot;name&quot;: &quot;A String&quot;, # The name of this cluster. The name must be unique within this project
1165 # and location (e.g. zone or region), and can be up to 40 characters with
1166 # the following restrictions:
1167 #
1168 # * Lowercase letters, numbers, and hyphens only.
1169 # * Must start with a letter.
1170 # * Must end with a number or a letter.
1171 &quot;endpoint&quot;: &quot;A String&quot;, # [Output only] The IP address of this cluster&#x27;s master endpoint.
1172 # The endpoint can be accessed from the internet at
1173 # `https://username:password@endpoint/`.
1174 #
1175 # See the `masterAuth` property of this resource for username and
1176 # password information.
1177 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
1178 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1179 # or
1180 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1181 # in which the cluster resides.
1182 &quot;createTime&quot;: &quot;A String&quot;, # [Output only] The time the cluster was created, in
1183 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1184 &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 -07001185 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
1186 # notation (e.g. `10.96.0.0/14`). Leave blank to have
1187 # one automatically chosen or specify a `/14` block in `10.0.0.0/8`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001188 &quot;autoscaling&quot;: { # ClusterAutoscaling contains global, per-cluster information # Cluster-level autoscaling configuration.
1189 # required by Cluster Autoscaler to automatically adjust
1190 # the size of the cluster and create/delete
1191 # node pools based on the current needs.
1192 &quot;resourceLimits&quot;: [ # Contains global constraints regarding minimum and maximum
1193 # amount of resources in the cluster.
1194 { # Contains information about amount of some resource in the cluster.
1195 # For memory, value should be in GB.
1196 &quot;maximum&quot;: &quot;A String&quot;, # Maximum amount of the resource in the cluster.
1197 &quot;resourceType&quot;: &quot;A String&quot;, # Resource name &quot;cpu&quot;, &quot;memory&quot; or gpu-specific string.
1198 &quot;minimum&quot;: &quot;A String&quot;, # Minimum amount of the resource in the cluster.
1199 },
1200 ],
1201 &quot;autoscalingProfile&quot;: &quot;A String&quot;, # Defines autoscaling behaviour.
1202 &quot;enableNodeAutoprovisioning&quot;: True or False, # Enables automatic node pool creation and deletion.
1203 &quot;autoprovisioningNodePoolDefaults&quot;: { # AutoprovisioningNodePoolDefaults contains defaults for a node pool created # AutoprovisioningNodePoolDefaults contains defaults for a node pool
1204 # created by NAP.
1205 # by NAP.
1206 &quot;oauthScopes&quot;: [ # Scopes that are used by NAP when creating node pools. If oauth_scopes are
1207 # specified, service_account should be empty.
1208 &quot;A String&quot;,
1209 ],
1210 &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.
1211 # node pool.
1212 &quot;autoUpgrade&quot;: True or False, # Whether the nodes will be automatically upgraded.
1213 &quot;autoRepair&quot;: True or False, # Whether the nodes will be automatically repaired.
1214 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool.
1215 # the Auto Upgrades will proceed.
1216 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
1217 # with the description of the upgrade.
1218 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
1219 # with the approximate start time for the upgrades, in
1220 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1221 },
1222 },
1223 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used for NAP created node pools.
1224 # The instance may be scheduled on the specified or newer CPU platform.
1225 # Applicable values are the friendly names of CPU platforms, such as
1226 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Haswell&amp;quot;&lt;/code&gt; or
1227 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Sandy Bridge&amp;quot;&lt;/code&gt;. For more
1228 # information, read [how to specify min CPU
1229 # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
1230 # To unset the min cpu platform field pass &quot;automatic&quot; as field value.
1231 &quot;upgradeSettings&quot;: { # These upgrade settings control the level of parallelism and the level of # Specifies the upgrade settings for NAP created node pools
1232 # disruption caused by an upgrade.
1233 #
1234 # maxUnavailable controls the number of nodes that can be simultaneously
1235 # unavailable.
1236 #
1237 # maxSurge controls the number of additional nodes that can be added to the
1238 # node pool temporarily for the time of the upgrade to increase the number of
1239 # available nodes.
1240 #
1241 # (maxUnavailable + maxSurge) determines the level of parallelism (how many
1242 # nodes are being upgraded at the same time).
1243 #
1244 # Note: upgrades inevitably introduce some disruption since workloads need to
1245 # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
1246 # this holds true. (Disruption stays within the limits of
1247 # PodDisruptionBudget, if it is configured.)
1248 #
1249 # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
1250 # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
1251 # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
1252 # down 3 old (not yet upgraded) nodes at the same time. This ensures that
1253 # there are always at least 4 nodes available.
1254 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size
1255 # of the node pool during the upgrade process.
1256 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during
1257 # the upgrade process. A node is considered available if its status is
1258 # Ready.
1259 },
1260 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs. If
1261 # service_account is specified, scopes should be empty.
1262 },
1263 &quot;autoprovisioningLocations&quot;: [ # The list of Google Compute Engine
1264 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
1265 # NodePool&#x27;s nodes can be created by NAP.
1266 &quot;A String&quot;,
1267 ],
Dan O'Mearadd494642020-05-01 07:42:23 -07001268 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001269 &quot;initialNodeCount&quot;: 42, # The number of nodes to create in this cluster. You must ensure that your
1270 # 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 -07001271 # is sufficient for this number of instances. You must also have available
1272 # firewall and routes quota.
1273 # For requests, this field should only be used in lieu of a
Bu Sun Kim65020912020-05-20 12:08:20 -07001274 # &quot;node_pool&quot; object, since this configuration (along with the
1275 # &quot;node_config&quot;) will be used to create a &quot;NodePool&quot; object with an
Dan O'Mearadd494642020-05-01 07:42:23 -07001276 # auto-generated name. Do not use this and a node_pool at the same time.
1277 #
1278 # This field is deprecated, use node_pool.initial_node_count instead.
Bu Sun Kim65020912020-05-20 12:08:20 -07001279 &quot;instanceGroupUrls&quot;: [ # Deprecated. Use node_pools.instance_group_urls.
1280 &quot;A String&quot;,
1281 ],
1282 &quot;privateClusterConfig&quot;: { # Configuration options for private clusters. # Configuration for private cluster.
1283 &quot;privateEndpoint&quot;: &quot;A String&quot;, # Output only. The internal IP address of this cluster&#x27;s master endpoint.
1284 &quot;enablePrivateEndpoint&quot;: True or False, # Whether the master&#x27;s internal IP address is used as the cluster endpoint.
1285 &quot;peeringName&quot;: &quot;A String&quot;, # Output only. The peering name in the customer VPC used by this cluster.
1286 &quot;masterGlobalAccessConfig&quot;: { # Configuration for controlling master global access settings. # Controls master global access settings.
1287 &quot;enabled&quot;: True or False, # Whenever master is accessible globally or not.
1288 },
1289 &quot;publicEndpoint&quot;: &quot;A String&quot;, # Output only. The external IP address of this cluster&#x27;s master endpoint.
1290 &quot;enablePrivateNodes&quot;: True or False, # Whether nodes have internal IP addresses only. If enabled, all nodes are
1291 # given only RFC 1918 private addresses and communicate with the master via
1292 # private networking.
1293 &quot;masterIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP range in CIDR notation to use for the hosted master network. This
1294 # range will be used for assigning internal IP addresses to the master or
1295 # set of masters, as well as the ILB VIP. This range must not overlap with
1296 # any other ranges in use within the cluster&#x27;s network.
1297 },
1298 &quot;shieldedNodes&quot;: { # Configuration of Shielded Nodes feature. # Shielded Nodes configuration.
1299 &quot;enabled&quot;: True or False, # Whether Shielded Nodes features are enabled on all nodes in this cluster.
1300 },
1301 &quot;verticalPodAutoscaling&quot;: { # VerticalPodAutoscaling contains global, per-cluster information # Cluster-level Vertical Pod Autoscaling configuration.
1302 # required by Vertical Pod Autoscaler to automatically adjust
1303 # the resources of pods controlled by it.
1304 &quot;enabled&quot;: True or False, # Enables vertical pod autoscaling.
1305 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001306 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001307 &quot;zone&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the Google Compute Engine
1308 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1309 # cluster resides. This field has been deprecated and replaced by the parent
1310 # field.
1311 &quot;parent&quot;: &quot;A String&quot;, # The parent (project and location) where the cluster will be created.
1312 # Specified in the format `projects/*/locations/*`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001313 }
1314
1315 x__xgafv: string, V1 error format.
1316 Allowed values
1317 1 - v1 error format
1318 2 - v2 error format
1319
1320Returns:
1321 An object of the form:
1322
1323 { # This operation resource represents operations that may have happened or are
1324 # happening on the cluster. All fields are output only.
Bu Sun Kim65020912020-05-20 12:08:20 -07001325 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001326 { # StatusCondition describes why a cluster or a node pool has a certain status
1327 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07001328 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
1329 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001330 },
1331 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001332 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001333 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1334 # or
1335 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1336 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07001337 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
1338 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1339 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
1340 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1341 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
1342 { # StatusCondition describes why a cluster or a node pool has a certain status
1343 # (e.g., ERROR or DEGRADED).
1344 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
1345 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
1346 },
1347 ],
1348 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
1349 &quot;stages&quot;: [ # Substages of an operation or a stage.
1350 # Object with schema name: OperationProgress
1351 ],
1352 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
1353 # Unset for single-stage operations.
1354 &quot;metrics&quot;: [ # Progress metric bundle, for example:
1355 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
1356 # {name: &quot;nodes total&quot;, int_value: 32}]
1357 # or
1358 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
1359 # {name: &quot;progress scale&quot;, double_value: 1.0}]
1360 { # Progress metric is (string, int|float|string) pair.
1361 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
1362 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
1363 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
1364 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
1365 },
1366 ],
1367 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
1368 # Unset for single-stage operations.
1369 },
1370 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
1371 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1372 # operation is taking place. This field is deprecated, use location instead.
1373 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
1374 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
1375 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
1376 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
1377 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
1378 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
1379 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001380 }</pre>
1381</div>
1382
1383<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -07001384 <code class="details" id="delete">delete(name, clusterId=None, projectId=None, zone=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001385 <pre>Deletes the cluster, including the Kubernetes endpoint and all worker
1386nodes.
1387
1388Firewalls and routes that were configured during cluster creation
1389are also deleted.
1390
1391Other Google Compute Engine resources that might be in use by the cluster,
Bu Sun Kim65020912020-05-20 12:08:20 -07001392such as load balancer resources, are not deleted if they weren&#x27;t present
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001393when the cluster was initially created.
1394
1395Args:
1396 name: string, The name (project, location, cluster) of the cluster to delete.
Bu Sun Kim65020912020-05-20 12:08:20 -07001397Specified in the format `projects/*/locations/*/clusters/*`. (required)
1398 clusterId: string, Required. Deprecated. The name of the cluster to delete.
1399This field has been deprecated and replaced by the name field.
Dan O'Mearadd494642020-05-01 07:42:23 -07001400 projectId: string, Required. Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001401number](https://support.google.com/cloud/answer/6158840).
1402This field has been deprecated and replaced by the name field.
Dan O'Mearadd494642020-05-01 07:42:23 -07001403 zone: string, Required. Deprecated. The name of the Google Compute Engine
1404[zone](https://cloud.google.com/compute/docs/zones#available) in which the
1405cluster resides. This field has been deprecated and replaced by the name
1406field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001407 x__xgafv: string, V1 error format.
1408 Allowed values
1409 1 - v1 error format
1410 2 - v2 error format
1411
1412Returns:
1413 An object of the form:
1414
1415 { # This operation resource represents operations that may have happened or are
1416 # happening on the cluster. All fields are output only.
Bu Sun Kim65020912020-05-20 12:08:20 -07001417 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001418 { # StatusCondition describes why a cluster or a node pool has a certain status
1419 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07001420 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
1421 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001422 },
1423 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001424 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001425 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1426 # or
1427 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1428 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07001429 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
1430 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1431 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
1432 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1433 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
1434 { # StatusCondition describes why a cluster or a node pool has a certain status
1435 # (e.g., ERROR or DEGRADED).
1436 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
1437 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
1438 },
1439 ],
1440 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
1441 &quot;stages&quot;: [ # Substages of an operation or a stage.
1442 # Object with schema name: OperationProgress
1443 ],
1444 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
1445 # Unset for single-stage operations.
1446 &quot;metrics&quot;: [ # Progress metric bundle, for example:
1447 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
1448 # {name: &quot;nodes total&quot;, int_value: 32}]
1449 # or
1450 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
1451 # {name: &quot;progress scale&quot;, double_value: 1.0}]
1452 { # Progress metric is (string, int|float|string) pair.
1453 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
1454 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
1455 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
1456 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
1457 },
1458 ],
1459 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
1460 # Unset for single-stage operations.
1461 },
1462 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
1463 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1464 # operation is taking place. This field is deprecated, use location instead.
1465 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
1466 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
1467 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
1468 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
1469 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
1470 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
1471 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001472 }</pre>
1473</div>
1474
1475<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -07001476 <code class="details" id="get">get(name, projectId=None, zone=None, clusterId=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001477 <pre>Gets the details for a specific cluster.
1478
1479Args:
1480 name: string, The name (project, location, cluster) of the cluster to retrieve.
Bu Sun Kim65020912020-05-20 12:08:20 -07001481Specified in the format `projects/*/locations/*/clusters/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001482 projectId: string, Required. Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001483number](https://support.google.com/cloud/answer/6158840).
1484This field has been deprecated and replaced by the name field.
Dan O'Mearadd494642020-05-01 07:42:23 -07001485 zone: string, Required. Deprecated. The name of the Google Compute Engine
1486[zone](https://cloud.google.com/compute/docs/zones#available) in which the
1487cluster resides. This field has been deprecated and replaced by the name
1488field.
Bu Sun Kim65020912020-05-20 12:08:20 -07001489 clusterId: string, Required. Deprecated. The name of the cluster to retrieve.
1490This field has been deprecated and replaced by the name field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001491 x__xgafv: string, V1 error format.
1492 Allowed values
1493 1 - v1 error format
1494 2 - v2 error format
1495
1496Returns:
1497 An object of the form:
1498
1499 { # A Google Kubernetes Engine cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -07001500 &quot;defaultMaxPodsConstraint&quot;: { # Constraints applied to pods. # The default constraint on the maximum number of pods that can be run
1501 # simultaneously on a node in the node pool of this cluster. Only honored
1502 # if cluster created with IP Alias support.
1503 &quot;maxPodsPerNode&quot;: &quot;A String&quot;, # Constraint enforced on the max num of pods per node.
1504 },
1505 &quot;network&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
1506 # [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
1507 # to which the cluster is connected. If left unspecified, the `default`
1508 # network will be used. On output this shows the network ID instead of the
1509 # name.
1510 &quot;labelFingerprint&quot;: &quot;A String&quot;, # The fingerprint of the set of labels for this cluster.
1511 &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 -07001512 # containers. This is provisioned from within the `container_ipv4_cidr`
1513 # range. This field will only be set when cluster is in route-based network
1514 # mode.
Bu Sun Kim65020912020-05-20 12:08:20 -07001515 &quot;masterAuthorizedNetworksConfig&quot;: { # Configuration options for the master authorized networks feature. Enabled # The configuration options for master authorized networks feature.
1516 # master authorized networks will disallow all external traffic to access
1517 # Kubernetes master through HTTPS except traffic from the given CIDR blocks,
1518 # Google Compute Engine Public IPs and Google Prod IPs.
1519 &quot;cidrBlocks&quot;: [ # cidr_blocks define up to 10 external networks that could access
1520 # Kubernetes master through HTTPS.
1521 { # CidrBlock contains an optional name and one CIDR block.
1522 &quot;displayName&quot;: &quot;A String&quot;, # display_name is an optional field for users to identify CIDR blocks.
1523 &quot;cidrBlock&quot;: &quot;A String&quot;, # cidr_block must be specified in CIDR notation.
1524 },
1525 ],
1526 &quot;enabled&quot;: True or False, # Whether or not master authorized networks is enabled.
1527 },
1528 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output only] Additional information about the current status of this
1529 # cluster, if available.
1530 &quot;masterAuth&quot;: { # The authentication information for accessing the master endpoint. # The authentication information for accessing the master endpoint.
1531 # If unspecified, the defaults are used:
1532 # For clusters before v1.12, if master_auth is unspecified, `username` will
1533 # be set to &quot;admin&quot;, a random password will be generated, and a client
1534 # certificate will be issued.
1535 # Authentication can be done using HTTP basic auth or using client
1536 # certificates.
1537 &quot;password&quot;: &quot;A String&quot;, # The password to use for HTTP basic authentication to the master endpoint.
1538 # Because the master endpoint is open to the Internet, you should create a
1539 # strong password. If a password is provided for cluster creation, username
1540 # must be non-empty.
1541 &quot;clientCertificateConfig&quot;: { # Configuration for client certificates on the cluster. # Configuration for client certificate authentication on the cluster. For
1542 # clusters before v1.12, if no configuration is specified, a client
1543 # certificate is issued.
1544 &quot;issueClientCertificate&quot;: True or False, # Issue a client certificate.
1545 },
1546 &quot;clientKey&quot;: &quot;A String&quot;, # [Output only] Base64-encoded private key used by clients to authenticate
1547 # to the cluster endpoint.
1548 &quot;clusterCaCertificate&quot;: &quot;A String&quot;,
1549 &quot;clientCertificate&quot;: &quot;A String&quot;, # [Output only] Base64-encoded public certificate used by clients to
1550 # authenticate to the cluster endpoint.
1551 &quot;username&quot;: &quot;A String&quot;, # The username to use for HTTP basic authentication to the master endpoint.
1552 # For clusters v1.6.0 and later, basic authentication can be disabled by
1553 # leaving username unspecified (or setting it to the empty string).
1554 },
1555 &quot;authenticatorGroupsConfig&quot;: { # Configuration for returning group information from authenticators. # Configuration controlling RBAC group membership information.
1556 &quot;enabled&quot;: True or False, # Whether this cluster should return group membership lookups
1557 # during authentication using a group of security groups.
1558 &quot;securityGroup&quot;: &quot;A String&quot;, # The name of the security group-of-groups to be used. Only relevant
1559 # if enabled = true.
1560 },
1561 &quot;masterIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP prefix in CIDR notation to use for the hosted master network.
1562 # This prefix will be used for assigning private IP addresses to the
1563 # master or set of masters, as well as the ILB VIP.
1564 # This field is deprecated, use
1565 # private_cluster_config.master_ipv4_cidr_block instead.
1566 &quot;clusterTelemetry&quot;: { # Telemetry integration for the cluster. # Telemetry integration for the cluster.
1567 &quot;type&quot;: &quot;A String&quot;, # Type of the integration.
1568 },
1569 &quot;currentMasterVersion&quot;: &quot;A String&quot;, # [Output only] The current software version of the master endpoint.
1570 &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.
1571 # cluster, enabling additional functionality.
1572 &quot;networkPolicyConfig&quot;: { # Configuration for NetworkPolicy. This only tracks whether the addon # Configuration for NetworkPolicy. This only tracks whether the addon
1573 # is enabled or not on the Master, it does not track whether network policy
1574 # is enabled for the nodes.
1575 # is enabled or not on the Master, it does not track whether network policy
1576 # is enabled for the nodes.
1577 &quot;disabled&quot;: True or False, # Whether NetworkPolicy is enabled for this cluster.
1578 },
1579 &quot;configConnectorConfig&quot;: { # Configuration options for the Config Connector add-on. # Configuration for the ConfigConnector add-on, a Kubernetes
1580 # extension to manage hosted GCP services through the Kubernetes API
1581 &quot;enabled&quot;: True or False, # Whether Cloud Connector is enabled for this cluster.
1582 },
1583 &quot;cloudRunConfig&quot;: { # Configuration options for the Cloud Run feature. # Configuration for the Cloud Run addon. The `IstioConfig` addon must be
1584 # enabled in order to enable Cloud Run addon. This option can only be enabled
1585 # at cluster creation time.
1586 &quot;disabled&quot;: True or False, # Whether Cloud Run addon is enabled for this cluster.
1587 },
1588 &quot;horizontalPodAutoscaling&quot;: { # Configuration options for the horizontal pod autoscaling feature, which # Configuration for the horizontal pod autoscaling feature, which
1589 # increases or decreases the number of replica pods a replication controller
1590 # has based on the resource usage of the existing pods.
1591 # increases or decreases the number of replica pods a replication controller
1592 # has based on the resource usage of the existing pods.
1593 &quot;disabled&quot;: True or False, # Whether the Horizontal Pod Autoscaling feature is enabled in the cluster.
1594 # When enabled, it ensures that metrics are collected into Stackdriver
1595 # Monitoring.
1596 },
1597 &quot;httpLoadBalancing&quot;: { # Configuration options for the HTTP (L7) load balancing controller addon, # Configuration for the HTTP (L7) load balancing controller addon, which
1598 # makes it easy to set up HTTP load balancers for services in a cluster.
1599 # which makes it easy to set up HTTP load balancers for services in a cluster.
1600 &quot;disabled&quot;: True or False, # Whether the HTTP Load Balancing controller is enabled in the cluster.
1601 # When enabled, it runs a small pod in the cluster that manages the load
1602 # balancers.
1603 },
1604 &quot;kubernetesDashboard&quot;: { # Configuration for the Kubernetes Dashboard. # Configuration for the Kubernetes Dashboard.
1605 # This addon is deprecated, and will be disabled in 1.15. It is recommended
1606 # to use the Cloud Console to manage and monitor your Kubernetes clusters,
1607 # workloads and applications. For more information, see:
1608 # https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
1609 &quot;disabled&quot;: True or False, # Whether the Kubernetes Dashboard is enabled for this cluster.
1610 },
1611 &quot;dnsCacheConfig&quot;: { # Configuration for NodeLocal DNSCache # Configuration for NodeLocalDNS, a dns cache running on cluster nodes
1612 &quot;enabled&quot;: True or False, # Whether NodeLocal DNSCache is enabled for this cluster.
1613 },
1614 &quot;kalmConfig&quot;: { # Configuration options for the KALM addon. # Configuration for the KALM addon, which manages the lifecycle of k8s
1615 # applications.
1616 &quot;enabled&quot;: True or False, # Whether KALM is enabled for this cluster.
1617 },
1618 &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.
1619 # enabled at cluster creation time.
1620 &quot;enabled&quot;: True or False, # Whether the Compute Engine PD CSI driver is enabled for this cluster.
1621 },
1622 &quot;istioConfig&quot;: { # Configuration options for Istio addon. # Configuration for Istio, an open platform to connect, manage, and secure
1623 # microservices.
1624 &quot;disabled&quot;: True or False, # Whether Istio is enabled for this cluster.
1625 &quot;auth&quot;: &quot;A String&quot;, # The specified Istio auth mode, either none, or mutual TLS.
1626 },
1627 },
1628 &quot;podSecurityPolicyConfig&quot;: { # Configuration for the PodSecurityPolicy feature. # Configuration for the PodSecurityPolicy feature.
1629 &quot;enabled&quot;: True or False, # Enable the PodSecurityPolicy controller for this cluster. If enabled, pods
1630 # must be valid under a PodSecurityPolicy to be created.
1631 },
1632 &quot;currentNodeVersion&quot;: &quot;A String&quot;, # [Output only] Deprecated, use
1633 # [NodePool.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1beta1/projects.locations.clusters.nodePools)
1634 # instead. The current version of the node software components.
1635 # If they are currently at multiple versions because they&#x27;re in the process
1636 # of being upgraded, this reflects the minimum version of all nodes.
1637 &quot;subnetwork&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
1638 # [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which
1639 # the cluster is connected. On output this shows the subnetwork ID instead of
1640 # the name.
1641 &quot;maintenancePolicy&quot;: { # MaintenancePolicy defines the maintenance policy to be used for the cluster. # Configure the maintenance policy for this cluster.
1642 &quot;resourceVersion&quot;: &quot;A String&quot;, # A hash identifying the version of this policy, so that updates to fields of
1643 # the policy won&#x27;t accidentally undo intermediate changes (and so that users
1644 # of the API unaware of some fields won&#x27;t accidentally remove other fields).
1645 # Make a &lt;code&gt;get()&lt;/code&gt; request to the cluster to get the current
1646 # resource version and include it with requests to set the policy.
1647 &quot;window&quot;: { # MaintenanceWindow defines the maintenance window to be used for the cluster. # Specifies the maintenance window in which maintenance may be performed.
1648 &quot;dailyMaintenanceWindow&quot;: { # Time window specified for daily maintenance operations. # DailyMaintenanceWindow specifies a daily maintenance operation window.
1649 &quot;duration&quot;: &quot;A String&quot;, # [Output only] Duration of the time window, automatically chosen to be
1650 # smallest possible in the given scenario.
1651 &quot;startTime&quot;: &quot;A String&quot;, # Time within the maintenance window to start the maintenance operations.
1652 # It must be in format &quot;HH:MM&quot;, where HH : [00-23] and MM : [00-59] GMT.
1653 },
1654 &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 -07001655 # maintenance to occur. The time windows may be overlapping. If no
1656 # maintenance windows are set, maintenance can occur at any time.
Bu Sun Kim65020912020-05-20 12:08:20 -07001657 &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 -07001658 # this window reccurs. They go on for the span of time between the start and
1659 # end time.
1660 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001661 # For example, to have something repeat every weekday, you&#x27;d use:
Dan O'Mearadd494642020-05-01 07:42:23 -07001662 # &lt;code&gt;FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR&lt;/code&gt;
1663 # To repeat some window daily (equivalent to the DailyMaintenanceWindow):
1664 # &lt;code&gt;FREQ=DAILY&lt;/code&gt;
1665 # For the first weekend of every month:
1666 # &lt;code&gt;FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU&lt;/code&gt;
1667 # This specifies how frequently the window starts. Eg, if you wanted to have
Bu Sun Kim65020912020-05-20 12:08:20 -07001668 # a 9-5 UTC-4 window every weekday, you&#x27;d use something like:
Dan O'Mearadd494642020-05-01 07:42:23 -07001669 # &lt;code&gt;
1670 # start time = 2019-01-01T09:00:00-0400
1671 # end time = 2019-01-01T17:00:00-0400
1672 # recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
1673 # &lt;/code&gt;
1674 # Windows can span multiple days. Eg, to make the window encompass every
1675 # weekend from midnight Saturday till the last minute of Sunday UTC:
1676 # &lt;code&gt;
1677 # start time = 2019-01-05T00:00:00Z
1678 # end time = 2019-01-07T23:59:00Z
1679 # recurrence = FREQ=WEEKLY;BYDAY=SA
1680 # &lt;/code&gt;
Bu Sun Kim65020912020-05-20 12:08:20 -07001681 # Note the start and end time&#x27;s specific dates are largely arbitrary except
Dan O'Mearadd494642020-05-01 07:42:23 -07001682 # to specify duration of the window and when it first starts.
1683 # The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.
Bu Sun Kim65020912020-05-20 12:08:20 -07001684 &quot;window&quot;: { # Represents an arbitrary window of time. # The window of the first recurrence.
1685 &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 -07001686 # start time.
Bu Sun Kim65020912020-05-20 12:08:20 -07001687 &quot;startTime&quot;: &quot;A String&quot;, # The time that the window first starts.
Dan O'Mearadd494642020-05-01 07:42:23 -07001688 },
1689 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001690 &quot;maintenanceExclusions&quot;: { # Exceptions to maintenance window. Non-emergency maintenance should not
Dan O'Mearadd494642020-05-01 07:42:23 -07001691 # occur in these windows.
Bu Sun Kim65020912020-05-20 12:08:20 -07001692 &quot;a_key&quot;: { # Represents an arbitrary window of time.
1693 &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 -07001694 # start time.
Bu Sun Kim65020912020-05-20 12:08:20 -07001695 &quot;startTime&quot;: &quot;A String&quot;, # The time that the window first starts.
Dan O'Mearadd494642020-05-01 07:42:23 -07001696 },
1697 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001698 },
1699 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001700 &quot;resourceLabels&quot;: { # The resource labels for the cluster to use to annotate any related
1701 # Google Compute Engine resources.
1702 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001703 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001704 &quot;initialClusterVersion&quot;: &quot;A String&quot;, # The initial Kubernetes version for this cluster. Valid versions are those
1705 # found in validMasterVersions returned by getServerConfig. The version can
1706 # be upgraded over time; such upgrades are reflected in
1707 # currentMasterVersion and currentNodeVersion.
Dan O'Mearadd494642020-05-01 07:42:23 -07001708 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001709 # Users may specify either explicit versions offered by
1710 # Kubernetes Engine or version aliases, which have the following behavior:
Dan O'Mearadd494642020-05-01 07:42:23 -07001711 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001712 # - &quot;latest&quot;: picks the highest valid Kubernetes version
1713 # - &quot;1.X&quot;: picks the highest valid patch+gke.N patch in the 1.X version
1714 # - &quot;1.X.Y&quot;: picks the highest valid gke.N patch in the 1.X.Y version
1715 # - &quot;1.X.Y-gke.N&quot;: picks an explicit Kubernetes version
1716 # - &quot;&quot;,&quot;-&quot;: picks the default Kubernetes version
1717 &quot;ipAllocationPolicy&quot;: { # Configuration for controlling how IPs are allocated in the cluster. # Configuration for cluster IP allocation.
1718 &quot;useRoutes&quot;: True or False, # Whether routes will be used for pod IPs in the cluster.
1719 # This is used in conjunction with use_ip_aliases. It cannot be true if
1720 # use_ip_aliases is true. If both use_ip_aliases and use_routes are false,
1721 # then the server picks the default IP allocation mode
1722 &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 -07001723 # will be automatically chosen with the default size.
1724 #
1725 # This field is only applicable when `use_ip_aliases` is true.
1726 #
1727 # Set to blank to have a range chosen with the default size.
1728 #
1729 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
1730 # netmask.
1731 #
1732 # Set to a
1733 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
1734 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
1735 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
1736 # to use.
Bu Sun Kim65020912020-05-20 12:08:20 -07001737 &quot;allowRouteOverlap&quot;: True or False, # If true, allow allocation of cluster CIDR ranges that overlap with certain
1738 # kinds of network routes. By default we do not allow cluster CIDR ranges to
1739 # intersect with any user declared routes. With allow_route_overlap == true,
1740 # we allow overlapping with CIDR ranges that are larger than the cluster CIDR
1741 # range.
1742 #
1743 # If this field is set to true, then cluster and services CIDRs must be
1744 # fully-specified (e.g. `10.96.0.0/14`, but not `/14`), which means:
1745 # 1) When `use_ip_aliases` is true, `cluster_ipv4_cidr_block` and
1746 # `services_ipv4_cidr_block` must be fully-specified.
1747 # 2) When `use_ip_aliases` is false, `cluster.cluster_ipv4_cidr` muse be
1748 # fully-specified.
1749 &quot;nodeIpv4Cidr&quot;: &quot;A String&quot;, # This field is deprecated, use node_ipv4_cidr_block.
1750 &quot;clusterIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP address range for the cluster pod IPs. If this field is set, then
1751 # `cluster.cluster_ipv4_cidr` must be left blank.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001752 #
1753 # This field is only applicable when `use_ip_aliases` is true.
Bu Sun Kim65020912020-05-20 12:08:20 -07001754 #
1755 # Set to blank to have a range chosen with the default size.
1756 #
1757 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
1758 # netmask.
1759 #
1760 # Set to a
1761 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
1762 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
1763 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
1764 # to use.
1765 &quot;clusterSecondaryRangeName&quot;: &quot;A String&quot;, # The name of the secondary range to be used for the cluster CIDR
1766 # block. The secondary range will be used for pod IP
1767 # addresses. This must be an existing secondary range associated
1768 # with the cluster subnetwork.
1769 #
1770 # This field is only applicable with use_ip_aliases and
1771 # create_subnetwork is false.
1772 &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 -07001773 #
1774 # This is applicable only if `create_subnetwork` is true.
1775 #
1776 # Set to blank to have a range chosen with the default size.
1777 #
1778 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
1779 # netmask.
1780 #
1781 # Set to a
1782 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
1783 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
1784 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
1785 # to use.
Bu Sun Kim65020912020-05-20 12:08:20 -07001786 &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 -07001787 # range will be automatically chosen with the default size.
1788 #
1789 # This field is only applicable when `use_ip_aliases` is true.
1790 #
1791 # If unspecified, the range will use the default size.
1792 #
1793 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
1794 # netmask.
1795 #
1796 # Set to a
1797 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
1798 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
1799 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
1800 # to use.
Dan O'Mearadd494642020-05-01 07:42:23 -07001801 # This field is deprecated, use cluster.tpu_config.ipv4_cidr_block instead.
Bu Sun Kim65020912020-05-20 12:08:20 -07001802 &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 -07001803 # CIDR block. The secondary range will be used for service
1804 # ClusterIPs. This must be an existing secondary range associated
1805 # with the cluster subnetwork.
1806 #
1807 # This field is only applicable with use_ip_aliases and
1808 # create_subnetwork is false.
Bu Sun Kim65020912020-05-20 12:08:20 -07001809 &quot;useIpAliases&quot;: True or False, # Whether alias IPs will be used for pod IPs in the cluster.
1810 # This is used in conjunction with use_routes. It cannot
1811 # be true if use_routes is true. If both use_ip_aliases and use_routes are
1812 # false, then the server picks the default IP allocation mode
1813 &quot;createSubnetwork&quot;: True or False, # Whether a new subnetwork will be created automatically for the cluster.
1814 #
1815 # This field is only applicable when `use_ip_aliases` is true.
1816 &quot;subnetworkName&quot;: &quot;A String&quot;, # A custom subnetwork name to be used if `create_subnetwork` is true. If
1817 # this field is empty, then an automatic name will be chosen for the new
1818 # subnetwork.
1819 &quot;clusterIpv4Cidr&quot;: &quot;A String&quot;, # This field is deprecated, use cluster_ipv4_cidr_block.
1820 &quot;servicesIpv4Cidr&quot;: &quot;A String&quot;, # This field is deprecated, use services_ipv4_cidr_block.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001821 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001822 &quot;legacyAbac&quot;: { # Configuration for the legacy Attribute Based Access Control authorization # Configuration for the legacy ABAC authorization mode.
1823 # mode.
1824 &quot;enabled&quot;: True or False, # Whether the ABAC authorizer is enabled for this cluster. When enabled,
1825 # identities in the system, including service accounts, nodes, and
1826 # controllers, will have statically granted permissions beyond those
1827 # provided by the RBAC configuration or IAM.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001828 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001829 &quot;enableTpu&quot;: True or False, # Enable the ability to use Cloud TPUs in this cluster.
1830 # This field is deprecated, use tpu_config.enabled instead.
1831 &quot;resourceUsageExportConfig&quot;: { # Configuration for exporting cluster resource usages. # Configuration for exporting resource usages. Resource usage export is
1832 # disabled when this config unspecified.
1833 &quot;enableNetworkEgressMetering&quot;: True or False, # Whether to enable network egress metering for this cluster. If enabled, a
1834 # daemonset will be created in the cluster to meter network egress traffic.
1835 &quot;consumptionMeteringConfig&quot;: { # Parameters for controlling consumption metering. # Configuration to enable resource consumption metering.
1836 &quot;enabled&quot;: True or False, # Whether to enable consumption metering for this cluster. If enabled, a
1837 # second BigQuery table will be created to hold resource consumption
1838 # records.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001839 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001840 &quot;bigqueryDestination&quot;: { # Parameters for using BigQuery as the destination of resource usage export. # Configuration to use BigQuery as usage export destination.
1841 &quot;datasetId&quot;: &quot;A String&quot;, # The ID of a BigQuery Dataset.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001842 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001843 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001844 &quot;locations&quot;: [ # The list of Google Compute Engine
1845 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
1846 # cluster&#x27;s nodes should be located.
1847 &quot;A String&quot;,
1848 ],
1849 &quot;nodePools&quot;: [ # The node pools associated with this cluster.
1850 # 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 -07001851 # specified.
Bu Sun Kim65020912020-05-20 12:08:20 -07001852 { # NodePool contains the name and configuration for a cluster&#x27;s node pool.
1853 # 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 -07001854 # specification, under the control of the cluster master. They may have a set
1855 # of Kubernetes labels applied to them, which may be used to reference them
1856 # during pod scheduling. They may also be resized up or down, to accommodate
1857 # the workload.
Bu Sun Kim65020912020-05-20 12:08:20 -07001858 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output only] Additional information about the current status of this
1859 # node pool instance, if available.
1860 &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 -07001861 # only if a valid configuration is present.
1862 # adjust the size of the node pool to the current cluster usage.
Bu Sun Kim65020912020-05-20 12:08:20 -07001863 &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 -07001864 # max_node_count.
Bu Sun Kim65020912020-05-20 12:08:20 -07001865 &quot;autoprovisioned&quot;: True or False, # Can this node pool be deleted automatically.
1866 &quot;enabled&quot;: True or False, # Is autoscaling enabled for this node pool.
1867 &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 -07001868 # has to enough quota to scale up the cluster.
1869 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001870 &quot;initialNodeCount&quot;: 42, # The initial node count for the pool. You must ensure that your
1871 # Compute Engine &lt;a href=&quot;/compute/docs/resource-quotas&quot;&gt;resource quota&lt;/a&gt;
1872 # is sufficient for this number of instances. You must also have available
1873 # firewall and routes quota.
1874 &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 -07001875 # disruption caused by an upgrade.
1876 #
1877 # maxUnavailable controls the number of nodes that can be simultaneously
1878 # unavailable.
1879 #
1880 # maxSurge controls the number of additional nodes that can be added to the
1881 # node pool temporarily for the time of the upgrade to increase the number of
1882 # available nodes.
1883 #
1884 # (maxUnavailable + maxSurge) determines the level of parallelism (how many
1885 # nodes are being upgraded at the same time).
1886 #
1887 # Note: upgrades inevitably introduce some disruption since workloads need to
1888 # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
1889 # this holds true. (Disruption stays within the limits of
1890 # PodDisruptionBudget, if it is configured.)
1891 #
1892 # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
1893 # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
1894 # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
1895 # down 3 old (not yet upgraded) nodes at the same time. This ensures that
1896 # there are always at least 4 nodes available.
Bu Sun Kim65020912020-05-20 12:08:20 -07001897 &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 -07001898 # of the node pool during the upgrade process.
Bu Sun Kim65020912020-05-20 12:08:20 -07001899 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during
Dan O'Mearadd494642020-05-01 07:42:23 -07001900 # the upgrade process. A node is considered available if its status is
1901 # Ready.
1902 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001903 &quot;selfLink&quot;: &quot;A String&quot;, # [Output only] Server-defined URL for the resource.
1904 &quot;locations&quot;: [ # The list of Google Compute Engine
1905 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
1906 # NodePool&#x27;s nodes should be located.
1907 &quot;A String&quot;,
1908 ],
1909 &quot;instanceGroupUrls&quot;: [ # [Output only] The resource URLs of the [managed instance
Dan O'Mearadd494642020-05-01 07:42:23 -07001910 # groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
1911 # associated with this node pool.
Bu Sun Kim65020912020-05-20 12:08:20 -07001912 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07001913 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001914 &quot;version&quot;: &quot;A String&quot;, # The version of the Kubernetes of this node.
1915 &quot;podIpv4CidrSize&quot;: 42, # [Output only] The pod CIDR block size per node in this node pool.
1916 &quot;conditions&quot;: [ # Which conditions caused the current node pool state.
1917 { # StatusCondition describes why a cluster or a node pool has a certain status
1918 # (e.g., ERROR or DEGRADED).
1919 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
1920 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Dan O'Mearadd494642020-05-01 07:42:23 -07001921 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001922 ],
1923 &quot;status&quot;: &quot;A String&quot;, # [Output only] The status of the nodes in this pool instance.
1924 &quot;config&quot;: { # Parameters that describe the nodes in a cluster. # The node configuration of the pool.
1925 &quot;diskSizeGb&quot;: 42, # Size of the disk attached to each node, specified in GB.
1926 # The smallest allowed disk size is 10GB.
1927 #
1928 # If unspecified, the default disk size is 100GB.
1929 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to # The workload metadata configuration for this node.
1930 # workloads on the node pool.
1931 &quot;nodeMetadata&quot;: &quot;A String&quot;, # NodeMetadata is the configuration for how to expose metadata to the
1932 # workloads running on the node.
1933 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running
1934 # on the node pool.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001935 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001936 &quot;accelerators&quot;: [ # A list of hardware accelerators to be attached to each node.
1937 # See https://cloud.google.com/compute/docs/gpus for more information about
1938 # support for GPUs.
1939 { # AcceleratorConfig represents a Hardware Accelerator request.
1940 &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of the accelerator cards exposed to an instance.
1941 &quot;acceleratorType&quot;: &quot;A String&quot;, # The accelerator type resource name. List of supported accelerators
1942 # [here](https://cloud.google.com/compute/docs/gpus)
1943 },
1944 ],
1945 &quot;machineType&quot;: &quot;A String&quot;, # The name of a Google Compute Engine [machine
Dan O'Mearadd494642020-05-01 07:42:23 -07001946 # type](https://cloud.google.com/compute/docs/machine-types) (e.g.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001947 # `n1-standard-1`).
1948 #
1949 # If unspecified, the default machine type is
1950 # `n1-standard-1`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001951 &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;)
1952 #
1953 # If unspecified, the default disk type is &#x27;pd-standard&#x27;
1954 &quot;bootDiskKmsKey&quot;: &quot;A String&quot;, #
1955 # The Customer Managed Encryption Key used to encrypt the boot disk attached
1956 # to each node in the node pool. This should be of the form
1957 # projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
1958 # For more information about protecting resources with Cloud KMS Keys please
1959 # see:
1960 # https://cloud.google.com/compute/docs/disks/customer-managed-encryption
1961 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
1962 &quot;enableSecureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled.
1963 #
1964 # Secure Boot helps ensure that the system only runs authentic software by
1965 # verifying the digital signature of all boot components, and halting the
1966 # boot process if signature verification fails.
1967 &quot;enableIntegrityMonitoring&quot;: True or False, # Defines whether the instance has integrity monitoring enabled.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001968 #
1969 # Enables monitoring and attestation of the boot integrity of the instance.
1970 # The attestation is performed against the integrity policy baseline. This
1971 # baseline is initially derived from the implicitly trusted boot image when
1972 # the instance is created.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001973 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001974 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used by this instance. The instance may be
1975 # scheduled on the specified or newer CPU platform. Applicable values are the
1976 # friendly names of CPU platforms, such as
1977 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Haswell&amp;quot;&lt;/code&gt; or
1978 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Sandy Bridge&amp;quot;&lt;/code&gt;. For more
1979 # information, read [how to specify min CPU
1980 # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
1981 &quot;preemptible&quot;: True or False, # Whether the nodes are created as preemptible VM instances. See:
1982 # https://cloud.google.com/compute/docs/instances/preemptible for more
1983 # inforamtion about preemptible VM instances.
1984 &quot;localSsdCount&quot;: 42, # The number of local SSD disks to be attached to the node.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001985 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001986 # The limit for this value is dependent upon the maximum number of
1987 # disks available on a machine per zone. See:
1988 # https://cloud.google.com/compute/docs/disks/local-ssd
1989 # for more information.
1990 &quot;sandboxConfig&quot;: { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node.
1991 &quot;type&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node.
1992 &quot;sandboxType&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node (e.g. &#x27;gvisor&#x27;)
1993 },
1994 &quot;metadata&quot;: { # The metadata key/value pairs assigned to instances in the cluster.
1995 #
1996 # Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
1997 # in length. These are reflected as part of a URL in the metadata server.
1998 # Additionally, to avoid ambiguity, keys must not conflict with any other
1999 # metadata keys for the project or be one of the reserved keys:
2000 # &quot;cluster-location&quot;
2001 # &quot;cluster-name&quot;
2002 # &quot;cluster-uid&quot;
2003 # &quot;configure-sh&quot;
2004 # &quot;containerd-configure-sh&quot;
2005 # &quot;enable-oslogin&quot;
2006 # &quot;gci-ensure-gke-docker&quot;
2007 # &quot;gci-metrics-enabled&quot;
2008 # &quot;gci-update-strategy&quot;
2009 # &quot;instance-template&quot;
2010 # &quot;kube-env&quot;
2011 # &quot;startup-script&quot;
2012 # &quot;user-data&quot;
2013 # &quot;disable-address-manager&quot;
2014 # &quot;windows-startup-script-ps1&quot;
2015 # &quot;common-psm1&quot;
2016 # &quot;k8s-node-setup-psm1&quot;
2017 # &quot;install-ssh-psm1&quot;
2018 # &quot;user-profile-psm1&quot;
2019 # &quot;serial-port-logging-enable&quot;
2020 # Values are free-form strings, and only have meaning as interpreted by
2021 # the image running in the instance. The only restriction placed on them is
2022 # that each value&#x27;s size must be less than or equal to 32 KB.
2023 #
2024 # The total size of all keys and values must be less than 512 KB.
2025 &quot;a_key&quot;: &quot;A String&quot;,
2026 },
2027 &quot;reservationAffinity&quot;: { # [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) # The optional reservation affinity. Setting this field will apply
2028 # the specified [Zonal Compute
2029 # Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
2030 # to this node pool.
2031 # is the configuration of desired reservation which instances could take
2032 # capacity from.
2033 &quot;key&quot;: &quot;A String&quot;, # Corresponds to the label key of a reservation resource. To target a
2034 # SPECIFIC_RESERVATION by name, specify &quot;googleapis.com/reservation-name&quot; as
2035 # the key and specify the name of your reservation as its value.
2036 &quot;values&quot;: [ # Corresponds to the label value(s) of reservation resource(s).
2037 &quot;A String&quot;,
2038 ],
2039 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Corresponds to the type of reservation consumption.
2040 },
2041 &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 -07002042 # valid sources or targets for network firewalls and are specified by
2043 # the client during cluster or node pool creation. Each tag within the list
2044 # must comply with RFC1035.
Bu Sun Kim65020912020-05-20 12:08:20 -07002045 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002046 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002047 &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 -07002048 # Specify the email address of the Service Account; otherwise, if no Service
Bu Sun Kim65020912020-05-20 12:08:20 -07002049 # Account is specified, the &quot;default&quot; service account is used.
2050 &quot;imageType&quot;: &quot;A String&quot;, # The image type to use for this node. Note that for a given image type,
2051 # the latest version of it will be used.
2052 &quot;oauthScopes&quot;: [ # The set of Google API scopes to be made available on all of the
2053 # node VMs under the &quot;default&quot; service account.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002054 #
2055 # The following scopes are recommended, but not required, and by default are
2056 # not included:
2057 #
2058 # * `https://www.googleapis.com/auth/compute` is required for mounting
2059 # persistent storage on your nodes.
2060 # * `https://www.googleapis.com/auth/devstorage.read_only` is required for
2061 # communicating with **gcr.io**
Dan O'Mearadd494642020-05-01 07:42:23 -07002062 # (the [Google Container
2063 # Registry](https://cloud.google.com/container-registry/)).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002064 #
2065 # If unspecified, no scopes are added, unless Cloud Logging or Cloud
2066 # Monitoring are enabled, in which case their required scopes will be added.
Bu Sun Kim65020912020-05-20 12:08:20 -07002067 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002068 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002069 &quot;taints&quot;: [ # List of kubernetes taints to be applied to each node.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002070 #
2071 # For more information, including usage and the valid values, see:
2072 # https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
2073 { # Kubernetes taint is comprised of three fields: key, value, and effect. Effect
2074 # can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute.
2075 #
Bu Sun Kim65020912020-05-20 12:08:20 -07002076 # See
2077 # [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration)
2078 # for more information, including usage and the valid values.
2079 &quot;key&quot;: &quot;A String&quot;, # Key for taint.
2080 &quot;value&quot;: &quot;A String&quot;, # Value for taint.
2081 &quot;effect&quot;: &quot;A String&quot;, # Effect for taint.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002082 },
2083 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002084 &quot;labels&quot;: { # The map of Kubernetes labels (key/value pairs) to be applied to each node.
2085 # These will added in addition to any default label(s) that
2086 # Kubernetes may apply to the node.
2087 # In case of conflict in label keys, the applied set may differ depending on
2088 # the Kubernetes version -- it&#x27;s best to assume the behavior is undefined
2089 # and conflicts should be avoided.
2090 # For more information, including usage and the valid values, see:
2091 # https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
2092 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002093 },
2094 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002095 &quot;name&quot;: &quot;A String&quot;, # The name of the node pool.
2096 &quot;maxPodsConstraint&quot;: { # Constraints applied to pods. # The constraint on the maximum number of pods that can be run
2097 # simultaneously on a node in the node pool.
2098 &quot;maxPodsPerNode&quot;: &quot;A String&quot;, # Constraint enforced on the max num of pods per node.
2099 },
2100 &quot;management&quot;: { # NodeManagement defines the set of node management services turned on for the # NodeManagement configuration for this NodePool.
2101 # node pool.
2102 &quot;autoUpgrade&quot;: True or False, # Whether the nodes will be automatically upgraded.
2103 &quot;autoRepair&quot;: True or False, # Whether the nodes will be automatically repaired.
2104 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool.
2105 # the Auto Upgrades will proceed.
2106 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
2107 # with the description of the upgrade.
2108 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
2109 # with the approximate start time for the upgrades, in
2110 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
2111 },
2112 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002113 },
2114 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002115 &quot;selfLink&quot;: &quot;A String&quot;, # [Output only] Server-defined URL for the resource.
2116 &quot;servicesIpv4Cidr&quot;: &quot;A String&quot;, # [Output only] The IP address range of the Kubernetes services in
2117 # this cluster, in
2118 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
2119 # notation (e.g. `1.2.3.4/29`). Service addresses are
2120 # typically put in the last `/16` from the container CIDR.
2121 &quot;networkPolicy&quot;: { # Configuration options for the NetworkPolicy feature. # Configuration options for the NetworkPolicy feature.
2122 # https://kubernetes.io/docs/concepts/services-networking/networkpolicies/
2123 &quot;enabled&quot;: True or False, # Whether network policy is enabled on the cluster.
2124 &quot;provider&quot;: &quot;A String&quot;, # The selected network policy provider.
2125 },
2126 &quot;releaseChannel&quot;: { # ReleaseChannel indicates which release channel a cluster is # Release channel configuration.
2127 # subscribed to. Release channels are arranged in order of risk and
2128 # frequency of updates.
2129 #
2130 # When a cluster is subscribed to a release channel, Google maintains
2131 # both the master version and the node version. Node auto-upgrade
2132 # defaults to true and cannot be disabled. Updates to version related
2133 # fields (e.g. current_master_version) return an error.
2134 &quot;channel&quot;: &quot;A String&quot;, # channel specifies which release channel the cluster is subscribed to.
2135 },
2136 &quot;enableKubernetesAlpha&quot;: True or False, # Kubernetes alpha features are enabled on this cluster. This includes alpha
2137 # API groups (e.g. v1beta1) and features that may not be production ready in
2138 # the kubernetes version of the master and nodes.
2139 # The cluster has no SLA for uptime and master/node upgrades are disabled.
2140 # Alpha enabled clusters are automatically deleted thirty days after
2141 # creation.
2142 &quot;description&quot;: &quot;A String&quot;, # An optional description of this cluster.
2143 &quot;conditions&quot;: [ # Which conditions caused the current cluster state.
2144 { # StatusCondition describes why a cluster or a node pool has a certain status
2145 # (e.g., ERROR or DEGRADED).
2146 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
2147 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
2148 },
2149 ],
2150 &quot;privateCluster&quot;: True or False, # If this is a private cluster setup. Private clusters are clusters that, by
2151 # default have no external IP addresses on the nodes and where nodes and the
2152 # master communicate over private IP addresses.
2153 # This field is deprecated, use private_cluster_config.enable_private_nodes
2154 # instead.
2155 &quot;currentNodeCount&quot;: 42, # [Output only] The number of nodes currently in the cluster. Deprecated.
2156 # Call Kubernetes API directly to retrieve node information.
2157 &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 -07002158 # Currently available options:
2159 #
Bu Sun Kim65020912020-05-20 12:08:20 -07002160 # * &quot;monitoring.googleapis.com/kubernetes&quot; - The Cloud Monitoring
Dan O'Mearadd494642020-05-01 07:42:23 -07002161 # service with a Kubernetes-native resource model
2162 # * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
2163 # longer available as of GKE 1.15).
2164 # * `none` - No metrics will be exported from the cluster.
2165 #
2166 # If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
2167 # used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
Bu Sun Kim65020912020-05-20 12:08:20 -07002168 &quot;databaseEncryption&quot;: { # Configuration of etcd encryption. # Configuration of etcd encryption.
2169 &quot;state&quot;: &quot;A String&quot;, # Denotes the state of etcd encryption.
2170 &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 -07002171 # Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002172 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002173 &quot;binaryAuthorization&quot;: { # Configuration for Binary Authorization. # Configuration for Binary Authorization.
2174 &quot;enabled&quot;: True or False, # Enable Binary Authorization for this cluster. If enabled, all container
2175 # images will be validated by Google Binauthz.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002176 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002177 &quot;tpuIpv4CidrBlock&quot;: &quot;A String&quot;, # [Output only] The IP address range of the Cloud TPUs in this cluster, in
2178 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
2179 # notation (e.g. `1.2.3.4/29`).
2180 &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
2181 # policies.
2182 # policies.
2183 &quot;identityNamespace&quot;: &quot;A String&quot;, # IAM Identity Namespace to attach all Kubernetes Service Accounts to.
2184 &quot;workloadPool&quot;: &quot;A String&quot;, # The workload pool to attach all Kubernetes service accounts to.
2185 },
2186 &quot;zone&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07002187 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
2188 # cluster resides. This field is deprecated, use location instead.
Bu Sun Kim65020912020-05-20 12:08:20 -07002189 &quot;loggingService&quot;: &quot;A String&quot;, # The logging service the cluster should use to write logs.
2190 # Currently available options:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002191 #
Bu Sun Kim65020912020-05-20 12:08:20 -07002192 # * `logging.googleapis.com/kubernetes` - The Cloud Logging
2193 # service with a Kubernetes-native resource model
2194 # * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
2195 # available as of GKE 1.15).
2196 # * `none` - no logs will be exported from the cluster.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002197 #
Bu Sun Kim65020912020-05-20 12:08:20 -07002198 # If left as an empty string,`logging.googleapis.com/kubernetes` will be
2199 # used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
2200 &quot;expireTime&quot;: &quot;A String&quot;, # [Output only] The time the cluster will be automatically
2201 # deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
2202 &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 -07002203 # For requests, this field should only be used in lieu of a
Bu Sun Kim65020912020-05-20 12:08:20 -07002204 # &quot;node_pool&quot; object, since this configuration (along with the
2205 # &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 -07002206 # auto-generated name. Do not use this and a node_pool at the same time.
2207 # For responses, this field will be populated with the node configuration of
2208 # the first node pool. (For configuration of each node pool, see
2209 # `node_pool.config`)
2210 #
2211 # If unspecified, the defaults are used.
2212 # This field is deprecated, use node_pool.config instead.
Bu Sun Kim65020912020-05-20 12:08:20 -07002213 &quot;diskSizeGb&quot;: 42, # Size of the disk attached to each node, specified in GB.
2214 # The smallest allowed disk size is 10GB.
2215 #
2216 # If unspecified, the default disk size is 100GB.
2217 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to # The workload metadata configuration for this node.
2218 # workloads on the node pool.
2219 &quot;nodeMetadata&quot;: &quot;A String&quot;, # NodeMetadata is the configuration for how to expose metadata to the
2220 # workloads running on the node.
2221 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running
2222 # on the node pool.
Dan O'Mearadd494642020-05-01 07:42:23 -07002223 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002224 &quot;accelerators&quot;: [ # A list of hardware accelerators to be attached to each node.
2225 # See https://cloud.google.com/compute/docs/gpus for more information about
2226 # support for GPUs.
2227 { # AcceleratorConfig represents a Hardware Accelerator request.
2228 &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of the accelerator cards exposed to an instance.
2229 &quot;acceleratorType&quot;: &quot;A String&quot;, # The accelerator type resource name. List of supported accelerators
2230 # [here](https://cloud.google.com/compute/docs/gpus)
2231 },
2232 ],
2233 &quot;machineType&quot;: &quot;A String&quot;, # The name of a Google Compute Engine [machine
Dan O'Mearadd494642020-05-01 07:42:23 -07002234 # type](https://cloud.google.com/compute/docs/machine-types) (e.g.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002235 # `n1-standard-1`).
2236 #
2237 # If unspecified, the default machine type is
2238 # `n1-standard-1`.
Bu Sun Kim65020912020-05-20 12:08:20 -07002239 &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;)
2240 #
2241 # If unspecified, the default disk type is &#x27;pd-standard&#x27;
2242 &quot;bootDiskKmsKey&quot;: &quot;A String&quot;, #
2243 # The Customer Managed Encryption Key used to encrypt the boot disk attached
2244 # to each node in the node pool. This should be of the form
2245 # projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
2246 # For more information about protecting resources with Cloud KMS Keys please
2247 # see:
2248 # https://cloud.google.com/compute/docs/disks/customer-managed-encryption
2249 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
2250 &quot;enableSecureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled.
2251 #
2252 # Secure Boot helps ensure that the system only runs authentic software by
2253 # verifying the digital signature of all boot components, and halting the
2254 # boot process if signature verification fails.
2255 &quot;enableIntegrityMonitoring&quot;: True or False, # Defines whether the instance has integrity monitoring enabled.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002256 #
2257 # Enables monitoring and attestation of the boot integrity of the instance.
2258 # The attestation is performed against the integrity policy baseline. This
2259 # baseline is initially derived from the implicitly trusted boot image when
2260 # the instance is created.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002261 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002262 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used by this instance. The instance may be
2263 # scheduled on the specified or newer CPU platform. Applicable values are the
2264 # friendly names of CPU platforms, such as
2265 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Haswell&amp;quot;&lt;/code&gt; or
2266 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Sandy Bridge&amp;quot;&lt;/code&gt;. For more
2267 # information, read [how to specify min CPU
2268 # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
2269 &quot;preemptible&quot;: True or False, # Whether the nodes are created as preemptible VM instances. See:
2270 # https://cloud.google.com/compute/docs/instances/preemptible for more
2271 # inforamtion about preemptible VM instances.
2272 &quot;localSsdCount&quot;: 42, # The number of local SSD disks to be attached to the node.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002273 #
Bu Sun Kim65020912020-05-20 12:08:20 -07002274 # The limit for this value is dependent upon the maximum number of
2275 # disks available on a machine per zone. See:
2276 # https://cloud.google.com/compute/docs/disks/local-ssd
2277 # for more information.
2278 &quot;sandboxConfig&quot;: { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node.
2279 &quot;type&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node.
2280 &quot;sandboxType&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node (e.g. &#x27;gvisor&#x27;)
2281 },
2282 &quot;metadata&quot;: { # The metadata key/value pairs assigned to instances in the cluster.
2283 #
2284 # Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
2285 # in length. These are reflected as part of a URL in the metadata server.
2286 # Additionally, to avoid ambiguity, keys must not conflict with any other
2287 # metadata keys for the project or be one of the reserved keys:
2288 # &quot;cluster-location&quot;
2289 # &quot;cluster-name&quot;
2290 # &quot;cluster-uid&quot;
2291 # &quot;configure-sh&quot;
2292 # &quot;containerd-configure-sh&quot;
2293 # &quot;enable-oslogin&quot;
2294 # &quot;gci-ensure-gke-docker&quot;
2295 # &quot;gci-metrics-enabled&quot;
2296 # &quot;gci-update-strategy&quot;
2297 # &quot;instance-template&quot;
2298 # &quot;kube-env&quot;
2299 # &quot;startup-script&quot;
2300 # &quot;user-data&quot;
2301 # &quot;disable-address-manager&quot;
2302 # &quot;windows-startup-script-ps1&quot;
2303 # &quot;common-psm1&quot;
2304 # &quot;k8s-node-setup-psm1&quot;
2305 # &quot;install-ssh-psm1&quot;
2306 # &quot;user-profile-psm1&quot;
2307 # &quot;serial-port-logging-enable&quot;
2308 # Values are free-form strings, and only have meaning as interpreted by
2309 # the image running in the instance. The only restriction placed on them is
2310 # that each value&#x27;s size must be less than or equal to 32 KB.
2311 #
2312 # The total size of all keys and values must be less than 512 KB.
2313 &quot;a_key&quot;: &quot;A String&quot;,
2314 },
2315 &quot;reservationAffinity&quot;: { # [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) # The optional reservation affinity. Setting this field will apply
2316 # the specified [Zonal Compute
2317 # Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
2318 # to this node pool.
2319 # is the configuration of desired reservation which instances could take
2320 # capacity from.
2321 &quot;key&quot;: &quot;A String&quot;, # Corresponds to the label key of a reservation resource. To target a
2322 # SPECIFIC_RESERVATION by name, specify &quot;googleapis.com/reservation-name&quot; as
2323 # the key and specify the name of your reservation as its value.
2324 &quot;values&quot;: [ # Corresponds to the label value(s) of reservation resource(s).
2325 &quot;A String&quot;,
2326 ],
2327 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Corresponds to the type of reservation consumption.
2328 },
2329 &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 -07002330 # valid sources or targets for network firewalls and are specified by
2331 # the client during cluster or node pool creation. Each tag within the list
2332 # must comply with RFC1035.
Bu Sun Kim65020912020-05-20 12:08:20 -07002333 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002334 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002335 &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 -07002336 # Specify the email address of the Service Account; otherwise, if no Service
Bu Sun Kim65020912020-05-20 12:08:20 -07002337 # Account is specified, the &quot;default&quot; service account is used.
2338 &quot;imageType&quot;: &quot;A String&quot;, # The image type to use for this node. Note that for a given image type,
2339 # the latest version of it will be used.
2340 &quot;oauthScopes&quot;: [ # The set of Google API scopes to be made available on all of the
2341 # node VMs under the &quot;default&quot; service account.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002342 #
2343 # The following scopes are recommended, but not required, and by default are
2344 # not included:
2345 #
2346 # * `https://www.googleapis.com/auth/compute` is required for mounting
2347 # persistent storage on your nodes.
2348 # * `https://www.googleapis.com/auth/devstorage.read_only` is required for
2349 # communicating with **gcr.io**
Dan O'Mearadd494642020-05-01 07:42:23 -07002350 # (the [Google Container
2351 # Registry](https://cloud.google.com/container-registry/)).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002352 #
2353 # If unspecified, no scopes are added, unless Cloud Logging or Cloud
2354 # Monitoring are enabled, in which case their required scopes will be added.
Bu Sun Kim65020912020-05-20 12:08:20 -07002355 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002356 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002357 &quot;taints&quot;: [ # List of kubernetes taints to be applied to each node.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002358 #
2359 # For more information, including usage and the valid values, see:
2360 # https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
2361 { # Kubernetes taint is comprised of three fields: key, value, and effect. Effect
2362 # can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute.
2363 #
Bu Sun Kim65020912020-05-20 12:08:20 -07002364 # See
2365 # [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration)
2366 # for more information, including usage and the valid values.
2367 &quot;key&quot;: &quot;A String&quot;, # Key for taint.
2368 &quot;value&quot;: &quot;A String&quot;, # Value for taint.
2369 &quot;effect&quot;: &quot;A String&quot;, # Effect for taint.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002370 },
2371 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002372 &quot;labels&quot;: { # The map of Kubernetes labels (key/value pairs) to be applied to each node.
2373 # These will added in addition to any default label(s) that
2374 # Kubernetes may apply to the node.
2375 # In case of conflict in label keys, the applied set may differ depending on
2376 # the Kubernetes version -- it&#x27;s best to assume the behavior is undefined
2377 # and conflicts should be avoided.
2378 # For more information, including usage and the valid values, see:
2379 # https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
2380 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002381 },
2382 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002383 &quot;status&quot;: &quot;A String&quot;, # [Output only] The current status of this cluster.
2384 &quot;tpuConfig&quot;: { # Configuration for Cloud TPU. # Configuration for Cloud TPU support;
2385 &quot;enabled&quot;: True or False, # Whether Cloud TPU integration is enabled or not.
2386 &quot;ipv4CidrBlock&quot;: &quot;A String&quot;, # IPv4 CIDR block reserved for Cloud TPU in the VPC.
2387 &quot;useServiceNetworking&quot;: True or False, # Whether to use service networking for Cloud TPU or not.
2388 },
2389 &quot;networkConfig&quot;: { # NetworkConfig reports the relative names of network &amp; subnetwork. # Configuration for cluster networking.
2390 &quot;subnetwork&quot;: &quot;A String&quot;, # Output only. The relative name of the Google Compute Engine
2391 # [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the
2392 # cluster is connected. Example:
2393 # projects/my-project/regions/us-central1/subnetworks/my-subnet
2394 &quot;network&quot;: &quot;A String&quot;, # Output only. The relative name of the Google Compute Engine
2395 # network(https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
2396 # to which the cluster is connected. Example:
2397 # projects/my-project/global/networks/my-network
2398 &quot;enableIntraNodeVisibility&quot;: True or False, # Whether Intra-node visibility is enabled for this cluster.
2399 # This makes same node pod to pod traffic visible for VPC network.
2400 },
2401 &quot;name&quot;: &quot;A String&quot;, # The name of this cluster. The name must be unique within this project
2402 # and location (e.g. zone or region), and can be up to 40 characters with
2403 # the following restrictions:
2404 #
2405 # * Lowercase letters, numbers, and hyphens only.
2406 # * Must start with a letter.
2407 # * Must end with a number or a letter.
2408 &quot;endpoint&quot;: &quot;A String&quot;, # [Output only] The IP address of this cluster&#x27;s master endpoint.
2409 # The endpoint can be accessed from the internet at
2410 # `https://username:password@endpoint/`.
2411 #
2412 # See the `masterAuth` property of this resource for username and
2413 # password information.
2414 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
2415 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
2416 # or
2417 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
2418 # in which the cluster resides.
2419 &quot;createTime&quot;: &quot;A String&quot;, # [Output only] The time the cluster was created, in
2420 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
2421 &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 -07002422 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
2423 # notation (e.g. `10.96.0.0/14`). Leave blank to have
2424 # one automatically chosen or specify a `/14` block in `10.0.0.0/8`.
Bu Sun Kim65020912020-05-20 12:08:20 -07002425 &quot;autoscaling&quot;: { # ClusterAutoscaling contains global, per-cluster information # Cluster-level autoscaling configuration.
2426 # required by Cluster Autoscaler to automatically adjust
2427 # the size of the cluster and create/delete
2428 # node pools based on the current needs.
2429 &quot;resourceLimits&quot;: [ # Contains global constraints regarding minimum and maximum
2430 # amount of resources in the cluster.
2431 { # Contains information about amount of some resource in the cluster.
2432 # For memory, value should be in GB.
2433 &quot;maximum&quot;: &quot;A String&quot;, # Maximum amount of the resource in the cluster.
2434 &quot;resourceType&quot;: &quot;A String&quot;, # Resource name &quot;cpu&quot;, &quot;memory&quot; or gpu-specific string.
2435 &quot;minimum&quot;: &quot;A String&quot;, # Minimum amount of the resource in the cluster.
2436 },
2437 ],
2438 &quot;autoscalingProfile&quot;: &quot;A String&quot;, # Defines autoscaling behaviour.
2439 &quot;enableNodeAutoprovisioning&quot;: True or False, # Enables automatic node pool creation and deletion.
2440 &quot;autoprovisioningNodePoolDefaults&quot;: { # AutoprovisioningNodePoolDefaults contains defaults for a node pool created # AutoprovisioningNodePoolDefaults contains defaults for a node pool
2441 # created by NAP.
2442 # by NAP.
2443 &quot;oauthScopes&quot;: [ # Scopes that are used by NAP when creating node pools. If oauth_scopes are
2444 # specified, service_account should be empty.
2445 &quot;A String&quot;,
2446 ],
2447 &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.
2448 # node pool.
2449 &quot;autoUpgrade&quot;: True or False, # Whether the nodes will be automatically upgraded.
2450 &quot;autoRepair&quot;: True or False, # Whether the nodes will be automatically repaired.
2451 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool.
2452 # the Auto Upgrades will proceed.
2453 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
2454 # with the description of the upgrade.
2455 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
2456 # with the approximate start time for the upgrades, in
2457 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
2458 },
2459 },
2460 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used for NAP created node pools.
2461 # The instance may be scheduled on the specified or newer CPU platform.
2462 # Applicable values are the friendly names of CPU platforms, such as
2463 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Haswell&amp;quot;&lt;/code&gt; or
2464 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Sandy Bridge&amp;quot;&lt;/code&gt;. For more
2465 # information, read [how to specify min CPU
2466 # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
2467 # To unset the min cpu platform field pass &quot;automatic&quot; as field value.
2468 &quot;upgradeSettings&quot;: { # These upgrade settings control the level of parallelism and the level of # Specifies the upgrade settings for NAP created node pools
2469 # disruption caused by an upgrade.
2470 #
2471 # maxUnavailable controls the number of nodes that can be simultaneously
2472 # unavailable.
2473 #
2474 # maxSurge controls the number of additional nodes that can be added to the
2475 # node pool temporarily for the time of the upgrade to increase the number of
2476 # available nodes.
2477 #
2478 # (maxUnavailable + maxSurge) determines the level of parallelism (how many
2479 # nodes are being upgraded at the same time).
2480 #
2481 # Note: upgrades inevitably introduce some disruption since workloads need to
2482 # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
2483 # this holds true. (Disruption stays within the limits of
2484 # PodDisruptionBudget, if it is configured.)
2485 #
2486 # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
2487 # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
2488 # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
2489 # down 3 old (not yet upgraded) nodes at the same time. This ensures that
2490 # there are always at least 4 nodes available.
2491 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size
2492 # of the node pool during the upgrade process.
2493 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during
2494 # the upgrade process. A node is considered available if its status is
2495 # Ready.
2496 },
2497 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs. If
2498 # service_account is specified, scopes should be empty.
2499 },
2500 &quot;autoprovisioningLocations&quot;: [ # The list of Google Compute Engine
2501 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
2502 # NodePool&#x27;s nodes can be created by NAP.
2503 &quot;A String&quot;,
2504 ],
Dan O'Mearadd494642020-05-01 07:42:23 -07002505 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002506 &quot;initialNodeCount&quot;: 42, # The number of nodes to create in this cluster. You must ensure that your
2507 # 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 -07002508 # is sufficient for this number of instances. You must also have available
2509 # firewall and routes quota.
2510 # For requests, this field should only be used in lieu of a
Bu Sun Kim65020912020-05-20 12:08:20 -07002511 # &quot;node_pool&quot; object, since this configuration (along with the
2512 # &quot;node_config&quot;) will be used to create a &quot;NodePool&quot; object with an
Dan O'Mearadd494642020-05-01 07:42:23 -07002513 # auto-generated name. Do not use this and a node_pool at the same time.
2514 #
2515 # This field is deprecated, use node_pool.initial_node_count instead.
Bu Sun Kim65020912020-05-20 12:08:20 -07002516 &quot;instanceGroupUrls&quot;: [ # Deprecated. Use node_pools.instance_group_urls.
2517 &quot;A String&quot;,
2518 ],
2519 &quot;privateClusterConfig&quot;: { # Configuration options for private clusters. # Configuration for private cluster.
2520 &quot;privateEndpoint&quot;: &quot;A String&quot;, # Output only. The internal IP address of this cluster&#x27;s master endpoint.
2521 &quot;enablePrivateEndpoint&quot;: True or False, # Whether the master&#x27;s internal IP address is used as the cluster endpoint.
2522 &quot;peeringName&quot;: &quot;A String&quot;, # Output only. The peering name in the customer VPC used by this cluster.
2523 &quot;masterGlobalAccessConfig&quot;: { # Configuration for controlling master global access settings. # Controls master global access settings.
2524 &quot;enabled&quot;: True or False, # Whenever master is accessible globally or not.
2525 },
2526 &quot;publicEndpoint&quot;: &quot;A String&quot;, # Output only. The external IP address of this cluster&#x27;s master endpoint.
2527 &quot;enablePrivateNodes&quot;: True or False, # Whether nodes have internal IP addresses only. If enabled, all nodes are
2528 # given only RFC 1918 private addresses and communicate with the master via
2529 # private networking.
2530 &quot;masterIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP range in CIDR notation to use for the hosted master network. This
2531 # range will be used for assigning internal IP addresses to the master or
2532 # set of masters, as well as the ILB VIP. This range must not overlap with
2533 # any other ranges in use within the cluster&#x27;s network.
2534 },
2535 &quot;shieldedNodes&quot;: { # Configuration of Shielded Nodes feature. # Shielded Nodes configuration.
2536 &quot;enabled&quot;: True or False, # Whether Shielded Nodes features are enabled on all nodes in this cluster.
2537 },
2538 &quot;verticalPodAutoscaling&quot;: { # VerticalPodAutoscaling contains global, per-cluster information # Cluster-level Vertical Pod Autoscaling configuration.
2539 # required by Vertical Pod Autoscaler to automatically adjust
2540 # the resources of pods controlled by it.
2541 &quot;enabled&quot;: True or False, # Enables vertical pod autoscaling.
2542 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002543 }</pre>
2544</div>
2545
2546<div class="method">
2547 <code class="details" id="getJwks">getJwks(parent, x__xgafv=None)</code>
2548 <pre>Gets the public component of the cluster signing keys in
2549JSON Web Key format.
2550This API is not yet intended for general use, and is not available for all
2551clusters.
2552
2553Args:
2554 parent: string, The cluster (project, location, cluster id) to get keys for. Specified in
Bu Sun Kim65020912020-05-20 12:08:20 -07002555the format `projects/*/locations/*/clusters/*`. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002556 x__xgafv: string, V1 error format.
2557 Allowed values
2558 1 - v1 error format
2559 2 - v2 error format
2560
2561Returns:
2562 An object of the form:
2563
2564 { # GetJSONWebKeysResponse is a valid JSON Web Key Set as specififed in rfc 7517
Bu Sun Kim65020912020-05-20 12:08:20 -07002565 &quot;keys&quot;: [ # The public component of the keys used by the cluster to sign token
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002566 # requests.
2567 { # Jwk is a JSON Web Key as specified in RFC 7517
Bu Sun Kim65020912020-05-20 12:08:20 -07002568 &quot;x&quot;: &quot;A String&quot;, # Used for ECDSA keys.
2569 &quot;crv&quot;: &quot;A String&quot;, # Used for ECDSA keys.
2570 &quot;kid&quot;: &quot;A String&quot;, # Key ID.
2571 &quot;e&quot;: &quot;A String&quot;, # Used for RSA keys.
2572 &quot;kty&quot;: &quot;A String&quot;, # Key Type.
2573 &quot;n&quot;: &quot;A String&quot;, # Used for RSA keys.
2574 &quot;alg&quot;: &quot;A String&quot;, # Algorithm.
2575 &quot;use&quot;: &quot;A String&quot;, # Permitted uses for the public keys.
2576 &quot;y&quot;: &quot;A String&quot;, # Used for ECDSA keys.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002577 },
2578 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002579 &quot;cacheHeader&quot;: { # RFC-2616: cache control support # OnePlatform automatically extracts this field and uses it to set the HTTP
Dan O'Mearadd494642020-05-01 07:42:23 -07002580 # Cache-Control header.
Bu Sun Kim65020912020-05-20 12:08:20 -07002581 &quot;directive&quot;: &quot;A String&quot;, # 14.9 request and response directives
2582 &quot;age&quot;: &quot;A String&quot;, # 14.6 response cache age, in seconds since the response is generated
2583 &quot;expires&quot;: &quot;A String&quot;, # 14.21 response cache expires, in RFC 1123 date format
Dan O'Mearadd494642020-05-01 07:42:23 -07002584 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002585 }</pre>
2586</div>
2587
2588<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -07002589 <code class="details" id="list">list(parent, projectId=None, zone=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002590 <pre>Lists all clusters owned by a project in either the specified zone or all
2591zones.
2592
2593Args:
2594 parent: string, The parent (project and location) where the clusters will be listed.
Bu Sun Kim65020912020-05-20 12:08:20 -07002595Specified in the format `projects/*/locations/*`.
2596Location &quot;-&quot; matches all zones and all regions. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07002597 projectId: string, Required. Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002598number](https://support.google.com/cloud/answer/6158840).
2599This field has been deprecated and replaced by the parent field.
Bu Sun Kim65020912020-05-20 12:08:20 -07002600 zone: string, Required. Deprecated. The name of the Google Compute Engine
2601[zone](https://cloud.google.com/compute/docs/zones#available) in which the
2602cluster resides, or &quot;-&quot; for all zones. This field has been deprecated and
2603replaced by the parent field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002604 x__xgafv: string, V1 error format.
2605 Allowed values
2606 1 - v1 error format
2607 2 - v2 error format
2608
2609Returns:
2610 An object of the form:
2611
2612 { # ListClustersResponse is the result of ListClustersRequest.
Bu Sun Kim65020912020-05-20 12:08:20 -07002613 &quot;clusters&quot;: [ # A list of clusters in the project in the specified zone, or
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002614 # across all ones.
2615 { # A Google Kubernetes Engine cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -07002616 &quot;defaultMaxPodsConstraint&quot;: { # Constraints applied to pods. # The default constraint on the maximum number of pods that can be run
2617 # simultaneously on a node in the node pool of this cluster. Only honored
2618 # if cluster created with IP Alias support.
2619 &quot;maxPodsPerNode&quot;: &quot;A String&quot;, # Constraint enforced on the max num of pods per node.
2620 },
2621 &quot;network&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
2622 # [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
2623 # to which the cluster is connected. If left unspecified, the `default`
2624 # network will be used. On output this shows the network ID instead of the
2625 # name.
2626 &quot;labelFingerprint&quot;: &quot;A String&quot;, # The fingerprint of the set of labels for this cluster.
2627 &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 -07002628 # containers. This is provisioned from within the `container_ipv4_cidr`
2629 # range. This field will only be set when cluster is in route-based network
2630 # mode.
Bu Sun Kim65020912020-05-20 12:08:20 -07002631 &quot;masterAuthorizedNetworksConfig&quot;: { # Configuration options for the master authorized networks feature. Enabled # The configuration options for master authorized networks feature.
2632 # master authorized networks will disallow all external traffic to access
2633 # Kubernetes master through HTTPS except traffic from the given CIDR blocks,
2634 # Google Compute Engine Public IPs and Google Prod IPs.
2635 &quot;cidrBlocks&quot;: [ # cidr_blocks define up to 10 external networks that could access
2636 # Kubernetes master through HTTPS.
2637 { # CidrBlock contains an optional name and one CIDR block.
2638 &quot;displayName&quot;: &quot;A String&quot;, # display_name is an optional field for users to identify CIDR blocks.
2639 &quot;cidrBlock&quot;: &quot;A String&quot;, # cidr_block must be specified in CIDR notation.
2640 },
2641 ],
2642 &quot;enabled&quot;: True or False, # Whether or not master authorized networks is enabled.
2643 },
2644 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output only] Additional information about the current status of this
2645 # cluster, if available.
2646 &quot;masterAuth&quot;: { # The authentication information for accessing the master endpoint. # The authentication information for accessing the master endpoint.
2647 # If unspecified, the defaults are used:
2648 # For clusters before v1.12, if master_auth is unspecified, `username` will
2649 # be set to &quot;admin&quot;, a random password will be generated, and a client
2650 # certificate will be issued.
2651 # Authentication can be done using HTTP basic auth or using client
2652 # certificates.
2653 &quot;password&quot;: &quot;A String&quot;, # The password to use for HTTP basic authentication to the master endpoint.
2654 # Because the master endpoint is open to the Internet, you should create a
2655 # strong password. If a password is provided for cluster creation, username
2656 # must be non-empty.
2657 &quot;clientCertificateConfig&quot;: { # Configuration for client certificates on the cluster. # Configuration for client certificate authentication on the cluster. For
2658 # clusters before v1.12, if no configuration is specified, a client
2659 # certificate is issued.
2660 &quot;issueClientCertificate&quot;: True or False, # Issue a client certificate.
2661 },
2662 &quot;clientKey&quot;: &quot;A String&quot;, # [Output only] Base64-encoded private key used by clients to authenticate
2663 # to the cluster endpoint.
2664 &quot;clusterCaCertificate&quot;: &quot;A String&quot;,
2665 &quot;clientCertificate&quot;: &quot;A String&quot;, # [Output only] Base64-encoded public certificate used by clients to
2666 # authenticate to the cluster endpoint.
2667 &quot;username&quot;: &quot;A String&quot;, # The username to use for HTTP basic authentication to the master endpoint.
2668 # For clusters v1.6.0 and later, basic authentication can be disabled by
2669 # leaving username unspecified (or setting it to the empty string).
2670 },
2671 &quot;authenticatorGroupsConfig&quot;: { # Configuration for returning group information from authenticators. # Configuration controlling RBAC group membership information.
2672 &quot;enabled&quot;: True or False, # Whether this cluster should return group membership lookups
2673 # during authentication using a group of security groups.
2674 &quot;securityGroup&quot;: &quot;A String&quot;, # The name of the security group-of-groups to be used. Only relevant
2675 # if enabled = true.
2676 },
2677 &quot;masterIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP prefix in CIDR notation to use for the hosted master network.
2678 # This prefix will be used for assigning private IP addresses to the
2679 # master or set of masters, as well as the ILB VIP.
2680 # This field is deprecated, use
2681 # private_cluster_config.master_ipv4_cidr_block instead.
2682 &quot;clusterTelemetry&quot;: { # Telemetry integration for the cluster. # Telemetry integration for the cluster.
2683 &quot;type&quot;: &quot;A String&quot;, # Type of the integration.
2684 },
2685 &quot;currentMasterVersion&quot;: &quot;A String&quot;, # [Output only] The current software version of the master endpoint.
2686 &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.
2687 # cluster, enabling additional functionality.
2688 &quot;networkPolicyConfig&quot;: { # Configuration for NetworkPolicy. This only tracks whether the addon # Configuration for NetworkPolicy. This only tracks whether the addon
2689 # is enabled or not on the Master, it does not track whether network policy
2690 # is enabled for the nodes.
2691 # is enabled or not on the Master, it does not track whether network policy
2692 # is enabled for the nodes.
2693 &quot;disabled&quot;: True or False, # Whether NetworkPolicy is enabled for this cluster.
2694 },
2695 &quot;configConnectorConfig&quot;: { # Configuration options for the Config Connector add-on. # Configuration for the ConfigConnector add-on, a Kubernetes
2696 # extension to manage hosted GCP services through the Kubernetes API
2697 &quot;enabled&quot;: True or False, # Whether Cloud Connector is enabled for this cluster.
2698 },
2699 &quot;cloudRunConfig&quot;: { # Configuration options for the Cloud Run feature. # Configuration for the Cloud Run addon. The `IstioConfig` addon must be
2700 # enabled in order to enable Cloud Run addon. This option can only be enabled
2701 # at cluster creation time.
2702 &quot;disabled&quot;: True or False, # Whether Cloud Run addon is enabled for this cluster.
2703 },
2704 &quot;horizontalPodAutoscaling&quot;: { # Configuration options for the horizontal pod autoscaling feature, which # Configuration for the horizontal pod autoscaling feature, which
2705 # increases or decreases the number of replica pods a replication controller
2706 # has based on the resource usage of the existing pods.
2707 # increases or decreases the number of replica pods a replication controller
2708 # has based on the resource usage of the existing pods.
2709 &quot;disabled&quot;: True or False, # Whether the Horizontal Pod Autoscaling feature is enabled in the cluster.
2710 # When enabled, it ensures that metrics are collected into Stackdriver
2711 # Monitoring.
2712 },
2713 &quot;httpLoadBalancing&quot;: { # Configuration options for the HTTP (L7) load balancing controller addon, # Configuration for the HTTP (L7) load balancing controller addon, which
2714 # makes it easy to set up HTTP load balancers for services in a cluster.
2715 # which makes it easy to set up HTTP load balancers for services in a cluster.
2716 &quot;disabled&quot;: True or False, # Whether the HTTP Load Balancing controller is enabled in the cluster.
2717 # When enabled, it runs a small pod in the cluster that manages the load
2718 # balancers.
2719 },
2720 &quot;kubernetesDashboard&quot;: { # Configuration for the Kubernetes Dashboard. # Configuration for the Kubernetes Dashboard.
2721 # This addon is deprecated, and will be disabled in 1.15. It is recommended
2722 # to use the Cloud Console to manage and monitor your Kubernetes clusters,
2723 # workloads and applications. For more information, see:
2724 # https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
2725 &quot;disabled&quot;: True or False, # Whether the Kubernetes Dashboard is enabled for this cluster.
2726 },
2727 &quot;dnsCacheConfig&quot;: { # Configuration for NodeLocal DNSCache # Configuration for NodeLocalDNS, a dns cache running on cluster nodes
2728 &quot;enabled&quot;: True or False, # Whether NodeLocal DNSCache is enabled for this cluster.
2729 },
2730 &quot;kalmConfig&quot;: { # Configuration options for the KALM addon. # Configuration for the KALM addon, which manages the lifecycle of k8s
2731 # applications.
2732 &quot;enabled&quot;: True or False, # Whether KALM is enabled for this cluster.
2733 },
2734 &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.
2735 # enabled at cluster creation time.
2736 &quot;enabled&quot;: True or False, # Whether the Compute Engine PD CSI driver is enabled for this cluster.
2737 },
2738 &quot;istioConfig&quot;: { # Configuration options for Istio addon. # Configuration for Istio, an open platform to connect, manage, and secure
2739 # microservices.
2740 &quot;disabled&quot;: True or False, # Whether Istio is enabled for this cluster.
2741 &quot;auth&quot;: &quot;A String&quot;, # The specified Istio auth mode, either none, or mutual TLS.
2742 },
2743 },
2744 &quot;podSecurityPolicyConfig&quot;: { # Configuration for the PodSecurityPolicy feature. # Configuration for the PodSecurityPolicy feature.
2745 &quot;enabled&quot;: True or False, # Enable the PodSecurityPolicy controller for this cluster. If enabled, pods
2746 # must be valid under a PodSecurityPolicy to be created.
2747 },
2748 &quot;currentNodeVersion&quot;: &quot;A String&quot;, # [Output only] Deprecated, use
2749 # [NodePool.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1beta1/projects.locations.clusters.nodePools)
2750 # instead. The current version of the node software components.
2751 # If they are currently at multiple versions because they&#x27;re in the process
2752 # of being upgraded, this reflects the minimum version of all nodes.
2753 &quot;subnetwork&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
2754 # [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which
2755 # the cluster is connected. On output this shows the subnetwork ID instead of
2756 # the name.
2757 &quot;maintenancePolicy&quot;: { # MaintenancePolicy defines the maintenance policy to be used for the cluster. # Configure the maintenance policy for this cluster.
2758 &quot;resourceVersion&quot;: &quot;A String&quot;, # A hash identifying the version of this policy, so that updates to fields of
2759 # the policy won&#x27;t accidentally undo intermediate changes (and so that users
2760 # of the API unaware of some fields won&#x27;t accidentally remove other fields).
2761 # Make a &lt;code&gt;get()&lt;/code&gt; request to the cluster to get the current
2762 # resource version and include it with requests to set the policy.
2763 &quot;window&quot;: { # MaintenanceWindow defines the maintenance window to be used for the cluster. # Specifies the maintenance window in which maintenance may be performed.
2764 &quot;dailyMaintenanceWindow&quot;: { # Time window specified for daily maintenance operations. # DailyMaintenanceWindow specifies a daily maintenance operation window.
2765 &quot;duration&quot;: &quot;A String&quot;, # [Output only] Duration of the time window, automatically chosen to be
2766 # smallest possible in the given scenario.
2767 &quot;startTime&quot;: &quot;A String&quot;, # Time within the maintenance window to start the maintenance operations.
2768 # It must be in format &quot;HH:MM&quot;, where HH : [00-23] and MM : [00-59] GMT.
2769 },
2770 &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 -07002771 # maintenance to occur. The time windows may be overlapping. If no
2772 # maintenance windows are set, maintenance can occur at any time.
Bu Sun Kim65020912020-05-20 12:08:20 -07002773 &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 -07002774 # this window reccurs. They go on for the span of time between the start and
2775 # end time.
2776 #
Bu Sun Kim65020912020-05-20 12:08:20 -07002777 # For example, to have something repeat every weekday, you&#x27;d use:
Dan O'Mearadd494642020-05-01 07:42:23 -07002778 # &lt;code&gt;FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR&lt;/code&gt;
2779 # To repeat some window daily (equivalent to the DailyMaintenanceWindow):
2780 # &lt;code&gt;FREQ=DAILY&lt;/code&gt;
2781 # For the first weekend of every month:
2782 # &lt;code&gt;FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU&lt;/code&gt;
2783 # This specifies how frequently the window starts. Eg, if you wanted to have
Bu Sun Kim65020912020-05-20 12:08:20 -07002784 # a 9-5 UTC-4 window every weekday, you&#x27;d use something like:
Dan O'Mearadd494642020-05-01 07:42:23 -07002785 # &lt;code&gt;
2786 # start time = 2019-01-01T09:00:00-0400
2787 # end time = 2019-01-01T17:00:00-0400
2788 # recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
2789 # &lt;/code&gt;
2790 # Windows can span multiple days. Eg, to make the window encompass every
2791 # weekend from midnight Saturday till the last minute of Sunday UTC:
2792 # &lt;code&gt;
2793 # start time = 2019-01-05T00:00:00Z
2794 # end time = 2019-01-07T23:59:00Z
2795 # recurrence = FREQ=WEEKLY;BYDAY=SA
2796 # &lt;/code&gt;
Bu Sun Kim65020912020-05-20 12:08:20 -07002797 # Note the start and end time&#x27;s specific dates are largely arbitrary except
Dan O'Mearadd494642020-05-01 07:42:23 -07002798 # to specify duration of the window and when it first starts.
2799 # The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.
Bu Sun Kim65020912020-05-20 12:08:20 -07002800 &quot;window&quot;: { # Represents an arbitrary window of time. # The window of the first recurrence.
2801 &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 -07002802 # start time.
Bu Sun Kim65020912020-05-20 12:08:20 -07002803 &quot;startTime&quot;: &quot;A String&quot;, # The time that the window first starts.
Dan O'Mearadd494642020-05-01 07:42:23 -07002804 },
2805 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002806 &quot;maintenanceExclusions&quot;: { # Exceptions to maintenance window. Non-emergency maintenance should not
Dan O'Mearadd494642020-05-01 07:42:23 -07002807 # occur in these windows.
Bu Sun Kim65020912020-05-20 12:08:20 -07002808 &quot;a_key&quot;: { # Represents an arbitrary window of time.
2809 &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 -07002810 # start time.
Bu Sun Kim65020912020-05-20 12:08:20 -07002811 &quot;startTime&quot;: &quot;A String&quot;, # The time that the window first starts.
Dan O'Mearadd494642020-05-01 07:42:23 -07002812 },
2813 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002814 },
2815 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002816 &quot;resourceLabels&quot;: { # The resource labels for the cluster to use to annotate any related
2817 # Google Compute Engine resources.
2818 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002819 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002820 &quot;initialClusterVersion&quot;: &quot;A String&quot;, # The initial Kubernetes version for this cluster. Valid versions are those
2821 # found in validMasterVersions returned by getServerConfig. The version can
2822 # be upgraded over time; such upgrades are reflected in
2823 # currentMasterVersion and currentNodeVersion.
Dan O'Mearadd494642020-05-01 07:42:23 -07002824 #
Bu Sun Kim65020912020-05-20 12:08:20 -07002825 # Users may specify either explicit versions offered by
2826 # Kubernetes Engine or version aliases, which have the following behavior:
Dan O'Mearadd494642020-05-01 07:42:23 -07002827 #
Bu Sun Kim65020912020-05-20 12:08:20 -07002828 # - &quot;latest&quot;: picks the highest valid Kubernetes version
2829 # - &quot;1.X&quot;: picks the highest valid patch+gke.N patch in the 1.X version
2830 # - &quot;1.X.Y&quot;: picks the highest valid gke.N patch in the 1.X.Y version
2831 # - &quot;1.X.Y-gke.N&quot;: picks an explicit Kubernetes version
2832 # - &quot;&quot;,&quot;-&quot;: picks the default Kubernetes version
2833 &quot;ipAllocationPolicy&quot;: { # Configuration for controlling how IPs are allocated in the cluster. # Configuration for cluster IP allocation.
2834 &quot;useRoutes&quot;: True or False, # Whether routes will be used for pod IPs in the cluster.
2835 # This is used in conjunction with use_ip_aliases. It cannot be true if
2836 # use_ip_aliases is true. If both use_ip_aliases and use_routes are false,
2837 # then the server picks the default IP allocation mode
2838 &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 -07002839 # will be automatically chosen with the default size.
2840 #
2841 # This field is only applicable when `use_ip_aliases` is true.
2842 #
2843 # Set to blank to have a range chosen with the default size.
2844 #
2845 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
2846 # netmask.
2847 #
2848 # Set to a
2849 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
2850 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
2851 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
2852 # to use.
Bu Sun Kim65020912020-05-20 12:08:20 -07002853 &quot;allowRouteOverlap&quot;: True or False, # If true, allow allocation of cluster CIDR ranges that overlap with certain
2854 # kinds of network routes. By default we do not allow cluster CIDR ranges to
2855 # intersect with any user declared routes. With allow_route_overlap == true,
2856 # we allow overlapping with CIDR ranges that are larger than the cluster CIDR
2857 # range.
2858 #
2859 # If this field is set to true, then cluster and services CIDRs must be
2860 # fully-specified (e.g. `10.96.0.0/14`, but not `/14`), which means:
2861 # 1) When `use_ip_aliases` is true, `cluster_ipv4_cidr_block` and
2862 # `services_ipv4_cidr_block` must be fully-specified.
2863 # 2) When `use_ip_aliases` is false, `cluster.cluster_ipv4_cidr` muse be
2864 # fully-specified.
2865 &quot;nodeIpv4Cidr&quot;: &quot;A String&quot;, # This field is deprecated, use node_ipv4_cidr_block.
2866 &quot;clusterIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP address range for the cluster pod IPs. If this field is set, then
2867 # `cluster.cluster_ipv4_cidr` must be left blank.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002868 #
2869 # This field is only applicable when `use_ip_aliases` is true.
Bu Sun Kim65020912020-05-20 12:08:20 -07002870 #
2871 # Set to blank to have a range chosen with the default size.
2872 #
2873 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
2874 # netmask.
2875 #
2876 # Set to a
2877 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
2878 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
2879 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
2880 # to use.
2881 &quot;clusterSecondaryRangeName&quot;: &quot;A String&quot;, # The name of the secondary range to be used for the cluster CIDR
2882 # block. The secondary range will be used for pod IP
2883 # addresses. This must be an existing secondary range associated
2884 # with the cluster subnetwork.
2885 #
2886 # This field is only applicable with use_ip_aliases and
2887 # create_subnetwork is false.
2888 &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 -07002889 #
2890 # This is applicable only if `create_subnetwork` is true.
2891 #
2892 # Set to blank to have a range chosen with the default size.
2893 #
2894 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
2895 # netmask.
2896 #
2897 # Set to a
2898 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
2899 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
2900 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
2901 # to use.
Bu Sun Kim65020912020-05-20 12:08:20 -07002902 &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 -07002903 # range will be automatically chosen with the default size.
2904 #
2905 # This field is only applicable when `use_ip_aliases` is true.
2906 #
2907 # If unspecified, the range will use the default size.
2908 #
2909 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
2910 # netmask.
2911 #
2912 # Set to a
2913 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
2914 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
2915 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
2916 # to use.
Dan O'Mearadd494642020-05-01 07:42:23 -07002917 # This field is deprecated, use cluster.tpu_config.ipv4_cidr_block instead.
Bu Sun Kim65020912020-05-20 12:08:20 -07002918 &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 -07002919 # CIDR block. The secondary range will be used for service
2920 # ClusterIPs. This must be an existing secondary range associated
2921 # with the cluster subnetwork.
2922 #
2923 # This field is only applicable with use_ip_aliases and
2924 # create_subnetwork is false.
Bu Sun Kim65020912020-05-20 12:08:20 -07002925 &quot;useIpAliases&quot;: True or False, # Whether alias IPs will be used for pod IPs in the cluster.
2926 # This is used in conjunction with use_routes. It cannot
2927 # be true if use_routes is true. If both use_ip_aliases and use_routes are
2928 # false, then the server picks the default IP allocation mode
2929 &quot;createSubnetwork&quot;: True or False, # Whether a new subnetwork will be created automatically for the cluster.
2930 #
2931 # This field is only applicable when `use_ip_aliases` is true.
2932 &quot;subnetworkName&quot;: &quot;A String&quot;, # A custom subnetwork name to be used if `create_subnetwork` is true. If
2933 # this field is empty, then an automatic name will be chosen for the new
2934 # subnetwork.
2935 &quot;clusterIpv4Cidr&quot;: &quot;A String&quot;, # This field is deprecated, use cluster_ipv4_cidr_block.
2936 &quot;servicesIpv4Cidr&quot;: &quot;A String&quot;, # This field is deprecated, use services_ipv4_cidr_block.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002937 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002938 &quot;legacyAbac&quot;: { # Configuration for the legacy Attribute Based Access Control authorization # Configuration for the legacy ABAC authorization mode.
2939 # mode.
2940 &quot;enabled&quot;: True or False, # Whether the ABAC authorizer is enabled for this cluster. When enabled,
2941 # identities in the system, including service accounts, nodes, and
2942 # controllers, will have statically granted permissions beyond those
2943 # provided by the RBAC configuration or IAM.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002944 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002945 &quot;enableTpu&quot;: True or False, # Enable the ability to use Cloud TPUs in this cluster.
2946 # This field is deprecated, use tpu_config.enabled instead.
2947 &quot;resourceUsageExportConfig&quot;: { # Configuration for exporting cluster resource usages. # Configuration for exporting resource usages. Resource usage export is
2948 # disabled when this config unspecified.
2949 &quot;enableNetworkEgressMetering&quot;: True or False, # Whether to enable network egress metering for this cluster. If enabled, a
2950 # daemonset will be created in the cluster to meter network egress traffic.
2951 &quot;consumptionMeteringConfig&quot;: { # Parameters for controlling consumption metering. # Configuration to enable resource consumption metering.
2952 &quot;enabled&quot;: True or False, # Whether to enable consumption metering for this cluster. If enabled, a
2953 # second BigQuery table will be created to hold resource consumption
2954 # records.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002955 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002956 &quot;bigqueryDestination&quot;: { # Parameters for using BigQuery as the destination of resource usage export. # Configuration to use BigQuery as usage export destination.
2957 &quot;datasetId&quot;: &quot;A String&quot;, # The ID of a BigQuery Dataset.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002958 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002959 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002960 &quot;locations&quot;: [ # The list of Google Compute Engine
2961 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
2962 # cluster&#x27;s nodes should be located.
2963 &quot;A String&quot;,
2964 ],
2965 &quot;nodePools&quot;: [ # The node pools associated with this cluster.
2966 # 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 -07002967 # specified.
Bu Sun Kim65020912020-05-20 12:08:20 -07002968 { # NodePool contains the name and configuration for a cluster&#x27;s node pool.
2969 # 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 -07002970 # specification, under the control of the cluster master. They may have a set
2971 # of Kubernetes labels applied to them, which may be used to reference them
2972 # during pod scheduling. They may also be resized up or down, to accommodate
2973 # the workload.
Bu Sun Kim65020912020-05-20 12:08:20 -07002974 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output only] Additional information about the current status of this
2975 # node pool instance, if available.
2976 &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 -07002977 # only if a valid configuration is present.
2978 # adjust the size of the node pool to the current cluster usage.
Bu Sun Kim65020912020-05-20 12:08:20 -07002979 &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 -07002980 # max_node_count.
Bu Sun Kim65020912020-05-20 12:08:20 -07002981 &quot;autoprovisioned&quot;: True or False, # Can this node pool be deleted automatically.
2982 &quot;enabled&quot;: True or False, # Is autoscaling enabled for this node pool.
2983 &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 -07002984 # has to enough quota to scale up the cluster.
2985 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002986 &quot;initialNodeCount&quot;: 42, # The initial node count for the pool. You must ensure that your
2987 # Compute Engine &lt;a href=&quot;/compute/docs/resource-quotas&quot;&gt;resource quota&lt;/a&gt;
2988 # is sufficient for this number of instances. You must also have available
2989 # firewall and routes quota.
2990 &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 -07002991 # disruption caused by an upgrade.
2992 #
2993 # maxUnavailable controls the number of nodes that can be simultaneously
2994 # unavailable.
2995 #
2996 # maxSurge controls the number of additional nodes that can be added to the
2997 # node pool temporarily for the time of the upgrade to increase the number of
2998 # available nodes.
2999 #
3000 # (maxUnavailable + maxSurge) determines the level of parallelism (how many
3001 # nodes are being upgraded at the same time).
3002 #
3003 # Note: upgrades inevitably introduce some disruption since workloads need to
3004 # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
3005 # this holds true. (Disruption stays within the limits of
3006 # PodDisruptionBudget, if it is configured.)
3007 #
3008 # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
3009 # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
3010 # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
3011 # down 3 old (not yet upgraded) nodes at the same time. This ensures that
3012 # there are always at least 4 nodes available.
Bu Sun Kim65020912020-05-20 12:08:20 -07003013 &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 -07003014 # of the node pool during the upgrade process.
Bu Sun Kim65020912020-05-20 12:08:20 -07003015 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during
Dan O'Mearadd494642020-05-01 07:42:23 -07003016 # the upgrade process. A node is considered available if its status is
3017 # Ready.
3018 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003019 &quot;selfLink&quot;: &quot;A String&quot;, # [Output only] Server-defined URL for the resource.
3020 &quot;locations&quot;: [ # The list of Google Compute Engine
3021 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
3022 # NodePool&#x27;s nodes should be located.
3023 &quot;A String&quot;,
3024 ],
3025 &quot;instanceGroupUrls&quot;: [ # [Output only] The resource URLs of the [managed instance
Dan O'Mearadd494642020-05-01 07:42:23 -07003026 # groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
3027 # associated with this node pool.
Bu Sun Kim65020912020-05-20 12:08:20 -07003028 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07003029 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003030 &quot;version&quot;: &quot;A String&quot;, # The version of the Kubernetes of this node.
3031 &quot;podIpv4CidrSize&quot;: 42, # [Output only] The pod CIDR block size per node in this node pool.
3032 &quot;conditions&quot;: [ # Which conditions caused the current node pool state.
3033 { # StatusCondition describes why a cluster or a node pool has a certain status
3034 # (e.g., ERROR or DEGRADED).
3035 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
3036 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Dan O'Mearadd494642020-05-01 07:42:23 -07003037 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003038 ],
3039 &quot;status&quot;: &quot;A String&quot;, # [Output only] The status of the nodes in this pool instance.
3040 &quot;config&quot;: { # Parameters that describe the nodes in a cluster. # The node configuration of the pool.
3041 &quot;diskSizeGb&quot;: 42, # Size of the disk attached to each node, specified in GB.
3042 # The smallest allowed disk size is 10GB.
3043 #
3044 # If unspecified, the default disk size is 100GB.
3045 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to # The workload metadata configuration for this node.
3046 # workloads on the node pool.
3047 &quot;nodeMetadata&quot;: &quot;A String&quot;, # NodeMetadata is the configuration for how to expose metadata to the
3048 # workloads running on the node.
3049 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running
3050 # on the node pool.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003051 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003052 &quot;accelerators&quot;: [ # A list of hardware accelerators to be attached to each node.
3053 # See https://cloud.google.com/compute/docs/gpus for more information about
3054 # support for GPUs.
3055 { # AcceleratorConfig represents a Hardware Accelerator request.
3056 &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of the accelerator cards exposed to an instance.
3057 &quot;acceleratorType&quot;: &quot;A String&quot;, # The accelerator type resource name. List of supported accelerators
3058 # [here](https://cloud.google.com/compute/docs/gpus)
3059 },
3060 ],
3061 &quot;machineType&quot;: &quot;A String&quot;, # The name of a Google Compute Engine [machine
Dan O'Mearadd494642020-05-01 07:42:23 -07003062 # type](https://cloud.google.com/compute/docs/machine-types) (e.g.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003063 # `n1-standard-1`).
3064 #
3065 # If unspecified, the default machine type is
3066 # `n1-standard-1`.
Bu Sun Kim65020912020-05-20 12:08:20 -07003067 &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;)
3068 #
3069 # If unspecified, the default disk type is &#x27;pd-standard&#x27;
3070 &quot;bootDiskKmsKey&quot;: &quot;A String&quot;, #
3071 # The Customer Managed Encryption Key used to encrypt the boot disk attached
3072 # to each node in the node pool. This should be of the form
3073 # projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
3074 # For more information about protecting resources with Cloud KMS Keys please
3075 # see:
3076 # https://cloud.google.com/compute/docs/disks/customer-managed-encryption
3077 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
3078 &quot;enableSecureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled.
3079 #
3080 # Secure Boot helps ensure that the system only runs authentic software by
3081 # verifying the digital signature of all boot components, and halting the
3082 # boot process if signature verification fails.
3083 &quot;enableIntegrityMonitoring&quot;: True or False, # Defines whether the instance has integrity monitoring enabled.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003084 #
3085 # Enables monitoring and attestation of the boot integrity of the instance.
3086 # The attestation is performed against the integrity policy baseline. This
3087 # baseline is initially derived from the implicitly trusted boot image when
3088 # the instance is created.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003089 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003090 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used by this instance. The instance may be
3091 # scheduled on the specified or newer CPU platform. Applicable values are the
3092 # friendly names of CPU platforms, such as
3093 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Haswell&amp;quot;&lt;/code&gt; or
3094 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Sandy Bridge&amp;quot;&lt;/code&gt;. For more
3095 # information, read [how to specify min CPU
3096 # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
3097 &quot;preemptible&quot;: True or False, # Whether the nodes are created as preemptible VM instances. See:
3098 # https://cloud.google.com/compute/docs/instances/preemptible for more
3099 # inforamtion about preemptible VM instances.
3100 &quot;localSsdCount&quot;: 42, # The number of local SSD disks to be attached to the node.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003101 #
Bu Sun Kim65020912020-05-20 12:08:20 -07003102 # The limit for this value is dependent upon the maximum number of
3103 # disks available on a machine per zone. See:
3104 # https://cloud.google.com/compute/docs/disks/local-ssd
3105 # for more information.
3106 &quot;sandboxConfig&quot;: { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node.
3107 &quot;type&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node.
3108 &quot;sandboxType&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node (e.g. &#x27;gvisor&#x27;)
3109 },
3110 &quot;metadata&quot;: { # The metadata key/value pairs assigned to instances in the cluster.
3111 #
3112 # Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
3113 # in length. These are reflected as part of a URL in the metadata server.
3114 # Additionally, to avoid ambiguity, keys must not conflict with any other
3115 # metadata keys for the project or be one of the reserved keys:
3116 # &quot;cluster-location&quot;
3117 # &quot;cluster-name&quot;
3118 # &quot;cluster-uid&quot;
3119 # &quot;configure-sh&quot;
3120 # &quot;containerd-configure-sh&quot;
3121 # &quot;enable-oslogin&quot;
3122 # &quot;gci-ensure-gke-docker&quot;
3123 # &quot;gci-metrics-enabled&quot;
3124 # &quot;gci-update-strategy&quot;
3125 # &quot;instance-template&quot;
3126 # &quot;kube-env&quot;
3127 # &quot;startup-script&quot;
3128 # &quot;user-data&quot;
3129 # &quot;disable-address-manager&quot;
3130 # &quot;windows-startup-script-ps1&quot;
3131 # &quot;common-psm1&quot;
3132 # &quot;k8s-node-setup-psm1&quot;
3133 # &quot;install-ssh-psm1&quot;
3134 # &quot;user-profile-psm1&quot;
3135 # &quot;serial-port-logging-enable&quot;
3136 # Values are free-form strings, and only have meaning as interpreted by
3137 # the image running in the instance. The only restriction placed on them is
3138 # that each value&#x27;s size must be less than or equal to 32 KB.
3139 #
3140 # The total size of all keys and values must be less than 512 KB.
3141 &quot;a_key&quot;: &quot;A String&quot;,
3142 },
3143 &quot;reservationAffinity&quot;: { # [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) # The optional reservation affinity. Setting this field will apply
3144 # the specified [Zonal Compute
3145 # Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
3146 # to this node pool.
3147 # is the configuration of desired reservation which instances could take
3148 # capacity from.
3149 &quot;key&quot;: &quot;A String&quot;, # Corresponds to the label key of a reservation resource. To target a
3150 # SPECIFIC_RESERVATION by name, specify &quot;googleapis.com/reservation-name&quot; as
3151 # the key and specify the name of your reservation as its value.
3152 &quot;values&quot;: [ # Corresponds to the label value(s) of reservation resource(s).
3153 &quot;A String&quot;,
3154 ],
3155 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Corresponds to the type of reservation consumption.
3156 },
3157 &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 -07003158 # valid sources or targets for network firewalls and are specified by
3159 # the client during cluster or node pool creation. Each tag within the list
3160 # must comply with RFC1035.
Bu Sun Kim65020912020-05-20 12:08:20 -07003161 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003162 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003163 &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 -07003164 # Specify the email address of the Service Account; otherwise, if no Service
Bu Sun Kim65020912020-05-20 12:08:20 -07003165 # Account is specified, the &quot;default&quot; service account is used.
3166 &quot;imageType&quot;: &quot;A String&quot;, # The image type to use for this node. Note that for a given image type,
3167 # the latest version of it will be used.
3168 &quot;oauthScopes&quot;: [ # The set of Google API scopes to be made available on all of the
3169 # node VMs under the &quot;default&quot; service account.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003170 #
3171 # The following scopes are recommended, but not required, and by default are
3172 # not included:
3173 #
3174 # * `https://www.googleapis.com/auth/compute` is required for mounting
3175 # persistent storage on your nodes.
3176 # * `https://www.googleapis.com/auth/devstorage.read_only` is required for
3177 # communicating with **gcr.io**
Dan O'Mearadd494642020-05-01 07:42:23 -07003178 # (the [Google Container
3179 # Registry](https://cloud.google.com/container-registry/)).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003180 #
3181 # If unspecified, no scopes are added, unless Cloud Logging or Cloud
3182 # Monitoring are enabled, in which case their required scopes will be added.
Bu Sun Kim65020912020-05-20 12:08:20 -07003183 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003184 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003185 &quot;taints&quot;: [ # List of kubernetes taints to be applied to each node.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003186 #
3187 # For more information, including usage and the valid values, see:
3188 # https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
3189 { # Kubernetes taint is comprised of three fields: key, value, and effect. Effect
3190 # can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute.
3191 #
Bu Sun Kim65020912020-05-20 12:08:20 -07003192 # See
3193 # [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration)
3194 # for more information, including usage and the valid values.
3195 &quot;key&quot;: &quot;A String&quot;, # Key for taint.
3196 &quot;value&quot;: &quot;A String&quot;, # Value for taint.
3197 &quot;effect&quot;: &quot;A String&quot;, # Effect for taint.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003198 },
3199 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003200 &quot;labels&quot;: { # The map of Kubernetes labels (key/value pairs) to be applied to each node.
3201 # These will added in addition to any default label(s) that
3202 # Kubernetes may apply to the node.
3203 # In case of conflict in label keys, the applied set may differ depending on
3204 # the Kubernetes version -- it&#x27;s best to assume the behavior is undefined
3205 # and conflicts should be avoided.
3206 # For more information, including usage and the valid values, see:
3207 # https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
3208 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003209 },
3210 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003211 &quot;name&quot;: &quot;A String&quot;, # The name of the node pool.
3212 &quot;maxPodsConstraint&quot;: { # Constraints applied to pods. # The constraint on the maximum number of pods that can be run
3213 # simultaneously on a node in the node pool.
3214 &quot;maxPodsPerNode&quot;: &quot;A String&quot;, # Constraint enforced on the max num of pods per node.
3215 },
3216 &quot;management&quot;: { # NodeManagement defines the set of node management services turned on for the # NodeManagement configuration for this NodePool.
3217 # node pool.
3218 &quot;autoUpgrade&quot;: True or False, # Whether the nodes will be automatically upgraded.
3219 &quot;autoRepair&quot;: True or False, # Whether the nodes will be automatically repaired.
3220 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool.
3221 # the Auto Upgrades will proceed.
3222 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
3223 # with the description of the upgrade.
3224 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
3225 # with the approximate start time for the upgrades, in
3226 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
3227 },
3228 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003229 },
3230 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003231 &quot;selfLink&quot;: &quot;A String&quot;, # [Output only] Server-defined URL for the resource.
3232 &quot;servicesIpv4Cidr&quot;: &quot;A String&quot;, # [Output only] The IP address range of the Kubernetes services in
3233 # this cluster, in
3234 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
3235 # notation (e.g. `1.2.3.4/29`). Service addresses are
3236 # typically put in the last `/16` from the container CIDR.
3237 &quot;networkPolicy&quot;: { # Configuration options for the NetworkPolicy feature. # Configuration options for the NetworkPolicy feature.
3238 # https://kubernetes.io/docs/concepts/services-networking/networkpolicies/
3239 &quot;enabled&quot;: True or False, # Whether network policy is enabled on the cluster.
3240 &quot;provider&quot;: &quot;A String&quot;, # The selected network policy provider.
3241 },
3242 &quot;releaseChannel&quot;: { # ReleaseChannel indicates which release channel a cluster is # Release channel configuration.
3243 # subscribed to. Release channels are arranged in order of risk and
3244 # frequency of updates.
3245 #
3246 # When a cluster is subscribed to a release channel, Google maintains
3247 # both the master version and the node version. Node auto-upgrade
3248 # defaults to true and cannot be disabled. Updates to version related
3249 # fields (e.g. current_master_version) return an error.
3250 &quot;channel&quot;: &quot;A String&quot;, # channel specifies which release channel the cluster is subscribed to.
3251 },
3252 &quot;enableKubernetesAlpha&quot;: True or False, # Kubernetes alpha features are enabled on this cluster. This includes alpha
3253 # API groups (e.g. v1beta1) and features that may not be production ready in
3254 # the kubernetes version of the master and nodes.
3255 # The cluster has no SLA for uptime and master/node upgrades are disabled.
3256 # Alpha enabled clusters are automatically deleted thirty days after
3257 # creation.
3258 &quot;description&quot;: &quot;A String&quot;, # An optional description of this cluster.
3259 &quot;conditions&quot;: [ # Which conditions caused the current cluster state.
3260 { # StatusCondition describes why a cluster or a node pool has a certain status
3261 # (e.g., ERROR or DEGRADED).
3262 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
3263 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
3264 },
3265 ],
3266 &quot;privateCluster&quot;: True or False, # If this is a private cluster setup. Private clusters are clusters that, by
3267 # default have no external IP addresses on the nodes and where nodes and the
3268 # master communicate over private IP addresses.
3269 # This field is deprecated, use private_cluster_config.enable_private_nodes
3270 # instead.
3271 &quot;currentNodeCount&quot;: 42, # [Output only] The number of nodes currently in the cluster. Deprecated.
3272 # Call Kubernetes API directly to retrieve node information.
3273 &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 -07003274 # Currently available options:
3275 #
Bu Sun Kim65020912020-05-20 12:08:20 -07003276 # * &quot;monitoring.googleapis.com/kubernetes&quot; - The Cloud Monitoring
Dan O'Mearadd494642020-05-01 07:42:23 -07003277 # service with a Kubernetes-native resource model
3278 # * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
3279 # longer available as of GKE 1.15).
3280 # * `none` - No metrics will be exported from the cluster.
3281 #
3282 # If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
3283 # used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
Bu Sun Kim65020912020-05-20 12:08:20 -07003284 &quot;databaseEncryption&quot;: { # Configuration of etcd encryption. # Configuration of etcd encryption.
3285 &quot;state&quot;: &quot;A String&quot;, # Denotes the state of etcd encryption.
3286 &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 -07003287 # Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003288 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003289 &quot;binaryAuthorization&quot;: { # Configuration for Binary Authorization. # Configuration for Binary Authorization.
3290 &quot;enabled&quot;: True or False, # Enable Binary Authorization for this cluster. If enabled, all container
3291 # images will be validated by Google Binauthz.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003292 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003293 &quot;tpuIpv4CidrBlock&quot;: &quot;A String&quot;, # [Output only] The IP address range of the Cloud TPUs in this cluster, in
3294 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
3295 # notation (e.g. `1.2.3.4/29`).
3296 &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
3297 # policies.
3298 # policies.
3299 &quot;identityNamespace&quot;: &quot;A String&quot;, # IAM Identity Namespace to attach all Kubernetes Service Accounts to.
3300 &quot;workloadPool&quot;: &quot;A String&quot;, # The workload pool to attach all Kubernetes service accounts to.
3301 },
3302 &quot;zone&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07003303 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
3304 # cluster resides. This field is deprecated, use location instead.
Bu Sun Kim65020912020-05-20 12:08:20 -07003305 &quot;loggingService&quot;: &quot;A String&quot;, # The logging service the cluster should use to write logs.
3306 # Currently available options:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003307 #
Bu Sun Kim65020912020-05-20 12:08:20 -07003308 # * `logging.googleapis.com/kubernetes` - The Cloud Logging
3309 # service with a Kubernetes-native resource model
3310 # * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
3311 # available as of GKE 1.15).
3312 # * `none` - no logs will be exported from the cluster.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003313 #
Bu Sun Kim65020912020-05-20 12:08:20 -07003314 # If left as an empty string,`logging.googleapis.com/kubernetes` will be
3315 # used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
3316 &quot;expireTime&quot;: &quot;A String&quot;, # [Output only] The time the cluster will be automatically
3317 # deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
3318 &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 -07003319 # For requests, this field should only be used in lieu of a
Bu Sun Kim65020912020-05-20 12:08:20 -07003320 # &quot;node_pool&quot; object, since this configuration (along with the
3321 # &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 -07003322 # auto-generated name. Do not use this and a node_pool at the same time.
3323 # For responses, this field will be populated with the node configuration of
3324 # the first node pool. (For configuration of each node pool, see
3325 # `node_pool.config`)
3326 #
3327 # If unspecified, the defaults are used.
3328 # This field is deprecated, use node_pool.config instead.
Bu Sun Kim65020912020-05-20 12:08:20 -07003329 &quot;diskSizeGb&quot;: 42, # Size of the disk attached to each node, specified in GB.
3330 # The smallest allowed disk size is 10GB.
3331 #
3332 # If unspecified, the default disk size is 100GB.
3333 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to # The workload metadata configuration for this node.
3334 # workloads on the node pool.
3335 &quot;nodeMetadata&quot;: &quot;A String&quot;, # NodeMetadata is the configuration for how to expose metadata to the
3336 # workloads running on the node.
3337 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running
3338 # on the node pool.
Dan O'Mearadd494642020-05-01 07:42:23 -07003339 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003340 &quot;accelerators&quot;: [ # A list of hardware accelerators to be attached to each node.
3341 # See https://cloud.google.com/compute/docs/gpus for more information about
3342 # support for GPUs.
3343 { # AcceleratorConfig represents a Hardware Accelerator request.
3344 &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of the accelerator cards exposed to an instance.
3345 &quot;acceleratorType&quot;: &quot;A String&quot;, # The accelerator type resource name. List of supported accelerators
3346 # [here](https://cloud.google.com/compute/docs/gpus)
3347 },
3348 ],
3349 &quot;machineType&quot;: &quot;A String&quot;, # The name of a Google Compute Engine [machine
Dan O'Mearadd494642020-05-01 07:42:23 -07003350 # type](https://cloud.google.com/compute/docs/machine-types) (e.g.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003351 # `n1-standard-1`).
3352 #
3353 # If unspecified, the default machine type is
3354 # `n1-standard-1`.
Bu Sun Kim65020912020-05-20 12:08:20 -07003355 &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;)
3356 #
3357 # If unspecified, the default disk type is &#x27;pd-standard&#x27;
3358 &quot;bootDiskKmsKey&quot;: &quot;A String&quot;, #
3359 # The Customer Managed Encryption Key used to encrypt the boot disk attached
3360 # to each node in the node pool. This should be of the form
3361 # projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
3362 # For more information about protecting resources with Cloud KMS Keys please
3363 # see:
3364 # https://cloud.google.com/compute/docs/disks/customer-managed-encryption
3365 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
3366 &quot;enableSecureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled.
3367 #
3368 # Secure Boot helps ensure that the system only runs authentic software by
3369 # verifying the digital signature of all boot components, and halting the
3370 # boot process if signature verification fails.
3371 &quot;enableIntegrityMonitoring&quot;: True or False, # Defines whether the instance has integrity monitoring enabled.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003372 #
3373 # Enables monitoring and attestation of the boot integrity of the instance.
3374 # The attestation is performed against the integrity policy baseline. This
3375 # baseline is initially derived from the implicitly trusted boot image when
3376 # the instance is created.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003377 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003378 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used by this instance. The instance may be
3379 # scheduled on the specified or newer CPU platform. Applicable values are the
3380 # friendly names of CPU platforms, such as
3381 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Haswell&amp;quot;&lt;/code&gt; or
3382 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Sandy Bridge&amp;quot;&lt;/code&gt;. For more
3383 # information, read [how to specify min CPU
3384 # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
3385 &quot;preemptible&quot;: True or False, # Whether the nodes are created as preemptible VM instances. See:
3386 # https://cloud.google.com/compute/docs/instances/preemptible for more
3387 # inforamtion about preemptible VM instances.
3388 &quot;localSsdCount&quot;: 42, # The number of local SSD disks to be attached to the node.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003389 #
Bu Sun Kim65020912020-05-20 12:08:20 -07003390 # The limit for this value is dependent upon the maximum number of
3391 # disks available on a machine per zone. See:
3392 # https://cloud.google.com/compute/docs/disks/local-ssd
3393 # for more information.
3394 &quot;sandboxConfig&quot;: { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node.
3395 &quot;type&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node.
3396 &quot;sandboxType&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node (e.g. &#x27;gvisor&#x27;)
3397 },
3398 &quot;metadata&quot;: { # The metadata key/value pairs assigned to instances in the cluster.
3399 #
3400 # Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
3401 # in length. These are reflected as part of a URL in the metadata server.
3402 # Additionally, to avoid ambiguity, keys must not conflict with any other
3403 # metadata keys for the project or be one of the reserved keys:
3404 # &quot;cluster-location&quot;
3405 # &quot;cluster-name&quot;
3406 # &quot;cluster-uid&quot;
3407 # &quot;configure-sh&quot;
3408 # &quot;containerd-configure-sh&quot;
3409 # &quot;enable-oslogin&quot;
3410 # &quot;gci-ensure-gke-docker&quot;
3411 # &quot;gci-metrics-enabled&quot;
3412 # &quot;gci-update-strategy&quot;
3413 # &quot;instance-template&quot;
3414 # &quot;kube-env&quot;
3415 # &quot;startup-script&quot;
3416 # &quot;user-data&quot;
3417 # &quot;disable-address-manager&quot;
3418 # &quot;windows-startup-script-ps1&quot;
3419 # &quot;common-psm1&quot;
3420 # &quot;k8s-node-setup-psm1&quot;
3421 # &quot;install-ssh-psm1&quot;
3422 # &quot;user-profile-psm1&quot;
3423 # &quot;serial-port-logging-enable&quot;
3424 # Values are free-form strings, and only have meaning as interpreted by
3425 # the image running in the instance. The only restriction placed on them is
3426 # that each value&#x27;s size must be less than or equal to 32 KB.
3427 #
3428 # The total size of all keys and values must be less than 512 KB.
3429 &quot;a_key&quot;: &quot;A String&quot;,
3430 },
3431 &quot;reservationAffinity&quot;: { # [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) # The optional reservation affinity. Setting this field will apply
3432 # the specified [Zonal Compute
3433 # Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
3434 # to this node pool.
3435 # is the configuration of desired reservation which instances could take
3436 # capacity from.
3437 &quot;key&quot;: &quot;A String&quot;, # Corresponds to the label key of a reservation resource. To target a
3438 # SPECIFIC_RESERVATION by name, specify &quot;googleapis.com/reservation-name&quot; as
3439 # the key and specify the name of your reservation as its value.
3440 &quot;values&quot;: [ # Corresponds to the label value(s) of reservation resource(s).
3441 &quot;A String&quot;,
3442 ],
3443 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Corresponds to the type of reservation consumption.
3444 },
3445 &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 -07003446 # valid sources or targets for network firewalls and are specified by
3447 # the client during cluster or node pool creation. Each tag within the list
3448 # must comply with RFC1035.
Bu Sun Kim65020912020-05-20 12:08:20 -07003449 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003450 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003451 &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 -07003452 # Specify the email address of the Service Account; otherwise, if no Service
Bu Sun Kim65020912020-05-20 12:08:20 -07003453 # Account is specified, the &quot;default&quot; service account is used.
3454 &quot;imageType&quot;: &quot;A String&quot;, # The image type to use for this node. Note that for a given image type,
3455 # the latest version of it will be used.
3456 &quot;oauthScopes&quot;: [ # The set of Google API scopes to be made available on all of the
3457 # node VMs under the &quot;default&quot; service account.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003458 #
3459 # The following scopes are recommended, but not required, and by default are
3460 # not included:
3461 #
3462 # * `https://www.googleapis.com/auth/compute` is required for mounting
3463 # persistent storage on your nodes.
3464 # * `https://www.googleapis.com/auth/devstorage.read_only` is required for
3465 # communicating with **gcr.io**
Dan O'Mearadd494642020-05-01 07:42:23 -07003466 # (the [Google Container
3467 # Registry](https://cloud.google.com/container-registry/)).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003468 #
3469 # If unspecified, no scopes are added, unless Cloud Logging or Cloud
3470 # Monitoring are enabled, in which case their required scopes will be added.
Bu Sun Kim65020912020-05-20 12:08:20 -07003471 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003472 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003473 &quot;taints&quot;: [ # List of kubernetes taints to be applied to each node.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003474 #
3475 # For more information, including usage and the valid values, see:
3476 # https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
3477 { # Kubernetes taint is comprised of three fields: key, value, and effect. Effect
3478 # can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute.
3479 #
Bu Sun Kim65020912020-05-20 12:08:20 -07003480 # See
3481 # [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration)
3482 # for more information, including usage and the valid values.
3483 &quot;key&quot;: &quot;A String&quot;, # Key for taint.
3484 &quot;value&quot;: &quot;A String&quot;, # Value for taint.
3485 &quot;effect&quot;: &quot;A String&quot;, # Effect for taint.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003486 },
3487 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003488 &quot;labels&quot;: { # The map of Kubernetes labels (key/value pairs) to be applied to each node.
3489 # These will added in addition to any default label(s) that
3490 # Kubernetes may apply to the node.
3491 # In case of conflict in label keys, the applied set may differ depending on
3492 # the Kubernetes version -- it&#x27;s best to assume the behavior is undefined
3493 # and conflicts should be avoided.
3494 # For more information, including usage and the valid values, see:
3495 # https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
3496 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003497 },
3498 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003499 &quot;status&quot;: &quot;A String&quot;, # [Output only] The current status of this cluster.
3500 &quot;tpuConfig&quot;: { # Configuration for Cloud TPU. # Configuration for Cloud TPU support;
3501 &quot;enabled&quot;: True or False, # Whether Cloud TPU integration is enabled or not.
3502 &quot;ipv4CidrBlock&quot;: &quot;A String&quot;, # IPv4 CIDR block reserved for Cloud TPU in the VPC.
3503 &quot;useServiceNetworking&quot;: True or False, # Whether to use service networking for Cloud TPU or not.
3504 },
3505 &quot;networkConfig&quot;: { # NetworkConfig reports the relative names of network &amp; subnetwork. # Configuration for cluster networking.
3506 &quot;subnetwork&quot;: &quot;A String&quot;, # Output only. The relative name of the Google Compute Engine
3507 # [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the
3508 # cluster is connected. Example:
3509 # projects/my-project/regions/us-central1/subnetworks/my-subnet
3510 &quot;network&quot;: &quot;A String&quot;, # Output only. The relative name of the Google Compute Engine
3511 # network(https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
3512 # to which the cluster is connected. Example:
3513 # projects/my-project/global/networks/my-network
3514 &quot;enableIntraNodeVisibility&quot;: True or False, # Whether Intra-node visibility is enabled for this cluster.
3515 # This makes same node pod to pod traffic visible for VPC network.
3516 },
3517 &quot;name&quot;: &quot;A String&quot;, # The name of this cluster. The name must be unique within this project
3518 # and location (e.g. zone or region), and can be up to 40 characters with
3519 # the following restrictions:
3520 #
3521 # * Lowercase letters, numbers, and hyphens only.
3522 # * Must start with a letter.
3523 # * Must end with a number or a letter.
3524 &quot;endpoint&quot;: &quot;A String&quot;, # [Output only] The IP address of this cluster&#x27;s master endpoint.
3525 # The endpoint can be accessed from the internet at
3526 # `https://username:password@endpoint/`.
3527 #
3528 # See the `masterAuth` property of this resource for username and
3529 # password information.
3530 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
3531 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
3532 # or
3533 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
3534 # in which the cluster resides.
3535 &quot;createTime&quot;: &quot;A String&quot;, # [Output only] The time the cluster was created, in
3536 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
3537 &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 -07003538 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
3539 # notation (e.g. `10.96.0.0/14`). Leave blank to have
3540 # one automatically chosen or specify a `/14` block in `10.0.0.0/8`.
Bu Sun Kim65020912020-05-20 12:08:20 -07003541 &quot;autoscaling&quot;: { # ClusterAutoscaling contains global, per-cluster information # Cluster-level autoscaling configuration.
3542 # required by Cluster Autoscaler to automatically adjust
3543 # the size of the cluster and create/delete
3544 # node pools based on the current needs.
3545 &quot;resourceLimits&quot;: [ # Contains global constraints regarding minimum and maximum
3546 # amount of resources in the cluster.
3547 { # Contains information about amount of some resource in the cluster.
3548 # For memory, value should be in GB.
3549 &quot;maximum&quot;: &quot;A String&quot;, # Maximum amount of the resource in the cluster.
3550 &quot;resourceType&quot;: &quot;A String&quot;, # Resource name &quot;cpu&quot;, &quot;memory&quot; or gpu-specific string.
3551 &quot;minimum&quot;: &quot;A String&quot;, # Minimum amount of the resource in the cluster.
3552 },
3553 ],
3554 &quot;autoscalingProfile&quot;: &quot;A String&quot;, # Defines autoscaling behaviour.
3555 &quot;enableNodeAutoprovisioning&quot;: True or False, # Enables automatic node pool creation and deletion.
3556 &quot;autoprovisioningNodePoolDefaults&quot;: { # AutoprovisioningNodePoolDefaults contains defaults for a node pool created # AutoprovisioningNodePoolDefaults contains defaults for a node pool
3557 # created by NAP.
3558 # by NAP.
3559 &quot;oauthScopes&quot;: [ # Scopes that are used by NAP when creating node pools. If oauth_scopes are
3560 # specified, service_account should be empty.
3561 &quot;A String&quot;,
3562 ],
3563 &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.
3564 # node pool.
3565 &quot;autoUpgrade&quot;: True or False, # Whether the nodes will be automatically upgraded.
3566 &quot;autoRepair&quot;: True or False, # Whether the nodes will be automatically repaired.
3567 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool.
3568 # the Auto Upgrades will proceed.
3569 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
3570 # with the description of the upgrade.
3571 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
3572 # with the approximate start time for the upgrades, in
3573 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
3574 },
3575 },
3576 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used for NAP created node pools.
3577 # The instance may be scheduled on the specified or newer CPU platform.
3578 # Applicable values are the friendly names of CPU platforms, such as
3579 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Haswell&amp;quot;&lt;/code&gt; or
3580 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Sandy Bridge&amp;quot;&lt;/code&gt;. For more
3581 # information, read [how to specify min CPU
3582 # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
3583 # To unset the min cpu platform field pass &quot;automatic&quot; as field value.
3584 &quot;upgradeSettings&quot;: { # These upgrade settings control the level of parallelism and the level of # Specifies the upgrade settings for NAP created node pools
3585 # disruption caused by an upgrade.
3586 #
3587 # maxUnavailable controls the number of nodes that can be simultaneously
3588 # unavailable.
3589 #
3590 # maxSurge controls the number of additional nodes that can be added to the
3591 # node pool temporarily for the time of the upgrade to increase the number of
3592 # available nodes.
3593 #
3594 # (maxUnavailable + maxSurge) determines the level of parallelism (how many
3595 # nodes are being upgraded at the same time).
3596 #
3597 # Note: upgrades inevitably introduce some disruption since workloads need to
3598 # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
3599 # this holds true. (Disruption stays within the limits of
3600 # PodDisruptionBudget, if it is configured.)
3601 #
3602 # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
3603 # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
3604 # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
3605 # down 3 old (not yet upgraded) nodes at the same time. This ensures that
3606 # there are always at least 4 nodes available.
3607 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size
3608 # of the node pool during the upgrade process.
3609 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during
3610 # the upgrade process. A node is considered available if its status is
3611 # Ready.
3612 },
3613 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs. If
3614 # service_account is specified, scopes should be empty.
3615 },
3616 &quot;autoprovisioningLocations&quot;: [ # The list of Google Compute Engine
3617 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
3618 # NodePool&#x27;s nodes can be created by NAP.
3619 &quot;A String&quot;,
3620 ],
Dan O'Mearadd494642020-05-01 07:42:23 -07003621 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003622 &quot;initialNodeCount&quot;: 42, # The number of nodes to create in this cluster. You must ensure that your
3623 # 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 -07003624 # is sufficient for this number of instances. You must also have available
3625 # firewall and routes quota.
3626 # For requests, this field should only be used in lieu of a
Bu Sun Kim65020912020-05-20 12:08:20 -07003627 # &quot;node_pool&quot; object, since this configuration (along with the
3628 # &quot;node_config&quot;) will be used to create a &quot;NodePool&quot; object with an
Dan O'Mearadd494642020-05-01 07:42:23 -07003629 # auto-generated name. Do not use this and a node_pool at the same time.
3630 #
3631 # This field is deprecated, use node_pool.initial_node_count instead.
Bu Sun Kim65020912020-05-20 12:08:20 -07003632 &quot;instanceGroupUrls&quot;: [ # Deprecated. Use node_pools.instance_group_urls.
3633 &quot;A String&quot;,
3634 ],
3635 &quot;privateClusterConfig&quot;: { # Configuration options for private clusters. # Configuration for private cluster.
3636 &quot;privateEndpoint&quot;: &quot;A String&quot;, # Output only. The internal IP address of this cluster&#x27;s master endpoint.
3637 &quot;enablePrivateEndpoint&quot;: True or False, # Whether the master&#x27;s internal IP address is used as the cluster endpoint.
3638 &quot;peeringName&quot;: &quot;A String&quot;, # Output only. The peering name in the customer VPC used by this cluster.
3639 &quot;masterGlobalAccessConfig&quot;: { # Configuration for controlling master global access settings. # Controls master global access settings.
3640 &quot;enabled&quot;: True or False, # Whenever master is accessible globally or not.
3641 },
3642 &quot;publicEndpoint&quot;: &quot;A String&quot;, # Output only. The external IP address of this cluster&#x27;s master endpoint.
3643 &quot;enablePrivateNodes&quot;: True or False, # Whether nodes have internal IP addresses only. If enabled, all nodes are
3644 # given only RFC 1918 private addresses and communicate with the master via
3645 # private networking.
3646 &quot;masterIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP range in CIDR notation to use for the hosted master network. This
3647 # range will be used for assigning internal IP addresses to the master or
3648 # set of masters, as well as the ILB VIP. This range must not overlap with
3649 # any other ranges in use within the cluster&#x27;s network.
3650 },
3651 &quot;shieldedNodes&quot;: { # Configuration of Shielded Nodes feature. # Shielded Nodes configuration.
3652 &quot;enabled&quot;: True or False, # Whether Shielded Nodes features are enabled on all nodes in this cluster.
3653 },
3654 &quot;verticalPodAutoscaling&quot;: { # VerticalPodAutoscaling contains global, per-cluster information # Cluster-level Vertical Pod Autoscaling configuration.
3655 # required by Vertical Pod Autoscaler to automatically adjust
3656 # the resources of pods controlled by it.
3657 &quot;enabled&quot;: True or False, # Enables vertical pod autoscaling.
3658 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003659 },
3660 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003661 &quot;missingZones&quot;: [ # If any zones are listed here, the list of clusters returned
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003662 # may be missing those zones.
Bu Sun Kim65020912020-05-20 12:08:20 -07003663 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003664 ],
3665 }</pre>
3666</div>
3667
3668<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07003669 <code class="details" id="setAddons">setAddons(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003670 <pre>Sets the addons for a specific cluster.
3671
3672Args:
3673 name: string, The name (project, location, cluster) of the cluster to set addons.
Bu Sun Kim65020912020-05-20 12:08:20 -07003674Specified in the format `projects/*/locations/*/clusters/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07003675 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003676 The object takes the form of:
3677
3678{ # SetAddonsRequest sets the addons associated with the cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -07003679 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster) of the cluster to set addons.
3680 # Specified in the format `projects/*/locations/*/clusters/*`.
3681 &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 -07003682 # number](https://support.google.com/cloud/answer/6158840).
3683 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07003684 &quot;zone&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the Google Compute Engine
3685 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
3686 # cluster resides. This field has been deprecated and replaced by the name
3687 # field.
3688 &quot;clusterId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the cluster to upgrade.
3689 # This field has been deprecated and replaced by the name field.
3690 &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 -07003691 # cluster.
3692 # cluster, enabling additional functionality.
Bu Sun Kim65020912020-05-20 12:08:20 -07003693 &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 -07003694 # is enabled or not on the Master, it does not track whether network policy
3695 # is enabled for the nodes.
3696 # is enabled or not on the Master, it does not track whether network policy
3697 # is enabled for the nodes.
Bu Sun Kim65020912020-05-20 12:08:20 -07003698 &quot;disabled&quot;: True or False, # Whether NetworkPolicy is enabled for this cluster.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003699 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003700 &quot;configConnectorConfig&quot;: { # Configuration options for the Config Connector add-on. # Configuration for the ConfigConnector add-on, a Kubernetes
3701 # extension to manage hosted GCP services through the Kubernetes API
3702 &quot;enabled&quot;: True or False, # Whether Cloud Connector is enabled for this cluster.
3703 },
3704 &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 -07003705 # enabled in order to enable Cloud Run addon. This option can only be enabled
3706 # at cluster creation time.
Bu Sun Kim65020912020-05-20 12:08:20 -07003707 &quot;disabled&quot;: True or False, # Whether Cloud Run addon is enabled for this cluster.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003708 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003709 &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 -07003710 # increases or decreases the number of replica pods a replication controller
3711 # has based on the resource usage of the existing pods.
3712 # increases or decreases the number of replica pods a replication controller
3713 # has based on the resource usage of the existing pods.
Bu Sun Kim65020912020-05-20 12:08:20 -07003714 &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 -07003715 # When enabled, it ensures that metrics are collected into Stackdriver
3716 # Monitoring.
3717 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003718 &quot;httpLoadBalancing&quot;: { # Configuration options for the HTTP (L7) load balancing controller addon, # Configuration for the HTTP (L7) load balancing controller addon, which
3719 # makes it easy to set up HTTP load balancers for services in a cluster.
3720 # which makes it easy to set up HTTP load balancers for services in a cluster.
3721 &quot;disabled&quot;: True or False, # Whether the HTTP Load Balancing controller is enabled in the cluster.
3722 # When enabled, it runs a small pod in the cluster that manages the load
3723 # balancers.
Dan O'Mearadd494642020-05-01 07:42:23 -07003724 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003725 &quot;kubernetesDashboard&quot;: { # Configuration for the Kubernetes Dashboard. # Configuration for the Kubernetes Dashboard.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003726 # This addon is deprecated, and will be disabled in 1.15. It is recommended
3727 # to use the Cloud Console to manage and monitor your Kubernetes clusters,
3728 # workloads and applications. For more information, see:
3729 # https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
Bu Sun Kim65020912020-05-20 12:08:20 -07003730 &quot;disabled&quot;: True or False, # Whether the Kubernetes Dashboard is enabled for this cluster.
3731 },
3732 &quot;dnsCacheConfig&quot;: { # Configuration for NodeLocal DNSCache # Configuration for NodeLocalDNS, a dns cache running on cluster nodes
3733 &quot;enabled&quot;: True or False, # Whether NodeLocal DNSCache is enabled for this cluster.
3734 },
3735 &quot;kalmConfig&quot;: { # Configuration options for the KALM addon. # Configuration for the KALM addon, which manages the lifecycle of k8s
3736 # applications.
3737 &quot;enabled&quot;: True or False, # Whether KALM is enabled for this cluster.
3738 },
3739 &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.
3740 # enabled at cluster creation time.
3741 &quot;enabled&quot;: True or False, # Whether the Compute Engine PD CSI driver is enabled for this cluster.
3742 },
3743 &quot;istioConfig&quot;: { # Configuration options for Istio addon. # Configuration for Istio, an open platform to connect, manage, and secure
3744 # microservices.
3745 &quot;disabled&quot;: True or False, # Whether Istio is enabled for this cluster.
3746 &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 -07003747 },
3748 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003749 }
3750
3751 x__xgafv: string, V1 error format.
3752 Allowed values
3753 1 - v1 error format
3754 2 - v2 error format
3755
3756Returns:
3757 An object of the form:
3758
3759 { # This operation resource represents operations that may have happened or are
3760 # happening on the cluster. All fields are output only.
Bu Sun Kim65020912020-05-20 12:08:20 -07003761 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003762 { # StatusCondition describes why a cluster or a node pool has a certain status
3763 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07003764 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
3765 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003766 },
3767 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003768 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07003769 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
3770 # or
3771 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
3772 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07003773 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
3774 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
3775 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
3776 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
3777 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
3778 { # StatusCondition describes why a cluster or a node pool has a certain status
3779 # (e.g., ERROR or DEGRADED).
3780 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
3781 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
3782 },
3783 ],
3784 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
3785 &quot;stages&quot;: [ # Substages of an operation or a stage.
3786 # Object with schema name: OperationProgress
3787 ],
3788 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
3789 # Unset for single-stage operations.
3790 &quot;metrics&quot;: [ # Progress metric bundle, for example:
3791 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
3792 # {name: &quot;nodes total&quot;, int_value: 32}]
3793 # or
3794 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
3795 # {name: &quot;progress scale&quot;, double_value: 1.0}]
3796 { # Progress metric is (string, int|float|string) pair.
3797 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
3798 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
3799 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
3800 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
3801 },
3802 ],
3803 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
3804 # Unset for single-stage operations.
3805 },
3806 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
3807 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
3808 # operation is taking place. This field is deprecated, use location instead.
3809 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
3810 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
3811 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
3812 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
3813 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
3814 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
3815 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003816 }</pre>
3817</div>
3818
3819<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07003820 <code class="details" id="setLegacyAbac">setLegacyAbac(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003821 <pre>Enables or disables the ABAC authorization mechanism on a cluster.
3822
3823Args:
3824 name: string, The name (project, location, cluster id) of the cluster to set legacy abac.
Bu Sun Kim65020912020-05-20 12:08:20 -07003825Specified in the format `projects/*/locations/*/clusters/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07003826 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003827 The object takes the form of:
3828
3829{ # SetLegacyAbacRequest enables or disables the ABAC authorization mechanism for
3830 # a cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -07003831 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster id) of the cluster to set legacy abac.
3832 # Specified in the format `projects/*/locations/*/clusters/*`.
3833 &quot;enabled&quot;: True or False, # Required. Whether ABAC authorization will be enabled in the cluster.
3834 &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 -07003835 # number](https://support.google.com/cloud/answer/6158840).
3836 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07003837 &quot;zone&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07003838 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
3839 # cluster resides. This field has been deprecated and replaced by the name
3840 # field.
Bu Sun Kim65020912020-05-20 12:08:20 -07003841 &quot;clusterId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the cluster to update.
3842 # This field has been deprecated and replaced by the name field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003843 }
3844
3845 x__xgafv: string, V1 error format.
3846 Allowed values
3847 1 - v1 error format
3848 2 - v2 error format
3849
3850Returns:
3851 An object of the form:
3852
3853 { # This operation resource represents operations that may have happened or are
3854 # happening on the cluster. All fields are output only.
Bu Sun Kim65020912020-05-20 12:08:20 -07003855 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003856 { # StatusCondition describes why a cluster or a node pool has a certain status
3857 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07003858 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
3859 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003860 },
3861 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003862 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07003863 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
3864 # or
3865 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
3866 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07003867 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
3868 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
3869 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
3870 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
3871 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
3872 { # StatusCondition describes why a cluster or a node pool has a certain status
3873 # (e.g., ERROR or DEGRADED).
3874 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
3875 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
3876 },
3877 ],
3878 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
3879 &quot;stages&quot;: [ # Substages of an operation or a stage.
3880 # Object with schema name: OperationProgress
3881 ],
3882 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
3883 # Unset for single-stage operations.
3884 &quot;metrics&quot;: [ # Progress metric bundle, for example:
3885 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
3886 # {name: &quot;nodes total&quot;, int_value: 32}]
3887 # or
3888 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
3889 # {name: &quot;progress scale&quot;, double_value: 1.0}]
3890 { # Progress metric is (string, int|float|string) pair.
3891 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
3892 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
3893 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
3894 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
3895 },
3896 ],
3897 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
3898 # Unset for single-stage operations.
3899 },
3900 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
3901 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
3902 # operation is taking place. This field is deprecated, use location instead.
3903 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
3904 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
3905 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
3906 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
3907 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
3908 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
3909 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003910 }</pre>
3911</div>
3912
3913<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07003914 <code class="details" id="setLocations">setLocations(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003915 <pre>Sets the locations for a specific cluster.
Dan O'Mearadd494642020-05-01 07:42:23 -07003916Deprecated. Use
3917[projects.locations.clusters.update](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1beta1/projects.locations.clusters/update)
3918instead.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003919
3920Args:
3921 name: string, The name (project, location, cluster) of the cluster to set locations.
Bu Sun Kim65020912020-05-20 12:08:20 -07003922Specified in the format `projects/*/locations/*/clusters/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07003923 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003924 The object takes the form of:
3925
3926{ # SetLocationsRequest sets the locations of the cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -07003927 &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 -07003928 # number](https://support.google.com/cloud/answer/6158840).
3929 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07003930 &quot;zone&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07003931 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
3932 # cluster resides. This field has been deprecated and replaced by the name
3933 # field.
Bu Sun Kim65020912020-05-20 12:08:20 -07003934 &quot;locations&quot;: [ # Required. The desired list of Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07003935 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
Bu Sun Kim65020912020-05-20 12:08:20 -07003936 # cluster&#x27;s nodes should be located. Changing the locations a cluster is in
Dan O'Mearadd494642020-05-01 07:42:23 -07003937 # will result in nodes being either created or removed from the cluster,
3938 # depending on whether locations are being added or removed.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003939 #
Bu Sun Kim65020912020-05-20 12:08:20 -07003940 # This list must always include the cluster&#x27;s primary zone.
3941 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003942 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003943 &quot;clusterId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the cluster to upgrade.
3944 # This field has been deprecated and replaced by the name field.
3945 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster) of the cluster to set locations.
3946 # Specified in the format `projects/*/locations/*/clusters/*`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003947 }
3948
3949 x__xgafv: string, V1 error format.
3950 Allowed values
3951 1 - v1 error format
3952 2 - v2 error format
3953
3954Returns:
3955 An object of the form:
3956
3957 { # This operation resource represents operations that may have happened or are
3958 # happening on the cluster. All fields are output only.
Bu Sun Kim65020912020-05-20 12:08:20 -07003959 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003960 { # StatusCondition describes why a cluster or a node pool has a certain status
3961 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07003962 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
3963 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003964 },
3965 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003966 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07003967 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
3968 # or
3969 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
3970 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07003971 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
3972 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
3973 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
3974 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
3975 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
3976 { # StatusCondition describes why a cluster or a node pool has a certain status
3977 # (e.g., ERROR or DEGRADED).
3978 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
3979 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
3980 },
3981 ],
3982 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
3983 &quot;stages&quot;: [ # Substages of an operation or a stage.
3984 # Object with schema name: OperationProgress
3985 ],
3986 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
3987 # Unset for single-stage operations.
3988 &quot;metrics&quot;: [ # Progress metric bundle, for example:
3989 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
3990 # {name: &quot;nodes total&quot;, int_value: 32}]
3991 # or
3992 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
3993 # {name: &quot;progress scale&quot;, double_value: 1.0}]
3994 { # Progress metric is (string, int|float|string) pair.
3995 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
3996 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
3997 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
3998 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
3999 },
4000 ],
4001 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
4002 # Unset for single-stage operations.
4003 },
4004 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
4005 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4006 # operation is taking place. This field is deprecated, use location instead.
4007 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
4008 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
4009 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
4010 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
4011 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
4012 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
4013 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004014 }</pre>
4015</div>
4016
4017<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07004018 <code class="details" id="setLogging">setLogging(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004019 <pre>Sets the logging service for a specific cluster.
4020
4021Args:
4022 name: string, The name (project, location, cluster) of the cluster to set logging.
Bu Sun Kim65020912020-05-20 12:08:20 -07004023Specified in the format `projects/*/locations/*/clusters/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07004024 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004025 The object takes the form of:
4026
4027{ # SetLoggingServiceRequest sets the logging service of a cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -07004028 &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 -07004029 # Currently available options:
4030 #
Dan O'Mearadd494642020-05-01 07:42:23 -07004031 # * `logging.googleapis.com/kubernetes` - The Cloud Logging
4032 # service with a Kubernetes-native resource model
4033 # * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
4034 # available as of GKE 1.15).
4035 # * `none` - no logs will be exported from the cluster.
4036 #
4037 # If left as an empty string,`logging.googleapis.com/kubernetes` will be
4038 # used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
Bu Sun Kim65020912020-05-20 12:08:20 -07004039 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster) of the cluster to set logging.
4040 # Specified in the format `projects/*/locations/*/clusters/*`.
4041 &quot;projectId&quot;: &quot;A String&quot;, # Required. Deprecated. The Google Developers Console [project ID or project
4042 # number](https://support.google.com/cloud/answer/6158840).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004043 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07004044 &quot;zone&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07004045 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4046 # cluster resides. This field has been deprecated and replaced by the name
4047 # field.
Bu Sun Kim65020912020-05-20 12:08:20 -07004048 &quot;clusterId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the cluster to upgrade.
4049 # This field has been deprecated and replaced by the name field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004050 }
4051
4052 x__xgafv: string, V1 error format.
4053 Allowed values
4054 1 - v1 error format
4055 2 - v2 error format
4056
4057Returns:
4058 An object of the form:
4059
4060 { # This operation resource represents operations that may have happened or are
4061 # happening on the cluster. All fields are output only.
Bu Sun Kim65020912020-05-20 12:08:20 -07004062 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004063 { # StatusCondition describes why a cluster or a node pool has a certain status
4064 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07004065 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
4066 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004067 },
4068 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07004069 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07004070 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4071 # or
4072 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4073 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07004074 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
4075 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
4076 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
4077 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
4078 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
4079 { # StatusCondition describes why a cluster or a node pool has a certain status
4080 # (e.g., ERROR or DEGRADED).
4081 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
4082 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
4083 },
4084 ],
4085 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
4086 &quot;stages&quot;: [ # Substages of an operation or a stage.
4087 # Object with schema name: OperationProgress
4088 ],
4089 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
4090 # Unset for single-stage operations.
4091 &quot;metrics&quot;: [ # Progress metric bundle, for example:
4092 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
4093 # {name: &quot;nodes total&quot;, int_value: 32}]
4094 # or
4095 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
4096 # {name: &quot;progress scale&quot;, double_value: 1.0}]
4097 { # Progress metric is (string, int|float|string) pair.
4098 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
4099 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
4100 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
4101 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
4102 },
4103 ],
4104 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
4105 # Unset for single-stage operations.
4106 },
4107 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
4108 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4109 # operation is taking place. This field is deprecated, use location instead.
4110 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
4111 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
4112 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
4113 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
4114 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
4115 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
4116 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004117 }</pre>
4118</div>
4119
4120<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07004121 <code class="details" id="setMaintenancePolicy">setMaintenancePolicy(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004122 <pre>Sets the maintenance policy for a cluster.
4123
4124Args:
4125 name: string, The name (project, location, cluster id) of the cluster to set maintenance
4126policy.
Bu Sun Kim65020912020-05-20 12:08:20 -07004127Specified in the format `projects/*/locations/*/clusters/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07004128 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004129 The object takes the form of:
4130
4131{ # SetMaintenancePolicyRequest sets the maintenance policy for a cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -07004132 &quot;clusterId&quot;: &quot;A String&quot;, # Required. The name of the cluster to update.
4133 &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 -07004134 # clears the existing maintenance policy.
Bu Sun Kim65020912020-05-20 12:08:20 -07004135 &quot;resourceVersion&quot;: &quot;A String&quot;, # A hash identifying the version of this policy, so that updates to fields of
4136 # the policy won&#x27;t accidentally undo intermediate changes (and so that users
4137 # of the API unaware of some fields won&#x27;t accidentally remove other fields).
4138 # Make a &lt;code&gt;get()&lt;/code&gt; request to the cluster to get the current
4139 # resource version and include it with requests to set the policy.
4140 &quot;window&quot;: { # MaintenanceWindow defines the maintenance window to be used for the cluster. # Specifies the maintenance window in which maintenance may be performed.
4141 &quot;dailyMaintenanceWindow&quot;: { # Time window specified for daily maintenance operations. # DailyMaintenanceWindow specifies a daily maintenance operation window.
4142 &quot;duration&quot;: &quot;A String&quot;, # [Output only] Duration of the time window, automatically chosen to be
4143 # smallest possible in the given scenario.
4144 &quot;startTime&quot;: &quot;A String&quot;, # Time within the maintenance window to start the maintenance operations.
4145 # It must be in format &quot;HH:MM&quot;, where HH : [00-23] and MM : [00-59] GMT.
4146 },
4147 &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 -07004148 # maintenance to occur. The time windows may be overlapping. If no
4149 # maintenance windows are set, maintenance can occur at any time.
Bu Sun Kim65020912020-05-20 12:08:20 -07004150 &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 -07004151 # this window reccurs. They go on for the span of time between the start and
4152 # end time.
4153 #
Bu Sun Kim65020912020-05-20 12:08:20 -07004154 # For example, to have something repeat every weekday, you&#x27;d use:
Dan O'Mearadd494642020-05-01 07:42:23 -07004155 # &lt;code&gt;FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR&lt;/code&gt;
4156 # To repeat some window daily (equivalent to the DailyMaintenanceWindow):
4157 # &lt;code&gt;FREQ=DAILY&lt;/code&gt;
4158 # For the first weekend of every month:
4159 # &lt;code&gt;FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU&lt;/code&gt;
4160 # This specifies how frequently the window starts. Eg, if you wanted to have
Bu Sun Kim65020912020-05-20 12:08:20 -07004161 # a 9-5 UTC-4 window every weekday, you&#x27;d use something like:
Dan O'Mearadd494642020-05-01 07:42:23 -07004162 # &lt;code&gt;
4163 # start time = 2019-01-01T09:00:00-0400
4164 # end time = 2019-01-01T17:00:00-0400
4165 # recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
4166 # &lt;/code&gt;
4167 # Windows can span multiple days. Eg, to make the window encompass every
4168 # weekend from midnight Saturday till the last minute of Sunday UTC:
4169 # &lt;code&gt;
4170 # start time = 2019-01-05T00:00:00Z
4171 # end time = 2019-01-07T23:59:00Z
4172 # recurrence = FREQ=WEEKLY;BYDAY=SA
4173 # &lt;/code&gt;
Bu Sun Kim65020912020-05-20 12:08:20 -07004174 # Note the start and end time&#x27;s specific dates are largely arbitrary except
Dan O'Mearadd494642020-05-01 07:42:23 -07004175 # to specify duration of the window and when it first starts.
4176 # The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.
Bu Sun Kim65020912020-05-20 12:08:20 -07004177 &quot;window&quot;: { # Represents an arbitrary window of time. # The window of the first recurrence.
4178 &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 -07004179 # start time.
Bu Sun Kim65020912020-05-20 12:08:20 -07004180 &quot;startTime&quot;: &quot;A String&quot;, # The time that the window first starts.
Dan O'Mearadd494642020-05-01 07:42:23 -07004181 },
4182 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004183 &quot;maintenanceExclusions&quot;: { # Exceptions to maintenance window. Non-emergency maintenance should not
Dan O'Mearadd494642020-05-01 07:42:23 -07004184 # occur in these windows.
Bu Sun Kim65020912020-05-20 12:08:20 -07004185 &quot;a_key&quot;: { # Represents an arbitrary window of time.
4186 &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 -07004187 # start time.
Bu Sun Kim65020912020-05-20 12:08:20 -07004188 &quot;startTime&quot;: &quot;A String&quot;, # The time that the window first starts.
Dan O'Mearadd494642020-05-01 07:42:23 -07004189 },
4190 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004191 },
4192 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004193 &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 -07004194 # policy.
Bu Sun Kim65020912020-05-20 12:08:20 -07004195 # Specified in the format `projects/*/locations/*/clusters/*`.
4196 &quot;projectId&quot;: &quot;A String&quot;, # Required. The Google Developers Console [project ID or project
4197 # number](https://support.google.com/cloud/answer/6158840).
4198 &quot;zone&quot;: &quot;A String&quot;, # Required. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07004199 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4200 # cluster resides.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004201 }
4202
4203 x__xgafv: string, V1 error format.
4204 Allowed values
4205 1 - v1 error format
4206 2 - v2 error format
4207
4208Returns:
4209 An object of the form:
4210
4211 { # This operation resource represents operations that may have happened or are
4212 # happening on the cluster. All fields are output only.
Bu Sun Kim65020912020-05-20 12:08:20 -07004213 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004214 { # StatusCondition describes why a cluster or a node pool has a certain status
4215 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07004216 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
4217 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004218 },
4219 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07004220 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07004221 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4222 # or
4223 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4224 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07004225 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
4226 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
4227 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
4228 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
4229 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
4230 { # StatusCondition describes why a cluster or a node pool has a certain status
4231 # (e.g., ERROR or DEGRADED).
4232 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
4233 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
4234 },
4235 ],
4236 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
4237 &quot;stages&quot;: [ # Substages of an operation or a stage.
4238 # Object with schema name: OperationProgress
4239 ],
4240 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
4241 # Unset for single-stage operations.
4242 &quot;metrics&quot;: [ # Progress metric bundle, for example:
4243 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
4244 # {name: &quot;nodes total&quot;, int_value: 32}]
4245 # or
4246 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
4247 # {name: &quot;progress scale&quot;, double_value: 1.0}]
4248 { # Progress metric is (string, int|float|string) pair.
4249 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
4250 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
4251 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
4252 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
4253 },
4254 ],
4255 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
4256 # Unset for single-stage operations.
4257 },
4258 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
4259 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4260 # operation is taking place. This field is deprecated, use location instead.
4261 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
4262 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
4263 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
4264 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
4265 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
4266 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
4267 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004268 }</pre>
4269</div>
4270
4271<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07004272 <code class="details" id="setMasterAuth">setMasterAuth(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004273 <pre>Sets master auth materials. Currently supports changing the admin password
4274or a specific cluster, either via password generation or explicitly setting
4275the password.
4276
4277Args:
4278 name: string, The name (project, location, cluster) of the cluster to set auth.
Bu Sun Kim65020912020-05-20 12:08:20 -07004279Specified in the format `projects/*/locations/*/clusters/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07004280 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004281 The object takes the form of:
4282
4283{ # SetMasterAuthRequest updates the admin password of a cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -07004284 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster) of the cluster to set auth.
4285 # Specified in the format `projects/*/locations/*/clusters/*`.
4286 &quot;action&quot;: &quot;A String&quot;, # Required. The exact form of action to be taken on the master auth.
4287 &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 -07004288 # number](https://support.google.com/cloud/answer/6158840).
4289 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07004290 &quot;clusterId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the cluster to upgrade.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004291 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07004292 &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 -07004293 # Authentication can be done using HTTP basic auth or using client
4294 # certificates.
Bu Sun Kim65020912020-05-20 12:08:20 -07004295 &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 -07004296 # Because the master endpoint is open to the Internet, you should create a
4297 # strong password. If a password is provided for cluster creation, username
4298 # must be non-empty.
Bu Sun Kim65020912020-05-20 12:08:20 -07004299 &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 -07004300 # clusters before v1.12, if no configuration is specified, a client
4301 # certificate is issued.
Bu Sun Kim65020912020-05-20 12:08:20 -07004302 &quot;issueClientCertificate&quot;: True or False, # Issue a client certificate.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004303 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004304 &quot;clientKey&quot;: &quot;A String&quot;, # [Output only] Base64-encoded private key used by clients to authenticate
4305 # to the cluster endpoint.
4306 &quot;clusterCaCertificate&quot;: &quot;A String&quot;,
4307 &quot;clientCertificate&quot;: &quot;A String&quot;, # [Output only] Base64-encoded public certificate used by clients to
4308 # authenticate to the cluster endpoint.
4309 &quot;username&quot;: &quot;A String&quot;, # The username to use for HTTP basic authentication to the master endpoint.
4310 # For clusters v1.6.0 and later, basic authentication can be disabled by
4311 # leaving username unspecified (or setting it to the empty string).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004312 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004313 &quot;zone&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the Google Compute Engine
4314 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4315 # cluster resides. This field has been deprecated and replaced by the name
4316 # field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004317 }
4318
4319 x__xgafv: string, V1 error format.
4320 Allowed values
4321 1 - v1 error format
4322 2 - v2 error format
4323
4324Returns:
4325 An object of the form:
4326
4327 { # This operation resource represents operations that may have happened or are
4328 # happening on the cluster. All fields are output only.
Bu Sun Kim65020912020-05-20 12:08:20 -07004329 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004330 { # StatusCondition describes why a cluster or a node pool has a certain status
4331 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07004332 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
4333 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004334 },
4335 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07004336 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07004337 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4338 # or
4339 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4340 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07004341 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
4342 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
4343 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
4344 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
4345 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
4346 { # StatusCondition describes why a cluster or a node pool has a certain status
4347 # (e.g., ERROR or DEGRADED).
4348 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
4349 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
4350 },
4351 ],
4352 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
4353 &quot;stages&quot;: [ # Substages of an operation or a stage.
4354 # Object with schema name: OperationProgress
4355 ],
4356 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
4357 # Unset for single-stage operations.
4358 &quot;metrics&quot;: [ # Progress metric bundle, for example:
4359 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
4360 # {name: &quot;nodes total&quot;, int_value: 32}]
4361 # or
4362 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
4363 # {name: &quot;progress scale&quot;, double_value: 1.0}]
4364 { # Progress metric is (string, int|float|string) pair.
4365 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
4366 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
4367 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
4368 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
4369 },
4370 ],
4371 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
4372 # Unset for single-stage operations.
4373 },
4374 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
4375 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4376 # operation is taking place. This field is deprecated, use location instead.
4377 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
4378 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
4379 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
4380 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
4381 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
4382 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
4383 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004384 }</pre>
4385</div>
4386
4387<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07004388 <code class="details" id="setMonitoring">setMonitoring(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004389 <pre>Sets the monitoring service for a specific cluster.
4390
4391Args:
4392 name: string, The name (project, location, cluster) of the cluster to set monitoring.
Bu Sun Kim65020912020-05-20 12:08:20 -07004393Specified in the format `projects/*/locations/*/clusters/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07004394 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004395 The object takes the form of:
4396
4397{ # SetMonitoringServiceRequest sets the monitoring service of a cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -07004398 &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 -07004399 # number](https://support.google.com/cloud/answer/6158840).
4400 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07004401 &quot;zone&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the Google Compute Engine
4402 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4403 # cluster resides. This field has been deprecated and replaced by the name
4404 # field.
4405 &quot;clusterId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the cluster to upgrade.
4406 # This field has been deprecated and replaced by the name field.
4407 &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 -07004408 # Currently available options:
4409 #
Bu Sun Kim65020912020-05-20 12:08:20 -07004410 # * &quot;monitoring.googleapis.com/kubernetes&quot; - The Cloud Monitoring
Dan O'Mearadd494642020-05-01 07:42:23 -07004411 # service with a Kubernetes-native resource model
4412 # * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
4413 # longer available as of GKE 1.15).
4414 # * `none` - No metrics will be exported from the cluster.
4415 #
4416 # If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
4417 # used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
Bu Sun Kim65020912020-05-20 12:08:20 -07004418 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster) of the cluster to set monitoring.
4419 # Specified in the format `projects/*/locations/*/clusters/*`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004420 }
4421
4422 x__xgafv: string, V1 error format.
4423 Allowed values
4424 1 - v1 error format
4425 2 - v2 error format
4426
4427Returns:
4428 An object of the form:
4429
4430 { # This operation resource represents operations that may have happened or are
4431 # happening on the cluster. All fields are output only.
Bu Sun Kim65020912020-05-20 12:08:20 -07004432 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004433 { # StatusCondition describes why a cluster or a node pool has a certain status
4434 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07004435 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
4436 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004437 },
4438 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07004439 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07004440 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4441 # or
4442 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4443 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07004444 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
4445 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
4446 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
4447 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
4448 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
4449 { # StatusCondition describes why a cluster or a node pool has a certain status
4450 # (e.g., ERROR or DEGRADED).
4451 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
4452 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
4453 },
4454 ],
4455 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
4456 &quot;stages&quot;: [ # Substages of an operation or a stage.
4457 # Object with schema name: OperationProgress
4458 ],
4459 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
4460 # Unset for single-stage operations.
4461 &quot;metrics&quot;: [ # Progress metric bundle, for example:
4462 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
4463 # {name: &quot;nodes total&quot;, int_value: 32}]
4464 # or
4465 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
4466 # {name: &quot;progress scale&quot;, double_value: 1.0}]
4467 { # Progress metric is (string, int|float|string) pair.
4468 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
4469 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
4470 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
4471 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
4472 },
4473 ],
4474 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
4475 # Unset for single-stage operations.
4476 },
4477 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
4478 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4479 # operation is taking place. This field is deprecated, use location instead.
4480 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
4481 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
4482 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
4483 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
4484 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
4485 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
4486 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004487 }</pre>
4488</div>
4489
4490<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07004491 <code class="details" id="setNetworkPolicy">setNetworkPolicy(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004492 <pre>Enables or disables Network Policy for a cluster.
4493
4494Args:
4495 name: string, The name (project, location, cluster id) of the cluster to set networking
Bu Sun Kim65020912020-05-20 12:08:20 -07004496policy. Specified in the format `projects/*/locations/*/clusters/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07004497 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004498 The object takes the form of:
4499
4500{ # SetNetworkPolicyRequest enables/disables network policy for a cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -07004501 &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 -07004502 # number](https://developers.google.com/console/help/new/#projectnumber).
4503 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07004504 &quot;zone&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07004505 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4506 # cluster resides. This field has been deprecated and replaced by the name
4507 # field.
Bu Sun Kim65020912020-05-20 12:08:20 -07004508 &quot;clusterId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the cluster.
4509 # This field has been deprecated and replaced by the name field.
4510 &quot;networkPolicy&quot;: { # Configuration options for the NetworkPolicy feature. # Required. Configuration options for the NetworkPolicy feature.
4511 # https://kubernetes.io/docs/concepts/services-networking/networkpolicies/
4512 &quot;enabled&quot;: True or False, # Whether network policy is enabled on the cluster.
4513 &quot;provider&quot;: &quot;A String&quot;, # The selected network policy provider.
4514 },
4515 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster id) of the cluster to set networking
4516 # policy. Specified in the format `projects/*/locations/*/clusters/*`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004517 }
4518
4519 x__xgafv: string, V1 error format.
4520 Allowed values
4521 1 - v1 error format
4522 2 - v2 error format
4523
4524Returns:
4525 An object of the form:
4526
4527 { # This operation resource represents operations that may have happened or are
4528 # happening on the cluster. All fields are output only.
Bu Sun Kim65020912020-05-20 12:08:20 -07004529 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004530 { # StatusCondition describes why a cluster or a node pool has a certain status
4531 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07004532 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
4533 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004534 },
4535 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07004536 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07004537 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4538 # or
4539 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4540 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07004541 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
4542 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
4543 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
4544 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
4545 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
4546 { # StatusCondition describes why a cluster or a node pool has a certain status
4547 # (e.g., ERROR or DEGRADED).
4548 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
4549 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
4550 },
4551 ],
4552 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
4553 &quot;stages&quot;: [ # Substages of an operation or a stage.
4554 # Object with schema name: OperationProgress
4555 ],
4556 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
4557 # Unset for single-stage operations.
4558 &quot;metrics&quot;: [ # Progress metric bundle, for example:
4559 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
4560 # {name: &quot;nodes total&quot;, int_value: 32}]
4561 # or
4562 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
4563 # {name: &quot;progress scale&quot;, double_value: 1.0}]
4564 { # Progress metric is (string, int|float|string) pair.
4565 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
4566 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
4567 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
4568 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
4569 },
4570 ],
4571 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
4572 # Unset for single-stage operations.
4573 },
4574 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
4575 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4576 # operation is taking place. This field is deprecated, use location instead.
4577 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
4578 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
4579 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
4580 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
4581 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
4582 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
4583 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004584 }</pre>
4585</div>
4586
4587<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07004588 <code class="details" id="setResourceLabels">setResourceLabels(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004589 <pre>Sets labels on a cluster.
4590
4591Args:
4592 name: string, The name (project, location, cluster id) of the cluster to set labels.
Bu Sun Kim65020912020-05-20 12:08:20 -07004593Specified in the format `projects/*/locations/*/clusters/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07004594 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004595 The object takes the form of:
4596
4597{ # SetLabelsRequest sets the Google Cloud Platform labels on a Google Container
4598 # Engine cluster, which will in turn set them for Google Compute Engine
4599 # resources used by that cluster
Bu Sun Kim65020912020-05-20 12:08:20 -07004600 &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 -07004601 # used to detect conflicts. The fingerprint is initially generated by
4602 # Kubernetes Engine and changes after every request to modify or update
4603 # labels. You must always provide an up-to-date fingerprint hash when
Dan O'Mearadd494642020-05-01 07:42:23 -07004604 # updating or changing labels. Make a &lt;code&gt;get()&lt;/code&gt; request to the
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004605 # resource to get the latest fingerprint.
Bu Sun Kim65020912020-05-20 12:08:20 -07004606 &quot;zone&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the Google Compute Engine
4607 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4608 # cluster resides. This field has been deprecated and replaced by the name
4609 # field.
4610 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster id) of the cluster to set labels.
4611 # Specified in the format `projects/*/locations/*/clusters/*`.
4612 &quot;resourceLabels&quot;: { # Required. The labels to set for that cluster.
4613 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004614 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004615 &quot;projectId&quot;: &quot;A String&quot;, # Required. Deprecated. The Google Developers Console [project ID or project
4616 # number](https://developers.google.com/console/help/new/#projectnumber).
4617 # This field has been deprecated and replaced by the name field.
4618 &quot;clusterId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the cluster.
4619 # This field has been deprecated and replaced by the name field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004620 }
4621
4622 x__xgafv: string, V1 error format.
4623 Allowed values
4624 1 - v1 error format
4625 2 - v2 error format
4626
4627Returns:
4628 An object of the form:
4629
4630 { # This operation resource represents operations that may have happened or are
4631 # happening on the cluster. All fields are output only.
Bu Sun Kim65020912020-05-20 12:08:20 -07004632 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004633 { # StatusCondition describes why a cluster or a node pool has a certain status
4634 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07004635 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
4636 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004637 },
4638 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07004639 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07004640 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4641 # or
4642 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4643 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07004644 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
4645 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
4646 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
4647 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
4648 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
4649 { # StatusCondition describes why a cluster or a node pool has a certain status
4650 # (e.g., ERROR or DEGRADED).
4651 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
4652 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
4653 },
4654 ],
4655 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
4656 &quot;stages&quot;: [ # Substages of an operation or a stage.
4657 # Object with schema name: OperationProgress
4658 ],
4659 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
4660 # Unset for single-stage operations.
4661 &quot;metrics&quot;: [ # Progress metric bundle, for example:
4662 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
4663 # {name: &quot;nodes total&quot;, int_value: 32}]
4664 # or
4665 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
4666 # {name: &quot;progress scale&quot;, double_value: 1.0}]
4667 { # Progress metric is (string, int|float|string) pair.
4668 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
4669 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
4670 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
4671 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
4672 },
4673 ],
4674 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
4675 # Unset for single-stage operations.
4676 },
4677 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
4678 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4679 # operation is taking place. This field is deprecated, use location instead.
4680 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
4681 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
4682 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
4683 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
4684 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
4685 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
4686 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004687 }</pre>
4688</div>
4689
4690<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07004691 <code class="details" id="startIpRotation">startIpRotation(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004692 <pre>Starts master IP rotation.
4693
4694Args:
4695 name: string, The name (project, location, cluster id) of the cluster to start IP
Bu Sun Kim65020912020-05-20 12:08:20 -07004696rotation. Specified in the format `projects/*/locations/*/clusters/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07004697 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004698 The object takes the form of:
4699
4700{ # StartIPRotationRequest creates a new IP for the cluster and then performs
4701 # a node upgrade on each node pool to point to the new IP.
Bu Sun Kim65020912020-05-20 12:08:20 -07004702 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster id) of the cluster to start IP
4703 # rotation. Specified in the format `projects/*/locations/*/clusters/*`.
4704 &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 -07004705 # number](https://developers.google.com/console/help/new/#projectnumber).
4706 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07004707 &quot;zone&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07004708 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4709 # cluster resides. This field has been deprecated and replaced by the name
4710 # field.
Bu Sun Kim65020912020-05-20 12:08:20 -07004711 &quot;clusterId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the cluster.
4712 # This field has been deprecated and replaced by the name field.
4713 &quot;rotateCredentials&quot;: True or False, # Whether to rotate credentials during IP rotation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004714 }
4715
4716 x__xgafv: string, V1 error format.
4717 Allowed values
4718 1 - v1 error format
4719 2 - v2 error format
4720
4721Returns:
4722 An object of the form:
4723
4724 { # This operation resource represents operations that may have happened or are
4725 # happening on the cluster. All fields are output only.
Bu Sun Kim65020912020-05-20 12:08:20 -07004726 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004727 { # StatusCondition describes why a cluster or a node pool has a certain status
4728 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07004729 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
4730 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004731 },
4732 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07004733 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07004734 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4735 # or
4736 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4737 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07004738 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
4739 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
4740 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
4741 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
4742 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
4743 { # StatusCondition describes why a cluster or a node pool has a certain status
4744 # (e.g., ERROR or DEGRADED).
4745 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
4746 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
4747 },
4748 ],
4749 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
4750 &quot;stages&quot;: [ # Substages of an operation or a stage.
4751 # Object with schema name: OperationProgress
4752 ],
4753 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
4754 # Unset for single-stage operations.
4755 &quot;metrics&quot;: [ # Progress metric bundle, for example:
4756 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
4757 # {name: &quot;nodes total&quot;, int_value: 32}]
4758 # or
4759 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
4760 # {name: &quot;progress scale&quot;, double_value: 1.0}]
4761 { # Progress metric is (string, int|float|string) pair.
4762 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
4763 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
4764 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
4765 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
4766 },
4767 ],
4768 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
4769 # Unset for single-stage operations.
4770 },
4771 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
4772 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4773 # operation is taking place. This field is deprecated, use location instead.
4774 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
4775 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
4776 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
4777 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
4778 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
4779 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
4780 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004781 }</pre>
4782</div>
4783
4784<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07004785 <code class="details" id="update">update(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004786 <pre>Updates the settings for a specific cluster.
4787
4788Args:
4789 name: string, The name (project, location, cluster) of the cluster to update.
Bu Sun Kim65020912020-05-20 12:08:20 -07004790Specified in the format `projects/*/locations/*/clusters/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07004791 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004792 The object takes the form of:
4793
4794{ # UpdateClusterRequest updates the settings of a cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -07004795 &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 -07004796 # number](https://support.google.com/cloud/answer/6158840).
4797 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07004798 &quot;zone&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the Google Compute Engine
4799 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4800 # cluster resides. This field has been deprecated and replaced by the name
4801 # field.
4802 &quot;clusterId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the cluster to upgrade.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004803 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07004804 &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 -07004805 # be applied to a cluster with each request, so at most one field can be
4806 # provided.
Bu Sun Kim65020912020-05-20 12:08:20 -07004807 &quot;desiredPrivateClusterConfig&quot;: { # Configuration options for private clusters. # The desired private cluster configuration.
4808 &quot;privateEndpoint&quot;: &quot;A String&quot;, # Output only. The internal IP address of this cluster&#x27;s master endpoint.
4809 &quot;enablePrivateEndpoint&quot;: True or False, # Whether the master&#x27;s internal IP address is used as the cluster endpoint.
4810 &quot;peeringName&quot;: &quot;A String&quot;, # Output only. The peering name in the customer VPC used by this cluster.
4811 &quot;masterGlobalAccessConfig&quot;: { # Configuration for controlling master global access settings. # Controls master global access settings.
4812 &quot;enabled&quot;: True or False, # Whenever master is accessible globally or not.
4813 },
4814 &quot;publicEndpoint&quot;: &quot;A String&quot;, # Output only. The external IP address of this cluster&#x27;s master endpoint.
4815 &quot;enablePrivateNodes&quot;: True or False, # Whether nodes have internal IP addresses only. If enabled, all nodes are
4816 # given only RFC 1918 private addresses and communicate with the master via
4817 # private networking.
4818 &quot;masterIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP range in CIDR notation to use for the hosted master network. This
4819 # range will be used for assigning internal IP addresses to the master or
4820 # set of masters, as well as the ILB VIP. This range must not overlap with
4821 # any other ranges in use within the cluster&#x27;s network.
Dan O'Mearadd494642020-05-01 07:42:23 -07004822 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004823 &quot;desiredVerticalPodAutoscaling&quot;: { # VerticalPodAutoscaling contains global, per-cluster information # Cluster-level Vertical Pod Autoscaling configuration.
4824 # required by Vertical Pod Autoscaler to automatically adjust
4825 # the resources of pods controlled by it.
4826 &quot;enabled&quot;: True or False, # Enables vertical pod autoscaling.
4827 },
4828 &quot;desiredBinaryAuthorization&quot;: { # Configuration for Binary Authorization. # The desired configuration options for the Binary Authorization feature.
4829 &quot;enabled&quot;: True or False, # Enable Binary Authorization for this cluster. If enabled, all container
4830 # images will be validated by Google Binauthz.
4831 },
4832 &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.
4833 # cluster, enabling additional functionality.
4834 &quot;networkPolicyConfig&quot;: { # Configuration for NetworkPolicy. This only tracks whether the addon # Configuration for NetworkPolicy. This only tracks whether the addon
4835 # is enabled or not on the Master, it does not track whether network policy
4836 # is enabled for the nodes.
4837 # is enabled or not on the Master, it does not track whether network policy
4838 # is enabled for the nodes.
4839 &quot;disabled&quot;: True or False, # Whether NetworkPolicy is enabled for this cluster.
4840 },
4841 &quot;configConnectorConfig&quot;: { # Configuration options for the Config Connector add-on. # Configuration for the ConfigConnector add-on, a Kubernetes
4842 # extension to manage hosted GCP services through the Kubernetes API
4843 &quot;enabled&quot;: True or False, # Whether Cloud Connector is enabled for this cluster.
4844 },
4845 &quot;cloudRunConfig&quot;: { # Configuration options for the Cloud Run feature. # Configuration for the Cloud Run addon. The `IstioConfig` addon must be
4846 # enabled in order to enable Cloud Run addon. This option can only be enabled
4847 # at cluster creation time.
4848 &quot;disabled&quot;: True or False, # Whether Cloud Run addon is enabled for this cluster.
4849 },
4850 &quot;horizontalPodAutoscaling&quot;: { # Configuration options for the horizontal pod autoscaling feature, which # Configuration for the horizontal pod autoscaling feature, which
4851 # increases or decreases the number of replica pods a replication controller
4852 # has based on the resource usage of the existing pods.
4853 # increases or decreases the number of replica pods a replication controller
4854 # has based on the resource usage of the existing pods.
4855 &quot;disabled&quot;: True or False, # Whether the Horizontal Pod Autoscaling feature is enabled in the cluster.
4856 # When enabled, it ensures that metrics are collected into Stackdriver
4857 # Monitoring.
4858 },
4859 &quot;httpLoadBalancing&quot;: { # Configuration options for the HTTP (L7) load balancing controller addon, # Configuration for the HTTP (L7) load balancing controller addon, which
4860 # makes it easy to set up HTTP load balancers for services in a cluster.
4861 # which makes it easy to set up HTTP load balancers for services in a cluster.
4862 &quot;disabled&quot;: True or False, # Whether the HTTP Load Balancing controller is enabled in the cluster.
4863 # When enabled, it runs a small pod in the cluster that manages the load
4864 # balancers.
4865 },
4866 &quot;kubernetesDashboard&quot;: { # Configuration for the Kubernetes Dashboard. # Configuration for the Kubernetes Dashboard.
4867 # This addon is deprecated, and will be disabled in 1.15. It is recommended
4868 # to use the Cloud Console to manage and monitor your Kubernetes clusters,
4869 # workloads and applications. For more information, see:
4870 # https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
4871 &quot;disabled&quot;: True or False, # Whether the Kubernetes Dashboard is enabled for this cluster.
4872 },
4873 &quot;dnsCacheConfig&quot;: { # Configuration for NodeLocal DNSCache # Configuration for NodeLocalDNS, a dns cache running on cluster nodes
4874 &quot;enabled&quot;: True or False, # Whether NodeLocal DNSCache is enabled for this cluster.
4875 },
4876 &quot;kalmConfig&quot;: { # Configuration options for the KALM addon. # Configuration for the KALM addon, which manages the lifecycle of k8s
4877 # applications.
4878 &quot;enabled&quot;: True or False, # Whether KALM is enabled for this cluster.
4879 },
4880 &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.
4881 # enabled at cluster creation time.
4882 &quot;enabled&quot;: True or False, # Whether the Compute Engine PD CSI driver is enabled for this cluster.
4883 },
4884 &quot;istioConfig&quot;: { # Configuration options for Istio addon. # Configuration for Istio, an open platform to connect, manage, and secure
4885 # microservices.
4886 &quot;disabled&quot;: True or False, # Whether Istio is enabled for this cluster.
4887 &quot;auth&quot;: &quot;A String&quot;, # The specified Istio auth mode, either none, or mutual TLS.
4888 },
4889 },
4890 &quot;desiredNodeVersion&quot;: &quot;A String&quot;, # The Kubernetes version to change the nodes to (typically an
4891 # upgrade).
4892 #
4893 # Users may specify either explicit versions offered by
4894 # Kubernetes Engine or version aliases, which have the following behavior:
4895 #
4896 # - &quot;latest&quot;: picks the highest valid Kubernetes version
4897 # - &quot;1.X&quot;: picks the highest valid patch+gke.N patch in the 1.X version
4898 # - &quot;1.X.Y&quot;: picks the highest valid gke.N patch in the 1.X.Y version
4899 # - &quot;1.X.Y-gke.N&quot;: picks an explicit Kubernetes version
4900 # - &quot;-&quot;: picks the Kubernetes master version
4901 &quot;desiredIntraNodeVisibilityConfig&quot;: { # IntraNodeVisibilityConfig contains the desired config of the intra-node # The desired config of Intra-node visibility.
4902 # visibility on this cluster.
4903 &quot;enabled&quot;: True or False, # Enables intra node visibility for this cluster.
4904 },
4905 &quot;desiredPodSecurityPolicyConfig&quot;: { # Configuration for the PodSecurityPolicy feature. # The desired configuration options for the PodSecurityPolicy feature.
4906 &quot;enabled&quot;: True or False, # Enable the PodSecurityPolicy controller for this cluster. If enabled, pods
4907 # must be valid under a PodSecurityPolicy to be created.
4908 },
4909 &quot;desiredClusterAutoscaling&quot;: { # ClusterAutoscaling contains global, per-cluster information # Cluster-level autoscaling configuration.
Dan O'Mearadd494642020-05-01 07:42:23 -07004910 # required by Cluster Autoscaler to automatically adjust
4911 # the size of the cluster and create/delete
4912 # node pools based on the current needs.
Bu Sun Kim65020912020-05-20 12:08:20 -07004913 &quot;resourceLimits&quot;: [ # Contains global constraints regarding minimum and maximum
4914 # amount of resources in the cluster.
4915 { # Contains information about amount of some resource in the cluster.
4916 # For memory, value should be in GB.
4917 &quot;maximum&quot;: &quot;A String&quot;, # Maximum amount of the resource in the cluster.
4918 &quot;resourceType&quot;: &quot;A String&quot;, # Resource name &quot;cpu&quot;, &quot;memory&quot; or gpu-specific string.
4919 &quot;minimum&quot;: &quot;A String&quot;, # Minimum amount of the resource in the cluster.
4920 },
4921 ],
4922 &quot;autoscalingProfile&quot;: &quot;A String&quot;, # Defines autoscaling behaviour.
4923 &quot;enableNodeAutoprovisioning&quot;: True or False, # Enables automatic node pool creation and deletion.
4924 &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 -07004925 # created by NAP.
4926 # by NAP.
Bu Sun Kim65020912020-05-20 12:08:20 -07004927 &quot;oauthScopes&quot;: [ # Scopes that are used by NAP when creating node pools. If oauth_scopes are
4928 # specified, service_account should be empty.
4929 &quot;A String&quot;,
4930 ],
4931 &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.
4932 # node pool.
4933 &quot;autoUpgrade&quot;: True or False, # Whether the nodes will be automatically upgraded.
4934 &quot;autoRepair&quot;: True or False, # Whether the nodes will be automatically repaired.
4935 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool.
4936 # the Auto Upgrades will proceed.
4937 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
4938 # with the description of the upgrade.
4939 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
4940 # with the approximate start time for the upgrades, in
4941 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
4942 },
4943 },
4944 &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 -07004945 # The instance may be scheduled on the specified or newer CPU platform.
4946 # Applicable values are the friendly names of CPU platforms, such as
4947 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Haswell&amp;quot;&lt;/code&gt; or
4948 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Sandy Bridge&amp;quot;&lt;/code&gt;. For more
4949 # information, read [how to specify min CPU
4950 # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
Bu Sun Kim65020912020-05-20 12:08:20 -07004951 # To unset the min cpu platform field pass &quot;automatic&quot; as field value.
4952 &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 -07004953 # disruption caused by an upgrade.
4954 #
4955 # maxUnavailable controls the number of nodes that can be simultaneously
4956 # unavailable.
4957 #
4958 # maxSurge controls the number of additional nodes that can be added to the
4959 # node pool temporarily for the time of the upgrade to increase the number of
4960 # available nodes.
4961 #
4962 # (maxUnavailable + maxSurge) determines the level of parallelism (how many
4963 # nodes are being upgraded at the same time).
4964 #
4965 # Note: upgrades inevitably introduce some disruption since workloads need to
4966 # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
4967 # this holds true. (Disruption stays within the limits of
4968 # PodDisruptionBudget, if it is configured.)
4969 #
4970 # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
4971 # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
4972 # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
4973 # down 3 old (not yet upgraded) nodes at the same time. This ensures that
4974 # there are always at least 4 nodes available.
Bu Sun Kim65020912020-05-20 12:08:20 -07004975 &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 -07004976 # of the node pool during the upgrade process.
Bu Sun Kim65020912020-05-20 12:08:20 -07004977 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during
Dan O'Mearadd494642020-05-01 07:42:23 -07004978 # the upgrade process. A node is considered available if its status is
4979 # Ready.
4980 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004981 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs. If
4982 # service_account is specified, scopes should be empty.
Dan O'Mearadd494642020-05-01 07:42:23 -07004983 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004984 &quot;autoprovisioningLocations&quot;: [ # The list of Google Compute Engine
4985 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
4986 # NodePool&#x27;s nodes can be created by NAP.
4987 &quot;A String&quot;,
4988 ],
4989 },
4990 &quot;desiredDatabaseEncryption&quot;: { # Configuration of etcd encryption. # Configuration of etcd encryption.
4991 &quot;state&quot;: &quot;A String&quot;, # Denotes the state of etcd encryption.
4992 &quot;keyName&quot;: &quot;A String&quot;, # Name of CloudKMS key to use for the encryption of secrets in etcd.
4993 # Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key
4994 },
4995 &quot;desiredMasterAuthorizedNetworksConfig&quot;: { # Configuration options for the master authorized networks feature. Enabled # The desired configuration options for master authorized networks feature.
4996 # master authorized networks will disallow all external traffic to access
4997 # Kubernetes master through HTTPS except traffic from the given CIDR blocks,
4998 # Google Compute Engine Public IPs and Google Prod IPs.
4999 &quot;cidrBlocks&quot;: [ # cidr_blocks define up to 10 external networks that could access
5000 # Kubernetes master through HTTPS.
5001 { # CidrBlock contains an optional name and one CIDR block.
5002 &quot;displayName&quot;: &quot;A String&quot;, # display_name is an optional field for users to identify CIDR blocks.
5003 &quot;cidrBlock&quot;: &quot;A String&quot;, # cidr_block must be specified in CIDR notation.
Dan O'Mearadd494642020-05-01 07:42:23 -07005004 },
5005 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07005006 &quot;enabled&quot;: True or False, # Whether or not master authorized networks is enabled.
Dan O'Mearadd494642020-05-01 07:42:23 -07005007 },
Bu Sun Kim65020912020-05-20 12:08:20 -07005008 &quot;desiredTpuConfig&quot;: { # Configuration for Cloud TPU. # The desired Cloud TPU configuration.
5009 &quot;enabled&quot;: True or False, # Whether Cloud TPU integration is enabled or not.
5010 &quot;ipv4CidrBlock&quot;: &quot;A String&quot;, # IPv4 CIDR block reserved for Cloud TPU in the VPC.
5011 &quot;useServiceNetworking&quot;: True or False, # Whether to use service networking for Cloud TPU or not.
5012 },
5013 &quot;desiredResourceUsageExportConfig&quot;: { # Configuration for exporting cluster resource usages. # The desired configuration for exporting resource usage.
5014 &quot;enableNetworkEgressMetering&quot;: True or False, # Whether to enable network egress metering for this cluster. If enabled, a
5015 # daemonset will be created in the cluster to meter network egress traffic.
5016 &quot;consumptionMeteringConfig&quot;: { # Parameters for controlling consumption metering. # Configuration to enable resource consumption metering.
5017 &quot;enabled&quot;: True or False, # Whether to enable consumption metering for this cluster. If enabled, a
5018 # second BigQuery table will be created to hold resource consumption
5019 # records.
5020 },
5021 &quot;bigqueryDestination&quot;: { # Parameters for using BigQuery as the destination of resource usage export. # Configuration to use BigQuery as usage export destination.
5022 &quot;datasetId&quot;: &quot;A String&quot;, # The ID of a BigQuery Dataset.
5023 },
5024 },
5025 &quot;desiredLocations&quot;: [ # The desired list of Google Compute Engine
5026 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
5027 # cluster&#x27;s nodes should be located. Changing the locations a cluster is in
5028 # will result in nodes being either created or removed from the cluster,
5029 # depending on whether locations are being added or removed.
5030 #
5031 # This list must always include the cluster&#x27;s primary zone.
5032 &quot;A String&quot;,
5033 ],
5034 &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 -07005035 # desired_node_pool_id. If there is only one pool in the
5036 # cluster and desired_node_pool_id is not provided then
5037 # the change applies to that single node pool.
5038 # adjust the size of the node pool to the current cluster usage.
Bu Sun Kim65020912020-05-20 12:08:20 -07005039 &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 -07005040 # max_node_count.
Bu Sun Kim65020912020-05-20 12:08:20 -07005041 &quot;autoprovisioned&quot;: True or False, # Can this node pool be deleted automatically.
5042 &quot;enabled&quot;: True or False, # Is autoscaling enabled for this node pool.
5043 &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 -07005044 # has to enough quota to scale up the cluster.
5045 },
Bu Sun Kim65020912020-05-20 12:08:20 -07005046 &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 -07005047 # Currently available options:
5048 #
Bu Sun Kim65020912020-05-20 12:08:20 -07005049 # * &quot;monitoring.googleapis.com/kubernetes&quot; - The Cloud Monitoring
Dan O'Mearadd494642020-05-01 07:42:23 -07005050 # service with a Kubernetes-native resource model
5051 # * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
5052 # longer available as of GKE 1.15).
5053 # * `none` - No metrics will be exported from the cluster.
5054 #
5055 # If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
5056 # used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
Bu Sun Kim65020912020-05-20 12:08:20 -07005057 &quot;desiredImageType&quot;: &quot;A String&quot;, # The desired image type for the node pool.
5058 # NOTE: Set the &quot;desired_node_pool&quot; field as well.
5059 &quot;desiredClusterTelemetry&quot;: { # Telemetry integration for the cluster. # The desired telemetry integration for the cluster.
5060 &quot;type&quot;: &quot;A String&quot;, # Type of the integration.
Dan O'Mearadd494642020-05-01 07:42:23 -07005061 },
Bu Sun Kim65020912020-05-20 12:08:20 -07005062 &quot;desiredWorkloadIdentityConfig&quot;: { # Configuration for the use of Kubernetes Service Accounts in GCP IAM # Configuration for Workload Identity.
5063 # policies.
5064 &quot;identityNamespace&quot;: &quot;A String&quot;, # IAM Identity Namespace to attach all Kubernetes Service Accounts to.
5065 &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 -07005066 },
Bu Sun Kim65020912020-05-20 12:08:20 -07005067 &quot;desiredNodePoolId&quot;: &quot;A String&quot;, # The node pool to be upgraded. This field is mandatory if
5068 # &quot;desired_node_version&quot;, &quot;desired_image_family&quot;,
5069 # &quot;desired_node_pool_autoscaling&quot;, or &quot;desired_workload_metadata_config&quot;
5070 # is specified and there is more than one node pool on the cluster.
5071 &quot;desiredReleaseChannel&quot;: { # ReleaseChannel indicates which release channel a cluster is # The desired release channel configuration.
5072 # subscribed to. Release channels are arranged in order of risk and
5073 # frequency of updates.
5074 #
5075 # When a cluster is subscribed to a release channel, Google maintains
5076 # both the master version and the node version. Node auto-upgrade
5077 # defaults to true and cannot be disabled. Updates to version related
5078 # fields (e.g. current_master_version) return an error.
5079 &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 -07005080 },
Bu Sun Kim65020912020-05-20 12:08:20 -07005081 &quot;desiredMasterVersion&quot;: &quot;A String&quot;, # The Kubernetes version to change the master to. The only valid value is the
5082 # latest supported version.
5083 #
5084 # Users may specify either explicit versions offered by
5085 # Kubernetes Engine or version aliases, which have the following behavior:
5086 #
5087 # - &quot;latest&quot;: picks the highest valid Kubernetes version
5088 # - &quot;1.X&quot;: picks the highest valid patch+gke.N patch in the 1.X version
5089 # - &quot;1.X.Y&quot;: picks the highest valid gke.N patch in the 1.X.Y version
5090 # - &quot;1.X.Y-gke.N&quot;: picks an explicit Kubernetes version
5091 # - &quot;-&quot;: picks the default Kubernetes version
5092 &quot;desiredShieldedNodes&quot;: { # Configuration of Shielded Nodes feature. # Configuration for Shielded Nodes.
5093 &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 -07005094 },
Bu Sun Kim65020912020-05-20 12:08:20 -07005095 &quot;desiredLoggingService&quot;: &quot;A String&quot;, # The logging service the cluster should use to write logs.
5096 # Currently available options:
5097 #
5098 # * `logging.googleapis.com/kubernetes` - The Cloud Logging
5099 # service with a Kubernetes-native resource model
5100 # * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
5101 # available as of GKE 1.15).
5102 # * `none` - no logs will be exported from the cluster.
5103 #
5104 # If left as an empty string,`logging.googleapis.com/kubernetes` will be
5105 # used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07005106 },
Bu Sun Kim65020912020-05-20 12:08:20 -07005107 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster) of the cluster to update.
5108 # Specified in the format `projects/*/locations/*/clusters/*`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07005109 }
5110
5111 x__xgafv: string, V1 error format.
5112 Allowed values
5113 1 - v1 error format
5114 2 - v2 error format
5115
5116Returns:
5117 An object of the form:
5118
5119 { # This operation resource represents operations that may have happened or are
5120 # happening on the cluster. All fields are output only.
Bu Sun Kim65020912020-05-20 12:08:20 -07005121 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07005122 { # StatusCondition describes why a cluster or a node pool has a certain status
5123 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07005124 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
5125 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07005126 },
5127 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07005128 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07005129 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
5130 # or
5131 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
5132 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07005133 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
5134 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
5135 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
5136 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
5137 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
5138 { # StatusCondition describes why a cluster or a node pool has a certain status
5139 # (e.g., ERROR or DEGRADED).
5140 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
5141 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
5142 },
5143 ],
5144 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
5145 &quot;stages&quot;: [ # Substages of an operation or a stage.
5146 # Object with schema name: OperationProgress
5147 ],
5148 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
5149 # Unset for single-stage operations.
5150 &quot;metrics&quot;: [ # Progress metric bundle, for example:
5151 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
5152 # {name: &quot;nodes total&quot;, int_value: 32}]
5153 # or
5154 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
5155 # {name: &quot;progress scale&quot;, double_value: 1.0}]
5156 { # Progress metric is (string, int|float|string) pair.
5157 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
5158 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
5159 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
5160 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
5161 },
5162 ],
5163 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
5164 # Unset for single-stage operations.
5165 },
5166 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
5167 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
5168 # operation is taking place. This field is deprecated, use location instead.
5169 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
5170 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
5171 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
5172 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
5173 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
5174 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
5175 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07005176 }</pre>
5177</div>
5178
5179<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07005180 <code class="details" id="updateMaster">updateMaster(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07005181 <pre>Updates the master for a specific cluster.
5182
5183Args:
5184 name: string, The name (project, location, cluster) of the cluster to update.
Bu Sun Kim65020912020-05-20 12:08:20 -07005185Specified in the format `projects/*/locations/*/clusters/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07005186 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07005187 The object takes the form of:
5188
5189{ # UpdateMasterRequest updates the master of the cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -07005190 &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 -07005191 # number](https://support.google.com/cloud/answer/6158840).
5192 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07005193 &quot;zone&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the Google Compute Engine
5194 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
5195 # cluster resides. This field has been deprecated and replaced by the name
5196 # field.
5197 &quot;masterVersion&quot;: &quot;A String&quot;, # Required. The Kubernetes version to change the master to.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07005198 #
5199 # Users may specify either explicit versions offered by
5200 # Kubernetes Engine or version aliases, which have the following behavior:
5201 #
Bu Sun Kim65020912020-05-20 12:08:20 -07005202 # - &quot;latest&quot;: picks the highest valid Kubernetes version
5203 # - &quot;1.X&quot;: picks the highest valid patch+gke.N patch in the 1.X version
5204 # - &quot;1.X.Y&quot;: picks the highest valid gke.N patch in the 1.X.Y version
5205 # - &quot;1.X.Y-gke.N&quot;: picks an explicit Kubernetes version
5206 # - &quot;-&quot;: picks the default Kubernetes version
5207 &quot;clusterId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the cluster to upgrade.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07005208 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07005209 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster) of the cluster to update.
5210 # Specified in the format `projects/*/locations/*/clusters/*`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07005211 }
5212
5213 x__xgafv: string, V1 error format.
5214 Allowed values
5215 1 - v1 error format
5216 2 - v2 error format
5217
5218Returns:
5219 An object of the form:
5220
5221 { # This operation resource represents operations that may have happened or are
5222 # happening on the cluster. All fields are output only.
Bu Sun Kim65020912020-05-20 12:08:20 -07005223 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07005224 { # StatusCondition describes why a cluster or a node pool has a certain status
5225 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07005226 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
5227 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07005228 },
5229 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07005230 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07005231 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
5232 # or
5233 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
5234 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07005235 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
5236 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
5237 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
5238 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
5239 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
5240 { # StatusCondition describes why a cluster or a node pool has a certain status
5241 # (e.g., ERROR or DEGRADED).
5242 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
5243 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
5244 },
5245 ],
5246 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
5247 &quot;stages&quot;: [ # Substages of an operation or a stage.
5248 # Object with schema name: OperationProgress
5249 ],
5250 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
5251 # Unset for single-stage operations.
5252 &quot;metrics&quot;: [ # Progress metric bundle, for example:
5253 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
5254 # {name: &quot;nodes total&quot;, int_value: 32}]
5255 # or
5256 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
5257 # {name: &quot;progress scale&quot;, double_value: 1.0}]
5258 { # Progress metric is (string, int|float|string) pair.
5259 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
5260 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
5261 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
5262 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
5263 },
5264 ],
5265 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
5266 # Unset for single-stage operations.
5267 },
5268 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
5269 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
5270 # operation is taking place. This field is deprecated, use location instead.
5271 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
5272 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
5273 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
5274 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
5275 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
5276 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
5277 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07005278 }</pre>
5279</div>
5280
5281</body></html>