Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(886)

Side by Side Diff: generated/googleapis/lib/container/v1.dart

Issue 2824163002: Api-roll 48: 2017-04-18 (Closed)
Patch Set: Revert changes to pubspecs Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // This is a generated file (see the discoveryapis_generator project). 1 // This is a generated file (see the discoveryapis_generator project).
2 2
3 library googleapis.container.v1; 3 library googleapis.container.v1;
4 4
5 import 'dart:core' as core; 5 import 'dart:core' as core;
6 import 'dart:async' as async; 6 import 'dart:async' as async;
7 import 'dart:convert' as convert; 7 import 'dart:convert' as convert;
8 8
9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons;
10 import 'package:http/http.dart' as http; 10 import 'package:http/http.dart' as http;
11 11
12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show 12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show
13 ApiRequestError, DetailedApiRequestError; 13 ApiRequestError, DetailedApiRequestError;
14 14
15 const core.String USER_AGENT = 'dart-api-client container/v1'; 15 const core.String USER_AGENT = 'dart-api-client container/v1';
16 16
17 /** 17 /**
18 * Builds and manages clusters that run container-based applications, powered by 18 * The Google Container Engine API is used for building and managing container
19 * open source Kubernetes technology. 19 * based applications, powered by the open source Kubernetes technology.
20 */ 20 */
21 class ContainerApi { 21 class ContainerApi {
22 /** View and manage your data across Google Cloud Platform services */ 22 /** View and manage your data across Google Cloud Platform services */
23 static const CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platf orm"; 23 static const CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platf orm";
24 24
25 25
26 final commons.ApiRequester _requester; 26 final commons.ApiRequester _requester;
27 27
28 ProjectsResourceApi get projects => new ProjectsResourceApi(_requester); 28 ProjectsResourceApi get projects => new ProjectsResourceApi(_requester);
29 29
(...skipping 23 matching lines...) Expand all
53 53
54 /** 54 /**
55 * Returns configuration info about the Container Engine service. 55 * Returns configuration info about the Container Engine service.
56 * 56 *
57 * Request parameters: 57 * Request parameters:
58 * 58 *
59 * [projectId] - The Google Developers Console [project ID or project 59 * [projectId] - The Google Developers Console [project ID or project
60 * number](https://support.google.com/cloud/answer/6158840). 60 * number](https://support.google.com/cloud/answer/6158840).
61 * 61 *
62 * [zone] - The name of the Google Compute Engine 62 * [zone] - The name of the Google Compute Engine
63 * [zone](/compute/docs/zones#available) to return operations for. 63 * [zone](/compute/docs/zones#available)
64 * to return operations for.
64 * 65 *
65 * Completes with a [ServerConfig]. 66 * Completes with a [ServerConfig].
66 * 67 *
67 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 68 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
68 * error. 69 * error.
69 * 70 *
70 * If the used [http.Client] completes with an error when making a REST call, 71 * If the used [http.Client] completes with an error when making a REST call,
71 * this method will complete with the same error. 72 * this method will complete with the same error.
72 */ 73 */
73 async.Future<ServerConfig> getServerconfig(core.String projectId, core.String zone) { 74 async.Future<ServerConfig> getServerconfig(core.String projectId, core.String zone) {
(...skipping 29 matching lines...) Expand all
103 class ProjectsZonesClustersResourceApi { 104 class ProjectsZonesClustersResourceApi {
104 final commons.ApiRequester _requester; 105 final commons.ApiRequester _requester;
105 106
106 ProjectsZonesClustersNodePoolsResourceApi get nodePools => new ProjectsZonesCl ustersNodePoolsResourceApi(_requester); 107 ProjectsZonesClustersNodePoolsResourceApi get nodePools => new ProjectsZonesCl ustersNodePoolsResourceApi(_requester);
107 108
108 ProjectsZonesClustersResourceApi(commons.ApiRequester client) : 109 ProjectsZonesClustersResourceApi(commons.ApiRequester client) :
109 _requester = client; 110 _requester = client;
110 111
111 /** 112 /**
112 * Creates a cluster, consisting of the specified number and type of Google 113 * Creates a cluster, consisting of the specified number and type of Google
113 * Compute Engine instances. By default, the cluster is created in the 114 * Compute Engine instances.
114 * project's [default network](/compute/docs/networks-and-firewalls#networks). 115 *
115 * One firewall is added for the cluster. After cluster creation, the cluster 116 * By default, the cluster is created in the project's
116 * creates routes for each node to allow the containers on that node to 117 * [default network](/compute/docs/networks-and-firewalls#networks).
117 * communicate with all other instances in the cluster. Finally, an entry is 118 *
118 * added to the project's global metadata indicating which CIDR range is being 119 * One firewall is added for the cluster. After cluster creation,
119 * used by the cluster. 120 * the cluster creates routes for each node to allow the containers
121 * on that node to communicate with all other instances in the
122 * cluster.
123 *
124 * Finally, an entry is added to the project's global metadata indicating
125 * which CIDR range is being used by the cluster.
120 * 126 *
121 * [request] - The metadata request object. 127 * [request] - The metadata request object.
122 * 128 *
123 * Request parameters: 129 * Request parameters:
124 * 130 *
125 * [projectId] - The Google Developers Console [project ID or project 131 * [projectId] - The Google Developers Console [project ID or project
126 * number](https://support.google.com/cloud/answer/6158840). 132 * number](https://support.google.com/cloud/answer/6158840).
127 * 133 *
128 * [zone] - The name of the Google Compute Engine 134 * [zone] - The name of the Google Compute Engine
129 * [zone](/compute/docs/zones#available) in which the cluster resides. 135 * [zone](/compute/docs/zones#available) in which the cluster
136 * resides.
130 * 137 *
131 * Completes with a [Operation]. 138 * Completes with a [Operation].
132 * 139 *
133 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 140 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
134 * error. 141 * error.
135 * 142 *
136 * If the used [http.Client] completes with an error when making a REST call, 143 * If the used [http.Client] completes with an error when making a REST call,
137 * this method will complete with the same error. 144 * this method will complete with the same error.
138 */ 145 */
139 async.Future<Operation> create(CreateClusterRequest request, core.String proje ctId, core.String zone) { 146 async.Future<Operation> create(CreateClusterRequest request, core.String proje ctId, core.String zone) {
(...skipping 21 matching lines...) Expand all
161 body: _body, 168 body: _body,
162 queryParams: _queryParams, 169 queryParams: _queryParams,
163 uploadOptions: _uploadOptions, 170 uploadOptions: _uploadOptions,
164 uploadMedia: _uploadMedia, 171 uploadMedia: _uploadMedia,
165 downloadOptions: _downloadOptions); 172 downloadOptions: _downloadOptions);
166 return _response.then((data) => new Operation.fromJson(data)); 173 return _response.then((data) => new Operation.fromJson(data));
167 } 174 }
168 175
169 /** 176 /**
170 * Deletes the cluster, including the Kubernetes endpoint and all worker 177 * Deletes the cluster, including the Kubernetes endpoint and all worker
171 * nodes. Firewalls and routes that were configured during cluster creation 178 * nodes.
172 * are also deleted. Other Google Compute Engine resources that might be in 179 *
173 * use by the cluster (e.g. load balancer resources) will not be deleted if 180 * Firewalls and routes that were configured during cluster creation
174 * they weren't present at the initial create time. 181 * are also deleted.
182 *
183 * Other Google Compute Engine resources that might be in use by the cluster
184 * (e.g. load balancer resources) will not be deleted if they weren't present
185 * at the initial create time.
175 * 186 *
176 * Request parameters: 187 * Request parameters:
177 * 188 *
178 * [projectId] - The Google Developers Console [project ID or project 189 * [projectId] - The Google Developers Console [project ID or project
179 * number](https://support.google.com/cloud/answer/6158840). 190 * number](https://support.google.com/cloud/answer/6158840).
180 * 191 *
181 * [zone] - The name of the Google Compute Engine 192 * [zone] - The name of the Google Compute Engine
182 * [zone](/compute/docs/zones#available) in which the cluster resides. 193 * [zone](/compute/docs/zones#available) in which the cluster
194 * resides.
183 * 195 *
184 * [clusterId] - The name of the cluster to delete. 196 * [clusterId] - The name of the cluster to delete.
185 * 197 *
186 * Completes with a [Operation]. 198 * Completes with a [Operation].
187 * 199 *
188 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 200 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
189 * error. 201 * error.
190 * 202 *
191 * If the used [http.Client] completes with an error when making a REST call, 203 * If the used [http.Client] completes with an error when making a REST call,
192 * this method will complete with the same error. 204 * this method will complete with the same error.
(...skipping 30 matching lines...) Expand all
223 235
224 /** 236 /**
225 * Gets the details of a specific cluster. 237 * Gets the details of a specific cluster.
226 * 238 *
227 * Request parameters: 239 * Request parameters:
228 * 240 *
229 * [projectId] - The Google Developers Console [project ID or project 241 * [projectId] - The Google Developers Console [project ID or project
230 * number](https://support.google.com/cloud/answer/6158840). 242 * number](https://support.google.com/cloud/answer/6158840).
231 * 243 *
232 * [zone] - The name of the Google Compute Engine 244 * [zone] - The name of the Google Compute Engine
233 * [zone](/compute/docs/zones#available) in which the cluster resides. 245 * [zone](/compute/docs/zones#available) in which the cluster
246 * resides.
234 * 247 *
235 * [clusterId] - The name of the cluster to retrieve. 248 * [clusterId] - The name of the cluster to retrieve.
236 * 249 *
237 * Completes with a [Cluster]. 250 * Completes with a [Cluster].
238 * 251 *
239 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 252 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
240 * error. 253 * error.
241 * 254 *
242 * If the used [http.Client] completes with an error when making a REST call, 255 * If the used [http.Client] completes with an error when making a REST call,
243 * this method will complete with the same error. 256 * this method will complete with the same error.
(...skipping 22 matching lines...) Expand all
266 "GET", 279 "GET",
267 body: _body, 280 body: _body,
268 queryParams: _queryParams, 281 queryParams: _queryParams,
269 uploadOptions: _uploadOptions, 282 uploadOptions: _uploadOptions,
270 uploadMedia: _uploadMedia, 283 uploadMedia: _uploadMedia,
271 downloadOptions: _downloadOptions); 284 downloadOptions: _downloadOptions);
272 return _response.then((data) => new Cluster.fromJson(data)); 285 return _response.then((data) => new Cluster.fromJson(data));
273 } 286 }
274 287
275 /** 288 /**
289 * Enables or disables the ABAC authorization mechanism on a cluster.
290 *
291 * [request] - The metadata request object.
292 *
293 * Request parameters:
294 *
295 * [projectId] - The Google Developers Console [project ID or project
296 * number](https://support.google.com/cloud/answer/6158840).
297 *
298 * [zone] - The name of the Google Compute Engine
299 * [zone](/compute/docs/zones#available) in which the cluster
300 * resides.
301 *
302 * [clusterId] - The name of the cluster to update.
303 *
304 * Completes with a [Operation].
305 *
306 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
307 * error.
308 *
309 * If the used [http.Client] completes with an error when making a REST call,
310 * this method will complete with the same error.
311 */
312 async.Future<Operation> legacyAbac(SetLegacyAbacRequest request, core.String p rojectId, core.String zone, core.String clusterId) {
313 var _url = null;
314 var _queryParams = new core.Map();
315 var _uploadMedia = null;
316 var _uploadOptions = null;
317 var _downloadOptions = commons.DownloadOptions.Metadata;
318 var _body = null;
319
320 if (request != null) {
321 _body = convert.JSON.encode((request).toJson());
322 }
323 if (projectId == null) {
324 throw new core.ArgumentError("Parameter projectId is required.");
325 }
326 if (zone == null) {
327 throw new core.ArgumentError("Parameter zone is required.");
328 }
329 if (clusterId == null) {
330 throw new core.ArgumentError("Parameter clusterId is required.");
331 }
332
333 _url = 'v1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/zone s/' + commons.Escaper.ecapeVariable('$zone') + '/clusters/' + commons.Escaper.ec apeVariable('$clusterId') + '/legacyAbac';
334
335 var _response = _requester.request(_url,
336 "POST",
337 body: _body,
338 queryParams: _queryParams,
339 uploadOptions: _uploadOptions,
340 uploadMedia: _uploadMedia,
341 downloadOptions: _downloadOptions);
342 return _response.then((data) => new Operation.fromJson(data));
343 }
344
345 /**
276 * Lists all clusters owned by a project in either the specified zone or all 346 * Lists all clusters owned by a project in either the specified zone or all
277 * zones. 347 * zones.
278 * 348 *
279 * Request parameters: 349 * Request parameters:
280 * 350 *
281 * [projectId] - The Google Developers Console [project ID or project 351 * [projectId] - The Google Developers Console [project ID or project
282 * number](https://support.google.com/cloud/answer/6158840). 352 * number](https://support.google.com/cloud/answer/6158840).
283 * 353 *
284 * [zone] - The name of the Google Compute Engine 354 * [zone] - The name of the Google Compute Engine
285 * [zone](/compute/docs/zones#available) in which the cluster resides, or "-" 355 * [zone](/compute/docs/zones#available) in which the cluster
286 * for all zones. 356 * resides, or "-" for all zones.
287 * 357 *
288 * Completes with a [ListClustersResponse]. 358 * Completes with a [ListClustersResponse].
289 * 359 *
290 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 360 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
291 * error. 361 * error.
292 * 362 *
293 * If the used [http.Client] completes with an error when making a REST call, 363 * If the used [http.Client] completes with an error when making a REST call,
294 * this method will complete with the same error. 364 * this method will complete with the same error.
295 */ 365 */
296 async.Future<ListClustersResponse> list(core.String projectId, core.String zon e) { 366 async.Future<ListClustersResponse> list(core.String projectId, core.String zon e) {
(...skipping 17 matching lines...) Expand all
314 "GET", 384 "GET",
315 body: _body, 385 body: _body,
316 queryParams: _queryParams, 386 queryParams: _queryParams,
317 uploadOptions: _uploadOptions, 387 uploadOptions: _uploadOptions,
318 uploadMedia: _uploadMedia, 388 uploadMedia: _uploadMedia,
319 downloadOptions: _downloadOptions); 389 downloadOptions: _downloadOptions);
320 return _response.then((data) => new ListClustersResponse.fromJson(data)); 390 return _response.then((data) => new ListClustersResponse.fromJson(data));
321 } 391 }
322 392
323 /** 393 /**
394 * Sets labels on a cluster.
395 *
396 * [request] - The metadata request object.
397 *
398 * Request parameters:
399 *
400 * [projectId] - The Google Developers Console [project ID or project
401 * number](https://developers.google.com/console/help/new/#projectnumber).
402 *
403 * [zone] - The name of the Google Compute Engine
404 * [zone](/compute/docs/zones#available) in which the cluster
405 * resides.
406 *
407 * [clusterId] - The name of the cluster.
408 *
409 * Completes with a [Operation].
410 *
411 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
412 * error.
413 *
414 * If the used [http.Client] completes with an error when making a REST call,
415 * this method will complete with the same error.
416 */
417 async.Future<Operation> resourceLabels(SetLabelsRequest request, core.String p rojectId, core.String zone, core.String clusterId) {
418 var _url = null;
419 var _queryParams = new core.Map();
420 var _uploadMedia = null;
421 var _uploadOptions = null;
422 var _downloadOptions = commons.DownloadOptions.Metadata;
423 var _body = null;
424
425 if (request != null) {
426 _body = convert.JSON.encode((request).toJson());
427 }
428 if (projectId == null) {
429 throw new core.ArgumentError("Parameter projectId is required.");
430 }
431 if (zone == null) {
432 throw new core.ArgumentError("Parameter zone is required.");
433 }
434 if (clusterId == null) {
435 throw new core.ArgumentError("Parameter clusterId is required.");
436 }
437
438 _url = 'v1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/zone s/' + commons.Escaper.ecapeVariable('$zone') + '/clusters/' + commons.Escaper.ec apeVariable('$clusterId') + '/resourceLabels';
439
440 var _response = _requester.request(_url,
441 "POST",
442 body: _body,
443 queryParams: _queryParams,
444 uploadOptions: _uploadOptions,
445 uploadMedia: _uploadMedia,
446 downloadOptions: _downloadOptions);
447 return _response.then((data) => new Operation.fromJson(data));
448 }
449
450 /**
451 * Used to set master auth materials. Currently supports :-
452 * Changing the admin password of a specific cluster.
453 * This can be either via password generation or explicitly set the password.
454 *
455 * [request] - The metadata request object.
456 *
457 * Request parameters:
458 *
459 * [projectId] - The Google Developers Console [project ID or project
460 * number](https://support.google.com/cloud/answer/6158840).
461 *
462 * [zone] - The name of the Google Compute Engine
463 * [zone](/compute/docs/zones#available) in which the cluster
464 * resides.
465 *
466 * [clusterId] - The name of the cluster to upgrade.
467 *
468 * Completes with a [Operation].
469 *
470 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
471 * error.
472 *
473 * If the used [http.Client] completes with an error when making a REST call,
474 * this method will complete with the same error.
475 */
476 async.Future<Operation> setMasterAuth(SetMasterAuthRequest request, core.Strin g projectId, core.String zone, core.String clusterId) {
477 var _url = null;
478 var _queryParams = new core.Map();
479 var _uploadMedia = null;
480 var _uploadOptions = null;
481 var _downloadOptions = commons.DownloadOptions.Metadata;
482 var _body = null;
483
484 if (request != null) {
485 _body = convert.JSON.encode((request).toJson());
486 }
487 if (projectId == null) {
488 throw new core.ArgumentError("Parameter projectId is required.");
489 }
490 if (zone == null) {
491 throw new core.ArgumentError("Parameter zone is required.");
492 }
493 if (clusterId == null) {
494 throw new core.ArgumentError("Parameter clusterId is required.");
495 }
496
497 _url = 'v1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/zone s/' + commons.Escaper.ecapeVariable('$zone') + '/clusters/' + commons.Escaper.ec apeVariable('$clusterId') + ':setMasterAuth';
498
499 var _response = _requester.request(_url,
500 "POST",
501 body: _body,
502 queryParams: _queryParams,
503 uploadOptions: _uploadOptions,
504 uploadMedia: _uploadMedia,
505 downloadOptions: _downloadOptions);
506 return _response.then((data) => new Operation.fromJson(data));
507 }
508
509 /**
324 * Updates the settings of a specific cluster. 510 * Updates the settings of a specific cluster.
325 * 511 *
326 * [request] - The metadata request object. 512 * [request] - The metadata request object.
327 * 513 *
328 * Request parameters: 514 * Request parameters:
329 * 515 *
330 * [projectId] - The Google Developers Console [project ID or project 516 * [projectId] - The Google Developers Console [project ID or project
331 * number](https://support.google.com/cloud/answer/6158840). 517 * number](https://support.google.com/cloud/answer/6158840).
332 * 518 *
333 * [zone] - The name of the Google Compute Engine 519 * [zone] - The name of the Google Compute Engine
334 * [zone](/compute/docs/zones#available) in which the cluster resides. 520 * [zone](/compute/docs/zones#available) in which the cluster
521 * resides.
335 * 522 *
336 * [clusterId] - The name of the cluster to upgrade. 523 * [clusterId] - The name of the cluster to upgrade.
337 * 524 *
338 * Completes with a [Operation]. 525 * Completes with a [Operation].
339 * 526 *
340 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 527 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
341 * error. 528 * error.
342 * 529 *
343 * If the used [http.Client] completes with an error when making a REST call, 530 * If the used [http.Client] completes with an error when making a REST call,
344 * this method will complete with the same error. 531 * this method will complete with the same error.
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
389 * Creates a node pool for a cluster. 576 * Creates a node pool for a cluster.
390 * 577 *
391 * [request] - The metadata request object. 578 * [request] - The metadata request object.
392 * 579 *
393 * Request parameters: 580 * Request parameters:
394 * 581 *
395 * [projectId] - The Google Developers Console [project ID or project 582 * [projectId] - The Google Developers Console [project ID or project
396 * number](https://developers.google.com/console/help/new/#projectnumber). 583 * number](https://developers.google.com/console/help/new/#projectnumber).
397 * 584 *
398 * [zone] - The name of the Google Compute Engine 585 * [zone] - The name of the Google Compute Engine
399 * [zone](/compute/docs/zones#available) in which the cluster resides. 586 * [zone](/compute/docs/zones#available) in which the cluster
587 * resides.
400 * 588 *
401 * [clusterId] - The name of the cluster. 589 * [clusterId] - The name of the cluster.
402 * 590 *
403 * Completes with a [Operation]. 591 * Completes with a [Operation].
404 * 592 *
405 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 593 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
406 * error. 594 * error.
407 * 595 *
408 * If the used [http.Client] completes with an error when making a REST call, 596 * If the used [http.Client] completes with an error when making a REST call,
409 * this method will complete with the same error. 597 * this method will complete with the same error.
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
443 631
444 /** 632 /**
445 * Deletes a node pool from a cluster. 633 * Deletes a node pool from a cluster.
446 * 634 *
447 * Request parameters: 635 * Request parameters:
448 * 636 *
449 * [projectId] - The Google Developers Console [project ID or project 637 * [projectId] - The Google Developers Console [project ID or project
450 * number](https://developers.google.com/console/help/new/#projectnumber). 638 * number](https://developers.google.com/console/help/new/#projectnumber).
451 * 639 *
452 * [zone] - The name of the Google Compute Engine 640 * [zone] - The name of the Google Compute Engine
453 * [zone](/compute/docs/zones#available) in which the cluster resides. 641 * [zone](/compute/docs/zones#available) in which the cluster
642 * resides.
454 * 643 *
455 * [clusterId] - The name of the cluster. 644 * [clusterId] - The name of the cluster.
456 * 645 *
457 * [nodePoolId] - The name of the node pool to delete. 646 * [nodePoolId] - The name of the node pool to delete.
458 * 647 *
459 * Completes with a [Operation]. 648 * Completes with a [Operation].
460 * 649 *
461 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 650 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
462 * error. 651 * error.
463 * 652 *
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
499 688
500 /** 689 /**
501 * Retrieves the node pool requested. 690 * Retrieves the node pool requested.
502 * 691 *
503 * Request parameters: 692 * Request parameters:
504 * 693 *
505 * [projectId] - The Google Developers Console [project ID or project 694 * [projectId] - The Google Developers Console [project ID or project
506 * number](https://developers.google.com/console/help/new/#projectnumber). 695 * number](https://developers.google.com/console/help/new/#projectnumber).
507 * 696 *
508 * [zone] - The name of the Google Compute Engine 697 * [zone] - The name of the Google Compute Engine
509 * [zone](/compute/docs/zones#available) in which the cluster resides. 698 * [zone](/compute/docs/zones#available) in which the cluster
699 * resides.
510 * 700 *
511 * [clusterId] - The name of the cluster. 701 * [clusterId] - The name of the cluster.
512 * 702 *
513 * [nodePoolId] - The name of the node pool. 703 * [nodePoolId] - The name of the node pool.
514 * 704 *
515 * Completes with a [NodePool]. 705 * Completes with a [NodePool].
516 * 706 *
517 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 707 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
518 * error. 708 * error.
519 * 709 *
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
555 745
556 /** 746 /**
557 * Lists the node pools for a cluster. 747 * Lists the node pools for a cluster.
558 * 748 *
559 * Request parameters: 749 * Request parameters:
560 * 750 *
561 * [projectId] - The Google Developers Console [project ID or project 751 * [projectId] - The Google Developers Console [project ID or project
562 * number](https://developers.google.com/console/help/new/#projectnumber). 752 * number](https://developers.google.com/console/help/new/#projectnumber).
563 * 753 *
564 * [zone] - The name of the Google Compute Engine 754 * [zone] - The name of the Google Compute Engine
565 * [zone](/compute/docs/zones#available) in which the cluster resides. 755 * [zone](/compute/docs/zones#available) in which the cluster
756 * resides.
566 * 757 *
567 * [clusterId] - The name of the cluster. 758 * [clusterId] - The name of the cluster.
568 * 759 *
569 * Completes with a [ListNodePoolsResponse]. 760 * Completes with a [ListNodePoolsResponse].
570 * 761 *
571 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 762 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
572 * error. 763 * error.
573 * 764 *
574 * If the used [http.Client] completes with an error when making a REST call, 765 * If the used [http.Client] completes with an error when making a REST call,
575 * this method will complete with the same error. 766 * this method will complete with the same error.
(...skipping 22 matching lines...) Expand all
598 "GET", 789 "GET",
599 body: _body, 790 body: _body,
600 queryParams: _queryParams, 791 queryParams: _queryParams,
601 uploadOptions: _uploadOptions, 792 uploadOptions: _uploadOptions,
602 uploadMedia: _uploadMedia, 793 uploadMedia: _uploadMedia,
603 downloadOptions: _downloadOptions); 794 downloadOptions: _downloadOptions);
604 return _response.then((data) => new ListNodePoolsResponse.fromJson(data)); 795 return _response.then((data) => new ListNodePoolsResponse.fromJson(data));
605 } 796 }
606 797
607 /** 798 /**
608 * Roll back the previously Aborted or Failed NodePool upgrade. This will be 799 * Roll back the previously Aborted or Failed NodePool upgrade.
609 * an no-op if the last upgrade successfully completed. 800 * This will be an no-op if the last upgrade successfully completed.
610 * 801 *
611 * [request] - The metadata request object. 802 * [request] - The metadata request object.
612 * 803 *
613 * Request parameters: 804 * Request parameters:
614 * 805 *
615 * [projectId] - The Google Developers Console [project ID or project 806 * [projectId] - The Google Developers Console [project ID or project
616 * number](https://support.google.com/cloud/answer/6158840). 807 * number](https://support.google.com/cloud/answer/6158840).
617 * 808 *
618 * [zone] - The name of the Google Compute Engine 809 * [zone] - The name of the Google Compute Engine
619 * [zone](/compute/docs/zones#available) in which the cluster resides. 810 * [zone](/compute/docs/zones#available) in which the cluster
811 * resides.
620 * 812 *
621 * [clusterId] - The name of the cluster to rollback. 813 * [clusterId] - The name of the cluster to rollback.
622 * 814 *
623 * [nodePoolId] - The name of the node pool to rollback. 815 * [nodePoolId] - The name of the node pool to rollback.
624 * 816 *
625 * Completes with a [Operation]. 817 * Completes with a [Operation].
626 * 818 *
627 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 819 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
628 * error. 820 * error.
629 * 821 *
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
670 * Sets the NodeManagement options for a node pool. 862 * Sets the NodeManagement options for a node pool.
671 * 863 *
672 * [request] - The metadata request object. 864 * [request] - The metadata request object.
673 * 865 *
674 * Request parameters: 866 * Request parameters:
675 * 867 *
676 * [projectId] - The Google Developers Console [project ID or project 868 * [projectId] - The Google Developers Console [project ID or project
677 * number](https://support.google.com/cloud/answer/6158840). 869 * number](https://support.google.com/cloud/answer/6158840).
678 * 870 *
679 * [zone] - The name of the Google Compute Engine 871 * [zone] - The name of the Google Compute Engine
680 * [zone](/compute/docs/zones#available) in which the cluster resides. 872 * [zone](/compute/docs/zones#available) in which the cluster
873 * resides.
681 * 874 *
682 * [clusterId] - The name of the cluster to update. 875 * [clusterId] - The name of the cluster to update.
683 * 876 *
684 * [nodePoolId] - The name of the node pool to update. 877 * [nodePoolId] - The name of the node pool to update.
685 * 878 *
686 * Completes with a [Operation]. 879 * Completes with a [Operation].
687 * 880 *
688 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 881 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
689 * error. 882 * error.
690 * 883 *
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
794 987
795 /** 988 /**
796 * Gets the specified operation. 989 * Gets the specified operation.
797 * 990 *
798 * Request parameters: 991 * Request parameters:
799 * 992 *
800 * [projectId] - The Google Developers Console [project ID or project 993 * [projectId] - The Google Developers Console [project ID or project
801 * number](https://support.google.com/cloud/answer/6158840). 994 * number](https://support.google.com/cloud/answer/6158840).
802 * 995 *
803 * [zone] - The name of the Google Compute Engine 996 * [zone] - The name of the Google Compute Engine
804 * [zone](/compute/docs/zones#available) in which the cluster resides. 997 * [zone](/compute/docs/zones#available) in which the cluster
998 * resides.
805 * 999 *
806 * [operationId] - The server-assigned `name` of the operation. 1000 * [operationId] - The server-assigned `name` of the operation.
807 * 1001 *
808 * Completes with a [Operation]. 1002 * Completes with a [Operation].
809 * 1003 *
810 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1004 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
811 * error. 1005 * error.
812 * 1006 *
813 * If the used [http.Client] completes with an error when making a REST call, 1007 * If the used [http.Client] completes with an error when making a REST call,
814 * this method will complete with the same error. 1008 * this method will complete with the same error.
(...skipping 30 matching lines...) Expand all
845 1039
846 /** 1040 /**
847 * Lists all operations in a project in a specific zone or all zones. 1041 * Lists all operations in a project in a specific zone or all zones.
848 * 1042 *
849 * Request parameters: 1043 * Request parameters:
850 * 1044 *
851 * [projectId] - The Google Developers Console [project ID or project 1045 * [projectId] - The Google Developers Console [project ID or project
852 * number](https://support.google.com/cloud/answer/6158840). 1046 * number](https://support.google.com/cloud/answer/6158840).
853 * 1047 *
854 * [zone] - The name of the Google Compute Engine 1048 * [zone] - The name of the Google Compute Engine
855 * [zone](/compute/docs/zones#available) to return operations for, or `-` for 1049 * [zone](/compute/docs/zones#available)
856 * all zones. 1050 * to return operations for, or `-` for all zones.
857 * 1051 *
858 * Completes with a [ListOperationsResponse]. 1052 * Completes with a [ListOperationsResponse].
859 * 1053 *
860 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1054 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
861 * error. 1055 * error.
862 * 1056 *
863 * If the used [http.Client] completes with an error when making a REST call, 1057 * If the used [http.Client] completes with an error when making a REST call,
864 * this method will complete with the same error. 1058 * this method will complete with the same error.
865 */ 1059 */
866 async.Future<ListOperationsResponse> list(core.String projectId, core.String z one) { 1060 async.Future<ListOperationsResponse> list(core.String projectId, core.String z one) {
(...skipping 26 matching lines...) Expand all
893 } 1087 }
894 1088
895 1089
896 1090
897 /** 1091 /**
898 * Configuration for the addons that can be automatically spun up in the 1092 * Configuration for the addons that can be automatically spun up in the
899 * cluster, enabling additional functionality. 1093 * cluster, enabling additional functionality.
900 */ 1094 */
901 class AddonsConfig { 1095 class AddonsConfig {
902 /** 1096 /**
903 * Configuration for the horizontal pod autoscaling feature, which increases 1097 * Configuration for the horizontal pod autoscaling feature, which
904 * or decreases the number of replica pods a replication controller has based 1098 * increases or decreases the number of replica pods a replication controller
905 * on the resource usage of the existing pods. 1099 * has based on the resource usage of the existing pods.
906 */ 1100 */
907 HorizontalPodAutoscaling horizontalPodAutoscaling; 1101 HorizontalPodAutoscaling horizontalPodAutoscaling;
908 /** 1102 /**
909 * Configuration for the HTTP (L7) load balancing controller addon, which 1103 * Configuration for the HTTP (L7) load balancing controller addon, which
910 * makes it easy to set up HTTP load balancers for services in a cluster. 1104 * makes it easy to set up HTTP load balancers for services in a cluster.
911 */ 1105 */
912 HttpLoadBalancing httpLoadBalancing; 1106 HttpLoadBalancing httpLoadBalancing;
913 1107
914 AddonsConfig(); 1108 AddonsConfig();
915 1109
(...skipping 12 matching lines...) Expand all
928 _json["horizontalPodAutoscaling"] = (horizontalPodAutoscaling).toJson(); 1122 _json["horizontalPodAutoscaling"] = (horizontalPodAutoscaling).toJson();
929 } 1123 }
930 if (httpLoadBalancing != null) { 1124 if (httpLoadBalancing != null) {
931 _json["httpLoadBalancing"] = (httpLoadBalancing).toJson(); 1125 _json["httpLoadBalancing"] = (httpLoadBalancing).toJson();
932 } 1126 }
933 return _json; 1127 return _json;
934 } 1128 }
935 } 1129 }
936 1130
937 /** 1131 /**
938 * AutoUpgradeOptions defines the set of options for the user to control how the 1132 * AutoUpgradeOptions defines the set of options for the user to control how
939 * Auto Upgrades will proceed. 1133 * the Auto Upgrades will proceed.
940 */ 1134 */
941 class AutoUpgradeOptions { 1135 class AutoUpgradeOptions {
942 /** 1136 /**
943 * [Output only] This field is set when upgrades are about to commence with 1137 * [Output only] This field is set when upgrades are about to commence
944 * the approximate start time for the upgrades, in 1138 * with the approximate start time for the upgrades, in
945 * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. 1139 * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
946 */ 1140 */
947 core.String autoUpgradeStartTime; 1141 core.String autoUpgradeStartTime;
948 /** 1142 /**
949 * [Output only] This field is set when upgrades are about to commence with 1143 * [Output only] This field is set when upgrades are about to commence
950 * the description of the upgrade. 1144 * with the description of the upgrade.
951 */ 1145 */
952 core.String description; 1146 core.String description;
953 1147
954 AutoUpgradeOptions(); 1148 AutoUpgradeOptions();
955 1149
956 AutoUpgradeOptions.fromJson(core.Map _json) { 1150 AutoUpgradeOptions.fromJson(core.Map _json) {
957 if (_json.containsKey("autoUpgradeStartTime")) { 1151 if (_json.containsKey("autoUpgradeStartTime")) {
958 autoUpgradeStartTime = _json["autoUpgradeStartTime"]; 1152 autoUpgradeStartTime = _json["autoUpgradeStartTime"];
959 } 1153 }
960 if (_json.containsKey("description")) { 1154 if (_json.containsKey("description")) {
(...skipping 27 matching lines...) Expand all
988 } 1182 }
989 } 1183 }
990 1184
991 /** A Google Container Engine cluster. */ 1185 /** A Google Container Engine cluster. */
992 class Cluster { 1186 class Cluster {
993 /** Configurations for the various addons available to run in the cluster. */ 1187 /** Configurations for the various addons available to run in the cluster. */
994 AddonsConfig addonsConfig; 1188 AddonsConfig addonsConfig;
995 /** 1189 /**
996 * The IP address range of the container pods in this cluster, in 1190 * The IP address range of the container pods in this cluster, in
997 * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) 1191 * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
998 * notation (e.g. `10.96.0.0/14`). Leave blank to have one automatically 1192 * notation (e.g. `10.96.0.0/14`). Leave blank to have
999 * chosen or specify a `/14` block in `10.0.0.0/8`. 1193 * one automatically chosen or specify a `/14` block in `10.0.0.0/8`.
1000 */ 1194 */
1001 core.String clusterIpv4Cidr; 1195 core.String clusterIpv4Cidr;
1002 /** 1196 /**
1003 * [Output only] The time the cluster was created, in 1197 * [Output only] The time the cluster was created, in
1004 * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. 1198 * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1005 */ 1199 */
1006 core.String createTime; 1200 core.String createTime;
1007 /** [Output only] The current software version of the master endpoint. */ 1201 /** [Output only] The current software version of the master endpoint. */
1008 core.String currentMasterVersion; 1202 core.String currentMasterVersion;
1009 /** [Output only] The number of nodes currently in the cluster. */ 1203 /** [Output only] The number of nodes currently in the cluster. */
1010 core.int currentNodeCount; 1204 core.int currentNodeCount;
1011 /** 1205 /**
1012 * [Output only] The current version of the node software components. If they 1206 * [Output only] The current version of the node software components.
1013 * are currently at multiple versions because they're in the process of being 1207 * If they are currently at multiple versions because they're in the process
1014 * upgraded, this reflects the minimum version of all nodes. 1208 * of being upgraded, this reflects the minimum version of all nodes.
1015 */ 1209 */
1016 core.String currentNodeVersion; 1210 core.String currentNodeVersion;
1017 /** An optional description of this cluster. */ 1211 /** An optional description of this cluster. */
1018 core.String description; 1212 core.String description;
1019 /** 1213 /**
1020 * Kubernetes alpha features are enabled on this cluster. This includes alpha 1214 * Kubernetes alpha features are enabled on this cluster. This includes alpha
1021 * API groups (e.g. v1alpha1) and features that may not be production ready in 1215 * API groups (e.g. v1alpha1) and features that may not be production ready in
1022 * the kubernetes version of the master and nodes. The cluster has no SLA for 1216 * the kubernetes version of the master and nodes.
1023 * uptime and master/node upgrades are disabled. Alpha enabled clusters are 1217 * The cluster has no SLA for uptime and master/node upgrades are disabled.
1024 * automatically deleted thirty days after creation. 1218 * Alpha enabled clusters are automatically deleted thirty days after
1219 * creation.
1025 */ 1220 */
1026 core.bool enableKubernetesAlpha; 1221 core.bool enableKubernetesAlpha;
1027 /** 1222 /**
1028 * [Output only] The IP address of this cluster's master endpoint. The 1223 * [Output only] The IP address of this cluster's master endpoint.
1029 * endpoint can be accessed from the internet at 1224 * The endpoint can be accessed from the internet at
1030 * `https://username:password@endpoint/`. See the `masterAuth` property of 1225 * `https://username:password@endpoint/`.
1031 * this resource for username and password information. 1226 *
1227 * See the `masterAuth` property of this resource for username and
1228 * password information.
1032 */ 1229 */
1033 core.String endpoint; 1230 core.String endpoint;
1034 /** 1231 /**
1035 * [Output only] The time the cluster will be automatically deleted in 1232 * [Output only] The time the cluster will be automatically
1036 * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. 1233 * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1037 */ 1234 */
1038 core.String expireTime; 1235 core.String expireTime;
1039 /** 1236 /**
1040 * [Output only] The software version of the master endpoint and kubelets used 1237 * [Output only] The software version of the master endpoint and kubelets used
1041 * in the cluster when it was first created. The version can be upgraded over 1238 * in the cluster when it was first created. The version can be upgraded over
1042 * time. 1239 * time.
1043 */ 1240 */
1044 core.String initialClusterVersion; 1241 core.String initialClusterVersion;
1045 /** 1242 /**
1046 * The number of nodes to create in this cluster. You must ensure that your 1243 * The number of nodes to create in this cluster. You must ensure that your
1047 * Compute Engine resource quota is sufficient for this number of instances. 1244 * Compute Engine <a href="/compute/docs/resource-quotas">resource quota</a>
1048 * You must also have available firewall and routes quota. For requests, this 1245 * is sufficient for this number of instances. You must also have available
1049 * field should only be used in lieu of a "node_pool" object, since this 1246 * firewall and routes quota.
1050 * configuration (along with the "node_config") will be used to create a 1247 * For requests, this field should only be used in lieu of a
1051 * "NodePool" object with an auto-generated name. Do not use this and a 1248 * "node_pool" object, since this configuration (along with the
1052 * node_pool at the same time. 1249 * "node_config") will be used to create a "NodePool" object with an
1250 * auto-generated name. Do not use this and a node_pool at the same time.
1053 */ 1251 */
1054 core.int initialNodeCount; 1252 core.int initialNodeCount;
1055 /** 1253 /**
1056 * [Output only] The resource URLs of [instance 1254 * [Output only] The resource URLs of [instance
1057 * groups](/compute/docs/instance-groups/) associated with this cluster. 1255 * groups](/compute/docs/instance-groups/) associated with this
1256 * cluster.
1058 */ 1257 */
1059 core.List<core.String> instanceGroupUrls; 1258 core.List<core.String> instanceGroupUrls;
1259 /** The fingerprint of the set of labels for this cluster. */
1260 core.String labelFingerprint;
1261 /** Configuration for the legacy ABAC authorization mode. */
1262 LegacyAbac legacyAbac;
1060 /** 1263 /**
1061 * The list of Google Compute Engine 1264 * The list of Google Compute Engine
1062 * [locations](/compute/docs/zones#available) in which the cluster's nodes 1265 * [locations](/compute/docs/zones#available) in which the cluster's nodes
1063 * should be located. 1266 * should be located.
1064 */ 1267 */
1065 core.List<core.String> locations; 1268 core.List<core.String> locations;
1066 /** 1269 /**
1067 * The logging service the cluster should use to write logs. Currently 1270 * The logging service the cluster should use to write logs.
1068 * available options: * `logging.googleapis.com` - the Google Cloud Logging 1271 * Currently available options:
1069 * service. * `none` - no logs will be exported from the cluster. * if left as 1272 *
1070 * an empty string,`logging.googleapis.com` will be used. 1273 * * `logging.googleapis.com` - the Google Cloud Logging service.
1274 * * `none` - no logs will be exported from the cluster.
1275 * * if left as an empty string,`logging.googleapis.com` will be used.
1071 */ 1276 */
1072 core.String loggingService; 1277 core.String loggingService;
1073 /** The authentication information for accessing the master endpoint. */ 1278 /** The authentication information for accessing the master endpoint. */
1074 MasterAuth masterAuth; 1279 MasterAuth masterAuth;
1075 /** 1280 /**
1076 * The monitoring service the cluster should use to write metrics. Currently 1281 * The monitoring service the cluster should use to write metrics.
1077 * available options: * `monitoring.googleapis.com` - the Google Cloud 1282 * Currently available options:
1078 * Monitoring service. * `none` - no metrics will be exported from the 1283 *
1079 * cluster. * if left as an empty string, `monitoring.googleapis.com` will be 1284 * * `monitoring.googleapis.com` - the Google Cloud Monitoring service.
1080 * used. 1285 * * `none` - no metrics will be exported from the cluster.
1286 * * if left as an empty string, `monitoring.googleapis.com` will be used.
1081 */ 1287 */
1082 core.String monitoringService; 1288 core.String monitoringService;
1083 /** 1289 /**
1084 * The name of this cluster. The name must be unique within this project and 1290 * The name of this cluster. The name must be unique within this project
1085 * zone, and can be up to 40 characters with the following restrictions: * 1291 * and zone, and can be up to 40 characters with the following restrictions:
1086 * Lowercase letters, numbers, and hyphens only. * Must start with a letter. * 1292 *
1087 * Must end with a number or a letter. 1293 * * Lowercase letters, numbers, and hyphens only.
1294 * * Must start with a letter.
1295 * * Must end with a number or a letter.
1088 */ 1296 */
1089 core.String name; 1297 core.String name;
1090 /** 1298 /**
1091 * The name of the Google Compute Engine 1299 * The name of the Google Compute Engine
1092 * [network](/compute/docs/networks-and-firewalls#networks) to which the 1300 * [network](/compute/docs/networks-and-firewalls#networks) to which the
1093 * cluster is connected. If left unspecified, the `default` network will be 1301 * cluster is connected. If left unspecified, the `default` network
1094 * used. 1302 * will be used.
1095 */ 1303 */
1096 core.String network; 1304 core.String network;
1097 /** 1305 /**
1098 * Parameters used in creating the cluster's nodes. See `nodeConfig` for the 1306 * Parameters used in creating the cluster's nodes.
1099 * description of its properties. For requests, this field should only be used 1307 * See `nodeConfig` for the description of its properties.
1100 * in lieu of a "node_pool" object, since this configuration (along with the 1308 * For requests, this field should only be used in lieu of a
1309 * "node_pool" object, since this configuration (along with the
1101 * "initial_node_count") will be used to create a "NodePool" object with an 1310 * "initial_node_count") will be used to create a "NodePool" object with an
1102 * auto-generated name. Do not use this and a node_pool at the same time. For 1311 * auto-generated name. Do not use this and a node_pool at the same time.
1103 * responses, this field will be populated with the node configuration of the 1312 * For responses, this field will be populated with the node configuration of
1104 * first node pool. If unspecified, the defaults are used. 1313 * the first node pool.
1314 *
1315 * If unspecified, the defaults are used.
1105 */ 1316 */
1106 NodeConfig nodeConfig; 1317 NodeConfig nodeConfig;
1107 /** 1318 /**
1108 * [Output only] The size of the address space on each node for hosting 1319 * [Output only] The size of the address space on each node for hosting
1109 * containers. This is provisioned from within the `container_ipv4_cidr` 1320 * containers. This is provisioned from within the `container_ipv4_cidr`
1110 * range. 1321 * range.
1111 */ 1322 */
1112 core.int nodeIpv4CidrSize; 1323 core.int nodeIpv4CidrSize;
1113 /** 1324 /**
1114 * The node pools associated with this cluster. This field should not be set 1325 * The node pools associated with this cluster.
1115 * if "node_config" or "initial_node_count" are specified. 1326 * This field should not be set if "node_config" or "initial_node_count" are
1327 * specified.
1116 */ 1328 */
1117 core.List<NodePool> nodePools; 1329 core.List<NodePool> nodePools;
1330 /**
1331 * The resource labels for the cluster to use to annotate any related GCE
1332 * resources.
1333 */
1334 ResourceLabels resourceLabels;
1118 /** [Output only] Server-defined URL for the resource. */ 1335 /** [Output only] Server-defined URL for the resource. */
1119 core.String selfLink; 1336 core.String selfLink;
1120 /** 1337 /**
1121 * [Output only] The IP address range of the Kubernetes services in this 1338 * [Output only] The IP address range of the Kubernetes services in
1122 * cluster, in 1339 * this cluster, in
1123 * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) 1340 * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
1124 * notation (e.g. `1.2.3.4/29`). Service addresses are typically put in the 1341 * notation (e.g. `1.2.3.4/29`). Service addresses are
1125 * last `/16` from the container CIDR. 1342 * typically put in the last `/16` from the container CIDR.
1126 */ 1343 */
1127 core.String servicesIpv4Cidr; 1344 core.String servicesIpv4Cidr;
1128 /** 1345 /**
1129 * [Output only] The current status of this cluster. 1346 * [Output only] The current status of this cluster.
1130 * Possible string values are: 1347 * Possible string values are:
1131 * - "STATUS_UNSPECIFIED" : A STATUS_UNSPECIFIED. 1348 * - "STATUS_UNSPECIFIED" : Not set.
1132 * - "PROVISIONING" : A PROVISIONING. 1349 * - "PROVISIONING" : The PROVISIONING state indicates the cluster is being
1133 * - "RUNNING" : A RUNNING. 1350 * created.
1134 * - "RECONCILING" : A RECONCILING. 1351 * - "RUNNING" : The RUNNING state indicates the cluster has been created and
1135 * - "STOPPING" : A STOPPING. 1352 * is fully
1136 * - "ERROR" : A ERROR. 1353 * usable.
1354 * - "RECONCILING" : The RECONCILING state indicates that some work is
1355 * actively being done on
1356 * the cluster, such as upgrading the master or node software. Details can
1357 * be found in the `statusMessage` field.
1358 * - "STOPPING" : The STOPPING state indicates the cluster is being deleted.
1359 * - "ERROR" : The ERROR state indicates the cluster may be unusable. Details
1360 * can be found in the `statusMessage` field.
1137 */ 1361 */
1138 core.String status; 1362 core.String status;
1139 /** 1363 /**
1140 * [Output only] Additional information about the current status of this 1364 * [Output only] Additional information about the current status of this
1141 * cluster, if available. 1365 * cluster, if available.
1142 */ 1366 */
1143 core.String statusMessage; 1367 core.String statusMessage;
1144 /** 1368 /**
1145 * The name of the Google Compute Engine 1369 * The name of the Google Compute Engine
1146 * [subnetwork](/compute/docs/subnetworks) to which the cluster is connected. 1370 * [subnetwork](/compute/docs/subnetworks) to which the
1371 * cluster is connected.
1147 */ 1372 */
1148 core.String subnetwork; 1373 core.String subnetwork;
1149 /** 1374 /**
1150 * [Output only] The name of the Google Compute Engine 1375 * [Output only] The name of the Google Compute Engine
1151 * [zone](/compute/docs/zones#available) in which the cluster resides. 1376 * [zone](/compute/docs/zones#available) in which the cluster
1377 * resides.
1152 */ 1378 */
1153 core.String zone; 1379 core.String zone;
1154 1380
1155 Cluster(); 1381 Cluster();
1156 1382
1157 Cluster.fromJson(core.Map _json) { 1383 Cluster.fromJson(core.Map _json) {
1158 if (_json.containsKey("addonsConfig")) { 1384 if (_json.containsKey("addonsConfig")) {
1159 addonsConfig = new AddonsConfig.fromJson(_json["addonsConfig"]); 1385 addonsConfig = new AddonsConfig.fromJson(_json["addonsConfig"]);
1160 } 1386 }
1161 if (_json.containsKey("clusterIpv4Cidr")) { 1387 if (_json.containsKey("clusterIpv4Cidr")) {
(...skipping 25 matching lines...) Expand all
1187 } 1413 }
1188 if (_json.containsKey("initialClusterVersion")) { 1414 if (_json.containsKey("initialClusterVersion")) {
1189 initialClusterVersion = _json["initialClusterVersion"]; 1415 initialClusterVersion = _json["initialClusterVersion"];
1190 } 1416 }
1191 if (_json.containsKey("initialNodeCount")) { 1417 if (_json.containsKey("initialNodeCount")) {
1192 initialNodeCount = _json["initialNodeCount"]; 1418 initialNodeCount = _json["initialNodeCount"];
1193 } 1419 }
1194 if (_json.containsKey("instanceGroupUrls")) { 1420 if (_json.containsKey("instanceGroupUrls")) {
1195 instanceGroupUrls = _json["instanceGroupUrls"]; 1421 instanceGroupUrls = _json["instanceGroupUrls"];
1196 } 1422 }
1423 if (_json.containsKey("labelFingerprint")) {
1424 labelFingerprint = _json["labelFingerprint"];
1425 }
1426 if (_json.containsKey("legacyAbac")) {
1427 legacyAbac = new LegacyAbac.fromJson(_json["legacyAbac"]);
1428 }
1197 if (_json.containsKey("locations")) { 1429 if (_json.containsKey("locations")) {
1198 locations = _json["locations"]; 1430 locations = _json["locations"];
1199 } 1431 }
1200 if (_json.containsKey("loggingService")) { 1432 if (_json.containsKey("loggingService")) {
1201 loggingService = _json["loggingService"]; 1433 loggingService = _json["loggingService"];
1202 } 1434 }
1203 if (_json.containsKey("masterAuth")) { 1435 if (_json.containsKey("masterAuth")) {
1204 masterAuth = new MasterAuth.fromJson(_json["masterAuth"]); 1436 masterAuth = new MasterAuth.fromJson(_json["masterAuth"]);
1205 } 1437 }
1206 if (_json.containsKey("monitoringService")) { 1438 if (_json.containsKey("monitoringService")) {
1207 monitoringService = _json["monitoringService"]; 1439 monitoringService = _json["monitoringService"];
1208 } 1440 }
1209 if (_json.containsKey("name")) { 1441 if (_json.containsKey("name")) {
1210 name = _json["name"]; 1442 name = _json["name"];
1211 } 1443 }
1212 if (_json.containsKey("network")) { 1444 if (_json.containsKey("network")) {
1213 network = _json["network"]; 1445 network = _json["network"];
1214 } 1446 }
1215 if (_json.containsKey("nodeConfig")) { 1447 if (_json.containsKey("nodeConfig")) {
1216 nodeConfig = new NodeConfig.fromJson(_json["nodeConfig"]); 1448 nodeConfig = new NodeConfig.fromJson(_json["nodeConfig"]);
1217 } 1449 }
1218 if (_json.containsKey("nodeIpv4CidrSize")) { 1450 if (_json.containsKey("nodeIpv4CidrSize")) {
1219 nodeIpv4CidrSize = _json["nodeIpv4CidrSize"]; 1451 nodeIpv4CidrSize = _json["nodeIpv4CidrSize"];
1220 } 1452 }
1221 if (_json.containsKey("nodePools")) { 1453 if (_json.containsKey("nodePools")) {
1222 nodePools = _json["nodePools"].map((value) => new NodePool.fromJson(value) ).toList(); 1454 nodePools = _json["nodePools"].map((value) => new NodePool.fromJson(value) ).toList();
1223 } 1455 }
1456 if (_json.containsKey("resourceLabels")) {
1457 resourceLabels = new ResourceLabels.fromJson(_json["resourceLabels"]);
1458 }
1224 if (_json.containsKey("selfLink")) { 1459 if (_json.containsKey("selfLink")) {
1225 selfLink = _json["selfLink"]; 1460 selfLink = _json["selfLink"];
1226 } 1461 }
1227 if (_json.containsKey("servicesIpv4Cidr")) { 1462 if (_json.containsKey("servicesIpv4Cidr")) {
1228 servicesIpv4Cidr = _json["servicesIpv4Cidr"]; 1463 servicesIpv4Cidr = _json["servicesIpv4Cidr"];
1229 } 1464 }
1230 if (_json.containsKey("status")) { 1465 if (_json.containsKey("status")) {
1231 status = _json["status"]; 1466 status = _json["status"];
1232 } 1467 }
1233 if (_json.containsKey("statusMessage")) { 1468 if (_json.containsKey("statusMessage")) {
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
1275 } 1510 }
1276 if (initialClusterVersion != null) { 1511 if (initialClusterVersion != null) {
1277 _json["initialClusterVersion"] = initialClusterVersion; 1512 _json["initialClusterVersion"] = initialClusterVersion;
1278 } 1513 }
1279 if (initialNodeCount != null) { 1514 if (initialNodeCount != null) {
1280 _json["initialNodeCount"] = initialNodeCount; 1515 _json["initialNodeCount"] = initialNodeCount;
1281 } 1516 }
1282 if (instanceGroupUrls != null) { 1517 if (instanceGroupUrls != null) {
1283 _json["instanceGroupUrls"] = instanceGroupUrls; 1518 _json["instanceGroupUrls"] = instanceGroupUrls;
1284 } 1519 }
1520 if (labelFingerprint != null) {
1521 _json["labelFingerprint"] = labelFingerprint;
1522 }
1523 if (legacyAbac != null) {
1524 _json["legacyAbac"] = (legacyAbac).toJson();
1525 }
1285 if (locations != null) { 1526 if (locations != null) {
1286 _json["locations"] = locations; 1527 _json["locations"] = locations;
1287 } 1528 }
1288 if (loggingService != null) { 1529 if (loggingService != null) {
1289 _json["loggingService"] = loggingService; 1530 _json["loggingService"] = loggingService;
1290 } 1531 }
1291 if (masterAuth != null) { 1532 if (masterAuth != null) {
1292 _json["masterAuth"] = (masterAuth).toJson(); 1533 _json["masterAuth"] = (masterAuth).toJson();
1293 } 1534 }
1294 if (monitoringService != null) { 1535 if (monitoringService != null) {
1295 _json["monitoringService"] = monitoringService; 1536 _json["monitoringService"] = monitoringService;
1296 } 1537 }
1297 if (name != null) { 1538 if (name != null) {
1298 _json["name"] = name; 1539 _json["name"] = name;
1299 } 1540 }
1300 if (network != null) { 1541 if (network != null) {
1301 _json["network"] = network; 1542 _json["network"] = network;
1302 } 1543 }
1303 if (nodeConfig != null) { 1544 if (nodeConfig != null) {
1304 _json["nodeConfig"] = (nodeConfig).toJson(); 1545 _json["nodeConfig"] = (nodeConfig).toJson();
1305 } 1546 }
1306 if (nodeIpv4CidrSize != null) { 1547 if (nodeIpv4CidrSize != null) {
1307 _json["nodeIpv4CidrSize"] = nodeIpv4CidrSize; 1548 _json["nodeIpv4CidrSize"] = nodeIpv4CidrSize;
1308 } 1549 }
1309 if (nodePools != null) { 1550 if (nodePools != null) {
1310 _json["nodePools"] = nodePools.map((value) => (value).toJson()).toList(); 1551 _json["nodePools"] = nodePools.map((value) => (value).toJson()).toList();
1311 } 1552 }
1553 if (resourceLabels != null) {
1554 _json["resourceLabels"] = (resourceLabels).toJson();
1555 }
1312 if (selfLink != null) { 1556 if (selfLink != null) {
1313 _json["selfLink"] = selfLink; 1557 _json["selfLink"] = selfLink;
1314 } 1558 }
1315 if (servicesIpv4Cidr != null) { 1559 if (servicesIpv4Cidr != null) {
1316 _json["servicesIpv4Cidr"] = servicesIpv4Cidr; 1560 _json["servicesIpv4Cidr"] = servicesIpv4Cidr;
1317 } 1561 }
1318 if (status != null) { 1562 if (status != null) {
1319 _json["status"] = status; 1563 _json["status"] = status;
1320 } 1564 }
1321 if (statusMessage != null) { 1565 if (statusMessage != null) {
1322 _json["statusMessage"] = statusMessage; 1566 _json["statusMessage"] = statusMessage;
1323 } 1567 }
1324 if (subnetwork != null) { 1568 if (subnetwork != null) {
1325 _json["subnetwork"] = subnetwork; 1569 _json["subnetwork"] = subnetwork;
1326 } 1570 }
1327 if (zone != null) { 1571 if (zone != null) {
1328 _json["zone"] = zone; 1572 _json["zone"] = zone;
1329 } 1573 }
1330 return _json; 1574 return _json;
1331 } 1575 }
1332 } 1576 }
1333 1577
1334 /** 1578 /**
1335 * ClusterUpdate describes an update to the cluster. Exactly one update can be 1579 * ClusterUpdate describes an update to the cluster. Exactly one update can
1336 * applied to a cluster with each request, so at most one field can be provided. 1580 * be applied to a cluster with each request, so at most one field can be
1581 * provided.
1337 */ 1582 */
1338 class ClusterUpdate { 1583 class ClusterUpdate {
1339 /** Configurations for the various addons available to run in the cluster. */ 1584 /** Configurations for the various addons available to run in the cluster. */
1340 AddonsConfig desiredAddonsConfig; 1585 AddonsConfig desiredAddonsConfig;
1341 /** 1586 /**
1342 * The desired image type for the node pool. NOTE: Set the "desired_node_pool" 1587 * The desired image type for the node pool.
1343 * field as well. 1588 * NOTE: Set the "desired_node_pool" field as well.
1344 */ 1589 */
1345 core.String desiredImageType; 1590 core.String desiredImageType;
1346 /** 1591 /**
1347 * The desired list of Google Compute Engine 1592 * The desired list of Google Compute Engine
1348 * [locations](/compute/docs/zones#available) in which the cluster's nodes 1593 * [locations](/compute/docs/zones#available) in which the cluster's nodes
1349 * should be located. Changing the locations a cluster is in will result in 1594 * should be located. Changing the locations a cluster is in will result
1350 * nodes being either created or removed from the cluster, depending on 1595 * in nodes being either created or removed from the cluster, depending on
1351 * whether locations are being added or removed. This list must always include 1596 * whether locations are being added or removed.
1352 * the cluster's primary zone. 1597 *
1598 * This list must always include the cluster's primary zone.
1353 */ 1599 */
1354 core.List<core.String> desiredLocations; 1600 core.List<core.String> desiredLocations;
1355 /** 1601 /**
1356 * The Kubernetes version to change the master to. The only valid value is the 1602 * The Kubernetes version to change the master to. The only valid value is the
1357 * latest supported version. Use "-" to have the server automatically select 1603 * latest supported version. Use "-" to have the server automatically select
1358 * the latest version. 1604 * the latest version.
1359 */ 1605 */
1360 core.String desiredMasterVersion; 1606 core.String desiredMasterVersion;
1361 /** 1607 /**
1362 * The monitoring service the cluster should use to write metrics. Currently 1608 * The monitoring service the cluster should use to write metrics.
1363 * available options: * "monitoring.googleapis.com" - the Google Cloud 1609 * Currently available options:
1364 * Monitoring service * "none" - no metrics will be exported from the cluster 1610 *
1611 * * "monitoring.googleapis.com" - the Google Cloud Monitoring service
1612 * * "none" - no metrics will be exported from the cluster
1365 */ 1613 */
1366 core.String desiredMonitoringService; 1614 core.String desiredMonitoringService;
1367 /** 1615 /**
1368 * Autoscaler configuration for the node pool specified in 1616 * Autoscaler configuration for the node pool specified in
1369 * desired_node_pool_id. If there is only one pool in the cluster and 1617 * desired_node_pool_id. If there is only one pool in the
1370 * desired_node_pool_id is not provided then the change applies to that single 1618 * cluster and desired_node_pool_id is not provided then
1371 * node pool. 1619 * the change applies to that single node pool.
1372 */ 1620 */
1373 NodePoolAutoscaling desiredNodePoolAutoscaling; 1621 NodePoolAutoscaling desiredNodePoolAutoscaling;
1374 /** 1622 /**
1375 * The node pool to be upgraded. This field is mandatory if 1623 * The node pool to be upgraded. This field is mandatory if
1376 * "desired_node_version", "desired_image_family" or 1624 * "desired_node_version", "desired_image_family" or
1377 * "desired_node_pool_autoscaling" is specified and there is more than one 1625 * "desired_node_pool_autoscaling" is specified and there is more than one
1378 * node pool on the cluster. 1626 * node pool on the cluster.
1379 */ 1627 */
1380 core.String desiredNodePoolId; 1628 core.String desiredNodePoolId;
1381 /** 1629 /**
1382 * The Kubernetes version to change the nodes to (typically an upgrade). Use 1630 * The Kubernetes version to change the nodes to (typically an
1383 * `-` to upgrade to the latest version supported by the server. 1631 * upgrade). Use `-` to upgrade to the latest version supported by
1632 * the server.
1384 */ 1633 */
1385 core.String desiredNodeVersion; 1634 core.String desiredNodeVersion;
1386 1635
1387 ClusterUpdate(); 1636 ClusterUpdate();
1388 1637
1389 ClusterUpdate.fromJson(core.Map _json) { 1638 ClusterUpdate.fromJson(core.Map _json) {
1390 if (_json.containsKey("desiredAddonsConfig")) { 1639 if (_json.containsKey("desiredAddonsConfig")) {
1391 desiredAddonsConfig = new AddonsConfig.fromJson(_json["desiredAddonsConfig "]); 1640 desiredAddonsConfig = new AddonsConfig.fromJson(_json["desiredAddonsConfig "]);
1392 } 1641 }
1393 if (_json.containsKey("desiredImageType")) { 1642 if (_json.containsKey("desiredImageType")) {
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
1485 var _json = new core.Map(); 1734 var _json = new core.Map();
1486 if (nodePool != null) { 1735 if (nodePool != null) {
1487 _json["nodePool"] = (nodePool).toJson(); 1736 _json["nodePool"] = (nodePool).toJson();
1488 } 1737 }
1489 return _json; 1738 return _json;
1490 } 1739 }
1491 } 1740 }
1492 1741
1493 /** 1742 /**
1494 * A generic empty message that you can re-use to avoid defining duplicated 1743 * A generic empty message that you can re-use to avoid defining duplicated
1495 * empty messages in your APIs. A typical example is to use it as the request or 1744 * empty messages in your APIs. A typical example is to use it as the request
1496 * the response type of an API method. For instance: service Foo { rpc 1745 * or the response type of an API method. For instance:
1497 * Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON 1746 *
1498 * representation for `Empty` is empty JSON object `{}`. 1747 * service Foo {
1748 * rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
1749 * }
1750 *
1751 * The JSON representation for `Empty` is empty JSON object `{}`.
1499 */ 1752 */
1500 class Empty { 1753 class Empty {
1501 1754
1502 Empty(); 1755 Empty();
1503 1756
1504 Empty.fromJson(core.Map _json) { 1757 Empty.fromJson(core.Map _json) {
1505 } 1758 }
1506 1759
1507 core.Map toJson() { 1760 core.Map toJson() {
1508 var _json = new core.Map(); 1761 var _json = new core.Map();
(...skipping 30 matching lines...) Expand all
1539 return _json; 1792 return _json;
1540 } 1793 }
1541 } 1794 }
1542 1795
1543 /** 1796 /**
1544 * Configuration options for the HTTP (L7) load balancing controller addon, 1797 * Configuration options for the HTTP (L7) load balancing controller addon,
1545 * which makes it easy to set up HTTP load balancers for services in a cluster. 1798 * which makes it easy to set up HTTP load balancers for services in a cluster.
1546 */ 1799 */
1547 class HttpLoadBalancing { 1800 class HttpLoadBalancing {
1548 /** 1801 /**
1549 * Whether the HTTP Load Balancing controller is enabled in the cluster. When 1802 * Whether the HTTP Load Balancing controller is enabled in the cluster.
1550 * enabled, it runs a small pod in the cluster that manages the load 1803 * When enabled, it runs a small pod in the cluster that manages the load
1551 * balancers. 1804 * balancers.
1552 */ 1805 */
1553 core.bool disabled; 1806 core.bool disabled;
1554 1807
1555 HttpLoadBalancing(); 1808 HttpLoadBalancing();
1556 1809
1557 HttpLoadBalancing.fromJson(core.Map _json) { 1810 HttpLoadBalancing.fromJson(core.Map _json) {
1558 if (_json.containsKey("disabled")) { 1811 if (_json.containsKey("disabled")) {
1559 disabled = _json["disabled"]; 1812 disabled = _json["disabled"];
1560 } 1813 }
1561 } 1814 }
1562 1815
1563 core.Map toJson() { 1816 core.Map toJson() {
1564 var _json = new core.Map(); 1817 var _json = new core.Map();
1565 if (disabled != null) { 1818 if (disabled != null) {
1566 _json["disabled"] = disabled; 1819 _json["disabled"] = disabled;
1567 } 1820 }
1568 return _json; 1821 return _json;
1569 } 1822 }
1570 } 1823 }
1571 1824
1825 /**
1826 * A label to be applied to Google Compute Engine resources. It must comply
1827 * with RFC1035 for each key and value.
1828 */
1829 class Item {
1830 /** The Key for this label. */
1831 core.String key;
1832 /** The Value for this label. */
1833 core.String value;
1834
1835 Item();
1836
1837 Item.fromJson(core.Map _json) {
1838 if (_json.containsKey("key")) {
1839 key = _json["key"];
1840 }
1841 if (_json.containsKey("value")) {
1842 value = _json["value"];
1843 }
1844 }
1845
1846 core.Map toJson() {
1847 var _json = new core.Map();
1848 if (key != null) {
1849 _json["key"] = key;
1850 }
1851 if (value != null) {
1852 _json["value"] = value;
1853 }
1854 return _json;
1855 }
1856 }
1857
1858 /**
1859 * Configuration for the legacy Attribute Based Access Control authorization
1860 * mode.
1861 */
1862 class LegacyAbac {
1863 /**
1864 * Whether the ABAC authorizer is enabled for this cluster. When enabled,
1865 * identities in the system, including service accounts, nodes, and
1866 * controllers, will have statically granted permissions beyond those
1867 * provided by the RBAC configuration or IAM.
1868 */
1869 core.bool enabled;
1870
1871 LegacyAbac();
1872
1873 LegacyAbac.fromJson(core.Map _json) {
1874 if (_json.containsKey("enabled")) {
1875 enabled = _json["enabled"];
1876 }
1877 }
1878
1879 core.Map toJson() {
1880 var _json = new core.Map();
1881 if (enabled != null) {
1882 _json["enabled"] = enabled;
1883 }
1884 return _json;
1885 }
1886 }
1887
1572 /** ListClustersResponse is the result of ListClustersRequest. */ 1888 /** ListClustersResponse is the result of ListClustersRequest. */
1573 class ListClustersResponse { 1889 class ListClustersResponse {
1574 /** 1890 /**
1575 * A list of clusters in the project in the specified zone, or across all 1891 * A list of clusters in the project in the specified zone, or
1576 * ones. 1892 * across all ones.
1577 */ 1893 */
1578 core.List<Cluster> clusters; 1894 core.List<Cluster> clusters;
1579 /** 1895 /**
1580 * If any zones are listed here, the list of clusters returned may be missing 1896 * If any zones are listed here, the list of clusters returned
1581 * those zones. 1897 * may be missing those zones.
1582 */ 1898 */
1583 core.List<core.String> missingZones; 1899 core.List<core.String> missingZones;
1584 1900
1585 ListClustersResponse(); 1901 ListClustersResponse();
1586 1902
1587 ListClustersResponse.fromJson(core.Map _json) { 1903 ListClustersResponse.fromJson(core.Map _json) {
1588 if (_json.containsKey("clusters")) { 1904 if (_json.containsKey("clusters")) {
1589 clusters = _json["clusters"].map((value) => new Cluster.fromJson(value)).t oList(); 1905 clusters = _json["clusters"].map((value) => new Cluster.fromJson(value)).t oList();
1590 } 1906 }
1591 if (_json.containsKey("missingZones")) { 1907 if (_json.containsKey("missingZones")) {
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
1623 if (nodePools != null) { 1939 if (nodePools != null) {
1624 _json["nodePools"] = nodePools.map((value) => (value).toJson()).toList(); 1940 _json["nodePools"] = nodePools.map((value) => (value).toJson()).toList();
1625 } 1941 }
1626 return _json; 1942 return _json;
1627 } 1943 }
1628 } 1944 }
1629 1945
1630 /** ListOperationsResponse is the result of ListOperationsRequest. */ 1946 /** ListOperationsResponse is the result of ListOperationsRequest. */
1631 class ListOperationsResponse { 1947 class ListOperationsResponse {
1632 /** 1948 /**
1633 * If any zones are listed here, the list of operations returned may be 1949 * If any zones are listed here, the list of operations returned
1634 * missing the operations from those zones. 1950 * may be missing the operations from those zones.
1635 */ 1951 */
1636 core.List<core.String> missingZones; 1952 core.List<core.String> missingZones;
1637 /** A list of operations in the project in the specified zone. */ 1953 /** A list of operations in the project in the specified zone. */
1638 core.List<Operation> operations; 1954 core.List<Operation> operations;
1639 1955
1640 ListOperationsResponse(); 1956 ListOperationsResponse();
1641 1957
1642 ListOperationsResponse.fromJson(core.Map _json) { 1958 ListOperationsResponse.fromJson(core.Map _json) {
1643 if (_json.containsKey("missingZones")) { 1959 if (_json.containsKey("missingZones")) {
1644 missingZones = _json["missingZones"]; 1960 missingZones = _json["missingZones"];
(...skipping 20 matching lines...) Expand all
1665 * Authentication can be done using HTTP basic auth or using client 1981 * Authentication can be done using HTTP basic auth or using client
1666 * certificates. 1982 * certificates.
1667 */ 1983 */
1668 class MasterAuth { 1984 class MasterAuth {
1669 /** 1985 /**
1670 * [Output only] Base64-encoded public certificate used by clients to 1986 * [Output only] Base64-encoded public certificate used by clients to
1671 * authenticate to the cluster endpoint. 1987 * authenticate to the cluster endpoint.
1672 */ 1988 */
1673 core.String clientCertificate; 1989 core.String clientCertificate;
1674 /** 1990 /**
1675 * [Output only] Base64-encoded private key used by clients to authenticate to 1991 * [Output only] Base64-encoded private key used by clients to authenticate
1676 * the cluster endpoint. 1992 * to the cluster endpoint.
1677 */ 1993 */
1678 core.String clientKey; 1994 core.String clientKey;
1679 /** 1995 /**
1680 * [Output only] Base64-encoded public certificate that is the root of trust 1996 * [Output only] Base64-encoded public certificate that is the root of
1681 * for the cluster. 1997 * trust for the cluster.
1682 */ 1998 */
1683 core.String clusterCaCertificate; 1999 core.String clusterCaCertificate;
1684 /** 2000 /**
1685 * The password to use for HTTP basic authentication to the master endpoint. 2001 * The password to use for HTTP basic authentication to the master endpoint.
1686 * Because the master endpoint is open to the Internet, you should create a 2002 * Because the master endpoint is open to the Internet, you should create a
1687 * strong password. 2003 * strong password.
1688 */ 2004 */
1689 core.String password; 2005 core.String password;
1690 /** 2006 /**
1691 * The username to use for HTTP basic authentication to the master endpoint. 2007 * The username to use for HTTP basic authentication to the master endpoint.
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
1729 if (username != null) { 2045 if (username != null) {
1730 _json["username"] = username; 2046 _json["username"] = username;
1731 } 2047 }
1732 return _json; 2048 return _json;
1733 } 2049 }
1734 } 2050 }
1735 2051
1736 /** Parameters that describe the nodes in a cluster. */ 2052 /** Parameters that describe the nodes in a cluster. */
1737 class NodeConfig { 2053 class NodeConfig {
1738 /** 2054 /**
1739 * Size of the disk attached to each node, specified in GB. The smallest 2055 * Size of the disk attached to each node, specified in GB.
1740 * allowed disk size is 10GB. If unspecified, the default disk size is 100GB. 2056 * The smallest allowed disk size is 10GB.
2057 *
2058 * If unspecified, the default disk size is 100GB.
1741 */ 2059 */
1742 core.int diskSizeGb; 2060 core.int diskSizeGb;
1743 /** 2061 /**
1744 * The image type to use for this node. Note that for a given image type, the 2062 * The image type to use for this node. Note that for a given image type,
1745 * latest version of it will be used. 2063 * the latest version of it will be used.
1746 */ 2064 */
1747 core.String imageType; 2065 core.String imageType;
1748 /** 2066 /**
1749 * The map of Kubernetes labels (key/value pairs) to be applied to each node. 2067 * The map of Kubernetes labels (key/value pairs) to be applied to each node.
1750 * These will added in addition to any default label(s) that Kubernetes may 2068 * These will added in addition to any default label(s) that
1751 * apply to the node. In case of conflict in label keys, the applied set may 2069 * Kubernetes may apply to the node.
1752 * differ depending on the Kubernetes version -- it's best to assume the 2070 * In case of conflict in label keys, the applied set may differ depending on
1753 * behavior is undefined and conflicts should be avoided. For more 2071 * the Kubernetes version -- it's best to assume the behavior is undefined
1754 * information, including usage and the valid values, see: 2072 * and conflicts should be avoided.
2073 * For more information, including usage and the valid values, see:
1755 * http://kubernetes.io/v1.1/docs/user-guide/labels.html 2074 * http://kubernetes.io/v1.1/docs/user-guide/labels.html
1756 */ 2075 */
1757 core.Map<core.String, core.String> labels; 2076 core.Map<core.String, core.String> labels;
1758 /** 2077 /**
1759 * The number of local SSD disks to be attached to the node. The limit for 2078 * The number of local SSD disks to be attached to the node.
1760 * this value is dependant upon the maximum number of disks available on a 2079 *
1761 * machine per zone. See: 2080 * The limit for this value is dependant upon the maximum number of
1762 * https://cloud.google.com/compute/docs/disks/local-ssd#local_ssd_limits for 2081 * disks available on a machine per zone. See:
1763 * more information. 2082 * https://cloud.google.com/compute/docs/disks/local-ssd#local_ssd_limits
2083 * for more information.
1764 */ 2084 */
1765 core.int localSsdCount; 2085 core.int localSsdCount;
1766 /** 2086 /**
1767 * The name of a Google Compute Engine [machine 2087 * The name of a Google Compute Engine [machine
1768 * type](/compute/docs/machine-types) (e.g. `n1-standard-1`). If unspecified, 2088 * type](/compute/docs/machine-types) (e.g.
1769 * the default machine type is `n1-standard-1`. 2089 * `n1-standard-1`).
2090 *
2091 * If unspecified, the default machine type is
2092 * `n1-standard-1`.
1770 */ 2093 */
1771 core.String machineType; 2094 core.String machineType;
1772 /** 2095 /**
1773 * The metadata key/value pairs assigned to instances in the cluster. Keys 2096 * The metadata key/value pairs assigned to instances in the cluster.
1774 * must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes in 2097 *
1775 * length. These are reflected as part of a URL in the metadata server. 2098 * Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
2099 * in length. These are reflected as part of a URL in the metadata server.
1776 * Additionally, to avoid ambiguity, keys must not conflict with any other 2100 * Additionally, to avoid ambiguity, keys must not conflict with any other
1777 * metadata keys for the project or be one of the four reserved keys: 2101 * metadata keys for the project or be one of the four reserved keys:
1778 * "instance-template", "kube-env", "startup-script", and "user-data" Values 2102 * "instance-template", "kube-env", "startup-script", and "user-data"
1779 * are free-form strings, and only have meaning as interpreted by the image 2103 *
1780 * running in the instance. The only restriction placed on them is that each 2104 * Values are free-form strings, and only have meaning as interpreted by
1781 * value's size must be less than or equal to 32 KB. The total size of all 2105 * the image running in the instance. The only restriction placed on them is
1782 * keys and values must be less than 512 KB. 2106 * that each value's size must be less than or equal to 32 KB.
2107 *
2108 * The total size of all keys and values must be less than 512 KB.
1783 */ 2109 */
1784 core.Map<core.String, core.String> metadata; 2110 core.Map<core.String, core.String> metadata;
1785 /** 2111 /**
1786 * The set of Google API scopes to be made available on all of the node VMs 2112 * The set of Google API scopes to be made available on all of the
1787 * under the "default" service account. The following scopes are recommended, 2113 * node VMs under the "default" service account.
1788 * but not required, and by default are not included: * 2114 *
1789 * `https://www.googleapis.com/auth/compute` is required for mounting 2115 * The following scopes are recommended, but not required, and by default are
1790 * persistent storage on your nodes. * 2116 * not included:
1791 * `https://www.googleapis.com/auth/devstorage.read_only` is required for 2117 *
1792 * communicating with **gcr.io** (the [Google Container 2118 * * `https://www.googleapis.com/auth/compute` is required for mounting
1793 * Registry](/container-registry/)). If unspecified, no scopes are added, 2119 * persistent storage on your nodes.
1794 * unless Cloud Logging or Cloud Monitoring are enabled, in which case their 2120 * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
1795 * required scopes will be added. 2121 * communicating with **gcr.io**
2122 * (the [Google Container Registry](/container-registry/)).
2123 *
2124 * If unspecified, no scopes are added, unless Cloud Logging or Cloud
2125 * Monitoring are enabled, in which case their required scopes will be added.
1796 */ 2126 */
1797 core.List<core.String> oauthScopes; 2127 core.List<core.String> oauthScopes;
1798 /** 2128 /**
1799 * Whether the nodes are created as preemptible VM instances. See: 2129 * Whether the nodes are created as preemptible VM instances. See:
1800 * https://cloud.google.com/compute/docs/instances/preemptible for more 2130 * https://cloud.google.com/compute/docs/instances/preemptible for more
1801 * inforamtion about preemptible VM instances. 2131 * inforamtion about preemptible VM instances.
1802 */ 2132 */
1803 core.bool preemptible; 2133 core.bool preemptible;
1804 /** 2134 /**
1805 * The Google Cloud Platform Service Account to be used by the node VMs. If no 2135 * The Google Cloud Platform Service Account to be used by the node VMs. If
1806 * Service Account is specified, the "default" service account is used. 2136 * no Service Account is specified, the "default" service account is used.
1807 */ 2137 */
1808 core.String serviceAccount; 2138 core.String serviceAccount;
1809 /** 2139 /**
1810 * The list of instance tags applied to all nodes. Tags are used to identify 2140 * The list of instance tags applied to all nodes. Tags are used to identify
1811 * valid sources or targets for network firewalls and are specified by the 2141 * valid sources or targets for network firewalls and are specified by
1812 * client during cluster or node pool creation. Each tag within the list must 2142 * the client during cluster or node pool creation. Each tag within the list
1813 * comply with RFC1035. 2143 * must comply with RFC1035.
1814 */ 2144 */
1815 core.List<core.String> tags; 2145 core.List<core.String> tags;
1816 2146
1817 NodeConfig(); 2147 NodeConfig();
1818 2148
1819 NodeConfig.fromJson(core.Map _json) { 2149 NodeConfig.fromJson(core.Map _json) {
1820 if (_json.containsKey("diskSizeGb")) { 2150 if (_json.containsKey("diskSizeGb")) {
1821 diskSizeGb = _json["diskSizeGb"]; 2151 diskSizeGb = _json["diskSizeGb"];
1822 } 2152 }
1823 if (_json.containsKey("imageType")) { 2153 if (_json.containsKey("imageType")) {
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
1883 } 2213 }
1884 return _json; 2214 return _json;
1885 } 2215 }
1886 } 2216 }
1887 2217
1888 /** 2218 /**
1889 * NodeManagement defines the set of node management services turned on for the 2219 * NodeManagement defines the set of node management services turned on for the
1890 * node pool. 2220 * node pool.
1891 */ 2221 */
1892 class NodeManagement { 2222 class NodeManagement {
1893 /** Whether the nodes will be automatically upgraded. */ 2223 /**
2224 * A flag that specifies whether the node auto-repair is enabled for the node
2225 * pool. If enabled, the nodes in this node pool will be monitored and, if
2226 * they fail health checks too many times, an automatic repair action will be
2227 * triggered.
2228 */
2229 core.bool autoRepair;
2230 /**
2231 * A flag that specifies whether node auto-upgrade is enabled for the node
2232 * pool. If enabled, node auto-upgrade helps keep the nodes in your node pool
2233 * up to date with the latest release version of Kubernetes.
2234 */
1894 core.bool autoUpgrade; 2235 core.bool autoUpgrade;
1895 /** Specifies the Auto Upgrade knobs for the node pool. */ 2236 /** Specifies the Auto Upgrade knobs for the node pool. */
1896 AutoUpgradeOptions upgradeOptions; 2237 AutoUpgradeOptions upgradeOptions;
1897 2238
1898 NodeManagement(); 2239 NodeManagement();
1899 2240
1900 NodeManagement.fromJson(core.Map _json) { 2241 NodeManagement.fromJson(core.Map _json) {
2242 if (_json.containsKey("autoRepair")) {
2243 autoRepair = _json["autoRepair"];
2244 }
1901 if (_json.containsKey("autoUpgrade")) { 2245 if (_json.containsKey("autoUpgrade")) {
1902 autoUpgrade = _json["autoUpgrade"]; 2246 autoUpgrade = _json["autoUpgrade"];
1903 } 2247 }
1904 if (_json.containsKey("upgradeOptions")) { 2248 if (_json.containsKey("upgradeOptions")) {
1905 upgradeOptions = new AutoUpgradeOptions.fromJson(_json["upgradeOptions"]); 2249 upgradeOptions = new AutoUpgradeOptions.fromJson(_json["upgradeOptions"]);
1906 } 2250 }
1907 } 2251 }
1908 2252
1909 core.Map toJson() { 2253 core.Map toJson() {
1910 var _json = new core.Map(); 2254 var _json = new core.Map();
2255 if (autoRepair != null) {
2256 _json["autoRepair"] = autoRepair;
2257 }
1911 if (autoUpgrade != null) { 2258 if (autoUpgrade != null) {
1912 _json["autoUpgrade"] = autoUpgrade; 2259 _json["autoUpgrade"] = autoUpgrade;
1913 } 2260 }
1914 if (upgradeOptions != null) { 2261 if (upgradeOptions != null) {
1915 _json["upgradeOptions"] = (upgradeOptions).toJson(); 2262 _json["upgradeOptions"] = (upgradeOptions).toJson();
1916 } 2263 }
1917 return _json; 2264 return _json;
1918 } 2265 }
1919 } 2266 }
1920 2267
1921 /** 2268 /**
1922 * NodePool contains the name and configuration for a cluster's node pool. Node 2269 * NodePool contains the name and configuration for a cluster's node pool.
1923 * pools are a set of nodes (i.e. VM's), with a common configuration and 2270 * Node pools are a set of nodes (i.e. VM's), with a common configuration and
1924 * specification, under the control of the cluster master. They may have a set 2271 * specification, under the control of the cluster master. They may have a set
1925 * of Kubernetes labels applied to them, which may be used to reference them 2272 * of Kubernetes labels applied to them, which may be used to reference them
1926 * during pod scheduling. They may also be resized up or down, to accommodate 2273 * during pod scheduling. They may also be resized up or down, to accommodate
1927 * the workload. 2274 * the workload.
1928 */ 2275 */
1929 class NodePool { 2276 class NodePool {
1930 /** 2277 /**
1931 * Autoscaler configuration for this NodePool. Autoscaler is enabled only if a 2278 * Autoscaler configuration for this NodePool. Autoscaler is enabled
1932 * valid configuration is present. 2279 * only if a valid configuration is present.
1933 */ 2280 */
1934 NodePoolAutoscaling autoscaling; 2281 NodePoolAutoscaling autoscaling;
1935 /** The node configuration of the pool. */ 2282 /** The node configuration of the pool. */
1936 NodeConfig config; 2283 NodeConfig config;
1937 /** 2284 /**
1938 * The initial node count for the pool. You must ensure that your Compute 2285 * The initial node count for the pool. You must ensure that your
1939 * Engine resource quota is sufficient for this number of instances. You must 2286 * Compute Engine <a href="/compute/docs/resource-quotas">resource quota</a>
1940 * also have available firewall and routes quota. 2287 * is sufficient for this number of instances. You must also have available
2288 * firewall and routes quota.
1941 */ 2289 */
1942 core.int initialNodeCount; 2290 core.int initialNodeCount;
1943 /** 2291 /**
1944 * [Output only] The resource URLs of [instance 2292 * [Output only] The resource URLs of [instance
1945 * groups](/compute/docs/instance-groups/) associated with this node pool. 2293 * groups](/compute/docs/instance-groups/) associated with this
2294 * node pool.
1946 */ 2295 */
1947 core.List<core.String> instanceGroupUrls; 2296 core.List<core.String> instanceGroupUrls;
1948 /** NodeManagement configuration for this NodePool. */ 2297 /** NodeManagement configuration for this NodePool. */
1949 NodeManagement management; 2298 NodeManagement management;
1950 /** The name of the node pool. */ 2299 /** The name of the node pool. */
1951 core.String name; 2300 core.String name;
1952 /** [Output only] Server-defined URL for the resource. */ 2301 /** [Output only] Server-defined URL for the resource. */
1953 core.String selfLink; 2302 core.String selfLink;
1954 /** 2303 /**
1955 * [Output only] The status of the nodes in this pool instance. 2304 * [Output only] The status of the nodes in this pool instance.
1956 * Possible string values are: 2305 * Possible string values are:
1957 * - "STATUS_UNSPECIFIED" : A STATUS_UNSPECIFIED. 2306 * - "STATUS_UNSPECIFIED" : Not set.
1958 * - "PROVISIONING" : A PROVISIONING. 2307 * - "PROVISIONING" : The PROVISIONING state indicates the node pool is being
1959 * - "RUNNING" : A RUNNING. 2308 * created.
1960 * - "RUNNING_WITH_ERROR" : A RUNNING_WITH_ERROR. 2309 * - "RUNNING" : The RUNNING state indicates the node pool has been created
1961 * - "RECONCILING" : A RECONCILING. 2310 * and is fully usable.
1962 * - "STOPPING" : A STOPPING. 2311 * - "RUNNING_WITH_ERROR" : The RUNNING_WITH_ERROR state indicates the node
1963 * - "ERROR" : A ERROR. 2312 * pool has been created
2313 * and is partially usable. Some error state has occurred and some
2314 * functionality may be impaired. Customer may need to reissue a request
2315 * or trigger a new update.
2316 * - "RECONCILING" : The RECONCILING state indicates that some work is
2317 * actively being done on
2318 * the node pool, such as upgrading node software. Details can
2319 * be found in the `statusMessage` field.
2320 * - "STOPPING" : The STOPPING state indicates the node pool is being deleted.
2321 * - "ERROR" : The ERROR state indicates the node pool may be unusable.
2322 * Details
2323 * can be found in the `statusMessage` field.
1964 */ 2324 */
1965 core.String status; 2325 core.String status;
1966 /** 2326 /**
1967 * [Output only] Additional information about the current status of this node 2327 * [Output only] Additional information about the current status of this
1968 * pool instance, if available. 2328 * node pool instance, if available.
1969 */ 2329 */
1970 core.String statusMessage; 2330 core.String statusMessage;
1971 /** [Output only] The version of the Kubernetes of this node. */ 2331 /** [Output only] The version of the Kubernetes of this node. */
1972 core.String version; 2332 core.String version;
1973 2333
1974 NodePool(); 2334 NodePool();
1975 2335
1976 NodePool.fromJson(core.Map _json) { 2336 NodePool.fromJson(core.Map _json) {
1977 if (_json.containsKey("autoscaling")) { 2337 if (_json.containsKey("autoscaling")) {
1978 autoscaling = new NodePoolAutoscaling.fromJson(_json["autoscaling"]); 2338 autoscaling = new NodePoolAutoscaling.fromJson(_json["autoscaling"]);
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
2094 * happening on the cluster. All fields are output only. 2454 * happening on the cluster. All fields are output only.
2095 */ 2455 */
2096 class Operation { 2456 class Operation {
2097 /** Detailed operation progress, if available. */ 2457 /** Detailed operation progress, if available. */
2098 core.String detail; 2458 core.String detail;
2099 /** The server-assigned ID for the operation. */ 2459 /** The server-assigned ID for the operation. */
2100 core.String name; 2460 core.String name;
2101 /** 2461 /**
2102 * The operation type. 2462 * The operation type.
2103 * Possible string values are: 2463 * Possible string values are:
2104 * - "TYPE_UNSPECIFIED" : A TYPE_UNSPECIFIED. 2464 * - "TYPE_UNSPECIFIED" : Not set.
2105 * - "CREATE_CLUSTER" : A CREATE_CLUSTER. 2465 * - "CREATE_CLUSTER" : Cluster create.
2106 * - "DELETE_CLUSTER" : A DELETE_CLUSTER. 2466 * - "DELETE_CLUSTER" : Cluster delete.
2107 * - "UPGRADE_MASTER" : A UPGRADE_MASTER. 2467 * - "UPGRADE_MASTER" : A master upgrade.
2108 * - "UPGRADE_NODES" : A UPGRADE_NODES. 2468 * - "UPGRADE_NODES" : A node upgrade.
2109 * - "REPAIR_CLUSTER" : A REPAIR_CLUSTER. 2469 * - "REPAIR_CLUSTER" : Cluster repair.
2110 * - "UPDATE_CLUSTER" : A UPDATE_CLUSTER. 2470 * - "UPDATE_CLUSTER" : Cluster update.
2111 * - "CREATE_NODE_POOL" : A CREATE_NODE_POOL. 2471 * - "CREATE_NODE_POOL" : Node pool create.
2112 * - "DELETE_NODE_POOL" : A DELETE_NODE_POOL. 2472 * - "DELETE_NODE_POOL" : Node pool delete.
2113 * - "SET_NODE_POOL_MANAGEMENT" : A SET_NODE_POOL_MANAGEMENT. 2473 * - "SET_NODE_POOL_MANAGEMENT" : Set node pool management.
2474 * - "AUTO_REPAIR_NODES" : Automatic node pool repair.
2475 * - "AUTO_UPGRADE_NODES" : Automatic node upgrade.
2476 * - "SET_LABELS" : Set labels.
2477 * - "SET_MASTER_AUTH" : Set/generate master auth materials
2114 */ 2478 */
2115 core.String operationType; 2479 core.String operationType;
2116 /** Server-defined URL for the resource. */ 2480 /** Server-defined URL for the resource. */
2117 core.String selfLink; 2481 core.String selfLink;
2118 /** 2482 /**
2119 * The current status of the operation. 2483 * The current status of the operation.
2120 * Possible string values are: 2484 * Possible string values are:
2121 * - "STATUS_UNSPECIFIED" : A STATUS_UNSPECIFIED. 2485 * - "STATUS_UNSPECIFIED" : Not set.
2122 * - "PENDING" : A PENDING. 2486 * - "PENDING" : The operation has been created.
2123 * - "RUNNING" : A RUNNING. 2487 * - "RUNNING" : The operation is currently running.
2124 * - "DONE" : A DONE. 2488 * - "DONE" : The operation is done, either cancelled or completed.
2125 * - "ABORTING" : A ABORTING. 2489 * - "ABORTING" : The operation is aborting.
2126 */ 2490 */
2127 core.String status; 2491 core.String status;
2128 /** If an error has occurred, a textual description of the error. */ 2492 /** If an error has occurred, a textual description of the error. */
2129 core.String statusMessage; 2493 core.String statusMessage;
2130 /** Server-defined URL for the target of the operation. */ 2494 /** Server-defined URL for the target of the operation. */
2131 core.String targetLink; 2495 core.String targetLink;
2132 /** 2496 /**
2133 * The name of the Google Compute Engine [zone](/compute/docs/zones#available) 2497 * The name of the Google Compute Engine
2134 * in which the operation is taking place. 2498 * [zone](/compute/docs/zones#available) in which the operation
2499 * is taking place.
2135 */ 2500 */
2136 core.String zone; 2501 core.String zone;
2137 2502
2138 Operation(); 2503 Operation();
2139 2504
2140 Operation.fromJson(core.Map _json) { 2505 Operation.fromJson(core.Map _json) {
2141 if (_json.containsKey("detail")) { 2506 if (_json.containsKey("detail")) {
2142 detail = _json["detail"]; 2507 detail = _json["detail"];
2143 } 2508 }
2144 if (_json.containsKey("name")) { 2509 if (_json.containsKey("name")) {
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
2188 _json["targetLink"] = targetLink; 2553 _json["targetLink"] = targetLink;
2189 } 2554 }
2190 if (zone != null) { 2555 if (zone != null) {
2191 _json["zone"] = zone; 2556 _json["zone"] = zone;
2192 } 2557 }
2193 return _json; 2558 return _json;
2194 } 2559 }
2195 } 2560 }
2196 2561
2197 /** 2562 /**
2563 * The set of Google Compute Engine labels that will be applied to any
2564 * underlying resources that the Google Container Cluster creates or uses.
2565 * These are merely metadata on the resources, and do not change the behavior
2566 * of the cluster.
2567 */
2568 class ResourceLabels {
2569 /** The list of labels. */
2570 core.List<Item> items;
2571
2572 ResourceLabels();
2573
2574 ResourceLabels.fromJson(core.Map _json) {
2575 if (_json.containsKey("items")) {
2576 items = _json["items"].map((value) => new Item.fromJson(value)).toList();
2577 }
2578 }
2579
2580 core.Map toJson() {
2581 var _json = new core.Map();
2582 if (items != null) {
2583 _json["items"] = items.map((value) => (value).toJson()).toList();
2584 }
2585 return _json;
2586 }
2587 }
2588
2589 /**
2198 * RollbackNodePoolUpgradeRequest rollbacks the previously Aborted or Failed 2590 * RollbackNodePoolUpgradeRequest rollbacks the previously Aborted or Failed
2199 * NodePool upgrade. This will be an no-op if the last upgrade successfully 2591 * NodePool upgrade. This will be an no-op if the last upgrade successfully
2200 * completed. 2592 * completed.
2201 */ 2593 */
2202 class RollbackNodePoolUpgradeRequest { 2594 class RollbackNodePoolUpgradeRequest {
2203 2595
2204 RollbackNodePoolUpgradeRequest(); 2596 RollbackNodePoolUpgradeRequest();
2205 2597
2206 RollbackNodePoolUpgradeRequest.fromJson(core.Map _json) { 2598 RollbackNodePoolUpgradeRequest.fromJson(core.Map _json) {
2207 } 2599 }
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
2260 _json["validMasterVersions"] = validMasterVersions; 2652 _json["validMasterVersions"] = validMasterVersions;
2261 } 2653 }
2262 if (validNodeVersions != null) { 2654 if (validNodeVersions != null) {
2263 _json["validNodeVersions"] = validNodeVersions; 2655 _json["validNodeVersions"] = validNodeVersions;
2264 } 2656 }
2265 return _json; 2657 return _json;
2266 } 2658 }
2267 } 2659 }
2268 2660
2269 /** 2661 /**
2662 * SetLabelsRequest sets the Google Cloud Platform labels on a Google Container
2663 * Engine cluster, which will in turn set them for Google Compute Engine
2664 * resources used by that cluster
2665 */
2666 class SetLabelsRequest {
2667 /**
2668 * The fingerprint of the previous set of labels for this resource,
2669 * used to detect conflicts. The fingerprint is initially generated by
2670 * Container Engine and changes after every request to modify or update
2671 * labels. You must always provide an up-to-date fingerprint hash when
2672 * updating or changing labels. Make a <code>get()</code> request to the
2673 * resource to get the latest fingerprint.
2674 */
2675 core.String labelFingerprint;
2676 /** The labels to set for that cluster. */
2677 ResourceLabels resourceLabels;
2678
2679 SetLabelsRequest();
2680
2681 SetLabelsRequest.fromJson(core.Map _json) {
2682 if (_json.containsKey("labelFingerprint")) {
2683 labelFingerprint = _json["labelFingerprint"];
2684 }
2685 if (_json.containsKey("resourceLabels")) {
2686 resourceLabels = new ResourceLabels.fromJson(_json["resourceLabels"]);
2687 }
2688 }
2689
2690 core.Map toJson() {
2691 var _json = new core.Map();
2692 if (labelFingerprint != null) {
2693 _json["labelFingerprint"] = labelFingerprint;
2694 }
2695 if (resourceLabels != null) {
2696 _json["resourceLabels"] = (resourceLabels).toJson();
2697 }
2698 return _json;
2699 }
2700 }
2701
2702 /**
2703 * SetLegacyAbacRequest enables or disables the ABAC authorization mechanism for
2704 * a cluster.
2705 */
2706 class SetLegacyAbacRequest {
2707 /** Whether ABAC authorization will be enabled in the cluster. */
2708 core.bool enabled;
2709
2710 SetLegacyAbacRequest();
2711
2712 SetLegacyAbacRequest.fromJson(core.Map _json) {
2713 if (_json.containsKey("enabled")) {
2714 enabled = _json["enabled"];
2715 }
2716 }
2717
2718 core.Map toJson() {
2719 var _json = new core.Map();
2720 if (enabled != null) {
2721 _json["enabled"] = enabled;
2722 }
2723 return _json;
2724 }
2725 }
2726
2727 /** SetMasterAuthRequest updates the admin password of a cluster. */
2728 class SetMasterAuthRequest {
2729 /**
2730 * The exact form of action to be taken on the master auth
2731 * Possible string values are:
2732 * - "UNKNOWN" : Operation is unknown and will error out
2733 * - "SET_PASSWORD" : Set the password to a user generated value.
2734 * - "GENERATE_PASSWORD" : Generate a new password and set it to that.
2735 */
2736 core.String action;
2737 /** A description of the update. */
2738 MasterAuth update;
2739
2740 SetMasterAuthRequest();
2741
2742 SetMasterAuthRequest.fromJson(core.Map _json) {
2743 if (_json.containsKey("action")) {
2744 action = _json["action"];
2745 }
2746 if (_json.containsKey("update")) {
2747 update = new MasterAuth.fromJson(_json["update"]);
2748 }
2749 }
2750
2751 core.Map toJson() {
2752 var _json = new core.Map();
2753 if (action != null) {
2754 _json["action"] = action;
2755 }
2756 if (update != null) {
2757 _json["update"] = (update).toJson();
2758 }
2759 return _json;
2760 }
2761 }
2762
2763 /**
2270 * SetNodePoolManagementRequest sets the node management properties of a node 2764 * SetNodePoolManagementRequest sets the node management properties of a node
2271 * pool. 2765 * pool.
2272 */ 2766 */
2273 class SetNodePoolManagementRequest { 2767 class SetNodePoolManagementRequest {
2274 /** NodeManagement configuration for the node pool. */ 2768 /** NodeManagement configuration for the node pool. */
2275 NodeManagement management; 2769 NodeManagement management;
2276 2770
2277 SetNodePoolManagementRequest(); 2771 SetNodePoolManagementRequest();
2278 2772
2279 SetNodePoolManagementRequest.fromJson(core.Map _json) { 2773 SetNodePoolManagementRequest.fromJson(core.Map _json) {
(...skipping 25 matching lines...) Expand all
2305 } 2799 }
2306 2800
2307 core.Map toJson() { 2801 core.Map toJson() {
2308 var _json = new core.Map(); 2802 var _json = new core.Map();
2309 if (update != null) { 2803 if (update != null) {
2310 _json["update"] = (update).toJson(); 2804 _json["update"] = (update).toJson();
2311 } 2805 }
2312 return _json; 2806 return _json;
2313 } 2807 }
2314 } 2808 }
OLDNEW
« no previous file with comments | « generated/googleapis/lib/consumersurveys/v2.dart ('k') | generated/googleapis/lib/content/v2.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698