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.v1beta; | 3 library googleapis_beta.appengine.v1beta; |
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/v1beta'; | 15 const core.String USER_AGENT = 'dart-api-client appengine/v1beta'; |
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 15 matching lines...) Expand all Loading... |
43 AppsDomainMappingsResourceApi get domainMappings => new AppsDomainMappingsReso
urceApi(_requester); | 46 AppsDomainMappingsResourceApi get domainMappings => new AppsDomainMappingsReso
urceApi(_requester); |
44 AppsLocationsResourceApi get locations => new AppsLocationsResourceApi(_reques
ter); | 47 AppsLocationsResourceApi get locations => new AppsLocationsResourceApi(_reques
ter); |
45 AppsOperationsResourceApi get operations => new AppsOperationsResourceApi(_req
uester); | 48 AppsOperationsResourceApi get operations => new AppsOperationsResourceApi(_req
uester); |
46 AppsServicesResourceApi get services => new AppsServicesResourceApi(_requester
); | 49 AppsServicesResourceApi get services => new AppsServicesResourceApi(_requester
); |
47 | 50 |
48 AppsResourceApi(commons.ApiRequester client) : | 51 AppsResourceApi(commons.ApiRequester client) : |
49 _requester = client; | 52 _requester = client; |
50 | 53 |
51 /** | 54 /** |
52 * Creates an App Engine application for a Google Cloud Platform project. | 55 * Creates an App Engine application for a Google Cloud Platform project. |
53 * Required fields: id - The ID of the target Cloud Platform project. location | 56 * Required fields: |
54 * - The region (https://cloud.google.com/appengine/docs/locations) where you | 57 * id - The ID of the target Cloud Platform project. |
55 * want the App Engine application located.For more information about App | 58 * location - The region (https://cloud.google.com/appengine/docs/locations) |
56 * Engine applications, see Managing Projects, Applications, and Billing | 59 * where you want the App Engine application located.For more information |
57 * (https://cloud.google.com/appengine/docs/python/console/). | 60 * about App Engine applications, see Managing Projects, Applications, and |
| 61 * Billing (https://cloud.google.com/appengine/docs/python/console/). |
58 * | 62 * |
59 * [request] - The metadata request object. | 63 * [request] - The metadata request object. |
60 * | 64 * |
61 * Request parameters: | 65 * Request parameters: |
62 * | 66 * |
63 * Completes with a [Operation]. | 67 * Completes with a [Operation]. |
64 * | 68 * |
65 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 69 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
66 * error. | 70 * error. |
67 * | 71 * |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 body: _body, | 131 body: _body, |
128 queryParams: _queryParams, | 132 queryParams: _queryParams, |
129 uploadOptions: _uploadOptions, | 133 uploadOptions: _uploadOptions, |
130 uploadMedia: _uploadMedia, | 134 uploadMedia: _uploadMedia, |
131 downloadOptions: _downloadOptions); | 135 downloadOptions: _downloadOptions); |
132 return _response.then((data) => new Application.fromJson(data)); | 136 return _response.then((data) => new Application.fromJson(data)); |
133 } | 137 } |
134 | 138 |
135 /** | 139 /** |
136 * Updates the specified Application resource. You can update the following | 140 * Updates the specified Application resource. You can update the following |
137 * fields: auth_domain - Google authentication domain for controlling user | 141 * fields: |
138 * access to the application. default_cookie_expiration - Cookie expiration | 142 * auth_domain - Google authentication domain for controlling user access to |
139 * policy for the application. | 143 * the application. |
| 144 * default_cookie_expiration - Cookie expiration policy for the application. |
140 * | 145 * |
141 * [request] - The metadata request object. | 146 * [request] - The metadata request object. |
142 * | 147 * |
143 * Request parameters: | 148 * Request parameters: |
144 * | 149 * |
145 * [appsId] - Part of `name`. Name of the Application resource to update. | 150 * [appsId] - Part of `name`. Name of the Application resource to update. |
146 * Example: apps/myapp. | 151 * Example: apps/myapp. |
147 * | 152 * |
148 * [updateMask] - Standard field mask for the set of fields to be updated. | 153 * [updateMask] - Standard field mask for the set of fields to be updated. |
149 * | 154 * |
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
386 } | 391 } |
387 | 392 |
388 /** | 393 /** |
389 * Lists all SSL certificates the user is authorized to administer. | 394 * Lists all SSL certificates the user is authorized to administer. |
390 * | 395 * |
391 * Request parameters: | 396 * Request parameters: |
392 * | 397 * |
393 * [appsId] - Part of `parent`. Name of the parent Application resource. | 398 * [appsId] - Part of `parent`. Name of the parent Application resource. |
394 * Example: apps/myapp. | 399 * Example: apps/myapp. |
395 * | 400 * |
| 401 * [pageToken] - Continuation token for fetching the next page of results. |
| 402 * |
396 * [pageSize] - Maximum results to return per page. | 403 * [pageSize] - Maximum results to return per page. |
397 * | 404 * |
398 * [pageToken] - Continuation token for fetching the next page of results. | |
399 * | |
400 * Completes with a [ListAuthorizedCertificatesResponse]. | 405 * Completes with a [ListAuthorizedCertificatesResponse]. |
401 * | 406 * |
402 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 407 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
403 * error. | 408 * error. |
404 * | 409 * |
405 * If the used [http.Client] completes with an error when making a REST call, | 410 * If the used [http.Client] completes with an error when making a REST call, |
406 * this method will complete with the same error. | 411 * this method will complete with the same error. |
407 */ | 412 */ |
408 async.Future<ListAuthorizedCertificatesResponse> list(core.String appsId, {cor
e.int pageSize, core.String pageToken}) { | 413 async.Future<ListAuthorizedCertificatesResponse> list(core.String appsId, {cor
e.String pageToken, core.int pageSize}) { |
409 var _url = null; | 414 var _url = null; |
410 var _queryParams = new core.Map(); | 415 var _queryParams = new core.Map(); |
411 var _uploadMedia = null; | 416 var _uploadMedia = null; |
412 var _uploadOptions = null; | 417 var _uploadOptions = null; |
413 var _downloadOptions = commons.DownloadOptions.Metadata; | 418 var _downloadOptions = commons.DownloadOptions.Metadata; |
414 var _body = null; | 419 var _body = null; |
415 | 420 |
416 if (appsId == null) { | 421 if (appsId == null) { |
417 throw new core.ArgumentError("Parameter appsId is required."); | 422 throw new core.ArgumentError("Parameter appsId is required."); |
418 } | 423 } |
| 424 if (pageToken != null) { |
| 425 _queryParams["pageToken"] = [pageToken]; |
| 426 } |
419 if (pageSize != null) { | 427 if (pageSize != null) { |
420 _queryParams["pageSize"] = ["${pageSize}"]; | 428 _queryParams["pageSize"] = ["${pageSize}"]; |
421 } | 429 } |
422 if (pageToken != null) { | |
423 _queryParams["pageToken"] = [pageToken]; | |
424 } | |
425 | 430 |
426 _url = 'v1beta/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/authori
zedCertificates'; | 431 _url = 'v1beta/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/authori
zedCertificates'; |
427 | 432 |
428 var _response = _requester.request(_url, | 433 var _response = _requester.request(_url, |
429 "GET", | 434 "GET", |
430 body: _body, | 435 body: _body, |
431 queryParams: _queryParams, | 436 queryParams: _queryParams, |
432 uploadOptions: _uploadOptions, | 437 uploadOptions: _uploadOptions, |
433 uploadMedia: _uploadMedia, | 438 uploadMedia: _uploadMedia, |
434 downloadOptions: _downloadOptions); | 439 downloadOptions: _downloadOptions); |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
505 _requester = client; | 510 _requester = client; |
506 | 511 |
507 /** | 512 /** |
508 * Lists all domains the user is authorized to administer. | 513 * Lists all domains the user is authorized to administer. |
509 * | 514 * |
510 * Request parameters: | 515 * Request parameters: |
511 * | 516 * |
512 * [appsId] - Part of `parent`. Name of the parent Application resource. | 517 * [appsId] - Part of `parent`. Name of the parent Application resource. |
513 * Example: apps/myapp. | 518 * Example: apps/myapp. |
514 * | 519 * |
| 520 * [pageToken] - Continuation token for fetching the next page of results. |
| 521 * |
515 * [pageSize] - Maximum results to return per page. | 522 * [pageSize] - Maximum results to return per page. |
516 * | 523 * |
517 * [pageToken] - Continuation token for fetching the next page of results. | |
518 * | |
519 * Completes with a [ListAuthorizedDomainsResponse]. | 524 * Completes with a [ListAuthorizedDomainsResponse]. |
520 * | 525 * |
521 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 526 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
522 * error. | 527 * error. |
523 * | 528 * |
524 * If the used [http.Client] completes with an error when making a REST call, | 529 * If the used [http.Client] completes with an error when making a REST call, |
525 * this method will complete with the same error. | 530 * this method will complete with the same error. |
526 */ | 531 */ |
527 async.Future<ListAuthorizedDomainsResponse> list(core.String appsId, {core.int
pageSize, core.String pageToken}) { | 532 async.Future<ListAuthorizedDomainsResponse> list(core.String appsId, {core.Str
ing pageToken, core.int pageSize}) { |
528 var _url = null; | 533 var _url = null; |
529 var _queryParams = new core.Map(); | 534 var _queryParams = new core.Map(); |
530 var _uploadMedia = null; | 535 var _uploadMedia = null; |
531 var _uploadOptions = null; | 536 var _uploadOptions = null; |
532 var _downloadOptions = commons.DownloadOptions.Metadata; | 537 var _downloadOptions = commons.DownloadOptions.Metadata; |
533 var _body = null; | 538 var _body = null; |
534 | 539 |
535 if (appsId == null) { | 540 if (appsId == null) { |
536 throw new core.ArgumentError("Parameter appsId is required."); | 541 throw new core.ArgumentError("Parameter appsId is required."); |
537 } | 542 } |
| 543 if (pageToken != null) { |
| 544 _queryParams["pageToken"] = [pageToken]; |
| 545 } |
538 if (pageSize != null) { | 546 if (pageSize != null) { |
539 _queryParams["pageSize"] = ["${pageSize}"]; | 547 _queryParams["pageSize"] = ["${pageSize}"]; |
540 } | 548 } |
541 if (pageToken != null) { | |
542 _queryParams["pageToken"] = [pageToken]; | |
543 } | |
544 | 549 |
545 _url = 'v1beta/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/authori
zedDomains'; | 550 _url = 'v1beta/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/authori
zedDomains'; |
546 | 551 |
547 var _response = _requester.request(_url, | 552 var _response = _requester.request(_url, |
548 "GET", | 553 "GET", |
549 body: _body, | 554 body: _body, |
550 queryParams: _queryParams, | 555 queryParams: _queryParams, |
551 uploadOptions: _uploadOptions, | 556 uploadOptions: _uploadOptions, |
552 uploadMedia: _uploadMedia, | 557 uploadMedia: _uploadMedia, |
553 downloadOptions: _downloadOptions); | 558 downloadOptions: _downloadOptions); |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
703 } | 708 } |
704 | 709 |
705 /** | 710 /** |
706 * Lists the domain mappings on an application. | 711 * Lists the domain mappings on an application. |
707 * | 712 * |
708 * Request parameters: | 713 * Request parameters: |
709 * | 714 * |
710 * [appsId] - Part of `parent`. Name of the parent Application resource. | 715 * [appsId] - Part of `parent`. Name of the parent Application resource. |
711 * Example: apps/myapp. | 716 * Example: apps/myapp. |
712 * | 717 * |
| 718 * [pageToken] - Continuation token for fetching the next page of results. |
| 719 * |
713 * [pageSize] - Maximum results to return per page. | 720 * [pageSize] - Maximum results to return per page. |
714 * | 721 * |
715 * [pageToken] - Continuation token for fetching the next page of results. | |
716 * | |
717 * Completes with a [ListDomainMappingsResponse]. | 722 * Completes with a [ListDomainMappingsResponse]. |
718 * | 723 * |
719 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 724 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
720 * error. | 725 * error. |
721 * | 726 * |
722 * If the used [http.Client] completes with an error when making a REST call, | 727 * If the used [http.Client] completes with an error when making a REST call, |
723 * this method will complete with the same error. | 728 * this method will complete with the same error. |
724 */ | 729 */ |
725 async.Future<ListDomainMappingsResponse> list(core.String appsId, {core.int pa
geSize, core.String pageToken}) { | 730 async.Future<ListDomainMappingsResponse> list(core.String appsId, {core.String
pageToken, core.int pageSize}) { |
726 var _url = null; | 731 var _url = null; |
727 var _queryParams = new core.Map(); | 732 var _queryParams = new core.Map(); |
728 var _uploadMedia = null; | 733 var _uploadMedia = null; |
729 var _uploadOptions = null; | 734 var _uploadOptions = null; |
730 var _downloadOptions = commons.DownloadOptions.Metadata; | 735 var _downloadOptions = commons.DownloadOptions.Metadata; |
731 var _body = null; | 736 var _body = null; |
732 | 737 |
733 if (appsId == null) { | 738 if (appsId == null) { |
734 throw new core.ArgumentError("Parameter appsId is required."); | 739 throw new core.ArgumentError("Parameter appsId is required."); |
735 } | 740 } |
| 741 if (pageToken != null) { |
| 742 _queryParams["pageToken"] = [pageToken]; |
| 743 } |
736 if (pageSize != null) { | 744 if (pageSize != null) { |
737 _queryParams["pageSize"] = ["${pageSize}"]; | 745 _queryParams["pageSize"] = ["${pageSize}"]; |
738 } | 746 } |
739 if (pageToken != null) { | |
740 _queryParams["pageToken"] = [pageToken]; | |
741 } | |
742 | 747 |
743 _url = 'v1beta/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/domainM
appings'; | 748 _url = 'v1beta/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/domainM
appings'; |
744 | 749 |
745 var _response = _requester.request(_url, | 750 var _response = _requester.request(_url, |
746 "GET", | 751 "GET", |
747 body: _body, | 752 body: _body, |
748 queryParams: _queryParams, | 753 queryParams: _queryParams, |
749 uploadOptions: _uploadOptions, | 754 uploadOptions: _uploadOptions, |
750 uploadMedia: _uploadMedia, | 755 uploadMedia: _uploadMedia, |
751 downloadOptions: _downloadOptions); | 756 downloadOptions: _downloadOptions); |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
864 } | 869 } |
865 | 870 |
866 /** | 871 /** |
867 * Lists information about the supported locations for this service. | 872 * Lists information about the supported locations for this service. |
868 * | 873 * |
869 * Request parameters: | 874 * Request parameters: |
870 * | 875 * |
871 * [appsId] - Part of `name`. The resource that owns the locations collection, | 876 * [appsId] - Part of `name`. The resource that owns the locations collection, |
872 * if applicable. | 877 * if applicable. |
873 * | 878 * |
| 879 * [pageSize] - The standard list page size. |
| 880 * |
874 * [filter] - The standard list filter. | 881 * [filter] - The standard list filter. |
875 * | 882 * |
876 * [pageSize] - The standard list page size. | |
877 * | |
878 * [pageToken] - The standard list page token. | 883 * [pageToken] - The standard list page token. |
879 * | 884 * |
880 * Completes with a [ListLocationsResponse]. | 885 * Completes with a [ListLocationsResponse]. |
881 * | 886 * |
882 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 887 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
883 * error. | 888 * error. |
884 * | 889 * |
885 * If the used [http.Client] completes with an error when making a REST call, | 890 * If the used [http.Client] completes with an error when making a REST call, |
886 * this method will complete with the same error. | 891 * this method will complete with the same error. |
887 */ | 892 */ |
888 async.Future<ListLocationsResponse> list(core.String appsId, {core.String filt
er, core.int pageSize, core.String pageToken}) { | 893 async.Future<ListLocationsResponse> list(core.String appsId, {core.int pageSiz
e, core.String filter, core.String pageToken}) { |
889 var _url = null; | 894 var _url = null; |
890 var _queryParams = new core.Map(); | 895 var _queryParams = new core.Map(); |
891 var _uploadMedia = null; | 896 var _uploadMedia = null; |
892 var _uploadOptions = null; | 897 var _uploadOptions = null; |
893 var _downloadOptions = commons.DownloadOptions.Metadata; | 898 var _downloadOptions = commons.DownloadOptions.Metadata; |
894 var _body = null; | 899 var _body = null; |
895 | 900 |
896 if (appsId == null) { | 901 if (appsId == null) { |
897 throw new core.ArgumentError("Parameter appsId is required."); | 902 throw new core.ArgumentError("Parameter appsId is required."); |
898 } | 903 } |
| 904 if (pageSize != null) { |
| 905 _queryParams["pageSize"] = ["${pageSize}"]; |
| 906 } |
899 if (filter != null) { | 907 if (filter != null) { |
900 _queryParams["filter"] = [filter]; | 908 _queryParams["filter"] = [filter]; |
901 } | 909 } |
902 if (pageSize != null) { | |
903 _queryParams["pageSize"] = ["${pageSize}"]; | |
904 } | |
905 if (pageToken != null) { | 910 if (pageToken != null) { |
906 _queryParams["pageToken"] = [pageToken]; | 911 _queryParams["pageToken"] = [pageToken]; |
907 } | 912 } |
908 | 913 |
909 _url = 'v1beta/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/locatio
ns'; | 914 _url = 'v1beta/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/locatio
ns'; |
910 | 915 |
911 var _response = _requester.request(_url, | 916 var _response = _requester.request(_url, |
912 "GET", | 917 "GET", |
913 body: _body, | 918 body: _body, |
914 queryParams: _queryParams, | 919 queryParams: _queryParams, |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
976 /** | 981 /** |
977 * Lists operations that match the specified filter in the request. If the | 982 * Lists operations that match the specified filter in the request. If the |
978 * server doesn't support this method, it returns UNIMPLEMENTED.NOTE: the name | 983 * server doesn't support this method, it returns UNIMPLEMENTED.NOTE: the name |
979 * binding below allows API services to override the binding to use different | 984 * binding below allows API services to override the binding to use different |
980 * resource name schemes, such as users / * /operations. | 985 * resource name schemes, such as users / * /operations. |
981 * | 986 * |
982 * Request parameters: | 987 * Request parameters: |
983 * | 988 * |
984 * [appsId] - Part of `name`. The name of the operation collection. | 989 * [appsId] - Part of `name`. The name of the operation collection. |
985 * | 990 * |
| 991 * [pageSize] - The standard list page size. |
| 992 * |
986 * [filter] - The standard list filter. | 993 * [filter] - The standard list filter. |
987 * | 994 * |
988 * [pageSize] - The standard list page size. | |
989 * | |
990 * [pageToken] - The standard list page token. | 995 * [pageToken] - The standard list page token. |
991 * | 996 * |
992 * Completes with a [ListOperationsResponse]. | 997 * Completes with a [ListOperationsResponse]. |
993 * | 998 * |
994 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 999 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
995 * error. | 1000 * error. |
996 * | 1001 * |
997 * If the used [http.Client] completes with an error when making a REST call, | 1002 * If the used [http.Client] completes with an error when making a REST call, |
998 * this method will complete with the same error. | 1003 * this method will complete with the same error. |
999 */ | 1004 */ |
1000 async.Future<ListOperationsResponse> list(core.String appsId, {core.String fil
ter, core.int pageSize, core.String pageToken}) { | 1005 async.Future<ListOperationsResponse> list(core.String appsId, {core.int pageSi
ze, core.String filter, core.String pageToken}) { |
1001 var _url = null; | 1006 var _url = null; |
1002 var _queryParams = new core.Map(); | 1007 var _queryParams = new core.Map(); |
1003 var _uploadMedia = null; | 1008 var _uploadMedia = null; |
1004 var _uploadOptions = null; | 1009 var _uploadOptions = null; |
1005 var _downloadOptions = commons.DownloadOptions.Metadata; | 1010 var _downloadOptions = commons.DownloadOptions.Metadata; |
1006 var _body = null; | 1011 var _body = null; |
1007 | 1012 |
1008 if (appsId == null) { | 1013 if (appsId == null) { |
1009 throw new core.ArgumentError("Parameter appsId is required."); | 1014 throw new core.ArgumentError("Parameter appsId is required."); |
1010 } | 1015 } |
| 1016 if (pageSize != null) { |
| 1017 _queryParams["pageSize"] = ["${pageSize}"]; |
| 1018 } |
1011 if (filter != null) { | 1019 if (filter != null) { |
1012 _queryParams["filter"] = [filter]; | 1020 _queryParams["filter"] = [filter]; |
1013 } | 1021 } |
1014 if (pageSize != null) { | |
1015 _queryParams["pageSize"] = ["${pageSize}"]; | |
1016 } | |
1017 if (pageToken != null) { | 1022 if (pageToken != null) { |
1018 _queryParams["pageToken"] = [pageToken]; | 1023 _queryParams["pageToken"] = [pageToken]; |
1019 } | 1024 } |
1020 | 1025 |
1021 _url = 'v1beta/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/operati
ons'; | 1026 _url = 'v1beta/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/operati
ons'; |
1022 | 1027 |
1023 var _response = _requester.request(_url, | 1028 var _response = _requester.request(_url, |
1024 "GET", | 1029 "GET", |
1025 body: _body, | 1030 body: _body, |
1026 queryParams: _queryParams, | 1031 queryParams: _queryParams, |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1132 } | 1137 } |
1133 | 1138 |
1134 /** | 1139 /** |
1135 * Lists all the services in the application. | 1140 * Lists all the services in the application. |
1136 * | 1141 * |
1137 * Request parameters: | 1142 * Request parameters: |
1138 * | 1143 * |
1139 * [appsId] - Part of `parent`. Name of the parent Application resource. | 1144 * [appsId] - Part of `parent`. Name of the parent Application resource. |
1140 * Example: apps/myapp. | 1145 * Example: apps/myapp. |
1141 * | 1146 * |
| 1147 * [pageToken] - Continuation token for fetching the next page of results. |
| 1148 * |
1142 * [pageSize] - Maximum results to return per page. | 1149 * [pageSize] - Maximum results to return per page. |
1143 * | 1150 * |
1144 * [pageToken] - Continuation token for fetching the next page of results. | |
1145 * | |
1146 * Completes with a [ListServicesResponse]. | 1151 * Completes with a [ListServicesResponse]. |
1147 * | 1152 * |
1148 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1153 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
1149 * error. | 1154 * error. |
1150 * | 1155 * |
1151 * If the used [http.Client] completes with an error when making a REST call, | 1156 * If the used [http.Client] completes with an error when making a REST call, |
1152 * this method will complete with the same error. | 1157 * this method will complete with the same error. |
1153 */ | 1158 */ |
1154 async.Future<ListServicesResponse> list(core.String appsId, {core.int pageSize
, core.String pageToken}) { | 1159 async.Future<ListServicesResponse> list(core.String appsId, {core.String pageT
oken, core.int pageSize}) { |
1155 var _url = null; | 1160 var _url = null; |
1156 var _queryParams = new core.Map(); | 1161 var _queryParams = new core.Map(); |
1157 var _uploadMedia = null; | 1162 var _uploadMedia = null; |
1158 var _uploadOptions = null; | 1163 var _uploadOptions = null; |
1159 var _downloadOptions = commons.DownloadOptions.Metadata; | 1164 var _downloadOptions = commons.DownloadOptions.Metadata; |
1160 var _body = null; | 1165 var _body = null; |
1161 | 1166 |
1162 if (appsId == null) { | 1167 if (appsId == null) { |
1163 throw new core.ArgumentError("Parameter appsId is required."); | 1168 throw new core.ArgumentError("Parameter appsId is required."); |
1164 } | 1169 } |
| 1170 if (pageToken != null) { |
| 1171 _queryParams["pageToken"] = [pageToken]; |
| 1172 } |
1165 if (pageSize != null) { | 1173 if (pageSize != null) { |
1166 _queryParams["pageSize"] = ["${pageSize}"]; | 1174 _queryParams["pageSize"] = ["${pageSize}"]; |
1167 } | 1175 } |
1168 if (pageToken != null) { | |
1169 _queryParams["pageToken"] = [pageToken]; | |
1170 } | |
1171 | 1176 |
1172 _url = 'v1beta/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/service
s'; | 1177 _url = 'v1beta/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/service
s'; |
1173 | 1178 |
1174 var _response = _requester.request(_url, | 1179 var _response = _requester.request(_url, |
1175 "GET", | 1180 "GET", |
1176 body: _body, | 1181 body: _body, |
1177 queryParams: _queryParams, | 1182 queryParams: _queryParams, |
1178 uploadOptions: _uploadOptions, | 1183 uploadOptions: _uploadOptions, |
1179 uploadMedia: _uploadMedia, | 1184 uploadMedia: _uploadMedia, |
1180 downloadOptions: _downloadOptions); | 1185 downloadOptions: _downloadOptions); |
1181 return _response.then((data) => new ListServicesResponse.fromJson(data)); | 1186 return _response.then((data) => new ListServicesResponse.fromJson(data)); |
1182 } | 1187 } |
1183 | 1188 |
1184 /** | 1189 /** |
1185 * Updates the configuration of the specified service. | 1190 * Updates the configuration of the specified service. |
1186 * | 1191 * |
1187 * [request] - The metadata request object. | 1192 * [request] - The metadata request object. |
1188 * | 1193 * |
1189 * Request parameters: | 1194 * Request parameters: |
1190 * | 1195 * |
1191 * [appsId] - Part of `name`. Name of the resource to update. Example: | 1196 * [appsId] - Part of `name`. Name of the resource to update. Example: |
1192 * apps/myapp/services/default. | 1197 * apps/myapp/services/default. |
1193 * | 1198 * |
1194 * [servicesId] - Part of `name`. See documentation of `appsId`. | 1199 * [servicesId] - Part of `name`. See documentation of `appsId`. |
1195 * | 1200 * |
1196 * [updateMask] - Standard field mask for the set of fields to be updated. | |
1197 * | |
1198 * [migrateTraffic] - Set to true to gradually shift traffic to one or more | 1201 * [migrateTraffic] - Set to true to gradually shift traffic to one or more |
1199 * versions that you specify. By default, traffic is shifted immediately. For | 1202 * versions that you specify. By default, traffic is shifted immediately. For |
1200 * gradual traffic migration, the target versions must be located within | 1203 * gradual traffic migration, the target versions must be located within |
1201 * instances that are configured for both warmup requests | 1204 * instances that are configured for both warmup requests |
1202 * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/ap
ps.services.versions#inboundservicetype) | 1205 * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/ap
ps.services.versions#inboundservicetype) |
1203 * and automatic scaling | 1206 * and automatic scaling |
1204 * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/ap
ps.services.versions#automaticscaling). | 1207 * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/ap
ps.services.versions#automaticscaling). |
1205 * You must specify the shardBy | 1208 * You must specify the shardBy |
1206 * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/ap
ps.services#shardby) | 1209 * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/ap
ps.services#shardby) |
1207 * field in the Service resource. Gradual traffic migration is not supported | 1210 * field in the Service resource. Gradual traffic migration is not supported |
1208 * in the App Engine flexible environment. For examples, see Migrating and | 1211 * in the App Engine flexible environment. For examples, see Migrating and |
1209 * Splitting Traffic | 1212 * Splitting Traffic |
1210 * (https://cloud.google.com/appengine/docs/admin-api/migrating-splitting-traf
fic). | 1213 * (https://cloud.google.com/appengine/docs/admin-api/migrating-splitting-traf
fic). |
1211 * | 1214 * |
| 1215 * [updateMask] - Standard field mask for the set of fields to be updated. |
| 1216 * |
1212 * Completes with a [Operation]. | 1217 * Completes with a [Operation]. |
1213 * | 1218 * |
1214 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1219 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
1215 * error. | 1220 * error. |
1216 * | 1221 * |
1217 * If the used [http.Client] completes with an error when making a REST call, | 1222 * If the used [http.Client] completes with an error when making a REST call, |
1218 * this method will complete with the same error. | 1223 * this method will complete with the same error. |
1219 */ | 1224 */ |
1220 async.Future<Operation> patch(Service request, core.String appsId, core.String
servicesId, {core.String updateMask, core.bool migrateTraffic}) { | 1225 async.Future<Operation> patch(Service request, core.String appsId, core.String
servicesId, {core.bool migrateTraffic, core.String updateMask}) { |
1221 var _url = null; | 1226 var _url = null; |
1222 var _queryParams = new core.Map(); | 1227 var _queryParams = new core.Map(); |
1223 var _uploadMedia = null; | 1228 var _uploadMedia = null; |
1224 var _uploadOptions = null; | 1229 var _uploadOptions = null; |
1225 var _downloadOptions = commons.DownloadOptions.Metadata; | 1230 var _downloadOptions = commons.DownloadOptions.Metadata; |
1226 var _body = null; | 1231 var _body = null; |
1227 | 1232 |
1228 if (request != null) { | 1233 if (request != null) { |
1229 _body = convert.JSON.encode((request).toJson()); | 1234 _body = convert.JSON.encode((request).toJson()); |
1230 } | 1235 } |
1231 if (appsId == null) { | 1236 if (appsId == null) { |
1232 throw new core.ArgumentError("Parameter appsId is required."); | 1237 throw new core.ArgumentError("Parameter appsId is required."); |
1233 } | 1238 } |
1234 if (servicesId == null) { | 1239 if (servicesId == null) { |
1235 throw new core.ArgumentError("Parameter servicesId is required."); | 1240 throw new core.ArgumentError("Parameter servicesId is required."); |
1236 } | 1241 } |
| 1242 if (migrateTraffic != null) { |
| 1243 _queryParams["migrateTraffic"] = ["${migrateTraffic}"]; |
| 1244 } |
1237 if (updateMask != null) { | 1245 if (updateMask != null) { |
1238 _queryParams["updateMask"] = [updateMask]; | 1246 _queryParams["updateMask"] = [updateMask]; |
1239 } | 1247 } |
1240 if (migrateTraffic != null) { | |
1241 _queryParams["migrateTraffic"] = ["${migrateTraffic}"]; | |
1242 } | |
1243 | 1248 |
1244 _url = 'v1beta/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/service
s/' + commons.Escaper.ecapeVariable('$servicesId'); | 1249 _url = 'v1beta/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/service
s/' + commons.Escaper.ecapeVariable('$servicesId'); |
1245 | 1250 |
1246 var _response = _requester.request(_url, | 1251 var _response = _requester.request(_url, |
1247 "PATCH", | 1252 "PATCH", |
1248 body: _body, | 1253 body: _body, |
1249 queryParams: _queryParams, | 1254 queryParams: _queryParams, |
1250 uploadOptions: _uploadOptions, | 1255 uploadOptions: _uploadOptions, |
1251 uploadMedia: _uploadMedia, | 1256 uploadMedia: _uploadMedia, |
1252 downloadOptions: _downloadOptions); | 1257 downloadOptions: _downloadOptions); |
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1426 /** | 1431 /** |
1427 * Lists the versions of a service. | 1432 * Lists the versions of a service. |
1428 * | 1433 * |
1429 * Request parameters: | 1434 * Request parameters: |
1430 * | 1435 * |
1431 * [appsId] - Part of `parent`. Name of the parent Service resource. Example: | 1436 * [appsId] - Part of `parent`. Name of the parent Service resource. Example: |
1432 * apps/myapp/services/default. | 1437 * apps/myapp/services/default. |
1433 * | 1438 * |
1434 * [servicesId] - Part of `parent`. See documentation of `appsId`. | 1439 * [servicesId] - Part of `parent`. See documentation of `appsId`. |
1435 * | 1440 * |
| 1441 * [pageSize] - Maximum results to return per page. |
| 1442 * |
1436 * [view] - Controls the set of fields returned in the List response. | 1443 * [view] - Controls the set of fields returned in the List response. |
1437 * Possible string values are: | 1444 * Possible string values are: |
1438 * - "BASIC" : A BASIC. | 1445 * - "BASIC" : A BASIC. |
1439 * - "FULL" : A FULL. | 1446 * - "FULL" : A FULL. |
1440 * | 1447 * |
1441 * [pageSize] - Maximum results to return per page. | |
1442 * | |
1443 * [pageToken] - Continuation token for fetching the next page of results. | 1448 * [pageToken] - Continuation token for fetching the next page of results. |
1444 * | 1449 * |
1445 * Completes with a [ListVersionsResponse]. | 1450 * Completes with a [ListVersionsResponse]. |
1446 * | 1451 * |
1447 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1452 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
1448 * error. | 1453 * error. |
1449 * | 1454 * |
1450 * If the used [http.Client] completes with an error when making a REST call, | 1455 * If the used [http.Client] completes with an error when making a REST call, |
1451 * this method will complete with the same error. | 1456 * this method will complete with the same error. |
1452 */ | 1457 */ |
1453 async.Future<ListVersionsResponse> list(core.String appsId, core.String servic
esId, {core.String view, core.int pageSize, core.String pageToken}) { | 1458 async.Future<ListVersionsResponse> list(core.String appsId, core.String servic
esId, {core.int pageSize, core.String view, core.String pageToken}) { |
1454 var _url = null; | 1459 var _url = null; |
1455 var _queryParams = new core.Map(); | 1460 var _queryParams = new core.Map(); |
1456 var _uploadMedia = null; | 1461 var _uploadMedia = null; |
1457 var _uploadOptions = null; | 1462 var _uploadOptions = null; |
1458 var _downloadOptions = commons.DownloadOptions.Metadata; | 1463 var _downloadOptions = commons.DownloadOptions.Metadata; |
1459 var _body = null; | 1464 var _body = null; |
1460 | 1465 |
1461 if (appsId == null) { | 1466 if (appsId == null) { |
1462 throw new core.ArgumentError("Parameter appsId is required."); | 1467 throw new core.ArgumentError("Parameter appsId is required."); |
1463 } | 1468 } |
1464 if (servicesId == null) { | 1469 if (servicesId == null) { |
1465 throw new core.ArgumentError("Parameter servicesId is required."); | 1470 throw new core.ArgumentError("Parameter servicesId is required."); |
1466 } | 1471 } |
| 1472 if (pageSize != null) { |
| 1473 _queryParams["pageSize"] = ["${pageSize}"]; |
| 1474 } |
1467 if (view != null) { | 1475 if (view != null) { |
1468 _queryParams["view"] = [view]; | 1476 _queryParams["view"] = [view]; |
1469 } | 1477 } |
1470 if (pageSize != null) { | |
1471 _queryParams["pageSize"] = ["${pageSize}"]; | |
1472 } | |
1473 if (pageToken != null) { | 1478 if (pageToken != null) { |
1474 _queryParams["pageToken"] = [pageToken]; | 1479 _queryParams["pageToken"] = [pageToken]; |
1475 } | 1480 } |
1476 | 1481 |
1477 _url = 'v1beta/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/service
s/' + commons.Escaper.ecapeVariable('$servicesId') + '/versions'; | 1482 _url = 'v1beta/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/service
s/' + commons.Escaper.ecapeVariable('$servicesId') + '/versions'; |
1478 | 1483 |
1479 var _response = _requester.request(_url, | 1484 var _response = _requester.request(_url, |
1480 "GET", | 1485 "GET", |
1481 body: _body, | 1486 body: _body, |
1482 queryParams: _queryParams, | 1487 queryParams: _queryParams, |
1483 uploadOptions: _uploadOptions, | 1488 uploadOptions: _uploadOptions, |
1484 uploadMedia: _uploadMedia, | 1489 uploadMedia: _uploadMedia, |
1485 downloadOptions: _downloadOptions); | 1490 downloadOptions: _downloadOptions); |
1486 return _response.then((data) => new ListVersionsResponse.fromJson(data)); | 1491 return _response.then((data) => new ListVersionsResponse.fromJson(data)); |
1487 } | 1492 } |
1488 | 1493 |
1489 /** | 1494 /** |
1490 * Updates the specified Version resource. You can specify the following | 1495 * Updates the specified Version resource. You can specify the following |
1491 * fields depending on the App Engine environment and type of scaling that the | 1496 * fields depending on the App Engine environment and type of scaling that the |
1492 * version resource uses: serving_status | 1497 * version resource uses: |
| 1498 * serving_status |
1493 * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/ap
ps.services.versions#Version.FIELDS.serving_status): | 1499 * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/ap
ps.services.versions#Version.FIELDS.serving_status): |
1494 * For Version resources that use basic scaling, manual scaling, or run in the | 1500 * For Version resources that use basic scaling, manual scaling, or run in |
1495 * App Engine flexible environment. instance_class | 1501 * the App Engine flexible environment. |
| 1502 * instance_class |
1496 * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/ap
ps.services.versions#Version.FIELDS.instance_class): | 1503 * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/ap
ps.services.versions#Version.FIELDS.instance_class): |
1497 * For Version resources that run in the App Engine standard environment. | 1504 * For Version resources that run in the App Engine standard environment. |
1498 * automatic_scaling.min_idle_instances | 1505 * automatic_scaling.min_idle_instances |
1499 * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/ap
ps.services.versions#Version.FIELDS.automatic_scaling): | 1506 * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/ap
ps.services.versions#Version.FIELDS.automatic_scaling): |
1500 * For Version resources that use automatic scaling and run in the App Engine | 1507 * For Version resources that use automatic scaling and run in the App Engine |
1501 * standard environment. automatic_scaling.max_idle_instances | 1508 * standard environment. |
| 1509 * automatic_scaling.max_idle_instances |
1502 * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/ap
ps.services.versions#Version.FIELDS.automatic_scaling): | 1510 * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/ap
ps.services.versions#Version.FIELDS.automatic_scaling): |
1503 * For Version resources that use automatic scaling and run in the App Engine | 1511 * For Version resources that use automatic scaling and run in the App Engine |
1504 * standard environment. | 1512 * standard environment. |
1505 * | 1513 * |
1506 * [request] - The metadata request object. | 1514 * [request] - The metadata request object. |
1507 * | 1515 * |
1508 * Request parameters: | 1516 * Request parameters: |
1509 * | 1517 * |
1510 * [appsId] - Part of `name`. Name of the resource to update. Example: | 1518 * [appsId] - Part of `name`. Name of the resource to update. Example: |
1511 * apps/myapp/services/default/versions/1. | 1519 * apps/myapp/services/default/versions/1. |
1512 * | 1520 * |
1513 * [servicesId] - Part of `name`. See documentation of `appsId`. | 1521 * [servicesId] - Part of `name`. See documentation of `appsId`. |
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1751 * | 1759 * |
1752 * Request parameters: | 1760 * Request parameters: |
1753 * | 1761 * |
1754 * [appsId] - Part of `parent`. Name of the parent Version resource. Example: | 1762 * [appsId] - Part of `parent`. Name of the parent Version resource. Example: |
1755 * apps/myapp/services/default/versions/v1. | 1763 * apps/myapp/services/default/versions/v1. |
1756 * | 1764 * |
1757 * [servicesId] - Part of `parent`. See documentation of `appsId`. | 1765 * [servicesId] - Part of `parent`. See documentation of `appsId`. |
1758 * | 1766 * |
1759 * [versionsId] - Part of `parent`. See documentation of `appsId`. | 1767 * [versionsId] - Part of `parent`. See documentation of `appsId`. |
1760 * | 1768 * |
| 1769 * [pageToken] - Continuation token for fetching the next page of results. |
| 1770 * |
1761 * [pageSize] - Maximum results to return per page. | 1771 * [pageSize] - Maximum results to return per page. |
1762 * | 1772 * |
1763 * [pageToken] - Continuation token for fetching the next page of results. | |
1764 * | |
1765 * Completes with a [ListInstancesResponse]. | 1773 * Completes with a [ListInstancesResponse]. |
1766 * | 1774 * |
1767 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1775 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
1768 * error. | 1776 * error. |
1769 * | 1777 * |
1770 * If the used [http.Client] completes with an error when making a REST call, | 1778 * If the used [http.Client] completes with an error when making a REST call, |
1771 * this method will complete with the same error. | 1779 * this method will complete with the same error. |
1772 */ | 1780 */ |
1773 async.Future<ListInstancesResponse> list(core.String appsId, core.String servi
cesId, core.String versionsId, {core.int pageSize, core.String pageToken}) { | 1781 async.Future<ListInstancesResponse> list(core.String appsId, core.String servi
cesId, core.String versionsId, {core.String pageToken, core.int pageSize}) { |
1774 var _url = null; | 1782 var _url = null; |
1775 var _queryParams = new core.Map(); | 1783 var _queryParams = new core.Map(); |
1776 var _uploadMedia = null; | 1784 var _uploadMedia = null; |
1777 var _uploadOptions = null; | 1785 var _uploadOptions = null; |
1778 var _downloadOptions = commons.DownloadOptions.Metadata; | 1786 var _downloadOptions = commons.DownloadOptions.Metadata; |
1779 var _body = null; | 1787 var _body = null; |
1780 | 1788 |
1781 if (appsId == null) { | 1789 if (appsId == null) { |
1782 throw new core.ArgumentError("Parameter appsId is required."); | 1790 throw new core.ArgumentError("Parameter appsId is required."); |
1783 } | 1791 } |
1784 if (servicesId == null) { | 1792 if (servicesId == null) { |
1785 throw new core.ArgumentError("Parameter servicesId is required."); | 1793 throw new core.ArgumentError("Parameter servicesId is required."); |
1786 } | 1794 } |
1787 if (versionsId == null) { | 1795 if (versionsId == null) { |
1788 throw new core.ArgumentError("Parameter versionsId is required."); | 1796 throw new core.ArgumentError("Parameter versionsId is required."); |
1789 } | 1797 } |
| 1798 if (pageToken != null) { |
| 1799 _queryParams["pageToken"] = [pageToken]; |
| 1800 } |
1790 if (pageSize != null) { | 1801 if (pageSize != null) { |
1791 _queryParams["pageSize"] = ["${pageSize}"]; | 1802 _queryParams["pageSize"] = ["${pageSize}"]; |
1792 } | 1803 } |
1793 if (pageToken != null) { | |
1794 _queryParams["pageToken"] = [pageToken]; | |
1795 } | |
1796 | 1804 |
1797 _url = 'v1beta/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/service
s/' + commons.Escaper.ecapeVariable('$servicesId') + '/versions/' + commons.Esca
per.ecapeVariable('$versionsId') + '/instances'; | 1805 _url = 'v1beta/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/service
s/' + commons.Escaper.ecapeVariable('$servicesId') + '/versions/' + commons.Esca
per.ecapeVariable('$versionsId') + '/instances'; |
1798 | 1806 |
1799 var _response = _requester.request(_url, | 1807 var _response = _requester.request(_url, |
1800 "GET", | 1808 "GET", |
1801 body: _body, | 1809 body: _body, |
1802 queryParams: _queryParams, | 1810 queryParams: _queryParams, |
1803 uploadOptions: _uploadOptions, | 1811 uploadOptions: _uploadOptions, |
1804 uploadMedia: _uploadMedia, | 1812 uploadMedia: _uploadMedia, |
1805 downloadOptions: _downloadOptions); | 1813 downloadOptions: _downloadOptions); |
1806 return _response.then((data) => new ListInstancesResponse.fromJson(data)); | 1814 return _response.then((data) => new ListInstancesResponse.fromJson(data)); |
1807 } | 1815 } |
1808 | 1816 |
1809 } | 1817 } |
1810 | 1818 |
1811 | 1819 |
1812 | 1820 |
1813 /** | 1821 /** |
1814 * Google Cloud Endpoints | 1822 * Google Cloud Endpoints |
1815 * (https://cloud.google.com/appengine/docs/python/endpoints/) configuration for | 1823 * (https://cloud.google.com/appengine/docs/python/endpoints/) configuration for |
1816 * API handlers. | 1824 * API handlers. |
1817 */ | 1825 */ |
1818 class ApiConfigHandler { | 1826 class ApiConfigHandler { |
1819 /** | 1827 /** |
1820 * Action to take when users access resources that require authentication. | 1828 * Action to take when users access resources that require authentication. |
1821 * Defaults to redirect. | 1829 * Defaults to redirect. |
1822 * Possible string values are: | 1830 * Possible string values are: |
1823 * - "AUTH_FAIL_ACTION_UNSPECIFIED" : A AUTH_FAIL_ACTION_UNSPECIFIED. | 1831 * - "AUTH_FAIL_ACTION_UNSPECIFIED" : Not specified. AUTH_FAIL_ACTION_REDIRECT |
1824 * - "AUTH_FAIL_ACTION_REDIRECT" : A AUTH_FAIL_ACTION_REDIRECT. | 1832 * is assumed. |
1825 * - "AUTH_FAIL_ACTION_UNAUTHORIZED" : A AUTH_FAIL_ACTION_UNAUTHORIZED. | 1833 * - "AUTH_FAIL_ACTION_REDIRECT" : Redirects user to "accounts.google.com". |
| 1834 * The user is redirected back to the application URL after signing in or |
| 1835 * creating an account. |
| 1836 * - "AUTH_FAIL_ACTION_UNAUTHORIZED" : Rejects request with a 401 HTTP status |
| 1837 * code and an error message. |
1826 */ | 1838 */ |
1827 core.String authFailAction; | 1839 core.String authFailAction; |
1828 /** | 1840 /** |
1829 * Level of login required to access this resource. Defaults to optional. | 1841 * Level of login required to access this resource. Defaults to optional. |
1830 * Possible string values are: | 1842 * Possible string values are: |
1831 * - "LOGIN_UNSPECIFIED" : A LOGIN_UNSPECIFIED. | 1843 * - "LOGIN_UNSPECIFIED" : Not specified. LOGIN_OPTIONAL is assumed. |
1832 * - "LOGIN_OPTIONAL" : A LOGIN_OPTIONAL. | 1844 * - "LOGIN_OPTIONAL" : Does not require that the user is signed in. |
1833 * - "LOGIN_ADMIN" : A LOGIN_ADMIN. | 1845 * - "LOGIN_ADMIN" : If the user is not signed in, the auth_fail_action is |
1834 * - "LOGIN_REQUIRED" : A LOGIN_REQUIRED. | 1846 * taken. In addition, if the user is not an administrator for the |
| 1847 * application, they are given an error message regardless of |
| 1848 * auth_fail_action. If the user is an administrator, the handler proceeds. |
| 1849 * - "LOGIN_REQUIRED" : If the user has signed in, the handler proceeds |
| 1850 * normally. Otherwise, the auth_fail_action is taken. |
1835 */ | 1851 */ |
1836 core.String login; | 1852 core.String login; |
1837 /** Path to the script from the application root directory. */ | 1853 /** Path to the script from the application root directory. */ |
1838 core.String script; | 1854 core.String script; |
1839 /** | 1855 /** |
1840 * Security (HTTPS) enforcement for this URL. | 1856 * Security (HTTPS) enforcement for this URL. |
1841 * Possible string values are: | 1857 * Possible string values are: |
1842 * - "SECURE_UNSPECIFIED" : A SECURE_UNSPECIFIED. | 1858 * - "SECURE_UNSPECIFIED" : Not specified. |
1843 * - "SECURE_DEFAULT" : A SECURE_DEFAULT. | 1859 * - "SECURE_DEFAULT" : Both HTTP and HTTPS requests with URLs that match the |
1844 * - "SECURE_NEVER" : A SECURE_NEVER. | 1860 * handler succeed without redirects. The application can examine the request |
1845 * - "SECURE_OPTIONAL" : A SECURE_OPTIONAL. | 1861 * to determine which protocol was used, and respond accordingly. |
1846 * - "SECURE_ALWAYS" : A SECURE_ALWAYS. | 1862 * - "SECURE_NEVER" : Requests for a URL that match this handler that use |
| 1863 * HTTPS are automatically redirected to the HTTP equivalent URL. |
| 1864 * - "SECURE_OPTIONAL" : Both HTTP and HTTPS requests with URLs that match the |
| 1865 * handler succeed without redirects. The application can examine the request |
| 1866 * to determine which protocol was used and respond accordingly. |
| 1867 * - "SECURE_ALWAYS" : Requests for a URL that match this handler that do not |
| 1868 * use HTTPS are automatically redirected to the HTTPS URL with the same path. |
| 1869 * Query parameters are reserved for the redirect. |
1847 */ | 1870 */ |
1848 core.String securityLevel; | 1871 core.String securityLevel; |
1849 /** URL to serve the endpoint at. */ | 1872 /** URL to serve the endpoint at. */ |
1850 core.String url; | 1873 core.String url; |
1851 | 1874 |
1852 ApiConfigHandler(); | 1875 ApiConfigHandler(); |
1853 | 1876 |
1854 ApiConfigHandler.fromJson(core.Map _json) { | 1877 ApiConfigHandler.fromJson(core.Map _json) { |
1855 if (_json.containsKey("authFailAction")) { | 1878 if (_json.containsKey("authFailAction")) { |
1856 authFailAction = _json["authFailAction"]; | 1879 authFailAction = _json["authFailAction"]; |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1967 */ | 1990 */ |
1968 core.String locationId; | 1991 core.String locationId; |
1969 /** | 1992 /** |
1970 * Full path to the Application resource in the API. Example: | 1993 * Full path to the Application resource in the API. Example: |
1971 * apps/myapp.@OutputOnly | 1994 * apps/myapp.@OutputOnly |
1972 */ | 1995 */ |
1973 core.String name; | 1996 core.String name; |
1974 /** | 1997 /** |
1975 * Serving status of this application. | 1998 * Serving status of this application. |
1976 * Possible string values are: | 1999 * Possible string values are: |
1977 * - "UNSPECIFIED" : A UNSPECIFIED. | 2000 * - "UNSPECIFIED" : Serving status is unspecified. |
1978 * - "SERVING" : A SERVING. | 2001 * - "SERVING" : Application is serving. |
1979 * - "USER_DISABLED" : A USER_DISABLED. | 2002 * - "USER_DISABLED" : Application has been disabled by the user. |
1980 * - "SYSTEM_DISABLED" : A SYSTEM_DISABLED. | 2003 * - "SYSTEM_DISABLED" : Application has been disabled by the system. |
1981 */ | 2004 */ |
1982 core.String servingStatus; | 2005 core.String servingStatus; |
1983 | 2006 |
1984 Application(); | 2007 Application(); |
1985 | 2008 |
1986 Application.fromJson(core.Map _json) { | 2009 Application.fromJson(core.Map _json) { |
1987 if (_json.containsKey("authDomain")) { | 2010 if (_json.containsKey("authDomain")) { |
1988 authDomain = _json["authDomain"]; | 2011 authDomain = _json["authDomain"]; |
1989 } | 2012 } |
1990 if (_json.containsKey("codeBucket")) { | 2013 if (_json.containsKey("codeBucket")) { |
(...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2389 } | 2412 } |
2390 return _json; | 2413 return _json; |
2391 } | 2414 } |
2392 } | 2415 } |
2393 | 2416 |
2394 /** An SSL certificate obtained from a certificate authority. */ | 2417 /** An SSL certificate obtained from a certificate authority. */ |
2395 class CertificateRawData { | 2418 class CertificateRawData { |
2396 /** | 2419 /** |
2397 * Unencrypted PEM encoded RSA private key. This field is set once on | 2420 * Unencrypted PEM encoded RSA private key. This field is set once on |
2398 * certificate creation and then encrypted. The key size must be 2048 bits or | 2421 * certificate creation and then encrypted. The key size must be 2048 bits or |
2399 * fewer. Must include the header and footer. Example: | 2422 * fewer. Must include the header and footer. Example: <pre> -----BEGIN RSA |
2400 * -----BEGIN RSA PRIVATE KEY----- -----END RSA PRIVATE KEY----- | 2423 * PRIVATE KEY----- <unencrypted_key_value> -----END RSA PRIVATE KEY----- |
2401 * @InputOnly | 2424 * </pre> @InputOnly |
2402 */ | 2425 */ |
2403 core.String privateKey; | 2426 core.String privateKey; |
2404 /** | 2427 /** |
2405 * PEM encoded x.509 public key certificate. This field is set once on | 2428 * PEM encoded x.509 public key certificate. This field is set once on |
2406 * certificate creation. Must include the header and footer. Example: | 2429 * certificate creation. Must include the header and footer. Example: <pre> |
2407 * -----BEGIN CERTIFICATE----- -----END CERTIFICATE----- | 2430 * -----BEGIN CERTIFICATE----- <certificate_value> -----END CERTIFICATE----- |
| 2431 * </pre> |
2408 */ | 2432 */ |
2409 core.String publicCertificate; | 2433 core.String publicCertificate; |
2410 | 2434 |
2411 CertificateRawData(); | 2435 CertificateRawData(); |
2412 | 2436 |
2413 CertificateRawData.fromJson(core.Map _json) { | 2437 CertificateRawData.fromJson(core.Map _json) { |
2414 if (_json.containsKey("privateKey")) { | 2438 if (_json.containsKey("privateKey")) { |
2415 privateKey = _json["privateKey"]; | 2439 privateKey = _json["privateKey"]; |
2416 } | 2440 } |
2417 if (_json.containsKey("publicCertificate")) { | 2441 if (_json.containsKey("publicCertificate")) { |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2490 if (targetUtilization != null) { | 2514 if (targetUtilization != null) { |
2491 _json["targetUtilization"] = targetUtilization; | 2515 _json["targetUtilization"] = targetUtilization; |
2492 } | 2516 } |
2493 return _json; | 2517 return _json; |
2494 } | 2518 } |
2495 } | 2519 } |
2496 | 2520 |
2497 /** Request message for Instances.DebugInstance. */ | 2521 /** Request message for Instances.DebugInstance. */ |
2498 class DebugInstanceRequest { | 2522 class DebugInstanceRequest { |
2499 /** | 2523 /** |
2500 * Public SSH key to add to the instance. Examples: [USERNAME]:ssh-rsa | 2524 * Public SSH key to add to the instance. Examples: |
2501 * [KEY_VALUE] [USERNAME] [USERNAME]:ssh-rsa [KEY_VALUE] google-ssh | 2525 * [USERNAME]:ssh-rsa [KEY_VALUE] [USERNAME] |
| 2526 * [USERNAME]:ssh-rsa [KEY_VALUE] google-ssh |
2502 * {"userName":"[USERNAME]","expireOn":"[EXPIRE_TIME]"}For more information, | 2527 * {"userName":"[USERNAME]","expireOn":"[EXPIRE_TIME]"}For more information, |
2503 * see Adding and Removing SSH Keys | 2528 * see Adding and Removing SSH Keys |
2504 * (https://cloud.google.com/compute/docs/instances/adding-removing-ssh-keys). | 2529 * (https://cloud.google.com/compute/docs/instances/adding-removing-ssh-keys). |
2505 */ | 2530 */ |
2506 core.String sshKey; | 2531 core.String sshKey; |
2507 | 2532 |
2508 DebugInstanceRequest(); | 2533 DebugInstanceRequest(); |
2509 | 2534 |
2510 DebugInstanceRequest.fromJson(core.Map _json) { | 2535 DebugInstanceRequest.fromJson(core.Map _json) { |
2511 if (_json.containsKey("sshKey")) { | 2536 if (_json.containsKey("sshKey")) { |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2667 if (sslSettings != null) { | 2692 if (sslSettings != null) { |
2668 _json["sslSettings"] = (sslSettings).toJson(); | 2693 _json["sslSettings"] = (sslSettings).toJson(); |
2669 } | 2694 } |
2670 return _json; | 2695 return _json; |
2671 } | 2696 } |
2672 } | 2697 } |
2673 | 2698 |
2674 /** | 2699 /** |
2675 * A generic empty message that you can re-use to avoid defining duplicated | 2700 * A generic empty message that you can re-use to avoid defining duplicated |
2676 * empty messages in your APIs. A typical example is to use it as the request or | 2701 * empty messages in your APIs. A typical example is to use it as the request or |
2677 * the response type of an API method. For instance: service Foo { rpc | 2702 * the response type of an API method. For instance: |
2678 * Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON | 2703 * service Foo { |
2679 * representation for Empty is empty JSON object {}. | 2704 * rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); |
| 2705 * } |
| 2706 * The JSON representation for Empty is empty JSON object {}. |
2680 */ | 2707 */ |
2681 class Empty { | 2708 class Empty { |
2682 | 2709 |
2683 Empty(); | 2710 Empty(); |
2684 | 2711 |
2685 Empty.fromJson(core.Map _json) { | 2712 Empty.fromJson(core.Map _json) { |
2686 } | 2713 } |
2687 | 2714 |
2688 core.Map toJson() { | 2715 core.Map toJson() { |
2689 var _json = new core.Map(); | 2716 var _json = new core.Map(); |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2731 } | 2758 } |
2732 return _json; | 2759 return _json; |
2733 } | 2760 } |
2734 } | 2761 } |
2735 | 2762 |
2736 /** Custom static error page to be served when an error occurs. */ | 2763 /** Custom static error page to be served when an error occurs. */ |
2737 class ErrorHandler { | 2764 class ErrorHandler { |
2738 /** | 2765 /** |
2739 * Error condition this handler applies to. | 2766 * Error condition this handler applies to. |
2740 * Possible string values are: | 2767 * Possible string values are: |
2741 * - "ERROR_CODE_UNSPECIFIED" : A ERROR_CODE_UNSPECIFIED. | 2768 * - "ERROR_CODE_UNSPECIFIED" : Not specified. ERROR_CODE_DEFAULT is assumed. |
2742 * - "ERROR_CODE_DEFAULT" : A ERROR_CODE_DEFAULT. | 2769 * - "ERROR_CODE_DEFAULT" : All other error types. |
2743 * - "ERROR_CODE_OVER_QUOTA" : A ERROR_CODE_OVER_QUOTA. | 2770 * - "ERROR_CODE_OVER_QUOTA" : Application has exceeded a resource quota. |
2744 * - "ERROR_CODE_DOS_API_DENIAL" : A ERROR_CODE_DOS_API_DENIAL. | 2771 * - "ERROR_CODE_DOS_API_DENIAL" : Client blocked by the application's Denial |
2745 * - "ERROR_CODE_TIMEOUT" : A ERROR_CODE_TIMEOUT. | 2772 * of Service protection configuration. |
| 2773 * - "ERROR_CODE_TIMEOUT" : Deadline reached before the application responds. |
2746 */ | 2774 */ |
2747 core.String errorCode; | 2775 core.String errorCode; |
2748 /** MIME type of file. Defaults to text/html. */ | 2776 /** MIME type of file. Defaults to text/html. */ |
2749 core.String mimeType; | 2777 core.String mimeType; |
2750 /** Static file content to be served for this error. */ | 2778 /** Static file content to be served for this error. */ |
2751 core.String staticFile; | 2779 core.String staticFile; |
2752 | 2780 |
2753 ErrorHandler(); | 2781 ErrorHandler(); |
2754 | 2782 |
2755 ErrorHandler.fromJson(core.Map _json) { | 2783 ErrorHandler.fromJson(core.Map _json) { |
(...skipping 29 matching lines...) Expand all Loading... |
2785 */ | 2813 */ |
2786 class FileInfo { | 2814 class FileInfo { |
2787 /** | 2815 /** |
2788 * The MIME type of the file.Defaults to the value from Google Cloud Storage. | 2816 * The MIME type of the file.Defaults to the value from Google Cloud Storage. |
2789 */ | 2817 */ |
2790 core.String mimeType; | 2818 core.String mimeType; |
2791 /** The SHA1 hash of the file, in hex. */ | 2819 /** The SHA1 hash of the file, in hex. */ |
2792 core.String sha1Sum; | 2820 core.String sha1Sum; |
2793 /** | 2821 /** |
2794 * URL source to use to fetch this file. Must be a URL to a resource in Google | 2822 * URL source to use to fetch this file. Must be a URL to a resource in Google |
2795 * Cloud Storage in the form 'http(s)://storage.googleapis.com//'. | 2823 * Cloud Storage in the form |
| 2824 * 'http(s)://storage.googleapis.com/<bucket>/<object>'. |
2796 */ | 2825 */ |
2797 core.String sourceUrl; | 2826 core.String sourceUrl; |
2798 | 2827 |
2799 FileInfo(); | 2828 FileInfo(); |
2800 | 2829 |
2801 FileInfo.fromJson(core.Map _json) { | 2830 FileInfo.fromJson(core.Map _json) { |
2802 if (_json.containsKey("mimeType")) { | 2831 if (_json.containsKey("mimeType")) { |
2803 mimeType = _json["mimeType"]; | 2832 mimeType = _json["mimeType"]; |
2804 } | 2833 } |
2805 if (_json.containsKey("sha1Sum")) { | 2834 if (_json.containsKey("sha1Sum")) { |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2969 /** | 2998 /** |
2970 * An Instance resource is the computing unit that App Engine uses to | 2999 * An Instance resource is the computing unit that App Engine uses to |
2971 * automatically scale an application. | 3000 * automatically scale an application. |
2972 */ | 3001 */ |
2973 class Instance { | 3002 class Instance { |
2974 /** App Engine release this instance is running on.@OutputOnly */ | 3003 /** App Engine release this instance is running on.@OutputOnly */ |
2975 core.String appEngineRelease; | 3004 core.String appEngineRelease; |
2976 /** | 3005 /** |
2977 * Availability of the instance.@OutputOnly | 3006 * Availability of the instance.@OutputOnly |
2978 * Possible string values are: | 3007 * Possible string values are: |
2979 * - "UNSPECIFIED" : A UNSPECIFIED. | 3008 * - "UNSPECIFIED" |
2980 * - "RESIDENT" : A RESIDENT. | 3009 * - "RESIDENT" |
2981 * - "DYNAMIC" : A DYNAMIC. | 3010 * - "DYNAMIC" |
2982 */ | 3011 */ |
2983 core.String availability; | 3012 core.String availability; |
2984 /** Average latency (ms) over the last minute.@OutputOnly */ | 3013 /** Average latency (ms) over the last minute.@OutputOnly */ |
2985 core.int averageLatency; | 3014 core.int averageLatency; |
2986 /** Number of errors since this instance was started.@OutputOnly */ | 3015 /** Number of errors since this instance was started.@OutputOnly */ |
2987 core.int errors; | 3016 core.int errors; |
2988 /** | 3017 /** |
2989 * Relative name of the instance within the version. Example: | 3018 * Relative name of the instance within the version. Example: |
2990 * instance-1.@OutputOnly | 3019 * instance-1.@OutputOnly |
2991 */ | 3020 */ |
(...skipping 636 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3628 core.String instanceTag; | 3657 core.String instanceTag; |
3629 /** | 3658 /** |
3630 * Google Cloud Platform network where the virtual machines are created. | 3659 * Google Cloud Platform network where the virtual machines are created. |
3631 * Specify the short name, not the resource path.Defaults to default. | 3660 * Specify the short name, not the resource path.Defaults to default. |
3632 */ | 3661 */ |
3633 core.String name; | 3662 core.String name; |
3634 /** | 3663 /** |
3635 * Google Cloud Platform sub-network where the virtual machines are created. | 3664 * Google Cloud Platform sub-network where the virtual machines are created. |
3636 * Specify the short name, not the resource path.If a subnetwork name is | 3665 * Specify the short name, not the resource path.If a subnetwork name is |
3637 * specified, a network name will also be required unless it is for the | 3666 * specified, a network name will also be required unless it is for the |
3638 * default network. If the network the VM instance is being created in is a | 3667 * default network. |
3639 * Legacy network, then the IP address is allocated from the IPv4Range. If the | 3668 * If the network the VM instance is being created in is a Legacy network, |
3640 * network the VM instance is being created in is an auto Subnet Mode Network, | 3669 * then the IP address is allocated from the IPv4Range. |
3641 * then only network name should be specified (not the subnetwork_name) and | 3670 * If the network the VM instance is being created in is an auto Subnet Mode |
3642 * the IP address is created from the IPCidrRange of the subnetwork that | 3671 * Network, then only network name should be specified (not the |
3643 * exists in that zone for that network. If the network the VM instance is | 3672 * subnetwork_name) and the IP address is created from the IPCidrRange of the |
3644 * being created in is a custom Subnet Mode Network, then the subnetwork_name | 3673 * subnetwork that exists in that zone for that network. |
3645 * must be specified and the IP address is created from the IPCidrRange of the | 3674 * If the network the VM instance is being created in is a custom Subnet Mode |
3646 * subnetwork.If specified, the subnetwork must exist in the same region as | 3675 * Network, then the subnetwork_name must be specified and the IP address is |
3647 * the Flex app. | 3676 * created from the IPCidrRange of the subnetwork.If specified, the subnetwork |
| 3677 * must exist in the same region as the Flex app. |
3648 */ | 3678 */ |
3649 core.String subnetworkName; | 3679 core.String subnetworkName; |
3650 | 3680 |
3651 Network(); | 3681 Network(); |
3652 | 3682 |
3653 Network.fromJson(core.Map _json) { | 3683 Network.fromJson(core.Map _json) { |
3654 if (_json.containsKey("forwardedPorts")) { | 3684 if (_json.containsKey("forwardedPorts")) { |
3655 forwardedPorts = _json["forwardedPorts"]; | 3685 forwardedPorts = _json["forwardedPorts"]; |
3656 } | 3686 } |
3657 if (_json.containsKey("instanceTag")) { | 3687 if (_json.containsKey("instanceTag")) { |
(...skipping 626 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4284 */ | 4314 */ |
4285 core.String name; | 4315 core.String name; |
4286 /** | 4316 /** |
4287 * Data for this record. Values vary by record type, as defined in RFC 1035 | 4317 * Data for this record. Values vary by record type, as defined in RFC 1035 |
4288 * (section 5) and RFC 1034 (section 3.6.1). | 4318 * (section 5) and RFC 1034 (section 3.6.1). |
4289 */ | 4319 */ |
4290 core.String rrdata; | 4320 core.String rrdata; |
4291 /** | 4321 /** |
4292 * Resource record type. Example: AAAA. | 4322 * Resource record type. Example: AAAA. |
4293 * Possible string values are: | 4323 * Possible string values are: |
4294 * - "A" : A A. | 4324 * - "A" : An A resource record. Data is an IPv4 address. |
4295 * - "AAAA" : A AAAA. | 4325 * - "AAAA" : An AAAA resource record. Data is an IPv6 address. |
4296 * - "CNAME" : A CNAME. | 4326 * - "CNAME" : A CNAME resource record. Data is a domain name to be aliased. |
4297 */ | 4327 */ |
4298 core.String type; | 4328 core.String type; |
4299 | 4329 |
4300 ResourceRecord(); | 4330 ResourceRecord(); |
4301 | 4331 |
4302 ResourceRecord.fromJson(core.Map _json) { | 4332 ResourceRecord.fromJson(core.Map _json) { |
4303 if (_json.containsKey("name")) { | 4333 if (_json.containsKey("name")) { |
4304 name = _json["name"]; | 4334 name = _json["name"]; |
4305 } | 4335 } |
4306 if (_json.containsKey("rrdata")) { | 4336 if (_json.containsKey("rrdata")) { |
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4567 if (uploadPathRegex != null) { | 4597 if (uploadPathRegex != null) { |
4568 _json["uploadPathRegex"] = uploadPathRegex; | 4598 _json["uploadPathRegex"] = uploadPathRegex; |
4569 } | 4599 } |
4570 return _json; | 4600 return _json; |
4571 } | 4601 } |
4572 } | 4602 } |
4573 | 4603 |
4574 /** | 4604 /** |
4575 * The Status type defines a logical error model that is suitable for different | 4605 * The Status type defines a logical error model that is suitable for different |
4576 * programming environments, including REST APIs and RPC APIs. It is used by | 4606 * programming environments, including REST APIs and RPC APIs. It is used by |
4577 * gRPC (https://github.com/grpc). The error model is designed to be: Simple to | 4607 * gRPC (https://github.com/grpc). The error model is designed to be: |
4578 * use and understand for most users Flexible enough to meet unexpected | 4608 * Simple to use and understand for most users |
4579 * needsOverviewThe Status message contains three pieces of data: error code, | 4609 * Flexible enough to meet unexpected needsOverviewThe Status message contains |
4580 * error message, and error details. The error code should be an enum value of | 4610 * three pieces of data: error code, error message, and error details. The error |
4581 * google.rpc.Code, but it may accept additional error codes if needed. The | 4611 * code should be an enum value of google.rpc.Code, but it may accept additional |
4582 * error message should be a developer-facing English message that helps | 4612 * error codes if needed. The error message should be a developer-facing English |
4583 * developers understand and resolve the error. If a localized user-facing error | 4613 * message that helps developers understand and resolve the error. If a |
4584 * message is needed, put the localized message in the error details or localize | 4614 * localized user-facing error message is needed, put the localized message in |
4585 * it in the client. The optional error details may contain arbitrary | 4615 * the error details or localize it in the client. The optional error details |
4586 * information about the error. There is a predefined set of error detail types | 4616 * may contain arbitrary information about the error. There is a predefined set |
4587 * in the package google.rpc which can be used for common error | 4617 * of error detail types in the package google.rpc which can be used for common |
4588 * conditions.Language mappingThe Status message is the logical representation | 4618 * error conditions.Language mappingThe Status message is the logical |
4589 * of the error model, but it is not necessarily the actual wire format. When | 4619 * representation of the error model, but it is not necessarily the actual wire |
4590 * the Status message is exposed in different client libraries and different | 4620 * format. When the Status message is exposed in different client libraries and |
4591 * wire protocols, it can be mapped differently. For example, it will likely be | 4621 * different wire protocols, it can be mapped differently. For example, it will |
4592 * mapped to some exceptions in Java, but more likely mapped to some error codes | 4622 * likely be mapped to some exceptions in Java, but more likely mapped to some |
4593 * in C.Other usesThe error model and the Status message can be used in a | 4623 * error codes in C.Other usesThe error model and the Status message can be used |
4594 * variety of environments, either with or without APIs, to provide a consistent | 4624 * in a variety of environments, either with or without APIs, to provide a |
4595 * developer experience across different environments.Example uses of this error | 4625 * consistent developer experience across different environments.Example uses of |
4596 * model include: Partial errors. If a service needs to return partial errors to | 4626 * this error model include: |
4597 * the client, it may embed the Status in the normal response to indicate the | 4627 * Partial errors. If a service needs to return partial errors to the client, it |
4598 * partial errors. Workflow errors. A typical workflow has multiple steps. Each | 4628 * may embed the Status in the normal response to indicate the partial errors. |
4599 * step may have a Status message for error reporting purpose. Batch operations. | 4629 * Workflow errors. A typical workflow has multiple steps. Each step may have a |
4600 * If a client uses batch request and batch response, the Status message should | 4630 * Status message for error reporting purpose. |
4601 * be used directly inside batch response, one for each error sub-response. | 4631 * Batch operations. If a client uses batch request and batch response, the |
| 4632 * Status message should be used directly inside batch response, one for each |
| 4633 * error sub-response. |
4602 * Asynchronous operations. If an API call embeds asynchronous operation results | 4634 * Asynchronous operations. If an API call embeds asynchronous operation results |
4603 * in its response, the status of those operations should be represented | 4635 * in its response, the status of those operations should be represented |
4604 * directly using the Status message. Logging. If some API errors are stored in | 4636 * directly using the Status message. |
4605 * logs, the message Status could be used directly after any stripping needed | 4637 * Logging. If some API errors are stored in logs, the message Status could be |
4606 * for security/privacy reasons. | 4638 * used directly after any stripping needed for security/privacy reasons. |
4607 */ | 4639 */ |
4608 class Status { | 4640 class Status { |
4609 /** The status code, which should be an enum value of google.rpc.Code. */ | 4641 /** The status code, which should be an enum value of google.rpc.Code. */ |
4610 core.int code; | 4642 core.int code; |
4611 /** | 4643 /** |
4612 * A list of messages that carry the error details. There will be a common set | 4644 * A list of messages that carry the error details. There will be a common set |
4613 * of message types for APIs to use. | 4645 * of message types for APIs to use. |
4614 * | 4646 * |
4615 * The values for Object must be JSON objects. It can consist of `num`, | 4647 * The values for Object must be JSON objects. It can consist of `num`, |
4616 * `String`, `bool` and `null` as well as `Map` and `List` values. | 4648 * `String`, `bool` and `null` as well as `Map` and `List` values. |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4665 * service is deleted or their traffic allocation is removed. Allocations must | 4697 * service is deleted or their traffic allocation is removed. Allocations must |
4666 * sum to 1. Up to two decimal place precision is supported for IP-based | 4698 * sum to 1. Up to two decimal place precision is supported for IP-based |
4667 * splits and up to three decimal places is supported for cookie-based splits. | 4699 * splits and up to three decimal places is supported for cookie-based splits. |
4668 */ | 4700 */ |
4669 core.Map<core.String, core.double> allocations; | 4701 core.Map<core.String, core.double> allocations; |
4670 /** | 4702 /** |
4671 * Mechanism used to determine which version a request is sent to. The traffic | 4703 * Mechanism used to determine which version a request is sent to. The traffic |
4672 * selection algorithm will be stable for either type until allocations are | 4704 * selection algorithm will be stable for either type until allocations are |
4673 * changed. | 4705 * changed. |
4674 * Possible string values are: | 4706 * Possible string values are: |
4675 * - "UNSPECIFIED" : A UNSPECIFIED. | 4707 * - "UNSPECIFIED" : Diversion method unspecified. |
4676 * - "COOKIE" : A COOKIE. | 4708 * - "COOKIE" : Diversion based on a specially named cookie, "GOOGAPPUID." The |
4677 * - "IP" : A IP. | 4709 * cookie must be set by the application itself or no diversion will occur. |
4678 * - "RANDOM" : A RANDOM. | 4710 * - "IP" : Diversion based on applying the modulus operation to a fingerprint |
| 4711 * of the IP address. |
| 4712 * - "RANDOM" : Diversion based on weighted random assignment. An incoming |
| 4713 * request is randomly routed to a version in the traffic split, with |
| 4714 * probability proportional to the version's traffic share. |
4679 */ | 4715 */ |
4680 core.String shardBy; | 4716 core.String shardBy; |
4681 | 4717 |
4682 TrafficSplit(); | 4718 TrafficSplit(); |
4683 | 4719 |
4684 TrafficSplit.fromJson(core.Map _json) { | 4720 TrafficSplit.fromJson(core.Map _json) { |
4685 if (_json.containsKey("allocations")) { | 4721 if (_json.containsKey("allocations")) { |
4686 allocations = _json["allocations"]; | 4722 allocations = _json["allocations"]; |
4687 } | 4723 } |
4688 if (_json.containsKey("shardBy")) { | 4724 if (_json.containsKey("shardBy")) { |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4755 * handle URLs by executing application code or by serving static files uploaded | 4791 * handle URLs by executing application code or by serving static files uploaded |
4756 * with the version, such as images, CSS, or JavaScript. | 4792 * with the version, such as images, CSS, or JavaScript. |
4757 */ | 4793 */ |
4758 class UrlMap { | 4794 class UrlMap { |
4759 /** Uses API Endpoints to handle requests. */ | 4795 /** Uses API Endpoints to handle requests. */ |
4760 ApiEndpointHandler apiEndpoint; | 4796 ApiEndpointHandler apiEndpoint; |
4761 /** | 4797 /** |
4762 * Action to take when users access resources that require authentication. | 4798 * Action to take when users access resources that require authentication. |
4763 * Defaults to redirect. | 4799 * Defaults to redirect. |
4764 * Possible string values are: | 4800 * Possible string values are: |
4765 * - "AUTH_FAIL_ACTION_UNSPECIFIED" : A AUTH_FAIL_ACTION_UNSPECIFIED. | 4801 * - "AUTH_FAIL_ACTION_UNSPECIFIED" : Not specified. AUTH_FAIL_ACTION_REDIRECT |
4766 * - "AUTH_FAIL_ACTION_REDIRECT" : A AUTH_FAIL_ACTION_REDIRECT. | 4802 * is assumed. |
4767 * - "AUTH_FAIL_ACTION_UNAUTHORIZED" : A AUTH_FAIL_ACTION_UNAUTHORIZED. | 4803 * - "AUTH_FAIL_ACTION_REDIRECT" : Redirects user to "accounts.google.com". |
| 4804 * The user is redirected back to the application URL after signing in or |
| 4805 * creating an account. |
| 4806 * - "AUTH_FAIL_ACTION_UNAUTHORIZED" : Rejects request with a 401 HTTP status |
| 4807 * code and an error message. |
4768 */ | 4808 */ |
4769 core.String authFailAction; | 4809 core.String authFailAction; |
4770 /** | 4810 /** |
4771 * Level of login required to access this resource. | 4811 * Level of login required to access this resource. |
4772 * Possible string values are: | 4812 * Possible string values are: |
4773 * - "LOGIN_UNSPECIFIED" : A LOGIN_UNSPECIFIED. | 4813 * - "LOGIN_UNSPECIFIED" : Not specified. LOGIN_OPTIONAL is assumed. |
4774 * - "LOGIN_OPTIONAL" : A LOGIN_OPTIONAL. | 4814 * - "LOGIN_OPTIONAL" : Does not require that the user is signed in. |
4775 * - "LOGIN_ADMIN" : A LOGIN_ADMIN. | 4815 * - "LOGIN_ADMIN" : If the user is not signed in, the auth_fail_action is |
4776 * - "LOGIN_REQUIRED" : A LOGIN_REQUIRED. | 4816 * taken. In addition, if the user is not an administrator for the |
| 4817 * application, they are given an error message regardless of |
| 4818 * auth_fail_action. If the user is an administrator, the handler proceeds. |
| 4819 * - "LOGIN_REQUIRED" : If the user has signed in, the handler proceeds |
| 4820 * normally. Otherwise, the auth_fail_action is taken. |
4777 */ | 4821 */ |
4778 core.String login; | 4822 core.String login; |
4779 /** | 4823 /** |
4780 * 30x code to use when performing redirects for the secure field. Defaults to | 4824 * 30x code to use when performing redirects for the secure field. Defaults to |
4781 * 302. | 4825 * 302. |
4782 * Possible string values are: | 4826 * Possible string values are: |
4783 * - "REDIRECT_HTTP_RESPONSE_CODE_UNSPECIFIED" : A | 4827 * - "REDIRECT_HTTP_RESPONSE_CODE_UNSPECIFIED" : Not specified. 302 is |
4784 * REDIRECT_HTTP_RESPONSE_CODE_UNSPECIFIED. | 4828 * assumed. |
4785 * - "REDIRECT_HTTP_RESPONSE_CODE_301" : A REDIRECT_HTTP_RESPONSE_CODE_301. | 4829 * - "REDIRECT_HTTP_RESPONSE_CODE_301" : 301 Moved Permanently code. |
4786 * - "REDIRECT_HTTP_RESPONSE_CODE_302" : A REDIRECT_HTTP_RESPONSE_CODE_302. | 4830 * - "REDIRECT_HTTP_RESPONSE_CODE_302" : 302 Moved Temporarily code. |
4787 * - "REDIRECT_HTTP_RESPONSE_CODE_303" : A REDIRECT_HTTP_RESPONSE_CODE_303. | 4831 * - "REDIRECT_HTTP_RESPONSE_CODE_303" : 303 See Other code. |
4788 * - "REDIRECT_HTTP_RESPONSE_CODE_307" : A REDIRECT_HTTP_RESPONSE_CODE_307. | 4832 * - "REDIRECT_HTTP_RESPONSE_CODE_307" : 307 Temporary Redirect code. |
4789 */ | 4833 */ |
4790 core.String redirectHttpResponseCode; | 4834 core.String redirectHttpResponseCode; |
4791 /** Executes a script to handle the request that matches this URL pattern. */ | 4835 /** Executes a script to handle the request that matches this URL pattern. */ |
4792 ScriptHandler script; | 4836 ScriptHandler script; |
4793 /** | 4837 /** |
4794 * Security (HTTPS) enforcement for this URL. | 4838 * Security (HTTPS) enforcement for this URL. |
4795 * Possible string values are: | 4839 * Possible string values are: |
4796 * - "SECURE_UNSPECIFIED" : A SECURE_UNSPECIFIED. | 4840 * - "SECURE_UNSPECIFIED" : Not specified. |
4797 * - "SECURE_DEFAULT" : A SECURE_DEFAULT. | 4841 * - "SECURE_DEFAULT" : Both HTTP and HTTPS requests with URLs that match the |
4798 * - "SECURE_NEVER" : A SECURE_NEVER. | 4842 * handler succeed without redirects. The application can examine the request |
4799 * - "SECURE_OPTIONAL" : A SECURE_OPTIONAL. | 4843 * to determine which protocol was used, and respond accordingly. |
4800 * - "SECURE_ALWAYS" : A SECURE_ALWAYS. | 4844 * - "SECURE_NEVER" : Requests for a URL that match this handler that use |
| 4845 * HTTPS are automatically redirected to the HTTP equivalent URL. |
| 4846 * - "SECURE_OPTIONAL" : Both HTTP and HTTPS requests with URLs that match the |
| 4847 * handler succeed without redirects. The application can examine the request |
| 4848 * to determine which protocol was used and respond accordingly. |
| 4849 * - "SECURE_ALWAYS" : Requests for a URL that match this handler that do not |
| 4850 * use HTTPS are automatically redirected to the HTTPS URL with the same path. |
| 4851 * Query parameters are reserved for the redirect. |
4801 */ | 4852 */ |
4802 core.String securityLevel; | 4853 core.String securityLevel; |
4803 /** Returns the contents of a file, such as an image, as the response. */ | 4854 /** Returns the contents of a file, such as an image, as the response. */ |
4804 StaticFilesHandler staticFiles; | 4855 StaticFilesHandler staticFiles; |
4805 /** | 4856 /** |
4806 * URL prefix. Uses regular expression syntax, which means regexp special | 4857 * URL prefix. Uses regular expression syntax, which means regexp special |
4807 * characters must be escaped, but should not contain groupings. All URLs that | 4858 * characters must be escaped, but should not contain groupings. All URLs that |
4808 * begin with this prefix are handled by this handler, using the portion of | 4859 * begin with this prefix are handled by this handler, using the portion of |
4809 * the URL after the prefix as part of the file path. | 4860 * the URL after the prefix as part of the file path. |
4810 */ | 4861 */ |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4958 * "default", "latest", and any name with the prefix "ah-". | 5009 * "default", "latest", and any name with the prefix "ah-". |
4959 */ | 5010 */ |
4960 core.String id; | 5011 core.String id; |
4961 /** | 5012 /** |
4962 * Before an application can receive email or XMPP messages, the application | 5013 * Before an application can receive email or XMPP messages, the application |
4963 * must be configured to enable the service. | 5014 * must be configured to enable the service. |
4964 */ | 5015 */ |
4965 core.List<core.String> inboundServices; | 5016 core.List<core.String> inboundServices; |
4966 /** | 5017 /** |
4967 * Instance class that is used to run this version. Valid values are: | 5018 * Instance class that is used to run this version. Valid values are: |
4968 * AutomaticScaling: F1, F2, F4, F4_1G ManualScaling or BasicScaling: B1, B2, | 5019 * AutomaticScaling: F1, F2, F4, F4_1G |
4969 * B4, B8, B4_1GDefaults to F1 for AutomaticScaling and B1 for ManualScaling | 5020 * ManualScaling or BasicScaling: B1, B2, B4, B8, B4_1GDefaults to F1 for |
4970 * or BasicScaling. | 5021 * AutomaticScaling and B1 for ManualScaling or BasicScaling. |
4971 */ | 5022 */ |
4972 core.String instanceClass; | 5023 core.String instanceClass; |
4973 /** | 5024 /** |
4974 * Configuration for third-party Python runtime libraries that are required by | 5025 * Configuration for third-party Python runtime libraries that are required by |
4975 * the application.Only returned in GET requests if view=FULL is set. | 5026 * the application.Only returned in GET requests if view=FULL is set. |
4976 */ | 5027 */ |
4977 core.List<Library> libraries; | 5028 core.List<Library> libraries; |
4978 /** | 5029 /** |
4979 * Configures liveness health checking for VM instances. Unhealthy instances | 5030 * Configures liveness health checking for VM instances. Unhealthy instances |
4980 * are stopped and replaced with new instancesOnly returned in GET requests if | 5031 * are stopped and replaced with new instancesOnly returned in GET requests if |
(...skipping 26 matching lines...) Expand all Loading... |
5007 ReadinessCheck readinessCheck; | 5058 ReadinessCheck readinessCheck; |
5008 /** Machine resources for this version. Only applicable for VM runtimes. */ | 5059 /** Machine resources for this version. Only applicable for VM runtimes. */ |
5009 Resources resources; | 5060 Resources resources; |
5010 /** Desired runtime. Example: python27. */ | 5061 /** Desired runtime. Example: python27. */ |
5011 core.String runtime; | 5062 core.String runtime; |
5012 /** | 5063 /** |
5013 * Current serving status of this version. Only the versions with a SERVING | 5064 * Current serving status of this version. Only the versions with a SERVING |
5014 * status create instances and can be billed.SERVING_STATUS_UNSPECIFIED is an | 5065 * status create instances and can be billed.SERVING_STATUS_UNSPECIFIED is an |
5015 * invalid value. Defaults to SERVING. | 5066 * invalid value. Defaults to SERVING. |
5016 * Possible string values are: | 5067 * Possible string values are: |
5017 * - "SERVING_STATUS_UNSPECIFIED" : A SERVING_STATUS_UNSPECIFIED. | 5068 * - "SERVING_STATUS_UNSPECIFIED" : Not specified. |
5018 * - "SERVING" : A SERVING. | 5069 * - "SERVING" : Currently serving. Instances are created according to the |
5019 * - "STOPPED" : A STOPPED. | 5070 * scaling settings of the version. |
| 5071 * - "STOPPED" : Disabled. No instances will be created and the scaling |
| 5072 * settings are ignored until the state of the version changes to SERVING. |
5020 */ | 5073 */ |
5021 core.String servingStatus; | 5074 core.String servingStatus; |
5022 /** Whether multiple requests can be dispatched to this version at once. */ | 5075 /** Whether multiple requests can be dispatched to this version at once. */ |
5023 core.bool threadsafe; | 5076 core.bool threadsafe; |
5024 /** | 5077 /** |
5025 * Serving URL for this version. Example: | 5078 * Serving URL for this version. Example: |
5026 * "https://myversion-dot-myservice-dot-myapp.appspot.com"@OutputOnly | 5079 * "https://myversion-dot-myservice-dot-myapp.appspot.com"@OutputOnly |
5027 */ | 5080 */ |
5028 core.String versionUrl; | 5081 core.String versionUrl; |
5029 /** Whether to deploy this version in a container on a virtual machine. */ | 5082 /** Whether to deploy this version in a container on a virtual machine. */ |
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5269 /** The zip file information for a zip deployment. */ | 5322 /** The zip file information for a zip deployment. */ |
5270 class ZipInfo { | 5323 class ZipInfo { |
5271 /** | 5324 /** |
5272 * An estimate of the number of files in a zip for a zip deployment. If set, | 5325 * An estimate of the number of files in a zip for a zip deployment. If set, |
5273 * must be greater than or equal to the actual number of files. Used for | 5326 * must be greater than or equal to the actual number of files. Used for |
5274 * optimizing performance; if not provided, deployment may be slow. | 5327 * optimizing performance; if not provided, deployment may be slow. |
5275 */ | 5328 */ |
5276 core.int filesCount; | 5329 core.int filesCount; |
5277 /** | 5330 /** |
5278 * URL of the zip file to deploy from. Must be a URL to a resource in Google | 5331 * URL of the zip file to deploy from. Must be a URL to a resource in Google |
5279 * Cloud Storage in the form 'http(s)://storage.googleapis.com//'. | 5332 * Cloud Storage in the form |
| 5333 * 'http(s)://storage.googleapis.com/<bucket>/<object>'. |
5280 */ | 5334 */ |
5281 core.String sourceUrl; | 5335 core.String sourceUrl; |
5282 | 5336 |
5283 ZipInfo(); | 5337 ZipInfo(); |
5284 | 5338 |
5285 ZipInfo.fromJson(core.Map _json) { | 5339 ZipInfo.fromJson(core.Map _json) { |
5286 if (_json.containsKey("filesCount")) { | 5340 if (_json.containsKey("filesCount")) { |
5287 filesCount = _json["filesCount"]; | 5341 filesCount = _json["filesCount"]; |
5288 } | 5342 } |
5289 if (_json.containsKey("sourceUrl")) { | 5343 if (_json.containsKey("sourceUrl")) { |
5290 sourceUrl = _json["sourceUrl"]; | 5344 sourceUrl = _json["sourceUrl"]; |
5291 } | 5345 } |
5292 } | 5346 } |
5293 | 5347 |
5294 core.Map toJson() { | 5348 core.Map toJson() { |
5295 var _json = new core.Map(); | 5349 var _json = new core.Map(); |
5296 if (filesCount != null) { | 5350 if (filesCount != null) { |
5297 _json["filesCount"] = filesCount; | 5351 _json["filesCount"] = filesCount; |
5298 } | 5352 } |
5299 if (sourceUrl != null) { | 5353 if (sourceUrl != null) { |
5300 _json["sourceUrl"] = sourceUrl; | 5354 _json["sourceUrl"] = sourceUrl; |
5301 } | 5355 } |
5302 return _json; | 5356 return _json; |
5303 } | 5357 } |
5304 } | 5358 } |
OLD | NEW |