| 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.v1beta5; | 3 library googleapis_beta.appengine.v1beta5; |
| 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 14 matching lines...) Expand all Loading... |
| 25 AppsResourceApi get apps => new AppsResourceApi(_requester); | 25 AppsResourceApi get apps => new AppsResourceApi(_requester); |
| 26 | 26 |
| 27 AppengineApi(http.Client client, {core.String rootUrl: "https://appengine.goog
leapis.com/", core.String servicePath: ""}) : | 27 AppengineApi(http.Client client, {core.String rootUrl: "https://appengine.goog
leapis.com/", core.String servicePath: ""}) : |
| 28 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A
GENT); | 28 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A
GENT); |
| 29 } | 29 } |
| 30 | 30 |
| 31 | 31 |
| 32 class AppsResourceApi { | 32 class AppsResourceApi { |
| 33 final commons.ApiRequester _requester; | 33 final commons.ApiRequester _requester; |
| 34 | 34 |
| 35 AppsLocationsResourceApi get locations => new AppsLocationsResourceApi(_reques
ter); |
| 35 AppsOperationsResourceApi get operations => new AppsOperationsResourceApi(_req
uester); | 36 AppsOperationsResourceApi get operations => new AppsOperationsResourceApi(_req
uester); |
| 36 AppsServicesResourceApi get services => new AppsServicesResourceApi(_requester
); | 37 AppsServicesResourceApi get services => new AppsServicesResourceApi(_requester
); |
| 37 | 38 |
| 38 AppsResourceApi(commons.ApiRequester client) : | 39 AppsResourceApi(commons.ApiRequester client) : |
| 39 _requester = client; | 40 _requester = client; |
| 40 | 41 |
| 41 /** | 42 /** |
| 43 * Creates an App Engine application for a Google Cloud Platform project. This |
| 44 * requires a project that excludes an App Engine application. For details |
| 45 * about creating a project without an application, see the [Google Cloud |
| 46 * Resource Manager create project |
| 47 * topic](https://cloud.google.com/resource-manager/docs/creating-project). |
| 48 * |
| 49 * [request] - The metadata request object. |
| 50 * |
| 51 * Request parameters: |
| 52 * |
| 53 * Completes with a [Operation]. |
| 54 * |
| 55 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 56 * error. |
| 57 * |
| 58 * If the used [http.Client] completes with an error when making a REST call, |
| 59 * this method will complete with the same error. |
| 60 */ |
| 61 async.Future<Operation> create(Application request) { |
| 62 var _url = null; |
| 63 var _queryParams = new core.Map(); |
| 64 var _uploadMedia = null; |
| 65 var _uploadOptions = null; |
| 66 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 67 var _body = null; |
| 68 |
| 69 if (request != null) { |
| 70 _body = convert.JSON.encode((request).toJson()); |
| 71 } |
| 72 |
| 73 _url = 'v1beta5/apps'; |
| 74 |
| 75 var _response = _requester.request(_url, |
| 76 "POST", |
| 77 body: _body, |
| 78 queryParams: _queryParams, |
| 79 uploadOptions: _uploadOptions, |
| 80 uploadMedia: _uploadMedia, |
| 81 downloadOptions: _downloadOptions); |
| 82 return _response.then((data) => new Operation.fromJson(data)); |
| 83 } |
| 84 |
| 85 /** |
| 42 * Gets information about an application. | 86 * Gets information about an application. |
| 43 * | 87 * |
| 44 * Request parameters: | 88 * Request parameters: |
| 45 * | 89 * |
| 46 * [appsId] - Part of `name`. Name of the application to get. For example: | 90 * [appsId] - Part of `name`. Name of the application to get. For example: |
| 47 * "apps/myapp". | 91 * "apps/myapp". |
| 48 * | 92 * |
| 49 * [ensureResourcesExist] - Certain resources associated with an application | 93 * [ensureResourcesExist] - Certain resources associated with an application |
| 50 * are created on-demand. Controls whether these resources should be created | 94 * are created on-demand. Controls whether these resources should be created |
| 51 * when performing the `GET` operation. If specified and any resources could | 95 * when performing the `GET` operation. If specified and any resources could |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 queryParams: _queryParams, | 128 queryParams: _queryParams, |
| 85 uploadOptions: _uploadOptions, | 129 uploadOptions: _uploadOptions, |
| 86 uploadMedia: _uploadMedia, | 130 uploadMedia: _uploadMedia, |
| 87 downloadOptions: _downloadOptions); | 131 downloadOptions: _downloadOptions); |
| 88 return _response.then((data) => new Application.fromJson(data)); | 132 return _response.then((data) => new Application.fromJson(data)); |
| 89 } | 133 } |
| 90 | 134 |
| 91 } | 135 } |
| 92 | 136 |
| 93 | 137 |
| 138 class AppsLocationsResourceApi { |
| 139 final commons.ApiRequester _requester; |
| 140 |
| 141 AppsLocationsResourceApi(commons.ApiRequester client) : |
| 142 _requester = client; |
| 143 |
| 144 /** |
| 145 * Get information about a location. |
| 146 * |
| 147 * Request parameters: |
| 148 * |
| 149 * [appsId] - Part of `name`. Resource name for the location. |
| 150 * |
| 151 * [locationsId] - Part of `name`. See documentation of `appsId`. |
| 152 * |
| 153 * Completes with a [Location]. |
| 154 * |
| 155 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 156 * error. |
| 157 * |
| 158 * If the used [http.Client] completes with an error when making a REST call, |
| 159 * this method will complete with the same error. |
| 160 */ |
| 161 async.Future<Location> get(core.String appsId, core.String locationsId) { |
| 162 var _url = null; |
| 163 var _queryParams = new core.Map(); |
| 164 var _uploadMedia = null; |
| 165 var _uploadOptions = null; |
| 166 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 167 var _body = null; |
| 168 |
| 169 if (appsId == null) { |
| 170 throw new core.ArgumentError("Parameter appsId is required."); |
| 171 } |
| 172 if (locationsId == null) { |
| 173 throw new core.ArgumentError("Parameter locationsId is required."); |
| 174 } |
| 175 |
| 176 _url = 'v1beta5/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/locati
ons/' + commons.Escaper.ecapeVariable('$locationsId'); |
| 177 |
| 178 var _response = _requester.request(_url, |
| 179 "GET", |
| 180 body: _body, |
| 181 queryParams: _queryParams, |
| 182 uploadOptions: _uploadOptions, |
| 183 uploadMedia: _uploadMedia, |
| 184 downloadOptions: _downloadOptions); |
| 185 return _response.then((data) => new Location.fromJson(data)); |
| 186 } |
| 187 |
| 188 /** |
| 189 * Lists information about the supported locations for this service. |
| 190 * |
| 191 * Request parameters: |
| 192 * |
| 193 * [appsId] - Part of `name`. The resource that owns the locations collection, |
| 194 * if applicable. |
| 195 * |
| 196 * [filter] - The standard list filter. |
| 197 * |
| 198 * [pageSize] - The standard list page size. |
| 199 * |
| 200 * [pageToken] - The standard list page token. |
| 201 * |
| 202 * Completes with a [ListLocationsResponse]. |
| 203 * |
| 204 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 205 * error. |
| 206 * |
| 207 * If the used [http.Client] completes with an error when making a REST call, |
| 208 * this method will complete with the same error. |
| 209 */ |
| 210 async.Future<ListLocationsResponse> list(core.String appsId, {core.String filt
er, core.int pageSize, core.String pageToken}) { |
| 211 var _url = null; |
| 212 var _queryParams = new core.Map(); |
| 213 var _uploadMedia = null; |
| 214 var _uploadOptions = null; |
| 215 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 216 var _body = null; |
| 217 |
| 218 if (appsId == null) { |
| 219 throw new core.ArgumentError("Parameter appsId is required."); |
| 220 } |
| 221 if (filter != null) { |
| 222 _queryParams["filter"] = [filter]; |
| 223 } |
| 224 if (pageSize != null) { |
| 225 _queryParams["pageSize"] = ["${pageSize}"]; |
| 226 } |
| 227 if (pageToken != null) { |
| 228 _queryParams["pageToken"] = [pageToken]; |
| 229 } |
| 230 |
| 231 _url = 'v1beta5/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/locati
ons'; |
| 232 |
| 233 var _response = _requester.request(_url, |
| 234 "GET", |
| 235 body: _body, |
| 236 queryParams: _queryParams, |
| 237 uploadOptions: _uploadOptions, |
| 238 uploadMedia: _uploadMedia, |
| 239 downloadOptions: _downloadOptions); |
| 240 return _response.then((data) => new ListLocationsResponse.fromJson(data)); |
| 241 } |
| 242 |
| 243 } |
| 244 |
| 245 |
| 94 class AppsOperationsResourceApi { | 246 class AppsOperationsResourceApi { |
| 95 final commons.ApiRequester _requester; | 247 final commons.ApiRequester _requester; |
| 96 | 248 |
| 97 AppsOperationsResourceApi(commons.ApiRequester client) : | 249 AppsOperationsResourceApi(commons.ApiRequester client) : |
| 98 _requester = client; | 250 _requester = client; |
| 99 | 251 |
| 100 /** | 252 /** |
| 101 * Gets the latest state of a long-running operation. Clients can use this | 253 * Gets the latest state of a long-running operation. Clients can use this |
| 102 * method to poll the operation result at intervals as recommended by the API | 254 * method to poll the operation result at intervals as recommended by the API |
| 103 * service. | 255 * service. |
| (...skipping 617 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 721 } | 873 } |
| 722 | 874 |
| 723 | 875 |
| 724 class AppsServicesVersionsInstancesResourceApi { | 876 class AppsServicesVersionsInstancesResourceApi { |
| 725 final commons.ApiRequester _requester; | 877 final commons.ApiRequester _requester; |
| 726 | 878 |
| 727 AppsServicesVersionsInstancesResourceApi(commons.ApiRequester client) : | 879 AppsServicesVersionsInstancesResourceApi(commons.ApiRequester client) : |
| 728 _requester = client; | 880 _requester = client; |
| 729 | 881 |
| 730 /** | 882 /** |
| 883 * Enable debugging of this VM instance. This call allows you to SSH to the |
| 884 * VM. While the VM is in debug mode, it continues to serve live traffic. |
| 885 * After you're done debugging an instance, delete the instance; the system |
| 886 * creates a new instance when needed. You can't debug a non-VM instance. |
| 887 * |
| 888 * [request] - The metadata request object. |
| 889 * |
| 890 * Request parameters: |
| 891 * |
| 892 * [appsId] - Part of `name`. Name of the resource requested. For example: |
| 893 * "apps/myapp/services/default/versions/v1/instances/instance-1". |
| 894 * |
| 895 * [servicesId] - Part of `name`. See documentation of `appsId`. |
| 896 * |
| 897 * [versionsId] - Part of `name`. See documentation of `appsId`. |
| 898 * |
| 899 * [instancesId] - Part of `name`. See documentation of `appsId`. |
| 900 * |
| 901 * Completes with a [Operation]. |
| 902 * |
| 903 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 904 * error. |
| 905 * |
| 906 * If the used [http.Client] completes with an error when making a REST call, |
| 907 * this method will complete with the same error. |
| 908 */ |
| 909 async.Future<Operation> debug(DebugInstanceRequest request, core.String appsId
, core.String servicesId, core.String versionsId, core.String instancesId) { |
| 910 var _url = null; |
| 911 var _queryParams = new core.Map(); |
| 912 var _uploadMedia = null; |
| 913 var _uploadOptions = null; |
| 914 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 915 var _body = null; |
| 916 |
| 917 if (request != null) { |
| 918 _body = convert.JSON.encode((request).toJson()); |
| 919 } |
| 920 if (appsId == null) { |
| 921 throw new core.ArgumentError("Parameter appsId is required."); |
| 922 } |
| 923 if (servicesId == null) { |
| 924 throw new core.ArgumentError("Parameter servicesId is required."); |
| 925 } |
| 926 if (versionsId == null) { |
| 927 throw new core.ArgumentError("Parameter versionsId is required."); |
| 928 } |
| 929 if (instancesId == null) { |
| 930 throw new core.ArgumentError("Parameter instancesId is required."); |
| 931 } |
| 932 |
| 933 _url = 'v1beta5/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/servic
es/' + commons.Escaper.ecapeVariable('$servicesId') + '/versions/' + commons.Esc
aper.ecapeVariable('$versionsId') + '/instances/' + commons.Escaper.ecapeVariabl
e('$instancesId') + ':debug'; |
| 934 |
| 935 var _response = _requester.request(_url, |
| 936 "POST", |
| 937 body: _body, |
| 938 queryParams: _queryParams, |
| 939 uploadOptions: _uploadOptions, |
| 940 uploadMedia: _uploadMedia, |
| 941 downloadOptions: _downloadOptions); |
| 942 return _response.then((data) => new Operation.fromJson(data)); |
| 943 } |
| 944 |
| 945 /** |
| 946 * Stops a running instance. |
| 947 * |
| 948 * Request parameters: |
| 949 * |
| 950 * [appsId] - Part of `name`. Name of the resource requested. For example: |
| 951 * "apps/myapp/services/default/versions/v1/instances/instance-1". |
| 952 * |
| 953 * [servicesId] - Part of `name`. See documentation of `appsId`. |
| 954 * |
| 955 * [versionsId] - Part of `name`. See documentation of `appsId`. |
| 956 * |
| 957 * [instancesId] - Part of `name`. See documentation of `appsId`. |
| 958 * |
| 959 * Completes with a [Operation]. |
| 960 * |
| 961 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 962 * error. |
| 963 * |
| 964 * If the used [http.Client] completes with an error when making a REST call, |
| 965 * this method will complete with the same error. |
| 966 */ |
| 967 async.Future<Operation> delete(core.String appsId, core.String servicesId, cor
e.String versionsId, core.String instancesId) { |
| 968 var _url = null; |
| 969 var _queryParams = new core.Map(); |
| 970 var _uploadMedia = null; |
| 971 var _uploadOptions = null; |
| 972 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 973 var _body = null; |
| 974 |
| 975 if (appsId == null) { |
| 976 throw new core.ArgumentError("Parameter appsId is required."); |
| 977 } |
| 978 if (servicesId == null) { |
| 979 throw new core.ArgumentError("Parameter servicesId is required."); |
| 980 } |
| 981 if (versionsId == null) { |
| 982 throw new core.ArgumentError("Parameter versionsId is required."); |
| 983 } |
| 984 if (instancesId == null) { |
| 985 throw new core.ArgumentError("Parameter instancesId is required."); |
| 986 } |
| 987 |
| 988 _url = 'v1beta5/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/servic
es/' + commons.Escaper.ecapeVariable('$servicesId') + '/versions/' + commons.Esc
aper.ecapeVariable('$versionsId') + '/instances/' + commons.Escaper.ecapeVariabl
e('$instancesId'); |
| 989 |
| 990 var _response = _requester.request(_url, |
| 991 "DELETE", |
| 992 body: _body, |
| 993 queryParams: _queryParams, |
| 994 uploadOptions: _uploadOptions, |
| 995 uploadMedia: _uploadMedia, |
| 996 downloadOptions: _downloadOptions); |
| 997 return _response.then((data) => new Operation.fromJson(data)); |
| 998 } |
| 999 |
| 1000 /** |
| 1001 * Gets instance information. |
| 1002 * |
| 1003 * Request parameters: |
| 1004 * |
| 1005 * [appsId] - Part of `name`. Name of the resource requested. For example: |
| 1006 * "apps/myapp/services/default/versions/v1/instances/instance-1". |
| 1007 * |
| 1008 * [servicesId] - Part of `name`. See documentation of `appsId`. |
| 1009 * |
| 1010 * [versionsId] - Part of `name`. See documentation of `appsId`. |
| 1011 * |
| 1012 * [instancesId] - Part of `name`. See documentation of `appsId`. |
| 1013 * |
| 1014 * Completes with a [Instance]. |
| 1015 * |
| 1016 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1017 * error. |
| 1018 * |
| 1019 * If the used [http.Client] completes with an error when making a REST call, |
| 1020 * this method will complete with the same error. |
| 1021 */ |
| 1022 async.Future<Instance> get(core.String appsId, core.String servicesId, core.St
ring versionsId, core.String instancesId) { |
| 1023 var _url = null; |
| 1024 var _queryParams = new core.Map(); |
| 1025 var _uploadMedia = null; |
| 1026 var _uploadOptions = null; |
| 1027 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1028 var _body = null; |
| 1029 |
| 1030 if (appsId == null) { |
| 1031 throw new core.ArgumentError("Parameter appsId is required."); |
| 1032 } |
| 1033 if (servicesId == null) { |
| 1034 throw new core.ArgumentError("Parameter servicesId is required."); |
| 1035 } |
| 1036 if (versionsId == null) { |
| 1037 throw new core.ArgumentError("Parameter versionsId is required."); |
| 1038 } |
| 1039 if (instancesId == null) { |
| 1040 throw new core.ArgumentError("Parameter instancesId is required."); |
| 1041 } |
| 1042 |
| 1043 _url = 'v1beta5/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/servic
es/' + commons.Escaper.ecapeVariable('$servicesId') + '/versions/' + commons.Esc
aper.ecapeVariable('$versionsId') + '/instances/' + commons.Escaper.ecapeVariabl
e('$instancesId'); |
| 1044 |
| 1045 var _response = _requester.request(_url, |
| 1046 "GET", |
| 1047 body: _body, |
| 1048 queryParams: _queryParams, |
| 1049 uploadOptions: _uploadOptions, |
| 1050 uploadMedia: _uploadMedia, |
| 1051 downloadOptions: _downloadOptions); |
| 1052 return _response.then((data) => new Instance.fromJson(data)); |
| 1053 } |
| 1054 |
| 1055 /** |
| 731 * Lists the instances of a version. | 1056 * Lists the instances of a version. |
| 732 * | 1057 * |
| 733 * Request parameters: | 1058 * Request parameters: |
| 734 * | 1059 * |
| 735 * [appsId] - Part of `name`. Name of the resource requested. For example: | 1060 * [appsId] - Part of `name`. Name of the resource requested. For example: |
| 736 * "apps/myapp/services/default/versions/v1". | 1061 * "apps/myapp/services/default/versions/v1". |
| 737 * | 1062 * |
| 738 * [servicesId] - Part of `name`. See documentation of `appsId`. | 1063 * [servicesId] - Part of `name`. See documentation of `appsId`. |
| 739 * | 1064 * |
| 740 * [versionsId] - Part of `name`. See documentation of `appsId`. | 1065 * [versionsId] - Part of `name`. See documentation of `appsId`. |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 919 /** | 1244 /** |
| 920 * The hostname used to reach the application, as resolved by App Engine. | 1245 * The hostname used to reach the application, as resolved by App Engine. |
| 921 * @OutputOnly | 1246 * @OutputOnly |
| 922 */ | 1247 */ |
| 923 core.String defaultHostname; | 1248 core.String defaultHostname; |
| 924 /** | 1249 /** |
| 925 * HTTP path dispatch rules for requests to the app that do not explicitly | 1250 * HTTP path dispatch rules for requests to the app that do not explicitly |
| 926 * target a service or version. The rules are order-dependent. @OutputOnly | 1251 * target a service or version. The rules are order-dependent. @OutputOnly |
| 927 */ | 1252 */ |
| 928 core.List<UrlDispatchRule> dispatchRules; | 1253 core.List<UrlDispatchRule> dispatchRules; |
| 929 /** The relative name/path of the application. Example: "myapp". */ | 1254 /** |
| 1255 * The identifier of the Application resource. This identifier is equivalent |
| 1256 * to the project ID of the Google Cloud Platform project where you want to |
| 1257 * deploy your application. Example: "myapp". |
| 1258 */ |
| 930 core.String id; | 1259 core.String id; |
| 931 /** | 1260 /** |
| 932 * The location from which the application will be run. Application instances | 1261 * The location from which the application will be run. Application instances |
| 933 * will run out of data centers in the chosen location and all of the | 1262 * will run out of data centers in the chosen location and all of the |
| 934 * application's End User Content will be stored at rest. The default is | 1263 * application's End User Content will be stored at rest. The default is |
| 935 * "us-central". Choices are: "us-central" - Central US "europe-west" - | 1264 * "us-central". Choices are: "us-central" - Central US "europe-west" - |
| 936 * Western Europe "us-east1" - Eastern US | 1265 * Western Europe "us-east1" - Eastern US |
| 937 */ | 1266 */ |
| 938 core.String location; | 1267 core.String location; |
| 939 /** | 1268 /** |
| 940 * The full path to the application in the API. Example: "apps/myapp". | 1269 * The full path to the Application resource in the API. Example: |
| 941 * @OutputOnly | 1270 * "apps/myapp". @OutputOnly |
| 942 */ | 1271 */ |
| 943 core.String name; | 1272 core.String name; |
| 944 | 1273 |
| 945 Application(); | 1274 Application(); |
| 946 | 1275 |
| 947 Application.fromJson(core.Map _json) { | 1276 Application.fromJson(core.Map _json) { |
| 948 if (_json.containsKey("authDomain")) { | 1277 if (_json.containsKey("authDomain")) { |
| 949 authDomain = _json["authDomain"]; | 1278 authDomain = _json["authDomain"]; |
| 950 } | 1279 } |
| 951 if (_json.containsKey("codeBucket")) { | 1280 if (_json.containsKey("codeBucket")) { |
| (...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1236 if (aggregationWindowLength != null) { | 1565 if (aggregationWindowLength != null) { |
| 1237 _json["aggregationWindowLength"] = aggregationWindowLength; | 1566 _json["aggregationWindowLength"] = aggregationWindowLength; |
| 1238 } | 1567 } |
| 1239 if (targetUtilization != null) { | 1568 if (targetUtilization != null) { |
| 1240 _json["targetUtilization"] = targetUtilization; | 1569 _json["targetUtilization"] = targetUtilization; |
| 1241 } | 1570 } |
| 1242 return _json; | 1571 return _json; |
| 1243 } | 1572 } |
| 1244 } | 1573 } |
| 1245 | 1574 |
| 1575 /** Request message for `Instances.DebugInstance`. */ |
| 1576 class DebugInstanceRequest { |
| 1577 |
| 1578 DebugInstanceRequest(); |
| 1579 |
| 1580 DebugInstanceRequest.fromJson(core.Map _json) { |
| 1581 } |
| 1582 |
| 1583 core.Map toJson() { |
| 1584 var _json = new core.Map(); |
| 1585 return _json; |
| 1586 } |
| 1587 } |
| 1588 |
| 1246 /** Code and application artifacts used to deploy a version to App Engine. */ | 1589 /** Code and application artifacts used to deploy a version to App Engine. */ |
| 1247 class Deployment { | 1590 class Deployment { |
| 1248 /** | 1591 /** |
| 1249 * If supplied, a docker (container) image which should be used to start the | 1592 * If supplied, a docker (container) image which should be used to start the |
| 1250 * application. Only applicable to the 'vm' runtime. | 1593 * application. Only applicable to the 'vm' runtime. |
| 1251 */ | 1594 */ |
| 1252 ContainerInfo container; | 1595 ContainerInfo container; |
| 1253 /** | 1596 /** |
| 1254 * A manifest of files stored in Google Cloud Storage which should be included | 1597 * A manifest of files stored in Google Cloud Storage which should be included |
| 1255 * as part of this application. All files must be readable using the | 1598 * as part of this application. All files must be readable using the |
| (...skipping 473 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1729 if (instances != null) { | 2072 if (instances != null) { |
| 1730 _json["instances"] = instances.map((value) => (value).toJson()).toList(); | 2073 _json["instances"] = instances.map((value) => (value).toJson()).toList(); |
| 1731 } | 2074 } |
| 1732 if (nextPageToken != null) { | 2075 if (nextPageToken != null) { |
| 1733 _json["nextPageToken"] = nextPageToken; | 2076 _json["nextPageToken"] = nextPageToken; |
| 1734 } | 2077 } |
| 1735 return _json; | 2078 return _json; |
| 1736 } | 2079 } |
| 1737 } | 2080 } |
| 1738 | 2081 |
| 2082 /** The response message for LocationService.ListLocations. */ |
| 2083 class ListLocationsResponse { |
| 2084 /** A list of locations that matches the specified filter in the request. */ |
| 2085 core.List<Location> locations; |
| 2086 /** The standard List next-page token. */ |
| 2087 core.String nextPageToken; |
| 2088 |
| 2089 ListLocationsResponse(); |
| 2090 |
| 2091 ListLocationsResponse.fromJson(core.Map _json) { |
| 2092 if (_json.containsKey("locations")) { |
| 2093 locations = _json["locations"].map((value) => new Location.fromJson(value)
).toList(); |
| 2094 } |
| 2095 if (_json.containsKey("nextPageToken")) { |
| 2096 nextPageToken = _json["nextPageToken"]; |
| 2097 } |
| 2098 } |
| 2099 |
| 2100 core.Map toJson() { |
| 2101 var _json = new core.Map(); |
| 2102 if (locations != null) { |
| 2103 _json["locations"] = locations.map((value) => (value).toJson()).toList(); |
| 2104 } |
| 2105 if (nextPageToken != null) { |
| 2106 _json["nextPageToken"] = nextPageToken; |
| 2107 } |
| 2108 return _json; |
| 2109 } |
| 2110 } |
| 2111 |
| 1739 /** The response message for Operations.ListOperations. */ | 2112 /** The response message for Operations.ListOperations. */ |
| 1740 class ListOperationsResponse { | 2113 class ListOperationsResponse { |
| 1741 /** The standard List next-page token. */ | 2114 /** The standard List next-page token. */ |
| 1742 core.String nextPageToken; | 2115 core.String nextPageToken; |
| 1743 /** A list of operations that matches the specified filter in the request. */ | 2116 /** A list of operations that matches the specified filter in the request. */ |
| 1744 core.List<Operation> operations; | 2117 core.List<Operation> operations; |
| 1745 | 2118 |
| 1746 ListOperationsResponse(); | 2119 ListOperationsResponse(); |
| 1747 | 2120 |
| 1748 ListOperationsResponse.fromJson(core.Map _json) { | 2121 ListOperationsResponse.fromJson(core.Map _json) { |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1819 if (nextPageToken != null) { | 2192 if (nextPageToken != null) { |
| 1820 _json["nextPageToken"] = nextPageToken; | 2193 _json["nextPageToken"] = nextPageToken; |
| 1821 } | 2194 } |
| 1822 if (versions != null) { | 2195 if (versions != null) { |
| 1823 _json["versions"] = versions.map((value) => (value).toJson()).toList(); | 2196 _json["versions"] = versions.map((value) => (value).toJson()).toList(); |
| 1824 } | 2197 } |
| 1825 return _json; | 2198 return _json; |
| 1826 } | 2199 } |
| 1827 } | 2200 } |
| 1828 | 2201 |
| 2202 /** A resource that represents Google Cloud Platform location. */ |
| 2203 class Location { |
| 2204 /** |
| 2205 * Cross-service attributes for the location. For example |
| 2206 * {"cloud.googleapis.com/region": "us-east1"} |
| 2207 */ |
| 2208 core.Map<core.String, core.String> labels; |
| 2209 /** |
| 2210 * Service-specific metadata. For example the available capacity at the given |
| 2211 * location. |
| 2212 * |
| 2213 * The values for Object must be JSON objects. It can consist of `num`, |
| 2214 * `String`, `bool` and `null` as well as `Map` and `List` values. |
| 2215 */ |
| 2216 core.Map<core.String, core.Object> metadata; |
| 2217 /** |
| 2218 * Resource name for the location, which may vary between implementations. |
| 2219 * Example: `"projects/example-project/locations/us-east1"` |
| 2220 */ |
| 2221 core.String name; |
| 2222 |
| 2223 Location(); |
| 2224 |
| 2225 Location.fromJson(core.Map _json) { |
| 2226 if (_json.containsKey("labels")) { |
| 2227 labels = _json["labels"]; |
| 2228 } |
| 2229 if (_json.containsKey("metadata")) { |
| 2230 metadata = _json["metadata"]; |
| 2231 } |
| 2232 if (_json.containsKey("name")) { |
| 2233 name = _json["name"]; |
| 2234 } |
| 2235 } |
| 2236 |
| 2237 core.Map toJson() { |
| 2238 var _json = new core.Map(); |
| 2239 if (labels != null) { |
| 2240 _json["labels"] = labels; |
| 2241 } |
| 2242 if (metadata != null) { |
| 2243 _json["metadata"] = metadata; |
| 2244 } |
| 2245 if (name != null) { |
| 2246 _json["name"] = name; |
| 2247 } |
| 2248 return _json; |
| 2249 } |
| 2250 } |
| 2251 |
| 1829 /** Metadata for the given google.cloud.location.Location. */ | 2252 /** Metadata for the given google.cloud.location.Location. */ |
| 1830 class LocationMetadata { | 2253 class LocationMetadata { |
| 1831 | 2254 |
| 1832 LocationMetadata(); | 2255 LocationMetadata(); |
| 1833 | 2256 |
| 1834 LocationMetadata.fromJson(core.Map _json) { | 2257 LocationMetadata.fromJson(core.Map _json) { |
| 1835 } | 2258 } |
| 1836 | 2259 |
| 1837 core.Map toJson() { | 2260 core.Map toJson() { |
| 1838 var _json = new core.Map(); | 2261 var _json = new core.Map(); |
| (...skipping 1302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3141 } | 3564 } |
| 3142 if (threadsafe != null) { | 3565 if (threadsafe != null) { |
| 3143 _json["threadsafe"] = threadsafe; | 3566 _json["threadsafe"] = threadsafe; |
| 3144 } | 3567 } |
| 3145 if (vm != null) { | 3568 if (vm != null) { |
| 3146 _json["vm"] = vm; | 3569 _json["vm"] = vm; |
| 3147 } | 3570 } |
| 3148 return _json; | 3571 return _json; |
| 3149 } | 3572 } |
| 3150 } | 3573 } |
| OLD | NEW |