OLD | NEW |
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.v1beta4; | 3 library googleapis_beta.appengine.v1beta4; |
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 30 matching lines...) Expand all Loading... |
41 AppsLocationsResourceApi get locations => new AppsLocationsResourceApi(_reques
ter); | 41 AppsLocationsResourceApi get locations => new AppsLocationsResourceApi(_reques
ter); |
42 AppsModulesResourceApi get modules => new AppsModulesResourceApi(_requester); | 42 AppsModulesResourceApi get modules => new AppsModulesResourceApi(_requester); |
43 AppsOperationsResourceApi get operations => new AppsOperationsResourceApi(_req
uester); | 43 AppsOperationsResourceApi get operations => new AppsOperationsResourceApi(_req
uester); |
44 | 44 |
45 AppsResourceApi(commons.ApiRequester client) : | 45 AppsResourceApi(commons.ApiRequester client) : |
46 _requester = client; | 46 _requester = client; |
47 | 47 |
48 /** | 48 /** |
49 * Creates an App Engine application for a Google Cloud Platform project. This | 49 * Creates an App Engine application for a Google Cloud Platform project. This |
50 * requires a project that excludes an App Engine application. For details | 50 * requires a project that excludes an App Engine application. For details |
51 * about creating a project without an application, see the [Google Cloud | 51 * about creating a project without an application, see the Google Cloud |
52 * Resource Manager create project | 52 * Resource Manager create project topic |
53 * topic](https://cloud.google.com/resource-manager/docs/creating-project). | 53 * (https://cloud.google.com/resource-manager/docs/creating-project). |
54 * | 54 * |
55 * [request] - The metadata request object. | 55 * [request] - The metadata request object. |
56 * | 56 * |
57 * Request parameters: | 57 * Request parameters: |
58 * | 58 * |
59 * Completes with a [Operation]. | 59 * Completes with a [Operation]. |
60 * | 60 * |
61 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 61 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
62 * error. | 62 * error. |
63 * | 63 * |
(...skipping 23 matching lines...) Expand all Loading... |
87 downloadOptions: _downloadOptions); | 87 downloadOptions: _downloadOptions); |
88 return _response.then((data) => new Operation.fromJson(data)); | 88 return _response.then((data) => new Operation.fromJson(data)); |
89 } | 89 } |
90 | 90 |
91 /** | 91 /** |
92 * Gets information about an application. | 92 * Gets information about an application. |
93 * | 93 * |
94 * Request parameters: | 94 * Request parameters: |
95 * | 95 * |
96 * [appsId] - Part of `name`. Name of the application to get. Example: | 96 * [appsId] - Part of `name`. Name of the application to get. Example: |
97 * `apps/myapp`. | 97 * apps/myapp. |
98 * | 98 * |
99 * [ensureResourcesExist] - Certain resources associated with an application | 99 * [ensureResourcesExist] - Certain resources associated with an application |
100 * are created on-demand. Controls whether these resources should be created | 100 * are created on-demand. Controls whether these resources should be created |
101 * when performing the `GET` operation. If specified and any resources could | 101 * when performing the GET operation. If specified and any resources could not |
102 * not be created, the request will fail with an error code. Additionally, | 102 * be created, the request will fail with an error code. Additionally, this |
103 * this parameter can cause the request to take longer to complete. | 103 * parameter can cause the request to take longer to complete. |
104 * | 104 * |
105 * Completes with a [Application]. | 105 * Completes with a [Application]. |
106 * | 106 * |
107 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 107 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
108 * error. | 108 * error. |
109 * | 109 * |
110 * If the used [http.Client] completes with an error when making a REST call, | 110 * If the used [http.Client] completes with an error when making a REST call, |
111 * this method will complete with the same error. | 111 * this method will complete with the same error. |
112 */ | 112 */ |
113 async.Future<Application> get(core.String appsId, {core.bool ensureResourcesEx
ist}) { | 113 async.Future<Application> get(core.String appsId, {core.bool ensureResourcesEx
ist}) { |
(...skipping 17 matching lines...) Expand all Loading... |
131 "GET", | 131 "GET", |
132 body: _body, | 132 body: _body, |
133 queryParams: _queryParams, | 133 queryParams: _queryParams, |
134 uploadOptions: _uploadOptions, | 134 uploadOptions: _uploadOptions, |
135 uploadMedia: _uploadMedia, | 135 uploadMedia: _uploadMedia, |
136 downloadOptions: _downloadOptions); | 136 downloadOptions: _downloadOptions); |
137 return _response.then((data) => new Application.fromJson(data)); | 137 return _response.then((data) => new Application.fromJson(data)); |
138 } | 138 } |
139 | 139 |
140 /** | 140 /** |
141 * Updates application fields. | 141 * Updates the specified Application resource. You can update the following |
| 142 * fields: auth_domain |
| 143 * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta4/a
pps#Application.FIELDS.auth_domain) |
| 144 * default_cookie_expiration |
| 145 * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta4/a
pps#Application.FIELDS.default_cookie_expiration) |
142 * | 146 * |
143 * [request] - The metadata request object. | 147 * [request] - The metadata request object. |
144 * | 148 * |
145 * Request parameters: | 149 * Request parameters: |
146 * | 150 * |
147 * [appsId] - Part of `name`. Name of the application to update. For example: | 151 * [appsId] - Part of `name`. Name of the Application resource to update. |
148 * "apps/myapp". | 152 * Example: apps/myapp. |
149 * | 153 * |
150 * [mask] - Standard field mask for the set of fields to be updated. | 154 * [mask] - Standard field mask for the set of fields to be updated. |
151 * | 155 * |
152 * Completes with a [Operation]. | 156 * Completes with a [Operation]. |
153 * | 157 * |
154 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 158 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
155 * error. | 159 * error. |
156 * | 160 * |
157 * If the used [http.Client] completes with an error when making a REST call, | 161 * If the used [http.Client] completes with an error when making a REST call, |
158 * this method will complete with the same error. | 162 * this method will complete with the same error. |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
305 | 309 |
306 AppsModulesResourceApi(commons.ApiRequester client) : | 310 AppsModulesResourceApi(commons.ApiRequester client) : |
307 _requester = client; | 311 _requester = client; |
308 | 312 |
309 /** | 313 /** |
310 * Deletes the specified module and all enclosed versions. | 314 * Deletes the specified module and all enclosed versions. |
311 * | 315 * |
312 * Request parameters: | 316 * Request parameters: |
313 * | 317 * |
314 * [appsId] - Part of `name`. Name of the resource requested. Example: | 318 * [appsId] - Part of `name`. Name of the resource requested. Example: |
315 * `apps/myapp/modules/default`. | 319 * apps/myapp/modules/default. |
316 * | 320 * |
317 * [modulesId] - Part of `name`. See documentation of `appsId`. | 321 * [modulesId] - Part of `name`. See documentation of `appsId`. |
318 * | 322 * |
319 * Completes with a [Operation]. | 323 * Completes with a [Operation]. |
320 * | 324 * |
321 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 325 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
322 * error. | 326 * error. |
323 * | 327 * |
324 * If the used [http.Client] completes with an error when making a REST call, | 328 * If the used [http.Client] completes with an error when making a REST call, |
325 * this method will complete with the same error. | 329 * this method will complete with the same error. |
(...skipping 24 matching lines...) Expand all Loading... |
350 downloadOptions: _downloadOptions); | 354 downloadOptions: _downloadOptions); |
351 return _response.then((data) => new Operation.fromJson(data)); | 355 return _response.then((data) => new Operation.fromJson(data)); |
352 } | 356 } |
353 | 357 |
354 /** | 358 /** |
355 * Gets the current configuration of the specified module. | 359 * Gets the current configuration of the specified module. |
356 * | 360 * |
357 * Request parameters: | 361 * Request parameters: |
358 * | 362 * |
359 * [appsId] - Part of `name`. Name of the resource requested. Example: | 363 * [appsId] - Part of `name`. Name of the resource requested. Example: |
360 * `apps/myapp/modules/default`. | 364 * apps/myapp/modules/default. |
361 * | 365 * |
362 * [modulesId] - Part of `name`. See documentation of `appsId`. | 366 * [modulesId] - Part of `name`. See documentation of `appsId`. |
363 * | 367 * |
364 * Completes with a [Module]. | 368 * Completes with a [Module]. |
365 * | 369 * |
366 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 370 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
367 * error. | 371 * error. |
368 * | 372 * |
369 * If the used [http.Client] completes with an error when making a REST call, | 373 * If the used [http.Client] completes with an error when making a REST call, |
370 * this method will complete with the same error. | 374 * this method will complete with the same error. |
(...skipping 24 matching lines...) Expand all Loading... |
395 downloadOptions: _downloadOptions); | 399 downloadOptions: _downloadOptions); |
396 return _response.then((data) => new Module.fromJson(data)); | 400 return _response.then((data) => new Module.fromJson(data)); |
397 } | 401 } |
398 | 402 |
399 /** | 403 /** |
400 * Lists all the modules in the application. | 404 * Lists all the modules in the application. |
401 * | 405 * |
402 * Request parameters: | 406 * Request parameters: |
403 * | 407 * |
404 * [appsId] - Part of `name`. Name of the resource requested. Example: | 408 * [appsId] - Part of `name`. Name of the resource requested. Example: |
405 * `apps/myapp`. | 409 * apps/myapp. |
406 * | 410 * |
407 * [pageSize] - Maximum results to return per page. | 411 * [pageSize] - Maximum results to return per page. |
408 * | 412 * |
409 * [pageToken] - Continuation token for fetching the next page of results. | 413 * [pageToken] - Continuation token for fetching the next page of results. |
410 * | 414 * |
411 * Completes with a [ListModulesResponse]. | 415 * Completes with a [ListModulesResponse]. |
412 * | 416 * |
413 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 417 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
414 * error. | 418 * error. |
415 * | 419 * |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
447 } | 451 } |
448 | 452 |
449 /** | 453 /** |
450 * Updates the configuration of the specified module. | 454 * Updates the configuration of the specified module. |
451 * | 455 * |
452 * [request] - The metadata request object. | 456 * [request] - The metadata request object. |
453 * | 457 * |
454 * Request parameters: | 458 * Request parameters: |
455 * | 459 * |
456 * [appsId] - Part of `name`. Name of the resource to update. Example: | 460 * [appsId] - Part of `name`. Name of the resource to update. Example: |
457 * `apps/myapp/modules/default`. | 461 * apps/myapp/modules/default. |
458 * | 462 * |
459 * [modulesId] - Part of `name`. See documentation of `appsId`. | 463 * [modulesId] - Part of `name`. See documentation of `appsId`. |
460 * | 464 * |
461 * [mask] - Standard field mask for the set of fields to be updated. | 465 * [mask] - Standard field mask for the set of fields to be updated. |
462 * | 466 * |
463 * [migrateTraffic] - Set to `true` to gradually shift traffic from one | 467 * [migrateTraffic] - Set to true to gradually shift traffic from one version |
464 * version to another single version. By default, traffic is shifted | 468 * to another single version. By default, traffic is shifted immediately. For |
465 * immediately. For gradual traffic migration, the target version must be | 469 * gradual traffic migration, the target version must be located within |
466 * located within instances that are configured for both [warmup | 470 * instances that are configured for both warmup requests |
467 * requests](https://cloud.google.com/appengine/docs/admin-api/reference/rest/
v1beta4/apps.modules.versions#inboundservicetype) | 471 * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta4/a
pps.modules.versions#inboundservicetype) |
468 * and [automatic | 472 * and automatic scaling |
469 * scaling](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v
1beta4/apps.modules.versions#automaticscaling). | 473 * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta4/a
pps.modules.versions#automaticscaling). |
470 * You must specify the | 474 * You must specify the shardBy |
471 * [`shardBy`](https://cloud.google.com/appengine/docs/admin-api/reference/res
t/v1beta4/apps.modules#shardby) | 475 * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta4/a
pps.modules#shardby) |
472 * field in the Module resource. Gradual traffic migration is not supported in | 476 * field in the Module resource. Gradual traffic migration is not supported in |
473 * the App Engine flexible environment. For examples, see [Migrating and | 477 * the App Engine flexible environment. For examples, see Migrating and |
474 * Splitting | 478 * Splitting Traffic |
475 * Traffic](https://cloud.google.com/appengine/docs/admin-api/migrating-splitt
ing-traffic). | 479 * (https://cloud.google.com/appengine/docs/admin-api/migrating-splitting-traf
fic). |
476 * | 480 * |
477 * Completes with a [Operation]. | 481 * Completes with a [Operation]. |
478 * | 482 * |
479 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 483 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
480 * error. | 484 * error. |
481 * | 485 * |
482 * If the used [http.Client] completes with an error when making a REST call, | 486 * If the used [http.Client] completes with an error when making a REST call, |
483 * this method will complete with the same error. | 487 * this method will complete with the same error. |
484 */ | 488 */ |
485 async.Future<Operation> patch(Module request, core.String appsId, core.String
modulesId, {core.String mask, core.bool migrateTraffic}) { | 489 async.Future<Operation> patch(Module request, core.String appsId, core.String
modulesId, {core.String mask, core.bool migrateTraffic}) { |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
530 _requester = client; | 534 _requester = client; |
531 | 535 |
532 /** | 536 /** |
533 * Deploys code and resource files to a new version. | 537 * Deploys code and resource files to a new version. |
534 * | 538 * |
535 * [request] - The metadata request object. | 539 * [request] - The metadata request object. |
536 * | 540 * |
537 * Request parameters: | 541 * Request parameters: |
538 * | 542 * |
539 * [appsId] - Part of `name`. Name of the resource to update. Example: | 543 * [appsId] - Part of `name`. Name of the resource to update. Example: |
540 * `apps/myapp/modules/default`. | 544 * apps/myapp/modules/default. |
541 * | 545 * |
542 * [modulesId] - Part of `name`. See documentation of `appsId`. | 546 * [modulesId] - Part of `name`. See documentation of `appsId`. |
543 * | 547 * |
544 * Completes with a [Operation]. | 548 * Completes with a [Operation]. |
545 * | 549 * |
546 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 550 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
547 * error. | 551 * error. |
548 * | 552 * |
549 * If the used [http.Client] completes with an error when making a REST call, | 553 * If the used [http.Client] completes with an error when making a REST call, |
550 * this method will complete with the same error. | 554 * this method will complete with the same error. |
(...skipping 27 matching lines...) Expand all Loading... |
578 downloadOptions: _downloadOptions); | 582 downloadOptions: _downloadOptions); |
579 return _response.then((data) => new Operation.fromJson(data)); | 583 return _response.then((data) => new Operation.fromJson(data)); |
580 } | 584 } |
581 | 585 |
582 /** | 586 /** |
583 * Deletes an existing version. | 587 * Deletes an existing version. |
584 * | 588 * |
585 * Request parameters: | 589 * Request parameters: |
586 * | 590 * |
587 * [appsId] - Part of `name`. Name of the resource requested. Example: | 591 * [appsId] - Part of `name`. Name of the resource requested. Example: |
588 * `apps/myapp/modules/default/versions/v1`. | 592 * apps/myapp/modules/default/versions/v1. |
589 * | 593 * |
590 * [modulesId] - Part of `name`. See documentation of `appsId`. | 594 * [modulesId] - Part of `name`. See documentation of `appsId`. |
591 * | 595 * |
592 * [versionsId] - Part of `name`. See documentation of `appsId`. | 596 * [versionsId] - Part of `name`. See documentation of `appsId`. |
593 * | 597 * |
594 * Completes with a [Operation]. | 598 * Completes with a [Operation]. |
595 * | 599 * |
596 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 600 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
597 * error. | 601 * error. |
598 * | 602 * |
(...skipping 24 matching lines...) Expand all Loading... |
623 "DELETE", | 627 "DELETE", |
624 body: _body, | 628 body: _body, |
625 queryParams: _queryParams, | 629 queryParams: _queryParams, |
626 uploadOptions: _uploadOptions, | 630 uploadOptions: _uploadOptions, |
627 uploadMedia: _uploadMedia, | 631 uploadMedia: _uploadMedia, |
628 downloadOptions: _downloadOptions); | 632 downloadOptions: _downloadOptions); |
629 return _response.then((data) => new Operation.fromJson(data)); | 633 return _response.then((data) => new Operation.fromJson(data)); |
630 } | 634 } |
631 | 635 |
632 /** | 636 /** |
633 * Gets the specified Version resource. By default, only a `BASIC_VIEW` will | 637 * Gets the specified Version resource. By default, only a BASIC_VIEW will be |
634 * be returned. Specify the `FULL_VIEW` parameter to get the full resource. | 638 * returned. Specify the FULL_VIEW parameter to get the full resource. |
635 * | 639 * |
636 * Request parameters: | 640 * Request parameters: |
637 * | 641 * |
638 * [appsId] - Part of `name`. Name of the resource requested. Example: | 642 * [appsId] - Part of `name`. Name of the resource requested. Example: |
639 * `apps/myapp/modules/default/versions/v1`. | 643 * apps/myapp/modules/default/versions/v1. |
640 * | 644 * |
641 * [modulesId] - Part of `name`. See documentation of `appsId`. | 645 * [modulesId] - Part of `name`. See documentation of `appsId`. |
642 * | 646 * |
643 * [versionsId] - Part of `name`. See documentation of `appsId`. | 647 * [versionsId] - Part of `name`. See documentation of `appsId`. |
644 * | 648 * |
645 * [view] - Controls the set of fields returned in the `Get` response. | 649 * [view] - Controls the set of fields returned in the Get response. |
646 * Possible string values are: | 650 * Possible string values are: |
647 * - "BASIC" : A BASIC. | 651 * - "BASIC" : A BASIC. |
648 * - "FULL" : A FULL. | 652 * - "FULL" : A FULL. |
649 * | 653 * |
650 * Completes with a [Version]. | 654 * Completes with a [Version]. |
651 * | 655 * |
652 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 656 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
653 * error. | 657 * error. |
654 * | 658 * |
655 * If the used [http.Client] completes with an error when making a REST call, | 659 * If the used [http.Client] completes with an error when making a REST call, |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
687 downloadOptions: _downloadOptions); | 691 downloadOptions: _downloadOptions); |
688 return _response.then((data) => new Version.fromJson(data)); | 692 return _response.then((data) => new Version.fromJson(data)); |
689 } | 693 } |
690 | 694 |
691 /** | 695 /** |
692 * Lists the versions of a module. | 696 * Lists the versions of a module. |
693 * | 697 * |
694 * Request parameters: | 698 * Request parameters: |
695 * | 699 * |
696 * [appsId] - Part of `name`. Name of the resource requested. Example: | 700 * [appsId] - Part of `name`. Name of the resource requested. Example: |
697 * `apps/myapp/modules/default`. | 701 * apps/myapp/modules/default. |
698 * | 702 * |
699 * [modulesId] - Part of `name`. See documentation of `appsId`. | 703 * [modulesId] - Part of `name`. See documentation of `appsId`. |
700 * | 704 * |
701 * [view] - Controls the set of fields returned in the `List` response. | 705 * [view] - Controls the set of fields returned in the List response. |
702 * Possible string values are: | 706 * Possible string values are: |
703 * - "BASIC" : A BASIC. | 707 * - "BASIC" : A BASIC. |
704 * - "FULL" : A FULL. | 708 * - "FULL" : A FULL. |
705 * | 709 * |
706 * [pageSize] - Maximum results to return per page. | 710 * [pageSize] - Maximum results to return per page. |
707 * | 711 * |
708 * [pageToken] - Continuation token for fetching the next page of results. | 712 * [pageToken] - Continuation token for fetching the next page of results. |
709 * | 713 * |
710 * Completes with a [ListVersionsResponse]. | 714 * Completes with a [ListVersionsResponse]. |
711 * | 715 * |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
747 queryParams: _queryParams, | 751 queryParams: _queryParams, |
748 uploadOptions: _uploadOptions, | 752 uploadOptions: _uploadOptions, |
749 uploadMedia: _uploadMedia, | 753 uploadMedia: _uploadMedia, |
750 downloadOptions: _downloadOptions); | 754 downloadOptions: _downloadOptions); |
751 return _response.then((data) => new ListVersionsResponse.fromJson(data)); | 755 return _response.then((data) => new ListVersionsResponse.fromJson(data)); |
752 } | 756 } |
753 | 757 |
754 /** | 758 /** |
755 * Updates the specified Version resource. You can specify the following | 759 * Updates the specified Version resource. You can specify the following |
756 * fields depending on the App Engine environment and type of scaling that the | 760 * fields depending on the App Engine environment and type of scaling that the |
757 * version resource uses: * | 761 * version resource uses: serving_status |
758 * [`serving_status`](https://cloud.google.com/appengine/docs/admin-api/refere
nce/rest/v1beta4/apps.modules.versions#Version.FIELDS.serving_status): | 762 * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta4/a
pps.modules.versions#Version.FIELDS.serving_status): |
759 * For Version resources that use basic scaling, manual scaling, or run in the | 763 * For Version resources that use basic scaling, manual scaling, or run in the |
760 * App Engine flexible environment. * | 764 * App Engine flexible environment. instance_class |
761 * [`instance_class`](https://cloud.google.com/appengine/docs/admin-api/refere
nce/rest/v1beta4/apps.modules.versions#Version.FIELDS.instance_class): | 765 * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta4/a
pps.modules.versions#Version.FIELDS.instance_class): |
762 * For Version resources that run in the App Engine standard environment. * | 766 * For Version resources that run in the App Engine standard environment. |
763 * [`automatic_scaling.min_idle_instances`](https://cloud.google.com/appengine
/docs/admin-api/reference/rest/v1beta4/apps.modules.versions#Version.FIELDS.auto
matic_scaling): | 767 * automatic_scaling.min_idle_instances |
| 768 * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta4/a
pps.modules.versions#Version.FIELDS.automatic_scaling): |
764 * For Version resources that use automatic scaling and run in the App Engine | 769 * For Version resources that use automatic scaling and run in the App Engine |
765 * standard environment. * | 770 * standard environment. automatic_scaling.max_idle_instances |
766 * [`automatic_scaling.max_idle_instances`](https://cloud.google.com/appengine
/docs/admin-api/reference/rest/v1beta4/apps.modules.versions#Version.FIELDS.auto
matic_scaling): | 771 * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta4/a
pps.modules.versions#Version.FIELDS.automatic_scaling): |
767 * For Version resources that use automatic scaling and run in the App Engine | 772 * For Version resources that use automatic scaling and run in the App Engine |
768 * standard environment. | 773 * standard environment. |
769 * | 774 * |
770 * [request] - The metadata request object. | 775 * [request] - The metadata request object. |
771 * | 776 * |
772 * Request parameters: | 777 * Request parameters: |
773 * | 778 * |
774 * [appsId] - Part of `name`. Name of the resource to update. Example: | 779 * [appsId] - Part of `name`. Name of the resource to update. Example: |
775 * `apps/myapp/modules/default/versions/1`. | 780 * apps/myapp/modules/default/versions/1. |
776 * | 781 * |
777 * [modulesId] - Part of `name`. See documentation of `appsId`. | 782 * [modulesId] - Part of `name`. See documentation of `appsId`. |
778 * | 783 * |
779 * [versionsId] - Part of `name`. See documentation of `appsId`. | 784 * [versionsId] - Part of `name`. See documentation of `appsId`. |
780 * | 785 * |
781 * [mask] - Standard field mask for the set of fields to be updated. | 786 * [mask] - Standard field mask for the set of fields to be updated. |
782 * | 787 * |
783 * Completes with a [Operation]. | 788 * Completes with a [Operation]. |
784 * | 789 * |
785 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 790 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
831 final commons.ApiRequester _requester; | 836 final commons.ApiRequester _requester; |
832 | 837 |
833 AppsModulesVersionsInstancesResourceApi(commons.ApiRequester client) : | 838 AppsModulesVersionsInstancesResourceApi(commons.ApiRequester client) : |
834 _requester = client; | 839 _requester = client; |
835 | 840 |
836 /** | 841 /** |
837 * Enables debugging on a VM instance. This allows you to use the SSH command | 842 * Enables debugging on a VM instance. This allows you to use the SSH command |
838 * to connect to the virtual machine where the instance lives. While in "debug | 843 * to connect to the virtual machine where the instance lives. While in "debug |
839 * mode", the instance continues to serve live traffic. You should delete the | 844 * mode", the instance continues to serve live traffic. You should delete the |
840 * instance when you are done debugging and then allow the system to take over | 845 * instance when you are done debugging and then allow the system to take over |
841 * and determine if another instance should be started. Only applicable for | 846 * and determine if another instance should be started.Only applicable for |
842 * instances in App Engine flexible environment. | 847 * instances in App Engine flexible environment. |
843 * | 848 * |
844 * [request] - The metadata request object. | 849 * [request] - The metadata request object. |
845 * | 850 * |
846 * Request parameters: | 851 * Request parameters: |
847 * | 852 * |
848 * [appsId] - Part of `name`. Name of the resource requested. Example: | 853 * [appsId] - Part of `name`. Name of the resource requested. Example: |
849 * `apps/myapp/modules/default/versions/v1/instances/instance-1`. | 854 * apps/myapp/modules/default/versions/v1/instances/instance-1. |
850 * | 855 * |
851 * [modulesId] - Part of `name`. See documentation of `appsId`. | 856 * [modulesId] - Part of `name`. See documentation of `appsId`. |
852 * | 857 * |
853 * [versionsId] - Part of `name`. See documentation of `appsId`. | 858 * [versionsId] - Part of `name`. See documentation of `appsId`. |
854 * | 859 * |
855 * [instancesId] - Part of `name`. See documentation of `appsId`. | 860 * [instancesId] - Part of `name`. See documentation of `appsId`. |
856 * | 861 * |
857 * Completes with a [Operation]. | 862 * Completes with a [Operation]. |
858 * | 863 * |
859 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 864 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
897 downloadOptions: _downloadOptions); | 902 downloadOptions: _downloadOptions); |
898 return _response.then((data) => new Operation.fromJson(data)); | 903 return _response.then((data) => new Operation.fromJson(data)); |
899 } | 904 } |
900 | 905 |
901 /** | 906 /** |
902 * Stops a running instance. | 907 * Stops a running instance. |
903 * | 908 * |
904 * Request parameters: | 909 * Request parameters: |
905 * | 910 * |
906 * [appsId] - Part of `name`. Name of the resource requested. Example: | 911 * [appsId] - Part of `name`. Name of the resource requested. Example: |
907 * `apps/myapp/modules/default/versions/v1/instances/instance-1`. | 912 * apps/myapp/modules/default/versions/v1/instances/instance-1. |
908 * | 913 * |
909 * [modulesId] - Part of `name`. See documentation of `appsId`. | 914 * [modulesId] - Part of `name`. See documentation of `appsId`. |
910 * | 915 * |
911 * [versionsId] - Part of `name`. See documentation of `appsId`. | 916 * [versionsId] - Part of `name`. See documentation of `appsId`. |
912 * | 917 * |
913 * [instancesId] - Part of `name`. See documentation of `appsId`. | 918 * [instancesId] - Part of `name`. See documentation of `appsId`. |
914 * | 919 * |
915 * Completes with a [Operation]. | 920 * Completes with a [Operation]. |
916 * | 921 * |
917 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 922 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
952 downloadOptions: _downloadOptions); | 957 downloadOptions: _downloadOptions); |
953 return _response.then((data) => new Operation.fromJson(data)); | 958 return _response.then((data) => new Operation.fromJson(data)); |
954 } | 959 } |
955 | 960 |
956 /** | 961 /** |
957 * Gets instance information. | 962 * Gets instance information. |
958 * | 963 * |
959 * Request parameters: | 964 * Request parameters: |
960 * | 965 * |
961 * [appsId] - Part of `name`. Name of the resource requested. Example: | 966 * [appsId] - Part of `name`. Name of the resource requested. Example: |
962 * `apps/myapp/modules/default/versions/v1/instances/instance-1`. | 967 * apps/myapp/modules/default/versions/v1/instances/instance-1. |
963 * | 968 * |
964 * [modulesId] - Part of `name`. See documentation of `appsId`. | 969 * [modulesId] - Part of `name`. See documentation of `appsId`. |
965 * | 970 * |
966 * [versionsId] - Part of `name`. See documentation of `appsId`. | 971 * [versionsId] - Part of `name`. See documentation of `appsId`. |
967 * | 972 * |
968 * [instancesId] - Part of `name`. See documentation of `appsId`. | 973 * [instancesId] - Part of `name`. See documentation of `appsId`. |
969 * | 974 * |
970 * Completes with a [Instance]. | 975 * Completes with a [Instance]. |
971 * | 976 * |
972 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 977 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1007 downloadOptions: _downloadOptions); | 1012 downloadOptions: _downloadOptions); |
1008 return _response.then((data) => new Instance.fromJson(data)); | 1013 return _response.then((data) => new Instance.fromJson(data)); |
1009 } | 1014 } |
1010 | 1015 |
1011 /** | 1016 /** |
1012 * Lists the instances of a version. | 1017 * Lists the instances of a version. |
1013 * | 1018 * |
1014 * Request parameters: | 1019 * Request parameters: |
1015 * | 1020 * |
1016 * [appsId] - Part of `name`. Name of the resource requested. Example: | 1021 * [appsId] - Part of `name`. Name of the resource requested. Example: |
1017 * `apps/myapp/modules/default/versions/v1`. | 1022 * apps/myapp/modules/default/versions/v1. |
1018 * | 1023 * |
1019 * [modulesId] - Part of `name`. See documentation of `appsId`. | 1024 * [modulesId] - Part of `name`. See documentation of `appsId`. |
1020 * | 1025 * |
1021 * [versionsId] - Part of `name`. See documentation of `appsId`. | 1026 * [versionsId] - Part of `name`. See documentation of `appsId`. |
1022 * | 1027 * |
1023 * [pageSize] - Maximum results to return per page. | 1028 * [pageSize] - Maximum results to return per page. |
1024 * | 1029 * |
1025 * [pageToken] - Continuation token for fetching the next page of results. | 1030 * [pageToken] - Continuation token for fetching the next page of results. |
1026 * | 1031 * |
1027 * Completes with a [ListInstancesResponse]. | 1032 * Completes with a [ListInstancesResponse]. |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1118 body: _body, | 1123 body: _body, |
1119 queryParams: _queryParams, | 1124 queryParams: _queryParams, |
1120 uploadOptions: _uploadOptions, | 1125 uploadOptions: _uploadOptions, |
1121 uploadMedia: _uploadMedia, | 1126 uploadMedia: _uploadMedia, |
1122 downloadOptions: _downloadOptions); | 1127 downloadOptions: _downloadOptions); |
1123 return _response.then((data) => new Operation.fromJson(data)); | 1128 return _response.then((data) => new Operation.fromJson(data)); |
1124 } | 1129 } |
1125 | 1130 |
1126 /** | 1131 /** |
1127 * Lists operations that match the specified filter in the request. If the | 1132 * Lists operations that match the specified filter in the request. If the |
1128 * server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the | 1133 * server doesn't support this method, it returns UNIMPLEMENTED.NOTE: the name |
1129 * `name` binding below allows API services to override the binding to use | 1134 * binding below allows API services to override the binding to use different |
1130 * different resource name schemes, such as `users / * /operations`. | 1135 * resource name schemes, such as users / * /operations. |
1131 * | 1136 * |
1132 * Request parameters: | 1137 * Request parameters: |
1133 * | 1138 * |
1134 * [appsId] - Part of `name`. The name of the operation collection. | 1139 * [appsId] - Part of `name`. The name of the operation collection. |
1135 * | 1140 * |
1136 * [filter] - The standard list filter. | 1141 * [filter] - The standard list filter. |
1137 * | 1142 * |
1138 * [pageSize] - The standard list page size. | 1143 * [pageSize] - The standard list page size. |
1139 * | 1144 * |
1140 * [pageToken] - The standard list page token. | 1145 * [pageToken] - The standard list page token. |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1178 uploadMedia: _uploadMedia, | 1183 uploadMedia: _uploadMedia, |
1179 downloadOptions: _downloadOptions); | 1184 downloadOptions: _downloadOptions); |
1180 return _response.then((data) => new ListOperationsResponse.fromJson(data)); | 1185 return _response.then((data) => new ListOperationsResponse.fromJson(data)); |
1181 } | 1186 } |
1182 | 1187 |
1183 } | 1188 } |
1184 | 1189 |
1185 | 1190 |
1186 | 1191 |
1187 /** | 1192 /** |
1188 * [Google Cloud | 1193 * Google Cloud Endpoints |
1189 * Endpoints](https://cloud.google.com/appengine/docs/python/endpoints/) | 1194 * (https://cloud.google.com/appengine/docs/python/endpoints/) configuration for |
1190 * configuration for API handlers. | 1195 * API handlers. |
1191 */ | 1196 */ |
1192 class ApiConfigHandler { | 1197 class ApiConfigHandler { |
1193 /** | 1198 /** |
1194 * Action to take when users access resources that require authentication. | 1199 * Action to take when users access resources that require authentication. |
1195 * Defaults to `redirect`. | 1200 * Defaults to redirect. |
1196 * Possible string values are: | 1201 * Possible string values are: |
1197 * - "AUTH_FAIL_ACTION_UNSPECIFIED" : A AUTH_FAIL_ACTION_UNSPECIFIED. | 1202 * - "AUTH_FAIL_ACTION_UNSPECIFIED" : A AUTH_FAIL_ACTION_UNSPECIFIED. |
1198 * - "AUTH_FAIL_ACTION_REDIRECT" : A AUTH_FAIL_ACTION_REDIRECT. | 1203 * - "AUTH_FAIL_ACTION_REDIRECT" : A AUTH_FAIL_ACTION_REDIRECT. |
1199 * - "AUTH_FAIL_ACTION_UNAUTHORIZED" : A AUTH_FAIL_ACTION_UNAUTHORIZED. | 1204 * - "AUTH_FAIL_ACTION_UNAUTHORIZED" : A AUTH_FAIL_ACTION_UNAUTHORIZED. |
1200 */ | 1205 */ |
1201 core.String authFailAction; | 1206 core.String authFailAction; |
1202 /** | 1207 /** |
1203 * Level of login required to access this resource. Defaults to `optional`. | 1208 * Level of login required to access this resource. Defaults to optional. |
1204 * Possible string values are: | 1209 * Possible string values are: |
1205 * - "LOGIN_UNSPECIFIED" : A LOGIN_UNSPECIFIED. | 1210 * - "LOGIN_UNSPECIFIED" : A LOGIN_UNSPECIFIED. |
1206 * - "LOGIN_OPTIONAL" : A LOGIN_OPTIONAL. | 1211 * - "LOGIN_OPTIONAL" : A LOGIN_OPTIONAL. |
1207 * - "LOGIN_ADMIN" : A LOGIN_ADMIN. | 1212 * - "LOGIN_ADMIN" : A LOGIN_ADMIN. |
1208 * - "LOGIN_REQUIRED" : A LOGIN_REQUIRED. | 1213 * - "LOGIN_REQUIRED" : A LOGIN_REQUIRED. |
1209 */ | 1214 */ |
1210 core.String login; | 1215 core.String login; |
1211 /** Path to the script from the application root directory. */ | 1216 /** Path to the script from the application root directory. */ |
1212 core.String script; | 1217 core.String script; |
1213 /** | 1218 /** |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1286 } | 1291 } |
1287 } | 1292 } |
1288 | 1293 |
1289 /** | 1294 /** |
1290 * An Application resource contains the top-level configuration of an App Engine | 1295 * An Application resource contains the top-level configuration of an App Engine |
1291 * application. | 1296 * application. |
1292 */ | 1297 */ |
1293 class Application { | 1298 class Application { |
1294 /** | 1299 /** |
1295 * Google Apps authentication domain that controls which users can access this | 1300 * Google Apps authentication domain that controls which users can access this |
1296 * application. Defaults to open access for any Google Account. | 1301 * application.Defaults to open access for any Google Account. |
1297 */ | 1302 */ |
1298 core.String authDomain; | 1303 core.String authDomain; |
1299 /** | 1304 /** |
1300 * Google Cloud Storage bucket that can be used for storing files associated | 1305 * Google Cloud Storage bucket that can be used for storing files associated |
1301 * with this application. This bucket is associated with the application and | 1306 * with this application. This bucket is associated with the application and |
1302 * can be used by the gcloud deployment commands. @OutputOnly | 1307 * can be used by the gcloud deployment commands.@OutputOnly |
1303 */ | 1308 */ |
1304 core.String codeBucket; | 1309 core.String codeBucket; |
1305 /** | 1310 /** |
1306 * Google Cloud Storage bucket that can be used by this application to store | 1311 * Google Cloud Storage bucket that can be used by this application to store |
1307 * content. @OutputOnly | 1312 * content.@OutputOnly |
1308 */ | 1313 */ |
1309 core.String defaultBucket; | 1314 core.String defaultBucket; |
1310 /** Cookie expiration policy for this application. @OutputOnly */ | 1315 /** Cookie expiration policy for this application. */ |
1311 core.String defaultCookieExpiration; | 1316 core.String defaultCookieExpiration; |
1312 /** | 1317 /** |
1313 * Hostname used to reach the application, as resolved by App Engine. | 1318 * Hostname used to reach the application, as resolved by App |
1314 * @OutputOnly | 1319 * Engine.@OutputOnly |
1315 */ | 1320 */ |
1316 core.String defaultHostname; | 1321 core.String defaultHostname; |
1317 /** | 1322 /** |
1318 * HTTP path dispatch rules for requests to the application that do not | 1323 * HTTP path dispatch rules for requests to the application that do not |
1319 * explicitly target a module or version. Rules are order-dependent. | 1324 * explicitly target a module or version. Rules are |
1320 * @OutputOnly | 1325 * order-dependent.@OutputOnly |
1321 */ | 1326 */ |
1322 core.List<UrlDispatchRule> dispatchRules; | 1327 core.List<UrlDispatchRule> dispatchRules; |
1323 /** | 1328 /** |
1324 * Identifier of the Application resource. This identifier is equivalent to | 1329 * Identifier of the Application resource. This identifier is equivalent to |
1325 * the project ID of the Google Cloud Platform project where you want to | 1330 * the project ID of the Google Cloud Platform project where you want to |
1326 * deploy your application. Example: `myapp`. | 1331 * deploy your application. Example: myapp. |
1327 */ | 1332 */ |
1328 core.String id; | 1333 core.String id; |
1329 /** | 1334 /** |
1330 * Location from which this application will be run. Application instances | 1335 * Location from which this application will be run. Application instances |
1331 * will run out of data centers in the chosen location, which is also where | 1336 * will run out of data centers in the chosen location, which is also where |
1332 * all of the application's end user content is stored. Defaults to | 1337 * all of the application's end user content is stored.Defaults to |
1333 * `us-central`. Options are: `us-central` - Central US `europe-west` - | 1338 * us-central.Options are:us-central - Central USeurope-west - Western |
1334 * Western Europe `us-east1` - Eastern US | 1339 * Europeus-east1 - Eastern US |
1335 */ | 1340 */ |
1336 core.String location; | 1341 core.String location; |
1337 /** | 1342 /** |
1338 * Full path to the Application resource in the API. Example: `apps/myapp`. | 1343 * Full path to the Application resource in the API. Example: |
1339 * @OutputOnly | 1344 * apps/myapp.@OutputOnly |
1340 */ | 1345 */ |
1341 core.String name; | 1346 core.String name; |
1342 | 1347 |
1343 Application(); | 1348 Application(); |
1344 | 1349 |
1345 Application.fromJson(core.Map _json) { | 1350 Application.fromJson(core.Map _json) { |
1346 if (_json.containsKey("authDomain")) { | 1351 if (_json.containsKey("authDomain")) { |
1347 authDomain = _json["authDomain"]; | 1352 authDomain = _json["authDomain"]; |
1348 } | 1353 } |
1349 if (_json.containsKey("codeBucket")) { | 1354 if (_json.containsKey("codeBucket")) { |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1404 return _json; | 1409 return _json; |
1405 } | 1410 } |
1406 } | 1411 } |
1407 | 1412 |
1408 /** | 1413 /** |
1409 * Automatic scaling is based on request rate, response latencies, and other | 1414 * Automatic scaling is based on request rate, response latencies, and other |
1410 * application metrics. | 1415 * application metrics. |
1411 */ | 1416 */ |
1412 class AutomaticScaling { | 1417 class AutomaticScaling { |
1413 /** | 1418 /** |
1414 * Amount of time that the | 1419 * Amount of time that the Autoscaler |
1415 * [Autoscaler](https://cloud.google.com/compute/docs/autoscaler/) should wait | 1420 * (https://cloud.google.com/compute/docs/autoscaler/) should wait between |
1416 * between changes to the number of virtual machines. Only applicable for VM | 1421 * changes to the number of virtual machines. Only applicable for VM runtimes. |
1417 * runtimes. | |
1418 */ | 1422 */ |
1419 core.String coolDownPeriod; | 1423 core.String coolDownPeriod; |
1420 /** Target scaling by CPU usage. */ | 1424 /** Target scaling by CPU usage. */ |
1421 CpuUtilization cpuUtilization; | 1425 CpuUtilization cpuUtilization; |
1422 /** Target scaling by disk usage. */ | 1426 /** Target scaling by disk usage. */ |
1423 DiskUtilization diskUtilization; | 1427 DiskUtilization diskUtilization; |
1424 /** | 1428 /** |
1425 * Number of concurrent requests an automatic scaling instance can accept | 1429 * Number of concurrent requests an automatic scaling instance can accept |
1426 * before the scheduler spawns a new instance. Defaults to a runtime-specific | 1430 * before the scheduler spawns a new instance.Defaults to a runtime-specific |
1427 * value. | 1431 * value. |
1428 */ | 1432 */ |
1429 core.int maxConcurrentRequests; | 1433 core.int maxConcurrentRequests; |
1430 /** | 1434 /** |
1431 * Maximum number of idle instances that should be maintained for this | 1435 * Maximum number of idle instances that should be maintained for this |
1432 * version. | 1436 * version. |
1433 */ | 1437 */ |
1434 core.int maxIdleInstances; | 1438 core.int maxIdleInstances; |
1435 /** | 1439 /** |
1436 * Maximum amount of time that a request should wait in the pending queue | 1440 * Maximum amount of time that a request should wait in the pending queue |
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1633 if (aggregationWindowLength != null) { | 1637 if (aggregationWindowLength != null) { |
1634 _json["aggregationWindowLength"] = aggregationWindowLength; | 1638 _json["aggregationWindowLength"] = aggregationWindowLength; |
1635 } | 1639 } |
1636 if (targetUtilization != null) { | 1640 if (targetUtilization != null) { |
1637 _json["targetUtilization"] = targetUtilization; | 1641 _json["targetUtilization"] = targetUtilization; |
1638 } | 1642 } |
1639 return _json; | 1643 return _json; |
1640 } | 1644 } |
1641 } | 1645 } |
1642 | 1646 |
1643 /** Request message for `Instances.DebugInstance`. */ | 1647 /** Request message for Instances.DebugInstance. */ |
1644 class DebugInstanceRequest { | 1648 class DebugInstanceRequest { |
1645 /** | 1649 /** |
1646 * Public SSH key to add to the instance. Example: `[USERNAME]:ssh-rsa | 1650 * Public SSH key to add to the instance. Examples: [USERNAME]:ssh-rsa |
1647 * KEY_VALUE` or `[USERNAME]:ssh-rsa [KEY_VALUE] google-ssh | 1651 * [KEY_VALUE] [USERNAME] [USERNAME]:ssh-rsa [KEY_VALUE] google-ssh |
1648 * {"userName":"[USERNAME]","expireOn":"[EXPIRE_TIME]"}` For more information, | 1652 * {"userName":"[USERNAME]","expireOn":"[EXPIRE_TIME]"}For more information, |
1649 * see [Adding and Removing SSH | 1653 * see Adding and Removing SSH Keys |
1650 * Keys](https://cloud.google.com/compute/docs/instances/adding-removing-ssh-k
eys) | 1654 * (https://cloud.google.com/compute/docs/instances/adding-removing-ssh-keys). |
1651 */ | 1655 */ |
1652 core.String sshKey; | 1656 core.String sshKey; |
1653 | 1657 |
1654 DebugInstanceRequest(); | 1658 DebugInstanceRequest(); |
1655 | 1659 |
1656 DebugInstanceRequest.fromJson(core.Map _json) { | 1660 DebugInstanceRequest.fromJson(core.Map _json) { |
1657 if (_json.containsKey("sshKey")) { | 1661 if (_json.containsKey("sshKey")) { |
1658 sshKey = _json["sshKey"]; | 1662 sshKey = _json["sshKey"]; |
1659 } | 1663 } |
1660 } | 1664 } |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1768 /** | 1772 /** |
1769 * Error condition this handler applies to. | 1773 * Error condition this handler applies to. |
1770 * Possible string values are: | 1774 * Possible string values are: |
1771 * - "ERROR_CODE_UNSPECIFIED" : A ERROR_CODE_UNSPECIFIED. | 1775 * - "ERROR_CODE_UNSPECIFIED" : A ERROR_CODE_UNSPECIFIED. |
1772 * - "ERROR_CODE_DEFAULT" : A ERROR_CODE_DEFAULT. | 1776 * - "ERROR_CODE_DEFAULT" : A ERROR_CODE_DEFAULT. |
1773 * - "ERROR_CODE_OVER_QUOTA" : A ERROR_CODE_OVER_QUOTA. | 1777 * - "ERROR_CODE_OVER_QUOTA" : A ERROR_CODE_OVER_QUOTA. |
1774 * - "ERROR_CODE_DOS_API_DENIAL" : A ERROR_CODE_DOS_API_DENIAL. | 1778 * - "ERROR_CODE_DOS_API_DENIAL" : A ERROR_CODE_DOS_API_DENIAL. |
1775 * - "ERROR_CODE_TIMEOUT" : A ERROR_CODE_TIMEOUT. | 1779 * - "ERROR_CODE_TIMEOUT" : A ERROR_CODE_TIMEOUT. |
1776 */ | 1780 */ |
1777 core.String errorCode; | 1781 core.String errorCode; |
1778 /** MIME type of file. Defaults to `text/html`. */ | 1782 /** MIME type of file. Defaults to text/html. */ |
1779 core.String mimeType; | 1783 core.String mimeType; |
1780 /** Static file content to be served for this error. */ | 1784 /** Static file content to be served for this error. */ |
1781 core.String staticFile; | 1785 core.String staticFile; |
1782 | 1786 |
1783 ErrorHandler(); | 1787 ErrorHandler(); |
1784 | 1788 |
1785 ErrorHandler.fromJson(core.Map _json) { | 1789 ErrorHandler.fromJson(core.Map _json) { |
1786 if (_json.containsKey("errorCode")) { | 1790 if (_json.containsKey("errorCode")) { |
1787 errorCode = _json["errorCode"]; | 1791 errorCode = _json["errorCode"]; |
1788 } | 1792 } |
(...skipping 19 matching lines...) Expand all Loading... |
1808 return _json; | 1812 return _json; |
1809 } | 1813 } |
1810 } | 1814 } |
1811 | 1815 |
1812 /** | 1816 /** |
1813 * Single source file that is part of the version to be deployed. Each source | 1817 * Single source file that is part of the version to be deployed. Each source |
1814 * file that is deployed must be specified separately. | 1818 * file that is deployed must be specified separately. |
1815 */ | 1819 */ |
1816 class FileInfo { | 1820 class FileInfo { |
1817 /** | 1821 /** |
1818 * The MIME type of the file. Defaults to the value from Google Cloud Storage. | 1822 * The MIME type of the file.Defaults to the value from Google Cloud Storage. |
1819 */ | 1823 */ |
1820 core.String mimeType; | 1824 core.String mimeType; |
1821 /** The SHA1 hash of the file, in hex. */ | 1825 /** The SHA1 hash of the file, in hex. */ |
1822 core.String sha1Sum; | 1826 core.String sha1Sum; |
1823 /** | 1827 /** |
1824 * URL source to use to fetch this file. Must be a URL to a resource in Google | 1828 * URL source to use to fetch this file. Must be a URL to a resource in Google |
1825 * Cloud Storage in the form 'http(s)://storage.googleapis.com/\/\'. | 1829 * Cloud Storage in the form 'http(s)://storage.googleapis.com//'. |
1826 */ | 1830 */ |
1827 core.String sourceUrl; | 1831 core.String sourceUrl; |
1828 | 1832 |
1829 FileInfo(); | 1833 FileInfo(); |
1830 | 1834 |
1831 FileInfo.fromJson(core.Map _json) { | 1835 FileInfo.fromJson(core.Map _json) { |
1832 if (_json.containsKey("mimeType")) { | 1836 if (_json.containsKey("mimeType")) { |
1833 mimeType = _json["mimeType"]; | 1837 mimeType = _json["mimeType"]; |
1834 } | 1838 } |
1835 if (_json.containsKey("sha1Sum")) { | 1839 if (_json.containsKey("sha1Sum")) { |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1939 } | 1943 } |
1940 return _json; | 1944 return _json; |
1941 } | 1945 } |
1942 } | 1946 } |
1943 | 1947 |
1944 /** | 1948 /** |
1945 * An Instance resource is the computing unit that App Engine uses to | 1949 * An Instance resource is the computing unit that App Engine uses to |
1946 * automatically scale an application. | 1950 * automatically scale an application. |
1947 */ | 1951 */ |
1948 class Instance { | 1952 class Instance { |
1949 /** App Engine release this instance is running on. @OutputOnly */ | 1953 /** App Engine release this instance is running on.@OutputOnly */ |
1950 core.String appEngineRelease; | 1954 core.String appEngineRelease; |
1951 /** | 1955 /** |
1952 * Availability of the instance. @OutputOnly | 1956 * Availability of the instance.@OutputOnly |
1953 * Possible string values are: | 1957 * Possible string values are: |
1954 * - "UNSPECIFIED" : A UNSPECIFIED. | 1958 * - "UNSPECIFIED" : A UNSPECIFIED. |
1955 * - "RESIDENT" : A RESIDENT. | 1959 * - "RESIDENT" : A RESIDENT. |
1956 * - "DYNAMIC" : A DYNAMIC. | 1960 * - "DYNAMIC" : A DYNAMIC. |
1957 */ | 1961 */ |
1958 core.String availability; | 1962 core.String availability; |
1959 /** Average latency (ms) over the last minute. @OutputOnly */ | 1963 /** Average latency (ms) over the last minute.@OutputOnly */ |
1960 core.int averageLatency; | 1964 core.int averageLatency; |
1961 /** Number of errors since this instance was started. @OutputOnly */ | 1965 /** Number of errors since this instance was started.@OutputOnly */ |
1962 core.int errors; | 1966 core.int errors; |
1963 /** | 1967 /** |
1964 * Relative name of the instance within the version. Example: `instance-1`. | 1968 * Relative name of the instance within the version. Example: |
1965 * @OutputOnly | 1969 * instance-1.@OutputOnly |
1966 */ | 1970 */ |
1967 core.String id; | 1971 core.String id; |
1968 /** Total memory in use (bytes). @OutputOnly */ | 1972 /** Total memory in use (bytes).@OutputOnly */ |
1969 core.String memoryUsage; | 1973 core.String memoryUsage; |
1970 /** | 1974 /** |
1971 * Full path to the Instance resource in the API. Example: | 1975 * Full path to the Instance resource in the API. Example: |
1972 * `apps/myapp/modules/default/versions/v1/instances/instance-1`. @OutputOnly | 1976 * apps/myapp/modules/default/versions/v1/instances/instance-1.@OutputOnly |
1973 */ | 1977 */ |
1974 core.String name; | 1978 core.String name; |
1975 /** Average queries per second (QPS) over the last minute. @OutputOnly */ | 1979 /** Average queries per second (QPS) over the last minute.@OutputOnly */ |
1976 core.double qps; | 1980 core.double qps; |
1977 /** Number of requests since this instance was started. @OutputOnly */ | 1981 /** Number of requests since this instance was started.@OutputOnly */ |
1978 core.int requests; | 1982 core.int requests; |
1979 /** Time that this instance was started. @OutputOnly */ | 1983 /** Time that this instance was started.@OutputOnly */ |
1980 core.String startTimestamp; | 1984 core.String startTimestamp; |
1981 /** | 1985 /** |
1982 * Virtual machine ID of this instance. Only applicable for instances in App | 1986 * Virtual machine ID of this instance. Only applicable for instances in App |
1983 * Engine flexible environment. @OutputOnly | 1987 * Engine flexible environment.@OutputOnly |
1984 */ | 1988 */ |
1985 core.String vmId; | 1989 core.String vmId; |
1986 /** | 1990 /** |
1987 * The IP address of this instance. Only applicable for instances in App | 1991 * The IP address of this instance. Only applicable for instances in App |
1988 * Engine flexible environment. @OutputOnly | 1992 * Engine flexible environment.@OutputOnly |
1989 */ | 1993 */ |
1990 core.String vmIp; | 1994 core.String vmIp; |
1991 /** | 1995 /** |
1992 * Name of the virtual machine where this instance lives. Only applicable for | 1996 * Name of the virtual machine where this instance lives. Only applicable for |
1993 * instances in App Engine flexible environment. @OutputOnly | 1997 * instances in App Engine flexible environment.@OutputOnly |
1994 */ | 1998 */ |
1995 core.String vmName; | 1999 core.String vmName; |
1996 /** | 2000 /** |
1997 * Status of the virtual machine where this instance lives. Only applicable | 2001 * Status of the virtual machine where this instance lives. Only applicable |
1998 * for instances in App Engine flexible environment. @OutputOnly | 2002 * for instances in App Engine flexible environment.@OutputOnly |
1999 */ | 2003 */ |
2000 core.String vmStatus; | 2004 core.String vmStatus; |
2001 /** | 2005 /** |
2002 * Whether this instance is in debug mode. Only applicable for instances in | 2006 * Whether this instance is in debug mode. Only applicable for instances in |
2003 * App Engine flexible environment. @OutputOnly | 2007 * App Engine flexible environment.@OutputOnly |
2004 */ | 2008 */ |
2005 core.bool vmUnlocked; | 2009 core.bool vmUnlocked; |
2006 /** | 2010 /** |
2007 * Zone where the virtual machine is located. Only applicable for instances in | 2011 * Zone where the virtual machine is located. Only applicable for instances in |
2008 * App Engine flexible environment. @OutputOnly | 2012 * App Engine flexible environment.@OutputOnly |
2009 */ | 2013 */ |
2010 core.String vmZoneName; | 2014 core.String vmZoneName; |
2011 | 2015 |
2012 Instance(); | 2016 Instance(); |
2013 | 2017 |
2014 Instance.fromJson(core.Map _json) { | 2018 Instance.fromJson(core.Map _json) { |
2015 if (_json.containsKey("appEngineRelease")) { | 2019 if (_json.containsKey("appEngineRelease")) { |
2016 appEngineRelease = _json["appEngineRelease"]; | 2020 appEngineRelease = _json["appEngineRelease"]; |
2017 } | 2021 } |
2018 if (_json.containsKey("availability")) { | 2022 if (_json.containsKey("availability")) { |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2139 if (name != null) { | 2143 if (name != null) { |
2140 _json["name"] = name; | 2144 _json["name"] = name; |
2141 } | 2145 } |
2142 if (version != null) { | 2146 if (version != null) { |
2143 _json["version"] = version; | 2147 _json["version"] = version; |
2144 } | 2148 } |
2145 return _json; | 2149 return _json; |
2146 } | 2150 } |
2147 } | 2151 } |
2148 | 2152 |
2149 /** Response message for `Instances.ListInstances`. */ | 2153 /** Response message for Instances.ListInstances. */ |
2150 class ListInstancesResponse { | 2154 class ListInstancesResponse { |
2151 /** The instances belonging to the requested version. */ | 2155 /** The instances belonging to the requested version. */ |
2152 core.List<Instance> instances; | 2156 core.List<Instance> instances; |
2153 /** Continuation token for fetching the next page of results. */ | 2157 /** Continuation token for fetching the next page of results. */ |
2154 core.String nextPageToken; | 2158 core.String nextPageToken; |
2155 | 2159 |
2156 ListInstancesResponse(); | 2160 ListInstancesResponse(); |
2157 | 2161 |
2158 ListInstancesResponse.fromJson(core.Map _json) { | 2162 ListInstancesResponse.fromJson(core.Map _json) { |
2159 if (_json.containsKey("instances")) { | 2163 if (_json.containsKey("instances")) { |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2199 if (locations != null) { | 2203 if (locations != null) { |
2200 _json["locations"] = locations.map((value) => (value).toJson()).toList(); | 2204 _json["locations"] = locations.map((value) => (value).toJson()).toList(); |
2201 } | 2205 } |
2202 if (nextPageToken != null) { | 2206 if (nextPageToken != null) { |
2203 _json["nextPageToken"] = nextPageToken; | 2207 _json["nextPageToken"] = nextPageToken; |
2204 } | 2208 } |
2205 return _json; | 2209 return _json; |
2206 } | 2210 } |
2207 } | 2211 } |
2208 | 2212 |
2209 /** Response message for `Modules.ListModules`. */ | 2213 /** Response message for Modules.ListModules. */ |
2210 class ListModulesResponse { | 2214 class ListModulesResponse { |
2211 /** The modules belonging to the requested application. */ | 2215 /** The modules belonging to the requested application. */ |
2212 core.List<Module> modules; | 2216 core.List<Module> modules; |
2213 /** Continuation token for fetching the next page of results. */ | 2217 /** Continuation token for fetching the next page of results. */ |
2214 core.String nextPageToken; | 2218 core.String nextPageToken; |
2215 | 2219 |
2216 ListModulesResponse(); | 2220 ListModulesResponse(); |
2217 | 2221 |
2218 ListModulesResponse.fromJson(core.Map _json) { | 2222 ListModulesResponse.fromJson(core.Map _json) { |
2219 if (_json.containsKey("modules")) { | 2223 if (_json.containsKey("modules")) { |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2259 if (nextPageToken != null) { | 2263 if (nextPageToken != null) { |
2260 _json["nextPageToken"] = nextPageToken; | 2264 _json["nextPageToken"] = nextPageToken; |
2261 } | 2265 } |
2262 if (operations != null) { | 2266 if (operations != null) { |
2263 _json["operations"] = operations.map((value) => (value).toJson()).toList()
; | 2267 _json["operations"] = operations.map((value) => (value).toJson()).toList()
; |
2264 } | 2268 } |
2265 return _json; | 2269 return _json; |
2266 } | 2270 } |
2267 } | 2271 } |
2268 | 2272 |
2269 /** Response message for `Versions.ListVersions`. */ | 2273 /** Response message for Versions.ListVersions. */ |
2270 class ListVersionsResponse { | 2274 class ListVersionsResponse { |
2271 /** Continuation token for fetching the next page of results. */ | 2275 /** Continuation token for fetching the next page of results. */ |
2272 core.String nextPageToken; | 2276 core.String nextPageToken; |
2273 /** The versions belonging to the requested module. */ | 2277 /** The versions belonging to the requested module. */ |
2274 core.List<Version> versions; | 2278 core.List<Version> versions; |
2275 | 2279 |
2276 ListVersionsResponse(); | 2280 ListVersionsResponse(); |
2277 | 2281 |
2278 ListVersionsResponse.fromJson(core.Map _json) { | 2282 ListVersionsResponse.fromJson(core.Map _json) { |
2279 if (_json.containsKey("nextPageToken")) { | 2283 if (_json.containsKey("nextPageToken")) { |
(...skipping 16 matching lines...) Expand all Loading... |
2296 } | 2300 } |
2297 } | 2301 } |
2298 | 2302 |
2299 /** A resource that represents Google Cloud Platform location. */ | 2303 /** A resource that represents Google Cloud Platform location. */ |
2300 class Location { | 2304 class Location { |
2301 /** | 2305 /** |
2302 * Cross-service attributes for the location. For example | 2306 * Cross-service attributes for the location. For example |
2303 * {"cloud.googleapis.com/region": "us-east1"} | 2307 * {"cloud.googleapis.com/region": "us-east1"} |
2304 */ | 2308 */ |
2305 core.Map<core.String, core.String> labels; | 2309 core.Map<core.String, core.String> labels; |
2306 /** The canonical id for this location. For example: `"us-east1"`. */ | 2310 /** The canonical id for this location. For example: "us-east1". */ |
2307 core.String locationId; | 2311 core.String locationId; |
2308 /** | 2312 /** |
2309 * Service-specific metadata. For example the available capacity at the given | 2313 * Service-specific metadata. For example the available capacity at the given |
2310 * location. | 2314 * location. |
2311 * | 2315 * |
2312 * The values for Object must be JSON objects. It can consist of `num`, | 2316 * The values for Object must be JSON objects. It can consist of `num`, |
2313 * `String`, `bool` and `null` as well as `Map` and `List` values. | 2317 * `String`, `bool` and `null` as well as `Map` and `List` values. |
2314 */ | 2318 */ |
2315 core.Map<core.String, core.Object> metadata; | 2319 core.Map<core.String, core.Object> metadata; |
2316 /** | 2320 /** |
2317 * Resource name for the location, which may vary between implementations. For | 2321 * Resource name for the location, which may vary between implementations. For |
2318 * example: `"projects/example-project/locations/us-east1"` | 2322 * example: "projects/example-project/locations/us-east1" |
2319 */ | 2323 */ |
2320 core.String name; | 2324 core.String name; |
2321 | 2325 |
2322 Location(); | 2326 Location(); |
2323 | 2327 |
2324 Location.fromJson(core.Map _json) { | 2328 Location.fromJson(core.Map _json) { |
2325 if (_json.containsKey("labels")) { | 2329 if (_json.containsKey("labels")) { |
2326 labels = _json["labels"]; | 2330 labels = _json["labels"]; |
2327 } | 2331 } |
2328 if (_json.containsKey("locationId")) { | 2332 if (_json.containsKey("locationId")) { |
(...skipping 21 matching lines...) Expand all Loading... |
2350 if (name != null) { | 2354 if (name != null) { |
2351 _json["name"] = name; | 2355 _json["name"] = name; |
2352 } | 2356 } |
2353 return _json; | 2357 return _json; |
2354 } | 2358 } |
2355 } | 2359 } |
2356 | 2360 |
2357 /** Metadata for the given google.cloud.location.Location. */ | 2361 /** Metadata for the given google.cloud.location.Location. */ |
2358 class LocationMetadata { | 2362 class LocationMetadata { |
2359 /** | 2363 /** |
2360 * App Engine Flexible Environment is available in the given location. | 2364 * App Engine Flexible Environment is available in the given |
2361 * @OutputOnly | 2365 * location.@OutputOnly |
2362 */ | 2366 */ |
2363 core.bool flexibleEnvironmentAvailable; | 2367 core.bool flexibleEnvironmentAvailable; |
2364 /** | 2368 /** |
2365 * App Engine Standard Environment is available in the given location. | 2369 * App Engine Standard Environment is available in the given |
2366 * @OutputOnly | 2370 * location.@OutputOnly |
2367 */ | 2371 */ |
2368 core.bool standardEnvironmentAvailable; | 2372 core.bool standardEnvironmentAvailable; |
2369 | 2373 |
2370 LocationMetadata(); | 2374 LocationMetadata(); |
2371 | 2375 |
2372 LocationMetadata.fromJson(core.Map _json) { | 2376 LocationMetadata.fromJson(core.Map _json) { |
2373 if (_json.containsKey("flexibleEnvironmentAvailable")) { | 2377 if (_json.containsKey("flexibleEnvironmentAvailable")) { |
2374 flexibleEnvironmentAvailable = _json["flexibleEnvironmentAvailable"]; | 2378 flexibleEnvironmentAvailable = _json["flexibleEnvironmentAvailable"]; |
2375 } | 2379 } |
2376 if (_json.containsKey("standardEnvironmentAvailable")) { | 2380 if (_json.containsKey("standardEnvironmentAvailable")) { |
(...skipping 13 matching lines...) Expand all Loading... |
2390 } | 2394 } |
2391 } | 2395 } |
2392 | 2396 |
2393 /** | 2397 /** |
2394 * A module with manual scaling runs continuously, allowing you to perform | 2398 * A module with manual scaling runs continuously, allowing you to perform |
2395 * complex initialization and rely on the state of its memory over time. | 2399 * complex initialization and rely on the state of its memory over time. |
2396 */ | 2400 */ |
2397 class ManualScaling { | 2401 class ManualScaling { |
2398 /** | 2402 /** |
2399 * Number of instances to assign to the module at the start. This number can | 2403 * Number of instances to assign to the module at the start. This number can |
2400 * later be altered by using the [Modules | 2404 * later be altered by using the Modules API |
2401 * API](https://cloud.google.com/appengine/docs/python/modules/functions) | 2405 * (https://cloud.google.com/appengine/docs/python/modules/functions) |
2402 * `set_num_instances()` function. | 2406 * set_num_instances() function. |
2403 */ | 2407 */ |
2404 core.int instances; | 2408 core.int instances; |
2405 | 2409 |
2406 ManualScaling(); | 2410 ManualScaling(); |
2407 | 2411 |
2408 ManualScaling.fromJson(core.Map _json) { | 2412 ManualScaling.fromJson(core.Map _json) { |
2409 if (_json.containsKey("instances")) { | 2413 if (_json.containsKey("instances")) { |
2410 instances = _json["instances"]; | 2414 instances = _json["instances"]; |
2411 } | 2415 } |
2412 } | 2416 } |
(...skipping 10 matching lines...) Expand all Loading... |
2423 /** | 2427 /** |
2424 * A Module resource is a logical component of an application that can share | 2428 * A Module resource is a logical component of an application that can share |
2425 * state and communicate in a secure fashion with other modules. For example, an | 2429 * state and communicate in a secure fashion with other modules. For example, an |
2426 * application that handles customer requests might include separate modules to | 2430 * application that handles customer requests might include separate modules to |
2427 * handle tasks such as backend data analysis or API requests from mobile | 2431 * handle tasks such as backend data analysis or API requests from mobile |
2428 * devices. Each module has a collection of versions that define a specific set | 2432 * devices. Each module has a collection of versions that define a specific set |
2429 * of code used to implement the functionality of that module. | 2433 * of code used to implement the functionality of that module. |
2430 */ | 2434 */ |
2431 class Module { | 2435 class Module { |
2432 /** | 2436 /** |
2433 * Relative name of the module within the application. Example: `default`. | 2437 * Relative name of the module within the application. Example: |
2434 * @OutputOnly | 2438 * default.@OutputOnly |
2435 */ | 2439 */ |
2436 core.String id; | 2440 core.String id; |
2437 /** | 2441 /** |
2438 * Full path to the Module resource in the API. Example: | 2442 * Full path to the Module resource in the API. Example: |
2439 * `apps/myapp/modules/default`. @OutputOnly | 2443 * apps/myapp/modules/default.@OutputOnly |
2440 */ | 2444 */ |
2441 core.String name; | 2445 core.String name; |
2442 /** | 2446 /** |
2443 * Mapping that defines fractional HTTP traffic diversion to different | 2447 * Mapping that defines fractional HTTP traffic diversion to different |
2444 * versions within the module. | 2448 * versions within the module. |
2445 */ | 2449 */ |
2446 TrafficSplit split; | 2450 TrafficSplit split; |
2447 | 2451 |
2448 Module(); | 2452 Module(); |
2449 | 2453 |
(...skipping 28 matching lines...) Expand all Loading... |
2478 class Network { | 2482 class Network { |
2479 /** | 2483 /** |
2480 * List of ports, or port pairs, to forward from the virtual machine to the | 2484 * List of ports, or port pairs, to forward from the virtual machine to the |
2481 * application container. | 2485 * application container. |
2482 */ | 2486 */ |
2483 core.List<core.String> forwardedPorts; | 2487 core.List<core.String> forwardedPorts; |
2484 /** Tag to apply to the VM instance during creation. */ | 2488 /** Tag to apply to the VM instance during creation. */ |
2485 core.String instanceTag; | 2489 core.String instanceTag; |
2486 /** | 2490 /** |
2487 * Google Cloud Platform network where the virtual machines are created. | 2491 * Google Cloud Platform network where the virtual machines are created. |
2488 * Specify the short name, not the resource path. Defaults to `default`. | 2492 * Specify the short name, not the resource path.Defaults to default. |
2489 */ | 2493 */ |
2490 core.String name; | 2494 core.String name; |
2491 | 2495 |
2492 Network(); | 2496 Network(); |
2493 | 2497 |
2494 Network.fromJson(core.Map _json) { | 2498 Network.fromJson(core.Map _json) { |
2495 if (_json.containsKey("forwardedPorts")) { | 2499 if (_json.containsKey("forwardedPorts")) { |
2496 forwardedPorts = _json["forwardedPorts"]; | 2500 forwardedPorts = _json["forwardedPorts"]; |
2497 } | 2501 } |
2498 if (_json.containsKey("instanceTag")) { | 2502 if (_json.containsKey("instanceTag")) { |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2563 return _json; | 2567 return _json; |
2564 } | 2568 } |
2565 } | 2569 } |
2566 | 2570 |
2567 /** | 2571 /** |
2568 * This resource represents a long-running operation that is the result of a | 2572 * This resource represents a long-running operation that is the result of a |
2569 * network API call. | 2573 * network API call. |
2570 */ | 2574 */ |
2571 class Operation { | 2575 class Operation { |
2572 /** | 2576 /** |
2573 * If the value is `false`, it means the operation is still in progress. If | 2577 * If the value is false, it means the operation is still in progress. If |
2574 * true, the operation is completed, and either `error` or `response` is | 2578 * true, the operation is completed, and either error or response is |
2575 * available. | 2579 * available. |
2576 */ | 2580 */ |
2577 core.bool done; | 2581 core.bool done; |
2578 /** The error result of the operation in case of failure or cancellation. */ | 2582 /** The error result of the operation in case of failure or cancellation. */ |
2579 Status error; | 2583 Status error; |
2580 /** | 2584 /** |
2581 * Service-specific metadata associated with the operation. It typically | 2585 * Service-specific metadata associated with the operation. It typically |
2582 * contains progress information and common metadata such as create time. Some | 2586 * contains progress information and common metadata such as create time. Some |
2583 * services might not provide such metadata. Any method that returns a | 2587 * services might not provide such metadata. Any method that returns a |
2584 * long-running operation should document the metadata type, if any. | 2588 * long-running operation should document the metadata type, if any. |
2585 * | 2589 * |
2586 * The values for Object must be JSON objects. It can consist of `num`, | 2590 * The values for Object must be JSON objects. It can consist of `num`, |
2587 * `String`, `bool` and `null` as well as `Map` and `List` values. | 2591 * `String`, `bool` and `null` as well as `Map` and `List` values. |
2588 */ | 2592 */ |
2589 core.Map<core.String, core.Object> metadata; | 2593 core.Map<core.String, core.Object> metadata; |
2590 /** | 2594 /** |
2591 * The server-assigned name, which is only unique within the same service that | 2595 * The server-assigned name, which is only unique within the same service that |
2592 * originally returns it. If you use the default HTTP mapping, the `name` | 2596 * originally returns it. If you use the default HTTP mapping, the name should |
2593 * should have the format of `operations/some/unique/name`. | 2597 * have the format of operations/some/unique/name. |
2594 */ | 2598 */ |
2595 core.String name; | 2599 core.String name; |
2596 /** | 2600 /** |
2597 * The normal response of the operation in case of success. If the original | 2601 * The normal response of the operation in case of success. If the original |
2598 * method returns no data on success, such as `Delete`, the response is | 2602 * method returns no data on success, such as Delete, the response is |
2599 * `google.protobuf.Empty`. If the original method is standard | 2603 * google.protobuf.Empty. If the original method is standard |
2600 * `Get`/`Create`/`Update`, the response should be the resource. For other | 2604 * Get/Create/Update, the response should be the resource. For other methods, |
2601 * methods, the response should have the type `XxxResponse`, where `Xxx` is | 2605 * the response should have the type XxxResponse, where Xxx is the original |
2602 * the original method name. For example, if the original method name is | 2606 * method name. For example, if the original method name is TakeSnapshot(), |
2603 * `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. | 2607 * the inferred response type is TakeSnapshotResponse. |
2604 * | 2608 * |
2605 * The values for Object must be JSON objects. It can consist of `num`, | 2609 * The values for Object must be JSON objects. It can consist of `num`, |
2606 * `String`, `bool` and `null` as well as `Map` and `List` values. | 2610 * `String`, `bool` and `null` as well as `Map` and `List` values. |
2607 */ | 2611 */ |
2608 core.Map<core.String, core.Object> response; | 2612 core.Map<core.String, core.Object> response; |
2609 | 2613 |
2610 Operation(); | 2614 Operation(); |
2611 | 2615 |
2612 Operation.fromJson(core.Map _json) { | 2616 Operation.fromJson(core.Map _json) { |
2613 if (_json.containsKey("done")) { | 2617 if (_json.containsKey("done")) { |
(...skipping 29 matching lines...) Expand all Loading... |
2643 } | 2647 } |
2644 if (response != null) { | 2648 if (response != null) { |
2645 _json["response"] = response; | 2649 _json["response"] = response; |
2646 } | 2650 } |
2647 return _json; | 2651 return _json; |
2648 } | 2652 } |
2649 } | 2653 } |
2650 | 2654 |
2651 /** Metadata for the given google.longrunning.Operation. */ | 2655 /** Metadata for the given google.longrunning.Operation. */ |
2652 class OperationMetadata { | 2656 class OperationMetadata { |
2653 /** Timestamp that this operation completed. @OutputOnly */ | 2657 /** Timestamp that this operation completed.@OutputOnly */ |
2654 core.String endTime; | 2658 core.String endTime; |
2655 /** Timestamp that this operation was created. @OutputOnly */ | 2659 /** Timestamp that this operation was created.@OutputOnly */ |
2656 core.String insertTime; | 2660 core.String insertTime; |
2657 /** | 2661 /** |
2658 * API method that initiated this operation. Example: | 2662 * API method that initiated this operation. Example: |
2659 * `google.appengine.v1beta4.Version.CreateVersion`. @OutputOnly | 2663 * google.appengine.v1beta4.Version.CreateVersion.@OutputOnly |
2660 */ | 2664 */ |
2661 core.String method; | 2665 core.String method; |
2662 /** | 2666 /** |
2663 * Type of this operation. Deprecated, use method field instead. Example: | 2667 * Type of this operation. Deprecated, use method field instead. Example: |
2664 * "create_version". @OutputOnly | 2668 * "create_version".@OutputOnly |
2665 */ | 2669 */ |
2666 core.String operationType; | 2670 core.String operationType; |
2667 /** | 2671 /** |
2668 * Name of the resource that this operation is acting on. Example: | 2672 * Name of the resource that this operation is acting on. Example: |
2669 * `apps/myapp/modules/default`. @OutputOnly | 2673 * apps/myapp/modules/default.@OutputOnly |
2670 */ | 2674 */ |
2671 core.String target; | 2675 core.String target; |
2672 /** User who requested this operation. @OutputOnly */ | 2676 /** User who requested this operation.@OutputOnly */ |
2673 core.String user; | 2677 core.String user; |
2674 | 2678 |
2675 OperationMetadata(); | 2679 OperationMetadata(); |
2676 | 2680 |
2677 OperationMetadata.fromJson(core.Map _json) { | 2681 OperationMetadata.fromJson(core.Map _json) { |
2678 if (_json.containsKey("endTime")) { | 2682 if (_json.containsKey("endTime")) { |
2679 endTime = _json["endTime"]; | 2683 endTime = _json["endTime"]; |
2680 } | 2684 } |
2681 if (_json.containsKey("insertTime")) { | 2685 if (_json.containsKey("insertTime")) { |
2682 insertTime = _json["insertTime"]; | 2686 insertTime = _json["insertTime"]; |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2714 } | 2718 } |
2715 if (user != null) { | 2719 if (user != null) { |
2716 _json["user"] = user; | 2720 _json["user"] = user; |
2717 } | 2721 } |
2718 return _json; | 2722 return _json; |
2719 } | 2723 } |
2720 } | 2724 } |
2721 | 2725 |
2722 /** Metadata for the given google.longrunning.Operation. */ | 2726 /** Metadata for the given google.longrunning.Operation. */ |
2723 class OperationMetadataExperimental { | 2727 class OperationMetadataExperimental { |
2724 /** Time that this operation completed. @OutputOnly */ | 2728 /** Time that this operation completed.@OutputOnly */ |
2725 core.String endTime; | 2729 core.String endTime; |
2726 /** Time that this operation was created. @OutputOnly */ | 2730 /** Time that this operation was created.@OutputOnly */ |
2727 core.String insertTime; | 2731 core.String insertTime; |
2728 /** | 2732 /** |
2729 * API method that initiated this operation. Example: | 2733 * API method that initiated this operation. Example: |
2730 * `google.appengine.experimental.CustomDomains.CreateCustomDomain`. | 2734 * google.appengine.experimental.CustomDomains.CreateCustomDomain.@OutputOnly |
2731 * @OutputOnly | |
2732 */ | 2735 */ |
2733 core.String method; | 2736 core.String method; |
2734 /** | 2737 /** |
2735 * Name of the resource that this operation is acting on. Example: | 2738 * Name of the resource that this operation is acting on. Example: |
2736 * `apps/myapp/customDomains/example.com`. @OutputOnly | 2739 * apps/myapp/customDomains/example.com.@OutputOnly |
2737 */ | 2740 */ |
2738 core.String target; | 2741 core.String target; |
2739 /** User who requested this operation. @OutputOnly */ | 2742 /** User who requested this operation.@OutputOnly */ |
2740 core.String user; | 2743 core.String user; |
2741 | 2744 |
2742 OperationMetadataExperimental(); | 2745 OperationMetadataExperimental(); |
2743 | 2746 |
2744 OperationMetadataExperimental.fromJson(core.Map _json) { | 2747 OperationMetadataExperimental.fromJson(core.Map _json) { |
2745 if (_json.containsKey("endTime")) { | 2748 if (_json.containsKey("endTime")) { |
2746 endTime = _json["endTime"]; | 2749 endTime = _json["endTime"]; |
2747 } | 2750 } |
2748 if (_json.containsKey("insertTime")) { | 2751 if (_json.containsKey("insertTime")) { |
2749 insertTime = _json["insertTime"]; | 2752 insertTime = _json["insertTime"]; |
(...skipping 25 matching lines...) Expand all Loading... |
2775 } | 2778 } |
2776 if (user != null) { | 2779 if (user != null) { |
2777 _json["user"] = user; | 2780 _json["user"] = user; |
2778 } | 2781 } |
2779 return _json; | 2782 return _json; |
2780 } | 2783 } |
2781 } | 2784 } |
2782 | 2785 |
2783 /** Metadata for the given google.longrunning.Operation. */ | 2786 /** Metadata for the given google.longrunning.Operation. */ |
2784 class OperationMetadataV1 { | 2787 class OperationMetadataV1 { |
2785 /** Time that this operation completed. @OutputOnly */ | 2788 /** Time that this operation completed.@OutputOnly */ |
2786 core.String endTime; | 2789 core.String endTime; |
2787 /** Time that this operation was created. @OutputOnly */ | 2790 /** |
| 2791 * Ephemeral message that may change every time the operation is polled. |
| 2792 * @OutputOnly |
| 2793 */ |
| 2794 core.String ephemeralMessage; |
| 2795 /** Time that this operation was created.@OutputOnly */ |
2788 core.String insertTime; | 2796 core.String insertTime; |
2789 /** | 2797 /** |
2790 * API method that initiated this operation. Example: | 2798 * API method that initiated this operation. Example: |
2791 * `google.appengine.v1.Versions.CreateVersion`. @OutputOnly | 2799 * google.appengine.v1.Versions.CreateVersion.@OutputOnly |
2792 */ | 2800 */ |
2793 core.String method; | 2801 core.String method; |
2794 /** | 2802 /** |
2795 * Name of the resource that this operation is acting on. Example: | 2803 * Name of the resource that this operation is acting on. Example: |
2796 * `apps/myapp/services/default`. @OutputOnly | 2804 * apps/myapp/services/default.@OutputOnly |
2797 */ | 2805 */ |
2798 core.String target; | 2806 core.String target; |
2799 /** User who requested this operation. @OutputOnly */ | 2807 /** User who requested this operation.@OutputOnly */ |
2800 core.String user; | 2808 core.String user; |
| 2809 /** Durable messages that persist on every operation poll. @OutputOnly */ |
| 2810 core.List<core.String> warning; |
2801 | 2811 |
2802 OperationMetadataV1(); | 2812 OperationMetadataV1(); |
2803 | 2813 |
2804 OperationMetadataV1.fromJson(core.Map _json) { | 2814 OperationMetadataV1.fromJson(core.Map _json) { |
2805 if (_json.containsKey("endTime")) { | 2815 if (_json.containsKey("endTime")) { |
2806 endTime = _json["endTime"]; | 2816 endTime = _json["endTime"]; |
2807 } | 2817 } |
| 2818 if (_json.containsKey("ephemeralMessage")) { |
| 2819 ephemeralMessage = _json["ephemeralMessage"]; |
| 2820 } |
2808 if (_json.containsKey("insertTime")) { | 2821 if (_json.containsKey("insertTime")) { |
2809 insertTime = _json["insertTime"]; | 2822 insertTime = _json["insertTime"]; |
2810 } | 2823 } |
2811 if (_json.containsKey("method")) { | 2824 if (_json.containsKey("method")) { |
2812 method = _json["method"]; | 2825 method = _json["method"]; |
2813 } | 2826 } |
2814 if (_json.containsKey("target")) { | 2827 if (_json.containsKey("target")) { |
2815 target = _json["target"]; | 2828 target = _json["target"]; |
2816 } | 2829 } |
2817 if (_json.containsKey("user")) { | 2830 if (_json.containsKey("user")) { |
2818 user = _json["user"]; | 2831 user = _json["user"]; |
2819 } | 2832 } |
| 2833 if (_json.containsKey("warning")) { |
| 2834 warning = _json["warning"]; |
| 2835 } |
2820 } | 2836 } |
2821 | 2837 |
2822 core.Map toJson() { | 2838 core.Map toJson() { |
2823 var _json = new core.Map(); | 2839 var _json = new core.Map(); |
2824 if (endTime != null) { | 2840 if (endTime != null) { |
2825 _json["endTime"] = endTime; | 2841 _json["endTime"] = endTime; |
2826 } | 2842 } |
| 2843 if (ephemeralMessage != null) { |
| 2844 _json["ephemeralMessage"] = ephemeralMessage; |
| 2845 } |
2827 if (insertTime != null) { | 2846 if (insertTime != null) { |
2828 _json["insertTime"] = insertTime; | 2847 _json["insertTime"] = insertTime; |
2829 } | 2848 } |
2830 if (method != null) { | 2849 if (method != null) { |
2831 _json["method"] = method; | 2850 _json["method"] = method; |
2832 } | 2851 } |
2833 if (target != null) { | 2852 if (target != null) { |
2834 _json["target"] = target; | 2853 _json["target"] = target; |
2835 } | 2854 } |
2836 if (user != null) { | 2855 if (user != null) { |
2837 _json["user"] = user; | 2856 _json["user"] = user; |
2838 } | 2857 } |
| 2858 if (warning != null) { |
| 2859 _json["warning"] = warning; |
| 2860 } |
2839 return _json; | 2861 return _json; |
2840 } | 2862 } |
2841 } | 2863 } |
2842 | 2864 |
2843 /** Metadata for the given google.longrunning.Operation. */ | 2865 /** Metadata for the given google.longrunning.Operation. */ |
2844 class OperationMetadataV1Beta5 { | 2866 class OperationMetadataV1Beta5 { |
2845 /** Timestamp that this operation completed. @OutputOnly */ | 2867 /** Timestamp that this operation completed.@OutputOnly */ |
2846 core.String endTime; | 2868 core.String endTime; |
2847 /** Timestamp that this operation was created. @OutputOnly */ | 2869 /** Timestamp that this operation was created.@OutputOnly */ |
2848 core.String insertTime; | 2870 core.String insertTime; |
2849 /** | 2871 /** |
2850 * API method name that initiated this operation. Example: | 2872 * API method name that initiated this operation. Example: |
2851 * `google.appengine.v1beta5.Version.CreateVersion`. @OutputOnly | 2873 * google.appengine.v1beta5.Version.CreateVersion.@OutputOnly |
2852 */ | 2874 */ |
2853 core.String method; | 2875 core.String method; |
2854 /** | 2876 /** |
2855 * Name of the resource that this operation is acting on. Example: | 2877 * Name of the resource that this operation is acting on. Example: |
2856 * `apps/myapp/services/default`. @OutputOnly | 2878 * apps/myapp/services/default.@OutputOnly |
2857 */ | 2879 */ |
2858 core.String target; | 2880 core.String target; |
2859 /** User who requested this operation. @OutputOnly */ | 2881 /** User who requested this operation.@OutputOnly */ |
2860 core.String user; | 2882 core.String user; |
2861 | 2883 |
2862 OperationMetadataV1Beta5(); | 2884 OperationMetadataV1Beta5(); |
2863 | 2885 |
2864 OperationMetadataV1Beta5.fromJson(core.Map _json) { | 2886 OperationMetadataV1Beta5.fromJson(core.Map _json) { |
2865 if (_json.containsKey("endTime")) { | 2887 if (_json.containsKey("endTime")) { |
2866 endTime = _json["endTime"]; | 2888 endTime = _json["endTime"]; |
2867 } | 2889 } |
2868 if (_json.containsKey("insertTime")) { | 2890 if (_json.containsKey("insertTime")) { |
2869 insertTime = _json["insertTime"]; | 2891 insertTime = _json["insertTime"]; |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2931 } | 2953 } |
2932 | 2954 |
2933 /** Machine resources for a version. */ | 2955 /** Machine resources for a version. */ |
2934 class Resources { | 2956 class Resources { |
2935 /** Number of CPU cores needed. */ | 2957 /** Number of CPU cores needed. */ |
2936 core.double cpu; | 2958 core.double cpu; |
2937 /** Disk size (GB) needed. */ | 2959 /** Disk size (GB) needed. */ |
2938 core.double diskGb; | 2960 core.double diskGb; |
2939 /** Memory (GB) needed. */ | 2961 /** Memory (GB) needed. */ |
2940 core.double memoryGb; | 2962 core.double memoryGb; |
| 2963 /** User specified volumes. */ |
| 2964 core.List<Volume> volumes; |
2941 | 2965 |
2942 Resources(); | 2966 Resources(); |
2943 | 2967 |
2944 Resources.fromJson(core.Map _json) { | 2968 Resources.fromJson(core.Map _json) { |
2945 if (_json.containsKey("cpu")) { | 2969 if (_json.containsKey("cpu")) { |
2946 cpu = _json["cpu"]; | 2970 cpu = _json["cpu"]; |
2947 } | 2971 } |
2948 if (_json.containsKey("diskGb")) { | 2972 if (_json.containsKey("diskGb")) { |
2949 diskGb = _json["diskGb"]; | 2973 diskGb = _json["diskGb"]; |
2950 } | 2974 } |
2951 if (_json.containsKey("memoryGb")) { | 2975 if (_json.containsKey("memoryGb")) { |
2952 memoryGb = _json["memoryGb"]; | 2976 memoryGb = _json["memoryGb"]; |
2953 } | 2977 } |
| 2978 if (_json.containsKey("volumes")) { |
| 2979 volumes = _json["volumes"].map((value) => new Volume.fromJson(value)).toLi
st(); |
| 2980 } |
2954 } | 2981 } |
2955 | 2982 |
2956 core.Map toJson() { | 2983 core.Map toJson() { |
2957 var _json = new core.Map(); | 2984 var _json = new core.Map(); |
2958 if (cpu != null) { | 2985 if (cpu != null) { |
2959 _json["cpu"] = cpu; | 2986 _json["cpu"] = cpu; |
2960 } | 2987 } |
2961 if (diskGb != null) { | 2988 if (diskGb != null) { |
2962 _json["diskGb"] = diskGb; | 2989 _json["diskGb"] = diskGb; |
2963 } | 2990 } |
2964 if (memoryGb != null) { | 2991 if (memoryGb != null) { |
2965 _json["memoryGb"] = memoryGb; | 2992 _json["memoryGb"] = memoryGb; |
2966 } | 2993 } |
| 2994 if (volumes != null) { |
| 2995 _json["volumes"] = volumes.map((value) => (value).toJson()).toList(); |
| 2996 } |
2967 return _json; | 2997 return _json; |
2968 } | 2998 } |
2969 } | 2999 } |
2970 | 3000 |
2971 /** Executes a script to handle the request that matches the URL pattern. */ | 3001 /** Executes a script to handle the request that matches the URL pattern. */ |
2972 class ScriptHandler { | 3002 class ScriptHandler { |
2973 /** Path to the script from the application root directory. */ | 3003 /** Path to the script from the application root directory. */ |
2974 core.String scriptPath; | 3004 core.String scriptPath; |
2975 | 3005 |
2976 ScriptHandler(); | 3006 ScriptHandler(); |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3040 * Whether files should also be uploaded as code data. By default, files | 3070 * Whether files should also be uploaded as code data. By default, files |
3041 * declared in static directory handlers are uploaded as static data and are | 3071 * declared in static directory handlers are uploaded as static data and are |
3042 * only served to end users; they cannot be read by the application. If | 3072 * only served to end users; they cannot be read by the application. If |
3043 * enabled, uploads are charged against both your code and static data storage | 3073 * enabled, uploads are charged against both your code and static data storage |
3044 * resource quotas. | 3074 * resource quotas. |
3045 */ | 3075 */ |
3046 core.bool applicationReadable; | 3076 core.bool applicationReadable; |
3047 /** | 3077 /** |
3048 * Path to the directory containing the static files from the application root | 3078 * Path to the directory containing the static files from the application root |
3049 * directory. Everything after the end of the matched URL pattern is appended | 3079 * directory. Everything after the end of the matched URL pattern is appended |
3050 * to `static_dir` to form the full path to the requested file. | 3080 * to static_dir to form the full path to the requested file. |
3051 */ | 3081 */ |
3052 core.String directory; | 3082 core.String directory; |
3053 /** Time a static file served by this handler should be cached. */ | 3083 /** Time a static file served by this handler should be cached. */ |
3054 core.String expiration; | 3084 core.String expiration; |
3055 /** HTTP headers to use for all responses from these URLs. */ | 3085 /** HTTP headers to use for all responses from these URLs. */ |
3056 core.Map<core.String, core.String> httpHeaders; | 3086 core.Map<core.String, core.String> httpHeaders; |
3057 /** | 3087 /** |
3058 * MIME type used to serve all files served by this handler. Defaults to | 3088 * MIME type used to serve all files served by this handler. Defaults to |
3059 * file-specific MIME types, which are direved from each file's filename | 3089 * file-specific MIME types, which are direved from each file's filename |
3060 * extension. | 3090 * extension. |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3202 _json["requireMatchingFile"] = requireMatchingFile; | 3232 _json["requireMatchingFile"] = requireMatchingFile; |
3203 } | 3233 } |
3204 if (uploadPathRegex != null) { | 3234 if (uploadPathRegex != null) { |
3205 _json["uploadPathRegex"] = uploadPathRegex; | 3235 _json["uploadPathRegex"] = uploadPathRegex; |
3206 } | 3236 } |
3207 return _json; | 3237 return _json; |
3208 } | 3238 } |
3209 } | 3239 } |
3210 | 3240 |
3211 /** | 3241 /** |
3212 * The `Status` type defines a logical error model that is suitable for | 3242 * The Status type defines a logical error model that is suitable for different |
3213 * different programming environments, including REST APIs and RPC APIs. It is | 3243 * programming environments, including REST APIs and RPC APIs. It is used by |
3214 * used by [gRPC](https://github.com/grpc). The error model is designed to be: - | 3244 * gRPC (https://github.com/grpc). The error model is designed to be: Simple to |
3215 * Simple to use and understand for most users - Flexible enough to meet | 3245 * use and understand for most users Flexible enough to meet unexpected |
3216 * unexpected needs # Overview The `Status` message contains three pieces of | 3246 * needsOverviewThe Status message contains three pieces of data: error code, |
3217 * data: error code, error message, and error details. The error code should be | 3247 * error message, and error details. The error code should be an enum value of |
3218 * an enum value of google.rpc.Code, but it may accept additional error codes if | 3248 * google.rpc.Code, but it may accept additional error codes if needed. The |
3219 * needed. The error message should be a developer-facing English message that | 3249 * error message should be a developer-facing English message that helps |
3220 * helps developers *understand* and *resolve* the error. If a localized | 3250 * developers understand and resolve the error. If a localized user-facing error |
3221 * user-facing error message is needed, put the localized message in the error | 3251 * message is needed, put the localized message in the error details or localize |
3222 * details or localize it in the client. The optional error details may contain | 3252 * it in the client. The optional error details may contain arbitrary |
3223 * arbitrary information about the error. There is a predefined set of error | 3253 * information about the error. There is a predefined set of error detail types |
3224 * detail types in the package `google.rpc` which can be used for common error | 3254 * in the package google.rpc which can be used for common error |
3225 * conditions. # Language mapping The `Status` message is the logical | 3255 * conditions.Language mappingThe Status message is the logical representation |
3226 * representation of the error model, but it is not necessarily the actual wire | 3256 * of the error model, but it is not necessarily the actual wire format. When |
3227 * format. When the `Status` message is exposed in different client libraries | 3257 * the Status message is exposed in different client libraries and different |
3228 * and different wire protocols, it can be mapped differently. For example, it | 3258 * wire protocols, it can be mapped differently. For example, it will likely be |
3229 * will likely be mapped to some exceptions in Java, but more likely mapped to | 3259 * mapped to some exceptions in Java, but more likely mapped to some error codes |
3230 * some error codes in C. # Other uses The error model and the `Status` message | 3260 * in C.Other usesThe error model and the Status message can be used in a |
3231 * can be used in a variety of environments, either with or without APIs, to | 3261 * variety of environments, either with or without APIs, to provide a consistent |
3232 * provide a consistent developer experience across different environments. | 3262 * developer experience across different environments.Example uses of this error |
3233 * Example uses of this error model include: - Partial errors. If a service | 3263 * model include: Partial errors. If a service needs to return partial errors to |
3234 * needs to return partial errors to the client, it may embed the `Status` in | 3264 * the client, it may embed the Status in the normal response to indicate the |
3235 * the normal response to indicate the partial errors. - Workflow errors. A | 3265 * partial errors. Workflow errors. A typical workflow has multiple steps. Each |
3236 * typical workflow has multiple steps. Each step may have a `Status` message | 3266 * step may have a Status message for error reporting purpose. Batch operations. |
3237 * for error reporting purpose. - Batch operations. If a client uses batch | 3267 * If a client uses batch request and batch response, the Status message should |
3238 * request and batch response, the `Status` message should be used directly | 3268 * be used directly inside batch response, one for each error sub-response. |
3239 * inside batch response, one for each error sub-response. - Asynchronous | 3269 * Asynchronous operations. If an API call embeds asynchronous operation results |
3240 * operations. If an API call embeds asynchronous operation results in its | 3270 * in its response, the status of those operations should be represented |
3241 * response, the status of those operations should be represented directly using | 3271 * directly using the Status message. Logging. If some API errors are stored in |
3242 * the `Status` message. - Logging. If some API errors are stored in logs, the | 3272 * logs, the message Status could be used directly after any stripping needed |
3243 * message `Status` could be used directly after any stripping needed for | 3273 * for security/privacy reasons. |
3244 * security/privacy reasons. | |
3245 */ | 3274 */ |
3246 class Status { | 3275 class Status { |
3247 /** The status code, which should be an enum value of google.rpc.Code. */ | 3276 /** The status code, which should be an enum value of google.rpc.Code. */ |
3248 core.int code; | 3277 core.int code; |
3249 /** | 3278 /** |
3250 * A list of messages that carry the error details. There will be a common set | 3279 * A list of messages that carry the error details. There will be a common set |
3251 * of message types for APIs to use. | 3280 * of message types for APIs to use. |
3252 * | 3281 * |
3253 * The values for Object must be JSON objects. It can consist of `num`, | 3282 * The values for Object must be JSON objects. It can consist of `num`, |
3254 * `String`, `bool` and `null` as well as `Map` and `List` values. | 3283 * `String`, `bool` and `null` as well as `Map` and `List` values. |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3335 if (shardBy != null) { | 3364 if (shardBy != null) { |
3336 _json["shardBy"] = shardBy; | 3365 _json["shardBy"] = shardBy; |
3337 } | 3366 } |
3338 return _json; | 3367 return _json; |
3339 } | 3368 } |
3340 } | 3369 } |
3341 | 3370 |
3342 /** Rules to match an HTTP request and dispatch that request to a module. */ | 3371 /** Rules to match an HTTP request and dispatch that request to a module. */ |
3343 class UrlDispatchRule { | 3372 class UrlDispatchRule { |
3344 /** | 3373 /** |
3345 * Domain name to match against. The wildcard "`*`" is supported if specified | 3374 * Domain name to match against. The wildcard "*" is supported if specified |
3346 * before a period: "`*.`". Defaults to matching all domains: "`*`". | 3375 * before a period: "*.".Defaults to matching all domains: "*". |
3347 */ | 3376 */ |
3348 core.String domain; | 3377 core.String domain; |
3349 /** | 3378 /** |
3350 * Resource ID of a module in this application that should serve the matched | 3379 * Resource ID of a module in this application that should serve the matched |
3351 * request. The module must already exist. Example: `default`. | 3380 * request. The module must already exist. Example: default. |
3352 */ | 3381 */ |
3353 core.String module; | 3382 core.String module; |
3354 /** | 3383 /** |
3355 * Pathname within the host. Must start with a "`/`". A single "`*`" can be | 3384 * Pathname within the host. Must start with a "/". A single "*" can be |
3356 * included at the end of the path. The sum of the lengths of the domain and | 3385 * included at the end of the path. The sum of the lengths of the domain and |
3357 * path may not exceed 100 characters. | 3386 * path may not exceed 100 characters. |
3358 */ | 3387 */ |
3359 core.String path; | 3388 core.String path; |
3360 | 3389 |
3361 UrlDispatchRule(); | 3390 UrlDispatchRule(); |
3362 | 3391 |
3363 UrlDispatchRule.fromJson(core.Map _json) { | 3392 UrlDispatchRule.fromJson(core.Map _json) { |
3364 if (_json.containsKey("domain")) { | 3393 if (_json.containsKey("domain")) { |
3365 domain = _json["domain"]; | 3394 domain = _json["domain"]; |
(...skipping 24 matching lines...) Expand all Loading... |
3390 /** | 3419 /** |
3391 * URL pattern and description of how the URL should be handled. App Engine can | 3420 * URL pattern and description of how the URL should be handled. App Engine can |
3392 * handle URLs by executing application code, or by serving static files | 3421 * handle URLs by executing application code, or by serving static files |
3393 * uploaded with the version, such as images, CSS, or JavaScript. | 3422 * uploaded with the version, such as images, CSS, or JavaScript. |
3394 */ | 3423 */ |
3395 class UrlMap { | 3424 class UrlMap { |
3396 /** Uses API Endpoints to handle requests. */ | 3425 /** Uses API Endpoints to handle requests. */ |
3397 ApiEndpointHandler apiEndpoint; | 3426 ApiEndpointHandler apiEndpoint; |
3398 /** | 3427 /** |
3399 * Action to take when users access resources that require authentication. | 3428 * Action to take when users access resources that require authentication. |
3400 * Defaults to `redirect`. | 3429 * Defaults to redirect. |
3401 * Possible string values are: | 3430 * Possible string values are: |
3402 * - "AUTH_FAIL_ACTION_UNSPECIFIED" : A AUTH_FAIL_ACTION_UNSPECIFIED. | 3431 * - "AUTH_FAIL_ACTION_UNSPECIFIED" : A AUTH_FAIL_ACTION_UNSPECIFIED. |
3403 * - "AUTH_FAIL_ACTION_REDIRECT" : A AUTH_FAIL_ACTION_REDIRECT. | 3432 * - "AUTH_FAIL_ACTION_REDIRECT" : A AUTH_FAIL_ACTION_REDIRECT. |
3404 * - "AUTH_FAIL_ACTION_UNAUTHORIZED" : A AUTH_FAIL_ACTION_UNAUTHORIZED. | 3433 * - "AUTH_FAIL_ACTION_UNAUTHORIZED" : A AUTH_FAIL_ACTION_UNAUTHORIZED. |
3405 */ | 3434 */ |
3406 core.String authFailAction; | 3435 core.String authFailAction; |
3407 /** | 3436 /** |
3408 * Level of login required to access this resource. | 3437 * Level of login required to access this resource. |
3409 * Possible string values are: | 3438 * Possible string values are: |
3410 * - "LOGIN_UNSPECIFIED" : A LOGIN_UNSPECIFIED. | 3439 * - "LOGIN_UNSPECIFIED" : A LOGIN_UNSPECIFIED. |
3411 * - "LOGIN_OPTIONAL" : A LOGIN_OPTIONAL. | 3440 * - "LOGIN_OPTIONAL" : A LOGIN_OPTIONAL. |
3412 * - "LOGIN_ADMIN" : A LOGIN_ADMIN. | 3441 * - "LOGIN_ADMIN" : A LOGIN_ADMIN. |
3413 * - "LOGIN_REQUIRED" : A LOGIN_REQUIRED. | 3442 * - "LOGIN_REQUIRED" : A LOGIN_REQUIRED. |
3414 */ | 3443 */ |
3415 core.String login; | 3444 core.String login; |
3416 /** | 3445 /** |
3417 * `30x` code to use when performing redirects for the `secure` field. | 3446 * 30x code to use when performing redirects for the secure field. Defaults to |
3418 * Defaults to `302`. | 3447 * 302. |
3419 * Possible string values are: | 3448 * Possible string values are: |
3420 * - "REDIRECT_HTTP_RESPONSE_CODE_UNSPECIFIED" : A | 3449 * - "REDIRECT_HTTP_RESPONSE_CODE_UNSPECIFIED" : A |
3421 * REDIRECT_HTTP_RESPONSE_CODE_UNSPECIFIED. | 3450 * REDIRECT_HTTP_RESPONSE_CODE_UNSPECIFIED. |
3422 * - "REDIRECT_HTTP_RESPONSE_CODE_301" : A REDIRECT_HTTP_RESPONSE_CODE_301. | 3451 * - "REDIRECT_HTTP_RESPONSE_CODE_301" : A REDIRECT_HTTP_RESPONSE_CODE_301. |
3423 * - "REDIRECT_HTTP_RESPONSE_CODE_302" : A REDIRECT_HTTP_RESPONSE_CODE_302. | 3452 * - "REDIRECT_HTTP_RESPONSE_CODE_302" : A REDIRECT_HTTP_RESPONSE_CODE_302. |
3424 * - "REDIRECT_HTTP_RESPONSE_CODE_303" : A REDIRECT_HTTP_RESPONSE_CODE_303. | 3453 * - "REDIRECT_HTTP_RESPONSE_CODE_303" : A REDIRECT_HTTP_RESPONSE_CODE_303. |
3425 * - "REDIRECT_HTTP_RESPONSE_CODE_307" : A REDIRECT_HTTP_RESPONSE_CODE_307. | 3454 * - "REDIRECT_HTTP_RESPONSE_CODE_307" : A REDIRECT_HTTP_RESPONSE_CODE_307. |
3426 */ | 3455 */ |
3427 core.String redirectHttpResponseCode; | 3456 core.String redirectHttpResponseCode; |
3428 /** Executes a script to handle the request that matches this URL pattern. */ | 3457 /** Executes a script to handle the request that matches this URL pattern. */ |
3429 ScriptHandler script; | 3458 ScriptHandler script; |
3430 /** | 3459 /** |
3431 * Security (HTTPS) enforcement for this URL. | 3460 * Security (HTTPS) enforcement for this URL. |
3432 * Possible string values are: | 3461 * Possible string values are: |
3433 * - "SECURE_UNSPECIFIED" : A SECURE_UNSPECIFIED. | 3462 * - "SECURE_UNSPECIFIED" : A SECURE_UNSPECIFIED. |
3434 * - "SECURE_DEFAULT" : A SECURE_DEFAULT. | 3463 * - "SECURE_DEFAULT" : A SECURE_DEFAULT. |
3435 * - "SECURE_NEVER" : A SECURE_NEVER. | 3464 * - "SECURE_NEVER" : A SECURE_NEVER. |
3436 * - "SECURE_OPTIONAL" : A SECURE_OPTIONAL. | 3465 * - "SECURE_OPTIONAL" : A SECURE_OPTIONAL. |
3437 * - "SECURE_ALWAYS" : A SECURE_ALWAYS. | 3466 * - "SECURE_ALWAYS" : A SECURE_ALWAYS. |
3438 */ | 3467 */ |
3439 core.String securityLevel; | 3468 core.String securityLevel; |
3440 /** | 3469 /** |
3441 * Serves the entire contents of a directory as static files. This attribute | 3470 * Serves the entire contents of a directory as static files.This attribute is |
3442 * is deprecated. You can mimic the behavior of static directories using | 3471 * deprecated. You can mimic the behavior of static directories using static |
3443 * static files. | 3472 * files. |
3444 */ | 3473 */ |
3445 StaticDirectoryHandler staticDirectory; | 3474 StaticDirectoryHandler staticDirectory; |
3446 /** Returns the contents of a file, such as an image, as the response. */ | 3475 /** Returns the contents of a file, such as an image, as the response. */ |
3447 StaticFilesHandler staticFiles; | 3476 StaticFilesHandler staticFiles; |
3448 /** | 3477 /** |
3449 * A URL prefix. Uses regular expression syntax, which means regexp special | 3478 * A URL prefix. Uses regular expression syntax, which means regexp special |
3450 * characters must be escaped, but should not contain groupings. All URLs that | 3479 * characters must be escaped, but should not contain groupings. All URLs that |
3451 * begin with this prefix are handled by this handler, using the portion of | 3480 * begin with this prefix are handled by this handler, using the portion of |
3452 * the URL after the prefix as part of the file path. | 3481 * the URL after the prefix as part of the file path. |
3453 */ | 3482 */ |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3517 return _json; | 3546 return _json; |
3518 } | 3547 } |
3519 } | 3548 } |
3520 | 3549 |
3521 /** | 3550 /** |
3522 * A Version resource is a specific set of source code and configuration files | 3551 * A Version resource is a specific set of source code and configuration files |
3523 * that are deployed into a module. | 3552 * that are deployed into a module. |
3524 */ | 3553 */ |
3525 class Version { | 3554 class Version { |
3526 /** | 3555 /** |
3527 * Serving configuration for [Google Cloud | 3556 * Serving configuration for Google Cloud Endpoints |
3528 * Endpoints](https://cloud.google.com/appengine/docs/python/endpoints/). Only | 3557 * (https://cloud.google.com/appengine/docs/python/endpoints/).Only returned |
3529 * returned in `GET` requests if `view=FULL` is set. | 3558 * in GET requests if view=FULL is set. |
3530 */ | 3559 */ |
3531 ApiConfigHandler apiConfig; | 3560 ApiConfigHandler apiConfig; |
3532 /** | 3561 /** |
3533 * Automatic scaling is based on request rate, response latencies, and other | 3562 * Automatic scaling is based on request rate, response latencies, and other |
3534 * application metrics. | 3563 * application metrics. |
3535 */ | 3564 */ |
3536 AutomaticScaling automaticScaling; | 3565 AutomaticScaling automaticScaling; |
3537 /** | 3566 /** |
3538 * A module with basic scaling will create an instance when the application | 3567 * A module with basic scaling will create an instance when the application |
3539 * receives a request. The instance will be turned down when the app becomes | 3568 * receives a request. The instance will be turned down when the app becomes |
3540 * idle. Basic scaling is ideal for work that is intermittent or driven by | 3569 * idle. Basic scaling is ideal for work that is intermittent or driven by |
3541 * user activity. | 3570 * user activity. |
3542 */ | 3571 */ |
3543 BasicScaling basicScaling; | 3572 BasicScaling basicScaling; |
3544 /** | 3573 /** |
3545 * Metadata settings that are supplied to this version to enable beta runtime | 3574 * Metadata settings that are supplied to this version to enable beta runtime |
3546 * features. | 3575 * features. |
3547 */ | 3576 */ |
3548 core.Map<core.String, core.String> betaSettings; | 3577 core.Map<core.String, core.String> betaSettings; |
3549 /** Time that this version was created. @OutputOnly */ | 3578 /** Time that this version was created.@OutputOnly */ |
3550 core.String creationTime; | 3579 core.String creationTime; |
3551 /** | 3580 /** |
3552 * Duration that static files should be cached by web proxies and browsers. | 3581 * Duration that static files should be cached by web proxies and browsers. |
3553 * Only applicable if the corresponding | 3582 * Only applicable if the corresponding StaticFilesHandler |
3554 * [StaticFilesHandler](https://cloud.google.com/appengine/docs/admin-api/refe
rence/rest/v1/apps.services.versions#staticfileshandler) | 3583 * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.s
ervices.versions#staticfileshandler) |
3555 * does not specify its own expiration time. Only returned in `GET` requests | 3584 * does not specify its own expiration time.Only returned in GET requests if |
3556 * if `view=FULL` is set. | 3585 * view=FULL is set. |
3557 */ | 3586 */ |
3558 core.String defaultExpiration; | 3587 core.String defaultExpiration; |
3559 /** Email address of the user who created this version. @OutputOnly */ | 3588 /** Email address of the user who created this version.@OutputOnly */ |
3560 core.String deployer; | 3589 core.String deployer; |
3561 /** | 3590 /** |
3562 * Code and application artifacts that make up this version. Only returned in | 3591 * Code and application artifacts that make up this version.Only returned in |
3563 * `GET` requests if `view=FULL` is set. | 3592 * GET requests if view=FULL is set. |
3564 */ | 3593 */ |
3565 Deployment deployment; | 3594 Deployment deployment; |
3566 /** | 3595 /** |
3567 * App Engine execution environment to use for this version. Defaults to `1`. | 3596 * App Engine execution environment to use for this version.Defaults to 1. |
3568 */ | 3597 */ |
3569 core.String env; | 3598 core.String env; |
3570 /** | 3599 /** |
3571 * Environment variables made available to the application. Only returned in | 3600 * Environment variables made available to the application.Only returned in |
3572 * `GET` requests if `view=FULL` is set. | 3601 * GET requests if view=FULL is set. |
3573 */ | 3602 */ |
3574 core.Map<core.String, core.String> envVariables; | 3603 core.Map<core.String, core.String> envVariables; |
3575 /** | 3604 /** |
3576 * Custom static error pages. Limited to 10KB per page. Only returned in `GET` | 3605 * Custom static error pages. Limited to 10KB per page.Only returned in GET |
3577 * requests if `view=FULL` is set. | 3606 * requests if view=FULL is set. |
3578 */ | 3607 */ |
3579 core.List<ErrorHandler> errorHandlers; | 3608 core.List<ErrorHandler> errorHandlers; |
3580 /** | 3609 /** |
3581 * An ordered list of URL-matching patterns that should be applied to incoming | 3610 * An ordered list of URL-matching patterns that should be applied to incoming |
3582 * requests. The first matching URL handles the request and other request | 3611 * requests. The first matching URL handles the request and other request |
3583 * handlers are not attempted. Only returned in `GET` requests if `view=FULL` | 3612 * handlers are not attempted.Only returned in GET requests if view=FULL is |
3584 * is set. | 3613 * set. |
3585 */ | 3614 */ |
3586 core.List<UrlMap> handlers; | 3615 core.List<UrlMap> handlers; |
3587 /** | 3616 /** |
3588 * Configures health checking for VM instances. Unhealthy instances are | 3617 * Configures health checking for VM instances. Unhealthy instances are |
3589 * stopped and replaced with new instances. Only applicable for VM runtimes. | 3618 * stopped and replaced with new instances. Only applicable for VM |
3590 * Only returned in `GET` requests if `view=FULL` is set. | 3619 * runtimes.Only returned in GET requests if view=FULL is set. |
3591 */ | 3620 */ |
3592 HealthCheck healthCheck; | 3621 HealthCheck healthCheck; |
3593 /** | 3622 /** |
3594 * Relative name of the version within the module. Example: `v1`. Version | 3623 * Relative name of the version within the module. Example: v1. Version names |
3595 * names can contain only lowercase letters, numbers, or hyphens. Reserved | 3624 * can contain only lowercase letters, numbers, or hyphens. Reserved names: |
3596 * names: "default", "latest", and any name with the prefix "ah-". | 3625 * "default", "latest", and any name with the prefix "ah-". |
3597 */ | 3626 */ |
3598 core.String id; | 3627 core.String id; |
3599 /** | 3628 /** |
3600 * Before an application can receive email or XMPP messages, the application | 3629 * Before an application can receive email or XMPP messages, the application |
3601 * must be configured to enable the service. | 3630 * must be configured to enable the service. |
3602 */ | 3631 */ |
3603 core.List<core.String> inboundServices; | 3632 core.List<core.String> inboundServices; |
3604 /** | 3633 /** |
3605 * Instance class that is used to run this version. Valid values are: * | 3634 * Instance class that is used to run this version. Valid values are: |
3606 * AutomaticScaling: `F1`, `F2`, `F4`, `F4_1G` * ManualScaling or | 3635 * AutomaticScaling: F1, F2, F4, F4_1G ManualScaling or BasicScaling: B1, B2, |
3607 * BasicScaling: `B1`, `B2`, `B4`, `B8`, `B4_1G` Defaults to `F1` for | 3636 * B4, B8, B4_1GDefaults to F1 for AutomaticScaling and B1 for ManualScaling |
3608 * AutomaticScaling and `B1` for ManualScaling or BasicScaling. | 3637 * or BasicScaling. |
3609 */ | 3638 */ |
3610 core.String instanceClass; | 3639 core.String instanceClass; |
3611 /** | 3640 /** |
3612 * Configuration for third-party Python runtime libraries required by the | 3641 * Configuration for third-party Python runtime libraries required by the |
3613 * application. Only returned in `GET` requests if `view=FULL` is set. | 3642 * application.Only returned in GET requests if view=FULL is set. |
3614 */ | 3643 */ |
3615 core.List<Library> libraries; | 3644 core.List<Library> libraries; |
3616 /** | 3645 /** |
3617 * A module with manual scaling runs continuously, allowing you to perform | 3646 * A module with manual scaling runs continuously, allowing you to perform |
3618 * complex initialization and rely on the state of its memory over time. | 3647 * complex initialization and rely on the state of its memory over time. |
3619 */ | 3648 */ |
3620 ManualScaling manualScaling; | 3649 ManualScaling manualScaling; |
3621 /** | 3650 /** |
3622 * Full path to the Version resource in the API. Example: | 3651 * Full path to the Version resource in the API. Example: |
3623 * `apps/myapp/modules/default/versions/v1`. @OutputOnly | 3652 * apps/myapp/modules/default/versions/v1.@OutputOnly |
3624 */ | 3653 */ |
3625 core.String name; | 3654 core.String name; |
3626 /** Extra network settings. Only applicable for VM runtimes. */ | 3655 /** Extra network settings. Only applicable for VM runtimes. */ |
3627 Network network; | 3656 Network network; |
3628 /** | 3657 /** |
3629 * Files that match this pattern will not be built into this version. Only | 3658 * Files that match this pattern will not be built into this version. Only |
3630 * applicable for Go runtimes. Only returned in `GET` requests if `view=FULL` | 3659 * applicable for Go runtimes.Only returned in GET requests if view=FULL is |
3631 * is set. | 3660 * set. |
3632 */ | 3661 */ |
3633 core.String nobuildFilesRegex; | 3662 core.String nobuildFilesRegex; |
3634 /** Machine resources for this version. Only applicable for VM runtimes. */ | 3663 /** Machine resources for this version. Only applicable for VM runtimes. */ |
3635 Resources resources; | 3664 Resources resources; |
3636 /** Desired runtime. Example: `python27`. */ | 3665 /** Desired runtime. Example: python27. */ |
3637 core.String runtime; | 3666 core.String runtime; |
3638 /** | 3667 /** |
3639 * Current serving status of this version. Only the versions with a `SERVING` | 3668 * Current serving status of this version. Only the versions with a SERVING |
3640 * status create instances and can be billed. `SERVING_STATUS_UNSPECIFIED` is | 3669 * status create instances and can be billed.SERVING_STATUS_UNSPECIFIED is an |
3641 * an invalid value. Defaults to `SERVING`. | 3670 * invalid value. Defaults to SERVING. |
3642 * Possible string values are: | 3671 * Possible string values are: |
3643 * - "SERVING_STATUS_UNSPECIFIED" : A SERVING_STATUS_UNSPECIFIED. | 3672 * - "SERVING_STATUS_UNSPECIFIED" : A SERVING_STATUS_UNSPECIFIED. |
3644 * - "SERVING" : A SERVING. | 3673 * - "SERVING" : A SERVING. |
3645 * - "STOPPED" : A STOPPED. | 3674 * - "STOPPED" : A STOPPED. |
3646 */ | 3675 */ |
3647 core.String servingStatus; | 3676 core.String servingStatus; |
3648 /** Whether multiple requests can be dispatched to this version at once. */ | 3677 /** Whether multiple requests can be dispatched to this version at once. */ |
3649 core.bool threadsafe; | 3678 core.bool threadsafe; |
3650 /** Whether to deploy this version in a container on a virtual machine. */ | 3679 /** Whether to deploy this version in a container on a virtual machine. */ |
3651 core.bool vm; | 3680 core.bool vm; |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3809 } | 3838 } |
3810 if (threadsafe != null) { | 3839 if (threadsafe != null) { |
3811 _json["threadsafe"] = threadsafe; | 3840 _json["threadsafe"] = threadsafe; |
3812 } | 3841 } |
3813 if (vm != null) { | 3842 if (vm != null) { |
3814 _json["vm"] = vm; | 3843 _json["vm"] = vm; |
3815 } | 3844 } |
3816 return _json; | 3845 return _json; |
3817 } | 3846 } |
3818 } | 3847 } |
| 3848 |
| 3849 /** |
| 3850 * Volumes mounted within the app container. Only applicable for VM runtimes. |
| 3851 */ |
| 3852 class Volume { |
| 3853 /** Unique name for the volume. */ |
| 3854 core.String name; |
| 3855 /** Volume size in gigabytes. */ |
| 3856 core.double sizeGb; |
| 3857 /** Underlying volume type, e.g. 'tmpfs'. */ |
| 3858 core.String volumeType; |
| 3859 |
| 3860 Volume(); |
| 3861 |
| 3862 Volume.fromJson(core.Map _json) { |
| 3863 if (_json.containsKey("name")) { |
| 3864 name = _json["name"]; |
| 3865 } |
| 3866 if (_json.containsKey("sizeGb")) { |
| 3867 sizeGb = _json["sizeGb"]; |
| 3868 } |
| 3869 if (_json.containsKey("volumeType")) { |
| 3870 volumeType = _json["volumeType"]; |
| 3871 } |
| 3872 } |
| 3873 |
| 3874 core.Map toJson() { |
| 3875 var _json = new core.Map(); |
| 3876 if (name != null) { |
| 3877 _json["name"] = name; |
| 3878 } |
| 3879 if (sizeGb != null) { |
| 3880 _json["sizeGb"] = sizeGb; |
| 3881 } |
| 3882 if (volumeType != null) { |
| 3883 _json["volumeType"] = volumeType; |
| 3884 } |
| 3885 return _json; |
| 3886 } |
| 3887 } |
OLD | NEW |