Index: generated/googleapis/lib/container/v1.dart |
diff --git a/generated/googleapis_beta/lib/container/v1beta1.dart b/generated/googleapis/lib/container/v1.dart |
similarity index 56% |
copy from generated/googleapis_beta/lib/container/v1beta1.dart |
copy to generated/googleapis/lib/container/v1.dart |
index ef129f07b95f140866c58c819a5934da17ec38d7..160bde6138f848155a8d4d125b26ded5aba9f396 100644 |
--- a/generated/googleapis_beta/lib/container/v1beta1.dart |
+++ b/generated/googleapis/lib/container/v1.dart |
@@ -1,6 +1,6 @@ |
// This is a generated file (see the discoveryapis_generator project). |
-library googleapis_beta.container.v1beta1; |
+library googleapis.container.v1; |
import 'dart:core' as core; |
import 'dart:async' as async; |
@@ -12,7 +12,7 @@ import 'package:http/http.dart' as http; |
export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show |
ApiRequestError, DetailedApiRequestError; |
-const core.String USER_AGENT = 'dart-api-client container/v1beta1'; |
+const core.String USER_AGENT = 'dart-api-client container/v1'; |
/** |
* The Google Container Engine API is used for building and managing container |
@@ -27,7 +27,7 @@ class ContainerApi { |
ProjectsResourceApi get projects => new ProjectsResourceApi(_requester); |
- ContainerApi(http.Client client, {core.String rootUrl: "https://www.googleapis.com/", core.String servicePath: "container/v1beta1/projects/"}) : |
+ ContainerApi(http.Client client, {core.String rootUrl: "https://container.googleapis.com/", core.String servicePath: ""}) : |
_requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT); |
} |
@@ -35,8 +35,6 @@ class ContainerApi { |
class ProjectsResourceApi { |
final commons.ApiRequester _requester; |
- ProjectsClustersResourceApi get clusters => new ProjectsClustersResourceApi(_requester); |
- ProjectsOperationsResourceApi get operations => new ProjectsOperationsResourceApi(_requester); |
ProjectsZonesResourceApi get zones => new ProjectsZonesResourceApi(_requester); |
ProjectsResourceApi(commons.ApiRequester client) : |
@@ -44,68 +42,45 @@ class ProjectsResourceApi { |
} |
-class ProjectsClustersResourceApi { |
+class ProjectsZonesResourceApi { |
final commons.ApiRequester _requester; |
- ProjectsClustersResourceApi(commons.ApiRequester client) : |
- _requester = client; |
- |
- /** |
- * Lists all clusters owned by a project across all zones. |
- * |
- * Request parameters: |
- * |
- * [projectId] - The Google Developers Console project ID or project number. |
- * |
- * Completes with a [ListAggregatedClustersResponse]. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
- async.Future<ListAggregatedClustersResponse> list(core.String projectId) { |
- var _url = null; |
- var _queryParams = new core.Map(); |
- var _uploadMedia = null; |
- var _uploadOptions = null; |
- var _downloadOptions = commons.DownloadOptions.Metadata; |
- var _body = null; |
- |
- if (projectId == null) { |
- throw new core.ArgumentError("Parameter projectId is required."); |
- } |
- |
- _url = commons.Escaper.ecapeVariable('$projectId') + '/clusters'; |
- |
- var _response = _requester.request(_url, |
- "GET", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
- return _response.then((data) => new ListAggregatedClustersResponse.fromJson(data)); |
- } |
+ ProjectsZonesClustersResourceApi get clusters => new ProjectsZonesClustersResourceApi(_requester); |
+ ProjectsZonesOperationsResourceApi get operations => new ProjectsZonesOperationsResourceApi(_requester); |
+ ProjectsZonesResourceApi(commons.ApiRequester client) : |
+ _requester = client; |
} |
-class ProjectsOperationsResourceApi { |
+class ProjectsZonesClustersResourceApi { |
final commons.ApiRequester _requester; |
- ProjectsOperationsResourceApi(commons.ApiRequester client) : |
+ ProjectsZonesClustersResourceApi(commons.ApiRequester client) : |
_requester = client; |
/** |
- * Lists all operations in a project, across all zones. |
+ * Creates a cluster, consisting of the specified number and type of Google |
+ * Compute Engine instances, plus a Kubernetes master endpoint. By default, |
+ * the cluster is created in the project's [default |
+ * network]('/compute/docs/networking#networks_1'). One firewall is added for |
+ * the cluster. After cluster creation, the cluster creates routes for each |
+ * node to allow the containers on that node to communicate with all other |
+ * instances in the cluster. Finally, an entry is added to the project's |
+ * global metadata indicating which CIDR range is being used by the cluster. |
+ * |
+ * [request] - The metadata request object. |
* |
* Request parameters: |
* |
- * [projectId] - The Google Developers Console project ID or project number. |
+ * [projectId] - The Google Developers Console [project |
+ * ID](https://console.developers.google.com/project) or [project |
+ * number](https://developers.google.com/console/help/project-number) |
* |
- * Completes with a [ListAggregatedOperationsResponse]. |
+ * [zone] - The name of the Google Compute Engine |
+ * [zone](/compute/docs/zones#available) in which the cluster resides. |
+ * |
+ * Completes with a [Operation]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
* error. |
@@ -113,7 +88,7 @@ class ProjectsOperationsResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<ListAggregatedOperationsResponse> list(core.String projectId) { |
+ async.Future<Operation> create(CreateClusterRequest request, core.String projectId, core.String zone) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -121,64 +96,43 @@ class ProjectsOperationsResourceApi { |
var _downloadOptions = commons.DownloadOptions.Metadata; |
var _body = null; |
+ if (request != null) { |
+ _body = convert.JSON.encode((request).toJson()); |
+ } |
if (projectId == null) { |
throw new core.ArgumentError("Parameter projectId is required."); |
} |
+ if (zone == null) { |
+ throw new core.ArgumentError("Parameter zone is required."); |
+ } |
- _url = commons.Escaper.ecapeVariable('$projectId') + '/operations'; |
+ _url = 'v1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/clusters'; |
var _response = _requester.request(_url, |
- "GET", |
+ "POST", |
body: _body, |
queryParams: _queryParams, |
uploadOptions: _uploadOptions, |
uploadMedia: _uploadMedia, |
downloadOptions: _downloadOptions); |
- return _response.then((data) => new ListAggregatedOperationsResponse.fromJson(data)); |
+ return _response.then((data) => new Operation.fromJson(data)); |
} |
-} |
- |
- |
-class ProjectsZonesResourceApi { |
- final commons.ApiRequester _requester; |
- |
- ProjectsZonesClustersResourceApi get clusters => new ProjectsZonesClustersResourceApi(_requester); |
- ProjectsZonesOperationsResourceApi get operations => new ProjectsZonesOperationsResourceApi(_requester); |
- |
- ProjectsZonesResourceApi(commons.ApiRequester client) : |
- _requester = client; |
-} |
- |
- |
-class ProjectsZonesClustersResourceApi { |
- final commons.ApiRequester _requester; |
- |
- ProjectsZonesClustersResourceApi(commons.ApiRequester client) : |
- _requester = client; |
- |
/** |
- * Creates a cluster, consisting of the specified number and type of Google |
- * Compute Engine instances, plus a Kubernetes master instance. |
- * |
- * The cluster is created in the project's default network. |
- * |
- * A firewall is added that allows traffic into port 443 on the master, which |
- * enables HTTPS. A firewall and a route is added for each node to allow the |
- * containers on that node to communicate with all other instances in the |
- * cluster. |
- * |
- * Finally, an entry is added to the project's global metadata indicating |
- * which CIDR range is being used by the cluster. |
- * |
- * [request] - The metadata request object. |
+ * Deletes the cluster, including the Kubernetes endpoint and all worker |
+ * nodes. Firewalls and routes that were configured during cluster creation |
+ * are also deleted. |
* |
* Request parameters: |
* |
- * [projectId] - The Google Developers Console project ID or project number. |
+ * [projectId] - The Google Developers Console [project |
+ * ID](https://console.developers.google.com/project) or [project |
+ * number](https://developers.google.com/console/help/project-number) |
* |
- * [zoneId] - The name of the Google Compute Engine zone in which the cluster |
- * resides. |
+ * [zone] - The name of the Google Compute Engine |
+ * [zone](/compute/docs/zones#available) in which the cluster resides. |
+ * |
+ * [clusterId] - The name of the cluster to delete. |
* |
* Completes with a [Operation]. |
* |
@@ -188,7 +142,7 @@ class ProjectsZonesClustersResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<Operation> create(CreateClusterRequest request, core.String projectId, core.String zoneId) { |
+ async.Future<Operation> delete(core.String projectId, core.String zone, core.String clusterId) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -196,20 +150,20 @@ class ProjectsZonesClustersResourceApi { |
var _downloadOptions = commons.DownloadOptions.Metadata; |
var _body = null; |
- if (request != null) { |
- _body = convert.JSON.encode((request).toJson()); |
- } |
if (projectId == null) { |
throw new core.ArgumentError("Parameter projectId is required."); |
} |
- if (zoneId == null) { |
- throw new core.ArgumentError("Parameter zoneId is required."); |
+ if (zone == null) { |
+ throw new core.ArgumentError("Parameter zone is required."); |
+ } |
+ if (clusterId == null) { |
+ throw new core.ArgumentError("Parameter clusterId is required."); |
} |
- _url = commons.Escaper.ecapeVariable('$projectId') + '/zones/' + commons.Escaper.ecapeVariable('$zoneId') + '/clusters'; |
+ _url = 'v1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/clusters/' + commons.Escaper.ecapeVariable('$clusterId'); |
var _response = _requester.request(_url, |
- "POST", |
+ "DELETE", |
body: _body, |
queryParams: _queryParams, |
uploadOptions: _uploadOptions, |
@@ -219,21 +173,20 @@ class ProjectsZonesClustersResourceApi { |
} |
/** |
- * Deletes the cluster, including the Kubernetes master and all worker nodes. |
- * |
- * Firewalls and routes that were configured at cluster creation are also |
- * deleted. |
+ * Gets a specific cluster. |
* |
* Request parameters: |
* |
- * [projectId] - The Google Developers Console project ID or project number. |
+ * [projectId] - The Google Developers Console A [project |
+ * ID](https://console.developers.google.com/project) or [project |
+ * number](https://developers.google.com/console/help/project-number) |
* |
- * [zoneId] - The name of the Google Compute Engine zone in which the cluster |
- * resides. |
+ * [zone] - The name of the Google Compute Engine |
+ * [zone](/compute/docs/zones#available) in which the cluster resides. |
* |
- * [clusterId] - The name of the cluster to delete. |
+ * [clusterId] - The name of the cluster to retrieve. |
* |
- * Completes with a [Operation]. |
+ * Completes with a [Cluster]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
* error. |
@@ -241,7 +194,7 @@ class ProjectsZonesClustersResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<Operation> delete(core.String projectId, core.String zoneId, core.String clusterId) { |
+ async.Future<Cluster> get(core.String projectId, core.String zone, core.String clusterId) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -252,38 +205,40 @@ class ProjectsZonesClustersResourceApi { |
if (projectId == null) { |
throw new core.ArgumentError("Parameter projectId is required."); |
} |
- if (zoneId == null) { |
- throw new core.ArgumentError("Parameter zoneId is required."); |
+ if (zone == null) { |
+ throw new core.ArgumentError("Parameter zone is required."); |
} |
if (clusterId == null) { |
throw new core.ArgumentError("Parameter clusterId is required."); |
} |
- _url = commons.Escaper.ecapeVariable('$projectId') + '/zones/' + commons.Escaper.ecapeVariable('$zoneId') + '/clusters/' + commons.Escaper.ecapeVariable('$clusterId'); |
+ _url = 'v1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/clusters/' + commons.Escaper.ecapeVariable('$clusterId'); |
var _response = _requester.request(_url, |
- "DELETE", |
+ "GET", |
body: _body, |
queryParams: _queryParams, |
uploadOptions: _uploadOptions, |
uploadMedia: _uploadMedia, |
downloadOptions: _downloadOptions); |
- return _response.then((data) => new Operation.fromJson(data)); |
+ return _response.then((data) => new Cluster.fromJson(data)); |
} |
/** |
- * Gets a specific cluster. |
+ * Lists all clusters owned by a project in either the specified zone or all |
+ * zones. |
* |
* Request parameters: |
* |
- * [projectId] - The Google Developers Console project ID or project number. |
+ * [projectId] - The Google Developers Console [project |
+ * ID](https://console.developers.google.com/project) or [project |
+ * number](https://developers.google.com/console/help/project-number) |
* |
- * [zoneId] - The name of the Google Compute Engine zone in which the cluster |
- * resides. |
+ * [zone] - The name of the Google Compute Engine |
+ * [zone](/compute/docs/zones#available) in which the cluster resides, or "-" |
+ * for all zones. |
* |
- * [clusterId] - The name of the cluster to retrieve. |
- * |
- * Completes with a [Cluster]. |
+ * Completes with a [ListClustersResponse]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
* error. |
@@ -291,7 +246,7 @@ class ProjectsZonesClustersResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<Cluster> get(core.String projectId, core.String zoneId, core.String clusterId) { |
+ async.Future<ListClustersResponse> list(core.String projectId, core.String zone) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -302,14 +257,11 @@ class ProjectsZonesClustersResourceApi { |
if (projectId == null) { |
throw new core.ArgumentError("Parameter projectId is required."); |
} |
- if (zoneId == null) { |
- throw new core.ArgumentError("Parameter zoneId is required."); |
- } |
- if (clusterId == null) { |
- throw new core.ArgumentError("Parameter clusterId is required."); |
+ if (zone == null) { |
+ throw new core.ArgumentError("Parameter zone is required."); |
} |
- _url = commons.Escaper.ecapeVariable('$projectId') + '/zones/' + commons.Escaper.ecapeVariable('$zoneId') + '/clusters/' + commons.Escaper.ecapeVariable('$clusterId'); |
+ _url = 'v1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/clusters'; |
var _response = _requester.request(_url, |
"GET", |
@@ -318,20 +270,26 @@ class ProjectsZonesClustersResourceApi { |
uploadOptions: _uploadOptions, |
uploadMedia: _uploadMedia, |
downloadOptions: _downloadOptions); |
- return _response.then((data) => new Cluster.fromJson(data)); |
+ return _response.then((data) => new ListClustersResponse.fromJson(data)); |
} |
/** |
- * Lists all clusters owned by a project in the specified zone. |
+ * Update settings of a specific cluster. |
+ * |
+ * [request] - The metadata request object. |
* |
* Request parameters: |
* |
- * [projectId] - The Google Developers Console project ID or project number. |
+ * [projectId] - The Google Developers Console [project |
+ * ID](https://console.developers.google.com/project) or [project |
+ * number](https://developers.google.com/console/help/project-number) |
* |
- * [zoneId] - The name of the Google Compute Engine zone in which the cluster |
- * resides. |
+ * [zone] - The name of the Google Compute Engine |
+ * [zone](/compute/docs/zones#available) in which the cluster resides. |
* |
- * Completes with a [ListClustersResponse]. |
+ * [clusterId] - The name of the cluster to upgrade. |
+ * |
+ * Completes with a [Operation]. |
* |
* Completes with a [commons.ApiRequestError] if the API endpoint returned an |
* error. |
@@ -339,7 +297,7 @@ class ProjectsZonesClustersResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<ListClustersResponse> list(core.String projectId, core.String zoneId) { |
+ async.Future<Operation> update(UpdateClusterRequest request, core.String projectId, core.String zone, core.String clusterId) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -347,23 +305,29 @@ class ProjectsZonesClustersResourceApi { |
var _downloadOptions = commons.DownloadOptions.Metadata; |
var _body = null; |
+ if (request != null) { |
+ _body = convert.JSON.encode((request).toJson()); |
+ } |
if (projectId == null) { |
throw new core.ArgumentError("Parameter projectId is required."); |
} |
- if (zoneId == null) { |
- throw new core.ArgumentError("Parameter zoneId is required."); |
+ if (zone == null) { |
+ throw new core.ArgumentError("Parameter zone is required."); |
+ } |
+ if (clusterId == null) { |
+ throw new core.ArgumentError("Parameter clusterId is required."); |
} |
- _url = commons.Escaper.ecapeVariable('$projectId') + '/zones/' + commons.Escaper.ecapeVariable('$zoneId') + '/clusters'; |
+ _url = 'v1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/clusters/' + commons.Escaper.ecapeVariable('$clusterId'); |
var _response = _requester.request(_url, |
- "GET", |
+ "PUT", |
body: _body, |
queryParams: _queryParams, |
uploadOptions: _uploadOptions, |
uploadMedia: _uploadMedia, |
downloadOptions: _downloadOptions); |
- return _response.then((data) => new ListClustersResponse.fromJson(data)); |
+ return _response.then((data) => new Operation.fromJson(data)); |
} |
} |
@@ -380,13 +344,14 @@ class ProjectsZonesOperationsResourceApi { |
* |
* Request parameters: |
* |
- * [projectId] - The Google Developers Console project ID or project number. |
+ * [projectId] - The Google Developers Console [project |
+ * ID](https://console.developers.google.com/project) or [project |
+ * number](https://developers.google.com/console/help/project-number) |
* |
- * [zoneId] - The name of the Google Compute Engine zone in which the |
- * operation resides. This is always the same zone as the cluster with which |
- * the operation is associated. |
+ * [zone] - The name of the Google Compute Engine |
+ * [zone](/compute/docs/zones#available) in which the cluster resides. |
* |
- * [operationId] - The server-assigned name of the operation. |
+ * [operationId] - The server-assigned `name` of the operation. |
* |
* Completes with a [Operation]. |
* |
@@ -396,7 +361,7 @@ class ProjectsZonesOperationsResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<Operation> get(core.String projectId, core.String zoneId, core.String operationId) { |
+ async.Future<Operation> get(core.String projectId, core.String zone, core.String operationId) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -407,14 +372,14 @@ class ProjectsZonesOperationsResourceApi { |
if (projectId == null) { |
throw new core.ArgumentError("Parameter projectId is required."); |
} |
- if (zoneId == null) { |
- throw new core.ArgumentError("Parameter zoneId is required."); |
+ if (zone == null) { |
+ throw new core.ArgumentError("Parameter zone is required."); |
} |
if (operationId == null) { |
throw new core.ArgumentError("Parameter operationId is required."); |
} |
- _url = commons.Escaper.ecapeVariable('$projectId') + '/zones/' + commons.Escaper.ecapeVariable('$zoneId') + '/operations/' + commons.Escaper.ecapeVariable('$operationId'); |
+ _url = 'v1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/operations/' + commons.Escaper.ecapeVariable('$operationId'); |
var _response = _requester.request(_url, |
"GET", |
@@ -427,14 +392,17 @@ class ProjectsZonesOperationsResourceApi { |
} |
/** |
- * Lists all operations in a project in a specific zone. |
+ * Lists all operations in a project in a specific zone or all zones. |
* |
* Request parameters: |
* |
- * [projectId] - The Google Developers Console project ID or project number. |
+ * [projectId] - The Google Developers Console [project |
+ * ID](https://console.developers.google.com/project) or [project |
+ * number](https://developers.google.com/console/help/project-number) |
* |
- * [zoneId] - The name of the Google Compute Engine zone to return operations |
- * for. |
+ * [zone] - The name of the Google Compute Engine |
+ * [zone](/compute/docs/zones#available) to return operations for, or "-" for |
+ * all zones. |
* |
* Completes with a [ListOperationsResponse]. |
* |
@@ -444,7 +412,7 @@ class ProjectsZonesOperationsResourceApi { |
* If the used [http.Client] completes with an error when making a REST call, |
* this method will complete with the same error. |
*/ |
- async.Future<ListOperationsResponse> list(core.String projectId, core.String zoneId) { |
+ async.Future<ListOperationsResponse> list(core.String projectId, core.String zone) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -455,11 +423,11 @@ class ProjectsZonesOperationsResourceApi { |
if (projectId == null) { |
throw new core.ArgumentError("Parameter projectId is required."); |
} |
- if (zoneId == null) { |
- throw new core.ArgumentError("Parameter zoneId is required."); |
+ if (zone == null) { |
+ throw new core.ArgumentError("Parameter zone is required."); |
} |
- _url = commons.Escaper.ecapeVariable('$projectId') + '/zones/' + commons.Escaper.ecapeVariable('$zoneId') + '/operations'; |
+ _url = 'v1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/operations'; |
var _response = _requester.request(_url, |
"GET", |
@@ -475,143 +443,172 @@ class ProjectsZonesOperationsResourceApi { |
+/** A Google Container Engine cluster. */ |
class Cluster { |
/** |
- * The API version of the Kubernetes master and kubelets running in this |
- * cluster. Leave blank to pick up the latest stable release, or specify a |
- * version of the form "x.y.z". The Google Container Engine release notes |
- * lists the currently supported versions. If an incorrect version is |
- * specified, the server returns an error listing the currently supported |
- * versions. |
+ * The IP address range of the container pods in this cluster, in |
+ * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) |
+ * notation (e.g. `10.96.0.0/14`). Leave blank to have one automatically |
+ * chosen or specify a `/14` block in `10.0.0.0/8` or `172.16.0.0/12`. |
*/ |
- core.String clusterApiVersion; |
+ core.String clusterIpv4Cidr; |
/** |
- * The IP address range of the container pods in this cluster, in CIDR |
- * notation (e.g. 10.96.0.0/14). Leave blank to have one automatically chosen |
- * or specify a /14 block in 10.0.0.0/8 or 172.16.0.0/12. |
+ * [Output only] The time the cluster was created, in |
+ * [RFC3339](href='https://www.ietf.org/rfc/rfc3339.txt) text format. |
+ * @OutputOnly. |
*/ |
- core.String containerIpv4Cidr; |
+ core.String createTime; |
/** |
- * [Output only] The time the cluster was created, in RFC3339 text format. |
+ * [Output only] The current software version of the master endpoint. |
+ * @OutputOnly. |
*/ |
- core.String creationTimestamp; |
+ core.String currentMasterVersion; |
+ /** |
+ * [Output only] The current version of the node software components. If they |
+ * are currently at different versions because they're in the process of being |
+ * upgraded, this reflects the minimum version of any of them. @OutputOnly. |
+ */ |
+ core.String currentNodeVersion; |
/** An optional description of this cluster. */ |
core.String description; |
/** |
- * Whether logs from the cluster should be made available via the Google Cloud |
- * Logging service. This includes both logs from your applications running in |
- * the cluster as well as logs from the Kubernetes components themselves. |
+ * [Output only] The IP address of this cluster's Kubernetes master endpoint. |
+ * The endpoint can be accessed from the internet at |
+ * `https://username:password@endpoint/`. @OutputOnly. See the `masterAuth` |
+ * property of this resource for username and password information. |
*/ |
- core.bool enableCloudLogging; |
+ core.String endpoint; |
/** |
- * Whether metrics from the cluster should be made available via the Google |
- * Cloud Monitoring service. |
+ * [Output only] The software version of Kubernetes master and kubelets used |
+ * in the cluster when it was first created. The version can be upgraded over |
+ * time. @OutputOnly. |
*/ |
- core.bool enableCloudMonitoring; |
+ core.String initialClusterVersion; |
/** |
- * [Output only] The IP address of this cluster's Kubernetes master. The |
- * endpoint can be accessed from the internet at |
- * https://username:password@endpoint/. |
- * |
- * See the masterAuth property of this resource for username and password |
- * information. |
+ * The number of nodes to create in this cluster. You must ensure that your |
+ * Compute Engine [resource quota](/compute/docs/resource-quotas) is |
+ * sufficient for this number of instances. You must also have available |
+ * firewall and routes quota. |
*/ |
- core.String endpoint; |
+ core.int initialNodeCount; |
/** |
* [Output only] The resource URLs of [instance |
* groups](/compute/docs/instance-groups/) associated with this cluster. |
+ * @OutputOnly. |
*/ |
core.List<core.String> instanceGroupUrls; |
+ /** |
+ * The logging service that the cluster should write logs to. Currently |
+ * available options: * "logging.googleapis.com" - the Google Cloud Logging |
+ * service * "none" - no logs will be exported from the cluster * "" - default |
+ * value; the default is "logging.googleapis.com" |
+ */ |
+ core.String loggingService; |
/** The authentication information for accessing the master. */ |
MasterAuth masterAuth; |
/** |
+ * The monitoring service that the cluster should write metrics to. Currently |
+ * available options: * "monitoring.googleapis.com" - the Google Cloud |
+ * Monitoring service * "none" - no metrics will be exported from the cluster |
+ * * "" - default value; the default is "monitoring.googleapis.com" |
+ */ |
+ core.String monitoringService; |
+ /** |
* The name of this cluster. The name must be unique within this project and |
- * zone, and can be up to 40 characters with the following restrictions: |
- * - Lowercase letters, numbers, and hyphens only. |
- * - Must start with a letter. |
- * - Must end with a number or a letter. |
+ * zone, and can be up to 40 characters with the following restrictions: * |
+ * Lowercase letters, numbers, and hyphens only. * Must start with a letter. * |
+ * Must end with a number or a letter. |
*/ |
core.String name; |
/** |
- * The name of the Google Compute Engine network to which the cluster is |
- * connected. |
+ * The name of the Google Compute Engine |
+ * [network](/compute/docs/networking#networks_1) to which the cluster is |
+ * connected. If left unspecified, the "default" network will be used. |
*/ |
core.String network; |
/** |
- * The machine type and image to use for all nodes in this cluster. See the |
- * descriptions of the child properties of nodeConfig. |
+ * Parameters used in creating the cluster's nodes. See the descriptions of |
+ * the child properties of `nodeConfig`. |
*/ |
NodeConfig nodeConfig; |
/** |
* [Output only] The size of the address space on each node for hosting |
- * containers. |
- */ |
- core.int nodeRoutingPrefixSize; |
- /** |
- * The number of nodes to create in this cluster. You must ensure that your |
- * Compute Engine resource quota is sufficient for this number of instances |
- * plus one (to include the master). You must also have available firewall and |
- * routes quota. |
+ * containers. This is provisioned from within the container_ipv4_cidr range. |
+ * @OutputOnly. |
*/ |
- core.int numNodes; |
- /** [Output only] Server-defined URL for the resource. */ |
+ core.int nodeIpv4CidrSize; |
+ /** [Output only] Server-defined URL for the resource. @OutputOnly. */ |
core.String selfLink; |
/** |
* [Output only] The IP address range of the Kubernetes services in this |
- * cluster, in CIDR notation (e.g. 1.2.3.4/29). Service addresses are |
- * typically put in the last /16 from the container CIDR. |
+ * cluster, in |
+ * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) |
+ * notation (e.g. `1.2.3.4/29`). Service addresses are typically put in the |
+ * last /16 from the container CIDR. @OutputOnly. |
*/ |
core.String servicesIpv4Cidr; |
/** |
- * [Output only] The current status of this cluster. |
+ * [Output only] The current status of this cluster. @OutputOnly. |
* Possible string values are: |
- * - "error" |
- * - "provisioning" |
- * - "running" |
- * - "stopping" |
+ * - "STATUS_UNSPECIFIED" : A STATUS_UNSPECIFIED. |
+ * - "PROVISIONING" : A PROVISIONING. |
+ * - "RUNNING" : A RUNNING. |
+ * - "RECONCILING" : A RECONCILING. |
+ * - "STOPPING" : A STOPPING. |
+ * - "ERROR" : A ERROR. |
*/ |
core.String status; |
/** |
* [Output only] Additional information about the current status of this |
- * cluster, if available. |
+ * cluster, if available. @OutputOnly. |
*/ |
core.String statusMessage; |
/** |
- * [Output only] The name of the Google Compute Engine zone in which the |
- * cluster resides. |
+ * [Output only] The name of the Google Compute Engine |
+ * [zone](/compute/docs/zones#available) in which the cluster resides. |
+ * @OutputOnly. |
*/ |
core.String zone; |
Cluster(); |
Cluster.fromJson(core.Map _json) { |
- if (_json.containsKey("clusterApiVersion")) { |
- clusterApiVersion = _json["clusterApiVersion"]; |
+ if (_json.containsKey("clusterIpv4Cidr")) { |
+ clusterIpv4Cidr = _json["clusterIpv4Cidr"]; |
} |
- if (_json.containsKey("containerIpv4Cidr")) { |
- containerIpv4Cidr = _json["containerIpv4Cidr"]; |
+ if (_json.containsKey("createTime")) { |
+ createTime = _json["createTime"]; |
} |
- if (_json.containsKey("creationTimestamp")) { |
- creationTimestamp = _json["creationTimestamp"]; |
+ if (_json.containsKey("currentMasterVersion")) { |
+ currentMasterVersion = _json["currentMasterVersion"]; |
+ } |
+ if (_json.containsKey("currentNodeVersion")) { |
+ currentNodeVersion = _json["currentNodeVersion"]; |
} |
if (_json.containsKey("description")) { |
description = _json["description"]; |
} |
- if (_json.containsKey("enableCloudLogging")) { |
- enableCloudLogging = _json["enableCloudLogging"]; |
- } |
- if (_json.containsKey("enableCloudMonitoring")) { |
- enableCloudMonitoring = _json["enableCloudMonitoring"]; |
- } |
if (_json.containsKey("endpoint")) { |
endpoint = _json["endpoint"]; |
} |
+ if (_json.containsKey("initialClusterVersion")) { |
+ initialClusterVersion = _json["initialClusterVersion"]; |
+ } |
+ if (_json.containsKey("initialNodeCount")) { |
+ initialNodeCount = _json["initialNodeCount"]; |
+ } |
if (_json.containsKey("instanceGroupUrls")) { |
instanceGroupUrls = _json["instanceGroupUrls"]; |
} |
+ if (_json.containsKey("loggingService")) { |
+ loggingService = _json["loggingService"]; |
+ } |
if (_json.containsKey("masterAuth")) { |
masterAuth = new MasterAuth.fromJson(_json["masterAuth"]); |
} |
+ if (_json.containsKey("monitoringService")) { |
+ monitoringService = _json["monitoringService"]; |
+ } |
if (_json.containsKey("name")) { |
name = _json["name"]; |
} |
@@ -621,11 +618,8 @@ class Cluster { |
if (_json.containsKey("nodeConfig")) { |
nodeConfig = new NodeConfig.fromJson(_json["nodeConfig"]); |
} |
- if (_json.containsKey("nodeRoutingPrefixSize")) { |
- nodeRoutingPrefixSize = _json["nodeRoutingPrefixSize"]; |
- } |
- if (_json.containsKey("numNodes")) { |
- numNodes = _json["numNodes"]; |
+ if (_json.containsKey("nodeIpv4CidrSize")) { |
+ nodeIpv4CidrSize = _json["nodeIpv4CidrSize"]; |
} |
if (_json.containsKey("selfLink")) { |
selfLink = _json["selfLink"]; |
@@ -646,33 +640,42 @@ class Cluster { |
core.Map toJson() { |
var _json = new core.Map(); |
- if (clusterApiVersion != null) { |
- _json["clusterApiVersion"] = clusterApiVersion; |
+ if (clusterIpv4Cidr != null) { |
+ _json["clusterIpv4Cidr"] = clusterIpv4Cidr; |
+ } |
+ if (createTime != null) { |
+ _json["createTime"] = createTime; |
} |
- if (containerIpv4Cidr != null) { |
- _json["containerIpv4Cidr"] = containerIpv4Cidr; |
+ if (currentMasterVersion != null) { |
+ _json["currentMasterVersion"] = currentMasterVersion; |
} |
- if (creationTimestamp != null) { |
- _json["creationTimestamp"] = creationTimestamp; |
+ if (currentNodeVersion != null) { |
+ _json["currentNodeVersion"] = currentNodeVersion; |
} |
if (description != null) { |
_json["description"] = description; |
} |
- if (enableCloudLogging != null) { |
- _json["enableCloudLogging"] = enableCloudLogging; |
- } |
- if (enableCloudMonitoring != null) { |
- _json["enableCloudMonitoring"] = enableCloudMonitoring; |
- } |
if (endpoint != null) { |
_json["endpoint"] = endpoint; |
} |
+ if (initialClusterVersion != null) { |
+ _json["initialClusterVersion"] = initialClusterVersion; |
+ } |
+ if (initialNodeCount != null) { |
+ _json["initialNodeCount"] = initialNodeCount; |
+ } |
if (instanceGroupUrls != null) { |
_json["instanceGroupUrls"] = instanceGroupUrls; |
} |
+ if (loggingService != null) { |
+ _json["loggingService"] = loggingService; |
+ } |
if (masterAuth != null) { |
_json["masterAuth"] = (masterAuth).toJson(); |
} |
+ if (monitoringService != null) { |
+ _json["monitoringService"] = monitoringService; |
+ } |
if (name != null) { |
_json["name"] = name; |
} |
@@ -682,11 +685,8 @@ class Cluster { |
if (nodeConfig != null) { |
_json["nodeConfig"] = (nodeConfig).toJson(); |
} |
- if (nodeRoutingPrefixSize != null) { |
- _json["nodeRoutingPrefixSize"] = nodeRoutingPrefixSize; |
- } |
- if (numNodes != null) { |
- _json["numNodes"] = numNodes; |
+ if (nodeIpv4CidrSize != null) { |
+ _json["nodeIpv4CidrSize"] = nodeIpv4CidrSize; |
} |
if (selfLink != null) { |
_json["selfLink"] = selfLink; |
@@ -707,71 +707,61 @@ class Cluster { |
} |
} |
-class CreateClusterRequest { |
- /** A cluster resource. */ |
- Cluster cluster; |
- |
- CreateClusterRequest(); |
- |
- CreateClusterRequest.fromJson(core.Map _json) { |
- if (_json.containsKey("cluster")) { |
- cluster = new Cluster.fromJson(_json["cluster"]); |
- } |
- } |
- |
- core.Map toJson() { |
- var _json = new core.Map(); |
- if (cluster != null) { |
- _json["cluster"] = (cluster).toJson(); |
- } |
- return _json; |
- } |
-} |
- |
-class ListAggregatedClustersResponse { |
- /** A list of clusters in the project, across all zones. */ |
- core.List<Cluster> clusters; |
+/** ClusterUpdate describes an update to the cluster. */ |
+class ClusterUpdate { |
+ /** |
+ * The Kubernetes version to change the nodes to (typically an upgrade). Use |
+ * "-" to upgrade to the latest version supported by the server. |
+ */ |
+ core.String desiredNodeVersion; |
- ListAggregatedClustersResponse(); |
+ ClusterUpdate(); |
- ListAggregatedClustersResponse.fromJson(core.Map _json) { |
- if (_json.containsKey("clusters")) { |
- clusters = _json["clusters"].map((value) => new Cluster.fromJson(value)).toList(); |
+ ClusterUpdate.fromJson(core.Map _json) { |
+ if (_json.containsKey("desiredNodeVersion")) { |
+ desiredNodeVersion = _json["desiredNodeVersion"]; |
} |
} |
core.Map toJson() { |
var _json = new core.Map(); |
- if (clusters != null) { |
- _json["clusters"] = clusters.map((value) => (value).toJson()).toList(); |
+ if (desiredNodeVersion != null) { |
+ _json["desiredNodeVersion"] = desiredNodeVersion; |
} |
return _json; |
} |
} |
-class ListAggregatedOperationsResponse { |
- /** A list of operations in the project, across all zones. */ |
- core.List<Operation> operations; |
+/** CreateClusterRequest creates a cluster. */ |
+class CreateClusterRequest { |
+ /** |
+ * A [cluster resource](/container-engine/docs/v1/projects/zones/clusters) |
+ */ |
+ Cluster cluster; |
- ListAggregatedOperationsResponse(); |
+ CreateClusterRequest(); |
- ListAggregatedOperationsResponse.fromJson(core.Map _json) { |
- if (_json.containsKey("operations")) { |
- operations = _json["operations"].map((value) => new Operation.fromJson(value)).toList(); |
+ CreateClusterRequest.fromJson(core.Map _json) { |
+ if (_json.containsKey("cluster")) { |
+ cluster = new Cluster.fromJson(_json["cluster"]); |
} |
} |
core.Map toJson() { |
var _json = new core.Map(); |
- if (operations != null) { |
- _json["operations"] = operations.map((value) => (value).toJson()).toList(); |
+ if (cluster != null) { |
+ _json["cluster"] = (cluster).toJson(); |
} |
return _json; |
} |
} |
+/** ListClustersResponse is the result of ListClustersRequest. */ |
class ListClustersResponse { |
- /** A list of clusters in the project in the specified zone. */ |
+ /** |
+ * A list of clusters in the project in the specified zone, or across all |
+ * ones. |
+ */ |
core.List<Cluster> clusters; |
ListClustersResponse(); |
@@ -791,6 +781,7 @@ class ListClustersResponse { |
} |
} |
+/** ListOperationsResponse is the result of ListOperationsRequest. */ |
class ListOperationsResponse { |
/** A list of operations in the project in the specified zone. */ |
core.List<Operation> operations; |
@@ -813,29 +804,24 @@ class ListOperationsResponse { |
} |
/** |
- * The authentication information for accessing the master. Authentication is |
- * either done using HTTP basic authentication or using a bearer token. |
+ * The authentication information for accessing the master endpoint. |
+ * Authentication can be done using HTTP basic auth or using client |
+ * certificates. |
*/ |
class MasterAuth { |
/** |
- * The token used to authenticate API requests to the master. The token is to |
- * be included in an HTTP Authorization Header in all requests to the master |
- * endpoint. The format of the header is: "Authorization: Bearer ". |
- */ |
- core.String bearerToken; |
- /** |
* [Output only] Base64 encoded public certificate used by clients to |
- * authenticate to the cluster endpoint. |
+ * authenticate to the cluster endpoint. @OutputOnly. |
*/ |
core.String clientCertificate; |
/** |
* [Output only] Base64 encoded private key used by clients to authenticate to |
- * the cluster endpoint. |
+ * the cluster endpoint. @OutputOnly. |
*/ |
core.String clientKey; |
/** |
* [Output only] Base64 encoded public certificate that is the root of trust |
- * for the cluster. |
+ * for the cluster. @OutputOnly. |
*/ |
core.String clusterCaCertificate; |
/** |
@@ -848,14 +834,11 @@ class MasterAuth { |
* The username to use for HTTP basic authentication when accessing the |
* Kubernetes master endpoint. |
*/ |
- core.String user; |
+ core.String username; |
MasterAuth(); |
MasterAuth.fromJson(core.Map _json) { |
- if (_json.containsKey("bearerToken")) { |
- bearerToken = _json["bearerToken"]; |
- } |
if (_json.containsKey("clientCertificate")) { |
clientCertificate = _json["clientCertificate"]; |
} |
@@ -868,16 +851,13 @@ class MasterAuth { |
if (_json.containsKey("password")) { |
password = _json["password"]; |
} |
- if (_json.containsKey("user")) { |
- user = _json["user"]; |
+ if (_json.containsKey("username")) { |
+ username = _json["username"]; |
} |
} |
core.Map toJson() { |
var _json = new core.Map(); |
- if (bearerToken != null) { |
- _json["bearerToken"] = bearerToken; |
- } |
if (clientCertificate != null) { |
_json["clientCertificate"] = clientCertificate; |
} |
@@ -890,64 +870,59 @@ class MasterAuth { |
if (password != null) { |
_json["password"] = password; |
} |
- if (user != null) { |
- _json["user"] = user; |
+ if (username != null) { |
+ _json["username"] = username; |
} |
return _json; |
} |
} |
+/** Per-node parameters. */ |
class NodeConfig { |
/** |
- * The name of a Google Compute Engine machine type (e.g. n1-standard-1). |
- * |
- * If unspecified, the default machine type is n1-standard-1. |
+ * Size of the disk attached to each node, specified in GB. The smallest |
+ * allowed disk size is 10GB, and the default is 100GB. |
*/ |
- core.String machineType; |
+ core.int diskSizeGb; |
/** |
- * The optional list of ServiceAccounts, each with their specified scopes, to |
- * be made available on all of the node VMs. In addition to the service |
- * accounts and scopes specified, the "default" account will always be created |
- * with the following scopes to ensure the correct functioning of the cluster: |
- * - https://www.googleapis.com/auth/compute, |
- * - https://www.googleapis.com/auth/devstorage.read_only |
+ * The name of a Google Compute Engine [machine |
+ * type](/compute/docs/machine-types) (e.g. `n1-standard-1`). If unspecified, |
+ * the default machine type is `n1-standard-1`. |
*/ |
- core.List<ServiceAccount> serviceAccounts; |
+ core.String machineType; |
/** |
- * The fully-specified name of a Google Compute Engine image. For example: |
- * https://www.googleapis.com/compute/v1/projects/debian-cloud/global/images/backports-debian-7-wheezy-vYYYYMMDD |
- * (where YYYMMDD is the version date). |
- * |
- * If specifying an image, you are responsible for ensuring its compatibility |
- * with the Debian 7 backports image. We recommend leaving this field blank to |
- * accept the default backports-debian-7-wheezy value. |
+ * The set of Google API scopes to be made available on all of the node VMs |
+ * under the "default" service account. Currently, the following scopes are |
+ * necessary to ensure the correct functioning of the cluster: * |
+ * "https://www.googleapis.com/auth/compute" * |
+ * "https://www.googleapis.com/auth/devstorage.read_only" |
*/ |
- core.String sourceImage; |
+ core.List<core.String> oauthScopes; |
NodeConfig(); |
NodeConfig.fromJson(core.Map _json) { |
+ if (_json.containsKey("diskSizeGb")) { |
+ diskSizeGb = _json["diskSizeGb"]; |
+ } |
if (_json.containsKey("machineType")) { |
machineType = _json["machineType"]; |
} |
- if (_json.containsKey("serviceAccounts")) { |
- serviceAccounts = _json["serviceAccounts"].map((value) => new ServiceAccount.fromJson(value)).toList(); |
- } |
- if (_json.containsKey("sourceImage")) { |
- sourceImage = _json["sourceImage"]; |
+ if (_json.containsKey("oauthScopes")) { |
+ oauthScopes = _json["oauthScopes"]; |
} |
} |
core.Map toJson() { |
var _json = new core.Map(); |
+ if (diskSizeGb != null) { |
+ _json["diskSizeGb"] = diskSizeGb; |
+ } |
if (machineType != null) { |
_json["machineType"] = machineType; |
} |
- if (serviceAccounts != null) { |
- _json["serviceAccounts"] = serviceAccounts.map((value) => (value).toJson()).toList(); |
- } |
- if (sourceImage != null) { |
- _json["sourceImage"] = sourceImage; |
+ if (oauthScopes != null) { |
+ _json["oauthScopes"] = oauthScopes; |
} |
return _json; |
} |
@@ -955,46 +930,45 @@ class NodeConfig { |
/** Defines the operation resource. All fields are output only. */ |
class Operation { |
- /** If an error has occurred, a textual description of the error. */ |
- core.String errorMessage; |
- /** The server-assigned ID for the operation. */ |
+ /** The server-assigned ID for the operation. @OutputOnly. */ |
core.String name; |
/** |
- * The operation type. |
+ * The operation type. @OutputOnly. |
* Possible string values are: |
- * - "createCluster" |
- * - "deleteCluster" |
+ * - "TYPE_UNSPECIFIED" : A TYPE_UNSPECIFIED. |
+ * - "CREATE_CLUSTER" : A CREATE_CLUSTER. |
+ * - "DELETE_CLUSTER" : A DELETE_CLUSTER. |
+ * - "UPGRADE_MASTER" : A UPGRADE_MASTER. |
+ * - "UPGRADE_NODES" : A UPGRADE_NODES. |
+ * - "REPAIR_CLUSTER" : A REPAIR_CLUSTER. |
*/ |
core.String operationType; |
- /** Server-defined URL for the resource. */ |
+ /** Server-defined URL for the resource. @OutputOnly. */ |
core.String selfLink; |
/** |
- * The current status of the operation. |
+ * The current status of the operation. @OutputOnly. |
* Possible string values are: |
- * - "done" |
- * - "pending" |
- * - "running" |
+ * - "STATUS_UNSPECIFIED" : A STATUS_UNSPECIFIED. |
+ * - "PENDING" : A PENDING. |
+ * - "RUNNING" : A RUNNING. |
+ * - "DONE" : A DONE. |
*/ |
core.String status; |
/** |
- * [Optional] The URL of the cluster resource that this operation is |
- * associated with. |
+ * If an error has occurred, a textual description of the error. @OutputOnly. |
*/ |
- core.String target; |
- /** Server-defined URL for the target of the operation. */ |
+ core.String statusMessage; |
+ /** Server-defined URL for the target of the operation. @OutputOnly. */ |
core.String targetLink; |
/** |
- * The name of the Google Compute Engine zone in which the operation is taking |
- * place. |
+ * The name of the Google Compute Engine [zone](/compute/docs/zones#available) |
+ * in which the operation is taking place. @OutputOnly. |
*/ |
core.String zone; |
Operation(); |
Operation.fromJson(core.Map _json) { |
- if (_json.containsKey("errorMessage")) { |
- errorMessage = _json["errorMessage"]; |
- } |
if (_json.containsKey("name")) { |
name = _json["name"]; |
} |
@@ -1007,8 +981,8 @@ class Operation { |
if (_json.containsKey("status")) { |
status = _json["status"]; |
} |
- if (_json.containsKey("target")) { |
- target = _json["target"]; |
+ if (_json.containsKey("statusMessage")) { |
+ statusMessage = _json["statusMessage"]; |
} |
if (_json.containsKey("targetLink")) { |
targetLink = _json["targetLink"]; |
@@ -1020,9 +994,6 @@ class Operation { |
core.Map toJson() { |
var _json = new core.Map(); |
- if (errorMessage != null) { |
- _json["errorMessage"] = errorMessage; |
- } |
if (name != null) { |
_json["name"] = name; |
} |
@@ -1035,8 +1006,8 @@ class Operation { |
if (status != null) { |
_json["status"] = status; |
} |
- if (target != null) { |
- _json["target"] = target; |
+ if (statusMessage != null) { |
+ _json["statusMessage"] = statusMessage; |
} |
if (targetLink != null) { |
_json["targetLink"] = targetLink; |
@@ -1048,31 +1019,23 @@ class Operation { |
} |
} |
-/** A Compute Engine service account. */ |
-class ServiceAccount { |
- /** Email address of the service account. */ |
- core.String email; |
- /** The list of scopes to be made available for this service account. */ |
- core.List<core.String> scopes; |
+/** UpdateClusterRequest updates a cluster. */ |
+class UpdateClusterRequest { |
+ /** A description of the update. */ |
+ ClusterUpdate update; |
- ServiceAccount(); |
+ UpdateClusterRequest(); |
- ServiceAccount.fromJson(core.Map _json) { |
- if (_json.containsKey("email")) { |
- email = _json["email"]; |
- } |
- if (_json.containsKey("scopes")) { |
- scopes = _json["scopes"]; |
+ UpdateClusterRequest.fromJson(core.Map _json) { |
+ if (_json.containsKey("update")) { |
+ update = new ClusterUpdate.fromJson(_json["update"]); |
} |
} |
core.Map toJson() { |
var _json = new core.Map(); |
- if (email != null) { |
- _json["email"] = email; |
- } |
- if (scopes != null) { |
- _json["scopes"] = scopes; |
+ if (update != null) { |
+ _json["update"] = (update).toJson(); |
} |
return _json; |
} |