Index: generated/googleapis/lib/container/v1.dart |
diff --git a/generated/googleapis/lib/container/v1.dart b/generated/googleapis/lib/container/v1.dart |
index 87b169d62669baad4b7281a3e5f56eca221609ff..561069284be1fb2a6a0ba9ca8a341963217f8eb6 100644 |
--- a/generated/googleapis/lib/container/v1.dart |
+++ b/generated/googleapis/lib/container/v1.dart |
@@ -9,69 +9,68 @@ import 'dart:convert' as convert; |
import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; |
import 'package:http/http.dart' as http; |
-export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show |
- ApiRequestError, DetailedApiRequestError; |
+export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' |
+ show ApiRequestError, DetailedApiRequestError; |
const core.String USER_AGENT = 'dart-api-client container/v1'; |
-/** |
- * The Google Container Engine API is used for building and managing container |
- * based applications, powered by the open source Kubernetes technology. |
- */ |
+/// The Google Container Engine API is used for building and managing container |
+/// based applications, powered by the open source Kubernetes technology. |
class ContainerApi { |
- /** View and manage your data across Google Cloud Platform services */ |
- static const CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"; |
- |
+ /// View and manage your data across Google Cloud Platform services |
+ static const CloudPlatformScope = |
+ "https://www.googleapis.com/auth/cloud-platform"; |
final commons.ApiRequester _requester; |
ProjectsResourceApi get projects => new ProjectsResourceApi(_requester); |
- ContainerApi(http.Client client, {core.String rootUrl: "https://container.googleapis.com/", core.String servicePath: ""}) : |
- _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT); |
+ ContainerApi(http.Client client, |
+ {core.String rootUrl: "https://container.googleapis.com/", |
+ core.String servicePath: ""}) |
+ : _requester = |
+ new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT); |
} |
- |
class ProjectsResourceApi { |
final commons.ApiRequester _requester; |
- ProjectsZonesResourceApi get zones => new ProjectsZonesResourceApi(_requester); |
+ ProjectsZonesResourceApi get zones => |
+ new ProjectsZonesResourceApi(_requester); |
- ProjectsResourceApi(commons.ApiRequester client) : |
- _requester = client; |
+ ProjectsResourceApi(commons.ApiRequester client) : _requester = client; |
} |
- |
class ProjectsZonesResourceApi { |
final commons.ApiRequester _requester; |
- ProjectsZonesClustersResourceApi get clusters => new ProjectsZonesClustersResourceApi(_requester); |
- ProjectsZonesOperationsResourceApi get operations => new ProjectsZonesOperationsResourceApi(_requester); |
- |
- ProjectsZonesResourceApi(commons.ApiRequester client) : |
- _requester = client; |
- |
- /** |
- * Returns configuration info about the Container Engine service. |
- * |
- * Request parameters: |
- * |
- * [projectId] - The Google Developers Console [project ID or project |
- * number](https://support.google.com/cloud/answer/6158840). |
- * |
- * [zone] - The name of the Google Compute Engine |
- * [zone](/compute/docs/zones#available) |
- * to return operations for. |
- * |
- * Completes with a [ServerConfig]. |
- * |
- * 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<ServerConfig> getServerconfig(core.String projectId, core.String zone) { |
+ ProjectsZonesClustersResourceApi get clusters => |
+ new ProjectsZonesClustersResourceApi(_requester); |
+ ProjectsZonesOperationsResourceApi get operations => |
+ new ProjectsZonesOperationsResourceApi(_requester); |
+ |
+ ProjectsZonesResourceApi(commons.ApiRequester client) : _requester = client; |
+ |
+ /// Returns configuration info about the Container Engine service. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [projectId] - The Google Developers Console [project ID or project |
+ /// number](https://support.google.com/cloud/answer/6158840). |
+ /// |
+ /// [zone] - The name of the Google Compute Engine |
+ /// [zone](/compute/docs/zones#available) |
+ /// to return operations for. |
+ /// |
+ /// Completes with a [ServerConfig]. |
+ /// |
+ /// 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<ServerConfig> getServerconfig( |
+ core.String projectId, core.String zone) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -86,54 +85,55 @@ class ProjectsZonesResourceApi { |
throw new core.ArgumentError("Parameter zone is required."); |
} |
- _url = 'v1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/serverconfig'; |
+ _url = 'v1/projects/' + |
+ commons.Escaper.ecapeVariable('$projectId') + |
+ '/zones/' + |
+ commons.Escaper.ecapeVariable('$zone') + |
+ '/serverconfig'; |
- var _response = _requester.request(_url, |
- "GET", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ var _response = _requester.request(_url, "GET", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => new ServerConfig.fromJson(data)); |
} |
- |
} |
- |
class ProjectsZonesClustersResourceApi { |
final commons.ApiRequester _requester; |
- ProjectsZonesClustersNodePoolsResourceApi get nodePools => new ProjectsZonesClustersNodePoolsResourceApi(_requester); |
- |
- ProjectsZonesClustersResourceApi(commons.ApiRequester client) : |
- _requester = client; |
- |
- /** |
- * Sets the addons of a specific cluster. |
- * |
- * [request] - The metadata request object. |
- * |
- * Request parameters: |
- * |
- * [projectId] - The Google Developers Console [project ID or project |
- * number](https://support.google.com/cloud/answer/6158840). |
- * |
- * [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 upgrade. |
- * |
- * Completes with a [Operation]. |
- * |
- * 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<Operation> addons(SetAddonsConfigRequest request, core.String projectId, core.String zone, core.String clusterId) { |
+ ProjectsZonesClustersNodePoolsResourceApi get nodePools => |
+ new ProjectsZonesClustersNodePoolsResourceApi(_requester); |
+ |
+ ProjectsZonesClustersResourceApi(commons.ApiRequester client) |
+ : _requester = client; |
+ |
+ /// Sets the addons of a specific cluster. |
+ /// |
+ /// [request] - The metadata request object. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [projectId] - The Google Developers Console [project ID or project |
+ /// number](https://support.google.com/cloud/answer/6158840). |
+ /// |
+ /// [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 upgrade. |
+ /// |
+ /// Completes with a [Operation]. |
+ /// |
+ /// 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<Operation> addons(SetAddonsConfigRequest request, |
+ core.String projectId, core.String zone, core.String clusterId) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -154,43 +154,47 @@ class ProjectsZonesClustersResourceApi { |
throw new core.ArgumentError("Parameter clusterId is required."); |
} |
- _url = 'v1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/clusters/' + commons.Escaper.ecapeVariable('$clusterId') + '/addons'; |
- |
- var _response = _requester.request(_url, |
- "POST", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ _url = 'v1/projects/' + |
+ commons.Escaper.ecapeVariable('$projectId') + |
+ '/zones/' + |
+ commons.Escaper.ecapeVariable('$zone') + |
+ '/clusters/' + |
+ commons.Escaper.ecapeVariable('$clusterId') + |
+ '/addons'; |
+ |
+ var _response = _requester.request(_url, "POST", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => new Operation.fromJson(data)); |
} |
- /** |
- * Completes master IP rotation. |
- * |
- * [request] - The metadata request object. |
- * |
- * Request parameters: |
- * |
- * [projectId] - The Google Developers Console [project ID or project |
- * number](https://developers.google.com/console/help/new/#projectnumber). |
- * |
- * [zone] - The name of the Google Compute Engine |
- * [zone](/compute/docs/zones#available) in which the cluster |
- * resides. |
- * |
- * [clusterId] - The name of the cluster. |
- * |
- * Completes with a [Operation]. |
- * |
- * 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<Operation> completeIpRotation(CompleteIPRotationRequest request, core.String projectId, core.String zone, core.String clusterId) { |
+ /// Completes master IP rotation. |
+ /// |
+ /// [request] - The metadata request object. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [projectId] - The Google Developers Console [project ID or project |
+ /// number](https://developers.google.com/console/help/new/#projectnumber). |
+ /// |
+ /// [zone] - The name of the Google Compute Engine |
+ /// [zone](/compute/docs/zones#available) in which the cluster |
+ /// resides. |
+ /// |
+ /// [clusterId] - The name of the cluster. |
+ /// |
+ /// Completes with a [Operation]. |
+ /// |
+ /// 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<Operation> completeIpRotation(CompleteIPRotationRequest request, |
+ core.String projectId, core.String zone, core.String clusterId) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -211,53 +215,57 @@ class ProjectsZonesClustersResourceApi { |
throw new core.ArgumentError("Parameter clusterId is required."); |
} |
- _url = 'v1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/clusters/' + commons.Escaper.ecapeVariable('$clusterId') + ':completeIpRotation'; |
- |
- var _response = _requester.request(_url, |
- "POST", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ _url = 'v1/projects/' + |
+ commons.Escaper.ecapeVariable('$projectId') + |
+ '/zones/' + |
+ commons.Escaper.ecapeVariable('$zone') + |
+ '/clusters/' + |
+ commons.Escaper.ecapeVariable('$clusterId') + |
+ ':completeIpRotation'; |
+ |
+ var _response = _requester.request(_url, "POST", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => new Operation.fromJson(data)); |
} |
- /** |
- * Creates a cluster, consisting of the specified number and type of Google |
- * Compute Engine instances. |
- * |
- * By default, the cluster is created in the project's |
- * [default network](/compute/docs/networks-and-firewalls#networks). |
- * |
- * 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](https://support.google.com/cloud/answer/6158840). |
- * |
- * [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. |
- * |
- * 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 zone) { |
+ /// Creates a cluster, consisting of the specified number and type of Google |
+ /// Compute Engine instances. |
+ /// |
+ /// By default, the cluster is created in the project's |
+ /// [default network](/compute/docs/networks-and-firewalls#networks). |
+ /// |
+ /// 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](https://support.google.com/cloud/answer/6158840). |
+ /// |
+ /// [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. |
+ /// |
+ /// 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 zone) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -275,49 +283,52 @@ class ProjectsZonesClustersResourceApi { |
throw new core.ArgumentError("Parameter zone is required."); |
} |
- _url = 'v1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/clusters'; |
+ _url = 'v1/projects/' + |
+ commons.Escaper.ecapeVariable('$projectId') + |
+ '/zones/' + |
+ commons.Escaper.ecapeVariable('$zone') + |
+ '/clusters'; |
- var _response = _requester.request(_url, |
- "POST", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ var _response = _requester.request(_url, "POST", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => new Operation.fromJson(data)); |
} |
- /** |
- * Deletes the cluster, including the Kubernetes endpoint and all worker |
- * nodes. |
- * |
- * Firewalls and routes that were configured during cluster creation |
- * are also deleted. |
- * |
- * Other Google Compute Engine resources that might be in use by the cluster |
- * (e.g. load balancer resources) will not be deleted if they weren't present |
- * at the initial create time. |
- * |
- * Request parameters: |
- * |
- * [projectId] - The Google Developers Console [project ID or project |
- * number](https://support.google.com/cloud/answer/6158840). |
- * |
- * [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]. |
- * |
- * 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<Operation> delete(core.String projectId, core.String zone, core.String clusterId) { |
+ /// Deletes the cluster, including the Kubernetes endpoint and all worker |
+ /// nodes. |
+ /// |
+ /// Firewalls and routes that were configured during cluster creation |
+ /// are also deleted. |
+ /// |
+ /// Other Google Compute Engine resources that might be in use by the cluster |
+ /// (e.g. load balancer resources) will not be deleted if they weren't |
+ /// present |
+ /// at the initial create time. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [projectId] - The Google Developers Console [project ID or project |
+ /// number](https://support.google.com/cloud/answer/6158840). |
+ /// |
+ /// [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]. |
+ /// |
+ /// 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<Operation> delete( |
+ core.String projectId, core.String zone, core.String clusterId) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -335,41 +346,44 @@ class ProjectsZonesClustersResourceApi { |
throw new core.ArgumentError("Parameter clusterId is required."); |
} |
- _url = 'v1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/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", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ var _response = _requester.request(_url, "DELETE", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => new Operation.fromJson(data)); |
} |
- /** |
- * Gets the details of a specific cluster. |
- * |
- * Request parameters: |
- * |
- * [projectId] - The Google Developers Console [project ID or project |
- * number](https://support.google.com/cloud/answer/6158840). |
- * |
- * [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 retrieve. |
- * |
- * Completes with a [Cluster]. |
- * |
- * 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<Cluster> get(core.String projectId, core.String zone, core.String clusterId) { |
+ /// Gets the details of a specific cluster. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [projectId] - The Google Developers Console [project ID or project |
+ /// number](https://support.google.com/cloud/answer/6158840). |
+ /// |
+ /// [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 retrieve. |
+ /// |
+ /// Completes with a [Cluster]. |
+ /// |
+ /// 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<Cluster> get( |
+ core.String projectId, core.String zone, core.String clusterId) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -387,43 +401,46 @@ class ProjectsZonesClustersResourceApi { |
throw new core.ArgumentError("Parameter clusterId is required."); |
} |
- _url = 'v1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/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, |
- "GET", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ var _response = _requester.request(_url, "GET", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => new Cluster.fromJson(data)); |
} |
- /** |
- * Enables or disables the ABAC authorization mechanism on a cluster. |
- * |
- * [request] - The metadata request object. |
- * |
- * Request parameters: |
- * |
- * [projectId] - The Google Developers Console [project ID or project |
- * number](https://support.google.com/cloud/answer/6158840). |
- * |
- * [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 update. |
- * |
- * Completes with a [Operation]. |
- * |
- * 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<Operation> legacyAbac(SetLegacyAbacRequest request, core.String projectId, core.String zone, core.String clusterId) { |
+ /// Enables or disables the ABAC authorization mechanism on a cluster. |
+ /// |
+ /// [request] - The metadata request object. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [projectId] - The Google Developers Console [project ID or project |
+ /// number](https://support.google.com/cloud/answer/6158840). |
+ /// |
+ /// [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 update. |
+ /// |
+ /// Completes with a [Operation]. |
+ /// |
+ /// 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<Operation> legacyAbac(SetLegacyAbacRequest request, |
+ core.String projectId, core.String zone, core.String clusterId) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -444,40 +461,44 @@ class ProjectsZonesClustersResourceApi { |
throw new core.ArgumentError("Parameter clusterId is required."); |
} |
- _url = 'v1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/clusters/' + commons.Escaper.ecapeVariable('$clusterId') + '/legacyAbac'; |
- |
- var _response = _requester.request(_url, |
- "POST", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ _url = 'v1/projects/' + |
+ commons.Escaper.ecapeVariable('$projectId') + |
+ '/zones/' + |
+ commons.Escaper.ecapeVariable('$zone') + |
+ '/clusters/' + |
+ commons.Escaper.ecapeVariable('$clusterId') + |
+ '/legacyAbac'; |
+ |
+ var _response = _requester.request(_url, "POST", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => new Operation.fromJson(data)); |
} |
- /** |
- * 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](https://support.google.com/cloud/answer/6158840). |
- * |
- * [zone] - The name of the Google Compute Engine |
- * [zone](/compute/docs/zones#available) in which the cluster |
- * resides, or "-" for all zones. |
- * |
- * Completes with a [ListClustersResponse]. |
- * |
- * 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<ListClustersResponse> list(core.String projectId, core.String zone) { |
+ /// 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](https://support.google.com/cloud/answer/6158840). |
+ /// |
+ /// [zone] - The name of the Google Compute Engine |
+ /// [zone](/compute/docs/zones#available) in which the cluster |
+ /// resides, or "-" for all zones. |
+ /// |
+ /// Completes with a [ListClustersResponse]. |
+ /// |
+ /// 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<ListClustersResponse> list( |
+ core.String projectId, core.String zone) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -492,43 +513,45 @@ class ProjectsZonesClustersResourceApi { |
throw new core.ArgumentError("Parameter zone is required."); |
} |
- _url = 'v1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/clusters'; |
+ _url = 'v1/projects/' + |
+ commons.Escaper.ecapeVariable('$projectId') + |
+ '/zones/' + |
+ commons.Escaper.ecapeVariable('$zone') + |
+ '/clusters'; |
- var _response = _requester.request(_url, |
- "GET", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ var _response = _requester.request(_url, "GET", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => new ListClustersResponse.fromJson(data)); |
} |
- /** |
- * Sets the locations of a specific cluster. |
- * |
- * [request] - The metadata request object. |
- * |
- * Request parameters: |
- * |
- * [projectId] - The Google Developers Console [project ID or project |
- * number](https://support.google.com/cloud/answer/6158840). |
- * |
- * [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 upgrade. |
- * |
- * Completes with a [Operation]. |
- * |
- * 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<Operation> locations(SetLocationsRequest request, core.String projectId, core.String zone, core.String clusterId) { |
+ /// Sets the locations of a specific cluster. |
+ /// |
+ /// [request] - The metadata request object. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [projectId] - The Google Developers Console [project ID or project |
+ /// number](https://support.google.com/cloud/answer/6158840). |
+ /// |
+ /// [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 upgrade. |
+ /// |
+ /// Completes with a [Operation]. |
+ /// |
+ /// 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<Operation> locations(SetLocationsRequest request, |
+ core.String projectId, core.String zone, core.String clusterId) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -549,43 +572,47 @@ class ProjectsZonesClustersResourceApi { |
throw new core.ArgumentError("Parameter clusterId is required."); |
} |
- _url = 'v1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/clusters/' + commons.Escaper.ecapeVariable('$clusterId') + '/locations'; |
- |
- var _response = _requester.request(_url, |
- "POST", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ _url = 'v1/projects/' + |
+ commons.Escaper.ecapeVariable('$projectId') + |
+ '/zones/' + |
+ commons.Escaper.ecapeVariable('$zone') + |
+ '/clusters/' + |
+ commons.Escaper.ecapeVariable('$clusterId') + |
+ '/locations'; |
+ |
+ var _response = _requester.request(_url, "POST", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => new Operation.fromJson(data)); |
} |
- /** |
- * Sets the logging service of a specific cluster. |
- * |
- * [request] - The metadata request object. |
- * |
- * Request parameters: |
- * |
- * [projectId] - The Google Developers Console [project ID or project |
- * number](https://support.google.com/cloud/answer/6158840). |
- * |
- * [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 upgrade. |
- * |
- * Completes with a [Operation]. |
- * |
- * 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<Operation> logging(SetLoggingServiceRequest request, core.String projectId, core.String zone, core.String clusterId) { |
+ /// Sets the logging service of a specific cluster. |
+ /// |
+ /// [request] - The metadata request object. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [projectId] - The Google Developers Console [project ID or project |
+ /// number](https://support.google.com/cloud/answer/6158840). |
+ /// |
+ /// [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 upgrade. |
+ /// |
+ /// Completes with a [Operation]. |
+ /// |
+ /// 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<Operation> logging(SetLoggingServiceRequest request, |
+ core.String projectId, core.String zone, core.String clusterId) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -606,43 +633,47 @@ class ProjectsZonesClustersResourceApi { |
throw new core.ArgumentError("Parameter clusterId is required."); |
} |
- _url = 'v1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/clusters/' + commons.Escaper.ecapeVariable('$clusterId') + '/logging'; |
- |
- var _response = _requester.request(_url, |
- "POST", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ _url = 'v1/projects/' + |
+ commons.Escaper.ecapeVariable('$projectId') + |
+ '/zones/' + |
+ commons.Escaper.ecapeVariable('$zone') + |
+ '/clusters/' + |
+ commons.Escaper.ecapeVariable('$clusterId') + |
+ '/logging'; |
+ |
+ var _response = _requester.request(_url, "POST", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => new Operation.fromJson(data)); |
} |
- /** |
- * Updates the master of a specific cluster. |
- * |
- * [request] - The metadata request object. |
- * |
- * Request parameters: |
- * |
- * [projectId] - The Google Developers Console [project ID or project |
- * number](https://support.google.com/cloud/answer/6158840). |
- * |
- * [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 upgrade. |
- * |
- * Completes with a [Operation]. |
- * |
- * 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<Operation> master(UpdateMasterRequest request, core.String projectId, core.String zone, core.String clusterId) { |
+ /// Updates the master of a specific cluster. |
+ /// |
+ /// [request] - The metadata request object. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [projectId] - The Google Developers Console [project ID or project |
+ /// number](https://support.google.com/cloud/answer/6158840). |
+ /// |
+ /// [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 upgrade. |
+ /// |
+ /// Completes with a [Operation]. |
+ /// |
+ /// 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<Operation> master(UpdateMasterRequest request, |
+ core.String projectId, core.String zone, core.String clusterId) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -663,43 +694,47 @@ class ProjectsZonesClustersResourceApi { |
throw new core.ArgumentError("Parameter clusterId is required."); |
} |
- _url = 'v1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/clusters/' + commons.Escaper.ecapeVariable('$clusterId') + '/master'; |
- |
- var _response = _requester.request(_url, |
- "POST", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ _url = 'v1/projects/' + |
+ commons.Escaper.ecapeVariable('$projectId') + |
+ '/zones/' + |
+ commons.Escaper.ecapeVariable('$zone') + |
+ '/clusters/' + |
+ commons.Escaper.ecapeVariable('$clusterId') + |
+ '/master'; |
+ |
+ var _response = _requester.request(_url, "POST", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => new Operation.fromJson(data)); |
} |
- /** |
- * Sets the monitoring service of a specific cluster. |
- * |
- * [request] - The metadata request object. |
- * |
- * Request parameters: |
- * |
- * [projectId] - The Google Developers Console [project ID or project |
- * number](https://support.google.com/cloud/answer/6158840). |
- * |
- * [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 upgrade. |
- * |
- * Completes with a [Operation]. |
- * |
- * 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<Operation> monitoring(SetMonitoringServiceRequest request, core.String projectId, core.String zone, core.String clusterId) { |
+ /// Sets the monitoring service of a specific cluster. |
+ /// |
+ /// [request] - The metadata request object. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [projectId] - The Google Developers Console [project ID or project |
+ /// number](https://support.google.com/cloud/answer/6158840). |
+ /// |
+ /// [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 upgrade. |
+ /// |
+ /// Completes with a [Operation]. |
+ /// |
+ /// 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<Operation> monitoring(SetMonitoringServiceRequest request, |
+ core.String projectId, core.String zone, core.String clusterId) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -720,43 +755,47 @@ class ProjectsZonesClustersResourceApi { |
throw new core.ArgumentError("Parameter clusterId is required."); |
} |
- _url = 'v1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/clusters/' + commons.Escaper.ecapeVariable('$clusterId') + '/monitoring'; |
- |
- var _response = _requester.request(_url, |
- "POST", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ _url = 'v1/projects/' + |
+ commons.Escaper.ecapeVariable('$projectId') + |
+ '/zones/' + |
+ commons.Escaper.ecapeVariable('$zone') + |
+ '/clusters/' + |
+ commons.Escaper.ecapeVariable('$clusterId') + |
+ '/monitoring'; |
+ |
+ var _response = _requester.request(_url, "POST", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => new Operation.fromJson(data)); |
} |
- /** |
- * Sets labels on a cluster. |
- * |
- * [request] - The metadata request object. |
- * |
- * Request parameters: |
- * |
- * [projectId] - The Google Developers Console [project ID or project |
- * number](https://developers.google.com/console/help/new/#projectnumber). |
- * |
- * [zone] - The name of the Google Compute Engine |
- * [zone](/compute/docs/zones#available) in which the cluster |
- * resides. |
- * |
- * [clusterId] - The name of the cluster. |
- * |
- * Completes with a [Operation]. |
- * |
- * 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<Operation> resourceLabels(SetLabelsRequest request, core.String projectId, core.String zone, core.String clusterId) { |
+ /// Sets labels on a cluster. |
+ /// |
+ /// [request] - The metadata request object. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [projectId] - The Google Developers Console [project ID or project |
+ /// number](https://developers.google.com/console/help/new/#projectnumber). |
+ /// |
+ /// [zone] - The name of the Google Compute Engine |
+ /// [zone](/compute/docs/zones#available) in which the cluster |
+ /// resides. |
+ /// |
+ /// [clusterId] - The name of the cluster. |
+ /// |
+ /// Completes with a [Operation]. |
+ /// |
+ /// 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<Operation> resourceLabels(SetLabelsRequest request, |
+ core.String projectId, core.String zone, core.String clusterId) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -777,45 +816,50 @@ class ProjectsZonesClustersResourceApi { |
throw new core.ArgumentError("Parameter clusterId is required."); |
} |
- _url = 'v1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/clusters/' + commons.Escaper.ecapeVariable('$clusterId') + '/resourceLabels'; |
- |
- var _response = _requester.request(_url, |
- "POST", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ _url = 'v1/projects/' + |
+ commons.Escaper.ecapeVariable('$projectId') + |
+ '/zones/' + |
+ commons.Escaper.ecapeVariable('$zone') + |
+ '/clusters/' + |
+ commons.Escaper.ecapeVariable('$clusterId') + |
+ '/resourceLabels'; |
+ |
+ var _response = _requester.request(_url, "POST", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => new Operation.fromJson(data)); |
} |
- /** |
- * Used to set master auth materials. Currently supports :- |
- * Changing the admin password of a specific cluster. |
- * This can be either via password generation or explicitly set the password. |
- * |
- * [request] - The metadata request object. |
- * |
- * Request parameters: |
- * |
- * [projectId] - The Google Developers Console [project ID or project |
- * number](https://support.google.com/cloud/answer/6158840). |
- * |
- * [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 upgrade. |
- * |
- * Completes with a [Operation]. |
- * |
- * 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<Operation> setMasterAuth(SetMasterAuthRequest request, core.String projectId, core.String zone, core.String clusterId) { |
+ /// Used to set master auth materials. Currently supports :- |
+ /// Changing the admin password of a specific cluster. |
+ /// This can be either via password generation or explicitly set the |
+ /// password. |
+ /// |
+ /// [request] - The metadata request object. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [projectId] - The Google Developers Console [project ID or project |
+ /// number](https://support.google.com/cloud/answer/6158840). |
+ /// |
+ /// [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 upgrade. |
+ /// |
+ /// Completes with a [Operation]. |
+ /// |
+ /// 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<Operation> setMasterAuth(SetMasterAuthRequest request, |
+ core.String projectId, core.String zone, core.String clusterId) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -836,43 +880,47 @@ class ProjectsZonesClustersResourceApi { |
throw new core.ArgumentError("Parameter clusterId is required."); |
} |
- _url = 'v1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/clusters/' + commons.Escaper.ecapeVariable('$clusterId') + ':setMasterAuth'; |
- |
- var _response = _requester.request(_url, |
- "POST", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ _url = 'v1/projects/' + |
+ commons.Escaper.ecapeVariable('$projectId') + |
+ '/zones/' + |
+ commons.Escaper.ecapeVariable('$zone') + |
+ '/clusters/' + |
+ commons.Escaper.ecapeVariable('$clusterId') + |
+ ':setMasterAuth'; |
+ |
+ var _response = _requester.request(_url, "POST", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => new Operation.fromJson(data)); |
} |
- /** |
- * Enables/Disables Network Policy for a cluster. |
- * |
- * [request] - The metadata request object. |
- * |
- * Request parameters: |
- * |
- * [projectId] - The Google Developers Console [project ID or project |
- * number](https://developers.google.com/console/help/new/#projectnumber). |
- * |
- * [zone] - The name of the Google Compute Engine |
- * [zone](/compute/docs/zones#available) in which the cluster |
- * resides. |
- * |
- * [clusterId] - The name of the cluster. |
- * |
- * Completes with a [Operation]. |
- * |
- * 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<Operation> setNetworkPolicy(SetNetworkPolicyRequest request, core.String projectId, core.String zone, core.String clusterId) { |
+ /// Enables/Disables Network Policy for a cluster. |
+ /// |
+ /// [request] - The metadata request object. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [projectId] - The Google Developers Console [project ID or project |
+ /// number](https://developers.google.com/console/help/new/#projectnumber). |
+ /// |
+ /// [zone] - The name of the Google Compute Engine |
+ /// [zone](/compute/docs/zones#available) in which the cluster |
+ /// resides. |
+ /// |
+ /// [clusterId] - The name of the cluster. |
+ /// |
+ /// Completes with a [Operation]. |
+ /// |
+ /// 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<Operation> setNetworkPolicy(SetNetworkPolicyRequest request, |
+ core.String projectId, core.String zone, core.String clusterId) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -893,43 +941,47 @@ class ProjectsZonesClustersResourceApi { |
throw new core.ArgumentError("Parameter clusterId is required."); |
} |
- _url = 'v1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/clusters/' + commons.Escaper.ecapeVariable('$clusterId') + ':setNetworkPolicy'; |
- |
- var _response = _requester.request(_url, |
- "POST", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ _url = 'v1/projects/' + |
+ commons.Escaper.ecapeVariable('$projectId') + |
+ '/zones/' + |
+ commons.Escaper.ecapeVariable('$zone') + |
+ '/clusters/' + |
+ commons.Escaper.ecapeVariable('$clusterId') + |
+ ':setNetworkPolicy'; |
+ |
+ var _response = _requester.request(_url, "POST", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => new Operation.fromJson(data)); |
} |
- /** |
- * Start master IP rotation. |
- * |
- * [request] - The metadata request object. |
- * |
- * Request parameters: |
- * |
- * [projectId] - The Google Developers Console [project ID or project |
- * number](https://developers.google.com/console/help/new/#projectnumber). |
- * |
- * [zone] - The name of the Google Compute Engine |
- * [zone](/compute/docs/zones#available) in which the cluster |
- * resides. |
- * |
- * [clusterId] - The name of the cluster. |
- * |
- * Completes with a [Operation]. |
- * |
- * 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<Operation> startIpRotation(StartIPRotationRequest request, core.String projectId, core.String zone, core.String clusterId) { |
+ /// Start master IP rotation. |
+ /// |
+ /// [request] - The metadata request object. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [projectId] - The Google Developers Console [project ID or project |
+ /// number](https://developers.google.com/console/help/new/#projectnumber). |
+ /// |
+ /// [zone] - The name of the Google Compute Engine |
+ /// [zone](/compute/docs/zones#available) in which the cluster |
+ /// resides. |
+ /// |
+ /// [clusterId] - The name of the cluster. |
+ /// |
+ /// Completes with a [Operation]. |
+ /// |
+ /// 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<Operation> startIpRotation(StartIPRotationRequest request, |
+ core.String projectId, core.String zone, core.String clusterId) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -950,43 +1002,47 @@ class ProjectsZonesClustersResourceApi { |
throw new core.ArgumentError("Parameter clusterId is required."); |
} |
- _url = 'v1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/clusters/' + commons.Escaper.ecapeVariable('$clusterId') + ':startIpRotation'; |
- |
- var _response = _requester.request(_url, |
- "POST", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ _url = 'v1/projects/' + |
+ commons.Escaper.ecapeVariable('$projectId') + |
+ '/zones/' + |
+ commons.Escaper.ecapeVariable('$zone') + |
+ '/clusters/' + |
+ commons.Escaper.ecapeVariable('$clusterId') + |
+ ':startIpRotation'; |
+ |
+ var _response = _requester.request(_url, "POST", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => new Operation.fromJson(data)); |
} |
- /** |
- * Updates the settings of a specific cluster. |
- * |
- * [request] - The metadata request object. |
- * |
- * Request parameters: |
- * |
- * [projectId] - The Google Developers Console [project ID or project |
- * number](https://support.google.com/cloud/answer/6158840). |
- * |
- * [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 upgrade. |
- * |
- * Completes with a [Operation]. |
- * |
- * 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<Operation> update(UpdateClusterRequest request, core.String projectId, core.String zone, core.String clusterId) { |
+ /// Updates the settings of a specific cluster. |
+ /// |
+ /// [request] - The metadata request object. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [projectId] - The Google Developers Console [project ID or project |
+ /// number](https://support.google.com/cloud/answer/6158840). |
+ /// |
+ /// [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 upgrade. |
+ /// |
+ /// Completes with a [Operation]. |
+ /// |
+ /// 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<Operation> update(UpdateClusterRequest request, |
+ core.String projectId, core.String zone, core.String clusterId) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -1007,54 +1063,59 @@ class ProjectsZonesClustersResourceApi { |
throw new core.ArgumentError("Parameter clusterId is required."); |
} |
- _url = 'v1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/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, |
- "PUT", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ var _response = _requester.request(_url, "PUT", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => new Operation.fromJson(data)); |
} |
- |
} |
- |
class ProjectsZonesClustersNodePoolsResourceApi { |
final commons.ApiRequester _requester; |
- ProjectsZonesClustersNodePoolsResourceApi(commons.ApiRequester client) : |
- _requester = client; |
- |
- /** |
- * Sets the autoscaling settings of a specific node pool. |
- * |
- * [request] - The metadata request object. |
- * |
- * Request parameters: |
- * |
- * [projectId] - The Google Developers Console [project ID or project |
- * number](https://support.google.com/cloud/answer/6158840). |
- * |
- * [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 upgrade. |
- * |
- * [nodePoolId] - The name of the node pool to upgrade. |
- * |
- * Completes with a [Operation]. |
- * |
- * 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<Operation> autoscaling(SetNodePoolAutoscalingRequest request, core.String projectId, core.String zone, core.String clusterId, core.String nodePoolId) { |
+ ProjectsZonesClustersNodePoolsResourceApi(commons.ApiRequester client) |
+ : _requester = client; |
+ |
+ /// Sets the autoscaling settings of a specific node pool. |
+ /// |
+ /// [request] - The metadata request object. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [projectId] - The Google Developers Console [project ID or project |
+ /// number](https://support.google.com/cloud/answer/6158840). |
+ /// |
+ /// [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 upgrade. |
+ /// |
+ /// [nodePoolId] - The name of the node pool to upgrade. |
+ /// |
+ /// Completes with a [Operation]. |
+ /// |
+ /// 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<Operation> autoscaling( |
+ SetNodePoolAutoscalingRequest request, |
+ core.String projectId, |
+ core.String zone, |
+ core.String clusterId, |
+ core.String nodePoolId) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -1078,43 +1139,49 @@ class ProjectsZonesClustersNodePoolsResourceApi { |
throw new core.ArgumentError("Parameter nodePoolId is required."); |
} |
- _url = 'v1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/clusters/' + commons.Escaper.ecapeVariable('$clusterId') + '/nodePools/' + commons.Escaper.ecapeVariable('$nodePoolId') + '/autoscaling'; |
- |
- var _response = _requester.request(_url, |
- "POST", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ _url = 'v1/projects/' + |
+ commons.Escaper.ecapeVariable('$projectId') + |
+ '/zones/' + |
+ commons.Escaper.ecapeVariable('$zone') + |
+ '/clusters/' + |
+ commons.Escaper.ecapeVariable('$clusterId') + |
+ '/nodePools/' + |
+ commons.Escaper.ecapeVariable('$nodePoolId') + |
+ '/autoscaling'; |
+ |
+ var _response = _requester.request(_url, "POST", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => new Operation.fromJson(data)); |
} |
- /** |
- * Creates a node pool for a cluster. |
- * |
- * [request] - The metadata request object. |
- * |
- * Request parameters: |
- * |
- * [projectId] - The Google Developers Console [project ID or project |
- * number](https://developers.google.com/console/help/new/#projectnumber). |
- * |
- * [zone] - The name of the Google Compute Engine |
- * [zone](/compute/docs/zones#available) in which the cluster |
- * resides. |
- * |
- * [clusterId] - The name of the cluster. |
- * |
- * Completes with a [Operation]. |
- * |
- * 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<Operation> create(CreateNodePoolRequest request, core.String projectId, core.String zone, core.String clusterId) { |
+ /// Creates a node pool for a cluster. |
+ /// |
+ /// [request] - The metadata request object. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [projectId] - The Google Developers Console [project ID or project |
+ /// number](https://developers.google.com/console/help/new/#projectnumber). |
+ /// |
+ /// [zone] - The name of the Google Compute Engine |
+ /// [zone](/compute/docs/zones#available) in which the cluster |
+ /// resides. |
+ /// |
+ /// [clusterId] - The name of the cluster. |
+ /// |
+ /// Completes with a [Operation]. |
+ /// |
+ /// 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<Operation> create(CreateNodePoolRequest request, |
+ core.String projectId, core.String zone, core.String clusterId) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -1135,43 +1202,47 @@ class ProjectsZonesClustersNodePoolsResourceApi { |
throw new core.ArgumentError("Parameter clusterId is required."); |
} |
- _url = 'v1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/clusters/' + commons.Escaper.ecapeVariable('$clusterId') + '/nodePools'; |
- |
- var _response = _requester.request(_url, |
- "POST", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ _url = 'v1/projects/' + |
+ commons.Escaper.ecapeVariable('$projectId') + |
+ '/zones/' + |
+ commons.Escaper.ecapeVariable('$zone') + |
+ '/clusters/' + |
+ commons.Escaper.ecapeVariable('$clusterId') + |
+ '/nodePools'; |
+ |
+ var _response = _requester.request(_url, "POST", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => new Operation.fromJson(data)); |
} |
- /** |
- * Deletes a node pool from a cluster. |
- * |
- * Request parameters: |
- * |
- * [projectId] - The Google Developers Console [project ID or project |
- * number](https://developers.google.com/console/help/new/#projectnumber). |
- * |
- * [zone] - The name of the Google Compute Engine |
- * [zone](/compute/docs/zones#available) in which the cluster |
- * resides. |
- * |
- * [clusterId] - The name of the cluster. |
- * |
- * [nodePoolId] - The name of the node pool to delete. |
- * |
- * Completes with a [Operation]. |
- * |
- * 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<Operation> delete(core.String projectId, core.String zone, core.String clusterId, core.String nodePoolId) { |
+ /// Deletes a node pool from a cluster. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [projectId] - The Google Developers Console [project ID or project |
+ /// number](https://developers.google.com/console/help/new/#projectnumber). |
+ /// |
+ /// [zone] - The name of the Google Compute Engine |
+ /// [zone](/compute/docs/zones#available) in which the cluster |
+ /// resides. |
+ /// |
+ /// [clusterId] - The name of the cluster. |
+ /// |
+ /// [nodePoolId] - The name of the node pool to delete. |
+ /// |
+ /// Completes with a [Operation]. |
+ /// |
+ /// 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<Operation> delete(core.String projectId, core.String zone, |
+ core.String clusterId, core.String nodePoolId) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -1192,43 +1263,48 @@ class ProjectsZonesClustersNodePoolsResourceApi { |
throw new core.ArgumentError("Parameter nodePoolId is required."); |
} |
- _url = 'v1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/clusters/' + commons.Escaper.ecapeVariable('$clusterId') + '/nodePools/' + commons.Escaper.ecapeVariable('$nodePoolId'); |
- |
- var _response = _requester.request(_url, |
- "DELETE", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ _url = 'v1/projects/' + |
+ commons.Escaper.ecapeVariable('$projectId') + |
+ '/zones/' + |
+ commons.Escaper.ecapeVariable('$zone') + |
+ '/clusters/' + |
+ commons.Escaper.ecapeVariable('$clusterId') + |
+ '/nodePools/' + |
+ commons.Escaper.ecapeVariable('$nodePoolId'); |
+ |
+ var _response = _requester.request(_url, "DELETE", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => new Operation.fromJson(data)); |
} |
- /** |
- * Retrieves the node pool requested. |
- * |
- * Request parameters: |
- * |
- * [projectId] - The Google Developers Console [project ID or project |
- * number](https://developers.google.com/console/help/new/#projectnumber). |
- * |
- * [zone] - The name of the Google Compute Engine |
- * [zone](/compute/docs/zones#available) in which the cluster |
- * resides. |
- * |
- * [clusterId] - The name of the cluster. |
- * |
- * [nodePoolId] - The name of the node pool. |
- * |
- * Completes with a [NodePool]. |
- * |
- * 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<NodePool> get(core.String projectId, core.String zone, core.String clusterId, core.String nodePoolId) { |
+ /// Retrieves the node pool requested. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [projectId] - The Google Developers Console [project ID or project |
+ /// number](https://developers.google.com/console/help/new/#projectnumber). |
+ /// |
+ /// [zone] - The name of the Google Compute Engine |
+ /// [zone](/compute/docs/zones#available) in which the cluster |
+ /// resides. |
+ /// |
+ /// [clusterId] - The name of the cluster. |
+ /// |
+ /// [nodePoolId] - The name of the node pool. |
+ /// |
+ /// Completes with a [NodePool]. |
+ /// |
+ /// 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<NodePool> get(core.String projectId, core.String zone, |
+ core.String clusterId, core.String nodePoolId) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -1249,41 +1325,46 @@ class ProjectsZonesClustersNodePoolsResourceApi { |
throw new core.ArgumentError("Parameter nodePoolId is required."); |
} |
- _url = 'v1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/clusters/' + commons.Escaper.ecapeVariable('$clusterId') + '/nodePools/' + commons.Escaper.ecapeVariable('$nodePoolId'); |
- |
- var _response = _requester.request(_url, |
- "GET", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ _url = 'v1/projects/' + |
+ commons.Escaper.ecapeVariable('$projectId') + |
+ '/zones/' + |
+ commons.Escaper.ecapeVariable('$zone') + |
+ '/clusters/' + |
+ commons.Escaper.ecapeVariable('$clusterId') + |
+ '/nodePools/' + |
+ commons.Escaper.ecapeVariable('$nodePoolId'); |
+ |
+ var _response = _requester.request(_url, "GET", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => new NodePool.fromJson(data)); |
} |
- /** |
- * Lists the node pools for a cluster. |
- * |
- * Request parameters: |
- * |
- * [projectId] - The Google Developers Console [project ID or project |
- * number](https://developers.google.com/console/help/new/#projectnumber). |
- * |
- * [zone] - The name of the Google Compute Engine |
- * [zone](/compute/docs/zones#available) in which the cluster |
- * resides. |
- * |
- * [clusterId] - The name of the cluster. |
- * |
- * Completes with a [ListNodePoolsResponse]. |
- * |
- * 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<ListNodePoolsResponse> list(core.String projectId, core.String zone, core.String clusterId) { |
+ /// Lists the node pools for a cluster. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [projectId] - The Google Developers Console [project ID or project |
+ /// number](https://developers.google.com/console/help/new/#projectnumber). |
+ /// |
+ /// [zone] - The name of the Google Compute Engine |
+ /// [zone](/compute/docs/zones#available) in which the cluster |
+ /// resides. |
+ /// |
+ /// [clusterId] - The name of the cluster. |
+ /// |
+ /// Completes with a [ListNodePoolsResponse]. |
+ /// |
+ /// 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<ListNodePoolsResponse> list( |
+ core.String projectId, core.String zone, core.String clusterId) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -1301,46 +1382,54 @@ class ProjectsZonesClustersNodePoolsResourceApi { |
throw new core.ArgumentError("Parameter clusterId is required."); |
} |
- _url = 'v1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/clusters/' + commons.Escaper.ecapeVariable('$clusterId') + '/nodePools'; |
- |
- var _response = _requester.request(_url, |
- "GET", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ _url = 'v1/projects/' + |
+ commons.Escaper.ecapeVariable('$projectId') + |
+ '/zones/' + |
+ commons.Escaper.ecapeVariable('$zone') + |
+ '/clusters/' + |
+ commons.Escaper.ecapeVariable('$clusterId') + |
+ '/nodePools'; |
+ |
+ var _response = _requester.request(_url, "GET", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => new ListNodePoolsResponse.fromJson(data)); |
} |
- /** |
- * Roll back the previously Aborted or Failed NodePool upgrade. |
- * This will be an no-op if the last upgrade successfully completed. |
- * |
- * [request] - The metadata request object. |
- * |
- * Request parameters: |
- * |
- * [projectId] - The Google Developers Console [project ID or project |
- * number](https://support.google.com/cloud/answer/6158840). |
- * |
- * [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 rollback. |
- * |
- * [nodePoolId] - The name of the node pool to rollback. |
- * |
- * Completes with a [Operation]. |
- * |
- * 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<Operation> rollback(RollbackNodePoolUpgradeRequest request, core.String projectId, core.String zone, core.String clusterId, core.String nodePoolId) { |
+ /// Roll back the previously Aborted or Failed NodePool upgrade. |
+ /// This will be an no-op if the last upgrade successfully completed. |
+ /// |
+ /// [request] - The metadata request object. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [projectId] - The Google Developers Console [project ID or project |
+ /// number](https://support.google.com/cloud/answer/6158840). |
+ /// |
+ /// [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 rollback. |
+ /// |
+ /// [nodePoolId] - The name of the node pool to rollback. |
+ /// |
+ /// Completes with a [Operation]. |
+ /// |
+ /// 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<Operation> rollback( |
+ RollbackNodePoolUpgradeRequest request, |
+ core.String projectId, |
+ core.String zone, |
+ core.String clusterId, |
+ core.String nodePoolId) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -1364,45 +1453,55 @@ class ProjectsZonesClustersNodePoolsResourceApi { |
throw new core.ArgumentError("Parameter nodePoolId is required."); |
} |
- _url = 'v1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/clusters/' + commons.Escaper.ecapeVariable('$clusterId') + '/nodePools/' + commons.Escaper.ecapeVariable('$nodePoolId') + ':rollback'; |
- |
- var _response = _requester.request(_url, |
- "POST", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ _url = 'v1/projects/' + |
+ commons.Escaper.ecapeVariable('$projectId') + |
+ '/zones/' + |
+ commons.Escaper.ecapeVariable('$zone') + |
+ '/clusters/' + |
+ commons.Escaper.ecapeVariable('$clusterId') + |
+ '/nodePools/' + |
+ commons.Escaper.ecapeVariable('$nodePoolId') + |
+ ':rollback'; |
+ |
+ var _response = _requester.request(_url, "POST", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => new Operation.fromJson(data)); |
} |
- /** |
- * Sets the NodeManagement options for a node pool. |
- * |
- * [request] - The metadata request object. |
- * |
- * Request parameters: |
- * |
- * [projectId] - The Google Developers Console [project ID or project |
- * number](https://support.google.com/cloud/answer/6158840). |
- * |
- * [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 update. |
- * |
- * [nodePoolId] - The name of the node pool to update. |
- * |
- * Completes with a [Operation]. |
- * |
- * 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<Operation> setManagement(SetNodePoolManagementRequest request, core.String projectId, core.String zone, core.String clusterId, core.String nodePoolId) { |
+ /// Sets the NodeManagement options for a node pool. |
+ /// |
+ /// [request] - The metadata request object. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [projectId] - The Google Developers Console [project ID or project |
+ /// number](https://support.google.com/cloud/answer/6158840). |
+ /// |
+ /// [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 update. |
+ /// |
+ /// [nodePoolId] - The name of the node pool to update. |
+ /// |
+ /// Completes with a [Operation]. |
+ /// |
+ /// 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<Operation> setManagement( |
+ SetNodePoolManagementRequest request, |
+ core.String projectId, |
+ core.String zone, |
+ core.String clusterId, |
+ core.String nodePoolId) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -1426,45 +1525,55 @@ class ProjectsZonesClustersNodePoolsResourceApi { |
throw new core.ArgumentError("Parameter nodePoolId is required."); |
} |
- _url = 'v1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/clusters/' + commons.Escaper.ecapeVariable('$clusterId') + '/nodePools/' + commons.Escaper.ecapeVariable('$nodePoolId') + '/setManagement'; |
- |
- var _response = _requester.request(_url, |
- "POST", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ _url = 'v1/projects/' + |
+ commons.Escaper.ecapeVariable('$projectId') + |
+ '/zones/' + |
+ commons.Escaper.ecapeVariable('$zone') + |
+ '/clusters/' + |
+ commons.Escaper.ecapeVariable('$clusterId') + |
+ '/nodePools/' + |
+ commons.Escaper.ecapeVariable('$nodePoolId') + |
+ '/setManagement'; |
+ |
+ var _response = _requester.request(_url, "POST", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => new Operation.fromJson(data)); |
} |
- /** |
- * Sets the size of a specific node pool. |
- * |
- * [request] - The metadata request object. |
- * |
- * Request parameters: |
- * |
- * [projectId] - The Google Developers Console [project ID or project |
- * number](https://support.google.com/cloud/answer/6158840). |
- * |
- * [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 update. |
- * |
- * [nodePoolId] - The name of the node pool to update. |
- * |
- * Completes with a [Operation]. |
- * |
- * 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<Operation> setSize(SetNodePoolSizeRequest request, core.String projectId, core.String zone, core.String clusterId, core.String nodePoolId) { |
+ /// Sets the size of a specific node pool. |
+ /// |
+ /// [request] - The metadata request object. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [projectId] - The Google Developers Console [project ID or project |
+ /// number](https://support.google.com/cloud/answer/6158840). |
+ /// |
+ /// [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 update. |
+ /// |
+ /// [nodePoolId] - The name of the node pool to update. |
+ /// |
+ /// Completes with a [Operation]. |
+ /// |
+ /// 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<Operation> setSize( |
+ SetNodePoolSizeRequest request, |
+ core.String projectId, |
+ core.String zone, |
+ core.String clusterId, |
+ core.String nodePoolId) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -1488,45 +1597,55 @@ class ProjectsZonesClustersNodePoolsResourceApi { |
throw new core.ArgumentError("Parameter nodePoolId is required."); |
} |
- _url = 'v1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/clusters/' + commons.Escaper.ecapeVariable('$clusterId') + '/nodePools/' + commons.Escaper.ecapeVariable('$nodePoolId') + '/setSize'; |
- |
- var _response = _requester.request(_url, |
- "POST", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ _url = 'v1/projects/' + |
+ commons.Escaper.ecapeVariable('$projectId') + |
+ '/zones/' + |
+ commons.Escaper.ecapeVariable('$zone') + |
+ '/clusters/' + |
+ commons.Escaper.ecapeVariable('$clusterId') + |
+ '/nodePools/' + |
+ commons.Escaper.ecapeVariable('$nodePoolId') + |
+ '/setSize'; |
+ |
+ var _response = _requester.request(_url, "POST", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => new Operation.fromJson(data)); |
} |
- /** |
- * Updates the version and/or image type of a specific node pool. |
- * |
- * [request] - The metadata request object. |
- * |
- * Request parameters: |
- * |
- * [projectId] - The Google Developers Console [project ID or project |
- * number](https://support.google.com/cloud/answer/6158840). |
- * |
- * [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 upgrade. |
- * |
- * [nodePoolId] - The name of the node pool to upgrade. |
- * |
- * Completes with a [Operation]. |
- * |
- * 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<Operation> update(UpdateNodePoolRequest request, core.String projectId, core.String zone, core.String clusterId, core.String nodePoolId) { |
+ /// Updates the version and/or image type of a specific node pool. |
+ /// |
+ /// [request] - The metadata request object. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [projectId] - The Google Developers Console [project ID or project |
+ /// number](https://support.google.com/cloud/answer/6158840). |
+ /// |
+ /// [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 upgrade. |
+ /// |
+ /// [nodePoolId] - The name of the node pool to upgrade. |
+ /// |
+ /// Completes with a [Operation]. |
+ /// |
+ /// 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<Operation> update( |
+ UpdateNodePoolRequest request, |
+ core.String projectId, |
+ core.String zone, |
+ core.String clusterId, |
+ core.String nodePoolId) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -1550,51 +1669,55 @@ class ProjectsZonesClustersNodePoolsResourceApi { |
throw new core.ArgumentError("Parameter nodePoolId is required."); |
} |
- _url = 'v1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/clusters/' + commons.Escaper.ecapeVariable('$clusterId') + '/nodePools/' + commons.Escaper.ecapeVariable('$nodePoolId') + '/update'; |
- |
- var _response = _requester.request(_url, |
- "POST", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ _url = 'v1/projects/' + |
+ commons.Escaper.ecapeVariable('$projectId') + |
+ '/zones/' + |
+ commons.Escaper.ecapeVariable('$zone') + |
+ '/clusters/' + |
+ commons.Escaper.ecapeVariable('$clusterId') + |
+ '/nodePools/' + |
+ commons.Escaper.ecapeVariable('$nodePoolId') + |
+ '/update'; |
+ |
+ var _response = _requester.request(_url, "POST", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => new Operation.fromJson(data)); |
} |
- |
} |
- |
class ProjectsZonesOperationsResourceApi { |
final commons.ApiRequester _requester; |
- ProjectsZonesOperationsResourceApi(commons.ApiRequester client) : |
- _requester = client; |
- |
- /** |
- * Cancels the specified operation. |
- * |
- * [request] - The metadata request object. |
- * |
- * Request parameters: |
- * |
- * [projectId] - The Google Developers Console [project ID or project |
- * number](https://support.google.com/cloud/answer/6158840). |
- * |
- * [zone] - The name of the Google Compute Engine |
- * [zone](/compute/docs/zones#available) in which the operation resides. |
- * |
- * [operationId] - The server-assigned `name` of the operation. |
- * |
- * Completes with a [Empty]. |
- * |
- * 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<Empty> cancel(CancelOperationRequest request, core.String projectId, core.String zone, core.String operationId) { |
+ ProjectsZonesOperationsResourceApi(commons.ApiRequester client) |
+ : _requester = client; |
+ |
+ /// Cancels the specified operation. |
+ /// |
+ /// [request] - The metadata request object. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [projectId] - The Google Developers Console [project ID or project |
+ /// number](https://support.google.com/cloud/answer/6158840). |
+ /// |
+ /// [zone] - The name of the Google Compute Engine |
+ /// [zone](/compute/docs/zones#available) in which the operation resides. |
+ /// |
+ /// [operationId] - The server-assigned `name` of the operation. |
+ /// |
+ /// Completes with a [Empty]. |
+ /// |
+ /// 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<Empty> cancel(CancelOperationRequest request, |
+ core.String projectId, core.String zone, core.String operationId) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -1615,41 +1738,45 @@ class ProjectsZonesOperationsResourceApi { |
throw new core.ArgumentError("Parameter operationId is required."); |
} |
- _url = 'v1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/operations/' + commons.Escaper.ecapeVariable('$operationId') + ':cancel'; |
- |
- var _response = _requester.request(_url, |
- "POST", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ _url = 'v1/projects/' + |
+ commons.Escaper.ecapeVariable('$projectId') + |
+ '/zones/' + |
+ commons.Escaper.ecapeVariable('$zone') + |
+ '/operations/' + |
+ commons.Escaper.ecapeVariable('$operationId') + |
+ ':cancel'; |
+ |
+ var _response = _requester.request(_url, "POST", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => new Empty.fromJson(data)); |
} |
- /** |
- * Gets the specified operation. |
- * |
- * Request parameters: |
- * |
- * [projectId] - The Google Developers Console [project ID or project |
- * number](https://support.google.com/cloud/answer/6158840). |
- * |
- * [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. |
- * |
- * Completes with a [Operation]. |
- * |
- * 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<Operation> get(core.String projectId, core.String zone, core.String operationId) { |
+ /// Gets the specified operation. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [projectId] - The Google Developers Console [project ID or project |
+ /// number](https://support.google.com/cloud/answer/6158840). |
+ /// |
+ /// [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. |
+ /// |
+ /// Completes with a [Operation]. |
+ /// |
+ /// 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<Operation> get( |
+ core.String projectId, core.String zone, core.String operationId) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -1667,39 +1794,42 @@ class ProjectsZonesOperationsResourceApi { |
throw new core.ArgumentError("Parameter operationId is required."); |
} |
- _url = 'v1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/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", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ var _response = _requester.request(_url, "GET", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => new Operation.fromJson(data)); |
} |
- /** |
- * 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](https://support.google.com/cloud/answer/6158840). |
- * |
- * [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]. |
- * |
- * 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<ListOperationsResponse> list(core.String projectId, core.String 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](https://support.google.com/cloud/answer/6158840). |
+ /// |
+ /// [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]. |
+ /// |
+ /// 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<ListOperationsResponse> list( |
+ core.String projectId, core.String zone) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -1714,30 +1844,29 @@ class ProjectsZonesOperationsResourceApi { |
throw new core.ArgumentError("Parameter zone is required."); |
} |
- _url = 'v1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/operations'; |
+ _url = 'v1/projects/' + |
+ commons.Escaper.ecapeVariable('$projectId') + |
+ '/zones/' + |
+ commons.Escaper.ecapeVariable('$zone') + |
+ '/operations'; |
- var _response = _requester.request(_url, |
- "GET", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ var _response = _requester.request(_url, "GET", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => new ListOperationsResponse.fromJson(data)); |
} |
- |
} |
- |
- |
-/** AcceleratorConfig represents a Hardware Accelerator request. */ |
+/// AcceleratorConfig represents a Hardware Accelerator request. |
class AcceleratorConfig { |
- /** The number of the accelerator cards exposed to an instance. */ |
+ /// The number of the accelerator cards exposed to an instance. |
core.String acceleratorCount; |
- /** |
- * The accelerator type resource name. List of supported accelerators |
- * [here](/compute/docs/gpus/#Introduction) |
- */ |
+ |
+ /// The accelerator type resource name. List of supported accelerators |
+ /// [here](/compute/docs/gpus/#Introduction) |
core.String acceleratorType; |
AcceleratorConfig(); |
@@ -1752,7 +1881,8 @@ class AcceleratorConfig { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (acceleratorCount != null) { |
_json["acceleratorCount"] = acceleratorCount; |
} |
@@ -1763,41 +1893,42 @@ class AcceleratorConfig { |
} |
} |
-/** |
- * Configuration for the addons that can be automatically spun up in the |
- * cluster, enabling additional functionality. |
- */ |
+/// Configuration for the addons that can be automatically spun up in the |
+/// cluster, enabling additional functionality. |
class AddonsConfig { |
- /** |
- * Configuration for the horizontal pod autoscaling feature, which |
- * increases or decreases the number of replica pods a replication controller |
- * has based on the resource usage of the existing pods. |
- */ |
+ /// Configuration for the horizontal pod autoscaling feature, which |
+ /// increases or decreases the number of replica pods a replication |
+ /// controller |
+ /// has based on the resource usage of the existing pods. |
HorizontalPodAutoscaling horizontalPodAutoscaling; |
- /** |
- * Configuration for the HTTP (L7) load balancing controller addon, which |
- * makes it easy to set up HTTP load balancers for services in a cluster. |
- */ |
+ |
+ /// Configuration for the HTTP (L7) load balancing controller addon, which |
+ /// makes it easy to set up HTTP load balancers for services in a cluster. |
HttpLoadBalancing httpLoadBalancing; |
- /** Configuration for the Kubernetes Dashboard. */ |
+ |
+ /// Configuration for the Kubernetes Dashboard. |
KubernetesDashboard kubernetesDashboard; |
AddonsConfig(); |
AddonsConfig.fromJson(core.Map _json) { |
if (_json.containsKey("horizontalPodAutoscaling")) { |
- horizontalPodAutoscaling = new HorizontalPodAutoscaling.fromJson(_json["horizontalPodAutoscaling"]); |
+ horizontalPodAutoscaling = new HorizontalPodAutoscaling.fromJson( |
+ _json["horizontalPodAutoscaling"]); |
} |
if (_json.containsKey("httpLoadBalancing")) { |
- httpLoadBalancing = new HttpLoadBalancing.fromJson(_json["httpLoadBalancing"]); |
+ httpLoadBalancing = |
+ new HttpLoadBalancing.fromJson(_json["httpLoadBalancing"]); |
} |
if (_json.containsKey("kubernetesDashboard")) { |
- kubernetesDashboard = new KubernetesDashboard.fromJson(_json["kubernetesDashboard"]); |
+ kubernetesDashboard = |
+ new KubernetesDashboard.fromJson(_json["kubernetesDashboard"]); |
} |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (horizontalPodAutoscaling != null) { |
_json["horizontalPodAutoscaling"] = (horizontalPodAutoscaling).toJson(); |
} |
@@ -1811,21 +1942,16 @@ class AddonsConfig { |
} |
} |
-/** |
- * AutoUpgradeOptions defines the set of options for the user to control how |
- * the Auto Upgrades will proceed. |
- */ |
+/// AutoUpgradeOptions defines the set of options for the user to control how |
+/// the Auto Upgrades will proceed. |
class AutoUpgradeOptions { |
- /** |
- * [Output only] This field is set when upgrades are about to commence |
- * with the approximate start time for the upgrades, in |
- * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. |
- */ |
+ /// [Output only] This field is set when upgrades are about to commence |
+ /// with the approximate start time for the upgrades, in |
+ /// [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. |
core.String autoUpgradeStartTime; |
- /** |
- * [Output only] This field is set when upgrades are about to commence |
- * with the description of the upgrade. |
- */ |
+ |
+ /// [Output only] This field is set when upgrades are about to commence |
+ /// with the description of the upgrade. |
core.String description; |
AutoUpgradeOptions(); |
@@ -1840,7 +1966,8 @@ class AutoUpgradeOptions { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (autoUpgradeStartTime != null) { |
_json["autoUpgradeStartTime"] = autoUpgradeStartTime; |
} |
@@ -1851,25 +1978,25 @@ class AutoUpgradeOptions { |
} |
} |
-/** CancelOperationRequest cancels a single operation. */ |
+/// CancelOperationRequest cancels a single operation. |
class CancelOperationRequest { |
- |
CancelOperationRequest(); |
- CancelOperationRequest.fromJson(core.Map _json) { |
- } |
+ CancelOperationRequest.fromJson(core.Map _json) {} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
return _json; |
} |
} |
-/** CidrBlock contains an optional name and one CIDR block. */ |
+/// CidrBlock contains an optional name and one CIDR block. |
class CidrBlock { |
- /** cidr_block must be specified in CIDR notation. */ |
+ /// cidr_block must be specified in CIDR notation. |
core.String cidrBlock; |
- /** display_name is an optional field for users to identify CIDR blocks. */ |
+ |
+ /// display_name is an optional field for users to identify CIDR blocks. |
core.String displayName; |
CidrBlock(); |
@@ -1884,7 +2011,8 @@ class CidrBlock { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (cidrBlock != null) { |
_json["cidrBlock"] = cidrBlock; |
} |
@@ -1895,9 +2023,9 @@ class CidrBlock { |
} |
} |
-/** Configuration for client certificates on the cluster. */ |
+/// Configuration for client certificates on the cluster. |
class ClientCertificateConfig { |
- /** Issue a client certificate. */ |
+ /// Issue a client certificate. |
core.bool issueClientCertificate; |
ClientCertificateConfig(); |
@@ -1909,7 +2037,8 @@ class ClientCertificateConfig { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (issueClientCertificate != null) { |
_json["issueClientCertificate"] = issueClientCertificate; |
} |
@@ -1917,210 +2046,201 @@ class ClientCertificateConfig { |
} |
} |
-/** A Google Container Engine cluster. */ |
+/// A Google Container Engine cluster. |
class Cluster { |
- /** Configurations for the various addons available to run in the cluster. */ |
+ /// Configurations for the various addons available to run in the cluster. |
AddonsConfig addonsConfig; |
- /** |
- * 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`. |
- */ |
+ |
+ /// 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`. |
core.String clusterIpv4Cidr; |
- /** |
- * [Output only] The time the cluster was created, in |
- * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. |
- */ |
+ |
+ /// [Output only] The time the cluster was created, in |
+ /// [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. |
core.String createTime; |
- /** [Output only] The current software version of the master endpoint. */ |
+ |
+ /// [Output only] The current software version of the master endpoint. |
core.String currentMasterVersion; |
- /** [Output only] The number of nodes currently in the cluster. */ |
+ |
+ /// [Output only] The number of nodes currently in the cluster. |
core.int currentNodeCount; |
- /** |
- * [Output only] The current version of the node software components. |
- * If they are currently at multiple versions because they're in the process |
- * of being upgraded, this reflects the minimum version of all nodes. |
- */ |
+ |
+ /// [Output only] The current version of the node software components. |
+ /// If they are currently at multiple versions because they're in the process |
+ /// of being upgraded, this reflects the minimum version of all nodes. |
core.String currentNodeVersion; |
- /** An optional description of this cluster. */ |
+ |
+ /// An optional description of this cluster. |
core.String description; |
- /** |
- * Kubernetes alpha features are enabled on this cluster. This includes alpha |
- * API groups (e.g. v1alpha1) and features that may not be production ready in |
- * the kubernetes version of the master and nodes. |
- * The cluster has no SLA for uptime and master/node upgrades are disabled. |
- * Alpha enabled clusters are automatically deleted thirty days after |
- * creation. |
- */ |
+ |
+ /// Kubernetes alpha features are enabled on this cluster. This includes |
+ /// alpha |
+ /// API groups (e.g. v1alpha1) and features that may not be production ready |
+ /// in |
+ /// the kubernetes version of the master and nodes. |
+ /// The cluster has no SLA for uptime and master/node upgrades are disabled. |
+ /// Alpha enabled clusters are automatically deleted thirty days after |
+ /// creation. |
core.bool enableKubernetesAlpha; |
- /** |
- * [Output only] The IP address of this cluster's master endpoint. |
- * The endpoint can be accessed from the internet at |
- * `https://username:password@endpoint/`. |
- * |
- * See the `masterAuth` property of this resource for username and |
- * password information. |
- */ |
+ |
+ /// [Output only] The IP address of this cluster's master endpoint. |
+ /// The endpoint can be accessed from the internet at |
+ /// `https://username:password@endpoint/`. |
+ /// |
+ /// See the `masterAuth` property of this resource for username and |
+ /// password information. |
core.String endpoint; |
- /** |
- * [Output only] The time the cluster will be automatically |
- * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. |
- */ |
+ |
+ /// [Output only] The time the cluster will be automatically |
+ /// deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. |
core.String expireTime; |
- /** |
- * The initial Kubernetes version for this cluster. Valid versions are those |
- * found in validMasterVersions returned by getServerConfig. The version can |
- * be upgraded over time; such upgrades are reflected in |
- * currentMasterVersion and currentNodeVersion. |
- */ |
+ |
+ /// The initial Kubernetes version for this cluster. Valid versions are |
+ /// those |
+ /// found in validMasterVersions returned by getServerConfig. The version |
+ /// can |
+ /// be upgraded over time; such upgrades are reflected in |
+ /// currentMasterVersion and currentNodeVersion. |
core.String initialClusterVersion; |
- /** |
- * The number of nodes to create in this cluster. You must ensure that your |
- * Compute Engine <a href="/compute/docs/resource-quotas">resource quota</a> |
- * is sufficient for this number of instances. You must also have available |
- * firewall and routes quota. |
- * For requests, this field should only be used in lieu of a |
- * "node_pool" object, since this configuration (along with the |
- * "node_config") will be used to create a "NodePool" object with an |
- * auto-generated name. Do not use this and a node_pool at the same time. |
- */ |
+ |
+ /// The number of nodes to create in this cluster. You must ensure that your |
+ /// Compute Engine <a href="/compute/docs/resource-quotas">resource quota</a> |
+ /// is sufficient for this number of instances. You must also have available |
+ /// firewall and routes quota. |
+ /// For requests, this field should only be used in lieu of a |
+ /// "node_pool" object, since this configuration (along with the |
+ /// "node_config") will be used to create a "NodePool" object with an |
+ /// auto-generated name. Do not use this and a node_pool at the same time. |
core.int initialNodeCount; |
- /** |
- * [Output only] The resource URLs of [instance |
- * groups](/compute/docs/instance-groups/) associated with this |
- * cluster. |
- */ |
+ |
+ /// [Output only] The resource URLs of [instance |
+ /// groups](/compute/docs/instance-groups/) associated with this |
+ /// cluster. |
core.List<core.String> instanceGroupUrls; |
- /** Configuration for cluster IP allocation. */ |
+ |
+ /// Configuration for cluster IP allocation. |
IPAllocationPolicy ipAllocationPolicy; |
- /** The fingerprint of the set of labels for this cluster. */ |
+ |
+ /// The fingerprint of the set of labels for this cluster. |
core.String labelFingerprint; |
- /** Configuration for the legacy ABAC authorization mode. */ |
+ |
+ /// Configuration for the legacy ABAC authorization mode. |
LegacyAbac legacyAbac; |
- /** |
- * The list of Google Compute Engine |
- * [locations](/compute/docs/zones#available) in which the cluster's nodes |
- * should be located. |
- */ |
+ |
+ /// The list of Google Compute Engine |
+ /// [locations](/compute/docs/zones#available) in which the cluster's nodes |
+ /// should be located. |
core.List<core.String> locations; |
- /** |
- * The logging service the cluster should use to write logs. |
- * Currently available options: |
- * |
- * * `logging.googleapis.com` - the Google Cloud Logging service. |
- * * `none` - no logs will be exported from the cluster. |
- * * if left as an empty string,`logging.googleapis.com` will be used. |
- */ |
+ |
+ /// The logging service the cluster should use to write logs. |
+ /// Currently available options: |
+ /// |
+ /// * `logging.googleapis.com` - the Google Cloud Logging service. |
+ /// * `none` - no logs will be exported from the cluster. |
+ /// * if left as an empty string,`logging.googleapis.com` will be used. |
core.String loggingService; |
- /** The authentication information for accessing the master endpoint. */ |
+ |
+ /// The authentication information for accessing the master endpoint. |
MasterAuth masterAuth; |
- /** |
- * Master authorized networks is a Beta feature. |
- * The configuration options for master authorized networks feature. |
- */ |
+ |
+ /// Master authorized networks is a Beta feature. |
+ /// The configuration options for master authorized networks feature. |
MasterAuthorizedNetworksConfig masterAuthorizedNetworksConfig; |
- /** |
- * The monitoring service the cluster should use to write metrics. |
- * Currently available options: |
- * |
- * * `monitoring.googleapis.com` - the Google Cloud Monitoring service. |
- * * `none` - no metrics will be exported from the cluster. |
- * * if left as an empty string, `monitoring.googleapis.com` will be used. |
- */ |
+ |
+ /// The monitoring service the cluster should use to write metrics. |
+ /// Currently available options: |
+ /// |
+ /// * `monitoring.googleapis.com` - the Google Cloud Monitoring service. |
+ /// * `none` - no metrics will be exported from the cluster. |
+ /// * if left as an empty string, `monitoring.googleapis.com` will be used. |
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. |
- */ |
+ |
+ /// 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. |
core.String name; |
- /** |
- * The name of the Google Compute Engine |
- * [network](/compute/docs/networks-and-firewalls#networks) to which the |
- * cluster is connected. If left unspecified, the `default` network |
- * will be used. |
- */ |
+ |
+ /// The name of the Google Compute Engine |
+ /// [network](/compute/docs/networks-and-firewalls#networks) to which the |
+ /// cluster is connected. If left unspecified, the `default` network |
+ /// will be used. |
core.String network; |
- /** Configuration options for the NetworkPolicy feature. */ |
+ |
+ /// Configuration options for the NetworkPolicy feature. |
NetworkPolicy networkPolicy; |
- /** |
- * Parameters used in creating the cluster's nodes. |
- * See `nodeConfig` for the description of its properties. |
- * For requests, this field should only be used in lieu of a |
- * "node_pool" object, since this configuration (along with the |
- * "initial_node_count") will be used to create a "NodePool" object with an |
- * auto-generated name. Do not use this and a node_pool at the same time. |
- * For responses, this field will be populated with the node configuration of |
- * the first node pool. |
- * |
- * If unspecified, the defaults are used. |
- */ |
+ |
+ /// Parameters used in creating the cluster's nodes. |
+ /// See `nodeConfig` for the description of its properties. |
+ /// For requests, this field should only be used in lieu of a |
+ /// "node_pool" object, since this configuration (along with the |
+ /// "initial_node_count") will be used to create a "NodePool" object with an |
+ /// auto-generated name. Do not use this and a node_pool at the same time. |
+ /// For responses, this field will be populated with the node configuration |
+ /// of |
+ /// the first node pool. |
+ /// |
+ /// If unspecified, the defaults are used. |
NodeConfig nodeConfig; |
- /** |
- * [Output only] The size of the address space on each node for hosting |
- * containers. This is provisioned from within the `container_ipv4_cidr` |
- * range. |
- */ |
+ |
+ /// [Output only] The size of the address space on each node for hosting |
+ /// containers. This is provisioned from within the `container_ipv4_cidr` |
+ /// range. |
core.int nodeIpv4CidrSize; |
- /** |
- * The node pools associated with this cluster. |
- * This field should not be set if "node_config" or "initial_node_count" are |
- * specified. |
- */ |
+ |
+ /// The node pools associated with this cluster. |
+ /// This field should not be set if "node_config" or "initial_node_count" are |
+ /// specified. |
core.List<NodePool> nodePools; |
- /** |
- * The resource labels for the cluster to use to annotate any related |
- * Google Compute Engine resources. |
- */ |
+ |
+ /// The resource labels for the cluster to use to annotate any related |
+ /// Google Compute Engine resources. |
core.Map<core.String, core.String> resourceLabels; |
- /** [Output only] Server-defined URL for the resource. */ |
+ |
+ /// [Output only] Server-defined URL for the resource. |
core.String selfLink; |
- /** |
- * [Output only] The IP address range of the Kubernetes services in |
- * this cluster, in |
- * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) |
- * notation (e.g. `1.2.3.4/29`). Service addresses are |
- * typically put in the last `/16` from the container CIDR. |
- */ |
+ |
+ /// [Output only] The IP address range of the Kubernetes services in |
+ /// this cluster, in |
+ /// [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) |
+ /// notation (e.g. `1.2.3.4/29`). Service addresses are |
+ /// typically put in the last `/16` from the container CIDR. |
core.String servicesIpv4Cidr; |
- /** |
- * [Output only] The current status of this cluster. |
- * Possible string values are: |
- * - "STATUS_UNSPECIFIED" : Not set. |
- * - "PROVISIONING" : The PROVISIONING state indicates the cluster is being |
- * created. |
- * - "RUNNING" : The RUNNING state indicates the cluster has been created and |
- * is fully |
- * usable. |
- * - "RECONCILING" : The RECONCILING state indicates that some work is |
- * actively being done on |
- * the cluster, such as upgrading the master or node software. Details can |
- * be found in the `statusMessage` field. |
- * - "STOPPING" : The STOPPING state indicates the cluster is being deleted. |
- * - "ERROR" : The ERROR state indicates the cluster may be unusable. Details |
- * can be found in the `statusMessage` field. |
- */ |
+ |
+ /// [Output only] The current status of this cluster. |
+ /// Possible string values are: |
+ /// - "STATUS_UNSPECIFIED" : Not set. |
+ /// - "PROVISIONING" : The PROVISIONING state indicates the cluster is being |
+ /// created. |
+ /// - "RUNNING" : The RUNNING state indicates the cluster has been created |
+ /// and is fully |
+ /// usable. |
+ /// - "RECONCILING" : The RECONCILING state indicates that some work is |
+ /// actively being done on |
+ /// the cluster, such as upgrading the master or node software. Details can |
+ /// be found in the `statusMessage` field. |
+ /// - "STOPPING" : The STOPPING state indicates the cluster is being deleted. |
+ /// - "ERROR" : The ERROR state indicates the cluster may be unusable. |
+ /// Details |
+ /// can be found in the `statusMessage` field. |
core.String status; |
- /** |
- * [Output only] Additional information about the current status of this |
- * cluster, if available. |
- */ |
+ |
+ /// [Output only] Additional information about the current status of this |
+ /// cluster, if available. |
core.String statusMessage; |
- /** |
- * The name of the Google Compute Engine |
- * [subnetwork](/compute/docs/subnetworks) to which the |
- * cluster is connected. |
- */ |
+ |
+ /// The name of the Google Compute Engine |
+ /// [subnetwork](/compute/docs/subnetworks) to which the |
+ /// cluster is connected. |
core.String subnetwork; |
- /** |
- * [Output only] The name of the Google Compute Engine |
- * [zone](/compute/docs/zones#available) in which the cluster |
- * resides. |
- */ |
+ |
+ /// [Output only] The name of the Google Compute Engine |
+ /// [zone](/compute/docs/zones#available) in which the cluster |
+ /// resides. |
core.String zone; |
Cluster(); |
@@ -2166,7 +2286,8 @@ class Cluster { |
instanceGroupUrls = _json["instanceGroupUrls"]; |
} |
if (_json.containsKey("ipAllocationPolicy")) { |
- ipAllocationPolicy = new IPAllocationPolicy.fromJson(_json["ipAllocationPolicy"]); |
+ ipAllocationPolicy = |
+ new IPAllocationPolicy.fromJson(_json["ipAllocationPolicy"]); |
} |
if (_json.containsKey("labelFingerprint")) { |
labelFingerprint = _json["labelFingerprint"]; |
@@ -2184,7 +2305,9 @@ class Cluster { |
masterAuth = new MasterAuth.fromJson(_json["masterAuth"]); |
} |
if (_json.containsKey("masterAuthorizedNetworksConfig")) { |
- masterAuthorizedNetworksConfig = new MasterAuthorizedNetworksConfig.fromJson(_json["masterAuthorizedNetworksConfig"]); |
+ masterAuthorizedNetworksConfig = |
+ new MasterAuthorizedNetworksConfig.fromJson( |
+ _json["masterAuthorizedNetworksConfig"]); |
} |
if (_json.containsKey("monitoringService")) { |
monitoringService = _json["monitoringService"]; |
@@ -2205,7 +2328,9 @@ class Cluster { |
nodeIpv4CidrSize = _json["nodeIpv4CidrSize"]; |
} |
if (_json.containsKey("nodePools")) { |
- nodePools = _json["nodePools"].map((value) => new NodePool.fromJson(value)).toList(); |
+ nodePools = _json["nodePools"] |
+ .map((value) => new NodePool.fromJson(value)) |
+ .toList(); |
} |
if (_json.containsKey("resourceLabels")) { |
resourceLabels = _json["resourceLabels"]; |
@@ -2231,7 +2356,8 @@ class Cluster { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (addonsConfig != null) { |
_json["addonsConfig"] = (addonsConfig).toJson(); |
} |
@@ -2290,7 +2416,8 @@ class Cluster { |
_json["masterAuth"] = (masterAuth).toJson(); |
} |
if (masterAuthorizedNetworksConfig != null) { |
- _json["masterAuthorizedNetworksConfig"] = (masterAuthorizedNetworksConfig).toJson(); |
+ _json["masterAuthorizedNetworksConfig"] = |
+ (masterAuthorizedNetworksConfig).toJson(); |
} |
if (monitoringService != null) { |
_json["monitoringService"] = monitoringService; |
@@ -2338,74 +2465,66 @@ class Cluster { |
} |
} |
-/** |
- * ClusterUpdate describes an update to the cluster. Exactly one update can |
- * be applied to a cluster with each request, so at most one field can be |
- * provided. |
- */ |
+/// ClusterUpdate describes an update to the cluster. Exactly one update can |
+/// be applied to a cluster with each request, so at most one field can be |
+/// provided. |
class ClusterUpdate { |
- /** Configurations for the various addons available to run in the cluster. */ |
+ /// Configurations for the various addons available to run in the cluster. |
AddonsConfig desiredAddonsConfig; |
- /** |
- * The desired image type for the node pool. |
- * NOTE: Set the "desired_node_pool" field as well. |
- */ |
+ |
+ /// The desired image type for the node pool. |
+ /// NOTE: Set the "desired_node_pool" field as well. |
core.String desiredImageType; |
- /** |
- * The desired list of Google Compute Engine |
- * [locations](/compute/docs/zones#available) in which the cluster's nodes |
- * should be located. Changing the locations a cluster is in will result |
- * in nodes being either created or removed from the cluster, depending on |
- * whether locations are being added or removed. |
- * |
- * This list must always include the cluster's primary zone. |
- */ |
+ |
+ /// The desired list of Google Compute Engine |
+ /// [locations](/compute/docs/zones#available) in which the cluster's nodes |
+ /// should be located. Changing the locations a cluster is in will result |
+ /// in nodes being either created or removed from the cluster, depending on |
+ /// whether locations are being added or removed. |
+ /// |
+ /// This list must always include the cluster's primary zone. |
core.List<core.String> desiredLocations; |
- /** |
- * Master authorized networks is a Beta feature. |
- * The desired configuration options for master authorized networks feature. |
- */ |
+ |
+ /// Master authorized networks is a Beta feature. |
+ /// The desired configuration options for master authorized networks feature. |
MasterAuthorizedNetworksConfig desiredMasterAuthorizedNetworksConfig; |
- /** |
- * The Kubernetes version to change the master to. The only valid value is the |
- * latest supported version. Use "-" to have the server automatically select |
- * the latest version. |
- */ |
+ |
+ /// The Kubernetes version to change the master to. The only valid value is |
+ /// the |
+ /// latest supported version. Use "-" to have the server automatically select |
+ /// the latest version. |
core.String desiredMasterVersion; |
- /** |
- * The monitoring service the cluster should use to write metrics. |
- * Currently available options: |
- * |
- * * "monitoring.googleapis.com" - the Google Cloud Monitoring service |
- * * "none" - no metrics will be exported from the cluster |
- */ |
+ |
+ /// The monitoring service the cluster should use to write metrics. |
+ /// Currently available options: |
+ /// |
+ /// * "monitoring.googleapis.com" - the Google Cloud Monitoring service |
+ /// * "none" - no metrics will be exported from the cluster |
core.String desiredMonitoringService; |
- /** |
- * Autoscaler configuration for the node pool specified in |
- * desired_node_pool_id. If there is only one pool in the |
- * cluster and desired_node_pool_id is not provided then |
- * the change applies to that single node pool. |
- */ |
+ |
+ /// Autoscaler configuration for the node pool specified in |
+ /// desired_node_pool_id. If there is only one pool in the |
+ /// cluster and desired_node_pool_id is not provided then |
+ /// the change applies to that single node pool. |
NodePoolAutoscaling desiredNodePoolAutoscaling; |
- /** |
- * The node pool to be upgraded. This field is mandatory if |
- * "desired_node_version", "desired_image_family" or |
- * "desired_node_pool_autoscaling" is specified and there is more than one |
- * node pool on the cluster. |
- */ |
+ |
+ /// The node pool to be upgraded. This field is mandatory if |
+ /// "desired_node_version", "desired_image_family" or |
+ /// "desired_node_pool_autoscaling" is specified and there is more than one |
+ /// node pool on the cluster. |
core.String desiredNodePoolId; |
- /** |
- * The Kubernetes version to change the nodes to (typically an |
- * upgrade). Use `-` to upgrade to the latest version supported by |
- * the server. |
- */ |
+ |
+ /// 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; |
ClusterUpdate(); |
ClusterUpdate.fromJson(core.Map _json) { |
if (_json.containsKey("desiredAddonsConfig")) { |
- desiredAddonsConfig = new AddonsConfig.fromJson(_json["desiredAddonsConfig"]); |
+ desiredAddonsConfig = |
+ new AddonsConfig.fromJson(_json["desiredAddonsConfig"]); |
} |
if (_json.containsKey("desiredImageType")) { |
desiredImageType = _json["desiredImageType"]; |
@@ -2414,7 +2533,9 @@ class ClusterUpdate { |
desiredLocations = _json["desiredLocations"]; |
} |
if (_json.containsKey("desiredMasterAuthorizedNetworksConfig")) { |
- desiredMasterAuthorizedNetworksConfig = new MasterAuthorizedNetworksConfig.fromJson(_json["desiredMasterAuthorizedNetworksConfig"]); |
+ desiredMasterAuthorizedNetworksConfig = |
+ new MasterAuthorizedNetworksConfig.fromJson( |
+ _json["desiredMasterAuthorizedNetworksConfig"]); |
} |
if (_json.containsKey("desiredMasterVersion")) { |
desiredMasterVersion = _json["desiredMasterVersion"]; |
@@ -2423,7 +2544,8 @@ class ClusterUpdate { |
desiredMonitoringService = _json["desiredMonitoringService"]; |
} |
if (_json.containsKey("desiredNodePoolAutoscaling")) { |
- desiredNodePoolAutoscaling = new NodePoolAutoscaling.fromJson(_json["desiredNodePoolAutoscaling"]); |
+ desiredNodePoolAutoscaling = |
+ new NodePoolAutoscaling.fromJson(_json["desiredNodePoolAutoscaling"]); |
} |
if (_json.containsKey("desiredNodePoolId")) { |
desiredNodePoolId = _json["desiredNodePoolId"]; |
@@ -2434,7 +2556,8 @@ class ClusterUpdate { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (desiredAddonsConfig != null) { |
_json["desiredAddonsConfig"] = (desiredAddonsConfig).toJson(); |
} |
@@ -2445,7 +2568,8 @@ class ClusterUpdate { |
_json["desiredLocations"] = desiredLocations; |
} |
if (desiredMasterAuthorizedNetworksConfig != null) { |
- _json["desiredMasterAuthorizedNetworksConfig"] = (desiredMasterAuthorizedNetworksConfig).toJson(); |
+ _json["desiredMasterAuthorizedNetworksConfig"] = |
+ (desiredMasterAuthorizedNetworksConfig).toJson(); |
} |
if (desiredMasterVersion != null) { |
_json["desiredMasterVersion"] = desiredMasterVersion; |
@@ -2454,7 +2578,8 @@ class ClusterUpdate { |
_json["desiredMonitoringService"] = desiredMonitoringService; |
} |
if (desiredNodePoolAutoscaling != null) { |
- _json["desiredNodePoolAutoscaling"] = (desiredNodePoolAutoscaling).toJson(); |
+ _json["desiredNodePoolAutoscaling"] = |
+ (desiredNodePoolAutoscaling).toJson(); |
} |
if (desiredNodePoolId != null) { |
_json["desiredNodePoolId"] = desiredNodePoolId; |
@@ -2466,28 +2591,24 @@ class ClusterUpdate { |
} |
} |
-/** |
- * CompleteIPRotationRequest moves the cluster master back into single-IP mode. |
- */ |
+/// CompleteIPRotationRequest moves the cluster master back into single-IP |
+/// mode. |
class CompleteIPRotationRequest { |
- |
CompleteIPRotationRequest(); |
- CompleteIPRotationRequest.fromJson(core.Map _json) { |
- } |
+ CompleteIPRotationRequest.fromJson(core.Map _json) {} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
return _json; |
} |
} |
-/** CreateClusterRequest creates a cluster. */ |
+/// CreateClusterRequest creates a cluster. |
class CreateClusterRequest { |
- /** |
- * A [cluster |
- * resource](/container-engine/reference/rest/v1/projects.zones.clusters) |
- */ |
+ /// A [cluster |
+ /// resource](/container-engine/reference/rest/v1/projects.zones.clusters) |
Cluster cluster; |
CreateClusterRequest(); |
@@ -2499,7 +2620,8 @@ class CreateClusterRequest { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (cluster != null) { |
_json["cluster"] = (cluster).toJson(); |
} |
@@ -2507,9 +2629,9 @@ class CreateClusterRequest { |
} |
} |
-/** CreateNodePoolRequest creates a node pool for a cluster. */ |
+/// CreateNodePoolRequest creates a node pool for a cluster. |
class CreateNodePoolRequest { |
- /** The node pool to create. */ |
+ /// The node pool to create. |
NodePool nodePool; |
CreateNodePoolRequest(); |
@@ -2521,7 +2643,8 @@ class CreateNodePoolRequest { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (nodePool != null) { |
_json["nodePool"] = (nodePool).toJson(); |
} |
@@ -2529,41 +2652,34 @@ class CreateNodePoolRequest { |
} |
} |
-/** |
- * A generic empty message that you can re-use to avoid defining duplicated |
- * empty messages in your APIs. A typical example is to use it as the request |
- * or the response type of an API method. For instance: |
- * |
- * service Foo { |
- * rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); |
- * } |
- * |
- * The JSON representation for `Empty` is empty JSON object `{}`. |
- */ |
+/// A generic empty message that you can re-use to avoid defining duplicated |
+/// empty messages in your APIs. A typical example is to use it as the request |
+/// or the response type of an API method. For instance: |
+/// |
+/// service Foo { |
+/// rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); |
+/// } |
+/// |
+/// The JSON representation for `Empty` is empty JSON object `{}`. |
class Empty { |
- |
Empty(); |
- Empty.fromJson(core.Map _json) { |
- } |
+ Empty.fromJson(core.Map _json) {} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
return _json; |
} |
} |
-/** |
- * Configuration options for the horizontal pod autoscaling feature, which |
- * increases or decreases the number of replica pods a replication controller |
- * has based on the resource usage of the existing pods. |
- */ |
+/// Configuration options for the horizontal pod autoscaling feature, which |
+/// increases or decreases the number of replica pods a replication controller |
+/// has based on the resource usage of the existing pods. |
class HorizontalPodAutoscaling { |
- /** |
- * Whether the Horizontal Pod Autoscaling feature is enabled in the cluster. |
- * When enabled, it ensures that a Heapster pod is running in the cluster, |
- * which is also used by the Cloud Monitoring service. |
- */ |
+ /// Whether the Horizontal Pod Autoscaling feature is enabled in the cluster. |
+ /// When enabled, it ensures that a Heapster pod is running in the cluster, |
+ /// which is also used by the Cloud Monitoring service. |
core.bool disabled; |
HorizontalPodAutoscaling(); |
@@ -2575,7 +2691,8 @@ class HorizontalPodAutoscaling { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (disabled != null) { |
_json["disabled"] = disabled; |
} |
@@ -2583,16 +2700,13 @@ class HorizontalPodAutoscaling { |
} |
} |
-/** |
- * Configuration options for the HTTP (L7) load balancing controller addon, |
- * which makes it easy to set up HTTP load balancers for services in a cluster. |
- */ |
+/// Configuration options for the HTTP (L7) load balancing controller addon, |
+/// which makes it easy to set up HTTP load balancers for services in a |
+/// cluster. |
class HttpLoadBalancing { |
- /** |
- * Whether the HTTP Load Balancing controller is enabled in the cluster. |
- * When enabled, it runs a small pod in the cluster that manages the load |
- * balancers. |
- */ |
+ /// Whether the HTTP Load Balancing controller is enabled in the cluster. |
+ /// When enabled, it runs a small pod in the cluster that manages the load |
+ /// balancers. |
core.bool disabled; |
HttpLoadBalancing(); |
@@ -2604,7 +2718,8 @@ class HttpLoadBalancing { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (disabled != null) { |
_json["disabled"] = disabled; |
} |
@@ -2612,74 +2727,97 @@ class HttpLoadBalancing { |
} |
} |
-/** Configuration for controlling how IPs are allocated in the cluster. */ |
+/// Configuration for controlling how IPs are allocated in the cluster. |
class IPAllocationPolicy { |
- /** |
- * The IP address range for the cluster pod IPs. If this field is set, then |
- * `cluster.cluster_ipv4_cidr` must be left blank. |
- * |
- * This field is only applicable when `use_ip_aliases` is true. |
- * |
- * Set to blank to have a range will be chosen with the default size. |
- * |
- * Set to /netmask (e.g. `/14`) to have a range be chosen with a specific |
- * netmask. |
- * |
- * Set to a |
- * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) |
- * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. |
- * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range |
- * to use. |
- */ |
+ /// This field is deprecated, use cluster_ipv4_cidr_block. |
core.String clusterIpv4Cidr; |
- /** |
- * Whether a new subnetwork will be created automatically for the cluster. |
- * |
- * This field is only applicable when `use_ip_aliases` is true. |
- */ |
+ |
+ /// The IP address range for the cluster pod IPs. If this field is set, then |
+ /// `cluster.cluster_ipv4_cidr` must be left blank. |
+ /// |
+ /// This field is only applicable when `use_ip_aliases` is true. |
+ /// |
+ /// Set to blank to have a range chosen with the default size. |
+ /// |
+ /// Set to /netmask (e.g. `/14`) to have a range chosen with a specific |
+ /// netmask. |
+ /// |
+ /// Set to a |
+ /// [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) |
+ /// notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. |
+ /// `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range |
+ /// to use. |
+ core.String clusterIpv4CidrBlock; |
+ |
+ /// The name of the secondary range to be used for the cluster CIDR |
+ /// block. The secondary range will be used for pod IP |
+ /// addresses. This must be an existing secondary range associated |
+ /// with the cluster subnetwork. |
+ /// |
+ /// This field is only applicable with use_ip_aliases is true and |
+ /// create_subnetwork is false. |
+ core.String clusterSecondaryRangeName; |
+ |
+ /// Whether a new subnetwork will be created automatically for the cluster. |
+ /// |
+ /// This field is only applicable when `use_ip_aliases` is true. |
core.bool createSubnetwork; |
- /** |
- * The IP address range of the instance IPs in this cluster. |
- * |
- * This is applicable only if `create_subnetwork` is true. |
- * |
- * Set to blank to have a range will be chosen with the default size. |
- * |
- * Set to /netmask (e.g. `/14`) to have a range be chosen with a specific |
- * netmask. |
- * |
- * Set to a |
- * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) |
- * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. |
- * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range |
- * to use. |
- */ |
+ |
+ /// This field is deprecated, use node_ipv4_cidr_block. |
core.String nodeIpv4Cidr; |
- /** |
- * The IP address range of the services IPs in this cluster. If blank, a range |
- * will be automatically chosen with the default size. |
- * |
- * This field is only applicable when `use_ip_aliases` is true. |
- * |
- * Set to blank to have a range will be chosen with the default size. |
- * |
- * Set to /netmask (e.g. `/14`) to have a range be chosen with a specific |
- * netmask. |
- * |
- * Set to a |
- * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) |
- * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. |
- * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range |
- * to use. |
- */ |
+ |
+ /// The IP address range of the instance IPs in this cluster. |
+ /// |
+ /// This is applicable only if `create_subnetwork` is true. |
+ /// |
+ /// Set to blank to have a range chosen with the default size. |
+ /// |
+ /// Set to /netmask (e.g. `/14`) to have a range chosen with a specific |
+ /// netmask. |
+ /// |
+ /// Set to a |
+ /// [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) |
+ /// notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. |
+ /// `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range |
+ /// to use. |
+ core.String nodeIpv4CidrBlock; |
+ |
+ /// This field is deprecated, use services_ipv4_cidr_block. |
core.String servicesIpv4Cidr; |
- /** |
- * A custom subnetwork name to be used if `create_subnetwork` is true. If |
- * this field is empty, then an automatic name will be chosen for the new |
- * subnetwork. |
- */ |
+ |
+ /// The IP address range of the services IPs in this cluster. If blank, a |
+ /// range |
+ /// will be automatically chosen with the default size. |
+ /// |
+ /// This field is only applicable when `use_ip_aliases` is true. |
+ /// |
+ /// Set to blank to have a range chosen with the default size. |
+ /// |
+ /// Set to /netmask (e.g. `/14`) to have a range chosen with a specific |
+ /// netmask. |
+ /// |
+ /// Set to a |
+ /// [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) |
+ /// notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. |
+ /// `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range |
+ /// to use. |
+ core.String servicesIpv4CidrBlock; |
+ |
+ /// The name of the secondary range to be used as for the services |
+ /// CIDR block. The secondary range will be used for service |
+ /// ClusterIPs. This must be an existing secondary range associated |
+ /// with the cluster subnetwork. |
+ /// |
+ /// This field is only applicable with use_ip_aliases is true and |
+ /// create_subnetwork is false. |
+ core.String servicesSecondaryRangeName; |
+ |
+ /// A custom subnetwork name to be used if `create_subnetwork` is true. If |
+ /// this field is empty, then an automatic name will be chosen for the new |
+ /// subnetwork. |
core.String subnetworkName; |
- /** Whether alias IPs will be used for pod IPs in the cluster. */ |
+ |
+ /// Whether alias IPs will be used for pod IPs in the cluster. |
core.bool useIpAliases; |
IPAllocationPolicy(); |
@@ -2688,15 +2826,30 @@ class IPAllocationPolicy { |
if (_json.containsKey("clusterIpv4Cidr")) { |
clusterIpv4Cidr = _json["clusterIpv4Cidr"]; |
} |
+ if (_json.containsKey("clusterIpv4CidrBlock")) { |
+ clusterIpv4CidrBlock = _json["clusterIpv4CidrBlock"]; |
+ } |
+ if (_json.containsKey("clusterSecondaryRangeName")) { |
+ clusterSecondaryRangeName = _json["clusterSecondaryRangeName"]; |
+ } |
if (_json.containsKey("createSubnetwork")) { |
createSubnetwork = _json["createSubnetwork"]; |
} |
if (_json.containsKey("nodeIpv4Cidr")) { |
nodeIpv4Cidr = _json["nodeIpv4Cidr"]; |
} |
+ if (_json.containsKey("nodeIpv4CidrBlock")) { |
+ nodeIpv4CidrBlock = _json["nodeIpv4CidrBlock"]; |
+ } |
if (_json.containsKey("servicesIpv4Cidr")) { |
servicesIpv4Cidr = _json["servicesIpv4Cidr"]; |
} |
+ if (_json.containsKey("servicesIpv4CidrBlock")) { |
+ servicesIpv4CidrBlock = _json["servicesIpv4CidrBlock"]; |
+ } |
+ if (_json.containsKey("servicesSecondaryRangeName")) { |
+ servicesSecondaryRangeName = _json["servicesSecondaryRangeName"]; |
+ } |
if (_json.containsKey("subnetworkName")) { |
subnetworkName = _json["subnetworkName"]; |
} |
@@ -2706,19 +2859,35 @@ class IPAllocationPolicy { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (clusterIpv4Cidr != null) { |
_json["clusterIpv4Cidr"] = clusterIpv4Cidr; |
} |
+ if (clusterIpv4CidrBlock != null) { |
+ _json["clusterIpv4CidrBlock"] = clusterIpv4CidrBlock; |
+ } |
+ if (clusterSecondaryRangeName != null) { |
+ _json["clusterSecondaryRangeName"] = clusterSecondaryRangeName; |
+ } |
if (createSubnetwork != null) { |
_json["createSubnetwork"] = createSubnetwork; |
} |
if (nodeIpv4Cidr != null) { |
_json["nodeIpv4Cidr"] = nodeIpv4Cidr; |
} |
+ if (nodeIpv4CidrBlock != null) { |
+ _json["nodeIpv4CidrBlock"] = nodeIpv4CidrBlock; |
+ } |
if (servicesIpv4Cidr != null) { |
_json["servicesIpv4Cidr"] = servicesIpv4Cidr; |
} |
+ if (servicesIpv4CidrBlock != null) { |
+ _json["servicesIpv4CidrBlock"] = servicesIpv4CidrBlock; |
+ } |
+ if (servicesSecondaryRangeName != null) { |
+ _json["servicesSecondaryRangeName"] = servicesSecondaryRangeName; |
+ } |
if (subnetworkName != null) { |
_json["subnetworkName"] = subnetworkName; |
} |
@@ -2729,9 +2898,9 @@ class IPAllocationPolicy { |
} |
} |
-/** Configuration for the Kubernetes Dashboard. */ |
+/// Configuration for the Kubernetes Dashboard. |
class KubernetesDashboard { |
- /** Whether the Kubernetes Dashboard is enabled for this cluster. */ |
+ /// Whether the Kubernetes Dashboard is enabled for this cluster. |
core.bool disabled; |
KubernetesDashboard(); |
@@ -2743,7 +2912,8 @@ class KubernetesDashboard { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (disabled != null) { |
_json["disabled"] = disabled; |
} |
@@ -2751,17 +2921,13 @@ class KubernetesDashboard { |
} |
} |
-/** |
- * Configuration for the legacy Attribute Based Access Control authorization |
- * mode. |
- */ |
+/// Configuration for the legacy Attribute Based Access Control authorization |
+/// mode. |
class LegacyAbac { |
- /** |
- * Whether the ABAC authorizer is enabled for this cluster. When enabled, |
- * identities in the system, including service accounts, nodes, and |
- * controllers, will have statically granted permissions beyond those |
- * provided by the RBAC configuration or IAM. |
- */ |
+ /// Whether the ABAC authorizer is enabled for this cluster. When enabled, |
+ /// identities in the system, including service accounts, nodes, and |
+ /// controllers, will have statically granted permissions beyond those |
+ /// provided by the RBAC configuration or IAM. |
core.bool enabled; |
LegacyAbac(); |
@@ -2773,7 +2939,8 @@ class LegacyAbac { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (enabled != null) { |
_json["enabled"] = enabled; |
} |
@@ -2781,24 +2948,23 @@ class LegacyAbac { |
} |
} |
-/** ListClustersResponse is the result of ListClustersRequest. */ |
+/// ListClustersResponse is the result of ListClustersRequest. |
class ListClustersResponse { |
- /** |
- * A list of clusters in the project in the specified zone, or |
- * across all ones. |
- */ |
+ /// A list of clusters in the project in the specified zone, or |
+ /// across all ones. |
core.List<Cluster> clusters; |
- /** |
- * If any zones are listed here, the list of clusters returned |
- * may be missing those zones. |
- */ |
+ |
+ /// If any zones are listed here, the list of clusters returned |
+ /// may be missing those zones. |
core.List<core.String> missingZones; |
ListClustersResponse(); |
ListClustersResponse.fromJson(core.Map _json) { |
if (_json.containsKey("clusters")) { |
- clusters = _json["clusters"].map((value) => new Cluster.fromJson(value)).toList(); |
+ clusters = _json["clusters"] |
+ .map((value) => new Cluster.fromJson(value)) |
+ .toList(); |
} |
if (_json.containsKey("missingZones")) { |
missingZones = _json["missingZones"]; |
@@ -2806,7 +2972,8 @@ class ListClustersResponse { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (clusters != null) { |
_json["clusters"] = clusters.map((value) => (value).toJson()).toList(); |
} |
@@ -2817,21 +2984,24 @@ class ListClustersResponse { |
} |
} |
-/** ListNodePoolsResponse is the result of ListNodePoolsRequest. */ |
+/// ListNodePoolsResponse is the result of ListNodePoolsRequest. |
class ListNodePoolsResponse { |
- /** A list of node pools for a cluster. */ |
+ /// A list of node pools for a cluster. |
core.List<NodePool> nodePools; |
ListNodePoolsResponse(); |
ListNodePoolsResponse.fromJson(core.Map _json) { |
if (_json.containsKey("nodePools")) { |
- nodePools = _json["nodePools"].map((value) => new NodePool.fromJson(value)).toList(); |
+ nodePools = _json["nodePools"] |
+ .map((value) => new NodePool.fromJson(value)) |
+ .toList(); |
} |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (nodePools != null) { |
_json["nodePools"] = nodePools.map((value) => (value).toJson()).toList(); |
} |
@@ -2839,14 +3009,13 @@ class ListNodePoolsResponse { |
} |
} |
-/** ListOperationsResponse is the result of ListOperationsRequest. */ |
+/// ListOperationsResponse is the result of ListOperationsRequest. |
class ListOperationsResponse { |
- /** |
- * If any zones are listed here, the list of operations returned |
- * may be missing the operations from those zones. |
- */ |
+ /// If any zones are listed here, the list of operations returned |
+ /// may be missing the operations from those zones. |
core.List<core.String> missingZones; |
- /** A list of operations in the project in the specified zone. */ |
+ |
+ /// A list of operations in the project in the specified zone. |
core.List<Operation> operations; |
ListOperationsResponse(); |
@@ -2856,60 +3025,57 @@ class ListOperationsResponse { |
missingZones = _json["missingZones"]; |
} |
if (_json.containsKey("operations")) { |
- operations = _json["operations"].map((value) => new Operation.fromJson(value)).toList(); |
+ operations = _json["operations"] |
+ .map((value) => new Operation.fromJson(value)) |
+ .toList(); |
} |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (missingZones != null) { |
_json["missingZones"] = missingZones; |
} |
if (operations != null) { |
- _json["operations"] = operations.map((value) => (value).toJson()).toList(); |
+ _json["operations"] = |
+ operations.map((value) => (value).toJson()).toList(); |
} |
return _json; |
} |
} |
-/** |
- * The authentication information for accessing the master endpoint. |
- * Authentication can be done using HTTP basic auth or using client |
- * certificates. |
- */ |
+/// The authentication information for accessing the master endpoint. |
+/// Authentication can be done using HTTP basic auth or using client |
+/// certificates. |
class MasterAuth { |
- /** |
- * [Output only] Base64-encoded public certificate used by clients to |
- * authenticate to the cluster endpoint. |
- */ |
+ /// [Output only] Base64-encoded public certificate used by clients to |
+ /// authenticate to the cluster endpoint. |
core.String clientCertificate; |
- /** |
- * Configuration for client certificate authentication on the cluster. If no |
- * configuration is specified, a client certificate is issued. |
- */ |
+ |
+ /// Configuration for client certificate authentication on the cluster. If |
+ /// no |
+ /// configuration is specified, a client certificate is issued. |
ClientCertificateConfig clientCertificateConfig; |
- /** |
- * [Output only] Base64-encoded private key used by clients to authenticate |
- * to the cluster endpoint. |
- */ |
+ |
+ /// [Output only] Base64-encoded private key used by clients to authenticate |
+ /// to the cluster endpoint. |
core.String clientKey; |
- /** |
- * [Output only] Base64-encoded public certificate that is the root of |
- * trust for the cluster. |
- */ |
+ |
+ /// [Output only] Base64-encoded public certificate that is the root of |
+ /// trust for the cluster. |
core.String clusterCaCertificate; |
- /** |
- * The password to use for HTTP basic authentication to the master endpoint. |
- * Because the master endpoint is open to the Internet, you should create a |
- * strong password. If a password is provided for cluster creation, username |
- * must be non-empty. |
- */ |
+ |
+ /// The password to use for HTTP basic authentication to the master endpoint. |
+ /// Because the master endpoint is open to the Internet, you should create a |
+ /// strong password. If a password is provided for cluster creation, |
+ /// username |
+ /// must be non-empty. |
core.String password; |
- /** |
- * The username to use for HTTP basic authentication to the master endpoint. |
- * For clusters v1.6.0 and later, you can disable basic authentication by |
- * providing an empty username. |
- */ |
+ |
+ /// The username to use for HTTP basic authentication to the master endpoint. |
+ /// For clusters v1.6.0 and later, you can disable basic authentication by |
+ /// providing an empty username. |
core.String username; |
MasterAuth(); |
@@ -2919,7 +3085,8 @@ class MasterAuth { |
clientCertificate = _json["clientCertificate"]; |
} |
if (_json.containsKey("clientCertificateConfig")) { |
- clientCertificateConfig = new ClientCertificateConfig.fromJson(_json["clientCertificateConfig"]); |
+ clientCertificateConfig = new ClientCertificateConfig.fromJson( |
+ _json["clientCertificateConfig"]); |
} |
if (_json.containsKey("clientKey")) { |
clientKey = _json["clientKey"]; |
@@ -2936,7 +3103,8 @@ class MasterAuth { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (clientCertificate != null) { |
_json["clientCertificate"] = clientCertificate; |
} |
@@ -2959,27 +3127,26 @@ class MasterAuth { |
} |
} |
-/** |
- * Master authorized networks is a Beta feature. |
- * Configuration options for the master authorized networks feature. Enabled |
- * master authorized networks will disallow all external traffic to access |
- * Kubernetes master through HTTPS except traffic from the given CIDR blocks, |
- * Google Compute Engine Public IPs and Google Prod IPs. |
- */ |
+/// Master authorized networks is a Beta feature. |
+/// Configuration options for the master authorized networks feature. Enabled |
+/// master authorized networks will disallow all external traffic to access |
+/// Kubernetes master through HTTPS except traffic from the given CIDR blocks, |
+/// Google Compute Engine Public IPs and Google Prod IPs. |
class MasterAuthorizedNetworksConfig { |
- /** |
- * cidr_blocks define up to 10 external networks that could access |
- * Kubernetes master through HTTPS. |
- */ |
+ /// cidr_blocks define up to 10 external networks that could access |
+ /// Kubernetes master through HTTPS. |
core.List<CidrBlock> cidrBlocks; |
- /** Whether or not master authorized networks is enabled. */ |
+ |
+ /// Whether or not master authorized networks is enabled. |
core.bool enabled; |
MasterAuthorizedNetworksConfig(); |
MasterAuthorizedNetworksConfig.fromJson(core.Map _json) { |
if (_json.containsKey("cidrBlocks")) { |
- cidrBlocks = _json["cidrBlocks"].map((value) => new CidrBlock.fromJson(value)).toList(); |
+ cidrBlocks = _json["cidrBlocks"] |
+ .map((value) => new CidrBlock.fromJson(value)) |
+ .toList(); |
} |
if (_json.containsKey("enabled")) { |
enabled = _json["enabled"]; |
@@ -2987,9 +3154,11 @@ class MasterAuthorizedNetworksConfig { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (cidrBlocks != null) { |
- _json["cidrBlocks"] = cidrBlocks.map((value) => (value).toJson()).toList(); |
+ _json["cidrBlocks"] = |
+ cidrBlocks.map((value) => (value).toJson()).toList(); |
} |
if (enabled != null) { |
_json["enabled"] = enabled; |
@@ -2998,19 +3167,16 @@ class MasterAuthorizedNetworksConfig { |
} |
} |
-/** |
- * Configuration options for the NetworkPolicy feature. |
- * https://kubernetes.io/docs/concepts/services-networking/networkpolicies/ |
- */ |
+/// Configuration options for the NetworkPolicy feature. |
+/// https://kubernetes.io/docs/concepts/services-networking/networkpolicies/ |
class NetworkPolicy { |
- /** Whether network policy is enabled on the cluster. */ |
+ /// Whether network policy is enabled on the cluster. |
core.bool enabled; |
- /** |
- * The selected network policy provider. |
- * Possible string values are: |
- * - "PROVIDER_UNSPECIFIED" : Not set |
- * - "CALICO" : Tigera (Calico Felix). |
- */ |
+ |
+ /// The selected network policy provider. |
+ /// Possible string values are: |
+ /// - "PROVIDER_UNSPECIFIED" : Not set |
+ /// - "CALICO" : Tigera (Calico Felix). |
core.String provider; |
NetworkPolicy(); |
@@ -3025,7 +3191,8 @@ class NetworkPolicy { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (enabled != null) { |
_json["enabled"] = enabled; |
} |
@@ -3036,112 +3203,106 @@ class NetworkPolicy { |
} |
} |
-/** Parameters that describe the nodes in a cluster. */ |
+/// Parameters that describe the nodes in a cluster. |
class NodeConfig { |
- /** |
- * A list of hardware accelerators to be attached to each node. |
- * See https://cloud.google.com/compute/docs/gpus for more information about |
- * support for GPUs. |
- */ |
+ /// A list of hardware accelerators to be attached to each node. |
+ /// See https://cloud.google.com/compute/docs/gpus for more information about |
+ /// support for GPUs. |
core.List<AcceleratorConfig> accelerators; |
- /** |
- * Size of the disk attached to each node, specified in GB. |
- * The smallest allowed disk size is 10GB. |
- * |
- * If unspecified, the default disk size is 100GB. |
- */ |
+ |
+ /// Size of the disk attached to each node, specified in GB. |
+ /// The smallest allowed disk size is 10GB. |
+ /// |
+ /// If unspecified, the default disk size is 100GB. |
core.int diskSizeGb; |
- /** |
- * The image type to use for this node. Note that for a given image type, |
- * the latest version of it will be used. |
- */ |
+ |
+ /// The image type to use for this node. Note that for a given image type, |
+ /// the latest version of it will be used. |
core.String imageType; |
- /** |
- * The map of Kubernetes labels (key/value pairs) to be applied to each node. |
- * These will added in addition to any default label(s) that |
- * Kubernetes may apply to the node. |
- * In case of conflict in label keys, the applied set may differ depending on |
- * the Kubernetes version -- it's best to assume the behavior is undefined |
- * and conflicts should be avoided. |
- * For more information, including usage and the valid values, see: |
- * http://kubernetes.io/v1.1/docs/user-guide/labels.html |
- */ |
+ |
+ /// The map of Kubernetes labels (key/value pairs) to be applied to each |
+ /// node. |
+ /// These will added in addition to any default label(s) that |
+ /// Kubernetes may apply to the node. |
+ /// In case of conflict in label keys, the applied set may differ depending |
+ /// on |
+ /// the Kubernetes version -- it's best to assume the behavior is undefined |
+ /// and conflicts should be avoided. |
+ /// For more information, including usage and the valid values, see: |
+ /// https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ |
core.Map<core.String, core.String> labels; |
- /** |
- * The number of local SSD disks to be attached to the node. |
- * |
- * The limit for this value is dependant upon the maximum number of |
- * disks available on a machine per zone. See: |
- * https://cloud.google.com/compute/docs/disks/local-ssd#local_ssd_limits |
- * for more information. |
- */ |
+ |
+ /// The number of local SSD disks to be attached to the node. |
+ /// |
+ /// The limit for this value is dependant upon the maximum number of |
+ /// disks available on a machine per zone. See: |
+ /// https://cloud.google.com/compute/docs/disks/local-ssd#local_ssd_limits |
+ /// for more information. |
core.int localSsdCount; |
- /** |
- * 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`. |
- */ |
+ |
+ /// 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.String machineType; |
- /** |
- * The metadata key/value pairs assigned to instances in the cluster. |
- * |
- * Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes |
- * in length. These are reflected as part of a URL in the metadata server. |
- * Additionally, to avoid ambiguity, keys must not conflict with any other |
- * metadata keys for the project or be one of the four reserved keys: |
- * "instance-template", "kube-env", "startup-script", and "user-data" |
- * |
- * Values are free-form strings, and only have meaning as interpreted by |
- * the image running in the instance. The only restriction placed on them is |
- * that each value's size must be less than or equal to 32 KB. |
- * |
- * The total size of all keys and values must be less than 512 KB. |
- */ |
+ |
+ /// The metadata key/value pairs assigned to instances in the cluster. |
+ /// |
+ /// Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes |
+ /// in length. These are reflected as part of a URL in the metadata server. |
+ /// Additionally, to avoid ambiguity, keys must not conflict with any other |
+ /// metadata keys for the project or be one of the four reserved keys: |
+ /// "instance-template", "kube-env", "startup-script", and "user-data" |
+ /// |
+ /// Values are free-form strings, and only have meaning as interpreted by |
+ /// the image running in the instance. The only restriction placed on them is |
+ /// that each value's size must be less than or equal to 32 KB. |
+ /// |
+ /// The total size of all keys and values must be less than 512 KB. |
core.Map<core.String, core.String> metadata; |
- /** |
- * The set of Google API scopes to be made available on all of the |
- * node VMs under the "default" service account. |
- * |
- * The following scopes are recommended, but not required, and by default are |
- * not included: |
- * |
- * * `https://www.googleapis.com/auth/compute` is required for mounting |
- * persistent storage on your nodes. |
- * * `https://www.googleapis.com/auth/devstorage.read_only` is required for |
- * communicating with **gcr.io** |
- * (the [Google Container Registry](/container-registry/)). |
- * |
- * If unspecified, no scopes are added, unless Cloud Logging or Cloud |
- * Monitoring are enabled, in which case their required scopes will be added. |
- */ |
+ |
+ /// The set of Google API scopes to be made available on all of the |
+ /// node VMs under the "default" service account. |
+ /// |
+ /// The following scopes are recommended, but not required, and by default |
+ /// are |
+ /// not included: |
+ /// |
+ /// * `https://www.googleapis.com/auth/compute` is required for mounting |
+ /// persistent storage on your nodes. |
+ /// * `https://www.googleapis.com/auth/devstorage.read_only` is required for |
+ /// communicating with **gcr.io** |
+ /// (the [Google Container Registry](/container-registry/)). |
+ /// |
+ /// If unspecified, no scopes are added, unless Cloud Logging or Cloud |
+ /// Monitoring are enabled, in which case their required scopes will be |
+ /// added. |
core.List<core.String> oauthScopes; |
- /** |
- * Whether the nodes are created as preemptible VM instances. See: |
- * https://cloud.google.com/compute/docs/instances/preemptible for more |
- * information about preemptible VM instances. |
- */ |
+ |
+ /// Whether the nodes are created as preemptible VM instances. See: |
+ /// https://cloud.google.com/compute/docs/instances/preemptible for more |
+ /// information about preemptible VM instances. |
core.bool preemptible; |
- /** |
- * The Google Cloud Platform Service Account to be used by the node VMs. If |
- * no Service Account is specified, the "default" service account is used. |
- */ |
+ |
+ /// The Google Cloud Platform Service Account to be used by the node VMs. If |
+ /// no Service Account is specified, the "default" service account is used. |
core.String serviceAccount; |
- /** |
- * The list of instance tags applied to all nodes. Tags are used to identify |
- * valid sources or targets for network firewalls and are specified by |
- * the client during cluster or node pool creation. Each tag within the list |
- * must comply with RFC1035. |
- */ |
+ |
+ /// The list of instance tags applied to all nodes. Tags are used to identify |
+ /// valid sources or targets for network firewalls and are specified by |
+ /// the client during cluster or node pool creation. Each tag within the list |
+ /// must comply with RFC1035. |
core.List<core.String> tags; |
NodeConfig(); |
NodeConfig.fromJson(core.Map _json) { |
if (_json.containsKey("accelerators")) { |
- accelerators = _json["accelerators"].map((value) => new AcceleratorConfig.fromJson(value)).toList(); |
+ accelerators = _json["accelerators"] |
+ .map((value) => new AcceleratorConfig.fromJson(value)) |
+ .toList(); |
} |
if (_json.containsKey("diskSizeGb")) { |
diskSizeGb = _json["diskSizeGb"]; |
@@ -3176,9 +3337,11 @@ class NodeConfig { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (accelerators != null) { |
- _json["accelerators"] = accelerators.map((value) => (value).toJson()).toList(); |
+ _json["accelerators"] = |
+ accelerators.map((value) => (value).toJson()).toList(); |
} |
if (diskSizeGb != null) { |
_json["diskSizeGb"] = diskSizeGb; |
@@ -3214,25 +3377,25 @@ class NodeConfig { |
} |
} |
-/** |
- * NodeManagement defines the set of node management services turned on for the |
- * node pool. |
- */ |
+/// NodeManagement defines the set of node management services turned on for |
+/// the |
+/// node pool. |
class NodeManagement { |
- /** |
- * A flag that specifies whether the node auto-repair is enabled for the node |
- * pool. If enabled, the nodes in this node pool will be monitored and, if |
- * they fail health checks too many times, an automatic repair action will be |
- * triggered. |
- */ |
+ /// A flag that specifies whether the node auto-repair is enabled for the |
+ /// node |
+ /// pool. If enabled, the nodes in this node pool will be monitored and, if |
+ /// they fail health checks too many times, an automatic repair action will |
+ /// be |
+ /// triggered. |
core.bool autoRepair; |
- /** |
- * A flag that specifies whether node auto-upgrade is enabled for the node |
- * pool. If enabled, node auto-upgrade helps keep the nodes in your node pool |
- * up to date with the latest release version of Kubernetes. |
- */ |
+ |
+ /// A flag that specifies whether node auto-upgrade is enabled for the node |
+ /// pool. If enabled, node auto-upgrade helps keep the nodes in your node |
+ /// pool |
+ /// up to date with the latest release version of Kubernetes. |
core.bool autoUpgrade; |
- /** Specifies the Auto Upgrade knobs for the node pool. */ |
+ |
+ /// Specifies the Auto Upgrade knobs for the node pool. |
AutoUpgradeOptions upgradeOptions; |
NodeManagement(); |
@@ -3250,7 +3413,8 @@ class NodeManagement { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (autoRepair != null) { |
_json["autoRepair"] = autoRepair; |
} |
@@ -3264,70 +3428,68 @@ class NodeManagement { |
} |
} |
-/** |
- * NodePool contains the name and configuration for a cluster's node pool. |
- * Node pools are a set of nodes (i.e. VM's), with a common configuration and |
- * specification, under the control of the cluster master. They may have a set |
- * of Kubernetes labels applied to them, which may be used to reference them |
- * during pod scheduling. They may also be resized up or down, to accommodate |
- * the workload. |
- */ |
+/// NodePool contains the name and configuration for a cluster's node pool. |
+/// Node pools are a set of nodes (i.e. VM's), with a common configuration and |
+/// specification, under the control of the cluster master. They may have a set |
+/// of Kubernetes labels applied to them, which may be used to reference them |
+/// during pod scheduling. They may also be resized up or down, to accommodate |
+/// the workload. |
class NodePool { |
- /** |
- * Autoscaler configuration for this NodePool. Autoscaler is enabled |
- * only if a valid configuration is present. |
- */ |
+ /// Autoscaler configuration for this NodePool. Autoscaler is enabled |
+ /// only if a valid configuration is present. |
NodePoolAutoscaling autoscaling; |
- /** The node configuration of the pool. */ |
+ |
+ /// The node configuration of the pool. |
NodeConfig config; |
- /** |
- * The initial node count for the pool. You must ensure that your |
- * Compute Engine <a href="/compute/docs/resource-quotas">resource quota</a> |
- * is sufficient for this number of instances. You must also have available |
- * firewall and routes quota. |
- */ |
+ |
+ /// The initial node count for the pool. You must ensure that your |
+ /// Compute Engine <a href="/compute/docs/resource-quotas">resource quota</a> |
+ /// is sufficient for this number of instances. You must also have available |
+ /// firewall and routes quota. |
core.int initialNodeCount; |
- /** |
- * [Output only] The resource URLs of [instance |
- * groups](/compute/docs/instance-groups/) associated with this |
- * node pool. |
- */ |
+ |
+ /// [Output only] The resource URLs of [instance |
+ /// groups](/compute/docs/instance-groups/) associated with this |
+ /// node pool. |
core.List<core.String> instanceGroupUrls; |
- /** NodeManagement configuration for this NodePool. */ |
+ |
+ /// NodeManagement configuration for this NodePool. |
NodeManagement management; |
- /** The name of the node pool. */ |
+ |
+ /// The name of the node pool. |
core.String name; |
- /** [Output only] Server-defined URL for the resource. */ |
+ |
+ /// [Output only] Server-defined URL for the resource. |
core.String selfLink; |
- /** |
- * [Output only] The status of the nodes in this pool instance. |
- * Possible string values are: |
- * - "STATUS_UNSPECIFIED" : Not set. |
- * - "PROVISIONING" : The PROVISIONING state indicates the node pool is being |
- * created. |
- * - "RUNNING" : The RUNNING state indicates the node pool has been created |
- * and is fully usable. |
- * - "RUNNING_WITH_ERROR" : The RUNNING_WITH_ERROR state indicates the node |
- * pool has been created |
- * and is partially usable. Some error state has occurred and some |
- * functionality may be impaired. Customer may need to reissue a request |
- * or trigger a new update. |
- * - "RECONCILING" : The RECONCILING state indicates that some work is |
- * actively being done on |
- * the node pool, such as upgrading node software. Details can |
- * be found in the `statusMessage` field. |
- * - "STOPPING" : The STOPPING state indicates the node pool is being deleted. |
- * - "ERROR" : The ERROR state indicates the node pool may be unusable. |
- * Details |
- * can be found in the `statusMessage` field. |
- */ |
+ |
+ /// [Output only] The status of the nodes in this pool instance. |
+ /// Possible string values are: |
+ /// - "STATUS_UNSPECIFIED" : Not set. |
+ /// - "PROVISIONING" : The PROVISIONING state indicates the node pool is |
+ /// being created. |
+ /// - "RUNNING" : The RUNNING state indicates the node pool has been created |
+ /// and is fully usable. |
+ /// - "RUNNING_WITH_ERROR" : The RUNNING_WITH_ERROR state indicates the node |
+ /// pool has been created |
+ /// and is partially usable. Some error state has occurred and some |
+ /// functionality may be impaired. Customer may need to reissue a request |
+ /// or trigger a new update. |
+ /// - "RECONCILING" : The RECONCILING state indicates that some work is |
+ /// actively being done on |
+ /// the node pool, such as upgrading node software. Details can |
+ /// be found in the `statusMessage` field. |
+ /// - "STOPPING" : The STOPPING state indicates the node pool is being |
+ /// deleted. |
+ /// - "ERROR" : The ERROR state indicates the node pool may be unusable. |
+ /// Details |
+ /// can be found in the `statusMessage` field. |
core.String status; |
- /** |
- * [Output only] Additional information about the current status of this |
- * node pool instance, if available. |
- */ |
+ |
+ /// [Output only] Additional information about the current status of this |
+ /// node pool instance, if available. |
core.String statusMessage; |
- /** [Output only] The version of the Kubernetes of this node. */ |
+ |
+ /// [Output only] The version of the Kubernetes of this node. |
core.String version; |
NodePool(); |
@@ -3366,7 +3528,8 @@ class NodePool { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (autoscaling != null) { |
_json["autoscaling"] = (autoscaling).toJson(); |
} |
@@ -3401,22 +3564,18 @@ class NodePool { |
} |
} |
-/** |
- * NodePoolAutoscaling contains information required by cluster autoscaler to |
- * adjust the size of the node pool to the current cluster usage. |
- */ |
+/// NodePoolAutoscaling contains information required by cluster autoscaler to |
+/// adjust the size of the node pool to the current cluster usage. |
class NodePoolAutoscaling { |
- /** Is autoscaling enabled for this node pool. */ |
+ /// Is autoscaling enabled for this node pool. |
core.bool enabled; |
- /** |
- * Maximum number of nodes in the NodePool. Must be >= min_node_count. There |
- * has to enough quota to scale up the cluster. |
- */ |
+ |
+ /// Maximum number of nodes in the NodePool. Must be >= min_node_count. There |
+ /// has to enough quota to scale up the cluster. |
core.int maxNodeCount; |
- /** |
- * Minimum number of nodes in the NodePool. Must be >= 1 and <= |
- * max_node_count. |
- */ |
+ |
+ /// Minimum number of nodes in the NodePool. Must be >= 1 and <= |
+ /// max_node_count. |
core.int minNodeCount; |
NodePoolAutoscaling(); |
@@ -3434,7 +3593,8 @@ class NodePoolAutoscaling { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (enabled != null) { |
_json["enabled"] = enabled; |
} |
@@ -3448,57 +3608,64 @@ class NodePoolAutoscaling { |
} |
} |
-/** |
- * This operation resource represents operations that may have happened or are |
- * happening on the cluster. All fields are output only. |
- */ |
+/// This operation resource represents operations that may have happened or are |
+/// happening on the cluster. All fields are output only. |
class Operation { |
- /** Detailed operation progress, if available. */ |
+ /// Detailed operation progress, if available. |
core.String detail; |
- /** The server-assigned ID for the operation. */ |
+ |
+ /// [Output only] The time the operation completed, in |
+ /// [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. |
+ core.String endTime; |
+ |
+ /// The server-assigned ID for the operation. |
core.String name; |
- /** |
- * The operation type. |
- * Possible string values are: |
- * - "TYPE_UNSPECIFIED" : Not set. |
- * - "CREATE_CLUSTER" : Cluster create. |
- * - "DELETE_CLUSTER" : Cluster delete. |
- * - "UPGRADE_MASTER" : A master upgrade. |
- * - "UPGRADE_NODES" : A node upgrade. |
- * - "REPAIR_CLUSTER" : Cluster repair. |
- * - "UPDATE_CLUSTER" : Cluster update. |
- * - "CREATE_NODE_POOL" : Node pool create. |
- * - "DELETE_NODE_POOL" : Node pool delete. |
- * - "SET_NODE_POOL_MANAGEMENT" : Set node pool management. |
- * - "AUTO_REPAIR_NODES" : Automatic node pool repair. |
- * - "AUTO_UPGRADE_NODES" : Automatic node upgrade. |
- * - "SET_LABELS" : Set labels. |
- * - "SET_MASTER_AUTH" : Set/generate master auth materials |
- * - "SET_NODE_POOL_SIZE" : Set node pool size. |
- * - "SET_NETWORK_POLICY" : Updates network policy for a cluster. |
- */ |
+ |
+ /// The operation type. |
+ /// Possible string values are: |
+ /// - "TYPE_UNSPECIFIED" : Not set. |
+ /// - "CREATE_CLUSTER" : Cluster create. |
+ /// - "DELETE_CLUSTER" : Cluster delete. |
+ /// - "UPGRADE_MASTER" : A master upgrade. |
+ /// - "UPGRADE_NODES" : A node upgrade. |
+ /// - "REPAIR_CLUSTER" : Cluster repair. |
+ /// - "UPDATE_CLUSTER" : Cluster update. |
+ /// - "CREATE_NODE_POOL" : Node pool create. |
+ /// - "DELETE_NODE_POOL" : Node pool delete. |
+ /// - "SET_NODE_POOL_MANAGEMENT" : Set node pool management. |
+ /// - "AUTO_REPAIR_NODES" : Automatic node pool repair. |
+ /// - "AUTO_UPGRADE_NODES" : Automatic node upgrade. |
+ /// - "SET_LABELS" : Set labels. |
+ /// - "SET_MASTER_AUTH" : Set/generate master auth materials |
+ /// - "SET_NODE_POOL_SIZE" : Set node pool size. |
+ /// - "SET_NETWORK_POLICY" : Updates network policy for a cluster. |
core.String operationType; |
- /** Server-defined URL for the resource. */ |
+ |
+ /// Server-defined URL for the resource. |
core.String selfLink; |
- /** |
- * The current status of the operation. |
- * Possible string values are: |
- * - "STATUS_UNSPECIFIED" : Not set. |
- * - "PENDING" : The operation has been created. |
- * - "RUNNING" : The operation is currently running. |
- * - "DONE" : The operation is done, either cancelled or completed. |
- * - "ABORTING" : The operation is aborting. |
- */ |
+ |
+ /// [Output only] The time the operation started, in |
+ /// [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. |
+ core.String startTime; |
+ |
+ /// The current status of the operation. |
+ /// Possible string values are: |
+ /// - "STATUS_UNSPECIFIED" : Not set. |
+ /// - "PENDING" : The operation has been created. |
+ /// - "RUNNING" : The operation is currently running. |
+ /// - "DONE" : The operation is done, either cancelled or completed. |
+ /// - "ABORTING" : The operation is aborting. |
core.String status; |
- /** If an error has occurred, a textual description of the error. */ |
+ |
+ /// If an error has occurred, a textual description of the error. |
core.String statusMessage; |
- /** Server-defined URL for the target of the operation. */ |
+ |
+ /// Server-defined URL for the target of the operation. |
core.String targetLink; |
- /** |
- * The name of the Google Compute Engine |
- * [zone](/compute/docs/zones#available) 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. |
core.String zone; |
Operation(); |
@@ -3507,6 +3674,9 @@ class Operation { |
if (_json.containsKey("detail")) { |
detail = _json["detail"]; |
} |
+ if (_json.containsKey("endTime")) { |
+ endTime = _json["endTime"]; |
+ } |
if (_json.containsKey("name")) { |
name = _json["name"]; |
} |
@@ -3516,6 +3686,9 @@ class Operation { |
if (_json.containsKey("selfLink")) { |
selfLink = _json["selfLink"]; |
} |
+ if (_json.containsKey("startTime")) { |
+ startTime = _json["startTime"]; |
+ } |
if (_json.containsKey("status")) { |
status = _json["status"]; |
} |
@@ -3531,10 +3704,14 @@ class Operation { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (detail != null) { |
_json["detail"] = detail; |
} |
+ if (endTime != null) { |
+ _json["endTime"] = endTime; |
+ } |
if (name != null) { |
_json["name"] = name; |
} |
@@ -3544,6 +3721,9 @@ class Operation { |
if (selfLink != null) { |
_json["selfLink"] = selfLink; |
} |
+ if (startTime != null) { |
+ _json["startTime"] = startTime; |
+ } |
if (status != null) { |
_json["status"] = status; |
} |
@@ -3560,35 +3740,36 @@ class Operation { |
} |
} |
-/** |
- * RollbackNodePoolUpgradeRequest rollbacks the previously Aborted or Failed |
- * NodePool upgrade. This will be an no-op if the last upgrade successfully |
- * completed. |
- */ |
+/// RollbackNodePoolUpgradeRequest rollbacks the previously Aborted or Failed |
+/// NodePool upgrade. This will be an no-op if the last upgrade successfully |
+/// completed. |
class RollbackNodePoolUpgradeRequest { |
- |
RollbackNodePoolUpgradeRequest(); |
- RollbackNodePoolUpgradeRequest.fromJson(core.Map _json) { |
- } |
+ RollbackNodePoolUpgradeRequest.fromJson(core.Map _json) {} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
return _json; |
} |
} |
-/** Container Engine service configuration. */ |
+/// Container Engine service configuration. |
class ServerConfig { |
- /** Version of Kubernetes the service deploys by default. */ |
+ /// Version of Kubernetes the service deploys by default. |
core.String defaultClusterVersion; |
- /** Default image type. */ |
+ |
+ /// Default image type. |
core.String defaultImageType; |
- /** List of valid image types. */ |
+ |
+ /// List of valid image types. |
core.List<core.String> validImageTypes; |
- /** List of valid master versions. */ |
+ |
+ /// List of valid master versions. |
core.List<core.String> validMasterVersions; |
- /** List of valid node upgrade target versions. */ |
+ |
+ /// List of valid node upgrade target versions. |
core.List<core.String> validNodeVersions; |
ServerConfig(); |
@@ -3612,7 +3793,8 @@ class ServerConfig { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (defaultClusterVersion != null) { |
_json["defaultClusterVersion"] = defaultClusterVersion; |
} |
@@ -3632,12 +3814,10 @@ class ServerConfig { |
} |
} |
-/** SetAddonsConfigRequest sets the addons associated with the cluster. */ |
+/// SetAddonsConfigRequest sets the addons associated with the cluster. |
class SetAddonsConfigRequest { |
- /** |
- * The desired configurations for the various addons available to run in the |
- * cluster. |
- */ |
+ /// The desired configurations for the various addons available to run in the |
+ /// cluster. |
AddonsConfig addonsConfig; |
SetAddonsConfigRequest(); |
@@ -3649,7 +3829,8 @@ class SetAddonsConfigRequest { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (addonsConfig != null) { |
_json["addonsConfig"] = (addonsConfig).toJson(); |
} |
@@ -3657,22 +3838,20 @@ class SetAddonsConfigRequest { |
} |
} |
-/** |
- * SetLabelsRequest sets the Google Cloud Platform labels on a Google Container |
- * Engine cluster, which will in turn set them for Google Compute Engine |
- * resources used by that cluster |
- */ |
+/// SetLabelsRequest sets the Google Cloud Platform labels on a Google |
+/// Container |
+/// Engine cluster, which will in turn set them for Google Compute Engine |
+/// resources used by that cluster |
class SetLabelsRequest { |
- /** |
- * The fingerprint of the previous set of labels for this resource, |
- * used to detect conflicts. The fingerprint is initially generated by |
- * Container Engine and changes after every request to modify or update |
- * labels. You must always provide an up-to-date fingerprint hash when |
- * updating or changing labels. Make a <code>get()</code> request to the |
- * resource to get the latest fingerprint. |
- */ |
+ /// The fingerprint of the previous set of labels for this resource, |
+ /// used to detect conflicts. The fingerprint is initially generated by |
+ /// Container Engine and changes after every request to modify or update |
+ /// labels. You must always provide an up-to-date fingerprint hash when |
+ /// updating or changing labels. Make a <code>get()</code> request to the |
+ /// resource to get the latest fingerprint. |
core.String labelFingerprint; |
- /** The labels to set for that cluster. */ |
+ |
+ /// The labels to set for that cluster. |
core.Map<core.String, core.String> resourceLabels; |
SetLabelsRequest(); |
@@ -3687,7 +3866,8 @@ class SetLabelsRequest { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (labelFingerprint != null) { |
_json["labelFingerprint"] = labelFingerprint; |
} |
@@ -3698,12 +3878,11 @@ class SetLabelsRequest { |
} |
} |
-/** |
- * SetLegacyAbacRequest enables or disables the ABAC authorization mechanism for |
- * a cluster. |
- */ |
+/// SetLegacyAbacRequest enables or disables the ABAC authorization mechanism |
+/// for |
+/// a cluster. |
class SetLegacyAbacRequest { |
- /** Whether ABAC authorization will be enabled in the cluster. */ |
+ /// Whether ABAC authorization will be enabled in the cluster. |
core.bool enabled; |
SetLegacyAbacRequest(); |
@@ -3715,7 +3894,8 @@ class SetLegacyAbacRequest { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (enabled != null) { |
_json["enabled"] = enabled; |
} |
@@ -3723,17 +3903,15 @@ class SetLegacyAbacRequest { |
} |
} |
-/** SetLocationsRequest sets the locations of the cluster. */ |
+/// SetLocationsRequest sets the locations of the cluster. |
class SetLocationsRequest { |
- /** |
- * The desired list of Google Compute Engine |
- * [locations](/compute/docs/zones#available) in which the cluster's nodes |
- * should be located. Changing the locations a cluster is in will result |
- * in nodes being either created or removed from the cluster, depending on |
- * whether locations are being added or removed. |
- * |
- * This list must always include the cluster's primary zone. |
- */ |
+ /// The desired list of Google Compute Engine |
+ /// [locations](/compute/docs/zones#available) in which the cluster's nodes |
+ /// should be located. Changing the locations a cluster is in will result |
+ /// in nodes being either created or removed from the cluster, depending on |
+ /// whether locations are being added or removed. |
+ /// |
+ /// This list must always include the cluster's primary zone. |
core.List<core.String> locations; |
SetLocationsRequest(); |
@@ -3745,7 +3923,8 @@ class SetLocationsRequest { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (locations != null) { |
_json["locations"] = locations; |
} |
@@ -3753,15 +3932,13 @@ class SetLocationsRequest { |
} |
} |
-/** SetLoggingServiceRequest sets the logging service of a cluster. */ |
+/// SetLoggingServiceRequest sets the logging service of a cluster. |
class SetLoggingServiceRequest { |
- /** |
- * The logging service the cluster should use to write metrics. |
- * Currently available options: |
- * |
- * * "logging.googleapis.com" - the Google Cloud Logging service |
- * * "none" - no metrics will be exported from the cluster |
- */ |
+ /// The logging service the cluster should use to write metrics. |
+ /// Currently available options: |
+ /// |
+ /// * "logging.googleapis.com" - the Google Cloud Logging service |
+ /// * "none" - no metrics will be exported from the cluster |
core.String loggingService; |
SetLoggingServiceRequest(); |
@@ -3773,7 +3950,8 @@ class SetLoggingServiceRequest { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (loggingService != null) { |
_json["loggingService"] = loggingService; |
} |
@@ -3781,17 +3959,16 @@ class SetLoggingServiceRequest { |
} |
} |
-/** SetMasterAuthRequest updates the admin password of a cluster. */ |
+/// SetMasterAuthRequest updates the admin password of a cluster. |
class SetMasterAuthRequest { |
- /** |
- * The exact form of action to be taken on the master auth |
- * Possible string values are: |
- * - "UNKNOWN" : Operation is unknown and will error out |
- * - "SET_PASSWORD" : Set the password to a user generated value. |
- * - "GENERATE_PASSWORD" : Generate a new password and set it to that. |
- */ |
+ /// The exact form of action to be taken on the master auth |
+ /// Possible string values are: |
+ /// - "UNKNOWN" : Operation is unknown and will error out |
+ /// - "SET_PASSWORD" : Set the password to a user generated value. |
+ /// - "GENERATE_PASSWORD" : Generate a new password and set it to that. |
core.String action; |
- /** A description of the update. */ |
+ |
+ /// A description of the update. |
MasterAuth update; |
SetMasterAuthRequest(); |
@@ -3806,7 +3983,8 @@ class SetMasterAuthRequest { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (action != null) { |
_json["action"] = action; |
} |
@@ -3817,15 +3995,13 @@ class SetMasterAuthRequest { |
} |
} |
-/** SetMonitoringServiceRequest sets the monitoring service of a cluster. */ |
+/// SetMonitoringServiceRequest sets the monitoring service of a cluster. |
class SetMonitoringServiceRequest { |
- /** |
- * The monitoring service the cluster should use to write metrics. |
- * Currently available options: |
- * |
- * * "monitoring.googleapis.com" - the Google Cloud Monitoring service |
- * * "none" - no metrics will be exported from the cluster |
- */ |
+ /// The monitoring service the cluster should use to write metrics. |
+ /// Currently available options: |
+ /// |
+ /// * "monitoring.googleapis.com" - the Google Cloud Monitoring service |
+ /// * "none" - no metrics will be exported from the cluster |
core.String monitoringService; |
SetMonitoringServiceRequest(); |
@@ -3837,7 +4013,8 @@ class SetMonitoringServiceRequest { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (monitoringService != null) { |
_json["monitoringService"] = monitoringService; |
} |
@@ -3845,9 +4022,9 @@ class SetMonitoringServiceRequest { |
} |
} |
-/** SetNetworkPolicyRequest enables/disables network policy for a cluster. */ |
+/// SetNetworkPolicyRequest enables/disables network policy for a cluster. |
class SetNetworkPolicyRequest { |
- /** Configuration options for the NetworkPolicy feature. */ |
+ /// Configuration options for the NetworkPolicy feature. |
NetworkPolicy networkPolicy; |
SetNetworkPolicyRequest(); |
@@ -3859,7 +4036,8 @@ class SetNetworkPolicyRequest { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (networkPolicy != null) { |
_json["networkPolicy"] = (networkPolicy).toJson(); |
} |
@@ -3867,11 +4045,9 @@ class SetNetworkPolicyRequest { |
} |
} |
-/** |
- * SetNodePoolAutoscalingRequest sets the autoscaler settings of a node pool. |
- */ |
+/// SetNodePoolAutoscalingRequest sets the autoscaler settings of a node pool. |
class SetNodePoolAutoscalingRequest { |
- /** Autoscaling configuration for the node pool. */ |
+ /// Autoscaling configuration for the node pool. |
NodePoolAutoscaling autoscaling; |
SetNodePoolAutoscalingRequest(); |
@@ -3883,7 +4059,8 @@ class SetNodePoolAutoscalingRequest { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (autoscaling != null) { |
_json["autoscaling"] = (autoscaling).toJson(); |
} |
@@ -3891,12 +4068,10 @@ class SetNodePoolAutoscalingRequest { |
} |
} |
-/** |
- * SetNodePoolManagementRequest sets the node management properties of a node |
- * pool. |
- */ |
+/// SetNodePoolManagementRequest sets the node management properties of a node |
+/// pool. |
class SetNodePoolManagementRequest { |
- /** NodeManagement configuration for the node pool. */ |
+ /// NodeManagement configuration for the node pool. |
NodeManagement management; |
SetNodePoolManagementRequest(); |
@@ -3908,7 +4083,8 @@ class SetNodePoolManagementRequest { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (management != null) { |
_json["management"] = (management).toJson(); |
} |
@@ -3916,12 +4092,10 @@ class SetNodePoolManagementRequest { |
} |
} |
-/** |
- * SetNodePoolSizeRequest sets the size a node |
- * pool. |
- */ |
+/// SetNodePoolSizeRequest sets the size a node |
+/// pool. |
class SetNodePoolSizeRequest { |
- /** The desired node count for the pool. */ |
+ /// The desired node count for the pool. |
core.int nodeCount; |
SetNodePoolSizeRequest(); |
@@ -3933,7 +4107,8 @@ class SetNodePoolSizeRequest { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (nodeCount != null) { |
_json["nodeCount"] = nodeCount; |
} |
@@ -3941,26 +4116,23 @@ class SetNodePoolSizeRequest { |
} |
} |
-/** |
- * StartIPRotationRequest creates a new IP for the cluster and then performs |
- * a node upgrade on each node pool to point to the new IP. |
- */ |
+/// StartIPRotationRequest creates a new IP for the cluster and then performs |
+/// a node upgrade on each node pool to point to the new IP. |
class StartIPRotationRequest { |
- |
StartIPRotationRequest(); |
- StartIPRotationRequest.fromJson(core.Map _json) { |
- } |
+ StartIPRotationRequest.fromJson(core.Map _json) {} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
return _json; |
} |
} |
-/** UpdateClusterRequest updates the settings of a cluster. */ |
+/// UpdateClusterRequest updates the settings of a cluster. |
class UpdateClusterRequest { |
- /** A description of the update. */ |
+ /// A description of the update. |
ClusterUpdate update; |
UpdateClusterRequest(); |
@@ -3972,7 +4144,8 @@ class UpdateClusterRequest { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (update != null) { |
_json["update"] = (update).toJson(); |
} |
@@ -3980,13 +4153,12 @@ class UpdateClusterRequest { |
} |
} |
-/** UpdateMasterRequest updates the master of the cluster. */ |
+/// UpdateMasterRequest updates the master of the cluster. |
class UpdateMasterRequest { |
- /** |
- * The Kubernetes version to change the master to. The only valid value is the |
- * latest supported version. Use "-" to have the server automatically select |
- * the latest version. |
- */ |
+ /// The Kubernetes version to change the master to. The only valid value is |
+ /// the |
+ /// latest supported version. Use "-" to have the server automatically select |
+ /// the latest version. |
core.String masterVersion; |
UpdateMasterRequest(); |
@@ -3998,7 +4170,8 @@ class UpdateMasterRequest { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (masterVersion != null) { |
_json["masterVersion"] = masterVersion; |
} |
@@ -4006,15 +4179,14 @@ class UpdateMasterRequest { |
} |
} |
-/** UpdateNodePoolRequests update a node pool's image and/or version. */ |
+/// UpdateNodePoolRequests update a node pool's image and/or version. |
class UpdateNodePoolRequest { |
- /** The desired image type for the node pool. */ |
+ /// The desired image type for the node pool. |
core.String imageType; |
- /** |
- * The Kubernetes version to change the nodes to (typically an |
- * upgrade). Use `-` to upgrade to the latest version supported by |
- * the server. |
- */ |
+ |
+ /// The Kubernetes version to change the nodes to (typically an |
+ /// upgrade). Use `-` to upgrade to the latest version supported by |
+ /// the server. |
core.String nodeVersion; |
UpdateNodePoolRequest(); |
@@ -4029,7 +4201,8 @@ class UpdateNodePoolRequest { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (imageType != null) { |
_json["imageType"] = imageType; |
} |