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

Unified Diff: generated/googleapis_beta/lib/replicapoolupdater/v1beta1.dart

Issue 3006323002: Api-Roll 54: 2017-09-11 (Closed)
Patch Set: use 2.0.0-dev.infinity sdk constraint in pubspecs Created 3 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: generated/googleapis_beta/lib/replicapoolupdater/v1beta1.dart
diff --git a/generated/googleapis_beta/lib/replicapoolupdater/v1beta1.dart b/generated/googleapis_beta/lib/replicapoolupdater/v1beta1.dart
index d92eae66b57b25d603bff6bc493e3e90edf1bbfb..df7fe68bf9b0c0c62bd7cb30051217933c6140fa 100644
--- a/generated/googleapis_beta/lib/replicapoolupdater/v1beta1.dart
+++ b/generated/googleapis_beta/lib/replicapoolupdater/v1beta1.dart
@@ -9,69 +9,71 @@ 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 replicapoolupdater/v1beta1';
-/**
- * [Deprecated. Please use compute.instanceGroupManagers.update method.
- * replicapoolupdater API will be disabled after December 30th, 2016] Updates
- * groups of Compute Engine instances.
- */
+/// [Deprecated. Please use compute.instanceGroupManagers.update method.
+/// replicapoolupdater API will be disabled after December 30th, 2016] Updates
+/// groups of Compute Engine instances.
class ReplicapoolupdaterApi {
- /** 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";
- /** View your data across Google Cloud Platform services */
- static const CloudPlatformReadOnlyScope = "https://www.googleapis.com/auth/cloud-platform.read-only";
+ /// View your data across Google Cloud Platform services
+ static const CloudPlatformReadOnlyScope =
+ "https://www.googleapis.com/auth/cloud-platform.read-only";
- /** View and manage replica pools */
+ /// View and manage replica pools
static const ReplicapoolScope = "https://www.googleapis.com/auth/replicapool";
- /** View replica pools */
- static const ReplicapoolReadonlyScope = "https://www.googleapis.com/auth/replicapool.readonly";
-
+ /// View replica pools
+ static const ReplicapoolReadonlyScope =
+ "https://www.googleapis.com/auth/replicapool.readonly";
final commons.ApiRequester _requester;
- RollingUpdatesResourceApi get rollingUpdates => new RollingUpdatesResourceApi(_requester);
- ZoneOperationsResourceApi get zoneOperations => new ZoneOperationsResourceApi(_requester);
+ RollingUpdatesResourceApi get rollingUpdates =>
+ new RollingUpdatesResourceApi(_requester);
+ ZoneOperationsResourceApi get zoneOperations =>
+ new ZoneOperationsResourceApi(_requester);
- ReplicapoolupdaterApi(http.Client client, {core.String rootUrl: "https://www.googleapis.com/", core.String servicePath: "replicapoolupdater/v1beta1/projects/"}) :
- _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT);
+ ReplicapoolupdaterApi(http.Client client,
+ {core.String rootUrl: "https://www.googleapis.com/",
+ core.String servicePath: "replicapoolupdater/v1beta1/projects/"})
+ : _requester =
+ new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT);
}
-
class RollingUpdatesResourceApi {
final commons.ApiRequester _requester;
- RollingUpdatesResourceApi(commons.ApiRequester client) :
- _requester = client;
-
- /**
- * Cancels an update. The update must be PAUSED before it can be cancelled.
- * This has no effect if the update is already CANCELLED.
- *
- * Request parameters:
- *
- * [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 update's target resides.
- *
- * [rollingUpdate] - The name of the 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> cancel(core.String project, core.String zone, core.String rollingUpdate) {
+ RollingUpdatesResourceApi(commons.ApiRequester client) : _requester = client;
+
+ /// Cancels an update. The update must be PAUSED before it can be cancelled.
+ /// This has no effect if the update is already CANCELLED.
+ ///
+ /// Request parameters:
+ ///
+ /// [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 update's target resides.
+ ///
+ /// [rollingUpdate] - The name of the 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> cancel(
+ core.String project, core.String zone, core.String rollingUpdate) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -89,40 +91,43 @@ class RollingUpdatesResourceApi {
throw new core.ArgumentError("Parameter rollingUpdate is required.");
}
- _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/rollingUpdates/' + commons.Escaper.ecapeVariable('$rollingUpdate') + '/cancel';
+ _url = commons.Escaper.ecapeVariable('$project') +
+ '/zones/' +
+ commons.Escaper.ecapeVariable('$zone') +
+ '/rollingUpdates/' +
+ commons.Escaper.ecapeVariable('$rollingUpdate') +
+ '/cancel';
- 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));
}
- /**
- * Returns information about an update.
- *
- * Request parameters:
- *
- * [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 update's target resides.
- *
- * [rollingUpdate] - The name of the update.
- *
- * Completes with a [RollingUpdate].
- *
- * 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<RollingUpdate> get(core.String project, core.String zone, core.String rollingUpdate) {
+ /// Returns information about an update.
+ ///
+ /// Request parameters:
+ ///
+ /// [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 update's target resides.
+ ///
+ /// [rollingUpdate] - The name of the update.
+ ///
+ /// Completes with a [RollingUpdate].
+ ///
+ /// 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<RollingUpdate> get(
+ core.String project, core.String zone, core.String rollingUpdate) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -140,40 +145,42 @@ class RollingUpdatesResourceApi {
throw new core.ArgumentError("Parameter rollingUpdate is required.");
}
- _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/rollingUpdates/' + commons.Escaper.ecapeVariable('$rollingUpdate');
+ _url = commons.Escaper.ecapeVariable('$project') +
+ '/zones/' +
+ commons.Escaper.ecapeVariable('$zone') +
+ '/rollingUpdates/' +
+ commons.Escaper.ecapeVariable('$rollingUpdate');
- 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 RollingUpdate.fromJson(data));
}
- /**
- * Inserts and starts a new update.
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [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 update's target 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> insert(RollingUpdate request, core.String project, core.String zone) {
+ /// Inserts and starts a new update.
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [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 update's target 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> insert(
+ RollingUpdate request, core.String project, core.String zone) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -191,48 +198,49 @@ class RollingUpdatesResourceApi {
throw new core.ArgumentError("Parameter zone is required.");
}
- _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/rollingUpdates';
+ _url = commons.Escaper.ecapeVariable('$project') +
+ '/zones/' +
+ commons.Escaper.ecapeVariable('$zone') +
+ '/rollingUpdates';
- 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));
}
- /**
- * Lists recent updates for a given managed instance group, in reverse
- * chronological order and paginated format.
- *
- * Request parameters:
- *
- * [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 update's target resides.
- *
- * [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 [RollingUpdateList].
- *
- * 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<RollingUpdateList> list(core.String project, core.String zone, {core.String filter, core.int maxResults, core.String pageToken}) {
+ /// Lists recent updates for a given managed instance group, in reverse
+ /// chronological order and paginated format.
+ ///
+ /// Request parameters:
+ ///
+ /// [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 update's target resides.
+ ///
+ /// [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 [RollingUpdateList].
+ ///
+ /// 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<RollingUpdateList> 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;
@@ -256,49 +264,51 @@ class RollingUpdatesResourceApi {
_queryParams["pageToken"] = [pageToken];
}
- _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/rollingUpdates';
+ _url = commons.Escaper.ecapeVariable('$project') +
+ '/zones/' +
+ commons.Escaper.ecapeVariable('$zone') +
+ '/rollingUpdates';
- 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 RollingUpdateList.fromJson(data));
}
- /**
- * Lists the current status for each instance within a given update.
- *
- * Request parameters:
- *
- * [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 update's target resides.
- *
- * [rollingUpdate] - The name of the update.
- *
- * [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 [InstanceUpdateList].
- *
- * 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<InstanceUpdateList> listInstanceUpdates(core.String project, core.String zone, core.String rollingUpdate, {core.String filter, core.int maxResults, core.String pageToken}) {
+ /// Lists the current status for each instance within a given update.
+ ///
+ /// Request parameters:
+ ///
+ /// [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 update's target resides.
+ ///
+ /// [rollingUpdate] - The name of the update.
+ ///
+ /// [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 [InstanceUpdateList].
+ ///
+ /// 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<InstanceUpdateList> listInstanceUpdates(
+ core.String project, core.String zone, core.String rollingUpdate,
+ {core.String filter, core.int maxResults, core.String pageToken}) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -325,41 +335,44 @@ class RollingUpdatesResourceApi {
_queryParams["pageToken"] = [pageToken];
}
- _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/rollingUpdates/' + commons.Escaper.ecapeVariable('$rollingUpdate') + '/instanceUpdates';
+ _url = commons.Escaper.ecapeVariable('$project') +
+ '/zones/' +
+ commons.Escaper.ecapeVariable('$zone') +
+ '/rollingUpdates/' +
+ commons.Escaper.ecapeVariable('$rollingUpdate') +
+ '/instanceUpdates';
- 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 InstanceUpdateList.fromJson(data));
}
- /**
- * Pauses the update in state from ROLLING_FORWARD or ROLLING_BACK. Has no
- * effect if invoked when the state of the update is PAUSED.
- *
- * Request parameters:
- *
- * [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 update's target resides.
- *
- * [rollingUpdate] - The name of the 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> pause(core.String project, core.String zone, core.String rollingUpdate) {
+ /// Pauses the update in state from ROLLING_FORWARD or ROLLING_BACK. Has no
+ /// effect if invoked when the state of the update is PAUSED.
+ ///
+ /// Request parameters:
+ ///
+ /// [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 update's target resides.
+ ///
+ /// [rollingUpdate] - The name of the 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> pause(
+ core.String project, core.String zone, core.String rollingUpdate) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -377,41 +390,44 @@ class RollingUpdatesResourceApi {
throw new core.ArgumentError("Parameter rollingUpdate is required.");
}
- _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/rollingUpdates/' + commons.Escaper.ecapeVariable('$rollingUpdate') + '/pause';
+ _url = commons.Escaper.ecapeVariable('$project') +
+ '/zones/' +
+ commons.Escaper.ecapeVariable('$zone') +
+ '/rollingUpdates/' +
+ commons.Escaper.ecapeVariable('$rollingUpdate') +
+ '/pause';
- 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));
}
- /**
- * Continues an update in PAUSED state. Has no effect if invoked when the
- * state of the update is ROLLED_OUT.
- *
- * Request parameters:
- *
- * [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 update's target resides.
- *
- * [rollingUpdate] - The name of the 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> resume(core.String project, core.String zone, core.String rollingUpdate) {
+ /// Continues an update in PAUSED state. Has no effect if invoked when the
+ /// state of the update is ROLLED_OUT.
+ ///
+ /// Request parameters:
+ ///
+ /// [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 update's target resides.
+ ///
+ /// [rollingUpdate] - The name of the 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> resume(
+ core.String project, core.String zone, core.String rollingUpdate) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -429,41 +445,44 @@ class RollingUpdatesResourceApi {
throw new core.ArgumentError("Parameter rollingUpdate is required.");
}
- _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/rollingUpdates/' + commons.Escaper.ecapeVariable('$rollingUpdate') + '/resume';
+ _url = commons.Escaper.ecapeVariable('$project') +
+ '/zones/' +
+ commons.Escaper.ecapeVariable('$zone') +
+ '/rollingUpdates/' +
+ commons.Escaper.ecapeVariable('$rollingUpdate') +
+ '/resume';
- 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));
}
- /**
- * Rolls back the update in state from ROLLING_FORWARD or PAUSED. Has no
- * effect if invoked when the state of the update is ROLLED_BACK.
- *
- * Request parameters:
- *
- * [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 update's target resides.
- *
- * [rollingUpdate] - The name of the 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> rollback(core.String project, core.String zone, core.String rollingUpdate) {
+ /// Rolls back the update in state from ROLLING_FORWARD or PAUSED. Has no
+ /// effect if invoked when the state of the update is ROLLED_BACK.
+ ///
+ /// Request parameters:
+ ///
+ /// [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 update's target resides.
+ ///
+ /// [rollingUpdate] - The name of the 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> rollback(
+ core.String project, core.String zone, core.String rollingUpdate) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -481,49 +500,49 @@ class RollingUpdatesResourceApi {
throw new core.ArgumentError("Parameter rollingUpdate is required.");
}
- _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/rollingUpdates/' + commons.Escaper.ecapeVariable('$rollingUpdate') + '/rollback';
+ _url = commons.Escaper.ecapeVariable('$project') +
+ '/zones/' +
+ commons.Escaper.ecapeVariable('$zone') +
+ '/rollingUpdates/' +
+ commons.Escaper.ecapeVariable('$rollingUpdate') +
+ '/rollback';
- 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));
}
-
}
-
class ZoneOperationsResourceApi {
final commons.ApiRequester _requester;
- ZoneOperationsResourceApi(commons.ApiRequester client) :
- _requester = client;
-
- /**
- * Retrieves the specified zone-specific operation resource.
- *
- * 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.
- *
- * [operation] - Name of the operation resource to return.
- *
- * 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 project, core.String zone, core.String operation) {
+ ZoneOperationsResourceApi(commons.ApiRequester client) : _requester = client;
+
+ /// Retrieves the specified zone-specific operation resource.
+ ///
+ /// 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.
+ ///
+ /// [operation] - Name of the operation resource to return.
+ ///
+ /// 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 project, core.String zone, core.String operation) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -541,48 +560,50 @@ class ZoneOperationsResourceApi {
throw new core.ArgumentError("Parameter operation is required.");
}
- _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/operations/' + commons.Escaper.ecapeVariable('$operation');
+ _url = commons.Escaper.ecapeVariable('$project') +
+ '/zones/' +
+ commons.Escaper.ecapeVariable('$zone') +
+ '/operations/' +
+ commons.Escaper.ecapeVariable('$operation');
- 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));
}
- /**
- * 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.
- *
- * [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 [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<OperationList> list(core.String project, core.String zone, {core.String filter, core.int maxResults, core.String pageToken}) {
+ /// 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.
+ ///
+ /// [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 [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<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;
@@ -606,31 +627,30 @@ class ZoneOperationsResourceApi {
_queryParams["pageToken"] = [pageToken];
}
- _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/operations';
+ _url = commons.Escaper.ecapeVariable('$project') +
+ '/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 OperationList.fromJson(data));
}
-
}
-
-
class InstanceUpdateErrorErrors {
- /** [Output Only] The error type identifier for this error. */
+ /// [Output Only] The error type identifier for this error.
core.String code;
- /**
- * [Output Only] Indicates the field in the request that caused the error.
- * This property is optional.
- */
+
+ /// [Output Only] Indicates the field in the request that caused the error.
+ /// This property is optional.
core.String location;
- /** [Output Only] An optional, human-readable error message. */
+
+ /// [Output Only] An optional, human-readable error message.
core.String message;
InstanceUpdateErrorErrors();
@@ -648,7 +668,8 @@ class InstanceUpdateErrorErrors {
}
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 (code != null) {
_json["code"] = code;
}
@@ -662,24 +683,25 @@ class InstanceUpdateErrorErrors {
}
}
-/** Errors that occurred during the instance update. */
+/// Errors that occurred during the instance update.
class InstanceUpdateError {
- /**
- * [Output Only] The array of errors encountered while processing this
- * operation.
- */
+ /// [Output Only] The array of errors encountered while processing this
+ /// operation.
core.List<InstanceUpdateErrorErrors> errors;
InstanceUpdateError();
InstanceUpdateError.fromJson(core.Map _json) {
if (_json.containsKey("errors")) {
- errors = _json["errors"].map((value) => new InstanceUpdateErrorErrors.fromJson(value)).toList();
+ errors = _json["errors"]
+ .map((value) => new InstanceUpdateErrorErrors.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 (errors != null) {
_json["errors"] = errors.map((value) => (value).toJson()).toList();
}
@@ -687,25 +709,25 @@ class InstanceUpdateError {
}
}
-/** Update of a single instance. */
+/// Update of a single instance.
class InstanceUpdate {
- /** Errors that occurred during the instance update. */
+ /// Errors that occurred during the instance update.
InstanceUpdateError error;
- /** Fully-qualified URL of the instance being updated. */
+
+ /// Fully-qualified URL of the instance being updated.
core.String instance;
- /**
- * Status of the instance update. Possible values are:
- * - "PENDING": The instance update is pending execution.
- * - "ROLLING_FORWARD": The instance update is going forward.
- * - "ROLLING_BACK": The instance update is being rolled back.
- * - "PAUSED": The instance update is temporarily paused (inactive).
- * - "ROLLED_OUT": The instance update is finished, the instance is running
- * the new template.
- * - "ROLLED_BACK": The instance update is finished, the instance has been
- * reverted to the previous template.
- * - "CANCELLED": The instance update is paused and no longer can be resumed,
- * undefined in which template the instance is running.
- */
+
+ /// Status of the instance update. Possible values are:
+ /// - "PENDING": The instance update is pending execution.
+ /// - "ROLLING_FORWARD": The instance update is going forward.
+ /// - "ROLLING_BACK": The instance update is being rolled back.
+ /// - "PAUSED": The instance update is temporarily paused (inactive).
+ /// - "ROLLED_OUT": The instance update is finished, the instance is running
+ /// the new template.
+ /// - "ROLLED_BACK": The instance update is finished, the instance has been
+ /// reverted to the previous template.
+ /// - "CANCELLED": The instance update is paused and no longer can be
+ /// resumed, undefined in which template the instance is running.
core.String status;
InstanceUpdate();
@@ -723,7 +745,8 @@ class InstanceUpdate {
}
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 (error != null) {
_json["error"] = (error).toJson();
}
@@ -737,22 +760,27 @@ class InstanceUpdate {
}
}
-/** Response returned by ListInstanceUpdates method. */
+/// Response returned by ListInstanceUpdates method.
class InstanceUpdateList {
- /** Collection of requested instance updates. */
+ /// Collection of requested instance updates.
core.List<InstanceUpdate> items;
- /** [Output Only] Type of the resource. */
+
+ /// [Output Only] Type of the resource.
core.String kind;
- /** A token used to continue a truncated list request. */
+
+ /// A token used to continue a truncated list request.
core.String nextPageToken;
- /** [Output Only] The fully qualified URL for the resource. */
+
+ /// [Output Only] The fully qualified URL for the resource.
core.String selfLink;
InstanceUpdateList();
InstanceUpdateList.fromJson(core.Map _json) {
if (_json.containsKey("items")) {
- items = _json["items"].map((value) => new InstanceUpdate.fromJson(value)).toList();
+ items = _json["items"]
+ .map((value) => new InstanceUpdate.fromJson(value))
+ .toList();
}
if (_json.containsKey("kind")) {
kind = _json["kind"];
@@ -766,7 +794,8 @@ class InstanceUpdateList {
}
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 (items != null) {
_json["items"] = items.map((value) => (value).toJson()).toList();
}
@@ -784,14 +813,14 @@ class InstanceUpdateList {
}
class OperationErrorErrors {
- /** [Output Only] The error type identifier for this error. */
+ /// [Output Only] The error type identifier for this error.
core.String code;
- /**
- * [Output Only] Indicates the field in the request that caused the error.
- * This property is optional.
- */
+
+ /// [Output Only] Indicates the field in the request that caused the error.
+ /// This property is optional.
core.String location;
- /** [Output Only] An optional, human-readable error message. */
+
+ /// [Output Only] An optional, human-readable error message.
core.String message;
OperationErrorErrors();
@@ -809,7 +838,8 @@ class OperationErrorErrors {
}
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 (code != null) {
_json["code"] = code;
}
@@ -823,27 +853,26 @@ class OperationErrorErrors {
}
}
-/**
- * [Output Only] If errors occurred during processing of this operation, this
- * field will be populated.
- */
+/// [Output Only] If errors occurred during processing of this operation, this
+/// field will be populated.
class OperationError {
- /**
- * [Output Only] The array of errors encountered while processing this
- * operation.
- */
+ /// [Output Only] The array of errors encountered while processing this
+ /// operation.
core.List<OperationErrorErrors> errors;
OperationError();
OperationError.fromJson(core.Map _json) {
if (_json.containsKey("errors")) {
- errors = _json["errors"].map((value) => new OperationErrorErrors.fromJson(value)).toList();
+ errors = _json["errors"]
+ .map((value) => new OperationErrorErrors.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 (errors != null) {
_json["errors"] = errors.map((value) => (value).toJson()).toList();
}
@@ -852,9 +881,10 @@ class OperationError {
}
class OperationWarningsData {
- /** [Output Only] Metadata key for this warning. */
+ /// [Output Only] Metadata key for this warning.
core.String key;
- /** [Output Only] Metadata value for this warning. */
+
+ /// [Output Only] Metadata value for this warning.
core.String value;
OperationWarningsData();
@@ -869,7 +899,8 @@ class OperationWarningsData {
}
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 (key != null) {
_json["key"] = key;
}
@@ -881,11 +912,13 @@ class OperationWarningsData {
}
class OperationWarnings {
- /** [Output only] The warning type identifier for this warning. */
+ /// [Output only] The warning type identifier for this warning.
core.String code;
- /** [Output only] Metadata for this warning in key:value format. */
+
+ /// [Output only] Metadata for this warning in key:value format.
core.List<OperationWarningsData> data;
- /** [Output only] Optional human-readable details for this warning. */
+
+ /// [Output only] Optional human-readable details for this warning.
core.String message;
OperationWarnings();
@@ -895,7 +928,9 @@ class OperationWarnings {
code = _json["code"];
}
if (_json.containsKey("data")) {
- data = _json["data"].map((value) => new OperationWarningsData.fromJson(value)).toList();
+ data = _json["data"]
+ .map((value) => new OperationWarningsData.fromJson(value))
+ .toList();
}
if (_json.containsKey("message")) {
message = _json["message"];
@@ -903,7 +938,8 @@ class OperationWarnings {
}
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 (code != null) {
_json["code"] = code;
}
@@ -917,66 +953,64 @@ class OperationWarnings {
}
}
-/** An operation resource, used to manage asynchronous API requests. */
+/// An operation resource, used to manage asynchronous API requests.
class Operation {
core.String clientOperationId;
- /** [Output Only] Creation timestamp in RFC3339 text format. */
+
+ /// [Output Only] Creation timestamp in RFC3339 text format.
core.String creationTimestamp;
core.String endTime;
- /**
- * [Output Only] If errors occurred during processing of this operation, this
- * field will be populated.
- */
+
+ /// [Output Only] If errors occurred during processing of this operation,
+ /// this field will be populated.
OperationError error;
core.String httpErrorMessage;
core.int httpErrorStatusCode;
- /**
- * [Output Only] Unique identifier for the resource; defined by the server.
- */
+
+ /// [Output Only] Unique identifier for the resource; defined by the server.
core.String id;
- /**
- * [Output Only] The time that this operation was requested. This is in RFC
- * 3339 format.
- */
+
+ /// [Output Only] The time that this operation was requested. This is in RFC
+ /// 3339 format.
core.String insertTime;
- /**
- * [Output Only] Type of the resource. Always replicapoolupdater#operation for
- * Operation resources.
- */
+
+ /// [Output Only] Type of the resource. Always replicapoolupdater#operation
+ /// for Operation resources.
core.String kind;
- /** [Output Only] Name of the resource. */
+
+ /// [Output Only] Name of the resource.
core.String name;
core.String operationType;
core.int progress;
- /** [Output Only] URL of the region where the operation resides. */
+
+ /// [Output Only] URL of the region where the operation resides.
core.String region;
- /** [Output Only] The fully qualified URL for the resource. */
+
+ /// [Output Only] The fully qualified URL for the resource.
core.String selfLink;
- /**
- * [Output Only] The time that this operation was started by the server. This
- * is in RFC 3339 format.
- */
+
+ /// [Output Only] The time that this operation was started by the server.
+ /// This is in RFC 3339 format.
core.String startTime;
- /**
- * [Output Only] Status of the operation. Can be one of the following:
- * "PENDING", "RUNNING", or "DONE".
- */
+
+ /// [Output Only] Status of the operation. Can be one of the following:
+ /// "PENDING", "RUNNING", or "DONE".
core.String status;
- /**
- * [Output Only] An optional textual description of the current status of the
- * operation.
- */
+
+ /// [Output Only] An optional textual description of the current status of
+ /// the operation.
core.String statusMessage;
- /**
- * [Output Only] Unique target id which identifies a particular incarnation of
- * the target.
- */
+
+ /// [Output Only] Unique target id which identifies a particular incarnation
+ /// of the target.
core.String targetId;
- /** [Output Only] URL of the resource the operation is mutating. */
+
+ /// [Output Only] URL of the resource the operation is mutating.
core.String targetLink;
core.String user;
core.List<OperationWarnings> warnings;
- /** [Output Only] URL of the zone where the operation resides. */
+
+ /// [Output Only] URL of the zone where the operation resides.
core.String zone;
Operation();
@@ -1043,7 +1077,9 @@ class Operation {
user = _json["user"];
}
if (_json.containsKey("warnings")) {
- warnings = _json["warnings"].map((value) => new OperationWarnings.fromJson(value)).toList();
+ warnings = _json["warnings"]
+ .map((value) => new OperationWarnings.fromJson(value))
+ .toList();
}
if (_json.containsKey("zone")) {
zone = _json["zone"];
@@ -1051,7 +1087,8 @@ 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 (clientOperationId != null) {
_json["clientOperationId"] = clientOperationId;
}
@@ -1122,22 +1159,22 @@ class Operation {
}
}
-/** Contains a list of Operation resources. */
+/// Contains a list of Operation resources.
class OperationList {
- /**
- * [Output Only] Unique identifier for the resource; defined by the server.
- */
+ /// [Output Only] Unique identifier for the resource; defined by the server.
core.String id;
- /** [Output Only] The Operation resources. */
+
+ /// [Output Only] The Operation resources.
core.List<Operation> items;
- /**
- * [Output Only] Type of resource. Always replicapoolupdater#operationList for
- * OperationList resources.
- */
+
+ /// [Output Only] Type of resource. Always replicapoolupdater#operationList
+ /// for OperationList resources.
core.String kind;
- /** [Output Only] A token used to continue a truncate. */
+
+ /// [Output Only] A token used to continue a truncate.
core.String nextPageToken;
- /** [Output Only] The fully qualified URL for the resource. */
+
+ /// [Output Only] The fully qualified URL for the resource.
core.String selfLink;
OperationList();
@@ -1147,7 +1184,8 @@ class OperationList {
id = _json["id"];
}
if (_json.containsKey("items")) {
- items = _json["items"].map((value) => new Operation.fromJson(value)).toList();
+ items =
+ _json["items"].map((value) => new Operation.fromJson(value)).toList();
}
if (_json.containsKey("kind")) {
kind = _json["kind"];
@@ -1161,7 +1199,8 @@ class OperationList {
}
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 (id != null) {
_json["id"] = id;
}
@@ -1182,14 +1221,14 @@ class OperationList {
}
class RollingUpdateErrorErrors {
- /** [Output Only] The error type identifier for this error. */
+ /// [Output Only] The error type identifier for this error.
core.String code;
- /**
- * [Output Only] Indicates the field in the request that caused the error.
- * This property is optional.
- */
+
+ /// [Output Only] Indicates the field in the request that caused the error.
+ /// This property is optional.
core.String location;
- /** [Output Only] An optional, human-readable error message. */
+
+ /// [Output Only] An optional, human-readable error message.
core.String message;
RollingUpdateErrorErrors();
@@ -1207,7 +1246,8 @@ class RollingUpdateErrorErrors {
}
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 (code != null) {
_json["code"] = code;
}
@@ -1221,24 +1261,25 @@ class RollingUpdateErrorErrors {
}
}
-/** [Output Only] Errors that occurred during the rolling update. */
+/// [Output Only] Errors that occurred during the rolling update.
class RollingUpdateError {
- /**
- * [Output Only] The array of errors encountered while processing this
- * operation.
- */
+ /// [Output Only] The array of errors encountered while processing this
+ /// operation.
core.List<RollingUpdateErrorErrors> errors;
RollingUpdateError();
RollingUpdateError.fromJson(core.Map _json) {
if (_json.containsKey("errors")) {
- errors = _json["errors"].map((value) => new RollingUpdateErrorErrors.fromJson(value)).toList();
+ errors = _json["errors"]
+ .map((value) => new RollingUpdateErrorErrors.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 (errors != null) {
_json["errors"] = errors.map((value) => (value).toJson()).toList();
}
@@ -1246,39 +1287,35 @@ class RollingUpdateError {
}
}
-/** Parameters of the update process. */
+/// Parameters of the update process.
class RollingUpdatePolicy {
- /**
- * Number of instances to update before the updater pauses the rolling update.
- */
+ /// Number of instances to update before the updater pauses the rolling
+ /// update.
core.int autoPauseAfterInstances;
- /**
- * The maximum amount of time that the updater waits for a HEALTHY state after
- * all of the update steps are complete. If the HEALTHY state is not received
- * before the deadline, the instance update is considered a failure.
- */
+
+ /// The maximum amount of time that the updater waits for a HEALTHY state
+ /// after all of the update steps are complete. If the HEALTHY state is not
+ /// received before the deadline, the instance update is considered a
+ /// failure.
core.int instanceStartupTimeoutSec;
- /**
- * The maximum number of instances that can be updated simultaneously. An
- * instance update is considered complete only after the instance is restarted
- * and initialized.
- */
+
+ /// The maximum number of instances that can be updated simultaneously. An
+ /// instance update is considered complete only after the instance is
+ /// restarted and initialized.
core.int maxNumConcurrentInstances;
- /**
- * The maximum number of instance updates that can fail before the group
- * update is considered a failure. An instance update is considered failed if
- * any of its update actions (e.g. Stop call on Instance resource in Rolling
- * Reboot) failed with permanent failure, or if the instance is in an
- * UNHEALTHY state after it finishes all of the update actions.
- */
+
+ /// The maximum number of instance updates that can fail before the group
+ /// update is considered a failure. An instance update is considered failed
+ /// if any of its update actions (e.g. Stop call on Instance resource in
+ /// Rolling Reboot) failed with permanent failure, or if the instance is in
+ /// an UNHEALTHY state after it finishes all of the update actions.
core.int maxNumFailedInstances;
- /**
- * The minimum amount of time that the updater spends to update each instance.
- * Update time is the time it takes to complete all update actions (e.g. Stop
- * call on Instance resource in Rolling Reboot), reboot, and initialize. If
- * the instance update finishes early, the updater pauses for the remainder of
- * the time before it starts the next instance update.
- */
+
+ /// The minimum amount of time that the updater spends to update each
+ /// instance. Update time is the time it takes to complete all update actions
+ /// (e.g. Stop call on Instance resource in Rolling Reboot), reboot, and
+ /// initialize. If the instance update finishes early, the updater pauses for
+ /// the remainder of the time before it starts the next instance update.
core.int minInstanceUpdateTimeSec;
RollingUpdatePolicy();
@@ -1302,7 +1339,8 @@ class RollingUpdatePolicy {
}
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 (autoPauseAfterInstances != null) {
_json["autoPauseAfterInstances"] = autoPauseAfterInstances;
}
@@ -1322,84 +1360,78 @@ class RollingUpdatePolicy {
}
}
-/**
- * The following represents a resource describing a single update (rollout) of a
- * group of instances to the given template.
- */
+/// The following represents a resource describing a single update (rollout) of
+/// a group of instances to the given template.
class RollingUpdate {
- /**
- * Specifies the action to take for each instance within the instance group.
- * This can be RECREATE which will recreate each instance and is only
- * available for managed instance groups. It can also be REBOOT which performs
- * a soft reboot for each instance and is only available for regular
- * (non-managed) instance groups.
- */
+ /// Specifies the action to take for each instance within the instance group.
+ /// This can be RECREATE which will recreate each instance and is only
+ /// available for managed instance groups. It can also be REBOOT which
+ /// performs a soft reboot for each instance and is only available for
+ /// regular (non-managed) instance groups.
core.String actionType;
- /** [Output Only] Creation timestamp in RFC3339 text format. */
+
+ /// [Output Only] Creation timestamp in RFC3339 text format.
core.String creationTimestamp;
- /**
- * An optional textual description of the resource; provided by the client
- * when the resource is created.
- */
+
+ /// An optional textual description of the resource; provided by the client
+ /// when the resource is created.
core.String description;
- /** [Output Only] Errors that occurred during the rolling update. */
+
+ /// [Output Only] Errors that occurred during the rolling update.
RollingUpdateError error;
- /**
- * [Output Only] Unique identifier for the resource; defined by the server.
- */
+
+ /// [Output Only] Unique identifier for the resource; defined by the server.
core.String id;
- /**
- * Fully-qualified URL of an instance group being updated. Exactly one of
- * instanceGroupManager and instanceGroup must be set.
- */
+
+ /// Fully-qualified URL of an instance group being updated. Exactly one of
+ /// instanceGroupManager and instanceGroup must be set.
core.String instanceGroup;
- /**
- * Fully-qualified URL of an instance group manager being updated. Exactly one
- * of instanceGroupManager and instanceGroup must be set.
- */
+
+ /// Fully-qualified URL of an instance group manager being updated. Exactly
+ /// one of instanceGroupManager and instanceGroup must be set.
core.String instanceGroupManager;
- /** Fully-qualified URL of an instance template to apply. */
+
+ /// Fully-qualified URL of an instance template to apply.
core.String instanceTemplate;
- /** [Output Only] Type of the resource. */
+
+ /// [Output Only] Type of the resource.
core.String kind;
- /**
- * Fully-qualified URL of the instance template encountered while starting the
- * update.
- */
+
+ /// Fully-qualified URL of the instance template encountered while starting
+ /// the update.
core.String oldInstanceTemplate;
- /** Parameters of the update process. */
+
+ /// Parameters of the update process.
RollingUpdatePolicy policy;
- /**
- * [Output Only] An optional progress indicator that ranges from 0 to 100.
- * There is no requirement that this be linear or support any granularity of
- * operations. This should not be used to guess at when the update will be
- * complete. This number should be monotonically increasing as the update
- * progresses.
- */
+
+ /// [Output Only] An optional progress indicator that ranges from 0 to 100.
+ /// There is no requirement that this be linear or support any granularity of
+ /// operations. This should not be used to guess at when the update will be
+ /// complete. This number should be monotonically increasing as the update
+ /// progresses.
core.int progress;
- /** [Output Only] The fully qualified URL for the resource. */
+
+ /// [Output Only] The fully qualified URL for the resource.
core.String selfLink;
- /**
- * [Output Only] Status of the update. Possible values are:
- * - "ROLLING_FORWARD": The update is going forward.
- * - "ROLLING_BACK": The update is being rolled back.
- * - "PAUSED": The update is temporarily paused (inactive).
- * - "ROLLED_OUT": The update is finished, all instances have been updated
- * successfully.
- * - "ROLLED_BACK": The update is finished, all instances have been reverted
- * to the previous template.
- * - "CANCELLED": The update is paused and no longer can be resumed, undefined
- * how many instances are running in which template.
- */
+
+ /// [Output Only] Status of the update. Possible values are:
+ /// - "ROLLING_FORWARD": The update is going forward.
+ /// - "ROLLING_BACK": The update is being rolled back.
+ /// - "PAUSED": The update is temporarily paused (inactive).
+ /// - "ROLLED_OUT": The update is finished, all instances have been updated
+ /// successfully.
+ /// - "ROLLED_BACK": The update is finished, all instances have been reverted
+ /// to the previous template.
+ /// - "CANCELLED": The update is paused and no longer can be resumed,
+ /// undefined how many instances are running in which template.
core.String status;
- /**
- * [Output Only] An optional textual description of the current status of the
- * update.
- */
+
+ /// [Output Only] An optional textual description of the current status of
+ /// the update.
core.String statusMessage;
- /**
- * [Output Only] User who requested the update, for example: user@example.com.
- */
+
+ /// [Output Only] User who requested the update, for example:
+ /// user@example.com.
core.String user;
RollingUpdate();
@@ -1456,7 +1488,8 @@ class RollingUpdate {
}
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 (actionType != null) {
_json["actionType"] = actionType;
}
@@ -1509,22 +1542,27 @@ class RollingUpdate {
}
}
-/** Response returned by List method. */
+/// Response returned by List method.
class RollingUpdateList {
- /** Collection of requested updates. */
+ /// Collection of requested updates.
core.List<RollingUpdate> items;
- /** [Output Only] Type of the resource. */
+
+ /// [Output Only] Type of the resource.
core.String kind;
- /** A token used to continue a truncated list request. */
+
+ /// A token used to continue a truncated list request.
core.String nextPageToken;
- /** [Output Only] The fully qualified URL for the resource. */
+
+ /// [Output Only] The fully qualified URL for the resource.
core.String selfLink;
RollingUpdateList();
RollingUpdateList.fromJson(core.Map _json) {
if (_json.containsKey("items")) {
- items = _json["items"].map((value) => new RollingUpdate.fromJson(value)).toList();
+ items = _json["items"]
+ .map((value) => new RollingUpdate.fromJson(value))
+ .toList();
}
if (_json.containsKey("kind")) {
kind = _json["kind"];
@@ -1538,7 +1576,8 @@ class RollingUpdateList {
}
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 (items != null) {
_json["items"] = items.map((value) => (value).toJson()).toList();
}
« no previous file with comments | « generated/googleapis_beta/lib/replicapool/v1beta2.dart ('k') | generated/googleapis_beta/lib/resourceviews/v1beta1.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698