| 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 uploadMedia: _uploadMedia, | 80 uploadMedia: _uploadMedia, |
| 81 downloadOptions: _downloadOptions); | 81 downloadOptions: _downloadOptions); |
| 82 return _response.then((data) => new Operation.fromJson(data)); | 82 return _response.then((data) => new Operation.fromJson(data)); |
| 83 } | 83 } |
| 84 | 84 |
| 85 /** | 85 /** |
| 86 * Gets information about an application. | 86 * Gets information about an application. |
| 87 * | 87 * |
| 88 * Request parameters: | 88 * Request parameters: |
| 89 * | 89 * |
| 90 * [appsId] - Part of `name`. Name of the application to get. For example: | 90 * [appsId] - Part of `name`. Name of the application to get. Example: |
| 91 * "apps/myapp". | 91 * `apps/myapp`. |
| 92 * | 92 * |
| 93 * [ensureResourcesExist] - Certain resources associated with an application | 93 * [ensureResourcesExist] - Certain resources associated with an application |
| 94 * are created on-demand. Controls whether these resources should be created | 94 * are created on-demand. Controls whether these resources should be created |
| 95 * when performing the `GET` operation. If specified and any resources could | 95 * when performing the `GET` operation. If specified and any resources could |
| 96 * not be created, the request will fail with an error code. Additionally, | 96 * not be created, the request will fail with an error code. Additionally, |
| 97 * this parameter can cause the request to take longer to complete. | 97 * this parameter can cause the request to take longer to complete. |
| 98 * | 98 * |
| 99 * Completes with a [Application]. | 99 * Completes with a [Application]. |
| 100 * | 100 * |
| 101 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 101 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 244 | 244 |
| 245 class AppsModulesResourceApi { | 245 class AppsModulesResourceApi { |
| 246 final commons.ApiRequester _requester; | 246 final commons.ApiRequester _requester; |
| 247 | 247 |
| 248 AppsModulesVersionsResourceApi get versions => new AppsModulesVersionsResource
Api(_requester); | 248 AppsModulesVersionsResourceApi get versions => new AppsModulesVersionsResource
Api(_requester); |
| 249 | 249 |
| 250 AppsModulesResourceApi(commons.ApiRequester client) : | 250 AppsModulesResourceApi(commons.ApiRequester client) : |
| 251 _requester = client; | 251 _requester = client; |
| 252 | 252 |
| 253 /** | 253 /** |
| 254 * Deletes a module and all enclosed versions. | 254 * Deletes the specified module and all enclosed versions. |
| 255 * | 255 * |
| 256 * Request parameters: | 256 * Request parameters: |
| 257 * | 257 * |
| 258 * [appsId] - Part of `name`. Name of the resource requested. For example: | 258 * [appsId] - Part of `name`. Name of the resource requested. Example: |
| 259 * "apps/myapp/modules/default". | 259 * `apps/myapp/modules/default`. |
| 260 * | 260 * |
| 261 * [modulesId] - Part of `name`. See documentation of `appsId`. | 261 * [modulesId] - Part of `name`. See documentation of `appsId`. |
| 262 * | 262 * |
| 263 * Completes with a [Operation]. | 263 * Completes with a [Operation]. |
| 264 * | 264 * |
| 265 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 265 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 266 * error. | 266 * error. |
| 267 * | 267 * |
| 268 * If the used [http.Client] completes with an error when making a REST call, | 268 * If the used [http.Client] completes with an error when making a REST call, |
| 269 * this method will complete with the same error. | 269 * this method will complete with the same error. |
| (...skipping 19 matching lines...) Expand all Loading... |
| 289 "DELETE", | 289 "DELETE", |
| 290 body: _body, | 290 body: _body, |
| 291 queryParams: _queryParams, | 291 queryParams: _queryParams, |
| 292 uploadOptions: _uploadOptions, | 292 uploadOptions: _uploadOptions, |
| 293 uploadMedia: _uploadMedia, | 293 uploadMedia: _uploadMedia, |
| 294 downloadOptions: _downloadOptions); | 294 downloadOptions: _downloadOptions); |
| 295 return _response.then((data) => new Operation.fromJson(data)); | 295 return _response.then((data) => new Operation.fromJson(data)); |
| 296 } | 296 } |
| 297 | 297 |
| 298 /** | 298 /** |
| 299 * Gets the current configuration of the module. | 299 * Gets the current configuration of the specified module. |
| 300 * | 300 * |
| 301 * Request parameters: | 301 * Request parameters: |
| 302 * | 302 * |
| 303 * [appsId] - Part of `name`. Name of the resource requested. For example: | 303 * [appsId] - Part of `name`. Name of the resource requested. Example: |
| 304 * "apps/myapp/modules/default". | 304 * `apps/myapp/modules/default`. |
| 305 * | 305 * |
| 306 * [modulesId] - Part of `name`. See documentation of `appsId`. | 306 * [modulesId] - Part of `name`. See documentation of `appsId`. |
| 307 * | 307 * |
| 308 * Completes with a [Module]. | 308 * Completes with a [Module]. |
| 309 * | 309 * |
| 310 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 310 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 311 * error. | 311 * error. |
| 312 * | 312 * |
| 313 * If the used [http.Client] completes with an error when making a REST call, | 313 * If the used [http.Client] completes with an error when making a REST call, |
| 314 * this method will complete with the same error. | 314 * this method will complete with the same error. |
| (...skipping 23 matching lines...) Expand all Loading... |
| 338 uploadMedia: _uploadMedia, | 338 uploadMedia: _uploadMedia, |
| 339 downloadOptions: _downloadOptions); | 339 downloadOptions: _downloadOptions); |
| 340 return _response.then((data) => new Module.fromJson(data)); | 340 return _response.then((data) => new Module.fromJson(data)); |
| 341 } | 341 } |
| 342 | 342 |
| 343 /** | 343 /** |
| 344 * Lists all the modules in the application. | 344 * Lists all the modules in the application. |
| 345 * | 345 * |
| 346 * Request parameters: | 346 * Request parameters: |
| 347 * | 347 * |
| 348 * [appsId] - Part of `name`. Name of the resource requested. For example: | 348 * [appsId] - Part of `name`. Name of the resource requested. Example: |
| 349 * "apps/myapp". | 349 * `apps/myapp`. |
| 350 * | 350 * |
| 351 * [pageSize] - Maximum results to return per page. | 351 * [pageSize] - Maximum results to return per page. |
| 352 * | 352 * |
| 353 * [pageToken] - Continuation token for fetching the next page of results. | 353 * [pageToken] - Continuation token for fetching the next page of results. |
| 354 * | 354 * |
| 355 * Completes with a [ListModulesResponse]. | 355 * Completes with a [ListModulesResponse]. |
| 356 * | 356 * |
| 357 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 357 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 358 * error. | 358 * error. |
| 359 * | 359 * |
| (...skipping 30 matching lines...) Expand all Loading... |
| 390 return _response.then((data) => new ListModulesResponse.fromJson(data)); | 390 return _response.then((data) => new ListModulesResponse.fromJson(data)); |
| 391 } | 391 } |
| 392 | 392 |
| 393 /** | 393 /** |
| 394 * Updates the configuration of the specified module. | 394 * Updates the configuration of the specified module. |
| 395 * | 395 * |
| 396 * [request] - The metadata request object. | 396 * [request] - The metadata request object. |
| 397 * | 397 * |
| 398 * Request parameters: | 398 * Request parameters: |
| 399 * | 399 * |
| 400 * [appsId] - Part of `name`. Name of the resource to update. For example: | 400 * [appsId] - Part of `name`. Name of the resource to update. Example: |
| 401 * "apps/myapp/modules/default". | 401 * `apps/myapp/modules/default`. |
| 402 * | 402 * |
| 403 * [modulesId] - Part of `name`. See documentation of `appsId`. | 403 * [modulesId] - Part of `name`. See documentation of `appsId`. |
| 404 * | 404 * |
| 405 * [mask] - Standard field mask for the set of fields to be updated. | 405 * [mask] - Standard field mask for the set of fields to be updated. |
| 406 * | 406 * |
| 407 * [migrateTraffic] - Whether to use Traffic Migration to shift traffic | 407 * [migrateTraffic] - Set to `true` to gradually shift traffic from one |
| 408 * gradually. Traffic can only be migrated from a single version to another | 408 * version to another single version. By default, traffic is shifted |
| 409 * single version. | 409 * immediately. For gradual traffic migration, the target version must be |
| 410 * located within instances that are configured for both [warmup |
| 411 * requests](https://cloud.google.com/appengine/docs/admin-api/reference/rest/
v1beta4/apps.modules.versions#inboundservicetype) |
| 412 * and [automatic |
| 413 * scaling](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v
1beta4/apps.modules.versions#automaticscaling). |
| 414 * You must specify the |
| 415 * [`shardBy`](https://cloud.google.com/appengine/docs/admin-api/reference/res
t/v1beta4/apps.modules#shardby) |
| 416 * field in the Module resource. Gradual traffic migration is not supported in |
| 417 * the App Engine flexible environment. For examples, see [Migrating and |
| 418 * Splitting |
| 419 * Traffic](https://cloud.google.com/appengine/docs/admin-api/migrating-splitt
ing-traffic). |
| 410 * | 420 * |
| 411 * Completes with a [Operation]. | 421 * Completes with a [Operation]. |
| 412 * | 422 * |
| 413 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 423 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 414 * error. | 424 * error. |
| 415 * | 425 * |
| 416 * If the used [http.Client] completes with an error when making a REST call, | 426 * If the used [http.Client] completes with an error when making a REST call, |
| 417 * this method will complete with the same error. | 427 * this method will complete with the same error. |
| 418 */ | 428 */ |
| 419 async.Future<Operation> patch(Module request, core.String appsId, core.String
modulesId, {core.String mask, core.bool migrateTraffic}) { | 429 async.Future<Operation> patch(Module request, core.String appsId, core.String
modulesId, {core.String mask, core.bool migrateTraffic}) { |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 457 | 467 |
| 458 class AppsModulesVersionsResourceApi { | 468 class AppsModulesVersionsResourceApi { |
| 459 final commons.ApiRequester _requester; | 469 final commons.ApiRequester _requester; |
| 460 | 470 |
| 461 AppsModulesVersionsInstancesResourceApi get instances => new AppsModulesVersio
nsInstancesResourceApi(_requester); | 471 AppsModulesVersionsInstancesResourceApi get instances => new AppsModulesVersio
nsInstancesResourceApi(_requester); |
| 462 | 472 |
| 463 AppsModulesVersionsResourceApi(commons.ApiRequester client) : | 473 AppsModulesVersionsResourceApi(commons.ApiRequester client) : |
| 464 _requester = client; | 474 _requester = client; |
| 465 | 475 |
| 466 /** | 476 /** |
| 467 * Deploys new code and resource files to a version. | 477 * Deploys code and resource files to a new version. |
| 468 * | 478 * |
| 469 * [request] - The metadata request object. | 479 * [request] - The metadata request object. |
| 470 * | 480 * |
| 471 * Request parameters: | 481 * Request parameters: |
| 472 * | 482 * |
| 473 * [appsId] - Part of `name`. Name of the resource to update. For example: | 483 * [appsId] - Part of `name`. Name of the resource to update. Example: |
| 474 * "apps/myapp/modules/default". | 484 * `apps/myapp/modules/default`. |
| 475 * | 485 * |
| 476 * [modulesId] - Part of `name`. See documentation of `appsId`. | 486 * [modulesId] - Part of `name`. See documentation of `appsId`. |
| 477 * | 487 * |
| 478 * Completes with a [Operation]. | 488 * Completes with a [Operation]. |
| 479 * | 489 * |
| 480 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 490 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 481 * error. | 491 * error. |
| 482 * | 492 * |
| 483 * If the used [http.Client] completes with an error when making a REST call, | 493 * If the used [http.Client] completes with an error when making a REST call, |
| 484 * this method will complete with the same error. | 494 * this method will complete with the same error. |
| (...skipping 26 matching lines...) Expand all Loading... |
| 511 uploadMedia: _uploadMedia, | 521 uploadMedia: _uploadMedia, |
| 512 downloadOptions: _downloadOptions); | 522 downloadOptions: _downloadOptions); |
| 513 return _response.then((data) => new Operation.fromJson(data)); | 523 return _response.then((data) => new Operation.fromJson(data)); |
| 514 } | 524 } |
| 515 | 525 |
| 516 /** | 526 /** |
| 517 * Deletes an existing version. | 527 * Deletes an existing version. |
| 518 * | 528 * |
| 519 * Request parameters: | 529 * Request parameters: |
| 520 * | 530 * |
| 521 * [appsId] - Part of `name`. Name of the resource requested. For example: | 531 * [appsId] - Part of `name`. Name of the resource requested. Example: |
| 522 * "apps/myapp/modules/default/versions/v1". | 532 * `apps/myapp/modules/default/versions/v1`. |
| 523 * | 533 * |
| 524 * [modulesId] - Part of `name`. See documentation of `appsId`. | 534 * [modulesId] - Part of `name`. See documentation of `appsId`. |
| 525 * | 535 * |
| 526 * [versionsId] - Part of `name`. See documentation of `appsId`. | 536 * [versionsId] - Part of `name`. See documentation of `appsId`. |
| 527 * | 537 * |
| 528 * Completes with a [Operation]. | 538 * Completes with a [Operation]. |
| 529 * | 539 * |
| 530 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 540 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 531 * error. | 541 * error. |
| 532 * | 542 * |
| (...skipping 24 matching lines...) Expand all Loading... |
| 557 "DELETE", | 567 "DELETE", |
| 558 body: _body, | 568 body: _body, |
| 559 queryParams: _queryParams, | 569 queryParams: _queryParams, |
| 560 uploadOptions: _uploadOptions, | 570 uploadOptions: _uploadOptions, |
| 561 uploadMedia: _uploadMedia, | 571 uploadMedia: _uploadMedia, |
| 562 downloadOptions: _downloadOptions); | 572 downloadOptions: _downloadOptions); |
| 563 return _response.then((data) => new Operation.fromJson(data)); | 573 return _response.then((data) => new Operation.fromJson(data)); |
| 564 } | 574 } |
| 565 | 575 |
| 566 /** | 576 /** |
| 567 * Gets application deployment information. | 577 * Gets the specified Version resource. By default, only a `BASIC_VIEW` will |
| 578 * be returned. Specify the `FULL_VIEW` parameter to get the full resource. |
| 568 * | 579 * |
| 569 * Request parameters: | 580 * Request parameters: |
| 570 * | 581 * |
| 571 * [appsId] - Part of `name`. Name of the resource requested. For example: | 582 * [appsId] - Part of `name`. Name of the resource requested. Example: |
| 572 * "apps/myapp/modules/default/versions/v1". | 583 * `apps/myapp/modules/default/versions/v1`. |
| 573 * | 584 * |
| 574 * [modulesId] - Part of `name`. See documentation of `appsId`. | 585 * [modulesId] - Part of `name`. See documentation of `appsId`. |
| 575 * | 586 * |
| 576 * [versionsId] - Part of `name`. See documentation of `appsId`. | 587 * [versionsId] - Part of `name`. See documentation of `appsId`. |
| 577 * | 588 * |
| 578 * [view] - Controls the set of fields returned in the `Get` response. | 589 * [view] - Controls the set of fields returned in the `Get` response. |
| 579 * Possible string values are: | 590 * Possible string values are: |
| 580 * - "BASIC" : A BASIC. | 591 * - "BASIC" : A BASIC. |
| 581 * - "FULL" : A FULL. | 592 * - "FULL" : A FULL. |
| 582 * | 593 * |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 619 uploadMedia: _uploadMedia, | 630 uploadMedia: _uploadMedia, |
| 620 downloadOptions: _downloadOptions); | 631 downloadOptions: _downloadOptions); |
| 621 return _response.then((data) => new Version.fromJson(data)); | 632 return _response.then((data) => new Version.fromJson(data)); |
| 622 } | 633 } |
| 623 | 634 |
| 624 /** | 635 /** |
| 625 * Lists the versions of a module. | 636 * Lists the versions of a module. |
| 626 * | 637 * |
| 627 * Request parameters: | 638 * Request parameters: |
| 628 * | 639 * |
| 629 * [appsId] - Part of `name`. Name of the resource requested. For example: | 640 * [appsId] - Part of `name`. Name of the resource requested. Example: |
| 630 * "apps/myapp/modules/default". | 641 * `apps/myapp/modules/default`. |
| 631 * | 642 * |
| 632 * [modulesId] - Part of `name`. See documentation of `appsId`. | 643 * [modulesId] - Part of `name`. See documentation of `appsId`. |
| 633 * | 644 * |
| 634 * [view] - Controls the set of fields returned in the `List` response. | 645 * [view] - Controls the set of fields returned in the `List` response. |
| 635 * Possible string values are: | 646 * Possible string values are: |
| 636 * - "BASIC" : A BASIC. | 647 * - "BASIC" : A BASIC. |
| 637 * - "FULL" : A FULL. | 648 * - "FULL" : A FULL. |
| 638 * | 649 * |
| 639 * [pageSize] - Maximum results to return per page. | 650 * [pageSize] - Maximum results to return per page. |
| 640 * | 651 * |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 681 uploadOptions: _uploadOptions, | 692 uploadOptions: _uploadOptions, |
| 682 uploadMedia: _uploadMedia, | 693 uploadMedia: _uploadMedia, |
| 683 downloadOptions: _downloadOptions); | 694 downloadOptions: _downloadOptions); |
| 684 return _response.then((data) => new ListVersionsResponse.fromJson(data)); | 695 return _response.then((data) => new ListVersionsResponse.fromJson(data)); |
| 685 } | 696 } |
| 686 | 697 |
| 687 /** | 698 /** |
| 688 * Updates the specified Version resource. You can specify the following | 699 * Updates the specified Version resource. You can specify the following |
| 689 * fields depending on the App Engine environment and type of scaling that the | 700 * fields depending on the App Engine environment and type of scaling that the |
| 690 * version resource uses: * | 701 * version resource uses: * |
| 691 * [`serving_status`](/appengine/docs/admin-api/reference/rest/v1beta4/apps.se
rvices.versions#Version.FIELDS.serving_status): | 702 * [`serving_status`](https://cloud.google.com/appengine/docs/admin-api/refere
nce/rest/v1beta4/apps.modules.versions#Version.FIELDS.serving_status): |
| 692 * For Version resources that use basic scaling, manual scaling, or run in the | 703 * For Version resources that use basic scaling, manual scaling, or run in the |
| 693 * App Engine flexible environment. * | 704 * App Engine flexible environment. * |
| 694 * [`instance_class`](/appengine/docs/admin-api/reference/rest/v1beta4/apps.se
rvices.versions#Version.FIELDS.instance_class): | 705 * [`instance_class`](https://cloud.google.com/appengine/docs/admin-api/refere
nce/rest/v1beta4/apps.modules.versions#Version.FIELDS.instance_class): |
| 695 * For Version resources that run in the App Engine standard environment. * | 706 * For Version resources that run in the App Engine standard environment. * |
| 696 * [`automatic_scaling.min_idle_instances`](/appengine/docs/admin-api/referenc
e/rest/v1beta4/apps.services.versions#Version.FIELDS.automatic_scaling): | 707 * [`automatic_scaling.min_idle_instances`](https://cloud.google.com/appengine
/docs/admin-api/reference/rest/v1beta4/apps.modules.versions#Version.FIELDS.auto
matic_scaling): |
| 697 * For Version resources that use automatic scaling and run in the App Engine | 708 * For Version resources that use automatic scaling and run in the App Engine |
| 698 * standard environment. * | 709 * standard environment. * |
| 699 * [`automatic_scaling.max_idle_instances`](/appengine/docs/admin-api/referenc
e/rest/v1beta4/apps.services.versions#Version.FIELDS.automatic_scaling): | 710 * [`automatic_scaling.max_idle_instances`](https://cloud.google.com/appengine
/docs/admin-api/reference/rest/v1beta4/apps.modules.versions#Version.FIELDS.auto
matic_scaling): |
| 700 * For Version resources that use automatic scaling and run in the App Engine | 711 * For Version resources that use automatic scaling and run in the App Engine |
| 701 * standard environment. | 712 * standard environment. |
| 702 * | 713 * |
| 703 * [request] - The metadata request object. | 714 * [request] - The metadata request object. |
| 704 * | 715 * |
| 705 * Request parameters: | 716 * Request parameters: |
| 706 * | 717 * |
| 707 * [appsId] - Part of `name`. Name of the resource to update. For example: | 718 * [appsId] - Part of `name`. Name of the resource to update. Example: |
| 708 * "apps/myapp/modules/default/versions/1". | 719 * `apps/myapp/modules/default/versions/1`. |
| 709 * | 720 * |
| 710 * [modulesId] - Part of `name`. See documentation of `appsId`. | 721 * [modulesId] - Part of `name`. See documentation of `appsId`. |
| 711 * | 722 * |
| 712 * [versionsId] - Part of `name`. See documentation of `appsId`. | 723 * [versionsId] - Part of `name`. See documentation of `appsId`. |
| 713 * | 724 * |
| 714 * [mask] - Standard field mask for the set of fields to be updated. | 725 * [mask] - Standard field mask for the set of fields to be updated. |
| 715 * | 726 * |
| 716 * Completes with a [Operation]. | 727 * Completes with a [Operation]. |
| 717 * | 728 * |
| 718 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 729 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 760 } | 771 } |
| 761 | 772 |
| 762 | 773 |
| 763 class AppsModulesVersionsInstancesResourceApi { | 774 class AppsModulesVersionsInstancesResourceApi { |
| 764 final commons.ApiRequester _requester; | 775 final commons.ApiRequester _requester; |
| 765 | 776 |
| 766 AppsModulesVersionsInstancesResourceApi(commons.ApiRequester client) : | 777 AppsModulesVersionsInstancesResourceApi(commons.ApiRequester client) : |
| 767 _requester = client; | 778 _requester = client; |
| 768 | 779 |
| 769 /** | 780 /** |
| 770 * Enable debugging of this VM instance. This call allows you to SSH to the | 781 * Enables debugging on a VM instance. This allows you to use the SSH command |
| 771 * VM. While the VM is in debug mode, it continues to serve live traffic. | 782 * to connect to the virtual machine where the instance lives. While in "debug |
| 772 * After you're done debugging an instance, delete the instance; the system | 783 * mode", the instance continues to serve live traffic. You should delete the |
| 773 * creates a new instance when needed. You can't debug a non-VM instance. | 784 * instance when you are done debugging and then allow the system to take over |
| 785 * and determine if another instance should be started. Only applicable for |
| 786 * instances in App Engine flexible environment. |
| 774 * | 787 * |
| 775 * [request] - The metadata request object. | 788 * [request] - The metadata request object. |
| 776 * | 789 * |
| 777 * Request parameters: | 790 * Request parameters: |
| 778 * | 791 * |
| 779 * [appsId] - Part of `name`. Name of the resource requested. For example: | 792 * [appsId] - Part of `name`. Name of the resource requested. Example: |
| 780 * "apps/myapp/modules/default/versions/v1/instances/instance-1". | 793 * `apps/myapp/modules/default/versions/v1/instances/instance-1`. |
| 781 * | 794 * |
| 782 * [modulesId] - Part of `name`. See documentation of `appsId`. | 795 * [modulesId] - Part of `name`. See documentation of `appsId`. |
| 783 * | 796 * |
| 784 * [versionsId] - Part of `name`. See documentation of `appsId`. | 797 * [versionsId] - Part of `name`. See documentation of `appsId`. |
| 785 * | 798 * |
| 786 * [instancesId] - Part of `name`. See documentation of `appsId`. | 799 * [instancesId] - Part of `name`. See documentation of `appsId`. |
| 787 * | 800 * |
| 788 * Completes with a [Operation]. | 801 * Completes with a [Operation]. |
| 789 * | 802 * |
| 790 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 803 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 827 uploadMedia: _uploadMedia, | 840 uploadMedia: _uploadMedia, |
| 828 downloadOptions: _downloadOptions); | 841 downloadOptions: _downloadOptions); |
| 829 return _response.then((data) => new Operation.fromJson(data)); | 842 return _response.then((data) => new Operation.fromJson(data)); |
| 830 } | 843 } |
| 831 | 844 |
| 832 /** | 845 /** |
| 833 * Stops a running instance. | 846 * Stops a running instance. |
| 834 * | 847 * |
| 835 * Request parameters: | 848 * Request parameters: |
| 836 * | 849 * |
| 837 * [appsId] - Part of `name`. Name of the resource requested. For example: | 850 * [appsId] - Part of `name`. Name of the resource requested. Example: |
| 838 * "apps/myapp/modules/default/versions/v1/instances/instance-1". | 851 * `apps/myapp/modules/default/versions/v1/instances/instance-1`. |
| 839 * | 852 * |
| 840 * [modulesId] - Part of `name`. See documentation of `appsId`. | 853 * [modulesId] - Part of `name`. See documentation of `appsId`. |
| 841 * | 854 * |
| 842 * [versionsId] - Part of `name`. See documentation of `appsId`. | 855 * [versionsId] - Part of `name`. See documentation of `appsId`. |
| 843 * | 856 * |
| 844 * [instancesId] - Part of `name`. See documentation of `appsId`. | 857 * [instancesId] - Part of `name`. See documentation of `appsId`. |
| 845 * | 858 * |
| 846 * Completes with a [Operation]. | 859 * Completes with a [Operation]. |
| 847 * | 860 * |
| 848 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 861 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 882 uploadMedia: _uploadMedia, | 895 uploadMedia: _uploadMedia, |
| 883 downloadOptions: _downloadOptions); | 896 downloadOptions: _downloadOptions); |
| 884 return _response.then((data) => new Operation.fromJson(data)); | 897 return _response.then((data) => new Operation.fromJson(data)); |
| 885 } | 898 } |
| 886 | 899 |
| 887 /** | 900 /** |
| 888 * Gets instance information. | 901 * Gets instance information. |
| 889 * | 902 * |
| 890 * Request parameters: | 903 * Request parameters: |
| 891 * | 904 * |
| 892 * [appsId] - Part of `name`. Name of the resource requested. For example: | 905 * [appsId] - Part of `name`. Name of the resource requested. Example: |
| 893 * "apps/myapp/modules/default/versions/v1/instances/instance-1". | 906 * `apps/myapp/modules/default/versions/v1/instances/instance-1`. |
| 894 * | 907 * |
| 895 * [modulesId] - Part of `name`. See documentation of `appsId`. | 908 * [modulesId] - Part of `name`. See documentation of `appsId`. |
| 896 * | 909 * |
| 897 * [versionsId] - Part of `name`. See documentation of `appsId`. | 910 * [versionsId] - Part of `name`. See documentation of `appsId`. |
| 898 * | 911 * |
| 899 * [instancesId] - Part of `name`. See documentation of `appsId`. | 912 * [instancesId] - Part of `name`. See documentation of `appsId`. |
| 900 * | 913 * |
| 901 * Completes with a [Instance]. | 914 * Completes with a [Instance]. |
| 902 * | 915 * |
| 903 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 916 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 937 uploadMedia: _uploadMedia, | 950 uploadMedia: _uploadMedia, |
| 938 downloadOptions: _downloadOptions); | 951 downloadOptions: _downloadOptions); |
| 939 return _response.then((data) => new Instance.fromJson(data)); | 952 return _response.then((data) => new Instance.fromJson(data)); |
| 940 } | 953 } |
| 941 | 954 |
| 942 /** | 955 /** |
| 943 * Lists the instances of a version. | 956 * Lists the instances of a version. |
| 944 * | 957 * |
| 945 * Request parameters: | 958 * Request parameters: |
| 946 * | 959 * |
| 947 * [appsId] - Part of `name`. Name of the resource requested. For example: | 960 * [appsId] - Part of `name`. Name of the resource requested. Example: |
| 948 * "apps/myapp/modules/default/versions/v1". | 961 * `apps/myapp/modules/default/versions/v1`. |
| 949 * | 962 * |
| 950 * [modulesId] - Part of `name`. See documentation of `appsId`. | 963 * [modulesId] - Part of `name`. See documentation of `appsId`. |
| 951 * | 964 * |
| 952 * [versionsId] - Part of `name`. See documentation of `appsId`. | 965 * [versionsId] - Part of `name`. See documentation of `appsId`. |
| 953 * | 966 * |
| 954 * [pageSize] - Maximum results to return per page. | 967 * [pageSize] - Maximum results to return per page. |
| 955 * | 968 * |
| 956 * [pageToken] - Continuation token for fetching the next page of results. | 969 * [pageToken] - Continuation token for fetching the next page of results. |
| 957 * | 970 * |
| 958 * Completes with a [ListInstancesResponse]. | 971 * Completes with a [ListInstancesResponse]. |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1108 uploadOptions: _uploadOptions, | 1121 uploadOptions: _uploadOptions, |
| 1109 uploadMedia: _uploadMedia, | 1122 uploadMedia: _uploadMedia, |
| 1110 downloadOptions: _downloadOptions); | 1123 downloadOptions: _downloadOptions); |
| 1111 return _response.then((data) => new ListOperationsResponse.fromJson(data)); | 1124 return _response.then((data) => new ListOperationsResponse.fromJson(data)); |
| 1112 } | 1125 } |
| 1113 | 1126 |
| 1114 } | 1127 } |
| 1115 | 1128 |
| 1116 | 1129 |
| 1117 | 1130 |
| 1118 /** API Serving configuration for Cloud Endpoints. */ | 1131 /** |
| 1132 * [Google Cloud |
| 1133 * Endpoints](https://cloud.google.com/appengine/docs/python/endpoints/) |
| 1134 * configuration for API handlers. |
| 1135 */ |
| 1119 class ApiConfigHandler { | 1136 class ApiConfigHandler { |
| 1120 /** | 1137 /** |
| 1121 * For users not logged in, how to handle access to resources with required | 1138 * Action to take when users access resources that require authentication. |
| 1122 * login. Defaults to "redirect". | 1139 * Defaults to `redirect`. |
| 1123 * Possible string values are: | 1140 * Possible string values are: |
| 1124 * - "AUTH_FAIL_ACTION_UNSPECIFIED" : A AUTH_FAIL_ACTION_UNSPECIFIED. | 1141 * - "AUTH_FAIL_ACTION_UNSPECIFIED" : A AUTH_FAIL_ACTION_UNSPECIFIED. |
| 1125 * - "AUTH_FAIL_ACTION_REDIRECT" : A AUTH_FAIL_ACTION_REDIRECT. | 1142 * - "AUTH_FAIL_ACTION_REDIRECT" : A AUTH_FAIL_ACTION_REDIRECT. |
| 1126 * - "AUTH_FAIL_ACTION_UNAUTHORIZED" : A AUTH_FAIL_ACTION_UNAUTHORIZED. | 1143 * - "AUTH_FAIL_ACTION_UNAUTHORIZED" : A AUTH_FAIL_ACTION_UNAUTHORIZED. |
| 1127 */ | 1144 */ |
| 1128 core.String authFailAction; | 1145 core.String authFailAction; |
| 1129 /** | 1146 /** |
| 1130 * What level of login is required to access this resource. Default is | 1147 * Level of login required to access this resource. Defaults to `optional`. |
| 1131 * "optional". | |
| 1132 * Possible string values are: | 1148 * Possible string values are: |
| 1133 * - "LOGIN_UNSPECIFIED" : A LOGIN_UNSPECIFIED. | 1149 * - "LOGIN_UNSPECIFIED" : A LOGIN_UNSPECIFIED. |
| 1134 * - "LOGIN_OPTIONAL" : A LOGIN_OPTIONAL. | 1150 * - "LOGIN_OPTIONAL" : A LOGIN_OPTIONAL. |
| 1135 * - "LOGIN_ADMIN" : A LOGIN_ADMIN. | 1151 * - "LOGIN_ADMIN" : A LOGIN_ADMIN. |
| 1136 * - "LOGIN_REQUIRED" : A LOGIN_REQUIRED. | 1152 * - "LOGIN_REQUIRED" : A LOGIN_REQUIRED. |
| 1137 */ | 1153 */ |
| 1138 core.String login; | 1154 core.String login; |
| 1139 /** Specifies the path to the script from the application root directory. */ | 1155 /** Path to the script from the application root directory. */ |
| 1140 core.String script; | 1156 core.String script; |
| 1141 /** | 1157 /** |
| 1142 * Configures whether security (HTTPS) should be enforced for this URL. | 1158 * Security (HTTPS) enforcement for this URL. |
| 1143 * Possible string values are: | 1159 * Possible string values are: |
| 1144 * - "SECURE_UNSPECIFIED" : A SECURE_UNSPECIFIED. | 1160 * - "SECURE_UNSPECIFIED" : A SECURE_UNSPECIFIED. |
| 1145 * - "SECURE_DEFAULT" : A SECURE_DEFAULT. | 1161 * - "SECURE_DEFAULT" : A SECURE_DEFAULT. |
| 1146 * - "SECURE_NEVER" : A SECURE_NEVER. | 1162 * - "SECURE_NEVER" : A SECURE_NEVER. |
| 1147 * - "SECURE_OPTIONAL" : A SECURE_OPTIONAL. | 1163 * - "SECURE_OPTIONAL" : A SECURE_OPTIONAL. |
| 1148 * - "SECURE_ALWAYS" : A SECURE_ALWAYS. | 1164 * - "SECURE_ALWAYS" : A SECURE_ALWAYS. |
| 1149 */ | 1165 */ |
| 1150 core.String securityLevel; | 1166 core.String securityLevel; |
| 1151 /** URL to serve the endpoint at. */ | 1167 /** URL to serve the endpoint at. */ |
| 1152 core.String url; | 1168 core.String url; |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1185 if (securityLevel != null) { | 1201 if (securityLevel != null) { |
| 1186 _json["securityLevel"] = securityLevel; | 1202 _json["securityLevel"] = securityLevel; |
| 1187 } | 1203 } |
| 1188 if (url != null) { | 1204 if (url != null) { |
| 1189 _json["url"] = url; | 1205 _json["url"] = url; |
| 1190 } | 1206 } |
| 1191 return _json; | 1207 return _json; |
| 1192 } | 1208 } |
| 1193 } | 1209 } |
| 1194 | 1210 |
| 1195 /** Use Google Cloud Endpoints to handle requests. */ | 1211 /** Uses Google Cloud Endpoints to handle requests. */ |
| 1196 class ApiEndpointHandler { | 1212 class ApiEndpointHandler { |
| 1197 /** Specifies the path to the script from the application root directory. */ | 1213 /** Path to the script from the application root directory. */ |
| 1198 core.String scriptPath; | 1214 core.String scriptPath; |
| 1199 | 1215 |
| 1200 ApiEndpointHandler(); | 1216 ApiEndpointHandler(); |
| 1201 | 1217 |
| 1202 ApiEndpointHandler.fromJson(core.Map _json) { | 1218 ApiEndpointHandler.fromJson(core.Map _json) { |
| 1203 if (_json.containsKey("scriptPath")) { | 1219 if (_json.containsKey("scriptPath")) { |
| 1204 scriptPath = _json["scriptPath"]; | 1220 scriptPath = _json["scriptPath"]; |
| 1205 } | 1221 } |
| 1206 } | 1222 } |
| 1207 | 1223 |
| 1208 core.Map toJson() { | 1224 core.Map toJson() { |
| 1209 var _json = new core.Map(); | 1225 var _json = new core.Map(); |
| 1210 if (scriptPath != null) { | 1226 if (scriptPath != null) { |
| 1211 _json["scriptPath"] = scriptPath; | 1227 _json["scriptPath"] = scriptPath; |
| 1212 } | 1228 } |
| 1213 return _json; | 1229 return _json; |
| 1214 } | 1230 } |
| 1215 } | 1231 } |
| 1216 | 1232 |
| 1217 /** | 1233 /** |
| 1218 * An Application contains the top-level configuration of an App Engine | 1234 * An Application resource contains the top-level configuration of an App Engine |
| 1219 * application. | 1235 * application. |
| 1220 */ | 1236 */ |
| 1221 class Application { | 1237 class Application { |
| 1222 /** | 1238 /** |
| 1223 * If set, only users from the specified Google Apps authentication domain may | 1239 * Google Apps authentication domain that controls which users can access this |
| 1224 * access the application. If not set, any Google Account may access the | 1240 * application. Defaults to open access for any Google Account. |
| 1225 * application. | |
| 1226 */ | 1241 */ |
| 1227 core.String authDomain; | 1242 core.String authDomain; |
| 1228 /** | 1243 /** |
| 1229 * A Google Cloud Storage bucket which can be used for storing files | 1244 * Google Cloud Storage bucket that can be used for storing files associated |
| 1230 * associated with an application. This bucket is associated with the | 1245 * with this application. This bucket is associated with the application and |
| 1231 * application and can be used by the gcloud deployment commands. @OutputOnly | 1246 * can be used by the gcloud deployment commands. @OutputOnly |
| 1232 */ | 1247 */ |
| 1233 core.String codeBucket; | 1248 core.String codeBucket; |
| 1234 /** | 1249 /** |
| 1235 * A Google Cloud Storage bucket which can be used by the application to store | 1250 * Google Cloud Storage bucket that can be used by this application to store |
| 1236 * content. @OutputOnly | 1251 * content. @OutputOnly |
| 1237 */ | 1252 */ |
| 1238 core.String defaultBucket; | 1253 core.String defaultBucket; |
| 1239 /** | 1254 /** Cookie expiration policy for this application. @OutputOnly */ |
| 1240 * Determines the cookie expiration policy for the application. @OutputOnly | |
| 1241 */ | |
| 1242 core.String defaultCookieExpiration; | 1255 core.String defaultCookieExpiration; |
| 1243 /** | 1256 /** |
| 1244 * The hostname used to reach the application, as resolved by App Engine. | 1257 * Hostname used to reach the application, as resolved by App Engine. |
| 1245 * @OutputOnly | 1258 * @OutputOnly |
| 1246 */ | 1259 */ |
| 1247 core.String defaultHostname; | 1260 core.String defaultHostname; |
| 1248 /** | 1261 /** |
| 1249 * HTTP path dispatch rules for requests to the app that do not explicitly | 1262 * HTTP path dispatch rules for requests to the application that do not |
| 1250 * target a module or version. The rules are order-dependent. @OutputOnly | 1263 * explicitly target a module or version. Rules are order-dependent. |
| 1264 * @OutputOnly |
| 1251 */ | 1265 */ |
| 1252 core.List<UrlDispatchRule> dispatchRules; | 1266 core.List<UrlDispatchRule> dispatchRules; |
| 1253 /** | 1267 /** |
| 1254 * The identifier of the Application resource. This identifier is equivalent | 1268 * Identifier of the Application resource. This identifier is equivalent to |
| 1255 * to the project ID of the Google Cloud Platform project where you want to | 1269 * the project ID of the Google Cloud Platform project where you want to |
| 1256 * deploy your application. Example: "myapp". | 1270 * deploy your application. Example: `myapp`. |
| 1257 */ | 1271 */ |
| 1258 core.String id; | 1272 core.String id; |
| 1259 /** | 1273 /** |
| 1260 * The location from which the application will be run. Application instances | 1274 * Location from which this application will be run. Application instances |
| 1261 * will run out of data centers in the chosen location and all of the | 1275 * will run out of data centers in the chosen location, which is also where |
| 1262 * application's End User Content will be stored at rest. The default is | 1276 * all of the application's end user content is stored. Defaults to |
| 1263 * "us-central". Choices are: "us-central" - Central US "europe-west" - | 1277 * `us-central`. Options are: `us-central` - Central US `europe-west` - |
| 1264 * Western Europe "us-east1" - Eastern US | 1278 * Western Europe `us-east1` - Eastern US |
| 1265 */ | 1279 */ |
| 1266 core.String location; | 1280 core.String location; |
| 1267 /** | 1281 /** |
| 1268 * The full path to the Application resource in the API. Example: | 1282 * Full path to the Application resource in the API. Example: `apps/myapp`. |
| 1269 * "apps/myapp". @OutputOnly | 1283 * @OutputOnly |
| 1270 */ | 1284 */ |
| 1271 core.String name; | 1285 core.String name; |
| 1272 | 1286 |
| 1273 Application(); | 1287 Application(); |
| 1274 | 1288 |
| 1275 Application.fromJson(core.Map _json) { | 1289 Application.fromJson(core.Map _json) { |
| 1276 if (_json.containsKey("authDomain")) { | 1290 if (_json.containsKey("authDomain")) { |
| 1277 authDomain = _json["authDomain"]; | 1291 authDomain = _json["authDomain"]; |
| 1278 } | 1292 } |
| 1279 if (_json.containsKey("codeBucket")) { | 1293 if (_json.containsKey("codeBucket")) { |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1329 _json["location"] = location; | 1343 _json["location"] = location; |
| 1330 } | 1344 } |
| 1331 if (name != null) { | 1345 if (name != null) { |
| 1332 _json["name"] = name; | 1346 _json["name"] = name; |
| 1333 } | 1347 } |
| 1334 return _json; | 1348 return _json; |
| 1335 } | 1349 } |
| 1336 } | 1350 } |
| 1337 | 1351 |
| 1338 /** | 1352 /** |
| 1339 * Automatic scaling is the scaling policy that App Engine has used since its | 1353 * Automatic scaling is based on request rate, response latencies, and other |
| 1340 * inception. It is based on request rate, response latencies, and other | |
| 1341 * application metrics. | 1354 * application metrics. |
| 1342 */ | 1355 */ |
| 1343 class AutomaticScaling { | 1356 class AutomaticScaling { |
| 1344 /** | 1357 /** |
| 1345 * The amount of time that the | 1358 * Amount of time that the |
| 1346 * [Autoscaler](https://cloud.google.com/compute/docs/autoscaler/) should wait | 1359 * [Autoscaler](https://cloud.google.com/compute/docs/autoscaler/) should wait |
| 1347 * between changes to the number of virtual machines. Applies only to the VM | 1360 * between changes to the number of virtual machines. Only applicable for VM |
| 1348 * runtime. | 1361 * runtimes. |
| 1349 */ | 1362 */ |
| 1350 core.String coolDownPeriod; | 1363 core.String coolDownPeriod; |
| 1351 /** Target scaling by CPU usage. */ | 1364 /** Target scaling by CPU usage. */ |
| 1352 CpuUtilization cpuUtilization; | 1365 CpuUtilization cpuUtilization; |
| 1353 /** Target scaling by disk usage. */ | 1366 /** Target scaling by disk usage. */ |
| 1354 DiskUtilization diskUtilization; | 1367 DiskUtilization diskUtilization; |
| 1355 /** | 1368 /** |
| 1356 * The number of concurrent requests an automatic scaling instance can accept | 1369 * Number of concurrent requests an automatic scaling instance can accept |
| 1357 * before the scheduler spawns a new instance. Default value is chosen based | 1370 * before the scheduler spawns a new instance. Defaults to a runtime-specific |
| 1358 * on the runtime. | 1371 * value. |
| 1359 */ | 1372 */ |
| 1360 core.int maxConcurrentRequests; | 1373 core.int maxConcurrentRequests; |
| 1361 /** | 1374 /** |
| 1362 * The maximum number of idle instances that App Engine should maintain for | 1375 * Maximum number of idle instances that should be maintained for this |
| 1363 * this version. | 1376 * version. |
| 1364 */ | 1377 */ |
| 1365 core.int maxIdleInstances; | 1378 core.int maxIdleInstances; |
| 1366 /** | 1379 /** |
| 1367 * The maximum amount of time that App Engine should allow a request to wait | 1380 * Maximum amount of time that a request should wait in the pending queue |
| 1368 * in the pending queue before starting a new instance to handle it. | 1381 * before starting a new instance to handle it. |
| 1369 */ | 1382 */ |
| 1370 core.String maxPendingLatency; | 1383 core.String maxPendingLatency; |
| 1371 /** | 1384 /** Maximum number of instances that should be started to handle requests. */ |
| 1372 * Max number of instances that App Engine should start to handle requests. | |
| 1373 */ | |
| 1374 core.int maxTotalInstances; | 1385 core.int maxTotalInstances; |
| 1375 /** | 1386 /** |
| 1376 * The minimum number of idle instances that App Engine should maintain for | 1387 * Minimum number of idle instances that should be maintained for this |
| 1377 * this version. Only applies to the default version of a module, since other | 1388 * version. Only applicable for the default version of a module. |
| 1378 * versions are not expected to receive significant traffic. | |
| 1379 */ | 1389 */ |
| 1380 core.int minIdleInstances; | 1390 core.int minIdleInstances; |
| 1381 /** | 1391 /** |
| 1382 * The minimum amount of time that App Engine should allow a request to wait | 1392 * Minimum amount of time a request should wait in the pending queue before |
| 1383 * in the pending queue before starting a new instance to handle it. | 1393 * starting a new instance to handle it. |
| 1384 */ | 1394 */ |
| 1385 core.String minPendingLatency; | 1395 core.String minPendingLatency; |
| 1386 /** Minimum number of instances that App Engine should maintain. */ | 1396 /** |
| 1397 * Minimum number of instances that should be maintained for this version. |
| 1398 */ |
| 1387 core.int minTotalInstances; | 1399 core.int minTotalInstances; |
| 1388 /** Target scaling by network usage. */ | 1400 /** Target scaling by network usage. */ |
| 1389 NetworkUtilization networkUtilization; | 1401 NetworkUtilization networkUtilization; |
| 1390 /** Target scaling by request utilization. */ | 1402 /** Target scaling by request utilization. */ |
| 1391 RequestUtilization requestUtilization; | 1403 RequestUtilization requestUtilization; |
| 1392 | 1404 |
| 1393 AutomaticScaling(); | 1405 AutomaticScaling(); |
| 1394 | 1406 |
| 1395 AutomaticScaling.fromJson(core.Map _json) { | 1407 AutomaticScaling.fromJson(core.Map _json) { |
| 1396 if (_json.containsKey("coolDownPeriod")) { | 1408 if (_json.containsKey("coolDownPeriod")) { |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1474 } | 1486 } |
| 1475 | 1487 |
| 1476 /** | 1488 /** |
| 1477 * A module with basic scaling will create an instance when the application | 1489 * A module with basic scaling will create an instance when the application |
| 1478 * receives a request. The instance will be turned down when the app becomes | 1490 * receives a request. The instance will be turned down when the app becomes |
| 1479 * idle. Basic scaling is ideal for work that is intermittent or driven by user | 1491 * idle. Basic scaling is ideal for work that is intermittent or driven by user |
| 1480 * activity. | 1492 * activity. |
| 1481 */ | 1493 */ |
| 1482 class BasicScaling { | 1494 class BasicScaling { |
| 1483 /** | 1495 /** |
| 1484 * The instance will be shut down this amount of time after receiving its last | 1496 * Duration of time after the last request that an instance must wait before |
| 1485 * request. | 1497 * the instance is shut down. |
| 1486 */ | 1498 */ |
| 1487 core.String idleTimeout; | 1499 core.String idleTimeout; |
| 1488 /** | 1500 /** Maximum number of instances to create for this version. */ |
| 1489 * The maximum number of instances for App Engine to create for this version. | |
| 1490 */ | |
| 1491 core.int maxInstances; | 1501 core.int maxInstances; |
| 1492 | 1502 |
| 1493 BasicScaling(); | 1503 BasicScaling(); |
| 1494 | 1504 |
| 1495 BasicScaling.fromJson(core.Map _json) { | 1505 BasicScaling.fromJson(core.Map _json) { |
| 1496 if (_json.containsKey("idleTimeout")) { | 1506 if (_json.containsKey("idleTimeout")) { |
| 1497 idleTimeout = _json["idleTimeout"]; | 1507 idleTimeout = _json["idleTimeout"]; |
| 1498 } | 1508 } |
| 1499 if (_json.containsKey("maxInstances")) { | 1509 if (_json.containsKey("maxInstances")) { |
| 1500 maxInstances = _json["maxInstances"]; | 1510 maxInstances = _json["maxInstances"]; |
| 1501 } | 1511 } |
| 1502 } | 1512 } |
| 1503 | 1513 |
| 1504 core.Map toJson() { | 1514 core.Map toJson() { |
| 1505 var _json = new core.Map(); | 1515 var _json = new core.Map(); |
| 1506 if (idleTimeout != null) { | 1516 if (idleTimeout != null) { |
| 1507 _json["idleTimeout"] = idleTimeout; | 1517 _json["idleTimeout"] = idleTimeout; |
| 1508 } | 1518 } |
| 1509 if (maxInstances != null) { | 1519 if (maxInstances != null) { |
| 1510 _json["maxInstances"] = maxInstances; | 1520 _json["maxInstances"] = maxInstances; |
| 1511 } | 1521 } |
| 1512 return _json; | 1522 return _json; |
| 1513 } | 1523 } |
| 1514 } | 1524 } |
| 1515 | 1525 |
| 1516 /** | 1526 /** |
| 1517 * A Docker (container) image which should be used to start the application. | 1527 * Docker image that is used to start a VM container for the version you deploy. |
| 1518 */ | 1528 */ |
| 1519 class ContainerInfo { | 1529 class ContainerInfo { |
| 1520 /** | 1530 /** |
| 1521 * Reference to a hosted container image. Must be a URI to a resource in a | 1531 * URI to the hosted container image in a Docker repository. The URI must be |
| 1522 * Docker repository. Must be fully qualified, including tag or digest. e.g. | 1532 * fully qualified and include a tag or digest. Examples: |
| 1523 * gcr.io/my-project/image:tag or gcr.io/my-project/image@digest | 1533 * "gcr.io/my-project/image:tag" or "gcr.io/my-project/image@digest" |
| 1524 */ | 1534 */ |
| 1525 core.String image; | 1535 core.String image; |
| 1526 | 1536 |
| 1527 ContainerInfo(); | 1537 ContainerInfo(); |
| 1528 | 1538 |
| 1529 ContainerInfo.fromJson(core.Map _json) { | 1539 ContainerInfo.fromJson(core.Map _json) { |
| 1530 if (_json.containsKey("image")) { | 1540 if (_json.containsKey("image")) { |
| 1531 image = _json["image"]; | 1541 image = _json["image"]; |
| 1532 } | 1542 } |
| 1533 } | 1543 } |
| 1534 | 1544 |
| 1535 core.Map toJson() { | 1545 core.Map toJson() { |
| 1536 var _json = new core.Map(); | 1546 var _json = new core.Map(); |
| 1537 if (image != null) { | 1547 if (image != null) { |
| 1538 _json["image"] = image; | 1548 _json["image"] = image; |
| 1539 } | 1549 } |
| 1540 return _json; | 1550 return _json; |
| 1541 } | 1551 } |
| 1542 } | 1552 } |
| 1543 | 1553 |
| 1544 /** Target scaling by CPU usage. */ | 1554 /** Target scaling by CPU usage. */ |
| 1545 class CpuUtilization { | 1555 class CpuUtilization { |
| 1546 /** The period of time over which CPU utilization is calculated. */ | 1556 /** Period of time over which CPU utilization is calculated. */ |
| 1547 core.String aggregationWindowLength; | 1557 core.String aggregationWindowLength; |
| 1548 /** Target (0-1) CPU utilization ratio to maintain when scaling. */ | 1558 /** |
| 1559 * Target CPU utilization ratio to maintain when scaling. Must be between 0 |
| 1560 * and 1. |
| 1561 */ |
| 1549 core.double targetUtilization; | 1562 core.double targetUtilization; |
| 1550 | 1563 |
| 1551 CpuUtilization(); | 1564 CpuUtilization(); |
| 1552 | 1565 |
| 1553 CpuUtilization.fromJson(core.Map _json) { | 1566 CpuUtilization.fromJson(core.Map _json) { |
| 1554 if (_json.containsKey("aggregationWindowLength")) { | 1567 if (_json.containsKey("aggregationWindowLength")) { |
| 1555 aggregationWindowLength = _json["aggregationWindowLength"]; | 1568 aggregationWindowLength = _json["aggregationWindowLength"]; |
| 1556 } | 1569 } |
| 1557 if (_json.containsKey("targetUtilization")) { | 1570 if (_json.containsKey("targetUtilization")) { |
| 1558 targetUtilization = _json["targetUtilization"]; | 1571 targetUtilization = _json["targetUtilization"]; |
| (...skipping 22 matching lines...) Expand all Loading... |
| 1581 | 1594 |
| 1582 core.Map toJson() { | 1595 core.Map toJson() { |
| 1583 var _json = new core.Map(); | 1596 var _json = new core.Map(); |
| 1584 return _json; | 1597 return _json; |
| 1585 } | 1598 } |
| 1586 } | 1599 } |
| 1587 | 1600 |
| 1588 /** Code and application artifacts used to deploy a version to App Engine. */ | 1601 /** Code and application artifacts used to deploy a version to App Engine. */ |
| 1589 class Deployment { | 1602 class Deployment { |
| 1590 /** | 1603 /** |
| 1591 * If supplied, a docker (container) image which should be used to start the | 1604 * A Docker image that App Engine uses the run the version. Only applicable |
| 1592 * application. Only applicable to the 'vm' runtime. | 1605 * for instances in App Engine flexible environment. |
| 1593 */ | 1606 */ |
| 1594 ContainerInfo container; | 1607 ContainerInfo container; |
| 1595 /** | 1608 /** |
| 1596 * A manifest of files stored in Google Cloud Storage which should be included | 1609 * Manifest of the files stored in Google Cloud Storage that are included as |
| 1597 * as part of this application. All files must be readable using the | 1610 * part of this version. All files must be readable using the credentials |
| 1598 * credentials supplied with this call. | 1611 * supplied with this call. |
| 1599 */ | 1612 */ |
| 1600 core.Map<core.String, FileInfo> files; | 1613 core.Map<core.String, FileInfo> files; |
| 1601 /** | 1614 /** |
| 1602 * The origin of the source code for this deployment. There can be more than | 1615 * Origin of the source code for this deployment. There can be more than one |
| 1603 * one source reference per Version if source code is distributed among | 1616 * source reference per version if source code is distributed among multiple |
| 1604 * multiple repositories. | 1617 * repositories. |
| 1605 */ | 1618 */ |
| 1606 core.List<SourceReference> sourceReferences; | 1619 core.List<SourceReference> sourceReferences; |
| 1607 | 1620 |
| 1608 Deployment(); | 1621 Deployment(); |
| 1609 | 1622 |
| 1610 Deployment.fromJson(core.Map _json) { | 1623 Deployment.fromJson(core.Map _json) { |
| 1611 if (_json.containsKey("container")) { | 1624 if (_json.containsKey("container")) { |
| 1612 container = new ContainerInfo.fromJson(_json["container"]); | 1625 container = new ContainerInfo.fromJson(_json["container"]); |
| 1613 } | 1626 } |
| 1614 if (_json.containsKey("files")) { | 1627 if (_json.containsKey("files")) { |
| (...skipping 12 matching lines...) Expand all Loading... |
| 1627 if (files != null) { | 1640 if (files != null) { |
| 1628 _json["files"] = commons.mapMap(files, (item) => (item).toJson()); | 1641 _json["files"] = commons.mapMap(files, (item) => (item).toJson()); |
| 1629 } | 1642 } |
| 1630 if (sourceReferences != null) { | 1643 if (sourceReferences != null) { |
| 1631 _json["sourceReferences"] = sourceReferences.map((value) => (value).toJson
()).toList(); | 1644 _json["sourceReferences"] = sourceReferences.map((value) => (value).toJson
()).toList(); |
| 1632 } | 1645 } |
| 1633 return _json; | 1646 return _json; |
| 1634 } | 1647 } |
| 1635 } | 1648 } |
| 1636 | 1649 |
| 1637 /** Target scaling by disk usage (for VM runtimes only). */ | 1650 /** Target scaling by disk usage. Only applicable for VM runtimes. */ |
| 1638 class DiskUtilization { | 1651 class DiskUtilization { |
| 1639 /** Target bytes per second read. */ | 1652 /** Target bytes read per second. */ |
| 1640 core.int targetReadBytesPerSec; | 1653 core.int targetReadBytesPerSec; |
| 1641 /** Target ops per second read. */ | 1654 /** Target ops read per second. */ |
| 1642 core.int targetReadOpsPerSec; | 1655 core.int targetReadOpsPerSec; |
| 1643 /** Target bytes per second written. */ | 1656 /** Target bytes written per second. */ |
| 1644 core.int targetWriteBytesPerSec; | 1657 core.int targetWriteBytesPerSec; |
| 1645 /** Target ops per second written. */ | 1658 /** Target ops written per second. */ |
| 1646 core.int targetWriteOpsPerSec; | 1659 core.int targetWriteOpsPerSec; |
| 1647 | 1660 |
| 1648 DiskUtilization(); | 1661 DiskUtilization(); |
| 1649 | 1662 |
| 1650 DiskUtilization.fromJson(core.Map _json) { | 1663 DiskUtilization.fromJson(core.Map _json) { |
| 1651 if (_json.containsKey("targetReadBytesPerSec")) { | 1664 if (_json.containsKey("targetReadBytesPerSec")) { |
| 1652 targetReadBytesPerSec = _json["targetReadBytesPerSec"]; | 1665 targetReadBytesPerSec = _json["targetReadBytesPerSec"]; |
| 1653 } | 1666 } |
| 1654 if (_json.containsKey("targetReadOpsPerSec")) { | 1667 if (_json.containsKey("targetReadOpsPerSec")) { |
| 1655 targetReadOpsPerSec = _json["targetReadOpsPerSec"]; | 1668 targetReadOpsPerSec = _json["targetReadOpsPerSec"]; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 1673 if (targetWriteBytesPerSec != null) { | 1686 if (targetWriteBytesPerSec != null) { |
| 1674 _json["targetWriteBytesPerSec"] = targetWriteBytesPerSec; | 1687 _json["targetWriteBytesPerSec"] = targetWriteBytesPerSec; |
| 1675 } | 1688 } |
| 1676 if (targetWriteOpsPerSec != null) { | 1689 if (targetWriteOpsPerSec != null) { |
| 1677 _json["targetWriteOpsPerSec"] = targetWriteOpsPerSec; | 1690 _json["targetWriteOpsPerSec"] = targetWriteOpsPerSec; |
| 1678 } | 1691 } |
| 1679 return _json; | 1692 return _json; |
| 1680 } | 1693 } |
| 1681 } | 1694 } |
| 1682 | 1695 |
| 1683 /** A custom static error page to be served when an error occurs. */ | 1696 /** Custom static error page to be served when an error occurs. */ |
| 1684 class ErrorHandler { | 1697 class ErrorHandler { |
| 1685 /** | 1698 /** |
| 1686 * The error condition this handler applies to. | 1699 * Error condition this handler applies to. |
| 1687 * Possible string values are: | 1700 * Possible string values are: |
| 1688 * - "ERROR_CODE_UNSPECIFIED" : A ERROR_CODE_UNSPECIFIED. | 1701 * - "ERROR_CODE_UNSPECIFIED" : A ERROR_CODE_UNSPECIFIED. |
| 1689 * - "ERROR_CODE_DEFAULT" : A ERROR_CODE_DEFAULT. | 1702 * - "ERROR_CODE_DEFAULT" : A ERROR_CODE_DEFAULT. |
| 1690 * - "ERROR_CODE_OVER_QUOTA" : A ERROR_CODE_OVER_QUOTA. | 1703 * - "ERROR_CODE_OVER_QUOTA" : A ERROR_CODE_OVER_QUOTA. |
| 1691 * - "ERROR_CODE_DOS_API_DENIAL" : A ERROR_CODE_DOS_API_DENIAL. | 1704 * - "ERROR_CODE_DOS_API_DENIAL" : A ERROR_CODE_DOS_API_DENIAL. |
| 1692 * - "ERROR_CODE_TIMEOUT" : A ERROR_CODE_TIMEOUT. | 1705 * - "ERROR_CODE_TIMEOUT" : A ERROR_CODE_TIMEOUT. |
| 1693 */ | 1706 */ |
| 1694 core.String errorCode; | 1707 core.String errorCode; |
| 1695 /** MIME type of file. If unspecified, "text/html" is assumed. */ | 1708 /** MIME type of file. Defaults to `text/html`. */ |
| 1696 core.String mimeType; | 1709 core.String mimeType; |
| 1697 /** Static file content to be served for this error. */ | 1710 /** Static file content to be served for this error. */ |
| 1698 core.String staticFile; | 1711 core.String staticFile; |
| 1699 | 1712 |
| 1700 ErrorHandler(); | 1713 ErrorHandler(); |
| 1701 | 1714 |
| 1702 ErrorHandler.fromJson(core.Map _json) { | 1715 ErrorHandler.fromJson(core.Map _json) { |
| 1703 if (_json.containsKey("errorCode")) { | 1716 if (_json.containsKey("errorCode")) { |
| 1704 errorCode = _json["errorCode"]; | 1717 errorCode = _json["errorCode"]; |
| 1705 } | 1718 } |
| (...skipping 13 matching lines...) Expand all Loading... |
| 1719 if (mimeType != null) { | 1732 if (mimeType != null) { |
| 1720 _json["mimeType"] = mimeType; | 1733 _json["mimeType"] = mimeType; |
| 1721 } | 1734 } |
| 1722 if (staticFile != null) { | 1735 if (staticFile != null) { |
| 1723 _json["staticFile"] = staticFile; | 1736 _json["staticFile"] = staticFile; |
| 1724 } | 1737 } |
| 1725 return _json; | 1738 return _json; |
| 1726 } | 1739 } |
| 1727 } | 1740 } |
| 1728 | 1741 |
| 1729 /** A single source file which is part of the application to be deployed. */ | 1742 /** |
| 1743 * Single source file that is part of the version to be deployed. Each source |
| 1744 * file that is deployed must be specified separately. |
| 1745 */ |
| 1730 class FileInfo { | 1746 class FileInfo { |
| 1731 /** | 1747 /** |
| 1732 * The MIME type of the file; if unspecified, the value from Google Cloud | 1748 * The MIME type of the file. Defaults to the value from Google Cloud Storage. |
| 1733 * Storage will be used. | |
| 1734 */ | 1749 */ |
| 1735 core.String mimeType; | 1750 core.String mimeType; |
| 1736 /** The SHA1 (160 bits) hash of the file in hex. */ | 1751 /** The SHA1 hash of the file, in hex. */ |
| 1737 core.String sha1Sum; | 1752 core.String sha1Sum; |
| 1738 /** | 1753 /** |
| 1739 * The URL source to use to fetch this file. Must be a URL to a resource in | 1754 * URL source to use to fetch this file. Must be a URL to a resource in Google |
| 1740 * Google Cloud Storage in the form 'http(s)://storage.googleapis.com/\/\'. | 1755 * Cloud Storage in the form 'http(s)://storage.googleapis.com/\/\'. |
| 1741 */ | 1756 */ |
| 1742 core.String sourceUrl; | 1757 core.String sourceUrl; |
| 1743 | 1758 |
| 1744 FileInfo(); | 1759 FileInfo(); |
| 1745 | 1760 |
| 1746 FileInfo.fromJson(core.Map _json) { | 1761 FileInfo.fromJson(core.Map _json) { |
| 1747 if (_json.containsKey("mimeType")) { | 1762 if (_json.containsKey("mimeType")) { |
| 1748 mimeType = _json["mimeType"]; | 1763 mimeType = _json["mimeType"]; |
| 1749 } | 1764 } |
| 1750 if (_json.containsKey("sha1Sum")) { | 1765 if (_json.containsKey("sha1Sum")) { |
| (...skipping 13 matching lines...) Expand all Loading... |
| 1764 _json["sha1Sum"] = sha1Sum; | 1779 _json["sha1Sum"] = sha1Sum; |
| 1765 } | 1780 } |
| 1766 if (sourceUrl != null) { | 1781 if (sourceUrl != null) { |
| 1767 _json["sourceUrl"] = sourceUrl; | 1782 _json["sourceUrl"] = sourceUrl; |
| 1768 } | 1783 } |
| 1769 return _json; | 1784 return _json; |
| 1770 } | 1785 } |
| 1771 } | 1786 } |
| 1772 | 1787 |
| 1773 /** | 1788 /** |
| 1774 * Configure health checking for the VM instances. Unhealthy VM instances will | 1789 * Health checking configuration for VM instances. Unhealthy instances are |
| 1775 * be killed and replaced with new instances. | 1790 * killed and replaced with new instances. Only applicable for instances in App |
| 1791 * Engine flexible environment. |
| 1776 */ | 1792 */ |
| 1777 class HealthCheck { | 1793 class HealthCheck { |
| 1778 /** The interval between health checks. */ | 1794 /** Interval between health checks. */ |
| 1779 core.String checkInterval; | 1795 core.String checkInterval; |
| 1780 /** Whether to explicitly disable health checks for this instance. */ | 1796 /** Whether to explicitly disable health checks for this instance. */ |
| 1781 core.bool disableHealthCheck; | 1797 core.bool disableHealthCheck; |
| 1782 /** | 1798 /** |
| 1783 * The number of consecutive successful health checks before receiving | 1799 * Number of consecutive successful health checks required before receiving |
| 1784 * traffic. | 1800 * traffic. |
| 1785 */ | 1801 */ |
| 1786 core.int healthyThreshold; | 1802 core.int healthyThreshold; |
| 1787 /** | 1803 /** |
| 1788 * The host header to send when performing an HTTP health check (e.g. | 1804 * Host header to send when performing an HTTP health check. Example: |
| 1789 * myapp.appspot.com) | 1805 * "myapp.appspot.com" |
| 1790 */ | 1806 */ |
| 1791 core.String host; | 1807 core.String host; |
| 1792 /** | 1808 /** |
| 1793 * The number of consecutive failed health checks before an instance is | 1809 * Number of consecutive failed health checks required before an instance is |
| 1794 * restarted. | 1810 * restarted. |
| 1795 */ | 1811 */ |
| 1796 core.int restartThreshold; | 1812 core.int restartThreshold; |
| 1797 /** The amount of time before the health check is considered failed. */ | 1813 /** Time before the health check is considered failed. */ |
| 1798 core.String timeout; | 1814 core.String timeout; |
| 1799 /** | 1815 /** |
| 1800 * The number of consecutive failed health checks before removing traffic. | 1816 * Number of consecutive failed health checks required before removing |
| 1817 * traffic. |
| 1801 */ | 1818 */ |
| 1802 core.int unhealthyThreshold; | 1819 core.int unhealthyThreshold; |
| 1803 | 1820 |
| 1804 HealthCheck(); | 1821 HealthCheck(); |
| 1805 | 1822 |
| 1806 HealthCheck.fromJson(core.Map _json) { | 1823 HealthCheck.fromJson(core.Map _json) { |
| 1807 if (_json.containsKey("checkInterval")) { | 1824 if (_json.containsKey("checkInterval")) { |
| 1808 checkInterval = _json["checkInterval"]; | 1825 checkInterval = _json["checkInterval"]; |
| 1809 } | 1826 } |
| 1810 if (_json.containsKey("disableHealthCheck")) { | 1827 if (_json.containsKey("disableHealthCheck")) { |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1848 _json["timeout"] = timeout; | 1865 _json["timeout"] = timeout; |
| 1849 } | 1866 } |
| 1850 if (unhealthyThreshold != null) { | 1867 if (unhealthyThreshold != null) { |
| 1851 _json["unhealthyThreshold"] = unhealthyThreshold; | 1868 _json["unhealthyThreshold"] = unhealthyThreshold; |
| 1852 } | 1869 } |
| 1853 return _json; | 1870 return _json; |
| 1854 } | 1871 } |
| 1855 } | 1872 } |
| 1856 | 1873 |
| 1857 /** | 1874 /** |
| 1858 * Instances are the computing units that App Engine uses to automatically scale | 1875 * An Instance resource is the computing unit that App Engine uses to |
| 1859 * an application. | 1876 * automatically scale an application. |
| 1860 */ | 1877 */ |
| 1861 class Instance { | 1878 class Instance { |
| 1862 /** The App Engine release the instance is running on. @OutputOnly */ | 1879 /** App Engine release this instance is running on. @OutputOnly */ |
| 1863 core.String appEngineRelease; | 1880 core.String appEngineRelease; |
| 1864 /** | 1881 /** |
| 1865 * Availability of instance. @OutputOnly | 1882 * Availability of the instance. @OutputOnly |
| 1866 * Possible string values are: | 1883 * Possible string values are: |
| 1867 * - "UNSPECIFIED" : A UNSPECIFIED. | 1884 * - "UNSPECIFIED" : A UNSPECIFIED. |
| 1868 * - "RESIDENT" : A RESIDENT. | 1885 * - "RESIDENT" : A RESIDENT. |
| 1869 * - "DYNAMIC" : A DYNAMIC. | 1886 * - "DYNAMIC" : A DYNAMIC. |
| 1870 */ | 1887 */ |
| 1871 core.String availability; | 1888 core.String availability; |
| 1872 /** Latency in milliseconds (averaged over the last minute). @OutputOnly */ | 1889 /** Average latency (ms) over the last minute. @OutputOnly */ |
| 1873 core.int averageLatency; | 1890 core.int averageLatency; |
| 1874 /** Number of errors since the instance was started. @OutputOnly */ | 1891 /** Number of errors since this instance was started. @OutputOnly */ |
| 1875 core.int errors; | 1892 core.int errors; |
| 1876 /** | 1893 /** |
| 1877 * The relative name/path of the instance within the version. Example: | 1894 * Relative name of the instance within the version. Example: `instance-1`. |
| 1878 * "instance-1" @OutputOnly | 1895 * @OutputOnly |
| 1879 */ | 1896 */ |
| 1880 core.String id; | 1897 core.String id; |
| 1881 /** Memory usage (in bytes). @OutputOnly */ | 1898 /** Total memory in use (bytes). @OutputOnly */ |
| 1882 core.String memoryUsage; | 1899 core.String memoryUsage; |
| 1883 /** | 1900 /** |
| 1884 * The full path to the Instance resource in the API. Example: | 1901 * Full path to the Instance resource in the API. Example: |
| 1885 * "apps/myapp/modules/default/versions/v1/instances/instance-1" @OutputOnly | 1902 * `apps/myapp/modules/default/versions/v1/instances/instance-1`. @OutputOnly |
| 1886 */ | 1903 */ |
| 1887 core.String name; | 1904 core.String name; |
| 1888 /** QPS for this instance (averaged over the last minute). @OutputOnly */ | 1905 /** Average queries per second (QPS) over the last minute. @OutputOnly */ |
| 1889 core.double qps; | 1906 core.double qps; |
| 1890 /** Number of requests (since the clone was started). @OutputOnly */ | 1907 /** Number of requests since this instance was started. @OutputOnly */ |
| 1891 core.int requests; | 1908 core.int requests; |
| 1892 /** Time when instance was started. @OutputOnly */ | 1909 /** Time that this instance was started. @OutputOnly */ |
| 1893 core.String startTimestamp; | 1910 core.String startTimestamp; |
| 1894 /** | 1911 /** |
| 1895 * For VMEngines instances, the Compute Engine VM ID of the instance. | 1912 * Virtual machine ID of this instance. Only applicable for instances in App |
| 1896 * @OutputOnly | 1913 * Engine flexible environment. @OutputOnly |
| 1897 */ | 1914 */ |
| 1898 core.String vmId; | 1915 core.String vmId; |
| 1899 /** | 1916 /** |
| 1900 * For VMEngines instances, the name of the Compute Engine VM where the | 1917 * Name of the virtual machine where this instance lives. Only applicable for |
| 1901 * instance lives. @OutputOnly | 1918 * instances in App Engine flexible environment. @OutputOnly |
| 1902 */ | 1919 */ |
| 1903 core.String vmName; | 1920 core.String vmName; |
| 1904 /** | 1921 /** |
| 1905 * For VMEngines instances, the status of the Compute Engine VM where the | 1922 * Status of the virtual machine where this instance lives. Only applicable |
| 1906 * instance lives. @OutputOnly | 1923 * for instances in App Engine flexible environment. @OutputOnly |
| 1907 */ | 1924 */ |
| 1908 core.String vmStatus; | 1925 core.String vmStatus; |
| 1909 /** | 1926 /** |
| 1910 * For VMEngines instances, whether the instance has been unlocked. | 1927 * Whether this instance is in debug mode. Only applicable for instances in |
| 1911 * @OutputOnly | 1928 * App Engine flexible environment. @OutputOnly |
| 1912 */ | 1929 */ |
| 1913 core.bool vmUnlocked; | 1930 core.bool vmUnlocked; |
| 1914 /** | 1931 /** |
| 1915 * For VMEngines instances, the zone where the Compute Engine VM is located. | 1932 * Zone where the virtual machine is located. Only applicable for instances in |
| 1916 * @OutputOnly | 1933 * App Engine flexible environment. @OutputOnly |
| 1917 */ | 1934 */ |
| 1918 core.String vmZoneName; | 1935 core.String vmZoneName; |
| 1919 | 1936 |
| 1920 Instance(); | 1937 Instance(); |
| 1921 | 1938 |
| 1922 Instance.fromJson(core.Map _json) { | 1939 Instance.fromJson(core.Map _json) { |
| 1923 if (_json.containsKey("appEngineRelease")) { | 1940 if (_json.containsKey("appEngineRelease")) { |
| 1924 appEngineRelease = _json["appEngineRelease"]; | 1941 appEngineRelease = _json["appEngineRelease"]; |
| 1925 } | 1942 } |
| 1926 if (_json.containsKey("availability")) { | 1943 if (_json.containsKey("availability")) { |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2011 if (vmUnlocked != null) { | 2028 if (vmUnlocked != null) { |
| 2012 _json["vmUnlocked"] = vmUnlocked; | 2029 _json["vmUnlocked"] = vmUnlocked; |
| 2013 } | 2030 } |
| 2014 if (vmZoneName != null) { | 2031 if (vmZoneName != null) { |
| 2015 _json["vmZoneName"] = vmZoneName; | 2032 _json["vmZoneName"] = vmZoneName; |
| 2016 } | 2033 } |
| 2017 return _json; | 2034 return _json; |
| 2018 } | 2035 } |
| 2019 } | 2036 } |
| 2020 | 2037 |
| 2021 /** A Python runtime third-party library required by the application. */ | 2038 /** Third-party Python runtime library that is required by the application. */ |
| 2022 class Library { | 2039 class Library { |
| 2023 /** The name of the library, e.g. "PIL" or "django". */ | 2040 /** Name of the library. Example: "django". */ |
| 2024 core.String name; | 2041 core.String name; |
| 2025 /** The version of the library to select, or "latest". */ | 2042 /** Version of the library to select, or "latest". */ |
| 2026 core.String version; | 2043 core.String version; |
| 2027 | 2044 |
| 2028 Library(); | 2045 Library(); |
| 2029 | 2046 |
| 2030 Library.fromJson(core.Map _json) { | 2047 Library.fromJson(core.Map _json) { |
| 2031 if (_json.containsKey("name")) { | 2048 if (_json.containsKey("name")) { |
| 2032 name = _json["name"]; | 2049 name = _json["name"]; |
| 2033 } | 2050 } |
| 2034 if (_json.containsKey("version")) { | 2051 if (_json.containsKey("version")) { |
| 2035 version = _json["version"]; | 2052 version = _json["version"]; |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2165 _json["operations"] = operations.map((value) => (value).toJson()).toList()
; | 2182 _json["operations"] = operations.map((value) => (value).toJson()).toList()
; |
| 2166 } | 2183 } |
| 2167 return _json; | 2184 return _json; |
| 2168 } | 2185 } |
| 2169 } | 2186 } |
| 2170 | 2187 |
| 2171 /** Response message for `Versions.ListVersions`. */ | 2188 /** Response message for `Versions.ListVersions`. */ |
| 2172 class ListVersionsResponse { | 2189 class ListVersionsResponse { |
| 2173 /** Continuation token for fetching the next page of results. */ | 2190 /** Continuation token for fetching the next page of results. */ |
| 2174 core.String nextPageToken; | 2191 core.String nextPageToken; |
| 2175 /** The versions belonging to the requested application module. */ | 2192 /** The versions belonging to the requested module. */ |
| 2176 core.List<Version> versions; | 2193 core.List<Version> versions; |
| 2177 | 2194 |
| 2178 ListVersionsResponse(); | 2195 ListVersionsResponse(); |
| 2179 | 2196 |
| 2180 ListVersionsResponse.fromJson(core.Map _json) { | 2197 ListVersionsResponse.fromJson(core.Map _json) { |
| 2181 if (_json.containsKey("nextPageToken")) { | 2198 if (_json.containsKey("nextPageToken")) { |
| 2182 nextPageToken = _json["nextPageToken"]; | 2199 nextPageToken = _json["nextPageToken"]; |
| 2183 } | 2200 } |
| 2184 if (_json.containsKey("versions")) { | 2201 if (_json.containsKey("versions")) { |
| 2185 versions = _json["versions"].map((value) => new Version.fromJson(value)).t
oList(); | 2202 versions = _json["versions"].map((value) => new Version.fromJson(value)).t
oList(); |
| (...skipping 12 matching lines...) Expand all Loading... |
| 2198 } | 2215 } |
| 2199 } | 2216 } |
| 2200 | 2217 |
| 2201 /** A resource that represents Google Cloud Platform location. */ | 2218 /** A resource that represents Google Cloud Platform location. */ |
| 2202 class Location { | 2219 class Location { |
| 2203 /** | 2220 /** |
| 2204 * Cross-service attributes for the location. For example | 2221 * Cross-service attributes for the location. For example |
| 2205 * {"cloud.googleapis.com/region": "us-east1"} | 2222 * {"cloud.googleapis.com/region": "us-east1"} |
| 2206 */ | 2223 */ |
| 2207 core.Map<core.String, core.String> labels; | 2224 core.Map<core.String, core.String> labels; |
| 2225 /** The cononical id for this location. For example: `"us-east1"`. */ |
| 2226 core.String locationId; |
| 2208 /** | 2227 /** |
| 2209 * Service-specific metadata. For example the available capacity at the given | 2228 * Service-specific metadata. For example the available capacity at the given |
| 2210 * location. | 2229 * location. |
| 2211 * | 2230 * |
| 2212 * The values for Object must be JSON objects. It can consist of `num`, | 2231 * The values for Object must be JSON objects. It can consist of `num`, |
| 2213 * `String`, `bool` and `null` as well as `Map` and `List` values. | 2232 * `String`, `bool` and `null` as well as `Map` and `List` values. |
| 2214 */ | 2233 */ |
| 2215 core.Map<core.String, core.Object> metadata; | 2234 core.Map<core.String, core.Object> metadata; |
| 2216 /** | 2235 /** |
| 2217 * Resource name for the location, which may vary between implementations. | 2236 * Resource name for the location, which may vary between implementations. For |
| 2218 * Example: `"projects/example-project/locations/us-east1"` | 2237 * example: `"projects/example-project/locations/us-east1"` |
| 2219 */ | 2238 */ |
| 2220 core.String name; | 2239 core.String name; |
| 2221 | 2240 |
| 2222 Location(); | 2241 Location(); |
| 2223 | 2242 |
| 2224 Location.fromJson(core.Map _json) { | 2243 Location.fromJson(core.Map _json) { |
| 2225 if (_json.containsKey("labels")) { | 2244 if (_json.containsKey("labels")) { |
| 2226 labels = _json["labels"]; | 2245 labels = _json["labels"]; |
| 2227 } | 2246 } |
| 2247 if (_json.containsKey("locationId")) { |
| 2248 locationId = _json["locationId"]; |
| 2249 } |
| 2228 if (_json.containsKey("metadata")) { | 2250 if (_json.containsKey("metadata")) { |
| 2229 metadata = _json["metadata"]; | 2251 metadata = _json["metadata"]; |
| 2230 } | 2252 } |
| 2231 if (_json.containsKey("name")) { | 2253 if (_json.containsKey("name")) { |
| 2232 name = _json["name"]; | 2254 name = _json["name"]; |
| 2233 } | 2255 } |
| 2234 } | 2256 } |
| 2235 | 2257 |
| 2236 core.Map toJson() { | 2258 core.Map toJson() { |
| 2237 var _json = new core.Map(); | 2259 var _json = new core.Map(); |
| 2238 if (labels != null) { | 2260 if (labels != null) { |
| 2239 _json["labels"] = labels; | 2261 _json["labels"] = labels; |
| 2240 } | 2262 } |
| 2263 if (locationId != null) { |
| 2264 _json["locationId"] = locationId; |
| 2265 } |
| 2241 if (metadata != null) { | 2266 if (metadata != null) { |
| 2242 _json["metadata"] = metadata; | 2267 _json["metadata"] = metadata; |
| 2243 } | 2268 } |
| 2244 if (name != null) { | 2269 if (name != null) { |
| 2245 _json["name"] = name; | 2270 _json["name"] = name; |
| 2246 } | 2271 } |
| 2247 return _json; | 2272 return _json; |
| 2248 } | 2273 } |
| 2249 } | 2274 } |
| 2250 | 2275 |
| 2251 /** Metadata for the given google.cloud.location.Location. */ | 2276 /** Metadata for the given google.cloud.location.Location. */ |
| 2252 class LocationMetadata { | 2277 class LocationMetadata { |
| 2278 /** |
| 2279 * App Engine Flexible Environment is available in the given location. |
| 2280 * @OutputOnly |
| 2281 */ |
| 2282 core.bool flexibleEnvironmentAvailable; |
| 2283 /** |
| 2284 * App Engine Standard Environment is available in the given location. |
| 2285 * @OutputOnly |
| 2286 */ |
| 2287 core.bool standardEnvironmentAvailable; |
| 2253 | 2288 |
| 2254 LocationMetadata(); | 2289 LocationMetadata(); |
| 2255 | 2290 |
| 2256 LocationMetadata.fromJson(core.Map _json) { | 2291 LocationMetadata.fromJson(core.Map _json) { |
| 2292 if (_json.containsKey("flexibleEnvironmentAvailable")) { |
| 2293 flexibleEnvironmentAvailable = _json["flexibleEnvironmentAvailable"]; |
| 2294 } |
| 2295 if (_json.containsKey("standardEnvironmentAvailable")) { |
| 2296 standardEnvironmentAvailable = _json["standardEnvironmentAvailable"]; |
| 2297 } |
| 2257 } | 2298 } |
| 2258 | 2299 |
| 2259 core.Map toJson() { | 2300 core.Map toJson() { |
| 2260 var _json = new core.Map(); | 2301 var _json = new core.Map(); |
| 2302 if (flexibleEnvironmentAvailable != null) { |
| 2303 _json["flexibleEnvironmentAvailable"] = flexibleEnvironmentAvailable; |
| 2304 } |
| 2305 if (standardEnvironmentAvailable != null) { |
| 2306 _json["standardEnvironmentAvailable"] = standardEnvironmentAvailable; |
| 2307 } |
| 2261 return _json; | 2308 return _json; |
| 2262 } | 2309 } |
| 2263 } | 2310 } |
| 2264 | 2311 |
| 2265 /** | 2312 /** |
| 2266 * A module with manual scaling runs continuously, allowing you to perform | 2313 * A module with manual scaling runs continuously, allowing you to perform |
| 2267 * complex initialization and rely on the state of its memory over time. | 2314 * complex initialization and rely on the state of its memory over time. |
| 2268 */ | 2315 */ |
| 2269 class ManualScaling { | 2316 class ManualScaling { |
| 2270 /** | 2317 /** |
| 2271 * The number of instances to assign to the module at the start. This number | 2318 * Number of instances to assign to the module at the start. This number can |
| 2272 * can later be altered by using the [Modules | 2319 * later be altered by using the [Modules |
| 2273 * API](https://cloud.google.com/appengine/docs/python/modules/functions) | 2320 * API](https://cloud.google.com/appengine/docs/python/modules/functions) |
| 2274 * `set_num_instances()` function. | 2321 * `set_num_instances()` function. |
| 2275 */ | 2322 */ |
| 2276 core.int instances; | 2323 core.int instances; |
| 2277 | 2324 |
| 2278 ManualScaling(); | 2325 ManualScaling(); |
| 2279 | 2326 |
| 2280 ManualScaling.fromJson(core.Map _json) { | 2327 ManualScaling.fromJson(core.Map _json) { |
| 2281 if (_json.containsKey("instances")) { | 2328 if (_json.containsKey("instances")) { |
| 2282 instances = _json["instances"]; | 2329 instances = _json["instances"]; |
| 2283 } | 2330 } |
| 2284 } | 2331 } |
| 2285 | 2332 |
| 2286 core.Map toJson() { | 2333 core.Map toJson() { |
| 2287 var _json = new core.Map(); | 2334 var _json = new core.Map(); |
| 2288 if (instances != null) { | 2335 if (instances != null) { |
| 2289 _json["instances"] = instances; | 2336 _json["instances"] = instances; |
| 2290 } | 2337 } |
| 2291 return _json; | 2338 return _json; |
| 2292 } | 2339 } |
| 2293 } | 2340 } |
| 2294 | 2341 |
| 2295 /** | 2342 /** |
| 2296 * A module is a component of an application that provides a single service or | 2343 * A Module resource is a logical component of an application that can share |
| 2297 * configuration. A module has a collection of versions that define a specific | 2344 * state and communicate in a secure fashion with other modules. For example, an |
| 2298 * set of code used to implement the functionality of that module. | 2345 * application that handles customer requests might include separate modules to |
| 2346 * handle tasks such as backend data analysis or API requests from mobile |
| 2347 * devices. Each module has a collection of versions that define a specific set |
| 2348 * of code used to implement the functionality of that module. |
| 2299 */ | 2349 */ |
| 2300 class Module { | 2350 class Module { |
| 2301 /** | 2351 /** |
| 2302 * The relative name/path of the module within the application. Example: | 2352 * Relative name of the module within the application. Example: `default`. |
| 2303 * "default" @OutputOnly | 2353 * @OutputOnly |
| 2304 */ | 2354 */ |
| 2305 core.String id; | 2355 core.String id; |
| 2306 /** | 2356 /** |
| 2307 * The full path to the Module resource in the API. Example: | 2357 * Full path to the Module resource in the API. Example: |
| 2308 * "apps/myapp/modules/default" @OutputOnly | 2358 * `apps/myapp/modules/default`. @OutputOnly |
| 2309 */ | 2359 */ |
| 2310 core.String name; | 2360 core.String name; |
| 2311 /** | 2361 /** |
| 2312 * A mapping that defines fractional HTTP traffic diversion to different | 2362 * Mapping that defines fractional HTTP traffic diversion to different |
| 2313 * versions within the module. | 2363 * versions within the module. |
| 2314 */ | 2364 */ |
| 2315 TrafficSplit split; | 2365 TrafficSplit split; |
| 2316 | 2366 |
| 2317 Module(); | 2367 Module(); |
| 2318 | 2368 |
| 2319 Module.fromJson(core.Map _json) { | 2369 Module.fromJson(core.Map _json) { |
| 2320 if (_json.containsKey("id")) { | 2370 if (_json.containsKey("id")) { |
| 2321 id = _json["id"]; | 2371 id = _json["id"]; |
| 2322 } | 2372 } |
| (...skipping 13 matching lines...) Expand all Loading... |
| 2336 if (name != null) { | 2386 if (name != null) { |
| 2337 _json["name"] = name; | 2387 _json["name"] = name; |
| 2338 } | 2388 } |
| 2339 if (split != null) { | 2389 if (split != null) { |
| 2340 _json["split"] = (split).toJson(); | 2390 _json["split"] = (split).toJson(); |
| 2341 } | 2391 } |
| 2342 return _json; | 2392 return _json; |
| 2343 } | 2393 } |
| 2344 } | 2394 } |
| 2345 | 2395 |
| 2346 /** Used to specify extra network settings (for VM runtimes only). */ | 2396 /** Extra network settings. Only applicable for VM runtimes. */ |
| 2347 class Network { | 2397 class Network { |
| 2348 /** | 2398 /** |
| 2349 * A list of ports (or port pairs) to forward from the VM into the app | 2399 * List of ports, or port pairs, to forward from the virtual machine to the |
| 2350 * container. | 2400 * application container. |
| 2351 */ | 2401 */ |
| 2352 core.List<core.String> forwardedPorts; | 2402 core.List<core.String> forwardedPorts; |
| 2353 /** A tag to apply to the VM instance during creation. */ | 2403 /** Tag to apply to the VM instance during creation. */ |
| 2354 core.String instanceTag; | 2404 core.String instanceTag; |
| 2355 /** | 2405 /** |
| 2356 * The Google Compute Engine network where the VMs will be created. If not | 2406 * Google Cloud Platform network where the virtual machines are created. |
| 2357 * specified, or empty, the network named "default" will be used. (The short | 2407 * Specify the short name, not the resource path. Defaults to `default`. |
| 2358 * name should be specified, not the resource path.) | |
| 2359 */ | 2408 */ |
| 2360 core.String name; | 2409 core.String name; |
| 2361 | 2410 |
| 2362 Network(); | 2411 Network(); |
| 2363 | 2412 |
| 2364 Network.fromJson(core.Map _json) { | 2413 Network.fromJson(core.Map _json) { |
| 2365 if (_json.containsKey("forwardedPorts")) { | 2414 if (_json.containsKey("forwardedPorts")) { |
| 2366 forwardedPorts = _json["forwardedPorts"]; | 2415 forwardedPorts = _json["forwardedPorts"]; |
| 2367 } | 2416 } |
| 2368 if (_json.containsKey("instanceTag")) { | 2417 if (_json.containsKey("instanceTag")) { |
| (...skipping 12 matching lines...) Expand all Loading... |
| 2381 if (instanceTag != null) { | 2430 if (instanceTag != null) { |
| 2382 _json["instanceTag"] = instanceTag; | 2431 _json["instanceTag"] = instanceTag; |
| 2383 } | 2432 } |
| 2384 if (name != null) { | 2433 if (name != null) { |
| 2385 _json["name"] = name; | 2434 _json["name"] = name; |
| 2386 } | 2435 } |
| 2387 return _json; | 2436 return _json; |
| 2388 } | 2437 } |
| 2389 } | 2438 } |
| 2390 | 2439 |
| 2391 /** Target scaling by network usage (for VM runtimes only). */ | 2440 /** Target scaling by network usage. Only applicable for VM runtimes. */ |
| 2392 class NetworkUtilization { | 2441 class NetworkUtilization { |
| 2393 /** Target bytes per second received. */ | 2442 /** Target bytes received per second. */ |
| 2394 core.int targetReceivedBytesPerSec; | 2443 core.int targetReceivedBytesPerSec; |
| 2395 /** Target packets per second received. */ | 2444 /** Target packets received per second. */ |
| 2396 core.int targetReceivedPacketsPerSec; | 2445 core.int targetReceivedPacketsPerSec; |
| 2397 /** Target bytes per second sent. */ | 2446 /** Target bytes sent per second. */ |
| 2398 core.int targetSentBytesPerSec; | 2447 core.int targetSentBytesPerSec; |
| 2399 /** Target packets per second sent. */ | 2448 /** Target packets sent per second. */ |
| 2400 core.int targetSentPacketsPerSec; | 2449 core.int targetSentPacketsPerSec; |
| 2401 | 2450 |
| 2402 NetworkUtilization(); | 2451 NetworkUtilization(); |
| 2403 | 2452 |
| 2404 NetworkUtilization.fromJson(core.Map _json) { | 2453 NetworkUtilization.fromJson(core.Map _json) { |
| 2405 if (_json.containsKey("targetReceivedBytesPerSec")) { | 2454 if (_json.containsKey("targetReceivedBytesPerSec")) { |
| 2406 targetReceivedBytesPerSec = _json["targetReceivedBytesPerSec"]; | 2455 targetReceivedBytesPerSec = _json["targetReceivedBytesPerSec"]; |
| 2407 } | 2456 } |
| 2408 if (_json.containsKey("targetReceivedPacketsPerSec")) { | 2457 if (_json.containsKey("targetReceivedPacketsPerSec")) { |
| 2409 targetReceivedPacketsPerSec = _json["targetReceivedPacketsPerSec"]; | 2458 targetReceivedPacketsPerSec = _json["targetReceivedPacketsPerSec"]; |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2513 } | 2562 } |
| 2514 if (response != null) { | 2563 if (response != null) { |
| 2515 _json["response"] = response; | 2564 _json["response"] = response; |
| 2516 } | 2565 } |
| 2517 return _json; | 2566 return _json; |
| 2518 } | 2567 } |
| 2519 } | 2568 } |
| 2520 | 2569 |
| 2521 /** Metadata for the given google.longrunning.Operation. */ | 2570 /** Metadata for the given google.longrunning.Operation. */ |
| 2522 class OperationMetadata { | 2571 class OperationMetadata { |
| 2523 /** | 2572 /** Timestamp that this operation completed. @OutputOnly */ |
| 2524 * Timestamp that this operation was completed. (Not present if the operation | |
| 2525 * is still in progress.) @OutputOnly | |
| 2526 */ | |
| 2527 core.String endTime; | 2573 core.String endTime; |
| 2528 /** Timestamp that this operation was received. @OutputOnly */ | 2574 /** Timestamp that this operation was created. @OutputOnly */ |
| 2529 core.String insertTime; | 2575 core.String insertTime; |
| 2530 /** | 2576 /** |
| 2531 * API method name that initiated the operation. Example: | 2577 * API method that initiated this operation. Example: |
| 2532 * "google.appengine.v1beta4.Version.CreateVersion". @OutputOnly | 2578 * `google.appengine.v1beta4.Version.CreateVersion`. @OutputOnly |
| 2533 */ | 2579 */ |
| 2534 core.String method; | 2580 core.String method; |
| 2535 /** | 2581 /** |
| 2536 * The type of the operation (deprecated, use method field instead). Example: | 2582 * Type of this operation. Deprecated, use method field instead. Example: |
| 2537 * "create_version". @OutputOnly | 2583 * "create_version". @OutputOnly |
| 2538 */ | 2584 */ |
| 2539 core.String operationType; | 2585 core.String operationType; |
| 2540 /** | 2586 /** |
| 2541 * Resource that this operation is acting on. Example: | 2587 * Name of the resource that this operation is acting on. Example: |
| 2542 * "apps/myapp/modules/default". @OutputOnly | 2588 * `apps/myapp/modules/default`. @OutputOnly |
| 2543 */ | 2589 */ |
| 2544 core.String target; | 2590 core.String target; |
| 2545 /** The user who requested this operation. @OutputOnly */ | 2591 /** User who requested this operation. @OutputOnly */ |
| 2546 core.String user; | 2592 core.String user; |
| 2547 | 2593 |
| 2548 OperationMetadata(); | 2594 OperationMetadata(); |
| 2549 | 2595 |
| 2550 OperationMetadata.fromJson(core.Map _json) { | 2596 OperationMetadata.fromJson(core.Map _json) { |
| 2551 if (_json.containsKey("endTime")) { | 2597 if (_json.containsKey("endTime")) { |
| 2552 endTime = _json["endTime"]; | 2598 endTime = _json["endTime"]; |
| 2553 } | 2599 } |
| 2554 if (_json.containsKey("insertTime")) { | 2600 if (_json.containsKey("insertTime")) { |
| 2555 insertTime = _json["insertTime"]; | 2601 insertTime = _json["insertTime"]; |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2587 } | 2633 } |
| 2588 if (user != null) { | 2634 if (user != null) { |
| 2589 _json["user"] = user; | 2635 _json["user"] = user; |
| 2590 } | 2636 } |
| 2591 return _json; | 2637 return _json; |
| 2592 } | 2638 } |
| 2593 } | 2639 } |
| 2594 | 2640 |
| 2595 /** Metadata for the given google.longrunning.Operation. */ | 2641 /** Metadata for the given google.longrunning.Operation. */ |
| 2596 class OperationMetadataV1 { | 2642 class OperationMetadataV1 { |
| 2597 /** | 2643 /** Time that this operation completed. @OutputOnly */ |
| 2598 * Timestamp that this operation was completed. (Not present if the operation | |
| 2599 * is still in progress.) @OutputOnly | |
| 2600 */ | |
| 2601 core.String endTime; | 2644 core.String endTime; |
| 2602 /** Timestamp that this operation was received. @OutputOnly */ | 2645 /** Time that this operation was created. @OutputOnly */ |
| 2603 core.String insertTime; | 2646 core.String insertTime; |
| 2604 /** | 2647 /** |
| 2605 * API method name that initiated the operation. Example: | 2648 * API method that initiated this operation. Example: |
| 2606 * "google.appengine.v1.Version.CreateVersion". @OutputOnly | 2649 * `google.appengine.v1.Versions.CreateVersion`. @OutputOnly |
| 2607 */ | 2650 */ |
| 2608 core.String method; | 2651 core.String method; |
| 2609 /** | 2652 /** |
| 2610 * Resource that this operation is acting on. Example: | 2653 * Name of the resource that this operation is acting on. Example: |
| 2611 * "apps/myapp/services/default". @OutputOnly | 2654 * `apps/myapp/services/default`. @OutputOnly |
| 2612 */ | 2655 */ |
| 2613 core.String target; | 2656 core.String target; |
| 2614 /** The user who requested this operation. @OutputOnly */ | 2657 /** User who requested this operation. @OutputOnly */ |
| 2615 core.String user; | 2658 core.String user; |
| 2616 | 2659 |
| 2617 OperationMetadataV1(); | 2660 OperationMetadataV1(); |
| 2618 | 2661 |
| 2619 OperationMetadataV1.fromJson(core.Map _json) { | 2662 OperationMetadataV1.fromJson(core.Map _json) { |
| 2620 if (_json.containsKey("endTime")) { | 2663 if (_json.containsKey("endTime")) { |
| 2621 endTime = _json["endTime"]; | 2664 endTime = _json["endTime"]; |
| 2622 } | 2665 } |
| 2623 if (_json.containsKey("insertTime")) { | 2666 if (_json.containsKey("insertTime")) { |
| 2624 insertTime = _json["insertTime"]; | 2667 insertTime = _json["insertTime"]; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 2650 } | 2693 } |
| 2651 if (user != null) { | 2694 if (user != null) { |
| 2652 _json["user"] = user; | 2695 _json["user"] = user; |
| 2653 } | 2696 } |
| 2654 return _json; | 2697 return _json; |
| 2655 } | 2698 } |
| 2656 } | 2699 } |
| 2657 | 2700 |
| 2658 /** Metadata for the given google.longrunning.Operation. */ | 2701 /** Metadata for the given google.longrunning.Operation. */ |
| 2659 class OperationMetadataV1Beta5 { | 2702 class OperationMetadataV1Beta5 { |
| 2660 /** | 2703 /** Timestamp that this operation completed. @OutputOnly */ |
| 2661 * Timestamp that this operation was completed. (Not present if the operation | |
| 2662 * is still in progress.) @OutputOnly | |
| 2663 */ | |
| 2664 core.String endTime; | 2704 core.String endTime; |
| 2665 /** Timestamp that this operation was received. @OutputOnly */ | 2705 /** Timestamp that this operation was created. @OutputOnly */ |
| 2666 core.String insertTime; | 2706 core.String insertTime; |
| 2667 /** | 2707 /** |
| 2668 * API method name that initiated the operation. Example: | 2708 * API method name that initiated this operation. Example: |
| 2669 * "google.appengine.v1beta5.Version.CreateVersion". @OutputOnly | 2709 * `google.appengine.v1beta5.Version.CreateVersion`. @OutputOnly |
| 2670 */ | 2710 */ |
| 2671 core.String method; | 2711 core.String method; |
| 2672 /** | 2712 /** |
| 2673 * Resource that this operation is acting on. Example: | 2713 * Name of the resource that this operation is acting on. Example: |
| 2674 * "apps/myapp/services/default". @OutputOnly | 2714 * `apps/myapp/services/default`. @OutputOnly |
| 2675 */ | 2715 */ |
| 2676 core.String target; | 2716 core.String target; |
| 2677 /** The user who requested this operation. @OutputOnly */ | 2717 /** User who requested this operation. @OutputOnly */ |
| 2678 core.String user; | 2718 core.String user; |
| 2679 | 2719 |
| 2680 OperationMetadataV1Beta5(); | 2720 OperationMetadataV1Beta5(); |
| 2681 | 2721 |
| 2682 OperationMetadataV1Beta5.fromJson(core.Map _json) { | 2722 OperationMetadataV1Beta5.fromJson(core.Map _json) { |
| 2683 if (_json.containsKey("endTime")) { | 2723 if (_json.containsKey("endTime")) { |
| 2684 endTime = _json["endTime"]; | 2724 endTime = _json["endTime"]; |
| 2685 } | 2725 } |
| 2686 if (_json.containsKey("insertTime")) { | 2726 if (_json.containsKey("insertTime")) { |
| 2687 insertTime = _json["insertTime"]; | 2727 insertTime = _json["insertTime"]; |
| (...skipping 23 matching lines...) Expand all Loading... |
| 2711 if (target != null) { | 2751 if (target != null) { |
| 2712 _json["target"] = target; | 2752 _json["target"] = target; |
| 2713 } | 2753 } |
| 2714 if (user != null) { | 2754 if (user != null) { |
| 2715 _json["user"] = user; | 2755 _json["user"] = user; |
| 2716 } | 2756 } |
| 2717 return _json; | 2757 return _json; |
| 2718 } | 2758 } |
| 2719 } | 2759 } |
| 2720 | 2760 |
| 2721 /** Target scaling by request utilization (for VM runtimes only). */ | 2761 /** Target scaling by request utilization. Only applicable for VM runtimes. */ |
| 2722 class RequestUtilization { | 2762 class RequestUtilization { |
| 2723 /** Target number of concurrent requests. */ | 2763 /** Target number of concurrent requests. */ |
| 2724 core.int targetConcurrentRequests; | 2764 core.int targetConcurrentRequests; |
| 2725 /** Target requests per second. */ | 2765 /** Target requests per second. */ |
| 2726 core.int targetRequestCountPerSec; | 2766 core.int targetRequestCountPerSec; |
| 2727 | 2767 |
| 2728 RequestUtilization(); | 2768 RequestUtilization(); |
| 2729 | 2769 |
| 2730 RequestUtilization.fromJson(core.Map _json) { | 2770 RequestUtilization.fromJson(core.Map _json) { |
| 2731 if (_json.containsKey("targetConcurrentRequests")) { | 2771 if (_json.containsKey("targetConcurrentRequests")) { |
| 2732 targetConcurrentRequests = _json["targetConcurrentRequests"]; | 2772 targetConcurrentRequests = _json["targetConcurrentRequests"]; |
| 2733 } | 2773 } |
| 2734 if (_json.containsKey("targetRequestCountPerSec")) { | 2774 if (_json.containsKey("targetRequestCountPerSec")) { |
| 2735 targetRequestCountPerSec = _json["targetRequestCountPerSec"]; | 2775 targetRequestCountPerSec = _json["targetRequestCountPerSec"]; |
| 2736 } | 2776 } |
| 2737 } | 2777 } |
| 2738 | 2778 |
| 2739 core.Map toJson() { | 2779 core.Map toJson() { |
| 2740 var _json = new core.Map(); | 2780 var _json = new core.Map(); |
| 2741 if (targetConcurrentRequests != null) { | 2781 if (targetConcurrentRequests != null) { |
| 2742 _json["targetConcurrentRequests"] = targetConcurrentRequests; | 2782 _json["targetConcurrentRequests"] = targetConcurrentRequests; |
| 2743 } | 2783 } |
| 2744 if (targetRequestCountPerSec != null) { | 2784 if (targetRequestCountPerSec != null) { |
| 2745 _json["targetRequestCountPerSec"] = targetRequestCountPerSec; | 2785 _json["targetRequestCountPerSec"] = targetRequestCountPerSec; |
| 2746 } | 2786 } |
| 2747 return _json; | 2787 return _json; |
| 2748 } | 2788 } |
| 2749 } | 2789 } |
| 2750 | 2790 |
| 2751 /** Used to specify how many machine resources an app version needs. */ | 2791 /** Machine resources for a version. */ |
| 2752 class Resources { | 2792 class Resources { |
| 2753 /** How many CPU cores an app version needs. */ | 2793 /** Number of CPU cores needed. */ |
| 2754 core.double cpu; | 2794 core.double cpu; |
| 2755 /** How much disk size, in GB, an app version needs. */ | 2795 /** Disk size (GB) needed. */ |
| 2756 core.double diskGb; | 2796 core.double diskGb; |
| 2757 /** How much memory, in GB, an app version needs. */ | 2797 /** Memory (GB) needed. */ |
| 2758 core.double memoryGb; | 2798 core.double memoryGb; |
| 2759 | 2799 |
| 2760 Resources(); | 2800 Resources(); |
| 2761 | 2801 |
| 2762 Resources.fromJson(core.Map _json) { | 2802 Resources.fromJson(core.Map _json) { |
| 2763 if (_json.containsKey("cpu")) { | 2803 if (_json.containsKey("cpu")) { |
| 2764 cpu = _json["cpu"]; | 2804 cpu = _json["cpu"]; |
| 2765 } | 2805 } |
| 2766 if (_json.containsKey("diskGb")) { | 2806 if (_json.containsKey("diskGb")) { |
| 2767 diskGb = _json["diskGb"]; | 2807 diskGb = _json["diskGb"]; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 2781 } | 2821 } |
| 2782 if (memoryGb != null) { | 2822 if (memoryGb != null) { |
| 2783 _json["memoryGb"] = memoryGb; | 2823 _json["memoryGb"] = memoryGb; |
| 2784 } | 2824 } |
| 2785 return _json; | 2825 return _json; |
| 2786 } | 2826 } |
| 2787 } | 2827 } |
| 2788 | 2828 |
| 2789 /** Executes a script to handle the request that matches the URL pattern. */ | 2829 /** Executes a script to handle the request that matches the URL pattern. */ |
| 2790 class ScriptHandler { | 2830 class ScriptHandler { |
| 2791 /** Specifies the path to the script from the application root directory. */ | 2831 /** Path to the script from the application root directory. */ |
| 2792 core.String scriptPath; | 2832 core.String scriptPath; |
| 2793 | 2833 |
| 2794 ScriptHandler(); | 2834 ScriptHandler(); |
| 2795 | 2835 |
| 2796 ScriptHandler.fromJson(core.Map _json) { | 2836 ScriptHandler.fromJson(core.Map _json) { |
| 2797 if (_json.containsKey("scriptPath")) { | 2837 if (_json.containsKey("scriptPath")) { |
| 2798 scriptPath = _json["scriptPath"]; | 2838 scriptPath = _json["scriptPath"]; |
| 2799 } | 2839 } |
| 2800 } | 2840 } |
| 2801 | 2841 |
| 2802 core.Map toJson() { | 2842 core.Map toJson() { |
| 2803 var _json = new core.Map(); | 2843 var _json = new core.Map(); |
| 2804 if (scriptPath != null) { | 2844 if (scriptPath != null) { |
| 2805 _json["scriptPath"] = scriptPath; | 2845 _json["scriptPath"] = scriptPath; |
| 2806 } | 2846 } |
| 2807 return _json; | 2847 return _json; |
| 2808 } | 2848 } |
| 2809 } | 2849 } |
| 2810 | 2850 |
| 2811 /** | 2851 /** |
| 2812 * A reference to a particular snapshot of the source tree used to build and | 2852 * Reference to a particular snapshot of the source tree used to build and |
| 2813 * deploy the application. | 2853 * deploy the application. |
| 2814 */ | 2854 */ |
| 2815 class SourceReference { | 2855 class SourceReference { |
| 2816 /** | 2856 /** |
| 2817 * Optional. A URI string identifying the repository. Example: | 2857 * URI string identifying the repository. Example: |
| 2818 * "https://source.developers.google.com/p/app-123/r/default" | 2858 * "https://source.developers.google.com/p/app-123/r/default" |
| 2819 */ | 2859 */ |
| 2820 core.String repository; | 2860 core.String repository; |
| 2821 /** | 2861 /** |
| 2822 * The canonical (and persistent) identifier of the deployed revision, i.e. | 2862 * The canonical, persistent identifier of the deployed revision. Aliases that |
| 2823 * any kind of aliases including tags or branch names are not allowed. Example | 2863 * include tags or branch names are not allowed. Example (git): |
| 2824 * (git): "2198322f89e0bb2e25021667c2ed489d1fd34e6b" | 2864 * "2198322f89e0bb2e25021667c2ed489d1fd34e6b" |
| 2825 */ | 2865 */ |
| 2826 core.String revisionId; | 2866 core.String revisionId; |
| 2827 | 2867 |
| 2828 SourceReference(); | 2868 SourceReference(); |
| 2829 | 2869 |
| 2830 SourceReference.fromJson(core.Map _json) { | 2870 SourceReference.fromJson(core.Map _json) { |
| 2831 if (_json.containsKey("repository")) { | 2871 if (_json.containsKey("repository")) { |
| 2832 repository = _json["repository"]; | 2872 repository = _json["repository"]; |
| 2833 } | 2873 } |
| 2834 if (_json.containsKey("revisionId")) { | 2874 if (_json.containsKey("revisionId")) { |
| (...skipping 13 matching lines...) Expand all Loading... |
| 2848 } | 2888 } |
| 2849 } | 2889 } |
| 2850 | 2890 |
| 2851 /** | 2891 /** |
| 2852 * Files served directly to the user for a given URL, such as images, CSS | 2892 * Files served directly to the user for a given URL, such as images, CSS |
| 2853 * stylesheets, or JavaScript source files. Static directory handlers make it | 2893 * stylesheets, or JavaScript source files. Static directory handlers make it |
| 2854 * easy to serve the entire contents of a directory as static files. | 2894 * easy to serve the entire contents of a directory as static files. |
| 2855 */ | 2895 */ |
| 2856 class StaticDirectoryHandler { | 2896 class StaticDirectoryHandler { |
| 2857 /** | 2897 /** |
| 2858 * By default, files declared in static file handlers are uploaded as static | 2898 * Whether files should also be uploaded as code data. By default, files |
| 2859 * data and are only served to end users, they cannot be read by an | 2899 * declared in static directory handlers are uploaded as static data and are |
| 2860 * application. If this field is set to true, the files are also uploaded as | 2900 * only served to end users; they cannot be read by the application. If |
| 2861 * code data so your application can read them. Both uploads are charged | 2901 * enabled, uploads are charged against both your code and static data storage |
| 2862 * against your code and static data storage resource quotas. | 2902 * resource quotas. |
| 2863 */ | 2903 */ |
| 2864 core.bool applicationReadable; | 2904 core.bool applicationReadable; |
| 2865 /** | 2905 /** |
| 2866 * The path to the directory containing the static files, from the application | 2906 * Path to the directory containing the static files from the application root |
| 2867 * root directory. Everything after the end of the matched url pattern is | 2907 * directory. Everything after the end of the matched URL pattern is appended |
| 2868 * appended to static_dir to form the full path to the requested file. | 2908 * to `static_dir` to form the full path to the requested file. |
| 2869 */ | 2909 */ |
| 2870 core.String directory; | 2910 core.String directory; |
| 2871 /** | 2911 /** Time a static file served by this handler should be cached. */ |
| 2872 * The length of time a static file served by this handler ought to be cached | |
| 2873 * by web proxies and browsers. | |
| 2874 */ | |
| 2875 core.String expiration; | 2912 core.String expiration; |
| 2876 /** HTTP headers to use for all responses from these URLs. */ | 2913 /** HTTP headers to use for all responses from these URLs. */ |
| 2877 core.Map<core.String, core.String> httpHeaders; | 2914 core.Map<core.String, core.String> httpHeaders; |
| 2878 /** | 2915 /** |
| 2879 * If specified, all files served by this handler will be served using the | 2916 * MIME type used to serve all files served by this handler. Defaults to |
| 2880 * specified MIME type. If not specified, the MIME type for a file will be | 2917 * file-specific MIME types, which are direved from each file's filename |
| 2881 * derived from the file's filename extension. | 2918 * extension. |
| 2882 */ | 2919 */ |
| 2883 core.String mimeType; | 2920 core.String mimeType; |
| 2884 /** | 2921 /** |
| 2885 * If true, this UrlMap entry does not match the request unless the file | 2922 * Whether this handler should match the request if the file referenced by the |
| 2886 * referenced by the handler also exists. If no such file exists, processing | 2923 * handler does not exist. |
| 2887 * will continue with the next UrlMap that matches the requested URL. | |
| 2888 */ | 2924 */ |
| 2889 core.bool requireMatchingFile; | 2925 core.bool requireMatchingFile; |
| 2890 | 2926 |
| 2891 StaticDirectoryHandler(); | 2927 StaticDirectoryHandler(); |
| 2892 | 2928 |
| 2893 StaticDirectoryHandler.fromJson(core.Map _json) { | 2929 StaticDirectoryHandler.fromJson(core.Map _json) { |
| 2894 if (_json.containsKey("applicationReadable")) { | 2930 if (_json.containsKey("applicationReadable")) { |
| 2895 applicationReadable = _json["applicationReadable"]; | 2931 applicationReadable = _json["applicationReadable"]; |
| 2896 } | 2932 } |
| 2897 if (_json.containsKey("directory")) { | 2933 if (_json.containsKey("directory")) { |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2936 } | 2972 } |
| 2937 | 2973 |
| 2938 /** | 2974 /** |
| 2939 * Files served directly to the user for a given URL, such as images, CSS | 2975 * Files served directly to the user for a given URL, such as images, CSS |
| 2940 * stylesheets, or JavaScript source files. Static file handlers describe which | 2976 * stylesheets, or JavaScript source files. Static file handlers describe which |
| 2941 * files in the application directory are static files, and which URLs serve | 2977 * files in the application directory are static files, and which URLs serve |
| 2942 * them. | 2978 * them. |
| 2943 */ | 2979 */ |
| 2944 class StaticFilesHandler { | 2980 class StaticFilesHandler { |
| 2945 /** | 2981 /** |
| 2946 * By default, files declared in static file handlers are uploaded as static | 2982 * Whether files should also be uploaded as code data. By default, files |
| 2947 * data and are only served to end users, they cannot be read by an | 2983 * declared in static file handlers are uploaded as static data and are only |
| 2948 * application. If this field is set to true, the files are also uploaded as | 2984 * served to end users; they cannot be read by the application. If enabled, |
| 2949 * code data so your application can read them. Both uploads are charged | 2985 * uploads are charged against both your code and static data storage resource |
| 2950 * against your code and static data storage resource quotas. | 2986 * quotas. |
| 2951 */ | 2987 */ |
| 2952 core.bool applicationReadable; | 2988 core.bool applicationReadable; |
| 2953 /** | 2989 /** Time a static file served by this handler should be cached. */ |
| 2954 * The length of time a static file served by this handler ought to be cached | |
| 2955 * by web proxies and browsers. | |
| 2956 */ | |
| 2957 core.String expiration; | 2990 core.String expiration; |
| 2958 /** HTTP headers to use for all responses from these URLs. */ | 2991 /** HTTP headers to use for all responses from these URLs. */ |
| 2959 core.Map<core.String, core.String> httpHeaders; | 2992 core.Map<core.String, core.String> httpHeaders; |
| 2960 /** | 2993 /** |
| 2961 * If specified, all files served by this handler will be served using the | 2994 * MIME type used to serve all files served by this handler. Defaults to |
| 2962 * specified MIME type. If not specified, the MIME type for a file will be | 2995 * file-specific MIME types, which are derived from each file's filename |
| 2963 * derived from the file's filename extension. | 2996 * extension. |
| 2964 */ | 2997 */ |
| 2965 core.String mimeType; | 2998 core.String mimeType; |
| 2966 /** | 2999 /** |
| 2967 * The path to the static files matched by the URL pattern, from the | 3000 * Path to the static files matched by the URL pattern, from the application |
| 2968 * application root directory. The path can refer to text matched in groupings | 3001 * root directory. The path can refer to text matched in groupings in the URL |
| 2969 * in the URL pattern. | 3002 * pattern. |
| 2970 */ | 3003 */ |
| 2971 core.String path; | 3004 core.String path; |
| 2972 /** | 3005 /** |
| 2973 * If true, this UrlMap entry does not match the request unless the file | 3006 * Whether this handler should match the request if the file referenced by the |
| 2974 * referenced by the handler also exists. If no such file exists, processing | 3007 * handler does not exist. |
| 2975 * will continue with the next UrlMap that matches the requested URL. | |
| 2976 */ | 3008 */ |
| 2977 core.bool requireMatchingFile; | 3009 core.bool requireMatchingFile; |
| 2978 /** | 3010 /** |
| 2979 * A regular expression that matches the file paths for all files that will be | 3011 * Regular expression that matches the file paths for all files that should be |
| 2980 * referenced by this handler. | 3012 * referenced by this handler. |
| 2981 */ | 3013 */ |
| 2982 core.String uploadPathRegex; | 3014 core.String uploadPathRegex; |
| 2983 | 3015 |
| 2984 StaticFilesHandler(); | 3016 StaticFilesHandler(); |
| 2985 | 3017 |
| 2986 StaticFilesHandler.fromJson(core.Map _json) { | 3018 StaticFilesHandler.fromJson(core.Map _json) { |
| 2987 if (_json.containsKey("applicationReadable")) { | 3019 if (_json.containsKey("applicationReadable")) { |
| 2988 applicationReadable = _json["applicationReadable"]; | 3020 applicationReadable = _json["applicationReadable"]; |
| 2989 } | 3021 } |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3110 _json["details"] = details; | 3142 _json["details"] = details; |
| 3111 } | 3143 } |
| 3112 if (message != null) { | 3144 if (message != null) { |
| 3113 _json["message"] = message; | 3145 _json["message"] = message; |
| 3114 } | 3146 } |
| 3115 return _json; | 3147 return _json; |
| 3116 } | 3148 } |
| 3117 } | 3149 } |
| 3118 | 3150 |
| 3119 /** | 3151 /** |
| 3120 * Configuration for traffic splitting for versions within a single module. | 3152 * Traffic routing configuration for versions within a single module. Traffic |
| 3121 * Traffic splitting allows traffic directed to the module to be assigned to one | 3153 * splits define how traffic directed to the module is assigned to versions. |
| 3122 * of several versions in a fractional way, enabling experiments and canarying | |
| 3123 * new builds, for example. | |
| 3124 */ | 3154 */ |
| 3125 class TrafficSplit { | 3155 class TrafficSplit { |
| 3126 /** | 3156 /** |
| 3127 * Mapping from module version IDs within the module to fractional (0.000, 1] | 3157 * Mapping from version IDs within the module to fractional (0.000, 1] |
| 3128 * allocations of traffic for that version. Each version may only be specified | 3158 * allocations of traffic for that version. Each version can be specified only |
| 3129 * once, but some versions in the module may not have any traffic allocation. | 3159 * once, but some versions in the module may not have any traffic allocation. |
| 3130 * Modules that have traffic allocated in this field may not be deleted until | 3160 * Modules that have traffic allocated cannot be deleted until either the |
| 3131 * the module is deleted, or their traffic allocation is removed. Allocations | 3161 * module is deleted or their traffic allocation is removed. Allocations must |
| 3132 * must sum to 1. Supports precision up to two decimal places for IP-based | 3162 * sum to 1. Up to two decimal place precision is supported for IP-based |
| 3133 * splits and up to three decimal places for cookie-based splits. | 3163 * splits and up to three decimal places is supported for cookie-based splits. |
| 3134 */ | 3164 */ |
| 3135 core.Map<core.String, core.double> allocations; | 3165 core.Map<core.String, core.double> allocations; |
| 3136 /** | 3166 /** |
| 3137 * Which mechanism should be used as a selector when choosing a version to | 3167 * Mechanism used to determine which version a request is sent to. The traffic |
| 3138 * send a request to. The traffic selection algorithm will be stable for | 3168 * selection algorithm will be stable for either type until allocations are |
| 3139 * either type until allocations are changed. | 3169 * changed. |
| 3140 * Possible string values are: | 3170 * Possible string values are: |
| 3141 * - "UNSPECIFIED" : A UNSPECIFIED. | 3171 * - "UNSPECIFIED" : A UNSPECIFIED. |
| 3142 * - "COOKIE" : A COOKIE. | 3172 * - "COOKIE" : A COOKIE. |
| 3143 * - "IP" : A IP. | 3173 * - "IP" : A IP. |
| 3144 */ | 3174 */ |
| 3145 core.String shardBy; | 3175 core.String shardBy; |
| 3146 | 3176 |
| 3147 TrafficSplit(); | 3177 TrafficSplit(); |
| 3148 | 3178 |
| 3149 TrafficSplit.fromJson(core.Map _json) { | 3179 TrafficSplit.fromJson(core.Map _json) { |
| (...skipping 13 matching lines...) Expand all Loading... |
| 3163 if (shardBy != null) { | 3193 if (shardBy != null) { |
| 3164 _json["shardBy"] = shardBy; | 3194 _json["shardBy"] = shardBy; |
| 3165 } | 3195 } |
| 3166 return _json; | 3196 return _json; |
| 3167 } | 3197 } |
| 3168 } | 3198 } |
| 3169 | 3199 |
| 3170 /** Rules to match an HTTP request and dispatch that request to a module. */ | 3200 /** Rules to match an HTTP request and dispatch that request to a module. */ |
| 3171 class UrlDispatchRule { | 3201 class UrlDispatchRule { |
| 3172 /** | 3202 /** |
| 3173 * The domain name to match on. Supports '*' (glob) wildcarding on the | 3203 * Domain name to match against. The wildcard "`*`" is supported if specified |
| 3174 * left-hand side of a '.'. If empty, all domains will be matched (the same as | 3204 * before a period: "`*.`". Defaults to matching all domains: "`*`". |
| 3175 * '*'). | |
| 3176 */ | 3205 */ |
| 3177 core.String domain; | 3206 core.String domain; |
| 3178 /** | 3207 /** |
| 3179 * The resource id of a Module in this application that should service the | 3208 * Resource ID of a module in this application that should serve the matched |
| 3180 * matched request. The Module must already exist. Example: "default". | 3209 * request. The module must already exist. Example: `default`. |
| 3181 */ | 3210 */ |
| 3182 core.String module; | 3211 core.String module; |
| 3183 /** | 3212 /** |
| 3184 * The pathname within the host. This must start with a '/'. A single '*' | 3213 * Pathname within the host. Must start with a "`/`". A single "`*`" can be |
| 3185 * (glob) can be included at the end of the path. The sum of the lengths of | 3214 * included at the end of the path. The sum of the lengths of the domain and |
| 3186 * the domain and path may not exceed 100 characters. | 3215 * path may not exceed 100 characters. |
| 3187 */ | 3216 */ |
| 3188 core.String path; | 3217 core.String path; |
| 3189 | 3218 |
| 3190 UrlDispatchRule(); | 3219 UrlDispatchRule(); |
| 3191 | 3220 |
| 3192 UrlDispatchRule.fromJson(core.Map _json) { | 3221 UrlDispatchRule.fromJson(core.Map _json) { |
| 3193 if (_json.containsKey("domain")) { | 3222 if (_json.containsKey("domain")) { |
| 3194 domain = _json["domain"]; | 3223 domain = _json["domain"]; |
| 3195 } | 3224 } |
| 3196 if (_json.containsKey("module")) { | 3225 if (_json.containsKey("module")) { |
| (...skipping 13 matching lines...) Expand all Loading... |
| 3210 _json["module"] = module; | 3239 _json["module"] = module; |
| 3211 } | 3240 } |
| 3212 if (path != null) { | 3241 if (path != null) { |
| 3213 _json["path"] = path; | 3242 _json["path"] = path; |
| 3214 } | 3243 } |
| 3215 return _json; | 3244 return _json; |
| 3216 } | 3245 } |
| 3217 } | 3246 } |
| 3218 | 3247 |
| 3219 /** | 3248 /** |
| 3220 * A URL pattern and description of how it should be handled. App Engine can | 3249 * URL pattern and description of how the URL should be handled. App Engine can |
| 3221 * handle URLs by executing application code, or by serving static files | 3250 * handle URLs by executing application code, or by serving static files |
| 3222 * uploaded with the code, such as images, CSS or JavaScript. | 3251 * uploaded with the version, such as images, CSS, or JavaScript. |
| 3223 */ | 3252 */ |
| 3224 class UrlMap { | 3253 class UrlMap { |
| 3225 /** Use API Endpoints to handle requests. */ | 3254 /** Uses API Endpoints to handle requests. */ |
| 3226 ApiEndpointHandler apiEndpoint; | 3255 ApiEndpointHandler apiEndpoint; |
| 3227 /** | 3256 /** |
| 3228 * For users not logged in, how to handle access to resources with required | 3257 * Action to take when users access resources that require authentication. |
| 3229 * login. Defaults to "redirect". | 3258 * Defaults to `redirect`. |
| 3230 * Possible string values are: | 3259 * Possible string values are: |
| 3231 * - "AUTH_FAIL_ACTION_UNSPECIFIED" : A AUTH_FAIL_ACTION_UNSPECIFIED. | 3260 * - "AUTH_FAIL_ACTION_UNSPECIFIED" : A AUTH_FAIL_ACTION_UNSPECIFIED. |
| 3232 * - "AUTH_FAIL_ACTION_REDIRECT" : A AUTH_FAIL_ACTION_REDIRECT. | 3261 * - "AUTH_FAIL_ACTION_REDIRECT" : A AUTH_FAIL_ACTION_REDIRECT. |
| 3233 * - "AUTH_FAIL_ACTION_UNAUTHORIZED" : A AUTH_FAIL_ACTION_UNAUTHORIZED. | 3262 * - "AUTH_FAIL_ACTION_UNAUTHORIZED" : A AUTH_FAIL_ACTION_UNAUTHORIZED. |
| 3234 */ | 3263 */ |
| 3235 core.String authFailAction; | 3264 core.String authFailAction; |
| 3236 /** | 3265 /** |
| 3237 * What level of login is required to access this resource. | 3266 * Level of login required to access this resource. |
| 3238 * Possible string values are: | 3267 * Possible string values are: |
| 3239 * - "LOGIN_UNSPECIFIED" : A LOGIN_UNSPECIFIED. | 3268 * - "LOGIN_UNSPECIFIED" : A LOGIN_UNSPECIFIED. |
| 3240 * - "LOGIN_OPTIONAL" : A LOGIN_OPTIONAL. | 3269 * - "LOGIN_OPTIONAL" : A LOGIN_OPTIONAL. |
| 3241 * - "LOGIN_ADMIN" : A LOGIN_ADMIN. | 3270 * - "LOGIN_ADMIN" : A LOGIN_ADMIN. |
| 3242 * - "LOGIN_REQUIRED" : A LOGIN_REQUIRED. | 3271 * - "LOGIN_REQUIRED" : A LOGIN_REQUIRED. |
| 3243 */ | 3272 */ |
| 3244 core.String login; | 3273 core.String login; |
| 3245 /** | 3274 /** |
| 3246 * `30x` code to use when performing redirects for the `secure` field. A `302` | 3275 * `30x` code to use when performing redirects for the `secure` field. |
| 3247 * is used by default. | 3276 * Defaults to `302`. |
| 3248 * Possible string values are: | 3277 * Possible string values are: |
| 3249 * - "REDIRECT_HTTP_RESPONSE_CODE_UNSPECIFIED" : A | 3278 * - "REDIRECT_HTTP_RESPONSE_CODE_UNSPECIFIED" : A |
| 3250 * REDIRECT_HTTP_RESPONSE_CODE_UNSPECIFIED. | 3279 * REDIRECT_HTTP_RESPONSE_CODE_UNSPECIFIED. |
| 3251 * - "REDIRECT_HTTP_RESPONSE_CODE_301" : A REDIRECT_HTTP_RESPONSE_CODE_301. | 3280 * - "REDIRECT_HTTP_RESPONSE_CODE_301" : A REDIRECT_HTTP_RESPONSE_CODE_301. |
| 3252 * - "REDIRECT_HTTP_RESPONSE_CODE_302" : A REDIRECT_HTTP_RESPONSE_CODE_302. | 3281 * - "REDIRECT_HTTP_RESPONSE_CODE_302" : A REDIRECT_HTTP_RESPONSE_CODE_302. |
| 3253 * - "REDIRECT_HTTP_RESPONSE_CODE_303" : A REDIRECT_HTTP_RESPONSE_CODE_303. | 3282 * - "REDIRECT_HTTP_RESPONSE_CODE_303" : A REDIRECT_HTTP_RESPONSE_CODE_303. |
| 3254 * - "REDIRECT_HTTP_RESPONSE_CODE_307" : A REDIRECT_HTTP_RESPONSE_CODE_307. | 3283 * - "REDIRECT_HTTP_RESPONSE_CODE_307" : A REDIRECT_HTTP_RESPONSE_CODE_307. |
| 3255 */ | 3284 */ |
| 3256 core.String redirectHttpResponseCode; | 3285 core.String redirectHttpResponseCode; |
| 3257 /** Executes a script to handle the request that matches the URL pattern. */ | 3286 /** Executes a script to handle the request that matches this URL pattern. */ |
| 3258 ScriptHandler script; | 3287 ScriptHandler script; |
| 3259 /** | 3288 /** |
| 3260 * Configures whether security (HTTPS) should be enforced for this URL. | 3289 * Security (HTTPS) enforcement for this URL. |
| 3261 * Possible string values are: | 3290 * Possible string values are: |
| 3262 * - "SECURE_UNSPECIFIED" : A SECURE_UNSPECIFIED. | 3291 * - "SECURE_UNSPECIFIED" : A SECURE_UNSPECIFIED. |
| 3263 * - "SECURE_DEFAULT" : A SECURE_DEFAULT. | 3292 * - "SECURE_DEFAULT" : A SECURE_DEFAULT. |
| 3264 * - "SECURE_NEVER" : A SECURE_NEVER. | 3293 * - "SECURE_NEVER" : A SECURE_NEVER. |
| 3265 * - "SECURE_OPTIONAL" : A SECURE_OPTIONAL. | 3294 * - "SECURE_OPTIONAL" : A SECURE_OPTIONAL. |
| 3266 * - "SECURE_ALWAYS" : A SECURE_ALWAYS. | 3295 * - "SECURE_ALWAYS" : A SECURE_ALWAYS. |
| 3267 */ | 3296 */ |
| 3268 core.String securityLevel; | 3297 core.String securityLevel; |
| 3269 /** | 3298 /** |
| 3270 * Serves the entire contents of a directory as static files. This attribute | 3299 * Serves the entire contents of a directory as static files. This attribute |
| 3271 * is deprecated. You can mimic the behavior of static directories using | 3300 * is deprecated. You can mimic the behavior of static directories using |
| 3272 * static files. | 3301 * static files. |
| 3273 */ | 3302 */ |
| 3274 StaticDirectoryHandler staticDirectory; | 3303 StaticDirectoryHandler staticDirectory; |
| 3275 /** Returns the contents of a file, such as an image, as the response. */ | 3304 /** Returns the contents of a file, such as an image, as the response. */ |
| 3276 StaticFilesHandler staticFiles; | 3305 StaticFilesHandler staticFiles; |
| 3277 /** | 3306 /** |
| 3278 * A URL prefix. This value uses regular expression syntax (and so regexp | 3307 * A URL prefix. Uses regular expression syntax, which means regexp special |
| 3279 * special characters must be escaped), but it should not contain groupings. | 3308 * characters must be escaped, but should not contain groupings. All URLs that |
| 3280 * All URLs that begin with this prefix are handled by this handler, using the | 3309 * begin with this prefix are handled by this handler, using the portion of |
| 3281 * portion of the URL after the prefix as part of the file path. This is | 3310 * the URL after the prefix as part of the file path. |
| 3282 * always required. | |
| 3283 */ | 3311 */ |
| 3284 core.String urlRegex; | 3312 core.String urlRegex; |
| 3285 | 3313 |
| 3286 UrlMap(); | 3314 UrlMap(); |
| 3287 | 3315 |
| 3288 UrlMap.fromJson(core.Map _json) { | 3316 UrlMap.fromJson(core.Map _json) { |
| 3289 if (_json.containsKey("apiEndpoint")) { | 3317 if (_json.containsKey("apiEndpoint")) { |
| 3290 apiEndpoint = new ApiEndpointHandler.fromJson(_json["apiEndpoint"]); | 3318 apiEndpoint = new ApiEndpointHandler.fromJson(_json["apiEndpoint"]); |
| 3291 } | 3319 } |
| 3292 if (_json.containsKey("authFailAction")) { | 3320 if (_json.containsKey("authFailAction")) { |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3342 _json["staticFiles"] = (staticFiles).toJson(); | 3370 _json["staticFiles"] = (staticFiles).toJson(); |
| 3343 } | 3371 } |
| 3344 if (urlRegex != null) { | 3372 if (urlRegex != null) { |
| 3345 _json["urlRegex"] = urlRegex; | 3373 _json["urlRegex"] = urlRegex; |
| 3346 } | 3374 } |
| 3347 return _json; | 3375 return _json; |
| 3348 } | 3376 } |
| 3349 } | 3377 } |
| 3350 | 3378 |
| 3351 /** | 3379 /** |
| 3352 * A Version is a specific set of source code and configuration files deployed | 3380 * A Version resource is a specific set of source code and configuration files |
| 3353 * to a module. | 3381 * that are deployed into a module. |
| 3354 */ | 3382 */ |
| 3355 class Version { | 3383 class Version { |
| 3356 /** | 3384 /** |
| 3357 * Serving configuration for Google Cloud Endpoints. Only returned in `GET` | 3385 * Serving configuration for [Google Cloud |
| 3358 * requests if `view=FULL` is set. May only be set on create requests; once | 3386 * Endpoints](https://cloud.google.com/appengine/docs/python/endpoints/). Only |
| 3359 * created, is immutable. | 3387 * returned in `GET` requests if `view=FULL` is set. |
| 3360 */ | 3388 */ |
| 3361 ApiConfigHandler apiConfig; | 3389 ApiConfigHandler apiConfig; |
| 3362 /** | 3390 /** |
| 3363 * Automatic scaling is the scaling policy that App Engine has used since its | 3391 * Automatic scaling is based on request rate, response latencies, and other |
| 3364 * inception. It is based on request rate, response latencies, and other | |
| 3365 * application metrics. | 3392 * application metrics. |
| 3366 */ | 3393 */ |
| 3367 AutomaticScaling automaticScaling; | 3394 AutomaticScaling automaticScaling; |
| 3368 /** | 3395 /** |
| 3369 * A module with basic scaling will create an instance when the application | 3396 * A module with basic scaling will create an instance when the application |
| 3370 * receives a request. The instance will be turned down when the app becomes | 3397 * receives a request. The instance will be turned down when the app becomes |
| 3371 * idle. Basic scaling is ideal for work that is intermittent or driven by | 3398 * idle. Basic scaling is ideal for work that is intermittent or driven by |
| 3372 * user activity. | 3399 * user activity. |
| 3373 */ | 3400 */ |
| 3374 BasicScaling basicScaling; | 3401 BasicScaling basicScaling; |
| 3375 /** Beta settings supplied to the application via metadata. */ | 3402 /** |
| 3403 * Metadata settings that are supplied to this version to enable beta runtime |
| 3404 * features. |
| 3405 */ |
| 3376 core.Map<core.String, core.String> betaSettings; | 3406 core.Map<core.String, core.String> betaSettings; |
| 3377 /** | 3407 /** Time that this version was created. @OutputOnly */ |
| 3378 * Creation time of this version. This will be between the start and end times | |
| 3379 * of the operation that creates this version. @OutputOnly | |
| 3380 */ | |
| 3381 core.String creationTime; | 3408 core.String creationTime; |
| 3382 /** | 3409 /** |
| 3383 * The length of time a static file served by a static file handler ought to | 3410 * Duration that static files should be cached by web proxies and browsers. |
| 3384 * be cached by web proxies and browsers, if the handler does not specify its | 3411 * Only applicable if the corresponding |
| 3385 * own expiration. Only returned in `GET` requests if `view=FULL` is set. May | 3412 * [StaticFilesHandler](https://cloud.google.com/appengine/docs/admin-api/refe
rence/rest/v1/apps.services.versions#staticfileshandler) |
| 3386 * only be set on create requests; once created, is immutable. | 3413 * does not specify its own expiration time. Only returned in `GET` requests |
| 3414 * if `view=FULL` is set. |
| 3387 */ | 3415 */ |
| 3388 core.String defaultExpiration; | 3416 core.String defaultExpiration; |
| 3389 /** The email address of the user who created this version. @OutputOnly */ | 3417 /** Email address of the user who created this version. @OutputOnly */ |
| 3390 core.String deployer; | 3418 core.String deployer; |
| 3391 /** | 3419 /** |
| 3392 * Code and application artifacts that make up this version. Only returned in | 3420 * Code and application artifacts that make up this version. Only returned in |
| 3393 * `GET` requests if `view=FULL` is set. May only be set on create requests; | 3421 * `GET` requests if `view=FULL` is set. |
| 3394 * once created, is immutable. | |
| 3395 */ | 3422 */ |
| 3396 Deployment deployment; | 3423 Deployment deployment; |
| 3397 /** | 3424 /** |
| 3398 * The App Engine execution environment to use for this version. Default: "1" | 3425 * App Engine execution environment to use for this version. Defaults to `1`. |
| 3399 */ | 3426 */ |
| 3400 core.String env; | 3427 core.String env; |
| 3401 /** | 3428 /** |
| 3402 * Environment variables made available to the application. Only returned in | 3429 * Environment variables made available to the application. Only returned in |
| 3403 * `GET` requests if `view=FULL` is set. May only be set on create requests; | 3430 * `GET` requests if `view=FULL` is set. |
| 3404 * once created, is immutable. | |
| 3405 */ | 3431 */ |
| 3406 core.Map<core.String, core.String> envVariables; | 3432 core.Map<core.String, core.String> envVariables; |
| 3407 /** | 3433 /** |
| 3408 * Custom static error pages instead of these generic error pages, (limit 10 | 3434 * Custom static error pages. Limited to 10KB per page. Only returned in `GET` |
| 3409 * KB/page) Only returned in `GET` requests if `view=FULL` is set. May only be | 3435 * requests if `view=FULL` is set. |
| 3410 * set on create requests; once created, is immutable. | |
| 3411 */ | 3436 */ |
| 3412 core.List<ErrorHandler> errorHandlers; | 3437 core.List<ErrorHandler> errorHandlers; |
| 3413 /** | 3438 /** |
| 3414 * An ordered list of URL Matching patterns that should be applied to incoming | 3439 * An ordered list of URL-matching patterns that should be applied to incoming |
| 3415 * requests. The first matching URL consumes the request, and subsequent | 3440 * requests. The first matching URL handles the request and other request |
| 3416 * handlers are not attempted. Only returned in `GET` requests if `view=FULL` | 3441 * handlers are not attempted. Only returned in `GET` requests if `view=FULL` |
| 3417 * is set. May only be set on create requests; once created, is immutable. | 3442 * is set. |
| 3418 */ | 3443 */ |
| 3419 core.List<UrlMap> handlers; | 3444 core.List<UrlMap> handlers; |
| 3420 /** | 3445 /** |
| 3421 * Configure health checking for the VM instances. Unhealthy VM instances will | 3446 * Configures health checking for VM instances. Unhealthy instances are |
| 3422 * be stopped and replaced with new instances. Only returned in `GET` requests | 3447 * stopped and replaced with new instances. Only applicable for VM runtimes. |
| 3423 * if `view=FULL` is set. May only be set on create requests; once created, is | 3448 * Only returned in `GET` requests if `view=FULL` is set. |
| 3424 * immutable. | |
| 3425 */ | 3449 */ |
| 3426 HealthCheck healthCheck; | 3450 HealthCheck healthCheck; |
| 3427 /** | 3451 /** |
| 3428 * The relative name/path of the Version within the module. Example: "v1". | 3452 * Relative name of the version within the module. Example: `v1`. Version |
| 3429 * Version specifiers can contain lowercase letters, digits, and hyphens. It | 3453 * names can contain only lowercase letters, numbers, or hyphens. Reserved |
| 3430 * cannot begin with the prefix `ah-` and the names `default` and `latest` are | 3454 * names: "default", "latest", and any name with the prefix "ah-". |
| 3431 * reserved and cannot be used. | |
| 3432 */ | 3455 */ |
| 3433 core.String id; | 3456 core.String id; |
| 3434 /** | 3457 /** |
| 3435 * Before an application can receive email or XMPP messages, the application | 3458 * Before an application can receive email or XMPP messages, the application |
| 3436 * must be configured to enable the service. | 3459 * must be configured to enable the service. |
| 3437 */ | 3460 */ |
| 3438 core.List<core.String> inboundServices; | 3461 core.List<core.String> inboundServices; |
| 3439 /** | 3462 /** |
| 3440 * The frontend instance class to use to run this app. Valid values are `[F1, | 3463 * Instance class that is used to run this version. Valid values are: * |
| 3441 * F2, F4, F4_1G]`. Default: "F1" | 3464 * AutomaticScaling: `F1`, `F2`, `F4`, `F4_1G` * ManualScaling or |
| 3465 * BasicScaling: `B1`, `B2`, `B4`, `B8`, `B4_1G` Defaults to `F1` for |
| 3466 * AutomaticScaling and `B1` for ManualScaling or BasicScaling. |
| 3442 */ | 3467 */ |
| 3443 core.String instanceClass; | 3468 core.String instanceClass; |
| 3444 /** | 3469 /** |
| 3445 * Configuration for Python runtime third-party libraries required by the | 3470 * Configuration for third-party Python runtime libraries required by the |
| 3446 * application. Only returned in `GET` requests if `view=FULL` is set. May | 3471 * application. Only returned in `GET` requests if `view=FULL` is set. |
| 3447 * only be set on create requests; once created, is immutable. | |
| 3448 */ | 3472 */ |
| 3449 core.List<Library> libraries; | 3473 core.List<Library> libraries; |
| 3450 /** | 3474 /** |
| 3451 * A module with manual scaling runs continuously, allowing you to perform | 3475 * A module with manual scaling runs continuously, allowing you to perform |
| 3452 * complex initialization and rely on the state of its memory over time. | 3476 * complex initialization and rely on the state of its memory over time. |
| 3453 */ | 3477 */ |
| 3454 ManualScaling manualScaling; | 3478 ManualScaling manualScaling; |
| 3455 /** | 3479 /** |
| 3456 * The full path to the Version resource in the API. Example: | 3480 * Full path to the Version resource in the API. Example: |
| 3457 * "apps/myapp/modules/default/versions/v1". @OutputOnly | 3481 * `apps/myapp/modules/default/versions/v1`. @OutputOnly |
| 3458 */ | 3482 */ |
| 3459 core.String name; | 3483 core.String name; |
| 3460 /** Used to specify extra network settings (for VM runtimes only). */ | 3484 /** Extra network settings. Only applicable for VM runtimes. */ |
| 3461 Network network; | 3485 Network network; |
| 3462 /** | 3486 /** |
| 3463 * Go only. Files that match this pattern will not be built into the app. May | 3487 * Files that match this pattern will not be built into this version. Only |
| 3464 * only be set on create requests. | 3488 * applicable for Go runtimes. Only returned in `GET` requests if `view=FULL` |
| 3489 * is set. |
| 3465 */ | 3490 */ |
| 3466 core.String nobuildFilesRegex; | 3491 core.String nobuildFilesRegex; |
| 3467 /** | 3492 /** Machine resources for this version. Only applicable for VM runtimes. */ |
| 3468 * Used to specify how many machine resources an app version needs (for VM | |
| 3469 * runtimes only). | |
| 3470 */ | |
| 3471 Resources resources; | 3493 Resources resources; |
| 3472 /** The desired runtime. Values can include python27, java7, go, etc. */ | 3494 /** Desired runtime. Example: `python27`. */ |
| 3473 core.String runtime; | 3495 core.String runtime; |
| 3474 /** | 3496 /** |
| 3475 * The current serving status of this version. Only `SERVING` versions will | 3497 * Current serving status of this version. Only the versions with a `SERVING` |
| 3476 * have instances created or billed for. If this field is unset when a version | 3498 * status create instances and can be billed. `SERVING_STATUS_UNSPECIFIED` is |
| 3477 * is created, `SERVING` status will be assumed. It is an error to explicitly | 3499 * an invalid value. Defaults to `SERVING`. |
| 3478 * set this field to `SERVING_STATUS_UNSPECIFIED`. | |
| 3479 * Possible string values are: | 3500 * Possible string values are: |
| 3480 * - "SERVING_STATUS_UNSPECIFIED" : A SERVING_STATUS_UNSPECIFIED. | 3501 * - "SERVING_STATUS_UNSPECIFIED" : A SERVING_STATUS_UNSPECIFIED. |
| 3481 * - "SERVING" : A SERVING. | 3502 * - "SERVING" : A SERVING. |
| 3482 * - "STOPPED" : A STOPPED. | 3503 * - "STOPPED" : A STOPPED. |
| 3483 */ | 3504 */ |
| 3484 core.String servingStatus; | 3505 core.String servingStatus; |
| 3485 /** If true, multiple requests can be dispatched to the app at once. */ | 3506 /** Whether multiple requests can be dispatched to this version at once. */ |
| 3486 core.bool threadsafe; | 3507 core.bool threadsafe; |
| 3487 /** Whether to deploy this app in a VM container. */ | 3508 /** Whether to deploy this version in a container on a virtual machine. */ |
| 3488 core.bool vm; | 3509 core.bool vm; |
| 3489 | 3510 |
| 3490 Version(); | 3511 Version(); |
| 3491 | 3512 |
| 3492 Version.fromJson(core.Map _json) { | 3513 Version.fromJson(core.Map _json) { |
| 3493 if (_json.containsKey("apiConfig")) { | 3514 if (_json.containsKey("apiConfig")) { |
| 3494 apiConfig = new ApiConfigHandler.fromJson(_json["apiConfig"]); | 3515 apiConfig = new ApiConfigHandler.fromJson(_json["apiConfig"]); |
| 3495 } | 3516 } |
| 3496 if (_json.containsKey("automaticScaling")) { | 3517 if (_json.containsKey("automaticScaling")) { |
| 3497 automaticScaling = new AutomaticScaling.fromJson(_json["automaticScaling"]
); | 3518 automaticScaling = new AutomaticScaling.fromJson(_json["automaticScaling"]
); |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3646 } | 3667 } |
| 3647 if (threadsafe != null) { | 3668 if (threadsafe != null) { |
| 3648 _json["threadsafe"] = threadsafe; | 3669 _json["threadsafe"] = threadsafe; |
| 3649 } | 3670 } |
| 3650 if (vm != null) { | 3671 if (vm != null) { |
| 3651 _json["vm"] = vm; | 3672 _json["vm"] = vm; |
| 3652 } | 3673 } |
| 3653 return _json; | 3674 return _json; |
| 3654 } | 3675 } |
| 3655 } | 3676 } |
| OLD | NEW |