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

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

Issue 2824163002: Api-roll 48: 2017-04-18 (Closed)
Patch Set: Revert changes to pubspecs Created 3 years, 8 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;
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 appengine/v1'; 15 const core.String USER_AGENT = 'dart-api-client appengine/v1';
16 16
17 /** Provisions and manages App Engine applications. */ 17 /**
18 * The App Engine Admin API enables developers to provision and manage their App
19 * Engine applications.
20 */
18 class AppengineApi { 21 class AppengineApi {
19 /** View and manage your applications deployed on Google App Engine */ 22 /** View and manage your applications deployed on Google App Engine */
20 static const AppengineAdminScope = "https://www.googleapis.com/auth/appengine. admin"; 23 static const AppengineAdminScope = "https://www.googleapis.com/auth/appengine. admin";
21 24
22 /** View and manage your data across Google Cloud Platform services */ 25 /** View and manage your data across Google Cloud Platform services */
23 static const CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platf orm"; 26 static const CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platf orm";
24 27
25 /** View your data across Google Cloud Platform services */ 28 /** View your data across Google Cloud Platform services */
26 static const CloudPlatformReadOnlyScope = "https://www.googleapis.com/auth/clo ud-platform.read-only"; 29 static const CloudPlatformReadOnlyScope = "https://www.googleapis.com/auth/clo ud-platform.read-only";
27 30
(...skipping 12 matching lines...) Expand all
40 43
41 AppsLocationsResourceApi get locations => new AppsLocationsResourceApi(_reques ter); 44 AppsLocationsResourceApi get locations => new AppsLocationsResourceApi(_reques ter);
42 AppsOperationsResourceApi get operations => new AppsOperationsResourceApi(_req uester); 45 AppsOperationsResourceApi get operations => new AppsOperationsResourceApi(_req uester);
43 AppsServicesResourceApi get services => new AppsServicesResourceApi(_requester ); 46 AppsServicesResourceApi get services => new AppsServicesResourceApi(_requester );
44 47
45 AppsResourceApi(commons.ApiRequester client) : 48 AppsResourceApi(commons.ApiRequester client) :
46 _requester = client; 49 _requester = client;
47 50
48 /** 51 /**
49 * Creates an App Engine application for a Google Cloud Platform project. 52 * Creates an App Engine application for a Google Cloud Platform project.
50 * Required fields: id - The ID of the target Cloud Platform project. location 53 * Required fields:
51 * - The region (https://cloud.google.com/appengine/docs/locations) where you 54 * id - The ID of the target Cloud Platform project.
52 * want the App Engine application located.For more information about App 55 * location - The region (https://cloud.google.com/appengine/docs/locations)
53 * Engine applications, see Managing Projects, Applications, and Billing 56 * where you want the App Engine application located.For more information
54 * (https://cloud.google.com/appengine/docs/python/console/). 57 * about App Engine applications, see Managing Projects, Applications, and
58 * Billing (https://cloud.google.com/appengine/docs/python/console/).
55 * 59 *
56 * [request] - The metadata request object. 60 * [request] - The metadata request object.
57 * 61 *
58 * Request parameters: 62 * Request parameters:
59 * 63 *
60 * Completes with a [Operation]. 64 * Completes with a [Operation].
61 * 65 *
62 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 66 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
63 * error. 67 * error.
64 * 68 *
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 body: _body, 128 body: _body,
125 queryParams: _queryParams, 129 queryParams: _queryParams,
126 uploadOptions: _uploadOptions, 130 uploadOptions: _uploadOptions,
127 uploadMedia: _uploadMedia, 131 uploadMedia: _uploadMedia,
128 downloadOptions: _downloadOptions); 132 downloadOptions: _downloadOptions);
129 return _response.then((data) => new Application.fromJson(data)); 133 return _response.then((data) => new Application.fromJson(data));
130 } 134 }
131 135
132 /** 136 /**
133 * Updates the specified Application resource. You can update the following 137 * Updates the specified Application resource. You can update the following
134 * fields: auth_domain - Google authentication domain for controlling user 138 * fields:
135 * access to the application. default_cookie_expiration - Cookie expiration 139 * auth_domain - Google authentication domain for controlling user access to
136 * policy for the application. 140 * the application.
141 * default_cookie_expiration - Cookie expiration policy for the application.
137 * 142 *
138 * [request] - The metadata request object. 143 * [request] - The metadata request object.
139 * 144 *
140 * Request parameters: 145 * Request parameters:
141 * 146 *
142 * [appsId] - Part of `name`. Name of the Application resource to update. 147 * [appsId] - Part of `name`. Name of the Application resource to update.
143 * Example: apps/myapp. 148 * Example: apps/myapp.
144 * 149 *
145 * [updateMask] - Standard field mask for the set of fields to be updated. 150 * [updateMask] - Standard field mask for the set of fields to be updated.
146 * 151 *
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 } 289 }
285 290
286 /** 291 /**
287 * Lists information about the supported locations for this service. 292 * Lists information about the supported locations for this service.
288 * 293 *
289 * Request parameters: 294 * Request parameters:
290 * 295 *
291 * [appsId] - Part of `name`. The resource that owns the locations collection, 296 * [appsId] - Part of `name`. The resource that owns the locations collection,
292 * if applicable. 297 * if applicable.
293 * 298 *
294 * [filter] - The standard list filter. 299 * [pageToken] - The standard list page token.
295 * 300 *
296 * [pageSize] - The standard list page size. 301 * [pageSize] - The standard list page size.
297 * 302 *
298 * [pageToken] - The standard list page token. 303 * [filter] - The standard list filter.
299 * 304 *
300 * Completes with a [ListLocationsResponse]. 305 * Completes with a [ListLocationsResponse].
301 * 306 *
302 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 307 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
303 * error. 308 * error.
304 * 309 *
305 * If the used [http.Client] completes with an error when making a REST call, 310 * If the used [http.Client] completes with an error when making a REST call,
306 * this method will complete with the same error. 311 * this method will complete with the same error.
307 */ 312 */
308 async.Future<ListLocationsResponse> list(core.String appsId, {core.String filt er, core.int pageSize, core.String pageToken}) { 313 async.Future<ListLocationsResponse> list(core.String appsId, {core.String page Token, core.int pageSize, core.String filter}) {
309 var _url = null; 314 var _url = null;
310 var _queryParams = new core.Map(); 315 var _queryParams = new core.Map();
311 var _uploadMedia = null; 316 var _uploadMedia = null;
312 var _uploadOptions = null; 317 var _uploadOptions = null;
313 var _downloadOptions = commons.DownloadOptions.Metadata; 318 var _downloadOptions = commons.DownloadOptions.Metadata;
314 var _body = null; 319 var _body = null;
315 320
316 if (appsId == null) { 321 if (appsId == null) {
317 throw new core.ArgumentError("Parameter appsId is required."); 322 throw new core.ArgumentError("Parameter appsId is required.");
318 } 323 }
324 if (pageToken != null) {
325 _queryParams["pageToken"] = [pageToken];
326 }
327 if (pageSize != null) {
328 _queryParams["pageSize"] = ["${pageSize}"];
329 }
319 if (filter != null) { 330 if (filter != null) {
320 _queryParams["filter"] = [filter]; 331 _queryParams["filter"] = [filter];
321 } 332 }
322 if (pageSize != null) {
323 _queryParams["pageSize"] = ["${pageSize}"];
324 }
325 if (pageToken != null) {
326 _queryParams["pageToken"] = [pageToken];
327 }
328 333
329 _url = 'v1/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/locations'; 334 _url = 'v1/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/locations';
330 335
331 var _response = _requester.request(_url, 336 var _response = _requester.request(_url,
332 "GET", 337 "GET",
333 body: _body, 338 body: _body,
334 queryParams: _queryParams, 339 queryParams: _queryParams,
335 uploadOptions: _uploadOptions, 340 uploadOptions: _uploadOptions,
336 uploadMedia: _uploadMedia, 341 uploadMedia: _uploadMedia,
337 downloadOptions: _downloadOptions); 342 downloadOptions: _downloadOptions);
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
398 * server doesn't support this method, it returns UNIMPLEMENTED.NOTE: the name 403 * server doesn't support this method, it returns UNIMPLEMENTED.NOTE: the name
399 * binding below allows API services to override the binding to use different 404 * binding below allows API services to override the binding to use different
400 * resource name schemes, such as users / * /operations. 405 * resource name schemes, such as users / * /operations.
401 * 406 *
402 * Request parameters: 407 * Request parameters:
403 * 408 *
404 * [appsId] - Part of `name`. The name of the operation collection. 409 * [appsId] - Part of `name`. The name of the operation collection.
405 * 410 *
406 * [filter] - The standard list filter. 411 * [filter] - The standard list filter.
407 * 412 *
413 * [pageToken] - The standard list page token.
414 *
408 * [pageSize] - The standard list page size. 415 * [pageSize] - The standard list page size.
409 * 416 *
410 * [pageToken] - The standard list page token.
411 *
412 * Completes with a [ListOperationsResponse]. 417 * Completes with a [ListOperationsResponse].
413 * 418 *
414 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 419 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
415 * error. 420 * error.
416 * 421 *
417 * If the used [http.Client] completes with an error when making a REST call, 422 * If the used [http.Client] completes with an error when making a REST call,
418 * this method will complete with the same error. 423 * this method will complete with the same error.
419 */ 424 */
420 async.Future<ListOperationsResponse> list(core.String appsId, {core.String fil ter, core.int pageSize, core.String pageToken}) { 425 async.Future<ListOperationsResponse> list(core.String appsId, {core.String fil ter, core.String pageToken, core.int pageSize}) {
421 var _url = null; 426 var _url = null;
422 var _queryParams = new core.Map(); 427 var _queryParams = new core.Map();
423 var _uploadMedia = null; 428 var _uploadMedia = null;
424 var _uploadOptions = null; 429 var _uploadOptions = null;
425 var _downloadOptions = commons.DownloadOptions.Metadata; 430 var _downloadOptions = commons.DownloadOptions.Metadata;
426 var _body = null; 431 var _body = null;
427 432
428 if (appsId == null) { 433 if (appsId == null) {
429 throw new core.ArgumentError("Parameter appsId is required."); 434 throw new core.ArgumentError("Parameter appsId is required.");
430 } 435 }
431 if (filter != null) { 436 if (filter != null) {
432 _queryParams["filter"] = [filter]; 437 _queryParams["filter"] = [filter];
433 } 438 }
439 if (pageToken != null) {
440 _queryParams["pageToken"] = [pageToken];
441 }
434 if (pageSize != null) { 442 if (pageSize != null) {
435 _queryParams["pageSize"] = ["${pageSize}"]; 443 _queryParams["pageSize"] = ["${pageSize}"];
436 } 444 }
437 if (pageToken != null) {
438 _queryParams["pageToken"] = [pageToken];
439 }
440 445
441 _url = 'v1/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/operations' ; 446 _url = 'v1/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/operations' ;
442 447
443 var _response = _requester.request(_url, 448 var _response = _requester.request(_url,
444 "GET", 449 "GET",
445 body: _body, 450 body: _body,
446 queryParams: _queryParams, 451 queryParams: _queryParams,
447 uploadOptions: _uploadOptions, 452 uploadOptions: _uploadOptions,
448 uploadMedia: _uploadMedia, 453 uploadMedia: _uploadMedia,
449 downloadOptions: _downloadOptions); 454 downloadOptions: _downloadOptions);
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
552 } 557 }
553 558
554 /** 559 /**
555 * Lists all the services in the application. 560 * Lists all the services in the application.
556 * 561 *
557 * Request parameters: 562 * Request parameters:
558 * 563 *
559 * [appsId] - Part of `parent`. Name of the parent Application resource. 564 * [appsId] - Part of `parent`. Name of the parent Application resource.
560 * Example: apps/myapp. 565 * Example: apps/myapp.
561 * 566 *
567 * [pageToken] - Continuation token for fetching the next page of results.
568 *
562 * [pageSize] - Maximum results to return per page. 569 * [pageSize] - Maximum results to return per page.
563 * 570 *
564 * [pageToken] - Continuation token for fetching the next page of results.
565 *
566 * Completes with a [ListServicesResponse]. 571 * Completes with a [ListServicesResponse].
567 * 572 *
568 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 573 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
569 * error. 574 * error.
570 * 575 *
571 * If the used [http.Client] completes with an error when making a REST call, 576 * If the used [http.Client] completes with an error when making a REST call,
572 * this method will complete with the same error. 577 * this method will complete with the same error.
573 */ 578 */
574 async.Future<ListServicesResponse> list(core.String appsId, {core.int pageSize , core.String pageToken}) { 579 async.Future<ListServicesResponse> list(core.String appsId, {core.String pageT oken, core.int pageSize}) {
575 var _url = null; 580 var _url = null;
576 var _queryParams = new core.Map(); 581 var _queryParams = new core.Map();
577 var _uploadMedia = null; 582 var _uploadMedia = null;
578 var _uploadOptions = null; 583 var _uploadOptions = null;
579 var _downloadOptions = commons.DownloadOptions.Metadata; 584 var _downloadOptions = commons.DownloadOptions.Metadata;
580 var _body = null; 585 var _body = null;
581 586
582 if (appsId == null) { 587 if (appsId == null) {
583 throw new core.ArgumentError("Parameter appsId is required."); 588 throw new core.ArgumentError("Parameter appsId is required.");
584 } 589 }
590 if (pageToken != null) {
591 _queryParams["pageToken"] = [pageToken];
592 }
585 if (pageSize != null) { 593 if (pageSize != null) {
586 _queryParams["pageSize"] = ["${pageSize}"]; 594 _queryParams["pageSize"] = ["${pageSize}"];
587 } 595 }
588 if (pageToken != null) {
589 _queryParams["pageToken"] = [pageToken];
590 }
591 596
592 _url = 'v1/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/services'; 597 _url = 'v1/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/services';
593 598
594 var _response = _requester.request(_url, 599 var _response = _requester.request(_url,
595 "GET", 600 "GET",
596 body: _body, 601 body: _body,
597 queryParams: _queryParams, 602 queryParams: _queryParams,
598 uploadOptions: _uploadOptions, 603 uploadOptions: _uploadOptions,
599 uploadMedia: _uploadMedia, 604 uploadMedia: _uploadMedia,
600 downloadOptions: _downloadOptions); 605 downloadOptions: _downloadOptions);
601 return _response.then((data) => new ListServicesResponse.fromJson(data)); 606 return _response.then((data) => new ListServicesResponse.fromJson(data));
602 } 607 }
603 608
604 /** 609 /**
605 * Updates the configuration of the specified service. 610 * Updates the configuration of the specified service.
606 * 611 *
607 * [request] - The metadata request object. 612 * [request] - The metadata request object.
608 * 613 *
609 * Request parameters: 614 * Request parameters:
610 * 615 *
611 * [appsId] - Part of `name`. Name of the resource to update. Example: 616 * [appsId] - Part of `name`. Name of the resource to update. Example:
612 * apps/myapp/services/default. 617 * apps/myapp/services/default.
613 * 618 *
614 * [servicesId] - Part of `name`. See documentation of `appsId`. 619 * [servicesId] - Part of `name`. See documentation of `appsId`.
615 * 620 *
616 * [updateMask] - Standard field mask for the set of fields to be updated.
617 *
618 * [migrateTraffic] - Set to true to gradually shift traffic to one or more 621 * [migrateTraffic] - Set to true to gradually shift traffic to one or more
619 * versions that you specify. By default, traffic is shifted immediately. For 622 * versions that you specify. By default, traffic is shifted immediately. For
620 * gradual traffic migration, the target versions must be located within 623 * gradual traffic migration, the target versions must be located within
621 * instances that are configured for both warmup requests 624 * instances that are configured for both warmup requests
622 * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.s ervices.versions#inboundservicetype) 625 * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.s ervices.versions#inboundservicetype)
623 * and automatic scaling 626 * and automatic scaling
624 * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.s ervices.versions#automaticscaling). 627 * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.s ervices.versions#automaticscaling).
625 * You must specify the shardBy 628 * You must specify the shardBy
626 * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.s ervices#shardby) 629 * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.s ervices#shardby)
627 * field in the Service resource. Gradual traffic migration is not supported 630 * field in the Service resource. Gradual traffic migration is not supported
628 * in the App Engine flexible environment. For examples, see Migrating and 631 * in the App Engine flexible environment. For examples, see Migrating and
629 * Splitting Traffic 632 * Splitting Traffic
630 * (https://cloud.google.com/appengine/docs/admin-api/migrating-splitting-traf fic). 633 * (https://cloud.google.com/appengine/docs/admin-api/migrating-splitting-traf fic).
631 * 634 *
635 * [updateMask] - Standard field mask for the set of fields to be updated.
636 *
632 * Completes with a [Operation]. 637 * Completes with a [Operation].
633 * 638 *
634 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 639 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
635 * error. 640 * error.
636 * 641 *
637 * If the used [http.Client] completes with an error when making a REST call, 642 * If the used [http.Client] completes with an error when making a REST call,
638 * this method will complete with the same error. 643 * this method will complete with the same error.
639 */ 644 */
640 async.Future<Operation> patch(Service request, core.String appsId, core.String servicesId, {core.String updateMask, core.bool migrateTraffic}) { 645 async.Future<Operation> patch(Service request, core.String appsId, core.String servicesId, {core.bool migrateTraffic, core.String updateMask}) {
641 var _url = null; 646 var _url = null;
642 var _queryParams = new core.Map(); 647 var _queryParams = new core.Map();
643 var _uploadMedia = null; 648 var _uploadMedia = null;
644 var _uploadOptions = null; 649 var _uploadOptions = null;
645 var _downloadOptions = commons.DownloadOptions.Metadata; 650 var _downloadOptions = commons.DownloadOptions.Metadata;
646 var _body = null; 651 var _body = null;
647 652
648 if (request != null) { 653 if (request != null) {
649 _body = convert.JSON.encode((request).toJson()); 654 _body = convert.JSON.encode((request).toJson());
650 } 655 }
651 if (appsId == null) { 656 if (appsId == null) {
652 throw new core.ArgumentError("Parameter appsId is required."); 657 throw new core.ArgumentError("Parameter appsId is required.");
653 } 658 }
654 if (servicesId == null) { 659 if (servicesId == null) {
655 throw new core.ArgumentError("Parameter servicesId is required."); 660 throw new core.ArgumentError("Parameter servicesId is required.");
656 } 661 }
662 if (migrateTraffic != null) {
663 _queryParams["migrateTraffic"] = ["${migrateTraffic}"];
664 }
657 if (updateMask != null) { 665 if (updateMask != null) {
658 _queryParams["updateMask"] = [updateMask]; 666 _queryParams["updateMask"] = [updateMask];
659 } 667 }
660 if (migrateTraffic != null) {
661 _queryParams["migrateTraffic"] = ["${migrateTraffic}"];
662 }
663 668
664 _url = 'v1/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/services/' + commons.Escaper.ecapeVariable('$servicesId'); 669 _url = 'v1/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/services/' + commons.Escaper.ecapeVariable('$servicesId');
665 670
666 var _response = _requester.request(_url, 671 var _response = _requester.request(_url,
667 "PATCH", 672 "PATCH",
668 body: _body, 673 body: _body,
669 queryParams: _queryParams, 674 queryParams: _queryParams,
670 uploadOptions: _uploadOptions, 675 uploadOptions: _uploadOptions,
671 uploadMedia: _uploadMedia, 676 uploadMedia: _uploadMedia,
672 downloadOptions: _downloadOptions); 677 downloadOptions: _downloadOptions);
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
846 /** 851 /**
847 * Lists the versions of a service. 852 * Lists the versions of a service.
848 * 853 *
849 * Request parameters: 854 * Request parameters:
850 * 855 *
851 * [appsId] - Part of `parent`. Name of the parent Service resource. Example: 856 * [appsId] - Part of `parent`. Name of the parent Service resource. Example:
852 * apps/myapp/services/default. 857 * apps/myapp/services/default.
853 * 858 *
854 * [servicesId] - Part of `parent`. See documentation of `appsId`. 859 * [servicesId] - Part of `parent`. See documentation of `appsId`.
855 * 860 *
861 * [pageToken] - Continuation token for fetching the next page of results.
862 *
863 * [pageSize] - Maximum results to return per page.
864 *
856 * [view] - Controls the set of fields returned in the List response. 865 * [view] - Controls the set of fields returned in the List response.
857 * Possible string values are: 866 * Possible string values are:
858 * - "BASIC" : A BASIC. 867 * - "BASIC" : A BASIC.
859 * - "FULL" : A FULL. 868 * - "FULL" : A FULL.
860 * 869 *
861 * [pageSize] - Maximum results to return per page.
862 *
863 * [pageToken] - Continuation token for fetching the next page of results.
864 *
865 * Completes with a [ListVersionsResponse]. 870 * Completes with a [ListVersionsResponse].
866 * 871 *
867 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 872 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
868 * error. 873 * error.
869 * 874 *
870 * If the used [http.Client] completes with an error when making a REST call, 875 * If the used [http.Client] completes with an error when making a REST call,
871 * this method will complete with the same error. 876 * this method will complete with the same error.
872 */ 877 */
873 async.Future<ListVersionsResponse> list(core.String appsId, core.String servic esId, {core.String view, core.int pageSize, core.String pageToken}) { 878 async.Future<ListVersionsResponse> list(core.String appsId, core.String servic esId, {core.String pageToken, core.int pageSize, core.String view}) {
874 var _url = null; 879 var _url = null;
875 var _queryParams = new core.Map(); 880 var _queryParams = new core.Map();
876 var _uploadMedia = null; 881 var _uploadMedia = null;
877 var _uploadOptions = null; 882 var _uploadOptions = null;
878 var _downloadOptions = commons.DownloadOptions.Metadata; 883 var _downloadOptions = commons.DownloadOptions.Metadata;
879 var _body = null; 884 var _body = null;
880 885
881 if (appsId == null) { 886 if (appsId == null) {
882 throw new core.ArgumentError("Parameter appsId is required."); 887 throw new core.ArgumentError("Parameter appsId is required.");
883 } 888 }
884 if (servicesId == null) { 889 if (servicesId == null) {
885 throw new core.ArgumentError("Parameter servicesId is required."); 890 throw new core.ArgumentError("Parameter servicesId is required.");
886 } 891 }
892 if (pageToken != null) {
893 _queryParams["pageToken"] = [pageToken];
894 }
895 if (pageSize != null) {
896 _queryParams["pageSize"] = ["${pageSize}"];
897 }
887 if (view != null) { 898 if (view != null) {
888 _queryParams["view"] = [view]; 899 _queryParams["view"] = [view];
889 } 900 }
890 if (pageSize != null) {
891 _queryParams["pageSize"] = ["${pageSize}"];
892 }
893 if (pageToken != null) {
894 _queryParams["pageToken"] = [pageToken];
895 }
896 901
897 _url = 'v1/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/services/' + commons.Escaper.ecapeVariable('$servicesId') + '/versions'; 902 _url = 'v1/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/services/' + commons.Escaper.ecapeVariable('$servicesId') + '/versions';
898 903
899 var _response = _requester.request(_url, 904 var _response = _requester.request(_url,
900 "GET", 905 "GET",
901 body: _body, 906 body: _body,
902 queryParams: _queryParams, 907 queryParams: _queryParams,
903 uploadOptions: _uploadOptions, 908 uploadOptions: _uploadOptions,
904 uploadMedia: _uploadMedia, 909 uploadMedia: _uploadMedia,
905 downloadOptions: _downloadOptions); 910 downloadOptions: _downloadOptions);
906 return _response.then((data) => new ListVersionsResponse.fromJson(data)); 911 return _response.then((data) => new ListVersionsResponse.fromJson(data));
907 } 912 }
908 913
909 /** 914 /**
910 * Updates the specified Version resource. You can specify the following 915 * Updates the specified Version resource. You can specify the following
911 * fields depending on the App Engine environment and type of scaling that the 916 * fields depending on the App Engine environment and type of scaling that the
912 * version resource uses: serving_status 917 * version resource uses:
918 * serving_status
913 * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.s ervices.versions#Version.FIELDS.serving_status): 919 * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.s ervices.versions#Version.FIELDS.serving_status):
914 * For Version resources that use basic scaling, manual scaling, or run in the 920 * For Version resources that use basic scaling, manual scaling, or run in
915 * App Engine flexible environment. instance_class 921 * the App Engine flexible environment.
922 * instance_class
916 * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.s ervices.versions#Version.FIELDS.instance_class): 923 * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.s ervices.versions#Version.FIELDS.instance_class):
917 * For Version resources that run in the App Engine standard environment. 924 * For Version resources that run in the App Engine standard environment.
918 * automatic_scaling.min_idle_instances 925 * automatic_scaling.min_idle_instances
919 * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.s ervices.versions#Version.FIELDS.automatic_scaling): 926 * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.s ervices.versions#Version.FIELDS.automatic_scaling):
920 * For Version resources that use automatic scaling and run in the App Engine 927 * For Version resources that use automatic scaling and run in the App Engine
921 * standard environment. automatic_scaling.max_idle_instances 928 * standard environment.
929 * automatic_scaling.max_idle_instances
922 * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.s ervices.versions#Version.FIELDS.automatic_scaling): 930 * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.s ervices.versions#Version.FIELDS.automatic_scaling):
923 * For Version resources that use automatic scaling and run in the App Engine 931 * For Version resources that use automatic scaling and run in the App Engine
924 * standard environment. 932 * standard environment.
925 * 933 *
926 * [request] - The metadata request object. 934 * [request] - The metadata request object.
927 * 935 *
928 * Request parameters: 936 * Request parameters:
929 * 937 *
930 * [appsId] - Part of `name`. Name of the resource to update. Example: 938 * [appsId] - Part of `name`. Name of the resource to update. Example:
931 * apps/myapp/services/default/versions/1. 939 * apps/myapp/services/default/versions/1.
932 * 940 *
933 * [servicesId] - Part of `name`. See documentation of `appsId`. 941 * [servicesId] - Part of `name`. See documentation of `appsId`.
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
1171 * 1179 *
1172 * Request parameters: 1180 * Request parameters:
1173 * 1181 *
1174 * [appsId] - Part of `parent`. Name of the parent Version resource. Example: 1182 * [appsId] - Part of `parent`. Name of the parent Version resource. Example:
1175 * apps/myapp/services/default/versions/v1. 1183 * apps/myapp/services/default/versions/v1.
1176 * 1184 *
1177 * [servicesId] - Part of `parent`. See documentation of `appsId`. 1185 * [servicesId] - Part of `parent`. See documentation of `appsId`.
1178 * 1186 *
1179 * [versionsId] - Part of `parent`. See documentation of `appsId`. 1187 * [versionsId] - Part of `parent`. See documentation of `appsId`.
1180 * 1188 *
1189 * [pageToken] - Continuation token for fetching the next page of results.
1190 *
1181 * [pageSize] - Maximum results to return per page. 1191 * [pageSize] - Maximum results to return per page.
1182 * 1192 *
1183 * [pageToken] - Continuation token for fetching the next page of results.
1184 *
1185 * Completes with a [ListInstancesResponse]. 1193 * Completes with a [ListInstancesResponse].
1186 * 1194 *
1187 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1195 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
1188 * error. 1196 * error.
1189 * 1197 *
1190 * If the used [http.Client] completes with an error when making a REST call, 1198 * If the used [http.Client] completes with an error when making a REST call,
1191 * this method will complete with the same error. 1199 * this method will complete with the same error.
1192 */ 1200 */
1193 async.Future<ListInstancesResponse> list(core.String appsId, core.String servi cesId, core.String versionsId, {core.int pageSize, core.String pageToken}) { 1201 async.Future<ListInstancesResponse> list(core.String appsId, core.String servi cesId, core.String versionsId, {core.String pageToken, core.int pageSize}) {
1194 var _url = null; 1202 var _url = null;
1195 var _queryParams = new core.Map(); 1203 var _queryParams = new core.Map();
1196 var _uploadMedia = null; 1204 var _uploadMedia = null;
1197 var _uploadOptions = null; 1205 var _uploadOptions = null;
1198 var _downloadOptions = commons.DownloadOptions.Metadata; 1206 var _downloadOptions = commons.DownloadOptions.Metadata;
1199 var _body = null; 1207 var _body = null;
1200 1208
1201 if (appsId == null) { 1209 if (appsId == null) {
1202 throw new core.ArgumentError("Parameter appsId is required."); 1210 throw new core.ArgumentError("Parameter appsId is required.");
1203 } 1211 }
1204 if (servicesId == null) { 1212 if (servicesId == null) {
1205 throw new core.ArgumentError("Parameter servicesId is required."); 1213 throw new core.ArgumentError("Parameter servicesId is required.");
1206 } 1214 }
1207 if (versionsId == null) { 1215 if (versionsId == null) {
1208 throw new core.ArgumentError("Parameter versionsId is required."); 1216 throw new core.ArgumentError("Parameter versionsId is required.");
1209 } 1217 }
1218 if (pageToken != null) {
1219 _queryParams["pageToken"] = [pageToken];
1220 }
1210 if (pageSize != null) { 1221 if (pageSize != null) {
1211 _queryParams["pageSize"] = ["${pageSize}"]; 1222 _queryParams["pageSize"] = ["${pageSize}"];
1212 } 1223 }
1213 if (pageToken != null) {
1214 _queryParams["pageToken"] = [pageToken];
1215 }
1216 1224
1217 _url = 'v1/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/services/' + commons.Escaper.ecapeVariable('$servicesId') + '/versions/' + commons.Escaper. ecapeVariable('$versionsId') + '/instances'; 1225 _url = 'v1/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/services/' + commons.Escaper.ecapeVariable('$servicesId') + '/versions/' + commons.Escaper. ecapeVariable('$versionsId') + '/instances';
1218 1226
1219 var _response = _requester.request(_url, 1227 var _response = _requester.request(_url,
1220 "GET", 1228 "GET",
1221 body: _body, 1229 body: _body,
1222 queryParams: _queryParams, 1230 queryParams: _queryParams,
1223 uploadOptions: _uploadOptions, 1231 uploadOptions: _uploadOptions,
1224 uploadMedia: _uploadMedia, 1232 uploadMedia: _uploadMedia,
1225 downloadOptions: _downloadOptions); 1233 downloadOptions: _downloadOptions);
1226 return _response.then((data) => new ListInstancesResponse.fromJson(data)); 1234 return _response.then((data) => new ListInstancesResponse.fromJson(data));
1227 } 1235 }
1228 1236
1229 } 1237 }
1230 1238
1231 1239
1232 1240
1233 /** 1241 /**
1234 * Google Cloud Endpoints 1242 * Google Cloud Endpoints
1235 * (https://cloud.google.com/appengine/docs/python/endpoints/) configuration for 1243 * (https://cloud.google.com/appengine/docs/python/endpoints/) configuration for
1236 * API handlers. 1244 * API handlers.
1237 */ 1245 */
1238 class ApiConfigHandler { 1246 class ApiConfigHandler {
1239 /** 1247 /**
1240 * Action to take when users access resources that require authentication. 1248 * Action to take when users access resources that require authentication.
1241 * Defaults to redirect. 1249 * Defaults to redirect.
1242 * Possible string values are: 1250 * Possible string values are:
1243 * - "AUTH_FAIL_ACTION_UNSPECIFIED" : A AUTH_FAIL_ACTION_UNSPECIFIED. 1251 * - "AUTH_FAIL_ACTION_UNSPECIFIED" : Not specified. AUTH_FAIL_ACTION_REDIRECT
1244 * - "AUTH_FAIL_ACTION_REDIRECT" : A AUTH_FAIL_ACTION_REDIRECT. 1252 * is assumed.
1245 * - "AUTH_FAIL_ACTION_UNAUTHORIZED" : A AUTH_FAIL_ACTION_UNAUTHORIZED. 1253 * - "AUTH_FAIL_ACTION_REDIRECT" : Redirects user to "accounts.google.com".
1254 * The user is redirected back to the application URL after signing in or
1255 * creating an account.
1256 * - "AUTH_FAIL_ACTION_UNAUTHORIZED" : Rejects request with a 401 HTTP status
1257 * code and an error message.
1246 */ 1258 */
1247 core.String authFailAction; 1259 core.String authFailAction;
1248 /** 1260 /**
1249 * Level of login required to access this resource. Defaults to optional. 1261 * Level of login required to access this resource. Defaults to optional.
1250 * Possible string values are: 1262 * Possible string values are:
1251 * - "LOGIN_UNSPECIFIED" : A LOGIN_UNSPECIFIED. 1263 * - "LOGIN_UNSPECIFIED" : Not specified. LOGIN_OPTIONAL is assumed.
1252 * - "LOGIN_OPTIONAL" : A LOGIN_OPTIONAL. 1264 * - "LOGIN_OPTIONAL" : Does not require that the user is signed in.
1253 * - "LOGIN_ADMIN" : A LOGIN_ADMIN. 1265 * - "LOGIN_ADMIN" : If the user is not signed in, the auth_fail_action is
1254 * - "LOGIN_REQUIRED" : A LOGIN_REQUIRED. 1266 * taken. In addition, if the user is not an administrator for the
1267 * application, they are given an error message regardless of
1268 * auth_fail_action. If the user is an administrator, the handler proceeds.
1269 * - "LOGIN_REQUIRED" : If the user has signed in, the handler proceeds
1270 * normally. Otherwise, the auth_fail_action is taken.
1255 */ 1271 */
1256 core.String login; 1272 core.String login;
1257 /** Path to the script from the application root directory. */ 1273 /** Path to the script from the application root directory. */
1258 core.String script; 1274 core.String script;
1259 /** 1275 /**
1260 * Security (HTTPS) enforcement for this URL. 1276 * Security (HTTPS) enforcement for this URL.
1261 * Possible string values are: 1277 * Possible string values are:
1262 * - "SECURE_UNSPECIFIED" : A SECURE_UNSPECIFIED. 1278 * - "SECURE_UNSPECIFIED" : Not specified.
1263 * - "SECURE_DEFAULT" : A SECURE_DEFAULT. 1279 * - "SECURE_DEFAULT" : Both HTTP and HTTPS requests with URLs that match the
1264 * - "SECURE_NEVER" : A SECURE_NEVER. 1280 * handler succeed without redirects. The application can examine the request
1265 * - "SECURE_OPTIONAL" : A SECURE_OPTIONAL. 1281 * to determine which protocol was used, and respond accordingly.
1266 * - "SECURE_ALWAYS" : A SECURE_ALWAYS. 1282 * - "SECURE_NEVER" : Requests for a URL that match this handler that use
1283 * HTTPS are automatically redirected to the HTTP equivalent URL.
1284 * - "SECURE_OPTIONAL" : Both HTTP and HTTPS requests with URLs that match the
1285 * handler succeed without redirects. The application can examine the request
1286 * to determine which protocol was used and respond accordingly.
1287 * - "SECURE_ALWAYS" : Requests for a URL that match this handler that do not
1288 * use HTTPS are automatically redirected to the HTTPS URL with the same path.
1289 * Query parameters are reserved for the redirect.
1267 */ 1290 */
1268 core.String securityLevel; 1291 core.String securityLevel;
1269 /** URL to serve the endpoint at. */ 1292 /** URL to serve the endpoint at. */
1270 core.String url; 1293 core.String url;
1271 1294
1272 ApiConfigHandler(); 1295 ApiConfigHandler();
1273 1296
1274 ApiConfigHandler.fromJson(core.Map _json) { 1297 ApiConfigHandler.fromJson(core.Map _json) {
1275 if (_json.containsKey("authFailAction")) { 1298 if (_json.containsKey("authFailAction")) {
1276 authFailAction = _json["authFailAction"]; 1299 authFailAction = _json["authFailAction"];
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
1387 */ 1410 */
1388 core.String locationId; 1411 core.String locationId;
1389 /** 1412 /**
1390 * Full path to the Application resource in the API. Example: 1413 * Full path to the Application resource in the API. Example:
1391 * apps/myapp.@OutputOnly 1414 * apps/myapp.@OutputOnly
1392 */ 1415 */
1393 core.String name; 1416 core.String name;
1394 /** 1417 /**
1395 * Serving status of this application. 1418 * Serving status of this application.
1396 * Possible string values are: 1419 * Possible string values are:
1397 * - "UNSPECIFIED" : A UNSPECIFIED. 1420 * - "UNSPECIFIED" : Serving status is unspecified.
1398 * - "SERVING" : A SERVING. 1421 * - "SERVING" : Application is serving.
1399 * - "USER_DISABLED" : A USER_DISABLED. 1422 * - "USER_DISABLED" : Application has been disabled by the user.
1400 * - "SYSTEM_DISABLED" : A SYSTEM_DISABLED. 1423 * - "SYSTEM_DISABLED" : Application has been disabled by the system.
1401 */ 1424 */
1402 core.String servingStatus; 1425 core.String servingStatus;
1403 1426
1404 Application(); 1427 Application();
1405 1428
1406 Application.fromJson(core.Map _json) { 1429 Application.fromJson(core.Map _json) {
1407 if (_json.containsKey("authDomain")) { 1430 if (_json.containsKey("authDomain")) {
1408 authDomain = _json["authDomain"]; 1431 authDomain = _json["authDomain"];
1409 } 1432 }
1410 if (_json.containsKey("codeBucket")) { 1433 if (_json.containsKey("codeBucket")) {
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
1716 if (targetUtilization != null) { 1739 if (targetUtilization != null) {
1717 _json["targetUtilization"] = targetUtilization; 1740 _json["targetUtilization"] = targetUtilization;
1718 } 1741 }
1719 return _json; 1742 return _json;
1720 } 1743 }
1721 } 1744 }
1722 1745
1723 /** Request message for Instances.DebugInstance. */ 1746 /** Request message for Instances.DebugInstance. */
1724 class DebugInstanceRequest { 1747 class DebugInstanceRequest {
1725 /** 1748 /**
1726 * Public SSH key to add to the instance. Examples: [USERNAME]:ssh-rsa 1749 * Public SSH key to add to the instance. Examples:
1727 * [KEY_VALUE] [USERNAME] [USERNAME]:ssh-rsa [KEY_VALUE] google-ssh 1750 * [USERNAME]:ssh-rsa [KEY_VALUE] [USERNAME]
1751 * [USERNAME]:ssh-rsa [KEY_VALUE] google-ssh
1728 * {"userName":"[USERNAME]","expireOn":"[EXPIRE_TIME]"}For more information, 1752 * {"userName":"[USERNAME]","expireOn":"[EXPIRE_TIME]"}For more information,
1729 * see Adding and Removing SSH Keys 1753 * see Adding and Removing SSH Keys
1730 * (https://cloud.google.com/compute/docs/instances/adding-removing-ssh-keys). 1754 * (https://cloud.google.com/compute/docs/instances/adding-removing-ssh-keys).
1731 */ 1755 */
1732 core.String sshKey; 1756 core.String sshKey;
1733 1757
1734 DebugInstanceRequest(); 1758 DebugInstanceRequest();
1735 1759
1736 DebugInstanceRequest.fromJson(core.Map _json) { 1760 DebugInstanceRequest.fromJson(core.Map _json) {
1737 if (_json.containsKey("sshKey")) { 1761 if (_json.containsKey("sshKey")) {
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
1879 } 1903 }
1880 return _json; 1904 return _json;
1881 } 1905 }
1882 } 1906 }
1883 1907
1884 /** Custom static error page to be served when an error occurs. */ 1908 /** Custom static error page to be served when an error occurs. */
1885 class ErrorHandler { 1909 class ErrorHandler {
1886 /** 1910 /**
1887 * Error condition this handler applies to. 1911 * Error condition this handler applies to.
1888 * Possible string values are: 1912 * Possible string values are:
1889 * - "ERROR_CODE_UNSPECIFIED" : A ERROR_CODE_UNSPECIFIED. 1913 * - "ERROR_CODE_UNSPECIFIED" : Not specified. ERROR_CODE_DEFAULT is assumed.
1890 * - "ERROR_CODE_DEFAULT" : A ERROR_CODE_DEFAULT. 1914 * - "ERROR_CODE_DEFAULT" : All other error types.
1891 * - "ERROR_CODE_OVER_QUOTA" : A ERROR_CODE_OVER_QUOTA. 1915 * - "ERROR_CODE_OVER_QUOTA" : Application has exceeded a resource quota.
1892 * - "ERROR_CODE_DOS_API_DENIAL" : A ERROR_CODE_DOS_API_DENIAL. 1916 * - "ERROR_CODE_DOS_API_DENIAL" : Client blocked by the application's Denial
1893 * - "ERROR_CODE_TIMEOUT" : A ERROR_CODE_TIMEOUT. 1917 * of Service protection configuration.
1918 * - "ERROR_CODE_TIMEOUT" : Deadline reached before the application responds.
1894 */ 1919 */
1895 core.String errorCode; 1920 core.String errorCode;
1896 /** MIME type of file. Defaults to text/html. */ 1921 /** MIME type of file. Defaults to text/html. */
1897 core.String mimeType; 1922 core.String mimeType;
1898 /** Static file content to be served for this error. */ 1923 /** Static file content to be served for this error. */
1899 core.String staticFile; 1924 core.String staticFile;
1900 1925
1901 ErrorHandler(); 1926 ErrorHandler();
1902 1927
1903 ErrorHandler.fromJson(core.Map _json) { 1928 ErrorHandler.fromJson(core.Map _json) {
(...skipping 29 matching lines...) Expand all
1933 */ 1958 */
1934 class FileInfo { 1959 class FileInfo {
1935 /** 1960 /**
1936 * The MIME type of the file.Defaults to the value from Google Cloud Storage. 1961 * The MIME type of the file.Defaults to the value from Google Cloud Storage.
1937 */ 1962 */
1938 core.String mimeType; 1963 core.String mimeType;
1939 /** The SHA1 hash of the file, in hex. */ 1964 /** The SHA1 hash of the file, in hex. */
1940 core.String sha1Sum; 1965 core.String sha1Sum;
1941 /** 1966 /**
1942 * URL source to use to fetch this file. Must be a URL to a resource in Google 1967 * URL source to use to fetch this file. Must be a URL to a resource in Google
1943 * Cloud Storage in the form 'http(s)://storage.googleapis.com//'. 1968 * Cloud Storage in the form
1969 * 'http(s)://storage.googleapis.com/<bucket>/<object>'.
1944 */ 1970 */
1945 core.String sourceUrl; 1971 core.String sourceUrl;
1946 1972
1947 FileInfo(); 1973 FileInfo();
1948 1974
1949 FileInfo.fromJson(core.Map _json) { 1975 FileInfo.fromJson(core.Map _json) {
1950 if (_json.containsKey("mimeType")) { 1976 if (_json.containsKey("mimeType")) {
1951 mimeType = _json["mimeType"]; 1977 mimeType = _json["mimeType"];
1952 } 1978 }
1953 if (_json.containsKey("sha1Sum")) { 1979 if (_json.containsKey("sha1Sum")) {
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
2117 /** 2143 /**
2118 * An Instance resource is the computing unit that App Engine uses to 2144 * An Instance resource is the computing unit that App Engine uses to
2119 * automatically scale an application. 2145 * automatically scale an application.
2120 */ 2146 */
2121 class Instance { 2147 class Instance {
2122 /** App Engine release this instance is running on.@OutputOnly */ 2148 /** App Engine release this instance is running on.@OutputOnly */
2123 core.String appEngineRelease; 2149 core.String appEngineRelease;
2124 /** 2150 /**
2125 * Availability of the instance.@OutputOnly 2151 * Availability of the instance.@OutputOnly
2126 * Possible string values are: 2152 * Possible string values are:
2127 * - "UNSPECIFIED" : A UNSPECIFIED. 2153 * - "UNSPECIFIED"
2128 * - "RESIDENT" : A RESIDENT. 2154 * - "RESIDENT"
2129 * - "DYNAMIC" : A DYNAMIC. 2155 * - "DYNAMIC"
2130 */ 2156 */
2131 core.String availability; 2157 core.String availability;
2132 /** Average latency (ms) over the last minute.@OutputOnly */ 2158 /** Average latency (ms) over the last minute.@OutputOnly */
2133 core.int averageLatency; 2159 core.int averageLatency;
2134 /** Number of errors since this instance was started.@OutputOnly */ 2160 /** Number of errors since this instance was started.@OutputOnly */
2135 core.int errors; 2161 core.int errors;
2136 /** 2162 /**
2137 * Relative name of the instance within the version. Example: 2163 * Relative name of the instance within the version. Example:
2138 * instance-1.@OutputOnly 2164 * instance-1.@OutputOnly
2139 */ 2165 */
(...skipping 546 matching lines...) Expand 10 before | Expand all | Expand 10 after
2686 core.String instanceTag; 2712 core.String instanceTag;
2687 /** 2713 /**
2688 * Google Cloud Platform network where the virtual machines are created. 2714 * Google Cloud Platform network where the virtual machines are created.
2689 * Specify the short name, not the resource path.Defaults to default. 2715 * Specify the short name, not the resource path.Defaults to default.
2690 */ 2716 */
2691 core.String name; 2717 core.String name;
2692 /** 2718 /**
2693 * Google Cloud Platform sub-network where the virtual machines are created. 2719 * Google Cloud Platform sub-network where the virtual machines are created.
2694 * Specify the short name, not the resource path.If a subnetwork name is 2720 * Specify the short name, not the resource path.If a subnetwork name is
2695 * specified, a network name will also be required unless it is for the 2721 * specified, a network name will also be required unless it is for the
2696 * default network. If the network the VM instance is being created in is a 2722 * default network.
2697 * Legacy network, then the IP address is allocated from the IPv4Range. If the 2723 * If the network the VM instance is being created in is a Legacy network,
2698 * network the VM instance is being created in is an auto Subnet Mode Network, 2724 * then the IP address is allocated from the IPv4Range.
2699 * then only network name should be specified (not the subnetwork_name) and 2725 * If the network the VM instance is being created in is an auto Subnet Mode
2700 * the IP address is created from the IPCidrRange of the subnetwork that 2726 * Network, then only network name should be specified (not the
2701 * exists in that zone for that network. If the network the VM instance is 2727 * subnetwork_name) and the IP address is created from the IPCidrRange of the
2702 * being created in is a custom Subnet Mode Network, then the subnetwork_name 2728 * subnetwork that exists in that zone for that network.
2703 * must be specified and the IP address is created from the IPCidrRange of the 2729 * If the network the VM instance is being created in is a custom Subnet Mode
2704 * subnetwork.If specified, the subnetwork must exist in the same region as 2730 * Network, then the subnetwork_name must be specified and the IP address is
2705 * the Flex app. 2731 * created from the IPCidrRange of the subnetwork.If specified, the subnetwork
2732 * must exist in the same region as the Flex app.
2706 */ 2733 */
2707 core.String subnetworkName; 2734 core.String subnetworkName;
2708 2735
2709 Network(); 2736 Network();
2710 2737
2711 Network.fromJson(core.Map _json) { 2738 Network.fromJson(core.Map _json) {
2712 if (_json.containsKey("forwardedPorts")) { 2739 if (_json.containsKey("forwardedPorts")) {
2713 forwardedPorts = _json["forwardedPorts"]; 2740 forwardedPorts = _json["forwardedPorts"];
2714 } 2741 }
2715 if (_json.containsKey("instanceTag")) { 2742 if (_json.containsKey("instanceTag")) {
(...skipping 834 matching lines...) Expand 10 before | Expand all | Expand 10 after
3550 if (uploadPathRegex != null) { 3577 if (uploadPathRegex != null) {
3551 _json["uploadPathRegex"] = uploadPathRegex; 3578 _json["uploadPathRegex"] = uploadPathRegex;
3552 } 3579 }
3553 return _json; 3580 return _json;
3554 } 3581 }
3555 } 3582 }
3556 3583
3557 /** 3584 /**
3558 * The Status type defines a logical error model that is suitable for different 3585 * The Status type defines a logical error model that is suitable for different
3559 * programming environments, including REST APIs and RPC APIs. It is used by 3586 * programming environments, including REST APIs and RPC APIs. It is used by
3560 * gRPC (https://github.com/grpc). The error model is designed to be: Simple to 3587 * gRPC (https://github.com/grpc). The error model is designed to be:
3561 * use and understand for most users Flexible enough to meet unexpected 3588 * Simple to use and understand for most users
3562 * needsOverviewThe Status message contains three pieces of data: error code, 3589 * Flexible enough to meet unexpected needsOverviewThe Status message contains
3563 * error message, and error details. The error code should be an enum value of 3590 * three pieces of data: error code, error message, and error details. The error
3564 * google.rpc.Code, but it may accept additional error codes if needed. The 3591 * code should be an enum value of google.rpc.Code, but it may accept additional
3565 * error message should be a developer-facing English message that helps 3592 * error codes if needed. The error message should be a developer-facing English
3566 * developers understand and resolve the error. If a localized user-facing error 3593 * message that helps developers understand and resolve the error. If a
3567 * message is needed, put the localized message in the error details or localize 3594 * localized user-facing error message is needed, put the localized message in
3568 * it in the client. The optional error details may contain arbitrary 3595 * the error details or localize it in the client. The optional error details
3569 * information about the error. There is a predefined set of error detail types 3596 * may contain arbitrary information about the error. There is a predefined set
3570 * in the package google.rpc which can be used for common error 3597 * of error detail types in the package google.rpc which can be used for common
3571 * conditions.Language mappingThe Status message is the logical representation 3598 * error conditions.Language mappingThe Status message is the logical
3572 * of the error model, but it is not necessarily the actual wire format. When 3599 * representation of the error model, but it is not necessarily the actual wire
3573 * the Status message is exposed in different client libraries and different 3600 * format. When the Status message is exposed in different client libraries and
3574 * wire protocols, it can be mapped differently. For example, it will likely be 3601 * different wire protocols, it can be mapped differently. For example, it will
3575 * mapped to some exceptions in Java, but more likely mapped to some error codes 3602 * likely be mapped to some exceptions in Java, but more likely mapped to some
3576 * in C.Other usesThe error model and the Status message can be used in a 3603 * error codes in C.Other usesThe error model and the Status message can be used
3577 * variety of environments, either with or without APIs, to provide a consistent 3604 * in a variety of environments, either with or without APIs, to provide a
3578 * developer experience across different environments.Example uses of this error 3605 * consistent developer experience across different environments.Example uses of
3579 * model include: Partial errors. If a service needs to return partial errors to 3606 * this error model include:
3580 * the client, it may embed the Status in the normal response to indicate the 3607 * Partial errors. If a service needs to return partial errors to the client, it
3581 * partial errors. Workflow errors. A typical workflow has multiple steps. Each 3608 * may embed the Status in the normal response to indicate the partial errors.
3582 * step may have a Status message for error reporting purpose. Batch operations. 3609 * Workflow errors. A typical workflow has multiple steps. Each step may have a
3583 * If a client uses batch request and batch response, the Status message should 3610 * Status message for error reporting purpose.
3584 * be used directly inside batch response, one for each error sub-response. 3611 * Batch operations. If a client uses batch request and batch response, the
3612 * Status message should be used directly inside batch response, one for each
3613 * error sub-response.
3585 * Asynchronous operations. If an API call embeds asynchronous operation results 3614 * Asynchronous operations. If an API call embeds asynchronous operation results
3586 * in its response, the status of those operations should be represented 3615 * in its response, the status of those operations should be represented
3587 * directly using the Status message. Logging. If some API errors are stored in 3616 * directly using the Status message.
3588 * logs, the message Status could be used directly after any stripping needed 3617 * Logging. If some API errors are stored in logs, the message Status could be
3589 * for security/privacy reasons. 3618 * used directly after any stripping needed for security/privacy reasons.
3590 */ 3619 */
3591 class Status { 3620 class Status {
3592 /** The status code, which should be an enum value of google.rpc.Code. */ 3621 /** The status code, which should be an enum value of google.rpc.Code. */
3593 core.int code; 3622 core.int code;
3594 /** 3623 /**
3595 * A list of messages that carry the error details. There will be a common set 3624 * A list of messages that carry the error details. There will be a common set
3596 * of message types for APIs to use. 3625 * of message types for APIs to use.
3597 * 3626 *
3598 * The values for Object must be JSON objects. It can consist of `num`, 3627 * The values for Object must be JSON objects. It can consist of `num`,
3599 * `String`, `bool` and `null` as well as `Map` and `List` values. 3628 * `String`, `bool` and `null` as well as `Map` and `List` values.
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
3648 * service is deleted or their traffic allocation is removed. Allocations must 3677 * service is deleted or their traffic allocation is removed. Allocations must
3649 * sum to 1. Up to two decimal place precision is supported for IP-based 3678 * sum to 1. Up to two decimal place precision is supported for IP-based
3650 * splits and up to three decimal places is supported for cookie-based splits. 3679 * splits and up to three decimal places is supported for cookie-based splits.
3651 */ 3680 */
3652 core.Map<core.String, core.double> allocations; 3681 core.Map<core.String, core.double> allocations;
3653 /** 3682 /**
3654 * Mechanism used to determine which version a request is sent to. The traffic 3683 * Mechanism used to determine which version a request is sent to. The traffic
3655 * selection algorithm will be stable for either type until allocations are 3684 * selection algorithm will be stable for either type until allocations are
3656 * changed. 3685 * changed.
3657 * Possible string values are: 3686 * Possible string values are:
3658 * - "UNSPECIFIED" : A UNSPECIFIED. 3687 * - "UNSPECIFIED" : Diversion method unspecified.
3659 * - "COOKIE" : A COOKIE. 3688 * - "COOKIE" : Diversion based on a specially named cookie, "GOOGAPPUID." The
3660 * - "IP" : A IP. 3689 * cookie must be set by the application itself or no diversion will occur.
3661 * - "RANDOM" : A RANDOM. 3690 * - "IP" : Diversion based on applying the modulus operation to a fingerprint
3691 * of the IP address.
3692 * - "RANDOM" : Diversion based on weighted random assignment. An incoming
3693 * request is randomly routed to a version in the traffic split, with
3694 * probability proportional to the version's traffic share.
3662 */ 3695 */
3663 core.String shardBy; 3696 core.String shardBy;
3664 3697
3665 TrafficSplit(); 3698 TrafficSplit();
3666 3699
3667 TrafficSplit.fromJson(core.Map _json) { 3700 TrafficSplit.fromJson(core.Map _json) {
3668 if (_json.containsKey("allocations")) { 3701 if (_json.containsKey("allocations")) {
3669 allocations = _json["allocations"]; 3702 allocations = _json["allocations"];
3670 } 3703 }
3671 if (_json.containsKey("shardBy")) { 3704 if (_json.containsKey("shardBy")) {
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
3738 * handle URLs by executing application code or by serving static files uploaded 3771 * handle URLs by executing application code or by serving static files uploaded
3739 * with the version, such as images, CSS, or JavaScript. 3772 * with the version, such as images, CSS, or JavaScript.
3740 */ 3773 */
3741 class UrlMap { 3774 class UrlMap {
3742 /** Uses API Endpoints to handle requests. */ 3775 /** Uses API Endpoints to handle requests. */
3743 ApiEndpointHandler apiEndpoint; 3776 ApiEndpointHandler apiEndpoint;
3744 /** 3777 /**
3745 * Action to take when users access resources that require authentication. 3778 * Action to take when users access resources that require authentication.
3746 * Defaults to redirect. 3779 * Defaults to redirect.
3747 * Possible string values are: 3780 * Possible string values are:
3748 * - "AUTH_FAIL_ACTION_UNSPECIFIED" : A AUTH_FAIL_ACTION_UNSPECIFIED. 3781 * - "AUTH_FAIL_ACTION_UNSPECIFIED" : Not specified. AUTH_FAIL_ACTION_REDIRECT
3749 * - "AUTH_FAIL_ACTION_REDIRECT" : A AUTH_FAIL_ACTION_REDIRECT. 3782 * is assumed.
3750 * - "AUTH_FAIL_ACTION_UNAUTHORIZED" : A AUTH_FAIL_ACTION_UNAUTHORIZED. 3783 * - "AUTH_FAIL_ACTION_REDIRECT" : Redirects user to "accounts.google.com".
3784 * The user is redirected back to the application URL after signing in or
3785 * creating an account.
3786 * - "AUTH_FAIL_ACTION_UNAUTHORIZED" : Rejects request with a 401 HTTP status
3787 * code and an error message.
3751 */ 3788 */
3752 core.String authFailAction; 3789 core.String authFailAction;
3753 /** 3790 /**
3754 * Level of login required to access this resource. 3791 * Level of login required to access this resource.
3755 * Possible string values are: 3792 * Possible string values are:
3756 * - "LOGIN_UNSPECIFIED" : A LOGIN_UNSPECIFIED. 3793 * - "LOGIN_UNSPECIFIED" : Not specified. LOGIN_OPTIONAL is assumed.
3757 * - "LOGIN_OPTIONAL" : A LOGIN_OPTIONAL. 3794 * - "LOGIN_OPTIONAL" : Does not require that the user is signed in.
3758 * - "LOGIN_ADMIN" : A LOGIN_ADMIN. 3795 * - "LOGIN_ADMIN" : If the user is not signed in, the auth_fail_action is
3759 * - "LOGIN_REQUIRED" : A LOGIN_REQUIRED. 3796 * taken. In addition, if the user is not an administrator for the
3797 * application, they are given an error message regardless of
3798 * auth_fail_action. If the user is an administrator, the handler proceeds.
3799 * - "LOGIN_REQUIRED" : If the user has signed in, the handler proceeds
3800 * normally. Otherwise, the auth_fail_action is taken.
3760 */ 3801 */
3761 core.String login; 3802 core.String login;
3762 /** 3803 /**
3763 * 30x code to use when performing redirects for the secure field. Defaults to 3804 * 30x code to use when performing redirects for the secure field. Defaults to
3764 * 302. 3805 * 302.
3765 * Possible string values are: 3806 * Possible string values are:
3766 * - "REDIRECT_HTTP_RESPONSE_CODE_UNSPECIFIED" : A 3807 * - "REDIRECT_HTTP_RESPONSE_CODE_UNSPECIFIED" : Not specified. 302 is
3767 * REDIRECT_HTTP_RESPONSE_CODE_UNSPECIFIED. 3808 * assumed.
3768 * - "REDIRECT_HTTP_RESPONSE_CODE_301" : A REDIRECT_HTTP_RESPONSE_CODE_301. 3809 * - "REDIRECT_HTTP_RESPONSE_CODE_301" : 301 Moved Permanently code.
3769 * - "REDIRECT_HTTP_RESPONSE_CODE_302" : A REDIRECT_HTTP_RESPONSE_CODE_302. 3810 * - "REDIRECT_HTTP_RESPONSE_CODE_302" : 302 Moved Temporarily code.
3770 * - "REDIRECT_HTTP_RESPONSE_CODE_303" : A REDIRECT_HTTP_RESPONSE_CODE_303. 3811 * - "REDIRECT_HTTP_RESPONSE_CODE_303" : 303 See Other code.
3771 * - "REDIRECT_HTTP_RESPONSE_CODE_307" : A REDIRECT_HTTP_RESPONSE_CODE_307. 3812 * - "REDIRECT_HTTP_RESPONSE_CODE_307" : 307 Temporary Redirect code.
3772 */ 3813 */
3773 core.String redirectHttpResponseCode; 3814 core.String redirectHttpResponseCode;
3774 /** Executes a script to handle the request that matches this URL pattern. */ 3815 /** Executes a script to handle the request that matches this URL pattern. */
3775 ScriptHandler script; 3816 ScriptHandler script;
3776 /** 3817 /**
3777 * Security (HTTPS) enforcement for this URL. 3818 * Security (HTTPS) enforcement for this URL.
3778 * Possible string values are: 3819 * Possible string values are:
3779 * - "SECURE_UNSPECIFIED" : A SECURE_UNSPECIFIED. 3820 * - "SECURE_UNSPECIFIED" : Not specified.
3780 * - "SECURE_DEFAULT" : A SECURE_DEFAULT. 3821 * - "SECURE_DEFAULT" : Both HTTP and HTTPS requests with URLs that match the
3781 * - "SECURE_NEVER" : A SECURE_NEVER. 3822 * handler succeed without redirects. The application can examine the request
3782 * - "SECURE_OPTIONAL" : A SECURE_OPTIONAL. 3823 * to determine which protocol was used, and respond accordingly.
3783 * - "SECURE_ALWAYS" : A SECURE_ALWAYS. 3824 * - "SECURE_NEVER" : Requests for a URL that match this handler that use
3825 * HTTPS are automatically redirected to the HTTP equivalent URL.
3826 * - "SECURE_OPTIONAL" : Both HTTP and HTTPS requests with URLs that match the
3827 * handler succeed without redirects. The application can examine the request
3828 * to determine which protocol was used and respond accordingly.
3829 * - "SECURE_ALWAYS" : Requests for a URL that match this handler that do not
3830 * use HTTPS are automatically redirected to the HTTPS URL with the same path.
3831 * Query parameters are reserved for the redirect.
3784 */ 3832 */
3785 core.String securityLevel; 3833 core.String securityLevel;
3786 /** Returns the contents of a file, such as an image, as the response. */ 3834 /** Returns the contents of a file, such as an image, as the response. */
3787 StaticFilesHandler staticFiles; 3835 StaticFilesHandler staticFiles;
3788 /** 3836 /**
3789 * URL prefix. Uses regular expression syntax, which means regexp special 3837 * URL prefix. Uses regular expression syntax, which means regexp special
3790 * characters must be escaped, but should not contain groupings. All URLs that 3838 * characters must be escaped, but should not contain groupings. All URLs that
3791 * begin with this prefix are handled by this handler, using the portion of 3839 * begin with this prefix are handled by this handler, using the portion of
3792 * the URL after the prefix as part of the file path. 3840 * the URL after the prefix as part of the file path.
3793 */ 3841 */
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
3941 * "default", "latest", and any name with the prefix "ah-". 3989 * "default", "latest", and any name with the prefix "ah-".
3942 */ 3990 */
3943 core.String id; 3991 core.String id;
3944 /** 3992 /**
3945 * Before an application can receive email or XMPP messages, the application 3993 * Before an application can receive email or XMPP messages, the application
3946 * must be configured to enable the service. 3994 * must be configured to enable the service.
3947 */ 3995 */
3948 core.List<core.String> inboundServices; 3996 core.List<core.String> inboundServices;
3949 /** 3997 /**
3950 * Instance class that is used to run this version. Valid values are: 3998 * Instance class that is used to run this version. Valid values are:
3951 * AutomaticScaling: F1, F2, F4, F4_1G ManualScaling or BasicScaling: B1, B2, 3999 * AutomaticScaling: F1, F2, F4, F4_1G
3952 * B4, B8, B4_1GDefaults to F1 for AutomaticScaling and B1 for ManualScaling 4000 * ManualScaling or BasicScaling: B1, B2, B4, B8, B4_1GDefaults to F1 for
3953 * or BasicScaling. 4001 * AutomaticScaling and B1 for ManualScaling or BasicScaling.
3954 */ 4002 */
3955 core.String instanceClass; 4003 core.String instanceClass;
3956 /** 4004 /**
3957 * Configuration for third-party Python runtime libraries that are required by 4005 * Configuration for third-party Python runtime libraries that are required by
3958 * the application.Only returned in GET requests if view=FULL is set. 4006 * the application.Only returned in GET requests if view=FULL is set.
3959 */ 4007 */
3960 core.List<Library> libraries; 4008 core.List<Library> libraries;
3961 /** 4009 /**
3962 * Configures liveness health checking for VM instances. Unhealthy instances 4010 * Configures liveness health checking for VM instances. Unhealthy instances
3963 * are stopped and replaced with new instancesOnly returned in GET requests if 4011 * are stopped and replaced with new instancesOnly returned in GET requests if
(...skipping 26 matching lines...) Expand all
3990 ReadinessCheck readinessCheck; 4038 ReadinessCheck readinessCheck;
3991 /** Machine resources for this version. Only applicable for VM runtimes. */ 4039 /** Machine resources for this version. Only applicable for VM runtimes. */
3992 Resources resources; 4040 Resources resources;
3993 /** Desired runtime. Example: python27. */ 4041 /** Desired runtime. Example: python27. */
3994 core.String runtime; 4042 core.String runtime;
3995 /** 4043 /**
3996 * Current serving status of this version. Only the versions with a SERVING 4044 * Current serving status of this version. Only the versions with a SERVING
3997 * status create instances and can be billed.SERVING_STATUS_UNSPECIFIED is an 4045 * status create instances and can be billed.SERVING_STATUS_UNSPECIFIED is an
3998 * invalid value. Defaults to SERVING. 4046 * invalid value. Defaults to SERVING.
3999 * Possible string values are: 4047 * Possible string values are:
4000 * - "SERVING_STATUS_UNSPECIFIED" : A SERVING_STATUS_UNSPECIFIED. 4048 * - "SERVING_STATUS_UNSPECIFIED" : Not specified.
4001 * - "SERVING" : A SERVING. 4049 * - "SERVING" : Currently serving. Instances are created according to the
4002 * - "STOPPED" : A STOPPED. 4050 * scaling settings of the version.
4051 * - "STOPPED" : Disabled. No instances will be created and the scaling
4052 * settings are ignored until the state of the version changes to SERVING.
4003 */ 4053 */
4004 core.String servingStatus; 4054 core.String servingStatus;
4005 /** Whether multiple requests can be dispatched to this version at once. */ 4055 /** Whether multiple requests can be dispatched to this version at once. */
4006 core.bool threadsafe; 4056 core.bool threadsafe;
4007 /** 4057 /**
4008 * Serving URL for this version. Example: 4058 * Serving URL for this version. Example:
4009 * "https://myversion-dot-myservice-dot-myapp.appspot.com"@OutputOnly 4059 * "https://myversion-dot-myservice-dot-myapp.appspot.com"@OutputOnly
4010 */ 4060 */
4011 core.String versionUrl; 4061 core.String versionUrl;
4012 /** Whether to deploy this version in a container on a virtual machine. */ 4062 /** Whether to deploy this version in a container on a virtual machine. */
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
4252 /** The zip file information for a zip deployment. */ 4302 /** The zip file information for a zip deployment. */
4253 class ZipInfo { 4303 class ZipInfo {
4254 /** 4304 /**
4255 * An estimate of the number of files in a zip for a zip deployment. If set, 4305 * An estimate of the number of files in a zip for a zip deployment. If set,
4256 * must be greater than or equal to the actual number of files. Used for 4306 * must be greater than or equal to the actual number of files. Used for
4257 * optimizing performance; if not provided, deployment may be slow. 4307 * optimizing performance; if not provided, deployment may be slow.
4258 */ 4308 */
4259 core.int filesCount; 4309 core.int filesCount;
4260 /** 4310 /**
4261 * URL of the zip file to deploy from. Must be a URL to a resource in Google 4311 * URL of the zip file to deploy from. Must be a URL to a resource in Google
4262 * Cloud Storage in the form 'http(s)://storage.googleapis.com//'. 4312 * Cloud Storage in the form
4313 * 'http(s)://storage.googleapis.com/<bucket>/<object>'.
4263 */ 4314 */
4264 core.String sourceUrl; 4315 core.String sourceUrl;
4265 4316
4266 ZipInfo(); 4317 ZipInfo();
4267 4318
4268 ZipInfo.fromJson(core.Map _json) { 4319 ZipInfo.fromJson(core.Map _json) {
4269 if (_json.containsKey("filesCount")) { 4320 if (_json.containsKey("filesCount")) {
4270 filesCount = _json["filesCount"]; 4321 filesCount = _json["filesCount"];
4271 } 4322 }
4272 if (_json.containsKey("sourceUrl")) { 4323 if (_json.containsKey("sourceUrl")) {
4273 sourceUrl = _json["sourceUrl"]; 4324 sourceUrl = _json["sourceUrl"];
4274 } 4325 }
4275 } 4326 }
4276 4327
4277 core.Map toJson() { 4328 core.Map toJson() {
4278 var _json = new core.Map(); 4329 var _json = new core.Map();
4279 if (filesCount != null) { 4330 if (filesCount != null) {
4280 _json["filesCount"] = filesCount; 4331 _json["filesCount"] = filesCount;
4281 } 4332 }
4282 if (sourceUrl != null) { 4333 if (sourceUrl != null) {
4283 _json["sourceUrl"] = sourceUrl; 4334 _json["sourceUrl"] = sourceUrl;
4284 } 4335 }
4285 return _json; 4336 return _json;
4286 } 4337 }
4287 } 4338 }
OLDNEW
« no previous file with comments | « generated/googleapis/lib/androidenterprise/v1.dart ('k') | generated/googleapis/lib/bigquery/v2.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698