blob: ca94648723568016f70fe32a4f30744181fae6c8 [file] [log] [blame]
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
75<h1><a href="container_v1.html">Kubernetes Engine API</a> . <a href="container_v1.projects.html">projects</a> . <a href="container_v1.projects.locations.html">locations</a> . <a href="container_v1.projects.locations.clusters.html">clusters</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="container_v1.projects.locations.clusters.nodePools.html">nodePools()</a></code>
79</p>
80<p class="firstline">Returns the nodePools Resource.</p>
81
82<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070083 <code><a href="container_v1.projects.locations.clusters.well_known.html">well_known()</a></code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070084</p>
Dan O'Mearadd494642020-05-01 07:42:23 -070085<p class="firstline">Returns the well_known Resource.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070086
87<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070088 <code><a href="#completeIpRotation">completeIpRotation(name, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070089<p class="firstline">Completes master IP rotation.</p>
90<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070091 <code><a href="#create">create(parent, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070092<p class="firstline">Creates a cluster, consisting of the specified number and type of Google</p>
93<p class="toc_element">
Bu Sun Kim65020912020-05-20 12:08:20 -070094 <code><a href="#delete">delete(name, projectId=None, zone=None, clusterId=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070095<p class="firstline">Deletes the cluster, including the Kubernetes endpoint and all worker</p>
96<p class="toc_element">
Bu Sun 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 of a specific cluster.</p>
99<p class="toc_element">
100 <code><a href="#getJwks">getJwks(parent, x__xgafv=None)</a></code></p>
101<p class="firstline">Gets the public component of the cluster signing keys in</p>
102<p class="toc_element">
Bu Sun Kim65020912020-05-20 12:08:20 -0700103 <code><a href="#list">list(parent, projectId=None, zone=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700104<p class="firstline">Lists all clusters owned by a project in either the specified zone or all</p>
105<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700106 <code><a href="#setAddons">setAddons(name, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700107<p class="firstline">Sets the addons for a specific cluster.</p>
108<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700109 <code><a href="#setLegacyAbac">setLegacyAbac(name, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700110<p class="firstline">Enables or disables the ABAC authorization mechanism on a cluster.</p>
111<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700112 <code><a href="#setLocations">setLocations(name, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700113<p class="firstline">Sets the locations for a specific cluster.</p>
114<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700115 <code><a href="#setLogging">setLogging(name, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700116<p class="firstline">Sets the logging service for a specific cluster.</p>
117<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700118 <code><a href="#setMaintenancePolicy">setMaintenancePolicy(name, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700119<p class="firstline">Sets the maintenance policy for a cluster.</p>
120<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700121 <code><a href="#setMasterAuth">setMasterAuth(name, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700122<p class="firstline">Sets master auth materials. Currently supports changing the admin password</p>
123<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700124 <code><a href="#setMonitoring">setMonitoring(name, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700125<p class="firstline">Sets the monitoring service for a specific cluster.</p>
126<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700127 <code><a href="#setNetworkPolicy">setNetworkPolicy(name, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700128<p class="firstline">Enables or disables Network Policy for a cluster.</p>
129<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700130 <code><a href="#setResourceLabels">setResourceLabels(name, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700131<p class="firstline">Sets labels on a cluster.</p>
132<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700133 <code><a href="#startIpRotation">startIpRotation(name, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700134<p class="firstline">Starts master IP rotation.</p>
135<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700136 <code><a href="#update">update(name, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700137<p class="firstline">Updates the settings of a specific cluster.</p>
138<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700139 <code><a href="#updateMaster">updateMaster(name, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700140<p class="firstline">Updates the master for a specific cluster.</p>
141<h3>Method Details</h3>
142<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700143 <code class="details" id="completeIpRotation">completeIpRotation(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700144 <pre>Completes master IP rotation.
145
146Args:
147 name: string, The name (project, location, cluster id) of the cluster to complete IP
Bu Sun Kim65020912020-05-20 12:08:20 -0700148rotation. Specified in the format `projects/*/locations/*/clusters/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700149 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700150 The object takes the form of:
151
152{ # CompleteIPRotationRequest moves the cluster master back into single-IP mode.
Bu Sun 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;, # 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;, # 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;, # 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;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
177 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700178 { # StatusCondition describes why a cluster or a node pool has a certain status
179 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -0700180 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
181 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700182 },
183 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700184 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
Dan O'Mearadd494642020-05-01 07:42:23 -0700185 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -0700186 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -0700187 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
188 # or
189 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
190 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -0700191 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
192 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
193 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
194 &quot;stages&quot;: [ # Substages of an operation or a stage.
195 # Object with schema name: OperationProgress
196 ],
197 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
198 # Unset for single-stage operations.
199 &quot;metrics&quot;: [ # Progress metric bundle, for example:
200 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
201 # {name: &quot;nodes total&quot;, int_value: 32}]
202 # or
203 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
204 # {name: &quot;progress scale&quot;, double_value: 1.0}]
205 { # Progress metric is (string, int|float|string) pair.
206 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
207 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
208 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
209 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
210 },
211 ],
212 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
213 # Unset for single-stage operations.
214 },
215 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
216 { # StatusCondition describes why a cluster or a node pool has a certain status
217 # (e.g., ERROR or DEGRADED).
218 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
219 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
220 },
221 ],
222 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
223 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
224 # operation is taking place. This field is deprecated, use location instead.
225 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
226 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
227 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
228 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
229 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
230 &quot;status&quot;: &quot;A String&quot;, # The current status of 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;, # 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/v1/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.
272 &quot;labelFingerprint&quot;: &quot;A String&quot;, # The fingerprint of the set of labels for this cluster.
273 &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 -0700274 # containers. This is provisioned from within the `container_ipv4_cidr`
275 # range. This field will only be set when cluster is in route-based network
276 # mode.
Bu Sun Kim65020912020-05-20 12:08:20 -0700277 &quot;masterAuthorizedNetworksConfig&quot;: { # Configuration options for the master authorized networks feature. Enabled # The configuration options for master authorized networks feature.
278 # master authorized networks will disallow all external traffic to access
279 # Kubernetes master through HTTPS except traffic from the given CIDR blocks,
280 # Google Compute Engine Public IPs and Google Prod IPs.
281 &quot;enabled&quot;: True or False, # Whether or not master authorized networks is enabled.
282 &quot;cidrBlocks&quot;: [ # cidr_blocks define up to 50 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 },
290 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output only] Additional information about the current status of this
291 # cluster, if available.
292 &quot;masterAuth&quot;: { # The authentication information for accessing the master endpoint. # The authentication information for accessing the master endpoint.
293 # If unspecified, the defaults are used:
294 # For clusters before v1.12, if master_auth is unspecified, `username` will
295 # be set to &quot;admin&quot;, a random password will be generated, and a client
296 # certificate will be issued.
297 # Authentication can be done using HTTP basic auth or using client
298 # certificates.
299 &quot;clusterCaCertificate&quot;: &quot;A String&quot;, # [Output only] Base64-encoded public certificate that is the root of
300 # trust for the cluster.
301 &quot;clientCertificate&quot;: &quot;A String&quot;, # [Output only] Base64-encoded public certificate used by clients to
302 # authenticate to the cluster endpoint.
303 &quot;username&quot;: &quot;A String&quot;, # The username to use for HTTP basic authentication to the master endpoint.
304 # For clusters v1.6.0 and later, basic authentication can be disabled by
305 # leaving username unspecified (or setting it to the empty string).
306 &quot;password&quot;: &quot;A String&quot;, # The password to use for HTTP basic authentication to the master endpoint.
307 # Because the master endpoint is open to the Internet, you should create a
308 # strong password. If a password is provided for cluster creation, username
309 # must be non-empty.
310 &quot;clientCertificateConfig&quot;: { # Configuration for client certificates on the cluster. # Configuration for client certificate authentication on the cluster. For
311 # clusters before v1.12, if no configuration is specified, a client
312 # certificate is issued.
313 &quot;issueClientCertificate&quot;: True or False, # Issue a client certificate.
314 },
315 &quot;clientKey&quot;: &quot;A String&quot;, # [Output only] Base64-encoded private key used by clients to authenticate
316 # to the cluster endpoint.
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;currentMasterVersion&quot;: &quot;A String&quot;, # [Output only] The current software version of the master endpoint.
325 &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.
326 # cluster, enabling additional functionality.
327 &quot;networkPolicyConfig&quot;: { # Configuration for NetworkPolicy. This only tracks whether the addon # Configuration for NetworkPolicy. This only tracks whether the addon
328 # is enabled or not on the Master, it does not track whether network policy
329 # is enabled for the nodes.
330 # is enabled or not on the Master, it does not track whether network policy
331 # is enabled for the nodes.
332 &quot;disabled&quot;: True or False, # Whether NetworkPolicy is enabled for this cluster.
333 },
334 &quot;cloudRunConfig&quot;: { # Configuration options for the Cloud Run feature. # Configuration for the Cloud Run addon, which allows the user to use a
335 # managed Knative service.
336 &quot;disabled&quot;: True or False, # Whether Cloud Run addon is enabled for this cluster.
337 },
338 &quot;horizontalPodAutoscaling&quot;: { # Configuration options for the horizontal pod autoscaling feature, which # Configuration for the horizontal pod autoscaling feature, which
339 # increases or decreases the number of replica pods a replication controller
340 # has based on the resource usage of the existing pods.
341 # increases or decreases the number of replica pods a replication controller
342 # has based on the resource usage of the existing pods.
343 &quot;disabled&quot;: True or False, # Whether the Horizontal Pod Autoscaling feature is enabled in the cluster.
344 # When enabled, it ensures that metrics are collected into Stackdriver
345 # Monitoring.
346 },
347 &quot;httpLoadBalancing&quot;: { # Configuration options for the HTTP (L7) load balancing controller addon, # Configuration for the HTTP (L7) load balancing controller addon, which
348 # makes it easy to set up HTTP load balancers for services in a cluster.
349 # which makes it easy to set up HTTP load balancers for services in a cluster.
350 &quot;disabled&quot;: True or False, # Whether the HTTP Load Balancing controller is enabled in the cluster.
351 # When enabled, it runs a small pod in the cluster that manages the load
352 # balancers.
353 },
354 &quot;kubernetesDashboard&quot;: { # Configuration for the Kubernetes Dashboard. # Configuration for the Kubernetes Dashboard.
355 # This addon is deprecated, and will be disabled in 1.15. It is recommended
356 # to use the Cloud Console to manage and monitor your Kubernetes clusters,
357 # workloads and applications. For more information, see:
358 # https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
359 &quot;disabled&quot;: True or False, # Whether the Kubernetes Dashboard is enabled for this cluster.
360 },
361 },
362 &quot;currentNodeVersion&quot;: &quot;A String&quot;, # [Output only] Deprecated, use
363 # [NodePools.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.zones.clusters.nodePools)
364 # instead. The current version of the node software components. If they are
365 # currently at multiple versions because they&#x27;re in the process of being
366 # upgraded, this reflects the minimum version of all nodes.
367 &quot;subnetwork&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
368 # [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which
369 # the cluster is connected.
370 &quot;resourceLabels&quot;: { # The resource labels for the cluster to use to annotate any related
371 # Google Compute Engine resources.
372 &quot;a_key&quot;: &quot;A String&quot;,
373 },
374 &quot;maintenancePolicy&quot;: { # MaintenancePolicy defines the maintenance policy to be used for the cluster. # Configure the maintenance policy for this cluster.
375 &quot;window&quot;: { # MaintenanceWindow defines the maintenance window to be used for the cluster. # Specifies the maintenance window in which maintenance may be performed.
376 &quot;dailyMaintenanceWindow&quot;: { # Time window specified for daily maintenance operations. # DailyMaintenanceWindow specifies a daily maintenance operation window.
377 &quot;duration&quot;: &quot;A String&quot;, # [Output only] Duration of the time window, automatically chosen to be
378 # smallest possible in the given scenario.
379 # Duration will be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)
380 # format &quot;PTnHnMnS&quot;.
381 &quot;startTime&quot;: &quot;A String&quot;, # Time within the maintenance window to start the maintenance operations.
382 # Time format should be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)
383 # format &quot;HH:MM&quot;, where HH : [00-23] and MM : [00-59] GMT.
384 },
385 &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 -0700386 # maintenance to occur. The time windows may be overlapping. If no
387 # maintenance windows are set, maintenance can occur at any time.
Bu Sun Kim65020912020-05-20 12:08:20 -0700388 &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 -0700389 # this window reccurs. They go on for the span of time between the start and
390 # end time.
391 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700392 # For example, to have something repeat every weekday, you&#x27;d use:
Dan O'Mearadd494642020-05-01 07:42:23 -0700393 # &lt;code&gt;FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR&lt;/code&gt;
394 # To repeat some window daily (equivalent to the DailyMaintenanceWindow):
395 # &lt;code&gt;FREQ=DAILY&lt;/code&gt;
396 # For the first weekend of every month:
397 # &lt;code&gt;FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU&lt;/code&gt;
398 # This specifies how frequently the window starts. Eg, if you wanted to have
Bu Sun Kim65020912020-05-20 12:08:20 -0700399 # a 9-5 UTC-4 window every weekday, you&#x27;d use something like:
Dan O'Mearadd494642020-05-01 07:42:23 -0700400 # &lt;code&gt;
401 # start time = 2019-01-01T09:00:00-0400
402 # end time = 2019-01-01T17:00:00-0400
403 # recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
404 # &lt;/code&gt;
405 # Windows can span multiple days. Eg, to make the window encompass every
406 # weekend from midnight Saturday till the last minute of Sunday UTC:
407 # &lt;code&gt;
408 # start time = 2019-01-05T00:00:00Z
409 # end time = 2019-01-07T23:59:00Z
410 # recurrence = FREQ=WEEKLY;BYDAY=SA
411 # &lt;/code&gt;
Bu Sun Kim65020912020-05-20 12:08:20 -0700412 # Note the start and end time&#x27;s specific dates are largely arbitrary except
Dan O'Mearadd494642020-05-01 07:42:23 -0700413 # to specify duration of the window and when it first starts.
414 # The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.
Bu Sun Kim65020912020-05-20 12:08:20 -0700415 &quot;window&quot;: { # Represents an arbitrary window of time. # The window of the first recurrence.
416 &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 -0700417 # start time.
Bu Sun Kim65020912020-05-20 12:08:20 -0700418 &quot;startTime&quot;: &quot;A String&quot;, # The time that the window first starts.
Dan O'Mearadd494642020-05-01 07:42:23 -0700419 },
420 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700421 &quot;maintenanceExclusions&quot;: { # Exceptions to maintenance window. Non-emergency maintenance should not
Dan O'Mearadd494642020-05-01 07:42:23 -0700422 # occur in these windows.
Bu Sun Kim65020912020-05-20 12:08:20 -0700423 &quot;a_key&quot;: { # Represents an arbitrary window of time.
424 &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 -0700425 # start time.
Bu Sun Kim65020912020-05-20 12:08:20 -0700426 &quot;startTime&quot;: &quot;A String&quot;, # The time that the window first starts.
Dan O'Mearadd494642020-05-01 07:42:23 -0700427 },
428 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700429 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700430 &quot;resourceVersion&quot;: &quot;A String&quot;, # A hash identifying the version of this policy, so that updates to fields of
431 # the policy won&#x27;t accidentally undo intermediate changes (and so that users
432 # of the API unaware of some fields won&#x27;t accidentally remove other fields).
Dan O'Mearadd494642020-05-01 07:42:23 -0700433 # Make a &lt;code&gt;get()&lt;/code&gt; request to the cluster to get the current
434 # resource version and include it with requests to set the policy.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700435 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700436 &quot;initialClusterVersion&quot;: &quot;A String&quot;, # The initial Kubernetes version for this cluster. Valid versions are those
437 # found in validMasterVersions returned by getServerConfig. The version can
438 # be upgraded over time; such upgrades are reflected in
439 # currentMasterVersion and currentNodeVersion.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700440 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700441 # Users may specify either explicit versions offered by
442 # Kubernetes Engine or version aliases, which have the following behavior:
443 #
444 # - &quot;latest&quot;: picks the highest valid Kubernetes version
445 # - &quot;1.X&quot;: picks the highest valid patch+gke.N patch in the 1.X version
446 # - &quot;1.X.Y&quot;: picks the highest valid gke.N patch in the 1.X.Y version
447 # - &quot;1.X.Y-gke.N&quot;: picks an explicit Kubernetes version
448 # - &quot;&quot;,&quot;-&quot;: picks the default Kubernetes version
449 &quot;ipAllocationPolicy&quot;: { # Configuration for controlling how IPs are allocated in the cluster. # Configuration for cluster IP allocation.
450 &quot;clusterIpv4Cidr&quot;: &quot;A String&quot;, # This field is deprecated, use cluster_ipv4_cidr_block.
451 &quot;servicesIpv4Cidr&quot;: &quot;A String&quot;, # This field is deprecated, use services_ipv4_cidr_block.
452 &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 -0700453 # will be automatically chosen with the default size.
454 #
455 # This field is only applicable when `use_ip_aliases` is true.
456 #
457 # Set to blank to have a range chosen with the default size.
458 #
459 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
460 # netmask.
461 #
462 # Set to a
463 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
464 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
465 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
466 # to use.
Bu Sun Kim65020912020-05-20 12:08:20 -0700467 &quot;nodeIpv4Cidr&quot;: &quot;A String&quot;, # This field is deprecated, use node_ipv4_cidr_block.
468 &quot;clusterIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP address range for the cluster pod IPs. If this field is set, then
469 # `cluster.cluster_ipv4_cidr` must be left blank.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700470 #
471 # This field is only applicable when `use_ip_aliases` is true.
Bu Sun Kim65020912020-05-20 12:08:20 -0700472 #
473 # Set to blank to have a range chosen with the default size.
474 #
475 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
476 # netmask.
477 #
478 # Set to a
479 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
480 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
481 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
482 # to use.
483 &quot;clusterSecondaryRangeName&quot;: &quot;A String&quot;, # The name of the secondary range to be used for the cluster CIDR
484 # block. The secondary range will be used for pod IP
485 # addresses. This must be an existing secondary range associated
486 # with the cluster subnetwork.
487 #
488 # This field is only applicable with use_ip_aliases is true and
489 # create_subnetwork is false.
490 &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 -0700491 #
492 # This is applicable only if `create_subnetwork` is true.
493 #
494 # Set to blank to have a range chosen with the default size.
495 #
496 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
497 # netmask.
498 #
499 # Set to a
500 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
501 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
502 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
503 # to use.
Bu Sun Kim65020912020-05-20 12:08:20 -0700504 &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 -0700505 # range will be automatically chosen with the default size.
506 #
507 # This field is only applicable when `use_ip_aliases` is true.
508 #
509 # If unspecified, the range will use the default size.
510 #
511 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
512 # netmask.
513 #
514 # Set to a
515 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
516 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
517 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
518 # to use.
Bu Sun Kim65020912020-05-20 12:08:20 -0700519 &quot;createSubnetwork&quot;: True or False, # Whether a new subnetwork will be created automatically for the cluster.
520 #
521 # This field is only applicable when `use_ip_aliases` is true.
522 &quot;useIpAliases&quot;: True or False, # Whether alias IPs will be used for pod IPs in the cluster.
523 &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 -0700524 # CIDR block. The secondary range will be used for service
525 # ClusterIPs. This must be an existing secondary range associated
526 # with the cluster subnetwork.
527 #
528 # This field is only applicable with use_ip_aliases is true and
529 # create_subnetwork is false.
Bu Sun Kim65020912020-05-20 12:08:20 -0700530 &quot;subnetworkName&quot;: &quot;A String&quot;, # A custom subnetwork name to be used if `create_subnetwork` is true. If
531 # this field is empty, then an automatic name will be chosen for the new
532 # subnetwork.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700533 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700534 &quot;legacyAbac&quot;: { # Configuration for the legacy Attribute Based Access Control authorization # Configuration for the legacy ABAC authorization mode.
535 # mode.
536 &quot;enabled&quot;: True or False, # Whether the ABAC authorizer is enabled for this cluster. When enabled,
537 # identities in the system, including service accounts, nodes, and
538 # controllers, will have statically granted permissions beyond those
539 # provided by the RBAC configuration or IAM.
Dan O'Mearadd494642020-05-01 07:42:23 -0700540 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700541 &quot;resourceUsageExportConfig&quot;: { # Configuration for exporting cluster resource usages. # Configuration for exporting resource usages. Resource usage export is
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700542 # disabled when this config is unspecified.
Bu Sun Kim65020912020-05-20 12:08:20 -0700543 &quot;enableNetworkEgressMetering&quot;: True or False, # Whether to enable network egress metering for this cluster. If enabled, a
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700544 # daemonset will be created in the cluster to meter network egress traffic.
Bu Sun Kim65020912020-05-20 12:08:20 -0700545 &quot;consumptionMeteringConfig&quot;: { # Parameters for controlling consumption metering. # Configuration to enable resource consumption metering.
546 &quot;enabled&quot;: True or False, # Whether to enable consumption metering for this cluster. If enabled, a
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700547 # second BigQuery table will be created to hold resource consumption
548 # records.
549 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700550 &quot;bigqueryDestination&quot;: { # Parameters for using BigQuery as the destination of resource usage export. # Configuration to use BigQuery as usage export destination.
551 &quot;datasetId&quot;: &quot;A String&quot;, # The ID of a BigQuery Dataset.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700552 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700553 },
554 &quot;enableTpu&quot;: True or False, # Enable the ability to use Cloud TPUs in this cluster.
555 &quot;locations&quot;: [ # The list of Google Compute Engine
556 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
557 # cluster&#x27;s nodes should be located.
558 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700559 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700560 &quot;nodePools&quot;: [ # The node pools associated with this cluster.
561 # 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 -0700562 # specified.
Bu Sun Kim65020912020-05-20 12:08:20 -0700563 { # NodePool contains the name and configuration for a cluster&#x27;s node pool.
564 # 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 -0700565 # specification, under the control of the cluster master. They may have a set
566 # of Kubernetes labels applied to them, which may be used to reference them
567 # during pod scheduling. They may also be resized up or down, to accommodate
568 # the workload.
Bu Sun Kim65020912020-05-20 12:08:20 -0700569 &quot;initialNodeCount&quot;: 42, # The initial node count for the pool. You must ensure that your
570 # Compute Engine &lt;a href=&quot;/compute/docs/resource-quotas&quot;&gt;resource quota&lt;/a&gt;
571 # is sufficient for this number of instances. You must also have available
572 # firewall and routes quota.
573 &quot;locations&quot;: [ # The list of Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -0700574 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
Bu Sun Kim65020912020-05-20 12:08:20 -0700575 # NodePool&#x27;s nodes should be located.
576 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -0700577 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700578 &quot;selfLink&quot;: &quot;A String&quot;, # [Output only] Server-defined URL for the resource.
579 &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 -0700580 # disruption caused by an upgrade.
581 #
582 # maxUnavailable controls the number of nodes that can be simultaneously
583 # unavailable.
584 #
585 # maxSurge controls the number of additional nodes that can be added to the
586 # node pool temporarily for the time of the upgrade to increase the number of
587 # available nodes.
588 #
589 # (maxUnavailable + maxSurge) determines the level of parallelism (how many
590 # nodes are being upgraded at the same time).
591 #
592 # Note: upgrades inevitably introduce some disruption since workloads need to
593 # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
594 # this holds true. (Disruption stays within the limits of
595 # PodDisruptionBudget, if it is configured.)
596 #
597 # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
598 # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
599 # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
600 # down 3 old (not yet upgraded) nodes at the same time. This ensures that
601 # there are always at least 4 nodes available.
Bu Sun Kim65020912020-05-20 12:08:20 -0700602 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during
Dan O'Mearadd494642020-05-01 07:42:23 -0700603 # the upgrade process. A node is considered available if its status is
604 # Ready.
Bu Sun Kim65020912020-05-20 12:08:20 -0700605 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size
606 # of the node pool during the upgrade process.
Dan O'Mearadd494642020-05-01 07:42:23 -0700607 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700608 &quot;instanceGroupUrls&quot;: [ # [Output only] The resource URLs of the [managed instance
609 # groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
610 # associated with this node pool.
611 &quot;A String&quot;,
612 ],
613 &quot;version&quot;: &quot;A String&quot;, # The version of the Kubernetes of this node.
614 &quot;podIpv4CidrSize&quot;: 42, # [Output only] The pod CIDR block size per node in this node pool.
615 &quot;conditions&quot;: [ # Which conditions caused the current node pool state.
616 { # StatusCondition describes why a cluster or a node pool has a certain status
617 # (e.g., ERROR or DEGRADED).
618 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
619 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Dan O'Mearadd494642020-05-01 07:42:23 -0700620 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700621 ],
622 &quot;status&quot;: &quot;A String&quot;, # [Output only] The status of the nodes in this pool instance.
623 &quot;config&quot;: { # Parameters that describe the nodes in a cluster. # The node configuration of the pool.
624 &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 -0700625 # valid sources or targets for network firewalls and are specified by
626 # the client during cluster or node pool creation. Each tag within the list
627 # must comply with RFC1035.
Bu Sun Kim65020912020-05-20 12:08:20 -0700628 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700629 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700630 &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 -0700631 # Specify the email address of the Service Account; otherwise, if no Service
Bu Sun Kim65020912020-05-20 12:08:20 -0700632 # Account is specified, the &quot;default&quot; service account is used.
633 &quot;imageType&quot;: &quot;A String&quot;, # The image type to use for this node. Note that for a given image type,
634 # the latest version of it will be used.
635 &quot;oauthScopes&quot;: [ # The set of Google API scopes to be made available on all of the
636 # node VMs under the &quot;default&quot; service account.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700637 #
638 # The following scopes are recommended, but not required, and by default are
639 # not included:
640 #
641 # * `https://www.googleapis.com/auth/compute` is required for mounting
642 # persistent storage on your nodes.
643 # * `https://www.googleapis.com/auth/devstorage.read_only` is required for
644 # communicating with **gcr.io**
Dan O'Mearadd494642020-05-01 07:42:23 -0700645 # (the [Google Container
646 # Registry](https://cloud.google.com/container-registry/)).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700647 #
648 # If unspecified, no scopes are added, unless Cloud Logging or Cloud
649 # Monitoring are enabled, in which case their required scopes will be added.
Bu Sun Kim65020912020-05-20 12:08:20 -0700650 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700651 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700652 &quot;taints&quot;: [ # List of kubernetes taints to be applied to each node.
Dan O'Mearadd494642020-05-01 07:42:23 -0700653 #
654 # For more information, including usage and the valid values, see:
655 # https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
656 { # Kubernetes taint is comprised of three fields: key, value, and effect. Effect
657 # can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute.
658 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700659 # See
660 # [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration)
661 # for more information, including usage and the valid values.
662 &quot;key&quot;: &quot;A String&quot;, # Key for taint.
663 &quot;value&quot;: &quot;A String&quot;, # Value for taint.
664 &quot;effect&quot;: &quot;A String&quot;, # Effect for taint.
Dan O'Mearadd494642020-05-01 07:42:23 -0700665 },
666 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700667 &quot;labels&quot;: { # The map of Kubernetes labels (key/value pairs) to be applied to each node.
668 # These will added in addition to any default label(s) that
669 # Kubernetes may apply to the node.
670 # In case of conflict in label keys, the applied set may differ depending on
671 # the Kubernetes version -- it&#x27;s best to assume the behavior is undefined
672 # and conflicts should be avoided.
673 # For more information, including usage and the valid values, see:
674 # https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
675 &quot;a_key&quot;: &quot;A String&quot;,
676 },
677 &quot;diskSizeGb&quot;: 42, # Size of the disk attached to each node, specified in GB.
678 # The smallest allowed disk size is 10GB.
679 #
680 # If unspecified, the default disk size is 100GB.
681 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to # The workload metadata configuration for this node.
682 # workloads on the node pool.
683 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running
684 # on the node pool.
685 },
686 &quot;accelerators&quot;: [ # A list of hardware accelerators to be attached to each node.
687 # See https://cloud.google.com/compute/docs/gpus for more information about
688 # support for GPUs.
689 { # AcceleratorConfig represents a Hardware Accelerator request.
690 &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of the accelerator cards exposed to an instance.
691 &quot;acceleratorType&quot;: &quot;A String&quot;, # The accelerator type resource name. List of supported accelerators
692 # [here](https://cloud.google.com/compute/docs/gpus)
693 },
694 ],
695 &quot;machineType&quot;: &quot;A String&quot;, # The name of a Google Compute Engine [machine
696 # type](https://cloud.google.com/compute/docs/machine-types) (e.g.
697 # `n1-standard-1`).
698 #
699 # If unspecified, the default machine type is
700 # `n1-standard-1`.
701 &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;)
702 #
703 # If unspecified, the default disk type is &#x27;pd-standard&#x27;
704 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
705 &quot;enableSecureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled.
706 #
707 # Secure Boot helps ensure that the system only runs authentic software by
708 # verifying the digital signature of all boot components, and halting the
709 # boot process if signature verification fails.
710 &quot;enableIntegrityMonitoring&quot;: True or False, # Defines whether the instance has integrity monitoring enabled.
711 #
712 # Enables monitoring and attestation of the boot integrity of the instance.
713 # The attestation is performed against the integrity policy baseline. This
714 # baseline is initially derived from the implicitly trusted boot image when
715 # the instance is created.
716 },
717 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used by this instance. The instance may be
718 # scheduled on the specified or newer CPU platform. Applicable values are the
719 # friendly names of CPU platforms, such as
720 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Haswell&amp;quot;&lt;/code&gt; or
721 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Sandy Bridge&amp;quot;&lt;/code&gt;. For more
722 # information, read [how to specify min CPU
723 # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
724 &quot;preemptible&quot;: True or False, # Whether the nodes are created as preemptible VM instances. See:
725 # https://cloud.google.com/compute/docs/instances/preemptible for more
726 # information about preemptible VM instances.
727 &quot;localSsdCount&quot;: 42, # The number of local SSD disks to be attached to the node.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700728 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700729 # The limit for this value is dependent upon the maximum number of
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700730 # disks available on a machine per zone. See:
Dan O'Mearadd494642020-05-01 07:42:23 -0700731 # https://cloud.google.com/compute/docs/disks/local-ssd
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700732 # for more information.
Bu Sun Kim65020912020-05-20 12:08:20 -0700733 &quot;sandboxConfig&quot;: { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node.
734 &quot;type&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700735 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700736 &quot;metadata&quot;: { # The metadata key/value pairs assigned to instances in the cluster.
737 #
738 # Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
739 # in length. These are reflected as part of a URL in the metadata server.
740 # Additionally, to avoid ambiguity, keys must not conflict with any other
741 # metadata keys for the project or be one of the reserved keys:
742 # &quot;cluster-location&quot;
743 # &quot;cluster-name&quot;
744 # &quot;cluster-uid&quot;
745 # &quot;configure-sh&quot;
746 # &quot;containerd-configure-sh&quot;
747 # &quot;enable-os-login&quot;
748 # &quot;gci-ensure-gke-docker&quot;
749 # &quot;gci-metrics-enabled&quot;
750 # &quot;gci-update-strategy&quot;
751 # &quot;instance-template&quot;
752 # &quot;kube-env&quot;
753 # &quot;startup-script&quot;
754 # &quot;user-data&quot;
755 # &quot;disable-address-manager&quot;
756 # &quot;windows-startup-script-ps1&quot;
757 # &quot;common-psm1&quot;
758 # &quot;k8s-node-setup-psm1&quot;
759 # &quot;install-ssh-psm1&quot;
760 # &quot;user-profile-psm1&quot;
761 # &quot;serial-port-logging-enable&quot;
762 #
763 # Values are free-form strings, and only have meaning as interpreted by
764 # the image running in the instance. The only restriction placed on them is
765 # that each value&#x27;s size must be less than or equal to 32 KB.
766 #
767 # The total size of all keys and values must be less than 512 KB.
768 &quot;a_key&quot;: &quot;A String&quot;,
769 },
770 &quot;reservationAffinity&quot;: { # [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) # The optional reservation affinity. Setting this field will apply
771 # the specified [Zonal Compute
772 # Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
773 # to this node pool.
774 # is the configuration of desired reservation which instances could take
775 # capacity from.
776 &quot;key&quot;: &quot;A String&quot;, # Corresponds to the label key of a reservation resource. To target a
777 # SPECIFIC_RESERVATION by name, specify &quot;googleapis.com/reservation-name&quot; as
778 # the key and specify the name of your reservation as its value.
779 &quot;values&quot;: [ # Corresponds to the label value(s) of reservation resource(s).
780 &quot;A String&quot;,
781 ],
782 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Corresponds to the type of reservation consumption.
783 },
784 },
785 &quot;maxPodsConstraint&quot;: { # Constraints applied to pods. # The constraint on the maximum number of pods that can be run
786 # simultaneously on a node in the node pool.
787 &quot;maxPodsPerNode&quot;: &quot;A String&quot;, # Constraint enforced on the max num of pods per node.
788 },
789 &quot;name&quot;: &quot;A String&quot;, # The name of the node pool.
790 &quot;management&quot;: { # NodeManagement defines the set of node management services turned on for the # NodeManagement configuration for this NodePool.
791 # node pool.
792 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool.
793 # the Auto Upgrades will proceed.
794 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
795 # with the description of the upgrade.
796 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
797 # with the approximate start time for the upgrades, in
798 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
799 },
800 &quot;autoUpgrade&quot;: True or False, # A flag that specifies whether node auto-upgrade is enabled for the node
801 # pool. If enabled, node auto-upgrade helps keep the nodes in your node pool
802 # up to date with the latest release version of Kubernetes.
803 &quot;autoRepair&quot;: True or False, # A flag that specifies whether the node auto-repair is enabled for the node
804 # pool. If enabled, the nodes in this node pool will be monitored and, if
805 # they fail health checks too many times, an automatic repair action will be
806 # triggered.
807 },
808 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output only] Additional information about the current status of this
Dan O'Mearadd494642020-05-01 07:42:23 -0700809 # node pool instance, if available.
Bu Sun Kim65020912020-05-20 12:08:20 -0700810 &quot;autoscaling&quot;: { # NodePoolAutoscaling contains information required by cluster autoscaler to # Autoscaler configuration for this NodePool. Autoscaler is enabled
811 # only if a valid configuration is present.
812 # adjust the size of the node pool to the current cluster usage.
813 &quot;enabled&quot;: True or False, # Is autoscaling enabled for this node pool.
814 &quot;maxNodeCount&quot;: 42, # Maximum number of nodes in the NodePool. Must be &gt;= min_node_count. There
815 # has to enough quota to scale up the cluster.
816 &quot;minNodeCount&quot;: 42, # Minimum number of nodes in the NodePool. Must be &gt;= 1 and &lt;=
817 # max_node_count.
818 &quot;autoprovisioned&quot;: True or False, # Can this node pool be deleted automatically.
819 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700820 },
821 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700822 &quot;selfLink&quot;: &quot;A String&quot;, # [Output only] Server-defined URL for the resource.
823 &quot;networkPolicy&quot;: { # Configuration options for the NetworkPolicy feature. # Configuration options for the NetworkPolicy feature.
824 # https://kubernetes.io/docs/concepts/services-networking/networkpolicies/
825 &quot;provider&quot;: &quot;A String&quot;, # The selected network policy provider.
826 &quot;enabled&quot;: True or False, # Whether network policy is enabled on the cluster.
827 },
828 &quot;servicesIpv4Cidr&quot;: &quot;A String&quot;, # [Output only] The IP address range of the Kubernetes services in
829 # this cluster, in
830 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
831 # notation (e.g. `1.2.3.4/29`). Service addresses are
832 # typically put in the last `/16` from the container CIDR.
833 &quot;enableKubernetesAlpha&quot;: True or False, # Kubernetes alpha features are enabled on this cluster. This includes alpha
834 # API groups (e.g. v1alpha1) and features that may not be production ready in
835 # the kubernetes version of the master and nodes.
836 # The cluster has no SLA for uptime and master/node upgrades are disabled.
837 # Alpha enabled clusters are automatically deleted thirty days after
838 # creation.
839 &quot;description&quot;: &quot;A String&quot;, # An optional description of this cluster.
840 &quot;conditions&quot;: [ # Which conditions caused the current cluster state.
841 { # StatusCondition describes why a cluster or a node pool has a certain status
842 # (e.g., ERROR or DEGRADED).
843 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
844 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
845 },
846 ],
847 &quot;currentNodeCount&quot;: 42, # [Output only] The number of nodes currently in the cluster. Deprecated.
848 # Call Kubernetes API directly to retrieve node information.
849 &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 -0700850 # Currently available options:
851 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700852 # * &quot;monitoring.googleapis.com/kubernetes&quot; - The Cloud Monitoring
Dan O'Mearadd494642020-05-01 07:42:23 -0700853 # service with a Kubernetes-native resource model
854 # * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
855 # longer available as of GKE 1.15).
856 # * `none` - No metrics will be exported from the cluster.
857 #
858 # If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
859 # used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
Bu Sun Kim65020912020-05-20 12:08:20 -0700860 &quot;databaseEncryption&quot;: { # Configuration of etcd encryption. # Configuration of etcd encryption.
861 &quot;keyName&quot;: &quot;A String&quot;, # Name of CloudKMS key to use for the encryption of secrets in etcd.
862 # Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key
863 &quot;state&quot;: &quot;A String&quot;, # Denotes the state of etcd encryption.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700864 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700865 &quot;binaryAuthorization&quot;: { # Configuration for Binary Authorization. # Configuration for Binary Authorization.
866 &quot;enabled&quot;: True or False, # Enable Binary Authorization for this cluster. If enabled, all container
867 # images will be validated by Binary Authorization.
868 },
869 &quot;tpuIpv4CidrBlock&quot;: &quot;A String&quot;, # [Output only] The IP address range of the Cloud TPUs in this cluster, in
870 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
871 # notation (e.g. `1.2.3.4/29`).
872 &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
873 # policies.
874 # policies.
875 &quot;workloadPool&quot;: &quot;A String&quot;, # The workload pool to attach all Kubernetes service accounts to.
876 },
877 &quot;zone&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
878 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
879 # cluster resides. This field is deprecated, use location instead.
880 &quot;expireTime&quot;: &quot;A String&quot;, # [Output only] The time the cluster will be automatically
881 # deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
882 &quot;loggingService&quot;: &quot;A String&quot;, # The logging service the cluster should use to write logs.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700883 # Currently available options:
884 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700885 # * `logging.googleapis.com/kubernetes` - The Cloud Logging
886 # service with a Kubernetes-native resource model
887 # * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
888 # available as of GKE 1.15).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700889 # * `none` - no logs will be exported from the cluster.
Dan O'Mearadd494642020-05-01 07:42:23 -0700890 #
891 # If left as an empty string,`logging.googleapis.com/kubernetes` will be
892 # used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
Bu Sun Kim65020912020-05-20 12:08:20 -0700893 &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 -0700894 # For requests, this field should only be used in lieu of a
Bu Sun Kim65020912020-05-20 12:08:20 -0700895 # &quot;node_pool&quot; object, since this configuration (along with the
896 # &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 -0700897 # auto-generated name. Do not use this and a node_pool at the same time.
898 # For responses, this field will be populated with the node configuration of
899 # the first node pool. (For configuration of each node pool, see
900 # `node_pool.config`)
901 #
902 # If unspecified, the defaults are used.
903 # This field is deprecated, use node_pool.config instead.
Bu Sun Kim65020912020-05-20 12:08:20 -0700904 &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 -0700905 # valid sources or targets for network firewalls and are specified by
906 # the client during cluster or node pool creation. Each tag within the list
907 # must comply with RFC1035.
Bu Sun Kim65020912020-05-20 12:08:20 -0700908 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700909 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700910 &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 -0700911 # Specify the email address of the Service Account; otherwise, if no Service
Bu Sun Kim65020912020-05-20 12:08:20 -0700912 # Account is specified, the &quot;default&quot; service account is used.
913 &quot;imageType&quot;: &quot;A String&quot;, # The image type to use for this node. Note that for a given image type,
914 # the latest version of it will be used.
915 &quot;oauthScopes&quot;: [ # The set of Google API scopes to be made available on all of the
916 # node VMs under the &quot;default&quot; service account.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700917 #
918 # The following scopes are recommended, but not required, and by default are
919 # not included:
920 #
921 # * `https://www.googleapis.com/auth/compute` is required for mounting
922 # persistent storage on your nodes.
923 # * `https://www.googleapis.com/auth/devstorage.read_only` is required for
924 # communicating with **gcr.io**
Dan O'Mearadd494642020-05-01 07:42:23 -0700925 # (the [Google Container
926 # Registry](https://cloud.google.com/container-registry/)).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700927 #
928 # If unspecified, no scopes are added, unless Cloud Logging or Cloud
929 # Monitoring are enabled, in which case their required scopes will be added.
Bu Sun Kim65020912020-05-20 12:08:20 -0700930 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700931 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700932 &quot;taints&quot;: [ # List of kubernetes taints to be applied to each node.
Dan O'Mearadd494642020-05-01 07:42:23 -0700933 #
934 # For more information, including usage and the valid values, see:
935 # https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
936 { # Kubernetes taint is comprised of three fields: key, value, and effect. Effect
937 # can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute.
938 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700939 # See
940 # [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration)
941 # for more information, including usage and the valid values.
942 &quot;key&quot;: &quot;A String&quot;, # Key for taint.
943 &quot;value&quot;: &quot;A String&quot;, # Value for taint.
944 &quot;effect&quot;: &quot;A String&quot;, # Effect for taint.
Dan O'Mearadd494642020-05-01 07:42:23 -0700945 },
946 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700947 &quot;labels&quot;: { # The map of Kubernetes labels (key/value pairs) to be applied to each node.
948 # These will added in addition to any default label(s) that
949 # Kubernetes may apply to the node.
950 # In case of conflict in label keys, the applied set may differ depending on
951 # the Kubernetes version -- it&#x27;s best to assume the behavior is undefined
952 # and conflicts should be avoided.
953 # For more information, including usage and the valid values, see:
954 # https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
955 &quot;a_key&quot;: &quot;A String&quot;,
956 },
957 &quot;diskSizeGb&quot;: 42, # Size of the disk attached to each node, specified in GB.
958 # The smallest allowed disk size is 10GB.
959 #
960 # If unspecified, the default disk size is 100GB.
961 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to # The workload metadata configuration for this node.
962 # workloads on the node pool.
963 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running
964 # on the node pool.
965 },
966 &quot;accelerators&quot;: [ # A list of hardware accelerators to be attached to each node.
967 # See https://cloud.google.com/compute/docs/gpus for more information about
968 # support for GPUs.
969 { # AcceleratorConfig represents a Hardware Accelerator request.
970 &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of the accelerator cards exposed to an instance.
971 &quot;acceleratorType&quot;: &quot;A String&quot;, # The accelerator type resource name. List of supported accelerators
972 # [here](https://cloud.google.com/compute/docs/gpus)
973 },
974 ],
975 &quot;machineType&quot;: &quot;A String&quot;, # The name of a Google Compute Engine [machine
976 # type](https://cloud.google.com/compute/docs/machine-types) (e.g.
977 # `n1-standard-1`).
978 #
979 # If unspecified, the default machine type is
980 # `n1-standard-1`.
981 &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;)
982 #
983 # If unspecified, the default disk type is &#x27;pd-standard&#x27;
984 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
985 &quot;enableSecureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled.
986 #
987 # Secure Boot helps ensure that the system only runs authentic software by
988 # verifying the digital signature of all boot components, and halting the
989 # boot process if signature verification fails.
990 &quot;enableIntegrityMonitoring&quot;: True or False, # Defines whether the instance has integrity monitoring enabled.
991 #
992 # Enables monitoring and attestation of the boot integrity of the instance.
993 # The attestation is performed against the integrity policy baseline. This
994 # baseline is initially derived from the implicitly trusted boot image when
995 # the instance is created.
996 },
997 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used by this instance. The instance may be
998 # scheduled on the specified or newer CPU platform. Applicable values are the
999 # friendly names of CPU platforms, such as
1000 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Haswell&amp;quot;&lt;/code&gt; or
1001 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Sandy Bridge&amp;quot;&lt;/code&gt;. For more
1002 # information, read [how to specify min CPU
1003 # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
1004 &quot;preemptible&quot;: True or False, # Whether the nodes are created as preemptible VM instances. See:
1005 # https://cloud.google.com/compute/docs/instances/preemptible for more
1006 # information about preemptible VM instances.
1007 &quot;localSsdCount&quot;: 42, # The number of local SSD disks to be attached to the node.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001008 #
Dan O'Mearadd494642020-05-01 07:42:23 -07001009 # The limit for this value is dependent upon the maximum number of
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001010 # disks available on a machine per zone. See:
Dan O'Mearadd494642020-05-01 07:42:23 -07001011 # https://cloud.google.com/compute/docs/disks/local-ssd
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001012 # for more information.
Bu Sun Kim65020912020-05-20 12:08:20 -07001013 &quot;sandboxConfig&quot;: { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node.
1014 &quot;type&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node.
1015 },
1016 &quot;metadata&quot;: { # The metadata key/value pairs assigned to instances in the cluster.
1017 #
1018 # Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
1019 # in length. These are reflected as part of a URL in the metadata server.
1020 # Additionally, to avoid ambiguity, keys must not conflict with any other
1021 # metadata keys for the project or be one of the reserved keys:
1022 # &quot;cluster-location&quot;
1023 # &quot;cluster-name&quot;
1024 # &quot;cluster-uid&quot;
1025 # &quot;configure-sh&quot;
1026 # &quot;containerd-configure-sh&quot;
1027 # &quot;enable-os-login&quot;
1028 # &quot;gci-ensure-gke-docker&quot;
1029 # &quot;gci-metrics-enabled&quot;
1030 # &quot;gci-update-strategy&quot;
1031 # &quot;instance-template&quot;
1032 # &quot;kube-env&quot;
1033 # &quot;startup-script&quot;
1034 # &quot;user-data&quot;
1035 # &quot;disable-address-manager&quot;
1036 # &quot;windows-startup-script-ps1&quot;
1037 # &quot;common-psm1&quot;
1038 # &quot;k8s-node-setup-psm1&quot;
1039 # &quot;install-ssh-psm1&quot;
1040 # &quot;user-profile-psm1&quot;
1041 # &quot;serial-port-logging-enable&quot;
1042 #
1043 # Values are free-form strings, and only have meaning as interpreted by
1044 # the image running in the instance. The only restriction placed on them is
1045 # that each value&#x27;s size must be less than or equal to 32 KB.
1046 #
1047 # The total size of all keys and values must be less than 512 KB.
1048 &quot;a_key&quot;: &quot;A String&quot;,
1049 },
1050 &quot;reservationAffinity&quot;: { # [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) # The optional reservation affinity. Setting this field will apply
1051 # the specified [Zonal Compute
1052 # Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
1053 # to this node pool.
1054 # is the configuration of desired reservation which instances could take
1055 # capacity from.
1056 &quot;key&quot;: &quot;A String&quot;, # Corresponds to the label key of a reservation resource. To target a
1057 # SPECIFIC_RESERVATION by name, specify &quot;googleapis.com/reservation-name&quot; as
1058 # the key and specify the name of your reservation as its value.
1059 &quot;values&quot;: [ # Corresponds to the label value(s) of reservation resource(s).
1060 &quot;A String&quot;,
1061 ],
1062 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Corresponds to the type of reservation consumption.
1063 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001064 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001065 &quot;status&quot;: &quot;A String&quot;, # [Output only] The current status of this cluster.
1066 &quot;networkConfig&quot;: { # NetworkConfig reports the relative names of network &amp; subnetwork. # Configuration for cluster networking.
1067 &quot;subnetwork&quot;: &quot;A String&quot;, # Output only. The relative name of the Google Compute Engine
1068 # [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the
1069 # cluster is connected. Example:
1070 # projects/my-project/regions/us-central1/subnetworks/my-subnet
1071 &quot;network&quot;: &quot;A String&quot;, # Output only. The relative name of the Google Compute Engine
1072 # network(https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
1073 # to which the cluster is connected. Example:
1074 # projects/my-project/global/networks/my-network
1075 &quot;enableIntraNodeVisibility&quot;: True or False, # Whether Intra-node visibility is enabled for this cluster.
1076 # This makes same node pod to pod traffic visible for VPC network.
1077 },
1078 &quot;name&quot;: &quot;A String&quot;, # The name of this cluster. The name must be unique within this project
1079 # and location (e.g. zone or region), and can be up to 40 characters with
1080 # the following restrictions:
1081 #
1082 # * Lowercase letters, numbers, and hyphens only.
1083 # * Must start with a letter.
1084 # * Must end with a number or a letter.
1085 &quot;endpoint&quot;: &quot;A String&quot;, # [Output only] The IP address of this cluster&#x27;s master endpoint.
1086 # The endpoint can be accessed from the internet at
1087 # `https://username:password@endpoint/`.
1088 #
1089 # See the `masterAuth` property of this resource for username and
1090 # password information.
1091 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
1092 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1093 # or
1094 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1095 # in which the cluster resides.
1096 &quot;createTime&quot;: &quot;A String&quot;, # [Output only] The time the cluster was created, in
1097 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1098 &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 -07001099 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
1100 # notation (e.g. `10.96.0.0/14`). Leave blank to have
1101 # one automatically chosen or specify a `/14` block in `10.0.0.0/8`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001102 &quot;autoscaling&quot;: { # ClusterAutoscaling contains global, per-cluster information # Cluster-level autoscaling configuration.
1103 # required by Cluster Autoscaler to automatically adjust
1104 # the size of the cluster and create/delete
1105 # node pools based on the current needs.
1106 &quot;autoprovisioningLocations&quot;: [ # The list of Google Compute Engine
1107 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
1108 # NodePool&#x27;s nodes can be created by NAP.
1109 &quot;A String&quot;,
1110 ],
1111 &quot;resourceLimits&quot;: [ # Contains global constraints regarding minimum and maximum
1112 # amount of resources in the cluster.
1113 { # Contains information about amount of some resource in the cluster.
1114 # For memory, value should be in GB.
1115 &quot;maximum&quot;: &quot;A String&quot;, # Maximum amount of the resource in the cluster.
1116 &quot;resourceType&quot;: &quot;A String&quot;, # Resource name &quot;cpu&quot;, &quot;memory&quot; or gpu-specific string.
1117 &quot;minimum&quot;: &quot;A String&quot;, # Minimum amount of the resource in the cluster.
1118 },
1119 ],
1120 &quot;enableNodeAutoprovisioning&quot;: True or False, # Enables automatic node pool creation and deletion.
1121 &quot;autoprovisioningNodePoolDefaults&quot;: { # AutoprovisioningNodePoolDefaults contains defaults for a node pool created # AutoprovisioningNodePoolDefaults contains defaults for a node pool
1122 # created by NAP.
1123 # by NAP.
1124 &quot;oauthScopes&quot;: [ # Scopes that are used by NAP when creating node pools. If oauth_scopes are
1125 # specified, service_account should be empty.
1126 &quot;A String&quot;,
1127 ],
1128 &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.
1129 # node pool.
1130 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool.
1131 # the Auto Upgrades will proceed.
1132 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
1133 # with the description of the upgrade.
1134 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
1135 # with the approximate start time for the upgrades, in
1136 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1137 },
1138 &quot;autoUpgrade&quot;: True or False, # A flag that specifies whether node auto-upgrade is enabled for the node
1139 # pool. If enabled, node auto-upgrade helps keep the nodes in your node pool
1140 # up to date with the latest release version of Kubernetes.
1141 &quot;autoRepair&quot;: True or False, # A flag that specifies whether the node auto-repair is enabled for the node
1142 # pool. If enabled, the nodes in this node pool will be monitored and, if
1143 # they fail health checks too many times, an automatic repair action will be
1144 # triggered.
1145 },
1146 &quot;upgradeSettings&quot;: { # These upgrade settings control the level of parallelism and the level of # Specifies the upgrade settings for NAP created node pools
1147 # disruption caused by an upgrade.
1148 #
1149 # maxUnavailable controls the number of nodes that can be simultaneously
1150 # unavailable.
1151 #
1152 # maxSurge controls the number of additional nodes that can be added to the
1153 # node pool temporarily for the time of the upgrade to increase the number of
1154 # available nodes.
1155 #
1156 # (maxUnavailable + maxSurge) determines the level of parallelism (how many
1157 # nodes are being upgraded at the same time).
1158 #
1159 # Note: upgrades inevitably introduce some disruption since workloads need to
1160 # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
1161 # this holds true. (Disruption stays within the limits of
1162 # PodDisruptionBudget, if it is configured.)
1163 #
1164 # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
1165 # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
1166 # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
1167 # down 3 old (not yet upgraded) nodes at the same time. This ensures that
1168 # there are always at least 4 nodes available.
1169 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during
1170 # the upgrade process. A node is considered available if its status is
1171 # Ready.
1172 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size
1173 # of the node pool during the upgrade process.
1174 },
1175 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs. If
1176 # service_account is specified, scopes should be empty.
1177 },
1178 },
1179 &quot;initialNodeCount&quot;: 42, # The number of nodes to create in this cluster. You must ensure that your
1180 # Compute Engine &lt;a href=&quot;/compute/docs/resource-quotas&quot;&gt;resource quota&lt;/a&gt;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001181 # is sufficient for this number of instances. You must also have available
1182 # firewall and routes quota.
1183 # For requests, this field should only be used in lieu of a
Bu Sun Kim65020912020-05-20 12:08:20 -07001184 # &quot;node_pool&quot; object, since this configuration (along with the
1185 # &quot;node_config&quot;) will be used to create a &quot;NodePool&quot; object with an
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001186 # auto-generated name. Do not use this and a node_pool at the same time.
1187 #
1188 # This field is deprecated, use node_pool.initial_node_count instead.
Bu Sun Kim65020912020-05-20 12:08:20 -07001189 &quot;instanceGroupUrls&quot;: [ # Deprecated. Use node_pools.instance_group_urls.
1190 &quot;A String&quot;,
1191 ],
1192 &quot;privateClusterConfig&quot;: { # Configuration options for private clusters. # Configuration for private cluster.
1193 &quot;peeringName&quot;: &quot;A String&quot;, # Output only. The peering name in the customer VPC used by this cluster.
1194 &quot;publicEndpoint&quot;: &quot;A String&quot;, # Output only. The external IP address of this cluster&#x27;s master endpoint.
1195 &quot;enablePrivateNodes&quot;: True or False, # Whether nodes have internal IP addresses only. If enabled, all nodes are
1196 # given only RFC 1918 private addresses and communicate with the master via
1197 # private networking.
1198 &quot;masterIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP range in CIDR notation to use for the hosted master network. This
1199 # range will be used for assigning internal IP addresses to the master or
1200 # set of masters, as well as the ILB VIP. This range must not overlap with
1201 # any other ranges in use within the cluster&#x27;s network.
1202 &quot;privateEndpoint&quot;: &quot;A String&quot;, # Output only. The internal IP address of this cluster&#x27;s master endpoint.
1203 &quot;enablePrivateEndpoint&quot;: True or False, # Whether the master&#x27;s internal IP address is used as the cluster endpoint.
1204 },
1205 &quot;shieldedNodes&quot;: { # Configuration of Shielded Nodes feature. # Shielded Nodes configuration.
1206 &quot;enabled&quot;: True or False, # Whether Shielded Nodes features are enabled on all nodes in this cluster.
1207 },
1208 &quot;verticalPodAutoscaling&quot;: { # VerticalPodAutoscaling contains global, per-cluster information # Cluster-level Vertical Pod Autoscaling configuration.
1209 # required by Vertical Pod Autoscaler to automatically adjust
1210 # the resources of pods controlled by it.
1211 &quot;enabled&quot;: True or False, # Enables vertical pod autoscaling.
1212 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001213 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001214 &quot;zone&quot;: &quot;A String&quot;, # Deprecated. The name of the Google Compute Engine
1215 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1216 # cluster resides. This field has been deprecated and replaced by the parent
1217 # field.
1218 &quot;parent&quot;: &quot;A String&quot;, # The parent (project and location) where the cluster will be created.
1219 # Specified in the format `projects/*/locations/*`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001220 }
1221
1222 x__xgafv: string, V1 error format.
1223 Allowed values
1224 1 - v1 error format
1225 2 - v2 error format
1226
1227Returns:
1228 An object of the form:
1229
1230 { # This operation resource represents operations that may have happened or are
1231 # happening on the cluster. All fields are output only.
Bu Sun Kim65020912020-05-20 12:08:20 -07001232 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
1233 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001234 { # StatusCondition describes why a cluster or a node pool has a certain status
1235 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07001236 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
1237 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001238 },
1239 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001240 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
Dan O'Mearadd494642020-05-01 07:42:23 -07001241 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07001242 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001243 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1244 # or
1245 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1246 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07001247 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
1248 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1249 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
1250 &quot;stages&quot;: [ # Substages of an operation or a stage.
1251 # Object with schema name: OperationProgress
1252 ],
1253 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
1254 # Unset for single-stage operations.
1255 &quot;metrics&quot;: [ # Progress metric bundle, for example:
1256 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
1257 # {name: &quot;nodes total&quot;, int_value: 32}]
1258 # or
1259 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
1260 # {name: &quot;progress scale&quot;, double_value: 1.0}]
1261 { # Progress metric is (string, int|float|string) pair.
1262 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
1263 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
1264 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
1265 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
1266 },
1267 ],
1268 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
1269 # Unset for single-stage operations.
1270 },
1271 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
1272 { # StatusCondition describes why a cluster or a node pool has a certain status
1273 # (e.g., ERROR or DEGRADED).
1274 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
1275 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
1276 },
1277 ],
1278 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
1279 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1280 # operation is taking place. This field is deprecated, use location instead.
1281 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
1282 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
1283 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
1284 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
1285 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
1286 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001287 }</pre>
1288</div>
1289
1290<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -07001291 <code class="details" id="delete">delete(name, projectId=None, zone=None, clusterId=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001292 <pre>Deletes the cluster, including the Kubernetes endpoint and all worker
1293nodes.
1294
1295Firewalls and routes that were configured during cluster creation
1296are also deleted.
1297
1298Other Google Compute Engine resources that might be in use by the cluster,
Bu Sun Kim65020912020-05-20 12:08:20 -07001299such as load balancer resources, are not deleted if they weren&#x27;t present
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001300when the cluster was initially created.
1301
1302Args:
1303 name: string, The name (project, location, cluster) of the cluster to delete.
Bu Sun Kim65020912020-05-20 12:08:20 -07001304Specified in the format `projects/*/locations/*/clusters/*`. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001305 projectId: string, Deprecated. The Google Developers Console [project ID or project
1306number](https://support.google.com/cloud/answer/6158840).
1307This field has been deprecated and replaced by the name field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001308 zone: string, Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001309[zone](https://cloud.google.com/compute/docs/zones#available) in which the
1310cluster resides. This field has been deprecated and replaced by the name
1311field.
Bu Sun Kim65020912020-05-20 12:08:20 -07001312 clusterId: string, Deprecated. The name of the cluster to delete.
1313This field has been deprecated and replaced by the name field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001314 x__xgafv: string, V1 error format.
1315 Allowed values
1316 1 - v1 error format
1317 2 - v2 error format
1318
1319Returns:
1320 An object of the form:
1321
1322 { # This operation resource represents operations that may have happened or are
1323 # happening on the cluster. All fields are output only.
Bu Sun Kim65020912020-05-20 12:08:20 -07001324 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
1325 &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;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
1329 &quot;code&quot;: &quot;A String&quot;, # Machine-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;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
Dan O'Mearadd494642020-05-01 07:42:23 -07001333 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07001334 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001335 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1336 # or
1337 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1338 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07001339 &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;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
1342 &quot;stages&quot;: [ # Substages of an operation or a stage.
1343 # Object with schema name: OperationProgress
1344 ],
1345 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
1346 # Unset for single-stage operations.
1347 &quot;metrics&quot;: [ # Progress metric bundle, for example:
1348 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
1349 # {name: &quot;nodes total&quot;, int_value: 32}]
1350 # or
1351 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
1352 # {name: &quot;progress scale&quot;, double_value: 1.0}]
1353 { # Progress metric is (string, int|float|string) pair.
1354 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
1355 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
1356 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
1357 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
1358 },
1359 ],
1360 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
1361 # Unset for single-stage operations.
1362 },
1363 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
1364 { # StatusCondition describes why a cluster or a node pool has a certain status
1365 # (e.g., ERROR or DEGRADED).
1366 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
1367 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
1368 },
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;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
1376 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001379 }</pre>
1380</div>
1381
1382<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -07001383 <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 -07001384 <pre>Gets the details of a specific cluster.
1385
1386Args:
1387 name: string, The name (project, location, cluster) of the cluster to retrieve.
Bu Sun Kim65020912020-05-20 12:08:20 -07001388Specified in the format `projects/*/locations/*/clusters/*`. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001389 projectId: string, Deprecated. The Google Developers Console [project ID or project
1390number](https://support.google.com/cloud/answer/6158840).
1391This field has been deprecated and replaced by the name field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001392 zone: string, Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001393[zone](https://cloud.google.com/compute/docs/zones#available) in which the
1394cluster resides. This field has been deprecated and replaced by the name
1395field.
Bu Sun Kim65020912020-05-20 12:08:20 -07001396 clusterId: string, Deprecated. The name of the cluster to retrieve.
1397This field has been deprecated and replaced by the name field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001398 x__xgafv: string, V1 error format.
1399 Allowed values
1400 1 - v1 error format
1401 2 - v2 error format
1402
1403Returns:
1404 An object of the form:
1405
1406 { # A Google Kubernetes Engine cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -07001407 &quot;defaultMaxPodsConstraint&quot;: { # Constraints applied to pods. # The default constraint on the maximum number of pods that can be run
1408 # simultaneously on a node in the node pool of this cluster. Only honored
1409 # if cluster created with IP Alias support.
1410 &quot;maxPodsPerNode&quot;: &quot;A String&quot;, # Constraint enforced on the max num of pods per node.
1411 },
1412 &quot;network&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
1413 # [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
1414 # to which the cluster is connected. If left unspecified, the `default`
1415 # network will be used.
1416 &quot;labelFingerprint&quot;: &quot;A String&quot;, # The fingerprint of the set of labels for this cluster.
1417 &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 -07001418 # containers. This is provisioned from within the `container_ipv4_cidr`
1419 # range. This field will only be set when cluster is in route-based network
1420 # mode.
Bu Sun Kim65020912020-05-20 12:08:20 -07001421 &quot;masterAuthorizedNetworksConfig&quot;: { # Configuration options for the master authorized networks feature. Enabled # The configuration options for master authorized networks feature.
1422 # master authorized networks will disallow all external traffic to access
1423 # Kubernetes master through HTTPS except traffic from the given CIDR blocks,
1424 # Google Compute Engine Public IPs and Google Prod IPs.
1425 &quot;enabled&quot;: True or False, # Whether or not master authorized networks is enabled.
1426 &quot;cidrBlocks&quot;: [ # cidr_blocks define up to 50 external networks that could access
1427 # Kubernetes master through HTTPS.
1428 { # CidrBlock contains an optional name and one CIDR block.
1429 &quot;displayName&quot;: &quot;A String&quot;, # display_name is an optional field for users to identify CIDR blocks.
1430 &quot;cidrBlock&quot;: &quot;A String&quot;, # cidr_block must be specified in CIDR notation.
1431 },
1432 ],
1433 },
1434 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output only] Additional information about the current status of this
1435 # cluster, if available.
1436 &quot;masterAuth&quot;: { # The authentication information for accessing the master endpoint. # The authentication information for accessing the master endpoint.
1437 # If unspecified, the defaults are used:
1438 # For clusters before v1.12, if master_auth is unspecified, `username` will
1439 # be set to &quot;admin&quot;, a random password will be generated, and a client
1440 # certificate will be issued.
1441 # Authentication can be done using HTTP basic auth or using client
1442 # certificates.
1443 &quot;clusterCaCertificate&quot;: &quot;A String&quot;, # [Output only] Base64-encoded public certificate that is the root of
1444 # trust for the cluster.
1445 &quot;clientCertificate&quot;: &quot;A String&quot;, # [Output only] Base64-encoded public certificate used by clients to
1446 # authenticate to the cluster endpoint.
1447 &quot;username&quot;: &quot;A String&quot;, # The username to use for HTTP basic authentication to the master endpoint.
1448 # For clusters v1.6.0 and later, basic authentication can be disabled by
1449 # leaving username unspecified (or setting it to the empty string).
1450 &quot;password&quot;: &quot;A String&quot;, # The password to use for HTTP basic authentication to the master endpoint.
1451 # Because the master endpoint is open to the Internet, you should create a
1452 # strong password. If a password is provided for cluster creation, username
1453 # must be non-empty.
1454 &quot;clientCertificateConfig&quot;: { # Configuration for client certificates on the cluster. # Configuration for client certificate authentication on the cluster. For
1455 # clusters before v1.12, if no configuration is specified, a client
1456 # certificate is issued.
1457 &quot;issueClientCertificate&quot;: True or False, # Issue a client certificate.
1458 },
1459 &quot;clientKey&quot;: &quot;A String&quot;, # [Output only] Base64-encoded private key used by clients to authenticate
1460 # to the cluster endpoint.
1461 },
1462 &quot;authenticatorGroupsConfig&quot;: { # Configuration for returning group information from authenticators. # Configuration controlling RBAC group membership information.
1463 &quot;enabled&quot;: True or False, # Whether this cluster should return group membership lookups
1464 # during authentication using a group of security groups.
1465 &quot;securityGroup&quot;: &quot;A String&quot;, # The name of the security group-of-groups to be used. Only relevant
1466 # if enabled = true.
1467 },
1468 &quot;currentMasterVersion&quot;: &quot;A String&quot;, # [Output only] The current software version of the master endpoint.
1469 &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.
1470 # cluster, enabling additional functionality.
1471 &quot;networkPolicyConfig&quot;: { # Configuration for NetworkPolicy. This only tracks whether the addon # Configuration for NetworkPolicy. This only tracks whether the addon
1472 # is enabled or not on the Master, it does not track whether network policy
1473 # is enabled for the nodes.
1474 # is enabled or not on the Master, it does not track whether network policy
1475 # is enabled for the nodes.
1476 &quot;disabled&quot;: True or False, # Whether NetworkPolicy is enabled for this cluster.
1477 },
1478 &quot;cloudRunConfig&quot;: { # Configuration options for the Cloud Run feature. # Configuration for the Cloud Run addon, which allows the user to use a
1479 # managed Knative service.
1480 &quot;disabled&quot;: True or False, # Whether Cloud Run addon is enabled for this cluster.
1481 },
1482 &quot;horizontalPodAutoscaling&quot;: { # Configuration options for the horizontal pod autoscaling feature, which # Configuration for the horizontal pod autoscaling feature, which
1483 # increases or decreases the number of replica pods a replication controller
1484 # has based on the resource usage of the existing pods.
1485 # increases or decreases the number of replica pods a replication controller
1486 # has based on the resource usage of the existing pods.
1487 &quot;disabled&quot;: True or False, # Whether the Horizontal Pod Autoscaling feature is enabled in the cluster.
1488 # When enabled, it ensures that metrics are collected into Stackdriver
1489 # Monitoring.
1490 },
1491 &quot;httpLoadBalancing&quot;: { # Configuration options for the HTTP (L7) load balancing controller addon, # Configuration for the HTTP (L7) load balancing controller addon, which
1492 # makes it easy to set up HTTP load balancers for services in a cluster.
1493 # which makes it easy to set up HTTP load balancers for services in a cluster.
1494 &quot;disabled&quot;: True or False, # Whether the HTTP Load Balancing controller is enabled in the cluster.
1495 # When enabled, it runs a small pod in the cluster that manages the load
1496 # balancers.
1497 },
1498 &quot;kubernetesDashboard&quot;: { # Configuration for the Kubernetes Dashboard. # Configuration for the Kubernetes Dashboard.
1499 # This addon is deprecated, and will be disabled in 1.15. It is recommended
1500 # to use the Cloud Console to manage and monitor your Kubernetes clusters,
1501 # workloads and applications. For more information, see:
1502 # https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
1503 &quot;disabled&quot;: True or False, # Whether the Kubernetes Dashboard is enabled for this cluster.
1504 },
1505 },
1506 &quot;currentNodeVersion&quot;: &quot;A String&quot;, # [Output only] Deprecated, use
1507 # [NodePools.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.zones.clusters.nodePools)
1508 # instead. The current version of the node software components. If they are
1509 # currently at multiple versions because they&#x27;re in the process of being
1510 # upgraded, this reflects the minimum version of all nodes.
1511 &quot;subnetwork&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
1512 # [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which
1513 # the cluster is connected.
1514 &quot;resourceLabels&quot;: { # The resource labels for the cluster to use to annotate any related
1515 # Google Compute Engine resources.
1516 &quot;a_key&quot;: &quot;A String&quot;,
1517 },
1518 &quot;maintenancePolicy&quot;: { # MaintenancePolicy defines the maintenance policy to be used for the cluster. # Configure the maintenance policy for this cluster.
1519 &quot;window&quot;: { # MaintenanceWindow defines the maintenance window to be used for the cluster. # Specifies the maintenance window in which maintenance may be performed.
1520 &quot;dailyMaintenanceWindow&quot;: { # Time window specified for daily maintenance operations. # DailyMaintenanceWindow specifies a daily maintenance operation window.
1521 &quot;duration&quot;: &quot;A String&quot;, # [Output only] Duration of the time window, automatically chosen to be
1522 # smallest possible in the given scenario.
1523 # Duration will be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)
1524 # format &quot;PTnHnMnS&quot;.
1525 &quot;startTime&quot;: &quot;A String&quot;, # Time within the maintenance window to start the maintenance operations.
1526 # Time format should be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)
1527 # format &quot;HH:MM&quot;, where HH : [00-23] and MM : [00-59] GMT.
1528 },
1529 &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 -07001530 # maintenance to occur. The time windows may be overlapping. If no
1531 # maintenance windows are set, maintenance can occur at any time.
Bu Sun Kim65020912020-05-20 12:08:20 -07001532 &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 -07001533 # this window reccurs. They go on for the span of time between the start and
1534 # end time.
1535 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001536 # For example, to have something repeat every weekday, you&#x27;d use:
Dan O'Mearadd494642020-05-01 07:42:23 -07001537 # &lt;code&gt;FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR&lt;/code&gt;
1538 # To repeat some window daily (equivalent to the DailyMaintenanceWindow):
1539 # &lt;code&gt;FREQ=DAILY&lt;/code&gt;
1540 # For the first weekend of every month:
1541 # &lt;code&gt;FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU&lt;/code&gt;
1542 # This specifies how frequently the window starts. Eg, if you wanted to have
Bu Sun Kim65020912020-05-20 12:08:20 -07001543 # a 9-5 UTC-4 window every weekday, you&#x27;d use something like:
Dan O'Mearadd494642020-05-01 07:42:23 -07001544 # &lt;code&gt;
1545 # start time = 2019-01-01T09:00:00-0400
1546 # end time = 2019-01-01T17:00:00-0400
1547 # recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
1548 # &lt;/code&gt;
1549 # Windows can span multiple days. Eg, to make the window encompass every
1550 # weekend from midnight Saturday till the last minute of Sunday UTC:
1551 # &lt;code&gt;
1552 # start time = 2019-01-05T00:00:00Z
1553 # end time = 2019-01-07T23:59:00Z
1554 # recurrence = FREQ=WEEKLY;BYDAY=SA
1555 # &lt;/code&gt;
Bu Sun Kim65020912020-05-20 12:08:20 -07001556 # Note the start and end time&#x27;s specific dates are largely arbitrary except
Dan O'Mearadd494642020-05-01 07:42:23 -07001557 # to specify duration of the window and when it first starts.
1558 # The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.
Bu Sun Kim65020912020-05-20 12:08:20 -07001559 &quot;window&quot;: { # Represents an arbitrary window of time. # The window of the first recurrence.
1560 &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 -07001561 # start time.
Bu Sun Kim65020912020-05-20 12:08:20 -07001562 &quot;startTime&quot;: &quot;A String&quot;, # The time that the window first starts.
Dan O'Mearadd494642020-05-01 07:42:23 -07001563 },
1564 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001565 &quot;maintenanceExclusions&quot;: { # Exceptions to maintenance window. Non-emergency maintenance should not
Dan O'Mearadd494642020-05-01 07:42:23 -07001566 # occur in these windows.
Bu Sun Kim65020912020-05-20 12:08:20 -07001567 &quot;a_key&quot;: { # Represents an arbitrary window of time.
1568 &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 -07001569 # start time.
Bu Sun Kim65020912020-05-20 12:08:20 -07001570 &quot;startTime&quot;: &quot;A String&quot;, # The time that the window first starts.
Dan O'Mearadd494642020-05-01 07:42:23 -07001571 },
1572 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001573 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001574 &quot;resourceVersion&quot;: &quot;A String&quot;, # A hash identifying the version of this policy, so that updates to fields of
1575 # the policy won&#x27;t accidentally undo intermediate changes (and so that users
1576 # of the API unaware of some fields won&#x27;t accidentally remove other fields).
Dan O'Mearadd494642020-05-01 07:42:23 -07001577 # Make a &lt;code&gt;get()&lt;/code&gt; request to the cluster to get the current
1578 # resource version and include it with requests to set the policy.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001579 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001580 &quot;initialClusterVersion&quot;: &quot;A String&quot;, # The initial Kubernetes version for this cluster. Valid versions are those
1581 # found in validMasterVersions returned by getServerConfig. The version can
1582 # be upgraded over time; such upgrades are reflected in
1583 # currentMasterVersion and currentNodeVersion.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001584 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001585 # Users may specify either explicit versions offered by
1586 # Kubernetes Engine or version aliases, which have the following behavior:
1587 #
1588 # - &quot;latest&quot;: picks the highest valid Kubernetes version
1589 # - &quot;1.X&quot;: picks the highest valid patch+gke.N patch in the 1.X version
1590 # - &quot;1.X.Y&quot;: picks the highest valid gke.N patch in the 1.X.Y version
1591 # - &quot;1.X.Y-gke.N&quot;: picks an explicit Kubernetes version
1592 # - &quot;&quot;,&quot;-&quot;: picks the default Kubernetes version
1593 &quot;ipAllocationPolicy&quot;: { # Configuration for controlling how IPs are allocated in the cluster. # Configuration for cluster IP allocation.
1594 &quot;clusterIpv4Cidr&quot;: &quot;A String&quot;, # This field is deprecated, use cluster_ipv4_cidr_block.
1595 &quot;servicesIpv4Cidr&quot;: &quot;A String&quot;, # This field is deprecated, use services_ipv4_cidr_block.
1596 &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 -07001597 # will be automatically chosen with the default size.
1598 #
1599 # This field is only applicable when `use_ip_aliases` is true.
1600 #
1601 # Set to blank to have a range chosen with the default size.
1602 #
1603 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
1604 # netmask.
1605 #
1606 # Set to a
1607 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
1608 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
1609 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
1610 # to use.
Bu Sun Kim65020912020-05-20 12:08:20 -07001611 &quot;nodeIpv4Cidr&quot;: &quot;A String&quot;, # This field is deprecated, use node_ipv4_cidr_block.
1612 &quot;clusterIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP address range for the cluster pod IPs. If this field is set, then
1613 # `cluster.cluster_ipv4_cidr` must be left blank.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001614 #
1615 # This field is only applicable when `use_ip_aliases` is true.
Bu Sun Kim65020912020-05-20 12:08:20 -07001616 #
1617 # Set to blank to have a range chosen with the default size.
1618 #
1619 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
1620 # netmask.
1621 #
1622 # Set to a
1623 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
1624 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
1625 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
1626 # to use.
1627 &quot;clusterSecondaryRangeName&quot;: &quot;A String&quot;, # The name of the secondary range to be used for the cluster CIDR
1628 # block. The secondary range will be used for pod IP
1629 # addresses. This must be an existing secondary range associated
1630 # with the cluster subnetwork.
1631 #
1632 # This field is only applicable with use_ip_aliases is true and
1633 # create_subnetwork is false.
1634 &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 -07001635 #
1636 # This is applicable only if `create_subnetwork` is true.
1637 #
1638 # Set to blank to have a range chosen with the default size.
1639 #
1640 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
1641 # netmask.
1642 #
1643 # Set to a
1644 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
1645 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
1646 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
1647 # to use.
Bu Sun Kim65020912020-05-20 12:08:20 -07001648 &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 -07001649 # range will be automatically chosen with the default size.
1650 #
1651 # This field is only applicable when `use_ip_aliases` is true.
1652 #
1653 # If unspecified, the range will use the default size.
1654 #
1655 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
1656 # netmask.
1657 #
1658 # Set to a
1659 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
1660 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
1661 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
1662 # to use.
Bu Sun Kim65020912020-05-20 12:08:20 -07001663 &quot;createSubnetwork&quot;: True or False, # Whether a new subnetwork will be created automatically for the cluster.
1664 #
1665 # This field is only applicable when `use_ip_aliases` is true.
1666 &quot;useIpAliases&quot;: True or False, # Whether alias IPs will be used for pod IPs in the cluster.
1667 &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 -07001668 # CIDR block. The secondary range will be used for service
1669 # ClusterIPs. This must be an existing secondary range associated
1670 # with the cluster subnetwork.
1671 #
1672 # This field is only applicable with use_ip_aliases is true and
1673 # create_subnetwork is false.
Bu Sun Kim65020912020-05-20 12:08:20 -07001674 &quot;subnetworkName&quot;: &quot;A String&quot;, # A custom subnetwork name to be used if `create_subnetwork` is true. If
1675 # this field is empty, then an automatic name will be chosen for the new
1676 # subnetwork.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001677 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001678 &quot;legacyAbac&quot;: { # Configuration for the legacy Attribute Based Access Control authorization # Configuration for the legacy ABAC authorization mode.
1679 # mode.
1680 &quot;enabled&quot;: True or False, # Whether the ABAC authorizer is enabled for this cluster. When enabled,
1681 # identities in the system, including service accounts, nodes, and
1682 # controllers, will have statically granted permissions beyond those
1683 # provided by the RBAC configuration or IAM.
Dan O'Mearadd494642020-05-01 07:42:23 -07001684 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001685 &quot;resourceUsageExportConfig&quot;: { # Configuration for exporting cluster resource usages. # Configuration for exporting resource usages. Resource usage export is
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001686 # disabled when this config is unspecified.
Bu Sun Kim65020912020-05-20 12:08:20 -07001687 &quot;enableNetworkEgressMetering&quot;: True or False, # Whether to enable network egress metering for this cluster. If enabled, a
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001688 # daemonset will be created in the cluster to meter network egress traffic.
Bu Sun Kim65020912020-05-20 12:08:20 -07001689 &quot;consumptionMeteringConfig&quot;: { # Parameters for controlling consumption metering. # Configuration to enable resource consumption metering.
1690 &quot;enabled&quot;: True or False, # Whether to enable consumption metering for this cluster. If enabled, a
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001691 # second BigQuery table will be created to hold resource consumption
1692 # records.
1693 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001694 &quot;bigqueryDestination&quot;: { # Parameters for using BigQuery as the destination of resource usage export. # Configuration to use BigQuery as usage export destination.
1695 &quot;datasetId&quot;: &quot;A String&quot;, # The ID of a BigQuery Dataset.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001696 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001697 },
1698 &quot;enableTpu&quot;: True or False, # Enable the ability to use Cloud TPUs in this cluster.
1699 &quot;locations&quot;: [ # The list of Google Compute Engine
1700 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
1701 # cluster&#x27;s nodes should be located.
1702 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001703 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001704 &quot;nodePools&quot;: [ # The node pools associated with this cluster.
1705 # 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 -07001706 # specified.
Bu Sun Kim65020912020-05-20 12:08:20 -07001707 { # NodePool contains the name and configuration for a cluster&#x27;s node pool.
1708 # 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 -07001709 # specification, under the control of the cluster master. They may have a set
1710 # of Kubernetes labels applied to them, which may be used to reference them
1711 # during pod scheduling. They may also be resized up or down, to accommodate
1712 # the workload.
Bu Sun Kim65020912020-05-20 12:08:20 -07001713 &quot;initialNodeCount&quot;: 42, # The initial node count for the pool. You must ensure that your
1714 # Compute Engine &lt;a href=&quot;/compute/docs/resource-quotas&quot;&gt;resource quota&lt;/a&gt;
1715 # is sufficient for this number of instances. You must also have available
1716 # firewall and routes quota.
1717 &quot;locations&quot;: [ # The list of Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001718 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
Bu Sun Kim65020912020-05-20 12:08:20 -07001719 # NodePool&#x27;s nodes should be located.
1720 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07001721 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001722 &quot;selfLink&quot;: &quot;A String&quot;, # [Output only] Server-defined URL for the resource.
1723 &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 -07001724 # disruption caused by an upgrade.
1725 #
1726 # maxUnavailable controls the number of nodes that can be simultaneously
1727 # unavailable.
1728 #
1729 # maxSurge controls the number of additional nodes that can be added to the
1730 # node pool temporarily for the time of the upgrade to increase the number of
1731 # available nodes.
1732 #
1733 # (maxUnavailable + maxSurge) determines the level of parallelism (how many
1734 # nodes are being upgraded at the same time).
1735 #
1736 # Note: upgrades inevitably introduce some disruption since workloads need to
1737 # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
1738 # this holds true. (Disruption stays within the limits of
1739 # PodDisruptionBudget, if it is configured.)
1740 #
1741 # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
1742 # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
1743 # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
1744 # down 3 old (not yet upgraded) nodes at the same time. This ensures that
1745 # there are always at least 4 nodes available.
Bu Sun Kim65020912020-05-20 12:08:20 -07001746 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during
Dan O'Mearadd494642020-05-01 07:42:23 -07001747 # the upgrade process. A node is considered available if its status is
1748 # Ready.
Bu Sun Kim65020912020-05-20 12:08:20 -07001749 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size
1750 # of the node pool during the upgrade process.
Dan O'Mearadd494642020-05-01 07:42:23 -07001751 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001752 &quot;instanceGroupUrls&quot;: [ # [Output only] The resource URLs of the [managed instance
1753 # groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
1754 # associated with this node pool.
1755 &quot;A String&quot;,
1756 ],
1757 &quot;version&quot;: &quot;A String&quot;, # The version of the Kubernetes of this node.
1758 &quot;podIpv4CidrSize&quot;: 42, # [Output only] The pod CIDR block size per node in this node pool.
1759 &quot;conditions&quot;: [ # Which conditions caused the current node pool state.
1760 { # StatusCondition describes why a cluster or a node pool has a certain status
1761 # (e.g., ERROR or DEGRADED).
1762 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
1763 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Dan O'Mearadd494642020-05-01 07:42:23 -07001764 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001765 ],
1766 &quot;status&quot;: &quot;A String&quot;, # [Output only] The status of the nodes in this pool instance.
1767 &quot;config&quot;: { # Parameters that describe the nodes in a cluster. # The node configuration of the pool.
1768 &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 -07001769 # valid sources or targets for network firewalls and are specified by
1770 # the client during cluster or node pool creation. Each tag within the list
1771 # must comply with RFC1035.
Bu Sun Kim65020912020-05-20 12:08:20 -07001772 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001773 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001774 &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 -07001775 # Specify the email address of the Service Account; otherwise, if no Service
Bu Sun Kim65020912020-05-20 12:08:20 -07001776 # Account is specified, the &quot;default&quot; service account is used.
1777 &quot;imageType&quot;: &quot;A String&quot;, # The image type to use for this node. Note that for a given image type,
1778 # the latest version of it will be used.
1779 &quot;oauthScopes&quot;: [ # The set of Google API scopes to be made available on all of the
1780 # node VMs under the &quot;default&quot; service account.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001781 #
1782 # The following scopes are recommended, but not required, and by default are
1783 # not included:
1784 #
1785 # * `https://www.googleapis.com/auth/compute` is required for mounting
1786 # persistent storage on your nodes.
1787 # * `https://www.googleapis.com/auth/devstorage.read_only` is required for
1788 # communicating with **gcr.io**
Dan O'Mearadd494642020-05-01 07:42:23 -07001789 # (the [Google Container
1790 # Registry](https://cloud.google.com/container-registry/)).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001791 #
1792 # If unspecified, no scopes are added, unless Cloud Logging or Cloud
1793 # Monitoring are enabled, in which case their required scopes will be added.
Bu Sun Kim65020912020-05-20 12:08:20 -07001794 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001795 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001796 &quot;taints&quot;: [ # List of kubernetes taints to be applied to each node.
Dan O'Mearadd494642020-05-01 07:42:23 -07001797 #
1798 # For more information, including usage and the valid values, see:
1799 # https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
1800 { # Kubernetes taint is comprised of three fields: key, value, and effect. Effect
1801 # can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute.
1802 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001803 # See
1804 # [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration)
1805 # for more information, including usage and the valid values.
1806 &quot;key&quot;: &quot;A String&quot;, # Key for taint.
1807 &quot;value&quot;: &quot;A String&quot;, # Value for taint.
1808 &quot;effect&quot;: &quot;A String&quot;, # Effect for taint.
Dan O'Mearadd494642020-05-01 07:42:23 -07001809 },
1810 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001811 &quot;labels&quot;: { # The map of Kubernetes labels (key/value pairs) to be applied to each node.
1812 # These will added in addition to any default label(s) that
1813 # Kubernetes may apply to the node.
1814 # In case of conflict in label keys, the applied set may differ depending on
1815 # the Kubernetes version -- it&#x27;s best to assume the behavior is undefined
1816 # and conflicts should be avoided.
1817 # For more information, including usage and the valid values, see:
1818 # https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
1819 &quot;a_key&quot;: &quot;A String&quot;,
1820 },
1821 &quot;diskSizeGb&quot;: 42, # Size of the disk attached to each node, specified in GB.
1822 # The smallest allowed disk size is 10GB.
1823 #
1824 # If unspecified, the default disk size is 100GB.
1825 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to # The workload metadata configuration for this node.
1826 # workloads on the node pool.
1827 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running
1828 # on the node pool.
1829 },
1830 &quot;accelerators&quot;: [ # A list of hardware accelerators to be attached to each node.
1831 # See https://cloud.google.com/compute/docs/gpus for more information about
1832 # support for GPUs.
1833 { # AcceleratorConfig represents a Hardware Accelerator request.
1834 &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of the accelerator cards exposed to an instance.
1835 &quot;acceleratorType&quot;: &quot;A String&quot;, # The accelerator type resource name. List of supported accelerators
1836 # [here](https://cloud.google.com/compute/docs/gpus)
1837 },
1838 ],
1839 &quot;machineType&quot;: &quot;A String&quot;, # The name of a Google Compute Engine [machine
1840 # type](https://cloud.google.com/compute/docs/machine-types) (e.g.
1841 # `n1-standard-1`).
1842 #
1843 # If unspecified, the default machine type is
1844 # `n1-standard-1`.
1845 &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;)
1846 #
1847 # If unspecified, the default disk type is &#x27;pd-standard&#x27;
1848 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
1849 &quot;enableSecureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled.
1850 #
1851 # Secure Boot helps ensure that the system only runs authentic software by
1852 # verifying the digital signature of all boot components, and halting the
1853 # boot process if signature verification fails.
1854 &quot;enableIntegrityMonitoring&quot;: True or False, # Defines whether the instance has integrity monitoring enabled.
1855 #
1856 # Enables monitoring and attestation of the boot integrity of the instance.
1857 # The attestation is performed against the integrity policy baseline. This
1858 # baseline is initially derived from the implicitly trusted boot image when
1859 # the instance is created.
1860 },
1861 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used by this instance. The instance may be
1862 # scheduled on the specified or newer CPU platform. Applicable values are the
1863 # friendly names of CPU platforms, such as
1864 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Haswell&amp;quot;&lt;/code&gt; or
1865 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Sandy Bridge&amp;quot;&lt;/code&gt;. For more
1866 # information, read [how to specify min CPU
1867 # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
1868 &quot;preemptible&quot;: True or False, # Whether the nodes are created as preemptible VM instances. See:
1869 # https://cloud.google.com/compute/docs/instances/preemptible for more
1870 # information about preemptible VM instances.
1871 &quot;localSsdCount&quot;: 42, # The number of local SSD disks to be attached to the node.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001872 #
Dan O'Mearadd494642020-05-01 07:42:23 -07001873 # The limit for this value is dependent upon the maximum number of
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001874 # disks available on a machine per zone. See:
Dan O'Mearadd494642020-05-01 07:42:23 -07001875 # https://cloud.google.com/compute/docs/disks/local-ssd
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001876 # for more information.
Bu Sun Kim65020912020-05-20 12:08:20 -07001877 &quot;sandboxConfig&quot;: { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node.
1878 &quot;type&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001879 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001880 &quot;metadata&quot;: { # The metadata key/value pairs assigned to instances in the cluster.
1881 #
1882 # Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
1883 # in length. These are reflected as part of a URL in the metadata server.
1884 # Additionally, to avoid ambiguity, keys must not conflict with any other
1885 # metadata keys for the project or be one of the reserved keys:
1886 # &quot;cluster-location&quot;
1887 # &quot;cluster-name&quot;
1888 # &quot;cluster-uid&quot;
1889 # &quot;configure-sh&quot;
1890 # &quot;containerd-configure-sh&quot;
1891 # &quot;enable-os-login&quot;
1892 # &quot;gci-ensure-gke-docker&quot;
1893 # &quot;gci-metrics-enabled&quot;
1894 # &quot;gci-update-strategy&quot;
1895 # &quot;instance-template&quot;
1896 # &quot;kube-env&quot;
1897 # &quot;startup-script&quot;
1898 # &quot;user-data&quot;
1899 # &quot;disable-address-manager&quot;
1900 # &quot;windows-startup-script-ps1&quot;
1901 # &quot;common-psm1&quot;
1902 # &quot;k8s-node-setup-psm1&quot;
1903 # &quot;install-ssh-psm1&quot;
1904 # &quot;user-profile-psm1&quot;
1905 # &quot;serial-port-logging-enable&quot;
1906 #
1907 # Values are free-form strings, and only have meaning as interpreted by
1908 # the image running in the instance. The only restriction placed on them is
1909 # that each value&#x27;s size must be less than or equal to 32 KB.
1910 #
1911 # The total size of all keys and values must be less than 512 KB.
1912 &quot;a_key&quot;: &quot;A String&quot;,
1913 },
1914 &quot;reservationAffinity&quot;: { # [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) # The optional reservation affinity. Setting this field will apply
1915 # the specified [Zonal Compute
1916 # Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
1917 # to this node pool.
1918 # is the configuration of desired reservation which instances could take
1919 # capacity from.
1920 &quot;key&quot;: &quot;A String&quot;, # Corresponds to the label key of a reservation resource. To target a
1921 # SPECIFIC_RESERVATION by name, specify &quot;googleapis.com/reservation-name&quot; as
1922 # the key and specify the name of your reservation as its value.
1923 &quot;values&quot;: [ # Corresponds to the label value(s) of reservation resource(s).
1924 &quot;A String&quot;,
1925 ],
1926 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Corresponds to the type of reservation consumption.
1927 },
1928 },
1929 &quot;maxPodsConstraint&quot;: { # Constraints applied to pods. # The constraint on the maximum number of pods that can be run
1930 # simultaneously on a node in the node pool.
1931 &quot;maxPodsPerNode&quot;: &quot;A String&quot;, # Constraint enforced on the max num of pods per node.
1932 },
1933 &quot;name&quot;: &quot;A String&quot;, # The name of the node pool.
1934 &quot;management&quot;: { # NodeManagement defines the set of node management services turned on for the # NodeManagement configuration for this NodePool.
1935 # node pool.
1936 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool.
1937 # the Auto Upgrades will proceed.
1938 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
1939 # with the description of the upgrade.
1940 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
1941 # with the approximate start time for the upgrades, in
1942 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1943 },
1944 &quot;autoUpgrade&quot;: True or False, # A flag that specifies whether node auto-upgrade is enabled for the node
1945 # pool. If enabled, node auto-upgrade helps keep the nodes in your node pool
1946 # up to date with the latest release version of Kubernetes.
1947 &quot;autoRepair&quot;: True or False, # A flag that specifies whether the node auto-repair is enabled for the node
1948 # pool. If enabled, the nodes in this node pool will be monitored and, if
1949 # they fail health checks too many times, an automatic repair action will be
1950 # triggered.
1951 },
1952 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output only] Additional information about the current status of this
Dan O'Mearadd494642020-05-01 07:42:23 -07001953 # node pool instance, if available.
Bu Sun Kim65020912020-05-20 12:08:20 -07001954 &quot;autoscaling&quot;: { # NodePoolAutoscaling contains information required by cluster autoscaler to # Autoscaler configuration for this NodePool. Autoscaler is enabled
1955 # only if a valid configuration is present.
1956 # adjust the size of the node pool to the current cluster usage.
1957 &quot;enabled&quot;: True or False, # Is autoscaling enabled for this node pool.
1958 &quot;maxNodeCount&quot;: 42, # Maximum number of nodes in the NodePool. Must be &gt;= min_node_count. There
1959 # has to enough quota to scale up the cluster.
1960 &quot;minNodeCount&quot;: 42, # Minimum number of nodes in the NodePool. Must be &gt;= 1 and &lt;=
1961 # max_node_count.
1962 &quot;autoprovisioned&quot;: True or False, # Can this node pool be deleted automatically.
1963 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001964 },
1965 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001966 &quot;selfLink&quot;: &quot;A String&quot;, # [Output only] Server-defined URL for the resource.
1967 &quot;networkPolicy&quot;: { # Configuration options for the NetworkPolicy feature. # Configuration options for the NetworkPolicy feature.
1968 # https://kubernetes.io/docs/concepts/services-networking/networkpolicies/
1969 &quot;provider&quot;: &quot;A String&quot;, # The selected network policy provider.
1970 &quot;enabled&quot;: True or False, # Whether network policy is enabled on the cluster.
1971 },
1972 &quot;servicesIpv4Cidr&quot;: &quot;A String&quot;, # [Output only] The IP address range of the Kubernetes services in
1973 # this cluster, in
1974 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
1975 # notation (e.g. `1.2.3.4/29`). Service addresses are
1976 # typically put in the last `/16` from the container CIDR.
1977 &quot;enableKubernetesAlpha&quot;: True or False, # Kubernetes alpha features are enabled on this cluster. This includes alpha
1978 # API groups (e.g. v1alpha1) and features that may not be production ready in
1979 # the kubernetes version of the master and nodes.
1980 # The cluster has no SLA for uptime and master/node upgrades are disabled.
1981 # Alpha enabled clusters are automatically deleted thirty days after
1982 # creation.
1983 &quot;description&quot;: &quot;A String&quot;, # An optional description of this cluster.
1984 &quot;conditions&quot;: [ # Which conditions caused the current cluster state.
1985 { # StatusCondition describes why a cluster or a node pool has a certain status
1986 # (e.g., ERROR or DEGRADED).
1987 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
1988 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
1989 },
1990 ],
1991 &quot;currentNodeCount&quot;: 42, # [Output only] The number of nodes currently in the cluster. Deprecated.
1992 # Call Kubernetes API directly to retrieve node information.
1993 &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 -07001994 # Currently available options:
1995 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001996 # * &quot;monitoring.googleapis.com/kubernetes&quot; - The Cloud Monitoring
Dan O'Mearadd494642020-05-01 07:42:23 -07001997 # service with a Kubernetes-native resource model
1998 # * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
1999 # longer available as of GKE 1.15).
2000 # * `none` - No metrics will be exported from the cluster.
2001 #
2002 # If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
2003 # used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
Bu Sun Kim65020912020-05-20 12:08:20 -07002004 &quot;databaseEncryption&quot;: { # Configuration of etcd encryption. # Configuration of etcd encryption.
2005 &quot;keyName&quot;: &quot;A String&quot;, # Name of CloudKMS key to use for the encryption of secrets in etcd.
2006 # Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key
2007 &quot;state&quot;: &quot;A String&quot;, # Denotes the state of etcd encryption.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002008 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002009 &quot;binaryAuthorization&quot;: { # Configuration for Binary Authorization. # Configuration for Binary Authorization.
2010 &quot;enabled&quot;: True or False, # Enable Binary Authorization for this cluster. If enabled, all container
2011 # images will be validated by Binary Authorization.
2012 },
2013 &quot;tpuIpv4CidrBlock&quot;: &quot;A String&quot;, # [Output only] The IP address range of the Cloud TPUs in this cluster, in
2014 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
2015 # notation (e.g. `1.2.3.4/29`).
2016 &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
2017 # policies.
2018 # policies.
2019 &quot;workloadPool&quot;: &quot;A String&quot;, # The workload pool to attach all Kubernetes service accounts to.
2020 },
2021 &quot;zone&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
2022 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
2023 # cluster resides. This field is deprecated, use location instead.
2024 &quot;expireTime&quot;: &quot;A String&quot;, # [Output only] The time the cluster will be automatically
2025 # deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
2026 &quot;loggingService&quot;: &quot;A String&quot;, # The logging service the cluster should use to write logs.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002027 # Currently available options:
2028 #
Dan O'Mearadd494642020-05-01 07:42:23 -07002029 # * `logging.googleapis.com/kubernetes` - The Cloud Logging
2030 # service with a Kubernetes-native resource model
2031 # * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
2032 # available as of GKE 1.15).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002033 # * `none` - no logs will be exported from the cluster.
Dan O'Mearadd494642020-05-01 07:42:23 -07002034 #
2035 # If left as an empty string,`logging.googleapis.com/kubernetes` will be
2036 # used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
Bu Sun Kim65020912020-05-20 12:08:20 -07002037 &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 -07002038 # For requests, this field should only be used in lieu of a
Bu Sun Kim65020912020-05-20 12:08:20 -07002039 # &quot;node_pool&quot; object, since this configuration (along with the
2040 # &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 -07002041 # auto-generated name. Do not use this and a node_pool at the same time.
2042 # For responses, this field will be populated with the node configuration of
2043 # the first node pool. (For configuration of each node pool, see
2044 # `node_pool.config`)
2045 #
2046 # If unspecified, the defaults are used.
2047 # This field is deprecated, use node_pool.config instead.
Bu Sun Kim65020912020-05-20 12:08:20 -07002048 &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 -07002049 # valid sources or targets for network firewalls and are specified by
2050 # the client during cluster or node pool creation. Each tag within the list
2051 # must comply with RFC1035.
Bu Sun Kim65020912020-05-20 12:08:20 -07002052 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002053 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002054 &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 -07002055 # Specify the email address of the Service Account; otherwise, if no Service
Bu Sun Kim65020912020-05-20 12:08:20 -07002056 # Account is specified, the &quot;default&quot; service account is used.
2057 &quot;imageType&quot;: &quot;A String&quot;, # The image type to use for this node. Note that for a given image type,
2058 # the latest version of it will be used.
2059 &quot;oauthScopes&quot;: [ # The set of Google API scopes to be made available on all of the
2060 # node VMs under the &quot;default&quot; service account.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002061 #
2062 # The following scopes are recommended, but not required, and by default are
2063 # not included:
2064 #
2065 # * `https://www.googleapis.com/auth/compute` is required for mounting
2066 # persistent storage on your nodes.
2067 # * `https://www.googleapis.com/auth/devstorage.read_only` is required for
2068 # communicating with **gcr.io**
Dan O'Mearadd494642020-05-01 07:42:23 -07002069 # (the [Google Container
2070 # Registry](https://cloud.google.com/container-registry/)).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002071 #
2072 # If unspecified, no scopes are added, unless Cloud Logging or Cloud
2073 # Monitoring are enabled, in which case their required scopes will be added.
Bu Sun Kim65020912020-05-20 12:08:20 -07002074 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002075 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002076 &quot;taints&quot;: [ # List of kubernetes taints to be applied to each node.
Dan O'Mearadd494642020-05-01 07:42:23 -07002077 #
2078 # For more information, including usage and the valid values, see:
2079 # https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
2080 { # Kubernetes taint is comprised of three fields: key, value, and effect. Effect
2081 # can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute.
2082 #
Bu Sun Kim65020912020-05-20 12:08:20 -07002083 # See
2084 # [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration)
2085 # for more information, including usage and the valid values.
2086 &quot;key&quot;: &quot;A String&quot;, # Key for taint.
2087 &quot;value&quot;: &quot;A String&quot;, # Value for taint.
2088 &quot;effect&quot;: &quot;A String&quot;, # Effect for taint.
Dan O'Mearadd494642020-05-01 07:42:23 -07002089 },
2090 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002091 &quot;labels&quot;: { # The map of Kubernetes labels (key/value pairs) to be applied to each node.
2092 # These will added in addition to any default label(s) that
2093 # Kubernetes may apply to the node.
2094 # In case of conflict in label keys, the applied set may differ depending on
2095 # the Kubernetes version -- it&#x27;s best to assume the behavior is undefined
2096 # and conflicts should be avoided.
2097 # For more information, including usage and the valid values, see:
2098 # https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
2099 &quot;a_key&quot;: &quot;A String&quot;,
2100 },
2101 &quot;diskSizeGb&quot;: 42, # Size of the disk attached to each node, specified in GB.
2102 # The smallest allowed disk size is 10GB.
2103 #
2104 # If unspecified, the default disk size is 100GB.
2105 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to # The workload metadata configuration for this node.
2106 # workloads on the node pool.
2107 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running
2108 # on the node pool.
2109 },
2110 &quot;accelerators&quot;: [ # A list of hardware accelerators to be attached to each node.
2111 # See https://cloud.google.com/compute/docs/gpus for more information about
2112 # support for GPUs.
2113 { # AcceleratorConfig represents a Hardware Accelerator request.
2114 &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of the accelerator cards exposed to an instance.
2115 &quot;acceleratorType&quot;: &quot;A String&quot;, # The accelerator type resource name. List of supported accelerators
2116 # [here](https://cloud.google.com/compute/docs/gpus)
2117 },
2118 ],
2119 &quot;machineType&quot;: &quot;A String&quot;, # The name of a Google Compute Engine [machine
2120 # type](https://cloud.google.com/compute/docs/machine-types) (e.g.
2121 # `n1-standard-1`).
2122 #
2123 # If unspecified, the default machine type is
2124 # `n1-standard-1`.
2125 &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;)
2126 #
2127 # If unspecified, the default disk type is &#x27;pd-standard&#x27;
2128 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
2129 &quot;enableSecureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled.
2130 #
2131 # Secure Boot helps ensure that the system only runs authentic software by
2132 # verifying the digital signature of all boot components, and halting the
2133 # boot process if signature verification fails.
2134 &quot;enableIntegrityMonitoring&quot;: True or False, # Defines whether the instance has integrity monitoring enabled.
2135 #
2136 # Enables monitoring and attestation of the boot integrity of the instance.
2137 # The attestation is performed against the integrity policy baseline. This
2138 # baseline is initially derived from the implicitly trusted boot image when
2139 # the instance is created.
2140 },
2141 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used by this instance. The instance may be
2142 # scheduled on the specified or newer CPU platform. Applicable values are the
2143 # friendly names of CPU platforms, such as
2144 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Haswell&amp;quot;&lt;/code&gt; or
2145 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Sandy Bridge&amp;quot;&lt;/code&gt;. For more
2146 # information, read [how to specify min CPU
2147 # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
2148 &quot;preemptible&quot;: True or False, # Whether the nodes are created as preemptible VM instances. See:
2149 # https://cloud.google.com/compute/docs/instances/preemptible for more
2150 # information about preemptible VM instances.
2151 &quot;localSsdCount&quot;: 42, # The number of local SSD disks to be attached to the node.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002152 #
Dan O'Mearadd494642020-05-01 07:42:23 -07002153 # The limit for this value is dependent upon the maximum number of
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002154 # disks available on a machine per zone. See:
Dan O'Mearadd494642020-05-01 07:42:23 -07002155 # https://cloud.google.com/compute/docs/disks/local-ssd
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002156 # for more information.
Bu Sun Kim65020912020-05-20 12:08:20 -07002157 &quot;sandboxConfig&quot;: { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node.
2158 &quot;type&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node.
2159 },
2160 &quot;metadata&quot;: { # The metadata key/value pairs assigned to instances in the cluster.
2161 #
2162 # Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
2163 # in length. These are reflected as part of a URL in the metadata server.
2164 # Additionally, to avoid ambiguity, keys must not conflict with any other
2165 # metadata keys for the project or be one of the reserved keys:
2166 # &quot;cluster-location&quot;
2167 # &quot;cluster-name&quot;
2168 # &quot;cluster-uid&quot;
2169 # &quot;configure-sh&quot;
2170 # &quot;containerd-configure-sh&quot;
2171 # &quot;enable-os-login&quot;
2172 # &quot;gci-ensure-gke-docker&quot;
2173 # &quot;gci-metrics-enabled&quot;
2174 # &quot;gci-update-strategy&quot;
2175 # &quot;instance-template&quot;
2176 # &quot;kube-env&quot;
2177 # &quot;startup-script&quot;
2178 # &quot;user-data&quot;
2179 # &quot;disable-address-manager&quot;
2180 # &quot;windows-startup-script-ps1&quot;
2181 # &quot;common-psm1&quot;
2182 # &quot;k8s-node-setup-psm1&quot;
2183 # &quot;install-ssh-psm1&quot;
2184 # &quot;user-profile-psm1&quot;
2185 # &quot;serial-port-logging-enable&quot;
2186 #
2187 # Values are free-form strings, and only have meaning as interpreted by
2188 # the image running in the instance. The only restriction placed on them is
2189 # that each value&#x27;s size must be less than or equal to 32 KB.
2190 #
2191 # The total size of all keys and values must be less than 512 KB.
2192 &quot;a_key&quot;: &quot;A String&quot;,
2193 },
2194 &quot;reservationAffinity&quot;: { # [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) # The optional reservation affinity. Setting this field will apply
2195 # the specified [Zonal Compute
2196 # Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
2197 # to this node pool.
2198 # is the configuration of desired reservation which instances could take
2199 # capacity from.
2200 &quot;key&quot;: &quot;A String&quot;, # Corresponds to the label key of a reservation resource. To target a
2201 # SPECIFIC_RESERVATION by name, specify &quot;googleapis.com/reservation-name&quot; as
2202 # the key and specify the name of your reservation as its value.
2203 &quot;values&quot;: [ # Corresponds to the label value(s) of reservation resource(s).
2204 &quot;A String&quot;,
2205 ],
2206 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Corresponds to the type of reservation consumption.
2207 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002208 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002209 &quot;status&quot;: &quot;A String&quot;, # [Output only] The current status of this cluster.
2210 &quot;networkConfig&quot;: { # NetworkConfig reports the relative names of network &amp; subnetwork. # Configuration for cluster networking.
2211 &quot;subnetwork&quot;: &quot;A String&quot;, # Output only. The relative name of the Google Compute Engine
2212 # [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the
2213 # cluster is connected. Example:
2214 # projects/my-project/regions/us-central1/subnetworks/my-subnet
2215 &quot;network&quot;: &quot;A String&quot;, # Output only. The relative name of the Google Compute Engine
2216 # network(https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
2217 # to which the cluster is connected. Example:
2218 # projects/my-project/global/networks/my-network
2219 &quot;enableIntraNodeVisibility&quot;: True or False, # Whether Intra-node visibility is enabled for this cluster.
2220 # This makes same node pod to pod traffic visible for VPC network.
2221 },
2222 &quot;name&quot;: &quot;A String&quot;, # The name of this cluster. The name must be unique within this project
2223 # and location (e.g. zone or region), and can be up to 40 characters with
2224 # the following restrictions:
2225 #
2226 # * Lowercase letters, numbers, and hyphens only.
2227 # * Must start with a letter.
2228 # * Must end with a number or a letter.
2229 &quot;endpoint&quot;: &quot;A String&quot;, # [Output only] The IP address of this cluster&#x27;s master endpoint.
2230 # The endpoint can be accessed from the internet at
2231 # `https://username:password@endpoint/`.
2232 #
2233 # See the `masterAuth` property of this resource for username and
2234 # password information.
2235 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
2236 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
2237 # or
2238 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
2239 # in which the cluster resides.
2240 &quot;createTime&quot;: &quot;A String&quot;, # [Output only] The time the cluster was created, in
2241 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
2242 &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 -07002243 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
2244 # notation (e.g. `10.96.0.0/14`). Leave blank to have
2245 # one automatically chosen or specify a `/14` block in `10.0.0.0/8`.
Bu Sun Kim65020912020-05-20 12:08:20 -07002246 &quot;autoscaling&quot;: { # ClusterAutoscaling contains global, per-cluster information # Cluster-level autoscaling configuration.
2247 # required by Cluster Autoscaler to automatically adjust
2248 # the size of the cluster and create/delete
2249 # node pools based on the current needs.
2250 &quot;autoprovisioningLocations&quot;: [ # The list of Google Compute Engine
2251 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
2252 # NodePool&#x27;s nodes can be created by NAP.
2253 &quot;A String&quot;,
2254 ],
2255 &quot;resourceLimits&quot;: [ # Contains global constraints regarding minimum and maximum
2256 # amount of resources in the cluster.
2257 { # Contains information about amount of some resource in the cluster.
2258 # For memory, value should be in GB.
2259 &quot;maximum&quot;: &quot;A String&quot;, # Maximum amount of the resource in the cluster.
2260 &quot;resourceType&quot;: &quot;A String&quot;, # Resource name &quot;cpu&quot;, &quot;memory&quot; or gpu-specific string.
2261 &quot;minimum&quot;: &quot;A String&quot;, # Minimum amount of the resource in the cluster.
2262 },
2263 ],
2264 &quot;enableNodeAutoprovisioning&quot;: True or False, # Enables automatic node pool creation and deletion.
2265 &quot;autoprovisioningNodePoolDefaults&quot;: { # AutoprovisioningNodePoolDefaults contains defaults for a node pool created # AutoprovisioningNodePoolDefaults contains defaults for a node pool
2266 # created by NAP.
2267 # by NAP.
2268 &quot;oauthScopes&quot;: [ # Scopes that are used by NAP when creating node pools. If oauth_scopes are
2269 # specified, service_account should be empty.
2270 &quot;A String&quot;,
2271 ],
2272 &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.
2273 # node pool.
2274 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool.
2275 # the Auto Upgrades will proceed.
2276 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
2277 # with the description of the upgrade.
2278 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
2279 # with the approximate start time for the upgrades, in
2280 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
2281 },
2282 &quot;autoUpgrade&quot;: True or False, # A flag that specifies whether node auto-upgrade is enabled for the node
2283 # pool. If enabled, node auto-upgrade helps keep the nodes in your node pool
2284 # up to date with the latest release version of Kubernetes.
2285 &quot;autoRepair&quot;: True or False, # A flag that specifies whether the node auto-repair is enabled for the node
2286 # pool. If enabled, the nodes in this node pool will be monitored and, if
2287 # they fail health checks too many times, an automatic repair action will be
2288 # triggered.
2289 },
2290 &quot;upgradeSettings&quot;: { # These upgrade settings control the level of parallelism and the level of # Specifies the upgrade settings for NAP created node pools
2291 # disruption caused by an upgrade.
2292 #
2293 # maxUnavailable controls the number of nodes that can be simultaneously
2294 # unavailable.
2295 #
2296 # maxSurge controls the number of additional nodes that can be added to the
2297 # node pool temporarily for the time of the upgrade to increase the number of
2298 # available nodes.
2299 #
2300 # (maxUnavailable + maxSurge) determines the level of parallelism (how many
2301 # nodes are being upgraded at the same time).
2302 #
2303 # Note: upgrades inevitably introduce some disruption since workloads need to
2304 # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
2305 # this holds true. (Disruption stays within the limits of
2306 # PodDisruptionBudget, if it is configured.)
2307 #
2308 # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
2309 # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
2310 # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
2311 # down 3 old (not yet upgraded) nodes at the same time. This ensures that
2312 # there are always at least 4 nodes available.
2313 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during
2314 # the upgrade process. A node is considered available if its status is
2315 # Ready.
2316 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size
2317 # of the node pool during the upgrade process.
2318 },
2319 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs. If
2320 # service_account is specified, scopes should be empty.
2321 },
2322 },
2323 &quot;initialNodeCount&quot;: 42, # The number of nodes to create in this cluster. You must ensure that your
2324 # Compute Engine &lt;a href=&quot;/compute/docs/resource-quotas&quot;&gt;resource quota&lt;/a&gt;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002325 # is sufficient for this number of instances. You must also have available
2326 # firewall and routes quota.
2327 # For requests, this field should only be used in lieu of a
Bu Sun Kim65020912020-05-20 12:08:20 -07002328 # &quot;node_pool&quot; object, since this configuration (along with the
2329 # &quot;node_config&quot;) will be used to create a &quot;NodePool&quot; object with an
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002330 # auto-generated name. Do not use this and a node_pool at the same time.
2331 #
2332 # This field is deprecated, use node_pool.initial_node_count instead.
Bu Sun Kim65020912020-05-20 12:08:20 -07002333 &quot;instanceGroupUrls&quot;: [ # Deprecated. Use node_pools.instance_group_urls.
2334 &quot;A String&quot;,
2335 ],
2336 &quot;privateClusterConfig&quot;: { # Configuration options for private clusters. # Configuration for private cluster.
2337 &quot;peeringName&quot;: &quot;A String&quot;, # Output only. The peering name in the customer VPC used by this cluster.
2338 &quot;publicEndpoint&quot;: &quot;A String&quot;, # Output only. The external IP address of this cluster&#x27;s master endpoint.
2339 &quot;enablePrivateNodes&quot;: True or False, # Whether nodes have internal IP addresses only. If enabled, all nodes are
2340 # given only RFC 1918 private addresses and communicate with the master via
2341 # private networking.
2342 &quot;masterIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP range in CIDR notation to use for the hosted master network. This
2343 # range will be used for assigning internal IP addresses to the master or
2344 # set of masters, as well as the ILB VIP. This range must not overlap with
2345 # any other ranges in use within the cluster&#x27;s network.
2346 &quot;privateEndpoint&quot;: &quot;A String&quot;, # Output only. The internal IP address of this cluster&#x27;s master endpoint.
2347 &quot;enablePrivateEndpoint&quot;: True or False, # Whether the master&#x27;s internal IP address is used as the cluster endpoint.
2348 },
2349 &quot;shieldedNodes&quot;: { # Configuration of Shielded Nodes feature. # Shielded Nodes configuration.
2350 &quot;enabled&quot;: True or False, # Whether Shielded Nodes features are enabled on all nodes in this cluster.
2351 },
2352 &quot;verticalPodAutoscaling&quot;: { # VerticalPodAutoscaling contains global, per-cluster information # Cluster-level Vertical Pod Autoscaling configuration.
2353 # required by Vertical Pod Autoscaler to automatically adjust
2354 # the resources of pods controlled by it.
2355 &quot;enabled&quot;: True or False, # Enables vertical pod autoscaling.
2356 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002357 }</pre>
2358</div>
2359
2360<div class="method">
2361 <code class="details" id="getJwks">getJwks(parent, x__xgafv=None)</code>
2362 <pre>Gets the public component of the cluster signing keys in
2363JSON Web Key format.
2364This API is not yet intended for general use, and is not available for all
2365clusters.
2366
2367Args:
2368 parent: string, The cluster (project, location, cluster id) to get keys for. Specified in
Bu Sun Kim65020912020-05-20 12:08:20 -07002369the format `projects/*/locations/*/clusters/*`. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002370 x__xgafv: string, V1 error format.
2371 Allowed values
2372 1 - v1 error format
2373 2 - v2 error format
2374
2375Returns:
2376 An object of the form:
2377
2378 { # GetJSONWebKeysResponse is a valid JSON Web Key Set as specififed in rfc 7517
Bu Sun Kim65020912020-05-20 12:08:20 -07002379 &quot;keys&quot;: [ # The public component of the keys used by the cluster to sign token
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002380 # requests.
2381 { # Jwk is a JSON Web Key as specified in RFC 7517
Bu Sun Kim65020912020-05-20 12:08:20 -07002382 &quot;crv&quot;: &quot;A String&quot;, # Used for ECDSA keys.
2383 &quot;kid&quot;: &quot;A String&quot;, # Key ID.
2384 &quot;e&quot;: &quot;A String&quot;, # Used for RSA keys.
2385 &quot;kty&quot;: &quot;A String&quot;, # Key Type.
2386 &quot;alg&quot;: &quot;A String&quot;, # Algorithm.
2387 &quot;n&quot;: &quot;A String&quot;, # Used for RSA keys.
2388 &quot;use&quot;: &quot;A String&quot;, # Permitted uses for the public keys.
2389 &quot;y&quot;: &quot;A String&quot;, # Used for ECDSA keys.
2390 &quot;x&quot;: &quot;A String&quot;, # Used for ECDSA keys.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002391 },
2392 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002393 &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 -07002394 # Cache-Control header.
Bu Sun Kim65020912020-05-20 12:08:20 -07002395 &quot;age&quot;: &quot;A String&quot;, # 14.6 response cache age, in seconds since the response is generated
2396 &quot;expires&quot;: &quot;A String&quot;, # 14.21 response cache expires, in RFC 1123 date format
2397 &quot;directive&quot;: &quot;A String&quot;, # 14.9 request and response directives
Dan O'Mearadd494642020-05-01 07:42:23 -07002398 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002399 }</pre>
2400</div>
2401
2402<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -07002403 <code class="details" id="list">list(parent, projectId=None, zone=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002404 <pre>Lists all clusters owned by a project in either the specified zone or all
2405zones.
2406
2407Args:
2408 parent: string, The parent (project and location) where the clusters will be listed.
Bu Sun Kim65020912020-05-20 12:08:20 -07002409Specified in the format `projects/*/locations/*`.
2410Location &quot;-&quot; matches all zones and all regions. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002411 projectId: string, Deprecated. The Google Developers Console [project ID or project
2412number](https://support.google.com/cloud/answer/6158840).
2413This field has been deprecated and replaced by the parent field.
Bu Sun Kim65020912020-05-20 12:08:20 -07002414 zone: string, Deprecated. The name of the Google Compute Engine
2415[zone](https://cloud.google.com/compute/docs/zones#available) in which the
2416cluster resides, or &quot;-&quot; for all zones. This field has been deprecated and
2417replaced by the parent field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002418 x__xgafv: string, V1 error format.
2419 Allowed values
2420 1 - v1 error format
2421 2 - v2 error format
2422
2423Returns:
2424 An object of the form:
2425
2426 { # ListClustersResponse is the result of ListClustersRequest.
Bu Sun Kim65020912020-05-20 12:08:20 -07002427 &quot;clusters&quot;: [ # A list of clusters in the project in the specified zone, or
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002428 # across all ones.
2429 { # A Google Kubernetes Engine cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -07002430 &quot;defaultMaxPodsConstraint&quot;: { # Constraints applied to pods. # The default constraint on the maximum number of pods that can be run
2431 # simultaneously on a node in the node pool of this cluster. Only honored
2432 # if cluster created with IP Alias support.
2433 &quot;maxPodsPerNode&quot;: &quot;A String&quot;, # Constraint enforced on the max num of pods per node.
2434 },
2435 &quot;network&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
2436 # [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
2437 # to which the cluster is connected. If left unspecified, the `default`
2438 # network will be used.
2439 &quot;labelFingerprint&quot;: &quot;A String&quot;, # The fingerprint of the set of labels for this cluster.
2440 &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 -07002441 # containers. This is provisioned from within the `container_ipv4_cidr`
2442 # range. This field will only be set when cluster is in route-based network
2443 # mode.
Bu Sun Kim65020912020-05-20 12:08:20 -07002444 &quot;masterAuthorizedNetworksConfig&quot;: { # Configuration options for the master authorized networks feature. Enabled # The configuration options for master authorized networks feature.
2445 # master authorized networks will disallow all external traffic to access
2446 # Kubernetes master through HTTPS except traffic from the given CIDR blocks,
2447 # Google Compute Engine Public IPs and Google Prod IPs.
2448 &quot;enabled&quot;: True or False, # Whether or not master authorized networks is enabled.
2449 &quot;cidrBlocks&quot;: [ # cidr_blocks define up to 50 external networks that could access
2450 # Kubernetes master through HTTPS.
2451 { # CidrBlock contains an optional name and one CIDR block.
2452 &quot;displayName&quot;: &quot;A String&quot;, # display_name is an optional field for users to identify CIDR blocks.
2453 &quot;cidrBlock&quot;: &quot;A String&quot;, # cidr_block must be specified in CIDR notation.
2454 },
2455 ],
2456 },
2457 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output only] Additional information about the current status of this
2458 # cluster, if available.
2459 &quot;masterAuth&quot;: { # The authentication information for accessing the master endpoint. # The authentication information for accessing the master endpoint.
2460 # If unspecified, the defaults are used:
2461 # For clusters before v1.12, if master_auth is unspecified, `username` will
2462 # be set to &quot;admin&quot;, a random password will be generated, and a client
2463 # certificate will be issued.
2464 # Authentication can be done using HTTP basic auth or using client
2465 # certificates.
2466 &quot;clusterCaCertificate&quot;: &quot;A String&quot;, # [Output only] Base64-encoded public certificate that is the root of
2467 # trust for the cluster.
2468 &quot;clientCertificate&quot;: &quot;A String&quot;, # [Output only] Base64-encoded public certificate used by clients to
2469 # authenticate to the cluster endpoint.
2470 &quot;username&quot;: &quot;A String&quot;, # The username to use for HTTP basic authentication to the master endpoint.
2471 # For clusters v1.6.0 and later, basic authentication can be disabled by
2472 # leaving username unspecified (or setting it to the empty string).
2473 &quot;password&quot;: &quot;A String&quot;, # The password to use for HTTP basic authentication to the master endpoint.
2474 # Because the master endpoint is open to the Internet, you should create a
2475 # strong password. If a password is provided for cluster creation, username
2476 # must be non-empty.
2477 &quot;clientCertificateConfig&quot;: { # Configuration for client certificates on the cluster. # Configuration for client certificate authentication on the cluster. For
2478 # clusters before v1.12, if no configuration is specified, a client
2479 # certificate is issued.
2480 &quot;issueClientCertificate&quot;: True or False, # Issue a client certificate.
2481 },
2482 &quot;clientKey&quot;: &quot;A String&quot;, # [Output only] Base64-encoded private key used by clients to authenticate
2483 # to the cluster endpoint.
2484 },
2485 &quot;authenticatorGroupsConfig&quot;: { # Configuration for returning group information from authenticators. # Configuration controlling RBAC group membership information.
2486 &quot;enabled&quot;: True or False, # Whether this cluster should return group membership lookups
2487 # during authentication using a group of security groups.
2488 &quot;securityGroup&quot;: &quot;A String&quot;, # The name of the security group-of-groups to be used. Only relevant
2489 # if enabled = true.
2490 },
2491 &quot;currentMasterVersion&quot;: &quot;A String&quot;, # [Output only] The current software version of the master endpoint.
2492 &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.
2493 # cluster, enabling additional functionality.
2494 &quot;networkPolicyConfig&quot;: { # Configuration for NetworkPolicy. This only tracks whether the addon # Configuration for NetworkPolicy. This only tracks whether the addon
2495 # is enabled or not on the Master, it does not track whether network policy
2496 # is enabled for the nodes.
2497 # is enabled or not on the Master, it does not track whether network policy
2498 # is enabled for the nodes.
2499 &quot;disabled&quot;: True or False, # Whether NetworkPolicy is enabled for this cluster.
2500 },
2501 &quot;cloudRunConfig&quot;: { # Configuration options for the Cloud Run feature. # Configuration for the Cloud Run addon, which allows the user to use a
2502 # managed Knative service.
2503 &quot;disabled&quot;: True or False, # Whether Cloud Run addon is enabled for this cluster.
2504 },
2505 &quot;horizontalPodAutoscaling&quot;: { # Configuration options for the horizontal pod autoscaling feature, which # Configuration for the horizontal pod autoscaling feature, which
2506 # increases or decreases the number of replica pods a replication controller
2507 # has based on the resource usage of the existing pods.
2508 # increases or decreases the number of replica pods a replication controller
2509 # has based on the resource usage of the existing pods.
2510 &quot;disabled&quot;: True or False, # Whether the Horizontal Pod Autoscaling feature is enabled in the cluster.
2511 # When enabled, it ensures that metrics are collected into Stackdriver
2512 # Monitoring.
2513 },
2514 &quot;httpLoadBalancing&quot;: { # Configuration options for the HTTP (L7) load balancing controller addon, # Configuration for the HTTP (L7) load balancing controller addon, which
2515 # makes it easy to set up HTTP load balancers for services in a cluster.
2516 # which makes it easy to set up HTTP load balancers for services in a cluster.
2517 &quot;disabled&quot;: True or False, # Whether the HTTP Load Balancing controller is enabled in the cluster.
2518 # When enabled, it runs a small pod in the cluster that manages the load
2519 # balancers.
2520 },
2521 &quot;kubernetesDashboard&quot;: { # Configuration for the Kubernetes Dashboard. # Configuration for the Kubernetes Dashboard.
2522 # This addon is deprecated, and will be disabled in 1.15. It is recommended
2523 # to use the Cloud Console to manage and monitor your Kubernetes clusters,
2524 # workloads and applications. For more information, see:
2525 # https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
2526 &quot;disabled&quot;: True or False, # Whether the Kubernetes Dashboard is enabled for this cluster.
2527 },
2528 },
2529 &quot;currentNodeVersion&quot;: &quot;A String&quot;, # [Output only] Deprecated, use
2530 # [NodePools.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.zones.clusters.nodePools)
2531 # instead. The current version of the node software components. If they are
2532 # currently at multiple versions because they&#x27;re in the process of being
2533 # upgraded, this reflects the minimum version of all nodes.
2534 &quot;subnetwork&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
2535 # [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which
2536 # the cluster is connected.
2537 &quot;resourceLabels&quot;: { # The resource labels for the cluster to use to annotate any related
2538 # Google Compute Engine resources.
2539 &quot;a_key&quot;: &quot;A String&quot;,
2540 },
2541 &quot;maintenancePolicy&quot;: { # MaintenancePolicy defines the maintenance policy to be used for the cluster. # Configure the maintenance policy for this cluster.
2542 &quot;window&quot;: { # MaintenanceWindow defines the maintenance window to be used for the cluster. # Specifies the maintenance window in which maintenance may be performed.
2543 &quot;dailyMaintenanceWindow&quot;: { # Time window specified for daily maintenance operations. # DailyMaintenanceWindow specifies a daily maintenance operation window.
2544 &quot;duration&quot;: &quot;A String&quot;, # [Output only] Duration of the time window, automatically chosen to be
2545 # smallest possible in the given scenario.
2546 # Duration will be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)
2547 # format &quot;PTnHnMnS&quot;.
2548 &quot;startTime&quot;: &quot;A String&quot;, # Time within the maintenance window to start the maintenance operations.
2549 # Time format should be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)
2550 # format &quot;HH:MM&quot;, where HH : [00-23] and MM : [00-59] GMT.
2551 },
2552 &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 -07002553 # maintenance to occur. The time windows may be overlapping. If no
2554 # maintenance windows are set, maintenance can occur at any time.
Bu Sun Kim65020912020-05-20 12:08:20 -07002555 &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 -07002556 # this window reccurs. They go on for the span of time between the start and
2557 # end time.
2558 #
Bu Sun Kim65020912020-05-20 12:08:20 -07002559 # For example, to have something repeat every weekday, you&#x27;d use:
Dan O'Mearadd494642020-05-01 07:42:23 -07002560 # &lt;code&gt;FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR&lt;/code&gt;
2561 # To repeat some window daily (equivalent to the DailyMaintenanceWindow):
2562 # &lt;code&gt;FREQ=DAILY&lt;/code&gt;
2563 # For the first weekend of every month:
2564 # &lt;code&gt;FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU&lt;/code&gt;
2565 # This specifies how frequently the window starts. Eg, if you wanted to have
Bu Sun Kim65020912020-05-20 12:08:20 -07002566 # a 9-5 UTC-4 window every weekday, you&#x27;d use something like:
Dan O'Mearadd494642020-05-01 07:42:23 -07002567 # &lt;code&gt;
2568 # start time = 2019-01-01T09:00:00-0400
2569 # end time = 2019-01-01T17:00:00-0400
2570 # recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
2571 # &lt;/code&gt;
2572 # Windows can span multiple days. Eg, to make the window encompass every
2573 # weekend from midnight Saturday till the last minute of Sunday UTC:
2574 # &lt;code&gt;
2575 # start time = 2019-01-05T00:00:00Z
2576 # end time = 2019-01-07T23:59:00Z
2577 # recurrence = FREQ=WEEKLY;BYDAY=SA
2578 # &lt;/code&gt;
Bu Sun Kim65020912020-05-20 12:08:20 -07002579 # Note the start and end time&#x27;s specific dates are largely arbitrary except
Dan O'Mearadd494642020-05-01 07:42:23 -07002580 # to specify duration of the window and when it first starts.
2581 # The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.
Bu Sun Kim65020912020-05-20 12:08:20 -07002582 &quot;window&quot;: { # Represents an arbitrary window of time. # The window of the first recurrence.
2583 &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 -07002584 # start time.
Bu Sun Kim65020912020-05-20 12:08:20 -07002585 &quot;startTime&quot;: &quot;A String&quot;, # The time that the window first starts.
Dan O'Mearadd494642020-05-01 07:42:23 -07002586 },
2587 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002588 &quot;maintenanceExclusions&quot;: { # Exceptions to maintenance window. Non-emergency maintenance should not
Dan O'Mearadd494642020-05-01 07:42:23 -07002589 # occur in these windows.
Bu Sun Kim65020912020-05-20 12:08:20 -07002590 &quot;a_key&quot;: { # Represents an arbitrary window of time.
2591 &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 -07002592 # start time.
Bu Sun Kim65020912020-05-20 12:08:20 -07002593 &quot;startTime&quot;: &quot;A String&quot;, # The time that the window first starts.
Dan O'Mearadd494642020-05-01 07:42:23 -07002594 },
2595 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002596 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002597 &quot;resourceVersion&quot;: &quot;A String&quot;, # A hash identifying the version of this policy, so that updates to fields of
2598 # the policy won&#x27;t accidentally undo intermediate changes (and so that users
2599 # of the API unaware of some fields won&#x27;t accidentally remove other fields).
Dan O'Mearadd494642020-05-01 07:42:23 -07002600 # Make a &lt;code&gt;get()&lt;/code&gt; request to the cluster to get the current
2601 # resource version and include it with requests to set the policy.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002602 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002603 &quot;initialClusterVersion&quot;: &quot;A String&quot;, # The initial Kubernetes version for this cluster. Valid versions are those
2604 # found in validMasterVersions returned by getServerConfig. The version can
2605 # be upgraded over time; such upgrades are reflected in
2606 # currentMasterVersion and currentNodeVersion.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002607 #
Bu Sun Kim65020912020-05-20 12:08:20 -07002608 # Users may specify either explicit versions offered by
2609 # Kubernetes Engine or version aliases, which have the following behavior:
2610 #
2611 # - &quot;latest&quot;: picks the highest valid Kubernetes version
2612 # - &quot;1.X&quot;: picks the highest valid patch+gke.N patch in the 1.X version
2613 # - &quot;1.X.Y&quot;: picks the highest valid gke.N patch in the 1.X.Y version
2614 # - &quot;1.X.Y-gke.N&quot;: picks an explicit Kubernetes version
2615 # - &quot;&quot;,&quot;-&quot;: picks the default Kubernetes version
2616 &quot;ipAllocationPolicy&quot;: { # Configuration for controlling how IPs are allocated in the cluster. # Configuration for cluster IP allocation.
2617 &quot;clusterIpv4Cidr&quot;: &quot;A String&quot;, # This field is deprecated, use cluster_ipv4_cidr_block.
2618 &quot;servicesIpv4Cidr&quot;: &quot;A String&quot;, # This field is deprecated, use services_ipv4_cidr_block.
2619 &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 -07002620 # will be automatically chosen with the default size.
2621 #
2622 # This field is only applicable when `use_ip_aliases` is true.
2623 #
2624 # Set to blank to have a range chosen with the default size.
2625 #
2626 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
2627 # netmask.
2628 #
2629 # Set to a
2630 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
2631 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
2632 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
2633 # to use.
Bu Sun Kim65020912020-05-20 12:08:20 -07002634 &quot;nodeIpv4Cidr&quot;: &quot;A String&quot;, # This field is deprecated, use node_ipv4_cidr_block.
2635 &quot;clusterIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP address range for the cluster pod IPs. If this field is set, then
2636 # `cluster.cluster_ipv4_cidr` must be left blank.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002637 #
2638 # This field is only applicable when `use_ip_aliases` is true.
Bu Sun Kim65020912020-05-20 12:08:20 -07002639 #
2640 # Set to blank to have a range chosen with the default size.
2641 #
2642 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
2643 # netmask.
2644 #
2645 # Set to a
2646 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
2647 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
2648 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
2649 # to use.
2650 &quot;clusterSecondaryRangeName&quot;: &quot;A String&quot;, # The name of the secondary range to be used for the cluster CIDR
2651 # block. The secondary range will be used for pod IP
2652 # addresses. This must be an existing secondary range associated
2653 # with the cluster subnetwork.
2654 #
2655 # This field is only applicable with use_ip_aliases is true and
2656 # create_subnetwork is false.
2657 &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 -07002658 #
2659 # This is applicable only if `create_subnetwork` is true.
2660 #
2661 # Set to blank to have a range chosen with the default size.
2662 #
2663 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
2664 # netmask.
2665 #
2666 # Set to a
2667 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
2668 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
2669 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
2670 # to use.
Bu Sun Kim65020912020-05-20 12:08:20 -07002671 &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 -07002672 # range will be automatically chosen with the default size.
2673 #
2674 # This field is only applicable when `use_ip_aliases` is true.
2675 #
2676 # If unspecified, the range will use the default size.
2677 #
2678 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
2679 # netmask.
2680 #
2681 # Set to a
2682 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
2683 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
2684 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
2685 # to use.
Bu Sun Kim65020912020-05-20 12:08:20 -07002686 &quot;createSubnetwork&quot;: True or False, # Whether a new subnetwork will be created automatically for the cluster.
2687 #
2688 # This field is only applicable when `use_ip_aliases` is true.
2689 &quot;useIpAliases&quot;: True or False, # Whether alias IPs will be used for pod IPs in the cluster.
2690 &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 -07002691 # CIDR block. The secondary range will be used for service
2692 # ClusterIPs. This must be an existing secondary range associated
2693 # with the cluster subnetwork.
2694 #
2695 # This field is only applicable with use_ip_aliases is true and
2696 # create_subnetwork is false.
Bu Sun Kim65020912020-05-20 12:08:20 -07002697 &quot;subnetworkName&quot;: &quot;A String&quot;, # A custom subnetwork name to be used if `create_subnetwork` is true. If
2698 # this field is empty, then an automatic name will be chosen for the new
2699 # subnetwork.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002700 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002701 &quot;legacyAbac&quot;: { # Configuration for the legacy Attribute Based Access Control authorization # Configuration for the legacy ABAC authorization mode.
2702 # mode.
2703 &quot;enabled&quot;: True or False, # Whether the ABAC authorizer is enabled for this cluster. When enabled,
2704 # identities in the system, including service accounts, nodes, and
2705 # controllers, will have statically granted permissions beyond those
2706 # provided by the RBAC configuration or IAM.
Dan O'Mearadd494642020-05-01 07:42:23 -07002707 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002708 &quot;resourceUsageExportConfig&quot;: { # Configuration for exporting cluster resource usages. # Configuration for exporting resource usages. Resource usage export is
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002709 # disabled when this config is unspecified.
Bu Sun Kim65020912020-05-20 12:08:20 -07002710 &quot;enableNetworkEgressMetering&quot;: True or False, # Whether to enable network egress metering for this cluster. If enabled, a
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002711 # daemonset will be created in the cluster to meter network egress traffic.
Bu Sun Kim65020912020-05-20 12:08:20 -07002712 &quot;consumptionMeteringConfig&quot;: { # Parameters for controlling consumption metering. # Configuration to enable resource consumption metering.
2713 &quot;enabled&quot;: True or False, # Whether to enable consumption metering for this cluster. If enabled, a
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002714 # second BigQuery table will be created to hold resource consumption
2715 # records.
2716 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002717 &quot;bigqueryDestination&quot;: { # Parameters for using BigQuery as the destination of resource usage export. # Configuration to use BigQuery as usage export destination.
2718 &quot;datasetId&quot;: &quot;A String&quot;, # The ID of a BigQuery Dataset.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002719 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002720 },
2721 &quot;enableTpu&quot;: True or False, # Enable the ability to use Cloud TPUs in this cluster.
2722 &quot;locations&quot;: [ # The list of Google Compute Engine
2723 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
2724 # cluster&#x27;s nodes should be located.
2725 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002726 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002727 &quot;nodePools&quot;: [ # The node pools associated with this cluster.
2728 # 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 -07002729 # specified.
Bu Sun Kim65020912020-05-20 12:08:20 -07002730 { # NodePool contains the name and configuration for a cluster&#x27;s node pool.
2731 # 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 -07002732 # specification, under the control of the cluster master. They may have a set
2733 # of Kubernetes labels applied to them, which may be used to reference them
2734 # during pod scheduling. They may also be resized up or down, to accommodate
2735 # the workload.
Bu Sun Kim65020912020-05-20 12:08:20 -07002736 &quot;initialNodeCount&quot;: 42, # The initial node count for the pool. You must ensure that your
2737 # Compute Engine &lt;a href=&quot;/compute/docs/resource-quotas&quot;&gt;resource quota&lt;/a&gt;
2738 # is sufficient for this number of instances. You must also have available
2739 # firewall and routes quota.
2740 &quot;locations&quot;: [ # The list of Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07002741 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
Bu Sun Kim65020912020-05-20 12:08:20 -07002742 # NodePool&#x27;s nodes should be located.
2743 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07002744 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002745 &quot;selfLink&quot;: &quot;A String&quot;, # [Output only] Server-defined URL for the resource.
2746 &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 -07002747 # disruption caused by an upgrade.
2748 #
2749 # maxUnavailable controls the number of nodes that can be simultaneously
2750 # unavailable.
2751 #
2752 # maxSurge controls the number of additional nodes that can be added to the
2753 # node pool temporarily for the time of the upgrade to increase the number of
2754 # available nodes.
2755 #
2756 # (maxUnavailable + maxSurge) determines the level of parallelism (how many
2757 # nodes are being upgraded at the same time).
2758 #
2759 # Note: upgrades inevitably introduce some disruption since workloads need to
2760 # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
2761 # this holds true. (Disruption stays within the limits of
2762 # PodDisruptionBudget, if it is configured.)
2763 #
2764 # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
2765 # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
2766 # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
2767 # down 3 old (not yet upgraded) nodes at the same time. This ensures that
2768 # there are always at least 4 nodes available.
Bu Sun Kim65020912020-05-20 12:08:20 -07002769 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during
Dan O'Mearadd494642020-05-01 07:42:23 -07002770 # the upgrade process. A node is considered available if its status is
2771 # Ready.
Bu Sun Kim65020912020-05-20 12:08:20 -07002772 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size
2773 # of the node pool during the upgrade process.
Dan O'Mearadd494642020-05-01 07:42:23 -07002774 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002775 &quot;instanceGroupUrls&quot;: [ # [Output only] The resource URLs of the [managed instance
2776 # groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
2777 # associated with this node pool.
2778 &quot;A String&quot;,
2779 ],
2780 &quot;version&quot;: &quot;A String&quot;, # The version of the Kubernetes of this node.
2781 &quot;podIpv4CidrSize&quot;: 42, # [Output only] The pod CIDR block size per node in this node pool.
2782 &quot;conditions&quot;: [ # Which conditions caused the current node pool state.
2783 { # StatusCondition describes why a cluster or a node pool has a certain status
2784 # (e.g., ERROR or DEGRADED).
2785 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
2786 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Dan O'Mearadd494642020-05-01 07:42:23 -07002787 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002788 ],
2789 &quot;status&quot;: &quot;A String&quot;, # [Output only] The status of the nodes in this pool instance.
2790 &quot;config&quot;: { # Parameters that describe the nodes in a cluster. # The node configuration of the pool.
2791 &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 -07002792 # valid sources or targets for network firewalls and are specified by
2793 # the client during cluster or node pool creation. Each tag within the list
2794 # must comply with RFC1035.
Bu Sun Kim65020912020-05-20 12:08:20 -07002795 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002796 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002797 &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 -07002798 # Specify the email address of the Service Account; otherwise, if no Service
Bu Sun Kim65020912020-05-20 12:08:20 -07002799 # Account is specified, the &quot;default&quot; service account is used.
2800 &quot;imageType&quot;: &quot;A String&quot;, # The image type to use for this node. Note that for a given image type,
2801 # the latest version of it will be used.
2802 &quot;oauthScopes&quot;: [ # The set of Google API scopes to be made available on all of the
2803 # node VMs under the &quot;default&quot; service account.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002804 #
2805 # The following scopes are recommended, but not required, and by default are
2806 # not included:
2807 #
2808 # * `https://www.googleapis.com/auth/compute` is required for mounting
2809 # persistent storage on your nodes.
2810 # * `https://www.googleapis.com/auth/devstorage.read_only` is required for
2811 # communicating with **gcr.io**
Dan O'Mearadd494642020-05-01 07:42:23 -07002812 # (the [Google Container
2813 # Registry](https://cloud.google.com/container-registry/)).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002814 #
2815 # If unspecified, no scopes are added, unless Cloud Logging or Cloud
2816 # Monitoring are enabled, in which case their required scopes will be added.
Bu Sun Kim65020912020-05-20 12:08:20 -07002817 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002818 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002819 &quot;taints&quot;: [ # List of kubernetes taints to be applied to each node.
Dan O'Mearadd494642020-05-01 07:42:23 -07002820 #
2821 # For more information, including usage and the valid values, see:
2822 # https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
2823 { # Kubernetes taint is comprised of three fields: key, value, and effect. Effect
2824 # can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute.
2825 #
Bu Sun Kim65020912020-05-20 12:08:20 -07002826 # See
2827 # [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration)
2828 # for more information, including usage and the valid values.
2829 &quot;key&quot;: &quot;A String&quot;, # Key for taint.
2830 &quot;value&quot;: &quot;A String&quot;, # Value for taint.
2831 &quot;effect&quot;: &quot;A String&quot;, # Effect for taint.
Dan O'Mearadd494642020-05-01 07:42:23 -07002832 },
2833 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002834 &quot;labels&quot;: { # The map of Kubernetes labels (key/value pairs) to be applied to each node.
2835 # These will added in addition to any default label(s) that
2836 # Kubernetes may apply to the node.
2837 # In case of conflict in label keys, the applied set may differ depending on
2838 # the Kubernetes version -- it&#x27;s best to assume the behavior is undefined
2839 # and conflicts should be avoided.
2840 # For more information, including usage and the valid values, see:
2841 # https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
2842 &quot;a_key&quot;: &quot;A String&quot;,
2843 },
2844 &quot;diskSizeGb&quot;: 42, # Size of the disk attached to each node, specified in GB.
2845 # The smallest allowed disk size is 10GB.
2846 #
2847 # If unspecified, the default disk size is 100GB.
2848 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to # The workload metadata configuration for this node.
2849 # workloads on the node pool.
2850 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running
2851 # on the node pool.
2852 },
2853 &quot;accelerators&quot;: [ # A list of hardware accelerators to be attached to each node.
2854 # See https://cloud.google.com/compute/docs/gpus for more information about
2855 # support for GPUs.
2856 { # AcceleratorConfig represents a Hardware Accelerator request.
2857 &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of the accelerator cards exposed to an instance.
2858 &quot;acceleratorType&quot;: &quot;A String&quot;, # The accelerator type resource name. List of supported accelerators
2859 # [here](https://cloud.google.com/compute/docs/gpus)
2860 },
2861 ],
2862 &quot;machineType&quot;: &quot;A String&quot;, # The name of a Google Compute Engine [machine
2863 # type](https://cloud.google.com/compute/docs/machine-types) (e.g.
2864 # `n1-standard-1`).
2865 #
2866 # If unspecified, the default machine type is
2867 # `n1-standard-1`.
2868 &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;)
2869 #
2870 # If unspecified, the default disk type is &#x27;pd-standard&#x27;
2871 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
2872 &quot;enableSecureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled.
2873 #
2874 # Secure Boot helps ensure that the system only runs authentic software by
2875 # verifying the digital signature of all boot components, and halting the
2876 # boot process if signature verification fails.
2877 &quot;enableIntegrityMonitoring&quot;: True or False, # Defines whether the instance has integrity monitoring enabled.
2878 #
2879 # Enables monitoring and attestation of the boot integrity of the instance.
2880 # The attestation is performed against the integrity policy baseline. This
2881 # baseline is initially derived from the implicitly trusted boot image when
2882 # the instance is created.
2883 },
2884 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used by this instance. The instance may be
2885 # scheduled on the specified or newer CPU platform. Applicable values are the
2886 # friendly names of CPU platforms, such as
2887 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Haswell&amp;quot;&lt;/code&gt; or
2888 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Sandy Bridge&amp;quot;&lt;/code&gt;. For more
2889 # information, read [how to specify min CPU
2890 # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
2891 &quot;preemptible&quot;: True or False, # Whether the nodes are created as preemptible VM instances. See:
2892 # https://cloud.google.com/compute/docs/instances/preemptible for more
2893 # information about preemptible VM instances.
2894 &quot;localSsdCount&quot;: 42, # The number of local SSD disks to be attached to the node.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002895 #
Dan O'Mearadd494642020-05-01 07:42:23 -07002896 # The limit for this value is dependent upon the maximum number of
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002897 # disks available on a machine per zone. See:
Dan O'Mearadd494642020-05-01 07:42:23 -07002898 # https://cloud.google.com/compute/docs/disks/local-ssd
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002899 # for more information.
Bu Sun Kim65020912020-05-20 12:08:20 -07002900 &quot;sandboxConfig&quot;: { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node.
2901 &quot;type&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002902 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002903 &quot;metadata&quot;: { # The metadata key/value pairs assigned to instances in the cluster.
2904 #
2905 # Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
2906 # in length. These are reflected as part of a URL in the metadata server.
2907 # Additionally, to avoid ambiguity, keys must not conflict with any other
2908 # metadata keys for the project or be one of the reserved keys:
2909 # &quot;cluster-location&quot;
2910 # &quot;cluster-name&quot;
2911 # &quot;cluster-uid&quot;
2912 # &quot;configure-sh&quot;
2913 # &quot;containerd-configure-sh&quot;
2914 # &quot;enable-os-login&quot;
2915 # &quot;gci-ensure-gke-docker&quot;
2916 # &quot;gci-metrics-enabled&quot;
2917 # &quot;gci-update-strategy&quot;
2918 # &quot;instance-template&quot;
2919 # &quot;kube-env&quot;
2920 # &quot;startup-script&quot;
2921 # &quot;user-data&quot;
2922 # &quot;disable-address-manager&quot;
2923 # &quot;windows-startup-script-ps1&quot;
2924 # &quot;common-psm1&quot;
2925 # &quot;k8s-node-setup-psm1&quot;
2926 # &quot;install-ssh-psm1&quot;
2927 # &quot;user-profile-psm1&quot;
2928 # &quot;serial-port-logging-enable&quot;
2929 #
2930 # Values are free-form strings, and only have meaning as interpreted by
2931 # the image running in the instance. The only restriction placed on them is
2932 # that each value&#x27;s size must be less than or equal to 32 KB.
2933 #
2934 # The total size of all keys and values must be less than 512 KB.
2935 &quot;a_key&quot;: &quot;A String&quot;,
2936 },
2937 &quot;reservationAffinity&quot;: { # [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) # The optional reservation affinity. Setting this field will apply
2938 # the specified [Zonal Compute
2939 # Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
2940 # to this node pool.
2941 # is the configuration of desired reservation which instances could take
2942 # capacity from.
2943 &quot;key&quot;: &quot;A String&quot;, # Corresponds to the label key of a reservation resource. To target a
2944 # SPECIFIC_RESERVATION by name, specify &quot;googleapis.com/reservation-name&quot; as
2945 # the key and specify the name of your reservation as its value.
2946 &quot;values&quot;: [ # Corresponds to the label value(s) of reservation resource(s).
2947 &quot;A String&quot;,
2948 ],
2949 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Corresponds to the type of reservation consumption.
2950 },
2951 },
2952 &quot;maxPodsConstraint&quot;: { # Constraints applied to pods. # The constraint on the maximum number of pods that can be run
2953 # simultaneously on a node in the node pool.
2954 &quot;maxPodsPerNode&quot;: &quot;A String&quot;, # Constraint enforced on the max num of pods per node.
2955 },
2956 &quot;name&quot;: &quot;A String&quot;, # The name of the node pool.
2957 &quot;management&quot;: { # NodeManagement defines the set of node management services turned on for the # NodeManagement configuration for this NodePool.
2958 # node pool.
2959 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool.
2960 # the Auto Upgrades will proceed.
2961 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
2962 # with the description of the upgrade.
2963 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
2964 # with the approximate start time for the upgrades, in
2965 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
2966 },
2967 &quot;autoUpgrade&quot;: True or False, # A flag that specifies whether node auto-upgrade is enabled for the node
2968 # pool. If enabled, node auto-upgrade helps keep the nodes in your node pool
2969 # up to date with the latest release version of Kubernetes.
2970 &quot;autoRepair&quot;: True or False, # A flag that specifies whether the node auto-repair is enabled for the node
2971 # pool. If enabled, the nodes in this node pool will be monitored and, if
2972 # they fail health checks too many times, an automatic repair action will be
2973 # triggered.
2974 },
2975 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output only] Additional information about the current status of this
Dan O'Mearadd494642020-05-01 07:42:23 -07002976 # node pool instance, if available.
Bu Sun Kim65020912020-05-20 12:08:20 -07002977 &quot;autoscaling&quot;: { # NodePoolAutoscaling contains information required by cluster autoscaler to # Autoscaler configuration for this NodePool. Autoscaler is enabled
2978 # only if a valid configuration is present.
2979 # adjust the size of the node pool to the current cluster usage.
2980 &quot;enabled&quot;: True or False, # Is autoscaling enabled for this node pool.
2981 &quot;maxNodeCount&quot;: 42, # Maximum number of nodes in the NodePool. Must be &gt;= min_node_count. There
2982 # has to enough quota to scale up the cluster.
2983 &quot;minNodeCount&quot;: 42, # Minimum number of nodes in the NodePool. Must be &gt;= 1 and &lt;=
2984 # max_node_count.
2985 &quot;autoprovisioned&quot;: True or False, # Can this node pool be deleted automatically.
2986 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002987 },
2988 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002989 &quot;selfLink&quot;: &quot;A String&quot;, # [Output only] Server-defined URL for the resource.
2990 &quot;networkPolicy&quot;: { # Configuration options for the NetworkPolicy feature. # Configuration options for the NetworkPolicy feature.
2991 # https://kubernetes.io/docs/concepts/services-networking/networkpolicies/
2992 &quot;provider&quot;: &quot;A String&quot;, # The selected network policy provider.
2993 &quot;enabled&quot;: True or False, # Whether network policy is enabled on the cluster.
2994 },
2995 &quot;servicesIpv4Cidr&quot;: &quot;A String&quot;, # [Output only] The IP address range of the Kubernetes services in
2996 # this cluster, in
2997 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
2998 # notation (e.g. `1.2.3.4/29`). Service addresses are
2999 # typically put in the last `/16` from the container CIDR.
3000 &quot;enableKubernetesAlpha&quot;: True or False, # Kubernetes alpha features are enabled on this cluster. This includes alpha
3001 # API groups (e.g. v1alpha1) and features that may not be production ready in
3002 # the kubernetes version of the master and nodes.
3003 # The cluster has no SLA for uptime and master/node upgrades are disabled.
3004 # Alpha enabled clusters are automatically deleted thirty days after
3005 # creation.
3006 &quot;description&quot;: &quot;A String&quot;, # An optional description of this cluster.
3007 &quot;conditions&quot;: [ # Which conditions caused the current cluster state.
3008 { # StatusCondition describes why a cluster or a node pool has a certain status
3009 # (e.g., ERROR or DEGRADED).
3010 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
3011 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
3012 },
3013 ],
3014 &quot;currentNodeCount&quot;: 42, # [Output only] The number of nodes currently in the cluster. Deprecated.
3015 # Call Kubernetes API directly to retrieve node information.
3016 &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 -07003017 # Currently available options:
3018 #
Bu Sun Kim65020912020-05-20 12:08:20 -07003019 # * &quot;monitoring.googleapis.com/kubernetes&quot; - The Cloud Monitoring
Dan O'Mearadd494642020-05-01 07:42:23 -07003020 # service with a Kubernetes-native resource model
3021 # * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
3022 # longer available as of GKE 1.15).
3023 # * `none` - No metrics will be exported from the cluster.
3024 #
3025 # If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
3026 # used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
Bu Sun Kim65020912020-05-20 12:08:20 -07003027 &quot;databaseEncryption&quot;: { # Configuration of etcd encryption. # Configuration of etcd encryption.
3028 &quot;keyName&quot;: &quot;A String&quot;, # Name of CloudKMS key to use for the encryption of secrets in etcd.
3029 # Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key
3030 &quot;state&quot;: &quot;A String&quot;, # Denotes the state of etcd encryption.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003031 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003032 &quot;binaryAuthorization&quot;: { # Configuration for Binary Authorization. # Configuration for Binary Authorization.
3033 &quot;enabled&quot;: True or False, # Enable Binary Authorization for this cluster. If enabled, all container
3034 # images will be validated by Binary Authorization.
3035 },
3036 &quot;tpuIpv4CidrBlock&quot;: &quot;A String&quot;, # [Output only] The IP address range of the Cloud TPUs in this cluster, in
3037 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
3038 # notation (e.g. `1.2.3.4/29`).
3039 &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
3040 # policies.
3041 # policies.
3042 &quot;workloadPool&quot;: &quot;A String&quot;, # The workload pool to attach all Kubernetes service accounts to.
3043 },
3044 &quot;zone&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
3045 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
3046 # cluster resides. This field is deprecated, use location instead.
3047 &quot;expireTime&quot;: &quot;A String&quot;, # [Output only] The time the cluster will be automatically
3048 # deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
3049 &quot;loggingService&quot;: &quot;A String&quot;, # The logging service the cluster should use to write logs.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003050 # Currently available options:
3051 #
Dan O'Mearadd494642020-05-01 07:42:23 -07003052 # * `logging.googleapis.com/kubernetes` - The Cloud Logging
3053 # service with a Kubernetes-native resource model
3054 # * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
3055 # available as of GKE 1.15).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003056 # * `none` - no logs will be exported from the cluster.
Dan O'Mearadd494642020-05-01 07:42:23 -07003057 #
3058 # If left as an empty string,`logging.googleapis.com/kubernetes` will be
3059 # used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
Bu Sun Kim65020912020-05-20 12:08:20 -07003060 &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 -07003061 # For requests, this field should only be used in lieu of a
Bu Sun Kim65020912020-05-20 12:08:20 -07003062 # &quot;node_pool&quot; object, since this configuration (along with the
3063 # &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 -07003064 # auto-generated name. Do not use this and a node_pool at the same time.
3065 # For responses, this field will be populated with the node configuration of
3066 # the first node pool. (For configuration of each node pool, see
3067 # `node_pool.config`)
3068 #
3069 # If unspecified, the defaults are used.
3070 # This field is deprecated, use node_pool.config instead.
Bu Sun Kim65020912020-05-20 12:08:20 -07003071 &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 -07003072 # valid sources or targets for network firewalls and are specified by
3073 # the client during cluster or node pool creation. Each tag within the list
3074 # must comply with RFC1035.
Bu Sun Kim65020912020-05-20 12:08:20 -07003075 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003076 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003077 &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 -07003078 # Specify the email address of the Service Account; otherwise, if no Service
Bu Sun Kim65020912020-05-20 12:08:20 -07003079 # Account is specified, the &quot;default&quot; service account is used.
3080 &quot;imageType&quot;: &quot;A String&quot;, # The image type to use for this node. Note that for a given image type,
3081 # the latest version of it will be used.
3082 &quot;oauthScopes&quot;: [ # The set of Google API scopes to be made available on all of the
3083 # node VMs under the &quot;default&quot; service account.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003084 #
3085 # The following scopes are recommended, but not required, and by default are
3086 # not included:
3087 #
3088 # * `https://www.googleapis.com/auth/compute` is required for mounting
3089 # persistent storage on your nodes.
3090 # * `https://www.googleapis.com/auth/devstorage.read_only` is required for
3091 # communicating with **gcr.io**
Dan O'Mearadd494642020-05-01 07:42:23 -07003092 # (the [Google Container
3093 # Registry](https://cloud.google.com/container-registry/)).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003094 #
3095 # If unspecified, no scopes are added, unless Cloud Logging or Cloud
3096 # Monitoring are enabled, in which case their required scopes will be added.
Bu Sun Kim65020912020-05-20 12:08:20 -07003097 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003098 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003099 &quot;taints&quot;: [ # List of kubernetes taints to be applied to each node.
Dan O'Mearadd494642020-05-01 07:42:23 -07003100 #
3101 # For more information, including usage and the valid values, see:
3102 # https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
3103 { # Kubernetes taint is comprised of three fields: key, value, and effect. Effect
3104 # can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute.
3105 #
Bu Sun Kim65020912020-05-20 12:08:20 -07003106 # See
3107 # [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration)
3108 # for more information, including usage and the valid values.
3109 &quot;key&quot;: &quot;A String&quot;, # Key for taint.
3110 &quot;value&quot;: &quot;A String&quot;, # Value for taint.
3111 &quot;effect&quot;: &quot;A String&quot;, # Effect for taint.
Dan O'Mearadd494642020-05-01 07:42:23 -07003112 },
3113 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003114 &quot;labels&quot;: { # The map of Kubernetes labels (key/value pairs) to be applied to each node.
3115 # These will added in addition to any default label(s) that
3116 # Kubernetes may apply to the node.
3117 # In case of conflict in label keys, the applied set may differ depending on
3118 # the Kubernetes version -- it&#x27;s best to assume the behavior is undefined
3119 # and conflicts should be avoided.
3120 # For more information, including usage and the valid values, see:
3121 # https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
3122 &quot;a_key&quot;: &quot;A String&quot;,
3123 },
3124 &quot;diskSizeGb&quot;: 42, # Size of the disk attached to each node, specified in GB.
3125 # The smallest allowed disk size is 10GB.
3126 #
3127 # If unspecified, the default disk size is 100GB.
3128 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to # The workload metadata configuration for this node.
3129 # workloads on the node pool.
3130 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running
3131 # on the node pool.
3132 },
3133 &quot;accelerators&quot;: [ # A list of hardware accelerators to be attached to each node.
3134 # See https://cloud.google.com/compute/docs/gpus for more information about
3135 # support for GPUs.
3136 { # AcceleratorConfig represents a Hardware Accelerator request.
3137 &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of the accelerator cards exposed to an instance.
3138 &quot;acceleratorType&quot;: &quot;A String&quot;, # The accelerator type resource name. List of supported accelerators
3139 # [here](https://cloud.google.com/compute/docs/gpus)
3140 },
3141 ],
3142 &quot;machineType&quot;: &quot;A String&quot;, # The name of a Google Compute Engine [machine
3143 # type](https://cloud.google.com/compute/docs/machine-types) (e.g.
3144 # `n1-standard-1`).
3145 #
3146 # If unspecified, the default machine type is
3147 # `n1-standard-1`.
3148 &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;)
3149 #
3150 # If unspecified, the default disk type is &#x27;pd-standard&#x27;
3151 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
3152 &quot;enableSecureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled.
3153 #
3154 # Secure Boot helps ensure that the system only runs authentic software by
3155 # verifying the digital signature of all boot components, and halting the
3156 # boot process if signature verification fails.
3157 &quot;enableIntegrityMonitoring&quot;: True or False, # Defines whether the instance has integrity monitoring enabled.
3158 #
3159 # Enables monitoring and attestation of the boot integrity of the instance.
3160 # The attestation is performed against the integrity policy baseline. This
3161 # baseline is initially derived from the implicitly trusted boot image when
3162 # the instance is created.
3163 },
3164 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used by this instance. The instance may be
3165 # scheduled on the specified or newer CPU platform. Applicable values are the
3166 # friendly names of CPU platforms, such as
3167 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Haswell&amp;quot;&lt;/code&gt; or
3168 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Sandy Bridge&amp;quot;&lt;/code&gt;. For more
3169 # information, read [how to specify min CPU
3170 # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
3171 &quot;preemptible&quot;: True or False, # Whether the nodes are created as preemptible VM instances. See:
3172 # https://cloud.google.com/compute/docs/instances/preemptible for more
3173 # information about preemptible VM instances.
3174 &quot;localSsdCount&quot;: 42, # The number of local SSD disks to be attached to the node.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003175 #
Dan O'Mearadd494642020-05-01 07:42:23 -07003176 # The limit for this value is dependent upon the maximum number of
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003177 # disks available on a machine per zone. See:
Dan O'Mearadd494642020-05-01 07:42:23 -07003178 # https://cloud.google.com/compute/docs/disks/local-ssd
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003179 # for more information.
Bu Sun Kim65020912020-05-20 12:08:20 -07003180 &quot;sandboxConfig&quot;: { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node.
3181 &quot;type&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node.
3182 },
3183 &quot;metadata&quot;: { # The metadata key/value pairs assigned to instances in the cluster.
3184 #
3185 # Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
3186 # in length. These are reflected as part of a URL in the metadata server.
3187 # Additionally, to avoid ambiguity, keys must not conflict with any other
3188 # metadata keys for the project or be one of the reserved keys:
3189 # &quot;cluster-location&quot;
3190 # &quot;cluster-name&quot;
3191 # &quot;cluster-uid&quot;
3192 # &quot;configure-sh&quot;
3193 # &quot;containerd-configure-sh&quot;
3194 # &quot;enable-os-login&quot;
3195 # &quot;gci-ensure-gke-docker&quot;
3196 # &quot;gci-metrics-enabled&quot;
3197 # &quot;gci-update-strategy&quot;
3198 # &quot;instance-template&quot;
3199 # &quot;kube-env&quot;
3200 # &quot;startup-script&quot;
3201 # &quot;user-data&quot;
3202 # &quot;disable-address-manager&quot;
3203 # &quot;windows-startup-script-ps1&quot;
3204 # &quot;common-psm1&quot;
3205 # &quot;k8s-node-setup-psm1&quot;
3206 # &quot;install-ssh-psm1&quot;
3207 # &quot;user-profile-psm1&quot;
3208 # &quot;serial-port-logging-enable&quot;
3209 #
3210 # Values are free-form strings, and only have meaning as interpreted by
3211 # the image running in the instance. The only restriction placed on them is
3212 # that each value&#x27;s size must be less than or equal to 32 KB.
3213 #
3214 # The total size of all keys and values must be less than 512 KB.
3215 &quot;a_key&quot;: &quot;A String&quot;,
3216 },
3217 &quot;reservationAffinity&quot;: { # [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) # The optional reservation affinity. Setting this field will apply
3218 # the specified [Zonal Compute
3219 # Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
3220 # to this node pool.
3221 # is the configuration of desired reservation which instances could take
3222 # capacity from.
3223 &quot;key&quot;: &quot;A String&quot;, # Corresponds to the label key of a reservation resource. To target a
3224 # SPECIFIC_RESERVATION by name, specify &quot;googleapis.com/reservation-name&quot; as
3225 # the key and specify the name of your reservation as its value.
3226 &quot;values&quot;: [ # Corresponds to the label value(s) of reservation resource(s).
3227 &quot;A String&quot;,
3228 ],
3229 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Corresponds to the type of reservation consumption.
3230 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003231 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003232 &quot;status&quot;: &quot;A String&quot;, # [Output only] The current status of this cluster.
3233 &quot;networkConfig&quot;: { # NetworkConfig reports the relative names of network &amp; subnetwork. # Configuration for cluster networking.
3234 &quot;subnetwork&quot;: &quot;A String&quot;, # Output only. The relative name of the Google Compute Engine
3235 # [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the
3236 # cluster is connected. Example:
3237 # projects/my-project/regions/us-central1/subnetworks/my-subnet
3238 &quot;network&quot;: &quot;A String&quot;, # Output only. The relative name of the Google Compute Engine
3239 # network(https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
3240 # to which the cluster is connected. Example:
3241 # projects/my-project/global/networks/my-network
3242 &quot;enableIntraNodeVisibility&quot;: True or False, # Whether Intra-node visibility is enabled for this cluster.
3243 # This makes same node pod to pod traffic visible for VPC network.
3244 },
3245 &quot;name&quot;: &quot;A String&quot;, # The name of this cluster. The name must be unique within this project
3246 # and location (e.g. zone or region), and can be up to 40 characters with
3247 # the following restrictions:
3248 #
3249 # * Lowercase letters, numbers, and hyphens only.
3250 # * Must start with a letter.
3251 # * Must end with a number or a letter.
3252 &quot;endpoint&quot;: &quot;A String&quot;, # [Output only] The IP address of this cluster&#x27;s master endpoint.
3253 # The endpoint can be accessed from the internet at
3254 # `https://username:password@endpoint/`.
3255 #
3256 # See the `masterAuth` property of this resource for username and
3257 # password information.
3258 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
3259 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
3260 # or
3261 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
3262 # in which the cluster resides.
3263 &quot;createTime&quot;: &quot;A String&quot;, # [Output only] The time the cluster was created, in
3264 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
3265 &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 -07003266 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
3267 # notation (e.g. `10.96.0.0/14`). Leave blank to have
3268 # one automatically chosen or specify a `/14` block in `10.0.0.0/8`.
Bu Sun Kim65020912020-05-20 12:08:20 -07003269 &quot;autoscaling&quot;: { # ClusterAutoscaling contains global, per-cluster information # Cluster-level autoscaling configuration.
3270 # required by Cluster Autoscaler to automatically adjust
3271 # the size of the cluster and create/delete
3272 # node pools based on the current needs.
3273 &quot;autoprovisioningLocations&quot;: [ # The list of Google Compute Engine
3274 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
3275 # NodePool&#x27;s nodes can be created by NAP.
3276 &quot;A String&quot;,
3277 ],
3278 &quot;resourceLimits&quot;: [ # Contains global constraints regarding minimum and maximum
3279 # amount of resources in the cluster.
3280 { # Contains information about amount of some resource in the cluster.
3281 # For memory, value should be in GB.
3282 &quot;maximum&quot;: &quot;A String&quot;, # Maximum amount of the resource in the cluster.
3283 &quot;resourceType&quot;: &quot;A String&quot;, # Resource name &quot;cpu&quot;, &quot;memory&quot; or gpu-specific string.
3284 &quot;minimum&quot;: &quot;A String&quot;, # Minimum amount of the resource in the cluster.
3285 },
3286 ],
3287 &quot;enableNodeAutoprovisioning&quot;: True or False, # Enables automatic node pool creation and deletion.
3288 &quot;autoprovisioningNodePoolDefaults&quot;: { # AutoprovisioningNodePoolDefaults contains defaults for a node pool created # AutoprovisioningNodePoolDefaults contains defaults for a node pool
3289 # created by NAP.
3290 # by NAP.
3291 &quot;oauthScopes&quot;: [ # Scopes that are used by NAP when creating node pools. If oauth_scopes are
3292 # specified, service_account should be empty.
3293 &quot;A String&quot;,
3294 ],
3295 &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.
3296 # node pool.
3297 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool.
3298 # the Auto Upgrades will proceed.
3299 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
3300 # with the description of the upgrade.
3301 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
3302 # with the approximate start time for the upgrades, in
3303 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
3304 },
3305 &quot;autoUpgrade&quot;: True or False, # A flag that specifies whether node auto-upgrade is enabled for the node
3306 # pool. If enabled, node auto-upgrade helps keep the nodes in your node pool
3307 # up to date with the latest release version of Kubernetes.
3308 &quot;autoRepair&quot;: True or False, # A flag that specifies whether the node auto-repair is enabled for the node
3309 # pool. If enabled, the nodes in this node pool will be monitored and, if
3310 # they fail health checks too many times, an automatic repair action will be
3311 # triggered.
3312 },
3313 &quot;upgradeSettings&quot;: { # These upgrade settings control the level of parallelism and the level of # Specifies the upgrade settings for NAP created node pools
3314 # disruption caused by an upgrade.
3315 #
3316 # maxUnavailable controls the number of nodes that can be simultaneously
3317 # unavailable.
3318 #
3319 # maxSurge controls the number of additional nodes that can be added to the
3320 # node pool temporarily for the time of the upgrade to increase the number of
3321 # available nodes.
3322 #
3323 # (maxUnavailable + maxSurge) determines the level of parallelism (how many
3324 # nodes are being upgraded at the same time).
3325 #
3326 # Note: upgrades inevitably introduce some disruption since workloads need to
3327 # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
3328 # this holds true. (Disruption stays within the limits of
3329 # PodDisruptionBudget, if it is configured.)
3330 #
3331 # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
3332 # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
3333 # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
3334 # down 3 old (not yet upgraded) nodes at the same time. This ensures that
3335 # there are always at least 4 nodes available.
3336 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during
3337 # the upgrade process. A node is considered available if its status is
3338 # Ready.
3339 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size
3340 # of the node pool during the upgrade process.
3341 },
3342 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs. If
3343 # service_account is specified, scopes should be empty.
3344 },
3345 },
3346 &quot;initialNodeCount&quot;: 42, # The number of nodes to create in this cluster. You must ensure that your
3347 # Compute Engine &lt;a href=&quot;/compute/docs/resource-quotas&quot;&gt;resource quota&lt;/a&gt;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003348 # is sufficient for this number of instances. You must also have available
3349 # firewall and routes quota.
3350 # For requests, this field should only be used in lieu of a
Bu Sun Kim65020912020-05-20 12:08:20 -07003351 # &quot;node_pool&quot; object, since this configuration (along with the
3352 # &quot;node_config&quot;) will be used to create a &quot;NodePool&quot; object with an
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003353 # auto-generated name. Do not use this and a node_pool at the same time.
3354 #
3355 # This field is deprecated, use node_pool.initial_node_count instead.
Bu Sun Kim65020912020-05-20 12:08:20 -07003356 &quot;instanceGroupUrls&quot;: [ # Deprecated. Use node_pools.instance_group_urls.
3357 &quot;A String&quot;,
3358 ],
3359 &quot;privateClusterConfig&quot;: { # Configuration options for private clusters. # Configuration for private cluster.
3360 &quot;peeringName&quot;: &quot;A String&quot;, # Output only. The peering name in the customer VPC used by this cluster.
3361 &quot;publicEndpoint&quot;: &quot;A String&quot;, # Output only. The external IP address of this cluster&#x27;s master endpoint.
3362 &quot;enablePrivateNodes&quot;: True or False, # Whether nodes have internal IP addresses only. If enabled, all nodes are
3363 # given only RFC 1918 private addresses and communicate with the master via
3364 # private networking.
3365 &quot;masterIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP range in CIDR notation to use for the hosted master network. This
3366 # range will be used for assigning internal IP addresses to the master or
3367 # set of masters, as well as the ILB VIP. This range must not overlap with
3368 # any other ranges in use within the cluster&#x27;s network.
3369 &quot;privateEndpoint&quot;: &quot;A String&quot;, # Output only. The internal IP address of this cluster&#x27;s master endpoint.
3370 &quot;enablePrivateEndpoint&quot;: True or False, # Whether the master&#x27;s internal IP address is used as the cluster endpoint.
3371 },
3372 &quot;shieldedNodes&quot;: { # Configuration of Shielded Nodes feature. # Shielded Nodes configuration.
3373 &quot;enabled&quot;: True or False, # Whether Shielded Nodes features are enabled on all nodes in this cluster.
3374 },
3375 &quot;verticalPodAutoscaling&quot;: { # VerticalPodAutoscaling contains global, per-cluster information # Cluster-level Vertical Pod Autoscaling configuration.
3376 # required by Vertical Pod Autoscaler to automatically adjust
3377 # the resources of pods controlled by it.
3378 &quot;enabled&quot;: True or False, # Enables vertical pod autoscaling.
3379 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003380 },
3381 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003382 &quot;missingZones&quot;: [ # If any zones are listed here, the list of clusters returned
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003383 # may be missing those zones.
Bu Sun Kim65020912020-05-20 12:08:20 -07003384 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003385 ],
3386 }</pre>
3387</div>
3388
3389<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07003390 <code class="details" id="setAddons">setAddons(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003391 <pre>Sets the addons for a specific cluster.
3392
3393Args:
3394 name: string, The name (project, location, cluster) of the cluster to set addons.
Bu Sun Kim65020912020-05-20 12:08:20 -07003395Specified in the format `projects/*/locations/*/clusters/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07003396 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003397 The object takes the form of:
3398
3399{ # SetAddonsConfigRequest sets the addons associated with the cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -07003400 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster) of the cluster to set addons.
3401 # Specified in the format `projects/*/locations/*/clusters/*`.
3402 &quot;projectId&quot;: &quot;A String&quot;, # Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003403 # number](https://support.google.com/cloud/answer/6158840).
3404 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07003405 &quot;zone&quot;: &quot;A String&quot;, # Deprecated. The name of the Google Compute Engine
3406 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
3407 # cluster resides. This field has been deprecated and replaced by the name
3408 # field.
3409 &quot;clusterId&quot;: &quot;A String&quot;, # Deprecated. The name of the cluster to upgrade.
3410 # This field has been deprecated and replaced by the name field.
3411 &quot;addonsConfig&quot;: { # Configuration for the addons that can be automatically spun up in the # Required. The desired configurations for the various addons available to run in the
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003412 # cluster.
3413 # cluster, enabling additional functionality.
Bu Sun Kim65020912020-05-20 12:08:20 -07003414 &quot;networkPolicyConfig&quot;: { # Configuration for NetworkPolicy. This only tracks whether the addon # Configuration for NetworkPolicy. This only tracks whether the addon
3415 # is enabled or not on the Master, it does not track whether network policy
3416 # is enabled for the nodes.
3417 # is enabled or not on the Master, it does not track whether network policy
3418 # is enabled for the nodes.
3419 &quot;disabled&quot;: True or False, # Whether NetworkPolicy is enabled for this cluster.
3420 },
3421 &quot;cloudRunConfig&quot;: { # Configuration options for the Cloud Run feature. # Configuration for the Cloud Run addon, which allows the user to use a
3422 # managed Knative service.
3423 &quot;disabled&quot;: True or False, # Whether Cloud Run addon is enabled for this cluster.
3424 },
3425 &quot;horizontalPodAutoscaling&quot;: { # Configuration options for the horizontal pod autoscaling feature, which # Configuration for the horizontal pod autoscaling feature, which
3426 # increases or decreases the number of replica pods a replication controller
3427 # has based on the resource usage of the existing pods.
3428 # increases or decreases the number of replica pods a replication controller
3429 # has based on the resource usage of the existing pods.
3430 &quot;disabled&quot;: True or False, # Whether the Horizontal Pod Autoscaling feature is enabled in the cluster.
3431 # When enabled, it ensures that metrics are collected into Stackdriver
3432 # Monitoring.
3433 },
3434 &quot;httpLoadBalancing&quot;: { # Configuration options for the HTTP (L7) load balancing controller addon, # Configuration for the HTTP (L7) load balancing controller addon, which
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003435 # makes it easy to set up HTTP load balancers for services in a cluster.
3436 # which makes it easy to set up HTTP load balancers for services in a cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -07003437 &quot;disabled&quot;: True or False, # Whether the HTTP Load Balancing controller is enabled in the cluster.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003438 # When enabled, it runs a small pod in the cluster that manages the load
3439 # balancers.
3440 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003441 &quot;kubernetesDashboard&quot;: { # Configuration for the Kubernetes Dashboard. # Configuration for the Kubernetes Dashboard.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003442 # This addon is deprecated, and will be disabled in 1.15. It is recommended
3443 # to use the Cloud Console to manage and monitor your Kubernetes clusters,
3444 # workloads and applications. For more information, see:
3445 # https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
Bu Sun Kim65020912020-05-20 12:08:20 -07003446 &quot;disabled&quot;: True or False, # Whether the Kubernetes Dashboard is enabled for this cluster.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003447 },
3448 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003449 }
3450
3451 x__xgafv: string, V1 error format.
3452 Allowed values
3453 1 - v1 error format
3454 2 - v2 error format
3455
3456Returns:
3457 An object of the form:
3458
3459 { # This operation resource represents operations that may have happened or are
3460 # happening on the cluster. All fields are output only.
Bu Sun Kim65020912020-05-20 12:08:20 -07003461 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
3462 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003463 { # StatusCondition describes why a cluster or a node pool has a certain status
3464 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07003465 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
3466 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003467 },
3468 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003469 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
Dan O'Mearadd494642020-05-01 07:42:23 -07003470 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07003471 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07003472 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
3473 # or
3474 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
3475 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07003476 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
3477 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
3478 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
3479 &quot;stages&quot;: [ # Substages of an operation or a stage.
3480 # Object with schema name: OperationProgress
3481 ],
3482 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
3483 # Unset for single-stage operations.
3484 &quot;metrics&quot;: [ # Progress metric bundle, for example:
3485 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
3486 # {name: &quot;nodes total&quot;, int_value: 32}]
3487 # or
3488 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
3489 # {name: &quot;progress scale&quot;, double_value: 1.0}]
3490 { # Progress metric is (string, int|float|string) pair.
3491 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
3492 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
3493 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
3494 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
3495 },
3496 ],
3497 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
3498 # Unset for single-stage operations.
3499 },
3500 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
3501 { # StatusCondition describes why a cluster or a node pool has a certain status
3502 # (e.g., ERROR or DEGRADED).
3503 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
3504 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
3505 },
3506 ],
3507 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
3508 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
3509 # operation is taking place. This field is deprecated, use location instead.
3510 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
3511 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
3512 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
3513 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
3514 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
3515 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003516 }</pre>
3517</div>
3518
3519<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07003520 <code class="details" id="setLegacyAbac">setLegacyAbac(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003521 <pre>Enables or disables the ABAC authorization mechanism on a cluster.
3522
3523Args:
3524 name: string, The name (project, location, cluster id) of the cluster to set legacy abac.
Bu Sun Kim65020912020-05-20 12:08:20 -07003525Specified in the format `projects/*/locations/*/clusters/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07003526 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003527 The object takes the form of:
3528
3529{ # SetLegacyAbacRequest enables or disables the ABAC authorization mechanism for
3530 # a cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -07003531 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster id) of the cluster to set legacy abac.
3532 # Specified in the format `projects/*/locations/*/clusters/*`.
3533 &quot;enabled&quot;: True or False, # Required. Whether ABAC authorization will be enabled in the cluster.
3534 &quot;projectId&quot;: &quot;A String&quot;, # Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003535 # number](https://support.google.com/cloud/answer/6158840).
3536 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07003537 &quot;zone&quot;: &quot;A String&quot;, # Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07003538 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
3539 # cluster resides. This field has been deprecated and replaced by the name
3540 # field.
Bu Sun Kim65020912020-05-20 12:08:20 -07003541 &quot;clusterId&quot;: &quot;A String&quot;, # Deprecated. The name of the cluster to update.
3542 # This field has been deprecated and replaced by the name field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003543 }
3544
3545 x__xgafv: string, V1 error format.
3546 Allowed values
3547 1 - v1 error format
3548 2 - v2 error format
3549
3550Returns:
3551 An object of the form:
3552
3553 { # This operation resource represents operations that may have happened or are
3554 # happening on the cluster. All fields are output only.
Bu Sun Kim65020912020-05-20 12:08:20 -07003555 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
3556 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003557 { # StatusCondition describes why a cluster or a node pool has a certain status
3558 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07003559 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
3560 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003561 },
3562 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003563 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
Dan O'Mearadd494642020-05-01 07:42:23 -07003564 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07003565 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07003566 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
3567 # or
3568 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
3569 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07003570 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
3571 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
3572 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
3573 &quot;stages&quot;: [ # Substages of an operation or a stage.
3574 # Object with schema name: OperationProgress
3575 ],
3576 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
3577 # Unset for single-stage operations.
3578 &quot;metrics&quot;: [ # Progress metric bundle, for example:
3579 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
3580 # {name: &quot;nodes total&quot;, int_value: 32}]
3581 # or
3582 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
3583 # {name: &quot;progress scale&quot;, double_value: 1.0}]
3584 { # Progress metric is (string, int|float|string) pair.
3585 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
3586 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
3587 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
3588 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
3589 },
3590 ],
3591 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
3592 # Unset for single-stage operations.
3593 },
3594 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
3595 { # StatusCondition describes why a cluster or a node pool has a certain status
3596 # (e.g., ERROR or DEGRADED).
3597 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
3598 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
3599 },
3600 ],
3601 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
3602 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
3603 # operation is taking place. This field is deprecated, use location instead.
3604 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
3605 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
3606 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
3607 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
3608 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
3609 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003610 }</pre>
3611</div>
3612
3613<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07003614 <code class="details" id="setLocations">setLocations(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003615 <pre>Sets the locations for a specific cluster.
Dan O'Mearadd494642020-05-01 07:42:23 -07003616Deprecated. Use
3617[projects.locations.clusters.update](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters/update)
3618instead.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003619
3620Args:
3621 name: string, The name (project, location, cluster) of the cluster to set locations.
Bu Sun Kim65020912020-05-20 12:08:20 -07003622Specified in the format `projects/*/locations/*/clusters/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07003623 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003624 The object takes the form of:
3625
3626{ # SetLocationsRequest sets the locations of the cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -07003627 &quot;projectId&quot;: &quot;A String&quot;, # Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003628 # number](https://support.google.com/cloud/answer/6158840).
3629 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07003630 &quot;zone&quot;: &quot;A String&quot;, # Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07003631 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
3632 # cluster resides. This field has been deprecated and replaced by the name
3633 # field.
Bu Sun Kim65020912020-05-20 12:08:20 -07003634 &quot;locations&quot;: [ # Required. The desired list of Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07003635 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
Bu Sun Kim65020912020-05-20 12:08:20 -07003636 # cluster&#x27;s nodes should be located. Changing the locations a cluster is in
Dan O'Mearadd494642020-05-01 07:42:23 -07003637 # will result in nodes being either created or removed from the cluster,
3638 # depending on whether locations are being added or removed.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003639 #
Bu Sun Kim65020912020-05-20 12:08:20 -07003640 # This list must always include the cluster&#x27;s primary zone.
3641 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003642 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003643 &quot;clusterId&quot;: &quot;A String&quot;, # Deprecated. The name of the cluster to upgrade.
3644 # This field has been deprecated and replaced by the name field.
3645 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster) of the cluster to set locations.
3646 # Specified in the format `projects/*/locations/*/clusters/*`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003647 }
3648
3649 x__xgafv: string, V1 error format.
3650 Allowed values
3651 1 - v1 error format
3652 2 - v2 error format
3653
3654Returns:
3655 An object of the form:
3656
3657 { # This operation resource represents operations that may have happened or are
3658 # happening on the cluster. All fields are output only.
Bu Sun Kim65020912020-05-20 12:08:20 -07003659 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
3660 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003661 { # StatusCondition describes why a cluster or a node pool has a certain status
3662 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07003663 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
3664 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003665 },
3666 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003667 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
Dan O'Mearadd494642020-05-01 07:42:23 -07003668 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07003669 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07003670 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
3671 # or
3672 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
3673 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07003674 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
3675 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
3676 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
3677 &quot;stages&quot;: [ # Substages of an operation or a stage.
3678 # Object with schema name: OperationProgress
3679 ],
3680 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
3681 # Unset for single-stage operations.
3682 &quot;metrics&quot;: [ # Progress metric bundle, for example:
3683 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
3684 # {name: &quot;nodes total&quot;, int_value: 32}]
3685 # or
3686 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
3687 # {name: &quot;progress scale&quot;, double_value: 1.0}]
3688 { # Progress metric is (string, int|float|string) pair.
3689 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
3690 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
3691 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
3692 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
3693 },
3694 ],
3695 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
3696 # Unset for single-stage operations.
3697 },
3698 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
3699 { # StatusCondition describes why a cluster or a node pool has a certain status
3700 # (e.g., ERROR or DEGRADED).
3701 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
3702 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
3703 },
3704 ],
3705 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
3706 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
3707 # operation is taking place. This field is deprecated, use location instead.
3708 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
3709 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
3710 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
3711 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
3712 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
3713 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003714 }</pre>
3715</div>
3716
3717<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07003718 <code class="details" id="setLogging">setLogging(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003719 <pre>Sets the logging service for a specific cluster.
3720
3721Args:
3722 name: string, The name (project, location, cluster) of the cluster to set logging.
Bu Sun Kim65020912020-05-20 12:08:20 -07003723Specified in the format `projects/*/locations/*/clusters/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07003724 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003725 The object takes the form of:
3726
3727{ # SetLoggingServiceRequest sets the logging service of a cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -07003728 &quot;projectId&quot;: &quot;A String&quot;, # Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003729 # number](https://support.google.com/cloud/answer/6158840).
3730 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07003731 &quot;zone&quot;: &quot;A String&quot;, # Deprecated. The name of the Google Compute Engine
3732 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
3733 # cluster resides. This field has been deprecated and replaced by the name
3734 # field.
3735 &quot;clusterId&quot;: &quot;A String&quot;, # Deprecated. The name of the cluster to upgrade.
3736 # This field has been deprecated and replaced by the name field.
3737 &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 -07003738 # Currently available options:
3739 #
Dan O'Mearadd494642020-05-01 07:42:23 -07003740 # * `logging.googleapis.com/kubernetes` - The Cloud Logging
3741 # service with a Kubernetes-native resource model
3742 # * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
3743 # available as of GKE 1.15).
3744 # * `none` - no logs will be exported from the cluster.
3745 #
3746 # If left as an empty string,`logging.googleapis.com/kubernetes` will be
3747 # used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
Bu Sun Kim65020912020-05-20 12:08:20 -07003748 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster) of the cluster to set logging.
3749 # Specified in the format `projects/*/locations/*/clusters/*`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003750 }
3751
3752 x__xgafv: string, V1 error format.
3753 Allowed values
3754 1 - v1 error format
3755 2 - v2 error format
3756
3757Returns:
3758 An object of the form:
3759
3760 { # This operation resource represents operations that may have happened or are
3761 # happening on the cluster. All fields are output only.
Bu Sun Kim65020912020-05-20 12:08:20 -07003762 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
3763 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003764 { # StatusCondition describes why a cluster or a node pool has a certain status
3765 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07003766 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
3767 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003768 },
3769 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003770 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
Dan O'Mearadd494642020-05-01 07:42:23 -07003771 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07003772 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07003773 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
3774 # or
3775 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
3776 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07003777 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
3778 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
3779 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
3780 &quot;stages&quot;: [ # Substages of an operation or a stage.
3781 # Object with schema name: OperationProgress
3782 ],
3783 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
3784 # Unset for single-stage operations.
3785 &quot;metrics&quot;: [ # Progress metric bundle, for example:
3786 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
3787 # {name: &quot;nodes total&quot;, int_value: 32}]
3788 # or
3789 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
3790 # {name: &quot;progress scale&quot;, double_value: 1.0}]
3791 { # Progress metric is (string, int|float|string) pair.
3792 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
3793 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
3794 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
3795 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
3796 },
3797 ],
3798 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
3799 # Unset for single-stage operations.
3800 },
3801 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
3802 { # StatusCondition describes why a cluster or a node pool has a certain status
3803 # (e.g., ERROR or DEGRADED).
3804 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
3805 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
3806 },
3807 ],
3808 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
3809 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
3810 # operation is taking place. This field is deprecated, use location instead.
3811 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
3812 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
3813 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
3814 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
3815 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
3816 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003817 }</pre>
3818</div>
3819
3820<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07003821 <code class="details" id="setMaintenancePolicy">setMaintenancePolicy(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003822 <pre>Sets the maintenance policy for a cluster.
3823
3824Args:
3825 name: string, The name (project, location, cluster id) of the cluster to set maintenance
3826policy.
Bu Sun Kim65020912020-05-20 12:08:20 -07003827Specified in the format `projects/*/locations/*/clusters/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07003828 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003829 The object takes the form of:
3830
3831{ # SetMaintenancePolicyRequest sets the maintenance policy for a cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -07003832 &quot;clusterId&quot;: &quot;A String&quot;, # Required. The name of the cluster to update.
3833 &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 -07003834 # clears the existing maintenance policy.
Bu Sun Kim65020912020-05-20 12:08:20 -07003835 &quot;window&quot;: { # MaintenanceWindow defines the maintenance window to be used for the cluster. # Specifies the maintenance window in which maintenance may be performed.
3836 &quot;dailyMaintenanceWindow&quot;: { # Time window specified for daily maintenance operations. # DailyMaintenanceWindow specifies a daily maintenance operation window.
3837 &quot;duration&quot;: &quot;A String&quot;, # [Output only] Duration of the time window, automatically chosen to be
3838 # smallest possible in the given scenario.
3839 # Duration will be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)
3840 # format &quot;PTnHnMnS&quot;.
3841 &quot;startTime&quot;: &quot;A String&quot;, # Time within the maintenance window to start the maintenance operations.
3842 # Time format should be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)
3843 # format &quot;HH:MM&quot;, where HH : [00-23] and MM : [00-59] GMT.
3844 },
3845 &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 -07003846 # maintenance to occur. The time windows may be overlapping. If no
3847 # maintenance windows are set, maintenance can occur at any time.
Bu Sun Kim65020912020-05-20 12:08:20 -07003848 &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 -07003849 # this window reccurs. They go on for the span of time between the start and
3850 # end time.
3851 #
Bu Sun Kim65020912020-05-20 12:08:20 -07003852 # For example, to have something repeat every weekday, you&#x27;d use:
Dan O'Mearadd494642020-05-01 07:42:23 -07003853 # &lt;code&gt;FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR&lt;/code&gt;
3854 # To repeat some window daily (equivalent to the DailyMaintenanceWindow):
3855 # &lt;code&gt;FREQ=DAILY&lt;/code&gt;
3856 # For the first weekend of every month:
3857 # &lt;code&gt;FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU&lt;/code&gt;
3858 # This specifies how frequently the window starts. Eg, if you wanted to have
Bu Sun Kim65020912020-05-20 12:08:20 -07003859 # a 9-5 UTC-4 window every weekday, you&#x27;d use something like:
Dan O'Mearadd494642020-05-01 07:42:23 -07003860 # &lt;code&gt;
3861 # start time = 2019-01-01T09:00:00-0400
3862 # end time = 2019-01-01T17:00:00-0400
3863 # recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
3864 # &lt;/code&gt;
3865 # Windows can span multiple days. Eg, to make the window encompass every
3866 # weekend from midnight Saturday till the last minute of Sunday UTC:
3867 # &lt;code&gt;
3868 # start time = 2019-01-05T00:00:00Z
3869 # end time = 2019-01-07T23:59:00Z
3870 # recurrence = FREQ=WEEKLY;BYDAY=SA
3871 # &lt;/code&gt;
Bu Sun Kim65020912020-05-20 12:08:20 -07003872 # Note the start and end time&#x27;s specific dates are largely arbitrary except
Dan O'Mearadd494642020-05-01 07:42:23 -07003873 # to specify duration of the window and when it first starts.
3874 # The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.
Bu Sun Kim65020912020-05-20 12:08:20 -07003875 &quot;window&quot;: { # Represents an arbitrary window of time. # The window of the first recurrence.
3876 &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 -07003877 # start time.
Bu Sun Kim65020912020-05-20 12:08:20 -07003878 &quot;startTime&quot;: &quot;A String&quot;, # The time that the window first starts.
Dan O'Mearadd494642020-05-01 07:42:23 -07003879 },
3880 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003881 &quot;maintenanceExclusions&quot;: { # Exceptions to maintenance window. Non-emergency maintenance should not
Dan O'Mearadd494642020-05-01 07:42:23 -07003882 # occur in these windows.
Bu Sun Kim65020912020-05-20 12:08:20 -07003883 &quot;a_key&quot;: { # Represents an arbitrary window of time.
3884 &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 -07003885 # start time.
Bu Sun Kim65020912020-05-20 12:08:20 -07003886 &quot;startTime&quot;: &quot;A String&quot;, # The time that the window first starts.
Dan O'Mearadd494642020-05-01 07:42:23 -07003887 },
3888 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003889 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003890 &quot;resourceVersion&quot;: &quot;A String&quot;, # A hash identifying the version of this policy, so that updates to fields of
3891 # the policy won&#x27;t accidentally undo intermediate changes (and so that users
3892 # of the API unaware of some fields won&#x27;t accidentally remove other fields).
Dan O'Mearadd494642020-05-01 07:42:23 -07003893 # Make a &lt;code&gt;get()&lt;/code&gt; request to the cluster to get the current
3894 # resource version and include it with requests to set the policy.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003895 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003896 &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 -07003897 # policy.
Bu Sun Kim65020912020-05-20 12:08:20 -07003898 # Specified in the format `projects/*/locations/*/clusters/*`.
3899 &quot;projectId&quot;: &quot;A String&quot;, # Required. The Google Developers Console [project ID or project
3900 # number](https://support.google.com/cloud/answer/6158840).
3901 &quot;zone&quot;: &quot;A String&quot;, # Required. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07003902 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
3903 # cluster resides.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003904 }
3905
3906 x__xgafv: string, V1 error format.
3907 Allowed values
3908 1 - v1 error format
3909 2 - v2 error format
3910
3911Returns:
3912 An object of the form:
3913
3914 { # This operation resource represents operations that may have happened or are
3915 # happening on the cluster. All fields are output only.
Bu Sun Kim65020912020-05-20 12:08:20 -07003916 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
3917 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003918 { # StatusCondition describes why a cluster or a node pool has a certain status
3919 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07003920 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
3921 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003922 },
3923 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003924 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
Dan O'Mearadd494642020-05-01 07:42:23 -07003925 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07003926 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07003927 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
3928 # or
3929 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
3930 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07003931 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
3932 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
3933 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
3934 &quot;stages&quot;: [ # Substages of an operation or a stage.
3935 # Object with schema name: OperationProgress
3936 ],
3937 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
3938 # Unset for single-stage operations.
3939 &quot;metrics&quot;: [ # Progress metric bundle, for example:
3940 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
3941 # {name: &quot;nodes total&quot;, int_value: 32}]
3942 # or
3943 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
3944 # {name: &quot;progress scale&quot;, double_value: 1.0}]
3945 { # Progress metric is (string, int|float|string) pair.
3946 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
3947 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
3948 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
3949 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
3950 },
3951 ],
3952 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
3953 # Unset for single-stage operations.
3954 },
3955 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
3956 { # StatusCondition describes why a cluster or a node pool has a certain status
3957 # (e.g., ERROR or DEGRADED).
3958 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
3959 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
3960 },
3961 ],
3962 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
3963 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
3964 # operation is taking place. This field is deprecated, use location instead.
3965 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
3966 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
3967 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
3968 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
3969 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
3970 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003971 }</pre>
3972</div>
3973
3974<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07003975 <code class="details" id="setMasterAuth">setMasterAuth(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003976 <pre>Sets master auth materials. Currently supports changing the admin password
3977or a specific cluster, either via password generation or explicitly setting
3978the password.
3979
3980Args:
3981 name: string, The name (project, location, cluster) of the cluster to set auth.
Bu Sun Kim65020912020-05-20 12:08:20 -07003982Specified in the format `projects/*/locations/*/clusters/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07003983 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003984 The object takes the form of:
3985
3986{ # SetMasterAuthRequest updates the admin password of a cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -07003987 &quot;zone&quot;: &quot;A String&quot;, # Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07003988 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
3989 # cluster resides. This field has been deprecated and replaced by the name
3990 # field.
Bu Sun Kim65020912020-05-20 12:08:20 -07003991 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster) of the cluster to set auth.
3992 # Specified in the format `projects/*/locations/*/clusters/*`.
3993 &quot;action&quot;: &quot;A String&quot;, # Required. The exact form of action to be taken on the master auth.
3994 &quot;projectId&quot;: &quot;A String&quot;, # Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003995 # number](https://support.google.com/cloud/answer/6158840).
3996 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07003997 &quot;clusterId&quot;: &quot;A String&quot;, # Deprecated. The name of the cluster to upgrade.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003998 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07003999 &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 -07004000 # Authentication can be done using HTTP basic auth or using client
4001 # certificates.
Bu Sun Kim65020912020-05-20 12:08:20 -07004002 &quot;clusterCaCertificate&quot;: &quot;A String&quot;, # [Output only] Base64-encoded public certificate that is the root of
4003 # trust for the cluster.
4004 &quot;clientCertificate&quot;: &quot;A String&quot;, # [Output only] Base64-encoded public certificate used by clients to
4005 # authenticate to the cluster endpoint.
4006 &quot;username&quot;: &quot;A String&quot;, # The username to use for HTTP basic authentication to the master endpoint.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004007 # For clusters v1.6.0 and later, basic authentication can be disabled by
4008 # leaving username unspecified (or setting it to the empty string).
Bu Sun Kim65020912020-05-20 12:08:20 -07004009 &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 -07004010 # Because the master endpoint is open to the Internet, you should create a
4011 # strong password. If a password is provided for cluster creation, username
4012 # must be non-empty.
Bu Sun Kim65020912020-05-20 12:08:20 -07004013 &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 -07004014 # clusters before v1.12, if no configuration is specified, a client
4015 # certificate is issued.
Bu Sun Kim65020912020-05-20 12:08:20 -07004016 &quot;issueClientCertificate&quot;: True or False, # Issue a client certificate.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004017 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004018 &quot;clientKey&quot;: &quot;A String&quot;, # [Output only] Base64-encoded private key used by clients to authenticate
4019 # to the cluster endpoint.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004020 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004021 }
4022
4023 x__xgafv: string, V1 error format.
4024 Allowed values
4025 1 - v1 error format
4026 2 - v2 error format
4027
4028Returns:
4029 An object of the form:
4030
4031 { # This operation resource represents operations that may have happened or are
4032 # happening on the cluster. All fields are output only.
Bu Sun Kim65020912020-05-20 12:08:20 -07004033 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
4034 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004035 { # StatusCondition describes why a cluster or a node pool has a certain status
4036 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07004037 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
4038 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004039 },
4040 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07004041 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
Dan O'Mearadd494642020-05-01 07:42:23 -07004042 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07004043 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07004044 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4045 # or
4046 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4047 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07004048 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
4049 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
4050 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
4051 &quot;stages&quot;: [ # Substages of an operation or a stage.
4052 # Object with schema name: OperationProgress
4053 ],
4054 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
4055 # Unset for single-stage operations.
4056 &quot;metrics&quot;: [ # Progress metric bundle, for example:
4057 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
4058 # {name: &quot;nodes total&quot;, int_value: 32}]
4059 # or
4060 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
4061 # {name: &quot;progress scale&quot;, double_value: 1.0}]
4062 { # Progress metric is (string, int|float|string) pair.
4063 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
4064 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
4065 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
4066 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
4067 },
4068 ],
4069 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
4070 # Unset for single-stage operations.
4071 },
4072 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
4073 { # StatusCondition describes why a cluster or a node pool has a certain status
4074 # (e.g., ERROR or DEGRADED).
4075 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
4076 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
4077 },
4078 ],
4079 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
4080 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4081 # operation is taking place. This field is deprecated, use location instead.
4082 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
4083 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
4084 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
4085 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
4086 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
4087 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004088 }</pre>
4089</div>
4090
4091<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07004092 <code class="details" id="setMonitoring">setMonitoring(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004093 <pre>Sets the monitoring service for a specific cluster.
4094
4095Args:
4096 name: string, The name (project, location, cluster) of the cluster to set monitoring.
Bu Sun Kim65020912020-05-20 12:08:20 -07004097Specified in the format `projects/*/locations/*/clusters/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07004098 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004099 The object takes the form of:
4100
4101{ # SetMonitoringServiceRequest sets the monitoring service of a cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -07004102 &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 -07004103 # Currently available options:
4104 #
Bu Sun Kim65020912020-05-20 12:08:20 -07004105 # * &quot;monitoring.googleapis.com/kubernetes&quot; - The Cloud Monitoring
Dan O'Mearadd494642020-05-01 07:42:23 -07004106 # service with a Kubernetes-native resource model
4107 # * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
4108 # longer available as of GKE 1.15).
4109 # * `none` - No metrics will be exported from the cluster.
4110 #
4111 # If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
4112 # used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
Bu Sun Kim65020912020-05-20 12:08:20 -07004113 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster) of the cluster to set monitoring.
4114 # Specified in the format `projects/*/locations/*/clusters/*`.
4115 &quot;projectId&quot;: &quot;A String&quot;, # Deprecated. The Google Developers Console [project ID or project
4116 # number](https://support.google.com/cloud/answer/6158840).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004117 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07004118 &quot;zone&quot;: &quot;A String&quot;, # Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07004119 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4120 # cluster resides. This field has been deprecated and replaced by the name
4121 # field.
Bu Sun Kim65020912020-05-20 12:08:20 -07004122 &quot;clusterId&quot;: &quot;A String&quot;, # Deprecated. The name of the cluster to upgrade.
4123 # This field has been deprecated and replaced by the name field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004124 }
4125
4126 x__xgafv: string, V1 error format.
4127 Allowed values
4128 1 - v1 error format
4129 2 - v2 error format
4130
4131Returns:
4132 An object of the form:
4133
4134 { # This operation resource represents operations that may have happened or are
4135 # happening on the cluster. All fields are output only.
Bu Sun Kim65020912020-05-20 12:08:20 -07004136 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
4137 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004138 { # StatusCondition describes why a cluster or a node pool has a certain status
4139 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07004140 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
4141 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004142 },
4143 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07004144 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
Dan O'Mearadd494642020-05-01 07:42:23 -07004145 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07004146 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07004147 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4148 # or
4149 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4150 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07004151 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
4152 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
4153 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
4154 &quot;stages&quot;: [ # Substages of an operation or a stage.
4155 # Object with schema name: OperationProgress
4156 ],
4157 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
4158 # Unset for single-stage operations.
4159 &quot;metrics&quot;: [ # Progress metric bundle, for example:
4160 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
4161 # {name: &quot;nodes total&quot;, int_value: 32}]
4162 # or
4163 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
4164 # {name: &quot;progress scale&quot;, double_value: 1.0}]
4165 { # Progress metric is (string, int|float|string) pair.
4166 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
4167 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
4168 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
4169 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
4170 },
4171 ],
4172 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
4173 # Unset for single-stage operations.
4174 },
4175 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
4176 { # StatusCondition describes why a cluster or a node pool has a certain status
4177 # (e.g., ERROR or DEGRADED).
4178 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
4179 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
4180 },
4181 ],
4182 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
4183 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4184 # operation is taking place. This field is deprecated, use location instead.
4185 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
4186 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
4187 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
4188 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
4189 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
4190 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004191 }</pre>
4192</div>
4193
4194<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07004195 <code class="details" id="setNetworkPolicy">setNetworkPolicy(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004196 <pre>Enables or disables Network Policy for a cluster.
4197
4198Args:
4199 name: string, The name (project, location, cluster id) of the cluster to set networking
Bu Sun Kim65020912020-05-20 12:08:20 -07004200policy. Specified in the format `projects/*/locations/*/clusters/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07004201 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004202 The object takes the form of:
4203
4204{ # SetNetworkPolicyRequest enables/disables network policy for a cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -07004205 &quot;projectId&quot;: &quot;A String&quot;, # Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004206 # number](https://developers.google.com/console/help/new/#projectnumber).
4207 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07004208 &quot;zone&quot;: &quot;A String&quot;, # Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07004209 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4210 # cluster resides. This field has been deprecated and replaced by the name
4211 # field.
Bu Sun Kim65020912020-05-20 12:08:20 -07004212 &quot;clusterId&quot;: &quot;A String&quot;, # Deprecated. The name of the cluster.
4213 # This field has been deprecated and replaced by the name field.
4214 &quot;networkPolicy&quot;: { # Configuration options for the NetworkPolicy feature. # Required. Configuration options for the NetworkPolicy feature.
4215 # https://kubernetes.io/docs/concepts/services-networking/networkpolicies/
4216 &quot;provider&quot;: &quot;A String&quot;, # The selected network policy provider.
4217 &quot;enabled&quot;: True or False, # Whether network policy is enabled on the cluster.
4218 },
4219 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster id) of the cluster to set networking
4220 # policy. Specified in the format `projects/*/locations/*/clusters/*`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004221 }
4222
4223 x__xgafv: string, V1 error format.
4224 Allowed values
4225 1 - v1 error format
4226 2 - v2 error format
4227
4228Returns:
4229 An object of the form:
4230
4231 { # This operation resource represents operations that may have happened or are
4232 # happening on the cluster. All fields are output only.
Bu Sun Kim65020912020-05-20 12:08:20 -07004233 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
4234 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004235 { # StatusCondition describes why a cluster or a node pool has a certain status
4236 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07004237 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
4238 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004239 },
4240 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07004241 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
Dan O'Mearadd494642020-05-01 07:42:23 -07004242 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07004243 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07004244 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4245 # or
4246 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4247 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07004248 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
4249 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
4250 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
4251 &quot;stages&quot;: [ # Substages of an operation or a stage.
4252 # Object with schema name: OperationProgress
4253 ],
4254 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
4255 # Unset for single-stage operations.
4256 &quot;metrics&quot;: [ # Progress metric bundle, for example:
4257 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
4258 # {name: &quot;nodes total&quot;, int_value: 32}]
4259 # or
4260 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
4261 # {name: &quot;progress scale&quot;, double_value: 1.0}]
4262 { # Progress metric is (string, int|float|string) pair.
4263 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
4264 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
4265 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
4266 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
4267 },
4268 ],
4269 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
4270 # Unset for single-stage operations.
4271 },
4272 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
4273 { # StatusCondition describes why a cluster or a node pool has a certain status
4274 # (e.g., ERROR or DEGRADED).
4275 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
4276 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
4277 },
4278 ],
4279 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
4280 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4281 # operation is taking place. This field is deprecated, use location instead.
4282 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
4283 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
4284 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
4285 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
4286 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
4287 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004288 }</pre>
4289</div>
4290
4291<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07004292 <code class="details" id="setResourceLabels">setResourceLabels(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004293 <pre>Sets labels on a cluster.
4294
4295Args:
4296 name: string, The name (project, location, cluster id) of the cluster to set labels.
Bu Sun Kim65020912020-05-20 12:08:20 -07004297Specified in the format `projects/*/locations/*/clusters/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07004298 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004299 The object takes the form of:
4300
4301{ # SetLabelsRequest sets the Google Cloud Platform labels on a Google Container
4302 # Engine cluster, which will in turn set them for Google Compute Engine
4303 # resources used by that cluster
Bu Sun Kim65020912020-05-20 12:08:20 -07004304 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster id) of the cluster to set labels.
4305 # Specified in the format `projects/*/locations/*/clusters/*`.
4306 &quot;resourceLabels&quot;: { # Required. The labels to set for that cluster.
4307 &quot;a_key&quot;: &quot;A String&quot;,
4308 },
4309 &quot;projectId&quot;: &quot;A String&quot;, # Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004310 # number](https://developers.google.com/console/help/new/#projectnumber).
4311 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07004312 &quot;clusterId&quot;: &quot;A String&quot;, # Deprecated. The name of the cluster.
4313 # This field has been deprecated and replaced by the name field.
4314 &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 -07004315 # used to detect conflicts. The fingerprint is initially generated by
4316 # Kubernetes Engine and changes after every request to modify or update
4317 # labels. You must always provide an up-to-date fingerprint hash when
Dan O'Mearadd494642020-05-01 07:42:23 -07004318 # updating or changing labels. Make a &lt;code&gt;get()&lt;/code&gt; request to the
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004319 # resource to get the latest fingerprint.
Bu Sun Kim65020912020-05-20 12:08:20 -07004320 &quot;zone&quot;: &quot;A String&quot;, # Deprecated. The name of the Google Compute Engine
4321 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4322 # cluster resides. This field has been deprecated and replaced by the name
4323 # field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004324 }
4325
4326 x__xgafv: string, V1 error format.
4327 Allowed values
4328 1 - v1 error format
4329 2 - v2 error format
4330
4331Returns:
4332 An object of the form:
4333
4334 { # This operation resource represents operations that may have happened or are
4335 # happening on the cluster. All fields are output only.
Bu Sun Kim65020912020-05-20 12:08:20 -07004336 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
4337 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004338 { # StatusCondition describes why a cluster or a node pool has a certain status
4339 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07004340 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
4341 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004342 },
4343 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07004344 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
Dan O'Mearadd494642020-05-01 07:42:23 -07004345 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07004346 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07004347 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4348 # or
4349 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4350 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07004351 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
4352 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
4353 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
4354 &quot;stages&quot;: [ # Substages of an operation or a stage.
4355 # Object with schema name: OperationProgress
4356 ],
4357 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
4358 # Unset for single-stage operations.
4359 &quot;metrics&quot;: [ # Progress metric bundle, for example:
4360 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
4361 # {name: &quot;nodes total&quot;, int_value: 32}]
4362 # or
4363 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
4364 # {name: &quot;progress scale&quot;, double_value: 1.0}]
4365 { # Progress metric is (string, int|float|string) pair.
4366 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
4367 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
4368 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
4369 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
4370 },
4371 ],
4372 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
4373 # Unset for single-stage operations.
4374 },
4375 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
4376 { # StatusCondition describes why a cluster or a node pool has a certain status
4377 # (e.g., ERROR or DEGRADED).
4378 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
4379 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
4380 },
4381 ],
4382 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
4383 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4384 # operation is taking place. This field is deprecated, use location instead.
4385 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
4386 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
4387 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
4388 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
4389 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
4390 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004391 }</pre>
4392</div>
4393
4394<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07004395 <code class="details" id="startIpRotation">startIpRotation(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004396 <pre>Starts master IP rotation.
4397
4398Args:
4399 name: string, The name (project, location, cluster id) of the cluster to start IP
Bu Sun Kim65020912020-05-20 12:08:20 -07004400rotation. Specified in the format `projects/*/locations/*/clusters/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07004401 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004402 The object takes the form of:
4403
4404{ # StartIPRotationRequest creates a new IP for the cluster and then performs
4405 # a node upgrade on each node pool to point to the new IP.
Bu Sun Kim65020912020-05-20 12:08:20 -07004406 &quot;projectId&quot;: &quot;A String&quot;, # Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004407 # number](https://developers.google.com/console/help/new/#projectnumber).
4408 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07004409 &quot;zone&quot;: &quot;A String&quot;, # Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07004410 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4411 # cluster resides. This field has been deprecated and replaced by the name
4412 # field.
Bu Sun Kim65020912020-05-20 12:08:20 -07004413 &quot;clusterId&quot;: &quot;A String&quot;, # Deprecated. The name of the cluster.
4414 # This field has been deprecated and replaced by the name field.
4415 &quot;rotateCredentials&quot;: True or False, # Whether to rotate credentials during IP rotation.
4416 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster id) of the cluster to start IP
4417 # rotation. Specified in the format `projects/*/locations/*/clusters/*`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004418 }
4419
4420 x__xgafv: string, V1 error format.
4421 Allowed values
4422 1 - v1 error format
4423 2 - v2 error format
4424
4425Returns:
4426 An object of the form:
4427
4428 { # This operation resource represents operations that may have happened or are
4429 # happening on the cluster. All fields are output only.
Bu Sun Kim65020912020-05-20 12:08:20 -07004430 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
4431 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004432 { # StatusCondition describes why a cluster or a node pool has a certain status
4433 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07004434 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
4435 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004436 },
4437 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07004438 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
Dan O'Mearadd494642020-05-01 07:42:23 -07004439 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07004440 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07004441 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4442 # or
4443 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4444 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07004445 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
4446 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
4447 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
4448 &quot;stages&quot;: [ # Substages of an operation or a stage.
4449 # Object with schema name: OperationProgress
4450 ],
4451 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
4452 # Unset for single-stage operations.
4453 &quot;metrics&quot;: [ # Progress metric bundle, for example:
4454 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
4455 # {name: &quot;nodes total&quot;, int_value: 32}]
4456 # or
4457 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
4458 # {name: &quot;progress scale&quot;, double_value: 1.0}]
4459 { # Progress metric is (string, int|float|string) pair.
4460 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
4461 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
4462 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
4463 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
4464 },
4465 ],
4466 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
4467 # Unset for single-stage operations.
4468 },
4469 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
4470 { # StatusCondition describes why a cluster or a node pool has a certain status
4471 # (e.g., ERROR or DEGRADED).
4472 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
4473 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
4474 },
4475 ],
4476 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
4477 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4478 # operation is taking place. This field is deprecated, use location instead.
4479 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
4480 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
4481 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
4482 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
4483 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
4484 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004485 }</pre>
4486</div>
4487
4488<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07004489 <code class="details" id="update">update(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004490 <pre>Updates the settings of a specific cluster.
4491
4492Args:
4493 name: string, The name (project, location, cluster) of the cluster to update.
Bu Sun Kim65020912020-05-20 12:08:20 -07004494Specified in the format `projects/*/locations/*/clusters/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07004495 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004496 The object takes the form of:
4497
4498{ # UpdateClusterRequest updates the settings of a cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -07004499 &quot;update&quot;: { # ClusterUpdate describes an update to the cluster. Exactly one update can # Required. A description of the update.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004500 # be applied to a cluster with each request, so at most one field can be
4501 # provided.
Bu Sun Kim65020912020-05-20 12:08:20 -07004502 &quot;desiredAddonsConfig&quot;: { # Configuration for the addons that can be automatically spun up in the # Configurations for the various addons available to run in the cluster.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004503 # cluster, enabling additional functionality.
Bu Sun Kim65020912020-05-20 12:08:20 -07004504 &quot;networkPolicyConfig&quot;: { # Configuration for NetworkPolicy. This only tracks whether the addon # Configuration for NetworkPolicy. This only tracks whether the addon
4505 # is enabled or not on the Master, it does not track whether network policy
4506 # is enabled for the nodes.
4507 # is enabled or not on the Master, it does not track whether network policy
4508 # is enabled for the nodes.
4509 &quot;disabled&quot;: True or False, # Whether NetworkPolicy is enabled for this cluster.
4510 },
4511 &quot;cloudRunConfig&quot;: { # Configuration options for the Cloud Run feature. # Configuration for the Cloud Run addon, which allows the user to use a
4512 # managed Knative service.
4513 &quot;disabled&quot;: True or False, # Whether Cloud Run addon is enabled for this cluster.
4514 },
4515 &quot;horizontalPodAutoscaling&quot;: { # Configuration options for the horizontal pod autoscaling feature, which # Configuration for the horizontal pod autoscaling feature, which
4516 # increases or decreases the number of replica pods a replication controller
4517 # has based on the resource usage of the existing pods.
4518 # increases or decreases the number of replica pods a replication controller
4519 # has based on the resource usage of the existing pods.
4520 &quot;disabled&quot;: True or False, # Whether the Horizontal Pod Autoscaling feature is enabled in the cluster.
4521 # When enabled, it ensures that metrics are collected into Stackdriver
4522 # Monitoring.
4523 },
4524 &quot;httpLoadBalancing&quot;: { # Configuration options for the HTTP (L7) load balancing controller addon, # Configuration for the HTTP (L7) load balancing controller addon, which
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004525 # makes it easy to set up HTTP load balancers for services in a cluster.
4526 # which makes it easy to set up HTTP load balancers for services in a cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -07004527 &quot;disabled&quot;: True or False, # Whether the HTTP Load Balancing controller is enabled in the cluster.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004528 # When enabled, it runs a small pod in the cluster that manages the load
4529 # balancers.
4530 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004531 &quot;kubernetesDashboard&quot;: { # Configuration for the Kubernetes Dashboard. # Configuration for the Kubernetes Dashboard.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004532 # This addon is deprecated, and will be disabled in 1.15. It is recommended
4533 # to use the Cloud Console to manage and monitor your Kubernetes clusters,
4534 # workloads and applications. For more information, see:
4535 # https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
Bu Sun Kim65020912020-05-20 12:08:20 -07004536 &quot;disabled&quot;: True or False, # Whether the Kubernetes Dashboard is enabled for this cluster.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004537 },
4538 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004539 &quot;desiredNodeVersion&quot;: &quot;A String&quot;, # The Kubernetes version to change the nodes to (typically an
4540 # upgrade).
4541 #
4542 # Users may specify either explicit versions offered by
4543 # Kubernetes Engine or version aliases, which have the following behavior:
4544 #
4545 # - &quot;latest&quot;: picks the highest valid Kubernetes version
4546 # - &quot;1.X&quot;: picks the highest valid patch+gke.N patch in the 1.X version
4547 # - &quot;1.X.Y&quot;: picks the highest valid gke.N patch in the 1.X.Y version
4548 # - &quot;1.X.Y-gke.N&quot;: picks an explicit Kubernetes version
4549 # - &quot;-&quot;: picks the Kubernetes master version
4550 &quot;desiredIntraNodeVisibilityConfig&quot;: { # IntraNodeVisibilityConfig contains the desired config of the intra-node # The desired config of Intra-node visibility.
4551 # visibility on this cluster.
4552 &quot;enabled&quot;: True or False, # Enables intra node visibility for this cluster.
4553 },
4554 &quot;desiredClusterAutoscaling&quot;: { # ClusterAutoscaling contains global, per-cluster information # Cluster-level autoscaling configuration.
Dan O'Mearadd494642020-05-01 07:42:23 -07004555 # required by Cluster Autoscaler to automatically adjust
4556 # the size of the cluster and create/delete
4557 # node pools based on the current needs.
Bu Sun Kim65020912020-05-20 12:08:20 -07004558 &quot;autoprovisioningLocations&quot;: [ # The list of Google Compute Engine
4559 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
4560 # NodePool&#x27;s nodes can be created by NAP.
4561 &quot;A String&quot;,
4562 ],
4563 &quot;resourceLimits&quot;: [ # Contains global constraints regarding minimum and maximum
4564 # amount of resources in the cluster.
4565 { # Contains information about amount of some resource in the cluster.
4566 # For memory, value should be in GB.
4567 &quot;maximum&quot;: &quot;A String&quot;, # Maximum amount of the resource in the cluster.
4568 &quot;resourceType&quot;: &quot;A String&quot;, # Resource name &quot;cpu&quot;, &quot;memory&quot; or gpu-specific string.
4569 &quot;minimum&quot;: &quot;A String&quot;, # Minimum amount of the resource in the cluster.
4570 },
4571 ],
4572 &quot;enableNodeAutoprovisioning&quot;: True or False, # Enables automatic node pool creation and deletion.
4573 &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 -07004574 # created by NAP.
4575 # by NAP.
Bu Sun Kim65020912020-05-20 12:08:20 -07004576 &quot;oauthScopes&quot;: [ # Scopes that are used by NAP when creating node pools. If oauth_scopes are
4577 # specified, service_account should be empty.
4578 &quot;A String&quot;,
4579 ],
4580 &quot;management&quot;: { # NodeManagement defines the set of node management services turned on for the # Specifies the node management options for NAP created node-pools.
Dan O'Mearadd494642020-05-01 07:42:23 -07004581 # node pool.
Bu Sun Kim65020912020-05-20 12:08:20 -07004582 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool.
Dan O'Mearadd494642020-05-01 07:42:23 -07004583 # the Auto Upgrades will proceed.
Bu Sun Kim65020912020-05-20 12:08:20 -07004584 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
Dan O'Mearadd494642020-05-01 07:42:23 -07004585 # with the description of the upgrade.
Bu Sun Kim65020912020-05-20 12:08:20 -07004586 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
Dan O'Mearadd494642020-05-01 07:42:23 -07004587 # with the approximate start time for the upgrades, in
4588 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
4589 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004590 &quot;autoUpgrade&quot;: True or False, # A flag that specifies whether node auto-upgrade is enabled for the node
Dan O'Mearadd494642020-05-01 07:42:23 -07004591 # pool. If enabled, node auto-upgrade helps keep the nodes in your node pool
4592 # up to date with the latest release version of Kubernetes.
Bu Sun Kim65020912020-05-20 12:08:20 -07004593 &quot;autoRepair&quot;: True or False, # A flag that specifies whether the node auto-repair is enabled for the node
4594 # pool. If enabled, the nodes in this node pool will be monitored and, if
4595 # they fail health checks too many times, an automatic repair action will be
4596 # triggered.
Dan O'Mearadd494642020-05-01 07:42:23 -07004597 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004598 &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 -07004599 # disruption caused by an upgrade.
4600 #
4601 # maxUnavailable controls the number of nodes that can be simultaneously
4602 # unavailable.
4603 #
4604 # maxSurge controls the number of additional nodes that can be added to the
4605 # node pool temporarily for the time of the upgrade to increase the number of
4606 # available nodes.
4607 #
4608 # (maxUnavailable + maxSurge) determines the level of parallelism (how many
4609 # nodes are being upgraded at the same time).
4610 #
4611 # Note: upgrades inevitably introduce some disruption since workloads need to
4612 # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
4613 # this holds true. (Disruption stays within the limits of
4614 # PodDisruptionBudget, if it is configured.)
4615 #
4616 # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
4617 # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
4618 # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
4619 # down 3 old (not yet upgraded) nodes at the same time. This ensures that
4620 # there are always at least 4 nodes available.
Bu Sun Kim65020912020-05-20 12:08:20 -07004621 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during
Dan O'Mearadd494642020-05-01 07:42:23 -07004622 # the upgrade process. A node is considered available if its status is
4623 # Ready.
Bu Sun Kim65020912020-05-20 12:08:20 -07004624 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size
4625 # of the node pool during the upgrade process.
Dan O'Mearadd494642020-05-01 07:42:23 -07004626 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004627 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs. If
4628 # service_account is specified, scopes should be empty.
Dan O'Mearadd494642020-05-01 07:42:23 -07004629 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004630 },
4631 &quot;desiredDatabaseEncryption&quot;: { # Configuration of etcd encryption. # Configuration of etcd encryption.
4632 &quot;keyName&quot;: &quot;A String&quot;, # Name of CloudKMS key to use for the encryption of secrets in etcd.
4633 # Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key
4634 &quot;state&quot;: &quot;A String&quot;, # Denotes the state of etcd encryption.
4635 },
4636 &quot;desiredMasterAuthorizedNetworksConfig&quot;: { # Configuration options for the master authorized networks feature. Enabled # The desired configuration options for master authorized networks feature.
4637 # master authorized networks will disallow all external traffic to access
4638 # Kubernetes master through HTTPS except traffic from the given CIDR blocks,
4639 # Google Compute Engine Public IPs and Google Prod IPs.
4640 &quot;enabled&quot;: True or False, # Whether or not master authorized networks is enabled.
4641 &quot;cidrBlocks&quot;: [ # cidr_blocks define up to 50 external networks that could access
4642 # Kubernetes master through HTTPS.
4643 { # CidrBlock contains an optional name and one CIDR block.
4644 &quot;displayName&quot;: &quot;A String&quot;, # display_name is an optional field for users to identify CIDR blocks.
4645 &quot;cidrBlock&quot;: &quot;A String&quot;, # cidr_block must be specified in CIDR notation.
Dan O'Mearadd494642020-05-01 07:42:23 -07004646 },
4647 ],
Dan O'Mearadd494642020-05-01 07:42:23 -07004648 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004649 &quot;desiredResourceUsageExportConfig&quot;: { # Configuration for exporting cluster resource usages. # The desired configuration for exporting resource usage.
4650 &quot;enableNetworkEgressMetering&quot;: True or False, # Whether to enable network egress metering for this cluster. If enabled, a
4651 # daemonset will be created in the cluster to meter network egress traffic.
4652 &quot;consumptionMeteringConfig&quot;: { # Parameters for controlling consumption metering. # Configuration to enable resource consumption metering.
4653 &quot;enabled&quot;: True or False, # Whether to enable consumption metering for this cluster. If enabled, a
4654 # second BigQuery table will be created to hold resource consumption
4655 # records.
4656 },
4657 &quot;bigqueryDestination&quot;: { # Parameters for using BigQuery as the destination of resource usage export. # Configuration to use BigQuery as usage export destination.
4658 &quot;datasetId&quot;: &quot;A String&quot;, # The ID of a BigQuery Dataset.
4659 },
Dan O'Mearadd494642020-05-01 07:42:23 -07004660 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004661 &quot;desiredNodePoolAutoscaling&quot;: { # NodePoolAutoscaling contains information required by cluster autoscaler to # Autoscaler configuration for the node pool specified in
4662 # desired_node_pool_id. If there is only one pool in the
4663 # cluster and desired_node_pool_id is not provided then
4664 # the change applies to that single node pool.
4665 # adjust the size of the node pool to the current cluster usage.
4666 &quot;enabled&quot;: True or False, # Is autoscaling enabled for this node pool.
4667 &quot;maxNodeCount&quot;: 42, # Maximum number of nodes in the NodePool. Must be &gt;= min_node_count. There
4668 # has to enough quota to scale up the cluster.
4669 &quot;minNodeCount&quot;: 42, # Minimum number of nodes in the NodePool. Must be &gt;= 1 and &lt;=
4670 # max_node_count.
4671 &quot;autoprovisioned&quot;: True or False, # Can this node pool be deleted automatically.
4672 },
4673 &quot;desiredLocations&quot;: [ # The desired list of Google Compute Engine
4674 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
4675 # cluster&#x27;s nodes should be located. Changing the locations a cluster is in
4676 # will result in nodes being either created or removed from the cluster,
4677 # depending on whether locations are being added or removed.
4678 #
4679 # This list must always include the cluster&#x27;s primary zone.
4680 &quot;A String&quot;,
4681 ],
4682 &quot;desiredMonitoringService&quot;: &quot;A String&quot;, # The monitoring service the cluster should use to write metrics.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004683 # Currently available options:
4684 #
Bu Sun Kim65020912020-05-20 12:08:20 -07004685 # * &quot;monitoring.googleapis.com/kubernetes&quot; - The Cloud Monitoring
Dan O'Mearadd494642020-05-01 07:42:23 -07004686 # service with a Kubernetes-native resource model
4687 # * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
4688 # longer available as of GKE 1.15).
4689 # * `none` - No metrics will be exported from the cluster.
4690 #
4691 # If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
4692 # used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
Bu Sun Kim65020912020-05-20 12:08:20 -07004693 &quot;desiredImageType&quot;: &quot;A String&quot;, # The desired image type for the node pool.
4694 # NOTE: Set the &quot;desired_node_pool&quot; field as well.
4695 &quot;desiredWorkloadIdentityConfig&quot;: { # Configuration for the use of Kubernetes Service Accounts in GCP IAM # Configuration for Workload Identity.
Dan O'Mearadd494642020-05-01 07:42:23 -07004696 # policies.
Bu Sun Kim65020912020-05-20 12:08:20 -07004697 &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 -07004698 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004699 &quot;desiredNodePoolId&quot;: &quot;A String&quot;, # The node pool to be upgraded. This field is mandatory if
4700 # &quot;desired_node_version&quot;, &quot;desired_image_family&quot; or
4701 # &quot;desired_node_pool_autoscaling&quot; is specified and there is more than one
4702 # node pool on the cluster.
4703 &quot;desiredShieldedNodes&quot;: { # Configuration of Shielded Nodes feature. # Configuration for Shielded Nodes.
4704 &quot;enabled&quot;: True or False, # Whether Shielded Nodes features are enabled on all nodes in this cluster.
Dan O'Mearadd494642020-05-01 07:42:23 -07004705 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004706 &quot;desiredMasterVersion&quot;: &quot;A String&quot;, # The Kubernetes version to change the master to.
4707 #
4708 # Users may specify either explicit versions offered by
4709 # Kubernetes Engine or version aliases, which have the following behavior:
4710 #
4711 # - &quot;latest&quot;: picks the highest valid Kubernetes version
4712 # - &quot;1.X&quot;: picks the highest valid patch+gke.N patch in the 1.X version
4713 # - &quot;1.X.Y&quot;: picks the highest valid gke.N patch in the 1.X.Y version
4714 # - &quot;1.X.Y-gke.N&quot;: picks an explicit Kubernetes version
4715 # - &quot;-&quot;: picks the default Kubernetes version
4716 &quot;desiredLoggingService&quot;: &quot;A String&quot;, # The logging service the cluster should use to write logs.
4717 # Currently available options:
4718 #
4719 # * `logging.googleapis.com/kubernetes` - The Cloud Logging
4720 # service with a Kubernetes-native resource model
4721 # * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
4722 # available as of GKE 1.15).
4723 # * `none` - no logs will be exported from the cluster.
4724 #
4725 # If left as an empty string,`logging.googleapis.com/kubernetes` will be
4726 # used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
4727 &quot;desiredVerticalPodAutoscaling&quot;: { # VerticalPodAutoscaling contains global, per-cluster information # Cluster-level Vertical Pod Autoscaling configuration.
4728 # required by Vertical Pod Autoscaler to automatically adjust
4729 # the resources of pods controlled by it.
4730 &quot;enabled&quot;: True or False, # Enables vertical pod autoscaling.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004731 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004732 &quot;desiredBinaryAuthorization&quot;: { # Configuration for Binary Authorization. # The desired configuration options for the Binary Authorization feature.
4733 &quot;enabled&quot;: True or False, # Enable Binary Authorization for this cluster. If enabled, all container
4734 # images will be validated by Binary Authorization.
Dan O'Mearadd494642020-05-01 07:42:23 -07004735 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004736 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004737 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster) of the cluster to update.
4738 # Specified in the format `projects/*/locations/*/clusters/*`.
4739 &quot;projectId&quot;: &quot;A String&quot;, # Deprecated. The Google Developers Console [project ID or project
4740 # number](https://support.google.com/cloud/answer/6158840).
4741 # This field has been deprecated and replaced by the name field.
4742 &quot;zone&quot;: &quot;A String&quot;, # Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07004743 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4744 # cluster resides. This field has been deprecated and replaced by the name
4745 # field.
Bu Sun Kim65020912020-05-20 12:08:20 -07004746 &quot;clusterId&quot;: &quot;A String&quot;, # Deprecated. The name of the cluster to upgrade.
4747 # This field has been deprecated and replaced by the name field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004748 }
4749
4750 x__xgafv: string, V1 error format.
4751 Allowed values
4752 1 - v1 error format
4753 2 - v2 error format
4754
4755Returns:
4756 An object of the form:
4757
4758 { # This operation resource represents operations that may have happened or are
4759 # happening on the cluster. All fields are output only.
Bu Sun Kim65020912020-05-20 12:08:20 -07004760 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
4761 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004762 { # StatusCondition describes why a cluster or a node pool has a certain status
4763 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07004764 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
4765 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004766 },
4767 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07004768 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
Dan O'Mearadd494642020-05-01 07:42:23 -07004769 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07004770 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07004771 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4772 # or
4773 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4774 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07004775 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
4776 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
4777 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
4778 &quot;stages&quot;: [ # Substages of an operation or a stage.
4779 # Object with schema name: OperationProgress
4780 ],
4781 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
4782 # Unset for single-stage operations.
4783 &quot;metrics&quot;: [ # Progress metric bundle, for example:
4784 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
4785 # {name: &quot;nodes total&quot;, int_value: 32}]
4786 # or
4787 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
4788 # {name: &quot;progress scale&quot;, double_value: 1.0}]
4789 { # Progress metric is (string, int|float|string) pair.
4790 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
4791 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
4792 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
4793 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
4794 },
4795 ],
4796 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
4797 # Unset for single-stage operations.
4798 },
4799 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
4800 { # StatusCondition describes why a cluster or a node pool has a certain status
4801 # (e.g., ERROR or DEGRADED).
4802 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
4803 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
4804 },
4805 ],
4806 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
4807 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4808 # operation is taking place. This field is deprecated, use location instead.
4809 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
4810 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
4811 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
4812 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
4813 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
4814 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004815 }</pre>
4816</div>
4817
4818<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07004819 <code class="details" id="updateMaster">updateMaster(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004820 <pre>Updates the master for a specific cluster.
4821
4822Args:
4823 name: string, The name (project, location, cluster) of the cluster to update.
Bu Sun Kim65020912020-05-20 12:08:20 -07004824Specified in the format `projects/*/locations/*/clusters/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07004825 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004826 The object takes the form of:
4827
4828{ # UpdateMasterRequest updates the master of the cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -07004829 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster) of the cluster to update.
4830 # Specified in the format `projects/*/locations/*/clusters/*`.
4831 &quot;projectId&quot;: &quot;A String&quot;, # Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004832 # number](https://support.google.com/cloud/answer/6158840).
4833 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07004834 &quot;zone&quot;: &quot;A String&quot;, # Deprecated. The name of the Google Compute Engine
4835 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4836 # cluster resides. This field has been deprecated and replaced by the name
4837 # field.
4838 &quot;masterVersion&quot;: &quot;A String&quot;, # Required. The Kubernetes version to change the master to.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004839 #
4840 # Users may specify either explicit versions offered by Kubernetes Engine or
4841 # version aliases, which have the following behavior:
4842 #
Bu Sun Kim65020912020-05-20 12:08:20 -07004843 # - &quot;latest&quot;: picks the highest valid Kubernetes version
4844 # - &quot;1.X&quot;: picks the highest valid patch+gke.N patch in the 1.X version
4845 # - &quot;1.X.Y&quot;: picks the highest valid gke.N patch in the 1.X.Y version
4846 # - &quot;1.X.Y-gke.N&quot;: picks an explicit Kubernetes version
4847 # - &quot;-&quot;: picks the default Kubernetes version
4848 &quot;clusterId&quot;: &quot;A String&quot;, # Deprecated. The name of the cluster to upgrade.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004849 # This field has been deprecated and replaced by the name field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004850 }
4851
4852 x__xgafv: string, V1 error format.
4853 Allowed values
4854 1 - v1 error format
4855 2 - v2 error format
4856
4857Returns:
4858 An object of the form:
4859
4860 { # This operation resource represents operations that may have happened or are
4861 # happening on the cluster. All fields are output only.
Bu Sun Kim65020912020-05-20 12:08:20 -07004862 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
4863 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004864 { # StatusCondition describes why a cluster or a node pool has a certain status
4865 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07004866 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
4867 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004868 },
4869 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07004870 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
Dan O'Mearadd494642020-05-01 07:42:23 -07004871 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07004872 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07004873 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4874 # or
4875 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4876 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07004877 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
4878 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
4879 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
4880 &quot;stages&quot;: [ # Substages of an operation or a stage.
4881 # Object with schema name: OperationProgress
4882 ],
4883 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
4884 # Unset for single-stage operations.
4885 &quot;metrics&quot;: [ # Progress metric bundle, for example:
4886 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
4887 # {name: &quot;nodes total&quot;, int_value: 32}]
4888 # or
4889 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
4890 # {name: &quot;progress scale&quot;, double_value: 1.0}]
4891 { # Progress metric is (string, int|float|string) pair.
4892 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
4893 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
4894 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
4895 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
4896 },
4897 ],
4898 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
4899 # Unset for single-stage operations.
4900 },
4901 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
4902 { # StatusCondition describes why a cluster or a node pool has a certain status
4903 # (e.g., ERROR or DEGRADED).
4904 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
4905 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
4906 },
4907 ],
4908 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
4909 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4910 # operation is taking place. This field is deprecated, use location instead.
4911 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
4912 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
4913 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
4914 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
4915 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
4916 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004917 }</pre>
4918</div>
4919
4920</body></html>