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; |
11 | 11 |
12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show | 12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show |
13 ApiRequestError, DetailedApiRequestError; | 13 ApiRequestError, DetailedApiRequestError; |
14 | 14 |
15 const core.String USER_AGENT = 'dart-api-client appengine/v1beta4'; | 15 const core.String USER_AGENT = 'dart-api-client appengine/v1beta4'; |
16 | 16 |
17 /** Provisions and manages App Engine applications. */ | 17 /** |
| 18 * The App Engine Admin API enables developers to provision and manage their App |
| 19 * Engine applications. |
| 20 */ |
18 class AppengineApi { | 21 class AppengineApi { |
19 /** View and manage your applications deployed on Google App Engine */ | 22 /** View and manage your applications deployed on Google App Engine */ |
20 static const AppengineAdminScope = "https://www.googleapis.com/auth/appengine.
admin"; | 23 static const AppengineAdminScope = "https://www.googleapis.com/auth/appengine.
admin"; |
21 | 24 |
22 /** View and manage your data across Google Cloud Platform services */ | 25 /** View and manage your data across Google Cloud Platform services */ |
23 static const CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platf
orm"; | 26 static const CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platf
orm"; |
24 | 27 |
25 /** View your data across Google Cloud Platform services */ | 28 /** View your data across Google Cloud Platform services */ |
26 static const CloudPlatformReadOnlyScope = "https://www.googleapis.com/auth/clo
ud-platform.read-only"; | 29 static const CloudPlatformReadOnlyScope = "https://www.googleapis.com/auth/clo
ud-platform.read-only"; |
27 | 30 |
(...skipping 12 matching lines...) Expand all Loading... |
40 | 43 |
41 AppsLocationsResourceApi get locations => new AppsLocationsResourceApi(_reques
ter); | 44 AppsLocationsResourceApi get locations => new AppsLocationsResourceApi(_reques
ter); |
42 AppsModulesResourceApi get modules => new AppsModulesResourceApi(_requester); | 45 AppsModulesResourceApi get modules => new AppsModulesResourceApi(_requester); |
43 AppsOperationsResourceApi get operations => new AppsOperationsResourceApi(_req
uester); | 46 AppsOperationsResourceApi get operations => new AppsOperationsResourceApi(_req
uester); |
44 | 47 |
45 AppsResourceApi(commons.ApiRequester client) : | 48 AppsResourceApi(commons.ApiRequester client) : |
46 _requester = client; | 49 _requester = client; |
47 | 50 |
48 /** | 51 /** |
49 * Creates an App Engine application for a Google Cloud Platform project. | 52 * Creates an App Engine application for a Google Cloud Platform project. |
50 * Required fields: id - The ID of the target Cloud Platform project. location | 53 * Required fields: |
51 * - The region (https://cloud.google.com/appengine/docs/locations) where you | 54 * id - The ID of the target Cloud Platform project. |
52 * want the App Engine application located.For more information about App | 55 * location - The region (https://cloud.google.com/appengine/docs/locations) |
53 * Engine applications, see Managing Projects, Applications, and Billing | 56 * where you want the App Engine application located.For more information |
54 * (https://cloud.google.com/appengine/docs/python/console/). | 57 * about App Engine applications, see Managing Projects, Applications, and |
| 58 * Billing (https://cloud.google.com/appengine/docs/python/console/). |
55 * | 59 * |
56 * [request] - The metadata request object. | 60 * [request] - The metadata request object. |
57 * | 61 * |
58 * Request parameters: | 62 * Request parameters: |
59 * | 63 * |
60 * Completes with a [Operation]. | 64 * Completes with a [Operation]. |
61 * | 65 * |
62 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 66 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
63 * error. | 67 * error. |
64 * | 68 * |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 body: _body, | 137 body: _body, |
134 queryParams: _queryParams, | 138 queryParams: _queryParams, |
135 uploadOptions: _uploadOptions, | 139 uploadOptions: _uploadOptions, |
136 uploadMedia: _uploadMedia, | 140 uploadMedia: _uploadMedia, |
137 downloadOptions: _downloadOptions); | 141 downloadOptions: _downloadOptions); |
138 return _response.then((data) => new Application.fromJson(data)); | 142 return _response.then((data) => new Application.fromJson(data)); |
139 } | 143 } |
140 | 144 |
141 /** | 145 /** |
142 * Updates the specified Application resource. You can update the following | 146 * Updates the specified Application resource. You can update the following |
143 * fields: auth_domain | 147 * fields: |
| 148 * auth_domain |
144 * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta4/a
pps#Application.FIELDS.auth_domain) | 149 * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta4/a
pps#Application.FIELDS.auth_domain) |
145 * default_cookie_expiration | 150 * default_cookie_expiration |
146 * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta4/a
pps#Application.FIELDS.default_cookie_expiration) | 151 * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta4/a
pps#Application.FIELDS.default_cookie_expiration) |
147 * | 152 * |
148 * [request] - The metadata request object. | 153 * [request] - The metadata request object. |
149 * | 154 * |
150 * Request parameters: | 155 * Request parameters: |
151 * | 156 * |
152 * [appsId] - Part of `name`. Name of the Application resource to update. | 157 * [appsId] - Part of `name`. Name of the Application resource to update. |
153 * Example: apps/myapp. | 158 * Example: apps/myapp. |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
246 } | 251 } |
247 | 252 |
248 /** | 253 /** |
249 * Lists information about the supported locations for this service. | 254 * Lists information about the supported locations for this service. |
250 * | 255 * |
251 * Request parameters: | 256 * Request parameters: |
252 * | 257 * |
253 * [appsId] - Part of `name`. The resource that owns the locations collection, | 258 * [appsId] - Part of `name`. The resource that owns the locations collection, |
254 * if applicable. | 259 * if applicable. |
255 * | 260 * |
256 * [filter] - The standard list filter. | 261 * [pageToken] - The standard list page token. |
257 * | 262 * |
258 * [pageSize] - The standard list page size. | 263 * [pageSize] - The standard list page size. |
259 * | 264 * |
260 * [pageToken] - The standard list page token. | 265 * [filter] - The standard list filter. |
261 * | 266 * |
262 * Completes with a [ListLocationsResponse]. | 267 * Completes with a [ListLocationsResponse]. |
263 * | 268 * |
264 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 269 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
265 * error. | 270 * error. |
266 * | 271 * |
267 * If the used [http.Client] completes with an error when making a REST call, | 272 * If the used [http.Client] completes with an error when making a REST call, |
268 * this method will complete with the same error. | 273 * this method will complete with the same error. |
269 */ | 274 */ |
270 async.Future<ListLocationsResponse> list(core.String appsId, {core.String filt
er, core.int pageSize, core.String pageToken}) { | 275 async.Future<ListLocationsResponse> list(core.String appsId, {core.String page
Token, core.int pageSize, core.String filter}) { |
271 var _url = null; | 276 var _url = null; |
272 var _queryParams = new core.Map(); | 277 var _queryParams = new core.Map(); |
273 var _uploadMedia = null; | 278 var _uploadMedia = null; |
274 var _uploadOptions = null; | 279 var _uploadOptions = null; |
275 var _downloadOptions = commons.DownloadOptions.Metadata; | 280 var _downloadOptions = commons.DownloadOptions.Metadata; |
276 var _body = null; | 281 var _body = null; |
277 | 282 |
278 if (appsId == null) { | 283 if (appsId == null) { |
279 throw new core.ArgumentError("Parameter appsId is required."); | 284 throw new core.ArgumentError("Parameter appsId is required."); |
280 } | 285 } |
| 286 if (pageToken != null) { |
| 287 _queryParams["pageToken"] = [pageToken]; |
| 288 } |
| 289 if (pageSize != null) { |
| 290 _queryParams["pageSize"] = ["${pageSize}"]; |
| 291 } |
281 if (filter != null) { | 292 if (filter != null) { |
282 _queryParams["filter"] = [filter]; | 293 _queryParams["filter"] = [filter]; |
283 } | 294 } |
284 if (pageSize != null) { | |
285 _queryParams["pageSize"] = ["${pageSize}"]; | |
286 } | |
287 if (pageToken != null) { | |
288 _queryParams["pageToken"] = [pageToken]; | |
289 } | |
290 | 295 |
291 _url = 'v1beta4/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/locati
ons'; | 296 _url = 'v1beta4/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/locati
ons'; |
292 | 297 |
293 var _response = _requester.request(_url, | 298 var _response = _requester.request(_url, |
294 "GET", | 299 "GET", |
295 body: _body, | 300 body: _body, |
296 queryParams: _queryParams, | 301 queryParams: _queryParams, |
297 uploadOptions: _uploadOptions, | 302 uploadOptions: _uploadOptions, |
298 uploadMedia: _uploadMedia, | 303 uploadMedia: _uploadMedia, |
299 downloadOptions: _downloadOptions); | 304 downloadOptions: _downloadOptions); |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
402 } | 407 } |
403 | 408 |
404 /** | 409 /** |
405 * Lists all the modules in the application. | 410 * Lists all the modules in the application. |
406 * | 411 * |
407 * Request parameters: | 412 * Request parameters: |
408 * | 413 * |
409 * [appsId] - Part of `name`. Name of the resource requested. Example: | 414 * [appsId] - Part of `name`. Name of the resource requested. Example: |
410 * apps/myapp. | 415 * apps/myapp. |
411 * | 416 * |
| 417 * [pageToken] - Continuation token for fetching the next page of results. |
| 418 * |
412 * [pageSize] - Maximum results to return per page. | 419 * [pageSize] - Maximum results to return per page. |
413 * | 420 * |
414 * [pageToken] - Continuation token for fetching the next page of results. | |
415 * | |
416 * Completes with a [ListModulesResponse]. | 421 * Completes with a [ListModulesResponse]. |
417 * | 422 * |
418 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 423 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
419 * error. | 424 * error. |
420 * | 425 * |
421 * 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, |
422 * this method will complete with the same error. | 427 * this method will complete with the same error. |
423 */ | 428 */ |
424 async.Future<ListModulesResponse> list(core.String appsId, {core.int pageSize,
core.String pageToken}) { | 429 async.Future<ListModulesResponse> list(core.String appsId, {core.String pageTo
ken, core.int pageSize}) { |
425 var _url = null; | 430 var _url = null; |
426 var _queryParams = new core.Map(); | 431 var _queryParams = new core.Map(); |
427 var _uploadMedia = null; | 432 var _uploadMedia = null; |
428 var _uploadOptions = null; | 433 var _uploadOptions = null; |
429 var _downloadOptions = commons.DownloadOptions.Metadata; | 434 var _downloadOptions = commons.DownloadOptions.Metadata; |
430 var _body = null; | 435 var _body = null; |
431 | 436 |
432 if (appsId == null) { | 437 if (appsId == null) { |
433 throw new core.ArgumentError("Parameter appsId is required."); | 438 throw new core.ArgumentError("Parameter appsId is required."); |
434 } | 439 } |
| 440 if (pageToken != null) { |
| 441 _queryParams["pageToken"] = [pageToken]; |
| 442 } |
435 if (pageSize != null) { | 443 if (pageSize != null) { |
436 _queryParams["pageSize"] = ["${pageSize}"]; | 444 _queryParams["pageSize"] = ["${pageSize}"]; |
437 } | 445 } |
438 if (pageToken != null) { | |
439 _queryParams["pageToken"] = [pageToken]; | |
440 } | |
441 | 446 |
442 _url = 'v1beta4/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/module
s'; | 447 _url = 'v1beta4/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/module
s'; |
443 | 448 |
444 var _response = _requester.request(_url, | 449 var _response = _requester.request(_url, |
445 "GET", | 450 "GET", |
446 body: _body, | 451 body: _body, |
447 queryParams: _queryParams, | 452 queryParams: _queryParams, |
448 uploadOptions: _uploadOptions, | 453 uploadOptions: _uploadOptions, |
449 uploadMedia: _uploadMedia, | 454 uploadMedia: _uploadMedia, |
450 downloadOptions: _downloadOptions); | 455 downloadOptions: _downloadOptions); |
451 return _response.then((data) => new ListModulesResponse.fromJson(data)); | 456 return _response.then((data) => new ListModulesResponse.fromJson(data)); |
452 } | 457 } |
453 | 458 |
454 /** | 459 /** |
455 * Updates the configuration of the specified module. | 460 * Updates the configuration of the specified module. |
456 * | 461 * |
457 * [request] - The metadata request object. | 462 * [request] - The metadata request object. |
458 * | 463 * |
459 * Request parameters: | 464 * Request parameters: |
460 * | 465 * |
461 * [appsId] - Part of `name`. Name of the resource to update. Example: | 466 * [appsId] - Part of `name`. Name of the resource to update. Example: |
462 * apps/myapp/modules/default. | 467 * apps/myapp/modules/default. |
463 * | 468 * |
464 * [modulesId] - Part of `name`. See documentation of `appsId`. | 469 * [modulesId] - Part of `name`. See documentation of `appsId`. |
465 * | 470 * |
466 * [mask] - Standard field mask for the set of fields to be updated. | |
467 * | |
468 * [migrateTraffic] - Set to true to gradually shift traffic to one or more | 471 * [migrateTraffic] - Set to true to gradually shift traffic to one or more |
469 * versions that you specify. By default, traffic is shifted immediately. For | 472 * versions that you specify. By default, traffic is shifted immediately. For |
470 * gradual traffic migration, the target versions must be located within | 473 * gradual traffic migration, the target versions must be located within |
471 * instances that are configured for both warmup requests | 474 * instances that are configured for both warmup requests |
472 * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta4/a
pps.modules.versions#inboundservicetype) | 475 * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta4/a
pps.modules.versions#inboundservicetype) |
473 * and automatic scaling | 476 * and automatic scaling |
474 * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta4/a
pps.modules.versions#automaticscaling). | 477 * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta4/a
pps.modules.versions#automaticscaling). |
475 * You must specify the shardBy | 478 * You must specify the shardBy |
476 * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta4/a
pps.modules#shardby) | 479 * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta4/a
pps.modules#shardby) |
477 * field in the Module resource. Gradual traffic migration is not supported in | 480 * field in the Module resource. Gradual traffic migration is not supported in |
478 * the App Engine flexible environment. For examples, see Migrating and | 481 * the App Engine flexible environment. For examples, see Migrating and |
479 * Splitting Traffic | 482 * Splitting Traffic |
480 * (https://cloud.google.com/appengine/docs/admin-api/migrating-splitting-traf
fic). | 483 * (https://cloud.google.com/appengine/docs/admin-api/migrating-splitting-traf
fic). |
481 * | 484 * |
| 485 * [mask] - Standard field mask for the set of fields to be updated. |
| 486 * |
482 * Completes with a [Operation]. | 487 * Completes with a [Operation]. |
483 * | 488 * |
484 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 489 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
485 * error. | 490 * error. |
486 * | 491 * |
487 * If the used [http.Client] completes with an error when making a REST call, | 492 * If the used [http.Client] completes with an error when making a REST call, |
488 * this method will complete with the same error. | 493 * this method will complete with the same error. |
489 */ | 494 */ |
490 async.Future<Operation> patch(Module request, core.String appsId, core.String
modulesId, {core.String mask, core.bool migrateTraffic}) { | 495 async.Future<Operation> patch(Module request, core.String appsId, core.String
modulesId, {core.bool migrateTraffic, core.String mask}) { |
491 var _url = null; | 496 var _url = null; |
492 var _queryParams = new core.Map(); | 497 var _queryParams = new core.Map(); |
493 var _uploadMedia = null; | 498 var _uploadMedia = null; |
494 var _uploadOptions = null; | 499 var _uploadOptions = null; |
495 var _downloadOptions = commons.DownloadOptions.Metadata; | 500 var _downloadOptions = commons.DownloadOptions.Metadata; |
496 var _body = null; | 501 var _body = null; |
497 | 502 |
498 if (request != null) { | 503 if (request != null) { |
499 _body = convert.JSON.encode((request).toJson()); | 504 _body = convert.JSON.encode((request).toJson()); |
500 } | 505 } |
501 if (appsId == null) { | 506 if (appsId == null) { |
502 throw new core.ArgumentError("Parameter appsId is required."); | 507 throw new core.ArgumentError("Parameter appsId is required."); |
503 } | 508 } |
504 if (modulesId == null) { | 509 if (modulesId == null) { |
505 throw new core.ArgumentError("Parameter modulesId is required."); | 510 throw new core.ArgumentError("Parameter modulesId is required."); |
506 } | 511 } |
| 512 if (migrateTraffic != null) { |
| 513 _queryParams["migrateTraffic"] = ["${migrateTraffic}"]; |
| 514 } |
507 if (mask != null) { | 515 if (mask != null) { |
508 _queryParams["mask"] = [mask]; | 516 _queryParams["mask"] = [mask]; |
509 } | 517 } |
510 if (migrateTraffic != null) { | |
511 _queryParams["migrateTraffic"] = ["${migrateTraffic}"]; | |
512 } | |
513 | 518 |
514 _url = 'v1beta4/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/module
s/' + commons.Escaper.ecapeVariable('$modulesId'); | 519 _url = 'v1beta4/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/module
s/' + commons.Escaper.ecapeVariable('$modulesId'); |
515 | 520 |
516 var _response = _requester.request(_url, | 521 var _response = _requester.request(_url, |
517 "PATCH", | 522 "PATCH", |
518 body: _body, | 523 body: _body, |
519 queryParams: _queryParams, | 524 queryParams: _queryParams, |
520 uploadOptions: _uploadOptions, | 525 uploadOptions: _uploadOptions, |
521 uploadMedia: _uploadMedia, | 526 uploadMedia: _uploadMedia, |
522 downloadOptions: _downloadOptions); | 527 downloadOptions: _downloadOptions); |
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
696 /** | 701 /** |
697 * Lists the versions of a module. | 702 * Lists the versions of a module. |
698 * | 703 * |
699 * Request parameters: | 704 * Request parameters: |
700 * | 705 * |
701 * [appsId] - Part of `name`. Name of the resource requested. Example: | 706 * [appsId] - Part of `name`. Name of the resource requested. Example: |
702 * apps/myapp/modules/default. | 707 * apps/myapp/modules/default. |
703 * | 708 * |
704 * [modulesId] - Part of `name`. See documentation of `appsId`. | 709 * [modulesId] - Part of `name`. See documentation of `appsId`. |
705 * | 710 * |
| 711 * [pageToken] - Continuation token for fetching the next page of results. |
| 712 * |
| 713 * [pageSize] - Maximum results to return per page. |
| 714 * |
706 * [view] - Controls the set of fields returned in the List response. | 715 * [view] - Controls the set of fields returned in the List response. |
707 * Possible string values are: | 716 * Possible string values are: |
708 * - "BASIC" : A BASIC. | 717 * - "BASIC" : A BASIC. |
709 * - "FULL" : A FULL. | 718 * - "FULL" : A FULL. |
710 * | 719 * |
711 * [pageSize] - Maximum results to return per page. | |
712 * | |
713 * [pageToken] - Continuation token for fetching the next page of results. | |
714 * | |
715 * Completes with a [ListVersionsResponse]. | 720 * Completes with a [ListVersionsResponse]. |
716 * | 721 * |
717 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 722 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
718 * error. | 723 * error. |
719 * | 724 * |
720 * If the used [http.Client] completes with an error when making a REST call, | 725 * If the used [http.Client] completes with an error when making a REST call, |
721 * this method will complete with the same error. | 726 * this method will complete with the same error. |
722 */ | 727 */ |
723 async.Future<ListVersionsResponse> list(core.String appsId, core.String module
sId, {core.String view, core.int pageSize, core.String pageToken}) { | 728 async.Future<ListVersionsResponse> list(core.String appsId, core.String module
sId, {core.String pageToken, core.int pageSize, core.String view}) { |
724 var _url = null; | 729 var _url = null; |
725 var _queryParams = new core.Map(); | 730 var _queryParams = new core.Map(); |
726 var _uploadMedia = null; | 731 var _uploadMedia = null; |
727 var _uploadOptions = null; | 732 var _uploadOptions = null; |
728 var _downloadOptions = commons.DownloadOptions.Metadata; | 733 var _downloadOptions = commons.DownloadOptions.Metadata; |
729 var _body = null; | 734 var _body = null; |
730 | 735 |
731 if (appsId == null) { | 736 if (appsId == null) { |
732 throw new core.ArgumentError("Parameter appsId is required."); | 737 throw new core.ArgumentError("Parameter appsId is required."); |
733 } | 738 } |
734 if (modulesId == null) { | 739 if (modulesId == null) { |
735 throw new core.ArgumentError("Parameter modulesId is required."); | 740 throw new core.ArgumentError("Parameter modulesId is required."); |
736 } | 741 } |
| 742 if (pageToken != null) { |
| 743 _queryParams["pageToken"] = [pageToken]; |
| 744 } |
| 745 if (pageSize != null) { |
| 746 _queryParams["pageSize"] = ["${pageSize}"]; |
| 747 } |
737 if (view != null) { | 748 if (view != null) { |
738 _queryParams["view"] = [view]; | 749 _queryParams["view"] = [view]; |
739 } | 750 } |
740 if (pageSize != null) { | |
741 _queryParams["pageSize"] = ["${pageSize}"]; | |
742 } | |
743 if (pageToken != null) { | |
744 _queryParams["pageToken"] = [pageToken]; | |
745 } | |
746 | 751 |
747 _url = 'v1beta4/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/module
s/' + commons.Escaper.ecapeVariable('$modulesId') + '/versions'; | 752 _url = 'v1beta4/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/module
s/' + commons.Escaper.ecapeVariable('$modulesId') + '/versions'; |
748 | 753 |
749 var _response = _requester.request(_url, | 754 var _response = _requester.request(_url, |
750 "GET", | 755 "GET", |
751 body: _body, | 756 body: _body, |
752 queryParams: _queryParams, | 757 queryParams: _queryParams, |
753 uploadOptions: _uploadOptions, | 758 uploadOptions: _uploadOptions, |
754 uploadMedia: _uploadMedia, | 759 uploadMedia: _uploadMedia, |
755 downloadOptions: _downloadOptions); | 760 downloadOptions: _downloadOptions); |
756 return _response.then((data) => new ListVersionsResponse.fromJson(data)); | 761 return _response.then((data) => new ListVersionsResponse.fromJson(data)); |
757 } | 762 } |
758 | 763 |
759 /** | 764 /** |
760 * Updates the specified Version resource. You can specify the following | 765 * Updates the specified Version resource. You can specify the following |
761 * fields depending on the App Engine environment and type of scaling that the | 766 * fields depending on the App Engine environment and type of scaling that the |
762 * version resource uses: serving_status | 767 * version resource uses: |
| 768 * serving_status |
763 * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta4/a
pps.modules.versions#Version.FIELDS.serving_status): | 769 * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta4/a
pps.modules.versions#Version.FIELDS.serving_status): |
764 * For Version resources that use basic scaling, manual scaling, or run in the | 770 * For Version resources that use basic scaling, manual scaling, or run in |
765 * App Engine flexible environment. instance_class | 771 * the App Engine flexible environment. |
| 772 * instance_class |
766 * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta4/a
pps.modules.versions#Version.FIELDS.instance_class): | 773 * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta4/a
pps.modules.versions#Version.FIELDS.instance_class): |
767 * For Version resources that run in the App Engine standard environment. | 774 * For Version resources that run in the App Engine standard environment. |
768 * automatic_scaling.min_idle_instances | 775 * automatic_scaling.min_idle_instances |
769 * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta4/a
pps.modules.versions#Version.FIELDS.automatic_scaling): | 776 * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta4/a
pps.modules.versions#Version.FIELDS.automatic_scaling): |
770 * For Version resources that use automatic scaling and run in the App Engine | 777 * For Version resources that use automatic scaling and run in the App Engine |
771 * standard environment. automatic_scaling.max_idle_instances | 778 * standard environment. |
| 779 * automatic_scaling.max_idle_instances |
772 * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta4/a
pps.modules.versions#Version.FIELDS.automatic_scaling): | 780 * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta4/a
pps.modules.versions#Version.FIELDS.automatic_scaling): |
773 * For Version resources that use automatic scaling and run in the App Engine | 781 * For Version resources that use automatic scaling and run in the App Engine |
774 * standard environment. | 782 * standard environment. |
775 * | 783 * |
776 * [request] - The metadata request object. | 784 * [request] - The metadata request object. |
777 * | 785 * |
778 * Request parameters: | 786 * Request parameters: |
779 * | 787 * |
780 * [appsId] - Part of `name`. Name of the resource to update. Example: | 788 * [appsId] - Part of `name`. Name of the resource to update. Example: |
781 * apps/myapp/modules/default/versions/1. | 789 * apps/myapp/modules/default/versions/1. |
782 * | 790 * |
783 * [modulesId] - Part of `name`. See documentation of `appsId`. | 791 * [modulesId] - Part of `name`. See documentation of `appsId`. |
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1021 * | 1029 * |
1022 * Request parameters: | 1030 * Request parameters: |
1023 * | 1031 * |
1024 * [appsId] - Part of `name`. Name of the resource requested. Example: | 1032 * [appsId] - Part of `name`. Name of the resource requested. Example: |
1025 * apps/myapp/modules/default/versions/v1. | 1033 * apps/myapp/modules/default/versions/v1. |
1026 * | 1034 * |
1027 * [modulesId] - Part of `name`. See documentation of `appsId`. | 1035 * [modulesId] - Part of `name`. See documentation of `appsId`. |
1028 * | 1036 * |
1029 * [versionsId] - Part of `name`. See documentation of `appsId`. | 1037 * [versionsId] - Part of `name`. See documentation of `appsId`. |
1030 * | 1038 * |
| 1039 * [pageToken] - Continuation token for fetching the next page of results. |
| 1040 * |
1031 * [pageSize] - Maximum results to return per page. | 1041 * [pageSize] - Maximum results to return per page. |
1032 * | 1042 * |
1033 * [pageToken] - Continuation token for fetching the next page of results. | |
1034 * | |
1035 * Completes with a [ListInstancesResponse]. | 1043 * Completes with a [ListInstancesResponse]. |
1036 * | 1044 * |
1037 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1045 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
1038 * error. | 1046 * error. |
1039 * | 1047 * |
1040 * If the used [http.Client] completes with an error when making a REST call, | 1048 * If the used [http.Client] completes with an error when making a REST call, |
1041 * this method will complete with the same error. | 1049 * this method will complete with the same error. |
1042 */ | 1050 */ |
1043 async.Future<ListInstancesResponse> list(core.String appsId, core.String modul
esId, core.String versionsId, {core.int pageSize, core.String pageToken}) { | 1051 async.Future<ListInstancesResponse> list(core.String appsId, core.String modul
esId, core.String versionsId, {core.String pageToken, core.int pageSize}) { |
1044 var _url = null; | 1052 var _url = null; |
1045 var _queryParams = new core.Map(); | 1053 var _queryParams = new core.Map(); |
1046 var _uploadMedia = null; | 1054 var _uploadMedia = null; |
1047 var _uploadOptions = null; | 1055 var _uploadOptions = null; |
1048 var _downloadOptions = commons.DownloadOptions.Metadata; | 1056 var _downloadOptions = commons.DownloadOptions.Metadata; |
1049 var _body = null; | 1057 var _body = null; |
1050 | 1058 |
1051 if (appsId == null) { | 1059 if (appsId == null) { |
1052 throw new core.ArgumentError("Parameter appsId is required."); | 1060 throw new core.ArgumentError("Parameter appsId is required."); |
1053 } | 1061 } |
1054 if (modulesId == null) { | 1062 if (modulesId == null) { |
1055 throw new core.ArgumentError("Parameter modulesId is required."); | 1063 throw new core.ArgumentError("Parameter modulesId is required."); |
1056 } | 1064 } |
1057 if (versionsId == null) { | 1065 if (versionsId == null) { |
1058 throw new core.ArgumentError("Parameter versionsId is required."); | 1066 throw new core.ArgumentError("Parameter versionsId is required."); |
1059 } | 1067 } |
| 1068 if (pageToken != null) { |
| 1069 _queryParams["pageToken"] = [pageToken]; |
| 1070 } |
1060 if (pageSize != null) { | 1071 if (pageSize != null) { |
1061 _queryParams["pageSize"] = ["${pageSize}"]; | 1072 _queryParams["pageSize"] = ["${pageSize}"]; |
1062 } | 1073 } |
1063 if (pageToken != null) { | |
1064 _queryParams["pageToken"] = [pageToken]; | |
1065 } | |
1066 | 1074 |
1067 _url = 'v1beta4/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/module
s/' + commons.Escaper.ecapeVariable('$modulesId') + '/versions/' + commons.Escap
er.ecapeVariable('$versionsId') + '/instances'; | 1075 _url = 'v1beta4/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/module
s/' + commons.Escaper.ecapeVariable('$modulesId') + '/versions/' + commons.Escap
er.ecapeVariable('$versionsId') + '/instances'; |
1068 | 1076 |
1069 var _response = _requester.request(_url, | 1077 var _response = _requester.request(_url, |
1070 "GET", | 1078 "GET", |
1071 body: _body, | 1079 body: _body, |
1072 queryParams: _queryParams, | 1080 queryParams: _queryParams, |
1073 uploadOptions: _uploadOptions, | 1081 uploadOptions: _uploadOptions, |
1074 uploadMedia: _uploadMedia, | 1082 uploadMedia: _uploadMedia, |
1075 downloadOptions: _downloadOptions); | 1083 downloadOptions: _downloadOptions); |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1136 * server doesn't support this method, it returns UNIMPLEMENTED.NOTE: the name | 1144 * server doesn't support this method, it returns UNIMPLEMENTED.NOTE: the name |
1137 * binding below allows API services to override the binding to use different | 1145 * binding below allows API services to override the binding to use different |
1138 * resource name schemes, such as users / * /operations. | 1146 * resource name schemes, such as users / * /operations. |
1139 * | 1147 * |
1140 * Request parameters: | 1148 * Request parameters: |
1141 * | 1149 * |
1142 * [appsId] - Part of `name`. The name of the operation collection. | 1150 * [appsId] - Part of `name`. The name of the operation collection. |
1143 * | 1151 * |
1144 * [filter] - The standard list filter. | 1152 * [filter] - The standard list filter. |
1145 * | 1153 * |
| 1154 * [pageToken] - The standard list page token. |
| 1155 * |
1146 * [pageSize] - The standard list page size. | 1156 * [pageSize] - The standard list page size. |
1147 * | 1157 * |
1148 * [pageToken] - The standard list page token. | |
1149 * | |
1150 * Completes with a [ListOperationsResponse]. | 1158 * Completes with a [ListOperationsResponse]. |
1151 * | 1159 * |
1152 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1160 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
1153 * error. | 1161 * error. |
1154 * | 1162 * |
1155 * If the used [http.Client] completes with an error when making a REST call, | 1163 * If the used [http.Client] completes with an error when making a REST call, |
1156 * this method will complete with the same error. | 1164 * this method will complete with the same error. |
1157 */ | 1165 */ |
1158 async.Future<ListOperationsResponse> list(core.String appsId, {core.String fil
ter, core.int pageSize, core.String pageToken}) { | 1166 async.Future<ListOperationsResponse> list(core.String appsId, {core.String fil
ter, core.String pageToken, core.int pageSize}) { |
1159 var _url = null; | 1167 var _url = null; |
1160 var _queryParams = new core.Map(); | 1168 var _queryParams = new core.Map(); |
1161 var _uploadMedia = null; | 1169 var _uploadMedia = null; |
1162 var _uploadOptions = null; | 1170 var _uploadOptions = null; |
1163 var _downloadOptions = commons.DownloadOptions.Metadata; | 1171 var _downloadOptions = commons.DownloadOptions.Metadata; |
1164 var _body = null; | 1172 var _body = null; |
1165 | 1173 |
1166 if (appsId == null) { | 1174 if (appsId == null) { |
1167 throw new core.ArgumentError("Parameter appsId is required."); | 1175 throw new core.ArgumentError("Parameter appsId is required."); |
1168 } | 1176 } |
1169 if (filter != null) { | 1177 if (filter != null) { |
1170 _queryParams["filter"] = [filter]; | 1178 _queryParams["filter"] = [filter]; |
1171 } | 1179 } |
| 1180 if (pageToken != null) { |
| 1181 _queryParams["pageToken"] = [pageToken]; |
| 1182 } |
1172 if (pageSize != null) { | 1183 if (pageSize != null) { |
1173 _queryParams["pageSize"] = ["${pageSize}"]; | 1184 _queryParams["pageSize"] = ["${pageSize}"]; |
1174 } | 1185 } |
1175 if (pageToken != null) { | |
1176 _queryParams["pageToken"] = [pageToken]; | |
1177 } | |
1178 | 1186 |
1179 _url = 'v1beta4/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/operat
ions'; | 1187 _url = 'v1beta4/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/operat
ions'; |
1180 | 1188 |
1181 var _response = _requester.request(_url, | 1189 var _response = _requester.request(_url, |
1182 "GET", | 1190 "GET", |
1183 body: _body, | 1191 body: _body, |
1184 queryParams: _queryParams, | 1192 queryParams: _queryParams, |
1185 uploadOptions: _uploadOptions, | 1193 uploadOptions: _uploadOptions, |
1186 uploadMedia: _uploadMedia, | 1194 uploadMedia: _uploadMedia, |
1187 downloadOptions: _downloadOptions); | 1195 downloadOptions: _downloadOptions); |
1188 return _response.then((data) => new ListOperationsResponse.fromJson(data)); | 1196 return _response.then((data) => new ListOperationsResponse.fromJson(data)); |
1189 } | 1197 } |
1190 | 1198 |
1191 } | 1199 } |
1192 | 1200 |
1193 | 1201 |
1194 | 1202 |
1195 /** | 1203 /** |
1196 * Google Cloud Endpoints | 1204 * Google Cloud Endpoints |
1197 * (https://cloud.google.com/appengine/docs/python/endpoints/) configuration for | 1205 * (https://cloud.google.com/appengine/docs/python/endpoints/) configuration for |
1198 * API handlers. | 1206 * API handlers. |
1199 */ | 1207 */ |
1200 class ApiConfigHandler { | 1208 class ApiConfigHandler { |
1201 /** | 1209 /** |
1202 * Action to take when users access resources that require authentication. | 1210 * Action to take when users access resources that require authentication. |
1203 * Defaults to redirect. | 1211 * Defaults to redirect. |
1204 * Possible string values are: | 1212 * Possible string values are: |
1205 * - "AUTH_FAIL_ACTION_UNSPECIFIED" : A AUTH_FAIL_ACTION_UNSPECIFIED. | 1213 * - "AUTH_FAIL_ACTION_UNSPECIFIED" : Not specified. AUTH_FAIL_ACTION_REDIRECT |
1206 * - "AUTH_FAIL_ACTION_REDIRECT" : A AUTH_FAIL_ACTION_REDIRECT. | 1214 * is assumed. |
1207 * - "AUTH_FAIL_ACTION_UNAUTHORIZED" : A AUTH_FAIL_ACTION_UNAUTHORIZED. | 1215 * - "AUTH_FAIL_ACTION_REDIRECT" : Redirects user to "accounts.google.com". |
| 1216 * The user is redirected back to the application URL after signing in or |
| 1217 * creating an account. |
| 1218 * - "AUTH_FAIL_ACTION_UNAUTHORIZED" : Rejects request with a 401 HTTP status |
| 1219 * code and an error message. |
1208 */ | 1220 */ |
1209 core.String authFailAction; | 1221 core.String authFailAction; |
1210 /** | 1222 /** |
1211 * Level of login required to access this resource. Defaults to optional. | 1223 * Level of login required to access this resource. Defaults to optional. |
1212 * Possible string values are: | 1224 * Possible string values are: |
1213 * - "LOGIN_UNSPECIFIED" : A LOGIN_UNSPECIFIED. | 1225 * - "LOGIN_UNSPECIFIED" : Not specified. LOGIN_OPTIONAL is assumed. |
1214 * - "LOGIN_OPTIONAL" : A LOGIN_OPTIONAL. | 1226 * - "LOGIN_OPTIONAL" : Does not require that the user is signed in. |
1215 * - "LOGIN_ADMIN" : A LOGIN_ADMIN. | 1227 * - "LOGIN_ADMIN" : If the user is not signed in, the auth_fail_action is |
1216 * - "LOGIN_REQUIRED" : A LOGIN_REQUIRED. | 1228 * taken. In addition, if the user is not an administrator for the |
| 1229 * application, they are given an error message regardless of |
| 1230 * auth_fail_action. If the user is an administrator, the handler proceeds. |
| 1231 * - "LOGIN_REQUIRED" : If the user has signed in, the handler proceeds |
| 1232 * normally. Otherwise, the auth_fail_action is taken. |
1217 */ | 1233 */ |
1218 core.String login; | 1234 core.String login; |
1219 /** Path to the script from the application root directory. */ | 1235 /** Path to the script from the application root directory. */ |
1220 core.String script; | 1236 core.String script; |
1221 /** | 1237 /** |
1222 * Security (HTTPS) enforcement for this URL. | 1238 * Security (HTTPS) enforcement for this URL. |
1223 * Possible string values are: | 1239 * Possible string values are: |
1224 * - "SECURE_UNSPECIFIED" : A SECURE_UNSPECIFIED. | 1240 * - "SECURE_UNSPECIFIED" : Not specified. |
1225 * - "SECURE_DEFAULT" : A SECURE_DEFAULT. | 1241 * - "SECURE_DEFAULT" : Both HTTP and HTTPS requests with URLs that match the |
1226 * - "SECURE_NEVER" : A SECURE_NEVER. | 1242 * handler succeed without redirects. The application can examine the request |
1227 * - "SECURE_OPTIONAL" : A SECURE_OPTIONAL. | 1243 * to determine which protocol was used, and respond accordingly. |
1228 * - "SECURE_ALWAYS" : A SECURE_ALWAYS. | 1244 * - "SECURE_NEVER" : Requests for a URL that match this handler that use |
| 1245 * HTTPS are automatically redirected to the HTTP equivalent URL. |
| 1246 * - "SECURE_OPTIONAL" : Both HTTP and HTTPS requests with URLs that match the |
| 1247 * handler succeed without redirects. The application can examine the request |
| 1248 * to determine which protocol was used and respond accordingly. |
| 1249 * - "SECURE_ALWAYS" : Requests for a URL that match this handler that do not |
| 1250 * use HTTPS are automatically redirected to the HTTPS URL with the same path. |
| 1251 * Query parameters are reserved for the redirect. |
1229 */ | 1252 */ |
1230 core.String securityLevel; | 1253 core.String securityLevel; |
1231 /** URL to serve the endpoint at. */ | 1254 /** URL to serve the endpoint at. */ |
1232 core.String url; | 1255 core.String url; |
1233 | 1256 |
1234 ApiConfigHandler(); | 1257 ApiConfigHandler(); |
1235 | 1258 |
1236 ApiConfigHandler.fromJson(core.Map _json) { | 1259 ApiConfigHandler.fromJson(core.Map _json) { |
1237 if (_json.containsKey("authFailAction")) { | 1260 if (_json.containsKey("authFailAction")) { |
1238 authFailAction = _json["authFailAction"]; | 1261 authFailAction = _json["authFailAction"]; |
(...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1652 if (targetUtilization != null) { | 1675 if (targetUtilization != null) { |
1653 _json["targetUtilization"] = targetUtilization; | 1676 _json["targetUtilization"] = targetUtilization; |
1654 } | 1677 } |
1655 return _json; | 1678 return _json; |
1656 } | 1679 } |
1657 } | 1680 } |
1658 | 1681 |
1659 /** Request message for Instances.DebugInstance. */ | 1682 /** Request message for Instances.DebugInstance. */ |
1660 class DebugInstanceRequest { | 1683 class DebugInstanceRequest { |
1661 /** | 1684 /** |
1662 * Public SSH key to add to the instance. Examples: [USERNAME]:ssh-rsa | 1685 * Public SSH key to add to the instance. Examples: |
1663 * [KEY_VALUE] [USERNAME] [USERNAME]:ssh-rsa [KEY_VALUE] google-ssh | 1686 * [USERNAME]:ssh-rsa [KEY_VALUE] [USERNAME] |
| 1687 * [USERNAME]:ssh-rsa [KEY_VALUE] google-ssh |
1664 * {"userName":"[USERNAME]","expireOn":"[EXPIRE_TIME]"}For more information, | 1688 * {"userName":"[USERNAME]","expireOn":"[EXPIRE_TIME]"}For more information, |
1665 * see Adding and Removing SSH Keys | 1689 * see Adding and Removing SSH Keys |
1666 * (https://cloud.google.com/compute/docs/instances/adding-removing-ssh-keys). | 1690 * (https://cloud.google.com/compute/docs/instances/adding-removing-ssh-keys). |
1667 */ | 1691 */ |
1668 core.String sshKey; | 1692 core.String sshKey; |
1669 | 1693 |
1670 DebugInstanceRequest(); | 1694 DebugInstanceRequest(); |
1671 | 1695 |
1672 DebugInstanceRequest.fromJson(core.Map _json) { | 1696 DebugInstanceRequest.fromJson(core.Map _json) { |
1673 if (_json.containsKey("sshKey")) { | 1697 if (_json.containsKey("sshKey")) { |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1777 } | 1801 } |
1778 return _json; | 1802 return _json; |
1779 } | 1803 } |
1780 } | 1804 } |
1781 | 1805 |
1782 /** Custom static error page to be served when an error occurs. */ | 1806 /** Custom static error page to be served when an error occurs. */ |
1783 class ErrorHandler { | 1807 class ErrorHandler { |
1784 /** | 1808 /** |
1785 * Error condition this handler applies to. | 1809 * Error condition this handler applies to. |
1786 * Possible string values are: | 1810 * Possible string values are: |
1787 * - "ERROR_CODE_UNSPECIFIED" : A ERROR_CODE_UNSPECIFIED. | 1811 * - "ERROR_CODE_UNSPECIFIED" : Not specified. ERROR_CODE_DEFAULT is assumed. |
1788 * - "ERROR_CODE_DEFAULT" : A ERROR_CODE_DEFAULT. | 1812 * - "ERROR_CODE_DEFAULT" : All other error types. |
1789 * - "ERROR_CODE_OVER_QUOTA" : A ERROR_CODE_OVER_QUOTA. | 1813 * - "ERROR_CODE_OVER_QUOTA" : Application has exceeded a resource quota. |
1790 * - "ERROR_CODE_DOS_API_DENIAL" : A ERROR_CODE_DOS_API_DENIAL. | 1814 * - "ERROR_CODE_DOS_API_DENIAL" : Client blocked by the application's Denial |
1791 * - "ERROR_CODE_TIMEOUT" : A ERROR_CODE_TIMEOUT. | 1815 * of Service protection configuration. |
| 1816 * - "ERROR_CODE_TIMEOUT" : Deadline reached before the application responds. |
1792 */ | 1817 */ |
1793 core.String errorCode; | 1818 core.String errorCode; |
1794 /** MIME type of file. Defaults to text/html. */ | 1819 /** MIME type of file. Defaults to text/html. */ |
1795 core.String mimeType; | 1820 core.String mimeType; |
1796 /** Static file content to be served for this error. */ | 1821 /** Static file content to be served for this error. */ |
1797 core.String staticFile; | 1822 core.String staticFile; |
1798 | 1823 |
1799 ErrorHandler(); | 1824 ErrorHandler(); |
1800 | 1825 |
1801 ErrorHandler.fromJson(core.Map _json) { | 1826 ErrorHandler.fromJson(core.Map _json) { |
(...skipping 29 matching lines...) Expand all Loading... |
1831 */ | 1856 */ |
1832 class FileInfo { | 1857 class FileInfo { |
1833 /** | 1858 /** |
1834 * The MIME type of the file.Defaults to the value from Google Cloud Storage. | 1859 * The MIME type of the file.Defaults to the value from Google Cloud Storage. |
1835 */ | 1860 */ |
1836 core.String mimeType; | 1861 core.String mimeType; |
1837 /** The SHA1 hash of the file, in hex. */ | 1862 /** The SHA1 hash of the file, in hex. */ |
1838 core.String sha1Sum; | 1863 core.String sha1Sum; |
1839 /** | 1864 /** |
1840 * URL source to use to fetch this file. Must be a URL to a resource in Google | 1865 * URL source to use to fetch this file. Must be a URL to a resource in Google |
1841 * Cloud Storage in the form 'http(s)://storage.googleapis.com//'. | 1866 * Cloud Storage in the form |
| 1867 * 'http(s)://storage.googleapis.com/<bucket>/<object>'. |
1842 */ | 1868 */ |
1843 core.String sourceUrl; | 1869 core.String sourceUrl; |
1844 | 1870 |
1845 FileInfo(); | 1871 FileInfo(); |
1846 | 1872 |
1847 FileInfo.fromJson(core.Map _json) { | 1873 FileInfo.fromJson(core.Map _json) { |
1848 if (_json.containsKey("mimeType")) { | 1874 if (_json.containsKey("mimeType")) { |
1849 mimeType = _json["mimeType"]; | 1875 mimeType = _json["mimeType"]; |
1850 } | 1876 } |
1851 if (_json.containsKey("sha1Sum")) { | 1877 if (_json.containsKey("sha1Sum")) { |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2014 /** | 2040 /** |
2015 * An Instance resource is the computing unit that App Engine uses to | 2041 * An Instance resource is the computing unit that App Engine uses to |
2016 * automatically scale an application. | 2042 * automatically scale an application. |
2017 */ | 2043 */ |
2018 class Instance { | 2044 class Instance { |
2019 /** App Engine release this instance is running on.@OutputOnly */ | 2045 /** App Engine release this instance is running on.@OutputOnly */ |
2020 core.String appEngineRelease; | 2046 core.String appEngineRelease; |
2021 /** | 2047 /** |
2022 * Availability of the instance.@OutputOnly | 2048 * Availability of the instance.@OutputOnly |
2023 * Possible string values are: | 2049 * Possible string values are: |
2024 * - "UNSPECIFIED" : A UNSPECIFIED. | 2050 * - "UNSPECIFIED" |
2025 * - "RESIDENT" : A RESIDENT. | 2051 * - "RESIDENT" |
2026 * - "DYNAMIC" : A DYNAMIC. | 2052 * - "DYNAMIC" |
2027 */ | 2053 */ |
2028 core.String availability; | 2054 core.String availability; |
2029 /** Average latency (ms) over the last minute.@OutputOnly */ | 2055 /** Average latency (ms) over the last minute.@OutputOnly */ |
2030 core.int averageLatency; | 2056 core.int averageLatency; |
2031 /** Number of errors since this instance was started.@OutputOnly */ | 2057 /** Number of errors since this instance was started.@OutputOnly */ |
2032 core.int errors; | 2058 core.int errors; |
2033 /** | 2059 /** |
2034 * Relative name of the instance within the version. Example: | 2060 * Relative name of the instance within the version. Example: |
2035 * instance-1.@OutputOnly | 2061 * instance-1.@OutputOnly |
2036 */ | 2062 */ |
(...skipping 1342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3379 if (uploadPathRegex != null) { | 3405 if (uploadPathRegex != null) { |
3380 _json["uploadPathRegex"] = uploadPathRegex; | 3406 _json["uploadPathRegex"] = uploadPathRegex; |
3381 } | 3407 } |
3382 return _json; | 3408 return _json; |
3383 } | 3409 } |
3384 } | 3410 } |
3385 | 3411 |
3386 /** | 3412 /** |
3387 * The Status type defines a logical error model that is suitable for different | 3413 * The Status type defines a logical error model that is suitable for different |
3388 * programming environments, including REST APIs and RPC APIs. It is used by | 3414 * programming environments, including REST APIs and RPC APIs. It is used by |
3389 * gRPC (https://github.com/grpc). The error model is designed to be: Simple to | 3415 * gRPC (https://github.com/grpc). The error model is designed to be: |
3390 * use and understand for most users Flexible enough to meet unexpected | 3416 * Simple to use and understand for most users |
3391 * needsOverviewThe Status message contains three pieces of data: error code, | 3417 * Flexible enough to meet unexpected needsOverviewThe Status message contains |
3392 * error message, and error details. The error code should be an enum value of | 3418 * three pieces of data: error code, error message, and error details. The error |
3393 * google.rpc.Code, but it may accept additional error codes if needed. The | 3419 * code should be an enum value of google.rpc.Code, but it may accept additional |
3394 * error message should be a developer-facing English message that helps | 3420 * error codes if needed. The error message should be a developer-facing English |
3395 * developers understand and resolve the error. If a localized user-facing error | 3421 * message that helps developers understand and resolve the error. If a |
3396 * message is needed, put the localized message in the error details or localize | 3422 * localized user-facing error message is needed, put the localized message in |
3397 * it in the client. The optional error details may contain arbitrary | 3423 * the error details or localize it in the client. The optional error details |
3398 * information about the error. There is a predefined set of error detail types | 3424 * may contain arbitrary information about the error. There is a predefined set |
3399 * in the package google.rpc which can be used for common error | 3425 * of error detail types in the package google.rpc which can be used for common |
3400 * conditions.Language mappingThe Status message is the logical representation | 3426 * error conditions.Language mappingThe Status message is the logical |
3401 * of the error model, but it is not necessarily the actual wire format. When | 3427 * representation of the error model, but it is not necessarily the actual wire |
3402 * the Status message is exposed in different client libraries and different | 3428 * format. When the Status message is exposed in different client libraries and |
3403 * wire protocols, it can be mapped differently. For example, it will likely be | 3429 * different wire protocols, it can be mapped differently. For example, it will |
3404 * mapped to some exceptions in Java, but more likely mapped to some error codes | 3430 * likely be mapped to some exceptions in Java, but more likely mapped to some |
3405 * in C.Other usesThe error model and the Status message can be used in a | 3431 * error codes in C.Other usesThe error model and the Status message can be used |
3406 * variety of environments, either with or without APIs, to provide a consistent | 3432 * in a variety of environments, either with or without APIs, to provide a |
3407 * developer experience across different environments.Example uses of this error | 3433 * consistent developer experience across different environments.Example uses of |
3408 * model include: Partial errors. If a service needs to return partial errors to | 3434 * this error model include: |
3409 * the client, it may embed the Status in the normal response to indicate the | 3435 * Partial errors. If a service needs to return partial errors to the client, it |
3410 * partial errors. Workflow errors. A typical workflow has multiple steps. Each | 3436 * may embed the Status in the normal response to indicate the partial errors. |
3411 * step may have a Status message for error reporting purpose. Batch operations. | 3437 * Workflow errors. A typical workflow has multiple steps. Each step may have a |
3412 * If a client uses batch request and batch response, the Status message should | 3438 * Status message for error reporting purpose. |
3413 * be used directly inside batch response, one for each error sub-response. | 3439 * Batch operations. If a client uses batch request and batch response, the |
| 3440 * Status message should be used directly inside batch response, one for each |
| 3441 * error sub-response. |
3414 * Asynchronous operations. If an API call embeds asynchronous operation results | 3442 * Asynchronous operations. If an API call embeds asynchronous operation results |
3415 * in its response, the status of those operations should be represented | 3443 * in its response, the status of those operations should be represented |
3416 * directly using the Status message. Logging. If some API errors are stored in | 3444 * directly using the Status message. |
3417 * logs, the message Status could be used directly after any stripping needed | 3445 * Logging. If some API errors are stored in logs, the message Status could be |
3418 * for security/privacy reasons. | 3446 * used directly after any stripping needed for security/privacy reasons. |
3419 */ | 3447 */ |
3420 class Status { | 3448 class Status { |
3421 /** The status code, which should be an enum value of google.rpc.Code. */ | 3449 /** The status code, which should be an enum value of google.rpc.Code. */ |
3422 core.int code; | 3450 core.int code; |
3423 /** | 3451 /** |
3424 * A list of messages that carry the error details. There will be a common set | 3452 * A list of messages that carry the error details. There will be a common set |
3425 * of message types for APIs to use. | 3453 * of message types for APIs to use. |
3426 * | 3454 * |
3427 * The values for Object must be JSON objects. It can consist of `num`, | 3455 * The values for Object must be JSON objects. It can consist of `num`, |
3428 * `String`, `bool` and `null` as well as `Map` and `List` values. | 3456 * `String`, `bool` and `null` as well as `Map` and `List` values. |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3477 * module is deleted or their traffic allocation is removed. Allocations must | 3505 * module is deleted or their traffic allocation is removed. Allocations must |
3478 * sum to 1. Up to two decimal place precision is supported for IP-based | 3506 * sum to 1. Up to two decimal place precision is supported for IP-based |
3479 * splits and up to three decimal places is supported for cookie-based splits. | 3507 * splits and up to three decimal places is supported for cookie-based splits. |
3480 */ | 3508 */ |
3481 core.Map<core.String, core.double> allocations; | 3509 core.Map<core.String, core.double> allocations; |
3482 /** | 3510 /** |
3483 * Mechanism used to determine which version a request is sent to. The traffic | 3511 * Mechanism used to determine which version a request is sent to. The traffic |
3484 * selection algorithm will be stable for either type until allocations are | 3512 * selection algorithm will be stable for either type until allocations are |
3485 * changed. | 3513 * changed. |
3486 * Possible string values are: | 3514 * Possible string values are: |
3487 * - "UNSPECIFIED" : A UNSPECIFIED. | 3515 * - "UNSPECIFIED" : Diversion method unspecified. |
3488 * - "COOKIE" : A COOKIE. | 3516 * - "COOKIE" : Diversion based on a specially named cookie, "GOOGAPPUID." The |
3489 * - "IP" : A IP. | 3517 * cookie must be set by the application itself or else no diversion will |
| 3518 * occur. |
| 3519 * - "IP" : Diversion based on applying the modulus operation to a fingerprint |
| 3520 * of the IP address. |
3490 */ | 3521 */ |
3491 core.String shardBy; | 3522 core.String shardBy; |
3492 | 3523 |
3493 TrafficSplit(); | 3524 TrafficSplit(); |
3494 | 3525 |
3495 TrafficSplit.fromJson(core.Map _json) { | 3526 TrafficSplit.fromJson(core.Map _json) { |
3496 if (_json.containsKey("allocations")) { | 3527 if (_json.containsKey("allocations")) { |
3497 allocations = _json["allocations"]; | 3528 allocations = _json["allocations"]; |
3498 } | 3529 } |
3499 if (_json.containsKey("shardBy")) { | 3530 if (_json.containsKey("shardBy")) { |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3566 * handle URLs by executing application code, or by serving static files | 3597 * handle URLs by executing application code, or by serving static files |
3567 * uploaded with the version, such as images, CSS, or JavaScript. | 3598 * uploaded with the version, such as images, CSS, or JavaScript. |
3568 */ | 3599 */ |
3569 class UrlMap { | 3600 class UrlMap { |
3570 /** Uses API Endpoints to handle requests. */ | 3601 /** Uses API Endpoints to handle requests. */ |
3571 ApiEndpointHandler apiEndpoint; | 3602 ApiEndpointHandler apiEndpoint; |
3572 /** | 3603 /** |
3573 * Action to take when users access resources that require authentication. | 3604 * Action to take when users access resources that require authentication. |
3574 * Defaults to redirect. | 3605 * Defaults to redirect. |
3575 * Possible string values are: | 3606 * Possible string values are: |
3576 * - "AUTH_FAIL_ACTION_UNSPECIFIED" : A AUTH_FAIL_ACTION_UNSPECIFIED. | 3607 * - "AUTH_FAIL_ACTION_UNSPECIFIED" : Not specified. AUTH_FAIL_ACTION_REDIRECT |
3577 * - "AUTH_FAIL_ACTION_REDIRECT" : A AUTH_FAIL_ACTION_REDIRECT. | 3608 * is assumed. |
3578 * - "AUTH_FAIL_ACTION_UNAUTHORIZED" : A AUTH_FAIL_ACTION_UNAUTHORIZED. | 3609 * - "AUTH_FAIL_ACTION_REDIRECT" : Redirects user to "accounts.google.com". |
| 3610 * The user is redirected back to the application URL after signing in or |
| 3611 * creating an account. |
| 3612 * - "AUTH_FAIL_ACTION_UNAUTHORIZED" : Rejects request with a 401 HTTP status |
| 3613 * code and an error message. |
3579 */ | 3614 */ |
3580 core.String authFailAction; | 3615 core.String authFailAction; |
3581 /** | 3616 /** |
3582 * Level of login required to access this resource. | 3617 * Level of login required to access this resource. |
3583 * Possible string values are: | 3618 * Possible string values are: |
3584 * - "LOGIN_UNSPECIFIED" : A LOGIN_UNSPECIFIED. | 3619 * - "LOGIN_UNSPECIFIED" : Not specified. LOGIN_OPTIONAL is assumed. |
3585 * - "LOGIN_OPTIONAL" : A LOGIN_OPTIONAL. | 3620 * - "LOGIN_OPTIONAL" : Does not require that the user is signed in. |
3586 * - "LOGIN_ADMIN" : A LOGIN_ADMIN. | 3621 * - "LOGIN_ADMIN" : If the user is not signed in, the auth_fail_action is |
3587 * - "LOGIN_REQUIRED" : A LOGIN_REQUIRED. | 3622 * taken. In addition, if the user is not an administrator for the |
| 3623 * application, they are given an error message regardless of |
| 3624 * auth_fail_action. If the user is an administrator, the handler proceeds. |
| 3625 * - "LOGIN_REQUIRED" : If the user has signed in, the handler proceeds |
| 3626 * normally. Otherwise, the auth_fail_action is taken. |
3588 */ | 3627 */ |
3589 core.String login; | 3628 core.String login; |
3590 /** | 3629 /** |
3591 * 30x code to use when performing redirects for the secure field. Defaults to | 3630 * 30x code to use when performing redirects for the secure field. Defaults to |
3592 * 302. | 3631 * 302. |
3593 * Possible string values are: | 3632 * Possible string values are: |
3594 * - "REDIRECT_HTTP_RESPONSE_CODE_UNSPECIFIED" : A | 3633 * - "REDIRECT_HTTP_RESPONSE_CODE_UNSPECIFIED" : Not specified. 302 is |
3595 * REDIRECT_HTTP_RESPONSE_CODE_UNSPECIFIED. | 3634 * assumed. |
3596 * - "REDIRECT_HTTP_RESPONSE_CODE_301" : A REDIRECT_HTTP_RESPONSE_CODE_301. | 3635 * - "REDIRECT_HTTP_RESPONSE_CODE_301" : 301 Moved Permanently code. |
3597 * - "REDIRECT_HTTP_RESPONSE_CODE_302" : A REDIRECT_HTTP_RESPONSE_CODE_302. | 3636 * - "REDIRECT_HTTP_RESPONSE_CODE_302" : 302 Moved Temporarily code. |
3598 * - "REDIRECT_HTTP_RESPONSE_CODE_303" : A REDIRECT_HTTP_RESPONSE_CODE_303. | 3637 * - "REDIRECT_HTTP_RESPONSE_CODE_303" : 303 See Other code. |
3599 * - "REDIRECT_HTTP_RESPONSE_CODE_307" : A REDIRECT_HTTP_RESPONSE_CODE_307. | 3638 * - "REDIRECT_HTTP_RESPONSE_CODE_307" : 307 Temporary Redirect code. |
3600 */ | 3639 */ |
3601 core.String redirectHttpResponseCode; | 3640 core.String redirectHttpResponseCode; |
3602 /** Executes a script to handle the request that matches this URL pattern. */ | 3641 /** Executes a script to handle the request that matches this URL pattern. */ |
3603 ScriptHandler script; | 3642 ScriptHandler script; |
3604 /** | 3643 /** |
3605 * Security (HTTPS) enforcement for this URL. | 3644 * Security (HTTPS) enforcement for this URL. |
3606 * Possible string values are: | 3645 * Possible string values are: |
3607 * - "SECURE_UNSPECIFIED" : A SECURE_UNSPECIFIED. | 3646 * - "SECURE_UNSPECIFIED" : Not specified. |
3608 * - "SECURE_DEFAULT" : A SECURE_DEFAULT. | 3647 * - "SECURE_DEFAULT" : Both HTTP and HTTPS requests with URLs that match the |
3609 * - "SECURE_NEVER" : A SECURE_NEVER. | 3648 * handler succeed without redirects. The application can examine the request |
3610 * - "SECURE_OPTIONAL" : A SECURE_OPTIONAL. | 3649 * to determine which protocol was used, and respond accordingly. |
3611 * - "SECURE_ALWAYS" : A SECURE_ALWAYS. | 3650 * - "SECURE_NEVER" : Requests for a URL that match this handler that use |
| 3651 * HTTPS are automatically redirected to the HTTP equivalent URL. |
| 3652 * - "SECURE_OPTIONAL" : Both HTTP and HTTPS requests with URLs that match the |
| 3653 * handler succeed without redirects. The application can examine the request |
| 3654 * to determine which protocol was used and respond accordingly. |
| 3655 * - "SECURE_ALWAYS" : Requests for a URL that match this handler that do not |
| 3656 * use HTTPS are automatically redirected to the HTTPS URL with the same path. |
| 3657 * Query parameters are reserved for the redirect. |
3612 */ | 3658 */ |
3613 core.String securityLevel; | 3659 core.String securityLevel; |
3614 /** | 3660 /** |
3615 * Serves the entire contents of a directory as static files.This attribute is | 3661 * Serves the entire contents of a directory as static files.This attribute is |
3616 * deprecated. You can mimic the behavior of static directories using static | 3662 * deprecated. You can mimic the behavior of static directories using static |
3617 * files. | 3663 * files. |
3618 */ | 3664 */ |
3619 StaticDirectoryHandler staticDirectory; | 3665 StaticDirectoryHandler staticDirectory; |
3620 /** Returns the contents of a file, such as an image, as the response. */ | 3666 /** Returns the contents of a file, such as an image, as the response. */ |
3621 StaticFilesHandler staticFiles; | 3667 StaticFilesHandler staticFiles; |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3770 * "default", "latest", and any name with the prefix "ah-". | 3816 * "default", "latest", and any name with the prefix "ah-". |
3771 */ | 3817 */ |
3772 core.String id; | 3818 core.String id; |
3773 /** | 3819 /** |
3774 * Before an application can receive email or XMPP messages, the application | 3820 * Before an application can receive email or XMPP messages, the application |
3775 * must be configured to enable the service. | 3821 * must be configured to enable the service. |
3776 */ | 3822 */ |
3777 core.List<core.String> inboundServices; | 3823 core.List<core.String> inboundServices; |
3778 /** | 3824 /** |
3779 * Instance class that is used to run this version. Valid values are: | 3825 * Instance class that is used to run this version. Valid values are: |
3780 * AutomaticScaling: F1, F2, F4, F4_1G ManualScaling or BasicScaling: B1, B2, | 3826 * AutomaticScaling: F1, F2, F4, F4_1G |
3781 * B4, B8, B4_1GDefaults to F1 for AutomaticScaling and B1 for ManualScaling | 3827 * ManualScaling or BasicScaling: B1, B2, B4, B8, B4_1GDefaults to F1 for |
3782 * or BasicScaling. | 3828 * AutomaticScaling and B1 for ManualScaling or BasicScaling. |
3783 */ | 3829 */ |
3784 core.String instanceClass; | 3830 core.String instanceClass; |
3785 /** | 3831 /** |
3786 * Configuration for third-party Python runtime libraries required by the | 3832 * Configuration for third-party Python runtime libraries required by the |
3787 * application.Only returned in GET requests if view=FULL is set. | 3833 * application.Only returned in GET requests if view=FULL is set. |
3788 */ | 3834 */ |
3789 core.List<Library> libraries; | 3835 core.List<Library> libraries; |
3790 /** | 3836 /** |
3791 * A module with manual scaling runs continuously, allowing you to perform | 3837 * A module with manual scaling runs continuously, allowing you to perform |
3792 * complex initialization and rely on the state of its memory over time. | 3838 * complex initialization and rely on the state of its memory over time. |
(...skipping 14 matching lines...) Expand all Loading... |
3807 core.String nobuildFilesRegex; | 3853 core.String nobuildFilesRegex; |
3808 /** Machine resources for this version. Only applicable for VM runtimes. */ | 3854 /** Machine resources for this version. Only applicable for VM runtimes. */ |
3809 Resources resources; | 3855 Resources resources; |
3810 /** Desired runtime. Example: python27. */ | 3856 /** Desired runtime. Example: python27. */ |
3811 core.String runtime; | 3857 core.String runtime; |
3812 /** | 3858 /** |
3813 * Current serving status of this version. Only the versions with a SERVING | 3859 * Current serving status of this version. Only the versions with a SERVING |
3814 * status create instances and can be billed.SERVING_STATUS_UNSPECIFIED is an | 3860 * status create instances and can be billed.SERVING_STATUS_UNSPECIFIED is an |
3815 * invalid value. Defaults to SERVING. | 3861 * invalid value. Defaults to SERVING. |
3816 * Possible string values are: | 3862 * Possible string values are: |
3817 * - "SERVING_STATUS_UNSPECIFIED" : A SERVING_STATUS_UNSPECIFIED. | 3863 * - "SERVING_STATUS_UNSPECIFIED" : Not specified. |
3818 * - "SERVING" : A SERVING. | 3864 * - "SERVING" : Currently serving. Instances are created according to the |
3819 * - "STOPPED" : A STOPPED. | 3865 * scaling settings of the version. |
| 3866 * - "STOPPED" : Disabled. No instances will be created and the scaling |
| 3867 * settings are ignored until the state of the version changes to SERVING. |
3820 */ | 3868 */ |
3821 core.String servingStatus; | 3869 core.String servingStatus; |
3822 /** Whether multiple requests can be dispatched to this version at once. */ | 3870 /** Whether multiple requests can be dispatched to this version at once. */ |
3823 core.bool threadsafe; | 3871 core.bool threadsafe; |
3824 /** Whether to deploy this version in a container on a virtual machine. */ | 3872 /** Whether to deploy this version in a container on a virtual machine. */ |
3825 core.bool vm; | 3873 core.bool vm; |
3826 | 3874 |
3827 Version(); | 3875 Version(); |
3828 | 3876 |
3829 Version.fromJson(core.Map _json) { | 3877 Version.fromJson(core.Map _json) { |
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4023 } | 4071 } |
4024 if (sizeGb != null) { | 4072 if (sizeGb != null) { |
4025 _json["sizeGb"] = sizeGb; | 4073 _json["sizeGb"] = sizeGb; |
4026 } | 4074 } |
4027 if (volumeType != null) { | 4075 if (volumeType != null) { |
4028 _json["volumeType"] = volumeType; | 4076 _json["volumeType"] = volumeType; |
4029 } | 4077 } |
4030 return _json; | 4078 return _json; |
4031 } | 4079 } |
4032 } | 4080 } |
OLD | NEW |