| 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; |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A
GENT); | 37 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A
GENT); |
| 38 } | 38 } |
| 39 | 39 |
| 40 | 40 |
| 41 class AppsResourceApi { | 41 class AppsResourceApi { |
| 42 final commons.ApiRequester _requester; | 42 final commons.ApiRequester _requester; |
| 43 | 43 |
| 44 AppsAuthorizedCertificatesResourceApi get authorizedCertificates => new AppsAu
thorizedCertificatesResourceApi(_requester); | 44 AppsAuthorizedCertificatesResourceApi get authorizedCertificates => new AppsAu
thorizedCertificatesResourceApi(_requester); |
| 45 AppsAuthorizedDomainsResourceApi get authorizedDomains => new AppsAuthorizedDo
mainsResourceApi(_requester); | 45 AppsAuthorizedDomainsResourceApi get authorizedDomains => new AppsAuthorizedDo
mainsResourceApi(_requester); |
| 46 AppsDomainMappingsResourceApi get domainMappings => new AppsDomainMappingsReso
urceApi(_requester); | 46 AppsDomainMappingsResourceApi get domainMappings => new AppsDomainMappingsReso
urceApi(_requester); |
| 47 AppsFirewallResourceApi get firewall => new AppsFirewallResourceApi(_requester
); |
| 47 AppsLocationsResourceApi get locations => new AppsLocationsResourceApi(_reques
ter); | 48 AppsLocationsResourceApi get locations => new AppsLocationsResourceApi(_reques
ter); |
| 48 AppsOperationsResourceApi get operations => new AppsOperationsResourceApi(_req
uester); | 49 AppsOperationsResourceApi get operations => new AppsOperationsResourceApi(_req
uester); |
| 49 AppsServicesResourceApi get services => new AppsServicesResourceApi(_requester
); | 50 AppsServicesResourceApi get services => new AppsServicesResourceApi(_requester
); |
| 50 | 51 |
| 51 AppsResourceApi(commons.ApiRequester client) : | 52 AppsResourceApi(commons.ApiRequester client) : |
| 52 _requester = client; | 53 _requester = client; |
| 53 | 54 |
| 54 /** | 55 /** |
| 55 * Creates an App Engine application for a Google Cloud Platform project. | 56 * Creates an App Engine application for a Google Cloud Platform project. |
| 56 * Required fields: | 57 * Required fields: |
| (...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 391 } | 392 } |
| 392 | 393 |
| 393 /** | 394 /** |
| 394 * Lists all SSL certificates the user is authorized to administer. | 395 * Lists all SSL certificates the user is authorized to administer. |
| 395 * | 396 * |
| 396 * Request parameters: | 397 * Request parameters: |
| 397 * | 398 * |
| 398 * [appsId] - Part of `parent`. Name of the parent Application resource. | 399 * [appsId] - Part of `parent`. Name of the parent Application resource. |
| 399 * Example: apps/myapp. | 400 * Example: apps/myapp. |
| 400 * | 401 * |
| 402 * [pageToken] - Continuation token for fetching the next page of results. |
| 403 * |
| 401 * [pageSize] - Maximum results to return per page. | 404 * [pageSize] - Maximum results to return per page. |
| 402 * | 405 * |
| 403 * [pageToken] - Continuation token for fetching the next page of results. | |
| 404 * | |
| 405 * Completes with a [ListAuthorizedCertificatesResponse]. | 406 * Completes with a [ListAuthorizedCertificatesResponse]. |
| 406 * | 407 * |
| 407 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 408 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 408 * error. | 409 * error. |
| 409 * | 410 * |
| 410 * If the used [http.Client] completes with an error when making a REST call, | 411 * If the used [http.Client] completes with an error when making a REST call, |
| 411 * this method will complete with the same error. | 412 * this method will complete with the same error. |
| 412 */ | 413 */ |
| 413 async.Future<ListAuthorizedCertificatesResponse> list(core.String appsId, {cor
e.int pageSize, core.String pageToken}) { | 414 async.Future<ListAuthorizedCertificatesResponse> list(core.String appsId, {cor
e.String pageToken, core.int pageSize}) { |
| 414 var _url = null; | 415 var _url = null; |
| 415 var _queryParams = new core.Map(); | 416 var _queryParams = new core.Map(); |
| 416 var _uploadMedia = null; | 417 var _uploadMedia = null; |
| 417 var _uploadOptions = null; | 418 var _uploadOptions = null; |
| 418 var _downloadOptions = commons.DownloadOptions.Metadata; | 419 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 419 var _body = null; | 420 var _body = null; |
| 420 | 421 |
| 421 if (appsId == null) { | 422 if (appsId == null) { |
| 422 throw new core.ArgumentError("Parameter appsId is required."); | 423 throw new core.ArgumentError("Parameter appsId is required."); |
| 423 } | 424 } |
| 425 if (pageToken != null) { |
| 426 _queryParams["pageToken"] = [pageToken]; |
| 427 } |
| 424 if (pageSize != null) { | 428 if (pageSize != null) { |
| 425 _queryParams["pageSize"] = ["${pageSize}"]; | 429 _queryParams["pageSize"] = ["${pageSize}"]; |
| 426 } | 430 } |
| 427 if (pageToken != null) { | |
| 428 _queryParams["pageToken"] = [pageToken]; | |
| 429 } | |
| 430 | 431 |
| 431 _url = 'v1beta/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/authori
zedCertificates'; | 432 _url = 'v1beta/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/authori
zedCertificates'; |
| 432 | 433 |
| 433 var _response = _requester.request(_url, | 434 var _response = _requester.request(_url, |
| 434 "GET", | 435 "GET", |
| 435 body: _body, | 436 body: _body, |
| 436 queryParams: _queryParams, | 437 queryParams: _queryParams, |
| 437 uploadOptions: _uploadOptions, | 438 uploadOptions: _uploadOptions, |
| 438 uploadMedia: _uploadMedia, | 439 uploadMedia: _uploadMedia, |
| 439 downloadOptions: _downloadOptions); | 440 downloadOptions: _downloadOptions); |
| (...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 708 } | 709 } |
| 709 | 710 |
| 710 /** | 711 /** |
| 711 * Lists the domain mappings on an application. | 712 * Lists the domain mappings on an application. |
| 712 * | 713 * |
| 713 * Request parameters: | 714 * Request parameters: |
| 714 * | 715 * |
| 715 * [appsId] - Part of `parent`. Name of the parent Application resource. | 716 * [appsId] - Part of `parent`. Name of the parent Application resource. |
| 716 * Example: apps/myapp. | 717 * Example: apps/myapp. |
| 717 * | 718 * |
| 719 * [pageToken] - Continuation token for fetching the next page of results. |
| 720 * |
| 718 * [pageSize] - Maximum results to return per page. | 721 * [pageSize] - Maximum results to return per page. |
| 719 * | 722 * |
| 720 * [pageToken] - Continuation token for fetching the next page of results. | |
| 721 * | |
| 722 * Completes with a [ListDomainMappingsResponse]. | 723 * Completes with a [ListDomainMappingsResponse]. |
| 723 * | 724 * |
| 724 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 725 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 725 * error. | 726 * error. |
| 726 * | 727 * |
| 727 * If the used [http.Client] completes with an error when making a REST call, | 728 * If the used [http.Client] completes with an error when making a REST call, |
| 728 * this method will complete with the same error. | 729 * this method will complete with the same error. |
| 729 */ | 730 */ |
| 730 async.Future<ListDomainMappingsResponse> list(core.String appsId, {core.int pa
geSize, core.String pageToken}) { | 731 async.Future<ListDomainMappingsResponse> list(core.String appsId, {core.String
pageToken, core.int pageSize}) { |
| 731 var _url = null; | 732 var _url = null; |
| 732 var _queryParams = new core.Map(); | 733 var _queryParams = new core.Map(); |
| 733 var _uploadMedia = null; | 734 var _uploadMedia = null; |
| 734 var _uploadOptions = null; | 735 var _uploadOptions = null; |
| 735 var _downloadOptions = commons.DownloadOptions.Metadata; | 736 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 736 var _body = null; | 737 var _body = null; |
| 737 | 738 |
| 738 if (appsId == null) { | 739 if (appsId == null) { |
| 739 throw new core.ArgumentError("Parameter appsId is required."); | 740 throw new core.ArgumentError("Parameter appsId is required."); |
| 740 } | 741 } |
| 742 if (pageToken != null) { |
| 743 _queryParams["pageToken"] = [pageToken]; |
| 744 } |
| 741 if (pageSize != null) { | 745 if (pageSize != null) { |
| 742 _queryParams["pageSize"] = ["${pageSize}"]; | 746 _queryParams["pageSize"] = ["${pageSize}"]; |
| 743 } | 747 } |
| 744 if (pageToken != null) { | |
| 745 _queryParams["pageToken"] = [pageToken]; | |
| 746 } | |
| 747 | 748 |
| 748 _url = 'v1beta/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/domainM
appings'; | 749 _url = 'v1beta/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/domainM
appings'; |
| 749 | 750 |
| 750 var _response = _requester.request(_url, | 751 var _response = _requester.request(_url, |
| 751 "GET", | 752 "GET", |
| 752 body: _body, | 753 body: _body, |
| 753 queryParams: _queryParams, | 754 queryParams: _queryParams, |
| 754 uploadOptions: _uploadOptions, | 755 uploadOptions: _uploadOptions, |
| 755 uploadMedia: _uploadMedia, | 756 uploadMedia: _uploadMedia, |
| 756 downloadOptions: _downloadOptions); | 757 downloadOptions: _downloadOptions); |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 811 queryParams: _queryParams, | 812 queryParams: _queryParams, |
| 812 uploadOptions: _uploadOptions, | 813 uploadOptions: _uploadOptions, |
| 813 uploadMedia: _uploadMedia, | 814 uploadMedia: _uploadMedia, |
| 814 downloadOptions: _downloadOptions); | 815 downloadOptions: _downloadOptions); |
| 815 return _response.then((data) => new Operation.fromJson(data)); | 816 return _response.then((data) => new Operation.fromJson(data)); |
| 816 } | 817 } |
| 817 | 818 |
| 818 } | 819 } |
| 819 | 820 |
| 820 | 821 |
| 822 class AppsFirewallResourceApi { |
| 823 final commons.ApiRequester _requester; |
| 824 |
| 825 AppsFirewallIngressRulesResourceApi get ingressRules => new AppsFirewallIngres
sRulesResourceApi(_requester); |
| 826 |
| 827 AppsFirewallResourceApi(commons.ApiRequester client) : |
| 828 _requester = client; |
| 829 } |
| 830 |
| 831 |
| 832 class AppsFirewallIngressRulesResourceApi { |
| 833 final commons.ApiRequester _requester; |
| 834 |
| 835 AppsFirewallIngressRulesResourceApi(commons.ApiRequester client) : |
| 836 _requester = client; |
| 837 |
| 838 /** |
| 839 * Replaces the entire firewall ruleset in one bulk operation. This overrides |
| 840 * and replaces the rules of an existing firewall with the new rules.If the |
| 841 * final rule does not match traffic with the '*' wildcard IP range, then an |
| 842 * "allow all" rule is explicitly added to the end of the list. |
| 843 * |
| 844 * [request] - The metadata request object. |
| 845 * |
| 846 * Request parameters: |
| 847 * |
| 848 * [appsId] - Part of `name`. Name of the Firewall collection to set. Example: |
| 849 * apps/myapp/firewall/ingressRules. |
| 850 * |
| 851 * Completes with a [BatchUpdateIngressRulesResponse]. |
| 852 * |
| 853 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 854 * error. |
| 855 * |
| 856 * If the used [http.Client] completes with an error when making a REST call, |
| 857 * this method will complete with the same error. |
| 858 */ |
| 859 async.Future<BatchUpdateIngressRulesResponse> batchUpdate(BatchUpdateIngressRu
lesRequest request, core.String appsId) { |
| 860 var _url = null; |
| 861 var _queryParams = new core.Map(); |
| 862 var _uploadMedia = null; |
| 863 var _uploadOptions = null; |
| 864 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 865 var _body = null; |
| 866 |
| 867 if (request != null) { |
| 868 _body = convert.JSON.encode((request).toJson()); |
| 869 } |
| 870 if (appsId == null) { |
| 871 throw new core.ArgumentError("Parameter appsId is required."); |
| 872 } |
| 873 |
| 874 _url = 'v1beta/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/firewal
l/ingressRules:batchUpdate'; |
| 875 |
| 876 var _response = _requester.request(_url, |
| 877 "POST", |
| 878 body: _body, |
| 879 queryParams: _queryParams, |
| 880 uploadOptions: _uploadOptions, |
| 881 uploadMedia: _uploadMedia, |
| 882 downloadOptions: _downloadOptions); |
| 883 return _response.then((data) => new BatchUpdateIngressRulesResponse.fromJson
(data)); |
| 884 } |
| 885 |
| 886 /** |
| 887 * Creates a firewall rule for the application. |
| 888 * |
| 889 * [request] - The metadata request object. |
| 890 * |
| 891 * Request parameters: |
| 892 * |
| 893 * [appsId] - Part of `parent`. Name of the parent Firewall collection in |
| 894 * which to create a new rule. Example: apps/myapp/firewall/ingressRules. |
| 895 * |
| 896 * Completes with a [FirewallRule]. |
| 897 * |
| 898 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 899 * error. |
| 900 * |
| 901 * If the used [http.Client] completes with an error when making a REST call, |
| 902 * this method will complete with the same error. |
| 903 */ |
| 904 async.Future<FirewallRule> create(FirewallRule request, core.String appsId) { |
| 905 var _url = null; |
| 906 var _queryParams = new core.Map(); |
| 907 var _uploadMedia = null; |
| 908 var _uploadOptions = null; |
| 909 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 910 var _body = null; |
| 911 |
| 912 if (request != null) { |
| 913 _body = convert.JSON.encode((request).toJson()); |
| 914 } |
| 915 if (appsId == null) { |
| 916 throw new core.ArgumentError("Parameter appsId is required."); |
| 917 } |
| 918 |
| 919 _url = 'v1beta/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/firewal
l/ingressRules'; |
| 920 |
| 921 var _response = _requester.request(_url, |
| 922 "POST", |
| 923 body: _body, |
| 924 queryParams: _queryParams, |
| 925 uploadOptions: _uploadOptions, |
| 926 uploadMedia: _uploadMedia, |
| 927 downloadOptions: _downloadOptions); |
| 928 return _response.then((data) => new FirewallRule.fromJson(data)); |
| 929 } |
| 930 |
| 931 /** |
| 932 * Deletes the specified firewall rule. |
| 933 * |
| 934 * Request parameters: |
| 935 * |
| 936 * [appsId] - Part of `name`. Name of the Firewall resource to delete. |
| 937 * Example: apps/myapp/firewall/ingressRules/100. |
| 938 * |
| 939 * [ingressRulesId] - Part of `name`. See documentation of `appsId`. |
| 940 * |
| 941 * Completes with a [Empty]. |
| 942 * |
| 943 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 944 * error. |
| 945 * |
| 946 * If the used [http.Client] completes with an error when making a REST call, |
| 947 * this method will complete with the same error. |
| 948 */ |
| 949 async.Future<Empty> delete(core.String appsId, core.String ingressRulesId) { |
| 950 var _url = null; |
| 951 var _queryParams = new core.Map(); |
| 952 var _uploadMedia = null; |
| 953 var _uploadOptions = null; |
| 954 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 955 var _body = null; |
| 956 |
| 957 if (appsId == null) { |
| 958 throw new core.ArgumentError("Parameter appsId is required."); |
| 959 } |
| 960 if (ingressRulesId == null) { |
| 961 throw new core.ArgumentError("Parameter ingressRulesId is required."); |
| 962 } |
| 963 |
| 964 _url = 'v1beta/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/firewal
l/ingressRules/' + commons.Escaper.ecapeVariable('$ingressRulesId'); |
| 965 |
| 966 var _response = _requester.request(_url, |
| 967 "DELETE", |
| 968 body: _body, |
| 969 queryParams: _queryParams, |
| 970 uploadOptions: _uploadOptions, |
| 971 uploadMedia: _uploadMedia, |
| 972 downloadOptions: _downloadOptions); |
| 973 return _response.then((data) => new Empty.fromJson(data)); |
| 974 } |
| 975 |
| 976 /** |
| 977 * Gets the specified firewall rule. |
| 978 * |
| 979 * Request parameters: |
| 980 * |
| 981 * [appsId] - Part of `name`. Name of the Firewall resource to retrieve. |
| 982 * Example: apps/myapp/firewall/ingressRules/100. |
| 983 * |
| 984 * [ingressRulesId] - Part of `name`. See documentation of `appsId`. |
| 985 * |
| 986 * Completes with a [FirewallRule]. |
| 987 * |
| 988 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 989 * error. |
| 990 * |
| 991 * If the used [http.Client] completes with an error when making a REST call, |
| 992 * this method will complete with the same error. |
| 993 */ |
| 994 async.Future<FirewallRule> get(core.String appsId, core.String ingressRulesId)
{ |
| 995 var _url = null; |
| 996 var _queryParams = new core.Map(); |
| 997 var _uploadMedia = null; |
| 998 var _uploadOptions = null; |
| 999 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1000 var _body = null; |
| 1001 |
| 1002 if (appsId == null) { |
| 1003 throw new core.ArgumentError("Parameter appsId is required."); |
| 1004 } |
| 1005 if (ingressRulesId == null) { |
| 1006 throw new core.ArgumentError("Parameter ingressRulesId is required."); |
| 1007 } |
| 1008 |
| 1009 _url = 'v1beta/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/firewal
l/ingressRules/' + commons.Escaper.ecapeVariable('$ingressRulesId'); |
| 1010 |
| 1011 var _response = _requester.request(_url, |
| 1012 "GET", |
| 1013 body: _body, |
| 1014 queryParams: _queryParams, |
| 1015 uploadOptions: _uploadOptions, |
| 1016 uploadMedia: _uploadMedia, |
| 1017 downloadOptions: _downloadOptions); |
| 1018 return _response.then((data) => new FirewallRule.fromJson(data)); |
| 1019 } |
| 1020 |
| 1021 /** |
| 1022 * Lists the firewall rules of an application. |
| 1023 * |
| 1024 * Request parameters: |
| 1025 * |
| 1026 * [appsId] - Part of `parent`. Name of the Firewall collection to retrieve. |
| 1027 * Example: apps/myapp/firewall/ingressRules. |
| 1028 * |
| 1029 * [pageToken] - Continuation token for fetching the next page of results. |
| 1030 * |
| 1031 * [pageSize] - Maximum results to return per page. |
| 1032 * |
| 1033 * [matchingAddress] - A valid IP Address. If set, only rules matching this |
| 1034 * address will be returned. The first returned rule will be the rule that |
| 1035 * fires on requests from this IP. |
| 1036 * |
| 1037 * Completes with a [ListIngressRulesResponse]. |
| 1038 * |
| 1039 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1040 * error. |
| 1041 * |
| 1042 * If the used [http.Client] completes with an error when making a REST call, |
| 1043 * this method will complete with the same error. |
| 1044 */ |
| 1045 async.Future<ListIngressRulesResponse> list(core.String appsId, {core.String p
ageToken, core.int pageSize, core.String matchingAddress}) { |
| 1046 var _url = null; |
| 1047 var _queryParams = new core.Map(); |
| 1048 var _uploadMedia = null; |
| 1049 var _uploadOptions = null; |
| 1050 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1051 var _body = null; |
| 1052 |
| 1053 if (appsId == null) { |
| 1054 throw new core.ArgumentError("Parameter appsId is required."); |
| 1055 } |
| 1056 if (pageToken != null) { |
| 1057 _queryParams["pageToken"] = [pageToken]; |
| 1058 } |
| 1059 if (pageSize != null) { |
| 1060 _queryParams["pageSize"] = ["${pageSize}"]; |
| 1061 } |
| 1062 if (matchingAddress != null) { |
| 1063 _queryParams["matchingAddress"] = [matchingAddress]; |
| 1064 } |
| 1065 |
| 1066 _url = 'v1beta/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/firewal
l/ingressRules'; |
| 1067 |
| 1068 var _response = _requester.request(_url, |
| 1069 "GET", |
| 1070 body: _body, |
| 1071 queryParams: _queryParams, |
| 1072 uploadOptions: _uploadOptions, |
| 1073 uploadMedia: _uploadMedia, |
| 1074 downloadOptions: _downloadOptions); |
| 1075 return _response.then((data) => new ListIngressRulesResponse.fromJson(data))
; |
| 1076 } |
| 1077 |
| 1078 /** |
| 1079 * Updates the specified firewall rule. |
| 1080 * |
| 1081 * [request] - The metadata request object. |
| 1082 * |
| 1083 * Request parameters: |
| 1084 * |
| 1085 * [appsId] - Part of `name`. Name of the Firewall resource to update. |
| 1086 * Example: apps/myapp/firewall/ingressRules/100. |
| 1087 * |
| 1088 * [ingressRulesId] - Part of `name`. See documentation of `appsId`. |
| 1089 * |
| 1090 * [updateMask] - Standard field mask for the set of fields to be updated. |
| 1091 * |
| 1092 * Completes with a [FirewallRule]. |
| 1093 * |
| 1094 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1095 * error. |
| 1096 * |
| 1097 * If the used [http.Client] completes with an error when making a REST call, |
| 1098 * this method will complete with the same error. |
| 1099 */ |
| 1100 async.Future<FirewallRule> patch(FirewallRule request, core.String appsId, cor
e.String ingressRulesId, {core.String updateMask}) { |
| 1101 var _url = null; |
| 1102 var _queryParams = new core.Map(); |
| 1103 var _uploadMedia = null; |
| 1104 var _uploadOptions = null; |
| 1105 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1106 var _body = null; |
| 1107 |
| 1108 if (request != null) { |
| 1109 _body = convert.JSON.encode((request).toJson()); |
| 1110 } |
| 1111 if (appsId == null) { |
| 1112 throw new core.ArgumentError("Parameter appsId is required."); |
| 1113 } |
| 1114 if (ingressRulesId == null) { |
| 1115 throw new core.ArgumentError("Parameter ingressRulesId is required."); |
| 1116 } |
| 1117 if (updateMask != null) { |
| 1118 _queryParams["updateMask"] = [updateMask]; |
| 1119 } |
| 1120 |
| 1121 _url = 'v1beta/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/firewal
l/ingressRules/' + commons.Escaper.ecapeVariable('$ingressRulesId'); |
| 1122 |
| 1123 var _response = _requester.request(_url, |
| 1124 "PATCH", |
| 1125 body: _body, |
| 1126 queryParams: _queryParams, |
| 1127 uploadOptions: _uploadOptions, |
| 1128 uploadMedia: _uploadMedia, |
| 1129 downloadOptions: _downloadOptions); |
| 1130 return _response.then((data) => new FirewallRule.fromJson(data)); |
| 1131 } |
| 1132 |
| 1133 } |
| 1134 |
| 1135 |
| 821 class AppsLocationsResourceApi { | 1136 class AppsLocationsResourceApi { |
| 822 final commons.ApiRequester _requester; | 1137 final commons.ApiRequester _requester; |
| 823 | 1138 |
| 824 AppsLocationsResourceApi(commons.ApiRequester client) : | 1139 AppsLocationsResourceApi(commons.ApiRequester client) : |
| 825 _requester = client; | 1140 _requester = client; |
| 826 | 1141 |
| 827 /** | 1142 /** |
| 828 * Get information about a location. | 1143 * Get information about a location. |
| 829 * | 1144 * |
| 830 * Request parameters: | 1145 * Request parameters: |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 869 } | 1184 } |
| 870 | 1185 |
| 871 /** | 1186 /** |
| 872 * Lists information about the supported locations for this service. | 1187 * Lists information about the supported locations for this service. |
| 873 * | 1188 * |
| 874 * Request parameters: | 1189 * Request parameters: |
| 875 * | 1190 * |
| 876 * [appsId] - Part of `name`. The resource that owns the locations collection, | 1191 * [appsId] - Part of `name`. The resource that owns the locations collection, |
| 877 * if applicable. | 1192 * if applicable. |
| 878 * | 1193 * |
| 1194 * [pageToken] - The standard list page token. |
| 1195 * |
| 879 * [pageSize] - The standard list page size. | 1196 * [pageSize] - The standard list page size. |
| 880 * | 1197 * |
| 881 * [filter] - The standard list filter. | 1198 * [filter] - The standard list filter. |
| 882 * | 1199 * |
| 883 * [pageToken] - The standard list page token. | |
| 884 * | |
| 885 * Completes with a [ListLocationsResponse]. | 1200 * Completes with a [ListLocationsResponse]. |
| 886 * | 1201 * |
| 887 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1202 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 888 * error. | 1203 * error. |
| 889 * | 1204 * |
| 890 * If the used [http.Client] completes with an error when making a REST call, | 1205 * If the used [http.Client] completes with an error when making a REST call, |
| 891 * this method will complete with the same error. | 1206 * this method will complete with the same error. |
| 892 */ | 1207 */ |
| 893 async.Future<ListLocationsResponse> list(core.String appsId, {core.int pageSiz
e, core.String filter, core.String pageToken}) { | 1208 async.Future<ListLocationsResponse> list(core.String appsId, {core.String page
Token, core.int pageSize, core.String filter}) { |
| 894 var _url = null; | 1209 var _url = null; |
| 895 var _queryParams = new core.Map(); | 1210 var _queryParams = new core.Map(); |
| 896 var _uploadMedia = null; | 1211 var _uploadMedia = null; |
| 897 var _uploadOptions = null; | 1212 var _uploadOptions = null; |
| 898 var _downloadOptions = commons.DownloadOptions.Metadata; | 1213 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 899 var _body = null; | 1214 var _body = null; |
| 900 | 1215 |
| 901 if (appsId == null) { | 1216 if (appsId == null) { |
| 902 throw new core.ArgumentError("Parameter appsId is required."); | 1217 throw new core.ArgumentError("Parameter appsId is required."); |
| 903 } | 1218 } |
| 1219 if (pageToken != null) { |
| 1220 _queryParams["pageToken"] = [pageToken]; |
| 1221 } |
| 904 if (pageSize != null) { | 1222 if (pageSize != null) { |
| 905 _queryParams["pageSize"] = ["${pageSize}"]; | 1223 _queryParams["pageSize"] = ["${pageSize}"]; |
| 906 } | 1224 } |
| 907 if (filter != null) { | 1225 if (filter != null) { |
| 908 _queryParams["filter"] = [filter]; | 1226 _queryParams["filter"] = [filter]; |
| 909 } | 1227 } |
| 910 if (pageToken != null) { | |
| 911 _queryParams["pageToken"] = [pageToken]; | |
| 912 } | |
| 913 | 1228 |
| 914 _url = 'v1beta/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/locatio
ns'; | 1229 _url = 'v1beta/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/locatio
ns'; |
| 915 | 1230 |
| 916 var _response = _requester.request(_url, | 1231 var _response = _requester.request(_url, |
| 917 "GET", | 1232 "GET", |
| 918 body: _body, | 1233 body: _body, |
| 919 queryParams: _queryParams, | 1234 queryParams: _queryParams, |
| 920 uploadOptions: _uploadOptions, | 1235 uploadOptions: _uploadOptions, |
| 921 uploadMedia: _uploadMedia, | 1236 uploadMedia: _uploadMedia, |
| 922 downloadOptions: _downloadOptions); | 1237 downloadOptions: _downloadOptions); |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 986 * binding, API services can add a binding such as "/v1/{name=users / * | 1301 * binding, API services can add a binding such as "/v1/{name=users / * |
| 987 * }/operations" to their service configuration. For backwards compatibility, | 1302 * }/operations" to their service configuration. For backwards compatibility, |
| 988 * the default name includes the operations collection id, however overriding | 1303 * the default name includes the operations collection id, however overriding |
| 989 * users must ensure the name binding is the parent resource, without the | 1304 * users must ensure the name binding is the parent resource, without the |
| 990 * operations collection id. | 1305 * operations collection id. |
| 991 * | 1306 * |
| 992 * Request parameters: | 1307 * Request parameters: |
| 993 * | 1308 * |
| 994 * [appsId] - Part of `name`. The name of the operation's parent resource. | 1309 * [appsId] - Part of `name`. The name of the operation's parent resource. |
| 995 * | 1310 * |
| 1311 * [pageSize] - The standard list page size. |
| 1312 * |
| 996 * [filter] - The standard list filter. | 1313 * [filter] - The standard list filter. |
| 997 * | 1314 * |
| 998 * [pageToken] - The standard list page token. | 1315 * [pageToken] - The standard list page token. |
| 999 * | 1316 * |
| 1000 * [pageSize] - The standard list page size. | |
| 1001 * | |
| 1002 * Completes with a [ListOperationsResponse]. | 1317 * Completes with a [ListOperationsResponse]. |
| 1003 * | 1318 * |
| 1004 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1319 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1005 * error. | 1320 * error. |
| 1006 * | 1321 * |
| 1007 * If the used [http.Client] completes with an error when making a REST call, | 1322 * If the used [http.Client] completes with an error when making a REST call, |
| 1008 * this method will complete with the same error. | 1323 * this method will complete with the same error. |
| 1009 */ | 1324 */ |
| 1010 async.Future<ListOperationsResponse> list(core.String appsId, {core.String fil
ter, core.String pageToken, core.int pageSize}) { | 1325 async.Future<ListOperationsResponse> list(core.String appsId, {core.int pageSi
ze, core.String filter, core.String pageToken}) { |
| 1011 var _url = null; | 1326 var _url = null; |
| 1012 var _queryParams = new core.Map(); | 1327 var _queryParams = new core.Map(); |
| 1013 var _uploadMedia = null; | 1328 var _uploadMedia = null; |
| 1014 var _uploadOptions = null; | 1329 var _uploadOptions = null; |
| 1015 var _downloadOptions = commons.DownloadOptions.Metadata; | 1330 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1016 var _body = null; | 1331 var _body = null; |
| 1017 | 1332 |
| 1018 if (appsId == null) { | 1333 if (appsId == null) { |
| 1019 throw new core.ArgumentError("Parameter appsId is required."); | 1334 throw new core.ArgumentError("Parameter appsId is required."); |
| 1020 } | 1335 } |
| 1336 if (pageSize != null) { |
| 1337 _queryParams["pageSize"] = ["${pageSize}"]; |
| 1338 } |
| 1021 if (filter != null) { | 1339 if (filter != null) { |
| 1022 _queryParams["filter"] = [filter]; | 1340 _queryParams["filter"] = [filter]; |
| 1023 } | 1341 } |
| 1024 if (pageToken != null) { | 1342 if (pageToken != null) { |
| 1025 _queryParams["pageToken"] = [pageToken]; | 1343 _queryParams["pageToken"] = [pageToken]; |
| 1026 } | 1344 } |
| 1027 if (pageSize != null) { | |
| 1028 _queryParams["pageSize"] = ["${pageSize}"]; | |
| 1029 } | |
| 1030 | 1345 |
| 1031 _url = 'v1beta/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/operati
ons'; | 1346 _url = 'v1beta/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/operati
ons'; |
| 1032 | 1347 |
| 1033 var _response = _requester.request(_url, | 1348 var _response = _requester.request(_url, |
| 1034 "GET", | 1349 "GET", |
| 1035 body: _body, | 1350 body: _body, |
| 1036 queryParams: _queryParams, | 1351 queryParams: _queryParams, |
| 1037 uploadOptions: _uploadOptions, | 1352 uploadOptions: _uploadOptions, |
| 1038 uploadMedia: _uploadMedia, | 1353 uploadMedia: _uploadMedia, |
| 1039 downloadOptions: _downloadOptions); | 1354 downloadOptions: _downloadOptions); |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1142 } | 1457 } |
| 1143 | 1458 |
| 1144 /** | 1459 /** |
| 1145 * Lists all the services in the application. | 1460 * Lists all the services in the application. |
| 1146 * | 1461 * |
| 1147 * Request parameters: | 1462 * Request parameters: |
| 1148 * | 1463 * |
| 1149 * [appsId] - Part of `parent`. Name of the parent Application resource. | 1464 * [appsId] - Part of `parent`. Name of the parent Application resource. |
| 1150 * Example: apps/myapp. | 1465 * Example: apps/myapp. |
| 1151 * | 1466 * |
| 1467 * [pageToken] - Continuation token for fetching the next page of results. |
| 1468 * |
| 1152 * [pageSize] - Maximum results to return per page. | 1469 * [pageSize] - Maximum results to return per page. |
| 1153 * | 1470 * |
| 1154 * [pageToken] - Continuation token for fetching the next page of results. | |
| 1155 * | |
| 1156 * Completes with a [ListServicesResponse]. | 1471 * Completes with a [ListServicesResponse]. |
| 1157 * | 1472 * |
| 1158 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1473 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1159 * error. | 1474 * error. |
| 1160 * | 1475 * |
| 1161 * If the used [http.Client] completes with an error when making a REST call, | 1476 * If the used [http.Client] completes with an error when making a REST call, |
| 1162 * this method will complete with the same error. | 1477 * this method will complete with the same error. |
| 1163 */ | 1478 */ |
| 1164 async.Future<ListServicesResponse> list(core.String appsId, {core.int pageSize
, core.String pageToken}) { | 1479 async.Future<ListServicesResponse> list(core.String appsId, {core.String pageT
oken, core.int pageSize}) { |
| 1165 var _url = null; | 1480 var _url = null; |
| 1166 var _queryParams = new core.Map(); | 1481 var _queryParams = new core.Map(); |
| 1167 var _uploadMedia = null; | 1482 var _uploadMedia = null; |
| 1168 var _uploadOptions = null; | 1483 var _uploadOptions = null; |
| 1169 var _downloadOptions = commons.DownloadOptions.Metadata; | 1484 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1170 var _body = null; | 1485 var _body = null; |
| 1171 | 1486 |
| 1172 if (appsId == null) { | 1487 if (appsId == null) { |
| 1173 throw new core.ArgumentError("Parameter appsId is required."); | 1488 throw new core.ArgumentError("Parameter appsId is required."); |
| 1174 } | 1489 } |
| 1490 if (pageToken != null) { |
| 1491 _queryParams["pageToken"] = [pageToken]; |
| 1492 } |
| 1175 if (pageSize != null) { | 1493 if (pageSize != null) { |
| 1176 _queryParams["pageSize"] = ["${pageSize}"]; | 1494 _queryParams["pageSize"] = ["${pageSize}"]; |
| 1177 } | 1495 } |
| 1178 if (pageToken != null) { | |
| 1179 _queryParams["pageToken"] = [pageToken]; | |
| 1180 } | |
| 1181 | 1496 |
| 1182 _url = 'v1beta/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/service
s'; | 1497 _url = 'v1beta/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/service
s'; |
| 1183 | 1498 |
| 1184 var _response = _requester.request(_url, | 1499 var _response = _requester.request(_url, |
| 1185 "GET", | 1500 "GET", |
| 1186 body: _body, | 1501 body: _body, |
| 1187 queryParams: _queryParams, | 1502 queryParams: _queryParams, |
| 1188 uploadOptions: _uploadOptions, | 1503 uploadOptions: _uploadOptions, |
| 1189 uploadMedia: _uploadMedia, | 1504 uploadMedia: _uploadMedia, |
| 1190 downloadOptions: _downloadOptions); | 1505 downloadOptions: _downloadOptions); |
| (...skipping 776 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1967 * Hostname used to reach this application, as resolved by App | 2282 * Hostname used to reach this application, as resolved by App |
| 1968 * Engine.@OutputOnly | 2283 * Engine.@OutputOnly |
| 1969 */ | 2284 */ |
| 1970 core.String defaultHostname; | 2285 core.String defaultHostname; |
| 1971 /** | 2286 /** |
| 1972 * HTTP path dispatch rules for requests to the application that do not | 2287 * HTTP path dispatch rules for requests to the application that do not |
| 1973 * explicitly target a service or version. Rules are order-dependent. Up to 20 | 2288 * explicitly target a service or version. Rules are order-dependent. Up to 20 |
| 1974 * dispatch rules can be supported.@OutputOnly | 2289 * dispatch rules can be supported.@OutputOnly |
| 1975 */ | 2290 */ |
| 1976 core.List<UrlDispatchRule> dispatchRules; | 2291 core.List<UrlDispatchRule> dispatchRules; |
| 2292 /** The feature specific settings to be used in the application. */ |
| 2293 FeatureSettings featureSettings; |
| 1977 /** | 2294 /** |
| 1978 * The Google Container Registry domain used for storing managed build docker | 2295 * The Google Container Registry domain used for storing managed build docker |
| 1979 * images for this application. | 2296 * images for this application. |
| 1980 */ | 2297 */ |
| 1981 core.String gcrDomain; | 2298 core.String gcrDomain; |
| 1982 IdentityAwareProxy iap; | 2299 IdentityAwareProxy iap; |
| 1983 /** | 2300 /** |
| 1984 * Identifier of the Application resource. This identifier is equivalent to | 2301 * Identifier of the Application resource. This identifier is equivalent to |
| 1985 * the project ID of the Google Cloud Platform project where you want to | 2302 * the project ID of the Google Cloud Platform project where you want to |
| 1986 * deploy your application. Example: myapp. | 2303 * deploy your application. Example: myapp. |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2023 } | 2340 } |
| 2024 if (_json.containsKey("defaultCookieExpiration")) { | 2341 if (_json.containsKey("defaultCookieExpiration")) { |
| 2025 defaultCookieExpiration = _json["defaultCookieExpiration"]; | 2342 defaultCookieExpiration = _json["defaultCookieExpiration"]; |
| 2026 } | 2343 } |
| 2027 if (_json.containsKey("defaultHostname")) { | 2344 if (_json.containsKey("defaultHostname")) { |
| 2028 defaultHostname = _json["defaultHostname"]; | 2345 defaultHostname = _json["defaultHostname"]; |
| 2029 } | 2346 } |
| 2030 if (_json.containsKey("dispatchRules")) { | 2347 if (_json.containsKey("dispatchRules")) { |
| 2031 dispatchRules = _json["dispatchRules"].map((value) => new UrlDispatchRule.
fromJson(value)).toList(); | 2348 dispatchRules = _json["dispatchRules"].map((value) => new UrlDispatchRule.
fromJson(value)).toList(); |
| 2032 } | 2349 } |
| 2350 if (_json.containsKey("featureSettings")) { |
| 2351 featureSettings = new FeatureSettings.fromJson(_json["featureSettings"]); |
| 2352 } |
| 2033 if (_json.containsKey("gcrDomain")) { | 2353 if (_json.containsKey("gcrDomain")) { |
| 2034 gcrDomain = _json["gcrDomain"]; | 2354 gcrDomain = _json["gcrDomain"]; |
| 2035 } | 2355 } |
| 2036 if (_json.containsKey("iap")) { | 2356 if (_json.containsKey("iap")) { |
| 2037 iap = new IdentityAwareProxy.fromJson(_json["iap"]); | 2357 iap = new IdentityAwareProxy.fromJson(_json["iap"]); |
| 2038 } | 2358 } |
| 2039 if (_json.containsKey("id")) { | 2359 if (_json.containsKey("id")) { |
| 2040 id = _json["id"]; | 2360 id = _json["id"]; |
| 2041 } | 2361 } |
| 2042 if (_json.containsKey("locationId")) { | 2362 if (_json.containsKey("locationId")) { |
| (...skipping 20 matching lines...) Expand all Loading... |
| 2063 } | 2383 } |
| 2064 if (defaultCookieExpiration != null) { | 2384 if (defaultCookieExpiration != null) { |
| 2065 _json["defaultCookieExpiration"] = defaultCookieExpiration; | 2385 _json["defaultCookieExpiration"] = defaultCookieExpiration; |
| 2066 } | 2386 } |
| 2067 if (defaultHostname != null) { | 2387 if (defaultHostname != null) { |
| 2068 _json["defaultHostname"] = defaultHostname; | 2388 _json["defaultHostname"] = defaultHostname; |
| 2069 } | 2389 } |
| 2070 if (dispatchRules != null) { | 2390 if (dispatchRules != null) { |
| 2071 _json["dispatchRules"] = dispatchRules.map((value) => (value).toJson()).to
List(); | 2391 _json["dispatchRules"] = dispatchRules.map((value) => (value).toJson()).to
List(); |
| 2072 } | 2392 } |
| 2393 if (featureSettings != null) { |
| 2394 _json["featureSettings"] = (featureSettings).toJson(); |
| 2395 } |
| 2073 if (gcrDomain != null) { | 2396 if (gcrDomain != null) { |
| 2074 _json["gcrDomain"] = gcrDomain; | 2397 _json["gcrDomain"] = gcrDomain; |
| 2075 } | 2398 } |
| 2076 if (iap != null) { | 2399 if (iap != null) { |
| 2077 _json["iap"] = (iap).toJson(); | 2400 _json["iap"] = (iap).toJson(); |
| 2078 } | 2401 } |
| 2079 if (id != null) { | 2402 if (id != null) { |
| 2080 _json["id"] = id; | 2403 _json["id"] = id; |
| 2081 } | 2404 } |
| 2082 if (locationId != null) { | 2405 if (locationId != null) { |
| (...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2420 if (idleTimeout != null) { | 2743 if (idleTimeout != null) { |
| 2421 _json["idleTimeout"] = idleTimeout; | 2744 _json["idleTimeout"] = idleTimeout; |
| 2422 } | 2745 } |
| 2423 if (maxInstances != null) { | 2746 if (maxInstances != null) { |
| 2424 _json["maxInstances"] = maxInstances; | 2747 _json["maxInstances"] = maxInstances; |
| 2425 } | 2748 } |
| 2426 return _json; | 2749 return _json; |
| 2427 } | 2750 } |
| 2428 } | 2751 } |
| 2429 | 2752 |
| 2753 /** Request message for Firewall.BatchUpdateIngressRules. */ |
| 2754 class BatchUpdateIngressRulesRequest { |
| 2755 /** A list of FirewallRules to replace the existing set. */ |
| 2756 core.List<FirewallRule> ingressRules; |
| 2757 |
| 2758 BatchUpdateIngressRulesRequest(); |
| 2759 |
| 2760 BatchUpdateIngressRulesRequest.fromJson(core.Map _json) { |
| 2761 if (_json.containsKey("ingressRules")) { |
| 2762 ingressRules = _json["ingressRules"].map((value) => new FirewallRule.fromJ
son(value)).toList(); |
| 2763 } |
| 2764 } |
| 2765 |
| 2766 core.Map<core.String, core.Object> toJson() { |
| 2767 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 2768 if (ingressRules != null) { |
| 2769 _json["ingressRules"] = ingressRules.map((value) => (value).toJson()).toLi
st(); |
| 2770 } |
| 2771 return _json; |
| 2772 } |
| 2773 } |
| 2774 |
| 2775 /** Response message for Firewall.UpdateAllIngressRules. */ |
| 2776 class BatchUpdateIngressRulesResponse { |
| 2777 /** The full list of ingress FirewallRules for this application. */ |
| 2778 core.List<FirewallRule> ingressRules; |
| 2779 |
| 2780 BatchUpdateIngressRulesResponse(); |
| 2781 |
| 2782 BatchUpdateIngressRulesResponse.fromJson(core.Map _json) { |
| 2783 if (_json.containsKey("ingressRules")) { |
| 2784 ingressRules = _json["ingressRules"].map((value) => new FirewallRule.fromJ
son(value)).toList(); |
| 2785 } |
| 2786 } |
| 2787 |
| 2788 core.Map<core.String, core.Object> toJson() { |
| 2789 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 2790 if (ingressRules != null) { |
| 2791 _json["ingressRules"] = ingressRules.map((value) => (value).toJson()).toLi
st(); |
| 2792 } |
| 2793 return _json; |
| 2794 } |
| 2795 } |
| 2796 |
| 2430 /** Google Cloud Container Builder build information. */ | 2797 /** Google Cloud Container Builder build information. */ |
| 2431 class BuildInfo { | 2798 class BuildInfo { |
| 2432 /** | 2799 /** |
| 2433 * The Google Cloud Container Builder build id. Example: | 2800 * The Google Cloud Container Builder build id. Example: |
| 2434 * "f966068f-08b2-42c8-bdfe-74137dff2bf9" | 2801 * "f966068f-08b2-42c8-bdfe-74137dff2bf9" |
| 2435 */ | 2802 */ |
| 2436 core.String cloudBuildId; | 2803 core.String cloudBuildId; |
| 2437 | 2804 |
| 2438 BuildInfo(); | 2805 BuildInfo(); |
| 2439 | 2806 |
| (...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2847 _json["mimeType"] = mimeType; | 3214 _json["mimeType"] = mimeType; |
| 2848 } | 3215 } |
| 2849 if (staticFile != null) { | 3216 if (staticFile != null) { |
| 2850 _json["staticFile"] = staticFile; | 3217 _json["staticFile"] = staticFile; |
| 2851 } | 3218 } |
| 2852 return _json; | 3219 return _json; |
| 2853 } | 3220 } |
| 2854 } | 3221 } |
| 2855 | 3222 |
| 2856 /** | 3223 /** |
| 3224 * The feature specific settings to be used in the application. These define |
| 3225 * behaviors that are user configurable. |
| 3226 */ |
| 3227 class FeatureSettings { |
| 3228 /** |
| 3229 * Boolean value indicating if split health checks should be used instead of |
| 3230 * the legacy health checks. At an app.yaml level, this means defaulting to |
| 3231 * 'readiness_check' and 'liveness_check' values instead of 'health_check' |
| 3232 * ones. Once the legacy 'health_check' behavior is deprecated, and this value |
| 3233 * is always true, this setting can be removed. |
| 3234 */ |
| 3235 core.bool splitHealthChecks; |
| 3236 |
| 3237 FeatureSettings(); |
| 3238 |
| 3239 FeatureSettings.fromJson(core.Map _json) { |
| 3240 if (_json.containsKey("splitHealthChecks")) { |
| 3241 splitHealthChecks = _json["splitHealthChecks"]; |
| 3242 } |
| 3243 } |
| 3244 |
| 3245 core.Map<core.String, core.Object> toJson() { |
| 3246 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 3247 if (splitHealthChecks != null) { |
| 3248 _json["splitHealthChecks"] = splitHealthChecks; |
| 3249 } |
| 3250 return _json; |
| 3251 } |
| 3252 } |
| 3253 |
| 3254 /** |
| 2857 * Single source file that is part of the version to be deployed. Each source | 3255 * Single source file that is part of the version to be deployed. Each source |
| 2858 * file that is deployed must be specified separately. | 3256 * file that is deployed must be specified separately. |
| 2859 */ | 3257 */ |
| 2860 class FileInfo { | 3258 class FileInfo { |
| 2861 /** | 3259 /** |
| 2862 * The MIME type of the file.Defaults to the value from Google Cloud Storage. | 3260 * The MIME type of the file.Defaults to the value from Google Cloud Storage. |
| 2863 */ | 3261 */ |
| 2864 core.String mimeType; | 3262 core.String mimeType; |
| 2865 /** The SHA1 hash of the file, in hex. */ | 3263 /** The SHA1 hash of the file, in hex. */ |
| 2866 core.String sha1Sum; | 3264 core.String sha1Sum; |
| (...skipping 27 matching lines...) Expand all Loading... |
| 2894 _json["sha1Sum"] = sha1Sum; | 3292 _json["sha1Sum"] = sha1Sum; |
| 2895 } | 3293 } |
| 2896 if (sourceUrl != null) { | 3294 if (sourceUrl != null) { |
| 2897 _json["sourceUrl"] = sourceUrl; | 3295 _json["sourceUrl"] = sourceUrl; |
| 2898 } | 3296 } |
| 2899 return _json; | 3297 return _json; |
| 2900 } | 3298 } |
| 2901 } | 3299 } |
| 2902 | 3300 |
| 2903 /** | 3301 /** |
| 3302 * A single firewall rule that is evaluated against incoming traffic and |
| 3303 * provides an action to take on matched requests. |
| 3304 */ |
| 3305 class FirewallRule { |
| 3306 /** |
| 3307 * The action to take on matched requests. |
| 3308 * Possible string values are: |
| 3309 * - "UNSPECIFIED_ACTION" |
| 3310 * - "ALLOW" : Matching requests are allowed. |
| 3311 * - "DENY" : Matching requests are denied. |
| 3312 */ |
| 3313 core.String action; |
| 3314 /** |
| 3315 * An optional string description of this rule. This field has a maximum |
| 3316 * length of 100 characters. |
| 3317 */ |
| 3318 core.String description; |
| 3319 /** |
| 3320 * A positive integer between 1, Int32.MaxValue-1 that defines the order of |
| 3321 * rule evaluation. Rules with the lowest priority are evaluated first.A |
| 3322 * default rule at priority Int32.MaxValue matches all IPv4 and IPv6 traffic |
| 3323 * when no previous rule matches. Only the action of this rule can be modified |
| 3324 * by the user. |
| 3325 */ |
| 3326 core.int priority; |
| 3327 /** |
| 3328 * IP address or range, defined using CIDR notation, of requests that this |
| 3329 * rule applies to. You can use the wildcard character "*" to match all IPs |
| 3330 * equivalent to "0/0" and "::/0" together. Examples: 192.168.1.1 or |
| 3331 * 192.168.0.0/16 or 2001:db8::/32 or |
| 3332 * 2001:0db8:0000:0042:0000:8a2e:0370:7334.<p>Truncation will be silently |
| 3333 * performed on addresses which are not properly truncated. For example, |
| 3334 * 1.2.3.4/24 is accepted as the same address as 1.2.3.0/24. Similarly, for |
| 3335 * IPv6, 2001:db8::1/32 is accepted as the same address as 2001:db8::/32. |
| 3336 */ |
| 3337 core.String sourceRange; |
| 3338 |
| 3339 FirewallRule(); |
| 3340 |
| 3341 FirewallRule.fromJson(core.Map _json) { |
| 3342 if (_json.containsKey("action")) { |
| 3343 action = _json["action"]; |
| 3344 } |
| 3345 if (_json.containsKey("description")) { |
| 3346 description = _json["description"]; |
| 3347 } |
| 3348 if (_json.containsKey("priority")) { |
| 3349 priority = _json["priority"]; |
| 3350 } |
| 3351 if (_json.containsKey("sourceRange")) { |
| 3352 sourceRange = _json["sourceRange"]; |
| 3353 } |
| 3354 } |
| 3355 |
| 3356 core.Map<core.String, core.Object> toJson() { |
| 3357 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 3358 if (action != null) { |
| 3359 _json["action"] = action; |
| 3360 } |
| 3361 if (description != null) { |
| 3362 _json["description"] = description; |
| 3363 } |
| 3364 if (priority != null) { |
| 3365 _json["priority"] = priority; |
| 3366 } |
| 3367 if (sourceRange != null) { |
| 3368 _json["sourceRange"] = sourceRange; |
| 3369 } |
| 3370 return _json; |
| 3371 } |
| 3372 } |
| 3373 |
| 3374 /** |
| 2904 * Health checking configuration for VM instances. Unhealthy instances are | 3375 * Health checking configuration for VM instances. Unhealthy instances are |
| 2905 * killed and replaced with new instances. Only applicable for instances in App | 3376 * killed and replaced with new instances. Only applicable for instances in App |
| 2906 * Engine flexible environment. | 3377 * Engine flexible environment. |
| 2907 */ | 3378 */ |
| 2908 class HealthCheck { | 3379 class HealthCheck { |
| 2909 /** Interval between health checks. */ | 3380 /** Interval between health checks. */ |
| 2910 core.String checkInterval; | 3381 core.String checkInterval; |
| 2911 /** Whether to explicitly disable health checks for this instance. */ | 3382 /** Whether to explicitly disable health checks for this instance. */ |
| 2912 core.bool disableHealthCheck; | 3383 core.bool disableHealthCheck; |
| 2913 /** | 3384 /** |
| (...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3329 if (domainMappings != null) { | 3800 if (domainMappings != null) { |
| 3330 _json["domainMappings"] = domainMappings.map((value) => (value).toJson()).
toList(); | 3801 _json["domainMappings"] = domainMappings.map((value) => (value).toJson()).
toList(); |
| 3331 } | 3802 } |
| 3332 if (nextPageToken != null) { | 3803 if (nextPageToken != null) { |
| 3333 _json["nextPageToken"] = nextPageToken; | 3804 _json["nextPageToken"] = nextPageToken; |
| 3334 } | 3805 } |
| 3335 return _json; | 3806 return _json; |
| 3336 } | 3807 } |
| 3337 } | 3808 } |
| 3338 | 3809 |
| 3810 /** Response message for Firewall.ListIngressRules. */ |
| 3811 class ListIngressRulesResponse { |
| 3812 /** The ingress FirewallRules for this application. */ |
| 3813 core.List<FirewallRule> ingressRules; |
| 3814 /** Continuation token for fetching the next page of results. */ |
| 3815 core.String nextPageToken; |
| 3816 |
| 3817 ListIngressRulesResponse(); |
| 3818 |
| 3819 ListIngressRulesResponse.fromJson(core.Map _json) { |
| 3820 if (_json.containsKey("ingressRules")) { |
| 3821 ingressRules = _json["ingressRules"].map((value) => new FirewallRule.fromJ
son(value)).toList(); |
| 3822 } |
| 3823 if (_json.containsKey("nextPageToken")) { |
| 3824 nextPageToken = _json["nextPageToken"]; |
| 3825 } |
| 3826 } |
| 3827 |
| 3828 core.Map<core.String, core.Object> toJson() { |
| 3829 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 3830 if (ingressRules != null) { |
| 3831 _json["ingressRules"] = ingressRules.map((value) => (value).toJson()).toLi
st(); |
| 3832 } |
| 3833 if (nextPageToken != null) { |
| 3834 _json["nextPageToken"] = nextPageToken; |
| 3835 } |
| 3836 return _json; |
| 3837 } |
| 3838 } |
| 3839 |
| 3339 /** Response message for Instances.ListInstances. */ | 3840 /** Response message for Instances.ListInstances. */ |
| 3340 class ListInstancesResponse { | 3841 class ListInstancesResponse { |
| 3341 /** The instances belonging to the requested version. */ | 3842 /** The instances belonging to the requested version. */ |
| 3342 core.List<Instance> instances; | 3843 core.List<Instance> instances; |
| 3343 /** Continuation token for fetching the next page of results. */ | 3844 /** Continuation token for fetching the next page of results. */ |
| 3344 core.String nextPageToken; | 3845 core.String nextPageToken; |
| 3345 | 3846 |
| 3346 ListInstancesResponse(); | 3847 ListInstancesResponse(); |
| 3347 | 3848 |
| 3348 ListInstancesResponse.fromJson(core.Map _json) { | 3849 ListInstancesResponse.fromJson(core.Map _json) { |
| (...skipping 966 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4315 } | 4816 } |
| 4316 return _json; | 4817 return _json; |
| 4317 } | 4818 } |
| 4318 } | 4819 } |
| 4319 | 4820 |
| 4320 /** | 4821 /** |
| 4321 * Readiness checking configuration for VM instances. Unhealthy instances are | 4822 * Readiness checking configuration for VM instances. Unhealthy instances are |
| 4322 * removed from traffic rotation. | 4823 * removed from traffic rotation. |
| 4323 */ | 4824 */ |
| 4324 class ReadinessCheck { | 4825 class ReadinessCheck { |
| 4826 /** |
| 4827 * A maximum time limit on application initialization, measured from moment |
| 4828 * the application successfully replies to a healthcheck until it is ready to |
| 4829 * serve traffic. |
| 4830 */ |
| 4831 core.String appStartTimeout; |
| 4325 /** Interval between health checks. */ | 4832 /** Interval between health checks. */ |
| 4326 core.String checkInterval; | 4833 core.String checkInterval; |
| 4327 /** Number of consecutive failed checks required before removing traffic. */ | 4834 /** Number of consecutive failed checks required before removing traffic. */ |
| 4328 core.int failureThreshold; | 4835 core.int failureThreshold; |
| 4329 /** | 4836 /** |
| 4330 * Host header to send when performing a HTTP Readiness check. Example: | 4837 * Host header to send when performing a HTTP Readiness check. Example: |
| 4331 * "myapp.appspot.com" | 4838 * "myapp.appspot.com" |
| 4332 */ | 4839 */ |
| 4333 core.String host; | 4840 core.String host; |
| 4334 /** The request path. */ | 4841 /** The request path. */ |
| 4335 core.String path; | 4842 core.String path; |
| 4336 /** | 4843 /** |
| 4337 * Number of consecutive successful checks required before receiving traffic. | 4844 * Number of consecutive successful checks required before receiving traffic. |
| 4338 */ | 4845 */ |
| 4339 core.int successThreshold; | 4846 core.int successThreshold; |
| 4340 /** Time before the check is considered failed. */ | 4847 /** Time before the check is considered failed. */ |
| 4341 core.String timeout; | 4848 core.String timeout; |
| 4342 | 4849 |
| 4343 ReadinessCheck(); | 4850 ReadinessCheck(); |
| 4344 | 4851 |
| 4345 ReadinessCheck.fromJson(core.Map _json) { | 4852 ReadinessCheck.fromJson(core.Map _json) { |
| 4853 if (_json.containsKey("appStartTimeout")) { |
| 4854 appStartTimeout = _json["appStartTimeout"]; |
| 4855 } |
| 4346 if (_json.containsKey("checkInterval")) { | 4856 if (_json.containsKey("checkInterval")) { |
| 4347 checkInterval = _json["checkInterval"]; | 4857 checkInterval = _json["checkInterval"]; |
| 4348 } | 4858 } |
| 4349 if (_json.containsKey("failureThreshold")) { | 4859 if (_json.containsKey("failureThreshold")) { |
| 4350 failureThreshold = _json["failureThreshold"]; | 4860 failureThreshold = _json["failureThreshold"]; |
| 4351 } | 4861 } |
| 4352 if (_json.containsKey("host")) { | 4862 if (_json.containsKey("host")) { |
| 4353 host = _json["host"]; | 4863 host = _json["host"]; |
| 4354 } | 4864 } |
| 4355 if (_json.containsKey("path")) { | 4865 if (_json.containsKey("path")) { |
| 4356 path = _json["path"]; | 4866 path = _json["path"]; |
| 4357 } | 4867 } |
| 4358 if (_json.containsKey("successThreshold")) { | 4868 if (_json.containsKey("successThreshold")) { |
| 4359 successThreshold = _json["successThreshold"]; | 4869 successThreshold = _json["successThreshold"]; |
| 4360 } | 4870 } |
| 4361 if (_json.containsKey("timeout")) { | 4871 if (_json.containsKey("timeout")) { |
| 4362 timeout = _json["timeout"]; | 4872 timeout = _json["timeout"]; |
| 4363 } | 4873 } |
| 4364 } | 4874 } |
| 4365 | 4875 |
| 4366 core.Map<core.String, core.Object> toJson() { | 4876 core.Map<core.String, core.Object> toJson() { |
| 4367 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4877 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 4878 if (appStartTimeout != null) { |
| 4879 _json["appStartTimeout"] = appStartTimeout; |
| 4880 } |
| 4368 if (checkInterval != null) { | 4881 if (checkInterval != null) { |
| 4369 _json["checkInterval"] = checkInterval; | 4882 _json["checkInterval"] = checkInterval; |
| 4370 } | 4883 } |
| 4371 if (failureThreshold != null) { | 4884 if (failureThreshold != null) { |
| 4372 _json["failureThreshold"] = failureThreshold; | 4885 _json["failureThreshold"] = failureThreshold; |
| 4373 } | 4886 } |
| 4374 if (host != null) { | 4887 if (host != null) { |
| 4375 _json["host"] = host; | 4888 _json["host"] = host; |
| 4376 } | 4889 } |
| 4377 if (path != null) { | 4890 if (path != null) { |
| (...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4623 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 5136 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 4624 if (certificateId != null) { | 5137 if (certificateId != null) { |
| 4625 _json["certificateId"] = certificateId; | 5138 _json["certificateId"] = certificateId; |
| 4626 } | 5139 } |
| 4627 return _json; | 5140 return _json; |
| 4628 } | 5141 } |
| 4629 } | 5142 } |
| 4630 | 5143 |
| 4631 /** Scheduler settings for standard environment. */ | 5144 /** Scheduler settings for standard environment. */ |
| 4632 class StandardSchedulerSettings { | 5145 class StandardSchedulerSettings { |
| 5146 /** |
| 5147 * Maximum number of instances for an app version. Set to a non-positive value |
| 5148 * (0 by convention) to disable max_instances configuration. |
| 5149 */ |
| 5150 core.int maxInstances; |
| 5151 /** |
| 5152 * Minimum number of instances for an app version. Set to a non-positive value |
| 5153 * (0 by convention) to disable min_instances configuration. |
| 5154 */ |
| 5155 core.int minInstances; |
| 4633 /** Target CPU utilization ratio to maintain when scaling. */ | 5156 /** Target CPU utilization ratio to maintain when scaling. */ |
| 4634 core.double targetCpuUtilization; | 5157 core.double targetCpuUtilization; |
| 4635 /** Target throughput utilization ratio to maintain when scaling */ | 5158 /** Target throughput utilization ratio to maintain when scaling */ |
| 4636 core.double targetThroughputUtilization; | 5159 core.double targetThroughputUtilization; |
| 4637 | 5160 |
| 4638 StandardSchedulerSettings(); | 5161 StandardSchedulerSettings(); |
| 4639 | 5162 |
| 4640 StandardSchedulerSettings.fromJson(core.Map _json) { | 5163 StandardSchedulerSettings.fromJson(core.Map _json) { |
| 5164 if (_json.containsKey("maxInstances")) { |
| 5165 maxInstances = _json["maxInstances"]; |
| 5166 } |
| 5167 if (_json.containsKey("minInstances")) { |
| 5168 minInstances = _json["minInstances"]; |
| 5169 } |
| 4641 if (_json.containsKey("targetCpuUtilization")) { | 5170 if (_json.containsKey("targetCpuUtilization")) { |
| 4642 targetCpuUtilization = _json["targetCpuUtilization"]; | 5171 targetCpuUtilization = _json["targetCpuUtilization"]; |
| 4643 } | 5172 } |
| 4644 if (_json.containsKey("targetThroughputUtilization")) { | 5173 if (_json.containsKey("targetThroughputUtilization")) { |
| 4645 targetThroughputUtilization = _json["targetThroughputUtilization"]; | 5174 targetThroughputUtilization = _json["targetThroughputUtilization"]; |
| 4646 } | 5175 } |
| 4647 } | 5176 } |
| 4648 | 5177 |
| 4649 core.Map<core.String, core.Object> toJson() { | 5178 core.Map<core.String, core.Object> toJson() { |
| 4650 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 5179 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 5180 if (maxInstances != null) { |
| 5181 _json["maxInstances"] = maxInstances; |
| 5182 } |
| 5183 if (minInstances != null) { |
| 5184 _json["minInstances"] = minInstances; |
| 5185 } |
| 4651 if (targetCpuUtilization != null) { | 5186 if (targetCpuUtilization != null) { |
| 4652 _json["targetCpuUtilization"] = targetCpuUtilization; | 5187 _json["targetCpuUtilization"] = targetCpuUtilization; |
| 4653 } | 5188 } |
| 4654 if (targetThroughputUtilization != null) { | 5189 if (targetThroughputUtilization != null) { |
| 4655 _json["targetThroughputUtilization"] = targetThroughputUtilization; | 5190 _json["targetThroughputUtilization"] = targetThroughputUtilization; |
| 4656 } | 5191 } |
| 4657 return _json; | 5192 return _json; |
| 4658 } | 5193 } |
| 4659 } | 5194 } |
| 4660 | 5195 |
| (...skipping 855 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5516 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 6051 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 5517 if (filesCount != null) { | 6052 if (filesCount != null) { |
| 5518 _json["filesCount"] = filesCount; | 6053 _json["filesCount"] = filesCount; |
| 5519 } | 6054 } |
| 5520 if (sourceUrl != null) { | 6055 if (sourceUrl != null) { |
| 5521 _json["sourceUrl"] = sourceUrl; | 6056 _json["sourceUrl"] = sourceUrl; |
| 5522 } | 6057 } |
| 5523 return _json; | 6058 return _json; |
| 5524 } | 6059 } |
| 5525 } | 6060 } |
| OLD | NEW |