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

Side by Side Diff: generated/googleapis_beta/lib/appengine/v1beta5.dart

Issue 2226653002: Api-roll 40: 2016-08-08 (Closed) Base URL: git@github.com:dart-lang/googleapis.git@master
Patch Set: Addressed review comments Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // This is a generated file (see the discoveryapis_generator project). 1 // This is a generated file (see the discoveryapis_generator project).
2 2
3 library googleapis_beta.appengine.v1beta5; 3 library googleapis_beta.appengine.v1beta5;
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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 uploadMedia: _uploadMedia, 80 uploadMedia: _uploadMedia,
81 downloadOptions: _downloadOptions); 81 downloadOptions: _downloadOptions);
82 return _response.then((data) => new Operation.fromJson(data)); 82 return _response.then((data) => new Operation.fromJson(data));
83 } 83 }
84 84
85 /** 85 /**
86 * Gets information about an application. 86 * Gets information about an application.
87 * 87 *
88 * Request parameters: 88 * Request parameters:
89 * 89 *
90 * [appsId] - Part of `name`. Name of the application to get. For example: 90 * [appsId] - Part of `name`. Name of the application to get. Example:
91 * "apps/myapp". 91 * `apps/myapp`.
92 * 92 *
93 * [ensureResourcesExist] - Certain resources associated with an application 93 * [ensureResourcesExist] - Certain resources associated with an application
94 * are created on-demand. Controls whether these resources should be created 94 * are created on-demand. Controls whether these resources should be created
95 * when performing the `GET` operation. If specified and any resources could 95 * when performing the `GET` operation. If specified and any resources could
96 * not be created, the request will fail with an error code. Additionally, 96 * not be created, the request will fail with an error code. Additionally,
97 * this parameter can cause the request to take longer to complete. Note: This 97 * this parameter can cause the request to take longer to complete. Note: This
98 * parameter will be deprecated in a future version of the API. 98 * parameter will be deprecated in a future version of the API.
99 * 99 *
100 * Completes with a [Application]. 100 * Completes with a [Application].
101 * 101 *
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
357 357
358 class AppsServicesResourceApi { 358 class AppsServicesResourceApi {
359 final commons.ApiRequester _requester; 359 final commons.ApiRequester _requester;
360 360
361 AppsServicesVersionsResourceApi get versions => new AppsServicesVersionsResour ceApi(_requester); 361 AppsServicesVersionsResourceApi get versions => new AppsServicesVersionsResour ceApi(_requester);
362 362
363 AppsServicesResourceApi(commons.ApiRequester client) : 363 AppsServicesResourceApi(commons.ApiRequester client) :
364 _requester = client; 364 _requester = client;
365 365
366 /** 366 /**
367 * Deletes a service and all enclosed versions. 367 * Deletes the specified service and all enclosed versions.
368 * 368 *
369 * Request parameters: 369 * Request parameters:
370 * 370 *
371 * [appsId] - Part of `name`. Name of the resource requested. For example: 371 * [appsId] - Part of `name`. Name of the resource requested. Example:
372 * "apps/myapp/services/default". 372 * `apps/myapp/services/default`.
373 * 373 *
374 * [servicesId] - Part of `name`. See documentation of `appsId`. 374 * [servicesId] - Part of `name`. See documentation of `appsId`.
375 * 375 *
376 * Completes with a [Operation]. 376 * Completes with a [Operation].
377 * 377 *
378 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 378 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
379 * error. 379 * error.
380 * 380 *
381 * If the used [http.Client] completes with an error when making a REST call, 381 * If the used [http.Client] completes with an error when making a REST call,
382 * this method will complete with the same error. 382 * this method will complete with the same error.
(...skipping 19 matching lines...) Expand all
402 "DELETE", 402 "DELETE",
403 body: _body, 403 body: _body,
404 queryParams: _queryParams, 404 queryParams: _queryParams,
405 uploadOptions: _uploadOptions, 405 uploadOptions: _uploadOptions,
406 uploadMedia: _uploadMedia, 406 uploadMedia: _uploadMedia,
407 downloadOptions: _downloadOptions); 407 downloadOptions: _downloadOptions);
408 return _response.then((data) => new Operation.fromJson(data)); 408 return _response.then((data) => new Operation.fromJson(data));
409 } 409 }
410 410
411 /** 411 /**
412 * Gets the current configuration of the service. 412 * Gets the current configuration of the specified service.
413 * 413 *
414 * Request parameters: 414 * Request parameters:
415 * 415 *
416 * [appsId] - Part of `name`. Name of the resource requested. For example: 416 * [appsId] - Part of `name`. Name of the resource requested. Example:
417 * "apps/myapp/services/default". 417 * `apps/myapp/services/default`.
418 * 418 *
419 * [servicesId] - Part of `name`. See documentation of `appsId`. 419 * [servicesId] - Part of `name`. See documentation of `appsId`.
420 * 420 *
421 * Completes with a [Service]. 421 * Completes with a [Service].
422 * 422 *
423 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 423 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
424 * error. 424 * error.
425 * 425 *
426 * If the used [http.Client] completes with an error when making a REST call, 426 * If the used [http.Client] completes with an error when making a REST call,
427 * this method will complete with the same error. 427 * this method will complete with the same error.
(...skipping 23 matching lines...) Expand all
451 uploadMedia: _uploadMedia, 451 uploadMedia: _uploadMedia,
452 downloadOptions: _downloadOptions); 452 downloadOptions: _downloadOptions);
453 return _response.then((data) => new Service.fromJson(data)); 453 return _response.then((data) => new Service.fromJson(data));
454 } 454 }
455 455
456 /** 456 /**
457 * Lists all the services in the application. 457 * Lists all the services in the application.
458 * 458 *
459 * Request parameters: 459 * Request parameters:
460 * 460 *
461 * [appsId] - Part of `name`. Name of the resource requested. For example: 461 * [appsId] - Part of `name`. Name of the resource requested. Example:
462 * "apps/myapp". 462 * `apps/myapp`.
463 * 463 *
464 * [pageSize] - Maximum results to return per page. 464 * [pageSize] - Maximum results to return per page.
465 * 465 *
466 * [pageToken] - Continuation token for fetching the next page of results. 466 * [pageToken] - Continuation token for fetching the next page of results.
467 * 467 *
468 * Completes with a [ListServicesResponse]. 468 * Completes with a [ListServicesResponse].
469 * 469 *
470 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 470 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
471 * error. 471 * error.
472 * 472 *
(...skipping 30 matching lines...) Expand all
503 return _response.then((data) => new ListServicesResponse.fromJson(data)); 503 return _response.then((data) => new ListServicesResponse.fromJson(data));
504 } 504 }
505 505
506 /** 506 /**
507 * Updates the configuration of the specified service. 507 * Updates the configuration of the specified service.
508 * 508 *
509 * [request] - The metadata request object. 509 * [request] - The metadata request object.
510 * 510 *
511 * Request parameters: 511 * Request parameters:
512 * 512 *
513 * [appsId] - Part of `name`. Name of the resource to update. For example: 513 * [appsId] - Part of `name`. Name of the resource to update. Example:
514 * "apps/myapp/services/default". 514 * `apps/myapp/services/default`.
515 * 515 *
516 * [servicesId] - Part of `name`. See documentation of `appsId`. 516 * [servicesId] - Part of `name`. See documentation of `appsId`.
517 * 517 *
518 * [mask] - Standard field mask for the set of fields to be updated. 518 * [mask] - Standard field mask for the set of fields to be updated.
519 * 519 *
520 * [migrateTraffic] - Whether to use Traffic Migration to shift traffic 520 * [migrateTraffic] - Set to `true` to gradually shift traffic from one
521 * gradually. Traffic can only be migrated from a single version to another 521 * version to another single version. By default, traffic is shifted
522 * single version. 522 * immediately. For gradual traffic migration, the target version must be
523 * located within instances that are configured for both [warmup
524 * requests](https://cloud.google.com/appengine/docs/admin-api/reference/rest/ v1beta5/apps.services.versions#inboundservicetype)
525 * and [automatic
526 * scaling](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v 1beta5/apps.services.versions#automaticscaling).
527 * You must specify the
528 * [`shardBy`](https://cloud.google.com/appengine/docs/admin-api/reference/res t/v1beta5/apps.services#shardby)
529 * field in the Service resource. Gradual traffic migration is not supported
530 * in the App Engine flexible environment. For examples, see [Migrating and
531 * Splitting
532 * Traffic](https://cloud.google.com/appengine/docs/admin-api/migrating-splitt ing-traffic).
523 * 533 *
524 * Completes with a [Operation]. 534 * Completes with a [Operation].
525 * 535 *
526 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 536 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
527 * error. 537 * error.
528 * 538 *
529 * If the used [http.Client] completes with an error when making a REST call, 539 * If the used [http.Client] completes with an error when making a REST call,
530 * this method will complete with the same error. 540 * this method will complete with the same error.
531 */ 541 */
532 async.Future<Operation> patch(Service request, core.String appsId, core.String servicesId, {core.String mask, core.bool migrateTraffic}) { 542 async.Future<Operation> patch(Service request, core.String appsId, core.String servicesId, {core.String mask, core.bool migrateTraffic}) {
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
570 580
571 class AppsServicesVersionsResourceApi { 581 class AppsServicesVersionsResourceApi {
572 final commons.ApiRequester _requester; 582 final commons.ApiRequester _requester;
573 583
574 AppsServicesVersionsInstancesResourceApi get instances => new AppsServicesVers ionsInstancesResourceApi(_requester); 584 AppsServicesVersionsInstancesResourceApi get instances => new AppsServicesVers ionsInstancesResourceApi(_requester);
575 585
576 AppsServicesVersionsResourceApi(commons.ApiRequester client) : 586 AppsServicesVersionsResourceApi(commons.ApiRequester client) :
577 _requester = client; 587 _requester = client;
578 588
579 /** 589 /**
580 * Deploys new code and resource files to a version. 590 * Deploys new code and resource files to a new version.
581 * 591 *
582 * [request] - The metadata request object. 592 * [request] - The metadata request object.
583 * 593 *
584 * Request parameters: 594 * Request parameters:
585 * 595 *
586 * [appsId] - Part of `name`. Name of the resource to update. For example: 596 * [appsId] - Part of `name`. Name of the resource to update. For example:
587 * "apps/myapp/services/default". 597 * "apps/myapp/services/default".
588 * 598 *
589 * [servicesId] - Part of `name`. See documentation of `appsId`. 599 * [servicesId] - Part of `name`. See documentation of `appsId`.
590 * 600 *
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
624 uploadMedia: _uploadMedia, 634 uploadMedia: _uploadMedia,
625 downloadOptions: _downloadOptions); 635 downloadOptions: _downloadOptions);
626 return _response.then((data) => new Operation.fromJson(data)); 636 return _response.then((data) => new Operation.fromJson(data));
627 } 637 }
628 638
629 /** 639 /**
630 * Deletes an existing version. 640 * Deletes an existing version.
631 * 641 *
632 * Request parameters: 642 * Request parameters:
633 * 643 *
634 * [appsId] - Part of `name`. Name of the resource requested. For example: 644 * [appsId] - Part of `name`. Name of the resource requested. Example:
635 * "apps/myapp/services/default/versions/v1". 645 * `apps/myapp/services/default/versions/v1`.
636 * 646 *
637 * [servicesId] - Part of `name`. See documentation of `appsId`. 647 * [servicesId] - Part of `name`. See documentation of `appsId`.
638 * 648 *
639 * [versionsId] - Part of `name`. See documentation of `appsId`. 649 * [versionsId] - Part of `name`. See documentation of `appsId`.
640 * 650 *
641 * Completes with a [Operation]. 651 * Completes with a [Operation].
642 * 652 *
643 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 653 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
644 * error. 654 * error.
645 * 655 *
(...skipping 24 matching lines...) Expand all
670 "DELETE", 680 "DELETE",
671 body: _body, 681 body: _body,
672 queryParams: _queryParams, 682 queryParams: _queryParams,
673 uploadOptions: _uploadOptions, 683 uploadOptions: _uploadOptions,
674 uploadMedia: _uploadMedia, 684 uploadMedia: _uploadMedia,
675 downloadOptions: _downloadOptions); 685 downloadOptions: _downloadOptions);
676 return _response.then((data) => new Operation.fromJson(data)); 686 return _response.then((data) => new Operation.fromJson(data));
677 } 687 }
678 688
679 /** 689 /**
680 * Gets application deployment information. 690 * Gets the specified Version resource. By default, only a `BASIC_VIEW` will
691 * be returned. Specify the `FULL_VIEW` parameter to get the full resource.
681 * 692 *
682 * Request parameters: 693 * Request parameters:
683 * 694 *
684 * [appsId] - Part of `name`. Name of the resource requested. For example: 695 * [appsId] - Part of `name`. Name of the resource requested. Example:
685 * "apps/myapp/services/default/versions/v1". 696 * `apps/myapp/services/default/versions/v1`.
686 * 697 *
687 * [servicesId] - Part of `name`. See documentation of `appsId`. 698 * [servicesId] - Part of `name`. See documentation of `appsId`.
688 * 699 *
689 * [versionsId] - Part of `name`. See documentation of `appsId`. 700 * [versionsId] - Part of `name`. See documentation of `appsId`.
690 * 701 *
691 * [view] - Controls the set of fields returned in the `Get` response. 702 * [view] - Controls the set of fields returned in the `Get` response.
692 * Possible string values are: 703 * Possible string values are:
693 * - "BASIC" : A BASIC. 704 * - "BASIC" : A BASIC.
694 * - "FULL" : A FULL. 705 * - "FULL" : A FULL.
695 * 706 *
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
732 uploadMedia: _uploadMedia, 743 uploadMedia: _uploadMedia,
733 downloadOptions: _downloadOptions); 744 downloadOptions: _downloadOptions);
734 return _response.then((data) => new Version.fromJson(data)); 745 return _response.then((data) => new Version.fromJson(data));
735 } 746 }
736 747
737 /** 748 /**
738 * Lists the versions of a service. 749 * Lists the versions of a service.
739 * 750 *
740 * Request parameters: 751 * Request parameters:
741 * 752 *
742 * [appsId] - Part of `name`. Name of the resource requested. For example: 753 * [appsId] - Part of `name`. Name of the resource requested. Example:
743 * "apps/myapp/services/default". 754 * `apps/myapp/services/default`.
744 * 755 *
745 * [servicesId] - Part of `name`. See documentation of `appsId`. 756 * [servicesId] - Part of `name`. See documentation of `appsId`.
746 * 757 *
747 * [view] - Controls the set of fields returned in the `List` response. 758 * [view] - Controls the set of fields returned in the `List` response.
748 * Possible string values are: 759 * Possible string values are:
749 * - "BASIC" : A BASIC. 760 * - "BASIC" : A BASIC.
750 * - "FULL" : A FULL. 761 * - "FULL" : A FULL.
751 * 762 *
752 * [pageSize] - Maximum results to return per page. 763 * [pageSize] - Maximum results to return per page.
753 * 764 *
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
794 uploadOptions: _uploadOptions, 805 uploadOptions: _uploadOptions,
795 uploadMedia: _uploadMedia, 806 uploadMedia: _uploadMedia,
796 downloadOptions: _downloadOptions); 807 downloadOptions: _downloadOptions);
797 return _response.then((data) => new ListVersionsResponse.fromJson(data)); 808 return _response.then((data) => new ListVersionsResponse.fromJson(data));
798 } 809 }
799 810
800 /** 811 /**
801 * Updates the specified Version resource. You can specify the following 812 * Updates the specified Version resource. You can specify the following
802 * fields depending on the App Engine environment and type of scaling that the 813 * fields depending on the App Engine environment and type of scaling that the
803 * version resource uses: * 814 * version resource uses: *
804 * [`serving_status`](/appengine/docs/admin-api/reference/rest/v1beta5/apps.se rvices.versions#Version.FIELDS.serving_status): 815 * [`serving_status`](https://cloud.google.com/appengine/docs/admin-api/refere nce/rest/v1beta5/apps.services.versions#Version.FIELDS.serving_status):
805 * For Version resources that use basic scaling, manual scaling, or run in the 816 * For Version resources that use basic scaling, manual scaling, or run in the
806 * App Engine flexible environment. * 817 * App Engine flexible environment. *
807 * [`instance_class`](/appengine/docs/admin-api/reference/rest/v1beta5/apps.se rvices.versions#Version.FIELDS.instance_class): 818 * [`instance_class`](https://cloud.google.com/appengine/docs/admin-api/refere nce/rest/v1beta5/apps.services.versions#Version.FIELDS.instance_class):
808 * For Version resources that run in the App Engine standard environment. * 819 * For Version resources that run in the App Engine standard environment. *
809 * [`automatic_scaling.min_idle_instances`](/appengine/docs/admin-api/referenc e/rest/v1beta5/apps.services.versions#Version.FIELDS.automatic_scaling): 820 * [`automatic_scaling.min_idle_instances`](https://cloud.google.com/appengine /docs/admin-api/reference/rest/v1beta5/apps.services.versions#Version.FIELDS.aut omatic_scaling):
810 * For Version resources that use automatic scaling and run in the App Engine 821 * For Version resources that use automatic scaling and run in the App Engine
811 * standard environment. * 822 * standard environment. *
812 * [`automatic_scaling.max_idle_instances`](/appengine/docs/admin-api/referenc e/rest/v1beta5/apps.services.versions#Version.FIELDS.automatic_scaling): 823 * [`automatic_scaling.max_idle_instances`](https://cloud.google.com/appengine /docs/admin-api/reference/rest/v1beta5/apps.services.versions#Version.FIELDS.aut omatic_scaling):
813 * For Version resources that use automatic scaling and run in the App Engine 824 * For Version resources that use automatic scaling and run in the App Engine
814 * standard environment. 825 * standard environment.
815 * 826 *
816 * [request] - The metadata request object. 827 * [request] - The metadata request object.
817 * 828 *
818 * Request parameters: 829 * Request parameters:
819 * 830 *
820 * [appsId] - Part of `name`. Name of the resource to update. For example: 831 * [appsId] - Part of `name`. Name of the resource to update. Example:
821 * "apps/myapp/services/default/versions/1". 832 * `apps/myapp/services/default/versions/1`.
822 * 833 *
823 * [servicesId] - Part of `name`. See documentation of `appsId`. 834 * [servicesId] - Part of `name`. See documentation of `appsId`.
824 * 835 *
825 * [versionsId] - Part of `name`. See documentation of `appsId`. 836 * [versionsId] - Part of `name`. See documentation of `appsId`.
826 * 837 *
827 * [mask] - Standard field mask for the set of fields to be updated. 838 * [mask] - Standard field mask for the set of fields to be updated.
828 * 839 *
829 * Completes with a [Operation]. 840 * Completes with a [Operation].
830 * 841 *
831 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 842 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
873 } 884 }
874 885
875 886
876 class AppsServicesVersionsInstancesResourceApi { 887 class AppsServicesVersionsInstancesResourceApi {
877 final commons.ApiRequester _requester; 888 final commons.ApiRequester _requester;
878 889
879 AppsServicesVersionsInstancesResourceApi(commons.ApiRequester client) : 890 AppsServicesVersionsInstancesResourceApi(commons.ApiRequester client) :
880 _requester = client; 891 _requester = client;
881 892
882 /** 893 /**
883 * Enable debugging of this VM instance. This call allows you to SSH to the 894 * Enables debugging on a VM instance. This allows you to use the SSH command
884 * VM. While the VM is in debug mode, it continues to serve live traffic. 895 * to connect to the virtual machine where the instance lives. While in "debug
885 * After you're done debugging an instance, delete the instance; the system 896 * mode", the instance continues to serve live traffic. You should delete the
886 * creates a new instance when needed. You can't debug a non-VM instance. 897 * instance when you are done debugging and then allow the system to take over
898 * and determine if another instance should be started. Only applicable for
899 * instances in App Engine flexible environment.
887 * 900 *
888 * [request] - The metadata request object. 901 * [request] - The metadata request object.
889 * 902 *
890 * Request parameters: 903 * Request parameters:
891 * 904 *
892 * [appsId] - Part of `name`. Name of the resource requested. For example: 905 * [appsId] - Part of `name`. Name of the resource requested. Example:
893 * "apps/myapp/services/default/versions/v1/instances/instance-1". 906 * `apps/myapp/services/default/versions/v1/instances/instance-1`.
894 * 907 *
895 * [servicesId] - Part of `name`. See documentation of `appsId`. 908 * [servicesId] - Part of `name`. See documentation of `appsId`.
896 * 909 *
897 * [versionsId] - Part of `name`. See documentation of `appsId`. 910 * [versionsId] - Part of `name`. See documentation of `appsId`.
898 * 911 *
899 * [instancesId] - Part of `name`. See documentation of `appsId`. 912 * [instancesId] - Part of `name`. See documentation of `appsId`.
900 * 913 *
901 * Completes with a [Operation]. 914 * Completes with a [Operation].
902 * 915 *
903 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 916 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
995 uploadMedia: _uploadMedia, 1008 uploadMedia: _uploadMedia,
996 downloadOptions: _downloadOptions); 1009 downloadOptions: _downloadOptions);
997 return _response.then((data) => new Operation.fromJson(data)); 1010 return _response.then((data) => new Operation.fromJson(data));
998 } 1011 }
999 1012
1000 /** 1013 /**
1001 * Gets instance information. 1014 * Gets instance information.
1002 * 1015 *
1003 * Request parameters: 1016 * Request parameters:
1004 * 1017 *
1005 * [appsId] - Part of `name`. Name of the resource requested. For example: 1018 * [appsId] - Part of `name`. Name of the resource requested. Example:
1006 * "apps/myapp/services/default/versions/v1/instances/instance-1". 1019 * `apps/myapp/services/default/versions/v1/instances/instance-1`.
1007 * 1020 *
1008 * [servicesId] - Part of `name`. See documentation of `appsId`. 1021 * [servicesId] - Part of `name`. See documentation of `appsId`.
1009 * 1022 *
1010 * [versionsId] - Part of `name`. See documentation of `appsId`. 1023 * [versionsId] - Part of `name`. See documentation of `appsId`.
1011 * 1024 *
1012 * [instancesId] - Part of `name`. See documentation of `appsId`. 1025 * [instancesId] - Part of `name`. See documentation of `appsId`.
1013 * 1026 *
1014 * Completes with a [Instance]. 1027 * Completes with a [Instance].
1015 * 1028 *
1016 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1029 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
1050 uploadMedia: _uploadMedia, 1063 uploadMedia: _uploadMedia,
1051 downloadOptions: _downloadOptions); 1064 downloadOptions: _downloadOptions);
1052 return _response.then((data) => new Instance.fromJson(data)); 1065 return _response.then((data) => new Instance.fromJson(data));
1053 } 1066 }
1054 1067
1055 /** 1068 /**
1056 * Lists the instances of a version. 1069 * Lists the instances of a version.
1057 * 1070 *
1058 * Request parameters: 1071 * Request parameters:
1059 * 1072 *
1060 * [appsId] - Part of `name`. Name of the resource requested. For example: 1073 * [appsId] - Part of `name`. Name of the resource requested. Example:
1061 * "apps/myapp/services/default/versions/v1". 1074 * `apps/myapp/services/default/versions/v1`.
1062 * 1075 *
1063 * [servicesId] - Part of `name`. See documentation of `appsId`. 1076 * [servicesId] - Part of `name`. See documentation of `appsId`.
1064 * 1077 *
1065 * [versionsId] - Part of `name`. See documentation of `appsId`. 1078 * [versionsId] - Part of `name`. See documentation of `appsId`.
1066 * 1079 *
1067 * [pageSize] - Maximum results to return per page. 1080 * [pageSize] - Maximum results to return per page.
1068 * 1081 *
1069 * [pageToken] - Continuation token for fetching the next page of results. 1082 * [pageToken] - Continuation token for fetching the next page of results.
1070 * 1083 *
1071 * Completes with a [ListInstancesResponse]. 1084 * Completes with a [ListInstancesResponse].
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
1109 uploadOptions: _uploadOptions, 1122 uploadOptions: _uploadOptions,
1110 uploadMedia: _uploadMedia, 1123 uploadMedia: _uploadMedia,
1111 downloadOptions: _downloadOptions); 1124 downloadOptions: _downloadOptions);
1112 return _response.then((data) => new ListInstancesResponse.fromJson(data)); 1125 return _response.then((data) => new ListInstancesResponse.fromJson(data));
1113 } 1126 }
1114 1127
1115 } 1128 }
1116 1129
1117 1130
1118 1131
1119 /** API Serving configuration for Cloud Endpoints. */ 1132 /**
1133 * [Google Cloud
1134 * Endpoints](https://cloud.google.com/appengine/docs/python/endpoints/)
1135 * configuration for API handlers.
1136 */
1120 class ApiConfigHandler { 1137 class ApiConfigHandler {
1121 /** 1138 /**
1122 * For users not logged in, how to handle access to resources with required 1139 * Action to take when users access resources that require authentication.
1123 * login. Defaults to "redirect". 1140 * Defaults to `redirect`.
1124 * Possible string values are: 1141 * Possible string values are:
1125 * - "AUTH_FAIL_ACTION_UNSPECIFIED" : A AUTH_FAIL_ACTION_UNSPECIFIED. 1142 * - "AUTH_FAIL_ACTION_UNSPECIFIED" : A AUTH_FAIL_ACTION_UNSPECIFIED.
1126 * - "AUTH_FAIL_ACTION_REDIRECT" : A AUTH_FAIL_ACTION_REDIRECT. 1143 * - "AUTH_FAIL_ACTION_REDIRECT" : A AUTH_FAIL_ACTION_REDIRECT.
1127 * - "AUTH_FAIL_ACTION_UNAUTHORIZED" : A AUTH_FAIL_ACTION_UNAUTHORIZED. 1144 * - "AUTH_FAIL_ACTION_UNAUTHORIZED" : A AUTH_FAIL_ACTION_UNAUTHORIZED.
1128 */ 1145 */
1129 core.String authFailAction; 1146 core.String authFailAction;
1130 /** 1147 /**
1131 * What level of login is required to access this resource. Default is 1148 * Level of login required to access this resource. Defaults to `optional`.
1132 * "optional".
1133 * Possible string values are: 1149 * Possible string values are:
1134 * - "LOGIN_UNSPECIFIED" : A LOGIN_UNSPECIFIED. 1150 * - "LOGIN_UNSPECIFIED" : A LOGIN_UNSPECIFIED.
1135 * - "LOGIN_OPTIONAL" : A LOGIN_OPTIONAL. 1151 * - "LOGIN_OPTIONAL" : A LOGIN_OPTIONAL.
1136 * - "LOGIN_ADMIN" : A LOGIN_ADMIN. 1152 * - "LOGIN_ADMIN" : A LOGIN_ADMIN.
1137 * - "LOGIN_REQUIRED" : A LOGIN_REQUIRED. 1153 * - "LOGIN_REQUIRED" : A LOGIN_REQUIRED.
1138 */ 1154 */
1139 core.String login; 1155 core.String login;
1140 /** Specifies the path to the script from the application root directory. */ 1156 /** Path to the script from the application root directory. */
1141 core.String script; 1157 core.String script;
1142 /** 1158 /**
1143 * Configures whether security (HTTPS) should be enforced for this URL. 1159 * Security (HTTPS) enforcement for this URL.
1144 * Possible string values are: 1160 * Possible string values are:
1145 * - "SECURE_UNSPECIFIED" : A SECURE_UNSPECIFIED. 1161 * - "SECURE_UNSPECIFIED" : A SECURE_UNSPECIFIED.
1146 * - "SECURE_DEFAULT" : A SECURE_DEFAULT. 1162 * - "SECURE_DEFAULT" : A SECURE_DEFAULT.
1147 * - "SECURE_NEVER" : A SECURE_NEVER. 1163 * - "SECURE_NEVER" : A SECURE_NEVER.
1148 * - "SECURE_OPTIONAL" : A SECURE_OPTIONAL. 1164 * - "SECURE_OPTIONAL" : A SECURE_OPTIONAL.
1149 * - "SECURE_ALWAYS" : A SECURE_ALWAYS. 1165 * - "SECURE_ALWAYS" : A SECURE_ALWAYS.
1150 */ 1166 */
1151 core.String securityLevel; 1167 core.String securityLevel;
1152 /** URL to serve the endpoint at. */ 1168 /** URL to serve the endpoint at. */
1153 core.String url; 1169 core.String url;
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
1186 if (securityLevel != null) { 1202 if (securityLevel != null) {
1187 _json["securityLevel"] = securityLevel; 1203 _json["securityLevel"] = securityLevel;
1188 } 1204 }
1189 if (url != null) { 1205 if (url != null) {
1190 _json["url"] = url; 1206 _json["url"] = url;
1191 } 1207 }
1192 return _json; 1208 return _json;
1193 } 1209 }
1194 } 1210 }
1195 1211
1196 /** Use Google Cloud Endpoints to handle requests. */ 1212 /** Uses Google Cloud Endpoints to handle requests. */
1197 class ApiEndpointHandler { 1213 class ApiEndpointHandler {
1198 /** Specifies the path to the script from the application root directory. */ 1214 /** Path to the script from the application root directory. */
1199 core.String scriptPath; 1215 core.String scriptPath;
1200 1216
1201 ApiEndpointHandler(); 1217 ApiEndpointHandler();
1202 1218
1203 ApiEndpointHandler.fromJson(core.Map _json) { 1219 ApiEndpointHandler.fromJson(core.Map _json) {
1204 if (_json.containsKey("scriptPath")) { 1220 if (_json.containsKey("scriptPath")) {
1205 scriptPath = _json["scriptPath"]; 1221 scriptPath = _json["scriptPath"];
1206 } 1222 }
1207 } 1223 }
1208 1224
1209 core.Map toJson() { 1225 core.Map toJson() {
1210 var _json = new core.Map(); 1226 var _json = new core.Map();
1211 if (scriptPath != null) { 1227 if (scriptPath != null) {
1212 _json["scriptPath"] = scriptPath; 1228 _json["scriptPath"] = scriptPath;
1213 } 1229 }
1214 return _json; 1230 return _json;
1215 } 1231 }
1216 } 1232 }
1217 1233
1218 /** 1234 /**
1219 * An Application contains the top-level configuration of an App Engine 1235 * An Application resource contains the top-level configuration of an App Engine
1220 * application. 1236 * application.
1221 */ 1237 */
1222 class Application { 1238 class Application {
1223 /** 1239 /**
1224 * If set, only users from the specified Google Apps authentication domain may 1240 * Google Apps authentication domain that controls which users can access this
1225 * access the application. If not set, any Google Account may access the 1241 * application. Defaults to open access for any Google Account.
1226 * application.
1227 */ 1242 */
1228 core.String authDomain; 1243 core.String authDomain;
1229 /** 1244 /**
1230 * A Google Cloud Storage bucket which can be used for storing files 1245 * A Google Cloud Storage bucket that can be used for storing files associated
1231 * associated with an application. This bucket is associated with the 1246 * with this application. This bucket is associated with the application and
1232 * application and can be used by the gcloud deployment commands. @OutputOnly 1247 * can be used by the gcloud deployment commands. @OutputOnly
1233 */ 1248 */
1234 core.String codeBucket; 1249 core.String codeBucket;
1235 /** 1250 /**
1236 * A Google Cloud Storage bucket which can be used by the application to store 1251 * A Google Cloud Storage bucket that can be used by the application to store
1237 * content. @OutputOnly 1252 * content. @OutputOnly
1238 */ 1253 */
1239 core.String defaultBucket; 1254 core.String defaultBucket;
1240 /** 1255 /** Cookie expiration policy for this application. @OutputOnly */
1241 * Determines the cookie expiration policy for the application. @OutputOnly
1242 */
1243 core.String defaultCookieExpiration; 1256 core.String defaultCookieExpiration;
1244 /** 1257 /**
1245 * The hostname used to reach the application, as resolved by App Engine. 1258 * Hostname used to reach the application, as resolved by App Engine.
1246 * @OutputOnly 1259 * @OutputOnly
1247 */ 1260 */
1248 core.String defaultHostname; 1261 core.String defaultHostname;
1249 /** 1262 /**
1250 * HTTP path dispatch rules for requests to the app that do not explicitly 1263 * HTTP path dispatch rules for requests to the application that do not
1251 * target a service or version. The rules are order-dependent. @OutputOnly 1264 * explicitly target a service or version. Rules are order-dependent.
1265 * @OutputOnly
1252 */ 1266 */
1253 core.List<UrlDispatchRule> dispatchRules; 1267 core.List<UrlDispatchRule> dispatchRules;
1254 /** 1268 /**
1255 * The identifier of the Application resource. This identifier is equivalent 1269 * Identifier of the Application resource. This identifier is equivalent to
1256 * to the project ID of the Google Cloud Platform project where you want to 1270 * the project ID of the Google Cloud Platform project where you want to
1257 * deploy your application. Example: "myapp". 1271 * deploy your application. Example: `myapp`.
1258 */ 1272 */
1259 core.String id; 1273 core.String id;
1260 /** 1274 /**
1261 * The location from which the application will be run. Application instances 1275 * Location from which this application will be run. Application instances
1262 * will run out of data centers in the chosen location and all of the 1276 * will run out of data centers in the chosen location, which is also where
1263 * application's End User Content will be stored at rest. The default is 1277 * all of the application's end user content is stored. Defaults to
1264 * "us-central". Choices are: "us-central" - Central US "europe-west" - 1278 * `us-central`. Options are: `us-central` - Central US `europe-west` -
1265 * Western Europe "us-east1" - Eastern US 1279 * Western Europe `us-east1` - Eastern US
1266 */ 1280 */
1267 core.String location; 1281 core.String location;
1268 /** 1282 /**
1269 * The full path to the Application resource in the API. Example: 1283 * Full path to the Application resource in the API. Example: `apps/myapp`.
1270 * "apps/myapp". @OutputOnly 1284 * @OutputOnly
1271 */ 1285 */
1272 core.String name; 1286 core.String name;
1273 1287
1274 Application(); 1288 Application();
1275 1289
1276 Application.fromJson(core.Map _json) { 1290 Application.fromJson(core.Map _json) {
1277 if (_json.containsKey("authDomain")) { 1291 if (_json.containsKey("authDomain")) {
1278 authDomain = _json["authDomain"]; 1292 authDomain = _json["authDomain"];
1279 } 1293 }
1280 if (_json.containsKey("codeBucket")) { 1294 if (_json.containsKey("codeBucket")) {
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
1330 _json["location"] = location; 1344 _json["location"] = location;
1331 } 1345 }
1332 if (name != null) { 1346 if (name != null) {
1333 _json["name"] = name; 1347 _json["name"] = name;
1334 } 1348 }
1335 return _json; 1349 return _json;
1336 } 1350 }
1337 } 1351 }
1338 1352
1339 /** 1353 /**
1340 * Automatic scaling is the scaling policy that App Engine has used since its 1354 * Automatic scaling is based on request rate, response latencies, and other
1341 * inception. It is based on request rate, response latencies, and other
1342 * application metrics. 1355 * application metrics.
1343 */ 1356 */
1344 class AutomaticScaling { 1357 class AutomaticScaling {
1345 /** 1358 /**
1346 * The amount of time that the 1359 * Amount of time that the
1347 * [Autoscaler](https://cloud.google.com/compute/docs/autoscaler/) should wait 1360 * [Autoscaler](https://cloud.google.com/compute/docs/autoscaler/) should wait
1348 * between changes to the number of virtual machines. Applies only to the VM 1361 * between changes to the number of virtual machines. Only applicable for VM
1349 * runtime. 1362 * runtimes.
1350 */ 1363 */
1351 core.String coolDownPeriod; 1364 core.String coolDownPeriod;
1352 /** Target scaling by CPU usage. */ 1365 /** Target scaling by CPU usage. */
1353 CpuUtilization cpuUtilization; 1366 CpuUtilization cpuUtilization;
1354 /** Target scaling by disk usage. */ 1367 /** Target scaling by disk usage. */
1355 DiskUtilization diskUtilization; 1368 DiskUtilization diskUtilization;
1356 /** 1369 /**
1357 * The number of concurrent requests an automatic scaling instance can accept 1370 * Number of concurrent requests an automatic scaling instance can accept
1358 * before the scheduler spawns a new instance. Default value is chosen based 1371 * before the scheduler spawns a new instance. Defaults to a runtime-specific
1359 * on the runtime. 1372 * value.
1360 */ 1373 */
1361 core.int maxConcurrentRequests; 1374 core.int maxConcurrentRequests;
1362 /** 1375 /**
1363 * The maximum number of idle instances that App Engine should maintain for 1376 * Maximum number of idle instances that should be maintained for this
1364 * this version. 1377 * version.
1365 */ 1378 */
1366 core.int maxIdleInstances; 1379 core.int maxIdleInstances;
1367 /** 1380 /**
1368 * The maximum amount of time that App Engine should allow a request to wait 1381 * Maximum amount of time that a request should wait in the pending queue
1369 * in the pending queue before starting a new instance to handle it. 1382 * before starting a new instance to handle it.
1370 */ 1383 */
1371 core.String maxPendingLatency; 1384 core.String maxPendingLatency;
1372 /** 1385 /** Maximum number of instances that should be started to handle requests. */
1373 * Max number of instances that App Engine should start to handle requests.
1374 */
1375 core.int maxTotalInstances; 1386 core.int maxTotalInstances;
1376 /** 1387 /**
1377 * The minimum number of idle instances that App Engine should maintain for 1388 * Minimum number of idle instances that should be maintained for this
1378 * this version. Only applies to the default version of a service, since other 1389 * version. Only applicable for the default version of a module.
1379 * versions are not expected to receive significant traffic.
1380 */ 1390 */
1381 core.int minIdleInstances; 1391 core.int minIdleInstances;
1382 /** 1392 /**
1383 * The minimum amount of time that App Engine should allow a request to wait 1393 * Minimum amount of time a request should wait in the pending queue before
1384 * in the pending queue before starting a new instance to handle it. 1394 * starting a new instance to handle it.
1385 */ 1395 */
1386 core.String minPendingLatency; 1396 core.String minPendingLatency;
1387 /** Minimum number of instances that App Engine should maintain. */ 1397 /**
1398 * Minimum number of instances that should be maintained for this version.
1399 */
1388 core.int minTotalInstances; 1400 core.int minTotalInstances;
1389 /** Target scaling by network usage. */ 1401 /** Target scaling by network usage. */
1390 NetworkUtilization networkUtilization; 1402 NetworkUtilization networkUtilization;
1391 /** Target scaling by request utilization. */ 1403 /** Target scaling by request utilization. */
1392 RequestUtilization requestUtilization; 1404 RequestUtilization requestUtilization;
1393 1405
1394 AutomaticScaling(); 1406 AutomaticScaling();
1395 1407
1396 AutomaticScaling.fromJson(core.Map _json) { 1408 AutomaticScaling.fromJson(core.Map _json) {
1397 if (_json.containsKey("coolDownPeriod")) { 1409 if (_json.containsKey("coolDownPeriod")) {
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
1475 } 1487 }
1476 1488
1477 /** 1489 /**
1478 * A service with basic scaling will create an instance when the application 1490 * A service with basic scaling will create an instance when the application
1479 * receives a request. The instance will be turned down when the app becomes 1491 * receives a request. The instance will be turned down when the app becomes
1480 * idle. Basic scaling is ideal for work that is intermittent or driven by user 1492 * idle. Basic scaling is ideal for work that is intermittent or driven by user
1481 * activity. 1493 * activity.
1482 */ 1494 */
1483 class BasicScaling { 1495 class BasicScaling {
1484 /** 1496 /**
1485 * The instance will be shut down this amount of time after receiving its last 1497 * Duration of time after the last request that an instance must wait before
1486 * request. 1498 * the instance is shut down.
1487 */ 1499 */
1488 core.String idleTimeout; 1500 core.String idleTimeout;
1489 /** 1501 /** Maximum number of instances to create for this version. */
1490 * The maximum number of instances for App Engine to create for this version.
1491 */
1492 core.int maxInstances; 1502 core.int maxInstances;
1493 1503
1494 BasicScaling(); 1504 BasicScaling();
1495 1505
1496 BasicScaling.fromJson(core.Map _json) { 1506 BasicScaling.fromJson(core.Map _json) {
1497 if (_json.containsKey("idleTimeout")) { 1507 if (_json.containsKey("idleTimeout")) {
1498 idleTimeout = _json["idleTimeout"]; 1508 idleTimeout = _json["idleTimeout"];
1499 } 1509 }
1500 if (_json.containsKey("maxInstances")) { 1510 if (_json.containsKey("maxInstances")) {
1501 maxInstances = _json["maxInstances"]; 1511 maxInstances = _json["maxInstances"];
1502 } 1512 }
1503 } 1513 }
1504 1514
1505 core.Map toJson() { 1515 core.Map toJson() {
1506 var _json = new core.Map(); 1516 var _json = new core.Map();
1507 if (idleTimeout != null) { 1517 if (idleTimeout != null) {
1508 _json["idleTimeout"] = idleTimeout; 1518 _json["idleTimeout"] = idleTimeout;
1509 } 1519 }
1510 if (maxInstances != null) { 1520 if (maxInstances != null) {
1511 _json["maxInstances"] = maxInstances; 1521 _json["maxInstances"] = maxInstances;
1512 } 1522 }
1513 return _json; 1523 return _json;
1514 } 1524 }
1515 } 1525 }
1516 1526
1517 /** 1527 /**
1518 * A Docker (container) image which should be used to start the application. 1528 * Docker image that is used to start a VM container for the version you deploy.
1519 */ 1529 */
1520 class ContainerInfo { 1530 class ContainerInfo {
1521 /** 1531 /**
1522 * Reference to a hosted container image. Must be a URI to a resource in a 1532 * URI to the hosted container image in a Docker repository. The URI must be
1523 * Docker repository. Must be fully qualified, including tag or digest. e.g. 1533 * fully qualified and include a tag or digest. Examples:
1524 * gcr.io/my-project/image:tag or gcr.io/my-project/image@digest 1534 * "gcr.io/my-project/image:tag" or "gcr.io/my-project/image@digest"
1525 */ 1535 */
1526 core.String image; 1536 core.String image;
1527 1537
1528 ContainerInfo(); 1538 ContainerInfo();
1529 1539
1530 ContainerInfo.fromJson(core.Map _json) { 1540 ContainerInfo.fromJson(core.Map _json) {
1531 if (_json.containsKey("image")) { 1541 if (_json.containsKey("image")) {
1532 image = _json["image"]; 1542 image = _json["image"];
1533 } 1543 }
1534 } 1544 }
1535 1545
1536 core.Map toJson() { 1546 core.Map toJson() {
1537 var _json = new core.Map(); 1547 var _json = new core.Map();
1538 if (image != null) { 1548 if (image != null) {
1539 _json["image"] = image; 1549 _json["image"] = image;
1540 } 1550 }
1541 return _json; 1551 return _json;
1542 } 1552 }
1543 } 1553 }
1544 1554
1545 /** Target scaling by CPU usage. */ 1555 /** Target scaling by CPU usage. */
1546 class CpuUtilization { 1556 class CpuUtilization {
1547 /** The period of time over which CPU utilization is calculated. */ 1557 /** Period of time over which CPU utilization is calculated. */
1548 core.String aggregationWindowLength; 1558 core.String aggregationWindowLength;
1549 /** Target (0-1) CPU utilization ratio to maintain when scaling. */ 1559 /**
1560 * Target CPU utilization ratio to maintain when scaling. Must be between 0
1561 * and 1.
1562 */
1550 core.double targetUtilization; 1563 core.double targetUtilization;
1551 1564
1552 CpuUtilization(); 1565 CpuUtilization();
1553 1566
1554 CpuUtilization.fromJson(core.Map _json) { 1567 CpuUtilization.fromJson(core.Map _json) {
1555 if (_json.containsKey("aggregationWindowLength")) { 1568 if (_json.containsKey("aggregationWindowLength")) {
1556 aggregationWindowLength = _json["aggregationWindowLength"]; 1569 aggregationWindowLength = _json["aggregationWindowLength"];
1557 } 1570 }
1558 if (_json.containsKey("targetUtilization")) { 1571 if (_json.containsKey("targetUtilization")) {
1559 targetUtilization = _json["targetUtilization"]; 1572 targetUtilization = _json["targetUtilization"];
(...skipping 22 matching lines...) Expand all
1582 1595
1583 core.Map toJson() { 1596 core.Map toJson() {
1584 var _json = new core.Map(); 1597 var _json = new core.Map();
1585 return _json; 1598 return _json;
1586 } 1599 }
1587 } 1600 }
1588 1601
1589 /** Code and application artifacts used to deploy a version to App Engine. */ 1602 /** Code and application artifacts used to deploy a version to App Engine. */
1590 class Deployment { 1603 class Deployment {
1591 /** 1604 /**
1592 * If supplied, a docker (container) image which should be used to start the 1605 * A Docker image that App Engine uses the run the version. Only applicable
1593 * application. Only applicable to the 'vm' runtime. 1606 * for instances in App Engine flexible environment.
1594 */ 1607 */
1595 ContainerInfo container; 1608 ContainerInfo container;
1596 /** 1609 /**
1597 * A manifest of files stored in Google Cloud Storage which should be included 1610 * Manifest of the files stored in Google Cloud Storage that are included as
1598 * as part of this application. All files must be readable using the 1611 * part of this version. All files must be readable using the credentials
1599 * credentials supplied with this call. 1612 * supplied with this call.
1600 */ 1613 */
1601 core.Map<core.String, FileInfo> files; 1614 core.Map<core.String, FileInfo> files;
1602 /** 1615 /**
1603 * The origin of the source code for this deployment. There can be more than 1616 * Origin of the source code for this deployment. There can be more than one
1604 * one source reference per Version if source code is distributed among 1617 * source reference per version if source code is distributed among multiple
1605 * multiple repositories. 1618 * repositories.
1606 */ 1619 */
1607 core.List<SourceReference> sourceReferences; 1620 core.List<SourceReference> sourceReferences;
1608 1621
1609 Deployment(); 1622 Deployment();
1610 1623
1611 Deployment.fromJson(core.Map _json) { 1624 Deployment.fromJson(core.Map _json) {
1612 if (_json.containsKey("container")) { 1625 if (_json.containsKey("container")) {
1613 container = new ContainerInfo.fromJson(_json["container"]); 1626 container = new ContainerInfo.fromJson(_json["container"]);
1614 } 1627 }
1615 if (_json.containsKey("files")) { 1628 if (_json.containsKey("files")) {
(...skipping 12 matching lines...) Expand all
1628 if (files != null) { 1641 if (files != null) {
1629 _json["files"] = commons.mapMap(files, (item) => (item).toJson()); 1642 _json["files"] = commons.mapMap(files, (item) => (item).toJson());
1630 } 1643 }
1631 if (sourceReferences != null) { 1644 if (sourceReferences != null) {
1632 _json["sourceReferences"] = sourceReferences.map((value) => (value).toJson ()).toList(); 1645 _json["sourceReferences"] = sourceReferences.map((value) => (value).toJson ()).toList();
1633 } 1646 }
1634 return _json; 1647 return _json;
1635 } 1648 }
1636 } 1649 }
1637 1650
1638 /** Target scaling by disk usage (for VM runtimes only). */ 1651 /** Target scaling by disk usage. Only applicable for VM runtimes. */
1639 class DiskUtilization { 1652 class DiskUtilization {
1640 /** Target bytes per second read. */ 1653 /** Target bytes read per second. */
1641 core.int targetReadBytesPerSec; 1654 core.int targetReadBytesPerSec;
1642 /** Target ops per second read. */ 1655 /** Target ops read per second. */
1643 core.int targetReadOpsPerSec; 1656 core.int targetReadOpsPerSec;
1644 /** Target bytes per second written. */ 1657 /** Target bytes written per second. */
1645 core.int targetWriteBytesPerSec; 1658 core.int targetWriteBytesPerSec;
1646 /** Target ops per second written. */ 1659 /** Target ops written per second. */
1647 core.int targetWriteOpsPerSec; 1660 core.int targetWriteOpsPerSec;
1648 1661
1649 DiskUtilization(); 1662 DiskUtilization();
1650 1663
1651 DiskUtilization.fromJson(core.Map _json) { 1664 DiskUtilization.fromJson(core.Map _json) {
1652 if (_json.containsKey("targetReadBytesPerSec")) { 1665 if (_json.containsKey("targetReadBytesPerSec")) {
1653 targetReadBytesPerSec = _json["targetReadBytesPerSec"]; 1666 targetReadBytesPerSec = _json["targetReadBytesPerSec"];
1654 } 1667 }
1655 if (_json.containsKey("targetReadOpsPerSec")) { 1668 if (_json.containsKey("targetReadOpsPerSec")) {
1656 targetReadOpsPerSec = _json["targetReadOpsPerSec"]; 1669 targetReadOpsPerSec = _json["targetReadOpsPerSec"];
(...skipping 17 matching lines...) Expand all
1674 if (targetWriteBytesPerSec != null) { 1687 if (targetWriteBytesPerSec != null) {
1675 _json["targetWriteBytesPerSec"] = targetWriteBytesPerSec; 1688 _json["targetWriteBytesPerSec"] = targetWriteBytesPerSec;
1676 } 1689 }
1677 if (targetWriteOpsPerSec != null) { 1690 if (targetWriteOpsPerSec != null) {
1678 _json["targetWriteOpsPerSec"] = targetWriteOpsPerSec; 1691 _json["targetWriteOpsPerSec"] = targetWriteOpsPerSec;
1679 } 1692 }
1680 return _json; 1693 return _json;
1681 } 1694 }
1682 } 1695 }
1683 1696
1684 /** A custom static error page to be served when an error occurs. */ 1697 /** Custom static error page to be served when an error occurs. */
1685 class ErrorHandler { 1698 class ErrorHandler {
1686 /** 1699 /**
1687 * The error condition this handler applies to. 1700 * Error condition this handler applies to.
1688 * Possible string values are: 1701 * Possible string values are:
1689 * - "ERROR_CODE_UNSPECIFIED" : A ERROR_CODE_UNSPECIFIED. 1702 * - "ERROR_CODE_UNSPECIFIED" : A ERROR_CODE_UNSPECIFIED.
1690 * - "ERROR_CODE_DEFAULT" : A ERROR_CODE_DEFAULT. 1703 * - "ERROR_CODE_DEFAULT" : A ERROR_CODE_DEFAULT.
1691 * - "ERROR_CODE_OVER_QUOTA" : A ERROR_CODE_OVER_QUOTA. 1704 * - "ERROR_CODE_OVER_QUOTA" : A ERROR_CODE_OVER_QUOTA.
1692 * - "ERROR_CODE_DOS_API_DENIAL" : A ERROR_CODE_DOS_API_DENIAL. 1705 * - "ERROR_CODE_DOS_API_DENIAL" : A ERROR_CODE_DOS_API_DENIAL.
1693 * - "ERROR_CODE_TIMEOUT" : A ERROR_CODE_TIMEOUT. 1706 * - "ERROR_CODE_TIMEOUT" : A ERROR_CODE_TIMEOUT.
1694 */ 1707 */
1695 core.String errorCode; 1708 core.String errorCode;
1696 /** MIME type of file. If unspecified, "text/html" is assumed. */ 1709 /** MIME type of file. Defaults to `text/html`. */
1697 core.String mimeType; 1710 core.String mimeType;
1698 /** Static file content to be served for this error. */ 1711 /** Static file content to be served for this error. */
1699 core.String staticFile; 1712 core.String staticFile;
1700 1713
1701 ErrorHandler(); 1714 ErrorHandler();
1702 1715
1703 ErrorHandler.fromJson(core.Map _json) { 1716 ErrorHandler.fromJson(core.Map _json) {
1704 if (_json.containsKey("errorCode")) { 1717 if (_json.containsKey("errorCode")) {
1705 errorCode = _json["errorCode"]; 1718 errorCode = _json["errorCode"];
1706 } 1719 }
(...skipping 13 matching lines...) Expand all
1720 if (mimeType != null) { 1733 if (mimeType != null) {
1721 _json["mimeType"] = mimeType; 1734 _json["mimeType"] = mimeType;
1722 } 1735 }
1723 if (staticFile != null) { 1736 if (staticFile != null) {
1724 _json["staticFile"] = staticFile; 1737 _json["staticFile"] = staticFile;
1725 } 1738 }
1726 return _json; 1739 return _json;
1727 } 1740 }
1728 } 1741 }
1729 1742
1730 /** A single source file which is part of the application to be deployed. */ 1743 /**
1744 * Single source file that is part of the version to be deployed. Each source
1745 * file that is deployed must be specified separately.
1746 */
1731 class FileInfo { 1747 class FileInfo {
1732 /** 1748 /**
1733 * The MIME type of the file; if unspecified, the value from Google Cloud 1749 * The MIME type of the file. Defaults to the value from Google Cloud Storage.
1734 * Storage will be used.
1735 */ 1750 */
1736 core.String mimeType; 1751 core.String mimeType;
1737 /** The SHA1 (160 bits) hash of the file in hex. */ 1752 /** The SHA1 hash of the file, in hex. */
1738 core.String sha1Sum; 1753 core.String sha1Sum;
1739 /** 1754 /**
1740 * The URL source to use to fetch this file. Must be a URL to a resource in 1755 * URL source to use to fetch this file. Must be a URL to a resource in Google
1741 * Google Cloud Storage in the form 'http(s)://storage.googleapis.com/\/\'. 1756 * Cloud Storage in the form 'http(s)://storage.googleapis.com/\/\'.
1742 */ 1757 */
1743 core.String sourceUrl; 1758 core.String sourceUrl;
1744 1759
1745 FileInfo(); 1760 FileInfo();
1746 1761
1747 FileInfo.fromJson(core.Map _json) { 1762 FileInfo.fromJson(core.Map _json) {
1748 if (_json.containsKey("mimeType")) { 1763 if (_json.containsKey("mimeType")) {
1749 mimeType = _json["mimeType"]; 1764 mimeType = _json["mimeType"];
1750 } 1765 }
1751 if (_json.containsKey("sha1Sum")) { 1766 if (_json.containsKey("sha1Sum")) {
(...skipping 13 matching lines...) Expand all
1765 _json["sha1Sum"] = sha1Sum; 1780 _json["sha1Sum"] = sha1Sum;
1766 } 1781 }
1767 if (sourceUrl != null) { 1782 if (sourceUrl != null) {
1768 _json["sourceUrl"] = sourceUrl; 1783 _json["sourceUrl"] = sourceUrl;
1769 } 1784 }
1770 return _json; 1785 return _json;
1771 } 1786 }
1772 } 1787 }
1773 1788
1774 /** 1789 /**
1775 * Configure health checking for the VM instances. Unhealthy VM instances will 1790 * Health checking configuration for VM instances. Unhealthy instances are
1776 * be killed and replaced with new instances. 1791 * killed and replaced with new instances. Only applicable for instances in App
1792 * Engine flexible environment.
1777 */ 1793 */
1778 class HealthCheck { 1794 class HealthCheck {
1779 /** The interval between health checks. */ 1795 /** Interval between health checks. */
1780 core.String checkInterval; 1796 core.String checkInterval;
1781 /** Whether to explicitly disable health checks for this instance. */ 1797 /** Whether to explicitly disable health checks for this instance. */
1782 core.bool disableHealthCheck; 1798 core.bool disableHealthCheck;
1783 /** 1799 /**
1784 * The number of consecutive successful health checks before receiving 1800 * Number of consecutive successful health checks required before receiving
1785 * traffic. 1801 * traffic.
1786 */ 1802 */
1787 core.int healthyThreshold; 1803 core.int healthyThreshold;
1788 /** 1804 /**
1789 * The host header to send when performing an HTTP health check (e.g. 1805 * Host header to send when performing an HTTP health check. Example:
1790 * myapp.appspot.com) 1806 * "myapp.appspot.com"
1791 */ 1807 */
1792 core.String host; 1808 core.String host;
1793 /** 1809 /**
1794 * The number of consecutive failed health checks before an instance is 1810 * Number of consecutive failed health checks required before an instance is
1795 * restarted. 1811 * restarted.
1796 */ 1812 */
1797 core.int restartThreshold; 1813 core.int restartThreshold;
1798 /** The amount of time before the health check is considered failed. */ 1814 /** Time before the health check is considered failed. */
1799 core.String timeout; 1815 core.String timeout;
1800 /** 1816 /**
1801 * The number of consecutive failed health checks before removing traffic. 1817 * Number of consecutive failed health checks required before removing
1818 * traffic.
1802 */ 1819 */
1803 core.int unhealthyThreshold; 1820 core.int unhealthyThreshold;
1804 1821
1805 HealthCheck(); 1822 HealthCheck();
1806 1823
1807 HealthCheck.fromJson(core.Map _json) { 1824 HealthCheck.fromJson(core.Map _json) {
1808 if (_json.containsKey("checkInterval")) { 1825 if (_json.containsKey("checkInterval")) {
1809 checkInterval = _json["checkInterval"]; 1826 checkInterval = _json["checkInterval"];
1810 } 1827 }
1811 if (_json.containsKey("disableHealthCheck")) { 1828 if (_json.containsKey("disableHealthCheck")) {
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
1849 _json["timeout"] = timeout; 1866 _json["timeout"] = timeout;
1850 } 1867 }
1851 if (unhealthyThreshold != null) { 1868 if (unhealthyThreshold != null) {
1852 _json["unhealthyThreshold"] = unhealthyThreshold; 1869 _json["unhealthyThreshold"] = unhealthyThreshold;
1853 } 1870 }
1854 return _json; 1871 return _json;
1855 } 1872 }
1856 } 1873 }
1857 1874
1858 /** 1875 /**
1859 * Instances are the computing units that App Engine uses to automatically scale 1876 * An Instance resource is the computing unit that App Engine uses to
1860 * an application. 1877 * automatically scale an application.
1861 */ 1878 */
1862 class Instance { 1879 class Instance {
1863 /** The App Engine release the instance is running on. @OutputOnly */ 1880 /** App Engine release this instance is running on. @OutputOnly */
1864 core.String appEngineRelease; 1881 core.String appEngineRelease;
1865 /** 1882 /**
1866 * Availability of instance. @OutputOnly 1883 * Availability of the instance. @OutputOnly
1867 * Possible string values are: 1884 * Possible string values are:
1868 * - "UNSPECIFIED" : A UNSPECIFIED. 1885 * - "UNSPECIFIED" : A UNSPECIFIED.
1869 * - "RESIDENT" : A RESIDENT. 1886 * - "RESIDENT" : A RESIDENT.
1870 * - "DYNAMIC" : A DYNAMIC. 1887 * - "DYNAMIC" : A DYNAMIC.
1871 */ 1888 */
1872 core.String availability; 1889 core.String availability;
1873 /** Latency in milliseconds (averaged over the last minute). @OutputOnly */ 1890 /** Average latency (ms) over the last minute. @OutputOnly */
1874 core.int averageLatency; 1891 core.int averageLatency;
1875 /** Number of errors since the instance was started. @OutputOnly */ 1892 /** Number of errors since this instance was started. @OutputOnly */
1876 core.int errors; 1893 core.int errors;
1877 /** 1894 /**
1878 * The relative name/path of the instance within the version. Example: 1895 * Relative name of the instance within the version. Example: `instance-1`.
1879 * "instance-1" @OutputOnly 1896 * @OutputOnly
1880 */ 1897 */
1881 core.String id; 1898 core.String id;
1882 /** Memory usage (in bytes). @OutputOnly */ 1899 /** Total memory in use (bytes). @OutputOnly */
1883 core.String memoryUsage; 1900 core.String memoryUsage;
1884 /** 1901 /**
1885 * The full path to the Instance resource in the API. Example: 1902 * Full path to the Instance resource in the API. Example:
1886 * "apps/myapp/services/default/versions/v1/instances/instance-1" @OutputOnly 1903 * `apps/myapp/services/default/versions/v1/instances/instance-1`. @OutputOnly
1887 */ 1904 */
1888 core.String name; 1905 core.String name;
1889 /** QPS for this instance (averaged over the last minute). @OutputOnly */ 1906 /** Average queries per second (QPS) over the last minute. @OutputOnly */
1890 core.double qps; 1907 core.double qps;
1891 /** Number of requests (since the clone was started). @OutputOnly */ 1908 /** Number of requests since this instance was started. @OutputOnly */
1892 core.int requests; 1909 core.int requests;
1893 /** Time when instance was started. @OutputOnly */ 1910 /** Time that this instance was started. @OutputOnly */
1894 core.String startTimestamp; 1911 core.String startTimestamp;
1895 /** 1912 /**
1896 * For VMEngines instances, the Compute Engine VM ID of the instance. 1913 * Virtual machine ID of this instance. Only applicable for instances in App
1897 * @OutputOnly 1914 * Engine flexible environment. @OutputOnly
1898 */ 1915 */
1899 core.String vmId; 1916 core.String vmId;
1900 /** 1917 /**
1901 * For VMEngines instances, the name of the Compute Engine VM where the 1918 * Name of the virtual machine where this instance lives. Only applicable for
1902 * instance lives. @OutputOnly 1919 * instances in App Engine flexible environment. @OutputOnly
1903 */ 1920 */
1904 core.String vmName; 1921 core.String vmName;
1905 /** 1922 /**
1906 * For VMEngines instances, the status of the Compute Engine VM where the 1923 * Status of the virtual machine where this instance lives. Only applicable
1907 * instance lives. @OutputOnly 1924 * for instances in App Engine flexible environment. @OutputOnly
1908 */ 1925 */
1909 core.String vmStatus; 1926 core.String vmStatus;
1910 /** 1927 /**
1911 * For VMEngines instances, whether the instance has been unlocked. 1928 * Whether this instance is in debug mode. Only applicable for instances in
1912 * @OutputOnly 1929 * App Engine flexible environment. @OutputOnly
1913 */ 1930 */
1914 core.bool vmUnlocked; 1931 core.bool vmUnlocked;
1915 /** 1932 /**
1916 * For VMEngines instances, the zone where the Compute Engine VM is located. 1933 * Zone where the virtual machine is located. Only applicable for instances in
1917 * @OutputOnly 1934 * App Engine flexible environment. @OutputOnly
1918 */ 1935 */
1919 core.String vmZoneName; 1936 core.String vmZoneName;
1920 1937
1921 Instance(); 1938 Instance();
1922 1939
1923 Instance.fromJson(core.Map _json) { 1940 Instance.fromJson(core.Map _json) {
1924 if (_json.containsKey("appEngineRelease")) { 1941 if (_json.containsKey("appEngineRelease")) {
1925 appEngineRelease = _json["appEngineRelease"]; 1942 appEngineRelease = _json["appEngineRelease"];
1926 } 1943 }
1927 if (_json.containsKey("availability")) { 1944 if (_json.containsKey("availability")) {
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
2012 if (vmUnlocked != null) { 2029 if (vmUnlocked != null) {
2013 _json["vmUnlocked"] = vmUnlocked; 2030 _json["vmUnlocked"] = vmUnlocked;
2014 } 2031 }
2015 if (vmZoneName != null) { 2032 if (vmZoneName != null) {
2016 _json["vmZoneName"] = vmZoneName; 2033 _json["vmZoneName"] = vmZoneName;
2017 } 2034 }
2018 return _json; 2035 return _json;
2019 } 2036 }
2020 } 2037 }
2021 2038
2022 /** A Python runtime third-party library required by the application. */ 2039 /** Third-party Python runtime library that is required by the application. */
2023 class Library { 2040 class Library {
2024 /** The name of the library, e.g. "PIL" or "django". */ 2041 /** Name of the library. Example: "django". */
2025 core.String name; 2042 core.String name;
2026 /** The version of the library to select, or "latest". */ 2043 /** Version of the library to select, or "latest". */
2027 core.String version; 2044 core.String version;
2028 2045
2029 Library(); 2046 Library();
2030 2047
2031 Library.fromJson(core.Map _json) { 2048 Library.fromJson(core.Map _json) {
2032 if (_json.containsKey("name")) { 2049 if (_json.containsKey("name")) {
2033 name = _json["name"]; 2050 name = _json["name"];
2034 } 2051 }
2035 if (_json.containsKey("version")) { 2052 if (_json.containsKey("version")) {
2036 version = _json["version"]; 2053 version = _json["version"];
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
2166 _json["services"] = services.map((value) => (value).toJson()).toList(); 2183 _json["services"] = services.map((value) => (value).toJson()).toList();
2167 } 2184 }
2168 return _json; 2185 return _json;
2169 } 2186 }
2170 } 2187 }
2171 2188
2172 /** Response message for `Versions.ListVersions`. */ 2189 /** Response message for `Versions.ListVersions`. */
2173 class ListVersionsResponse { 2190 class ListVersionsResponse {
2174 /** Continuation token for fetching the next page of results. */ 2191 /** Continuation token for fetching the next page of results. */
2175 core.String nextPageToken; 2192 core.String nextPageToken;
2176 /** The versions belonging to the requested application service. */ 2193 /** The versions belonging to the requested service. */
2177 core.List<Version> versions; 2194 core.List<Version> versions;
2178 2195
2179 ListVersionsResponse(); 2196 ListVersionsResponse();
2180 2197
2181 ListVersionsResponse.fromJson(core.Map _json) { 2198 ListVersionsResponse.fromJson(core.Map _json) {
2182 if (_json.containsKey("nextPageToken")) { 2199 if (_json.containsKey("nextPageToken")) {
2183 nextPageToken = _json["nextPageToken"]; 2200 nextPageToken = _json["nextPageToken"];
2184 } 2201 }
2185 if (_json.containsKey("versions")) { 2202 if (_json.containsKey("versions")) {
2186 versions = _json["versions"].map((value) => new Version.fromJson(value)).t oList(); 2203 versions = _json["versions"].map((value) => new Version.fromJson(value)).t oList();
(...skipping 12 matching lines...) Expand all
2199 } 2216 }
2200 } 2217 }
2201 2218
2202 /** A resource that represents Google Cloud Platform location. */ 2219 /** A resource that represents Google Cloud Platform location. */
2203 class Location { 2220 class Location {
2204 /** 2221 /**
2205 * Cross-service attributes for the location. For example 2222 * Cross-service attributes for the location. For example
2206 * {"cloud.googleapis.com/region": "us-east1"} 2223 * {"cloud.googleapis.com/region": "us-east1"}
2207 */ 2224 */
2208 core.Map<core.String, core.String> labels; 2225 core.Map<core.String, core.String> labels;
2226 /** The cononical id for this location. For example: `"us-east1"`. */
2227 core.String locationId;
2209 /** 2228 /**
2210 * Service-specific metadata. For example the available capacity at the given 2229 * Service-specific metadata. For example the available capacity at the given
2211 * location. 2230 * location.
2212 * 2231 *
2213 * The values for Object must be JSON objects. It can consist of `num`, 2232 * The values for Object must be JSON objects. It can consist of `num`,
2214 * `String`, `bool` and `null` as well as `Map` and `List` values. 2233 * `String`, `bool` and `null` as well as `Map` and `List` values.
2215 */ 2234 */
2216 core.Map<core.String, core.Object> metadata; 2235 core.Map<core.String, core.Object> metadata;
2217 /** 2236 /**
2218 * Resource name for the location, which may vary between implementations. 2237 * Resource name for the location, which may vary between implementations. For
2219 * Example: `"projects/example-project/locations/us-east1"` 2238 * example: `"projects/example-project/locations/us-east1"`
2220 */ 2239 */
2221 core.String name; 2240 core.String name;
2222 2241
2223 Location(); 2242 Location();
2224 2243
2225 Location.fromJson(core.Map _json) { 2244 Location.fromJson(core.Map _json) {
2226 if (_json.containsKey("labels")) { 2245 if (_json.containsKey("labels")) {
2227 labels = _json["labels"]; 2246 labels = _json["labels"];
2228 } 2247 }
2248 if (_json.containsKey("locationId")) {
2249 locationId = _json["locationId"];
2250 }
2229 if (_json.containsKey("metadata")) { 2251 if (_json.containsKey("metadata")) {
2230 metadata = _json["metadata"]; 2252 metadata = _json["metadata"];
2231 } 2253 }
2232 if (_json.containsKey("name")) { 2254 if (_json.containsKey("name")) {
2233 name = _json["name"]; 2255 name = _json["name"];
2234 } 2256 }
2235 } 2257 }
2236 2258
2237 core.Map toJson() { 2259 core.Map toJson() {
2238 var _json = new core.Map(); 2260 var _json = new core.Map();
2239 if (labels != null) { 2261 if (labels != null) {
2240 _json["labels"] = labels; 2262 _json["labels"] = labels;
2241 } 2263 }
2264 if (locationId != null) {
2265 _json["locationId"] = locationId;
2266 }
2242 if (metadata != null) { 2267 if (metadata != null) {
2243 _json["metadata"] = metadata; 2268 _json["metadata"] = metadata;
2244 } 2269 }
2245 if (name != null) { 2270 if (name != null) {
2246 _json["name"] = name; 2271 _json["name"] = name;
2247 } 2272 }
2248 return _json; 2273 return _json;
2249 } 2274 }
2250 } 2275 }
2251 2276
2252 /** Metadata for the given google.cloud.location.Location. */ 2277 /** Metadata for the given google.cloud.location.Location. */
2253 class LocationMetadata { 2278 class LocationMetadata {
2279 /**
2280 * App Engine Flexible Environment is available in the given location.
2281 * @OutputOnly
2282 */
2283 core.bool flexibleEnvironmentAvailable;
2284 /**
2285 * App Engine Standard Environment is available in the given location.
2286 * @OutputOnly
2287 */
2288 core.bool standardEnvironmentAvailable;
2254 2289
2255 LocationMetadata(); 2290 LocationMetadata();
2256 2291
2257 LocationMetadata.fromJson(core.Map _json) { 2292 LocationMetadata.fromJson(core.Map _json) {
2293 if (_json.containsKey("flexibleEnvironmentAvailable")) {
2294 flexibleEnvironmentAvailable = _json["flexibleEnvironmentAvailable"];
2295 }
2296 if (_json.containsKey("standardEnvironmentAvailable")) {
2297 standardEnvironmentAvailable = _json["standardEnvironmentAvailable"];
2298 }
2258 } 2299 }
2259 2300
2260 core.Map toJson() { 2301 core.Map toJson() {
2261 var _json = new core.Map(); 2302 var _json = new core.Map();
2303 if (flexibleEnvironmentAvailable != null) {
2304 _json["flexibleEnvironmentAvailable"] = flexibleEnvironmentAvailable;
2305 }
2306 if (standardEnvironmentAvailable != null) {
2307 _json["standardEnvironmentAvailable"] = standardEnvironmentAvailable;
2308 }
2262 return _json; 2309 return _json;
2263 } 2310 }
2264 } 2311 }
2265 2312
2266 /** 2313 /**
2267 * A service with manual scaling runs continuously, allowing you to perform 2314 * A service with manual scaling runs continuously, allowing you to perform
2268 * complex initialization and rely on the state of its memory over time. 2315 * complex initialization and rely on the state of its memory over time.
2269 */ 2316 */
2270 class ManualScaling { 2317 class ManualScaling {
2271 /** 2318 /**
2272 * The number of instances to assign to the service at the start. This number 2319 * Number of instances to assign to the service at the start. This number can
2273 * can later be altered by using the [Modules 2320 * later be altered by using the [Modules
2274 * API](https://cloud.google.com/appengine/docs/python/modules/functions) 2321 * API](https://cloud.google.com/appengine/docs/python/modules/functions)
2275 * `set_num_instances()` function. 2322 * `set_num_instances()` function.
2276 */ 2323 */
2277 core.int instances; 2324 core.int instances;
2278 2325
2279 ManualScaling(); 2326 ManualScaling();
2280 2327
2281 ManualScaling.fromJson(core.Map _json) { 2328 ManualScaling.fromJson(core.Map _json) {
2282 if (_json.containsKey("instances")) { 2329 if (_json.containsKey("instances")) {
2283 instances = _json["instances"]; 2330 instances = _json["instances"];
2284 } 2331 }
2285 } 2332 }
2286 2333
2287 core.Map toJson() { 2334 core.Map toJson() {
2288 var _json = new core.Map(); 2335 var _json = new core.Map();
2289 if (instances != null) { 2336 if (instances != null) {
2290 _json["instances"] = instances; 2337 _json["instances"] = instances;
2291 } 2338 }
2292 return _json; 2339 return _json;
2293 } 2340 }
2294 } 2341 }
2295 2342
2296 /** Used to specify extra network settings (for VM runtimes only). */ 2343 /** Extra network settings. Only applicable for VM runtimes. */
2297 class Network { 2344 class Network {
2298 /** 2345 /**
2299 * A list of ports (or port pairs) to forward from the VM into the app 2346 * List of ports, or port pairs, to forward from the virtual machine to the
2300 * container. 2347 * application container.
2301 */ 2348 */
2302 core.List<core.String> forwardedPorts; 2349 core.List<core.String> forwardedPorts;
2303 /** A tag to apply to the VM instance during creation. */ 2350 /** Tag to apply to the VM instance during creation. */
2304 core.String instanceTag; 2351 core.String instanceTag;
2305 /** 2352 /**
2306 * The Google Compute Engine network where the VMs will be created. If not 2353 * Google Cloud Platform network where the virtual machines are created.
2307 * specified, or empty, the network named "default" will be used. (The short 2354 * Specify the short name, not the resource path. Defaults to `default`.
2308 * name should be specified, not the resource path.)
2309 */ 2355 */
2310 core.String name; 2356 core.String name;
2311 2357
2312 Network(); 2358 Network();
2313 2359
2314 Network.fromJson(core.Map _json) { 2360 Network.fromJson(core.Map _json) {
2315 if (_json.containsKey("forwardedPorts")) { 2361 if (_json.containsKey("forwardedPorts")) {
2316 forwardedPorts = _json["forwardedPorts"]; 2362 forwardedPorts = _json["forwardedPorts"];
2317 } 2363 }
2318 if (_json.containsKey("instanceTag")) { 2364 if (_json.containsKey("instanceTag")) {
(...skipping 12 matching lines...) Expand all
2331 if (instanceTag != null) { 2377 if (instanceTag != null) {
2332 _json["instanceTag"] = instanceTag; 2378 _json["instanceTag"] = instanceTag;
2333 } 2379 }
2334 if (name != null) { 2380 if (name != null) {
2335 _json["name"] = name; 2381 _json["name"] = name;
2336 } 2382 }
2337 return _json; 2383 return _json;
2338 } 2384 }
2339 } 2385 }
2340 2386
2341 /** Target scaling by network usage (for VM runtimes only). */ 2387 /** Target scaling by network usage. Only applicable for VM runtimes. */
2342 class NetworkUtilization { 2388 class NetworkUtilization {
2343 /** Target bytes per second received. */ 2389 /** Target bytes received per second. */
2344 core.int targetReceivedBytesPerSec; 2390 core.int targetReceivedBytesPerSec;
2345 /** Target packets per second received. */ 2391 /** Target packets received per second. */
2346 core.int targetReceivedPacketsPerSec; 2392 core.int targetReceivedPacketsPerSec;
2347 /** Target bytes per second sent. */ 2393 /** Target bytes sent per second. */
2348 core.int targetSentBytesPerSec; 2394 core.int targetSentBytesPerSec;
2349 /** Target packets per second sent. */ 2395 /** Target packets sent per second. */
2350 core.int targetSentPacketsPerSec; 2396 core.int targetSentPacketsPerSec;
2351 2397
2352 NetworkUtilization(); 2398 NetworkUtilization();
2353 2399
2354 NetworkUtilization.fromJson(core.Map _json) { 2400 NetworkUtilization.fromJson(core.Map _json) {
2355 if (_json.containsKey("targetReceivedBytesPerSec")) { 2401 if (_json.containsKey("targetReceivedBytesPerSec")) {
2356 targetReceivedBytesPerSec = _json["targetReceivedBytesPerSec"]; 2402 targetReceivedBytesPerSec = _json["targetReceivedBytesPerSec"];
2357 } 2403 }
2358 if (_json.containsKey("targetReceivedPacketsPerSec")) { 2404 if (_json.containsKey("targetReceivedPacketsPerSec")) {
2359 targetReceivedPacketsPerSec = _json["targetReceivedPacketsPerSec"]; 2405 targetReceivedPacketsPerSec = _json["targetReceivedPacketsPerSec"];
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
2463 } 2509 }
2464 if (response != null) { 2510 if (response != null) {
2465 _json["response"] = response; 2511 _json["response"] = response;
2466 } 2512 }
2467 return _json; 2513 return _json;
2468 } 2514 }
2469 } 2515 }
2470 2516
2471 /** Metadata for the given google.longrunning.Operation. */ 2517 /** Metadata for the given google.longrunning.Operation. */
2472 class OperationMetadata { 2518 class OperationMetadata {
2473 /** 2519 /** Timestamp that this operation completed. @OutputOnly */
2474 * Timestamp that this operation was completed. (Not present if the operation
2475 * is still in progress.) @OutputOnly
2476 */
2477 core.String endTime; 2520 core.String endTime;
2478 /** Timestamp that this operation was received. @OutputOnly */ 2521 /** Timestamp that this operation was created. @OutputOnly */
2479 core.String insertTime; 2522 core.String insertTime;
2480 /** 2523 /**
2481 * API method name that initiated the operation. Example: 2524 * API method that initiated this operation. Example:
2482 * "google.appengine.v1beta4.Version.CreateVersion". @OutputOnly 2525 * `google.appengine.v1beta4.Version.CreateVersion`. @OutputOnly
2483 */ 2526 */
2484 core.String method; 2527 core.String method;
2485 /** 2528 /**
2486 * The type of the operation (deprecated, use method field instead). Example: 2529 * Type of this operation. Deprecated, use method field instead. Example:
2487 * "create_version". @OutputOnly 2530 * "create_version". @OutputOnly
2488 */ 2531 */
2489 core.String operationType; 2532 core.String operationType;
2490 /** 2533 /**
2491 * Resource that this operation is acting on. Example: 2534 * Name of the resource that this operation is acting on. Example:
2492 * "apps/myapp/modules/default". @OutputOnly 2535 * `apps/myapp/modules/default`. @OutputOnly
2493 */ 2536 */
2494 core.String target; 2537 core.String target;
2495 /** The user who requested this operation. @OutputOnly */ 2538 /** User who requested this operation. @OutputOnly */
2496 core.String user; 2539 core.String user;
2497 2540
2498 OperationMetadata(); 2541 OperationMetadata();
2499 2542
2500 OperationMetadata.fromJson(core.Map _json) { 2543 OperationMetadata.fromJson(core.Map _json) {
2501 if (_json.containsKey("endTime")) { 2544 if (_json.containsKey("endTime")) {
2502 endTime = _json["endTime"]; 2545 endTime = _json["endTime"];
2503 } 2546 }
2504 if (_json.containsKey("insertTime")) { 2547 if (_json.containsKey("insertTime")) {
2505 insertTime = _json["insertTime"]; 2548 insertTime = _json["insertTime"];
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
2537 } 2580 }
2538 if (user != null) { 2581 if (user != null) {
2539 _json["user"] = user; 2582 _json["user"] = user;
2540 } 2583 }
2541 return _json; 2584 return _json;
2542 } 2585 }
2543 } 2586 }
2544 2587
2545 /** Metadata for the given google.longrunning.Operation. */ 2588 /** Metadata for the given google.longrunning.Operation. */
2546 class OperationMetadataV1 { 2589 class OperationMetadataV1 {
2547 /** 2590 /** Time that this operation completed. @OutputOnly */
2548 * Timestamp that this operation was completed. (Not present if the operation
2549 * is still in progress.) @OutputOnly
2550 */
2551 core.String endTime; 2591 core.String endTime;
2552 /** Timestamp that this operation was received. @OutputOnly */ 2592 /** Time that this operation was created. @OutputOnly */
2553 core.String insertTime; 2593 core.String insertTime;
2554 /** 2594 /**
2555 * API method name that initiated the operation. Example: 2595 * API method that initiated this operation. Example:
2556 * "google.appengine.v1.Version.CreateVersion". @OutputOnly 2596 * `google.appengine.v1.Versions.CreateVersion`. @OutputOnly
2557 */ 2597 */
2558 core.String method; 2598 core.String method;
2559 /** 2599 /**
2560 * Resource that this operation is acting on. Example: 2600 * Name of the resource that this operation is acting on. Example:
2561 * "apps/myapp/services/default". @OutputOnly 2601 * `apps/myapp/services/default`. @OutputOnly
2562 */ 2602 */
2563 core.String target; 2603 core.String target;
2564 /** The user who requested this operation. @OutputOnly */ 2604 /** User who requested this operation. @OutputOnly */
2565 core.String user; 2605 core.String user;
2566 2606
2567 OperationMetadataV1(); 2607 OperationMetadataV1();
2568 2608
2569 OperationMetadataV1.fromJson(core.Map _json) { 2609 OperationMetadataV1.fromJson(core.Map _json) {
2570 if (_json.containsKey("endTime")) { 2610 if (_json.containsKey("endTime")) {
2571 endTime = _json["endTime"]; 2611 endTime = _json["endTime"];
2572 } 2612 }
2573 if (_json.containsKey("insertTime")) { 2613 if (_json.containsKey("insertTime")) {
2574 insertTime = _json["insertTime"]; 2614 insertTime = _json["insertTime"];
(...skipping 25 matching lines...) Expand all
2600 } 2640 }
2601 if (user != null) { 2641 if (user != null) {
2602 _json["user"] = user; 2642 _json["user"] = user;
2603 } 2643 }
2604 return _json; 2644 return _json;
2605 } 2645 }
2606 } 2646 }
2607 2647
2608 /** Metadata for the given google.longrunning.Operation. */ 2648 /** Metadata for the given google.longrunning.Operation. */
2609 class OperationMetadataV1Beta5 { 2649 class OperationMetadataV1Beta5 {
2610 /** 2650 /** Timestamp that this operation completed. @OutputOnly */
2611 * Timestamp that this operation was completed. (Not present if the operation
2612 * is still in progress.) @OutputOnly
2613 */
2614 core.String endTime; 2651 core.String endTime;
2615 /** Timestamp that this operation was received. @OutputOnly */ 2652 /** Timestamp that this operation was created. @OutputOnly */
2616 core.String insertTime; 2653 core.String insertTime;
2617 /** 2654 /**
2618 * API method name that initiated the operation. Example: 2655 * API method name that initiated this operation. Example:
2619 * "google.appengine.v1beta5.Version.CreateVersion". @OutputOnly 2656 * `google.appengine.v1beta5.Version.CreateVersion`. @OutputOnly
2620 */ 2657 */
2621 core.String method; 2658 core.String method;
2622 /** 2659 /**
2623 * Resource that this operation is acting on. Example: 2660 * Name of the resource that this operation is acting on. Example:
2624 * "apps/myapp/services/default". @OutputOnly 2661 * `apps/myapp/services/default`. @OutputOnly
2625 */ 2662 */
2626 core.String target; 2663 core.String target;
2627 /** The user who requested this operation. @OutputOnly */ 2664 /** User who requested this operation. @OutputOnly */
2628 core.String user; 2665 core.String user;
2629 2666
2630 OperationMetadataV1Beta5(); 2667 OperationMetadataV1Beta5();
2631 2668
2632 OperationMetadataV1Beta5.fromJson(core.Map _json) { 2669 OperationMetadataV1Beta5.fromJson(core.Map _json) {
2633 if (_json.containsKey("endTime")) { 2670 if (_json.containsKey("endTime")) {
2634 endTime = _json["endTime"]; 2671 endTime = _json["endTime"];
2635 } 2672 }
2636 if (_json.containsKey("insertTime")) { 2673 if (_json.containsKey("insertTime")) {
2637 insertTime = _json["insertTime"]; 2674 insertTime = _json["insertTime"];
(...skipping 23 matching lines...) Expand all
2661 if (target != null) { 2698 if (target != null) {
2662 _json["target"] = target; 2699 _json["target"] = target;
2663 } 2700 }
2664 if (user != null) { 2701 if (user != null) {
2665 _json["user"] = user; 2702 _json["user"] = user;
2666 } 2703 }
2667 return _json; 2704 return _json;
2668 } 2705 }
2669 } 2706 }
2670 2707
2671 /** Target scaling by request utilization (for VM runtimes only). */ 2708 /** Target scaling by request utilization. Only applicable for VM runtimes. */
2672 class RequestUtilization { 2709 class RequestUtilization {
2673 /** Target number of concurrent requests. */ 2710 /** Target number of concurrent requests. */
2674 core.int targetConcurrentRequests; 2711 core.int targetConcurrentRequests;
2675 /** Target requests per second. */ 2712 /** Target requests per second. */
2676 core.int targetRequestCountPerSec; 2713 core.int targetRequestCountPerSec;
2677 2714
2678 RequestUtilization(); 2715 RequestUtilization();
2679 2716
2680 RequestUtilization.fromJson(core.Map _json) { 2717 RequestUtilization.fromJson(core.Map _json) {
2681 if (_json.containsKey("targetConcurrentRequests")) { 2718 if (_json.containsKey("targetConcurrentRequests")) {
2682 targetConcurrentRequests = _json["targetConcurrentRequests"]; 2719 targetConcurrentRequests = _json["targetConcurrentRequests"];
2683 } 2720 }
2684 if (_json.containsKey("targetRequestCountPerSec")) { 2721 if (_json.containsKey("targetRequestCountPerSec")) {
2685 targetRequestCountPerSec = _json["targetRequestCountPerSec"]; 2722 targetRequestCountPerSec = _json["targetRequestCountPerSec"];
2686 } 2723 }
2687 } 2724 }
2688 2725
2689 core.Map toJson() { 2726 core.Map toJson() {
2690 var _json = new core.Map(); 2727 var _json = new core.Map();
2691 if (targetConcurrentRequests != null) { 2728 if (targetConcurrentRequests != null) {
2692 _json["targetConcurrentRequests"] = targetConcurrentRequests; 2729 _json["targetConcurrentRequests"] = targetConcurrentRequests;
2693 } 2730 }
2694 if (targetRequestCountPerSec != null) { 2731 if (targetRequestCountPerSec != null) {
2695 _json["targetRequestCountPerSec"] = targetRequestCountPerSec; 2732 _json["targetRequestCountPerSec"] = targetRequestCountPerSec;
2696 } 2733 }
2697 return _json; 2734 return _json;
2698 } 2735 }
2699 } 2736 }
2700 2737
2701 /** Used to specify how many machine resources an app version needs. */ 2738 /** Machine resources for a version. */
2702 class Resources { 2739 class Resources {
2703 /** How many CPU cores an app version needs. */ 2740 /** Number of CPU cores needed. */
2704 core.double cpu; 2741 core.double cpu;
2705 /** How much disk size, in GB, an app version needs. */ 2742 /** Disk size (GB) needed. */
2706 core.double diskGb; 2743 core.double diskGb;
2707 /** How much memory, in GB, an app version needs. */ 2744 /** Memory (GB) needed. */
2708 core.double memoryGb; 2745 core.double memoryGb;
2709 2746
2710 Resources(); 2747 Resources();
2711 2748
2712 Resources.fromJson(core.Map _json) { 2749 Resources.fromJson(core.Map _json) {
2713 if (_json.containsKey("cpu")) { 2750 if (_json.containsKey("cpu")) {
2714 cpu = _json["cpu"]; 2751 cpu = _json["cpu"];
2715 } 2752 }
2716 if (_json.containsKey("diskGb")) { 2753 if (_json.containsKey("diskGb")) {
2717 diskGb = _json["diskGb"]; 2754 diskGb = _json["diskGb"];
(...skipping 13 matching lines...) Expand all
2731 } 2768 }
2732 if (memoryGb != null) { 2769 if (memoryGb != null) {
2733 _json["memoryGb"] = memoryGb; 2770 _json["memoryGb"] = memoryGb;
2734 } 2771 }
2735 return _json; 2772 return _json;
2736 } 2773 }
2737 } 2774 }
2738 2775
2739 /** Executes a script to handle the request that matches the URL pattern. */ 2776 /** Executes a script to handle the request that matches the URL pattern. */
2740 class ScriptHandler { 2777 class ScriptHandler {
2741 /** Specifies the path to the script from the application root directory. */ 2778 /** Path to the script from the application root directory. */
2742 core.String scriptPath; 2779 core.String scriptPath;
2743 2780
2744 ScriptHandler(); 2781 ScriptHandler();
2745 2782
2746 ScriptHandler.fromJson(core.Map _json) { 2783 ScriptHandler.fromJson(core.Map _json) {
2747 if (_json.containsKey("scriptPath")) { 2784 if (_json.containsKey("scriptPath")) {
2748 scriptPath = _json["scriptPath"]; 2785 scriptPath = _json["scriptPath"];
2749 } 2786 }
2750 } 2787 }
2751 2788
2752 core.Map toJson() { 2789 core.Map toJson() {
2753 var _json = new core.Map(); 2790 var _json = new core.Map();
2754 if (scriptPath != null) { 2791 if (scriptPath != null) {
2755 _json["scriptPath"] = scriptPath; 2792 _json["scriptPath"] = scriptPath;
2756 } 2793 }
2757 return _json; 2794 return _json;
2758 } 2795 }
2759 } 2796 }
2760 2797
2761 /** 2798 /**
2762 * A service is a logical component of an application that can share state and 2799 * A Service resource is a logical component of an application that can share
2763 * communicate in a secure fashion with other services. For example, an 2800 * state and communicate in a secure fashion with other services. For example,
2764 * application that handles customer requests might include separate services to 2801 * an application that handles customer requests might include separate services
2765 * handle other tasks such as API requests from mobile devices or backend data 2802 * to handle other tasks such as API requests from mobile devices or backend
2766 * analysis. Each service has a collection of versions that define a specific 2803 * data analysis. Each service has a collection of versions that define a
2767 * set of code used to implement the functionality of that service. 2804 * specific set of code used to implement the functionality of that service.
2768 */ 2805 */
2769 class Service { 2806 class Service {
2770 /** 2807 /**
2771 * The relative name/path of the service within the application. Example: 2808 * Relative name of the service within the application. Example: `default`.
2772 * "default" @OutputOnly 2809 * @OutputOnly
2773 */ 2810 */
2774 core.String id; 2811 core.String id;
2775 /** 2812 /**
2776 * The full path to the Service resource in the API. Example: 2813 * Full path to the Service resource in the API. Example:
2777 * "apps/myapp/services/default" @OutputOnly 2814 * `apps/myapp/services/default`. @OutputOnly
2778 */ 2815 */
2779 core.String name; 2816 core.String name;
2780 /** 2817 /**
2781 * A mapping that defines fractional HTTP traffic diversion to different 2818 * Mapping that defines fractional HTTP traffic diversion to different
2782 * versions within the service. 2819 * versions within the service.
2783 */ 2820 */
2784 TrafficSplit split; 2821 TrafficSplit split;
2785 2822
2786 Service(); 2823 Service();
2787 2824
2788 Service.fromJson(core.Map _json) { 2825 Service.fromJson(core.Map _json) {
2789 if (_json.containsKey("id")) { 2826 if (_json.containsKey("id")) {
2790 id = _json["id"]; 2827 id = _json["id"];
2791 } 2828 }
(...skipping 14 matching lines...) Expand all
2806 _json["name"] = name; 2843 _json["name"] = name;
2807 } 2844 }
2808 if (split != null) { 2845 if (split != null) {
2809 _json["split"] = (split).toJson(); 2846 _json["split"] = (split).toJson();
2810 } 2847 }
2811 return _json; 2848 return _json;
2812 } 2849 }
2813 } 2850 }
2814 2851
2815 /** 2852 /**
2816 * A reference to a particular snapshot of the source tree used to build and 2853 * Reference to a particular snapshot of the source tree used to build and
2817 * deploy the application. 2854 * deploy the application.
2818 */ 2855 */
2819 class SourceReference { 2856 class SourceReference {
2820 /** 2857 /**
2821 * Optional. A URI string identifying the repository. Example: 2858 * URI string identifying the repository. Example:
2822 * "https://source.developers.google.com/p/app-123/r/default" 2859 * "https://source.developers.google.com/p/app-123/r/default"
2823 */ 2860 */
2824 core.String repository; 2861 core.String repository;
2825 /** 2862 /**
2826 * The canonical (and persistent) identifier of the deployed revision, i.e. 2863 * The canonical, persistent identifier of the deployed revision. Aliases that
2827 * any kind of aliases including tags or branch names are not allowed. Example 2864 * include tags or branch names are not allowed. Example (git):
2828 * (git): "2198322f89e0bb2e25021667c2ed489d1fd34e6b" 2865 * "2198322f89e0bb2e25021667c2ed489d1fd34e6b"
2829 */ 2866 */
2830 core.String revisionId; 2867 core.String revisionId;
2831 2868
2832 SourceReference(); 2869 SourceReference();
2833 2870
2834 SourceReference.fromJson(core.Map _json) { 2871 SourceReference.fromJson(core.Map _json) {
2835 if (_json.containsKey("repository")) { 2872 if (_json.containsKey("repository")) {
2836 repository = _json["repository"]; 2873 repository = _json["repository"];
2837 } 2874 }
2838 if (_json.containsKey("revisionId")) { 2875 if (_json.containsKey("revisionId")) {
(...skipping 14 matching lines...) Expand all
2853 } 2890 }
2854 2891
2855 /** 2892 /**
2856 * Files served directly to the user for a given URL, such as images, CSS 2893 * Files served directly to the user for a given URL, such as images, CSS
2857 * stylesheets, or JavaScript source files. Static file handlers describe which 2894 * stylesheets, or JavaScript source files. Static file handlers describe which
2858 * files in the application directory are static files, and which URLs serve 2895 * files in the application directory are static files, and which URLs serve
2859 * them. 2896 * them.
2860 */ 2897 */
2861 class StaticFilesHandler { 2898 class StaticFilesHandler {
2862 /** 2899 /**
2863 * By default, files declared in static file handlers are uploaded as static 2900 * Whether files should also be uploaded as code data. By default, files
2864 * data and are only served to end users, they cannot be read by an 2901 * declared in static file handlers are uploaded as static data and are only
2865 * application. If this field is set to true, the files are also uploaded as 2902 * served to end users; they cannot be read by the application. If enabled,
2866 * code data so your application can read them. Both uploads are charged 2903 * uploads are charged against both your code and static data storage resource
2867 * against your code and static data storage resource quotas. 2904 * quotas.
2868 */ 2905 */
2869 core.bool applicationReadable; 2906 core.bool applicationReadable;
2870 /** 2907 /** Time a static file served by this handler should be cached. */
2871 * The length of time a static file served by this handler ought to be cached
2872 * by web proxies and browsers.
2873 */
2874 core.String expiration; 2908 core.String expiration;
2875 /** HTTP headers to use for all responses from these URLs. */ 2909 /** HTTP headers to use for all responses from these URLs. */
2876 core.Map<core.String, core.String> httpHeaders; 2910 core.Map<core.String, core.String> httpHeaders;
2877 /** 2911 /**
2878 * If specified, all files served by this handler will be served using the 2912 * MIME type used to serve all files served by this handler. Defaults to
2879 * specified MIME type. If not specified, the MIME type for a file will be 2913 * file-specific MIME types, which are derived from each file's filename
2880 * derived from the file's filename extension. 2914 * extension.
2881 */ 2915 */
2882 core.String mimeType; 2916 core.String mimeType;
2883 /** 2917 /**
2884 * The path to the static files matched by the URL pattern, from the 2918 * Path to the static files matched by the URL pattern, from the application
2885 * application root directory. The path can refer to text matched in groupings 2919 * root directory. The path can refer to text matched in groupings in the URL
2886 * in the URL pattern. 2920 * pattern.
2887 */ 2921 */
2888 core.String path; 2922 core.String path;
2889 /** 2923 /**
2890 * If true, this UrlMap entry does not match the request unless the file 2924 * Whether this handler should match the request if the file referenced by the
2891 * referenced by the handler also exists. If no such file exists, processing 2925 * handler does not exist.
2892 * will continue with the next UrlMap that matches the requested URL.
2893 */ 2926 */
2894 core.bool requireMatchingFile; 2927 core.bool requireMatchingFile;
2895 /** 2928 /**
2896 * A regular expression that matches the file paths for all files that will be 2929 * Regular expression that matches the file paths for all files that should be
2897 * referenced by this handler. 2930 * referenced by this handler.
2898 */ 2931 */
2899 core.String uploadPathRegex; 2932 core.String uploadPathRegex;
2900 2933
2901 StaticFilesHandler(); 2934 StaticFilesHandler();
2902 2935
2903 StaticFilesHandler.fromJson(core.Map _json) { 2936 StaticFilesHandler.fromJson(core.Map _json) {
2904 if (_json.containsKey("applicationReadable")) { 2937 if (_json.containsKey("applicationReadable")) {
2905 applicationReadable = _json["applicationReadable"]; 2938 applicationReadable = _json["applicationReadable"];
2906 } 2939 }
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
3027 _json["details"] = details; 3060 _json["details"] = details;
3028 } 3061 }
3029 if (message != null) { 3062 if (message != null) {
3030 _json["message"] = message; 3063 _json["message"] = message;
3031 } 3064 }
3032 return _json; 3065 return _json;
3033 } 3066 }
3034 } 3067 }
3035 3068
3036 /** 3069 /**
3037 * Configuration for traffic splitting for versions within a single service. 3070 * Traffic routing configuration for versions within a single service. Traffic
3038 * Traffic splitting allows traffic directed to the service to be assigned to 3071 * splits define how traffic directed to the service is assigned to versions.
3039 * one of several versions in a fractional way, enabling experiments and
3040 * canarying new builds, for example.
3041 */ 3072 */
3042 class TrafficSplit { 3073 class TrafficSplit {
3043 /** 3074 /**
3044 * Mapping from service version IDs within the service to fractional (0.000, 3075 * Mapping from version IDs within the service to fractional (0.000, 1]
3045 * 1] allocations of traffic for that version. Each version may only be 3076 * allocations of traffic for that version. Each version can be specified only
3046 * specified once, but some versions in the service may not have any traffic 3077 * once, but some versions in the service may not have any traffic allocation.
3047 * allocation. Services that have traffic allocated in this field may not be 3078 * Services that have traffic allocated cannot be deleted until either the
3048 * deleted until the service is deleted, or their traffic allocation is 3079 * service is deleted or their traffic allocation is removed. Allocations must
3049 * removed. Allocations must sum to 1. Supports precision up to two decimal 3080 * sum to 1. Up to two decimal place precision is supported for IP-based
3050 * places for IP-based splits and up to three decimal places for cookie-based 3081 * splits and up to three decimal places is supported for cookie-based splits.
3051 * splits.
3052 */ 3082 */
3053 core.Map<core.String, core.double> allocations; 3083 core.Map<core.String, core.double> allocations;
3054 /** 3084 /**
3055 * Which mechanism should be used as a selector when choosing a version to 3085 * Mechanism used to determine which version a request is sent to. The traffic
3056 * send a request to. The traffic selection algorithm will be stable for 3086 * selection algorithm will be stable for either type until allocations are
3057 * either type until allocations are changed. 3087 * changed.
3058 * Possible string values are: 3088 * Possible string values are:
3059 * - "UNSPECIFIED" : A UNSPECIFIED. 3089 * - "UNSPECIFIED" : A UNSPECIFIED.
3060 * - "COOKIE" : A COOKIE. 3090 * - "COOKIE" : A COOKIE.
3061 * - "IP" : A IP. 3091 * - "IP" : A IP.
3062 */ 3092 */
3063 core.String shardBy; 3093 core.String shardBy;
3064 3094
3065 TrafficSplit(); 3095 TrafficSplit();
3066 3096
3067 TrafficSplit.fromJson(core.Map _json) { 3097 TrafficSplit.fromJson(core.Map _json) {
(...skipping 13 matching lines...) Expand all
3081 if (shardBy != null) { 3111 if (shardBy != null) {
3082 _json["shardBy"] = shardBy; 3112 _json["shardBy"] = shardBy;
3083 } 3113 }
3084 return _json; 3114 return _json;
3085 } 3115 }
3086 } 3116 }
3087 3117
3088 /** Rules to match an HTTP request and dispatch that request to a service. */ 3118 /** Rules to match an HTTP request and dispatch that request to a service. */
3089 class UrlDispatchRule { 3119 class UrlDispatchRule {
3090 /** 3120 /**
3091 * The domain name to match on. Supports '*' (glob) wildcarding on the 3121 * Domain name to match against. The wildcard "`*`" is supported if specified
3092 * left-hand side of a '.'. If empty, all domains will be matched (the same as 3122 * before a period: "`*.`". Defaults to matching all domains: "`*`".
3093 * '*').
3094 */ 3123 */
3095 core.String domain; 3124 core.String domain;
3096 /** 3125 /**
3097 * The pathname within the host. This must start with a '/'. A single '*' 3126 * Pathname within the host. Must start with a "`/`". A single "`*`" can be
3098 * (glob) can be included at the end of the path. The sum of the lengths of 3127 * included at the end of the path. The sum of the lengths of the domain and
3099 * the domain and path may not exceed 100 characters. 3128 * path may not exceed 100 characters.
3100 */ 3129 */
3101 core.String path; 3130 core.String path;
3102 /** 3131 /**
3103 * The resource id of a Service in this application that should service the 3132 * Resource id of a service in this application that should serve the matched
3104 * matched request. The Service must already exist. Example: "default". 3133 * request. The service must already exist. Example: `default`.
3105 */ 3134 */
3106 core.String service; 3135 core.String service;
3107 3136
3108 UrlDispatchRule(); 3137 UrlDispatchRule();
3109 3138
3110 UrlDispatchRule.fromJson(core.Map _json) { 3139 UrlDispatchRule.fromJson(core.Map _json) {
3111 if (_json.containsKey("domain")) { 3140 if (_json.containsKey("domain")) {
3112 domain = _json["domain"]; 3141 domain = _json["domain"];
3113 } 3142 }
3114 if (_json.containsKey("path")) { 3143 if (_json.containsKey("path")) {
(...skipping 13 matching lines...) Expand all
3128 _json["path"] = path; 3157 _json["path"] = path;
3129 } 3158 }
3130 if (service != null) { 3159 if (service != null) {
3131 _json["service"] = service; 3160 _json["service"] = service;
3132 } 3161 }
3133 return _json; 3162 return _json;
3134 } 3163 }
3135 } 3164 }
3136 3165
3137 /** 3166 /**
3138 * A URL pattern and description of how it should be handled. App Engine can 3167 * URL pattern and description of how the URL should be handled. App Engine can
3139 * handle URLs by executing application code, or by serving static files 3168 * handle URLs by executing application code, or by serving static files
3140 * uploaded with the code, such as images, CSS or JavaScript. 3169 * uploaded with the version, such as images, CSS, or JavaScript.
3141 */ 3170 */
3142 class UrlMap { 3171 class UrlMap {
3143 /** Use API Endpoints to handle requests. */ 3172 /** Uses API Endpoints to handle requests. */
3144 ApiEndpointHandler apiEndpoint; 3173 ApiEndpointHandler apiEndpoint;
3145 /** 3174 /**
3146 * For users not logged in, how to handle access to resources with required 3175 * Action to take when users access resources that require authentication.
3147 * login. Defaults to "redirect". 3176 * Defaults to `redirect`.
3148 * Possible string values are: 3177 * Possible string values are:
3149 * - "AUTH_FAIL_ACTION_UNSPECIFIED" : A AUTH_FAIL_ACTION_UNSPECIFIED. 3178 * - "AUTH_FAIL_ACTION_UNSPECIFIED" : A AUTH_FAIL_ACTION_UNSPECIFIED.
3150 * - "AUTH_FAIL_ACTION_REDIRECT" : A AUTH_FAIL_ACTION_REDIRECT. 3179 * - "AUTH_FAIL_ACTION_REDIRECT" : A AUTH_FAIL_ACTION_REDIRECT.
3151 * - "AUTH_FAIL_ACTION_UNAUTHORIZED" : A AUTH_FAIL_ACTION_UNAUTHORIZED. 3180 * - "AUTH_FAIL_ACTION_UNAUTHORIZED" : A AUTH_FAIL_ACTION_UNAUTHORIZED.
3152 */ 3181 */
3153 core.String authFailAction; 3182 core.String authFailAction;
3154 /** 3183 /**
3155 * What level of login is required to access this resource. 3184 * Level of login required to access this resource.
3156 * Possible string values are: 3185 * Possible string values are:
3157 * - "LOGIN_UNSPECIFIED" : A LOGIN_UNSPECIFIED. 3186 * - "LOGIN_UNSPECIFIED" : A LOGIN_UNSPECIFIED.
3158 * - "LOGIN_OPTIONAL" : A LOGIN_OPTIONAL. 3187 * - "LOGIN_OPTIONAL" : A LOGIN_OPTIONAL.
3159 * - "LOGIN_ADMIN" : A LOGIN_ADMIN. 3188 * - "LOGIN_ADMIN" : A LOGIN_ADMIN.
3160 * - "LOGIN_REQUIRED" : A LOGIN_REQUIRED. 3189 * - "LOGIN_REQUIRED" : A LOGIN_REQUIRED.
3161 */ 3190 */
3162 core.String login; 3191 core.String login;
3163 /** 3192 /**
3164 * `30x` code to use when performing redirects for the `secure` field. A `302` 3193 * `30x` code to use when performing redirects for the `secure` field.
3165 * is used by default. 3194 * Defaults to `302`.
3166 * Possible string values are: 3195 * Possible string values are:
3167 * - "REDIRECT_HTTP_RESPONSE_CODE_UNSPECIFIED" : A 3196 * - "REDIRECT_HTTP_RESPONSE_CODE_UNSPECIFIED" : A
3168 * REDIRECT_HTTP_RESPONSE_CODE_UNSPECIFIED. 3197 * REDIRECT_HTTP_RESPONSE_CODE_UNSPECIFIED.
3169 * - "REDIRECT_HTTP_RESPONSE_CODE_301" : A REDIRECT_HTTP_RESPONSE_CODE_301. 3198 * - "REDIRECT_HTTP_RESPONSE_CODE_301" : A REDIRECT_HTTP_RESPONSE_CODE_301.
3170 * - "REDIRECT_HTTP_RESPONSE_CODE_302" : A REDIRECT_HTTP_RESPONSE_CODE_302. 3199 * - "REDIRECT_HTTP_RESPONSE_CODE_302" : A REDIRECT_HTTP_RESPONSE_CODE_302.
3171 * - "REDIRECT_HTTP_RESPONSE_CODE_303" : A REDIRECT_HTTP_RESPONSE_CODE_303. 3200 * - "REDIRECT_HTTP_RESPONSE_CODE_303" : A REDIRECT_HTTP_RESPONSE_CODE_303.
3172 * - "REDIRECT_HTTP_RESPONSE_CODE_307" : A REDIRECT_HTTP_RESPONSE_CODE_307. 3201 * - "REDIRECT_HTTP_RESPONSE_CODE_307" : A REDIRECT_HTTP_RESPONSE_CODE_307.
3173 */ 3202 */
3174 core.String redirectHttpResponseCode; 3203 core.String redirectHttpResponseCode;
3175 /** Executes a script to handle the request that matches the URL pattern. */ 3204 /** Executes a script to handle the request that matches this URL pattern. */
3176 ScriptHandler script; 3205 ScriptHandler script;
3177 /** 3206 /**
3178 * Configures whether security (HTTPS) should be enforced for this URL. 3207 * Security (HTTPS) enforcement for this URL.
3179 * Possible string values are: 3208 * Possible string values are:
3180 * - "SECURE_UNSPECIFIED" : A SECURE_UNSPECIFIED. 3209 * - "SECURE_UNSPECIFIED" : A SECURE_UNSPECIFIED.
3181 * - "SECURE_DEFAULT" : A SECURE_DEFAULT. 3210 * - "SECURE_DEFAULT" : A SECURE_DEFAULT.
3182 * - "SECURE_NEVER" : A SECURE_NEVER. 3211 * - "SECURE_NEVER" : A SECURE_NEVER.
3183 * - "SECURE_OPTIONAL" : A SECURE_OPTIONAL. 3212 * - "SECURE_OPTIONAL" : A SECURE_OPTIONAL.
3184 * - "SECURE_ALWAYS" : A SECURE_ALWAYS. 3213 * - "SECURE_ALWAYS" : A SECURE_ALWAYS.
3185 */ 3214 */
3186 core.String securityLevel; 3215 core.String securityLevel;
3187 /** Returns the contents of a file, such as an image, as the response. */ 3216 /** Returns the contents of a file, such as an image, as the response. */
3188 StaticFilesHandler staticFiles; 3217 StaticFilesHandler staticFiles;
3189 /** 3218 /**
3190 * A URL prefix. This value uses regular expression syntax (and so regexp 3219 * A URL prefix. Uses regular expression syntax, which means regexp special
3191 * special characters must be escaped), but it should not contain groupings. 3220 * characters must be escaped, but should not contain groupings. All URLs that
3192 * All URLs that begin with this prefix are handled by this handler, using the 3221 * begin with this prefix are handled by this handler, using the portion of
3193 * portion of the URL after the prefix as part of the file path. This is 3222 * the URL after the prefix as part of the file path.
3194 * always required.
3195 */ 3223 */
3196 core.String urlRegex; 3224 core.String urlRegex;
3197 3225
3198 UrlMap(); 3226 UrlMap();
3199 3227
3200 UrlMap.fromJson(core.Map _json) { 3228 UrlMap.fromJson(core.Map _json) {
3201 if (_json.containsKey("apiEndpoint")) { 3229 if (_json.containsKey("apiEndpoint")) {
3202 apiEndpoint = new ApiEndpointHandler.fromJson(_json["apiEndpoint"]); 3230 apiEndpoint = new ApiEndpointHandler.fromJson(_json["apiEndpoint"]);
3203 } 3231 }
3204 if (_json.containsKey("authFailAction")) { 3232 if (_json.containsKey("authFailAction")) {
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
3248 _json["staticFiles"] = (staticFiles).toJson(); 3276 _json["staticFiles"] = (staticFiles).toJson();
3249 } 3277 }
3250 if (urlRegex != null) { 3278 if (urlRegex != null) {
3251 _json["urlRegex"] = urlRegex; 3279 _json["urlRegex"] = urlRegex;
3252 } 3280 }
3253 return _json; 3281 return _json;
3254 } 3282 }
3255 } 3283 }
3256 3284
3257 /** 3285 /**
3258 * A Version is a specific set of source code and configuration files deployed 3286 * A Version resource is a specific set of source code and configuration files
3259 * to a service. 3287 * that are deployed into a service.
3260 */ 3288 */
3261 class Version { 3289 class Version {
3262 /** 3290 /**
3263 * Serving configuration for Google Cloud Endpoints. Only returned in `GET` 3291 * Serving configuration for [Google Cloud
3264 * requests if `view=FULL` is set. May only be set on create requests; once 3292 * Endpoints](https://cloud.google.com/appengine/docs/python/endpoints/). Only
3265 * created, is immutable. 3293 * returned in `GET` requests if `view=FULL` is set.
3266 */ 3294 */
3267 ApiConfigHandler apiConfig; 3295 ApiConfigHandler apiConfig;
3268 /** 3296 /**
3269 * Automatic scaling is the scaling policy that App Engine has used since its 3297 * Automatic scaling is based on request rate, response latencies, and other
3270 * inception. It is based on request rate, response latencies, and other
3271 * application metrics. 3298 * application metrics.
3272 */ 3299 */
3273 AutomaticScaling automaticScaling; 3300 AutomaticScaling automaticScaling;
3274 /** 3301 /**
3275 * A service with basic scaling will create an instance when the application 3302 * A service with basic scaling will create an instance when the application
3276 * receives a request. The instance will be turned down when the app becomes 3303 * receives a request. The instance will be turned down when the app becomes
3277 * idle. Basic scaling is ideal for work that is intermittent or driven by 3304 * idle. Basic scaling is ideal for work that is intermittent or driven by
3278 * user activity. 3305 * user activity.
3279 */ 3306 */
3280 BasicScaling basicScaling; 3307 BasicScaling basicScaling;
3281 /** Beta settings supplied to the application via metadata. */ 3308 /**
3309 * Metadata settings that are supplied to this version to enable beta runtime
3310 * features.
3311 */
3282 core.Map<core.String, core.String> betaSettings; 3312 core.Map<core.String, core.String> betaSettings;
3283 /** 3313 /** Time that this version was created. @OutputOnly */
3284 * Creation time of this version. This will be between the start and end times
3285 * of the operation that creates this version. @OutputOnly
3286 */
3287 core.String creationTime; 3314 core.String creationTime;
3288 /** 3315 /**
3289 * The length of time a static file served by a static file handler ought to 3316 * Duration that static files should be cached by web proxies and browsers.
3290 * be cached by web proxies and browsers, if the handler does not specify its 3317 * Only applicable if the corresponding
3291 * own expiration. Only returned in `GET` requests if `view=FULL` is set. May 3318 * [StaticFilesHandler](https://cloud.google.com/appengine/docs/admin-api/refe rence/rest/v1/apps.services.versions#staticfileshandler)
3292 * only be set on create requests; once created, is immutable. 3319 * does not specify its own expiration time. Only returned in `GET` requests
3320 * if `view=FULL` is set.
3293 */ 3321 */
3294 core.String defaultExpiration; 3322 core.String defaultExpiration;
3295 /** The email address of the user who created this version. @OutputOnly */ 3323 /** Email address of the user who created this version. @OutputOnly */
3296 core.String deployer; 3324 core.String deployer;
3297 /** 3325 /**
3298 * Code and application artifacts that make up this version. Only returned in 3326 * Code and application artifacts that make up this version. Only returned in
3299 * `GET` requests if `view=FULL` is set. May only be set on create requests; 3327 * `GET` requests if `view=FULL` is set.
3300 * once created, is immutable.
3301 */ 3328 */
3302 Deployment deployment; 3329 Deployment deployment;
3303 /** 3330 /**
3304 * Total size of version files hosted on App Engine disk in bytes. @OutputOnly 3331 * Total size of version files hosted on App Engine disk in bytes. @OutputOnly
3305 */ 3332 */
3306 core.String diskUsageBytes; 3333 core.String diskUsageBytes;
3307 /** 3334 /**
3308 * The App Engine execution environment to use for this version. Default: "1" 3335 * App Engine execution environment to use for this version. Defaults to `1`.
3309 */ 3336 */
3310 core.String env; 3337 core.String env;
3311 /** 3338 /**
3312 * Environment variables made available to the application. Only returned in 3339 * Environment variables made available to the application. Only returned in
3313 * `GET` requests if `view=FULL` is set. May only be set on create requests; 3340 * `GET` requests if `view=FULL` is set.
3314 * once created, is immutable.
3315 */ 3341 */
3316 core.Map<core.String, core.String> envVariables; 3342 core.Map<core.String, core.String> envVariables;
3317 /** 3343 /**
3318 * Custom static error pages instead of these generic error pages, (limit 10 3344 * Custom static error pages. Limited to 10KB per page. Only returned in `GET`
3319 * KB/page) Only returned in `GET` requests if `view=FULL` is set. May only be 3345 * requests if `view=FULL` is set.
3320 * set on create requests; once created, is immutable.
3321 */ 3346 */
3322 core.List<ErrorHandler> errorHandlers; 3347 core.List<ErrorHandler> errorHandlers;
3323 /** 3348 /**
3324 * An ordered list of URL Matching patterns that should be applied to incoming 3349 * An ordered list of URL-matching patterns that should be applied to incoming
3325 * requests. The first matching URL consumes the request, and subsequent 3350 * requests. The first matching URL handles the request and other request
3326 * handlers are not attempted. Only returned in `GET` requests if `view=FULL` 3351 * handlers are not attempted. Only returned in `GET` requests if `view=FULL`
3327 * is set. May only be set on create requests; once created, is immutable. 3352 * is set.
3328 */ 3353 */
3329 core.List<UrlMap> handlers; 3354 core.List<UrlMap> handlers;
3330 /** 3355 /**
3331 * Configure health checking for the VM instances. Unhealthy VM instances will 3356 * Configures health checking for VM instances. Unhealthy instances are be
3332 * be stopped and replaced with new instances. Only returned in `GET` requests 3357 * stopped and replaced with new instances. Only applicable for VM runtimes.
3333 * if `view=FULL` is set. May only be set on create requests; once created, is 3358 * Only returned in `GET` requests if `view=FULL` is set.
3334 * immutable.
3335 */ 3359 */
3336 HealthCheck healthCheck; 3360 HealthCheck healthCheck;
3337 /** 3361 /**
3338 * The relative name/path of the Version within the service. Example: "v1". 3362 * Relative name of the version within the module. Example: `v1`. Version
3339 * Version specifiers can contain lowercase letters, digits, and hyphens. It 3363 * names can contain only lowercase letters, numbers, or hyphens. Reserved
3340 * cannot begin with the prefix `ah-` and the names `default` and `latest` are 3364 * names: "default", "latest", and any name with the prefix "ah-".
3341 * reserved and cannot be used.
3342 */ 3365 */
3343 core.String id; 3366 core.String id;
3344 /** 3367 /**
3345 * Before an application can receive email or XMPP messages, the application 3368 * Before an application can receive email or XMPP messages, the application
3346 * must be configured to enable the service. 3369 * must be configured to enable the service.
3347 */ 3370 */
3348 core.List<core.String> inboundServices; 3371 core.List<core.String> inboundServices;
3349 /** 3372 /**
3350 * The instance class to use to run this app. Valid values for 3373 * Instance class that is used to run this version. Valid values are: *
3351 * AutomaticScaling are `[F1, F2, F4, F4_1G]`. Valid values for ManualScaling 3374 * AutomaticScaling: `F1`, `F2`, `F4`, `F4_1G` * ManualScaling or
3352 * and BasicScaling are `[B1, B2, B4, B8, B4_1G]`. Default: "F1" for 3375 * BasicScaling: `B1`, `B2`, `B4`, `B8`, `B4_1G` Defaults to `F1` for
3353 * AutomaticScaling, "B1" for ManualScaling and BasicScaling 3376 * AutomaticScaling and `B1` for ManualScaling or BasicScaling.
3354 */ 3377 */
3355 core.String instanceClass; 3378 core.String instanceClass;
3356 /** 3379 /**
3357 * Configuration for Python runtime third-party libraries required by the 3380 * Configuration for third-party Python runtime libraries required by the
3358 * application. Only returned in `GET` requests if `view=FULL` is set. May 3381 * application. Only returned in `GET` requests if `view=FULL` is set.
3359 * only be set on create requests; once created, is immutable.
3360 */ 3382 */
3361 core.List<Library> libraries; 3383 core.List<Library> libraries;
3362 /** 3384 /**
3363 * A service with manual scaling runs continuously, allowing you to perform 3385 * A service with manual scaling runs continuously, allowing you to perform
3364 * complex initialization and rely on the state of its memory over time. 3386 * complex initialization and rely on the state of its memory over time.
3365 */ 3387 */
3366 ManualScaling manualScaling; 3388 ManualScaling manualScaling;
3367 /** 3389 /**
3368 * The full path to the Version resource in the API. Example: 3390 * Full path to the Version resource in the API. Example:
3369 * "apps/myapp/services/default/versions/v1". @OutputOnly 3391 * `apps/myapp/services/default/versions/v1`. @OutputOnly
3370 */ 3392 */
3371 core.String name; 3393 core.String name;
3372 /** Used to specify extra network settings (for VM runtimes only). */ 3394 /** Extra network settings. Only applicable for VM runtimes. */
3373 Network network; 3395 Network network;
3374 /** 3396 /**
3375 * Go only. Files that match this pattern will not be built into the app. May 3397 * Files that match this pattern will not be built into this version. Only
3376 * only be set on create requests. 3398 * applicable for Go runtimes. Only returned in `GET` requests if `view=FULL`
3399 * is set.
3377 */ 3400 */
3378 core.String nobuildFilesRegex; 3401 core.String nobuildFilesRegex;
3379 /** 3402 /** Machine resources for this version. Only applicable for VM runtimes. */
3380 * Used to specify how many machine resources an app version needs (for VM
3381 * runtimes only).
3382 */
3383 Resources resources; 3403 Resources resources;
3384 /** The desired runtime. Values can include python27, java7, go, etc. */ 3404 /** Desired runtime. Example: `python27`. */
3385 core.String runtime; 3405 core.String runtime;
3386 /** 3406 /**
3387 * The current serving status of this version. Only `SERVING` versions will 3407 * Current serving status of this version. Only the versions with a `SERVING`
3388 * have instances created or billed for. If this field is unset when a version 3408 * status create instances and can be billed. `SERVING_STATUS_UNSPECIFIED` is
3389 * is created, `SERVING` status will be assumed. It is an error to explicitly 3409 * an invalid value. Defaults to `SERVING`.
3390 * set this field to `SERVING_STATUS_UNSPECIFIED`.
3391 * Possible string values are: 3410 * Possible string values are:
3392 * - "SERVING_STATUS_UNSPECIFIED" : A SERVING_STATUS_UNSPECIFIED. 3411 * - "SERVING_STATUS_UNSPECIFIED" : A SERVING_STATUS_UNSPECIFIED.
3393 * - "SERVING" : A SERVING. 3412 * - "SERVING" : A SERVING.
3394 * - "STOPPED" : A STOPPED. 3413 * - "STOPPED" : A STOPPED.
3395 */ 3414 */
3396 core.String servingStatus; 3415 core.String servingStatus;
3397 /** If true, multiple requests can be dispatched to the app at once. */ 3416 /** Whether multiple requests can be dispatched to this version at once. */
3398 core.bool threadsafe; 3417 core.bool threadsafe;
3399 /** Whether to deploy this app in a VM container. */ 3418 /** Whether to deploy this version in a container on a virtual machine. */
3400 core.bool vm; 3419 core.bool vm;
3401 3420
3402 Version(); 3421 Version();
3403 3422
3404 Version.fromJson(core.Map _json) { 3423 Version.fromJson(core.Map _json) {
3405 if (_json.containsKey("apiConfig")) { 3424 if (_json.containsKey("apiConfig")) {
3406 apiConfig = new ApiConfigHandler.fromJson(_json["apiConfig"]); 3425 apiConfig = new ApiConfigHandler.fromJson(_json["apiConfig"]);
3407 } 3426 }
3408 if (_json.containsKey("automaticScaling")) { 3427 if (_json.containsKey("automaticScaling")) {
3409 automaticScaling = new AutomaticScaling.fromJson(_json["automaticScaling"] ); 3428 automaticScaling = new AutomaticScaling.fromJson(_json["automaticScaling"] );
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
3564 } 3583 }
3565 if (threadsafe != null) { 3584 if (threadsafe != null) {
3566 _json["threadsafe"] = threadsafe; 3585 _json["threadsafe"] = threadsafe;
3567 } 3586 }
3568 if (vm != null) { 3587 if (vm != null) {
3569 _json["vm"] = vm; 3588 _json["vm"] = vm;
3570 } 3589 }
3571 return _json; 3590 return _json;
3572 } 3591 }
3573 } 3592 }
OLDNEW
« no previous file with comments | « generated/googleapis_beta/lib/appengine/v1beta4.dart ('k') | generated/googleapis_beta/lib/clouderrorreporting/v1beta1.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698