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

Side by Side Diff: generated/googleapis_beta/lib/replicapoolupdater/v1beta1.dart

Issue 1268013003: Api-roll 21: 2015-08-04 (Closed) Base URL: git@github.com:dart-lang/googleapis.git@master
Patch Set: Created 5 years, 4 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 unified diff | Download patch
OLDNEW
1 // This is a generated file (see the discoveryapis_generator project). 1 // This is a generated file (see the discoveryapis_generator project).
2 2
3 library googleapis_beta.replicapoolupdater.v1beta1; 3 library googleapis_beta.replicapoolupdater.v1beta1;
4 4
5 import 'dart:core' as core; 5 import 'dart:core' as core;
6 import 'dart:async' as async; 6 import 'dart:async' as async;
7 import 'dart:convert' as convert; 7 import 'dart:convert' as convert;
8 8
9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons;
10 import 'package:http/http.dart' as http; 10 import 'package:http/http.dart' as http;
11 11
12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show 12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show
13 ApiRequestError, DetailedApiRequestError; 13 ApiRequestError, DetailedApiRequestError;
14 14
15 const core.String USER_AGENT = 'dart-api-client replicapoolupdater/v1beta1'; 15 const core.String USER_AGENT = 'dart-api-client replicapoolupdater/v1beta1';
16 16
17 /** 17 /**
18 * The Google Compute Engine Instance Group Updater API provides services for 18 * The Google Compute Engine Instance Group Updater API provides services for
19 * updating groups of Compute Engine Instances. 19 * updating groups of Compute Engine Instances.
20 */ 20 */
21 class ReplicapoolupdaterApi { 21 class ReplicapoolupdaterApi {
22 /** View and manage your data across Google Cloud Platform services */ 22 /** View and manage your data across Google Cloud Platform services */
23 static const CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platf orm"; 23 static const CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platf orm";
24 24
25 /**
26 * MESSAGE UNDER CONSTRUCTION View your data across Google Cloud Platform
27 * services
28 */
29 static const CloudPlatformReadOnlyScope = "https://www.googleapis.com/auth/clo ud-platform.read-only";
30
25 /** View and manage replica pools */ 31 /** View and manage replica pools */
26 static const ReplicapoolScope = "https://www.googleapis.com/auth/replicapool"; 32 static const ReplicapoolScope = "https://www.googleapis.com/auth/replicapool";
27 33
28 /** View replica pools */ 34 /** View replica pools */
29 static const ReplicapoolReadonlyScope = "https://www.googleapis.com/auth/repli capool.readonly"; 35 static const ReplicapoolReadonlyScope = "https://www.googleapis.com/auth/repli capool.readonly";
30 36
31 37
32 final commons.ApiRequester _requester; 38 final commons.ApiRequester _requester;
33 39
34 RollingUpdatesResourceApi get rollingUpdates => new RollingUpdatesResourceApi( _requester); 40 RollingUpdatesResourceApi get rollingUpdates => new RollingUpdatesResourceApi( _requester);
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 * Request parameters: 212 * Request parameters:
207 * 213 *
208 * [project] - The Google Developers Console project name. 214 * [project] - The Google Developers Console project name.
209 * Value must have pattern 215 * Value must have pattern
210 * "(?:(?:[-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])?))". 216 * "(?:(?:[-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])?))".
211 * 217 *
212 * [zone] - The name of the zone in which the update's target resides. 218 * [zone] - The name of the zone in which the update's target resides.
213 * 219 *
214 * [filter] - Optional. Filter expression for filtering listed resources. 220 * [filter] - Optional. Filter expression for filtering listed resources.
215 * 221 *
216 * [instanceGroupManager] - The name of the instance group manager. Use this
217 * parameter to return only updates to instances that are part of a specific
218 * instance group.
219 *
220 * [maxResults] - Optional. Maximum count of results to be returned. Maximum 222 * [maxResults] - Optional. Maximum count of results to be returned. Maximum
221 * value is 500 and default value is 500. 223 * value is 500 and default value is 500.
222 * Value must be between "0" and "500". 224 * Value must be between "0" and "500".
223 * 225 *
224 * [pageToken] - Optional. Tag returned by a previous list request truncated 226 * [pageToken] - Optional. Tag returned by a previous list request truncated
225 * by maxResults. Used to continue a previous list request. 227 * by maxResults. Used to continue a previous list request.
226 * 228 *
227 * Completes with a [RollingUpdateList]. 229 * Completes with a [RollingUpdateList].
228 * 230 *
229 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 231 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
230 * error. 232 * error.
231 * 233 *
232 * If the used [http.Client] completes with an error when making a REST call, 234 * If the used [http.Client] completes with an error when making a REST call,
233 * this method will complete with the same error. 235 * this method will complete with the same error.
234 */ 236 */
235 async.Future<RollingUpdateList> list(core.String project, core.String zone, {c ore.String filter, core.String instanceGroupManager, core.int maxResults, core.S tring pageToken}) { 237 async.Future<RollingUpdateList> list(core.String project, core.String zone, {c ore.String filter, core.int maxResults, core.String pageToken}) {
236 var _url = null; 238 var _url = null;
237 var _queryParams = new core.Map(); 239 var _queryParams = new core.Map();
238 var _uploadMedia = null; 240 var _uploadMedia = null;
239 var _uploadOptions = null; 241 var _uploadOptions = null;
240 var _downloadOptions = commons.DownloadOptions.Metadata; 242 var _downloadOptions = commons.DownloadOptions.Metadata;
241 var _body = null; 243 var _body = null;
242 244
243 if (project == null) { 245 if (project == null) {
244 throw new core.ArgumentError("Parameter project is required."); 246 throw new core.ArgumentError("Parameter project is required.");
245 } 247 }
246 if (zone == null) { 248 if (zone == null) {
247 throw new core.ArgumentError("Parameter zone is required."); 249 throw new core.ArgumentError("Parameter zone is required.");
248 } 250 }
249 if (filter != null) { 251 if (filter != null) {
250 _queryParams["filter"] = [filter]; 252 _queryParams["filter"] = [filter];
251 } 253 }
252 if (instanceGroupManager != null) {
253 _queryParams["instanceGroupManager"] = [instanceGroupManager];
254 }
255 if (maxResults != null) { 254 if (maxResults != null) {
256 _queryParams["maxResults"] = ["${maxResults}"]; 255 _queryParams["maxResults"] = ["${maxResults}"];
257 } 256 }
258 if (pageToken != null) { 257 if (pageToken != null) {
259 _queryParams["pageToken"] = [pageToken]; 258 _queryParams["pageToken"] = [pageToken];
260 } 259 }
261 260
262 _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escap er.ecapeVariable('$zone') + '/rollingUpdates'; 261 _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escap er.ecapeVariable('$zone') + '/rollingUpdates';
263 262
264 var _response = _requester.request(_url, 263 var _response = _requester.request(_url,
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after
622 _json["errors"] = errors.map((value) => (value).toJson()).toList(); 621 _json["errors"] = errors.map((value) => (value).toJson()).toList();
623 } 622 }
624 return _json; 623 return _json;
625 } 624 }
626 } 625 }
627 626
628 /** Update of a single instance. */ 627 /** Update of a single instance. */
629 class InstanceUpdate { 628 class InstanceUpdate {
630 /** Errors that occurred during the instance update. */ 629 /** Errors that occurred during the instance update. */
631 InstanceUpdateError error; 630 InstanceUpdateError error;
632 /** URL of the instance being updated. */ 631 /** Fully-qualified URL of the instance being updated. */
633 core.String instance; 632 core.String instance;
634 /** 633 /**
635 * Status of the instance update. Possible values are: 634 * Status of the instance update. Possible values are:
636 * - "PENDING": The instance update is pending execution. 635 * - "PENDING": The instance update is pending execution.
637 * - "ROLLING_FORWARD": The instance update is going forward. 636 * - "ROLLING_FORWARD": The instance update is going forward.
638 * - "ROLLING_BACK": The instance update is being rolled back. 637 * - "ROLLING_BACK": The instance update is being rolled back.
639 * - "PAUSED": The instance update is temporarily paused (inactive). 638 * - "PAUSED": The instance update is temporarily paused (inactive).
640 * - "ROLLED_OUT": The instance update is finished, the instance is running 639 * - "ROLLED_OUT": The instance update is finished, the instance is running
641 * the new template. 640 * the new template.
642 * - "ROLLED_BACK": The instance update is finished, the instance has been 641 * - "ROLLED_BACK": The instance update is finished, the instance has been
(...skipping 591 matching lines...) Expand 10 before | Expand all | Expand 10 after
1234 core.String instanceGroup; 1233 core.String instanceGroup;
1235 /** 1234 /**
1236 * Fully-qualified URL of an instance group manager being updated. Exactly one 1235 * Fully-qualified URL of an instance group manager being updated. Exactly one
1237 * of instanceGroupManager and instanceGroup must be set. 1236 * of instanceGroupManager and instanceGroup must be set.
1238 */ 1237 */
1239 core.String instanceGroupManager; 1238 core.String instanceGroupManager;
1240 /** Fully-qualified URL of an instance template to apply. */ 1239 /** Fully-qualified URL of an instance template to apply. */
1241 core.String instanceTemplate; 1240 core.String instanceTemplate;
1242 /** [Output Only] Type of the resource. */ 1241 /** [Output Only] Type of the resource. */
1243 core.String kind; 1242 core.String kind;
1243 /**
1244 * Fully-qualified URL of the instance template encountered while starting the
1245 * update.
1246 */
1247 core.String oldInstanceTemplate;
1244 /** Parameters of the update process. */ 1248 /** Parameters of the update process. */
1245 RollingUpdatePolicy policy; 1249 RollingUpdatePolicy policy;
1246 /** 1250 /**
1247 * [Output Only] An optional progress indicator that ranges from 0 to 100. 1251 * [Output Only] An optional progress indicator that ranges from 0 to 100.
1248 * There is no requirement that this be linear or support any granularity of 1252 * There is no requirement that this be linear or support any granularity of
1249 * operations. This should not be used to guess at when the update will be 1253 * operations. This should not be used to guess at when the update will be
1250 * complete. This number should be monotonically increasing as the update 1254 * complete. This number should be monotonically increasing as the update
1251 * progresses. 1255 * progresses.
1252 */ 1256 */
1253 core.int progress; 1257 core.int progress;
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
1299 } 1303 }
1300 if (_json.containsKey("instanceGroupManager")) { 1304 if (_json.containsKey("instanceGroupManager")) {
1301 instanceGroupManager = _json["instanceGroupManager"]; 1305 instanceGroupManager = _json["instanceGroupManager"];
1302 } 1306 }
1303 if (_json.containsKey("instanceTemplate")) { 1307 if (_json.containsKey("instanceTemplate")) {
1304 instanceTemplate = _json["instanceTemplate"]; 1308 instanceTemplate = _json["instanceTemplate"];
1305 } 1309 }
1306 if (_json.containsKey("kind")) { 1310 if (_json.containsKey("kind")) {
1307 kind = _json["kind"]; 1311 kind = _json["kind"];
1308 } 1312 }
1313 if (_json.containsKey("oldInstanceTemplate")) {
1314 oldInstanceTemplate = _json["oldInstanceTemplate"];
1315 }
1309 if (_json.containsKey("policy")) { 1316 if (_json.containsKey("policy")) {
1310 policy = new RollingUpdatePolicy.fromJson(_json["policy"]); 1317 policy = new RollingUpdatePolicy.fromJson(_json["policy"]);
1311 } 1318 }
1312 if (_json.containsKey("progress")) { 1319 if (_json.containsKey("progress")) {
1313 progress = _json["progress"]; 1320 progress = _json["progress"];
1314 } 1321 }
1315 if (_json.containsKey("selfLink")) { 1322 if (_json.containsKey("selfLink")) {
1316 selfLink = _json["selfLink"]; 1323 selfLink = _json["selfLink"];
1317 } 1324 }
1318 if (_json.containsKey("status")) { 1325 if (_json.containsKey("status")) {
(...skipping 29 matching lines...) Expand all
1348 } 1355 }
1349 if (instanceGroupManager != null) { 1356 if (instanceGroupManager != null) {
1350 _json["instanceGroupManager"] = instanceGroupManager; 1357 _json["instanceGroupManager"] = instanceGroupManager;
1351 } 1358 }
1352 if (instanceTemplate != null) { 1359 if (instanceTemplate != null) {
1353 _json["instanceTemplate"] = instanceTemplate; 1360 _json["instanceTemplate"] = instanceTemplate;
1354 } 1361 }
1355 if (kind != null) { 1362 if (kind != null) {
1356 _json["kind"] = kind; 1363 _json["kind"] = kind;
1357 } 1364 }
1365 if (oldInstanceTemplate != null) {
1366 _json["oldInstanceTemplate"] = oldInstanceTemplate;
1367 }
1358 if (policy != null) { 1368 if (policy != null) {
1359 _json["policy"] = (policy).toJson(); 1369 _json["policy"] = (policy).toJson();
1360 } 1370 }
1361 if (progress != null) { 1371 if (progress != null) {
1362 _json["progress"] = progress; 1372 _json["progress"] = progress;
1363 } 1373 }
1364 if (selfLink != null) { 1374 if (selfLink != null) {
1365 _json["selfLink"] = selfLink; 1375 _json["selfLink"] = selfLink;
1366 } 1376 }
1367 if (status != null) { 1377 if (status != null) {
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
1415 } 1425 }
1416 if (nextPageToken != null) { 1426 if (nextPageToken != null) {
1417 _json["nextPageToken"] = nextPageToken; 1427 _json["nextPageToken"] = nextPageToken;
1418 } 1428 }
1419 if (selfLink != null) { 1429 if (selfLink != null) {
1420 _json["selfLink"] = selfLink; 1430 _json["selfLink"] = selfLink;
1421 } 1431 }
1422 return _json; 1432 return _json;
1423 } 1433 }
1424 } 1434 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698