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

Unified Diff: generated/googleapis_beta/lib/replicapool/v1beta2.dart

Issue 698403003: Api roll 5: 2014-11-05 (Closed) Base URL: git@github.com:dart-lang/googleapis.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: generated/googleapis_beta/lib/replicapool/v1beta2.dart
diff --git a/generated/googleapis_beta/lib/resourceviews/v1beta2.dart b/generated/googleapis_beta/lib/replicapool/v1beta2.dart
similarity index 60%
copy from generated/googleapis_beta/lib/resourceviews/v1beta2.dart
copy to generated/googleapis_beta/lib/replicapool/v1beta2.dart
index 25eb1223c22c31be3316301c031bc943cb242e41..53fc3cbc19cbf04d0b258fa89fd4365da90f187b 100644
--- a/generated/googleapis_beta/lib/resourceviews/v1beta2.dart
+++ b/generated/googleapis_beta/lib/replicapool/v1beta2.dart
@@ -1,4 +1,4 @@
-library googleapis_beta.resourceviews.v1beta2;
+library googleapis_beta.replicapool.v1beta2;
import "dart:core" as core;
import "dart:collection" as collection;
@@ -14,10 +14,10 @@ export '../common/common.dart' show ApiRequestError;
export '../common/common.dart' show DetailedApiRequestError;
/**
- * The Resource View API allows users to create and manage logical sets of
- * Google Compute Engine instances.
+ * The Google Compute Engine Instance Group Manager API provides groups of
+ * homogenous Compute Engine Instances.
*/
-class ResourceviewsApi {
+class ReplicapoolApi {
/** View and manage your data across Google Cloud Platform services */
static const CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform";
@@ -27,49 +27,41 @@ class ResourceviewsApi {
/** View your Google Compute Engine resources */
static const ComputeReadonlyScope = "https://www.googleapis.com/auth/compute.readonly";
- /**
- * View and manage your Google Cloud Platform management resources and
- * deployment status information
- */
- static const NdevCloudmanScope = "https://www.googleapis.com/auth/ndev.cloudman";
-
- /**
- * View your Google Cloud Platform management resources and deployment status
- * information
- */
- static const NdevCloudmanReadonlyScope = "https://www.googleapis.com/auth/ndev.cloudman.readonly";
-
final common_internal.ApiRequester _requester;
+ InstanceGroupManagersResourceApi get instanceGroupManagers => new InstanceGroupManagersResourceApi(_requester);
ZoneOperationsResourceApi get zoneOperations => new ZoneOperationsResourceApi(_requester);
- ZoneViewsResourceApi get zoneViews => new ZoneViewsResourceApi(_requester);
- ResourceviewsApi(http.Client client) :
- _requester = new common_internal.ApiRequester(client, "https://www.googleapis.com/", "resourceviews/v1beta2/projects/");
+ ReplicapoolApi(http.Client client) :
+ _requester = new common_internal.ApiRequester(client, "https://www.googleapis.com/", "replicapool/v1beta2/projects/");
}
/** Not documented yet. */
-class ZoneOperationsResourceApi {
+class InstanceGroupManagersResourceApi {
final common_internal.ApiRequester _requester;
- ZoneOperationsResourceApi(common_internal.ApiRequester client) :
+ InstanceGroupManagersResourceApi(common_internal.ApiRequester client) :
_requester = client;
/**
- * Retrieves the specified zone-specific operation resource.
+ * Removes the specified instances from the managed instance group, and from
+ * any target pools of which they were members, without deleting the
+ * instances.
+ *
+ * [request] - The metadata request object.
*
* Request parameters:
*
- * [project] - Name of the project scoping this request.
+ * [project] - The Google Developers Console project name.
* Value must have pattern
* "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))".
*
- * [zone] - Name of the zone scoping this request.
+ * [zone] - The name of the zone in which the instance group manager resides.
* Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
*
- * [operation] - Name of the operation resource to return.
+ * [instanceGroupManager] - The name of the instance group manager.
* Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
*
* Completes with a [Operation].
@@ -80,7 +72,7 @@ class ZoneOperationsResourceApi {
* 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 project, core.String zone, core.String operation) {
+ async.Future<Operation> abandonInstances(InstanceGroupManagersAbandonInstancesRequest request, core.String project, core.String zone, core.String instanceGroupManager) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -88,21 +80,24 @@ class ZoneOperationsResourceApi {
var _downloadOptions = common.DownloadOptions.Metadata;
var _body = null;
+ if (request != null) {
+ _body = convert.JSON.encode((request).toJson());
+ }
if (project == null) {
throw new core.ArgumentError("Parameter project is required.");
}
if (zone == null) {
throw new core.ArgumentError("Parameter zone is required.");
}
- if (operation == null) {
- throw new core.ArgumentError("Parameter operation is required.");
+ if (instanceGroupManager == null) {
+ throw new core.ArgumentError("Parameter instanceGroupManager is required.");
}
- _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + common_internal.Escaper.ecapeVariable('$zone') + '/operations/' + common_internal.Escaper.ecapeVariable('$operation');
+ _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + common_internal.Escaper.ecapeVariable('$zone') + '/instanceGroupManagers/' + common_internal.Escaper.ecapeVariable('$instanceGroupManager') + '/abandonInstances';
var _response = _requester.request(_url,
- "GET",
+ "POST",
body: _body,
queryParams: _queryParams,
uploadOptions: _uploadOptions,
@@ -112,28 +107,24 @@ class ZoneOperationsResourceApi {
}
/**
- * Retrieves the list of operation resources contained within the specified
- * zone.
+ * Deletes the instance group manager and all instances contained within. If
+ * you'd like to delete the manager without deleting the instances, you must
+ * first abandon the instances to remove them from the group.
*
* Request parameters:
*
- * [project] - Name of the project scoping this request.
+ * [project] - The Google Developers Console project name.
* Value must have pattern
* "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))".
*
- * [zone] - Name of the zone scoping this request.
+ * [zone] - The name of the zone in which the instance group manager resides.
* Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
*
- * [filter] - Optional. Filter expression for filtering listed resources.
- *
- * [maxResults] - Optional. Maximum count of results to be returned. Maximum
- * value is 500 and default value is 500.
- * Value must be between "0" and "500".
- *
- * [pageToken] - Optional. Tag returned by a previous list request truncated
- * by maxResults. Used to continue a previous list request.
+ * [instanceGroupManager] - Name of the Instance Group Manager resource to
+ * delete.
+ * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
*
- * Completes with a [OperationList].
+ * Completes with a [Operation].
*
* Completes with a [common.ApiRequestError] if the API endpoint returned an
* error.
@@ -141,7 +132,7 @@ class ZoneOperationsResourceApi {
* If the used [http.Client] completes with an error when making a REST call,
* this method will complete with the same error.
*/
- async.Future<OperationList> list(core.String project, core.String zone, {core.String filter, core.int maxResults, core.String pageToken}) {
+ async.Future<Operation> delete(core.String project, core.String zone, core.String instanceGroupManager) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -155,51 +146,42 @@ class ZoneOperationsResourceApi {
if (zone == null) {
throw new core.ArgumentError("Parameter zone is required.");
}
- if (filter != null) {
- _queryParams["filter"] = [filter];
- }
- if (maxResults != null) {
- _queryParams["maxResults"] = ["${maxResults}"];
- }
- if (pageToken != null) {
- _queryParams["pageToken"] = [pageToken];
+ if (instanceGroupManager == null) {
+ throw new core.ArgumentError("Parameter instanceGroupManager is required.");
}
- _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + common_internal.Escaper.ecapeVariable('$zone') + '/operations';
+ _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + common_internal.Escaper.ecapeVariable('$zone') + '/instanceGroupManagers/' + common_internal.Escaper.ecapeVariable('$instanceGroupManager');
var _response = _requester.request(_url,
- "GET",
+ "DELETE",
body: _body,
queryParams: _queryParams,
uploadOptions: _uploadOptions,
uploadMedia: _uploadMedia,
downloadOptions: _downloadOptions);
- return _response.then((data) => new OperationList.fromJson(data));
+ return _response.then((data) => new Operation.fromJson(data));
}
-}
-
-
-/** Not documented yet. */
-class ZoneViewsResourceApi {
- final common_internal.ApiRequester _requester;
-
- ZoneViewsResourceApi(common_internal.ApiRequester client) :
- _requester = client;
-
/**
- * Add resources to the view.
+ * Deletes the specified instances. The instances are removed from the
+ * instance group and any target pools of which they are a member, then
+ * deleted. The targetSize of the instance group manager is reduced by the
+ * number of instances deleted.
*
* [request] - The metadata request object.
*
* Request parameters:
*
- * [project] - The project name of the resource view.
+ * [project] - The Google Developers Console project name.
+ * Value must have pattern
+ * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))".
*
- * [zone] - The zone name of the resource view.
+ * [zone] - The name of the zone in which the instance group manager resides.
+ * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
*
- * [resourceView] - The name of the resource view.
+ * [instanceGroupManager] - The name of the instance group manager.
+ * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
*
* Completes with a [Operation].
*
@@ -209,7 +191,7 @@ class ZoneViewsResourceApi {
* 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> addResources(ZoneViewsAddResourcesRequest request, core.String project, core.String zone, core.String resourceView) {
+ async.Future<Operation> deleteInstances(InstanceGroupManagersDeleteInstancesRequest request, core.String project, core.String zone, core.String instanceGroupManager) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -226,12 +208,12 @@ class ZoneViewsResourceApi {
if (zone == null) {
throw new core.ArgumentError("Parameter zone is required.");
}
- if (resourceView == null) {
- throw new core.ArgumentError("Parameter resourceView is required.");
+ if (instanceGroupManager == null) {
+ throw new core.ArgumentError("Parameter instanceGroupManager is required.");
}
- _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + common_internal.Escaper.ecapeVariable('$zone') + '/resourceViews/' + common_internal.Escaper.ecapeVariable('$resourceView') + '/addResources';
+ _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + common_internal.Escaper.ecapeVariable('$zone') + '/instanceGroupManagers/' + common_internal.Escaper.ecapeVariable('$instanceGroupManager') + '/deleteInstances';
var _response = _requester.request(_url,
"POST",
@@ -244,17 +226,21 @@ class ZoneViewsResourceApi {
}
/**
- * Delete a resource view.
+ * Returns the specified Instance Group Manager resource.
*
* Request parameters:
*
- * [project] - The project name of the resource view.
+ * [project] - The Google Developers Console project name.
+ * Value must have pattern
+ * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))".
*
- * [zone] - The zone name of the resource view.
+ * [zone] - The name of the zone in which the instance group manager resides.
+ * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
*
- * [resourceView] - The name of the resource view.
+ * [instanceGroupManager] - Name of the instance resource to return.
+ * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
*
- * Completes with a [Operation].
+ * Completes with a [InstanceGroupManager].
*
* Completes with a [common.ApiRequestError] if the API endpoint returned an
* error.
@@ -262,7 +248,7 @@ class ZoneViewsResourceApi {
* 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 project, core.String zone, core.String resourceView) {
+ async.Future<InstanceGroupManager> get(core.String project, core.String zone, core.String instanceGroupManager) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -276,35 +262,41 @@ class ZoneViewsResourceApi {
if (zone == null) {
throw new core.ArgumentError("Parameter zone is required.");
}
- if (resourceView == null) {
- throw new core.ArgumentError("Parameter resourceView is required.");
+ if (instanceGroupManager == null) {
+ throw new core.ArgumentError("Parameter instanceGroupManager is required.");
}
- _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + common_internal.Escaper.ecapeVariable('$zone') + '/resourceViews/' + common_internal.Escaper.ecapeVariable('$resourceView');
+ _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + common_internal.Escaper.ecapeVariable('$zone') + '/instanceGroupManagers/' + common_internal.Escaper.ecapeVariable('$instanceGroupManager');
var _response = _requester.request(_url,
- "DELETE",
+ "GET",
body: _body,
queryParams: _queryParams,
uploadOptions: _uploadOptions,
uploadMedia: _uploadMedia,
downloadOptions: _downloadOptions);
- return _response.then((data) => new Operation.fromJson(data));
+ return _response.then((data) => new InstanceGroupManager.fromJson(data));
}
/**
- * Get the information of a zonal resource view.
+ * Creates an instance group manager, as well as the instance group and the
+ * specified number of instances.
+ *
+ * [request] - The metadata request object.
*
* Request parameters:
*
- * [project] - The project name of the resource view.
+ * [project] - The Google Developers Console project name.
+ * Value must have pattern
+ * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))".
*
- * [zone] - The zone name of the resource view.
+ * [zone] - The name of the zone in which the instance group manager resides.
+ * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
*
- * [resourceView] - The name of the resource view.
+ * [size] - Number of instances that should exist.
*
- * Completes with a [ResourceView].
+ * Completes with a [Operation].
*
* Completes with a [common.ApiRequestError] if the API endpoint returned an
* error.
@@ -312,7 +304,7 @@ class ZoneViewsResourceApi {
* If the used [http.Client] completes with an error when making a REST call,
* this method will complete with the same error.
*/
- async.Future<ResourceView> get(core.String project, core.String zone, core.String resourceView) {
+ async.Future<Operation> insert(InstanceGroupManager request, core.String project, core.String zone, core.int size) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -320,44 +312,56 @@ class ZoneViewsResourceApi {
var _downloadOptions = common.DownloadOptions.Metadata;
var _body = null;
+ if (request != null) {
+ _body = convert.JSON.encode((request).toJson());
+ }
if (project == null) {
throw new core.ArgumentError("Parameter project is required.");
}
if (zone == null) {
throw new core.ArgumentError("Parameter zone is required.");
}
- if (resourceView == null) {
- throw new core.ArgumentError("Parameter resourceView is required.");
+ if (size == null) {
+ throw new core.ArgumentError("Parameter size is required.");
}
+ _queryParams["size"] = ["${size}"];
- _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + common_internal.Escaper.ecapeVariable('$zone') + '/resourceViews/' + common_internal.Escaper.ecapeVariable('$resourceView');
+ _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + common_internal.Escaper.ecapeVariable('$zone') + '/instanceGroupManagers';
var _response = _requester.request(_url,
- "GET",
+ "POST",
body: _body,
queryParams: _queryParams,
uploadOptions: _uploadOptions,
uploadMedia: _uploadMedia,
downloadOptions: _downloadOptions);
- return _response.then((data) => new ResourceView.fromJson(data));
+ return _response.then((data) => new Operation.fromJson(data));
}
/**
- * Get the service information of a resource view or a resource.
+ * Retrieves the list of Instance Group Manager resources contained within the
+ * specified zone.
*
* Request parameters:
*
- * [project] - The project name of the resource view.
+ * [project] - The Google Developers Console project name.
+ * Value must have pattern
+ * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))".
+ *
+ * [zone] - The name of the zone in which the instance group manager resides.
+ * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
*
- * [zone] - The zone name of the resource view.
+ * [filter] - Optional. Filter expression for filtering listed resources.
*
- * [resourceView] - The name of the resource view.
+ * [maxResults] - Optional. Maximum count of results to be returned. Maximum
+ * value is 500 and default value is 500.
+ * Value must be between "0" and "500".
*
- * [resourceName] - The name of the resource if user wants to get the service
- * information of the resource.
+ * [pageToken] - Optional. Tag returned by a previous list request truncated
+ * by maxResults. Used to continue a previous list request.
*
- * Completes with a [ZoneViewsGetServiceResponse].
+ * Completes with a [InstanceGroupManagerList].
*
* Completes with a [common.ApiRequestError] if the API endpoint returned an
* error.
@@ -365,7 +369,7 @@ class ZoneViewsResourceApi {
* If the used [http.Client] completes with an error when making a REST call,
* this method will complete with the same error.
*/
- async.Future<ZoneViewsGetServiceResponse> getService(core.String project, core.String zone, core.String resourceView, {core.String resourceName}) {
+ async.Future<InstanceGroupManagerList> list(core.String project, core.String zone, {core.String filter, core.int maxResults, core.String pageToken}) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -379,36 +383,46 @@ class ZoneViewsResourceApi {
if (zone == null) {
throw new core.ArgumentError("Parameter zone is required.");
}
- if (resourceView == null) {
- throw new core.ArgumentError("Parameter resourceView is required.");
+ if (filter != null) {
+ _queryParams["filter"] = [filter];
+ }
+ if (maxResults != null) {
+ _queryParams["maxResults"] = ["${maxResults}"];
}
- if (resourceName != null) {
- _queryParams["resourceName"] = [resourceName];
+ if (pageToken != null) {
+ _queryParams["pageToken"] = [pageToken];
}
- _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + common_internal.Escaper.ecapeVariable('$zone') + '/resourceViews/' + common_internal.Escaper.ecapeVariable('$resourceView') + '/getService';
+ _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + common_internal.Escaper.ecapeVariable('$zone') + '/instanceGroupManagers';
var _response = _requester.request(_url,
- "POST",
+ "GET",
body: _body,
queryParams: _queryParams,
uploadOptions: _uploadOptions,
uploadMedia: _uploadMedia,
downloadOptions: _downloadOptions);
- return _response.then((data) => new ZoneViewsGetServiceResponse.fromJson(data));
+ return _response.then((data) => new InstanceGroupManagerList.fromJson(data));
}
/**
- * Create a resource view.
+ * Recreates the specified instances. The instances are deleted, then
+ * recreated using the instance group manager's current instance template.
*
* [request] - The metadata request object.
*
* Request parameters:
*
- * [project] - The project name of the resource view.
+ * [project] - The Google Developers Console project name.
+ * Value must have pattern
+ * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))".
+ *
+ * [zone] - The name of the zone in which the instance group manager resides.
+ * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
*
- * [zone] - The zone name of the resource view.
+ * [instanceGroupManager] - The name of the instance group manager.
+ * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
*
* Completes with a [Operation].
*
@@ -418,7 +432,7 @@ class ZoneViewsResourceApi {
* 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> insert(ResourceView request, core.String project, core.String zone) {
+ async.Future<Operation> recreateInstances(InstanceGroupManagersRecreateInstancesRequest request, core.String project, core.String zone, core.String instanceGroupManager) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -435,9 +449,12 @@ class ZoneViewsResourceApi {
if (zone == null) {
throw new core.ArgumentError("Parameter zone is required.");
}
+ if (instanceGroupManager == null) {
+ throw new core.ArgumentError("Parameter instanceGroupManager is required.");
+ }
- _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + common_internal.Escaper.ecapeVariable('$zone') + '/resourceViews';
+ _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + common_internal.Escaper.ecapeVariable('$zone') + '/instanceGroupManagers/' + common_internal.Escaper.ecapeVariable('$instanceGroupManager') + '/recreateInstances';
var _response = _requester.request(_url,
"POST",
@@ -450,23 +467,26 @@ class ZoneViewsResourceApi {
}
/**
- * List resource views.
+ * Resizes the managed instance group up or down. If resized up, new instances
+ * are created using the current instance template. If resized down, instances
+ * are removed in the order outlined in Resizing a managed instance group.
*
* Request parameters:
*
- * [project] - The project name of the resource view.
+ * [project] - The Google Developers Console project name.
+ * Value must have pattern
+ * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))".
*
- * [zone] - The zone name of the resource view.
+ * [zone] - The name of the zone in which the instance group manager resides.
+ * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
*
- * [maxResults] - Maximum count of results to be returned. Acceptable values
- * are 0 to 5000, inclusive. (Default: 5000)
- * Value must be between "0" and "5000".
+ * [instanceGroupManager] - The name of the instance group manager.
+ * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
*
- * [pageToken] - Specifies a nextPageToken returned by a previous list
- * request. This token can be used to request the next page of results from a
- * previous list request.
+ * [size] - Number of instances that should exist in this Instance Group
+ * Manager.
*
- * Completes with a [ZoneViewsList].
+ * Completes with a [Operation].
*
* Completes with a [common.ApiRequestError] if the API endpoint returned an
* error.
@@ -474,7 +494,7 @@ class ZoneViewsResourceApi {
* If the used [http.Client] completes with an error when making a REST call,
* this method will complete with the same error.
*/
- async.Future<ZoneViewsList> list(core.String project, core.String zone, {core.int maxResults, core.String pageToken}) {
+ async.Future<Operation> resize(core.String project, core.String zone, core.String instanceGroupManager, core.int size) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -488,64 +508,46 @@ class ZoneViewsResourceApi {
if (zone == null) {
throw new core.ArgumentError("Parameter zone is required.");
}
- if (maxResults != null) {
- _queryParams["maxResults"] = ["${maxResults}"];
+ if (instanceGroupManager == null) {
+ throw new core.ArgumentError("Parameter instanceGroupManager is required.");
}
- if (pageToken != null) {
- _queryParams["pageToken"] = [pageToken];
+ if (size == null) {
+ throw new core.ArgumentError("Parameter size is required.");
}
+ _queryParams["size"] = ["${size}"];
- _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + common_internal.Escaper.ecapeVariable('$zone') + '/resourceViews';
+ _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + common_internal.Escaper.ecapeVariable('$zone') + '/instanceGroupManagers/' + common_internal.Escaper.ecapeVariable('$instanceGroupManager') + '/resize';
var _response = _requester.request(_url,
- "GET",
+ "POST",
body: _body,
queryParams: _queryParams,
uploadOptions: _uploadOptions,
uploadMedia: _uploadMedia,
downloadOptions: _downloadOptions);
- return _response.then((data) => new ZoneViewsList.fromJson(data));
+ return _response.then((data) => new Operation.fromJson(data));
}
/**
- * List the resources of the resource view.
- *
- * Request parameters:
- *
- * [project] - The project name of the resource view.
- *
- * [zone] - The zone name of the resource view.
- *
- * [resourceView] - The name of the resource view.
+ * Sets the instance template to use when creating new instances in this
+ * group. Existing instances are not affected.
*
- * [format] - The requested format of the return value. It can be URL or
- * URL_PORT. A JSON object will be included in the response based on the
- * format. The default format is NONE, which results in no JSON in the
- * response.
- * Possible string values are:
- * - "NONE"
- * - "URL"
- * - "URL_PORT"
+ * [request] - The metadata request object.
*
- * [listState] - The state of the instance to list. By default, it lists all
- * instances.
- * Possible string values are:
- * - "ALL"
- * - "RUNNING"
+ * Request parameters:
*
- * [maxResults] - Maximum count of results to be returned. Acceptable values
- * are 0 to 5000, inclusive. (Default: 5000)
- * Value must be between "0" and "5000".
+ * [project] - The Google Developers Console project name.
+ * Value must have pattern
+ * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))".
*
- * [pageToken] - Specifies a nextPageToken returned by a previous list
- * request. This token can be used to request the next page of results from a
- * previous list request.
+ * [zone] - The name of the zone in which the instance group manager resides.
+ * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
*
- * [serviceName] - The service name to return in the response. It is optional
- * and if it is not set, all the service end points will be returned.
+ * [instanceGroupManager] - The name of the instance group manager.
+ * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
*
- * Completes with a [ZoneViewsListResourcesResponse].
+ * Completes with a [Operation].
*
* Completes with a [common.ApiRequestError] if the API endpoint returned an
* error.
@@ -553,7 +555,7 @@ class ZoneViewsResourceApi {
* If the used [http.Client] completes with an error when making a REST call,
* this method will complete with the same error.
*/
- async.Future<ZoneViewsListResourcesResponse> listResources(core.String project, core.String zone, core.String resourceView, {core.String format, core.String listState, core.int maxResults, core.String pageToken, core.String serviceName}) {
+ async.Future<Operation> setInstanceTemplate(InstanceGroupManagersSetInstanceTemplateRequest request, core.String project, core.String zone, core.String instanceGroupManager) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -561,56 +563,49 @@ class ZoneViewsResourceApi {
var _downloadOptions = common.DownloadOptions.Metadata;
var _body = null;
+ if (request != null) {
+ _body = convert.JSON.encode((request).toJson());
+ }
if (project == null) {
throw new core.ArgumentError("Parameter project is required.");
}
if (zone == null) {
throw new core.ArgumentError("Parameter zone is required.");
}
- if (resourceView == null) {
- throw new core.ArgumentError("Parameter resourceView is required.");
- }
- if (format != null) {
- _queryParams["format"] = [format];
- }
- if (listState != null) {
- _queryParams["listState"] = [listState];
- }
- if (maxResults != null) {
- _queryParams["maxResults"] = ["${maxResults}"];
- }
- if (pageToken != null) {
- _queryParams["pageToken"] = [pageToken];
- }
- if (serviceName != null) {
- _queryParams["serviceName"] = [serviceName];
+ if (instanceGroupManager == null) {
+ throw new core.ArgumentError("Parameter instanceGroupManager is required.");
}
- _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + common_internal.Escaper.ecapeVariable('$zone') + '/resourceViews/' + common_internal.Escaper.ecapeVariable('$resourceView') + '/resources';
+ _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + common_internal.Escaper.ecapeVariable('$zone') + '/instanceGroupManagers/' + common_internal.Escaper.ecapeVariable('$instanceGroupManager') + '/setInstanceTemplate';
var _response = _requester.request(_url,
- "GET",
+ "POST",
body: _body,
queryParams: _queryParams,
uploadOptions: _uploadOptions,
uploadMedia: _uploadMedia,
downloadOptions: _downloadOptions);
- return _response.then((data) => new ZoneViewsListResourcesResponse.fromJson(data));
+ return _response.then((data) => new Operation.fromJson(data));
}
/**
- * Remove resources from the view.
+ * Modifies the target pools to which all new instances in this group are
+ * assigned. Existing instances in the group are not affected.
*
* [request] - The metadata request object.
*
* Request parameters:
*
- * [project] - The project name of the resource view.
+ * [project] - The Google Developers Console project name.
+ * Value must have pattern
+ * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))".
*
- * [zone] - The zone name of the resource view.
+ * [zone] - The name of the zone in which the instance group manager resides.
+ * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
*
- * [resourceView] - The name of the resource view.
+ * [instanceGroupManager] - The name of the instance group manager.
+ * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
*
* Completes with a [Operation].
*
@@ -620,7 +615,7 @@ class ZoneViewsResourceApi {
* 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> removeResources(ZoneViewsRemoveResourcesRequest request, core.String project, core.String zone, core.String resourceView) {
+ async.Future<Operation> setTargetPools(InstanceGroupManagersSetTargetPoolsRequest request, core.String project, core.String zone, core.String instanceGroupManager) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -637,12 +632,12 @@ class ZoneViewsResourceApi {
if (zone == null) {
throw new core.ArgumentError("Parameter zone is required.");
}
- if (resourceView == null) {
- throw new core.ArgumentError("Parameter resourceView is required.");
+ if (instanceGroupManager == null) {
+ throw new core.ArgumentError("Parameter instanceGroupManager is required.");
}
- _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + common_internal.Escaper.ecapeVariable('$zone') + '/resourceViews/' + common_internal.Escaper.ecapeVariable('$resourceView') + '/removeResources';
+ _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + common_internal.Escaper.ecapeVariable('$zone') + '/instanceGroupManagers/' + common_internal.Escaper.ecapeVariable('$instanceGroupManager') + '/setTargetPools';
var _response = _requester.request(_url,
"POST",
@@ -654,18 +649,30 @@ class ZoneViewsResourceApi {
return _response.then((data) => new Operation.fromJson(data));
}
+}
+
+
+/** Not documented yet. */
+class ZoneOperationsResourceApi {
+ final common_internal.ApiRequester _requester;
+
+ ZoneOperationsResourceApi(common_internal.ApiRequester client) :
+ _requester = client;
+
/**
- * Update the service information of a resource view or a resource.
- *
- * [request] - The metadata request object.
+ * Retrieves the specified zone-specific operation resource.
*
* Request parameters:
*
- * [project] - The project name of the resource view.
+ * [project] - Name of the project scoping this request.
+ * Value must have pattern
+ * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))".
*
- * [zone] - The zone name of the resource view.
+ * [zone] - Name of the zone scoping this request.
+ * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
*
- * [resourceView] - The name of the resource view.
+ * [operation] - Name of the operation resource to return.
+ * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
*
* Completes with a [Operation].
*
@@ -675,7 +682,7 @@ class ZoneViewsResourceApi {
* 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> setService(ZoneViewsSetServiceRequest request, core.String project, core.String zone, core.String resourceView) {
+ async.Future<Operation> get(core.String project, core.String zone, core.String operation) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -683,24 +690,21 @@ class ZoneViewsResourceApi {
var _downloadOptions = common.DownloadOptions.Metadata;
var _body = null;
- if (request != null) {
- _body = convert.JSON.encode((request).toJson());
- }
if (project == null) {
throw new core.ArgumentError("Parameter project is required.");
}
if (zone == null) {
throw new core.ArgumentError("Parameter zone is required.");
}
- if (resourceView == null) {
- throw new core.ArgumentError("Parameter resourceView is required.");
+ if (operation == null) {
+ throw new core.ArgumentError("Parameter operation is required.");
}
- _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + common_internal.Escaper.ecapeVariable('$zone') + '/resourceViews/' + common_internal.Escaper.ecapeVariable('$resourceView') + '/setService';
+ _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + common_internal.Escaper.ecapeVariable('$zone') + '/operations/' + common_internal.Escaper.ecapeVariable('$operation');
var _response = _requester.request(_url,
- "POST",
+ "GET",
body: _body,
queryParams: _queryParams,
uploadOptions: _uploadOptions,
@@ -709,72 +713,468 @@ class ZoneViewsResourceApi {
return _response.then((data) => new Operation.fromJson(data));
}
-}
+ /**
+ * Retrieves the list of operation resources contained within the specified
+ * zone.
+ *
+ * Request parameters:
+ *
+ * [project] - Name of the project scoping this request.
+ * Value must have pattern
+ * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))".
+ *
+ * [zone] - Name of the zone scoping this request.
+ * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
+ *
+ * [filter] - Optional. Filter expression for filtering listed resources.
+ *
+ * [maxResults] - Optional. Maximum count of results to be returned. Maximum
+ * value is 500 and default value is 500.
+ * Value must be between "0" and "500".
+ *
+ * [pageToken] - Optional. Tag returned by a previous list request truncated
+ * by maxResults. Used to continue a previous list request.
+ *
+ * Completes with a [OperationList].
+ *
+ * Completes with a [common.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<OperationList> list(core.String project, core.String zone, {core.String filter, core.int maxResults, core.String pageToken}) {
+ var _url = null;
+ var _queryParams = new core.Map();
+ var _uploadMedia = null;
+ var _uploadOptions = null;
+ var _downloadOptions = common.DownloadOptions.Metadata;
+ var _body = null;
+ if (project == null) {
+ throw new core.ArgumentError("Parameter project is required.");
+ }
+ if (zone == null) {
+ throw new core.ArgumentError("Parameter zone is required.");
+ }
+ if (filter != null) {
+ _queryParams["filter"] = [filter];
+ }
+ if (maxResults != null) {
+ _queryParams["maxResults"] = ["${maxResults}"];
+ }
+ if (pageToken != null) {
+ _queryParams["pageToken"] = [pageToken];
+ }
-/** The Label to be applied to the resource views. */
-class Label {
- /** Key of the label. */
- core.String key;
+ _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + common_internal.Escaper.ecapeVariable('$zone') + '/operations';
- /** Value of the label. */
- core.String value;
+ var _response = _requester.request(_url,
+ "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
+ return _response.then((data) => new OperationList.fromJson(data));
+ }
+}
- Label();
- Label.fromJson(core.Map _json) {
- if (_json.containsKey("key")) {
- key = _json["key"];
- }
- if (_json.containsKey("value")) {
- value = _json["value"];
+
+/** An Instance Group Manager resource. */
+class InstanceGroupManager {
+ /**
+ * The base instance name to use for instances in this group. The value must
+ * be a valid RFC1035 name. Supported characters are lowercase letters,
+ * numbers, and hyphens (-). Instances are named by appending a hyphen and a
+ * random four-character string to the base instance name.
+ */
+ core.String baseInstanceName;
+
+ /**
+ * [Output only] The time the instance group manager was created, in RFC3339
+ * text format.
+ */
+ core.String creationTimestamp;
+
+ /**
+ * [Output only] The number of instances that currently exist and are a part
+ * of this group. This includes instances that are starting but are not yet
+ * RUNNING, and instances that are in the process of being deleted or
+ * abandoned.
+ */
+ core.int currentSize;
+
+ /** An optional textual description of the instance group manager. */
+ core.String description;
+
+ /**
+ * [Output only] Fingerprint of the instance group manager. This field is used
+ * for optimistic locking. An up-to-date fingerprint must be provided in order
+ * to modify the Instance Group Manager resource.
+ */
+ core.String fingerprint;
+
+ core.List<core.int> get fingerprintAsBytes {
+ return crypto.CryptoUtils.base64StringToBytes(fingerprint);
+ }
+
+ void set fingerprintAsBytes(core.List<core.int> _bytes) {
+ fingerprint = crypto.CryptoUtils.bytesToBase64(_bytes, urlSafe: true);
+ }
+
+ /**
+ * [Output only] The full URL of the instance group created by the manager.
+ * This group contains all of the instances being managed, and cannot contain
+ * non-managed instances.
+ */
+ core.String group;
+
+ /** [Output only] A server-assigned unique identifier for the resource. */
+ core.String id;
+
+ /**
+ * The full URL to an instance template from which all new instances will be
+ * created.
+ */
+ core.String instanceTemplate;
+
+ /**
+ * [Output only] The resource type. Always replicapool#instanceGroupManager.
+ */
+ core.String kind;
+
+ /**
+ * The name of the instance group manager. Must be 1-63 characters long and
+ * comply with RFC1035. Supported characters include lowercase letters,
+ * numbers, and hyphens.
+ */
+ core.String name;
+
+ /** [Output only] The fully qualified URL for this resource. */
+ core.String selfLink;
+
+ /**
+ * The full URL of all target pools to which new instances in the group are
+ * added. Updating the target pool values does not affect existing instances.
+ */
+ core.List<core.String> targetPools;
+
+ /**
+ * [Output only] The number of instances that the manager is attempting to
+ * maintain. Deleting or abandoning instances affects this number, as does
+ * resizing the group.
+ */
+ core.int targetSize;
+
+
+ InstanceGroupManager();
+
+ InstanceGroupManager.fromJson(core.Map _json) {
+ if (_json.containsKey("baseInstanceName")) {
+ baseInstanceName = _json["baseInstanceName"];
+ }
+ if (_json.containsKey("creationTimestamp")) {
+ creationTimestamp = _json["creationTimestamp"];
+ }
+ if (_json.containsKey("currentSize")) {
+ currentSize = _json["currentSize"];
+ }
+ if (_json.containsKey("description")) {
+ description = _json["description"];
+ }
+ if (_json.containsKey("fingerprint")) {
+ fingerprint = _json["fingerprint"];
+ }
+ if (_json.containsKey("group")) {
+ group = _json["group"];
+ }
+ if (_json.containsKey("id")) {
+ id = _json["id"];
+ }
+ if (_json.containsKey("instanceTemplate")) {
+ instanceTemplate = _json["instanceTemplate"];
+ }
+ if (_json.containsKey("kind")) {
+ kind = _json["kind"];
+ }
+ if (_json.containsKey("name")) {
+ name = _json["name"];
+ }
+ if (_json.containsKey("selfLink")) {
+ selfLink = _json["selfLink"];
+ }
+ if (_json.containsKey("targetPools")) {
+ targetPools = _json["targetPools"];
+ }
+ if (_json.containsKey("targetSize")) {
+ targetSize = _json["targetSize"];
}
}
core.Map toJson() {
var _json = new core.Map();
- if (key != null) {
- _json["key"] = key;
+ if (baseInstanceName != null) {
+ _json["baseInstanceName"] = baseInstanceName;
}
- if (value != null) {
- _json["value"] = value;
+ if (creationTimestamp != null) {
+ _json["creationTimestamp"] = creationTimestamp;
+ }
+ if (currentSize != null) {
+ _json["currentSize"] = currentSize;
+ }
+ if (description != null) {
+ _json["description"] = description;
+ }
+ if (fingerprint != null) {
+ _json["fingerprint"] = fingerprint;
+ }
+ if (group != null) {
+ _json["group"] = group;
+ }
+ if (id != null) {
+ _json["id"] = id;
+ }
+ if (instanceTemplate != null) {
+ _json["instanceTemplate"] = instanceTemplate;
+ }
+ if (kind != null) {
+ _json["kind"] = kind;
+ }
+ if (name != null) {
+ _json["name"] = name;
+ }
+ if (selfLink != null) {
+ _json["selfLink"] = selfLink;
+ }
+ if (targetPools != null) {
+ _json["targetPools"] = targetPools;
+ }
+ if (targetSize != null) {
+ _json["targetSize"] = targetSize;
}
return _json;
}
}
-/**
- * The list response item that contains the resource and end points information.
- */
-class ListResourceResponseItem {
- /** The list of service end points on the resource. */
- core.Map<core.String, core.List<core.int>> endpoints;
+/** Not documented yet. */
+class InstanceGroupManagerList {
+ /**
+ * Unique identifier for the resource; defined by the server (output only).
+ */
+ core.String id;
+
+ /** A list of instance resources. */
+ core.List<InstanceGroupManager> items;
+
+ /** Type of resource. */
+ core.String kind;
+
+ /** A token used to continue a truncated list request (output only). */
+ core.String nextPageToken;
+
+ /** Server defined URL for this resource (output only). */
+ core.String selfLink;
+
+
+ InstanceGroupManagerList();
+
+ InstanceGroupManagerList.fromJson(core.Map _json) {
+ if (_json.containsKey("id")) {
+ id = _json["id"];
+ }
+ if (_json.containsKey("items")) {
+ items = _json["items"].map((value) => new InstanceGroupManager.fromJson(value)).toList();
+ }
+ if (_json.containsKey("kind")) {
+ kind = _json["kind"];
+ }
+ if (_json.containsKey("nextPageToken")) {
+ nextPageToken = _json["nextPageToken"];
+ }
+ if (_json.containsKey("selfLink")) {
+ selfLink = _json["selfLink"];
+ }
+ }
+
+ core.Map toJson() {
+ var _json = new core.Map();
+ if (id != null) {
+ _json["id"] = id;
+ }
+ if (items != null) {
+ _json["items"] = items.map((value) => (value).toJson()).toList();
+ }
+ if (kind != null) {
+ _json["kind"] = kind;
+ }
+ if (nextPageToken != null) {
+ _json["nextPageToken"] = nextPageToken;
+ }
+ if (selfLink != null) {
+ _json["selfLink"] = selfLink;
+ }
+ return _json;
+ }
+}
+
+
+/** Not documented yet. */
+class InstanceGroupManagersAbandonInstancesRequest {
+ /**
+ * The names of one or more instances to abandon. For example:
+ * { 'instances': [ 'instance-c3po', 'instance-r2d2' ] }
+ */
+ core.List<core.String> instances;
+
+
+ InstanceGroupManagersAbandonInstancesRequest();
+
+ InstanceGroupManagersAbandonInstancesRequest.fromJson(core.Map _json) {
+ if (_json.containsKey("instances")) {
+ instances = _json["instances"];
+ }
+ }
+
+ core.Map toJson() {
+ var _json = new core.Map();
+ if (instances != null) {
+ _json["instances"] = instances;
+ }
+ return _json;
+ }
+}
+
+
+/** Not documented yet. */
+class InstanceGroupManagersDeleteInstancesRequest {
+ /**
+ * Names of instances to delete.
+ *
+ * Example: 'instance-foo', 'instance-bar'
+ */
+ core.List<core.String> instances;
+
+
+ InstanceGroupManagersDeleteInstancesRequest();
+
+ InstanceGroupManagersDeleteInstancesRequest.fromJson(core.Map _json) {
+ if (_json.containsKey("instances")) {
+ instances = _json["instances"];
+ }
+ }
+
+ core.Map toJson() {
+ var _json = new core.Map();
+ if (instances != null) {
+ _json["instances"] = instances;
+ }
+ return _json;
+ }
+}
+
+
+/** Not documented yet. */
+class InstanceGroupManagersRecreateInstancesRequest {
+ /**
+ * The names of one or more instances to recreate. For example:
+ * { 'instances': [ 'instance-c3po', 'instance-r2d2' ] }
+ */
+ core.List<core.String> instances;
+
+
+ InstanceGroupManagersRecreateInstancesRequest();
+
+ InstanceGroupManagersRecreateInstancesRequest.fromJson(core.Map _json) {
+ if (_json.containsKey("instances")) {
+ instances = _json["instances"];
+ }
+ }
+
+ core.Map toJson() {
+ var _json = new core.Map();
+ if (instances != null) {
+ _json["instances"] = instances;
+ }
+ return _json;
+ }
+}
+
+
+/** Not documented yet. */
+class InstanceGroupManagersSetInstanceTemplateRequest {
+ /**
+ * The full URL to an Instance Template from which all new instances will be
+ * created.
+ */
+ core.String instanceTemplate;
+
+
+ InstanceGroupManagersSetInstanceTemplateRequest();
+
+ InstanceGroupManagersSetInstanceTemplateRequest.fromJson(core.Map _json) {
+ if (_json.containsKey("instanceTemplate")) {
+ instanceTemplate = _json["instanceTemplate"];
+ }
+ }
+
+ core.Map toJson() {
+ var _json = new core.Map();
+ if (instanceTemplate != null) {
+ _json["instanceTemplate"] = instanceTemplate;
+ }
+ return _json;
+ }
+}
+
+
+/** Not documented yet. */
+class InstanceGroupManagersSetTargetPoolsRequest {
+ /**
+ * The current fingerprint of the Instance Group Manager resource. If this
+ * does not match the server-side fingerprint of the resource, then the
+ * request will be rejected.
+ */
+ core.String fingerprint;
+
+ core.List<core.int> get fingerprintAsBytes {
+ return crypto.CryptoUtils.base64StringToBytes(fingerprint);
+ }
+
+ void set fingerprintAsBytes(core.List<core.int> _bytes) {
+ fingerprint = crypto.CryptoUtils.bytesToBase64(_bytes, urlSafe: true);
+ }
- /** The full URL of the resource. */
- core.String resource;
+ /**
+ * A list of fully-qualified URLs to existing Target Pool resources. New
+ * instances in the Instance Group Manager will be added to the specified
+ * target pools; existing instances are not affected.
+ */
+ core.List<core.String> targetPools;
- ListResourceResponseItem();
+ InstanceGroupManagersSetTargetPoolsRequest();
- ListResourceResponseItem.fromJson(core.Map _json) {
- if (_json.containsKey("endpoints")) {
- endpoints = _json["endpoints"];
+ InstanceGroupManagersSetTargetPoolsRequest.fromJson(core.Map _json) {
+ if (_json.containsKey("fingerprint")) {
+ fingerprint = _json["fingerprint"];
}
- if (_json.containsKey("resource")) {
- resource = _json["resource"];
+ if (_json.containsKey("targetPools")) {
+ targetPools = _json["targetPools"];
}
}
core.Map toJson() {
var _json = new core.Map();
- if (endpoints != null) {
- _json["endpoints"] = endpoints;
+ if (fingerprint != null) {
+ _json["fingerprint"] = fingerprint;
}
- if (resource != null) {
- _json["resource"] = resource;
+ if (targetPools != null) {
+ _json["targetPools"] = targetPools;
}
return _json;
}
@@ -891,7 +1291,22 @@ class OperationWarningsData {
/** Not documented yet. */
class OperationWarnings {
- /** [Output only] The warning type identifier for this warning. */
+ /**
+ * [Output only] The warning type identifier for this warning.
+ * Possible string values are:
+ * - "DEPRECATED_RESOURCE_USED"
+ * - "DISK_SIZE_LARGER_THAN_IMAGE_SIZE"
+ * - "INJECTED_KERNELS_DEPRECATED"
+ * - "NEXT_HOP_ADDRESS_NOT_ASSIGNED"
+ * - "NEXT_HOP_CANNOT_IP_FORWARD"
+ * - "NEXT_HOP_INSTANCE_NOT_FOUND"
+ * - "NEXT_HOP_INSTANCE_NOT_ON_NETWORK"
+ * - "NEXT_HOP_NOT_RUNNING"
+ * - "NO_RESULTS_ON_PAGE"
+ * - "REQUIRED_TOS_AGREEMENT"
+ * - "RESOURCE_NOT_DELETED"
+ * - "UNREACHABLE"
+ */
core.String code;
/** [Output only] Metadata for this warning in key:value format. */
@@ -1011,7 +1426,13 @@ class Operation {
*/
core.String startTime;
- /** [Output Only] Status of the operation. */
+ /**
+ * [Output Only] Status of the operation.
+ * Possible string values are:
+ * - "DONE"
+ * - "PENDING"
+ * - "RUNNING"
+ */
core.String status;
/**
@@ -1254,387 +1675,3 @@ class OperationList {
}
-/** The resource view object. */
-class ResourceView {
- /** The creation time of the resource view. */
- core.String creationTimestamp;
-
- /** The detailed description of the resource view. */
- core.String description;
-
- /** Services endpoint information. */
- core.List<ServiceEndpoint> endpoints;
-
- /** The fingerprint of the service endpoint information. */
- core.String fingerprint;
-
- /** [Output Only] The ID of the resource view. */
- core.String id;
-
- /** Type of the resource. */
- core.String kind;
-
- /** The labels for events. */
- core.List<Label> labels;
-
- /** The name of the resource view. */
- core.String name;
-
- /**
- * The URL of a Compute Engine network to which the resources in the view
- * belong.
- */
- core.String network;
-
- /** A list of all resources in the resource view. */
- core.List<core.String> resources;
-
- /** [Output Only] A self-link to the resource view. */
- core.String selfLink;
-
- /** The total number of resources in the resource view. */
- core.int size;
-
-
- ResourceView();
-
- ResourceView.fromJson(core.Map _json) {
- if (_json.containsKey("creationTimestamp")) {
- creationTimestamp = _json["creationTimestamp"];
- }
- if (_json.containsKey("description")) {
- description = _json["description"];
- }
- if (_json.containsKey("endpoints")) {
- endpoints = _json["endpoints"].map((value) => new ServiceEndpoint.fromJson(value)).toList();
- }
- if (_json.containsKey("fingerprint")) {
- fingerprint = _json["fingerprint"];
- }
- if (_json.containsKey("id")) {
- id = _json["id"];
- }
- if (_json.containsKey("kind")) {
- kind = _json["kind"];
- }
- if (_json.containsKey("labels")) {
- labels = _json["labels"].map((value) => new Label.fromJson(value)).toList();
- }
- if (_json.containsKey("name")) {
- name = _json["name"];
- }
- if (_json.containsKey("network")) {
- network = _json["network"];
- }
- if (_json.containsKey("resources")) {
- resources = _json["resources"];
- }
- if (_json.containsKey("selfLink")) {
- selfLink = _json["selfLink"];
- }
- if (_json.containsKey("size")) {
- size = _json["size"];
- }
- }
-
- core.Map toJson() {
- var _json = new core.Map();
- if (creationTimestamp != null) {
- _json["creationTimestamp"] = creationTimestamp;
- }
- if (description != null) {
- _json["description"] = description;
- }
- if (endpoints != null) {
- _json["endpoints"] = endpoints.map((value) => (value).toJson()).toList();
- }
- if (fingerprint != null) {
- _json["fingerprint"] = fingerprint;
- }
- if (id != null) {
- _json["id"] = id;
- }
- if (kind != null) {
- _json["kind"] = kind;
- }
- if (labels != null) {
- _json["labels"] = labels.map((value) => (value).toJson()).toList();
- }
- if (name != null) {
- _json["name"] = name;
- }
- if (network != null) {
- _json["network"] = network;
- }
- if (resources != null) {
- _json["resources"] = resources;
- }
- if (selfLink != null) {
- _json["selfLink"] = selfLink;
- }
- if (size != null) {
- _json["size"] = size;
- }
- return _json;
- }
-}
-
-
-/** The service endpoint that may be started in a VM. */
-class ServiceEndpoint {
- /** The name of the service endpoint. */
- core.String name;
-
- /** The port of the service endpoint. */
- core.int port;
-
-
- ServiceEndpoint();
-
- ServiceEndpoint.fromJson(core.Map _json) {
- if (_json.containsKey("name")) {
- name = _json["name"];
- }
- if (_json.containsKey("port")) {
- port = _json["port"];
- }
- }
-
- core.Map toJson() {
- var _json = new core.Map();
- if (name != null) {
- _json["name"] = name;
- }
- if (port != null) {
- _json["port"] = port;
- }
- return _json;
- }
-}
-
-
-/** The request to add resources to the resource view. */
-class ZoneViewsAddResourcesRequest {
- /** The list of resources to be added. */
- core.List<core.String> resources;
-
-
- ZoneViewsAddResourcesRequest();
-
- ZoneViewsAddResourcesRequest.fromJson(core.Map _json) {
- if (_json.containsKey("resources")) {
- resources = _json["resources"];
- }
- }
-
- core.Map toJson() {
- var _json = new core.Map();
- if (resources != null) {
- _json["resources"] = resources;
- }
- return _json;
- }
-}
-
-
-/** Not documented yet. */
-class ZoneViewsGetServiceResponse {
- /** The service information. */
- core.List<ServiceEndpoint> endpoints;
-
- /** The fingerprint of the service information. */
- core.String fingerprint;
-
-
- ZoneViewsGetServiceResponse();
-
- ZoneViewsGetServiceResponse.fromJson(core.Map _json) {
- if (_json.containsKey("endpoints")) {
- endpoints = _json["endpoints"].map((value) => new ServiceEndpoint.fromJson(value)).toList();
- }
- if (_json.containsKey("fingerprint")) {
- fingerprint = _json["fingerprint"];
- }
- }
-
- core.Map toJson() {
- var _json = new core.Map();
- if (endpoints != null) {
- _json["endpoints"] = endpoints.map((value) => (value).toJson()).toList();
- }
- if (fingerprint != null) {
- _json["fingerprint"] = fingerprint;
- }
- return _json;
- }
-}
-
-
-/** The response to a list request. */
-class ZoneViewsList {
- /** The result that contains all resource views that meet the criteria. */
- core.List<ResourceView> items;
-
- /** Type of resource. */
- core.String kind;
-
- /** A token used for pagination. */
- core.String nextPageToken;
-
- /** Server defined URL for this resource (output only). */
- core.String selfLink;
-
-
- ZoneViewsList();
-
- ZoneViewsList.fromJson(core.Map _json) {
- if (_json.containsKey("items")) {
- items = _json["items"].map((value) => new ResourceView.fromJson(value)).toList();
- }
- if (_json.containsKey("kind")) {
- kind = _json["kind"];
- }
- if (_json.containsKey("nextPageToken")) {
- nextPageToken = _json["nextPageToken"];
- }
- if (_json.containsKey("selfLink")) {
- selfLink = _json["selfLink"];
- }
- }
-
- core.Map toJson() {
- var _json = new core.Map();
- if (items != null) {
- _json["items"] = items.map((value) => (value).toJson()).toList();
- }
- if (kind != null) {
- _json["kind"] = kind;
- }
- if (nextPageToken != null) {
- _json["nextPageToken"] = nextPageToken;
- }
- if (selfLink != null) {
- _json["selfLink"] = selfLink;
- }
- return _json;
- }
-}
-
-
-/** The response to a list resource request. */
-class ZoneViewsListResourcesResponse {
- /** The formatted JSON that is requested by the user. */
- core.List<ListResourceResponseItem> items;
-
- /**
- * The URL of a Compute Engine network to which the resources in the view
- * belong.
- */
- core.String network;
-
- /** A token used for pagination. */
- core.String nextPageToken;
-
-
- ZoneViewsListResourcesResponse();
-
- ZoneViewsListResourcesResponse.fromJson(core.Map _json) {
- if (_json.containsKey("items")) {
- items = _json["items"].map((value) => new ListResourceResponseItem.fromJson(value)).toList();
- }
- if (_json.containsKey("network")) {
- network = _json["network"];
- }
- if (_json.containsKey("nextPageToken")) {
- nextPageToken = _json["nextPageToken"];
- }
- }
-
- core.Map toJson() {
- var _json = new core.Map();
- if (items != null) {
- _json["items"] = items.map((value) => (value).toJson()).toList();
- }
- if (network != null) {
- _json["network"] = network;
- }
- if (nextPageToken != null) {
- _json["nextPageToken"] = nextPageToken;
- }
- return _json;
- }
-}
-
-
-/** The request to remove resources from the resource view. */
-class ZoneViewsRemoveResourcesRequest {
- /** The list of resources to be removed. */
- core.List<core.String> resources;
-
-
- ZoneViewsRemoveResourcesRequest();
-
- ZoneViewsRemoveResourcesRequest.fromJson(core.Map _json) {
- if (_json.containsKey("resources")) {
- resources = _json["resources"];
- }
- }
-
- core.Map toJson() {
- var _json = new core.Map();
- if (resources != null) {
- _json["resources"] = resources;
- }
- return _json;
- }
-}
-
-
-/** Not documented yet. */
-class ZoneViewsSetServiceRequest {
- /** The service information to be updated. */
- core.List<ServiceEndpoint> endpoints;
-
- /**
- * Fingerprint of the service information; a hash of the contents. This field
- * is used for optimistic locking when updating the service entries.
- */
- core.String fingerprint;
-
- /**
- * The name of the resource if user wants to update the service information of
- * the resource.
- */
- core.String resourceName;
-
-
- ZoneViewsSetServiceRequest();
-
- ZoneViewsSetServiceRequest.fromJson(core.Map _json) {
- if (_json.containsKey("endpoints")) {
- endpoints = _json["endpoints"].map((value) => new ServiceEndpoint.fromJson(value)).toList();
- }
- if (_json.containsKey("fingerprint")) {
- fingerprint = _json["fingerprint"];
- }
- if (_json.containsKey("resourceName")) {
- resourceName = _json["resourceName"];
- }
- }
-
- core.Map toJson() {
- var _json = new core.Map();
- if (endpoints != null) {
- _json["endpoints"] = endpoints.map((value) => (value).toJson()).toList();
- }
- if (fingerprint != null) {
- _json["fingerprint"] = fingerprint;
- }
- if (resourceName != null) {
- _json["resourceName"] = resourceName;
- }
- return _json;
- }
-}
-
-

Powered by Google App Engine
This is Rietveld 408576698