OLD | NEW |
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; |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 | 43 |
44 | 44 |
45 class ProjectsZonesResourceApi { | 45 class ProjectsZonesResourceApi { |
46 final commons.ApiRequester _requester; | 46 final commons.ApiRequester _requester; |
47 | 47 |
48 ProjectsZonesClustersResourceApi get clusters => new ProjectsZonesClustersReso
urceApi(_requester); | 48 ProjectsZonesClustersResourceApi get clusters => new ProjectsZonesClustersReso
urceApi(_requester); |
49 ProjectsZonesOperationsResourceApi get operations => new ProjectsZonesOperatio
nsResourceApi(_requester); | 49 ProjectsZonesOperationsResourceApi get operations => new ProjectsZonesOperatio
nsResourceApi(_requester); |
50 | 50 |
51 ProjectsZonesResourceApi(commons.ApiRequester client) : | 51 ProjectsZonesResourceApi(commons.ApiRequester client) : |
52 _requester = client; | 52 _requester = client; |
| 53 |
| 54 /** |
| 55 * Returns configuration info about the Container Engine service. |
| 56 * |
| 57 * Request parameters: |
| 58 * |
| 59 * [projectId] - The Google Developers Console [project ID or project |
| 60 * number](https://developers.google.com/console/help/new/#projectnumber). |
| 61 * |
| 62 * [zone] - The name of the Google Compute Engine |
| 63 * [zone](/compute/docs/zones#available) to return operations for, or "-" for |
| 64 * all zones. |
| 65 * |
| 66 * Completes with a [ServerConfig]. |
| 67 * |
| 68 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 69 * error. |
| 70 * |
| 71 * If the used [http.Client] completes with an error when making a REST call, |
| 72 * this method will complete with the same error. |
| 73 */ |
| 74 async.Future<ServerConfig> getServerconfig(core.String projectId, core.String
zone) { |
| 75 var _url = null; |
| 76 var _queryParams = new core.Map(); |
| 77 var _uploadMedia = null; |
| 78 var _uploadOptions = null; |
| 79 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 80 var _body = null; |
| 81 |
| 82 if (projectId == null) { |
| 83 throw new core.ArgumentError("Parameter projectId is required."); |
| 84 } |
| 85 if (zone == null) { |
| 86 throw new core.ArgumentError("Parameter zone is required."); |
| 87 } |
| 88 |
| 89 _url = 'v1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/zone
s/' + commons.Escaper.ecapeVariable('$zone') + '/serverconfig'; |
| 90 |
| 91 var _response = _requester.request(_url, |
| 92 "GET", |
| 93 body: _body, |
| 94 queryParams: _queryParams, |
| 95 uploadOptions: _uploadOptions, |
| 96 uploadMedia: _uploadMedia, |
| 97 downloadOptions: _downloadOptions); |
| 98 return _response.then((data) => new ServerConfig.fromJson(data)); |
| 99 } |
| 100 |
53 } | 101 } |
54 | 102 |
55 | 103 |
56 class ProjectsZonesClustersResourceApi { | 104 class ProjectsZonesClustersResourceApi { |
57 final commons.ApiRequester _requester; | 105 final commons.ApiRequester _requester; |
58 | 106 |
59 ProjectsZonesClustersResourceApi(commons.ApiRequester client) : | 107 ProjectsZonesClustersResourceApi(commons.ApiRequester client) : |
60 _requester = client; | 108 _requester = client; |
61 | 109 |
62 /** | 110 /** |
63 * Creates a cluster, consisting of the specified number and type of Google | 111 * Creates a cluster, consisting of the specified number and type of Google |
64 * Compute Engine instances, plus a Kubernetes master endpoint. By default, | 112 * Compute Engine instances, plus a Kubernetes master endpoint. By default, |
65 * the cluster is created in the project's [default | 113 * the cluster is created in the project's [default |
66 * network]('/compute/docs/networking#networks_1'). One firewall is added for | 114 * network](/compute/docs/networking#networks_1). One firewall is added for |
67 * the cluster. After cluster creation, the cluster creates routes for each | 115 * the cluster. After cluster creation, the cluster creates routes for each |
68 * node to allow the containers on that node to communicate with all other | 116 * node to allow the containers on that node to communicate with all other |
69 * instances in the cluster. Finally, an entry is added to the project's | 117 * instances in the cluster. Finally, an entry is added to the project's |
70 * global metadata indicating which CIDR range is being used by the cluster. | 118 * global metadata indicating which CIDR range is being used by the cluster. |
71 * | 119 * |
72 * [request] - The metadata request object. | 120 * [request] - The metadata request object. |
73 * | 121 * |
74 * Request parameters: | 122 * Request parameters: |
75 * | 123 * |
76 * [projectId] - The Google Developers Console [project | 124 * [projectId] - The Google Developers Console [project ID or project |
77 * ID](https://console.developers.google.com/project) or [project | 125 * number](https://developers.google.com/console/help/new/#projectnumber). |
78 * number](https://developers.google.com/console/help/project-number) | |
79 * | 126 * |
80 * [zone] - The name of the Google Compute Engine | 127 * [zone] - The name of the Google Compute Engine |
81 * [zone](/compute/docs/zones#available) in which the cluster resides. | 128 * [zone](/compute/docs/zones#available) in which the cluster resides. |
82 * | 129 * |
83 * Completes with a [Operation]. | 130 * Completes with a [Operation]. |
84 * | 131 * |
85 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 132 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
86 * error. | 133 * error. |
87 * | 134 * |
88 * If the used [http.Client] completes with an error when making a REST call, | 135 * If the used [http.Client] completes with an error when making a REST call, |
(...skipping 29 matching lines...) Expand all Loading... |
118 return _response.then((data) => new Operation.fromJson(data)); | 165 return _response.then((data) => new Operation.fromJson(data)); |
119 } | 166 } |
120 | 167 |
121 /** | 168 /** |
122 * Deletes the cluster, including the Kubernetes endpoint and all worker | 169 * Deletes the cluster, including the Kubernetes endpoint and all worker |
123 * nodes. Firewalls and routes that were configured during cluster creation | 170 * nodes. Firewalls and routes that were configured during cluster creation |
124 * are also deleted. | 171 * are also deleted. |
125 * | 172 * |
126 * Request parameters: | 173 * Request parameters: |
127 * | 174 * |
128 * [projectId] - The Google Developers Console [project | 175 * [projectId] - The Google Developers Console [project ID or project |
129 * ID](https://console.developers.google.com/project) or [project | 176 * number](https://developers.google.com/console/help/new/#projectnumber). |
130 * number](https://developers.google.com/console/help/project-number) | |
131 * | 177 * |
132 * [zone] - The name of the Google Compute Engine | 178 * [zone] - The name of the Google Compute Engine |
133 * [zone](/compute/docs/zones#available) in which the cluster resides. | 179 * [zone](/compute/docs/zones#available) in which the cluster resides. |
134 * | 180 * |
135 * [clusterId] - The name of the cluster to delete. | 181 * [clusterId] - The name of the cluster to delete. |
136 * | 182 * |
137 * Completes with a [Operation]. | 183 * Completes with a [Operation]. |
138 * | 184 * |
139 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 185 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
140 * error. | 186 * error. |
(...skipping 29 matching lines...) Expand all Loading... |
170 uploadMedia: _uploadMedia, | 216 uploadMedia: _uploadMedia, |
171 downloadOptions: _downloadOptions); | 217 downloadOptions: _downloadOptions); |
172 return _response.then((data) => new Operation.fromJson(data)); | 218 return _response.then((data) => new Operation.fromJson(data)); |
173 } | 219 } |
174 | 220 |
175 /** | 221 /** |
176 * Gets a specific cluster. | 222 * Gets a specific cluster. |
177 * | 223 * |
178 * Request parameters: | 224 * Request parameters: |
179 * | 225 * |
180 * [projectId] - The Google Developers Console A [project | 226 * [projectId] - The Google Developers Console [project ID or project |
181 * ID](https://console.developers.google.com/project) or [project | 227 * number](https://developers.google.com/console/help/new/#projectnumber). |
182 * number](https://developers.google.com/console/help/project-number) | |
183 * | 228 * |
184 * [zone] - The name of the Google Compute Engine | 229 * [zone] - The name of the Google Compute Engine |
185 * [zone](/compute/docs/zones#available) in which the cluster resides. | 230 * [zone](/compute/docs/zones#available) in which the cluster resides. |
186 * | 231 * |
187 * [clusterId] - The name of the cluster to retrieve. | 232 * [clusterId] - The name of the cluster to retrieve. |
188 * | 233 * |
189 * Completes with a [Cluster]. | 234 * Completes with a [Cluster]. |
190 * | 235 * |
191 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 236 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
192 * error. | 237 * error. |
(...skipping 30 matching lines...) Expand all Loading... |
223 downloadOptions: _downloadOptions); | 268 downloadOptions: _downloadOptions); |
224 return _response.then((data) => new Cluster.fromJson(data)); | 269 return _response.then((data) => new Cluster.fromJson(data)); |
225 } | 270 } |
226 | 271 |
227 /** | 272 /** |
228 * Lists all clusters owned by a project in either the specified zone or all | 273 * Lists all clusters owned by a project in either the specified zone or all |
229 * zones. | 274 * zones. |
230 * | 275 * |
231 * Request parameters: | 276 * Request parameters: |
232 * | 277 * |
233 * [projectId] - The Google Developers Console [project | 278 * [projectId] - The Google Developers Console [project ID or project |
234 * ID](https://console.developers.google.com/project) or [project | 279 * number](https://developers.google.com/console/help/new/#projectnumber). |
235 * number](https://developers.google.com/console/help/project-number) | |
236 * | 280 * |
237 * [zone] - The name of the Google Compute Engine | 281 * [zone] - The name of the Google Compute Engine |
238 * [zone](/compute/docs/zones#available) in which the cluster resides, or "-" | 282 * [zone](/compute/docs/zones#available) in which the cluster resides, or "-" |
239 * for all zones. | 283 * for all zones. |
240 * | 284 * |
241 * Completes with a [ListClustersResponse]. | 285 * Completes with a [ListClustersResponse]. |
242 * | 286 * |
243 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 287 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
244 * error. | 288 * error. |
245 * | 289 * |
(...skipping 27 matching lines...) Expand all Loading... |
273 return _response.then((data) => new ListClustersResponse.fromJson(data)); | 317 return _response.then((data) => new ListClustersResponse.fromJson(data)); |
274 } | 318 } |
275 | 319 |
276 /** | 320 /** |
277 * Update settings of a specific cluster. | 321 * Update settings of a specific cluster. |
278 * | 322 * |
279 * [request] - The metadata request object. | 323 * [request] - The metadata request object. |
280 * | 324 * |
281 * Request parameters: | 325 * Request parameters: |
282 * | 326 * |
283 * [projectId] - The Google Developers Console [project | 327 * [projectId] - The Google Developers Console [project ID or project |
284 * ID](https://console.developers.google.com/project) or [project | 328 * number](https://developers.google.com/console/help/new/#projectnumber). |
285 * number](https://developers.google.com/console/help/project-number) | |
286 * | 329 * |
287 * [zone] - The name of the Google Compute Engine | 330 * [zone] - The name of the Google Compute Engine |
288 * [zone](/compute/docs/zones#available) in which the cluster resides. | 331 * [zone](/compute/docs/zones#available) in which the cluster resides. |
289 * | 332 * |
290 * [clusterId] - The name of the cluster to upgrade. | 333 * [clusterId] - The name of the cluster to upgrade. |
291 * | 334 * |
292 * Completes with a [Operation]. | 335 * Completes with a [Operation]. |
293 * | 336 * |
294 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 337 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
295 * error. | 338 * error. |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
337 final commons.ApiRequester _requester; | 380 final commons.ApiRequester _requester; |
338 | 381 |
339 ProjectsZonesOperationsResourceApi(commons.ApiRequester client) : | 382 ProjectsZonesOperationsResourceApi(commons.ApiRequester client) : |
340 _requester = client; | 383 _requester = client; |
341 | 384 |
342 /** | 385 /** |
343 * Gets the specified operation. | 386 * Gets the specified operation. |
344 * | 387 * |
345 * Request parameters: | 388 * Request parameters: |
346 * | 389 * |
347 * [projectId] - The Google Developers Console [project | 390 * [projectId] - The Google Developers Console [project ID or project |
348 * ID](https://console.developers.google.com/project) or [project | 391 * number](https://developers.google.com/console/help/new/#projectnumber). |
349 * number](https://developers.google.com/console/help/project-number) | |
350 * | 392 * |
351 * [zone] - The name of the Google Compute Engine | 393 * [zone] - The name of the Google Compute Engine |
352 * [zone](/compute/docs/zones#available) in which the cluster resides. | 394 * [zone](/compute/docs/zones#available) in which the cluster resides. |
353 * | 395 * |
354 * [operationId] - The server-assigned `name` of the operation. | 396 * [operationId] - The server-assigned `name` of the operation. |
355 * | 397 * |
356 * Completes with a [Operation]. | 398 * Completes with a [Operation]. |
357 * | 399 * |
358 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 400 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
359 * error. | 401 * error. |
(...skipping 29 matching lines...) Expand all Loading... |
389 uploadMedia: _uploadMedia, | 431 uploadMedia: _uploadMedia, |
390 downloadOptions: _downloadOptions); | 432 downloadOptions: _downloadOptions); |
391 return _response.then((data) => new Operation.fromJson(data)); | 433 return _response.then((data) => new Operation.fromJson(data)); |
392 } | 434 } |
393 | 435 |
394 /** | 436 /** |
395 * Lists all operations in a project in a specific zone or all zones. | 437 * Lists all operations in a project in a specific zone or all zones. |
396 * | 438 * |
397 * Request parameters: | 439 * Request parameters: |
398 * | 440 * |
399 * [projectId] - The Google Developers Console [project | 441 * [projectId] - The Google Developers Console [project ID or project |
400 * ID](https://console.developers.google.com/project) or [project | 442 * number](https://developers.google.com/console/help/new/#projectnumber). |
401 * number](https://developers.google.com/console/help/project-number) | |
402 * | 443 * |
403 * [zone] - The name of the Google Compute Engine | 444 * [zone] - The name of the Google Compute Engine |
404 * [zone](/compute/docs/zones#available) to return operations for, or "-" for | 445 * [zone](/compute/docs/zones#available) to return operations for, or "-" for |
405 * all zones. | 446 * all zones. |
406 * | 447 * |
407 * Completes with a [ListOperationsResponse]. | 448 * Completes with a [ListOperationsResponse]. |
408 * | 449 * |
409 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 450 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
410 * error. | 451 * error. |
411 * | 452 * |
(...skipping 30 matching lines...) Expand all Loading... |
442 } | 483 } |
443 | 484 |
444 | 485 |
445 | 486 |
446 /** A Google Container Engine cluster. */ | 487 /** A Google Container Engine cluster. */ |
447 class Cluster { | 488 class Cluster { |
448 /** | 489 /** |
449 * The IP address range of the container pods in this cluster, in | 490 * The IP address range of the container pods in this cluster, in |
450 * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) | 491 * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) |
451 * notation (e.g. `10.96.0.0/14`). Leave blank to have one automatically | 492 * notation (e.g. `10.96.0.0/14`). Leave blank to have one automatically |
452 * chosen or specify a `/14` block in `10.0.0.0/8` or `172.16.0.0/12`. | 493 * chosen or specify a `/14` block in `10.0.0.0/8`. |
453 */ | 494 */ |
454 core.String clusterIpv4Cidr; | 495 core.String clusterIpv4Cidr; |
455 /** | 496 /** |
456 * [Output only] The time the cluster was created, in | 497 * [Output only] The time the cluster was created, in |
457 * [RFC3339](href='https://www.ietf.org/rfc/rfc3339.txt) text format. | 498 * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. |
458 * @OutputOnly. | |
459 */ | 499 */ |
460 core.String createTime; | 500 core.String createTime; |
461 /** | 501 /** [Output only] The current software version of the master endpoint. */ |
462 * [Output only] The current software version of the master endpoint. | |
463 * @OutputOnly. | |
464 */ | |
465 core.String currentMasterVersion; | 502 core.String currentMasterVersion; |
466 /** | 503 /** |
467 * [Output only] The current version of the node software components. If they | 504 * [Output only] The current version of the node software components. If they |
468 * are currently at different versions because they're in the process of being | 505 * are currently at different versions because they're in the process of being |
469 * upgraded, this reflects the minimum version of any of them. @OutputOnly. | 506 * upgraded, this reflects the minimum version of any of them. |
470 */ | 507 */ |
471 core.String currentNodeVersion; | 508 core.String currentNodeVersion; |
472 /** An optional description of this cluster. */ | 509 /** An optional description of this cluster. */ |
473 core.String description; | 510 core.String description; |
474 /** | 511 /** |
475 * [Output only] The IP address of this cluster's Kubernetes master endpoint. | 512 * [Output only] The IP address of this cluster's Kubernetes master endpoint. |
476 * The endpoint can be accessed from the internet at | 513 * The endpoint can be accessed from the internet at |
477 * `https://username:password@endpoint/`. @OutputOnly. See the `masterAuth` | 514 * `https://username:password@endpoint/`. See the `masterAuth` property of |
478 * property of this resource for username and password information. | 515 * this resource for username and password information. |
479 */ | 516 */ |
480 core.String endpoint; | 517 core.String endpoint; |
481 /** | 518 /** |
482 * [Output only] The software version of Kubernetes master and kubelets used | 519 * [Output only] The software version of Kubernetes master and kubelets used |
483 * in the cluster when it was first created. The version can be upgraded over | 520 * in the cluster when it was first created. The version can be upgraded over |
484 * time. @OutputOnly. | 521 * time. |
485 */ | 522 */ |
486 core.String initialClusterVersion; | 523 core.String initialClusterVersion; |
487 /** | 524 /** |
488 * The number of nodes to create in this cluster. You must ensure that your | 525 * The number of nodes to create in this cluster. You must ensure that your |
489 * Compute Engine [resource quota](/compute/docs/resource-quotas) is | 526 * Compute Engine [resource quota](/compute/docs/resource-quotas) is |
490 * sufficient for this number of instances. You must also have available | 527 * sufficient for this number of instances. You must also have available |
491 * firewall and routes quota. | 528 * firewall and routes quota. |
492 */ | 529 */ |
493 core.int initialNodeCount; | 530 core.int initialNodeCount; |
494 /** | 531 /** |
495 * [Output only] The resource URLs of [instance | 532 * [Output only] The resource URLs of [instance |
496 * groups](/compute/docs/instance-groups/) associated with this cluster. | 533 * groups](/compute/docs/instance-groups/) associated with this cluster. |
497 * @OutputOnly. | |
498 */ | 534 */ |
499 core.List<core.String> instanceGroupUrls; | 535 core.List<core.String> instanceGroupUrls; |
500 /** | 536 /** |
501 * The logging service that the cluster should write logs to. Currently | 537 * The logging service that the cluster should write logs to. Currently |
502 * available options: * "logging.googleapis.com" - the Google Cloud Logging | 538 * available options: * "logging.googleapis.com" - the Google Cloud Logging |
503 * service * "none" - no logs will be exported from the cluster * "" - default | 539 * service * "none" - no logs will be exported from the cluster * "" - default |
504 * value; the default is "logging.googleapis.com" | 540 * value; the default is "logging.googleapis.com" |
505 */ | 541 */ |
506 core.String loggingService; | 542 core.String loggingService; |
507 /** The authentication information for accessing the master. */ | 543 /** The authentication information for accessing the master. */ |
(...skipping 13 matching lines...) Expand all Loading... |
521 */ | 557 */ |
522 core.String name; | 558 core.String name; |
523 /** | 559 /** |
524 * The name of the Google Compute Engine | 560 * The name of the Google Compute Engine |
525 * [network](/compute/docs/networking#networks_1) to which the cluster is | 561 * [network](/compute/docs/networking#networks_1) to which the cluster is |
526 * connected. If left unspecified, the "default" network will be used. | 562 * connected. If left unspecified, the "default" network will be used. |
527 */ | 563 */ |
528 core.String network; | 564 core.String network; |
529 /** | 565 /** |
530 * Parameters used in creating the cluster's nodes. See the descriptions of | 566 * Parameters used in creating the cluster's nodes. See the descriptions of |
531 * the child properties of `nodeConfig`. | 567 * the child properties of `nodeConfig`. If unspecified, the defaults for all |
| 568 * child properties are used. |
532 */ | 569 */ |
533 NodeConfig nodeConfig; | 570 NodeConfig nodeConfig; |
534 /** | 571 /** |
535 * [Output only] The size of the address space on each node for hosting | 572 * [Output only] The size of the address space on each node for hosting |
536 * containers. This is provisioned from within the container_ipv4_cidr range. | 573 * containers. This is provisioned from within the container_ipv4_cidr range. |
537 * @OutputOnly. | |
538 */ | 574 */ |
539 core.int nodeIpv4CidrSize; | 575 core.int nodeIpv4CidrSize; |
540 /** [Output only] Server-defined URL for the resource. @OutputOnly. */ | 576 /** [Output only] Server-defined URL for the resource. */ |
541 core.String selfLink; | 577 core.String selfLink; |
542 /** | 578 /** |
543 * [Output only] The IP address range of the Kubernetes services in this | 579 * [Output only] The IP address range of the Kubernetes services in this |
544 * cluster, in | 580 * cluster, in |
545 * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) | 581 * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) |
546 * notation (e.g. `1.2.3.4/29`). Service addresses are typically put in the | 582 * notation (e.g. `1.2.3.4/29`). Service addresses are typically put in the |
547 * last /16 from the container CIDR. @OutputOnly. | 583 * last /16 from the container CIDR. |
548 */ | 584 */ |
549 core.String servicesIpv4Cidr; | 585 core.String servicesIpv4Cidr; |
550 /** | 586 /** |
551 * [Output only] The current status of this cluster. @OutputOnly. | 587 * [Output only] The current status of this cluster. |
552 * Possible string values are: | 588 * Possible string values are: |
553 * - "STATUS_UNSPECIFIED" : A STATUS_UNSPECIFIED. | 589 * - "STATUS_UNSPECIFIED" : A STATUS_UNSPECIFIED. |
554 * - "PROVISIONING" : A PROVISIONING. | 590 * - "PROVISIONING" : A PROVISIONING. |
555 * - "RUNNING" : A RUNNING. | 591 * - "RUNNING" : A RUNNING. |
556 * - "RECONCILING" : A RECONCILING. | 592 * - "RECONCILING" : A RECONCILING. |
557 * - "STOPPING" : A STOPPING. | 593 * - "STOPPING" : A STOPPING. |
558 * - "ERROR" : A ERROR. | 594 * - "ERROR" : A ERROR. |
559 */ | 595 */ |
560 core.String status; | 596 core.String status; |
561 /** | 597 /** |
562 * [Output only] Additional information about the current status of this | 598 * [Output only] Additional information about the current status of this |
563 * cluster, if available. @OutputOnly. | 599 * cluster, if available. |
564 */ | 600 */ |
565 core.String statusMessage; | 601 core.String statusMessage; |
566 /** | 602 /** |
567 * [Output only] The name of the Google Compute Engine | 603 * [Output only] The name of the Google Compute Engine |
568 * [zone](/compute/docs/zones#available) in which the cluster resides. | 604 * [zone](/compute/docs/zones#available) in which the cluster resides. |
569 * @OutputOnly. | |
570 */ | 605 */ |
571 core.String zone; | 606 core.String zone; |
572 | 607 |
573 Cluster(); | 608 Cluster(); |
574 | 609 |
575 Cluster.fromJson(core.Map _json) { | 610 Cluster.fromJson(core.Map _json) { |
576 if (_json.containsKey("clusterIpv4Cidr")) { | 611 if (_json.containsKey("clusterIpv4Cidr")) { |
577 clusterIpv4Cidr = _json["clusterIpv4Cidr"]; | 612 clusterIpv4Cidr = _json["clusterIpv4Cidr"]; |
578 } | 613 } |
579 if (_json.containsKey("createTime")) { | 614 if (_json.containsKey("createTime")) { |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
728 if (desiredNodeVersion != null) { | 763 if (desiredNodeVersion != null) { |
729 _json["desiredNodeVersion"] = desiredNodeVersion; | 764 _json["desiredNodeVersion"] = desiredNodeVersion; |
730 } | 765 } |
731 return _json; | 766 return _json; |
732 } | 767 } |
733 } | 768 } |
734 | 769 |
735 /** CreateClusterRequest creates a cluster. */ | 770 /** CreateClusterRequest creates a cluster. */ |
736 class CreateClusterRequest { | 771 class CreateClusterRequest { |
737 /** | 772 /** |
738 * A [cluster resource](/container-engine/docs/v1/projects/zones/clusters) | 773 * A [cluster |
| 774 * resource](/container-engine/reference/rest/v1/projects.zones.clusters) |
739 */ | 775 */ |
740 Cluster cluster; | 776 Cluster cluster; |
741 | 777 |
742 CreateClusterRequest(); | 778 CreateClusterRequest(); |
743 | 779 |
744 CreateClusterRequest.fromJson(core.Map _json) { | 780 CreateClusterRequest.fromJson(core.Map _json) { |
745 if (_json.containsKey("cluster")) { | 781 if (_json.containsKey("cluster")) { |
746 cluster = new Cluster.fromJson(_json["cluster"]); | 782 cluster = new Cluster.fromJson(_json["cluster"]); |
747 } | 783 } |
748 } | 784 } |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
804 } | 840 } |
805 | 841 |
806 /** | 842 /** |
807 * The authentication information for accessing the master endpoint. | 843 * The authentication information for accessing the master endpoint. |
808 * Authentication can be done using HTTP basic auth or using client | 844 * Authentication can be done using HTTP basic auth or using client |
809 * certificates. | 845 * certificates. |
810 */ | 846 */ |
811 class MasterAuth { | 847 class MasterAuth { |
812 /** | 848 /** |
813 * [Output only] Base64 encoded public certificate used by clients to | 849 * [Output only] Base64 encoded public certificate used by clients to |
814 * authenticate to the cluster endpoint. @OutputOnly. | 850 * authenticate to the cluster endpoint. |
815 */ | 851 */ |
816 core.String clientCertificate; | 852 core.String clientCertificate; |
817 /** | 853 /** |
818 * [Output only] Base64 encoded private key used by clients to authenticate to | 854 * [Output only] Base64 encoded private key used by clients to authenticate to |
819 * the cluster endpoint. @OutputOnly. | 855 * the cluster endpoint. |
820 */ | 856 */ |
821 core.String clientKey; | 857 core.String clientKey; |
822 /** | 858 /** |
823 * [Output only] Base64 encoded public certificate that is the root of trust | 859 * [Output only] Base64 encoded public certificate that is the root of trust |
824 * for the cluster. @OutputOnly. | 860 * for the cluster. |
825 */ | 861 */ |
826 core.String clusterCaCertificate; | 862 core.String clusterCaCertificate; |
827 /** | 863 /** |
828 * The password to use for HTTP basic authentication when accessing the | 864 * The password to use for HTTP basic authentication when accessing the |
829 * Kubernetes master endpoint. Because the master endpoint is open to the | 865 * Kubernetes master endpoint. Because the master endpoint is open to the |
830 * internet, you should create a strong password. | 866 * internet, you should create a strong password. |
831 */ | 867 */ |
832 core.String password; | 868 core.String password; |
833 /** | 869 /** |
834 * The username to use for HTTP basic authentication when accessing the | 870 * The username to use for HTTP basic authentication when accessing the |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
874 _json["username"] = username; | 910 _json["username"] = username; |
875 } | 911 } |
876 return _json; | 912 return _json; |
877 } | 913 } |
878 } | 914 } |
879 | 915 |
880 /** Per-node parameters. */ | 916 /** Per-node parameters. */ |
881 class NodeConfig { | 917 class NodeConfig { |
882 /** | 918 /** |
883 * Size of the disk attached to each node, specified in GB. The smallest | 919 * Size of the disk attached to each node, specified in GB. The smallest |
884 * allowed disk size is 10GB, and the default is 100GB. | 920 * allowed disk size is 10GB. If unspecified, the default disk size is 100GB. |
885 */ | 921 */ |
886 core.int diskSizeGb; | 922 core.int diskSizeGb; |
887 /** | 923 /** |
888 * The name of a Google Compute Engine [machine | 924 * The name of a Google Compute Engine [machine |
889 * type](/compute/docs/machine-types) (e.g. `n1-standard-1`). If unspecified, | 925 * type](/compute/docs/machine-types) (e.g. `n1-standard-1`). If unspecified, |
890 * the default machine type is `n1-standard-1`. | 926 * the default machine type is `n1-standard-1`. |
891 */ | 927 */ |
892 core.String machineType; | 928 core.String machineType; |
893 /** | 929 /** |
894 * The set of Google API scopes to be made available on all of the node VMs | 930 * The set of Google API scopes to be made available on all of the node VMs |
895 * under the "default" service account. Currently, the following scopes are | 931 * under the "default" service account. The following scopes are recommended, |
896 * necessary to ensure the correct functioning of the cluster: * | 932 * but not required, and by default are not included: * |
897 * "https://www.googleapis.com/auth/compute" * | 933 * `https://www.googleapis.com/auth/compute` is required for mounting |
898 * "https://www.googleapis.com/auth/devstorage.read_only" | 934 * persistent storage on your nodes. * |
| 935 * `https://www.googleapis.com/auth/devstorage.read_only` is required for |
| 936 * communicating with *gcr.io*. If unspecified, no scopes are added. |
899 */ | 937 */ |
900 core.List<core.String> oauthScopes; | 938 core.List<core.String> oauthScopes; |
901 | 939 |
902 NodeConfig(); | 940 NodeConfig(); |
903 | 941 |
904 NodeConfig.fromJson(core.Map _json) { | 942 NodeConfig.fromJson(core.Map _json) { |
905 if (_json.containsKey("diskSizeGb")) { | 943 if (_json.containsKey("diskSizeGb")) { |
906 diskSizeGb = _json["diskSizeGb"]; | 944 diskSizeGb = _json["diskSizeGb"]; |
907 } | 945 } |
908 if (_json.containsKey("machineType")) { | 946 if (_json.containsKey("machineType")) { |
(...skipping 14 matching lines...) Expand all Loading... |
923 } | 961 } |
924 if (oauthScopes != null) { | 962 if (oauthScopes != null) { |
925 _json["oauthScopes"] = oauthScopes; | 963 _json["oauthScopes"] = oauthScopes; |
926 } | 964 } |
927 return _json; | 965 return _json; |
928 } | 966 } |
929 } | 967 } |
930 | 968 |
931 /** Defines the operation resource. All fields are output only. */ | 969 /** Defines the operation resource. All fields are output only. */ |
932 class Operation { | 970 class Operation { |
933 /** The server-assigned ID for the operation. @OutputOnly. */ | 971 /** The server-assigned ID for the operation. */ |
934 core.String name; | 972 core.String name; |
935 /** | 973 /** |
936 * The operation type. @OutputOnly. | 974 * The operation type. |
937 * Possible string values are: | 975 * Possible string values are: |
938 * - "TYPE_UNSPECIFIED" : A TYPE_UNSPECIFIED. | 976 * - "TYPE_UNSPECIFIED" : A TYPE_UNSPECIFIED. |
939 * - "CREATE_CLUSTER" : A CREATE_CLUSTER. | 977 * - "CREATE_CLUSTER" : A CREATE_CLUSTER. |
940 * - "DELETE_CLUSTER" : A DELETE_CLUSTER. | 978 * - "DELETE_CLUSTER" : A DELETE_CLUSTER. |
941 * - "UPGRADE_MASTER" : A UPGRADE_MASTER. | 979 * - "UPGRADE_MASTER" : A UPGRADE_MASTER. |
942 * - "UPGRADE_NODES" : A UPGRADE_NODES. | 980 * - "UPGRADE_NODES" : A UPGRADE_NODES. |
943 * - "REPAIR_CLUSTER" : A REPAIR_CLUSTER. | 981 * - "REPAIR_CLUSTER" : A REPAIR_CLUSTER. |
944 */ | 982 */ |
945 core.String operationType; | 983 core.String operationType; |
946 /** Server-defined URL for the resource. @OutputOnly. */ | 984 /** Server-defined URL for the resource. */ |
947 core.String selfLink; | 985 core.String selfLink; |
948 /** | 986 /** |
949 * The current status of the operation. @OutputOnly. | 987 * The current status of the operation. |
950 * Possible string values are: | 988 * Possible string values are: |
951 * - "STATUS_UNSPECIFIED" : A STATUS_UNSPECIFIED. | 989 * - "STATUS_UNSPECIFIED" : A STATUS_UNSPECIFIED. |
952 * - "PENDING" : A PENDING. | 990 * - "PENDING" : A PENDING. |
953 * - "RUNNING" : A RUNNING. | 991 * - "RUNNING" : A RUNNING. |
954 * - "DONE" : A DONE. | 992 * - "DONE" : A DONE. |
955 */ | 993 */ |
956 core.String status; | 994 core.String status; |
957 /** | 995 /** If an error has occurred, a textual description of the error. */ |
958 * If an error has occurred, a textual description of the error. @OutputOnly. | |
959 */ | |
960 core.String statusMessage; | 996 core.String statusMessage; |
961 /** Server-defined URL for the target of the operation. @OutputOnly. */ | 997 /** Server-defined URL for the target of the operation. */ |
962 core.String targetLink; | 998 core.String targetLink; |
963 /** | 999 /** |
964 * The name of the Google Compute Engine [zone](/compute/docs/zones#available) | 1000 * The name of the Google Compute Engine [zone](/compute/docs/zones#available) |
965 * in which the operation is taking place. @OutputOnly. | 1001 * in which the operation is taking place. |
966 */ | 1002 */ |
967 core.String zone; | 1003 core.String zone; |
968 | 1004 |
969 Operation(); | 1005 Operation(); |
970 | 1006 |
971 Operation.fromJson(core.Map _json) { | 1007 Operation.fromJson(core.Map _json) { |
972 if (_json.containsKey("name")) { | 1008 if (_json.containsKey("name")) { |
973 name = _json["name"]; | 1009 name = _json["name"]; |
974 } | 1010 } |
975 if (_json.containsKey("operationType")) { | 1011 if (_json.containsKey("operationType")) { |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1012 if (targetLink != null) { | 1048 if (targetLink != null) { |
1013 _json["targetLink"] = targetLink; | 1049 _json["targetLink"] = targetLink; |
1014 } | 1050 } |
1015 if (zone != null) { | 1051 if (zone != null) { |
1016 _json["zone"] = zone; | 1052 _json["zone"] = zone; |
1017 } | 1053 } |
1018 return _json; | 1054 return _json; |
1019 } | 1055 } |
1020 } | 1056 } |
1021 | 1057 |
| 1058 /** Container Engine Server configuration. */ |
| 1059 class ServerConfig { |
| 1060 /** What version this server deploys by default. */ |
| 1061 core.String defaultClusterVersion; |
| 1062 /** List of valid node upgrade target versions. */ |
| 1063 core.List<core.String> validNodeVersions; |
| 1064 |
| 1065 ServerConfig(); |
| 1066 |
| 1067 ServerConfig.fromJson(core.Map _json) { |
| 1068 if (_json.containsKey("defaultClusterVersion")) { |
| 1069 defaultClusterVersion = _json["defaultClusterVersion"]; |
| 1070 } |
| 1071 if (_json.containsKey("validNodeVersions")) { |
| 1072 validNodeVersions = _json["validNodeVersions"]; |
| 1073 } |
| 1074 } |
| 1075 |
| 1076 core.Map toJson() { |
| 1077 var _json = new core.Map(); |
| 1078 if (defaultClusterVersion != null) { |
| 1079 _json["defaultClusterVersion"] = defaultClusterVersion; |
| 1080 } |
| 1081 if (validNodeVersions != null) { |
| 1082 _json["validNodeVersions"] = validNodeVersions; |
| 1083 } |
| 1084 return _json; |
| 1085 } |
| 1086 } |
| 1087 |
1022 /** UpdateClusterRequest updates a cluster. */ | 1088 /** UpdateClusterRequest updates a cluster. */ |
1023 class UpdateClusterRequest { | 1089 class UpdateClusterRequest { |
1024 /** A description of the update. */ | 1090 /** A description of the update. */ |
1025 ClusterUpdate update; | 1091 ClusterUpdate update; |
1026 | 1092 |
1027 UpdateClusterRequest(); | 1093 UpdateClusterRequest(); |
1028 | 1094 |
1029 UpdateClusterRequest.fromJson(core.Map _json) { | 1095 UpdateClusterRequest.fromJson(core.Map _json) { |
1030 if (_json.containsKey("update")) { | 1096 if (_json.containsKey("update")) { |
1031 update = new ClusterUpdate.fromJson(_json["update"]); | 1097 update = new ClusterUpdate.fromJson(_json["update"]); |
1032 } | 1098 } |
1033 } | 1099 } |
1034 | 1100 |
1035 core.Map toJson() { | 1101 core.Map toJson() { |
1036 var _json = new core.Map(); | 1102 var _json = new core.Map(); |
1037 if (update != null) { | 1103 if (update != null) { |
1038 _json["update"] = (update).toJson(); | 1104 _json["update"] = (update).toJson(); |
1039 } | 1105 } |
1040 return _json; | 1106 return _json; |
1041 } | 1107 } |
1042 } | 1108 } |
OLD | NEW |