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

Side by Side Diff: generated/googleapis/lib/appengine/v1.dart

Issue 2987103002: Api-Roll 52: 2017-07-31 (Closed)
Patch Set: Created 3 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.appengine.v1; 3 library googleapis.appengine.v1;
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;
(...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after
406 * binding, API services can add a binding such as "/v1/{name=users / * 406 * binding, API services can add a binding such as "/v1/{name=users / *
407 * }/operations" to their service configuration. For backwards compatibility, 407 * }/operations" to their service configuration. For backwards compatibility,
408 * the default name includes the operations collection id, however overriding 408 * the default name includes the operations collection id, however overriding
409 * users must ensure the name binding is the parent resource, without the 409 * users must ensure the name binding is the parent resource, without the
410 * operations collection id. 410 * operations collection id.
411 * 411 *
412 * Request parameters: 412 * Request parameters:
413 * 413 *
414 * [appsId] - Part of `name`. The name of the operation's parent resource. 414 * [appsId] - Part of `name`. The name of the operation's parent resource.
415 * 415 *
416 * [pageToken] - The standard list page token.
417 *
416 * [pageSize] - The standard list page size. 418 * [pageSize] - The standard list page size.
417 * 419 *
418 * [filter] - The standard list filter. 420 * [filter] - The standard list filter.
419 * 421 *
420 * [pageToken] - The standard list page token.
421 *
422 * Completes with a [ListOperationsResponse]. 422 * Completes with a [ListOperationsResponse].
423 * 423 *
424 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 424 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
425 * error. 425 * error.
426 * 426 *
427 * If the used [http.Client] completes with an error when making a REST call, 427 * If the used [http.Client] completes with an error when making a REST call,
428 * this method will complete with the same error. 428 * this method will complete with the same error.
429 */ 429 */
430 async.Future<ListOperationsResponse> list(core.String appsId, {core.int pageSi ze, core.String filter, core.String pageToken}) { 430 async.Future<ListOperationsResponse> list(core.String appsId, {core.String pag eToken, core.int pageSize, core.String filter}) {
431 var _url = null; 431 var _url = null;
432 var _queryParams = new core.Map(); 432 var _queryParams = new core.Map();
433 var _uploadMedia = null; 433 var _uploadMedia = null;
434 var _uploadOptions = null; 434 var _uploadOptions = null;
435 var _downloadOptions = commons.DownloadOptions.Metadata; 435 var _downloadOptions = commons.DownloadOptions.Metadata;
436 var _body = null; 436 var _body = null;
437 437
438 if (appsId == null) { 438 if (appsId == null) {
439 throw new core.ArgumentError("Parameter appsId is required."); 439 throw new core.ArgumentError("Parameter appsId is required.");
440 } 440 }
441 if (pageToken != null) {
442 _queryParams["pageToken"] = [pageToken];
443 }
441 if (pageSize != null) { 444 if (pageSize != null) {
442 _queryParams["pageSize"] = ["${pageSize}"]; 445 _queryParams["pageSize"] = ["${pageSize}"];
443 } 446 }
444 if (filter != null) { 447 if (filter != null) {
445 _queryParams["filter"] = [filter]; 448 _queryParams["filter"] = [filter];
446 } 449 }
447 if (pageToken != null) {
448 _queryParams["pageToken"] = [pageToken];
449 }
450 450
451 _url = 'v1/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/operations' ; 451 _url = 'v1/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/operations' ;
452 452
453 var _response = _requester.request(_url, 453 var _response = _requester.request(_url,
454 "GET", 454 "GET",
455 body: _body, 455 body: _body,
456 queryParams: _queryParams, 456 queryParams: _queryParams,
457 uploadOptions: _uploadOptions, 457 uploadOptions: _uploadOptions,
458 uploadMedia: _uploadMedia, 458 uploadMedia: _uploadMedia,
459 downloadOptions: _downloadOptions); 459 downloadOptions: _downloadOptions);
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
616 * 616 *
617 * [request] - The metadata request object. 617 * [request] - The metadata request object.
618 * 618 *
619 * Request parameters: 619 * Request parameters:
620 * 620 *
621 * [appsId] - Part of `name`. Name of the resource to update. Example: 621 * [appsId] - Part of `name`. Name of the resource to update. Example:
622 * apps/myapp/services/default. 622 * apps/myapp/services/default.
623 * 623 *
624 * [servicesId] - Part of `name`. See documentation of `appsId`. 624 * [servicesId] - Part of `name`. See documentation of `appsId`.
625 * 625 *
626 * [updateMask] - Standard field mask for the set of fields to be updated.
627 *
626 * [migrateTraffic] - Set to true to gradually shift traffic to one or more 628 * [migrateTraffic] - Set to true to gradually shift traffic to one or more
627 * versions that you specify. By default, traffic is shifted immediately. For 629 * versions that you specify. By default, traffic is shifted immediately. For
628 * gradual traffic migration, the target versions must be located within 630 * gradual traffic migration, the target versions must be located within
629 * instances that are configured for both warmup requests 631 * instances that are configured for both warmup requests
630 * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.s ervices.versions#inboundservicetype) 632 * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.s ervices.versions#inboundservicetype)
631 * and automatic scaling 633 * and automatic scaling
632 * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.s ervices.versions#automaticscaling). 634 * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.s ervices.versions#automaticscaling).
633 * You must specify the shardBy 635 * You must specify the shardBy
634 * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.s ervices#shardby) 636 * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.s ervices#shardby)
635 * field in the Service resource. Gradual traffic migration is not supported 637 * field in the Service resource. Gradual traffic migration is not supported
636 * in the App Engine flexible environment. For examples, see Migrating and 638 * in the App Engine flexible environment. For examples, see Migrating and
637 * Splitting Traffic 639 * Splitting Traffic
638 * (https://cloud.google.com/appengine/docs/admin-api/migrating-splitting-traf fic). 640 * (https://cloud.google.com/appengine/docs/admin-api/migrating-splitting-traf fic).
639 * 641 *
640 * [updateMask] - Standard field mask for the set of fields to be updated.
641 *
642 * Completes with a [Operation]. 642 * Completes with a [Operation].
643 * 643 *
644 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 644 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
645 * error. 645 * error.
646 * 646 *
647 * If the used [http.Client] completes with an error when making a REST call, 647 * If the used [http.Client] completes with an error when making a REST call,
648 * this method will complete with the same error. 648 * this method will complete with the same error.
649 */ 649 */
650 async.Future<Operation> patch(Service request, core.String appsId, core.String servicesId, {core.bool migrateTraffic, core.String updateMask}) { 650 async.Future<Operation> patch(Service request, core.String appsId, core.String servicesId, {core.String updateMask, core.bool migrateTraffic}) {
651 var _url = null; 651 var _url = null;
652 var _queryParams = new core.Map(); 652 var _queryParams = new core.Map();
653 var _uploadMedia = null; 653 var _uploadMedia = null;
654 var _uploadOptions = null; 654 var _uploadOptions = null;
655 var _downloadOptions = commons.DownloadOptions.Metadata; 655 var _downloadOptions = commons.DownloadOptions.Metadata;
656 var _body = null; 656 var _body = null;
657 657
658 if (request != null) { 658 if (request != null) {
659 _body = convert.JSON.encode((request).toJson()); 659 _body = convert.JSON.encode((request).toJson());
660 } 660 }
661 if (appsId == null) { 661 if (appsId == null) {
662 throw new core.ArgumentError("Parameter appsId is required."); 662 throw new core.ArgumentError("Parameter appsId is required.");
663 } 663 }
664 if (servicesId == null) { 664 if (servicesId == null) {
665 throw new core.ArgumentError("Parameter servicesId is required."); 665 throw new core.ArgumentError("Parameter servicesId is required.");
666 } 666 }
667 if (updateMask != null) {
668 _queryParams["updateMask"] = [updateMask];
669 }
667 if (migrateTraffic != null) { 670 if (migrateTraffic != null) {
668 _queryParams["migrateTraffic"] = ["${migrateTraffic}"]; 671 _queryParams["migrateTraffic"] = ["${migrateTraffic}"];
669 } 672 }
670 if (updateMask != null) {
671 _queryParams["updateMask"] = [updateMask];
672 }
673 673
674 _url = 'v1/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/services/' + commons.Escaper.ecapeVariable('$servicesId'); 674 _url = 'v1/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/services/' + commons.Escaper.ecapeVariable('$servicesId');
675 675
676 var _response = _requester.request(_url, 676 var _response = _requester.request(_url,
677 "PATCH", 677 "PATCH",
678 body: _body, 678 body: _body,
679 queryParams: _queryParams, 679 queryParams: _queryParams,
680 uploadOptions: _uploadOptions, 680 uploadOptions: _uploadOptions,
681 uploadMedia: _uploadMedia, 681 uploadMedia: _uploadMedia,
682 downloadOptions: _downloadOptions); 682 downloadOptions: _downloadOptions);
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
856 /** 856 /**
857 * Lists the versions of a service. 857 * Lists the versions of a service.
858 * 858 *
859 * Request parameters: 859 * Request parameters:
860 * 860 *
861 * [appsId] - Part of `parent`. Name of the parent Service resource. Example: 861 * [appsId] - Part of `parent`. Name of the parent Service resource. Example:
862 * apps/myapp/services/default. 862 * apps/myapp/services/default.
863 * 863 *
864 * [servicesId] - Part of `parent`. See documentation of `appsId`. 864 * [servicesId] - Part of `parent`. See documentation of `appsId`.
865 * 865 *
866 * [pageToken] - Continuation token for fetching the next page of results.
867 *
866 * [pageSize] - Maximum results to return per page. 868 * [pageSize] - Maximum results to return per page.
867 * 869 *
868 * [view] - Controls the set of fields returned in the List response. 870 * [view] - Controls the set of fields returned in the List response.
869 * Possible string values are: 871 * Possible string values are:
870 * - "BASIC" : A BASIC. 872 * - "BASIC" : A BASIC.
871 * - "FULL" : A FULL. 873 * - "FULL" : A FULL.
872 * 874 *
873 * [pageToken] - Continuation token for fetching the next page of results.
874 *
875 * Completes with a [ListVersionsResponse]. 875 * Completes with a [ListVersionsResponse].
876 * 876 *
877 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 877 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
878 * error. 878 * error.
879 * 879 *
880 * If the used [http.Client] completes with an error when making a REST call, 880 * If the used [http.Client] completes with an error when making a REST call,
881 * this method will complete with the same error. 881 * this method will complete with the same error.
882 */ 882 */
883 async.Future<ListVersionsResponse> list(core.String appsId, core.String servic esId, {core.int pageSize, core.String view, core.String pageToken}) { 883 async.Future<ListVersionsResponse> list(core.String appsId, core.String servic esId, {core.String pageToken, core.int pageSize, core.String view}) {
884 var _url = null; 884 var _url = null;
885 var _queryParams = new core.Map(); 885 var _queryParams = new core.Map();
886 var _uploadMedia = null; 886 var _uploadMedia = null;
887 var _uploadOptions = null; 887 var _uploadOptions = null;
888 var _downloadOptions = commons.DownloadOptions.Metadata; 888 var _downloadOptions = commons.DownloadOptions.Metadata;
889 var _body = null; 889 var _body = null;
890 890
891 if (appsId == null) { 891 if (appsId == null) {
892 throw new core.ArgumentError("Parameter appsId is required."); 892 throw new core.ArgumentError("Parameter appsId is required.");
893 } 893 }
894 if (servicesId == null) { 894 if (servicesId == null) {
895 throw new core.ArgumentError("Parameter servicesId is required."); 895 throw new core.ArgumentError("Parameter servicesId is required.");
896 } 896 }
897 if (pageToken != null) {
898 _queryParams["pageToken"] = [pageToken];
899 }
897 if (pageSize != null) { 900 if (pageSize != null) {
898 _queryParams["pageSize"] = ["${pageSize}"]; 901 _queryParams["pageSize"] = ["${pageSize}"];
899 } 902 }
900 if (view != null) { 903 if (view != null) {
901 _queryParams["view"] = [view]; 904 _queryParams["view"] = [view];
902 } 905 }
903 if (pageToken != null) {
904 _queryParams["pageToken"] = [pageToken];
905 }
906 906
907 _url = 'v1/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/services/' + commons.Escaper.ecapeVariable('$servicesId') + '/versions'; 907 _url = 'v1/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/services/' + commons.Escaper.ecapeVariable('$servicesId') + '/versions';
908 908
909 var _response = _requester.request(_url, 909 var _response = _requester.request(_url,
910 "GET", 910 "GET",
911 body: _body, 911 body: _body,
912 queryParams: _queryParams, 912 queryParams: _queryParams,
913 uploadOptions: _uploadOptions, 913 uploadOptions: _uploadOptions,
914 uploadMedia: _uploadMedia, 914 uploadMedia: _uploadMedia,
915 downloadOptions: _downloadOptions); 915 downloadOptions: _downloadOptions);
(...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after
1355 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1355 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1356 if (scriptPath != null) { 1356 if (scriptPath != null) {
1357 _json["scriptPath"] = scriptPath; 1357 _json["scriptPath"] = scriptPath;
1358 } 1358 }
1359 return _json; 1359 return _json;
1360 } 1360 }
1361 } 1361 }
1362 1362
1363 /** 1363 /**
1364 * An Application resource contains the top-level configuration of an App Engine 1364 * An Application resource contains the top-level configuration of an App Engine
1365 * application. Next tag: 19 1365 * application. Next tag: 20
1366 */ 1366 */
1367 class Application { 1367 class Application {
1368 /** 1368 /**
1369 * Google Apps authentication domain that controls which users can access this 1369 * Google Apps authentication domain that controls which users can access this
1370 * application.Defaults to open access for any Google Account. 1370 * application.Defaults to open access for any Google Account.
1371 */ 1371 */
1372 core.String authDomain; 1372 core.String authDomain;
1373 /** 1373 /**
1374 * Google Cloud Storage bucket that can be used for storing files associated 1374 * Google Cloud Storage bucket that can be used for storing files associated
1375 * with this application. This bucket is associated with the application and 1375 * with this application. This bucket is associated with the application and
(...skipping 1953 matching lines...) Expand 10 before | Expand all | Expand 10 after
3329 } 3329 }
3330 return _json; 3330 return _json;
3331 } 3331 }
3332 } 3332 }
3333 3333
3334 /** 3334 /**
3335 * Readiness checking configuration for VM instances. Unhealthy instances are 3335 * Readiness checking configuration for VM instances. Unhealthy instances are
3336 * removed from traffic rotation. 3336 * removed from traffic rotation.
3337 */ 3337 */
3338 class ReadinessCheck { 3338 class ReadinessCheck {
3339 /**
3340 * A maximum time limit on application initialization, measured from moment
3341 * the application successfully replies to a healthcheck until it is ready to
3342 * serve traffic.
3343 */
3344 core.String appStartTimeout;
3339 /** Interval between health checks. */ 3345 /** Interval between health checks. */
3340 core.String checkInterval; 3346 core.String checkInterval;
3341 /** Number of consecutive failed checks required before removing traffic. */ 3347 /** Number of consecutive failed checks required before removing traffic. */
3342 core.int failureThreshold; 3348 core.int failureThreshold;
3343 /** 3349 /**
3344 * Host header to send when performing a HTTP Readiness check. Example: 3350 * Host header to send when performing a HTTP Readiness check. Example:
3345 * "myapp.appspot.com" 3351 * "myapp.appspot.com"
3346 */ 3352 */
3347 core.String host; 3353 core.String host;
3348 /** The request path. */ 3354 /** The request path. */
3349 core.String path; 3355 core.String path;
3350 /** 3356 /**
3351 * Number of consecutive successful checks required before receiving traffic. 3357 * Number of consecutive successful checks required before receiving traffic.
3352 */ 3358 */
3353 core.int successThreshold; 3359 core.int successThreshold;
3354 /** Time before the check is considered failed. */ 3360 /** Time before the check is considered failed. */
3355 core.String timeout; 3361 core.String timeout;
3356 3362
3357 ReadinessCheck(); 3363 ReadinessCheck();
3358 3364
3359 ReadinessCheck.fromJson(core.Map _json) { 3365 ReadinessCheck.fromJson(core.Map _json) {
3366 if (_json.containsKey("appStartTimeout")) {
3367 appStartTimeout = _json["appStartTimeout"];
3368 }
3360 if (_json.containsKey("checkInterval")) { 3369 if (_json.containsKey("checkInterval")) {
3361 checkInterval = _json["checkInterval"]; 3370 checkInterval = _json["checkInterval"];
3362 } 3371 }
3363 if (_json.containsKey("failureThreshold")) { 3372 if (_json.containsKey("failureThreshold")) {
3364 failureThreshold = _json["failureThreshold"]; 3373 failureThreshold = _json["failureThreshold"];
3365 } 3374 }
3366 if (_json.containsKey("host")) { 3375 if (_json.containsKey("host")) {
3367 host = _json["host"]; 3376 host = _json["host"];
3368 } 3377 }
3369 if (_json.containsKey("path")) { 3378 if (_json.containsKey("path")) {
3370 path = _json["path"]; 3379 path = _json["path"];
3371 } 3380 }
3372 if (_json.containsKey("successThreshold")) { 3381 if (_json.containsKey("successThreshold")) {
3373 successThreshold = _json["successThreshold"]; 3382 successThreshold = _json["successThreshold"];
3374 } 3383 }
3375 if (_json.containsKey("timeout")) { 3384 if (_json.containsKey("timeout")) {
3376 timeout = _json["timeout"]; 3385 timeout = _json["timeout"];
3377 } 3386 }
3378 } 3387 }
3379 3388
3380 core.Map<core.String, core.Object> toJson() { 3389 core.Map<core.String, core.Object> toJson() {
3381 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 3390 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
3391 if (appStartTimeout != null) {
3392 _json["appStartTimeout"] = appStartTimeout;
3393 }
3382 if (checkInterval != null) { 3394 if (checkInterval != null) {
3383 _json["checkInterval"] = checkInterval; 3395 _json["checkInterval"] = checkInterval;
3384 } 3396 }
3385 if (failureThreshold != null) { 3397 if (failureThreshold != null) {
3386 _json["failureThreshold"] = failureThreshold; 3398 _json["failureThreshold"] = failureThreshold;
3387 } 3399 }
3388 if (host != null) { 3400 if (host != null) {
3389 _json["host"] = host; 3401 _json["host"] = host;
3390 } 3402 }
3391 if (path != null) { 3403 if (path != null) {
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
3698 * Asynchronous operations. If an API call embeds asynchronous operation results 3710 * Asynchronous operations. If an API call embeds asynchronous operation results
3699 * in its response, the status of those operations should be represented 3711 * in its response, the status of those operations should be represented
3700 * directly using the Status message. 3712 * directly using the Status message.
3701 * Logging. If some API errors are stored in logs, the message Status could be 3713 * Logging. If some API errors are stored in logs, the message Status could be
3702 * used directly after any stripping needed for security/privacy reasons. 3714 * used directly after any stripping needed for security/privacy reasons.
3703 */ 3715 */
3704 class Status { 3716 class Status {
3705 /** The status code, which should be an enum value of google.rpc.Code. */ 3717 /** The status code, which should be an enum value of google.rpc.Code. */
3706 core.int code; 3718 core.int code;
3707 /** 3719 /**
3708 * A list of messages that carry the error details. There will be a common set 3720 * A list of messages that carry the error details. There is a common set of
3709 * of message types for APIs to use. 3721 * message types for APIs to use.
3710 * 3722 *
3711 * The values for Object must be JSON objects. It can consist of `num`, 3723 * The values for Object must be JSON objects. It can consist of `num`,
3712 * `String`, `bool` and `null` as well as `Map` and `List` values. 3724 * `String`, `bool` and `null` as well as `Map` and `List` values.
3713 */ 3725 */
3714 core.List<core.Map<core.String, core.Object>> details; 3726 core.List<core.Map<core.String, core.Object>> details;
3715 /** 3727 /**
3716 * A developer-facing error message, which should be in English. Any 3728 * A developer-facing error message, which should be in English. Any
3717 * user-facing error message should be localized and sent in the 3729 * user-facing error message should be localized and sent in the
3718 * google.rpc.Status.details field, or localized by the client. 3730 * google.rpc.Status.details field, or localized by the client.
3719 */ 3731 */
(...skipping 705 matching lines...) Expand 10 before | Expand all | Expand 10 after
4425 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 4437 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
4426 if (filesCount != null) { 4438 if (filesCount != null) {
4427 _json["filesCount"] = filesCount; 4439 _json["filesCount"] = filesCount;
4428 } 4440 }
4429 if (sourceUrl != null) { 4441 if (sourceUrl != null) {
4430 _json["sourceUrl"] = sourceUrl; 4442 _json["sourceUrl"] = sourceUrl;
4431 } 4443 }
4432 return _json; 4444 return _json;
4433 } 4445 }
4434 } 4446 }
OLDNEW
« no previous file with comments | « generated/googleapis/lib/androidmanagement/v1.dart ('k') | generated/googleapis/lib/bigquery/v2.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698