blob: 4be397e388a82bf09a4ca434094096757e517de3 [file] [log] [blame]
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
75<h1><a href="container_v1beta1.html">Kubernetes Engine API</a> . <a href="container_v1beta1.projects.html">projects</a> . <a href="container_v1beta1.projects.locations.html">locations</a> . <a href="container_v1beta1.projects.locations.clusters.html">clusters</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="container_v1beta1.projects.locations.clusters.nodePools.html">nodePools()</a></code>
79</p>
80<p class="firstline">Returns the nodePools Resource.</p>
81
82<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070083 <code><a href="container_v1beta1.projects.locations.clusters.well_known.html">well_known()</a></code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070084</p>
Dan O'Mearadd494642020-05-01 07:42:23 -070085<p class="firstline">Returns the well_known Resource.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070086
87<p class="toc_element">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070088 <code><a href="#close">close()</a></code></p>
89<p class="firstline">Close httplib2 connections.</p>
90<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070091 <code><a href="#completeIpRotation">completeIpRotation(name, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070092<p class="firstline">Completes master IP rotation.</p>
93<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070094 <code><a href="#create">create(parent, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070095<p class="firstline">Creates a cluster, consisting of the specified number and type of Google Compute Engine instances. By default, the cluster is created in the project's [default network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks). One firewall is added for the cluster. After cluster creation, the Kubelet creates routes for each node to allow the containers on that node to communicate with all other instances in the cluster. Finally, an entry is added to the project's global metadata indicating which CIDR range the cluster is using.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070096<p class="toc_element">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070097 <code><a href="#delete">delete(name, clusterId=None, zone=None, projectId=None, x__xgafv=None)</a></code></p>
98<p class="firstline">Deletes the cluster, including the Kubernetes endpoint and all worker nodes. Firewalls and routes that were configured during cluster creation are also deleted. Other Google Compute Engine resources that might be in use by the cluster, such as load balancer resources, are not deleted if they weren't present when the cluster was initially created.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070099<p class="toc_element">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700100 <code><a href="#get">get(name, zone=None, projectId=None, clusterId=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700101<p class="firstline">Gets the details for a specific cluster.</p>
102<p class="toc_element">
103 <code><a href="#getJwks">getJwks(parent, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700104<p class="firstline">Gets the public component of the cluster signing keys in JSON Web Key format. This API is not yet intended for general use, and is not available for all clusters.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700105<p class="toc_element">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700106 <code><a href="#list">list(parent, projectId=None, zone=None, x__xgafv=None)</a></code></p>
107<p class="firstline">Lists all clusters owned by a project in either the specified zone or all zones.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700108<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700109 <code><a href="#setAddons">setAddons(name, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700110<p class="firstline">Sets the addons for a specific cluster.</p>
111<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700112 <code><a href="#setLegacyAbac">setLegacyAbac(name, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700113<p class="firstline">Enables or disables the ABAC authorization mechanism on a cluster.</p>
114<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700115 <code><a href="#setLocations">setLocations(name, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700116<p class="firstline">Sets the locations for a specific cluster. Deprecated. Use [projects.locations.clusters.update](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1beta1/projects.locations.clusters/update) instead.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700117<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700118 <code><a href="#setLogging">setLogging(name, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700119<p class="firstline">Sets the logging service for a specific cluster.</p>
120<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700121 <code><a href="#setMaintenancePolicy">setMaintenancePolicy(name, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700122<p class="firstline">Sets the maintenance policy for a cluster.</p>
123<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700124 <code><a href="#setMasterAuth">setMasterAuth(name, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700125<p class="firstline">Sets master auth materials. Currently supports changing the admin password or a specific cluster, either via password generation or explicitly setting the password.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700126<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700127 <code><a href="#setMonitoring">setMonitoring(name, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700128<p class="firstline">Sets the monitoring service for a specific cluster.</p>
129<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700130 <code><a href="#setNetworkPolicy">setNetworkPolicy(name, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700131<p class="firstline">Enables or disables Network Policy for a cluster.</p>
132<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700133 <code><a href="#setResourceLabels">setResourceLabels(name, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700134<p class="firstline">Sets labels on a cluster.</p>
135<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700136 <code><a href="#startIpRotation">startIpRotation(name, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700137<p class="firstline">Starts master IP rotation.</p>
138<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700139 <code><a href="#update">update(name, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700140<p class="firstline">Updates the settings for a specific cluster.</p>
141<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700142 <code><a href="#updateMaster">updateMaster(name, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700143<p class="firstline">Updates the master for a specific cluster.</p>
144<h3>Method Details</h3>
145<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700146 <code class="details" id="close">close()</code>
147 <pre>Close httplib2 connections.</pre>
148</div>
149
150<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700151 <code class="details" id="completeIpRotation">completeIpRotation(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700152 <pre>Completes master IP rotation.
153
154Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700155 name: string, The name (project, location, cluster id) of the cluster to complete IP rotation. Specified in the format `projects/*/locations/*/clusters/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700156 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700157 The object takes the form of:
158
159{ # CompleteIPRotationRequest moves the cluster master back into single-IP mode.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700160 &quot;clusterId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the cluster. This field has been deprecated and replaced by the name field.
161 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster id) of the cluster to complete IP rotation. Specified in the format `projects/*/locations/*/clusters/*`.
162 &quot;zone&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field.
163 &quot;projectId&quot;: &quot;A String&quot;, # Required. Deprecated. The Google Developers Console [project ID or project number](https://developers.google.com/console/help/new/#projectnumber). 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
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700174 { # This operation resource represents operations that may have happened or are happening on the cluster. All fields are output only.
175 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
176 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700177 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700178 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
179 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state. Deprecated. Use field error instead.
180 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
181 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
182 &quot;canonicalCode&quot;: &quot;A String&quot;, # Canonical code of the condition.
183 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition Deprecated. Use canonical_code instead.
184 },
185 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700186 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700187 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage. Unset for single-stage operations.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700188 &quot;stages&quot;: [ # Substages of an operation or a stage.
189 # Object with schema name: OperationProgress
190 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700191 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage. Unset for single-stage operations.
192 &quot;metrics&quot;: [ # Progress metric bundle, for example: metrics: [{name: &quot;nodes done&quot;, int_value: 15}, {name: &quot;nodes total&quot;, int_value: 32}] or metrics: [{name: &quot;progress&quot;, double_value: 0.56}, {name: &quot;progress scale&quot;, double_value: 1.0}]
Bu Sun Kim65020912020-05-20 12:08:20 -0700193 { # Progress metric is (string, int|float|string) pair.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700194 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
195 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700196 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
197 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
Bu Sun Kim65020912020-05-20 12:08:20 -0700198 },
199 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700200 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700201 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the operation is taking place. This field is deprecated, use location instead.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700202 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700203 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state. Deprecated. Use field error instead.
204 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700205 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700206 &quot;canonicalCode&quot;: &quot;A String&quot;, # Canonical code of the condition.
207 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition Deprecated. Use canonical_code instead.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700208 },
209 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700210 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error. Deprecated. Use field error instead.
211 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) or [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) in which the cluster resides.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700212 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700213 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
214 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
215 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure.
216 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
217 {
218 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
219 },
220 ],
221 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
222 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
223 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700224 }</pre>
225</div>
226
227<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700228 <code class="details" id="create">create(parent, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700229 <pre>Creates a cluster, consisting of the specified number and type of Google Compute Engine instances. By default, the cluster is created in the project&#x27;s [default network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks). One firewall is added for the cluster. After cluster creation, the Kubelet creates routes for each node to allow the containers on that node to communicate with all other instances in the cluster. Finally, an entry is added to the project&#x27;s global metadata indicating which CIDR range the cluster is using.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700230
231Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700232 parent: string, The parent (project and location) where the cluster will be created. Specified in the format `projects/*/locations/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700233 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700234 The object takes the form of:
235
236{ # CreateClusterRequest creates a cluster.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700237 &quot;projectId&quot;: &quot;A String&quot;, # Required. Deprecated. The Google Developers Console [project ID or project number](https://support.google.com/cloud/answer/6158840). This field has been deprecated and replaced by the parent field.
238 &quot;zone&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the parent field.
239 &quot;cluster&quot;: { # A Google Kubernetes Engine cluster. # Required. A [cluster resource](https://cloud.google.com/container-engine/reference/rest/v1beta1/projects.locations.clusters)
240 &quot;confidentialNodes&quot;: { # ConfidentialNodes is configuration for the confidential nodes feature, which makes nodes run on confidential VMs. # Configuration of Confidential Nodes
241 &quot;enabled&quot;: True or False, # Whether Confidential Nodes feature is enabled for all nodes in this cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -0700242 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700243 &quot;maintenancePolicy&quot;: { # MaintenancePolicy defines the maintenance policy to be used for the cluster. # Configure the maintenance policy for this cluster.
244 &quot;window&quot;: { # MaintenanceWindow defines the maintenance window to be used for the cluster. # Specifies the maintenance window in which maintenance may be performed.
245 &quot;recurringWindow&quot;: { # Represents an arbitrary window of time that recurs. # RecurringWindow specifies some number of recurring time periods for maintenance to occur. The time windows may be overlapping. If no maintenance windows are set, maintenance can occur at any time.
246 &quot;recurrence&quot;: &quot;A String&quot;, # An RRULE (https://tools.ietf.org/html/rfc5545#section-3.8.5.3) for how this window reccurs. They go on for the span of time between the start and end time. For example, to have something repeat every weekday, you&#x27;d use: `FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR` To repeat some window daily (equivalent to the DailyMaintenanceWindow): `FREQ=DAILY` For the first weekend of every month: `FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU` This specifies how frequently the window starts. Eg, if you wanted to have a 9-5 UTC-4 window every weekday, you&#x27;d use something like: ``` start time = 2019-01-01T09:00:00-0400 end time = 2019-01-01T17:00:00-0400 recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR ``` Windows can span multiple days. Eg, to make the window encompass every weekend from midnight Saturday till the last minute of Sunday UTC: ``` start time = 2019-01-05T00:00:00Z end time = 2019-01-07T23:59:00Z recurrence = FREQ=WEEKLY;BYDAY=SA ``` Note the start and end time&#x27;s specific dates are largely arbitrary except to specify duration of the window and when it first starts. The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.
247 &quot;window&quot;: { # Represents an arbitrary window of time. # The window of the first recurrence.
248 &quot;startTime&quot;: &quot;A String&quot;, # The time that the window first starts.
249 &quot;endTime&quot;: &quot;A String&quot;, # The time that the window ends. The end time should take place after the start time.
250 },
251 },
252 &quot;dailyMaintenanceWindow&quot;: { # Time window specified for daily maintenance operations. # DailyMaintenanceWindow specifies a daily maintenance operation window.
253 &quot;startTime&quot;: &quot;A String&quot;, # Time within the maintenance window to start the maintenance operations. It must be in format &quot;HH:MM&quot;, where HH : [00-23] and MM : [00-59] GMT.
254 &quot;duration&quot;: &quot;A String&quot;, # [Output only] Duration of the time window, automatically chosen to be smallest possible in the given scenario.
255 },
256 &quot;maintenanceExclusions&quot;: { # Exceptions to maintenance window. Non-emergency maintenance should not occur in these windows.
257 &quot;a_key&quot;: { # Represents an arbitrary window of time.
258 &quot;startTime&quot;: &quot;A String&quot;, # The time that the window first starts.
259 &quot;endTime&quot;: &quot;A String&quot;, # The time that the window ends. The end time should take place after the start time.
260 },
261 },
262 },
263 &quot;resourceVersion&quot;: &quot;A String&quot;, # A hash identifying the version of this policy, so that updates to fields of the policy won&#x27;t accidentally undo intermediate changes (and so that users of the API unaware of some fields won&#x27;t accidentally remove other fields). Make a `get()` request to the cluster to get the current resource version and include it with requests to set the policy.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700264 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700265 &quot;subnetwork&quot;: &quot;A String&quot;, # The name of the Google Compute Engine [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which the cluster is connected. On output this shows the subnetwork ID instead of the name.
266 &quot;networkPolicy&quot;: { # Configuration options for the NetworkPolicy feature. https://kubernetes.io/docs/concepts/services-networking/networkpolicies/ # Configuration options for the NetworkPolicy feature.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700267 &quot;provider&quot;: &quot;A String&quot;, # The selected network policy provider.
268 &quot;enabled&quot;: True or False, # Whether network policy is enabled on the cluster.
269 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700270 &quot;enableKubernetesAlpha&quot;: True or False, # Kubernetes alpha features are enabled on this cluster. This includes alpha API groups (e.g. v1beta1) and features that may not be production ready in the kubernetes version of the master and nodes. The cluster has no SLA for uptime and master/node upgrades are disabled. Alpha enabled clusters are automatically deleted thirty days after creation.
271 &quot;currentNodeCount&quot;: 42, # [Output only] The number of nodes currently in the cluster. Deprecated. Call Kubernetes API directly to retrieve node information.
272 &quot;expireTime&quot;: &quot;A String&quot;, # [Output only] The time the cluster will be automatically deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
273 &quot;selfLink&quot;: &quot;A String&quot;, # [Output only] Server-defined URL for the resource.
274 &quot;nodeConfig&quot;: { # Parameters that describe the nodes in a cluster. # Parameters used in creating the cluster&#x27;s nodes. For requests, this field should only be used in lieu of a &quot;node_pool&quot; object, since this configuration (along with the &quot;initial_node_count&quot;) will be used to create a &quot;NodePool&quot; object with an auto-generated name. Do not use this and a node_pool at the same time. For responses, this field will be populated with the node configuration of the first node pool. (For configuration of each node pool, see `node_pool.config`) If unspecified, the defaults are used. This field is deprecated, use node_pool.config instead.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700275 &quot;sandboxConfig&quot;: { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node.
276 &quot;type&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node.
277 &quot;sandboxType&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node (e.g. &#x27;gvisor&#x27;)
278 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700279 &quot;linuxNodeConfig&quot;: { # Parameters that can be configured on Linux nodes. # Parameters that can be configured on Linux nodes.
280 &quot;sysctls&quot;: { # The Linux kernel parameters to be applied to the nodes and all pods running on the nodes. The following parameters are supported. net.core.netdev_max_backlog net.core.rmem_max net.core.wmem_default net.core.wmem_max net.core.optmem_max net.core.somaxconn net.ipv4.tcp_rmem net.ipv4.tcp_wmem net.ipv4.tcp_tw_reuse
281 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700282 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700283 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700284 &quot;labels&quot;: { # The map of Kubernetes labels (key/value pairs) to be applied to each node. These will added in addition to any default label(s) that Kubernetes may apply to the node. In case of conflict in label keys, the applied set may differ depending on the Kubernetes version -- it&#x27;s best to assume the behavior is undefined and conflicts should be avoided. For more information, including usage and the valid values, see: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
Bu Sun Kim65020912020-05-20 12:08:20 -0700285 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700286 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700287 &quot;localSsdCount&quot;: 42, # The number of local SSD disks to be attached to the node. The limit for this value is dependent upon the maximum number of disks available on a machine per zone. See: https://cloud.google.com/compute/docs/disks/local-ssd for more information.
288 &quot;reservationAffinity&quot;: { # [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) is the configuration of desired reservation which instances could take capacity from. # The optional reservation affinity. Setting this field will apply the specified [Zonal Compute Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) to this node pool.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700289 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Corresponds to the type of reservation consumption.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700290 &quot;values&quot;: [ # Corresponds to the label value(s) of reservation resource(s).
291 &quot;A String&quot;,
292 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700293 &quot;key&quot;: &quot;A String&quot;, # Corresponds to the label key of a reservation resource. To target a SPECIFIC_RESERVATION by name, specify &quot;googleapis.com/reservation-name&quot; as the key and specify the name of your reservation as its value.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700294 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700295 &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;) If unspecified, the default disk type is &#x27;pd-standard&#x27;
296 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to workloads on the node pool. # The workload metadata configuration for this node.
297 &quot;nodeMetadata&quot;: &quot;A String&quot;, # NodeMetadata is the configuration for how to expose metadata to the workloads running on the node.
298 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running on the node pool.
299 },
300 &quot;metadata&quot;: { # The metadata key/value pairs assigned to instances in the cluster. Keys must conform to the regexp `[a-zA-Z0-9-_]+` and be less than 128 bytes in length. These are reflected as part of a URL in the metadata server. Additionally, to avoid ambiguity, keys must not conflict with any other metadata keys for the project or be one of the reserved keys: - &quot;cluster-location&quot; - &quot;cluster-name&quot; - &quot;cluster-uid&quot; - &quot;configure-sh&quot; - &quot;containerd-configure-sh&quot; - &quot;enable-oslogin&quot; - &quot;gci-ensure-gke-docker&quot; - &quot;gci-metrics-enabled&quot; - &quot;gci-update-strategy&quot; - &quot;instance-template&quot; - &quot;kube-env&quot; - &quot;startup-script&quot; - &quot;user-data&quot; - &quot;disable-address-manager&quot; - &quot;windows-startup-script-ps1&quot; - &quot;common-psm1&quot; - &quot;k8s-node-setup-psm1&quot; - &quot;install-ssh-psm1&quot; - &quot;user-profile-psm1&quot; - &quot;serial-port-logging-enable&quot; Values are free-form strings, and only have meaning as interpreted by the image running in the instance. The only restriction placed on them is that each value&#x27;s size must be less than or equal to 32 KB. The total size of all keys and values must be less than 512 KB.
301 &quot;a_key&quot;: &quot;A String&quot;,
302 },
303 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used by this instance. The instance may be scheduled on the specified or newer CPU platform. Applicable values are the friendly names of CPU platforms, such as `minCpuPlatform: &quot;Intel Haswell&quot;` or `minCpuPlatform: &quot;Intel Sandy Bridge&quot;`. For more information, read [how to specify min CPU platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
304 &quot;machineType&quot;: &quot;A String&quot;, # The name of a Google Compute Engine [machine type](https://cloud.google.com/compute/docs/machine-types). If unspecified, the default machine type is `e2-medium`.
305 &quot;preemptible&quot;: True or False, # Whether the nodes are created as preemptible VM instances. See: https://cloud.google.com/compute/docs/instances/preemptible for more inforamtion about preemptible VM instances.
306 &quot;nodeGroup&quot;: &quot;A String&quot;, # Setting this field will assign instances of this pool to run on the specified node group. This is useful for running workloads on [sole tenant nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes).
307 &quot;oauthScopes&quot;: [ # The set of Google API scopes to be made available on all of the node VMs under the &quot;default&quot; service account. The following scopes are recommended, but not required, and by default are not included: * `https://www.googleapis.com/auth/compute` is required for mounting persistent storage on your nodes. * `https://www.googleapis.com/auth/devstorage.read_only` is required for communicating with **gcr.io** (the [Google Container Registry](https://cloud.google.com/container-registry/)). If unspecified, no scopes are added, unless Cloud Logging or Cloud Monitoring are enabled, in which case their required scopes will be added.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700308 &quot;A String&quot;,
309 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700310 &quot;imageType&quot;: &quot;A String&quot;, # The image type to use for this node. Note that for a given image type, the latest version of it will be used.
311 &quot;accelerators&quot;: [ # A list of hardware accelerators to be attached to each node. See https://cloud.google.com/compute/docs/gpus for more information about support for GPUs.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700312 { # AcceleratorConfig represents a Hardware Accelerator request.
313 &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of the accelerator cards exposed to an instance.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700314 &quot;acceleratorType&quot;: &quot;A String&quot;, # The accelerator type resource name. List of supported accelerators [here](https://cloud.google.com/compute/docs/gpus)
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700315 },
316 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700317 &quot;taints&quot;: [ # List of kubernetes taints to be applied to each node. For more information, including usage and the valid values, see: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
318 { # Kubernetes taint is comprised of three fields: key, value, and effect. Effect can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute. See [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration) for more information, including usage and the valid values.
319 &quot;effect&quot;: &quot;A String&quot;, # Effect for taint.
320 &quot;value&quot;: &quot;A String&quot;, # Value for taint.
321 &quot;key&quot;: &quot;A String&quot;, # Key for taint.
322 },
323 ],
324 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs. Specify the email address of the Service Account; otherwise, if no Service Account is specified, the &quot;default&quot; service account is used.
325 &quot;bootDiskKmsKey&quot;: &quot;A String&quot;, # The Customer Managed Encryption Key used to encrypt the boot disk attached to each node in the node pool. This should be of the form projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME]. For more information about protecting resources with Cloud KMS Keys please see: https://cloud.google.com/compute/docs/disks/customer-managed-encryption
326 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
327 &quot;enableSecureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled. Secure Boot helps ensure that the system only runs authentic software by verifying the digital signature of all boot components, and halting the boot process if signature verification fails.
328 &quot;enableIntegrityMonitoring&quot;: True or False, # Defines whether the instance has integrity monitoring enabled. Enables monitoring and attestation of the boot integrity of the instance. The attestation is performed against the integrity policy baseline. This baseline is initially derived from the implicitly trusted boot image when the instance is created.
329 },
330 &quot;kubeletConfig&quot;: { # Node kubelet configs. # Node kubelet configs.
331 &quot;cpuCfsQuota&quot;: True or False, # Enable CPU CFS quota enforcement for containers that specify CPU limits. This option is enabled by default which makes kubelet use CFS quota (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to enforce container CPU limits. Otherwise, CPU limits will not be enforced at all. Disable this option to mitigate CPU throttling problems while still having your pods to be in Guaranteed QoS class by specifying the CPU limits. The default value is &#x27;true&#x27; if unspecified.
332 &quot;cpuManagerPolicy&quot;: &quot;A String&quot;, # Control the CPU management policy on the node. See https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/ The following values are allowed. - &quot;none&quot;: the default, which represents the existing scheduling behavior. - &quot;static&quot;: allows pods with certain resource characteristics to be granted increased CPU affinity and exclusivity on the node. The default value is &#x27;none&#x27; if unspecified.
333 &quot;cpuCfsQuotaPeriod&quot;: &quot;A String&quot;, # Set the CPU CFS quota period value &#x27;cpu.cfs_period_us&#x27;. The string must be a sequence of decimal numbers, each with optional fraction and a unit suffix, such as &quot;300ms&quot;. Valid time units are &quot;ns&quot;, &quot;us&quot; (or &quot;µs&quot;), &quot;ms&quot;, &quot;s&quot;, &quot;m&quot;, &quot;h&quot;. The value must be a positive duration.
334 },
335 &quot;tags&quot;: [ # The list of instance tags applied to all nodes. Tags are used to identify valid sources or targets for network firewalls and are specified by the client during cluster or node pool creation. Each tag within the list must comply with RFC1035.
336 &quot;A String&quot;,
337 ],
338 &quot;diskSizeGb&quot;: 42, # Size of the disk attached to each node, specified in GB. The smallest allowed disk size is 10GB. If unspecified, the default disk size is 100GB.
Bu Sun Kim65020912020-05-20 12:08:20 -0700339 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700340 &quot;autoscaling&quot;: { # ClusterAutoscaling contains global, per-cluster information required by Cluster Autoscaler to automatically adjust the size of the cluster and create/delete node pools based on the current needs. # Cluster-level autoscaling configuration.
341 &quot;resourceLimits&quot;: [ # Contains global constraints regarding minimum and maximum amount of resources in the cluster.
342 { # Contains information about amount of some resource in the cluster. For memory, value should be in GB.
343 &quot;minimum&quot;: &quot;A String&quot;, # Minimum amount of the resource in the cluster.
344 &quot;resourceType&quot;: &quot;A String&quot;, # Resource name &quot;cpu&quot;, &quot;memory&quot; or gpu-specific string.
345 &quot;maximum&quot;: &quot;A String&quot;, # Maximum amount of the resource in the cluster.
346 },
347 ],
348 &quot;autoprovisioningNodePoolDefaults&quot;: { # AutoprovisioningNodePoolDefaults contains defaults for a node pool created by NAP. # AutoprovisioningNodePoolDefaults contains defaults for a node pool created by NAP.
349 &quot;bootDiskKmsKey&quot;: &quot;A String&quot;, # The Customer Managed Encryption Key used to encrypt the boot disk attached to each node in the node pool. This should be of the form projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME]. For more information about protecting resources with Cloud KMS Keys please see: https://cloud.google.com/compute/docs/disks/customer-managed-encryption
350 &quot;management&quot;: { # NodeManagement defines the set of node management services turned on for the node pool. # NodeManagement configuration for this NodePool.
351 &quot;autoRepair&quot;: True or False, # Whether the nodes will be automatically repaired.
352 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how the Auto Upgrades will proceed. # Specifies the Auto Upgrade knobs for the node pool.
353 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence with the description of the upgrade.
354 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence with the approximate start time for the upgrades, in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
355 },
356 &quot;autoUpgrade&quot;: True or False, # Whether the nodes will be automatically upgraded.
357 },
358 &quot;oauthScopes&quot;: [ # The set of Google API scopes to be made available on all of the node VMs under the &quot;default&quot; service account. The following scopes are recommended, but not required, and by default are not included: * `https://www.googleapis.com/auth/compute` is required for mounting persistent storage on your nodes. * `https://www.googleapis.com/auth/devstorage.read_only` is required for communicating with **gcr.io** (the [Google Container Registry](https://cloud.google.com/container-registry/)). If unspecified, no scopes are added, unless Cloud Logging or Cloud Monitoring are enabled, in which case their required scopes will be added.
359 &quot;A String&quot;,
360 ],
361 &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;) If unspecified, the default disk type is &#x27;pd-standard&#x27;
362 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used by this instance. The instance may be scheduled on the specified or newer CPU platform. Applicable values are the friendly names of CPU platforms, such as `minCpuPlatform: &quot;Intel Haswell&quot;` or `minCpuPlatform: &quot;Intel Sandy Bridge&quot;`. For more information, read [how to specify min CPU platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform) To unset the min cpu platform field pass &quot;automatic&quot; as field value.
363 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
364 &quot;enableSecureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled. Secure Boot helps ensure that the system only runs authentic software by verifying the digital signature of all boot components, and halting the boot process if signature verification fails.
365 &quot;enableIntegrityMonitoring&quot;: True or False, # Defines whether the instance has integrity monitoring enabled. Enables monitoring and attestation of the boot integrity of the instance. The attestation is performed against the integrity policy baseline. This baseline is initially derived from the implicitly trusted boot image when the instance is created.
366 },
367 &quot;upgradeSettings&quot;: { # These upgrade settings control the level of parallelism and the level of disruption caused by an upgrade. maxUnavailable controls the number of nodes that can be simultaneously unavailable. maxSurge controls the number of additional nodes that can be added to the node pool temporarily for the time of the upgrade to increase the number of available nodes. (maxUnavailable + maxSurge) determines the level of parallelism (how many nodes are being upgraded at the same time). Note: upgrades inevitably introduce some disruption since workloads need to be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0, this holds true. (Disruption stays within the limits of PodDisruptionBudget, if it is configured.) Consider a hypothetical node pool with 5 nodes having maxSurge=2, maxUnavailable=1. This means the upgrade process upgrades 3 nodes simultaneously. It creates 2 additional (upgraded) nodes, then it brings down 3 old (not yet upgraded) nodes at the same time. This ensures that there are always at least 4 nodes available. # Upgrade settings control disruption and speed of the upgrade.
368 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size of the node pool during the upgrade process.
369 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during the upgrade process. A node is considered available if its status is Ready.
370 },
371 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs. Specify the email address of the Service Account; otherwise, if no Service Account is specified, the &quot;default&quot; service account is used.
372 &quot;diskSizeGb&quot;: 42, # Size of the disk attached to each node, specified in GB. The smallest allowed disk size is 10GB. If unspecified, the default disk size is 100GB.
373 },
374 &quot;autoprovisioningLocations&quot;: [ # The list of Google Compute Engine [zones](https://cloud.google.com/compute/docs/zones#available) in which the NodePool&#x27;s nodes can be created by NAP.
375 &quot;A String&quot;,
376 ],
377 &quot;enableNodeAutoprovisioning&quot;: True or False, # Enables automatic node pool creation and deletion.
378 &quot;autoscalingProfile&quot;: &quot;A String&quot;, # Defines autoscaling behaviour.
379 },
380 &quot;binaryAuthorization&quot;: { # Configuration for Binary Authorization. # Configuration for Binary Authorization.
381 &quot;enabled&quot;: True or False, # Enable Binary Authorization for this cluster. If enabled, all container images will be validated by Google Binauthz.
382 },
383 &quot;currentNodeVersion&quot;: &quot;A String&quot;, # [Output only] Deprecated, use [NodePool.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1beta1/projects.locations.clusters.nodePools) instead. The current version of the node software components. If they are currently at multiple versions because they&#x27;re in the process of being upgraded, this reflects the minimum version of all nodes.
384 &quot;conditions&quot;: [ # Which conditions caused the current cluster state.
385 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
386 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
387 &quot;canonicalCode&quot;: &quot;A String&quot;, # Canonical code of the condition.
388 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition Deprecated. Use canonical_code instead.
389 },
390 ],
391 &quot;releaseChannel&quot;: { # ReleaseChannel indicates which release channel a cluster is subscribed to. Release channels are arranged in order of risk. When a cluster is subscribed to a release channel, Google maintains both the master version and the node version. Node auto-upgrade defaults to true and cannot be disabled. # Release channel configuration.
392 &quot;channel&quot;: &quot;A String&quot;, # channel specifies which release channel the cluster is subscribed to.
393 },
394 &quot;instanceGroupUrls&quot;: [ # Deprecated. Use node_pools.instance_group_urls.
395 &quot;A String&quot;,
396 ],
397 &quot;masterAuthorizedNetworksConfig&quot;: { # Configuration options for the master authorized networks feature. Enabled master authorized networks will disallow all external traffic to access Kubernetes master through HTTPS except traffic from the given CIDR blocks, Google Compute Engine Public IPs and Google Prod IPs. # The configuration options for master authorized networks feature.
398 &quot;cidrBlocks&quot;: [ # cidr_blocks define up to 10 external networks that could access Kubernetes master through HTTPS.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700399 { # CidrBlock contains an optional name and one CIDR block.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700400 &quot;cidrBlock&quot;: &quot;A String&quot;, # cidr_block must be specified in CIDR notation.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700401 &quot;displayName&quot;: &quot;A String&quot;, # display_name is an optional field for users to identify CIDR blocks.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700402 },
403 ],
404 &quot;enabled&quot;: True or False, # Whether or not master authorized networks is enabled.
405 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700406 &quot;network&quot;: &quot;A String&quot;, # The name of the Google Compute Engine [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks) to which the cluster is connected. If left unspecified, the `default` network will be used. On output this shows the network ID instead of the name.
407 &quot;authenticatorGroupsConfig&quot;: { # Configuration for returning group information from authenticators. # Configuration controlling RBAC group membership information.
408 &quot;enabled&quot;: True or False, # Whether this cluster should return group membership lookups during authentication using a group of security groups.
409 &quot;securityGroup&quot;: &quot;A String&quot;, # The name of the security group-of-groups to be used. Only relevant if enabled = true.
Dan O'Mearadd494642020-05-01 07:42:23 -0700410 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700411 &quot;locations&quot;: [ # The list of Google Compute Engine [zones](https://cloud.google.com/compute/docs/zones#available) in which the cluster&#x27;s nodes should be located.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700412 &quot;A String&quot;,
413 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700414 &quot;resourceUsageExportConfig&quot;: { # Configuration for exporting cluster resource usages. # Configuration for exporting resource usages. Resource usage export is disabled when this config unspecified.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700415 &quot;consumptionMeteringConfig&quot;: { # Parameters for controlling consumption metering. # Configuration to enable resource consumption metering.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700416 &quot;enabled&quot;: True or False, # Whether to enable consumption metering for this cluster. If enabled, a second BigQuery table will be created to hold resource consumption records.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700417 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700418 &quot;enableNetworkEgressMetering&quot;: True or False, # Whether to enable network egress metering for this cluster. If enabled, a daemonset will be created in the cluster to meter network egress traffic.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700419 &quot;bigqueryDestination&quot;: { # Parameters for using BigQuery as the destination of resource usage export. # Configuration to use BigQuery as usage export destination.
420 &quot;datasetId&quot;: &quot;A String&quot;, # The ID of a BigQuery Dataset.
421 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700422 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700423 &quot;verticalPodAutoscaling&quot;: { # VerticalPodAutoscaling contains global, per-cluster information required by Vertical Pod Autoscaler to automatically adjust the resources of pods controlled by it. # Cluster-level Vertical Pod Autoscaling configuration.
424 &quot;enabled&quot;: True or False, # Enables vertical pod autoscaling.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700425 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700426 &quot;databaseEncryption&quot;: { # Configuration of etcd encryption. # Configuration of etcd encryption.
427 &quot;keyName&quot;: &quot;A String&quot;, # Name of CloudKMS key to use for the encryption of secrets in etcd. Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key
428 &quot;state&quot;: &quot;A String&quot;, # Denotes the state of etcd encryption.
429 },
430 &quot;enableTpu&quot;: True or False, # Enable the ability to use Cloud TPUs in this cluster. This field is deprecated, use tpu_config.enabled instead.
431 &quot;currentMasterVersion&quot;: &quot;A String&quot;, # [Output only] The current software version of the master endpoint.
432 &quot;zone&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides. This field is deprecated, use location instead.
433 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) or [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) in which the cluster resides.
434 &quot;privateClusterConfig&quot;: { # Configuration options for private clusters. # Configuration for private cluster.
435 &quot;masterGlobalAccessConfig&quot;: { # Configuration for controlling master global access settings. # Controls master global access settings.
436 &quot;enabled&quot;: True or False, # Whenever master is accessible globally or not.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700437 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700438 &quot;enablePrivateNodes&quot;: True or False, # Whether nodes have internal IP addresses only. If enabled, all nodes are given only RFC 1918 private addresses and communicate with the master via private networking.
439 &quot;enablePrivateEndpoint&quot;: True or False, # Whether the master&#x27;s internal IP address is used as the cluster endpoint.
440 &quot;masterIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP range in CIDR notation to use for the hosted master network. This range will be used for assigning internal IP addresses to the master or set of masters, as well as the ILB VIP. This range must not overlap with any other ranges in use within the cluster&#x27;s network.
441 &quot;publicEndpoint&quot;: &quot;A String&quot;, # Output only. The external IP address of this cluster&#x27;s master endpoint.
442 &quot;privateEndpoint&quot;: &quot;A String&quot;, # Output only. The internal IP address of this cluster&#x27;s master endpoint.
443 &quot;peeringName&quot;: &quot;A String&quot;, # Output only. The peering name in the customer VPC used by this cluster.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700444 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700445 &quot;labelFingerprint&quot;: &quot;A String&quot;, # The fingerprint of the set of labels for this cluster.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700446 &quot;tpuConfig&quot;: { # Configuration for Cloud TPU. # Configuration for Cloud TPU support;
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700447 &quot;enabled&quot;: True or False, # Whether Cloud TPU integration is enabled or not.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700448 &quot;useServiceNetworking&quot;: True or False, # Whether to use service networking for Cloud TPU or not.
449 &quot;ipv4CidrBlock&quot;: &quot;A String&quot;, # IPv4 CIDR block reserved for Cloud TPU in the VPC.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700450 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700451 &quot;createTime&quot;: &quot;A String&quot;, # [Output only] The time the cluster was created, in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
452 &quot;nodePools&quot;: [ # The node pools associated with this cluster. This field should not be set if &quot;node_config&quot; or &quot;initial_node_count&quot; are specified.
453 { # NodePool contains the name and configuration for a cluster&#x27;s node pool. Node pools are a set of nodes (i.e. VM&#x27;s), with a common configuration and specification, under the control of the cluster master. They may have a set of Kubernetes labels applied to them, which may be used to reference them during pod scheduling. They may also be resized up or down, to accommodate the workload.
454 &quot;version&quot;: &quot;A String&quot;, # The version of the Kubernetes of this node.
455 &quot;name&quot;: &quot;A String&quot;, # The name of the node pool.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700456 &quot;status&quot;: &quot;A String&quot;, # [Output only] The status of the nodes in this pool instance.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700457 &quot;upgradeSettings&quot;: { # These upgrade settings control the level of parallelism and the level of disruption caused by an upgrade. maxUnavailable controls the number of nodes that can be simultaneously unavailable. maxSurge controls the number of additional nodes that can be added to the node pool temporarily for the time of the upgrade to increase the number of available nodes. (maxUnavailable + maxSurge) determines the level of parallelism (how many nodes are being upgraded at the same time). Note: upgrades inevitably introduce some disruption since workloads need to be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0, this holds true. (Disruption stays within the limits of PodDisruptionBudget, if it is configured.) Consider a hypothetical node pool with 5 nodes having maxSurge=2, maxUnavailable=1. This means the upgrade process upgrades 3 nodes simultaneously. It creates 2 additional (upgraded) nodes, then it brings down 3 old (not yet upgraded) nodes at the same time. This ensures that there are always at least 4 nodes available. # Upgrade settings control disruption and speed of the upgrade.
458 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size of the node pool during the upgrade process.
459 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during the upgrade process. A node is considered available if its status is Ready.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700460 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700461 &quot;config&quot;: { # Parameters that describe the nodes in a cluster. # The node configuration of the pool.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700462 &quot;sandboxConfig&quot;: { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node.
463 &quot;type&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node.
464 &quot;sandboxType&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node (e.g. &#x27;gvisor&#x27;)
465 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700466 &quot;linuxNodeConfig&quot;: { # Parameters that can be configured on Linux nodes. # Parameters that can be configured on Linux nodes.
467 &quot;sysctls&quot;: { # The Linux kernel parameters to be applied to the nodes and all pods running on the nodes. The following parameters are supported. net.core.netdev_max_backlog net.core.rmem_max net.core.wmem_default net.core.wmem_max net.core.optmem_max net.core.somaxconn net.ipv4.tcp_rmem net.ipv4.tcp_wmem net.ipv4.tcp_tw_reuse
468 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700469 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700470 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700471 &quot;labels&quot;: { # The map of Kubernetes labels (key/value pairs) to be applied to each node. These will added in addition to any default label(s) that Kubernetes may apply to the node. In case of conflict in label keys, the applied set may differ depending on the Kubernetes version -- it&#x27;s best to assume the behavior is undefined and conflicts should be avoided. For more information, including usage and the valid values, see: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700472 &quot;a_key&quot;: &quot;A String&quot;,
473 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700474 &quot;localSsdCount&quot;: 42, # The number of local SSD disks to be attached to the node. The limit for this value is dependent upon the maximum number of disks available on a machine per zone. See: https://cloud.google.com/compute/docs/disks/local-ssd for more information.
475 &quot;reservationAffinity&quot;: { # [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) is the configuration of desired reservation which instances could take capacity from. # The optional reservation affinity. Setting this field will apply the specified [Zonal Compute Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) to this node pool.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700476 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Corresponds to the type of reservation consumption.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700477 &quot;values&quot;: [ # Corresponds to the label value(s) of reservation resource(s).
478 &quot;A String&quot;,
479 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700480 &quot;key&quot;: &quot;A String&quot;, # Corresponds to the label key of a reservation resource. To target a SPECIFIC_RESERVATION by name, specify &quot;googleapis.com/reservation-name&quot; as the key and specify the name of your reservation as its value.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700481 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700482 &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;) If unspecified, the default disk type is &#x27;pd-standard&#x27;
483 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to workloads on the node pool. # The workload metadata configuration for this node.
484 &quot;nodeMetadata&quot;: &quot;A String&quot;, # NodeMetadata is the configuration for how to expose metadata to the workloads running on the node.
485 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running on the node pool.
486 },
487 &quot;metadata&quot;: { # The metadata key/value pairs assigned to instances in the cluster. Keys must conform to the regexp `[a-zA-Z0-9-_]+` and be less than 128 bytes in length. These are reflected as part of a URL in the metadata server. Additionally, to avoid ambiguity, keys must not conflict with any other metadata keys for the project or be one of the reserved keys: - &quot;cluster-location&quot; - &quot;cluster-name&quot; - &quot;cluster-uid&quot; - &quot;configure-sh&quot; - &quot;containerd-configure-sh&quot; - &quot;enable-oslogin&quot; - &quot;gci-ensure-gke-docker&quot; - &quot;gci-metrics-enabled&quot; - &quot;gci-update-strategy&quot; - &quot;instance-template&quot; - &quot;kube-env&quot; - &quot;startup-script&quot; - &quot;user-data&quot; - &quot;disable-address-manager&quot; - &quot;windows-startup-script-ps1&quot; - &quot;common-psm1&quot; - &quot;k8s-node-setup-psm1&quot; - &quot;install-ssh-psm1&quot; - &quot;user-profile-psm1&quot; - &quot;serial-port-logging-enable&quot; Values are free-form strings, and only have meaning as interpreted by the image running in the instance. The only restriction placed on them is that each value&#x27;s size must be less than or equal to 32 KB. The total size of all keys and values must be less than 512 KB.
488 &quot;a_key&quot;: &quot;A String&quot;,
489 },
490 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used by this instance. The instance may be scheduled on the specified or newer CPU platform. Applicable values are the friendly names of CPU platforms, such as `minCpuPlatform: &quot;Intel Haswell&quot;` or `minCpuPlatform: &quot;Intel Sandy Bridge&quot;`. For more information, read [how to specify min CPU platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
491 &quot;machineType&quot;: &quot;A String&quot;, # The name of a Google Compute Engine [machine type](https://cloud.google.com/compute/docs/machine-types). If unspecified, the default machine type is `e2-medium`.
492 &quot;preemptible&quot;: True or False, # Whether the nodes are created as preemptible VM instances. See: https://cloud.google.com/compute/docs/instances/preemptible for more inforamtion about preemptible VM instances.
493 &quot;nodeGroup&quot;: &quot;A String&quot;, # Setting this field will assign instances of this pool to run on the specified node group. This is useful for running workloads on [sole tenant nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes).
494 &quot;oauthScopes&quot;: [ # The set of Google API scopes to be made available on all of the node VMs under the &quot;default&quot; service account. The following scopes are recommended, but not required, and by default are not included: * `https://www.googleapis.com/auth/compute` is required for mounting persistent storage on your nodes. * `https://www.googleapis.com/auth/devstorage.read_only` is required for communicating with **gcr.io** (the [Google Container Registry](https://cloud.google.com/container-registry/)). If unspecified, no scopes are added, unless Cloud Logging or Cloud Monitoring are enabled, in which case their required scopes will be added.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700495 &quot;A String&quot;,
496 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700497 &quot;imageType&quot;: &quot;A String&quot;, # The image type to use for this node. Note that for a given image type, the latest version of it will be used.
498 &quot;accelerators&quot;: [ # A list of hardware accelerators to be attached to each node. See https://cloud.google.com/compute/docs/gpus for more information about support for GPUs.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700499 { # AcceleratorConfig represents a Hardware Accelerator request.
500 &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of the accelerator cards exposed to an instance.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700501 &quot;acceleratorType&quot;: &quot;A String&quot;, # The accelerator type resource name. List of supported accelerators [here](https://cloud.google.com/compute/docs/gpus)
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700502 },
503 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700504 &quot;taints&quot;: [ # List of kubernetes taints to be applied to each node. For more information, including usage and the valid values, see: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
505 { # Kubernetes taint is comprised of three fields: key, value, and effect. Effect can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute. See [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration) for more information, including usage and the valid values.
506 &quot;effect&quot;: &quot;A String&quot;, # Effect for taint.
507 &quot;value&quot;: &quot;A String&quot;, # Value for taint.
508 &quot;key&quot;: &quot;A String&quot;, # Key for taint.
509 },
510 ],
511 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs. Specify the email address of the Service Account; otherwise, if no Service Account is specified, the &quot;default&quot; service account is used.
512 &quot;bootDiskKmsKey&quot;: &quot;A String&quot;, # The Customer Managed Encryption Key used to encrypt the boot disk attached to each node in the node pool. This should be of the form projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME]. For more information about protecting resources with Cloud KMS Keys please see: https://cloud.google.com/compute/docs/disks/customer-managed-encryption
513 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
514 &quot;enableSecureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled. Secure Boot helps ensure that the system only runs authentic software by verifying the digital signature of all boot components, and halting the boot process if signature verification fails.
515 &quot;enableIntegrityMonitoring&quot;: True or False, # Defines whether the instance has integrity monitoring enabled. Enables monitoring and attestation of the boot integrity of the instance. The attestation is performed against the integrity policy baseline. This baseline is initially derived from the implicitly trusted boot image when the instance is created.
516 },
517 &quot;kubeletConfig&quot;: { # Node kubelet configs. # Node kubelet configs.
518 &quot;cpuCfsQuota&quot;: True or False, # Enable CPU CFS quota enforcement for containers that specify CPU limits. This option is enabled by default which makes kubelet use CFS quota (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to enforce container CPU limits. Otherwise, CPU limits will not be enforced at all. Disable this option to mitigate CPU throttling problems while still having your pods to be in Guaranteed QoS class by specifying the CPU limits. The default value is &#x27;true&#x27; if unspecified.
519 &quot;cpuManagerPolicy&quot;: &quot;A String&quot;, # Control the CPU management policy on the node. See https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/ The following values are allowed. - &quot;none&quot;: the default, which represents the existing scheduling behavior. - &quot;static&quot;: allows pods with certain resource characteristics to be granted increased CPU affinity and exclusivity on the node. The default value is &#x27;none&#x27; if unspecified.
520 &quot;cpuCfsQuotaPeriod&quot;: &quot;A String&quot;, # Set the CPU CFS quota period value &#x27;cpu.cfs_period_us&#x27;. The string must be a sequence of decimal numbers, each with optional fraction and a unit suffix, such as &quot;300ms&quot;. Valid time units are &quot;ns&quot;, &quot;us&quot; (or &quot;µs&quot;), &quot;ms&quot;, &quot;s&quot;, &quot;m&quot;, &quot;h&quot;. The value must be a positive duration.
521 },
522 &quot;tags&quot;: [ # The list of instance tags applied to all nodes. Tags are used to identify valid sources or targets for network firewalls and are specified by the client during cluster or node pool creation. Each tag within the list must comply with RFC1035.
523 &quot;A String&quot;,
524 ],
525 &quot;diskSizeGb&quot;: 42, # Size of the disk attached to each node, specified in GB. The smallest allowed disk size is 10GB. If unspecified, the default disk size is 100GB.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700526 },
527 &quot;selfLink&quot;: &quot;A String&quot;, # [Output only] Server-defined URL for the resource.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700528 &quot;management&quot;: { # NodeManagement defines the set of node management services turned on for the node pool. # NodeManagement configuration for this NodePool.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700529 &quot;autoRepair&quot;: True or False, # Whether the nodes will be automatically repaired.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700530 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how the Auto Upgrades will proceed. # Specifies the Auto Upgrade knobs for the node pool.
531 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence with the description of the upgrade.
532 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence with the approximate start time for the upgrades, in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700533 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700534 &quot;autoUpgrade&quot;: True or False, # Whether the nodes will be automatically upgraded.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700535 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700536 &quot;autoscaling&quot;: { # NodePoolAutoscaling contains information required by cluster autoscaler to adjust the size of the node pool to the current cluster usage. # Autoscaler configuration for this NodePool. Autoscaler is enabled only if a valid configuration is present.
537 &quot;autoprovisioned&quot;: True or False, # Can this node pool be deleted automatically.
538 &quot;minNodeCount&quot;: 42, # Minimum number of nodes in the NodePool. Must be &gt;= 1 and &lt;= max_node_count.
539 &quot;enabled&quot;: True or False, # Is autoscaling enabled for this node pool.
540 &quot;maxNodeCount&quot;: 42, # Maximum number of nodes in the NodePool. Must be &gt;= min_node_count. There has to enough quota to scale up the cluster.
541 },
542 &quot;maxPodsConstraint&quot;: { # Constraints applied to pods. # The constraint on the maximum number of pods that can be run simultaneously on a node in the node pool.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700543 &quot;maxPodsPerNode&quot;: &quot;A String&quot;, # Constraint enforced on the max num of pods per node.
544 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700545 &quot;initialNodeCount&quot;: 42, # The initial node count for the pool. You must ensure that your Compute Engine [resource quota](https://cloud.google.com/compute/quotas) is sufficient for this number of instances. You must also have available firewall and routes quota.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700546 &quot;podIpv4CidrSize&quot;: 42, # [Output only] The pod CIDR block size per node in this node pool.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700547 &quot;instanceGroupUrls&quot;: [ # [Output only] The resource URLs of the [managed instance groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances) associated with this node pool.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700548 &quot;A String&quot;,
549 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700550 &quot;locations&quot;: [ # The list of Google Compute Engine [zones](https://cloud.google.com/compute/docs/zones#available) in which the NodePool&#x27;s nodes should be located.
551 &quot;A String&quot;,
552 ],
553 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output only] Additional information about the current status of this node pool instance, if available.
554 &quot;conditions&quot;: [ # Which conditions caused the current node pool state.
555 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
556 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
557 &quot;canonicalCode&quot;: &quot;A String&quot;, # Canonical code of the condition.
558 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition Deprecated. Use canonical_code instead.
559 },
560 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700561 },
562 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700563 &quot;addonsConfig&quot;: { # Configuration for the addons that can be automatically spun up in the cluster, enabling additional functionality. # Configurations for the various addons available to run in the cluster.
564 &quot;cloudRunConfig&quot;: { # Configuration options for the Cloud Run feature. # Configuration for the Cloud Run addon. The `IstioConfig` addon must be enabled in order to enable Cloud Run addon. This option can only be enabled at cluster creation time.
565 &quot;loadBalancerType&quot;: &quot;A String&quot;, # Which load balancer type is installed for Cloud Run.
566 &quot;disabled&quot;: True or False, # Whether Cloud Run addon is enabled for this cluster.
567 },
568 &quot;configConnectorConfig&quot;: { # Configuration options for the Config Connector add-on. # Configuration for the ConfigConnector add-on, a Kubernetes extension to manage hosted GCP services through the Kubernetes API
569 &quot;enabled&quot;: True or False, # Whether Cloud Connector is enabled for this cluster.
570 },
571 &quot;horizontalPodAutoscaling&quot;: { # Configuration options for the horizontal pod autoscaling feature, which increases or decreases the number of replica pods a replication controller has based on the resource usage of the existing pods. # Configuration for the horizontal pod autoscaling feature, which increases or decreases the number of replica pods a replication controller has based on the resource usage of the existing pods.
572 &quot;disabled&quot;: True or False, # Whether the Horizontal Pod Autoscaling feature is enabled in the cluster. When enabled, it ensures that metrics are collected into Stackdriver Monitoring.
573 },
574 &quot;gcePersistentDiskCsiDriverConfig&quot;: { # Configuration for the Compute Engine PD CSI driver. This option can only be enabled at cluster creation time. # Configuration for the Compute Engine Persistent Disk CSI driver.
575 &quot;enabled&quot;: True or False, # Whether the Compute Engine PD CSI driver is enabled for this cluster.
576 },
577 &quot;httpLoadBalancing&quot;: { # Configuration options for the HTTP (L7) load balancing controller addon, which makes it easy to set up HTTP load balancers for services in a cluster. # Configuration for the HTTP (L7) load balancing controller addon, which makes it easy to set up HTTP load balancers for services in a cluster.
578 &quot;disabled&quot;: True or False, # Whether the HTTP Load Balancing controller is enabled in the cluster. When enabled, it runs a small pod in the cluster that manages the load balancers.
579 },
580 &quot;dnsCacheConfig&quot;: { # Configuration for NodeLocal DNSCache # Configuration for NodeLocalDNS, a dns cache running on cluster nodes
581 &quot;enabled&quot;: True or False, # Whether NodeLocal DNSCache is enabled for this cluster.
582 },
583 &quot;kubernetesDashboard&quot;: { # Configuration for the Kubernetes Dashboard. # Configuration for the Kubernetes Dashboard. This addon is deprecated, and will be disabled in 1.15. It is recommended to use the Cloud Console to manage and monitor your Kubernetes clusters, workloads and applications. For more information, see: https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
584 &quot;disabled&quot;: True or False, # Whether the Kubernetes Dashboard is enabled for this cluster.
585 },
586 &quot;kalmConfig&quot;: { # Configuration options for the KALM addon. # Configuration for the KALM addon, which manages the lifecycle of k8s applications.
587 &quot;enabled&quot;: True or False, # Whether KALM is enabled for this cluster.
588 },
589 &quot;networkPolicyConfig&quot;: { # Configuration for NetworkPolicy. This only tracks whether the addon is enabled or not on the Master, it does not track whether network policy is enabled for the nodes. # Configuration for NetworkPolicy. This only tracks whether the addon is enabled or not on the Master, it does not track whether network policy is enabled for the nodes.
590 &quot;disabled&quot;: True or False, # Whether NetworkPolicy is enabled for this cluster.
591 },
592 &quot;istioConfig&quot;: { # Configuration options for Istio addon. # Configuration for Istio, an open platform to connect, manage, and secure microservices.
593 &quot;auth&quot;: &quot;A String&quot;, # The specified Istio auth mode, either none, or mutual TLS.
594 &quot;disabled&quot;: True or False, # Whether Istio is enabled for this cluster.
595 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700596 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700597 &quot;name&quot;: &quot;A String&quot;, # The name of this cluster. The name must be unique within this project and location (e.g. zone or region), and can be up to 40 characters with the following restrictions: * Lowercase letters, numbers, and hyphens only. * Must start with a letter. * Must end with a number or a letter.
598 &quot;podSecurityPolicyConfig&quot;: { # Configuration for the PodSecurityPolicy feature. # Configuration for the PodSecurityPolicy feature.
599 &quot;enabled&quot;: True or False, # Enable the PodSecurityPolicy controller for this cluster. If enabled, pods must be valid under a PodSecurityPolicy to be created.
600 },
601 &quot;defaultMaxPodsConstraint&quot;: { # Constraints applied to pods. # The default constraint on the maximum number of pods that can be run simultaneously on a node in the node pool of this cluster. Only honored if cluster created with IP Alias support.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700602 &quot;maxPodsPerNode&quot;: &quot;A String&quot;, # Constraint enforced on the max num of pods per node.
603 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700604 &quot;shieldedNodes&quot;: { # Configuration of Shielded Nodes feature. # Shielded Nodes configuration.
605 &quot;enabled&quot;: True or False, # Whether Shielded Nodes features are enabled on all nodes in this cluster.
606 },
607 &quot;clusterIpv4Cidr&quot;: &quot;A String&quot;, # The IP address range of the container pods in this cluster, in [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) notation (e.g. `10.96.0.0/14`). Leave blank to have one automatically chosen or specify a `/14` block in `10.0.0.0/8`.
608 &quot;description&quot;: &quot;A String&quot;, # An optional description of this cluster.
609 &quot;ipAllocationPolicy&quot;: { # Configuration for controlling how IPs are allocated in the cluster. # Configuration for cluster IP allocation.
610 &quot;servicesIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP address range of the services IPs in this cluster. If blank, a range will be automatically chosen with the default size. This field is only applicable when `use_ip_aliases` is true. Set to blank to have a range chosen with the default size. Set to /netmask (e.g. `/14`) to have a range chosen with a specific netmask. Set to a [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range to use.
611 &quot;clusterSecondaryRangeName&quot;: &quot;A String&quot;, # The name of the secondary range to be used for the cluster CIDR block. The secondary range will be used for pod IP addresses. This must be an existing secondary range associated with the cluster subnetwork. This field is only applicable with use_ip_aliases and create_subnetwork is false.
612 &quot;servicesIpv4Cidr&quot;: &quot;A String&quot;, # This field is deprecated, use services_ipv4_cidr_block.
613 &quot;clusterIpv4Cidr&quot;: &quot;A String&quot;, # This field is deprecated, use cluster_ipv4_cidr_block.
614 &quot;clusterIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP address range for the cluster pod IPs. If this field is set, then `cluster.cluster_ipv4_cidr` must be left blank. This field is only applicable when `use_ip_aliases` is true. Set to blank to have a range chosen with the default size. Set to /netmask (e.g. `/14`) to have a range chosen with a specific netmask. Set to a [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range to use.
615 &quot;nodeIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP address range of the instance IPs in this cluster. This is applicable only if `create_subnetwork` is true. Set to blank to have a range chosen with the default size. Set to /netmask (e.g. `/14`) to have a range chosen with a specific netmask. Set to a [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range to use.
616 &quot;useIpAliases&quot;: True or False, # Whether alias IPs will be used for pod IPs in the cluster. This is used in conjunction with use_routes. It cannot be true if use_routes is true. If both use_ip_aliases and use_routes are false, then the server picks the default IP allocation mode
617 &quot;nodeIpv4Cidr&quot;: &quot;A String&quot;, # This field is deprecated, use node_ipv4_cidr_block.
618 &quot;useRoutes&quot;: True or False, # Whether routes will be used for pod IPs in the cluster. This is used in conjunction with use_ip_aliases. It cannot be true if use_ip_aliases is true. If both use_ip_aliases and use_routes are false, then the server picks the default IP allocation mode
619 &quot;tpuIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP address range of the Cloud TPUs in this cluster. If unspecified, a range will be automatically chosen with the default size. This field is only applicable when `use_ip_aliases` is true. If unspecified, the range will use the default size. Set to /netmask (e.g. `/14`) to have a range chosen with a specific netmask. Set to a [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range to use. This field is deprecated, use cluster.tpu_config.ipv4_cidr_block instead.
620 &quot;allowRouteOverlap&quot;: True or False, # If true, allow allocation of cluster CIDR ranges that overlap with certain kinds of network routes. By default we do not allow cluster CIDR ranges to intersect with any user declared routes. With allow_route_overlap == true, we allow overlapping with CIDR ranges that are larger than the cluster CIDR range. If this field is set to true, then cluster and services CIDRs must be fully-specified (e.g. `10.96.0.0/14`, but not `/14`), which means: 1) When `use_ip_aliases` is true, `cluster_ipv4_cidr_block` and `services_ipv4_cidr_block` must be fully-specified. 2) When `use_ip_aliases` is false, `cluster.cluster_ipv4_cidr` muse be fully-specified.
621 &quot;subnetworkName&quot;: &quot;A String&quot;, # A custom subnetwork name to be used if `create_subnetwork` is true. If this field is empty, then an automatic name will be chosen for the new subnetwork.
622 &quot;createSubnetwork&quot;: True or False, # Whether a new subnetwork will be created automatically for the cluster. This field is only applicable when `use_ip_aliases` is true.
623 &quot;servicesSecondaryRangeName&quot;: &quot;A String&quot;, # The name of the secondary range to be used as for the services CIDR block. The secondary range will be used for service ClusterIPs. This must be an existing secondary range associated with the cluster subnetwork. This field is only applicable with use_ip_aliases and create_subnetwork is false.
624 },
625 &quot;nodeIpv4CidrSize&quot;: 42, # [Output only] The size of the address space on each node for hosting containers. This is provisioned from within the `container_ipv4_cidr` range. This field will only be set when cluster is in route-based network mode.
626 &quot;legacyAbac&quot;: { # Configuration for the legacy Attribute Based Access Control authorization mode. # Configuration for the legacy ABAC authorization mode.
627 &quot;enabled&quot;: True or False, # Whether the ABAC authorizer is enabled for this cluster. When enabled, identities in the system, including service accounts, nodes, and controllers, will have statically granted permissions beyond those provided by the RBAC configuration or IAM.
628 },
629 &quot;master&quot;: { # Master is the configuration for components on master. # Configuration for master components.
630 },
631 &quot;initialClusterVersion&quot;: &quot;A String&quot;, # The initial Kubernetes version for this cluster. Valid versions are those found in validMasterVersions returned by getServerConfig. The version can be upgraded over time; such upgrades are reflected in currentMasterVersion and currentNodeVersion. Users may specify either explicit versions offered by Kubernetes Engine or version aliases, which have the following behavior: - &quot;latest&quot;: picks the highest valid Kubernetes version - &quot;1.X&quot;: picks the highest valid patch+gke.N patch in the 1.X version - &quot;1.X.Y&quot;: picks the highest valid gke.N patch in the 1.X.Y version - &quot;1.X.Y-gke.N&quot;: picks an explicit Kubernetes version - &quot;&quot;,&quot;-&quot;: picks the default Kubernetes version
632 &quot;loggingService&quot;: &quot;A String&quot;, # The logging service the cluster should use to write logs. Currently available options: * `logging.googleapis.com/kubernetes` - The Cloud Logging service with a Kubernetes-native resource model * `logging.googleapis.com` - The legacy Cloud Logging service (no longer available as of GKE 1.15). * `none` - no logs will be exported from the cluster. If left as an empty string,`logging.googleapis.com/kubernetes` will be used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
633 &quot;tpuIpv4CidrBlock&quot;: &quot;A String&quot;, # [Output only] The IP address range of the Cloud TPUs in this cluster, in [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) notation (e.g. `1.2.3.4/29`).
634 &quot;status&quot;: &quot;A String&quot;, # [Output only] The current status of this cluster.
635 &quot;endpoint&quot;: &quot;A String&quot;, # [Output only] The IP address of this cluster&#x27;s master endpoint. The endpoint can be accessed from the internet at `https://username:password@endpoint/`. See the `masterAuth` property of this resource for username and password information.
636 &quot;workloadIdentityConfig&quot;: { # Configuration for the use of Kubernetes Service Accounts in GCP IAM policies. # Configuration for the use of Kubernetes Service Accounts in GCP IAM policies.
637 &quot;identityProvider&quot;: &quot;A String&quot;, # identity provider is the third party identity provider.
638 &quot;workloadPool&quot;: &quot;A String&quot;, # The workload pool to attach all Kubernetes service accounts to.
639 &quot;identityNamespace&quot;: &quot;A String&quot;, # IAM Identity Namespace to attach all Kubernetes Service Accounts to.
640 },
641 &quot;networkConfig&quot;: { # NetworkConfig reports the relative names of network &amp; subnetwork. # Configuration for cluster networking.
642 &quot;enableIntraNodeVisibility&quot;: True or False, # Whether Intra-node visibility is enabled for this cluster. This makes same node pod to pod traffic visible for VPC network.
643 &quot;defaultSnatStatus&quot;: { # DefaultSnatStatus contains the desired state of whether default sNAT should be disabled on the cluster. # Whether the cluster disables default in-node sNAT rules. In-node sNAT rules will be disabled when default_snat_status is disabled. When disabled is set to false, default IP masquerade rules will be applied to the nodes to prevent sNAT on cluster internal traffic.
644 &quot;disabled&quot;: True or False, # Disables cluster default sNAT rules.
645 },
646 &quot;datapathProvider&quot;: &quot;A String&quot;, # The desired datapath provider for this cluster. By default, uses the IPTables-based kube-proxy implementation.
647 &quot;subnetwork&quot;: &quot;A String&quot;, # Output only. The relative name of the Google Compute Engine [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the cluster is connected. Example: projects/my-project/regions/us-central1/subnetworks/my-subnet
648 &quot;network&quot;: &quot;A String&quot;, # Output only. The relative name of the Google Compute Engine network(https://cloud.google.com/compute/docs/networks-and-firewalls#networks) to which the cluster is connected. Example: projects/my-project/global/networks/my-network
649 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700650 &quot;clusterTelemetry&quot;: { # Telemetry integration for the cluster. # Telemetry integration for the cluster.
651 &quot;type&quot;: &quot;A String&quot;, # Type of the integration.
652 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700653 &quot;masterAuth&quot;: { # The authentication information for accessing the master endpoint. Authentication can be done using HTTP basic auth or using client certificates. # The authentication information for accessing the master endpoint. If unspecified, the defaults are used: For clusters before v1.12, if master_auth is unspecified, `username` will be set to &quot;admin&quot;, a random password will be generated, and a client certificate will be issued.
654 &quot;username&quot;: &quot;A String&quot;, # The username to use for HTTP basic authentication to the master endpoint. For clusters v1.6.0 and later, basic authentication can be disabled by leaving username unspecified (or setting it to the empty string). Warning: basic authentication is deprecated, and will be removed in GKE control plane versions 1.19 and newer. For a list of recommended authentication methods, see: https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication
655 &quot;clusterCaCertificate&quot;: &quot;A String&quot;,
656 &quot;clientKey&quot;: &quot;A String&quot;, # [Output only] Base64-encoded private key used by clients to authenticate to the cluster endpoint.
657 &quot;clientCertificate&quot;: &quot;A String&quot;, # [Output only] Base64-encoded public certificate used by clients to authenticate to the cluster endpoint.
658 &quot;password&quot;: &quot;A String&quot;, # The password to use for HTTP basic authentication to the master endpoint. Because the master endpoint is open to the Internet, you should create a strong password. If a password is provided for cluster creation, username must be non-empty. Warning: basic authentication is deprecated, and will be removed in GKE control plane versions 1.19 and newer. For a list of recommended authentication methods, see: https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication
659 &quot;clientCertificateConfig&quot;: { # Configuration for client certificates on the cluster. # Configuration for client certificate authentication on the cluster. For clusters before v1.12, if no configuration is specified, a client certificate is issued.
660 &quot;issueClientCertificate&quot;: True or False, # Issue a client certificate.
661 },
662 },
663 &quot;initialNodeCount&quot;: 42, # The number of nodes to create in this cluster. You must ensure that your Compute Engine [resource quota](https://cloud.google.com/compute/quotas) is sufficient for this number of instances. You must also have available firewall and routes quota. For requests, this field should only be used in lieu of a &quot;node_pool&quot; object, since this configuration (along with the &quot;node_config&quot;) will be used to create a &quot;NodePool&quot; object with an auto-generated name. Do not use this and a node_pool at the same time. This field is deprecated, use node_pool.initial_node_count instead.
664 &quot;notificationConfig&quot;: { # NotificationConfig is the configuration of notifications. # Notification configuration of the cluster.
665 &quot;pubsub&quot;: { # Pub/Sub specific notification config. # Notification config for Pub/Sub.
666 &quot;enabled&quot;: True or False, # Enable notifications for Pub/Sub.
667 &quot;topic&quot;: &quot;A String&quot;, # The desired Pub/Sub topic to which notifications will be sent by GKE. Format is `projects/{project}/topics/{topic}`.
668 },
669 },
670 &quot;privateCluster&quot;: True or False, # If this is a private cluster setup. Private clusters are clusters that, by default have no external IP addresses on the nodes and where nodes and the master communicate over private IP addresses. This field is deprecated, use private_cluster_config.enable_private_nodes instead.
671 &quot;resourceLabels&quot;: { # The resource labels for the cluster to use to annotate any related Google Compute Engine resources.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700672 &quot;a_key&quot;: &quot;A String&quot;,
673 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700674 &quot;masterIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP prefix in CIDR notation to use for the hosted master network. This prefix will be used for assigning private IP addresses to the master or set of masters, as well as the ILB VIP. This field is deprecated, use private_cluster_config.master_ipv4_cidr_block instead.
675 &quot;servicesIpv4Cidr&quot;: &quot;A String&quot;, # [Output only] The IP address range of the Kubernetes services in this cluster, in [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) notation (e.g. `1.2.3.4/29`). Service addresses are typically put in the last `/16` from the container CIDR.
676 &quot;monitoringService&quot;: &quot;A String&quot;, # The monitoring service the cluster should use to write metrics. Currently available options: * &quot;monitoring.googleapis.com/kubernetes&quot; - The Cloud Monitoring service with a Kubernetes-native resource model * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no longer available as of GKE 1.15). * `none` - No metrics will be exported from the cluster. If left as an empty string,`monitoring.googleapis.com/kubernetes` will be used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
677 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output only] Additional information about the current status of this cluster, if available.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700678 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700679 &quot;parent&quot;: &quot;A String&quot;, # The parent (project and location) where the cluster will be created. Specified in the format `projects/*/locations/*`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700680 }
681
682 x__xgafv: string, V1 error format.
683 Allowed values
684 1 - v1 error format
685 2 - v2 error format
686
687Returns:
688 An object of the form:
689
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700690 { # This operation resource represents operations that may have happened or are happening on the cluster. All fields are output only.
691 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
692 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700693 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700694 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
695 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state. Deprecated. Use field error instead.
696 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
697 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
698 &quot;canonicalCode&quot;: &quot;A String&quot;, # Canonical code of the condition.
699 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition Deprecated. Use canonical_code instead.
700 },
701 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700702 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700703 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage. Unset for single-stage operations.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700704 &quot;stages&quot;: [ # Substages of an operation or a stage.
705 # Object with schema name: OperationProgress
706 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700707 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage. Unset for single-stage operations.
708 &quot;metrics&quot;: [ # Progress metric bundle, for example: metrics: [{name: &quot;nodes done&quot;, int_value: 15}, {name: &quot;nodes total&quot;, int_value: 32}] or metrics: [{name: &quot;progress&quot;, double_value: 0.56}, {name: &quot;progress scale&quot;, double_value: 1.0}]
Bu Sun Kim65020912020-05-20 12:08:20 -0700709 { # Progress metric is (string, int|float|string) pair.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700710 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
711 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700712 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
713 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
Bu Sun Kim65020912020-05-20 12:08:20 -0700714 },
715 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700716 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700717 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the operation is taking place. This field is deprecated, use location instead.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700718 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700719 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state. Deprecated. Use field error instead.
720 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700721 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700722 &quot;canonicalCode&quot;: &quot;A String&quot;, # Canonical code of the condition.
723 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition Deprecated. Use canonical_code instead.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700724 },
725 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700726 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error. Deprecated. Use field error instead.
727 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) or [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) in which the cluster resides.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700728 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700729 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
730 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
731 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure.
732 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
733 {
734 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
735 },
736 ],
737 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
738 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
739 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700740 }</pre>
741</div>
742
743<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700744 <code class="details" id="delete">delete(name, clusterId=None, zone=None, projectId=None, x__xgafv=None)</code>
745 <pre>Deletes the cluster, including the Kubernetes endpoint and all worker nodes. Firewalls and routes that were configured during cluster creation are also deleted. Other Google Compute Engine resources that might be in use by the cluster, such as load balancer resources, are not deleted if they weren&#x27;t present when the cluster was initially created.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700746
747Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700748 name: string, The name (project, location, cluster) of the cluster to delete. Specified in the format `projects/*/locations/*/clusters/*`. (required)
749 clusterId: string, Required. Deprecated. The name of the cluster to delete. This field has been deprecated and replaced by the name field.
750 zone: string, Required. Deprecated. The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field.
751 projectId: string, Required. Deprecated. The Google Developers Console [project ID or project number](https://support.google.com/cloud/answer/6158840). This field has been deprecated and replaced by the name field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700752 x__xgafv: string, V1 error format.
753 Allowed values
754 1 - v1 error format
755 2 - v2 error format
756
757Returns:
758 An object of the form:
759
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700760 { # This operation resource represents operations that may have happened or are happening on the cluster. All fields are output only.
761 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
762 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700763 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700764 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
765 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state. Deprecated. Use field error instead.
766 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
767 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
768 &quot;canonicalCode&quot;: &quot;A String&quot;, # Canonical code of the condition.
769 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition Deprecated. Use canonical_code instead.
770 },
771 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700772 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700773 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage. Unset for single-stage operations.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700774 &quot;stages&quot;: [ # Substages of an operation or a stage.
775 # Object with schema name: OperationProgress
776 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700777 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage. Unset for single-stage operations.
778 &quot;metrics&quot;: [ # Progress metric bundle, for example: metrics: [{name: &quot;nodes done&quot;, int_value: 15}, {name: &quot;nodes total&quot;, int_value: 32}] or metrics: [{name: &quot;progress&quot;, double_value: 0.56}, {name: &quot;progress scale&quot;, double_value: 1.0}]
Bu Sun Kim65020912020-05-20 12:08:20 -0700779 { # Progress metric is (string, int|float|string) pair.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700780 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
781 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700782 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
783 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
Bu Sun Kim65020912020-05-20 12:08:20 -0700784 },
785 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700786 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700787 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the operation is taking place. This field is deprecated, use location instead.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700788 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700789 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state. Deprecated. Use field error instead.
790 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700791 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700792 &quot;canonicalCode&quot;: &quot;A String&quot;, # Canonical code of the condition.
793 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition Deprecated. Use canonical_code instead.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700794 },
795 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700796 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error. Deprecated. Use field error instead.
797 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) or [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) in which the cluster resides.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700798 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700799 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
800 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
801 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure.
802 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
803 {
804 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
805 },
806 ],
807 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
808 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
809 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700810 }</pre>
811</div>
812
813<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700814 <code class="details" id="get">get(name, zone=None, projectId=None, clusterId=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700815 <pre>Gets the details for a specific cluster.
816
817Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700818 name: string, The name (project, location, cluster) of the cluster to retrieve. Specified in the format `projects/*/locations/*/clusters/*`. (required)
819 zone: string, Required. Deprecated. The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field.
820 projectId: string, Required. Deprecated. The Google Developers Console [project ID or project number](https://support.google.com/cloud/answer/6158840). This field has been deprecated and replaced by the name field.
821 clusterId: string, Required. Deprecated. The name of the cluster to retrieve. This field has been deprecated and replaced by the name field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700822 x__xgafv: string, V1 error format.
823 Allowed values
824 1 - v1 error format
825 2 - v2 error format
826
827Returns:
828 An object of the form:
829
830 { # A Google Kubernetes Engine cluster.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700831 &quot;confidentialNodes&quot;: { # ConfidentialNodes is configuration for the confidential nodes feature, which makes nodes run on confidential VMs. # Configuration of Confidential Nodes
832 &quot;enabled&quot;: True or False, # Whether Confidential Nodes feature is enabled for all nodes in this cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -0700833 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700834 &quot;maintenancePolicy&quot;: { # MaintenancePolicy defines the maintenance policy to be used for the cluster. # Configure the maintenance policy for this cluster.
835 &quot;window&quot;: { # MaintenanceWindow defines the maintenance window to be used for the cluster. # Specifies the maintenance window in which maintenance may be performed.
836 &quot;recurringWindow&quot;: { # Represents an arbitrary window of time that recurs. # RecurringWindow specifies some number of recurring time periods for maintenance to occur. The time windows may be overlapping. If no maintenance windows are set, maintenance can occur at any time.
837 &quot;recurrence&quot;: &quot;A String&quot;, # An RRULE (https://tools.ietf.org/html/rfc5545#section-3.8.5.3) for how this window reccurs. They go on for the span of time between the start and end time. For example, to have something repeat every weekday, you&#x27;d use: `FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR` To repeat some window daily (equivalent to the DailyMaintenanceWindow): `FREQ=DAILY` For the first weekend of every month: `FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU` This specifies how frequently the window starts. Eg, if you wanted to have a 9-5 UTC-4 window every weekday, you&#x27;d use something like: ``` start time = 2019-01-01T09:00:00-0400 end time = 2019-01-01T17:00:00-0400 recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR ``` Windows can span multiple days. Eg, to make the window encompass every weekend from midnight Saturday till the last minute of Sunday UTC: ``` start time = 2019-01-05T00:00:00Z end time = 2019-01-07T23:59:00Z recurrence = FREQ=WEEKLY;BYDAY=SA ``` Note the start and end time&#x27;s specific dates are largely arbitrary except to specify duration of the window and when it first starts. The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.
838 &quot;window&quot;: { # Represents an arbitrary window of time. # The window of the first recurrence.
839 &quot;startTime&quot;: &quot;A String&quot;, # The time that the window first starts.
840 &quot;endTime&quot;: &quot;A String&quot;, # The time that the window ends. The end time should take place after the start time.
841 },
842 },
843 &quot;dailyMaintenanceWindow&quot;: { # Time window specified for daily maintenance operations. # DailyMaintenanceWindow specifies a daily maintenance operation window.
844 &quot;startTime&quot;: &quot;A String&quot;, # Time within the maintenance window to start the maintenance operations. It must be in format &quot;HH:MM&quot;, where HH : [00-23] and MM : [00-59] GMT.
845 &quot;duration&quot;: &quot;A String&quot;, # [Output only] Duration of the time window, automatically chosen to be smallest possible in the given scenario.
846 },
847 &quot;maintenanceExclusions&quot;: { # Exceptions to maintenance window. Non-emergency maintenance should not occur in these windows.
848 &quot;a_key&quot;: { # Represents an arbitrary window of time.
849 &quot;startTime&quot;: &quot;A String&quot;, # The time that the window first starts.
850 &quot;endTime&quot;: &quot;A String&quot;, # The time that the window ends. The end time should take place after the start time.
851 },
852 },
853 },
854 &quot;resourceVersion&quot;: &quot;A String&quot;, # A hash identifying the version of this policy, so that updates to fields of the policy won&#x27;t accidentally undo intermediate changes (and so that users of the API unaware of some fields won&#x27;t accidentally remove other fields). Make a `get()` request to the cluster to get the current resource version and include it with requests to set the policy.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700855 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700856 &quot;subnetwork&quot;: &quot;A String&quot;, # The name of the Google Compute Engine [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which the cluster is connected. On output this shows the subnetwork ID instead of the name.
857 &quot;networkPolicy&quot;: { # Configuration options for the NetworkPolicy feature. https://kubernetes.io/docs/concepts/services-networking/networkpolicies/ # Configuration options for the NetworkPolicy feature.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700858 &quot;provider&quot;: &quot;A String&quot;, # The selected network policy provider.
859 &quot;enabled&quot;: True or False, # Whether network policy is enabled on the cluster.
860 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700861 &quot;enableKubernetesAlpha&quot;: True or False, # Kubernetes alpha features are enabled on this cluster. This includes alpha API groups (e.g. v1beta1) and features that may not be production ready in the kubernetes version of the master and nodes. The cluster has no SLA for uptime and master/node upgrades are disabled. Alpha enabled clusters are automatically deleted thirty days after creation.
862 &quot;currentNodeCount&quot;: 42, # [Output only] The number of nodes currently in the cluster. Deprecated. Call Kubernetes API directly to retrieve node information.
863 &quot;expireTime&quot;: &quot;A String&quot;, # [Output only] The time the cluster will be automatically deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
864 &quot;selfLink&quot;: &quot;A String&quot;, # [Output only] Server-defined URL for the resource.
865 &quot;nodeConfig&quot;: { # Parameters that describe the nodes in a cluster. # Parameters used in creating the cluster&#x27;s nodes. For requests, this field should only be used in lieu of a &quot;node_pool&quot; object, since this configuration (along with the &quot;initial_node_count&quot;) will be used to create a &quot;NodePool&quot; object with an auto-generated name. Do not use this and a node_pool at the same time. For responses, this field will be populated with the node configuration of the first node pool. (For configuration of each node pool, see `node_pool.config`) If unspecified, the defaults are used. This field is deprecated, use node_pool.config instead.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700866 &quot;sandboxConfig&quot;: { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node.
867 &quot;type&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node.
868 &quot;sandboxType&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node (e.g. &#x27;gvisor&#x27;)
869 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700870 &quot;linuxNodeConfig&quot;: { # Parameters that can be configured on Linux nodes. # Parameters that can be configured on Linux nodes.
871 &quot;sysctls&quot;: { # The Linux kernel parameters to be applied to the nodes and all pods running on the nodes. The following parameters are supported. net.core.netdev_max_backlog net.core.rmem_max net.core.wmem_default net.core.wmem_max net.core.optmem_max net.core.somaxconn net.ipv4.tcp_rmem net.ipv4.tcp_wmem net.ipv4.tcp_tw_reuse
872 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700873 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700874 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700875 &quot;labels&quot;: { # The map of Kubernetes labels (key/value pairs) to be applied to each node. These will added in addition to any default label(s) that Kubernetes may apply to the node. In case of conflict in label keys, the applied set may differ depending on the Kubernetes version -- it&#x27;s best to assume the behavior is undefined and conflicts should be avoided. For more information, including usage and the valid values, see: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
Bu Sun Kim65020912020-05-20 12:08:20 -0700876 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700877 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700878 &quot;localSsdCount&quot;: 42, # The number of local SSD disks to be attached to the node. The limit for this value is dependent upon the maximum number of disks available on a machine per zone. See: https://cloud.google.com/compute/docs/disks/local-ssd for more information.
879 &quot;reservationAffinity&quot;: { # [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) is the configuration of desired reservation which instances could take capacity from. # The optional reservation affinity. Setting this field will apply the specified [Zonal Compute Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) to this node pool.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700880 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Corresponds to the type of reservation consumption.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700881 &quot;values&quot;: [ # Corresponds to the label value(s) of reservation resource(s).
882 &quot;A String&quot;,
883 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700884 &quot;key&quot;: &quot;A String&quot;, # Corresponds to the label key of a reservation resource. To target a SPECIFIC_RESERVATION by name, specify &quot;googleapis.com/reservation-name&quot; as the key and specify the name of your reservation as its value.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700885 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700886 &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;) If unspecified, the default disk type is &#x27;pd-standard&#x27;
887 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to workloads on the node pool. # The workload metadata configuration for this node.
888 &quot;nodeMetadata&quot;: &quot;A String&quot;, # NodeMetadata is the configuration for how to expose metadata to the workloads running on the node.
889 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running on the node pool.
890 },
891 &quot;metadata&quot;: { # The metadata key/value pairs assigned to instances in the cluster. Keys must conform to the regexp `[a-zA-Z0-9-_]+` and be less than 128 bytes in length. These are reflected as part of a URL in the metadata server. Additionally, to avoid ambiguity, keys must not conflict with any other metadata keys for the project or be one of the reserved keys: - &quot;cluster-location&quot; - &quot;cluster-name&quot; - &quot;cluster-uid&quot; - &quot;configure-sh&quot; - &quot;containerd-configure-sh&quot; - &quot;enable-oslogin&quot; - &quot;gci-ensure-gke-docker&quot; - &quot;gci-metrics-enabled&quot; - &quot;gci-update-strategy&quot; - &quot;instance-template&quot; - &quot;kube-env&quot; - &quot;startup-script&quot; - &quot;user-data&quot; - &quot;disable-address-manager&quot; - &quot;windows-startup-script-ps1&quot; - &quot;common-psm1&quot; - &quot;k8s-node-setup-psm1&quot; - &quot;install-ssh-psm1&quot; - &quot;user-profile-psm1&quot; - &quot;serial-port-logging-enable&quot; Values are free-form strings, and only have meaning as interpreted by the image running in the instance. The only restriction placed on them is that each value&#x27;s size must be less than or equal to 32 KB. The total size of all keys and values must be less than 512 KB.
892 &quot;a_key&quot;: &quot;A String&quot;,
893 },
894 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used by this instance. The instance may be scheduled on the specified or newer CPU platform. Applicable values are the friendly names of CPU platforms, such as `minCpuPlatform: &quot;Intel Haswell&quot;` or `minCpuPlatform: &quot;Intel Sandy Bridge&quot;`. For more information, read [how to specify min CPU platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
895 &quot;machineType&quot;: &quot;A String&quot;, # The name of a Google Compute Engine [machine type](https://cloud.google.com/compute/docs/machine-types). If unspecified, the default machine type is `e2-medium`.
896 &quot;preemptible&quot;: True or False, # Whether the nodes are created as preemptible VM instances. See: https://cloud.google.com/compute/docs/instances/preemptible for more inforamtion about preemptible VM instances.
897 &quot;nodeGroup&quot;: &quot;A String&quot;, # Setting this field will assign instances of this pool to run on the specified node group. This is useful for running workloads on [sole tenant nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes).
898 &quot;oauthScopes&quot;: [ # The set of Google API scopes to be made available on all of the node VMs under the &quot;default&quot; service account. The following scopes are recommended, but not required, and by default are not included: * `https://www.googleapis.com/auth/compute` is required for mounting persistent storage on your nodes. * `https://www.googleapis.com/auth/devstorage.read_only` is required for communicating with **gcr.io** (the [Google Container Registry](https://cloud.google.com/container-registry/)). If unspecified, no scopes are added, unless Cloud Logging or Cloud Monitoring are enabled, in which case their required scopes will be added.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700899 &quot;A String&quot;,
900 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700901 &quot;imageType&quot;: &quot;A String&quot;, # The image type to use for this node. Note that for a given image type, the latest version of it will be used.
902 &quot;accelerators&quot;: [ # A list of hardware accelerators to be attached to each node. See https://cloud.google.com/compute/docs/gpus for more information about support for GPUs.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700903 { # AcceleratorConfig represents a Hardware Accelerator request.
904 &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of the accelerator cards exposed to an instance.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700905 &quot;acceleratorType&quot;: &quot;A String&quot;, # The accelerator type resource name. List of supported accelerators [here](https://cloud.google.com/compute/docs/gpus)
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700906 },
907 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700908 &quot;taints&quot;: [ # List of kubernetes taints to be applied to each node. For more information, including usage and the valid values, see: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
909 { # Kubernetes taint is comprised of three fields: key, value, and effect. Effect can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute. See [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration) for more information, including usage and the valid values.
910 &quot;effect&quot;: &quot;A String&quot;, # Effect for taint.
911 &quot;value&quot;: &quot;A String&quot;, # Value for taint.
912 &quot;key&quot;: &quot;A String&quot;, # Key for taint.
913 },
914 ],
915 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs. Specify the email address of the Service Account; otherwise, if no Service Account is specified, the &quot;default&quot; service account is used.
916 &quot;bootDiskKmsKey&quot;: &quot;A String&quot;, # The Customer Managed Encryption Key used to encrypt the boot disk attached to each node in the node pool. This should be of the form projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME]. For more information about protecting resources with Cloud KMS Keys please see: https://cloud.google.com/compute/docs/disks/customer-managed-encryption
917 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
918 &quot;enableSecureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled. Secure Boot helps ensure that the system only runs authentic software by verifying the digital signature of all boot components, and halting the boot process if signature verification fails.
919 &quot;enableIntegrityMonitoring&quot;: True or False, # Defines whether the instance has integrity monitoring enabled. Enables monitoring and attestation of the boot integrity of the instance. The attestation is performed against the integrity policy baseline. This baseline is initially derived from the implicitly trusted boot image when the instance is created.
920 },
921 &quot;kubeletConfig&quot;: { # Node kubelet configs. # Node kubelet configs.
922 &quot;cpuCfsQuota&quot;: True or False, # Enable CPU CFS quota enforcement for containers that specify CPU limits. This option is enabled by default which makes kubelet use CFS quota (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to enforce container CPU limits. Otherwise, CPU limits will not be enforced at all. Disable this option to mitigate CPU throttling problems while still having your pods to be in Guaranteed QoS class by specifying the CPU limits. The default value is &#x27;true&#x27; if unspecified.
923 &quot;cpuManagerPolicy&quot;: &quot;A String&quot;, # Control the CPU management policy on the node. See https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/ The following values are allowed. - &quot;none&quot;: the default, which represents the existing scheduling behavior. - &quot;static&quot;: allows pods with certain resource characteristics to be granted increased CPU affinity and exclusivity on the node. The default value is &#x27;none&#x27; if unspecified.
924 &quot;cpuCfsQuotaPeriod&quot;: &quot;A String&quot;, # Set the CPU CFS quota period value &#x27;cpu.cfs_period_us&#x27;. The string must be a sequence of decimal numbers, each with optional fraction and a unit suffix, such as &quot;300ms&quot;. Valid time units are &quot;ns&quot;, &quot;us&quot; (or &quot;µs&quot;), &quot;ms&quot;, &quot;s&quot;, &quot;m&quot;, &quot;h&quot;. The value must be a positive duration.
925 },
926 &quot;tags&quot;: [ # The list of instance tags applied to all nodes. Tags are used to identify valid sources or targets for network firewalls and are specified by the client during cluster or node pool creation. Each tag within the list must comply with RFC1035.
927 &quot;A String&quot;,
928 ],
929 &quot;diskSizeGb&quot;: 42, # Size of the disk attached to each node, specified in GB. The smallest allowed disk size is 10GB. If unspecified, the default disk size is 100GB.
Bu Sun Kim65020912020-05-20 12:08:20 -0700930 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700931 &quot;autoscaling&quot;: { # ClusterAutoscaling contains global, per-cluster information required by Cluster Autoscaler to automatically adjust the size of the cluster and create/delete node pools based on the current needs. # Cluster-level autoscaling configuration.
932 &quot;resourceLimits&quot;: [ # Contains global constraints regarding minimum and maximum amount of resources in the cluster.
933 { # Contains information about amount of some resource in the cluster. For memory, value should be in GB.
934 &quot;minimum&quot;: &quot;A String&quot;, # Minimum amount of the resource in the cluster.
935 &quot;resourceType&quot;: &quot;A String&quot;, # Resource name &quot;cpu&quot;, &quot;memory&quot; or gpu-specific string.
936 &quot;maximum&quot;: &quot;A String&quot;, # Maximum amount of the resource in the cluster.
937 },
938 ],
939 &quot;autoprovisioningNodePoolDefaults&quot;: { # AutoprovisioningNodePoolDefaults contains defaults for a node pool created by NAP. # AutoprovisioningNodePoolDefaults contains defaults for a node pool created by NAP.
940 &quot;bootDiskKmsKey&quot;: &quot;A String&quot;, # The Customer Managed Encryption Key used to encrypt the boot disk attached to each node in the node pool. This should be of the form projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME]. For more information about protecting resources with Cloud KMS Keys please see: https://cloud.google.com/compute/docs/disks/customer-managed-encryption
941 &quot;management&quot;: { # NodeManagement defines the set of node management services turned on for the node pool. # NodeManagement configuration for this NodePool.
942 &quot;autoRepair&quot;: True or False, # Whether the nodes will be automatically repaired.
943 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how the Auto Upgrades will proceed. # Specifies the Auto Upgrade knobs for the node pool.
944 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence with the description of the upgrade.
945 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence with the approximate start time for the upgrades, in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
946 },
947 &quot;autoUpgrade&quot;: True or False, # Whether the nodes will be automatically upgraded.
948 },
949 &quot;oauthScopes&quot;: [ # The set of Google API scopes to be made available on all of the node VMs under the &quot;default&quot; service account. The following scopes are recommended, but not required, and by default are not included: * `https://www.googleapis.com/auth/compute` is required for mounting persistent storage on your nodes. * `https://www.googleapis.com/auth/devstorage.read_only` is required for communicating with **gcr.io** (the [Google Container Registry](https://cloud.google.com/container-registry/)). If unspecified, no scopes are added, unless Cloud Logging or Cloud Monitoring are enabled, in which case their required scopes will be added.
950 &quot;A String&quot;,
951 ],
952 &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;) If unspecified, the default disk type is &#x27;pd-standard&#x27;
953 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used by this instance. The instance may be scheduled on the specified or newer CPU platform. Applicable values are the friendly names of CPU platforms, such as `minCpuPlatform: &quot;Intel Haswell&quot;` or `minCpuPlatform: &quot;Intel Sandy Bridge&quot;`. For more information, read [how to specify min CPU platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform) To unset the min cpu platform field pass &quot;automatic&quot; as field value.
954 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
955 &quot;enableSecureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled. Secure Boot helps ensure that the system only runs authentic software by verifying the digital signature of all boot components, and halting the boot process if signature verification fails.
956 &quot;enableIntegrityMonitoring&quot;: True or False, # Defines whether the instance has integrity monitoring enabled. Enables monitoring and attestation of the boot integrity of the instance. The attestation is performed against the integrity policy baseline. This baseline is initially derived from the implicitly trusted boot image when the instance is created.
957 },
958 &quot;upgradeSettings&quot;: { # These upgrade settings control the level of parallelism and the level of disruption caused by an upgrade. maxUnavailable controls the number of nodes that can be simultaneously unavailable. maxSurge controls the number of additional nodes that can be added to the node pool temporarily for the time of the upgrade to increase the number of available nodes. (maxUnavailable + maxSurge) determines the level of parallelism (how many nodes are being upgraded at the same time). Note: upgrades inevitably introduce some disruption since workloads need to be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0, this holds true. (Disruption stays within the limits of PodDisruptionBudget, if it is configured.) Consider a hypothetical node pool with 5 nodes having maxSurge=2, maxUnavailable=1. This means the upgrade process upgrades 3 nodes simultaneously. It creates 2 additional (upgraded) nodes, then it brings down 3 old (not yet upgraded) nodes at the same time. This ensures that there are always at least 4 nodes available. # Upgrade settings control disruption and speed of the upgrade.
959 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size of the node pool during the upgrade process.
960 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during the upgrade process. A node is considered available if its status is Ready.
961 },
962 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs. Specify the email address of the Service Account; otherwise, if no Service Account is specified, the &quot;default&quot; service account is used.
963 &quot;diskSizeGb&quot;: 42, # Size of the disk attached to each node, specified in GB. The smallest allowed disk size is 10GB. If unspecified, the default disk size is 100GB.
964 },
965 &quot;autoprovisioningLocations&quot;: [ # The list of Google Compute Engine [zones](https://cloud.google.com/compute/docs/zones#available) in which the NodePool&#x27;s nodes can be created by NAP.
966 &quot;A String&quot;,
967 ],
968 &quot;enableNodeAutoprovisioning&quot;: True or False, # Enables automatic node pool creation and deletion.
969 &quot;autoscalingProfile&quot;: &quot;A String&quot;, # Defines autoscaling behaviour.
970 },
971 &quot;binaryAuthorization&quot;: { # Configuration for Binary Authorization. # Configuration for Binary Authorization.
972 &quot;enabled&quot;: True or False, # Enable Binary Authorization for this cluster. If enabled, all container images will be validated by Google Binauthz.
973 },
974 &quot;currentNodeVersion&quot;: &quot;A String&quot;, # [Output only] Deprecated, use [NodePool.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1beta1/projects.locations.clusters.nodePools) instead. The current version of the node software components. If they are currently at multiple versions because they&#x27;re in the process of being upgraded, this reflects the minimum version of all nodes.
975 &quot;conditions&quot;: [ # Which conditions caused the current cluster state.
976 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
977 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
978 &quot;canonicalCode&quot;: &quot;A String&quot;, # Canonical code of the condition.
979 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition Deprecated. Use canonical_code instead.
980 },
981 ],
982 &quot;releaseChannel&quot;: { # ReleaseChannel indicates which release channel a cluster is subscribed to. Release channels are arranged in order of risk. When a cluster is subscribed to a release channel, Google maintains both the master version and the node version. Node auto-upgrade defaults to true and cannot be disabled. # Release channel configuration.
983 &quot;channel&quot;: &quot;A String&quot;, # channel specifies which release channel the cluster is subscribed to.
984 },
985 &quot;instanceGroupUrls&quot;: [ # Deprecated. Use node_pools.instance_group_urls.
986 &quot;A String&quot;,
987 ],
988 &quot;masterAuthorizedNetworksConfig&quot;: { # Configuration options for the master authorized networks feature. Enabled master authorized networks will disallow all external traffic to access Kubernetes master through HTTPS except traffic from the given CIDR blocks, Google Compute Engine Public IPs and Google Prod IPs. # The configuration options for master authorized networks feature.
989 &quot;cidrBlocks&quot;: [ # cidr_blocks define up to 10 external networks that could access Kubernetes master through HTTPS.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700990 { # CidrBlock contains an optional name and one CIDR block.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700991 &quot;cidrBlock&quot;: &quot;A String&quot;, # cidr_block must be specified in CIDR notation.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700992 &quot;displayName&quot;: &quot;A String&quot;, # display_name is an optional field for users to identify CIDR blocks.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700993 },
994 ],
995 &quot;enabled&quot;: True or False, # Whether or not master authorized networks is enabled.
996 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700997 &quot;network&quot;: &quot;A String&quot;, # The name of the Google Compute Engine [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks) to which the cluster is connected. If left unspecified, the `default` network will be used. On output this shows the network ID instead of the name.
998 &quot;authenticatorGroupsConfig&quot;: { # Configuration for returning group information from authenticators. # Configuration controlling RBAC group membership information.
999 &quot;enabled&quot;: True or False, # Whether this cluster should return group membership lookups during authentication using a group of security groups.
1000 &quot;securityGroup&quot;: &quot;A String&quot;, # The name of the security group-of-groups to be used. Only relevant if enabled = true.
Dan O'Mearadd494642020-05-01 07:42:23 -07001001 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001002 &quot;locations&quot;: [ # The list of Google Compute Engine [zones](https://cloud.google.com/compute/docs/zones#available) in which the cluster&#x27;s nodes should be located.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001003 &quot;A String&quot;,
1004 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001005 &quot;resourceUsageExportConfig&quot;: { # Configuration for exporting cluster resource usages. # Configuration for exporting resource usages. Resource usage export is disabled when this config unspecified.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001006 &quot;consumptionMeteringConfig&quot;: { # Parameters for controlling consumption metering. # Configuration to enable resource consumption metering.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001007 &quot;enabled&quot;: True or False, # Whether to enable consumption metering for this cluster. If enabled, a second BigQuery table will be created to hold resource consumption records.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001008 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001009 &quot;enableNetworkEgressMetering&quot;: True or False, # Whether to enable network egress metering for this cluster. If enabled, a daemonset will be created in the cluster to meter network egress traffic.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001010 &quot;bigqueryDestination&quot;: { # Parameters for using BigQuery as the destination of resource usage export. # Configuration to use BigQuery as usage export destination.
1011 &quot;datasetId&quot;: &quot;A String&quot;, # The ID of a BigQuery Dataset.
1012 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001013 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001014 &quot;verticalPodAutoscaling&quot;: { # VerticalPodAutoscaling contains global, per-cluster information required by Vertical Pod Autoscaler to automatically adjust the resources of pods controlled by it. # Cluster-level Vertical Pod Autoscaling configuration.
1015 &quot;enabled&quot;: True or False, # Enables vertical pod autoscaling.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001016 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001017 &quot;databaseEncryption&quot;: { # Configuration of etcd encryption. # Configuration of etcd encryption.
1018 &quot;keyName&quot;: &quot;A String&quot;, # Name of CloudKMS key to use for the encryption of secrets in etcd. Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key
1019 &quot;state&quot;: &quot;A String&quot;, # Denotes the state of etcd encryption.
1020 },
1021 &quot;enableTpu&quot;: True or False, # Enable the ability to use Cloud TPUs in this cluster. This field is deprecated, use tpu_config.enabled instead.
1022 &quot;currentMasterVersion&quot;: &quot;A String&quot;, # [Output only] The current software version of the master endpoint.
1023 &quot;zone&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides. This field is deprecated, use location instead.
1024 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) or [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) in which the cluster resides.
1025 &quot;privateClusterConfig&quot;: { # Configuration options for private clusters. # Configuration for private cluster.
1026 &quot;masterGlobalAccessConfig&quot;: { # Configuration for controlling master global access settings. # Controls master global access settings.
1027 &quot;enabled&quot;: True or False, # Whenever master is accessible globally or not.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001028 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001029 &quot;enablePrivateNodes&quot;: True or False, # Whether nodes have internal IP addresses only. If enabled, all nodes are given only RFC 1918 private addresses and communicate with the master via private networking.
1030 &quot;enablePrivateEndpoint&quot;: True or False, # Whether the master&#x27;s internal IP address is used as the cluster endpoint.
1031 &quot;masterIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP range in CIDR notation to use for the hosted master network. This range will be used for assigning internal IP addresses to the master or set of masters, as well as the ILB VIP. This range must not overlap with any other ranges in use within the cluster&#x27;s network.
1032 &quot;publicEndpoint&quot;: &quot;A String&quot;, # Output only. The external IP address of this cluster&#x27;s master endpoint.
1033 &quot;privateEndpoint&quot;: &quot;A String&quot;, # Output only. The internal IP address of this cluster&#x27;s master endpoint.
1034 &quot;peeringName&quot;: &quot;A String&quot;, # Output only. The peering name in the customer VPC used by this cluster.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001035 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001036 &quot;labelFingerprint&quot;: &quot;A String&quot;, # The fingerprint of the set of labels for this cluster.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001037 &quot;tpuConfig&quot;: { # Configuration for Cloud TPU. # Configuration for Cloud TPU support;
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001038 &quot;enabled&quot;: True or False, # Whether Cloud TPU integration is enabled or not.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001039 &quot;useServiceNetworking&quot;: True or False, # Whether to use service networking for Cloud TPU or not.
1040 &quot;ipv4CidrBlock&quot;: &quot;A String&quot;, # IPv4 CIDR block reserved for Cloud TPU in the VPC.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001041 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001042 &quot;createTime&quot;: &quot;A String&quot;, # [Output only] The time the cluster was created, in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1043 &quot;nodePools&quot;: [ # The node pools associated with this cluster. This field should not be set if &quot;node_config&quot; or &quot;initial_node_count&quot; are specified.
1044 { # NodePool contains the name and configuration for a cluster&#x27;s node pool. Node pools are a set of nodes (i.e. VM&#x27;s), with a common configuration and specification, under the control of the cluster master. They may have a set of Kubernetes labels applied to them, which may be used to reference them during pod scheduling. They may also be resized up or down, to accommodate the workload.
1045 &quot;version&quot;: &quot;A String&quot;, # The version of the Kubernetes of this node.
1046 &quot;name&quot;: &quot;A String&quot;, # The name of the node pool.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001047 &quot;status&quot;: &quot;A String&quot;, # [Output only] The status of the nodes in this pool instance.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001048 &quot;upgradeSettings&quot;: { # These upgrade settings control the level of parallelism and the level of disruption caused by an upgrade. maxUnavailable controls the number of nodes that can be simultaneously unavailable. maxSurge controls the number of additional nodes that can be added to the node pool temporarily for the time of the upgrade to increase the number of available nodes. (maxUnavailable + maxSurge) determines the level of parallelism (how many nodes are being upgraded at the same time). Note: upgrades inevitably introduce some disruption since workloads need to be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0, this holds true. (Disruption stays within the limits of PodDisruptionBudget, if it is configured.) Consider a hypothetical node pool with 5 nodes having maxSurge=2, maxUnavailable=1. This means the upgrade process upgrades 3 nodes simultaneously. It creates 2 additional (upgraded) nodes, then it brings down 3 old (not yet upgraded) nodes at the same time. This ensures that there are always at least 4 nodes available. # Upgrade settings control disruption and speed of the upgrade.
1049 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size of the node pool during the upgrade process.
1050 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during the upgrade process. A node is considered available if its status is Ready.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001051 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001052 &quot;config&quot;: { # Parameters that describe the nodes in a cluster. # The node configuration of the pool.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001053 &quot;sandboxConfig&quot;: { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node.
1054 &quot;type&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node.
1055 &quot;sandboxType&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node (e.g. &#x27;gvisor&#x27;)
1056 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001057 &quot;linuxNodeConfig&quot;: { # Parameters that can be configured on Linux nodes. # Parameters that can be configured on Linux nodes.
1058 &quot;sysctls&quot;: { # The Linux kernel parameters to be applied to the nodes and all pods running on the nodes. The following parameters are supported. net.core.netdev_max_backlog net.core.rmem_max net.core.wmem_default net.core.wmem_max net.core.optmem_max net.core.somaxconn net.ipv4.tcp_rmem net.ipv4.tcp_wmem net.ipv4.tcp_tw_reuse
1059 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001060 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001061 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001062 &quot;labels&quot;: { # The map of Kubernetes labels (key/value pairs) to be applied to each node. These will added in addition to any default label(s) that Kubernetes may apply to the node. In case of conflict in label keys, the applied set may differ depending on the Kubernetes version -- it&#x27;s best to assume the behavior is undefined and conflicts should be avoided. For more information, including usage and the valid values, see: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001063 &quot;a_key&quot;: &quot;A String&quot;,
1064 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001065 &quot;localSsdCount&quot;: 42, # The number of local SSD disks to be attached to the node. The limit for this value is dependent upon the maximum number of disks available on a machine per zone. See: https://cloud.google.com/compute/docs/disks/local-ssd for more information.
1066 &quot;reservationAffinity&quot;: { # [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) is the configuration of desired reservation which instances could take capacity from. # The optional reservation affinity. Setting this field will apply the specified [Zonal Compute Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) to this node pool.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001067 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Corresponds to the type of reservation consumption.
Bu Sun Kim65020912020-05-20 12:08:20 -07001068 &quot;values&quot;: [ # Corresponds to the label value(s) of reservation resource(s).
1069 &quot;A String&quot;,
1070 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001071 &quot;key&quot;: &quot;A String&quot;, # Corresponds to the label key of a reservation resource. To target a SPECIFIC_RESERVATION by name, specify &quot;googleapis.com/reservation-name&quot; as the key and specify the name of your reservation as its value.
Bu Sun Kim65020912020-05-20 12:08:20 -07001072 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001073 &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;) If unspecified, the default disk type is &#x27;pd-standard&#x27;
1074 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to workloads on the node pool. # The workload metadata configuration for this node.
1075 &quot;nodeMetadata&quot;: &quot;A String&quot;, # NodeMetadata is the configuration for how to expose metadata to the workloads running on the node.
1076 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running on the node pool.
1077 },
1078 &quot;metadata&quot;: { # The metadata key/value pairs assigned to instances in the cluster. Keys must conform to the regexp `[a-zA-Z0-9-_]+` and be less than 128 bytes in length. These are reflected as part of a URL in the metadata server. Additionally, to avoid ambiguity, keys must not conflict with any other metadata keys for the project or be one of the reserved keys: - &quot;cluster-location&quot; - &quot;cluster-name&quot; - &quot;cluster-uid&quot; - &quot;configure-sh&quot; - &quot;containerd-configure-sh&quot; - &quot;enable-oslogin&quot; - &quot;gci-ensure-gke-docker&quot; - &quot;gci-metrics-enabled&quot; - &quot;gci-update-strategy&quot; - &quot;instance-template&quot; - &quot;kube-env&quot; - &quot;startup-script&quot; - &quot;user-data&quot; - &quot;disable-address-manager&quot; - &quot;windows-startup-script-ps1&quot; - &quot;common-psm1&quot; - &quot;k8s-node-setup-psm1&quot; - &quot;install-ssh-psm1&quot; - &quot;user-profile-psm1&quot; - &quot;serial-port-logging-enable&quot; Values are free-form strings, and only have meaning as interpreted by the image running in the instance. The only restriction placed on them is that each value&#x27;s size must be less than or equal to 32 KB. The total size of all keys and values must be less than 512 KB.
1079 &quot;a_key&quot;: &quot;A String&quot;,
1080 },
1081 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used by this instance. The instance may be scheduled on the specified or newer CPU platform. Applicable values are the friendly names of CPU platforms, such as `minCpuPlatform: &quot;Intel Haswell&quot;` or `minCpuPlatform: &quot;Intel Sandy Bridge&quot;`. For more information, read [how to specify min CPU platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
1082 &quot;machineType&quot;: &quot;A String&quot;, # The name of a Google Compute Engine [machine type](https://cloud.google.com/compute/docs/machine-types). If unspecified, the default machine type is `e2-medium`.
1083 &quot;preemptible&quot;: True or False, # Whether the nodes are created as preemptible VM instances. See: https://cloud.google.com/compute/docs/instances/preemptible for more inforamtion about preemptible VM instances.
1084 &quot;nodeGroup&quot;: &quot;A String&quot;, # Setting this field will assign instances of this pool to run on the specified node group. This is useful for running workloads on [sole tenant nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes).
1085 &quot;oauthScopes&quot;: [ # The set of Google API scopes to be made available on all of the node VMs under the &quot;default&quot; service account. The following scopes are recommended, but not required, and by default are not included: * `https://www.googleapis.com/auth/compute` is required for mounting persistent storage on your nodes. * `https://www.googleapis.com/auth/devstorage.read_only` is required for communicating with **gcr.io** (the [Google Container Registry](https://cloud.google.com/container-registry/)). If unspecified, no scopes are added, unless Cloud Logging or Cloud Monitoring are enabled, in which case their required scopes will be added.
Bu Sun Kim65020912020-05-20 12:08:20 -07001086 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001087 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001088 &quot;imageType&quot;: &quot;A String&quot;, # The image type to use for this node. Note that for a given image type, the latest version of it will be used.
1089 &quot;accelerators&quot;: [ # A list of hardware accelerators to be attached to each node. See https://cloud.google.com/compute/docs/gpus for more information about support for GPUs.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001090 { # AcceleratorConfig represents a Hardware Accelerator request.
1091 &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of the accelerator cards exposed to an instance.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001092 &quot;acceleratorType&quot;: &quot;A String&quot;, # The accelerator type resource name. List of supported accelerators [here](https://cloud.google.com/compute/docs/gpus)
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001093 },
1094 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001095 &quot;taints&quot;: [ # List of kubernetes taints to be applied to each node. For more information, including usage and the valid values, see: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
1096 { # Kubernetes taint is comprised of three fields: key, value, and effect. Effect can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute. See [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration) for more information, including usage and the valid values.
1097 &quot;effect&quot;: &quot;A String&quot;, # Effect for taint.
1098 &quot;value&quot;: &quot;A String&quot;, # Value for taint.
1099 &quot;key&quot;: &quot;A String&quot;, # Key for taint.
1100 },
1101 ],
1102 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs. Specify the email address of the Service Account; otherwise, if no Service Account is specified, the &quot;default&quot; service account is used.
1103 &quot;bootDiskKmsKey&quot;: &quot;A String&quot;, # The Customer Managed Encryption Key used to encrypt the boot disk attached to each node in the node pool. This should be of the form projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME]. For more information about protecting resources with Cloud KMS Keys please see: https://cloud.google.com/compute/docs/disks/customer-managed-encryption
1104 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
1105 &quot;enableSecureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled. Secure Boot helps ensure that the system only runs authentic software by verifying the digital signature of all boot components, and halting the boot process if signature verification fails.
1106 &quot;enableIntegrityMonitoring&quot;: True or False, # Defines whether the instance has integrity monitoring enabled. Enables monitoring and attestation of the boot integrity of the instance. The attestation is performed against the integrity policy baseline. This baseline is initially derived from the implicitly trusted boot image when the instance is created.
1107 },
1108 &quot;kubeletConfig&quot;: { # Node kubelet configs. # Node kubelet configs.
1109 &quot;cpuCfsQuota&quot;: True or False, # Enable CPU CFS quota enforcement for containers that specify CPU limits. This option is enabled by default which makes kubelet use CFS quota (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to enforce container CPU limits. Otherwise, CPU limits will not be enforced at all. Disable this option to mitigate CPU throttling problems while still having your pods to be in Guaranteed QoS class by specifying the CPU limits. The default value is &#x27;true&#x27; if unspecified.
1110 &quot;cpuManagerPolicy&quot;: &quot;A String&quot;, # Control the CPU management policy on the node. See https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/ The following values are allowed. - &quot;none&quot;: the default, which represents the existing scheduling behavior. - &quot;static&quot;: allows pods with certain resource characteristics to be granted increased CPU affinity and exclusivity on the node. The default value is &#x27;none&#x27; if unspecified.
1111 &quot;cpuCfsQuotaPeriod&quot;: &quot;A String&quot;, # Set the CPU CFS quota period value &#x27;cpu.cfs_period_us&#x27;. The string must be a sequence of decimal numbers, each with optional fraction and a unit suffix, such as &quot;300ms&quot;. Valid time units are &quot;ns&quot;, &quot;us&quot; (or &quot;µs&quot;), &quot;ms&quot;, &quot;s&quot;, &quot;m&quot;, &quot;h&quot;. The value must be a positive duration.
1112 },
1113 &quot;tags&quot;: [ # The list of instance tags applied to all nodes. Tags are used to identify valid sources or targets for network firewalls and are specified by the client during cluster or node pool creation. Each tag within the list must comply with RFC1035.
1114 &quot;A String&quot;,
1115 ],
1116 &quot;diskSizeGb&quot;: 42, # Size of the disk attached to each node, specified in GB. The smallest allowed disk size is 10GB. If unspecified, the default disk size is 100GB.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001117 },
1118 &quot;selfLink&quot;: &quot;A String&quot;, # [Output only] Server-defined URL for the resource.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001119 &quot;management&quot;: { # NodeManagement defines the set of node management services turned on for the node pool. # NodeManagement configuration for this NodePool.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001120 &quot;autoRepair&quot;: True or False, # Whether the nodes will be automatically repaired.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001121 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how the Auto Upgrades will proceed. # Specifies the Auto Upgrade knobs for the node pool.
1122 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence with the description of the upgrade.
1123 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence with the approximate start time for the upgrades, in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001124 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001125 &quot;autoUpgrade&quot;: True or False, # Whether the nodes will be automatically upgraded.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001126 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001127 &quot;autoscaling&quot;: { # NodePoolAutoscaling contains information required by cluster autoscaler to adjust the size of the node pool to the current cluster usage. # Autoscaler configuration for this NodePool. Autoscaler is enabled only if a valid configuration is present.
1128 &quot;autoprovisioned&quot;: True or False, # Can this node pool be deleted automatically.
1129 &quot;minNodeCount&quot;: 42, # Minimum number of nodes in the NodePool. Must be &gt;= 1 and &lt;= max_node_count.
1130 &quot;enabled&quot;: True or False, # Is autoscaling enabled for this node pool.
1131 &quot;maxNodeCount&quot;: 42, # Maximum number of nodes in the NodePool. Must be &gt;= min_node_count. There has to enough quota to scale up the cluster.
1132 },
1133 &quot;maxPodsConstraint&quot;: { # Constraints applied to pods. # The constraint on the maximum number of pods that can be run simultaneously on a node in the node pool.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001134 &quot;maxPodsPerNode&quot;: &quot;A String&quot;, # Constraint enforced on the max num of pods per node.
1135 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001136 &quot;initialNodeCount&quot;: 42, # The initial node count for the pool. You must ensure that your Compute Engine [resource quota](https://cloud.google.com/compute/quotas) is sufficient for this number of instances. You must also have available firewall and routes quota.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001137 &quot;podIpv4CidrSize&quot;: 42, # [Output only] The pod CIDR block size per node in this node pool.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001138 &quot;instanceGroupUrls&quot;: [ # [Output only] The resource URLs of the [managed instance groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances) associated with this node pool.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001139 &quot;A String&quot;,
1140 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001141 &quot;locations&quot;: [ # The list of Google Compute Engine [zones](https://cloud.google.com/compute/docs/zones#available) in which the NodePool&#x27;s nodes should be located.
1142 &quot;A String&quot;,
1143 ],
1144 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output only] Additional information about the current status of this node pool instance, if available.
1145 &quot;conditions&quot;: [ # Which conditions caused the current node pool state.
1146 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
1147 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
1148 &quot;canonicalCode&quot;: &quot;A String&quot;, # Canonical code of the condition.
1149 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition Deprecated. Use canonical_code instead.
1150 },
1151 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001152 },
1153 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001154 &quot;addonsConfig&quot;: { # Configuration for the addons that can be automatically spun up in the cluster, enabling additional functionality. # Configurations for the various addons available to run in the cluster.
1155 &quot;cloudRunConfig&quot;: { # Configuration options for the Cloud Run feature. # Configuration for the Cloud Run addon. The `IstioConfig` addon must be enabled in order to enable Cloud Run addon. This option can only be enabled at cluster creation time.
1156 &quot;loadBalancerType&quot;: &quot;A String&quot;, # Which load balancer type is installed for Cloud Run.
1157 &quot;disabled&quot;: True or False, # Whether Cloud Run addon is enabled for this cluster.
1158 },
1159 &quot;configConnectorConfig&quot;: { # Configuration options for the Config Connector add-on. # Configuration for the ConfigConnector add-on, a Kubernetes extension to manage hosted GCP services through the Kubernetes API
1160 &quot;enabled&quot;: True or False, # Whether Cloud Connector is enabled for this cluster.
1161 },
1162 &quot;horizontalPodAutoscaling&quot;: { # Configuration options for the horizontal pod autoscaling feature, which increases or decreases the number of replica pods a replication controller has based on the resource usage of the existing pods. # Configuration for the horizontal pod autoscaling feature, which increases or decreases the number of replica pods a replication controller has based on the resource usage of the existing pods.
1163 &quot;disabled&quot;: True or False, # Whether the Horizontal Pod Autoscaling feature is enabled in the cluster. When enabled, it ensures that metrics are collected into Stackdriver Monitoring.
1164 },
1165 &quot;gcePersistentDiskCsiDriverConfig&quot;: { # Configuration for the Compute Engine PD CSI driver. This option can only be enabled at cluster creation time. # Configuration for the Compute Engine Persistent Disk CSI driver.
1166 &quot;enabled&quot;: True or False, # Whether the Compute Engine PD CSI driver is enabled for this cluster.
1167 },
1168 &quot;httpLoadBalancing&quot;: { # Configuration options for the HTTP (L7) load balancing controller addon, which makes it easy to set up HTTP load balancers for services in a cluster. # Configuration for the HTTP (L7) load balancing controller addon, which makes it easy to set up HTTP load balancers for services in a cluster.
1169 &quot;disabled&quot;: True or False, # Whether the HTTP Load Balancing controller is enabled in the cluster. When enabled, it runs a small pod in the cluster that manages the load balancers.
1170 },
1171 &quot;dnsCacheConfig&quot;: { # Configuration for NodeLocal DNSCache # Configuration for NodeLocalDNS, a dns cache running on cluster nodes
1172 &quot;enabled&quot;: True or False, # Whether NodeLocal DNSCache is enabled for this cluster.
1173 },
1174 &quot;kubernetesDashboard&quot;: { # Configuration for the Kubernetes Dashboard. # Configuration for the Kubernetes Dashboard. This addon is deprecated, and will be disabled in 1.15. It is recommended to use the Cloud Console to manage and monitor your Kubernetes clusters, workloads and applications. For more information, see: https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
1175 &quot;disabled&quot;: True or False, # Whether the Kubernetes Dashboard is enabled for this cluster.
1176 },
1177 &quot;kalmConfig&quot;: { # Configuration options for the KALM addon. # Configuration for the KALM addon, which manages the lifecycle of k8s applications.
1178 &quot;enabled&quot;: True or False, # Whether KALM is enabled for this cluster.
1179 },
1180 &quot;networkPolicyConfig&quot;: { # Configuration for NetworkPolicy. This only tracks whether the addon is enabled or not on the Master, it does not track whether network policy is enabled for the nodes. # Configuration for NetworkPolicy. This only tracks whether the addon is enabled or not on the Master, it does not track whether network policy is enabled for the nodes.
1181 &quot;disabled&quot;: True or False, # Whether NetworkPolicy is enabled for this cluster.
1182 },
1183 &quot;istioConfig&quot;: { # Configuration options for Istio addon. # Configuration for Istio, an open platform to connect, manage, and secure microservices.
1184 &quot;auth&quot;: &quot;A String&quot;, # The specified Istio auth mode, either none, or mutual TLS.
1185 &quot;disabled&quot;: True or False, # Whether Istio is enabled for this cluster.
1186 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001187 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001188 &quot;name&quot;: &quot;A String&quot;, # The name of this cluster. The name must be unique within this project and location (e.g. zone or region), and can be up to 40 characters with the following restrictions: * Lowercase letters, numbers, and hyphens only. * Must start with a letter. * Must end with a number or a letter.
1189 &quot;podSecurityPolicyConfig&quot;: { # Configuration for the PodSecurityPolicy feature. # Configuration for the PodSecurityPolicy feature.
1190 &quot;enabled&quot;: True or False, # Enable the PodSecurityPolicy controller for this cluster. If enabled, pods must be valid under a PodSecurityPolicy to be created.
1191 },
1192 &quot;defaultMaxPodsConstraint&quot;: { # Constraints applied to pods. # The default constraint on the maximum number of pods that can be run simultaneously on a node in the node pool of this cluster. Only honored if cluster created with IP Alias support.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001193 &quot;maxPodsPerNode&quot;: &quot;A String&quot;, # Constraint enforced on the max num of pods per node.
1194 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001195 &quot;shieldedNodes&quot;: { # Configuration of Shielded Nodes feature. # Shielded Nodes configuration.
1196 &quot;enabled&quot;: True or False, # Whether Shielded Nodes features are enabled on all nodes in this cluster.
1197 },
1198 &quot;clusterIpv4Cidr&quot;: &quot;A String&quot;, # The IP address range of the container pods in this cluster, in [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) notation (e.g. `10.96.0.0/14`). Leave blank to have one automatically chosen or specify a `/14` block in `10.0.0.0/8`.
1199 &quot;description&quot;: &quot;A String&quot;, # An optional description of this cluster.
1200 &quot;ipAllocationPolicy&quot;: { # Configuration for controlling how IPs are allocated in the cluster. # Configuration for cluster IP allocation.
1201 &quot;servicesIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP address range of the services IPs in this cluster. If blank, a range will be automatically chosen with the default size. This field is only applicable when `use_ip_aliases` is true. Set to blank to have a range chosen with the default size. Set to /netmask (e.g. `/14`) to have a range chosen with a specific netmask. Set to a [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range to use.
1202 &quot;clusterSecondaryRangeName&quot;: &quot;A String&quot;, # The name of the secondary range to be used for the cluster CIDR block. The secondary range will be used for pod IP addresses. This must be an existing secondary range associated with the cluster subnetwork. This field is only applicable with use_ip_aliases and create_subnetwork is false.
1203 &quot;servicesIpv4Cidr&quot;: &quot;A String&quot;, # This field is deprecated, use services_ipv4_cidr_block.
1204 &quot;clusterIpv4Cidr&quot;: &quot;A String&quot;, # This field is deprecated, use cluster_ipv4_cidr_block.
1205 &quot;clusterIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP address range for the cluster pod IPs. If this field is set, then `cluster.cluster_ipv4_cidr` must be left blank. This field is only applicable when `use_ip_aliases` is true. Set to blank to have a range chosen with the default size. Set to /netmask (e.g. `/14`) to have a range chosen with a specific netmask. Set to a [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range to use.
1206 &quot;nodeIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP address range of the instance IPs in this cluster. This is applicable only if `create_subnetwork` is true. Set to blank to have a range chosen with the default size. Set to /netmask (e.g. `/14`) to have a range chosen with a specific netmask. Set to a [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range to use.
1207 &quot;useIpAliases&quot;: True or False, # Whether alias IPs will be used for pod IPs in the cluster. This is used in conjunction with use_routes. It cannot be true if use_routes is true. If both use_ip_aliases and use_routes are false, then the server picks the default IP allocation mode
1208 &quot;nodeIpv4Cidr&quot;: &quot;A String&quot;, # This field is deprecated, use node_ipv4_cidr_block.
1209 &quot;useRoutes&quot;: True or False, # Whether routes will be used for pod IPs in the cluster. This is used in conjunction with use_ip_aliases. It cannot be true if use_ip_aliases is true. If both use_ip_aliases and use_routes are false, then the server picks the default IP allocation mode
1210 &quot;tpuIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP address range of the Cloud TPUs in this cluster. If unspecified, a range will be automatically chosen with the default size. This field is only applicable when `use_ip_aliases` is true. If unspecified, the range will use the default size. Set to /netmask (e.g. `/14`) to have a range chosen with a specific netmask. Set to a [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range to use. This field is deprecated, use cluster.tpu_config.ipv4_cidr_block instead.
1211 &quot;allowRouteOverlap&quot;: True or False, # If true, allow allocation of cluster CIDR ranges that overlap with certain kinds of network routes. By default we do not allow cluster CIDR ranges to intersect with any user declared routes. With allow_route_overlap == true, we allow overlapping with CIDR ranges that are larger than the cluster CIDR range. If this field is set to true, then cluster and services CIDRs must be fully-specified (e.g. `10.96.0.0/14`, but not `/14`), which means: 1) When `use_ip_aliases` is true, `cluster_ipv4_cidr_block` and `services_ipv4_cidr_block` must be fully-specified. 2) When `use_ip_aliases` is false, `cluster.cluster_ipv4_cidr` muse be fully-specified.
1212 &quot;subnetworkName&quot;: &quot;A String&quot;, # A custom subnetwork name to be used if `create_subnetwork` is true. If this field is empty, then an automatic name will be chosen for the new subnetwork.
1213 &quot;createSubnetwork&quot;: True or False, # Whether a new subnetwork will be created automatically for the cluster. This field is only applicable when `use_ip_aliases` is true.
1214 &quot;servicesSecondaryRangeName&quot;: &quot;A String&quot;, # The name of the secondary range to be used as for the services CIDR block. The secondary range will be used for service ClusterIPs. This must be an existing secondary range associated with the cluster subnetwork. This field is only applicable with use_ip_aliases and create_subnetwork is false.
1215 },
1216 &quot;nodeIpv4CidrSize&quot;: 42, # [Output only] The size of the address space on each node for hosting containers. This is provisioned from within the `container_ipv4_cidr` range. This field will only be set when cluster is in route-based network mode.
1217 &quot;legacyAbac&quot;: { # Configuration for the legacy Attribute Based Access Control authorization mode. # Configuration for the legacy ABAC authorization mode.
1218 &quot;enabled&quot;: True or False, # Whether the ABAC authorizer is enabled for this cluster. When enabled, identities in the system, including service accounts, nodes, and controllers, will have statically granted permissions beyond those provided by the RBAC configuration or IAM.
1219 },
1220 &quot;master&quot;: { # Master is the configuration for components on master. # Configuration for master components.
1221 },
1222 &quot;initialClusterVersion&quot;: &quot;A String&quot;, # The initial Kubernetes version for this cluster. Valid versions are those found in validMasterVersions returned by getServerConfig. The version can be upgraded over time; such upgrades are reflected in currentMasterVersion and currentNodeVersion. Users may specify either explicit versions offered by Kubernetes Engine or version aliases, which have the following behavior: - &quot;latest&quot;: picks the highest valid Kubernetes version - &quot;1.X&quot;: picks the highest valid patch+gke.N patch in the 1.X version - &quot;1.X.Y&quot;: picks the highest valid gke.N patch in the 1.X.Y version - &quot;1.X.Y-gke.N&quot;: picks an explicit Kubernetes version - &quot;&quot;,&quot;-&quot;: picks the default Kubernetes version
1223 &quot;loggingService&quot;: &quot;A String&quot;, # The logging service the cluster should use to write logs. Currently available options: * `logging.googleapis.com/kubernetes` - The Cloud Logging service with a Kubernetes-native resource model * `logging.googleapis.com` - The legacy Cloud Logging service (no longer available as of GKE 1.15). * `none` - no logs will be exported from the cluster. If left as an empty string,`logging.googleapis.com/kubernetes` will be used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
1224 &quot;tpuIpv4CidrBlock&quot;: &quot;A String&quot;, # [Output only] The IP address range of the Cloud TPUs in this cluster, in [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) notation (e.g. `1.2.3.4/29`).
1225 &quot;status&quot;: &quot;A String&quot;, # [Output only] The current status of this cluster.
1226 &quot;endpoint&quot;: &quot;A String&quot;, # [Output only] The IP address of this cluster&#x27;s master endpoint. The endpoint can be accessed from the internet at `https://username:password@endpoint/`. See the `masterAuth` property of this resource for username and password information.
1227 &quot;workloadIdentityConfig&quot;: { # Configuration for the use of Kubernetes Service Accounts in GCP IAM policies. # Configuration for the use of Kubernetes Service Accounts in GCP IAM policies.
1228 &quot;identityProvider&quot;: &quot;A String&quot;, # identity provider is the third party identity provider.
1229 &quot;workloadPool&quot;: &quot;A String&quot;, # The workload pool to attach all Kubernetes service accounts to.
1230 &quot;identityNamespace&quot;: &quot;A String&quot;, # IAM Identity Namespace to attach all Kubernetes Service Accounts to.
1231 },
1232 &quot;networkConfig&quot;: { # NetworkConfig reports the relative names of network &amp; subnetwork. # Configuration for cluster networking.
1233 &quot;enableIntraNodeVisibility&quot;: True or False, # Whether Intra-node visibility is enabled for this cluster. This makes same node pod to pod traffic visible for VPC network.
1234 &quot;defaultSnatStatus&quot;: { # DefaultSnatStatus contains the desired state of whether default sNAT should be disabled on the cluster. # Whether the cluster disables default in-node sNAT rules. In-node sNAT rules will be disabled when default_snat_status is disabled. When disabled is set to false, default IP masquerade rules will be applied to the nodes to prevent sNAT on cluster internal traffic.
1235 &quot;disabled&quot;: True or False, # Disables cluster default sNAT rules.
1236 },
1237 &quot;datapathProvider&quot;: &quot;A String&quot;, # The desired datapath provider for this cluster. By default, uses the IPTables-based kube-proxy implementation.
1238 &quot;subnetwork&quot;: &quot;A String&quot;, # Output only. The relative name of the Google Compute Engine [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the cluster is connected. Example: projects/my-project/regions/us-central1/subnetworks/my-subnet
1239 &quot;network&quot;: &quot;A String&quot;, # Output only. The relative name of the Google Compute Engine network(https://cloud.google.com/compute/docs/networks-and-firewalls#networks) to which the cluster is connected. Example: projects/my-project/global/networks/my-network
1240 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001241 &quot;clusterTelemetry&quot;: { # Telemetry integration for the cluster. # Telemetry integration for the cluster.
1242 &quot;type&quot;: &quot;A String&quot;, # Type of the integration.
1243 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001244 &quot;masterAuth&quot;: { # The authentication information for accessing the master endpoint. Authentication can be done using HTTP basic auth or using client certificates. # The authentication information for accessing the master endpoint. If unspecified, the defaults are used: For clusters before v1.12, if master_auth is unspecified, `username` will be set to &quot;admin&quot;, a random password will be generated, and a client certificate will be issued.
1245 &quot;username&quot;: &quot;A String&quot;, # The username to use for HTTP basic authentication to the master endpoint. For clusters v1.6.0 and later, basic authentication can be disabled by leaving username unspecified (or setting it to the empty string). Warning: basic authentication is deprecated, and will be removed in GKE control plane versions 1.19 and newer. For a list of recommended authentication methods, see: https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication
1246 &quot;clusterCaCertificate&quot;: &quot;A String&quot;,
1247 &quot;clientKey&quot;: &quot;A String&quot;, # [Output only] Base64-encoded private key used by clients to authenticate to the cluster endpoint.
1248 &quot;clientCertificate&quot;: &quot;A String&quot;, # [Output only] Base64-encoded public certificate used by clients to authenticate to the cluster endpoint.
1249 &quot;password&quot;: &quot;A String&quot;, # The password to use for HTTP basic authentication to the master endpoint. Because the master endpoint is open to the Internet, you should create a strong password. If a password is provided for cluster creation, username must be non-empty. Warning: basic authentication is deprecated, and will be removed in GKE control plane versions 1.19 and newer. For a list of recommended authentication methods, see: https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication
1250 &quot;clientCertificateConfig&quot;: { # Configuration for client certificates on the cluster. # Configuration for client certificate authentication on the cluster. For clusters before v1.12, if no configuration is specified, a client certificate is issued.
1251 &quot;issueClientCertificate&quot;: True or False, # Issue a client certificate.
1252 },
1253 },
1254 &quot;initialNodeCount&quot;: 42, # The number of nodes to create in this cluster. You must ensure that your Compute Engine [resource quota](https://cloud.google.com/compute/quotas) is sufficient for this number of instances. You must also have available firewall and routes quota. For requests, this field should only be used in lieu of a &quot;node_pool&quot; object, since this configuration (along with the &quot;node_config&quot;) will be used to create a &quot;NodePool&quot; object with an auto-generated name. Do not use this and a node_pool at the same time. This field is deprecated, use node_pool.initial_node_count instead.
1255 &quot;notificationConfig&quot;: { # NotificationConfig is the configuration of notifications. # Notification configuration of the cluster.
1256 &quot;pubsub&quot;: { # Pub/Sub specific notification config. # Notification config for Pub/Sub.
1257 &quot;enabled&quot;: True or False, # Enable notifications for Pub/Sub.
1258 &quot;topic&quot;: &quot;A String&quot;, # The desired Pub/Sub topic to which notifications will be sent by GKE. Format is `projects/{project}/topics/{topic}`.
1259 },
1260 },
1261 &quot;privateCluster&quot;: True or False, # If this is a private cluster setup. Private clusters are clusters that, by default have no external IP addresses on the nodes and where nodes and the master communicate over private IP addresses. This field is deprecated, use private_cluster_config.enable_private_nodes instead.
1262 &quot;resourceLabels&quot;: { # The resource labels for the cluster to use to annotate any related Google Compute Engine resources.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001263 &quot;a_key&quot;: &quot;A String&quot;,
1264 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001265 &quot;masterIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP prefix in CIDR notation to use for the hosted master network. This prefix will be used for assigning private IP addresses to the master or set of masters, as well as the ILB VIP. This field is deprecated, use private_cluster_config.master_ipv4_cidr_block instead.
1266 &quot;servicesIpv4Cidr&quot;: &quot;A String&quot;, # [Output only] The IP address range of the Kubernetes services in this cluster, in [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) notation (e.g. `1.2.3.4/29`). Service addresses are typically put in the last `/16` from the container CIDR.
1267 &quot;monitoringService&quot;: &quot;A String&quot;, # The monitoring service the cluster should use to write metrics. Currently available options: * &quot;monitoring.googleapis.com/kubernetes&quot; - The Cloud Monitoring service with a Kubernetes-native resource model * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no longer available as of GKE 1.15). * `none` - No metrics will be exported from the cluster. If left as an empty string,`monitoring.googleapis.com/kubernetes` will be used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
1268 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output only] Additional information about the current status of this cluster, if available.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001269 }</pre>
1270</div>
1271
1272<div class="method">
1273 <code class="details" id="getJwks">getJwks(parent, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001274 <pre>Gets the public component of the cluster signing keys in JSON Web Key format. This API is not yet intended for general use, and is not available for all clusters.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001275
1276Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001277 parent: string, The cluster (project, location, cluster id) to get keys for. Specified in the format `projects/*/locations/*/clusters/*`. (required)
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001278 x__xgafv: string, V1 error format.
1279 Allowed values
1280 1 - v1 error format
1281 2 - v2 error format
1282
1283Returns:
1284 An object of the form:
1285
1286 { # GetJSONWebKeysResponse is a valid JSON Web Key Set as specififed in rfc 7517
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001287 &quot;cacheHeader&quot;: { # RFC-2616: cache control support # OnePlatform automatically extracts this field and uses it to set the HTTP Cache-Control header.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001288 &quot;expires&quot;: &quot;A String&quot;, # 14.21 response cache expires, in RFC 1123 date format
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001289 &quot;directive&quot;: &quot;A String&quot;, # 14.9 request and response directives
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001290 &quot;age&quot;: &quot;A String&quot;, # 14.6 response cache age, in seconds since the response is generated
1291 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001292 &quot;keys&quot;: [ # The public component of the keys used by the cluster to sign token requests.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001293 { # Jwk is a JSON Web Key as specified in RFC 7517
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001294 &quot;y&quot;: &quot;A String&quot;, # Used for ECDSA keys.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001295 &quot;kty&quot;: &quot;A String&quot;, # Key Type.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001296 &quot;x&quot;: &quot;A String&quot;, # Used for ECDSA keys.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001297 &quot;kid&quot;: &quot;A String&quot;, # Key ID.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001298 &quot;crv&quot;: &quot;A String&quot;, # Used for ECDSA keys.
1299 &quot;use&quot;: &quot;A String&quot;, # Permitted uses for the public keys.
1300 &quot;alg&quot;: &quot;A String&quot;, # Algorithm.
1301 &quot;n&quot;: &quot;A String&quot;, # Used for RSA keys.
1302 &quot;e&quot;: &quot;A String&quot;, # Used for RSA keys.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001303 },
1304 ],
1305 }</pre>
1306</div>
1307
1308<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001309 <code class="details" id="list">list(parent, projectId=None, zone=None, x__xgafv=None)</code>
1310 <pre>Lists all clusters owned by a project in either the specified zone or all zones.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001311
1312Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001313 parent: string, The parent (project and location) where the clusters will be listed. Specified in the format `projects/*/locations/*`. Location &quot;-&quot; matches all zones and all regions. (required)
1314 projectId: string, Required. Deprecated. The Google Developers Console [project ID or project number](https://support.google.com/cloud/answer/6158840). This field has been deprecated and replaced by the parent field.
1315 zone: string, Required. Deprecated. The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides, or &quot;-&quot; for all zones. This field has been deprecated and replaced by the parent field.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001316 x__xgafv: string, V1 error format.
1317 Allowed values
1318 1 - v1 error format
1319 2 - v2 error format
1320
1321Returns:
1322 An object of the form:
1323
1324 { # ListClustersResponse is the result of ListClustersRequest.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001325 &quot;missingZones&quot;: [ # If any zones are listed here, the list of clusters returned may be missing those zones.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001326 &quot;A String&quot;,
1327 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001328 &quot;clusters&quot;: [ # A list of clusters in the project in the specified zone, or across all ones.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001329 { # A Google Kubernetes Engine cluster.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001330 &quot;confidentialNodes&quot;: { # ConfidentialNodes is configuration for the confidential nodes feature, which makes nodes run on confidential VMs. # Configuration of Confidential Nodes
1331 &quot;enabled&quot;: True or False, # Whether Confidential Nodes feature is enabled for all nodes in this cluster.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001332 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001333 &quot;maintenancePolicy&quot;: { # MaintenancePolicy defines the maintenance policy to be used for the cluster. # Configure the maintenance policy for this cluster.
1334 &quot;window&quot;: { # MaintenanceWindow defines the maintenance window to be used for the cluster. # Specifies the maintenance window in which maintenance may be performed.
1335 &quot;recurringWindow&quot;: { # Represents an arbitrary window of time that recurs. # RecurringWindow specifies some number of recurring time periods for maintenance to occur. The time windows may be overlapping. If no maintenance windows are set, maintenance can occur at any time.
1336 &quot;recurrence&quot;: &quot;A String&quot;, # An RRULE (https://tools.ietf.org/html/rfc5545#section-3.8.5.3) for how this window reccurs. They go on for the span of time between the start and end time. For example, to have something repeat every weekday, you&#x27;d use: `FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR` To repeat some window daily (equivalent to the DailyMaintenanceWindow): `FREQ=DAILY` For the first weekend of every month: `FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU` This specifies how frequently the window starts. Eg, if you wanted to have a 9-5 UTC-4 window every weekday, you&#x27;d use something like: ``` start time = 2019-01-01T09:00:00-0400 end time = 2019-01-01T17:00:00-0400 recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR ``` Windows can span multiple days. Eg, to make the window encompass every weekend from midnight Saturday till the last minute of Sunday UTC: ``` start time = 2019-01-05T00:00:00Z end time = 2019-01-07T23:59:00Z recurrence = FREQ=WEEKLY;BYDAY=SA ``` Note the start and end time&#x27;s specific dates are largely arbitrary except to specify duration of the window and when it first starts. The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.
1337 &quot;window&quot;: { # Represents an arbitrary window of time. # The window of the first recurrence.
1338 &quot;startTime&quot;: &quot;A String&quot;, # The time that the window first starts.
1339 &quot;endTime&quot;: &quot;A String&quot;, # The time that the window ends. The end time should take place after the start time.
1340 },
1341 },
1342 &quot;dailyMaintenanceWindow&quot;: { # Time window specified for daily maintenance operations. # DailyMaintenanceWindow specifies a daily maintenance operation window.
1343 &quot;startTime&quot;: &quot;A String&quot;, # Time within the maintenance window to start the maintenance operations. It must be in format &quot;HH:MM&quot;, where HH : [00-23] and MM : [00-59] GMT.
1344 &quot;duration&quot;: &quot;A String&quot;, # [Output only] Duration of the time window, automatically chosen to be smallest possible in the given scenario.
1345 },
1346 &quot;maintenanceExclusions&quot;: { # Exceptions to maintenance window. Non-emergency maintenance should not occur in these windows.
1347 &quot;a_key&quot;: { # Represents an arbitrary window of time.
1348 &quot;startTime&quot;: &quot;A String&quot;, # The time that the window first starts.
1349 &quot;endTime&quot;: &quot;A String&quot;, # The time that the window ends. The end time should take place after the start time.
1350 },
1351 },
1352 },
1353 &quot;resourceVersion&quot;: &quot;A String&quot;, # A hash identifying the version of this policy, so that updates to fields of the policy won&#x27;t accidentally undo intermediate changes (and so that users of the API unaware of some fields won&#x27;t accidentally remove other fields). Make a `get()` request to the cluster to get the current resource version and include it with requests to set the policy.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001354 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001355 &quot;subnetwork&quot;: &quot;A String&quot;, # The name of the Google Compute Engine [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which the cluster is connected. On output this shows the subnetwork ID instead of the name.
1356 &quot;networkPolicy&quot;: { # Configuration options for the NetworkPolicy feature. https://kubernetes.io/docs/concepts/services-networking/networkpolicies/ # Configuration options for the NetworkPolicy feature.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001357 &quot;provider&quot;: &quot;A String&quot;, # The selected network policy provider.
1358 &quot;enabled&quot;: True or False, # Whether network policy is enabled on the cluster.
1359 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001360 &quot;enableKubernetesAlpha&quot;: True or False, # Kubernetes alpha features are enabled on this cluster. This includes alpha API groups (e.g. v1beta1) and features that may not be production ready in the kubernetes version of the master and nodes. The cluster has no SLA for uptime and master/node upgrades are disabled. Alpha enabled clusters are automatically deleted thirty days after creation.
1361 &quot;currentNodeCount&quot;: 42, # [Output only] The number of nodes currently in the cluster. Deprecated. Call Kubernetes API directly to retrieve node information.
1362 &quot;expireTime&quot;: &quot;A String&quot;, # [Output only] The time the cluster will be automatically deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1363 &quot;selfLink&quot;: &quot;A String&quot;, # [Output only] Server-defined URL for the resource.
1364 &quot;nodeConfig&quot;: { # Parameters that describe the nodes in a cluster. # Parameters used in creating the cluster&#x27;s nodes. For requests, this field should only be used in lieu of a &quot;node_pool&quot; object, since this configuration (along with the &quot;initial_node_count&quot;) will be used to create a &quot;NodePool&quot; object with an auto-generated name. Do not use this and a node_pool at the same time. For responses, this field will be populated with the node configuration of the first node pool. (For configuration of each node pool, see `node_pool.config`) If unspecified, the defaults are used. This field is deprecated, use node_pool.config instead.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001365 &quot;sandboxConfig&quot;: { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node.
1366 &quot;type&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node.
1367 &quot;sandboxType&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node (e.g. &#x27;gvisor&#x27;)
1368 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001369 &quot;linuxNodeConfig&quot;: { # Parameters that can be configured on Linux nodes. # Parameters that can be configured on Linux nodes.
1370 &quot;sysctls&quot;: { # The Linux kernel parameters to be applied to the nodes and all pods running on the nodes. The following parameters are supported. net.core.netdev_max_backlog net.core.rmem_max net.core.wmem_default net.core.wmem_max net.core.optmem_max net.core.somaxconn net.ipv4.tcp_rmem net.ipv4.tcp_wmem net.ipv4.tcp_tw_reuse
1371 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001372 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001373 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001374 &quot;labels&quot;: { # The map of Kubernetes labels (key/value pairs) to be applied to each node. These will added in addition to any default label(s) that Kubernetes may apply to the node. In case of conflict in label keys, the applied set may differ depending on the Kubernetes version -- it&#x27;s best to assume the behavior is undefined and conflicts should be avoided. For more information, including usage and the valid values, see: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
Bu Sun Kim65020912020-05-20 12:08:20 -07001375 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001376 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001377 &quot;localSsdCount&quot;: 42, # The number of local SSD disks to be attached to the node. The limit for this value is dependent upon the maximum number of disks available on a machine per zone. See: https://cloud.google.com/compute/docs/disks/local-ssd for more information.
1378 &quot;reservationAffinity&quot;: { # [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) is the configuration of desired reservation which instances could take capacity from. # The optional reservation affinity. Setting this field will apply the specified [Zonal Compute Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) to this node pool.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001379 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Corresponds to the type of reservation consumption.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001380 &quot;values&quot;: [ # Corresponds to the label value(s) of reservation resource(s).
1381 &quot;A String&quot;,
1382 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001383 &quot;key&quot;: &quot;A String&quot;, # Corresponds to the label key of a reservation resource. To target a SPECIFIC_RESERVATION by name, specify &quot;googleapis.com/reservation-name&quot; as the key and specify the name of your reservation as its value.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001384 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001385 &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;) If unspecified, the default disk type is &#x27;pd-standard&#x27;
1386 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to workloads on the node pool. # The workload metadata configuration for this node.
1387 &quot;nodeMetadata&quot;: &quot;A String&quot;, # NodeMetadata is the configuration for how to expose metadata to the workloads running on the node.
1388 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running on the node pool.
1389 },
1390 &quot;metadata&quot;: { # The metadata key/value pairs assigned to instances in the cluster. Keys must conform to the regexp `[a-zA-Z0-9-_]+` and be less than 128 bytes in length. These are reflected as part of a URL in the metadata server. Additionally, to avoid ambiguity, keys must not conflict with any other metadata keys for the project or be one of the reserved keys: - &quot;cluster-location&quot; - &quot;cluster-name&quot; - &quot;cluster-uid&quot; - &quot;configure-sh&quot; - &quot;containerd-configure-sh&quot; - &quot;enable-oslogin&quot; - &quot;gci-ensure-gke-docker&quot; - &quot;gci-metrics-enabled&quot; - &quot;gci-update-strategy&quot; - &quot;instance-template&quot; - &quot;kube-env&quot; - &quot;startup-script&quot; - &quot;user-data&quot; - &quot;disable-address-manager&quot; - &quot;windows-startup-script-ps1&quot; - &quot;common-psm1&quot; - &quot;k8s-node-setup-psm1&quot; - &quot;install-ssh-psm1&quot; - &quot;user-profile-psm1&quot; - &quot;serial-port-logging-enable&quot; Values are free-form strings, and only have meaning as interpreted by the image running in the instance. The only restriction placed on them is that each value&#x27;s size must be less than or equal to 32 KB. The total size of all keys and values must be less than 512 KB.
1391 &quot;a_key&quot;: &quot;A String&quot;,
1392 },
1393 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used by this instance. The instance may be scheduled on the specified or newer CPU platform. Applicable values are the friendly names of CPU platforms, such as `minCpuPlatform: &quot;Intel Haswell&quot;` or `minCpuPlatform: &quot;Intel Sandy Bridge&quot;`. For more information, read [how to specify min CPU platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
1394 &quot;machineType&quot;: &quot;A String&quot;, # The name of a Google Compute Engine [machine type](https://cloud.google.com/compute/docs/machine-types). If unspecified, the default machine type is `e2-medium`.
1395 &quot;preemptible&quot;: True or False, # Whether the nodes are created as preemptible VM instances. See: https://cloud.google.com/compute/docs/instances/preemptible for more inforamtion about preemptible VM instances.
1396 &quot;nodeGroup&quot;: &quot;A String&quot;, # Setting this field will assign instances of this pool to run on the specified node group. This is useful for running workloads on [sole tenant nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes).
1397 &quot;oauthScopes&quot;: [ # The set of Google API scopes to be made available on all of the node VMs under the &quot;default&quot; service account. The following scopes are recommended, but not required, and by default are not included: * `https://www.googleapis.com/auth/compute` is required for mounting persistent storage on your nodes. * `https://www.googleapis.com/auth/devstorage.read_only` is required for communicating with **gcr.io** (the [Google Container Registry](https://cloud.google.com/container-registry/)). If unspecified, no scopes are added, unless Cloud Logging or Cloud Monitoring are enabled, in which case their required scopes will be added.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001398 &quot;A String&quot;,
1399 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001400 &quot;imageType&quot;: &quot;A String&quot;, # The image type to use for this node. Note that for a given image type, the latest version of it will be used.
1401 &quot;accelerators&quot;: [ # A list of hardware accelerators to be attached to each node. See https://cloud.google.com/compute/docs/gpus for more information about support for GPUs.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001402 { # AcceleratorConfig represents a Hardware Accelerator request.
1403 &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of the accelerator cards exposed to an instance.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001404 &quot;acceleratorType&quot;: &quot;A String&quot;, # The accelerator type resource name. List of supported accelerators [here](https://cloud.google.com/compute/docs/gpus)
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001405 },
1406 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001407 &quot;taints&quot;: [ # List of kubernetes taints to be applied to each node. For more information, including usage and the valid values, see: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
1408 { # Kubernetes taint is comprised of three fields: key, value, and effect. Effect can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute. See [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration) for more information, including usage and the valid values.
1409 &quot;effect&quot;: &quot;A String&quot;, # Effect for taint.
1410 &quot;value&quot;: &quot;A String&quot;, # Value for taint.
1411 &quot;key&quot;: &quot;A String&quot;, # Key for taint.
1412 },
1413 ],
1414 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs. Specify the email address of the Service Account; otherwise, if no Service Account is specified, the &quot;default&quot; service account is used.
1415 &quot;bootDiskKmsKey&quot;: &quot;A String&quot;, # The Customer Managed Encryption Key used to encrypt the boot disk attached to each node in the node pool. This should be of the form projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME]. For more information about protecting resources with Cloud KMS Keys please see: https://cloud.google.com/compute/docs/disks/customer-managed-encryption
1416 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
1417 &quot;enableSecureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled. Secure Boot helps ensure that the system only runs authentic software by verifying the digital signature of all boot components, and halting the boot process if signature verification fails.
1418 &quot;enableIntegrityMonitoring&quot;: True or False, # Defines whether the instance has integrity monitoring enabled. Enables monitoring and attestation of the boot integrity of the instance. The attestation is performed against the integrity policy baseline. This baseline is initially derived from the implicitly trusted boot image when the instance is created.
1419 },
1420 &quot;kubeletConfig&quot;: { # Node kubelet configs. # Node kubelet configs.
1421 &quot;cpuCfsQuota&quot;: True or False, # Enable CPU CFS quota enforcement for containers that specify CPU limits. This option is enabled by default which makes kubelet use CFS quota (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to enforce container CPU limits. Otherwise, CPU limits will not be enforced at all. Disable this option to mitigate CPU throttling problems while still having your pods to be in Guaranteed QoS class by specifying the CPU limits. The default value is &#x27;true&#x27; if unspecified.
1422 &quot;cpuManagerPolicy&quot;: &quot;A String&quot;, # Control the CPU management policy on the node. See https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/ The following values are allowed. - &quot;none&quot;: the default, which represents the existing scheduling behavior. - &quot;static&quot;: allows pods with certain resource characteristics to be granted increased CPU affinity and exclusivity on the node. The default value is &#x27;none&#x27; if unspecified.
1423 &quot;cpuCfsQuotaPeriod&quot;: &quot;A String&quot;, # Set the CPU CFS quota period value &#x27;cpu.cfs_period_us&#x27;. The string must be a sequence of decimal numbers, each with optional fraction and a unit suffix, such as &quot;300ms&quot;. Valid time units are &quot;ns&quot;, &quot;us&quot; (or &quot;µs&quot;), &quot;ms&quot;, &quot;s&quot;, &quot;m&quot;, &quot;h&quot;. The value must be a positive duration.
1424 },
1425 &quot;tags&quot;: [ # The list of instance tags applied to all nodes. Tags are used to identify valid sources or targets for network firewalls and are specified by the client during cluster or node pool creation. Each tag within the list must comply with RFC1035.
1426 &quot;A String&quot;,
1427 ],
1428 &quot;diskSizeGb&quot;: 42, # Size of the disk attached to each node, specified in GB. The smallest allowed disk size is 10GB. If unspecified, the default disk size is 100GB.
Bu Sun Kim65020912020-05-20 12:08:20 -07001429 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001430 &quot;autoscaling&quot;: { # ClusterAutoscaling contains global, per-cluster information required by Cluster Autoscaler to automatically adjust the size of the cluster and create/delete node pools based on the current needs. # Cluster-level autoscaling configuration.
1431 &quot;resourceLimits&quot;: [ # Contains global constraints regarding minimum and maximum amount of resources in the cluster.
1432 { # Contains information about amount of some resource in the cluster. For memory, value should be in GB.
1433 &quot;minimum&quot;: &quot;A String&quot;, # Minimum amount of the resource in the cluster.
1434 &quot;resourceType&quot;: &quot;A String&quot;, # Resource name &quot;cpu&quot;, &quot;memory&quot; or gpu-specific string.
1435 &quot;maximum&quot;: &quot;A String&quot;, # Maximum amount of the resource in the cluster.
1436 },
1437 ],
1438 &quot;autoprovisioningNodePoolDefaults&quot;: { # AutoprovisioningNodePoolDefaults contains defaults for a node pool created by NAP. # AutoprovisioningNodePoolDefaults contains defaults for a node pool created by NAP.
1439 &quot;bootDiskKmsKey&quot;: &quot;A String&quot;, # The Customer Managed Encryption Key used to encrypt the boot disk attached to each node in the node pool. This should be of the form projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME]. For more information about protecting resources with Cloud KMS Keys please see: https://cloud.google.com/compute/docs/disks/customer-managed-encryption
1440 &quot;management&quot;: { # NodeManagement defines the set of node management services turned on for the node pool. # NodeManagement configuration for this NodePool.
1441 &quot;autoRepair&quot;: True or False, # Whether the nodes will be automatically repaired.
1442 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how the Auto Upgrades will proceed. # Specifies the Auto Upgrade knobs for the node pool.
1443 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence with the description of the upgrade.
1444 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence with the approximate start time for the upgrades, in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1445 },
1446 &quot;autoUpgrade&quot;: True or False, # Whether the nodes will be automatically upgraded.
1447 },
1448 &quot;oauthScopes&quot;: [ # The set of Google API scopes to be made available on all of the node VMs under the &quot;default&quot; service account. The following scopes are recommended, but not required, and by default are not included: * `https://www.googleapis.com/auth/compute` is required for mounting persistent storage on your nodes. * `https://www.googleapis.com/auth/devstorage.read_only` is required for communicating with **gcr.io** (the [Google Container Registry](https://cloud.google.com/container-registry/)). If unspecified, no scopes are added, unless Cloud Logging or Cloud Monitoring are enabled, in which case their required scopes will be added.
1449 &quot;A String&quot;,
1450 ],
1451 &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;) If unspecified, the default disk type is &#x27;pd-standard&#x27;
1452 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used by this instance. The instance may be scheduled on the specified or newer CPU platform. Applicable values are the friendly names of CPU platforms, such as `minCpuPlatform: &quot;Intel Haswell&quot;` or `minCpuPlatform: &quot;Intel Sandy Bridge&quot;`. For more information, read [how to specify min CPU platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform) To unset the min cpu platform field pass &quot;automatic&quot; as field value.
1453 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
1454 &quot;enableSecureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled. Secure Boot helps ensure that the system only runs authentic software by verifying the digital signature of all boot components, and halting the boot process if signature verification fails.
1455 &quot;enableIntegrityMonitoring&quot;: True or False, # Defines whether the instance has integrity monitoring enabled. Enables monitoring and attestation of the boot integrity of the instance. The attestation is performed against the integrity policy baseline. This baseline is initially derived from the implicitly trusted boot image when the instance is created.
1456 },
1457 &quot;upgradeSettings&quot;: { # These upgrade settings control the level of parallelism and the level of disruption caused by an upgrade. maxUnavailable controls the number of nodes that can be simultaneously unavailable. maxSurge controls the number of additional nodes that can be added to the node pool temporarily for the time of the upgrade to increase the number of available nodes. (maxUnavailable + maxSurge) determines the level of parallelism (how many nodes are being upgraded at the same time). Note: upgrades inevitably introduce some disruption since workloads need to be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0, this holds true. (Disruption stays within the limits of PodDisruptionBudget, if it is configured.) Consider a hypothetical node pool with 5 nodes having maxSurge=2, maxUnavailable=1. This means the upgrade process upgrades 3 nodes simultaneously. It creates 2 additional (upgraded) nodes, then it brings down 3 old (not yet upgraded) nodes at the same time. This ensures that there are always at least 4 nodes available. # Upgrade settings control disruption and speed of the upgrade.
1458 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size of the node pool during the upgrade process.
1459 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during the upgrade process. A node is considered available if its status is Ready.
1460 },
1461 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs. Specify the email address of the Service Account; otherwise, if no Service Account is specified, the &quot;default&quot; service account is used.
1462 &quot;diskSizeGb&quot;: 42, # Size of the disk attached to each node, specified in GB. The smallest allowed disk size is 10GB. If unspecified, the default disk size is 100GB.
1463 },
1464 &quot;autoprovisioningLocations&quot;: [ # The list of Google Compute Engine [zones](https://cloud.google.com/compute/docs/zones#available) in which the NodePool&#x27;s nodes can be created by NAP.
1465 &quot;A String&quot;,
1466 ],
1467 &quot;enableNodeAutoprovisioning&quot;: True or False, # Enables automatic node pool creation and deletion.
1468 &quot;autoscalingProfile&quot;: &quot;A String&quot;, # Defines autoscaling behaviour.
1469 },
1470 &quot;binaryAuthorization&quot;: { # Configuration for Binary Authorization. # Configuration for Binary Authorization.
1471 &quot;enabled&quot;: True or False, # Enable Binary Authorization for this cluster. If enabled, all container images will be validated by Google Binauthz.
1472 },
1473 &quot;currentNodeVersion&quot;: &quot;A String&quot;, # [Output only] Deprecated, use [NodePool.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1beta1/projects.locations.clusters.nodePools) instead. The current version of the node software components. If they are currently at multiple versions because they&#x27;re in the process of being upgraded, this reflects the minimum version of all nodes.
1474 &quot;conditions&quot;: [ # Which conditions caused the current cluster state.
1475 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
1476 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
1477 &quot;canonicalCode&quot;: &quot;A String&quot;, # Canonical code of the condition.
1478 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition Deprecated. Use canonical_code instead.
1479 },
1480 ],
1481 &quot;releaseChannel&quot;: { # ReleaseChannel indicates which release channel a cluster is subscribed to. Release channels are arranged in order of risk. When a cluster is subscribed to a release channel, Google maintains both the master version and the node version. Node auto-upgrade defaults to true and cannot be disabled. # Release channel configuration.
1482 &quot;channel&quot;: &quot;A String&quot;, # channel specifies which release channel the cluster is subscribed to.
1483 },
1484 &quot;instanceGroupUrls&quot;: [ # Deprecated. Use node_pools.instance_group_urls.
1485 &quot;A String&quot;,
1486 ],
1487 &quot;masterAuthorizedNetworksConfig&quot;: { # Configuration options for the master authorized networks feature. Enabled master authorized networks will disallow all external traffic to access Kubernetes master through HTTPS except traffic from the given CIDR blocks, Google Compute Engine Public IPs and Google Prod IPs. # The configuration options for master authorized networks feature.
1488 &quot;cidrBlocks&quot;: [ # cidr_blocks define up to 10 external networks that could access Kubernetes master through HTTPS.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001489 { # CidrBlock contains an optional name and one CIDR block.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001490 &quot;cidrBlock&quot;: &quot;A String&quot;, # cidr_block must be specified in CIDR notation.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001491 &quot;displayName&quot;: &quot;A String&quot;, # display_name is an optional field for users to identify CIDR blocks.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001492 },
1493 ],
1494 &quot;enabled&quot;: True or False, # Whether or not master authorized networks is enabled.
1495 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001496 &quot;network&quot;: &quot;A String&quot;, # The name of the Google Compute Engine [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks) to which the cluster is connected. If left unspecified, the `default` network will be used. On output this shows the network ID instead of the name.
1497 &quot;authenticatorGroupsConfig&quot;: { # Configuration for returning group information from authenticators. # Configuration controlling RBAC group membership information.
1498 &quot;enabled&quot;: True or False, # Whether this cluster should return group membership lookups during authentication using a group of security groups.
1499 &quot;securityGroup&quot;: &quot;A String&quot;, # The name of the security group-of-groups to be used. Only relevant if enabled = true.
Dan O'Mearadd494642020-05-01 07:42:23 -07001500 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001501 &quot;locations&quot;: [ # The list of Google Compute Engine [zones](https://cloud.google.com/compute/docs/zones#available) in which the cluster&#x27;s nodes should be located.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001502 &quot;A String&quot;,
1503 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001504 &quot;resourceUsageExportConfig&quot;: { # Configuration for exporting cluster resource usages. # Configuration for exporting resource usages. Resource usage export is disabled when this config unspecified.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001505 &quot;consumptionMeteringConfig&quot;: { # Parameters for controlling consumption metering. # Configuration to enable resource consumption metering.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001506 &quot;enabled&quot;: True or False, # Whether to enable consumption metering for this cluster. If enabled, a second BigQuery table will be created to hold resource consumption records.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001507 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001508 &quot;enableNetworkEgressMetering&quot;: True or False, # Whether to enable network egress metering for this cluster. If enabled, a daemonset will be created in the cluster to meter network egress traffic.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001509 &quot;bigqueryDestination&quot;: { # Parameters for using BigQuery as the destination of resource usage export. # Configuration to use BigQuery as usage export destination.
1510 &quot;datasetId&quot;: &quot;A String&quot;, # The ID of a BigQuery Dataset.
1511 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001512 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001513 &quot;verticalPodAutoscaling&quot;: { # VerticalPodAutoscaling contains global, per-cluster information required by Vertical Pod Autoscaler to automatically adjust the resources of pods controlled by it. # Cluster-level Vertical Pod Autoscaling configuration.
1514 &quot;enabled&quot;: True or False, # Enables vertical pod autoscaling.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001515 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001516 &quot;databaseEncryption&quot;: { # Configuration of etcd encryption. # Configuration of etcd encryption.
1517 &quot;keyName&quot;: &quot;A String&quot;, # Name of CloudKMS key to use for the encryption of secrets in etcd. Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key
1518 &quot;state&quot;: &quot;A String&quot;, # Denotes the state of etcd encryption.
1519 },
1520 &quot;enableTpu&quot;: True or False, # Enable the ability to use Cloud TPUs in this cluster. This field is deprecated, use tpu_config.enabled instead.
1521 &quot;currentMasterVersion&quot;: &quot;A String&quot;, # [Output only] The current software version of the master endpoint.
1522 &quot;zone&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides. This field is deprecated, use location instead.
1523 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) or [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) in which the cluster resides.
1524 &quot;privateClusterConfig&quot;: { # Configuration options for private clusters. # Configuration for private cluster.
1525 &quot;masterGlobalAccessConfig&quot;: { # Configuration for controlling master global access settings. # Controls master global access settings.
1526 &quot;enabled&quot;: True or False, # Whenever master is accessible globally or not.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001527 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001528 &quot;enablePrivateNodes&quot;: True or False, # Whether nodes have internal IP addresses only. If enabled, all nodes are given only RFC 1918 private addresses and communicate with the master via private networking.
1529 &quot;enablePrivateEndpoint&quot;: True or False, # Whether the master&#x27;s internal IP address is used as the cluster endpoint.
1530 &quot;masterIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP range in CIDR notation to use for the hosted master network. This range will be used for assigning internal IP addresses to the master or set of masters, as well as the ILB VIP. This range must not overlap with any other ranges in use within the cluster&#x27;s network.
1531 &quot;publicEndpoint&quot;: &quot;A String&quot;, # Output only. The external IP address of this cluster&#x27;s master endpoint.
1532 &quot;privateEndpoint&quot;: &quot;A String&quot;, # Output only. The internal IP address of this cluster&#x27;s master endpoint.
1533 &quot;peeringName&quot;: &quot;A String&quot;, # Output only. The peering name in the customer VPC used by this cluster.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001534 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001535 &quot;labelFingerprint&quot;: &quot;A String&quot;, # The fingerprint of the set of labels for this cluster.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001536 &quot;tpuConfig&quot;: { # Configuration for Cloud TPU. # Configuration for Cloud TPU support;
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001537 &quot;enabled&quot;: True or False, # Whether Cloud TPU integration is enabled or not.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001538 &quot;useServiceNetworking&quot;: True or False, # Whether to use service networking for Cloud TPU or not.
1539 &quot;ipv4CidrBlock&quot;: &quot;A String&quot;, # IPv4 CIDR block reserved for Cloud TPU in the VPC.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001540 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001541 &quot;createTime&quot;: &quot;A String&quot;, # [Output only] The time the cluster was created, in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1542 &quot;nodePools&quot;: [ # The node pools associated with this cluster. This field should not be set if &quot;node_config&quot; or &quot;initial_node_count&quot; are specified.
1543 { # NodePool contains the name and configuration for a cluster&#x27;s node pool. Node pools are a set of nodes (i.e. VM&#x27;s), with a common configuration and specification, under the control of the cluster master. They may have a set of Kubernetes labels applied to them, which may be used to reference them during pod scheduling. They may also be resized up or down, to accommodate the workload.
1544 &quot;version&quot;: &quot;A String&quot;, # The version of the Kubernetes of this node.
1545 &quot;name&quot;: &quot;A String&quot;, # The name of the node pool.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001546 &quot;status&quot;: &quot;A String&quot;, # [Output only] The status of the nodes in this pool instance.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001547 &quot;upgradeSettings&quot;: { # These upgrade settings control the level of parallelism and the level of disruption caused by an upgrade. maxUnavailable controls the number of nodes that can be simultaneously unavailable. maxSurge controls the number of additional nodes that can be added to the node pool temporarily for the time of the upgrade to increase the number of available nodes. (maxUnavailable + maxSurge) determines the level of parallelism (how many nodes are being upgraded at the same time). Note: upgrades inevitably introduce some disruption since workloads need to be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0, this holds true. (Disruption stays within the limits of PodDisruptionBudget, if it is configured.) Consider a hypothetical node pool with 5 nodes having maxSurge=2, maxUnavailable=1. This means the upgrade process upgrades 3 nodes simultaneously. It creates 2 additional (upgraded) nodes, then it brings down 3 old (not yet upgraded) nodes at the same time. This ensures that there are always at least 4 nodes available. # Upgrade settings control disruption and speed of the upgrade.
1548 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size of the node pool during the upgrade process.
1549 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during the upgrade process. A node is considered available if its status is Ready.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001550 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001551 &quot;config&quot;: { # Parameters that describe the nodes in a cluster. # The node configuration of the pool.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001552 &quot;sandboxConfig&quot;: { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node.
1553 &quot;type&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node.
1554 &quot;sandboxType&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node (e.g. &#x27;gvisor&#x27;)
1555 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001556 &quot;linuxNodeConfig&quot;: { # Parameters that can be configured on Linux nodes. # Parameters that can be configured on Linux nodes.
1557 &quot;sysctls&quot;: { # The Linux kernel parameters to be applied to the nodes and all pods running on the nodes. The following parameters are supported. net.core.netdev_max_backlog net.core.rmem_max net.core.wmem_default net.core.wmem_max net.core.optmem_max net.core.somaxconn net.ipv4.tcp_rmem net.ipv4.tcp_wmem net.ipv4.tcp_tw_reuse
1558 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001559 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001560 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001561 &quot;labels&quot;: { # The map of Kubernetes labels (key/value pairs) to be applied to each node. These will added in addition to any default label(s) that Kubernetes may apply to the node. In case of conflict in label keys, the applied set may differ depending on the Kubernetes version -- it&#x27;s best to assume the behavior is undefined and conflicts should be avoided. For more information, including usage and the valid values, see: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001562 &quot;a_key&quot;: &quot;A String&quot;,
1563 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001564 &quot;localSsdCount&quot;: 42, # The number of local SSD disks to be attached to the node. The limit for this value is dependent upon the maximum number of disks available on a machine per zone. See: https://cloud.google.com/compute/docs/disks/local-ssd for more information.
1565 &quot;reservationAffinity&quot;: { # [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) is the configuration of desired reservation which instances could take capacity from. # The optional reservation affinity. Setting this field will apply the specified [Zonal Compute Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) to this node pool.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001566 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Corresponds to the type of reservation consumption.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001567 &quot;values&quot;: [ # Corresponds to the label value(s) of reservation resource(s).
1568 &quot;A String&quot;,
1569 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001570 &quot;key&quot;: &quot;A String&quot;, # Corresponds to the label key of a reservation resource. To target a SPECIFIC_RESERVATION by name, specify &quot;googleapis.com/reservation-name&quot; as the key and specify the name of your reservation as its value.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001571 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001572 &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;) If unspecified, the default disk type is &#x27;pd-standard&#x27;
1573 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to workloads on the node pool. # The workload metadata configuration for this node.
1574 &quot;nodeMetadata&quot;: &quot;A String&quot;, # NodeMetadata is the configuration for how to expose metadata to the workloads running on the node.
1575 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running on the node pool.
1576 },
1577 &quot;metadata&quot;: { # The metadata key/value pairs assigned to instances in the cluster. Keys must conform to the regexp `[a-zA-Z0-9-_]+` and be less than 128 bytes in length. These are reflected as part of a URL in the metadata server. Additionally, to avoid ambiguity, keys must not conflict with any other metadata keys for the project or be one of the reserved keys: - &quot;cluster-location&quot; - &quot;cluster-name&quot; - &quot;cluster-uid&quot; - &quot;configure-sh&quot; - &quot;containerd-configure-sh&quot; - &quot;enable-oslogin&quot; - &quot;gci-ensure-gke-docker&quot; - &quot;gci-metrics-enabled&quot; - &quot;gci-update-strategy&quot; - &quot;instance-template&quot; - &quot;kube-env&quot; - &quot;startup-script&quot; - &quot;user-data&quot; - &quot;disable-address-manager&quot; - &quot;windows-startup-script-ps1&quot; - &quot;common-psm1&quot; - &quot;k8s-node-setup-psm1&quot; - &quot;install-ssh-psm1&quot; - &quot;user-profile-psm1&quot; - &quot;serial-port-logging-enable&quot; Values are free-form strings, and only have meaning as interpreted by the image running in the instance. The only restriction placed on them is that each value&#x27;s size must be less than or equal to 32 KB. The total size of all keys and values must be less than 512 KB.
1578 &quot;a_key&quot;: &quot;A String&quot;,
1579 },
1580 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used by this instance. The instance may be scheduled on the specified or newer CPU platform. Applicable values are the friendly names of CPU platforms, such as `minCpuPlatform: &quot;Intel Haswell&quot;` or `minCpuPlatform: &quot;Intel Sandy Bridge&quot;`. For more information, read [how to specify min CPU platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
1581 &quot;machineType&quot;: &quot;A String&quot;, # The name of a Google Compute Engine [machine type](https://cloud.google.com/compute/docs/machine-types). If unspecified, the default machine type is `e2-medium`.
1582 &quot;preemptible&quot;: True or False, # Whether the nodes are created as preemptible VM instances. See: https://cloud.google.com/compute/docs/instances/preemptible for more inforamtion about preemptible VM instances.
1583 &quot;nodeGroup&quot;: &quot;A String&quot;, # Setting this field will assign instances of this pool to run on the specified node group. This is useful for running workloads on [sole tenant nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes).
1584 &quot;oauthScopes&quot;: [ # The set of Google API scopes to be made available on all of the node VMs under the &quot;default&quot; service account. The following scopes are recommended, but not required, and by default are not included: * `https://www.googleapis.com/auth/compute` is required for mounting persistent storage on your nodes. * `https://www.googleapis.com/auth/devstorage.read_only` is required for communicating with **gcr.io** (the [Google Container Registry](https://cloud.google.com/container-registry/)). If unspecified, no scopes are added, unless Cloud Logging or Cloud Monitoring are enabled, in which case their required scopes will be added.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001585 &quot;A String&quot;,
1586 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001587 &quot;imageType&quot;: &quot;A String&quot;, # The image type to use for this node. Note that for a given image type, the latest version of it will be used.
1588 &quot;accelerators&quot;: [ # A list of hardware accelerators to be attached to each node. See https://cloud.google.com/compute/docs/gpus for more information about support for GPUs.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001589 { # AcceleratorConfig represents a Hardware Accelerator request.
1590 &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of the accelerator cards exposed to an instance.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001591 &quot;acceleratorType&quot;: &quot;A String&quot;, # The accelerator type resource name. List of supported accelerators [here](https://cloud.google.com/compute/docs/gpus)
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001592 },
1593 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001594 &quot;taints&quot;: [ # List of kubernetes taints to be applied to each node. For more information, including usage and the valid values, see: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
1595 { # Kubernetes taint is comprised of three fields: key, value, and effect. Effect can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute. See [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration) for more information, including usage and the valid values.
1596 &quot;effect&quot;: &quot;A String&quot;, # Effect for taint.
1597 &quot;value&quot;: &quot;A String&quot;, # Value for taint.
1598 &quot;key&quot;: &quot;A String&quot;, # Key for taint.
1599 },
1600 ],
1601 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs. Specify the email address of the Service Account; otherwise, if no Service Account is specified, the &quot;default&quot; service account is used.
1602 &quot;bootDiskKmsKey&quot;: &quot;A String&quot;, # The Customer Managed Encryption Key used to encrypt the boot disk attached to each node in the node pool. This should be of the form projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME]. For more information about protecting resources with Cloud KMS Keys please see: https://cloud.google.com/compute/docs/disks/customer-managed-encryption
1603 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
1604 &quot;enableSecureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled. Secure Boot helps ensure that the system only runs authentic software by verifying the digital signature of all boot components, and halting the boot process if signature verification fails.
1605 &quot;enableIntegrityMonitoring&quot;: True or False, # Defines whether the instance has integrity monitoring enabled. Enables monitoring and attestation of the boot integrity of the instance. The attestation is performed against the integrity policy baseline. This baseline is initially derived from the implicitly trusted boot image when the instance is created.
1606 },
1607 &quot;kubeletConfig&quot;: { # Node kubelet configs. # Node kubelet configs.
1608 &quot;cpuCfsQuota&quot;: True or False, # Enable CPU CFS quota enforcement for containers that specify CPU limits. This option is enabled by default which makes kubelet use CFS quota (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to enforce container CPU limits. Otherwise, CPU limits will not be enforced at all. Disable this option to mitigate CPU throttling problems while still having your pods to be in Guaranteed QoS class by specifying the CPU limits. The default value is &#x27;true&#x27; if unspecified.
1609 &quot;cpuManagerPolicy&quot;: &quot;A String&quot;, # Control the CPU management policy on the node. See https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/ The following values are allowed. - &quot;none&quot;: the default, which represents the existing scheduling behavior. - &quot;static&quot;: allows pods with certain resource characteristics to be granted increased CPU affinity and exclusivity on the node. The default value is &#x27;none&#x27; if unspecified.
1610 &quot;cpuCfsQuotaPeriod&quot;: &quot;A String&quot;, # Set the CPU CFS quota period value &#x27;cpu.cfs_period_us&#x27;. The string must be a sequence of decimal numbers, each with optional fraction and a unit suffix, such as &quot;300ms&quot;. Valid time units are &quot;ns&quot;, &quot;us&quot; (or &quot;µs&quot;), &quot;ms&quot;, &quot;s&quot;, &quot;m&quot;, &quot;h&quot;. The value must be a positive duration.
1611 },
1612 &quot;tags&quot;: [ # The list of instance tags applied to all nodes. Tags are used to identify valid sources or targets for network firewalls and are specified by the client during cluster or node pool creation. Each tag within the list must comply with RFC1035.
1613 &quot;A String&quot;,
1614 ],
1615 &quot;diskSizeGb&quot;: 42, # Size of the disk attached to each node, specified in GB. The smallest allowed disk size is 10GB. If unspecified, the default disk size is 100GB.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001616 },
1617 &quot;selfLink&quot;: &quot;A String&quot;, # [Output only] Server-defined URL for the resource.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001618 &quot;management&quot;: { # NodeManagement defines the set of node management services turned on for the node pool. # NodeManagement configuration for this NodePool.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001619 &quot;autoRepair&quot;: True or False, # Whether the nodes will be automatically repaired.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001620 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how the Auto Upgrades will proceed. # Specifies the Auto Upgrade knobs for the node pool.
1621 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence with the description of the upgrade.
1622 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence with the approximate start time for the upgrades, in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001623 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001624 &quot;autoUpgrade&quot;: True or False, # Whether the nodes will be automatically upgraded.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001625 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001626 &quot;autoscaling&quot;: { # NodePoolAutoscaling contains information required by cluster autoscaler to adjust the size of the node pool to the current cluster usage. # Autoscaler configuration for this NodePool. Autoscaler is enabled only if a valid configuration is present.
1627 &quot;autoprovisioned&quot;: True or False, # Can this node pool be deleted automatically.
1628 &quot;minNodeCount&quot;: 42, # Minimum number of nodes in the NodePool. Must be &gt;= 1 and &lt;= max_node_count.
1629 &quot;enabled&quot;: True or False, # Is autoscaling enabled for this node pool.
1630 &quot;maxNodeCount&quot;: 42, # Maximum number of nodes in the NodePool. Must be &gt;= min_node_count. There has to enough quota to scale up the cluster.
1631 },
1632 &quot;maxPodsConstraint&quot;: { # Constraints applied to pods. # The constraint on the maximum number of pods that can be run simultaneously on a node in the node pool.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001633 &quot;maxPodsPerNode&quot;: &quot;A String&quot;, # Constraint enforced on the max num of pods per node.
1634 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001635 &quot;initialNodeCount&quot;: 42, # The initial node count for the pool. You must ensure that your Compute Engine [resource quota](https://cloud.google.com/compute/quotas) is sufficient for this number of instances. You must also have available firewall and routes quota.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001636 &quot;podIpv4CidrSize&quot;: 42, # [Output only] The pod CIDR block size per node in this node pool.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001637 &quot;instanceGroupUrls&quot;: [ # [Output only] The resource URLs of the [managed instance groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances) associated with this node pool.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001638 &quot;A String&quot;,
1639 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001640 &quot;locations&quot;: [ # The list of Google Compute Engine [zones](https://cloud.google.com/compute/docs/zones#available) in which the NodePool&#x27;s nodes should be located.
1641 &quot;A String&quot;,
1642 ],
1643 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output only] Additional information about the current status of this node pool instance, if available.
1644 &quot;conditions&quot;: [ # Which conditions caused the current node pool state.
1645 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
1646 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
1647 &quot;canonicalCode&quot;: &quot;A String&quot;, # Canonical code of the condition.
1648 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition Deprecated. Use canonical_code instead.
1649 },
1650 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001651 },
1652 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001653 &quot;addonsConfig&quot;: { # Configuration for the addons that can be automatically spun up in the cluster, enabling additional functionality. # Configurations for the various addons available to run in the cluster.
1654 &quot;cloudRunConfig&quot;: { # Configuration options for the Cloud Run feature. # Configuration for the Cloud Run addon. The `IstioConfig` addon must be enabled in order to enable Cloud Run addon. This option can only be enabled at cluster creation time.
1655 &quot;loadBalancerType&quot;: &quot;A String&quot;, # Which load balancer type is installed for Cloud Run.
1656 &quot;disabled&quot;: True or False, # Whether Cloud Run addon is enabled for this cluster.
1657 },
1658 &quot;configConnectorConfig&quot;: { # Configuration options for the Config Connector add-on. # Configuration for the ConfigConnector add-on, a Kubernetes extension to manage hosted GCP services through the Kubernetes API
1659 &quot;enabled&quot;: True or False, # Whether Cloud Connector is enabled for this cluster.
1660 },
1661 &quot;horizontalPodAutoscaling&quot;: { # Configuration options for the horizontal pod autoscaling feature, which increases or decreases the number of replica pods a replication controller has based on the resource usage of the existing pods. # Configuration for the horizontal pod autoscaling feature, which increases or decreases the number of replica pods a replication controller has based on the resource usage of the existing pods.
1662 &quot;disabled&quot;: True or False, # Whether the Horizontal Pod Autoscaling feature is enabled in the cluster. When enabled, it ensures that metrics are collected into Stackdriver Monitoring.
1663 },
1664 &quot;gcePersistentDiskCsiDriverConfig&quot;: { # Configuration for the Compute Engine PD CSI driver. This option can only be enabled at cluster creation time. # Configuration for the Compute Engine Persistent Disk CSI driver.
1665 &quot;enabled&quot;: True or False, # Whether the Compute Engine PD CSI driver is enabled for this cluster.
1666 },
1667 &quot;httpLoadBalancing&quot;: { # Configuration options for the HTTP (L7) load balancing controller addon, which makes it easy to set up HTTP load balancers for services in a cluster. # Configuration for the HTTP (L7) load balancing controller addon, which makes it easy to set up HTTP load balancers for services in a cluster.
1668 &quot;disabled&quot;: True or False, # Whether the HTTP Load Balancing controller is enabled in the cluster. When enabled, it runs a small pod in the cluster that manages the load balancers.
1669 },
1670 &quot;dnsCacheConfig&quot;: { # Configuration for NodeLocal DNSCache # Configuration for NodeLocalDNS, a dns cache running on cluster nodes
1671 &quot;enabled&quot;: True or False, # Whether NodeLocal DNSCache is enabled for this cluster.
1672 },
1673 &quot;kubernetesDashboard&quot;: { # Configuration for the Kubernetes Dashboard. # Configuration for the Kubernetes Dashboard. This addon is deprecated, and will be disabled in 1.15. It is recommended to use the Cloud Console to manage and monitor your Kubernetes clusters, workloads and applications. For more information, see: https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
1674 &quot;disabled&quot;: True or False, # Whether the Kubernetes Dashboard is enabled for this cluster.
1675 },
1676 &quot;kalmConfig&quot;: { # Configuration options for the KALM addon. # Configuration for the KALM addon, which manages the lifecycle of k8s applications.
1677 &quot;enabled&quot;: True or False, # Whether KALM is enabled for this cluster.
1678 },
1679 &quot;networkPolicyConfig&quot;: { # Configuration for NetworkPolicy. This only tracks whether the addon is enabled or not on the Master, it does not track whether network policy is enabled for the nodes. # Configuration for NetworkPolicy. This only tracks whether the addon is enabled or not on the Master, it does not track whether network policy is enabled for the nodes.
1680 &quot;disabled&quot;: True or False, # Whether NetworkPolicy is enabled for this cluster.
1681 },
1682 &quot;istioConfig&quot;: { # Configuration options for Istio addon. # Configuration for Istio, an open platform to connect, manage, and secure microservices.
1683 &quot;auth&quot;: &quot;A String&quot;, # The specified Istio auth mode, either none, or mutual TLS.
1684 &quot;disabled&quot;: True or False, # Whether Istio is enabled for this cluster.
1685 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001686 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001687 &quot;name&quot;: &quot;A String&quot;, # The name of this cluster. The name must be unique within this project and location (e.g. zone or region), and can be up to 40 characters with the following restrictions: * Lowercase letters, numbers, and hyphens only. * Must start with a letter. * Must end with a number or a letter.
1688 &quot;podSecurityPolicyConfig&quot;: { # Configuration for the PodSecurityPolicy feature. # Configuration for the PodSecurityPolicy feature.
1689 &quot;enabled&quot;: True or False, # Enable the PodSecurityPolicy controller for this cluster. If enabled, pods must be valid under a PodSecurityPolicy to be created.
1690 },
1691 &quot;defaultMaxPodsConstraint&quot;: { # Constraints applied to pods. # The default constraint on the maximum number of pods that can be run simultaneously on a node in the node pool of this cluster. Only honored if cluster created with IP Alias support.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001692 &quot;maxPodsPerNode&quot;: &quot;A String&quot;, # Constraint enforced on the max num of pods per node.
1693 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001694 &quot;shieldedNodes&quot;: { # Configuration of Shielded Nodes feature. # Shielded Nodes configuration.
1695 &quot;enabled&quot;: True or False, # Whether Shielded Nodes features are enabled on all nodes in this cluster.
1696 },
1697 &quot;clusterIpv4Cidr&quot;: &quot;A String&quot;, # The IP address range of the container pods in this cluster, in [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) notation (e.g. `10.96.0.0/14`). Leave blank to have one automatically chosen or specify a `/14` block in `10.0.0.0/8`.
1698 &quot;description&quot;: &quot;A String&quot;, # An optional description of this cluster.
1699 &quot;ipAllocationPolicy&quot;: { # Configuration for controlling how IPs are allocated in the cluster. # Configuration for cluster IP allocation.
1700 &quot;servicesIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP address range of the services IPs in this cluster. If blank, a range will be automatically chosen with the default size. This field is only applicable when `use_ip_aliases` is true. Set to blank to have a range chosen with the default size. Set to /netmask (e.g. `/14`) to have a range chosen with a specific netmask. Set to a [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range to use.
1701 &quot;clusterSecondaryRangeName&quot;: &quot;A String&quot;, # The name of the secondary range to be used for the cluster CIDR block. The secondary range will be used for pod IP addresses. This must be an existing secondary range associated with the cluster subnetwork. This field is only applicable with use_ip_aliases and create_subnetwork is false.
1702 &quot;servicesIpv4Cidr&quot;: &quot;A String&quot;, # This field is deprecated, use services_ipv4_cidr_block.
1703 &quot;clusterIpv4Cidr&quot;: &quot;A String&quot;, # This field is deprecated, use cluster_ipv4_cidr_block.
1704 &quot;clusterIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP address range for the cluster pod IPs. If this field is set, then `cluster.cluster_ipv4_cidr` must be left blank. This field is only applicable when `use_ip_aliases` is true. Set to blank to have a range chosen with the default size. Set to /netmask (e.g. `/14`) to have a range chosen with a specific netmask. Set to a [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range to use.
1705 &quot;nodeIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP address range of the instance IPs in this cluster. This is applicable only if `create_subnetwork` is true. Set to blank to have a range chosen with the default size. Set to /netmask (e.g. `/14`) to have a range chosen with a specific netmask. Set to a [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range to use.
1706 &quot;useIpAliases&quot;: True or False, # Whether alias IPs will be used for pod IPs in the cluster. This is used in conjunction with use_routes. It cannot be true if use_routes is true. If both use_ip_aliases and use_routes are false, then the server picks the default IP allocation mode
1707 &quot;nodeIpv4Cidr&quot;: &quot;A String&quot;, # This field is deprecated, use node_ipv4_cidr_block.
1708 &quot;useRoutes&quot;: True or False, # Whether routes will be used for pod IPs in the cluster. This is used in conjunction with use_ip_aliases. It cannot be true if use_ip_aliases is true. If both use_ip_aliases and use_routes are false, then the server picks the default IP allocation mode
1709 &quot;tpuIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP address range of the Cloud TPUs in this cluster. If unspecified, a range will be automatically chosen with the default size. This field is only applicable when `use_ip_aliases` is true. If unspecified, the range will use the default size. Set to /netmask (e.g. `/14`) to have a range chosen with a specific netmask. Set to a [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range to use. This field is deprecated, use cluster.tpu_config.ipv4_cidr_block instead.
1710 &quot;allowRouteOverlap&quot;: True or False, # If true, allow allocation of cluster CIDR ranges that overlap with certain kinds of network routes. By default we do not allow cluster CIDR ranges to intersect with any user declared routes. With allow_route_overlap == true, we allow overlapping with CIDR ranges that are larger than the cluster CIDR range. If this field is set to true, then cluster and services CIDRs must be fully-specified (e.g. `10.96.0.0/14`, but not `/14`), which means: 1) When `use_ip_aliases` is true, `cluster_ipv4_cidr_block` and `services_ipv4_cidr_block` must be fully-specified. 2) When `use_ip_aliases` is false, `cluster.cluster_ipv4_cidr` muse be fully-specified.
1711 &quot;subnetworkName&quot;: &quot;A String&quot;, # A custom subnetwork name to be used if `create_subnetwork` is true. If this field is empty, then an automatic name will be chosen for the new subnetwork.
1712 &quot;createSubnetwork&quot;: True or False, # Whether a new subnetwork will be created automatically for the cluster. This field is only applicable when `use_ip_aliases` is true.
1713 &quot;servicesSecondaryRangeName&quot;: &quot;A String&quot;, # The name of the secondary range to be used as for the services CIDR block. The secondary range will be used for service ClusterIPs. This must be an existing secondary range associated with the cluster subnetwork. This field is only applicable with use_ip_aliases and create_subnetwork is false.
1714 },
1715 &quot;nodeIpv4CidrSize&quot;: 42, # [Output only] The size of the address space on each node for hosting containers. This is provisioned from within the `container_ipv4_cidr` range. This field will only be set when cluster is in route-based network mode.
1716 &quot;legacyAbac&quot;: { # Configuration for the legacy Attribute Based Access Control authorization mode. # Configuration for the legacy ABAC authorization mode.
1717 &quot;enabled&quot;: True or False, # Whether the ABAC authorizer is enabled for this cluster. When enabled, identities in the system, including service accounts, nodes, and controllers, will have statically granted permissions beyond those provided by the RBAC configuration or IAM.
1718 },
1719 &quot;master&quot;: { # Master is the configuration for components on master. # Configuration for master components.
1720 },
1721 &quot;initialClusterVersion&quot;: &quot;A String&quot;, # The initial Kubernetes version for this cluster. Valid versions are those found in validMasterVersions returned by getServerConfig. The version can be upgraded over time; such upgrades are reflected in currentMasterVersion and currentNodeVersion. Users may specify either explicit versions offered by Kubernetes Engine or version aliases, which have the following behavior: - &quot;latest&quot;: picks the highest valid Kubernetes version - &quot;1.X&quot;: picks the highest valid patch+gke.N patch in the 1.X version - &quot;1.X.Y&quot;: picks the highest valid gke.N patch in the 1.X.Y version - &quot;1.X.Y-gke.N&quot;: picks an explicit Kubernetes version - &quot;&quot;,&quot;-&quot;: picks the default Kubernetes version
1722 &quot;loggingService&quot;: &quot;A String&quot;, # The logging service the cluster should use to write logs. Currently available options: * `logging.googleapis.com/kubernetes` - The Cloud Logging service with a Kubernetes-native resource model * `logging.googleapis.com` - The legacy Cloud Logging service (no longer available as of GKE 1.15). * `none` - no logs will be exported from the cluster. If left as an empty string,`logging.googleapis.com/kubernetes` will be used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
1723 &quot;tpuIpv4CidrBlock&quot;: &quot;A String&quot;, # [Output only] The IP address range of the Cloud TPUs in this cluster, in [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) notation (e.g. `1.2.3.4/29`).
1724 &quot;status&quot;: &quot;A String&quot;, # [Output only] The current status of this cluster.
1725 &quot;endpoint&quot;: &quot;A String&quot;, # [Output only] The IP address of this cluster&#x27;s master endpoint. The endpoint can be accessed from the internet at `https://username:password@endpoint/`. See the `masterAuth` property of this resource for username and password information.
1726 &quot;workloadIdentityConfig&quot;: { # Configuration for the use of Kubernetes Service Accounts in GCP IAM policies. # Configuration for the use of Kubernetes Service Accounts in GCP IAM policies.
1727 &quot;identityProvider&quot;: &quot;A String&quot;, # identity provider is the third party identity provider.
1728 &quot;workloadPool&quot;: &quot;A String&quot;, # The workload pool to attach all Kubernetes service accounts to.
1729 &quot;identityNamespace&quot;: &quot;A String&quot;, # IAM Identity Namespace to attach all Kubernetes Service Accounts to.
1730 },
1731 &quot;networkConfig&quot;: { # NetworkConfig reports the relative names of network &amp; subnetwork. # Configuration for cluster networking.
1732 &quot;enableIntraNodeVisibility&quot;: True or False, # Whether Intra-node visibility is enabled for this cluster. This makes same node pod to pod traffic visible for VPC network.
1733 &quot;defaultSnatStatus&quot;: { # DefaultSnatStatus contains the desired state of whether default sNAT should be disabled on the cluster. # Whether the cluster disables default in-node sNAT rules. In-node sNAT rules will be disabled when default_snat_status is disabled. When disabled is set to false, default IP masquerade rules will be applied to the nodes to prevent sNAT on cluster internal traffic.
1734 &quot;disabled&quot;: True or False, # Disables cluster default sNAT rules.
1735 },
1736 &quot;datapathProvider&quot;: &quot;A String&quot;, # The desired datapath provider for this cluster. By default, uses the IPTables-based kube-proxy implementation.
1737 &quot;subnetwork&quot;: &quot;A String&quot;, # Output only. The relative name of the Google Compute Engine [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the cluster is connected. Example: projects/my-project/regions/us-central1/subnetworks/my-subnet
1738 &quot;network&quot;: &quot;A String&quot;, # Output only. The relative name of the Google Compute Engine network(https://cloud.google.com/compute/docs/networks-and-firewalls#networks) to which the cluster is connected. Example: projects/my-project/global/networks/my-network
1739 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001740 &quot;clusterTelemetry&quot;: { # Telemetry integration for the cluster. # Telemetry integration for the cluster.
1741 &quot;type&quot;: &quot;A String&quot;, # Type of the integration.
1742 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001743 &quot;masterAuth&quot;: { # The authentication information for accessing the master endpoint. Authentication can be done using HTTP basic auth or using client certificates. # The authentication information for accessing the master endpoint. If unspecified, the defaults are used: For clusters before v1.12, if master_auth is unspecified, `username` will be set to &quot;admin&quot;, a random password will be generated, and a client certificate will be issued.
1744 &quot;username&quot;: &quot;A String&quot;, # The username to use for HTTP basic authentication to the master endpoint. For clusters v1.6.0 and later, basic authentication can be disabled by leaving username unspecified (or setting it to the empty string). Warning: basic authentication is deprecated, and will be removed in GKE control plane versions 1.19 and newer. For a list of recommended authentication methods, see: https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication
1745 &quot;clusterCaCertificate&quot;: &quot;A String&quot;,
1746 &quot;clientKey&quot;: &quot;A String&quot;, # [Output only] Base64-encoded private key used by clients to authenticate to the cluster endpoint.
1747 &quot;clientCertificate&quot;: &quot;A String&quot;, # [Output only] Base64-encoded public certificate used by clients to authenticate to the cluster endpoint.
1748 &quot;password&quot;: &quot;A String&quot;, # The password to use for HTTP basic authentication to the master endpoint. Because the master endpoint is open to the Internet, you should create a strong password. If a password is provided for cluster creation, username must be non-empty. Warning: basic authentication is deprecated, and will be removed in GKE control plane versions 1.19 and newer. For a list of recommended authentication methods, see: https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication
1749 &quot;clientCertificateConfig&quot;: { # Configuration for client certificates on the cluster. # Configuration for client certificate authentication on the cluster. For clusters before v1.12, if no configuration is specified, a client certificate is issued.
1750 &quot;issueClientCertificate&quot;: True or False, # Issue a client certificate.
1751 },
1752 },
1753 &quot;initialNodeCount&quot;: 42, # The number of nodes to create in this cluster. You must ensure that your Compute Engine [resource quota](https://cloud.google.com/compute/quotas) is sufficient for this number of instances. You must also have available firewall and routes quota. For requests, this field should only be used in lieu of a &quot;node_pool&quot; object, since this configuration (along with the &quot;node_config&quot;) will be used to create a &quot;NodePool&quot; object with an auto-generated name. Do not use this and a node_pool at the same time. This field is deprecated, use node_pool.initial_node_count instead.
1754 &quot;notificationConfig&quot;: { # NotificationConfig is the configuration of notifications. # Notification configuration of the cluster.
1755 &quot;pubsub&quot;: { # Pub/Sub specific notification config. # Notification config for Pub/Sub.
1756 &quot;enabled&quot;: True or False, # Enable notifications for Pub/Sub.
1757 &quot;topic&quot;: &quot;A String&quot;, # The desired Pub/Sub topic to which notifications will be sent by GKE. Format is `projects/{project}/topics/{topic}`.
1758 },
1759 },
1760 &quot;privateCluster&quot;: True or False, # If this is a private cluster setup. Private clusters are clusters that, by default have no external IP addresses on the nodes and where nodes and the master communicate over private IP addresses. This field is deprecated, use private_cluster_config.enable_private_nodes instead.
1761 &quot;resourceLabels&quot;: { # The resource labels for the cluster to use to annotate any related Google Compute Engine resources.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001762 &quot;a_key&quot;: &quot;A String&quot;,
1763 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001764 &quot;masterIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP prefix in CIDR notation to use for the hosted master network. This prefix will be used for assigning private IP addresses to the master or set of masters, as well as the ILB VIP. This field is deprecated, use private_cluster_config.master_ipv4_cidr_block instead.
1765 &quot;servicesIpv4Cidr&quot;: &quot;A String&quot;, # [Output only] The IP address range of the Kubernetes services in this cluster, in [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) notation (e.g. `1.2.3.4/29`). Service addresses are typically put in the last `/16` from the container CIDR.
1766 &quot;monitoringService&quot;: &quot;A String&quot;, # The monitoring service the cluster should use to write metrics. Currently available options: * &quot;monitoring.googleapis.com/kubernetes&quot; - The Cloud Monitoring service with a Kubernetes-native resource model * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no longer available as of GKE 1.15). * `none` - No metrics will be exported from the cluster. If left as an empty string,`monitoring.googleapis.com/kubernetes` will be used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
1767 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output only] Additional information about the current status of this cluster, if available.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001768 },
1769 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001770 }</pre>
1771</div>
1772
1773<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001774 <code class="details" id="setAddons">setAddons(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001775 <pre>Sets the addons for a specific cluster.
1776
1777Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001778 name: string, The name (project, location, cluster) of the cluster to set addons. Specified in the format `projects/*/locations/*/clusters/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001779 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001780 The object takes the form of:
1781
1782{ # SetAddonsRequest sets the addons associated with the cluster.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001783 &quot;zone&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field.
1784 &quot;addonsConfig&quot;: { # Configuration for the addons that can be automatically spun up in the cluster, enabling additional functionality. # Required. The desired configurations for the various addons available to run in the cluster.
1785 &quot;cloudRunConfig&quot;: { # Configuration options for the Cloud Run feature. # Configuration for the Cloud Run addon. The `IstioConfig` addon must be enabled in order to enable Cloud Run addon. This option can only be enabled at cluster creation time.
1786 &quot;loadBalancerType&quot;: &quot;A String&quot;, # Which load balancer type is installed for Cloud Run.
1787 &quot;disabled&quot;: True or False, # Whether Cloud Run addon is enabled for this cluster.
1788 },
1789 &quot;configConnectorConfig&quot;: { # Configuration options for the Config Connector add-on. # Configuration for the ConfigConnector add-on, a Kubernetes extension to manage hosted GCP services through the Kubernetes API
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001790 &quot;enabled&quot;: True or False, # Whether Cloud Connector is enabled for this cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -07001791 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001792 &quot;horizontalPodAutoscaling&quot;: { # Configuration options for the horizontal pod autoscaling feature, which increases or decreases the number of replica pods a replication controller has based on the resource usage of the existing pods. # Configuration for the horizontal pod autoscaling feature, which increases or decreases the number of replica pods a replication controller has based on the resource usage of the existing pods.
1793 &quot;disabled&quot;: True or False, # Whether the Horizontal Pod Autoscaling feature is enabled in the cluster. When enabled, it ensures that metrics are collected into Stackdriver Monitoring.
1794 },
1795 &quot;gcePersistentDiskCsiDriverConfig&quot;: { # Configuration for the Compute Engine PD CSI driver. This option can only be enabled at cluster creation time. # Configuration for the Compute Engine Persistent Disk CSI driver.
Bu Sun Kim65020912020-05-20 12:08:20 -07001796 &quot;enabled&quot;: True or False, # Whether the Compute Engine PD CSI driver is enabled for this cluster.
1797 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001798 &quot;httpLoadBalancing&quot;: { # Configuration options for the HTTP (L7) load balancing controller addon, which makes it easy to set up HTTP load balancers for services in a cluster. # Configuration for the HTTP (L7) load balancing controller addon, which makes it easy to set up HTTP load balancers for services in a cluster.
1799 &quot;disabled&quot;: True or False, # Whether the HTTP Load Balancing controller is enabled in the cluster. When enabled, it runs a small pod in the cluster that manages the load balancers.
1800 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001801 &quot;dnsCacheConfig&quot;: { # Configuration for NodeLocal DNSCache # Configuration for NodeLocalDNS, a dns cache running on cluster nodes
1802 &quot;enabled&quot;: True or False, # Whether NodeLocal DNSCache is enabled for this cluster.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001803 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001804 &quot;kubernetesDashboard&quot;: { # Configuration for the Kubernetes Dashboard. # Configuration for the Kubernetes Dashboard. This addon is deprecated, and will be disabled in 1.15. It is recommended to use the Cloud Console to manage and monitor your Kubernetes clusters, workloads and applications. For more information, see: https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001805 &quot;disabled&quot;: True or False, # Whether the Kubernetes Dashboard is enabled for this cluster.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001806 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001807 &quot;kalmConfig&quot;: { # Configuration options for the KALM addon. # Configuration for the KALM addon, which manages the lifecycle of k8s applications.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001808 &quot;enabled&quot;: True or False, # Whether KALM is enabled for this cluster.
1809 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001810 &quot;networkPolicyConfig&quot;: { # Configuration for NetworkPolicy. This only tracks whether the addon is enabled or not on the Master, it does not track whether network policy is enabled for the nodes. # Configuration for NetworkPolicy. This only tracks whether the addon is enabled or not on the Master, it does not track whether network policy is enabled for the nodes.
1811 &quot;disabled&quot;: True or False, # Whether NetworkPolicy is enabled for this cluster.
1812 },
1813 &quot;istioConfig&quot;: { # Configuration options for Istio addon. # Configuration for Istio, an open platform to connect, manage, and secure microservices.
1814 &quot;auth&quot;: &quot;A String&quot;, # The specified Istio auth mode, either none, or mutual TLS.
1815 &quot;disabled&quot;: True or False, # Whether Istio is enabled for this cluster.
1816 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001817 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001818 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster) of the cluster to set addons. Specified in the format `projects/*/locations/*/clusters/*`.
1819 &quot;clusterId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the cluster to upgrade. This field has been deprecated and replaced by the name field.
1820 &quot;projectId&quot;: &quot;A String&quot;, # Required. Deprecated. The Google Developers Console [project ID or project number](https://support.google.com/cloud/answer/6158840). This field has been deprecated and replaced by the name field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001821 }
1822
1823 x__xgafv: string, V1 error format.
1824 Allowed values
1825 1 - v1 error format
1826 2 - v2 error format
1827
1828Returns:
1829 An object of the form:
1830
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001831 { # This operation resource represents operations that may have happened or are happening on the cluster. All fields are output only.
1832 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1833 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001834 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001835 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
1836 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state. Deprecated. Use field error instead.
1837 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
1838 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
1839 &quot;canonicalCode&quot;: &quot;A String&quot;, # Canonical code of the condition.
1840 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition Deprecated. Use canonical_code instead.
1841 },
1842 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001843 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001844 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage. Unset for single-stage operations.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001845 &quot;stages&quot;: [ # Substages of an operation or a stage.
1846 # Object with schema name: OperationProgress
1847 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001848 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage. Unset for single-stage operations.
1849 &quot;metrics&quot;: [ # Progress metric bundle, for example: metrics: [{name: &quot;nodes done&quot;, int_value: 15}, {name: &quot;nodes total&quot;, int_value: 32}] or metrics: [{name: &quot;progress&quot;, double_value: 0.56}, {name: &quot;progress scale&quot;, double_value: 1.0}]
Bu Sun Kim65020912020-05-20 12:08:20 -07001850 { # Progress metric is (string, int|float|string) pair.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001851 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
1852 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001853 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
1854 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
Bu Sun Kim65020912020-05-20 12:08:20 -07001855 },
1856 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001857 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001858 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the operation is taking place. This field is deprecated, use location instead.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001859 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001860 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state. Deprecated. Use field error instead.
1861 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001862 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001863 &quot;canonicalCode&quot;: &quot;A String&quot;, # Canonical code of the condition.
1864 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition Deprecated. Use canonical_code instead.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001865 },
1866 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001867 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error. Deprecated. Use field error instead.
1868 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) or [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) in which the cluster resides.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001869 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001870 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
1871 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1872 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure.
1873 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
1874 {
1875 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1876 },
1877 ],
1878 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
1879 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1880 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001881 }</pre>
1882</div>
1883
1884<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001885 <code class="details" id="setLegacyAbac">setLegacyAbac(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001886 <pre>Enables or disables the ABAC authorization mechanism on a cluster.
1887
1888Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001889 name: string, The name (project, location, cluster id) of the cluster to set legacy abac. Specified in the format `projects/*/locations/*/clusters/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001890 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001891 The object takes the form of:
1892
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001893{ # SetLegacyAbacRequest enables or disables the ABAC authorization mechanism for a cluster.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001894 &quot;enabled&quot;: True or False, # Required. Whether ABAC authorization will be enabled in the cluster.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001895 &quot;clusterId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the cluster to update. This field has been deprecated and replaced by the name field.
1896 &quot;zone&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field.
1897 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster id) of the cluster to set legacy abac. Specified in the format `projects/*/locations/*/clusters/*`.
1898 &quot;projectId&quot;: &quot;A String&quot;, # Required. Deprecated. The Google Developers Console [project ID or project number](https://support.google.com/cloud/answer/6158840). This field has been deprecated and replaced by the name field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001899 }
1900
1901 x__xgafv: string, V1 error format.
1902 Allowed values
1903 1 - v1 error format
1904 2 - v2 error format
1905
1906Returns:
1907 An object of the form:
1908
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001909 { # This operation resource represents operations that may have happened or are happening on the cluster. All fields are output only.
1910 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1911 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001912 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001913 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
1914 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state. Deprecated. Use field error instead.
1915 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
1916 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
1917 &quot;canonicalCode&quot;: &quot;A String&quot;, # Canonical code of the condition.
1918 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition Deprecated. Use canonical_code instead.
1919 },
1920 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001921 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001922 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage. Unset for single-stage operations.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001923 &quot;stages&quot;: [ # Substages of an operation or a stage.
1924 # Object with schema name: OperationProgress
1925 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001926 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage. Unset for single-stage operations.
1927 &quot;metrics&quot;: [ # Progress metric bundle, for example: metrics: [{name: &quot;nodes done&quot;, int_value: 15}, {name: &quot;nodes total&quot;, int_value: 32}] or metrics: [{name: &quot;progress&quot;, double_value: 0.56}, {name: &quot;progress scale&quot;, double_value: 1.0}]
Bu Sun Kim65020912020-05-20 12:08:20 -07001928 { # Progress metric is (string, int|float|string) pair.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001929 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
1930 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001931 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
1932 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
Bu Sun Kim65020912020-05-20 12:08:20 -07001933 },
1934 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001935 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001936 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the operation is taking place. This field is deprecated, use location instead.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001937 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001938 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state. Deprecated. Use field error instead.
1939 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001940 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001941 &quot;canonicalCode&quot;: &quot;A String&quot;, # Canonical code of the condition.
1942 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition Deprecated. Use canonical_code instead.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001943 },
1944 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001945 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error. Deprecated. Use field error instead.
1946 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) or [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) in which the cluster resides.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001947 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001948 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
1949 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1950 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure.
1951 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
1952 {
1953 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1954 },
1955 ],
1956 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
1957 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1958 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001959 }</pre>
1960</div>
1961
1962<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001963 <code class="details" id="setLocations">setLocations(name, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001964 <pre>Sets the locations for a specific cluster. Deprecated. Use [projects.locations.clusters.update](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1beta1/projects.locations.clusters/update) instead.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001965
1966Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001967 name: string, The name (project, location, cluster) of the cluster to set locations. Specified in the format `projects/*/locations/*/clusters/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001968 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001969 The object takes the form of:
1970
1971{ # SetLocationsRequest sets the locations of the cluster.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001972 &quot;zone&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field.
1973 &quot;projectId&quot;: &quot;A String&quot;, # Required. Deprecated. The Google Developers Console [project ID or project number](https://support.google.com/cloud/answer/6158840). This field has been deprecated and replaced by the name field.
1974 &quot;clusterId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the cluster to upgrade. This field has been deprecated and replaced by the name field.
1975 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster) of the cluster to set locations. Specified in the format `projects/*/locations/*/clusters/*`.
1976 &quot;locations&quot;: [ # Required. The desired list of Google Compute Engine [zones](https://cloud.google.com/compute/docs/zones#available) in which the cluster&#x27;s nodes should be located. Changing the locations a cluster is in will result in nodes being either created or removed from the cluster, depending on whether locations are being added or removed. This list must always include the cluster&#x27;s primary zone.
Bu Sun Kim65020912020-05-20 12:08:20 -07001977 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001978 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001979 }
1980
1981 x__xgafv: string, V1 error format.
1982 Allowed values
1983 1 - v1 error format
1984 2 - v2 error format
1985
1986Returns:
1987 An object of the form:
1988
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001989 { # This operation resource represents operations that may have happened or are happening on the cluster. All fields are output only.
1990 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1991 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001992 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001993 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
1994 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state. Deprecated. Use field error instead.
1995 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
1996 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
1997 &quot;canonicalCode&quot;: &quot;A String&quot;, # Canonical code of the condition.
1998 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition Deprecated. Use canonical_code instead.
1999 },
2000 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002001 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002002 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage. Unset for single-stage operations.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002003 &quot;stages&quot;: [ # Substages of an operation or a stage.
2004 # Object with schema name: OperationProgress
2005 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002006 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage. Unset for single-stage operations.
2007 &quot;metrics&quot;: [ # Progress metric bundle, for example: metrics: [{name: &quot;nodes done&quot;, int_value: 15}, {name: &quot;nodes total&quot;, int_value: 32}] or metrics: [{name: &quot;progress&quot;, double_value: 0.56}, {name: &quot;progress scale&quot;, double_value: 1.0}]
Bu Sun Kim65020912020-05-20 12:08:20 -07002008 { # Progress metric is (string, int|float|string) pair.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002009 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
2010 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002011 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
2012 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
Bu Sun Kim65020912020-05-20 12:08:20 -07002013 },
2014 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002015 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002016 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the operation is taking place. This field is deprecated, use location instead.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002017 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002018 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state. Deprecated. Use field error instead.
2019 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002020 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002021 &quot;canonicalCode&quot;: &quot;A String&quot;, # Canonical code of the condition.
2022 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition Deprecated. Use canonical_code instead.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002023 },
2024 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002025 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error. Deprecated. Use field error instead.
2026 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) or [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) in which the cluster resides.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002027 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002028 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
2029 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
2030 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure.
2031 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
2032 {
2033 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2034 },
2035 ],
2036 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
2037 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
2038 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002039 }</pre>
2040</div>
2041
2042<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07002043 <code class="details" id="setLogging">setLogging(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002044 <pre>Sets the logging service for a specific cluster.
2045
2046Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002047 name: string, The name (project, location, cluster) of the cluster to set logging. Specified in the format `projects/*/locations/*/clusters/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07002048 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002049 The object takes the form of:
2050
2051{ # SetLoggingServiceRequest sets the logging service of a cluster.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002052 &quot;projectId&quot;: &quot;A String&quot;, # Required. Deprecated. The Google Developers Console [project ID or project number](https://support.google.com/cloud/answer/6158840). This field has been deprecated and replaced by the name field.
2053 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster) of the cluster to set logging. Specified in the format `projects/*/locations/*/clusters/*`.
2054 &quot;clusterId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the cluster to upgrade. This field has been deprecated and replaced by the name field.
2055 &quot;loggingService&quot;: &quot;A String&quot;, # Required. The logging service the cluster should use to write logs. Currently available options: * `logging.googleapis.com/kubernetes` - The Cloud Logging service with a Kubernetes-native resource model * `logging.googleapis.com` - The legacy Cloud Logging service (no longer available as of GKE 1.15). * `none` - no logs will be exported from the cluster. If left as an empty string,`logging.googleapis.com/kubernetes` will be used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
2056 &quot;zone&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002057 }
2058
2059 x__xgafv: string, V1 error format.
2060 Allowed values
2061 1 - v1 error format
2062 2 - v2 error format
2063
2064Returns:
2065 An object of the form:
2066
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002067 { # This operation resource represents operations that may have happened or are happening on the cluster. All fields are output only.
2068 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
2069 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002070 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002071 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
2072 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state. Deprecated. Use field error instead.
2073 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
2074 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
2075 &quot;canonicalCode&quot;: &quot;A String&quot;, # Canonical code of the condition.
2076 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition Deprecated. Use canonical_code instead.
2077 },
2078 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002079 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002080 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage. Unset for single-stage operations.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002081 &quot;stages&quot;: [ # Substages of an operation or a stage.
2082 # Object with schema name: OperationProgress
2083 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002084 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage. Unset for single-stage operations.
2085 &quot;metrics&quot;: [ # Progress metric bundle, for example: metrics: [{name: &quot;nodes done&quot;, int_value: 15}, {name: &quot;nodes total&quot;, int_value: 32}] or metrics: [{name: &quot;progress&quot;, double_value: 0.56}, {name: &quot;progress scale&quot;, double_value: 1.0}]
Bu Sun Kim65020912020-05-20 12:08:20 -07002086 { # Progress metric is (string, int|float|string) pair.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002087 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
2088 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002089 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
2090 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
Bu Sun Kim65020912020-05-20 12:08:20 -07002091 },
2092 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002093 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002094 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the operation is taking place. This field is deprecated, use location instead.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002095 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002096 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state. Deprecated. Use field error instead.
2097 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002098 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002099 &quot;canonicalCode&quot;: &quot;A String&quot;, # Canonical code of the condition.
2100 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition Deprecated. Use canonical_code instead.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002101 },
2102 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002103 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error. Deprecated. Use field error instead.
2104 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) or [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) in which the cluster resides.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002105 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002106 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
2107 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
2108 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure.
2109 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
2110 {
2111 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2112 },
2113 ],
2114 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
2115 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
2116 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002117 }</pre>
2118</div>
2119
2120<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07002121 <code class="details" id="setMaintenancePolicy">setMaintenancePolicy(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002122 <pre>Sets the maintenance policy for a cluster.
2123
2124Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002125 name: string, The name (project, location, cluster id) of the cluster to set maintenance policy. Specified in the format `projects/*/locations/*/clusters/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07002126 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002127 The object takes the form of:
2128
2129{ # SetMaintenancePolicyRequest sets the maintenance policy for a cluster.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002130 &quot;clusterId&quot;: &quot;A String&quot;, # Required. The name of the cluster to update.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002131 &quot;projectId&quot;: &quot;A String&quot;, # Required. The Google Developers Console [project ID or project number](https://support.google.com/cloud/answer/6158840).
2132 &quot;zone&quot;: &quot;A String&quot;, # Required. The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides.
2133 &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 clears the existing maintenance policy.
Bu Sun Kim65020912020-05-20 12:08:20 -07002134 &quot;window&quot;: { # MaintenanceWindow defines the maintenance window to be used for the cluster. # Specifies the maintenance window in which maintenance may be performed.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002135 &quot;recurringWindow&quot;: { # Represents an arbitrary window of time that recurs. # RecurringWindow specifies some number of recurring time periods for maintenance to occur. The time windows may be overlapping. If no maintenance windows are set, maintenance can occur at any time.
2136 &quot;recurrence&quot;: &quot;A String&quot;, # An RRULE (https://tools.ietf.org/html/rfc5545#section-3.8.5.3) for how this window reccurs. They go on for the span of time between the start and end time. For example, to have something repeat every weekday, you&#x27;d use: `FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR` To repeat some window daily (equivalent to the DailyMaintenanceWindow): `FREQ=DAILY` For the first weekend of every month: `FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU` This specifies how frequently the window starts. Eg, if you wanted to have a 9-5 UTC-4 window every weekday, you&#x27;d use something like: ``` start time = 2019-01-01T09:00:00-0400 end time = 2019-01-01T17:00:00-0400 recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR ``` Windows can span multiple days. Eg, to make the window encompass every weekend from midnight Saturday till the last minute of Sunday UTC: ``` start time = 2019-01-05T00:00:00Z end time = 2019-01-07T23:59:00Z recurrence = FREQ=WEEKLY;BYDAY=SA ``` Note the start and end time&#x27;s specific dates are largely arbitrary except to specify duration of the window and when it first starts. The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.
Bu Sun Kim65020912020-05-20 12:08:20 -07002137 &quot;window&quot;: { # Represents an arbitrary window of time. # The window of the first recurrence.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002138 &quot;startTime&quot;: &quot;A String&quot;, # The time that the window first starts.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002139 &quot;endTime&quot;: &quot;A String&quot;, # The time that the window ends. The end time should take place after the start time.
Dan O'Mearadd494642020-05-01 07:42:23 -07002140 },
2141 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002142 &quot;dailyMaintenanceWindow&quot;: { # Time window specified for daily maintenance operations. # DailyMaintenanceWindow specifies a daily maintenance operation window.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002143 &quot;startTime&quot;: &quot;A String&quot;, # Time within the maintenance window to start the maintenance operations. It must be in format &quot;HH:MM&quot;, where HH : [00-23] and MM : [00-59] GMT.
2144 &quot;duration&quot;: &quot;A String&quot;, # [Output only] Duration of the time window, automatically chosen to be smallest possible in the given scenario.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002145 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002146 &quot;maintenanceExclusions&quot;: { # Exceptions to maintenance window. Non-emergency maintenance should not occur in these windows.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002147 &quot;a_key&quot;: { # Represents an arbitrary window of time.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002148 &quot;startTime&quot;: &quot;A String&quot;, # The time that the window first starts.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002149 &quot;endTime&quot;: &quot;A String&quot;, # The time that the window ends. The end time should take place after the start time.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002150 },
Dan O'Mearadd494642020-05-01 07:42:23 -07002151 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002152 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002153 &quot;resourceVersion&quot;: &quot;A String&quot;, # A hash identifying the version of this policy, so that updates to fields of the policy won&#x27;t accidentally undo intermediate changes (and so that users of the API unaware of some fields won&#x27;t accidentally remove other fields). Make a `get()` request to the cluster to get the current resource version and include it with requests to set the policy.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002154 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002155 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster id) of the cluster to set maintenance policy. Specified in the format `projects/*/locations/*/clusters/*`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002156 }
2157
2158 x__xgafv: string, V1 error format.
2159 Allowed values
2160 1 - v1 error format
2161 2 - v2 error format
2162
2163Returns:
2164 An object of the form:
2165
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002166 { # This operation resource represents operations that may have happened or are happening on the cluster. All fields are output only.
2167 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
2168 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002169 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002170 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
2171 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state. Deprecated. Use field error instead.
2172 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
2173 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
2174 &quot;canonicalCode&quot;: &quot;A String&quot;, # Canonical code of the condition.
2175 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition Deprecated. Use canonical_code instead.
2176 },
2177 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002178 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002179 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage. Unset for single-stage operations.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002180 &quot;stages&quot;: [ # Substages of an operation or a stage.
2181 # Object with schema name: OperationProgress
2182 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002183 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage. Unset for single-stage operations.
2184 &quot;metrics&quot;: [ # Progress metric bundle, for example: metrics: [{name: &quot;nodes done&quot;, int_value: 15}, {name: &quot;nodes total&quot;, int_value: 32}] or metrics: [{name: &quot;progress&quot;, double_value: 0.56}, {name: &quot;progress scale&quot;, double_value: 1.0}]
Bu Sun Kim65020912020-05-20 12:08:20 -07002185 { # Progress metric is (string, int|float|string) pair.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002186 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
2187 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002188 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
2189 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
Bu Sun Kim65020912020-05-20 12:08:20 -07002190 },
2191 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002192 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002193 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the operation is taking place. This field is deprecated, use location instead.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002194 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002195 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state. Deprecated. Use field error instead.
2196 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002197 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002198 &quot;canonicalCode&quot;: &quot;A String&quot;, # Canonical code of the condition.
2199 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition Deprecated. Use canonical_code instead.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002200 },
2201 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002202 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error. Deprecated. Use field error instead.
2203 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) or [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) in which the cluster resides.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002204 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002205 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
2206 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
2207 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure.
2208 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
2209 {
2210 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2211 },
2212 ],
2213 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
2214 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
2215 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002216 }</pre>
2217</div>
2218
2219<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07002220 <code class="details" id="setMasterAuth">setMasterAuth(name, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002221 <pre>Sets master auth materials. Currently supports changing the admin password or a specific cluster, either via password generation or explicitly setting the password.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002222
2223Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002224 name: string, The name (project, location, cluster) of the cluster to set auth. Specified in the format `projects/*/locations/*/clusters/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07002225 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002226 The object takes the form of:
2227
2228{ # SetMasterAuthRequest updates the admin password of a cluster.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002229 &quot;update&quot;: { # The authentication information for accessing the master endpoint. Authentication can be done using HTTP basic auth or using client certificates. # Required. A description of the update.
2230 &quot;username&quot;: &quot;A String&quot;, # The username to use for HTTP basic authentication to the master endpoint. For clusters v1.6.0 and later, basic authentication can be disabled by leaving username unspecified (or setting it to the empty string). Warning: basic authentication is deprecated, and will be removed in GKE control plane versions 1.19 and newer. For a list of recommended authentication methods, see: https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002231 &quot;clusterCaCertificate&quot;: &quot;A String&quot;,
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002232 &quot;clientKey&quot;: &quot;A String&quot;, # [Output only] Base64-encoded private key used by clients to authenticate to the cluster endpoint.
2233 &quot;clientCertificate&quot;: &quot;A String&quot;, # [Output only] Base64-encoded public certificate used by clients to authenticate to the cluster endpoint.
2234 &quot;password&quot;: &quot;A String&quot;, # The password to use for HTTP basic authentication to the master endpoint. Because the master endpoint is open to the Internet, you should create a strong password. If a password is provided for cluster creation, username must be non-empty. Warning: basic authentication is deprecated, and will be removed in GKE control plane versions 1.19 and newer. For a list of recommended authentication methods, see: https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication
2235 &quot;clientCertificateConfig&quot;: { # Configuration for client certificates on the cluster. # Configuration for client certificate authentication on the cluster. For clusters before v1.12, if no configuration is specified, a client certificate is issued.
Bu Sun Kim65020912020-05-20 12:08:20 -07002236 &quot;issueClientCertificate&quot;: True or False, # Issue a client certificate.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002237 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002238 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002239 &quot;zone&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field.
2240 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster) of the cluster to set auth. Specified in the format `projects/*/locations/*/clusters/*`.
2241 &quot;clusterId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the cluster to upgrade. This field has been deprecated and replaced by the name field.
2242 &quot;projectId&quot;: &quot;A String&quot;, # Required. Deprecated. The Google Developers Console [project ID or project number](https://support.google.com/cloud/answer/6158840). This field has been deprecated and replaced by the name field.
2243 &quot;action&quot;: &quot;A String&quot;, # Required. The exact form of action to be taken on the master auth.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002244 }
2245
2246 x__xgafv: string, V1 error format.
2247 Allowed values
2248 1 - v1 error format
2249 2 - v2 error format
2250
2251Returns:
2252 An object of the form:
2253
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002254 { # This operation resource represents operations that may have happened or are happening on the cluster. All fields are output only.
2255 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
2256 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002257 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002258 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
2259 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state. Deprecated. Use field error instead.
2260 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
2261 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
2262 &quot;canonicalCode&quot;: &quot;A String&quot;, # Canonical code of the condition.
2263 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition Deprecated. Use canonical_code instead.
2264 },
2265 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002266 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002267 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage. Unset for single-stage operations.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002268 &quot;stages&quot;: [ # Substages of an operation or a stage.
2269 # Object with schema name: OperationProgress
2270 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002271 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage. Unset for single-stage operations.
2272 &quot;metrics&quot;: [ # Progress metric bundle, for example: metrics: [{name: &quot;nodes done&quot;, int_value: 15}, {name: &quot;nodes total&quot;, int_value: 32}] or metrics: [{name: &quot;progress&quot;, double_value: 0.56}, {name: &quot;progress scale&quot;, double_value: 1.0}]
Bu Sun Kim65020912020-05-20 12:08:20 -07002273 { # Progress metric is (string, int|float|string) pair.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002274 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
2275 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002276 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
2277 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
Bu Sun Kim65020912020-05-20 12:08:20 -07002278 },
2279 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002280 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002281 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the operation is taking place. This field is deprecated, use location instead.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002282 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002283 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state. Deprecated. Use field error instead.
2284 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002285 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002286 &quot;canonicalCode&quot;: &quot;A String&quot;, # Canonical code of the condition.
2287 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition Deprecated. Use canonical_code instead.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002288 },
2289 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002290 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error. Deprecated. Use field error instead.
2291 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) or [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) in which the cluster resides.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002292 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002293 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
2294 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
2295 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure.
2296 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
2297 {
2298 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2299 },
2300 ],
2301 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
2302 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
2303 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002304 }</pre>
2305</div>
2306
2307<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07002308 <code class="details" id="setMonitoring">setMonitoring(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002309 <pre>Sets the monitoring service for a specific cluster.
2310
2311Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002312 name: string, The name (project, location, cluster) of the cluster to set monitoring. Specified in the format `projects/*/locations/*/clusters/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07002313 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002314 The object takes the form of:
2315
2316{ # SetMonitoringServiceRequest sets the monitoring service of a cluster.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002317 &quot;monitoringService&quot;: &quot;A String&quot;, # Required. The monitoring service the cluster should use to write metrics. Currently available options: * &quot;monitoring.googleapis.com/kubernetes&quot; - The Cloud Monitoring service with a Kubernetes-native resource model * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no longer available as of GKE 1.15). * `none` - No metrics will be exported from the cluster. If left as an empty string,`monitoring.googleapis.com/kubernetes` will be used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
2318 &quot;projectId&quot;: &quot;A String&quot;, # Required. Deprecated. The Google Developers Console [project ID or project number](https://support.google.com/cloud/answer/6158840). This field has been deprecated and replaced by the name field.
2319 &quot;clusterId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the cluster to upgrade. This field has been deprecated and replaced by the name field.
2320 &quot;zone&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field.
2321 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster) of the cluster to set monitoring. Specified in the format `projects/*/locations/*/clusters/*`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002322 }
2323
2324 x__xgafv: string, V1 error format.
2325 Allowed values
2326 1 - v1 error format
2327 2 - v2 error format
2328
2329Returns:
2330 An object of the form:
2331
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002332 { # This operation resource represents operations that may have happened or are happening on the cluster. All fields are output only.
2333 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
2334 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002335 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002336 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
2337 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state. Deprecated. Use field error instead.
2338 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
2339 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
2340 &quot;canonicalCode&quot;: &quot;A String&quot;, # Canonical code of the condition.
2341 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition Deprecated. Use canonical_code instead.
2342 },
2343 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002344 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002345 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage. Unset for single-stage operations.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002346 &quot;stages&quot;: [ # Substages of an operation or a stage.
2347 # Object with schema name: OperationProgress
2348 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002349 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage. Unset for single-stage operations.
2350 &quot;metrics&quot;: [ # Progress metric bundle, for example: metrics: [{name: &quot;nodes done&quot;, int_value: 15}, {name: &quot;nodes total&quot;, int_value: 32}] or metrics: [{name: &quot;progress&quot;, double_value: 0.56}, {name: &quot;progress scale&quot;, double_value: 1.0}]
Bu Sun Kim65020912020-05-20 12:08:20 -07002351 { # Progress metric is (string, int|float|string) pair.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002352 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
2353 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002354 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
2355 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
Bu Sun Kim65020912020-05-20 12:08:20 -07002356 },
2357 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002358 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002359 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the operation is taking place. This field is deprecated, use location instead.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002360 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002361 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state. Deprecated. Use field error instead.
2362 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002363 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002364 &quot;canonicalCode&quot;: &quot;A String&quot;, # Canonical code of the condition.
2365 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition Deprecated. Use canonical_code instead.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002366 },
2367 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002368 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error. Deprecated. Use field error instead.
2369 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) or [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) in which the cluster resides.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002370 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002371 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
2372 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
2373 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure.
2374 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
2375 {
2376 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2377 },
2378 ],
2379 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
2380 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
2381 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002382 }</pre>
2383</div>
2384
2385<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07002386 <code class="details" id="setNetworkPolicy">setNetworkPolicy(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002387 <pre>Enables or disables Network Policy for a cluster.
2388
2389Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002390 name: string, The name (project, location, cluster id) of the cluster to set networking policy. Specified in the format `projects/*/locations/*/clusters/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07002391 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002392 The object takes the form of:
2393
2394{ # SetNetworkPolicyRequest enables/disables network policy for a cluster.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002395 &quot;projectId&quot;: &quot;A String&quot;, # Required. Deprecated. The Google Developers Console [project ID or project number](https://developers.google.com/console/help/new/#projectnumber). This field has been deprecated and replaced by the name field.
2396 &quot;zone&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field.
2397 &quot;clusterId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the cluster. This field has been deprecated and replaced by the name field.
2398 &quot;networkPolicy&quot;: { # Configuration options for the NetworkPolicy feature. https://kubernetes.io/docs/concepts/services-networking/networkpolicies/ # Required. Configuration options for the NetworkPolicy feature.
Bu Sun Kim65020912020-05-20 12:08:20 -07002399 &quot;provider&quot;: &quot;A String&quot;, # The selected network policy provider.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002400 &quot;enabled&quot;: True or False, # Whether network policy is enabled on the cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -07002401 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002402 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster id) of the cluster to set networking policy. Specified in the format `projects/*/locations/*/clusters/*`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002403 }
2404
2405 x__xgafv: string, V1 error format.
2406 Allowed values
2407 1 - v1 error format
2408 2 - v2 error format
2409
2410Returns:
2411 An object of the form:
2412
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002413 { # This operation resource represents operations that may have happened or are happening on the cluster. All fields are output only.
2414 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
2415 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002416 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002417 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
2418 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state. Deprecated. Use field error instead.
2419 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
2420 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
2421 &quot;canonicalCode&quot;: &quot;A String&quot;, # Canonical code of the condition.
2422 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition Deprecated. Use canonical_code instead.
2423 },
2424 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002425 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002426 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage. Unset for single-stage operations.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002427 &quot;stages&quot;: [ # Substages of an operation or a stage.
2428 # Object with schema name: OperationProgress
2429 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002430 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage. Unset for single-stage operations.
2431 &quot;metrics&quot;: [ # Progress metric bundle, for example: metrics: [{name: &quot;nodes done&quot;, int_value: 15}, {name: &quot;nodes total&quot;, int_value: 32}] or metrics: [{name: &quot;progress&quot;, double_value: 0.56}, {name: &quot;progress scale&quot;, double_value: 1.0}]
Bu Sun Kim65020912020-05-20 12:08:20 -07002432 { # Progress metric is (string, int|float|string) pair.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002433 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
2434 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002435 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
2436 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
Bu Sun Kim65020912020-05-20 12:08:20 -07002437 },
2438 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002439 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002440 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the operation is taking place. This field is deprecated, use location instead.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002441 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002442 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state. Deprecated. Use field error instead.
2443 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002444 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002445 &quot;canonicalCode&quot;: &quot;A String&quot;, # Canonical code of the condition.
2446 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition Deprecated. Use canonical_code instead.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002447 },
2448 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002449 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error. Deprecated. Use field error instead.
2450 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) or [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) in which the cluster resides.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002451 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002452 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
2453 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
2454 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure.
2455 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
2456 {
2457 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2458 },
2459 ],
2460 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
2461 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
2462 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002463 }</pre>
2464</div>
2465
2466<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07002467 <code class="details" id="setResourceLabels">setResourceLabels(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002468 <pre>Sets labels on a cluster.
2469
2470Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002471 name: string, The name (project, location, cluster id) of the cluster to set labels. Specified in the format `projects/*/locations/*/clusters/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07002472 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002473 The object takes the form of:
2474
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002475{ # SetLabelsRequest sets the Google Cloud Platform labels on a Google Container Engine cluster, which will in turn set them for Google Compute Engine resources used by that cluster
2476 &quot;clusterId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the cluster. This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07002477 &quot;resourceLabels&quot;: { # Required. The labels to set for that cluster.
2478 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002479 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002480 &quot;zone&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field.
2481 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster id) of the cluster to set labels. Specified in the format `projects/*/locations/*/clusters/*`.
2482 &quot;labelFingerprint&quot;: &quot;A String&quot;, # Required. The fingerprint of the previous set of labels for this resource, used to detect conflicts. The fingerprint is initially generated by Kubernetes Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash when updating or changing labels. Make a `get()` request to the resource to get the latest fingerprint.
2483 &quot;projectId&quot;: &quot;A String&quot;, # Required. Deprecated. The Google Developers Console [project ID or project number](https://developers.google.com/console/help/new/#projectnumber). This field has been deprecated and replaced by the name field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002484 }
2485
2486 x__xgafv: string, V1 error format.
2487 Allowed values
2488 1 - v1 error format
2489 2 - v2 error format
2490
2491Returns:
2492 An object of the form:
2493
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002494 { # This operation resource represents operations that may have happened or are happening on the cluster. All fields are output only.
2495 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
2496 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002497 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002498 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
2499 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state. Deprecated. Use field error instead.
2500 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
2501 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
2502 &quot;canonicalCode&quot;: &quot;A String&quot;, # Canonical code of the condition.
2503 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition Deprecated. Use canonical_code instead.
2504 },
2505 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002506 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002507 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage. Unset for single-stage operations.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002508 &quot;stages&quot;: [ # Substages of an operation or a stage.
2509 # Object with schema name: OperationProgress
2510 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002511 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage. Unset for single-stage operations.
2512 &quot;metrics&quot;: [ # Progress metric bundle, for example: metrics: [{name: &quot;nodes done&quot;, int_value: 15}, {name: &quot;nodes total&quot;, int_value: 32}] or metrics: [{name: &quot;progress&quot;, double_value: 0.56}, {name: &quot;progress scale&quot;, double_value: 1.0}]
Bu Sun Kim65020912020-05-20 12:08:20 -07002513 { # Progress metric is (string, int|float|string) pair.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002514 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
2515 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002516 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
2517 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
Bu Sun Kim65020912020-05-20 12:08:20 -07002518 },
2519 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002520 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002521 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the operation is taking place. This field is deprecated, use location instead.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002522 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002523 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state. Deprecated. Use field error instead.
2524 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002525 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002526 &quot;canonicalCode&quot;: &quot;A String&quot;, # Canonical code of the condition.
2527 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition Deprecated. Use canonical_code instead.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002528 },
2529 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002530 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error. Deprecated. Use field error instead.
2531 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) or [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) in which the cluster resides.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002532 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002533 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
2534 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
2535 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure.
2536 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
2537 {
2538 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2539 },
2540 ],
2541 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
2542 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
2543 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002544 }</pre>
2545</div>
2546
2547<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07002548 <code class="details" id="startIpRotation">startIpRotation(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002549 <pre>Starts master IP rotation.
2550
2551Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002552 name: string, The name (project, location, cluster id) of the cluster to start IP rotation. Specified in the format `projects/*/locations/*/clusters/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07002553 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002554 The object takes the form of:
2555
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002556{ # StartIPRotationRequest creates a new IP for the cluster and then performs a node upgrade on each node pool to point to the new IP.
2557 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster id) of the cluster to start IP rotation. Specified in the format `projects/*/locations/*/clusters/*`.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002558 &quot;rotateCredentials&quot;: True or False, # Whether to rotate credentials during IP rotation.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002559 &quot;clusterId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the cluster. This field has been deprecated and replaced by the name field.
2560 &quot;projectId&quot;: &quot;A String&quot;, # Required. Deprecated. The Google Developers Console [project ID or project number](https://developers.google.com/console/help/new/#projectnumber). This field has been deprecated and replaced by the name field.
2561 &quot;zone&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002562 }
2563
2564 x__xgafv: string, V1 error format.
2565 Allowed values
2566 1 - v1 error format
2567 2 - v2 error format
2568
2569Returns:
2570 An object of the form:
2571
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002572 { # This operation resource represents operations that may have happened or are happening on the cluster. All fields are output only.
2573 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
2574 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002575 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002576 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
2577 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state. Deprecated. Use field error instead.
2578 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
2579 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
2580 &quot;canonicalCode&quot;: &quot;A String&quot;, # Canonical code of the condition.
2581 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition Deprecated. Use canonical_code instead.
2582 },
2583 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002584 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002585 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage. Unset for single-stage operations.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002586 &quot;stages&quot;: [ # Substages of an operation or a stage.
2587 # Object with schema name: OperationProgress
2588 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002589 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage. Unset for single-stage operations.
2590 &quot;metrics&quot;: [ # Progress metric bundle, for example: metrics: [{name: &quot;nodes done&quot;, int_value: 15}, {name: &quot;nodes total&quot;, int_value: 32}] or metrics: [{name: &quot;progress&quot;, double_value: 0.56}, {name: &quot;progress scale&quot;, double_value: 1.0}]
Bu Sun Kim65020912020-05-20 12:08:20 -07002591 { # Progress metric is (string, int|float|string) pair.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002592 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
2593 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002594 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
2595 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
Bu Sun Kim65020912020-05-20 12:08:20 -07002596 },
2597 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002598 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002599 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the operation is taking place. This field is deprecated, use location instead.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002600 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002601 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state. Deprecated. Use field error instead.
2602 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002603 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002604 &quot;canonicalCode&quot;: &quot;A String&quot;, # Canonical code of the condition.
2605 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition Deprecated. Use canonical_code instead.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002606 },
2607 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002608 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error. Deprecated. Use field error instead.
2609 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) or [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) in which the cluster resides.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002610 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002611 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
2612 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
2613 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure.
2614 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
2615 {
2616 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2617 },
2618 ],
2619 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
2620 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
2621 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002622 }</pre>
2623</div>
2624
2625<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07002626 <code class="details" id="update">update(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002627 <pre>Updates the settings for a specific cluster.
2628
2629Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002630 name: string, The name (project, location, cluster) of the cluster to update. Specified in the format `projects/*/locations/*/clusters/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07002631 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002632 The object takes the form of:
2633
2634{ # UpdateClusterRequest updates the settings of a cluster.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002635 &quot;projectId&quot;: &quot;A String&quot;, # Required. Deprecated. The Google Developers Console [project ID or project number](https://support.google.com/cloud/answer/6158840). This field has been deprecated and replaced by the name field.
2636 &quot;update&quot;: { # ClusterUpdate describes an update to the cluster. Exactly one update can be applied to a cluster with each request, so at most one field can be provided. # Required. A description of the update.
2637 &quot;desiredDefaultSnatStatus&quot;: { # DefaultSnatStatus contains the desired state of whether default sNAT should be disabled on the cluster. # The desired status of whether to disable default sNAT for this cluster.
2638 &quot;disabled&quot;: True or False, # Disables cluster default sNAT rules.
2639 },
2640 &quot;desiredIntraNodeVisibilityConfig&quot;: { # IntraNodeVisibilityConfig contains the desired config of the intra-node visibility on this cluster. # The desired config of Intra-node visibility.
2641 &quot;enabled&quot;: True or False, # Enables intra node visibility for this cluster.
2642 },
2643 &quot;desiredNodeVersion&quot;: &quot;A String&quot;, # The Kubernetes version to change the nodes to (typically an upgrade). Users may specify either explicit versions offered by Kubernetes Engine or version aliases, which have the following behavior: - &quot;latest&quot;: picks the highest valid Kubernetes version - &quot;1.X&quot;: picks the highest valid patch+gke.N patch in the 1.X version - &quot;1.X.Y&quot;: picks the highest valid gke.N patch in the 1.X.Y version - &quot;1.X.Y-gke.N&quot;: picks an explicit Kubernetes version - &quot;-&quot;: picks the Kubernetes master version
2644 &quot;desiredMasterVersion&quot;: &quot;A String&quot;, # The Kubernetes version to change the master to. The only valid value is the latest supported version. Users may specify either explicit versions offered by Kubernetes Engine or version aliases, which have the following behavior: - &quot;latest&quot;: picks the highest valid Kubernetes version - &quot;1.X&quot;: picks the highest valid patch+gke.N patch in the 1.X version - &quot;1.X.Y&quot;: picks the highest valid gke.N patch in the 1.X.Y version - &quot;1.X.Y-gke.N&quot;: picks an explicit Kubernetes version - &quot;-&quot;: picks the default Kubernetes version
2645 &quot;desiredVerticalPodAutoscaling&quot;: { # VerticalPodAutoscaling contains global, per-cluster information required by Vertical Pod Autoscaler to automatically adjust the resources of pods controlled by it. # Cluster-level Vertical Pod Autoscaling configuration.
2646 &quot;enabled&quot;: True or False, # Enables vertical pod autoscaling.
2647 },
2648 &quot;desiredPodSecurityPolicyConfig&quot;: { # Configuration for the PodSecurityPolicy feature. # The desired configuration options for the PodSecurityPolicy feature.
2649 &quot;enabled&quot;: True or False, # Enable the PodSecurityPolicy controller for this cluster. If enabled, pods must be valid under a PodSecurityPolicy to be created.
2650 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002651 &quot;desiredShieldedNodes&quot;: { # Configuration of Shielded Nodes feature. # Configuration for Shielded Nodes.
2652 &quot;enabled&quot;: True or False, # Whether Shielded Nodes features are enabled on all nodes in this cluster.
2653 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002654 &quot;desiredAddonsConfig&quot;: { # Configuration for the addons that can be automatically spun up in the cluster, enabling additional functionality. # Configurations for the various addons available to run in the cluster.
2655 &quot;cloudRunConfig&quot;: { # Configuration options for the Cloud Run feature. # Configuration for the Cloud Run addon. The `IstioConfig` addon must be enabled in order to enable Cloud Run addon. This option can only be enabled at cluster creation time.
2656 &quot;loadBalancerType&quot;: &quot;A String&quot;, # Which load balancer type is installed for Cloud Run.
2657 &quot;disabled&quot;: True or False, # Whether Cloud Run addon is enabled for this cluster.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002658 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002659 &quot;configConnectorConfig&quot;: { # Configuration options for the Config Connector add-on. # Configuration for the ConfigConnector add-on, a Kubernetes extension to manage hosted GCP services through the Kubernetes API
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002660 &quot;enabled&quot;: True or False, # Whether Cloud Connector is enabled for this cluster.
2661 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002662 &quot;horizontalPodAutoscaling&quot;: { # Configuration options for the horizontal pod autoscaling feature, which increases or decreases the number of replica pods a replication controller has based on the resource usage of the existing pods. # Configuration for the horizontal pod autoscaling feature, which increases or decreases the number of replica pods a replication controller has based on the resource usage of the existing pods.
2663 &quot;disabled&quot;: True or False, # Whether the Horizontal Pod Autoscaling feature is enabled in the cluster. When enabled, it ensures that metrics are collected into Stackdriver Monitoring.
2664 },
2665 &quot;gcePersistentDiskCsiDriverConfig&quot;: { # Configuration for the Compute Engine PD CSI driver. This option can only be enabled at cluster creation time. # Configuration for the Compute Engine Persistent Disk CSI driver.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002666 &quot;enabled&quot;: True or False, # Whether the Compute Engine PD CSI driver is enabled for this cluster.
2667 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002668 &quot;httpLoadBalancing&quot;: { # Configuration options for the HTTP (L7) load balancing controller addon, which makes it easy to set up HTTP load balancers for services in a cluster. # Configuration for the HTTP (L7) load balancing controller addon, which makes it easy to set up HTTP load balancers for services in a cluster.
2669 &quot;disabled&quot;: True or False, # Whether the HTTP Load Balancing controller is enabled in the cluster. When enabled, it runs a small pod in the cluster that manages the load balancers.
2670 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002671 &quot;dnsCacheConfig&quot;: { # Configuration for NodeLocal DNSCache # Configuration for NodeLocalDNS, a dns cache running on cluster nodes
2672 &quot;enabled&quot;: True or False, # Whether NodeLocal DNSCache is enabled for this cluster.
2673 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002674 &quot;kubernetesDashboard&quot;: { # Configuration for the Kubernetes Dashboard. # Configuration for the Kubernetes Dashboard. This addon is deprecated, and will be disabled in 1.15. It is recommended to use the Cloud Console to manage and monitor your Kubernetes clusters, workloads and applications. For more information, see: https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002675 &quot;disabled&quot;: True or False, # Whether the Kubernetes Dashboard is enabled for this cluster.
2676 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002677 &quot;kalmConfig&quot;: { # Configuration options for the KALM addon. # Configuration for the KALM addon, which manages the lifecycle of k8s applications.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002678 &quot;enabled&quot;: True or False, # Whether KALM is enabled for this cluster.
2679 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002680 &quot;networkPolicyConfig&quot;: { # Configuration for NetworkPolicy. This only tracks whether the addon is enabled or not on the Master, it does not track whether network policy is enabled for the nodes. # Configuration for NetworkPolicy. This only tracks whether the addon is enabled or not on the Master, it does not track whether network policy is enabled for the nodes.
2681 &quot;disabled&quot;: True or False, # Whether NetworkPolicy is enabled for this cluster.
2682 },
2683 &quot;istioConfig&quot;: { # Configuration options for Istio addon. # Configuration for Istio, an open platform to connect, manage, and secure microservices.
2684 &quot;auth&quot;: &quot;A String&quot;, # The specified Istio auth mode, either none, or mutual TLS.
2685 &quot;disabled&quot;: True or False, # Whether Istio is enabled for this cluster.
2686 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002687 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002688 &quot;desiredClusterAutoscaling&quot;: { # ClusterAutoscaling contains global, per-cluster information required by Cluster Autoscaler to automatically adjust the size of the cluster and create/delete node pools based on the current needs. # Cluster-level autoscaling configuration.
2689 &quot;resourceLimits&quot;: [ # Contains global constraints regarding minimum and maximum amount of resources in the cluster.
2690 { # Contains information about amount of some resource in the cluster. For memory, value should be in GB.
2691 &quot;minimum&quot;: &quot;A String&quot;, # Minimum amount of the resource in the cluster.
2692 &quot;resourceType&quot;: &quot;A String&quot;, # Resource name &quot;cpu&quot;, &quot;memory&quot; or gpu-specific string.
2693 &quot;maximum&quot;: &quot;A String&quot;, # Maximum amount of the resource in the cluster.
2694 },
2695 ],
2696 &quot;autoprovisioningNodePoolDefaults&quot;: { # AutoprovisioningNodePoolDefaults contains defaults for a node pool created by NAP. # AutoprovisioningNodePoolDefaults contains defaults for a node pool created by NAP.
2697 &quot;bootDiskKmsKey&quot;: &quot;A String&quot;, # The Customer Managed Encryption Key used to encrypt the boot disk attached to each node in the node pool. This should be of the form projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME]. For more information about protecting resources with Cloud KMS Keys please see: https://cloud.google.com/compute/docs/disks/customer-managed-encryption
2698 &quot;management&quot;: { # NodeManagement defines the set of node management services turned on for the node pool. # NodeManagement configuration for this NodePool.
2699 &quot;autoRepair&quot;: True or False, # Whether the nodes will be automatically repaired.
2700 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how the Auto Upgrades will proceed. # Specifies the Auto Upgrade knobs for the node pool.
2701 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence with the description of the upgrade.
2702 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence with the approximate start time for the upgrades, in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
2703 },
2704 &quot;autoUpgrade&quot;: True or False, # Whether the nodes will be automatically upgraded.
2705 },
2706 &quot;oauthScopes&quot;: [ # The set of Google API scopes to be made available on all of the node VMs under the &quot;default&quot; service account. The following scopes are recommended, but not required, and by default are not included: * `https://www.googleapis.com/auth/compute` is required for mounting persistent storage on your nodes. * `https://www.googleapis.com/auth/devstorage.read_only` is required for communicating with **gcr.io** (the [Google Container Registry](https://cloud.google.com/container-registry/)). If unspecified, no scopes are added, unless Cloud Logging or Cloud Monitoring are enabled, in which case their required scopes will be added.
2707 &quot;A String&quot;,
2708 ],
2709 &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;) If unspecified, the default disk type is &#x27;pd-standard&#x27;
2710 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used by this instance. The instance may be scheduled on the specified or newer CPU platform. Applicable values are the friendly names of CPU platforms, such as `minCpuPlatform: &quot;Intel Haswell&quot;` or `minCpuPlatform: &quot;Intel Sandy Bridge&quot;`. For more information, read [how to specify min CPU platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform) To unset the min cpu platform field pass &quot;automatic&quot; as field value.
2711 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
2712 &quot;enableSecureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled. Secure Boot helps ensure that the system only runs authentic software by verifying the digital signature of all boot components, and halting the boot process if signature verification fails.
2713 &quot;enableIntegrityMonitoring&quot;: True or False, # Defines whether the instance has integrity monitoring enabled. Enables monitoring and attestation of the boot integrity of the instance. The attestation is performed against the integrity policy baseline. This baseline is initially derived from the implicitly trusted boot image when the instance is created.
2714 },
2715 &quot;upgradeSettings&quot;: { # These upgrade settings control the level of parallelism and the level of disruption caused by an upgrade. maxUnavailable controls the number of nodes that can be simultaneously unavailable. maxSurge controls the number of additional nodes that can be added to the node pool temporarily for the time of the upgrade to increase the number of available nodes. (maxUnavailable + maxSurge) determines the level of parallelism (how many nodes are being upgraded at the same time). Note: upgrades inevitably introduce some disruption since workloads need to be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0, this holds true. (Disruption stays within the limits of PodDisruptionBudget, if it is configured.) Consider a hypothetical node pool with 5 nodes having maxSurge=2, maxUnavailable=1. This means the upgrade process upgrades 3 nodes simultaneously. It creates 2 additional (upgraded) nodes, then it brings down 3 old (not yet upgraded) nodes at the same time. This ensures that there are always at least 4 nodes available. # Upgrade settings control disruption and speed of the upgrade.
2716 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size of the node pool during the upgrade process.
2717 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during the upgrade process. A node is considered available if its status is Ready.
2718 },
2719 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs. Specify the email address of the Service Account; otherwise, if no Service Account is specified, the &quot;default&quot; service account is used.
2720 &quot;diskSizeGb&quot;: 42, # Size of the disk attached to each node, specified in GB. The smallest allowed disk size is 10GB. If unspecified, the default disk size is 100GB.
2721 },
2722 &quot;autoprovisioningLocations&quot;: [ # The list of Google Compute Engine [zones](https://cloud.google.com/compute/docs/zones#available) in which the NodePool&#x27;s nodes can be created by NAP.
2723 &quot;A String&quot;,
2724 ],
2725 &quot;enableNodeAutoprovisioning&quot;: True or False, # Enables automatic node pool creation and deletion.
2726 &quot;autoscalingProfile&quot;: &quot;A String&quot;, # Defines autoscaling behaviour.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002727 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002728 &quot;desiredLocations&quot;: [ # The desired list of Google Compute Engine [zones](https://cloud.google.com/compute/docs/zones#available) in which the cluster&#x27;s nodes should be located. Changing the locations a cluster is in will result in nodes being either created or removed from the cluster, depending on whether locations are being added or removed. This list must always include the cluster&#x27;s primary zone.
2729 &quot;A String&quot;,
2730 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002731 &quot;desiredResourceUsageExportConfig&quot;: { # Configuration for exporting cluster resource usages. # The desired configuration for exporting resource usage.
2732 &quot;consumptionMeteringConfig&quot;: { # Parameters for controlling consumption metering. # Configuration to enable resource consumption metering.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002733 &quot;enabled&quot;: True or False, # Whether to enable consumption metering for this cluster. If enabled, a second BigQuery table will be created to hold resource consumption records.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002734 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002735 &quot;enableNetworkEgressMetering&quot;: True or False, # Whether to enable network egress metering for this cluster. If enabled, a daemonset will be created in the cluster to meter network egress traffic.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002736 &quot;bigqueryDestination&quot;: { # Parameters for using BigQuery as the destination of resource usage export. # Configuration to use BigQuery as usage export destination.
2737 &quot;datasetId&quot;: &quot;A String&quot;, # The ID of a BigQuery Dataset.
2738 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002739 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002740 &quot;desiredWorkloadIdentityConfig&quot;: { # Configuration for the use of Kubernetes Service Accounts in GCP IAM policies. # Configuration for Workload Identity.
2741 &quot;identityProvider&quot;: &quot;A String&quot;, # identity provider is the third party identity provider.
2742 &quot;workloadPool&quot;: &quot;A String&quot;, # The workload pool to attach all Kubernetes service accounts to.
2743 &quot;identityNamespace&quot;: &quot;A String&quot;, # IAM Identity Namespace to attach all Kubernetes Service Accounts to.
2744 },
2745 &quot;desiredReleaseChannel&quot;: { # ReleaseChannel indicates which release channel a cluster is subscribed to. Release channels are arranged in order of risk. When a cluster is subscribed to a release channel, Google maintains both the master version and the node version. Node auto-upgrade defaults to true and cannot be disabled. # The desired release channel configuration.
2746 &quot;channel&quot;: &quot;A String&quot;, # channel specifies which release channel the cluster is subscribed to.
2747 },
2748 &quot;desiredDatapathProvider&quot;: &quot;A String&quot;, # The desired datapath provider for the cluster.
2749 &quot;desiredMaster&quot;: { # Master is the configuration for components on master. # Configuration for master components.
2750 },
2751 &quot;desiredImageType&quot;: &quot;A String&quot;, # The desired image type for the node pool. NOTE: Set the &quot;desired_node_pool&quot; field as well.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002752 &quot;desiredBinaryAuthorization&quot;: { # Configuration for Binary Authorization. # The desired configuration options for the Binary Authorization feature.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002753 &quot;enabled&quot;: True or False, # Enable Binary Authorization for this cluster. If enabled, all container images will be validated by Google Binauthz.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002754 },
2755 &quot;desiredPrivateClusterConfig&quot;: { # Configuration options for private clusters. # The desired private cluster configuration.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002756 &quot;masterGlobalAccessConfig&quot;: { # Configuration for controlling master global access settings. # Controls master global access settings.
2757 &quot;enabled&quot;: True or False, # Whenever master is accessible globally or not.
2758 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002759 &quot;enablePrivateNodes&quot;: True or False, # Whether nodes have internal IP addresses only. If enabled, all nodes are given only RFC 1918 private addresses and communicate with the master via private networking.
2760 &quot;enablePrivateEndpoint&quot;: True or False, # Whether the master&#x27;s internal IP address is used as the cluster endpoint.
2761 &quot;masterIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP range in CIDR notation to use for the hosted master network. This range will be used for assigning internal IP addresses to the master or set of masters, as well as the ILB VIP. This range must not overlap with any other ranges in use within the cluster&#x27;s network.
2762 &quot;publicEndpoint&quot;: &quot;A String&quot;, # Output only. The external IP address of this cluster&#x27;s master endpoint.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002763 &quot;privateEndpoint&quot;: &quot;A String&quot;, # Output only. The internal IP address of this cluster&#x27;s master endpoint.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002764 &quot;peeringName&quot;: &quot;A String&quot;, # Output only. The peering name in the customer VPC used by this cluster.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002765 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002766 &quot;desiredNodePoolAutoscaling&quot;: { # NodePoolAutoscaling contains information required by cluster autoscaler to adjust the size of the node pool to the current cluster usage. # Autoscaler configuration for the node pool specified in desired_node_pool_id. If there is only one pool in the cluster and desired_node_pool_id is not provided then the change applies to that single node pool.
2767 &quot;autoprovisioned&quot;: True or False, # Can this node pool be deleted automatically.
2768 &quot;minNodeCount&quot;: 42, # Minimum number of nodes in the NodePool. Must be &gt;= 1 and &lt;= max_node_count.
2769 &quot;enabled&quot;: True or False, # Is autoscaling enabled for this node pool.
2770 &quot;maxNodeCount&quot;: 42, # Maximum number of nodes in the NodePool. Must be &gt;= min_node_count. There has to enough quota to scale up the cluster.
2771 },
2772 &quot;desiredDatabaseEncryption&quot;: { # Configuration of etcd encryption. # Configuration of etcd encryption.
2773 &quot;keyName&quot;: &quot;A String&quot;, # Name of CloudKMS key to use for the encryption of secrets in etcd. Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key
2774 &quot;state&quot;: &quot;A String&quot;, # Denotes the state of etcd encryption.
2775 },
2776 &quot;desiredLoggingService&quot;: &quot;A String&quot;, # The logging service the cluster should use to write logs. Currently available options: * `logging.googleapis.com/kubernetes` - The Cloud Logging service with a Kubernetes-native resource model * `logging.googleapis.com` - The legacy Cloud Logging service (no longer available as of GKE 1.15). * `none` - no logs will be exported from the cluster. If left as an empty string,`logging.googleapis.com/kubernetes` will be used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
2777 &quot;desiredMasterAuthorizedNetworksConfig&quot;: { # Configuration options for the master authorized networks feature. Enabled master authorized networks will disallow all external traffic to access Kubernetes master through HTTPS except traffic from the given CIDR blocks, Google Compute Engine Public IPs and Google Prod IPs. # The desired configuration options for master authorized networks feature.
2778 &quot;cidrBlocks&quot;: [ # cidr_blocks define up to 10 external networks that could access Kubernetes master through HTTPS.
2779 { # CidrBlock contains an optional name and one CIDR block.
2780 &quot;cidrBlock&quot;: &quot;A String&quot;, # cidr_block must be specified in CIDR notation.
2781 &quot;displayName&quot;: &quot;A String&quot;, # display_name is an optional field for users to identify CIDR blocks.
2782 },
2783 ],
2784 &quot;enabled&quot;: True or False, # Whether or not master authorized networks is enabled.
2785 },
2786 &quot;desiredNodePoolId&quot;: &quot;A String&quot;, # The node pool to be upgraded. This field is mandatory if &quot;desired_node_version&quot;, &quot;desired_image_family&quot;, &quot;desired_node_pool_autoscaling&quot;, or &quot;desired_workload_metadata_config&quot; is specified and there is more than one node pool on the cluster.
2787 &quot;desiredTpuConfig&quot;: { # Configuration for Cloud TPU. # The desired Cloud TPU configuration.
2788 &quot;enabled&quot;: True or False, # Whether Cloud TPU integration is enabled or not.
2789 &quot;useServiceNetworking&quot;: True or False, # Whether to use service networking for Cloud TPU or not.
2790 &quot;ipv4CidrBlock&quot;: &quot;A String&quot;, # IPv4 CIDR block reserved for Cloud TPU in the VPC.
2791 },
2792 &quot;desiredMonitoringService&quot;: &quot;A String&quot;, # The monitoring service the cluster should use to write metrics. Currently available options: * &quot;monitoring.googleapis.com/kubernetes&quot; - The Cloud Monitoring service with a Kubernetes-native resource model * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no longer available as of GKE 1.15). * `none` - No metrics will be exported from the cluster. If left as an empty string,`monitoring.googleapis.com/kubernetes` will be used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
2793 &quot;desiredClusterTelemetry&quot;: { # Telemetry integration for the cluster. # The desired telemetry integration for the cluster.
2794 &quot;type&quot;: &quot;A String&quot;, # Type of the integration.
2795 },
2796 &quot;desiredNotificationConfig&quot;: { # NotificationConfig is the configuration of notifications. # The desired notification configuration.
2797 &quot;pubsub&quot;: { # Pub/Sub specific notification config. # Notification config for Pub/Sub.
2798 &quot;enabled&quot;: True or False, # Enable notifications for Pub/Sub.
2799 &quot;topic&quot;: &quot;A String&quot;, # The desired Pub/Sub topic to which notifications will be sent by GKE. Format is `projects/{project}/topics/{topic}`.
2800 },
2801 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002802 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002803 &quot;clusterId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the cluster to upgrade. This field has been deprecated and replaced by the name field.
2804 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster) of the cluster to update. Specified in the format `projects/*/locations/*/clusters/*`.
2805 &quot;zone&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002806 }
2807
2808 x__xgafv: string, V1 error format.
2809 Allowed values
2810 1 - v1 error format
2811 2 - v2 error format
2812
2813Returns:
2814 An object of the form:
2815
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002816 { # This operation resource represents operations that may have happened or are happening on the cluster. All fields are output only.
2817 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
2818 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002819 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002820 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
2821 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state. Deprecated. Use field error instead.
2822 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
2823 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
2824 &quot;canonicalCode&quot;: &quot;A String&quot;, # Canonical code of the condition.
2825 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition Deprecated. Use canonical_code instead.
2826 },
2827 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002828 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002829 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage. Unset for single-stage operations.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002830 &quot;stages&quot;: [ # Substages of an operation or a stage.
2831 # Object with schema name: OperationProgress
2832 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002833 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage. Unset for single-stage operations.
2834 &quot;metrics&quot;: [ # Progress metric bundle, for example: metrics: [{name: &quot;nodes done&quot;, int_value: 15}, {name: &quot;nodes total&quot;, int_value: 32}] or metrics: [{name: &quot;progress&quot;, double_value: 0.56}, {name: &quot;progress scale&quot;, double_value: 1.0}]
Bu Sun Kim65020912020-05-20 12:08:20 -07002835 { # Progress metric is (string, int|float|string) pair.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002836 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
2837 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002838 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
2839 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
Bu Sun Kim65020912020-05-20 12:08:20 -07002840 },
2841 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002842 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002843 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the operation is taking place. This field is deprecated, use location instead.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002844 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002845 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state. Deprecated. Use field error instead.
2846 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002847 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002848 &quot;canonicalCode&quot;: &quot;A String&quot;, # Canonical code of the condition.
2849 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition Deprecated. Use canonical_code instead.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002850 },
2851 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002852 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error. Deprecated. Use field error instead.
2853 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) or [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) in which the cluster resides.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002854 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002855 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
2856 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
2857 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure.
2858 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
2859 {
2860 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2861 },
2862 ],
2863 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
2864 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
2865 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002866 }</pre>
2867</div>
2868
2869<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07002870 <code class="details" id="updateMaster">updateMaster(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002871 <pre>Updates the master for a specific cluster.
2872
2873Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002874 name: string, The name (project, location, cluster) of the cluster to update. Specified in the format `projects/*/locations/*/clusters/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07002875 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002876 The object takes the form of:
2877
2878{ # UpdateMasterRequest updates the master of the cluster.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002879 &quot;clusterId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the cluster to upgrade. This field has been deprecated and replaced by the name field.
2880 &quot;masterVersion&quot;: &quot;A String&quot;, # Required. The Kubernetes version to change the master to. Users may specify either explicit versions offered by Kubernetes Engine or version aliases, which have the following behavior: - &quot;latest&quot;: picks the highest valid Kubernetes version - &quot;1.X&quot;: picks the highest valid patch+gke.N patch in the 1.X version - &quot;1.X.Y&quot;: picks the highest valid gke.N patch in the 1.X.Y version - &quot;1.X.Y-gke.N&quot;: picks an explicit Kubernetes version - &quot;-&quot;: picks the default Kubernetes version
2881 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster) of the cluster to update. Specified in the format `projects/*/locations/*/clusters/*`.
2882 &quot;projectId&quot;: &quot;A String&quot;, # Required. Deprecated. The Google Developers Console [project ID or project number](https://support.google.com/cloud/answer/6158840). This field has been deprecated and replaced by the name field.
2883 &quot;zone&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002884 }
2885
2886 x__xgafv: string, V1 error format.
2887 Allowed values
2888 1 - v1 error format
2889 2 - v2 error format
2890
2891Returns:
2892 An object of the form:
2893
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002894 { # This operation resource represents operations that may have happened or are happening on the cluster. All fields are output only.
2895 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
2896 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002897 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002898 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
2899 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state. Deprecated. Use field error instead.
2900 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
2901 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
2902 &quot;canonicalCode&quot;: &quot;A String&quot;, # Canonical code of the condition.
2903 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition Deprecated. Use canonical_code instead.
2904 },
2905 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002906 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002907 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage. Unset for single-stage operations.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002908 &quot;stages&quot;: [ # Substages of an operation or a stage.
2909 # Object with schema name: OperationProgress
2910 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002911 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage. Unset for single-stage operations.
2912 &quot;metrics&quot;: [ # Progress metric bundle, for example: metrics: [{name: &quot;nodes done&quot;, int_value: 15}, {name: &quot;nodes total&quot;, int_value: 32}] or metrics: [{name: &quot;progress&quot;, double_value: 0.56}, {name: &quot;progress scale&quot;, double_value: 1.0}]
Bu Sun Kim65020912020-05-20 12:08:20 -07002913 { # Progress metric is (string, int|float|string) pair.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002914 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
2915 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002916 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
2917 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
Bu Sun Kim65020912020-05-20 12:08:20 -07002918 },
2919 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002920 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002921 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the operation is taking place. This field is deprecated, use location instead.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002922 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002923 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state. Deprecated. Use field error instead.
2924 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002925 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002926 &quot;canonicalCode&quot;: &quot;A String&quot;, # Canonical code of the condition.
2927 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition Deprecated. Use canonical_code instead.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002928 },
2929 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002930 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error. Deprecated. Use field error instead.
2931 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) or [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) in which the cluster resides.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002932 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002933 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
2934 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
2935 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure.
2936 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
2937 {
2938 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2939 },
2940 ],
2941 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
2942 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
2943 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002944 }</pre>
2945</div>
2946
2947</body></html>