| 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.appengine.v1; |
| 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/v1beta5'; | 15 const core.String USER_AGENT = 'dart-api-client appengine/v1'; |
| 16 | 16 |
| 17 /** Provisions and manages App Engine applications. */ | 17 /** Provisions and manages App Engine applications. */ |
| 18 class AppengineApi { | 18 class AppengineApi { |
| 19 /** View and manage your data across Google Cloud Platform services */ | 19 /** View and manage your data across Google Cloud Platform services */ |
| 20 static const CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platf
orm"; | 20 static const CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platf
orm"; |
| 21 | 21 |
| 22 | 22 |
| 23 final commons.ApiRequester _requester; | 23 final commons.ApiRequester _requester; |
| 24 | 24 |
| 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 AppsLocationsResourceApi get locations => new AppsLocationsResourceApi(_reques
ter); |
| 36 AppsOperationsResourceApi get operations => new AppsOperationsResourceApi(_req
uester); | 36 AppsOperationsResourceApi get operations => new AppsOperationsResourceApi(_req
uester); |
| 37 AppsServicesResourceApi get services => new AppsServicesResourceApi(_requester
); | 37 AppsServicesResourceApi get services => new AppsServicesResourceApi(_requester
); |
| 38 | 38 |
| 39 AppsResourceApi(commons.ApiRequester client) : | 39 AppsResourceApi(commons.ApiRequester client) : |
| 40 _requester = client; | 40 _requester = client; |
| 41 | 41 |
| 42 /** | 42 /** |
| 43 * Creates an App Engine application for a Google Cloud Platform project. This | 43 * Gets information about an application. |
| 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 * | 44 * |
| 51 * Request parameters: | 45 * Request parameters: |
| 52 * | 46 * |
| 53 * Completes with a [Operation]. | 47 * [appsId] - Part of `name`. Name of the Application resource to get. |
| 48 * Example: `apps/myapp`. |
| 49 * |
| 50 * Completes with a [Application]. |
| 54 * | 51 * |
| 55 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 52 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 56 * error. | 53 * error. |
| 57 * | 54 * |
| 58 * If the used [http.Client] completes with an error when making a REST call, | 55 * If the used [http.Client] completes with an error when making a REST call, |
| 59 * this method will complete with the same error. | 56 * this method will complete with the same error. |
| 60 */ | 57 */ |
| 61 async.Future<Operation> create(Application request) { | 58 async.Future<Application> get(core.String appsId) { |
| 62 var _url = null; | 59 var _url = null; |
| 63 var _queryParams = new core.Map(); | 60 var _queryParams = new core.Map(); |
| 64 var _uploadMedia = null; | 61 var _uploadMedia = null; |
| 65 var _uploadOptions = null; | 62 var _uploadOptions = null; |
| 66 var _downloadOptions = commons.DownloadOptions.Metadata; | 63 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 67 var _body = null; | 64 var _body = null; |
| 68 | 65 |
| 69 if (request != null) { | 66 if (appsId == null) { |
| 70 _body = convert.JSON.encode((request).toJson()); | 67 throw new core.ArgumentError("Parameter appsId is required."); |
| 71 } | 68 } |
| 72 | 69 |
| 73 _url = 'v1beta5/apps'; | 70 _url = 'v1/apps/' + commons.Escaper.ecapeVariable('$appsId'); |
| 74 | 71 |
| 75 var _response = _requester.request(_url, | 72 var _response = _requester.request(_url, |
| 76 "POST", | 73 "GET", |
| 77 body: _body, | 74 body: _body, |
| 78 queryParams: _queryParams, | 75 queryParams: _queryParams, |
| 79 uploadOptions: _uploadOptions, | 76 uploadOptions: _uploadOptions, |
| 80 uploadMedia: _uploadMedia, | 77 uploadMedia: _uploadMedia, |
| 81 downloadOptions: _downloadOptions); | 78 downloadOptions: _downloadOptions); |
| 82 return _response.then((data) => new Operation.fromJson(data)); | 79 return _response.then((data) => new Application.fromJson(data)); |
| 83 } | 80 } |
| 84 | 81 |
| 85 /** | 82 /** |
| 86 * Gets information about an application. | 83 * Recreates the required App Engine features for the application in your |
| 84 * project, for example a Cloud Storage bucket or App Engine service account. |
| 85 * Use this method if you receive an error message about a missing feature, |
| 86 * for example "*Error retrieving the App Engine service account*". |
| 87 * |
| 88 * [request] - The metadata request object. |
| 87 * | 89 * |
| 88 * Request parameters: | 90 * Request parameters: |
| 89 * | 91 * |
| 90 * [appsId] - Part of `name`. Name of the application to get. For example: | 92 * [appsId] - Part of `name`. Name of the application to repair. Example: |
| 91 * "apps/myapp". | 93 * `apps/myapp` |
| 92 * | 94 * |
| 93 * [ensureResourcesExist] - Certain resources associated with an application | 95 * Completes with a [Operation]. |
| 94 * are created on-demand. Controls whether these resources should be created | |
| 95 * when performing the `GET` operation. If specified and any resources could | |
| 96 * not be created, the request will fail with an error code. Additionally, | |
| 97 * this parameter can cause the request to take longer to complete. Note: This | |
| 98 * parameter will be deprecated in a future version of the API. | |
| 99 * | |
| 100 * Completes with a [Application]. | |
| 101 * | 96 * |
| 102 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 97 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 103 * error. | 98 * error. |
| 104 * | 99 * |
| 105 * If the used [http.Client] completes with an error when making a REST call, | 100 * If the used [http.Client] completes with an error when making a REST call, |
| 106 * this method will complete with the same error. | 101 * this method will complete with the same error. |
| 107 */ | 102 */ |
| 108 async.Future<Application> get(core.String appsId, {core.bool ensureResourcesEx
ist}) { | 103 async.Future<Operation> repair(RepairApplicationRequest request, core.String a
ppsId) { |
| 109 var _url = null; | 104 var _url = null; |
| 110 var _queryParams = new core.Map(); | 105 var _queryParams = new core.Map(); |
| 111 var _uploadMedia = null; | 106 var _uploadMedia = null; |
| 112 var _uploadOptions = null; | 107 var _uploadOptions = null; |
| 113 var _downloadOptions = commons.DownloadOptions.Metadata; | 108 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 114 var _body = null; | 109 var _body = null; |
| 115 | 110 |
| 111 if (request != null) { |
| 112 _body = convert.JSON.encode((request).toJson()); |
| 113 } |
| 116 if (appsId == null) { | 114 if (appsId == null) { |
| 117 throw new core.ArgumentError("Parameter appsId is required."); | 115 throw new core.ArgumentError("Parameter appsId is required."); |
| 118 } | 116 } |
| 119 if (ensureResourcesExist != null) { | |
| 120 _queryParams["ensureResourcesExist"] = ["${ensureResourcesExist}"]; | |
| 121 } | |
| 122 | 117 |
| 123 _url = 'v1beta5/apps/' + commons.Escaper.ecapeVariable('$appsId'); | 118 _url = 'v1/apps/' + commons.Escaper.ecapeVariable('$appsId') + ':repair'; |
| 124 | 119 |
| 125 var _response = _requester.request(_url, | 120 var _response = _requester.request(_url, |
| 126 "GET", | 121 "POST", |
| 127 body: _body, | 122 body: _body, |
| 128 queryParams: _queryParams, | 123 queryParams: _queryParams, |
| 129 uploadOptions: _uploadOptions, | 124 uploadOptions: _uploadOptions, |
| 130 uploadMedia: _uploadMedia, | 125 uploadMedia: _uploadMedia, |
| 131 downloadOptions: _downloadOptions); | 126 downloadOptions: _downloadOptions); |
| 132 return _response.then((data) => new Application.fromJson(data)); | 127 return _response.then((data) => new Operation.fromJson(data)); |
| 133 } | 128 } |
| 134 | 129 |
| 135 } | 130 } |
| 136 | 131 |
| 137 | 132 |
| 138 class AppsLocationsResourceApi { | 133 class AppsLocationsResourceApi { |
| 139 final commons.ApiRequester _requester; | 134 final commons.ApiRequester _requester; |
| 140 | 135 |
| 141 AppsLocationsResourceApi(commons.ApiRequester client) : | 136 AppsLocationsResourceApi(commons.ApiRequester client) : |
| 142 _requester = client; | 137 _requester = client; |
| (...skipping 23 matching lines...) Expand all Loading... |
| 166 var _downloadOptions = commons.DownloadOptions.Metadata; | 161 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 167 var _body = null; | 162 var _body = null; |
| 168 | 163 |
| 169 if (appsId == null) { | 164 if (appsId == null) { |
| 170 throw new core.ArgumentError("Parameter appsId is required."); | 165 throw new core.ArgumentError("Parameter appsId is required."); |
| 171 } | 166 } |
| 172 if (locationsId == null) { | 167 if (locationsId == null) { |
| 173 throw new core.ArgumentError("Parameter locationsId is required."); | 168 throw new core.ArgumentError("Parameter locationsId is required."); |
| 174 } | 169 } |
| 175 | 170 |
| 176 _url = 'v1beta5/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/locati
ons/' + commons.Escaper.ecapeVariable('$locationsId'); | 171 _url = 'v1/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/locations/'
+ commons.Escaper.ecapeVariable('$locationsId'); |
| 177 | 172 |
| 178 var _response = _requester.request(_url, | 173 var _response = _requester.request(_url, |
| 179 "GET", | 174 "GET", |
| 180 body: _body, | 175 body: _body, |
| 181 queryParams: _queryParams, | 176 queryParams: _queryParams, |
| 182 uploadOptions: _uploadOptions, | 177 uploadOptions: _uploadOptions, |
| 183 uploadMedia: _uploadMedia, | 178 uploadMedia: _uploadMedia, |
| 184 downloadOptions: _downloadOptions); | 179 downloadOptions: _downloadOptions); |
| 185 return _response.then((data) => new Location.fromJson(data)); | 180 return _response.then((data) => new Location.fromJson(data)); |
| 186 } | 181 } |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 221 if (filter != null) { | 216 if (filter != null) { |
| 222 _queryParams["filter"] = [filter]; | 217 _queryParams["filter"] = [filter]; |
| 223 } | 218 } |
| 224 if (pageSize != null) { | 219 if (pageSize != null) { |
| 225 _queryParams["pageSize"] = ["${pageSize}"]; | 220 _queryParams["pageSize"] = ["${pageSize}"]; |
| 226 } | 221 } |
| 227 if (pageToken != null) { | 222 if (pageToken != null) { |
| 228 _queryParams["pageToken"] = [pageToken]; | 223 _queryParams["pageToken"] = [pageToken]; |
| 229 } | 224 } |
| 230 | 225 |
| 231 _url = 'v1beta5/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/locati
ons'; | 226 _url = 'v1/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/locations'; |
| 232 | 227 |
| 233 var _response = _requester.request(_url, | 228 var _response = _requester.request(_url, |
| 234 "GET", | 229 "GET", |
| 235 body: _body, | 230 body: _body, |
| 236 queryParams: _queryParams, | 231 queryParams: _queryParams, |
| 237 uploadOptions: _uploadOptions, | 232 uploadOptions: _uploadOptions, |
| 238 uploadMedia: _uploadMedia, | 233 uploadMedia: _uploadMedia, |
| 239 downloadOptions: _downloadOptions); | 234 downloadOptions: _downloadOptions); |
| 240 return _response.then((data) => new ListLocationsResponse.fromJson(data)); | 235 return _response.then((data) => new ListLocationsResponse.fromJson(data)); |
| 241 } | 236 } |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 276 var _downloadOptions = commons.DownloadOptions.Metadata; | 271 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 277 var _body = null; | 272 var _body = null; |
| 278 | 273 |
| 279 if (appsId == null) { | 274 if (appsId == null) { |
| 280 throw new core.ArgumentError("Parameter appsId is required."); | 275 throw new core.ArgumentError("Parameter appsId is required."); |
| 281 } | 276 } |
| 282 if (operationsId == null) { | 277 if (operationsId == null) { |
| 283 throw new core.ArgumentError("Parameter operationsId is required."); | 278 throw new core.ArgumentError("Parameter operationsId is required."); |
| 284 } | 279 } |
| 285 | 280 |
| 286 _url = 'v1beta5/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/operat
ions/' + commons.Escaper.ecapeVariable('$operationsId'); | 281 _url = 'v1/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/operations/
' + commons.Escaper.ecapeVariable('$operationsId'); |
| 287 | 282 |
| 288 var _response = _requester.request(_url, | 283 var _response = _requester.request(_url, |
| 289 "GET", | 284 "GET", |
| 290 body: _body, | 285 body: _body, |
| 291 queryParams: _queryParams, | 286 queryParams: _queryParams, |
| 292 uploadOptions: _uploadOptions, | 287 uploadOptions: _uploadOptions, |
| 293 uploadMedia: _uploadMedia, | 288 uploadMedia: _uploadMedia, |
| 294 downloadOptions: _downloadOptions); | 289 downloadOptions: _downloadOptions); |
| 295 return _response.then((data) => new Operation.fromJson(data)); | 290 return _response.then((data) => new Operation.fromJson(data)); |
| 296 } | 291 } |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 333 if (filter != null) { | 328 if (filter != null) { |
| 334 _queryParams["filter"] = [filter]; | 329 _queryParams["filter"] = [filter]; |
| 335 } | 330 } |
| 336 if (pageSize != null) { | 331 if (pageSize != null) { |
| 337 _queryParams["pageSize"] = ["${pageSize}"]; | 332 _queryParams["pageSize"] = ["${pageSize}"]; |
| 338 } | 333 } |
| 339 if (pageToken != null) { | 334 if (pageToken != null) { |
| 340 _queryParams["pageToken"] = [pageToken]; | 335 _queryParams["pageToken"] = [pageToken]; |
| 341 } | 336 } |
| 342 | 337 |
| 343 _url = 'v1beta5/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/operat
ions'; | 338 _url = 'v1/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/operations'
; |
| 344 | 339 |
| 345 var _response = _requester.request(_url, | 340 var _response = _requester.request(_url, |
| 346 "GET", | 341 "GET", |
| 347 body: _body, | 342 body: _body, |
| 348 queryParams: _queryParams, | 343 queryParams: _queryParams, |
| 349 uploadOptions: _uploadOptions, | 344 uploadOptions: _uploadOptions, |
| 350 uploadMedia: _uploadMedia, | 345 uploadMedia: _uploadMedia, |
| 351 downloadOptions: _downloadOptions); | 346 downloadOptions: _downloadOptions); |
| 352 return _response.then((data) => new ListOperationsResponse.fromJson(data)); | 347 return _response.then((data) => new ListOperationsResponse.fromJson(data)); |
| 353 } | 348 } |
| 354 | 349 |
| 355 } | 350 } |
| 356 | 351 |
| 357 | 352 |
| 358 class AppsServicesResourceApi { | 353 class AppsServicesResourceApi { |
| 359 final commons.ApiRequester _requester; | 354 final commons.ApiRequester _requester; |
| 360 | 355 |
| 361 AppsServicesVersionsResourceApi get versions => new AppsServicesVersionsResour
ceApi(_requester); | 356 AppsServicesVersionsResourceApi get versions => new AppsServicesVersionsResour
ceApi(_requester); |
| 362 | 357 |
| 363 AppsServicesResourceApi(commons.ApiRequester client) : | 358 AppsServicesResourceApi(commons.ApiRequester client) : |
| 364 _requester = client; | 359 _requester = client; |
| 365 | 360 |
| 366 /** | 361 /** |
| 367 * Deletes a service and all enclosed versions. | 362 * Deletes the specified service and all enclosed versions. |
| 368 * | 363 * |
| 369 * Request parameters: | 364 * Request parameters: |
| 370 * | 365 * |
| 371 * [appsId] - Part of `name`. Name of the resource requested. For example: | 366 * [appsId] - Part of `name`. Name of the resource requested. Example: |
| 372 * "apps/myapp/services/default". | 367 * `apps/myapp/services/default`. |
| 373 * | 368 * |
| 374 * [servicesId] - Part of `name`. See documentation of `appsId`. | 369 * [servicesId] - Part of `name`. See documentation of `appsId`. |
| 375 * | 370 * |
| 376 * Completes with a [Operation]. | 371 * Completes with a [Operation]. |
| 377 * | 372 * |
| 378 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 373 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 379 * error. | 374 * error. |
| 380 * | 375 * |
| 381 * If the used [http.Client] completes with an error when making a REST call, | 376 * If the used [http.Client] completes with an error when making a REST call, |
| 382 * this method will complete with the same error. | 377 * this method will complete with the same error. |
| 383 */ | 378 */ |
| 384 async.Future<Operation> delete(core.String appsId, core.String servicesId) { | 379 async.Future<Operation> delete(core.String appsId, core.String servicesId) { |
| 385 var _url = null; | 380 var _url = null; |
| 386 var _queryParams = new core.Map(); | 381 var _queryParams = new core.Map(); |
| 387 var _uploadMedia = null; | 382 var _uploadMedia = null; |
| 388 var _uploadOptions = null; | 383 var _uploadOptions = null; |
| 389 var _downloadOptions = commons.DownloadOptions.Metadata; | 384 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 390 var _body = null; | 385 var _body = null; |
| 391 | 386 |
| 392 if (appsId == null) { | 387 if (appsId == null) { |
| 393 throw new core.ArgumentError("Parameter appsId is required."); | 388 throw new core.ArgumentError("Parameter appsId is required."); |
| 394 } | 389 } |
| 395 if (servicesId == null) { | 390 if (servicesId == null) { |
| 396 throw new core.ArgumentError("Parameter servicesId is required."); | 391 throw new core.ArgumentError("Parameter servicesId is required."); |
| 397 } | 392 } |
| 398 | 393 |
| 399 _url = 'v1beta5/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/servic
es/' + commons.Escaper.ecapeVariable('$servicesId'); | 394 _url = 'v1/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/services/'
+ commons.Escaper.ecapeVariable('$servicesId'); |
| 400 | 395 |
| 401 var _response = _requester.request(_url, | 396 var _response = _requester.request(_url, |
| 402 "DELETE", | 397 "DELETE", |
| 403 body: _body, | 398 body: _body, |
| 404 queryParams: _queryParams, | 399 queryParams: _queryParams, |
| 405 uploadOptions: _uploadOptions, | 400 uploadOptions: _uploadOptions, |
| 406 uploadMedia: _uploadMedia, | 401 uploadMedia: _uploadMedia, |
| 407 downloadOptions: _downloadOptions); | 402 downloadOptions: _downloadOptions); |
| 408 return _response.then((data) => new Operation.fromJson(data)); | 403 return _response.then((data) => new Operation.fromJson(data)); |
| 409 } | 404 } |
| 410 | 405 |
| 411 /** | 406 /** |
| 412 * Gets the current configuration of the service. | 407 * Gets the current configuration of the specified service. |
| 413 * | 408 * |
| 414 * Request parameters: | 409 * Request parameters: |
| 415 * | 410 * |
| 416 * [appsId] - Part of `name`. Name of the resource requested. For example: | 411 * [appsId] - Part of `name`. Name of the resource requested. Example: |
| 417 * "apps/myapp/services/default". | 412 * `apps/myapp/services/default`. |
| 418 * | 413 * |
| 419 * [servicesId] - Part of `name`. See documentation of `appsId`. | 414 * [servicesId] - Part of `name`. See documentation of `appsId`. |
| 420 * | 415 * |
| 421 * Completes with a [Service]. | 416 * Completes with a [Service]. |
| 422 * | 417 * |
| 423 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 418 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 424 * error. | 419 * error. |
| 425 * | 420 * |
| 426 * If the used [http.Client] completes with an error when making a REST call, | 421 * If the used [http.Client] completes with an error when making a REST call, |
| 427 * this method will complete with the same error. | 422 * this method will complete with the same error. |
| 428 */ | 423 */ |
| 429 async.Future<Service> get(core.String appsId, core.String servicesId) { | 424 async.Future<Service> get(core.String appsId, core.String servicesId) { |
| 430 var _url = null; | 425 var _url = null; |
| 431 var _queryParams = new core.Map(); | 426 var _queryParams = new core.Map(); |
| 432 var _uploadMedia = null; | 427 var _uploadMedia = null; |
| 433 var _uploadOptions = null; | 428 var _uploadOptions = null; |
| 434 var _downloadOptions = commons.DownloadOptions.Metadata; | 429 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 435 var _body = null; | 430 var _body = null; |
| 436 | 431 |
| 437 if (appsId == null) { | 432 if (appsId == null) { |
| 438 throw new core.ArgumentError("Parameter appsId is required."); | 433 throw new core.ArgumentError("Parameter appsId is required."); |
| 439 } | 434 } |
| 440 if (servicesId == null) { | 435 if (servicesId == null) { |
| 441 throw new core.ArgumentError("Parameter servicesId is required."); | 436 throw new core.ArgumentError("Parameter servicesId is required."); |
| 442 } | 437 } |
| 443 | 438 |
| 444 _url = 'v1beta5/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/servic
es/' + commons.Escaper.ecapeVariable('$servicesId'); | 439 _url = 'v1/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/services/'
+ commons.Escaper.ecapeVariable('$servicesId'); |
| 445 | 440 |
| 446 var _response = _requester.request(_url, | 441 var _response = _requester.request(_url, |
| 447 "GET", | 442 "GET", |
| 448 body: _body, | 443 body: _body, |
| 449 queryParams: _queryParams, | 444 queryParams: _queryParams, |
| 450 uploadOptions: _uploadOptions, | 445 uploadOptions: _uploadOptions, |
| 451 uploadMedia: _uploadMedia, | 446 uploadMedia: _uploadMedia, |
| 452 downloadOptions: _downloadOptions); | 447 downloadOptions: _downloadOptions); |
| 453 return _response.then((data) => new Service.fromJson(data)); | 448 return _response.then((data) => new Service.fromJson(data)); |
| 454 } | 449 } |
| 455 | 450 |
| 456 /** | 451 /** |
| 457 * Lists all the services in the application. | 452 * Lists all the services in the application. |
| 458 * | 453 * |
| 459 * Request parameters: | 454 * Request parameters: |
| 460 * | 455 * |
| 461 * [appsId] - Part of `name`. Name of the resource requested. For example: | 456 * [appsId] - Part of `parent`. Name of the parent Application resource. |
| 462 * "apps/myapp". | 457 * Example: `apps/myapp`. |
| 463 * | 458 * |
| 464 * [pageSize] - Maximum results to return per page. | 459 * [pageSize] - Maximum results to return per page. |
| 465 * | 460 * |
| 466 * [pageToken] - Continuation token for fetching the next page of results. | 461 * [pageToken] - Continuation token for fetching the next page of results. |
| 467 * | 462 * |
| 468 * Completes with a [ListServicesResponse]. | 463 * Completes with a [ListServicesResponse]. |
| 469 * | 464 * |
| 470 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 465 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 471 * error. | 466 * error. |
| 472 * | 467 * |
| (...skipping 11 matching lines...) Expand all Loading... |
| 484 if (appsId == null) { | 479 if (appsId == null) { |
| 485 throw new core.ArgumentError("Parameter appsId is required."); | 480 throw new core.ArgumentError("Parameter appsId is required."); |
| 486 } | 481 } |
| 487 if (pageSize != null) { | 482 if (pageSize != null) { |
| 488 _queryParams["pageSize"] = ["${pageSize}"]; | 483 _queryParams["pageSize"] = ["${pageSize}"]; |
| 489 } | 484 } |
| 490 if (pageToken != null) { | 485 if (pageToken != null) { |
| 491 _queryParams["pageToken"] = [pageToken]; | 486 _queryParams["pageToken"] = [pageToken]; |
| 492 } | 487 } |
| 493 | 488 |
| 494 _url = 'v1beta5/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/servic
es'; | 489 _url = 'v1/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/services'; |
| 495 | 490 |
| 496 var _response = _requester.request(_url, | 491 var _response = _requester.request(_url, |
| 497 "GET", | 492 "GET", |
| 498 body: _body, | 493 body: _body, |
| 499 queryParams: _queryParams, | 494 queryParams: _queryParams, |
| 500 uploadOptions: _uploadOptions, | 495 uploadOptions: _uploadOptions, |
| 501 uploadMedia: _uploadMedia, | 496 uploadMedia: _uploadMedia, |
| 502 downloadOptions: _downloadOptions); | 497 downloadOptions: _downloadOptions); |
| 503 return _response.then((data) => new ListServicesResponse.fromJson(data)); | 498 return _response.then((data) => new ListServicesResponse.fromJson(data)); |
| 504 } | 499 } |
| 505 | 500 |
| 506 /** | 501 /** |
| 507 * Updates the configuration of the specified service. | 502 * Updates the configuration of the specified service. |
| 508 * | 503 * |
| 509 * [request] - The metadata request object. | 504 * [request] - The metadata request object. |
| 510 * | 505 * |
| 511 * Request parameters: | 506 * Request parameters: |
| 512 * | 507 * |
| 513 * [appsId] - Part of `name`. Name of the resource to update. For example: | 508 * [appsId] - Part of `name`. Name of the resource to update. Example: |
| 514 * "apps/myapp/services/default". | 509 * `apps/myapp/services/default`. |
| 515 * | 510 * |
| 516 * [servicesId] - Part of `name`. See documentation of `appsId`. | 511 * [servicesId] - Part of `name`. See documentation of `appsId`. |
| 517 * | 512 * |
| 518 * [mask] - Standard field mask for the set of fields to be updated. | 513 * [updateMask] - Standard field mask for the set of fields to be updated. |
| 519 * | 514 * |
| 520 * [migrateTraffic] - Whether to use Traffic Migration to shift traffic | 515 * [migrateTraffic] - Set to `true` to gradually shift traffic from one |
| 521 * gradually. Traffic can only be migrated from a single version to another | 516 * version to another single version. By default, traffic is shifted |
| 522 * single version. | 517 * immediately. For gradual traffic migration, the target version must be |
| 518 * located within instances that are configured for both [warmup |
| 519 * requests](https://cloud.google.com/appengine/docs/admin-api/reference/rest/
v1/apps.services.versions#inboundservicetype) |
| 520 * and [automatic |
| 521 * scaling](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v
1/apps.services.versions#automaticscaling). |
| 522 * You must specify the |
| 523 * [`shardBy`](https://cloud.google.com/appengine/docs/admin-api/reference/res
t/v1/apps.services#shardby) |
| 524 * field in the Service resource. Gradual traffic migration is not supported |
| 525 * in the App Engine flexible environment. For examples, see [Migrating and |
| 526 * Splitting |
| 527 * Traffic](https://cloud.google.com/appengine/docs/admin-api/migrating-splitt
ing-traffic). |
| 523 * | 528 * |
| 524 * Completes with a [Operation]. | 529 * Completes with a [Operation]. |
| 525 * | 530 * |
| 526 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 531 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 527 * error. | 532 * error. |
| 528 * | 533 * |
| 529 * If the used [http.Client] completes with an error when making a REST call, | 534 * If the used [http.Client] completes with an error when making a REST call, |
| 530 * this method will complete with the same error. | 535 * this method will complete with the same error. |
| 531 */ | 536 */ |
| 532 async.Future<Operation> patch(Service request, core.String appsId, core.String
servicesId, {core.String mask, core.bool migrateTraffic}) { | 537 async.Future<Operation> patch(Service request, core.String appsId, core.String
servicesId, {core.String updateMask, core.bool migrateTraffic}) { |
| 533 var _url = null; | 538 var _url = null; |
| 534 var _queryParams = new core.Map(); | 539 var _queryParams = new core.Map(); |
| 535 var _uploadMedia = null; | 540 var _uploadMedia = null; |
| 536 var _uploadOptions = null; | 541 var _uploadOptions = null; |
| 537 var _downloadOptions = commons.DownloadOptions.Metadata; | 542 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 538 var _body = null; | 543 var _body = null; |
| 539 | 544 |
| 540 if (request != null) { | 545 if (request != null) { |
| 541 _body = convert.JSON.encode((request).toJson()); | 546 _body = convert.JSON.encode((request).toJson()); |
| 542 } | 547 } |
| 543 if (appsId == null) { | 548 if (appsId == null) { |
| 544 throw new core.ArgumentError("Parameter appsId is required."); | 549 throw new core.ArgumentError("Parameter appsId is required."); |
| 545 } | 550 } |
| 546 if (servicesId == null) { | 551 if (servicesId == null) { |
| 547 throw new core.ArgumentError("Parameter servicesId is required."); | 552 throw new core.ArgumentError("Parameter servicesId is required."); |
| 548 } | 553 } |
| 549 if (mask != null) { | 554 if (updateMask != null) { |
| 550 _queryParams["mask"] = [mask]; | 555 _queryParams["updateMask"] = [updateMask]; |
| 551 } | 556 } |
| 552 if (migrateTraffic != null) { | 557 if (migrateTraffic != null) { |
| 553 _queryParams["migrateTraffic"] = ["${migrateTraffic}"]; | 558 _queryParams["migrateTraffic"] = ["${migrateTraffic}"]; |
| 554 } | 559 } |
| 555 | 560 |
| 556 _url = 'v1beta5/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/servic
es/' + commons.Escaper.ecapeVariable('$servicesId'); | 561 _url = 'v1/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/services/'
+ commons.Escaper.ecapeVariable('$servicesId'); |
| 557 | 562 |
| 558 var _response = _requester.request(_url, | 563 var _response = _requester.request(_url, |
| 559 "PATCH", | 564 "PATCH", |
| 560 body: _body, | 565 body: _body, |
| 561 queryParams: _queryParams, | 566 queryParams: _queryParams, |
| 562 uploadOptions: _uploadOptions, | 567 uploadOptions: _uploadOptions, |
| 563 uploadMedia: _uploadMedia, | 568 uploadMedia: _uploadMedia, |
| 564 downloadOptions: _downloadOptions); | 569 downloadOptions: _downloadOptions); |
| 565 return _response.then((data) => new Operation.fromJson(data)); | 570 return _response.then((data) => new Operation.fromJson(data)); |
| 566 } | 571 } |
| 567 | 572 |
| 568 } | 573 } |
| 569 | 574 |
| 570 | 575 |
| 571 class AppsServicesVersionsResourceApi { | 576 class AppsServicesVersionsResourceApi { |
| 572 final commons.ApiRequester _requester; | 577 final commons.ApiRequester _requester; |
| 573 | 578 |
| 574 AppsServicesVersionsInstancesResourceApi get instances => new AppsServicesVers
ionsInstancesResourceApi(_requester); | 579 AppsServicesVersionsInstancesResourceApi get instances => new AppsServicesVers
ionsInstancesResourceApi(_requester); |
| 575 | 580 |
| 576 AppsServicesVersionsResourceApi(commons.ApiRequester client) : | 581 AppsServicesVersionsResourceApi(commons.ApiRequester client) : |
| 577 _requester = client; | 582 _requester = client; |
| 578 | 583 |
| 579 /** | 584 /** |
| 580 * Deploys new code and resource files to a version. | 585 * Deploys code and resource files to a new version. |
| 581 * | 586 * |
| 582 * [request] - The metadata request object. | 587 * [request] - The metadata request object. |
| 583 * | 588 * |
| 584 * Request parameters: | 589 * Request parameters: |
| 585 * | 590 * |
| 586 * [appsId] - Part of `name`. Name of the resource to update. For example: | 591 * [appsId] - Part of `parent`. Name of the parent resource to create this |
| 587 * "apps/myapp/services/default". | 592 * version under. Example: `apps/myapp/services/default`. |
| 588 * | 593 * |
| 589 * [servicesId] - Part of `name`. See documentation of `appsId`. | 594 * [servicesId] - Part of `parent`. See documentation of `appsId`. |
| 590 * | 595 * |
| 591 * Completes with a [Operation]. | 596 * Completes with a [Operation]. |
| 592 * | 597 * |
| 593 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 598 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 594 * error. | 599 * error. |
| 595 * | 600 * |
| 596 * If the used [http.Client] completes with an error when making a REST call, | 601 * If the used [http.Client] completes with an error when making a REST call, |
| 597 * this method will complete with the same error. | 602 * this method will complete with the same error. |
| 598 */ | 603 */ |
| 599 async.Future<Operation> create(Version request, core.String appsId, core.Strin
g servicesId) { | 604 async.Future<Operation> create(Version request, core.String appsId, core.Strin
g servicesId) { |
| 600 var _url = null; | 605 var _url = null; |
| 601 var _queryParams = new core.Map(); | 606 var _queryParams = new core.Map(); |
| 602 var _uploadMedia = null; | 607 var _uploadMedia = null; |
| 603 var _uploadOptions = null; | 608 var _uploadOptions = null; |
| 604 var _downloadOptions = commons.DownloadOptions.Metadata; | 609 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 605 var _body = null; | 610 var _body = null; |
| 606 | 611 |
| 607 if (request != null) { | 612 if (request != null) { |
| 608 _body = convert.JSON.encode((request).toJson()); | 613 _body = convert.JSON.encode((request).toJson()); |
| 609 } | 614 } |
| 610 if (appsId == null) { | 615 if (appsId == null) { |
| 611 throw new core.ArgumentError("Parameter appsId is required."); | 616 throw new core.ArgumentError("Parameter appsId is required."); |
| 612 } | 617 } |
| 613 if (servicesId == null) { | 618 if (servicesId == null) { |
| 614 throw new core.ArgumentError("Parameter servicesId is required."); | 619 throw new core.ArgumentError("Parameter servicesId is required."); |
| 615 } | 620 } |
| 616 | 621 |
| 617 _url = 'v1beta5/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/servic
es/' + commons.Escaper.ecapeVariable('$servicesId') + '/versions'; | 622 _url = 'v1/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/services/'
+ commons.Escaper.ecapeVariable('$servicesId') + '/versions'; |
| 618 | 623 |
| 619 var _response = _requester.request(_url, | 624 var _response = _requester.request(_url, |
| 620 "POST", | 625 "POST", |
| 621 body: _body, | 626 body: _body, |
| 622 queryParams: _queryParams, | 627 queryParams: _queryParams, |
| 623 uploadOptions: _uploadOptions, | 628 uploadOptions: _uploadOptions, |
| 624 uploadMedia: _uploadMedia, | 629 uploadMedia: _uploadMedia, |
| 625 downloadOptions: _downloadOptions); | 630 downloadOptions: _downloadOptions); |
| 626 return _response.then((data) => new Operation.fromJson(data)); | 631 return _response.then((data) => new Operation.fromJson(data)); |
| 627 } | 632 } |
| 628 | 633 |
| 629 /** | 634 /** |
| 630 * Deletes an existing version. | 635 * Deletes an existing Version resource. |
| 631 * | 636 * |
| 632 * Request parameters: | 637 * Request parameters: |
| 633 * | 638 * |
| 634 * [appsId] - Part of `name`. Name of the resource requested. For example: | 639 * [appsId] - Part of `name`. Name of the resource requested. Example: |
| 635 * "apps/myapp/services/default/versions/v1". | 640 * `apps/myapp/services/default/versions/v1`. |
| 636 * | 641 * |
| 637 * [servicesId] - Part of `name`. See documentation of `appsId`. | 642 * [servicesId] - Part of `name`. See documentation of `appsId`. |
| 638 * | 643 * |
| 639 * [versionsId] - Part of `name`. See documentation of `appsId`. | 644 * [versionsId] - Part of `name`. See documentation of `appsId`. |
| 640 * | 645 * |
| 641 * Completes with a [Operation]. | 646 * Completes with a [Operation]. |
| 642 * | 647 * |
| 643 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 648 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 644 * error. | 649 * error. |
| 645 * | 650 * |
| (...skipping 11 matching lines...) Expand all Loading... |
| 657 if (appsId == null) { | 662 if (appsId == null) { |
| 658 throw new core.ArgumentError("Parameter appsId is required."); | 663 throw new core.ArgumentError("Parameter appsId is required."); |
| 659 } | 664 } |
| 660 if (servicesId == null) { | 665 if (servicesId == null) { |
| 661 throw new core.ArgumentError("Parameter servicesId is required."); | 666 throw new core.ArgumentError("Parameter servicesId is required."); |
| 662 } | 667 } |
| 663 if (versionsId == null) { | 668 if (versionsId == null) { |
| 664 throw new core.ArgumentError("Parameter versionsId is required."); | 669 throw new core.ArgumentError("Parameter versionsId is required."); |
| 665 } | 670 } |
| 666 | 671 |
| 667 _url = 'v1beta5/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/servic
es/' + commons.Escaper.ecapeVariable('$servicesId') + '/versions/' + commons.Esc
aper.ecapeVariable('$versionsId'); | 672 _url = 'v1/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/services/'
+ commons.Escaper.ecapeVariable('$servicesId') + '/versions/' + commons.Escaper.
ecapeVariable('$versionsId'); |
| 668 | 673 |
| 669 var _response = _requester.request(_url, | 674 var _response = _requester.request(_url, |
| 670 "DELETE", | 675 "DELETE", |
| 671 body: _body, | 676 body: _body, |
| 672 queryParams: _queryParams, | 677 queryParams: _queryParams, |
| 673 uploadOptions: _uploadOptions, | 678 uploadOptions: _uploadOptions, |
| 674 uploadMedia: _uploadMedia, | 679 uploadMedia: _uploadMedia, |
| 675 downloadOptions: _downloadOptions); | 680 downloadOptions: _downloadOptions); |
| 676 return _response.then((data) => new Operation.fromJson(data)); | 681 return _response.then((data) => new Operation.fromJson(data)); |
| 677 } | 682 } |
| 678 | 683 |
| 679 /** | 684 /** |
| 680 * Gets application deployment information. | 685 * Gets the specified Version resource. By default, only a `BASIC_VIEW` will |
| 686 * be returned. Specify the `FULL_VIEW` parameter to get the full resource. |
| 681 * | 687 * |
| 682 * Request parameters: | 688 * Request parameters: |
| 683 * | 689 * |
| 684 * [appsId] - Part of `name`. Name of the resource requested. For example: | 690 * [appsId] - Part of `name`. Name of the resource requested. Example: |
| 685 * "apps/myapp/services/default/versions/v1". | 691 * `apps/myapp/services/default/versions/v1`. |
| 686 * | 692 * |
| 687 * [servicesId] - Part of `name`. See documentation of `appsId`. | 693 * [servicesId] - Part of `name`. See documentation of `appsId`. |
| 688 * | 694 * |
| 689 * [versionsId] - Part of `name`. See documentation of `appsId`. | 695 * [versionsId] - Part of `name`. See documentation of `appsId`. |
| 690 * | 696 * |
| 691 * [view] - Controls the set of fields returned in the `Get` response. | 697 * [view] - Controls the set of fields returned in the `Get` response. |
| 692 * Possible string values are: | 698 * Possible string values are: |
| 693 * - "BASIC" : A BASIC. | 699 * - "BASIC" : A BASIC. |
| 694 * - "FULL" : A FULL. | 700 * - "FULL" : A FULL. |
| 695 * | 701 * |
| (...skipping 19 matching lines...) Expand all Loading... |
| 715 if (servicesId == null) { | 721 if (servicesId == null) { |
| 716 throw new core.ArgumentError("Parameter servicesId is required."); | 722 throw new core.ArgumentError("Parameter servicesId is required."); |
| 717 } | 723 } |
| 718 if (versionsId == null) { | 724 if (versionsId == null) { |
| 719 throw new core.ArgumentError("Parameter versionsId is required."); | 725 throw new core.ArgumentError("Parameter versionsId is required."); |
| 720 } | 726 } |
| 721 if (view != null) { | 727 if (view != null) { |
| 722 _queryParams["view"] = [view]; | 728 _queryParams["view"] = [view]; |
| 723 } | 729 } |
| 724 | 730 |
| 725 _url = 'v1beta5/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/servic
es/' + commons.Escaper.ecapeVariable('$servicesId') + '/versions/' + commons.Esc
aper.ecapeVariable('$versionsId'); | 731 _url = 'v1/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/services/'
+ commons.Escaper.ecapeVariable('$servicesId') + '/versions/' + commons.Escaper.
ecapeVariable('$versionsId'); |
| 726 | 732 |
| 727 var _response = _requester.request(_url, | 733 var _response = _requester.request(_url, |
| 728 "GET", | 734 "GET", |
| 729 body: _body, | 735 body: _body, |
| 730 queryParams: _queryParams, | 736 queryParams: _queryParams, |
| 731 uploadOptions: _uploadOptions, | 737 uploadOptions: _uploadOptions, |
| 732 uploadMedia: _uploadMedia, | 738 uploadMedia: _uploadMedia, |
| 733 downloadOptions: _downloadOptions); | 739 downloadOptions: _downloadOptions); |
| 734 return _response.then((data) => new Version.fromJson(data)); | 740 return _response.then((data) => new Version.fromJson(data)); |
| 735 } | 741 } |
| 736 | 742 |
| 737 /** | 743 /** |
| 738 * Lists the versions of a service. | 744 * Lists the versions of a service. |
| 739 * | 745 * |
| 740 * Request parameters: | 746 * Request parameters: |
| 741 * | 747 * |
| 742 * [appsId] - Part of `name`. Name of the resource requested. For example: | 748 * [appsId] - Part of `parent`. Name of the parent Service resource. Example: |
| 743 * "apps/myapp/services/default". | 749 * `apps/myapp/services/default`. |
| 744 * | 750 * |
| 745 * [servicesId] - Part of `name`. See documentation of `appsId`. | 751 * [servicesId] - Part of `parent`. See documentation of `appsId`. |
| 746 * | 752 * |
| 747 * [view] - Controls the set of fields returned in the `List` response. | 753 * [view] - Controls the set of fields returned in the `List` response. |
| 748 * Possible string values are: | 754 * Possible string values are: |
| 749 * - "BASIC" : A BASIC. | 755 * - "BASIC" : A BASIC. |
| 750 * - "FULL" : A FULL. | 756 * - "FULL" : A FULL. |
| 751 * | 757 * |
| 752 * [pageSize] - Maximum results to return per page. | 758 * [pageSize] - Maximum results to return per page. |
| 753 * | 759 * |
| 754 * [pageToken] - Continuation token for fetching the next page of results. | 760 * [pageToken] - Continuation token for fetching the next page of results. |
| 755 * | 761 * |
| (...skipping 22 matching lines...) Expand all Loading... |
| 778 if (view != null) { | 784 if (view != null) { |
| 779 _queryParams["view"] = [view]; | 785 _queryParams["view"] = [view]; |
| 780 } | 786 } |
| 781 if (pageSize != null) { | 787 if (pageSize != null) { |
| 782 _queryParams["pageSize"] = ["${pageSize}"]; | 788 _queryParams["pageSize"] = ["${pageSize}"]; |
| 783 } | 789 } |
| 784 if (pageToken != null) { | 790 if (pageToken != null) { |
| 785 _queryParams["pageToken"] = [pageToken]; | 791 _queryParams["pageToken"] = [pageToken]; |
| 786 } | 792 } |
| 787 | 793 |
| 788 _url = 'v1beta5/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/servic
es/' + commons.Escaper.ecapeVariable('$servicesId') + '/versions'; | 794 _url = 'v1/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/services/'
+ commons.Escaper.ecapeVariable('$servicesId') + '/versions'; |
| 789 | 795 |
| 790 var _response = _requester.request(_url, | 796 var _response = _requester.request(_url, |
| 791 "GET", | 797 "GET", |
| 792 body: _body, | 798 body: _body, |
| 793 queryParams: _queryParams, | 799 queryParams: _queryParams, |
| 794 uploadOptions: _uploadOptions, | 800 uploadOptions: _uploadOptions, |
| 795 uploadMedia: _uploadMedia, | 801 uploadMedia: _uploadMedia, |
| 796 downloadOptions: _downloadOptions); | 802 downloadOptions: _downloadOptions); |
| 797 return _response.then((data) => new ListVersionsResponse.fromJson(data)); | 803 return _response.then((data) => new ListVersionsResponse.fromJson(data)); |
| 798 } | 804 } |
| 799 | 805 |
| 800 /** | 806 /** |
| 801 * Updates the specified Version resource. You can specify the following | 807 * Updates the specified Version resource. You can specify the following |
| 802 * fields depending on the App Engine environment and type of scaling that the | 808 * fields depending on the App Engine environment and type of scaling that the |
| 803 * version resource uses: * | 809 * version resource uses: * |
| 804 * [`serving_status`](/appengine/docs/admin-api/reference/rest/v1beta5/apps.se
rvices.versions#Version.FIELDS.serving_status): | 810 * [`serving_status`](https://cloud.google.com/appengine/docs/admin-api/refere
nce/rest/v1/apps.services.versions#Version.FIELDS.serving_status): |
| 805 * For Version resources that use basic scaling, manual scaling, or run in the | 811 * For Version resources that use basic scaling, manual scaling, or run in the |
| 806 * App Engine flexible environment. * | 812 * App Engine flexible environment. * |
| 807 * [`instance_class`](/appengine/docs/admin-api/reference/rest/v1beta5/apps.se
rvices.versions#Version.FIELDS.instance_class): | 813 * [`instance_class`](https://cloud.google.com/appengine/docs/admin-api/refere
nce/rest/v1/apps.services.versions#Version.FIELDS.instance_class): |
| 808 * For Version resources that run in the App Engine standard environment. * | 814 * For Version resources that run in the App Engine standard environment. * |
| 809 * [`automatic_scaling.min_idle_instances`](/appengine/docs/admin-api/referenc
e/rest/v1beta5/apps.services.versions#Version.FIELDS.automatic_scaling): | 815 * [`automatic_scaling.min_idle_instances`](https://cloud.google.com/appengine
/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.automati
c_scaling): |
| 810 * For Version resources that use automatic scaling and run in the App Engine | 816 * For Version resources that use automatic scaling and run in the App Engine |
| 811 * standard environment. * | 817 * standard environment. * |
| 812 * [`automatic_scaling.max_idle_instances`](/appengine/docs/admin-api/referenc
e/rest/v1beta5/apps.services.versions#Version.FIELDS.automatic_scaling): | 818 * [`automatic_scaling.max_idle_instances`](https://cloud.google.com/appengine
/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.automati
c_scaling): |
| 813 * For Version resources that use automatic scaling and run in the App Engine | 819 * For Version resources that use automatic scaling and run in the App Engine |
| 814 * standard environment. | 820 * standard environment. |
| 815 * | 821 * |
| 816 * [request] - The metadata request object. | 822 * [request] - The metadata request object. |
| 817 * | 823 * |
| 818 * Request parameters: | 824 * Request parameters: |
| 819 * | 825 * |
| 820 * [appsId] - Part of `name`. Name of the resource to update. For example: | 826 * [appsId] - Part of `name`. Name of the resource to update. Example: |
| 821 * "apps/myapp/services/default/versions/1". | 827 * `apps/myapp/services/default/versions/1`. |
| 822 * | 828 * |
| 823 * [servicesId] - Part of `name`. See documentation of `appsId`. | 829 * [servicesId] - Part of `name`. See documentation of `appsId`. |
| 824 * | 830 * |
| 825 * [versionsId] - Part of `name`. See documentation of `appsId`. | 831 * [versionsId] - Part of `name`. See documentation of `appsId`. |
| 826 * | 832 * |
| 827 * [mask] - Standard field mask for the set of fields to be updated. | 833 * [updateMask] - Standard field mask for the set of fields to be updated. |
| 828 * | 834 * |
| 829 * Completes with a [Operation]. | 835 * Completes with a [Operation]. |
| 830 * | 836 * |
| 831 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 837 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 832 * error. | 838 * error. |
| 833 * | 839 * |
| 834 * If the used [http.Client] completes with an error when making a REST call, | 840 * If the used [http.Client] completes with an error when making a REST call, |
| 835 * this method will complete with the same error. | 841 * this method will complete with the same error. |
| 836 */ | 842 */ |
| 837 async.Future<Operation> patch(Version request, core.String appsId, core.String
servicesId, core.String versionsId, {core.String mask}) { | 843 async.Future<Operation> patch(Version request, core.String appsId, core.String
servicesId, core.String versionsId, {core.String updateMask}) { |
| 838 var _url = null; | 844 var _url = null; |
| 839 var _queryParams = new core.Map(); | 845 var _queryParams = new core.Map(); |
| 840 var _uploadMedia = null; | 846 var _uploadMedia = null; |
| 841 var _uploadOptions = null; | 847 var _uploadOptions = null; |
| 842 var _downloadOptions = commons.DownloadOptions.Metadata; | 848 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 843 var _body = null; | 849 var _body = null; |
| 844 | 850 |
| 845 if (request != null) { | 851 if (request != null) { |
| 846 _body = convert.JSON.encode((request).toJson()); | 852 _body = convert.JSON.encode((request).toJson()); |
| 847 } | 853 } |
| 848 if (appsId == null) { | 854 if (appsId == null) { |
| 849 throw new core.ArgumentError("Parameter appsId is required."); | 855 throw new core.ArgumentError("Parameter appsId is required."); |
| 850 } | 856 } |
| 851 if (servicesId == null) { | 857 if (servicesId == null) { |
| 852 throw new core.ArgumentError("Parameter servicesId is required."); | 858 throw new core.ArgumentError("Parameter servicesId is required."); |
| 853 } | 859 } |
| 854 if (versionsId == null) { | 860 if (versionsId == null) { |
| 855 throw new core.ArgumentError("Parameter versionsId is required."); | 861 throw new core.ArgumentError("Parameter versionsId is required."); |
| 856 } | 862 } |
| 857 if (mask != null) { | 863 if (updateMask != null) { |
| 858 _queryParams["mask"] = [mask]; | 864 _queryParams["updateMask"] = [updateMask]; |
| 859 } | 865 } |
| 860 | 866 |
| 861 _url = 'v1beta5/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/servic
es/' + commons.Escaper.ecapeVariable('$servicesId') + '/versions/' + commons.Esc
aper.ecapeVariable('$versionsId'); | 867 _url = 'v1/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/services/'
+ commons.Escaper.ecapeVariable('$servicesId') + '/versions/' + commons.Escaper.
ecapeVariable('$versionsId'); |
| 862 | 868 |
| 863 var _response = _requester.request(_url, | 869 var _response = _requester.request(_url, |
| 864 "PATCH", | 870 "PATCH", |
| 865 body: _body, | 871 body: _body, |
| 866 queryParams: _queryParams, | 872 queryParams: _queryParams, |
| 867 uploadOptions: _uploadOptions, | 873 uploadOptions: _uploadOptions, |
| 868 uploadMedia: _uploadMedia, | 874 uploadMedia: _uploadMedia, |
| 869 downloadOptions: _downloadOptions); | 875 downloadOptions: _downloadOptions); |
| 870 return _response.then((data) => new Operation.fromJson(data)); | 876 return _response.then((data) => new Operation.fromJson(data)); |
| 871 } | 877 } |
| 872 | 878 |
| 873 } | 879 } |
| 874 | 880 |
| 875 | 881 |
| 876 class AppsServicesVersionsInstancesResourceApi { | 882 class AppsServicesVersionsInstancesResourceApi { |
| 877 final commons.ApiRequester _requester; | 883 final commons.ApiRequester _requester; |
| 878 | 884 |
| 879 AppsServicesVersionsInstancesResourceApi(commons.ApiRequester client) : | 885 AppsServicesVersionsInstancesResourceApi(commons.ApiRequester client) : |
| 880 _requester = client; | 886 _requester = client; |
| 881 | 887 |
| 882 /** | 888 /** |
| 883 * Enable debugging of this VM instance. This call allows you to SSH to the | 889 * Enables debugging on a VM instance. This allows you to use the SSH command |
| 884 * VM. While the VM is in debug mode, it continues to serve live traffic. | 890 * to connect to the virtual machine where the instance lives. While in "debug |
| 885 * After you're done debugging an instance, delete the instance; the system | 891 * mode", the instance continues to serve live traffic. You should delete the |
| 886 * creates a new instance when needed. You can't debug a non-VM instance. | 892 * instance when you are done debugging and then allow the system to take over |
| 893 * and determine if another instance should be started. Only applicable for |
| 894 * instances in App Engine flexible environment. |
| 887 * | 895 * |
| 888 * [request] - The metadata request object. | 896 * [request] - The metadata request object. |
| 889 * | 897 * |
| 890 * Request parameters: | 898 * Request parameters: |
| 891 * | 899 * |
| 892 * [appsId] - Part of `name`. Name of the resource requested. For example: | 900 * [appsId] - Part of `name`. Name of the resource requested. Example: |
| 893 * "apps/myapp/services/default/versions/v1/instances/instance-1". | 901 * `apps/myapp/services/default/versions/v1/instances/instance-1`. |
| 894 * | 902 * |
| 895 * [servicesId] - Part of `name`. See documentation of `appsId`. | 903 * [servicesId] - Part of `name`. See documentation of `appsId`. |
| 896 * | 904 * |
| 897 * [versionsId] - Part of `name`. See documentation of `appsId`. | 905 * [versionsId] - Part of `name`. See documentation of `appsId`. |
| 898 * | 906 * |
| 899 * [instancesId] - Part of `name`. See documentation of `appsId`. | 907 * [instancesId] - Part of `name`. See documentation of `appsId`. |
| 900 * | 908 * |
| 901 * Completes with a [Operation]. | 909 * Completes with a [Operation]. |
| 902 * | 910 * |
| 903 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 911 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| (...skipping 19 matching lines...) Expand all Loading... |
| 923 if (servicesId == null) { | 931 if (servicesId == null) { |
| 924 throw new core.ArgumentError("Parameter servicesId is required."); | 932 throw new core.ArgumentError("Parameter servicesId is required."); |
| 925 } | 933 } |
| 926 if (versionsId == null) { | 934 if (versionsId == null) { |
| 927 throw new core.ArgumentError("Parameter versionsId is required."); | 935 throw new core.ArgumentError("Parameter versionsId is required."); |
| 928 } | 936 } |
| 929 if (instancesId == null) { | 937 if (instancesId == null) { |
| 930 throw new core.ArgumentError("Parameter instancesId is required."); | 938 throw new core.ArgumentError("Parameter instancesId is required."); |
| 931 } | 939 } |
| 932 | 940 |
| 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'; | 941 _url = 'v1/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/services/'
+ commons.Escaper.ecapeVariable('$servicesId') + '/versions/' + commons.Escaper.
ecapeVariable('$versionsId') + '/instances/' + commons.Escaper.ecapeVariable('$i
nstancesId') + ':debug'; |
| 934 | 942 |
| 935 var _response = _requester.request(_url, | 943 var _response = _requester.request(_url, |
| 936 "POST", | 944 "POST", |
| 937 body: _body, | 945 body: _body, |
| 938 queryParams: _queryParams, | 946 queryParams: _queryParams, |
| 939 uploadOptions: _uploadOptions, | 947 uploadOptions: _uploadOptions, |
| 940 uploadMedia: _uploadMedia, | 948 uploadMedia: _uploadMedia, |
| 941 downloadOptions: _downloadOptions); | 949 downloadOptions: _downloadOptions); |
| 942 return _response.then((data) => new Operation.fromJson(data)); | 950 return _response.then((data) => new Operation.fromJson(data)); |
| 943 } | 951 } |
| 944 | 952 |
| 945 /** | 953 /** |
| 946 * Stops a running instance. | 954 * Stops a running instance. |
| 947 * | 955 * |
| 948 * Request parameters: | 956 * Request parameters: |
| 949 * | 957 * |
| 950 * [appsId] - Part of `name`. Name of the resource requested. For example: | 958 * [appsId] - Part of `name`. Name of the resource requested. Example: |
| 951 * "apps/myapp/services/default/versions/v1/instances/instance-1". | 959 * `apps/myapp/services/default/versions/v1/instances/instance-1`. |
| 952 * | 960 * |
| 953 * [servicesId] - Part of `name`. See documentation of `appsId`. | 961 * [servicesId] - Part of `name`. See documentation of `appsId`. |
| 954 * | 962 * |
| 955 * [versionsId] - Part of `name`. See documentation of `appsId`. | 963 * [versionsId] - Part of `name`. See documentation of `appsId`. |
| 956 * | 964 * |
| 957 * [instancesId] - Part of `name`. See documentation of `appsId`. | 965 * [instancesId] - Part of `name`. See documentation of `appsId`. |
| 958 * | 966 * |
| 959 * Completes with a [Operation]. | 967 * Completes with a [Operation]. |
| 960 * | 968 * |
| 961 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 969 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| (...skipping 16 matching lines...) Expand all Loading... |
| 978 if (servicesId == null) { | 986 if (servicesId == null) { |
| 979 throw new core.ArgumentError("Parameter servicesId is required."); | 987 throw new core.ArgumentError("Parameter servicesId is required."); |
| 980 } | 988 } |
| 981 if (versionsId == null) { | 989 if (versionsId == null) { |
| 982 throw new core.ArgumentError("Parameter versionsId is required."); | 990 throw new core.ArgumentError("Parameter versionsId is required."); |
| 983 } | 991 } |
| 984 if (instancesId == null) { | 992 if (instancesId == null) { |
| 985 throw new core.ArgumentError("Parameter instancesId is required."); | 993 throw new core.ArgumentError("Parameter instancesId is required."); |
| 986 } | 994 } |
| 987 | 995 |
| 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'); | 996 _url = 'v1/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/services/'
+ commons.Escaper.ecapeVariable('$servicesId') + '/versions/' + commons.Escaper.
ecapeVariable('$versionsId') + '/instances/' + commons.Escaper.ecapeVariable('$i
nstancesId'); |
| 989 | 997 |
| 990 var _response = _requester.request(_url, | 998 var _response = _requester.request(_url, |
| 991 "DELETE", | 999 "DELETE", |
| 992 body: _body, | 1000 body: _body, |
| 993 queryParams: _queryParams, | 1001 queryParams: _queryParams, |
| 994 uploadOptions: _uploadOptions, | 1002 uploadOptions: _uploadOptions, |
| 995 uploadMedia: _uploadMedia, | 1003 uploadMedia: _uploadMedia, |
| 996 downloadOptions: _downloadOptions); | 1004 downloadOptions: _downloadOptions); |
| 997 return _response.then((data) => new Operation.fromJson(data)); | 1005 return _response.then((data) => new Operation.fromJson(data)); |
| 998 } | 1006 } |
| 999 | 1007 |
| 1000 /** | 1008 /** |
| 1001 * Gets instance information. | 1009 * Gets instance information. |
| 1002 * | 1010 * |
| 1003 * Request parameters: | 1011 * Request parameters: |
| 1004 * | 1012 * |
| 1005 * [appsId] - Part of `name`. Name of the resource requested. For example: | 1013 * [appsId] - Part of `name`. Name of the resource requested. Example: |
| 1006 * "apps/myapp/services/default/versions/v1/instances/instance-1". | 1014 * `apps/myapp/services/default/versions/v1/instances/instance-1`. |
| 1007 * | 1015 * |
| 1008 * [servicesId] - Part of `name`. See documentation of `appsId`. | 1016 * [servicesId] - Part of `name`. See documentation of `appsId`. |
| 1009 * | 1017 * |
| 1010 * [versionsId] - Part of `name`. See documentation of `appsId`. | 1018 * [versionsId] - Part of `name`. See documentation of `appsId`. |
| 1011 * | 1019 * |
| 1012 * [instancesId] - Part of `name`. See documentation of `appsId`. | 1020 * [instancesId] - Part of `name`. See documentation of `appsId`. |
| 1013 * | 1021 * |
| 1014 * Completes with a [Instance]. | 1022 * Completes with a [Instance]. |
| 1015 * | 1023 * |
| 1016 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1024 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| (...skipping 16 matching lines...) Expand all Loading... |
| 1033 if (servicesId == null) { | 1041 if (servicesId == null) { |
| 1034 throw new core.ArgumentError("Parameter servicesId is required."); | 1042 throw new core.ArgumentError("Parameter servicesId is required."); |
| 1035 } | 1043 } |
| 1036 if (versionsId == null) { | 1044 if (versionsId == null) { |
| 1037 throw new core.ArgumentError("Parameter versionsId is required."); | 1045 throw new core.ArgumentError("Parameter versionsId is required."); |
| 1038 } | 1046 } |
| 1039 if (instancesId == null) { | 1047 if (instancesId == null) { |
| 1040 throw new core.ArgumentError("Parameter instancesId is required."); | 1048 throw new core.ArgumentError("Parameter instancesId is required."); |
| 1041 } | 1049 } |
| 1042 | 1050 |
| 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'); | 1051 _url = 'v1/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/services/'
+ commons.Escaper.ecapeVariable('$servicesId') + '/versions/' + commons.Escaper.
ecapeVariable('$versionsId') + '/instances/' + commons.Escaper.ecapeVariable('$i
nstancesId'); |
| 1044 | 1052 |
| 1045 var _response = _requester.request(_url, | 1053 var _response = _requester.request(_url, |
| 1046 "GET", | 1054 "GET", |
| 1047 body: _body, | 1055 body: _body, |
| 1048 queryParams: _queryParams, | 1056 queryParams: _queryParams, |
| 1049 uploadOptions: _uploadOptions, | 1057 uploadOptions: _uploadOptions, |
| 1050 uploadMedia: _uploadMedia, | 1058 uploadMedia: _uploadMedia, |
| 1051 downloadOptions: _downloadOptions); | 1059 downloadOptions: _downloadOptions); |
| 1052 return _response.then((data) => new Instance.fromJson(data)); | 1060 return _response.then((data) => new Instance.fromJson(data)); |
| 1053 } | 1061 } |
| 1054 | 1062 |
| 1055 /** | 1063 /** |
| 1056 * Lists the instances of a version. | 1064 * Lists the instances of a version. |
| 1057 * | 1065 * |
| 1058 * Request parameters: | 1066 * Request parameters: |
| 1059 * | 1067 * |
| 1060 * [appsId] - Part of `name`. Name of the resource requested. For example: | 1068 * [appsId] - Part of `parent`. Name of the parent Version resource. Example: |
| 1061 * "apps/myapp/services/default/versions/v1". | 1069 * `apps/myapp/services/default/versions/v1`. |
| 1062 * | 1070 * |
| 1063 * [servicesId] - Part of `name`. See documentation of `appsId`. | 1071 * [servicesId] - Part of `parent`. See documentation of `appsId`. |
| 1064 * | 1072 * |
| 1065 * [versionsId] - Part of `name`. See documentation of `appsId`. | 1073 * [versionsId] - Part of `parent`. See documentation of `appsId`. |
| 1066 * | 1074 * |
| 1067 * [pageSize] - Maximum results to return per page. | 1075 * [pageSize] - Maximum results to return per page. |
| 1068 * | 1076 * |
| 1069 * [pageToken] - Continuation token for fetching the next page of results. | 1077 * [pageToken] - Continuation token for fetching the next page of results. |
| 1070 * | 1078 * |
| 1071 * Completes with a [ListInstancesResponse]. | 1079 * Completes with a [ListInstancesResponse]. |
| 1072 * | 1080 * |
| 1073 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1081 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1074 * error. | 1082 * error. |
| 1075 * | 1083 * |
| (...skipping 17 matching lines...) Expand all Loading... |
| 1093 if (versionsId == null) { | 1101 if (versionsId == null) { |
| 1094 throw new core.ArgumentError("Parameter versionsId is required."); | 1102 throw new core.ArgumentError("Parameter versionsId is required."); |
| 1095 } | 1103 } |
| 1096 if (pageSize != null) { | 1104 if (pageSize != null) { |
| 1097 _queryParams["pageSize"] = ["${pageSize}"]; | 1105 _queryParams["pageSize"] = ["${pageSize}"]; |
| 1098 } | 1106 } |
| 1099 if (pageToken != null) { | 1107 if (pageToken != null) { |
| 1100 _queryParams["pageToken"] = [pageToken]; | 1108 _queryParams["pageToken"] = [pageToken]; |
| 1101 } | 1109 } |
| 1102 | 1110 |
| 1103 _url = 'v1beta5/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/servic
es/' + commons.Escaper.ecapeVariable('$servicesId') + '/versions/' + commons.Esc
aper.ecapeVariable('$versionsId') + '/instances'; | 1111 _url = 'v1/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/services/'
+ commons.Escaper.ecapeVariable('$servicesId') + '/versions/' + commons.Escaper.
ecapeVariable('$versionsId') + '/instances'; |
| 1104 | 1112 |
| 1105 var _response = _requester.request(_url, | 1113 var _response = _requester.request(_url, |
| 1106 "GET", | 1114 "GET", |
| 1107 body: _body, | 1115 body: _body, |
| 1108 queryParams: _queryParams, | 1116 queryParams: _queryParams, |
| 1109 uploadOptions: _uploadOptions, | 1117 uploadOptions: _uploadOptions, |
| 1110 uploadMedia: _uploadMedia, | 1118 uploadMedia: _uploadMedia, |
| 1111 downloadOptions: _downloadOptions); | 1119 downloadOptions: _downloadOptions); |
| 1112 return _response.then((data) => new ListInstancesResponse.fromJson(data)); | 1120 return _response.then((data) => new ListInstancesResponse.fromJson(data)); |
| 1113 } | 1121 } |
| 1114 | 1122 |
| 1115 } | 1123 } |
| 1116 | 1124 |
| 1117 | 1125 |
| 1118 | 1126 |
| 1119 /** API Serving configuration for Cloud Endpoints. */ | 1127 /** |
| 1128 * [Google Cloud |
| 1129 * Endpoints](https://cloud.google.com/appengine/docs/python/endpoints/) |
| 1130 * configuration for API handlers. |
| 1131 */ |
| 1120 class ApiConfigHandler { | 1132 class ApiConfigHandler { |
| 1121 /** | 1133 /** |
| 1122 * For users not logged in, how to handle access to resources with required | 1134 * Action to take when users access resources that require authentication. |
| 1123 * login. Defaults to "redirect". | 1135 * Defaults to `redirect`. |
| 1124 * Possible string values are: | 1136 * Possible string values are: |
| 1125 * - "AUTH_FAIL_ACTION_UNSPECIFIED" : A AUTH_FAIL_ACTION_UNSPECIFIED. | 1137 * - "AUTH_FAIL_ACTION_UNSPECIFIED" : A AUTH_FAIL_ACTION_UNSPECIFIED. |
| 1126 * - "AUTH_FAIL_ACTION_REDIRECT" : A AUTH_FAIL_ACTION_REDIRECT. | 1138 * - "AUTH_FAIL_ACTION_REDIRECT" : A AUTH_FAIL_ACTION_REDIRECT. |
| 1127 * - "AUTH_FAIL_ACTION_UNAUTHORIZED" : A AUTH_FAIL_ACTION_UNAUTHORIZED. | 1139 * - "AUTH_FAIL_ACTION_UNAUTHORIZED" : A AUTH_FAIL_ACTION_UNAUTHORIZED. |
| 1128 */ | 1140 */ |
| 1129 core.String authFailAction; | 1141 core.String authFailAction; |
| 1130 /** | 1142 /** |
| 1131 * What level of login is required to access this resource. Default is | 1143 * Level of login required to access this resource. Defaults to `optional`. |
| 1132 * "optional". | |
| 1133 * Possible string values are: | 1144 * Possible string values are: |
| 1134 * - "LOGIN_UNSPECIFIED" : A LOGIN_UNSPECIFIED. | 1145 * - "LOGIN_UNSPECIFIED" : A LOGIN_UNSPECIFIED. |
| 1135 * - "LOGIN_OPTIONAL" : A LOGIN_OPTIONAL. | 1146 * - "LOGIN_OPTIONAL" : A LOGIN_OPTIONAL. |
| 1136 * - "LOGIN_ADMIN" : A LOGIN_ADMIN. | 1147 * - "LOGIN_ADMIN" : A LOGIN_ADMIN. |
| 1137 * - "LOGIN_REQUIRED" : A LOGIN_REQUIRED. | 1148 * - "LOGIN_REQUIRED" : A LOGIN_REQUIRED. |
| 1138 */ | 1149 */ |
| 1139 core.String login; | 1150 core.String login; |
| 1140 /** Specifies the path to the script from the application root directory. */ | 1151 /** Path to the script from the application root directory. */ |
| 1141 core.String script; | 1152 core.String script; |
| 1142 /** | 1153 /** |
| 1143 * Configures whether security (HTTPS) should be enforced for this URL. | 1154 * Security (HTTPS) enforcement for this URL. |
| 1144 * Possible string values are: | 1155 * Possible string values are: |
| 1145 * - "SECURE_UNSPECIFIED" : A SECURE_UNSPECIFIED. | 1156 * - "SECURE_UNSPECIFIED" : A SECURE_UNSPECIFIED. |
| 1146 * - "SECURE_DEFAULT" : A SECURE_DEFAULT. | 1157 * - "SECURE_DEFAULT" : A SECURE_DEFAULT. |
| 1147 * - "SECURE_NEVER" : A SECURE_NEVER. | 1158 * - "SECURE_NEVER" : A SECURE_NEVER. |
| 1148 * - "SECURE_OPTIONAL" : A SECURE_OPTIONAL. | 1159 * - "SECURE_OPTIONAL" : A SECURE_OPTIONAL. |
| 1149 * - "SECURE_ALWAYS" : A SECURE_ALWAYS. | 1160 * - "SECURE_ALWAYS" : A SECURE_ALWAYS. |
| 1150 */ | 1161 */ |
| 1151 core.String securityLevel; | 1162 core.String securityLevel; |
| 1152 /** URL to serve the endpoint at. */ | 1163 /** URL to serve the endpoint at. */ |
| 1153 core.String url; | 1164 core.String url; |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1186 if (securityLevel != null) { | 1197 if (securityLevel != null) { |
| 1187 _json["securityLevel"] = securityLevel; | 1198 _json["securityLevel"] = securityLevel; |
| 1188 } | 1199 } |
| 1189 if (url != null) { | 1200 if (url != null) { |
| 1190 _json["url"] = url; | 1201 _json["url"] = url; |
| 1191 } | 1202 } |
| 1192 return _json; | 1203 return _json; |
| 1193 } | 1204 } |
| 1194 } | 1205 } |
| 1195 | 1206 |
| 1196 /** Use Google Cloud Endpoints to handle requests. */ | 1207 /** Uses Google Cloud Endpoints to handle requests. */ |
| 1197 class ApiEndpointHandler { | 1208 class ApiEndpointHandler { |
| 1198 /** Specifies the path to the script from the application root directory. */ | 1209 /** Path to the script from the application root directory. */ |
| 1199 core.String scriptPath; | 1210 core.String scriptPath; |
| 1200 | 1211 |
| 1201 ApiEndpointHandler(); | 1212 ApiEndpointHandler(); |
| 1202 | 1213 |
| 1203 ApiEndpointHandler.fromJson(core.Map _json) { | 1214 ApiEndpointHandler.fromJson(core.Map _json) { |
| 1204 if (_json.containsKey("scriptPath")) { | 1215 if (_json.containsKey("scriptPath")) { |
| 1205 scriptPath = _json["scriptPath"]; | 1216 scriptPath = _json["scriptPath"]; |
| 1206 } | 1217 } |
| 1207 } | 1218 } |
| 1208 | 1219 |
| 1209 core.Map toJson() { | 1220 core.Map toJson() { |
| 1210 var _json = new core.Map(); | 1221 var _json = new core.Map(); |
| 1211 if (scriptPath != null) { | 1222 if (scriptPath != null) { |
| 1212 _json["scriptPath"] = scriptPath; | 1223 _json["scriptPath"] = scriptPath; |
| 1213 } | 1224 } |
| 1214 return _json; | 1225 return _json; |
| 1215 } | 1226 } |
| 1216 } | 1227 } |
| 1217 | 1228 |
| 1218 /** | 1229 /** |
| 1219 * An Application contains the top-level configuration of an App Engine | 1230 * An Application resource contains the top-level configuration of an App Engine |
| 1220 * application. | 1231 * application. |
| 1221 */ | 1232 */ |
| 1222 class Application { | 1233 class Application { |
| 1223 /** | 1234 /** |
| 1224 * If set, only users from the specified Google Apps authentication domain may | 1235 * Google Apps authentication domain that controls which users can access this |
| 1225 * access the application. If not set, any Google Account may access the | 1236 * application. Defaults to open access for any Google Account. |
| 1226 * application. | |
| 1227 */ | 1237 */ |
| 1228 core.String authDomain; | 1238 core.String authDomain; |
| 1229 /** | 1239 /** |
| 1230 * A Google Cloud Storage bucket which can be used for storing files | 1240 * Google Cloud Storage bucket that can be used for storing files associated |
| 1231 * associated with an application. This bucket is associated with the | 1241 * with this application. This bucket is associated with the application and |
| 1232 * application and can be used by the gcloud deployment commands. @OutputOnly | 1242 * can be used by the gcloud deployment commands. @OutputOnly |
| 1233 */ | 1243 */ |
| 1234 core.String codeBucket; | 1244 core.String codeBucket; |
| 1235 /** | 1245 /** |
| 1236 * A Google Cloud Storage bucket which can be used by the application to store | 1246 * Google Cloud Storage bucket that can be used by this application to store |
| 1237 * content. @OutputOnly | 1247 * content. @OutputOnly |
| 1238 */ | 1248 */ |
| 1239 core.String defaultBucket; | 1249 core.String defaultBucket; |
| 1240 /** | 1250 /** Cookie expiration policy for this application. @OutputOnly */ |
| 1241 * Determines the cookie expiration policy for the application. @OutputOnly | |
| 1242 */ | |
| 1243 core.String defaultCookieExpiration; | 1251 core.String defaultCookieExpiration; |
| 1244 /** | 1252 /** |
| 1245 * The hostname used to reach the application, as resolved by App Engine. | 1253 * Hostname used to reach this application, as resolved by App Engine. |
| 1246 * @OutputOnly | 1254 * @OutputOnly |
| 1247 */ | 1255 */ |
| 1248 core.String defaultHostname; | 1256 core.String defaultHostname; |
| 1249 /** | 1257 /** |
| 1250 * HTTP path dispatch rules for requests to the app that do not explicitly | 1258 * HTTP path dispatch rules for requests to the application that do not |
| 1251 * target a service or version. The rules are order-dependent. @OutputOnly | 1259 * explicitly target a service or version. Rules are order-dependent. |
| 1260 * @OutputOnly |
| 1252 */ | 1261 */ |
| 1253 core.List<UrlDispatchRule> dispatchRules; | 1262 core.List<UrlDispatchRule> dispatchRules; |
| 1254 /** | 1263 /** |
| 1255 * The identifier of the Application resource. This identifier is equivalent | 1264 * Identifier of the Application resource. This identifier is equivalent to |
| 1256 * to the project ID of the Google Cloud Platform project where you want to | 1265 * the project ID of the Google Cloud Platform project where you want to |
| 1257 * deploy your application. Example: "myapp". | 1266 * deploy your application. Example: `myapp`. |
| 1258 */ | 1267 */ |
| 1259 core.String id; | 1268 core.String id; |
| 1260 /** | 1269 /** |
| 1261 * The location from which the application will be run. Application instances | 1270 * Location from which this application will be run. Application instances |
| 1262 * will run out of data centers in the chosen location and all of the | 1271 * will run out of data centers in the chosen location, which is also where |
| 1263 * application's End User Content will be stored at rest. The default is | 1272 * all of the application's end user content is stored. Defaults to |
| 1264 * "us-central". Choices are: "us-central" - Central US "europe-west" - | 1273 * `us-central`. Options are: `us-central` - Central US `europe-west` - |
| 1265 * Western Europe "us-east1" - Eastern US | 1274 * Western Europe `us-east1` - Eastern US |
| 1266 */ | 1275 */ |
| 1267 core.String location; | 1276 core.String locationId; |
| 1268 /** | 1277 /** |
| 1269 * The full path to the Application resource in the API. Example: | 1278 * Full path to the Application resource in the API. Example: `apps/myapp`. |
| 1270 * "apps/myapp". @OutputOnly | 1279 * @OutputOnly |
| 1271 */ | 1280 */ |
| 1272 core.String name; | 1281 core.String name; |
| 1273 | 1282 |
| 1274 Application(); | 1283 Application(); |
| 1275 | 1284 |
| 1276 Application.fromJson(core.Map _json) { | 1285 Application.fromJson(core.Map _json) { |
| 1277 if (_json.containsKey("authDomain")) { | 1286 if (_json.containsKey("authDomain")) { |
| 1278 authDomain = _json["authDomain"]; | 1287 authDomain = _json["authDomain"]; |
| 1279 } | 1288 } |
| 1280 if (_json.containsKey("codeBucket")) { | 1289 if (_json.containsKey("codeBucket")) { |
| 1281 codeBucket = _json["codeBucket"]; | 1290 codeBucket = _json["codeBucket"]; |
| 1282 } | 1291 } |
| 1283 if (_json.containsKey("defaultBucket")) { | 1292 if (_json.containsKey("defaultBucket")) { |
| 1284 defaultBucket = _json["defaultBucket"]; | 1293 defaultBucket = _json["defaultBucket"]; |
| 1285 } | 1294 } |
| 1286 if (_json.containsKey("defaultCookieExpiration")) { | 1295 if (_json.containsKey("defaultCookieExpiration")) { |
| 1287 defaultCookieExpiration = _json["defaultCookieExpiration"]; | 1296 defaultCookieExpiration = _json["defaultCookieExpiration"]; |
| 1288 } | 1297 } |
| 1289 if (_json.containsKey("defaultHostname")) { | 1298 if (_json.containsKey("defaultHostname")) { |
| 1290 defaultHostname = _json["defaultHostname"]; | 1299 defaultHostname = _json["defaultHostname"]; |
| 1291 } | 1300 } |
| 1292 if (_json.containsKey("dispatchRules")) { | 1301 if (_json.containsKey("dispatchRules")) { |
| 1293 dispatchRules = _json["dispatchRules"].map((value) => new UrlDispatchRule.
fromJson(value)).toList(); | 1302 dispatchRules = _json["dispatchRules"].map((value) => new UrlDispatchRule.
fromJson(value)).toList(); |
| 1294 } | 1303 } |
| 1295 if (_json.containsKey("id")) { | 1304 if (_json.containsKey("id")) { |
| 1296 id = _json["id"]; | 1305 id = _json["id"]; |
| 1297 } | 1306 } |
| 1298 if (_json.containsKey("location")) { | 1307 if (_json.containsKey("locationId")) { |
| 1299 location = _json["location"]; | 1308 locationId = _json["locationId"]; |
| 1300 } | 1309 } |
| 1301 if (_json.containsKey("name")) { | 1310 if (_json.containsKey("name")) { |
| 1302 name = _json["name"]; | 1311 name = _json["name"]; |
| 1303 } | 1312 } |
| 1304 } | 1313 } |
| 1305 | 1314 |
| 1306 core.Map toJson() { | 1315 core.Map toJson() { |
| 1307 var _json = new core.Map(); | 1316 var _json = new core.Map(); |
| 1308 if (authDomain != null) { | 1317 if (authDomain != null) { |
| 1309 _json["authDomain"] = authDomain; | 1318 _json["authDomain"] = authDomain; |
| 1310 } | 1319 } |
| 1311 if (codeBucket != null) { | 1320 if (codeBucket != null) { |
| 1312 _json["codeBucket"] = codeBucket; | 1321 _json["codeBucket"] = codeBucket; |
| 1313 } | 1322 } |
| 1314 if (defaultBucket != null) { | 1323 if (defaultBucket != null) { |
| 1315 _json["defaultBucket"] = defaultBucket; | 1324 _json["defaultBucket"] = defaultBucket; |
| 1316 } | 1325 } |
| 1317 if (defaultCookieExpiration != null) { | 1326 if (defaultCookieExpiration != null) { |
| 1318 _json["defaultCookieExpiration"] = defaultCookieExpiration; | 1327 _json["defaultCookieExpiration"] = defaultCookieExpiration; |
| 1319 } | 1328 } |
| 1320 if (defaultHostname != null) { | 1329 if (defaultHostname != null) { |
| 1321 _json["defaultHostname"] = defaultHostname; | 1330 _json["defaultHostname"] = defaultHostname; |
| 1322 } | 1331 } |
| 1323 if (dispatchRules != null) { | 1332 if (dispatchRules != null) { |
| 1324 _json["dispatchRules"] = dispatchRules.map((value) => (value).toJson()).to
List(); | 1333 _json["dispatchRules"] = dispatchRules.map((value) => (value).toJson()).to
List(); |
| 1325 } | 1334 } |
| 1326 if (id != null) { | 1335 if (id != null) { |
| 1327 _json["id"] = id; | 1336 _json["id"] = id; |
| 1328 } | 1337 } |
| 1329 if (location != null) { | 1338 if (locationId != null) { |
| 1330 _json["location"] = location; | 1339 _json["locationId"] = locationId; |
| 1331 } | 1340 } |
| 1332 if (name != null) { | 1341 if (name != null) { |
| 1333 _json["name"] = name; | 1342 _json["name"] = name; |
| 1334 } | 1343 } |
| 1335 return _json; | 1344 return _json; |
| 1336 } | 1345 } |
| 1337 } | 1346 } |
| 1338 | 1347 |
| 1339 /** | 1348 /** |
| 1340 * Automatic scaling is the scaling policy that App Engine has used since its | 1349 * Automatic scaling is based on request rate, response latencies, and other |
| 1341 * inception. It is based on request rate, response latencies, and other | |
| 1342 * application metrics. | 1350 * application metrics. |
| 1343 */ | 1351 */ |
| 1344 class AutomaticScaling { | 1352 class AutomaticScaling { |
| 1345 /** | 1353 /** |
| 1346 * The amount of time that the | 1354 * Amount of time that the |
| 1347 * [Autoscaler](https://cloud.google.com/compute/docs/autoscaler/) should wait | 1355 * [Autoscaler](https://cloud.google.com/compute/docs/autoscaler/) should wait |
| 1348 * between changes to the number of virtual machines. Applies only to the VM | 1356 * between changes to the number of virtual machines. Only applicable for VM |
| 1349 * runtime. | 1357 * runtimes. |
| 1350 */ | 1358 */ |
| 1351 core.String coolDownPeriod; | 1359 core.String coolDownPeriod; |
| 1352 /** Target scaling by CPU usage. */ | 1360 /** Target scaling by CPU usage. */ |
| 1353 CpuUtilization cpuUtilization; | 1361 CpuUtilization cpuUtilization; |
| 1354 /** Target scaling by disk usage. */ | 1362 /** Target scaling by disk usage. */ |
| 1355 DiskUtilization diskUtilization; | 1363 DiskUtilization diskUtilization; |
| 1356 /** | 1364 /** |
| 1357 * The number of concurrent requests an automatic scaling instance can accept | 1365 * Number of concurrent requests an automatic scaling instance can accept |
| 1358 * before the scheduler spawns a new instance. Default value is chosen based | 1366 * before the scheduler spawns a new instance. Defaults to a runtime-specific |
| 1359 * on the runtime. | 1367 * value. |
| 1360 */ | 1368 */ |
| 1361 core.int maxConcurrentRequests; | 1369 core.int maxConcurrentRequests; |
| 1362 /** | 1370 /** |
| 1363 * The maximum number of idle instances that App Engine should maintain for | 1371 * Maximum number of idle instances that should be maintained for this |
| 1364 * this version. | 1372 * version. |
| 1365 */ | 1373 */ |
| 1366 core.int maxIdleInstances; | 1374 core.int maxIdleInstances; |
| 1367 /** | 1375 /** |
| 1368 * The maximum amount of time that App Engine should allow a request to wait | 1376 * Maximum amount of time that a request should wait in the pending queue |
| 1369 * in the pending queue before starting a new instance to handle it. | 1377 * before starting a new instance to handle it. |
| 1370 */ | 1378 */ |
| 1371 core.String maxPendingLatency; | 1379 core.String maxPendingLatency; |
| 1372 /** | 1380 /** Maximum number of instances that should be started to handle requests. */ |
| 1373 * Max number of instances that App Engine should start to handle requests. | |
| 1374 */ | |
| 1375 core.int maxTotalInstances; | 1381 core.int maxTotalInstances; |
| 1376 /** | 1382 /** |
| 1377 * The minimum number of idle instances that App Engine should maintain for | 1383 * Minimum number of idle instances that should be maintained for this |
| 1378 * this version. Only applies to the default version of a service, since other | 1384 * version. Only applicable for the default version of a service. |
| 1379 * versions are not expected to receive significant traffic. | |
| 1380 */ | 1385 */ |
| 1381 core.int minIdleInstances; | 1386 core.int minIdleInstances; |
| 1382 /** | 1387 /** |
| 1383 * The minimum amount of time that App Engine should allow a request to wait | 1388 * Minimum amount of time a request should wait in the pending queue before |
| 1384 * in the pending queue before starting a new instance to handle it. | 1389 * starting a new instance to handle it. |
| 1385 */ | 1390 */ |
| 1386 core.String minPendingLatency; | 1391 core.String minPendingLatency; |
| 1387 /** Minimum number of instances that App Engine should maintain. */ | 1392 /** |
| 1393 * Minimum number of instances that should be maintained for this version. |
| 1394 */ |
| 1388 core.int minTotalInstances; | 1395 core.int minTotalInstances; |
| 1389 /** Target scaling by network usage. */ | 1396 /** Target scaling by network usage. */ |
| 1390 NetworkUtilization networkUtilization; | 1397 NetworkUtilization networkUtilization; |
| 1391 /** Target scaling by request utilization. */ | 1398 /** Target scaling by request utilization. */ |
| 1392 RequestUtilization requestUtilization; | 1399 RequestUtilization requestUtilization; |
| 1393 | 1400 |
| 1394 AutomaticScaling(); | 1401 AutomaticScaling(); |
| 1395 | 1402 |
| 1396 AutomaticScaling.fromJson(core.Map _json) { | 1403 AutomaticScaling.fromJson(core.Map _json) { |
| 1397 if (_json.containsKey("coolDownPeriod")) { | 1404 if (_json.containsKey("coolDownPeriod")) { |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1475 } | 1482 } |
| 1476 | 1483 |
| 1477 /** | 1484 /** |
| 1478 * A service with basic scaling will create an instance when the application | 1485 * A service with basic scaling will create an instance when the application |
| 1479 * receives a request. The instance will be turned down when the app becomes | 1486 * receives a request. The instance will be turned down when the app becomes |
| 1480 * idle. Basic scaling is ideal for work that is intermittent or driven by user | 1487 * idle. Basic scaling is ideal for work that is intermittent or driven by user |
| 1481 * activity. | 1488 * activity. |
| 1482 */ | 1489 */ |
| 1483 class BasicScaling { | 1490 class BasicScaling { |
| 1484 /** | 1491 /** |
| 1485 * The instance will be shut down this amount of time after receiving its last | 1492 * Duration of time after the last request that an instance must wait before |
| 1486 * request. | 1493 * the instance is shut down. |
| 1487 */ | 1494 */ |
| 1488 core.String idleTimeout; | 1495 core.String idleTimeout; |
| 1489 /** | 1496 /** Maximum number of instances to create for this version. */ |
| 1490 * The maximum number of instances for App Engine to create for this version. | |
| 1491 */ | |
| 1492 core.int maxInstances; | 1497 core.int maxInstances; |
| 1493 | 1498 |
| 1494 BasicScaling(); | 1499 BasicScaling(); |
| 1495 | 1500 |
| 1496 BasicScaling.fromJson(core.Map _json) { | 1501 BasicScaling.fromJson(core.Map _json) { |
| 1497 if (_json.containsKey("idleTimeout")) { | 1502 if (_json.containsKey("idleTimeout")) { |
| 1498 idleTimeout = _json["idleTimeout"]; | 1503 idleTimeout = _json["idleTimeout"]; |
| 1499 } | 1504 } |
| 1500 if (_json.containsKey("maxInstances")) { | 1505 if (_json.containsKey("maxInstances")) { |
| 1501 maxInstances = _json["maxInstances"]; | 1506 maxInstances = _json["maxInstances"]; |
| 1502 } | 1507 } |
| 1503 } | 1508 } |
| 1504 | 1509 |
| 1505 core.Map toJson() { | 1510 core.Map toJson() { |
| 1506 var _json = new core.Map(); | 1511 var _json = new core.Map(); |
| 1507 if (idleTimeout != null) { | 1512 if (idleTimeout != null) { |
| 1508 _json["idleTimeout"] = idleTimeout; | 1513 _json["idleTimeout"] = idleTimeout; |
| 1509 } | 1514 } |
| 1510 if (maxInstances != null) { | 1515 if (maxInstances != null) { |
| 1511 _json["maxInstances"] = maxInstances; | 1516 _json["maxInstances"] = maxInstances; |
| 1512 } | 1517 } |
| 1513 return _json; | 1518 return _json; |
| 1514 } | 1519 } |
| 1515 } | 1520 } |
| 1516 | 1521 |
| 1517 /** | 1522 /** |
| 1518 * A Docker (container) image which should be used to start the application. | 1523 * Docker image that is used to start a VM container for the version you deploy. |
| 1519 */ | 1524 */ |
| 1520 class ContainerInfo { | 1525 class ContainerInfo { |
| 1521 /** | 1526 /** |
| 1522 * Reference to a hosted container image. Must be a URI to a resource in a | 1527 * URI to the hosted container image in a Docker repository. The URI must be |
| 1523 * Docker repository. Must be fully qualified, including tag or digest. e.g. | 1528 * fully qualified and include a tag or digest. Examples: |
| 1524 * gcr.io/my-project/image:tag or gcr.io/my-project/image@digest | 1529 * "gcr.io/my-project/image:tag" or "gcr.io/my-project/image@digest" |
| 1525 */ | 1530 */ |
| 1526 core.String image; | 1531 core.String image; |
| 1527 | 1532 |
| 1528 ContainerInfo(); | 1533 ContainerInfo(); |
| 1529 | 1534 |
| 1530 ContainerInfo.fromJson(core.Map _json) { | 1535 ContainerInfo.fromJson(core.Map _json) { |
| 1531 if (_json.containsKey("image")) { | 1536 if (_json.containsKey("image")) { |
| 1532 image = _json["image"]; | 1537 image = _json["image"]; |
| 1533 } | 1538 } |
| 1534 } | 1539 } |
| 1535 | 1540 |
| 1536 core.Map toJson() { | 1541 core.Map toJson() { |
| 1537 var _json = new core.Map(); | 1542 var _json = new core.Map(); |
| 1538 if (image != null) { | 1543 if (image != null) { |
| 1539 _json["image"] = image; | 1544 _json["image"] = image; |
| 1540 } | 1545 } |
| 1541 return _json; | 1546 return _json; |
| 1542 } | 1547 } |
| 1543 } | 1548 } |
| 1544 | 1549 |
| 1545 /** Target scaling by CPU usage. */ | 1550 /** Target scaling by CPU usage. */ |
| 1546 class CpuUtilization { | 1551 class CpuUtilization { |
| 1547 /** The period of time over which CPU utilization is calculated. */ | 1552 /** Period of time over which CPU utilization is calculated. */ |
| 1548 core.String aggregationWindowLength; | 1553 core.String aggregationWindowLength; |
| 1549 /** Target (0-1) CPU utilization ratio to maintain when scaling. */ | 1554 /** |
| 1555 * Target CPU utilization ratio to maintain when scaling. Must be between 0 |
| 1556 * and 1. |
| 1557 */ |
| 1550 core.double targetUtilization; | 1558 core.double targetUtilization; |
| 1551 | 1559 |
| 1552 CpuUtilization(); | 1560 CpuUtilization(); |
| 1553 | 1561 |
| 1554 CpuUtilization.fromJson(core.Map _json) { | 1562 CpuUtilization.fromJson(core.Map _json) { |
| 1555 if (_json.containsKey("aggregationWindowLength")) { | 1563 if (_json.containsKey("aggregationWindowLength")) { |
| 1556 aggregationWindowLength = _json["aggregationWindowLength"]; | 1564 aggregationWindowLength = _json["aggregationWindowLength"]; |
| 1557 } | 1565 } |
| 1558 if (_json.containsKey("targetUtilization")) { | 1566 if (_json.containsKey("targetUtilization")) { |
| 1559 targetUtilization = _json["targetUtilization"]; | 1567 targetUtilization = _json["targetUtilization"]; |
| (...skipping 22 matching lines...) Expand all Loading... |
| 1582 | 1590 |
| 1583 core.Map toJson() { | 1591 core.Map toJson() { |
| 1584 var _json = new core.Map(); | 1592 var _json = new core.Map(); |
| 1585 return _json; | 1593 return _json; |
| 1586 } | 1594 } |
| 1587 } | 1595 } |
| 1588 | 1596 |
| 1589 /** Code and application artifacts used to deploy a version to App Engine. */ | 1597 /** Code and application artifacts used to deploy a version to App Engine. */ |
| 1590 class Deployment { | 1598 class Deployment { |
| 1591 /** | 1599 /** |
| 1592 * If supplied, a docker (container) image which should be used to start the | 1600 * A Docker image that App Engine uses to run the version. Only applicable for |
| 1593 * application. Only applicable to the 'vm' runtime. | 1601 * instances in App Engine flexible environment. |
| 1594 */ | 1602 */ |
| 1595 ContainerInfo container; | 1603 ContainerInfo container; |
| 1596 /** | 1604 /** |
| 1597 * A manifest of files stored in Google Cloud Storage which should be included | 1605 * Manifest of the files stored in Google Cloud Storage that are included as |
| 1598 * as part of this application. All files must be readable using the | 1606 * part of this version. All files must be readable using the credentials |
| 1599 * credentials supplied with this call. | 1607 * supplied with this call. |
| 1600 */ | 1608 */ |
| 1601 core.Map<core.String, FileInfo> files; | 1609 core.Map<core.String, FileInfo> files; |
| 1602 /** | 1610 /** The zip file for this deployment, if this is a zip deployment. */ |
| 1603 * The origin of the source code for this deployment. There can be more than | 1611 ZipInfo zip; |
| 1604 * one source reference per Version if source code is distributed among | |
| 1605 * multiple repositories. | |
| 1606 */ | |
| 1607 core.List<SourceReference> sourceReferences; | |
| 1608 | 1612 |
| 1609 Deployment(); | 1613 Deployment(); |
| 1610 | 1614 |
| 1611 Deployment.fromJson(core.Map _json) { | 1615 Deployment.fromJson(core.Map _json) { |
| 1612 if (_json.containsKey("container")) { | 1616 if (_json.containsKey("container")) { |
| 1613 container = new ContainerInfo.fromJson(_json["container"]); | 1617 container = new ContainerInfo.fromJson(_json["container"]); |
| 1614 } | 1618 } |
| 1615 if (_json.containsKey("files")) { | 1619 if (_json.containsKey("files")) { |
| 1616 files = commons.mapMap(_json["files"], (item) => new FileInfo.fromJson(ite
m)); | 1620 files = commons.mapMap(_json["files"], (item) => new FileInfo.fromJson(ite
m)); |
| 1617 } | 1621 } |
| 1618 if (_json.containsKey("sourceReferences")) { | 1622 if (_json.containsKey("zip")) { |
| 1619 sourceReferences = _json["sourceReferences"].map((value) => new SourceRefe
rence.fromJson(value)).toList(); | 1623 zip = new ZipInfo.fromJson(_json["zip"]); |
| 1620 } | 1624 } |
| 1621 } | 1625 } |
| 1622 | 1626 |
| 1623 core.Map toJson() { | 1627 core.Map toJson() { |
| 1624 var _json = new core.Map(); | 1628 var _json = new core.Map(); |
| 1625 if (container != null) { | 1629 if (container != null) { |
| 1626 _json["container"] = (container).toJson(); | 1630 _json["container"] = (container).toJson(); |
| 1627 } | 1631 } |
| 1628 if (files != null) { | 1632 if (files != null) { |
| 1629 _json["files"] = commons.mapMap(files, (item) => (item).toJson()); | 1633 _json["files"] = commons.mapMap(files, (item) => (item).toJson()); |
| 1630 } | 1634 } |
| 1631 if (sourceReferences != null) { | 1635 if (zip != null) { |
| 1632 _json["sourceReferences"] = sourceReferences.map((value) => (value).toJson
()).toList(); | 1636 _json["zip"] = (zip).toJson(); |
| 1633 } | 1637 } |
| 1634 return _json; | 1638 return _json; |
| 1635 } | 1639 } |
| 1636 } | 1640 } |
| 1637 | 1641 |
| 1638 /** Target scaling by disk usage (for VM runtimes only). */ | 1642 /** Target scaling by disk usage. Only applicable for VM runtimes. */ |
| 1639 class DiskUtilization { | 1643 class DiskUtilization { |
| 1640 /** Target bytes per second read. */ | 1644 /** Target bytes read per second. */ |
| 1641 core.int targetReadBytesPerSec; | 1645 core.int targetReadBytesPerSecond; |
| 1642 /** Target ops per second read. */ | 1646 /** Target ops read per seconds. */ |
| 1643 core.int targetReadOpsPerSec; | 1647 core.int targetReadOpsPerSecond; |
| 1644 /** Target bytes per second written. */ | 1648 /** Target bytes written per second. */ |
| 1645 core.int targetWriteBytesPerSec; | 1649 core.int targetWriteBytesPerSecond; |
| 1646 /** Target ops per second written. */ | 1650 /** Target ops written per second. */ |
| 1647 core.int targetWriteOpsPerSec; | 1651 core.int targetWriteOpsPerSecond; |
| 1648 | 1652 |
| 1649 DiskUtilization(); | 1653 DiskUtilization(); |
| 1650 | 1654 |
| 1651 DiskUtilization.fromJson(core.Map _json) { | 1655 DiskUtilization.fromJson(core.Map _json) { |
| 1652 if (_json.containsKey("targetReadBytesPerSec")) { | 1656 if (_json.containsKey("targetReadBytesPerSecond")) { |
| 1653 targetReadBytesPerSec = _json["targetReadBytesPerSec"]; | 1657 targetReadBytesPerSecond = _json["targetReadBytesPerSecond"]; |
| 1654 } | 1658 } |
| 1655 if (_json.containsKey("targetReadOpsPerSec")) { | 1659 if (_json.containsKey("targetReadOpsPerSecond")) { |
| 1656 targetReadOpsPerSec = _json["targetReadOpsPerSec"]; | 1660 targetReadOpsPerSecond = _json["targetReadOpsPerSecond"]; |
| 1657 } | 1661 } |
| 1658 if (_json.containsKey("targetWriteBytesPerSec")) { | 1662 if (_json.containsKey("targetWriteBytesPerSecond")) { |
| 1659 targetWriteBytesPerSec = _json["targetWriteBytesPerSec"]; | 1663 targetWriteBytesPerSecond = _json["targetWriteBytesPerSecond"]; |
| 1660 } | 1664 } |
| 1661 if (_json.containsKey("targetWriteOpsPerSec")) { | 1665 if (_json.containsKey("targetWriteOpsPerSecond")) { |
| 1662 targetWriteOpsPerSec = _json["targetWriteOpsPerSec"]; | 1666 targetWriteOpsPerSecond = _json["targetWriteOpsPerSecond"]; |
| 1663 } | 1667 } |
| 1664 } | 1668 } |
| 1665 | 1669 |
| 1666 core.Map toJson() { | 1670 core.Map toJson() { |
| 1667 var _json = new core.Map(); | 1671 var _json = new core.Map(); |
| 1668 if (targetReadBytesPerSec != null) { | 1672 if (targetReadBytesPerSecond != null) { |
| 1669 _json["targetReadBytesPerSec"] = targetReadBytesPerSec; | 1673 _json["targetReadBytesPerSecond"] = targetReadBytesPerSecond; |
| 1670 } | 1674 } |
| 1671 if (targetReadOpsPerSec != null) { | 1675 if (targetReadOpsPerSecond != null) { |
| 1672 _json["targetReadOpsPerSec"] = targetReadOpsPerSec; | 1676 _json["targetReadOpsPerSecond"] = targetReadOpsPerSecond; |
| 1673 } | 1677 } |
| 1674 if (targetWriteBytesPerSec != null) { | 1678 if (targetWriteBytesPerSecond != null) { |
| 1675 _json["targetWriteBytesPerSec"] = targetWriteBytesPerSec; | 1679 _json["targetWriteBytesPerSecond"] = targetWriteBytesPerSecond; |
| 1676 } | 1680 } |
| 1677 if (targetWriteOpsPerSec != null) { | 1681 if (targetWriteOpsPerSecond != null) { |
| 1678 _json["targetWriteOpsPerSec"] = targetWriteOpsPerSec; | 1682 _json["targetWriteOpsPerSecond"] = targetWriteOpsPerSecond; |
| 1679 } | 1683 } |
| 1680 return _json; | 1684 return _json; |
| 1681 } | 1685 } |
| 1682 } | 1686 } |
| 1683 | 1687 |
| 1684 /** A custom static error page to be served when an error occurs. */ | 1688 /** Custom static error page to be served when an error occurs. */ |
| 1685 class ErrorHandler { | 1689 class ErrorHandler { |
| 1686 /** | 1690 /** |
| 1687 * The error condition this handler applies to. | 1691 * Error condition this handler applies to. |
| 1688 * Possible string values are: | 1692 * Possible string values are: |
| 1689 * - "ERROR_CODE_UNSPECIFIED" : A ERROR_CODE_UNSPECIFIED. | 1693 * - "ERROR_CODE_UNSPECIFIED" : A ERROR_CODE_UNSPECIFIED. |
| 1690 * - "ERROR_CODE_DEFAULT" : A ERROR_CODE_DEFAULT. | 1694 * - "ERROR_CODE_DEFAULT" : A ERROR_CODE_DEFAULT. |
| 1691 * - "ERROR_CODE_OVER_QUOTA" : A ERROR_CODE_OVER_QUOTA. | 1695 * - "ERROR_CODE_OVER_QUOTA" : A ERROR_CODE_OVER_QUOTA. |
| 1692 * - "ERROR_CODE_DOS_API_DENIAL" : A ERROR_CODE_DOS_API_DENIAL. | 1696 * - "ERROR_CODE_DOS_API_DENIAL" : A ERROR_CODE_DOS_API_DENIAL. |
| 1693 * - "ERROR_CODE_TIMEOUT" : A ERROR_CODE_TIMEOUT. | 1697 * - "ERROR_CODE_TIMEOUT" : A ERROR_CODE_TIMEOUT. |
| 1694 */ | 1698 */ |
| 1695 core.String errorCode; | 1699 core.String errorCode; |
| 1696 /** MIME type of file. If unspecified, "text/html" is assumed. */ | 1700 /** MIME type of file. Defaults to `text/html`. */ |
| 1697 core.String mimeType; | 1701 core.String mimeType; |
| 1698 /** Static file content to be served for this error. */ | 1702 /** Static file content to be served for this error. */ |
| 1699 core.String staticFile; | 1703 core.String staticFile; |
| 1700 | 1704 |
| 1701 ErrorHandler(); | 1705 ErrorHandler(); |
| 1702 | 1706 |
| 1703 ErrorHandler.fromJson(core.Map _json) { | 1707 ErrorHandler.fromJson(core.Map _json) { |
| 1704 if (_json.containsKey("errorCode")) { | 1708 if (_json.containsKey("errorCode")) { |
| 1705 errorCode = _json["errorCode"]; | 1709 errorCode = _json["errorCode"]; |
| 1706 } | 1710 } |
| (...skipping 13 matching lines...) Expand all Loading... |
| 1720 if (mimeType != null) { | 1724 if (mimeType != null) { |
| 1721 _json["mimeType"] = mimeType; | 1725 _json["mimeType"] = mimeType; |
| 1722 } | 1726 } |
| 1723 if (staticFile != null) { | 1727 if (staticFile != null) { |
| 1724 _json["staticFile"] = staticFile; | 1728 _json["staticFile"] = staticFile; |
| 1725 } | 1729 } |
| 1726 return _json; | 1730 return _json; |
| 1727 } | 1731 } |
| 1728 } | 1732 } |
| 1729 | 1733 |
| 1730 /** A single source file which is part of the application to be deployed. */ | 1734 /** |
| 1735 * Single source file that is part of the version to be deployed. Each source |
| 1736 * file that is deployed must be specified separately. |
| 1737 */ |
| 1731 class FileInfo { | 1738 class FileInfo { |
| 1732 /** | 1739 /** |
| 1733 * The MIME type of the file; if unspecified, the value from Google Cloud | 1740 * The MIME type of the file. Defaults to the value from Google Cloud Storage. |
| 1734 * Storage will be used. | |
| 1735 */ | 1741 */ |
| 1736 core.String mimeType; | 1742 core.String mimeType; |
| 1737 /** The SHA1 (160 bits) hash of the file in hex. */ | 1743 /** The SHA1 hash of the file, in hex. */ |
| 1738 core.String sha1Sum; | 1744 core.String sha1Sum; |
| 1739 /** | 1745 /** |
| 1740 * The URL source to use to fetch this file. Must be a URL to a resource in | 1746 * URL source to use to fetch this file. Must be a URL to a resource in Google |
| 1741 * Google Cloud Storage in the form 'http(s)://storage.googleapis.com/\/\'. | 1747 * Cloud Storage in the form 'http(s)://storage.googleapis.com/\/\'. |
| 1742 */ | 1748 */ |
| 1743 core.String sourceUrl; | 1749 core.String sourceUrl; |
| 1744 | 1750 |
| 1745 FileInfo(); | 1751 FileInfo(); |
| 1746 | 1752 |
| 1747 FileInfo.fromJson(core.Map _json) { | 1753 FileInfo.fromJson(core.Map _json) { |
| 1748 if (_json.containsKey("mimeType")) { | 1754 if (_json.containsKey("mimeType")) { |
| 1749 mimeType = _json["mimeType"]; | 1755 mimeType = _json["mimeType"]; |
| 1750 } | 1756 } |
| 1751 if (_json.containsKey("sha1Sum")) { | 1757 if (_json.containsKey("sha1Sum")) { |
| (...skipping 13 matching lines...) Expand all Loading... |
| 1765 _json["sha1Sum"] = sha1Sum; | 1771 _json["sha1Sum"] = sha1Sum; |
| 1766 } | 1772 } |
| 1767 if (sourceUrl != null) { | 1773 if (sourceUrl != null) { |
| 1768 _json["sourceUrl"] = sourceUrl; | 1774 _json["sourceUrl"] = sourceUrl; |
| 1769 } | 1775 } |
| 1770 return _json; | 1776 return _json; |
| 1771 } | 1777 } |
| 1772 } | 1778 } |
| 1773 | 1779 |
| 1774 /** | 1780 /** |
| 1775 * Configure health checking for the VM instances. Unhealthy VM instances will | 1781 * Health checking configuration for VM instances. Unhealthy instances are |
| 1776 * be killed and replaced with new instances. | 1782 * killed and replaced with new instances. Only applicable for instances in App |
| 1783 * Engine flexible environment. |
| 1777 */ | 1784 */ |
| 1778 class HealthCheck { | 1785 class HealthCheck { |
| 1779 /** The interval between health checks. */ | 1786 /** Interval between health checks. */ |
| 1780 core.String checkInterval; | 1787 core.String checkInterval; |
| 1781 /** Whether to explicitly disable health checks for this instance. */ | 1788 /** Whether to explicitly disable health checks for this instance. */ |
| 1782 core.bool disableHealthCheck; | 1789 core.bool disableHealthCheck; |
| 1783 /** | 1790 /** |
| 1784 * The number of consecutive successful health checks before receiving | 1791 * Number of consecutive successful health checks required before receiving |
| 1785 * traffic. | 1792 * traffic. |
| 1786 */ | 1793 */ |
| 1787 core.int healthyThreshold; | 1794 core.int healthyThreshold; |
| 1788 /** | 1795 /** |
| 1789 * The host header to send when performing an HTTP health check (e.g. | 1796 * Host header to send when performing an HTTP health check. Example: |
| 1790 * myapp.appspot.com) | 1797 * "myapp.appspot.com" |
| 1791 */ | 1798 */ |
| 1792 core.String host; | 1799 core.String host; |
| 1793 /** | 1800 /** |
| 1794 * The number of consecutive failed health checks before an instance is | 1801 * Number of consecutive failed health checks required before an instance is |
| 1795 * restarted. | 1802 * restarted. |
| 1796 */ | 1803 */ |
| 1797 core.int restartThreshold; | 1804 core.int restartThreshold; |
| 1798 /** The amount of time before the health check is considered failed. */ | 1805 /** Time before the health check is considered failed. */ |
| 1799 core.String timeout; | 1806 core.String timeout; |
| 1800 /** | 1807 /** |
| 1801 * The number of consecutive failed health checks before removing traffic. | 1808 * Number of consecutive failed health checks required before removing |
| 1809 * traffic. |
| 1802 */ | 1810 */ |
| 1803 core.int unhealthyThreshold; | 1811 core.int unhealthyThreshold; |
| 1804 | 1812 |
| 1805 HealthCheck(); | 1813 HealthCheck(); |
| 1806 | 1814 |
| 1807 HealthCheck.fromJson(core.Map _json) { | 1815 HealthCheck.fromJson(core.Map _json) { |
| 1808 if (_json.containsKey("checkInterval")) { | 1816 if (_json.containsKey("checkInterval")) { |
| 1809 checkInterval = _json["checkInterval"]; | 1817 checkInterval = _json["checkInterval"]; |
| 1810 } | 1818 } |
| 1811 if (_json.containsKey("disableHealthCheck")) { | 1819 if (_json.containsKey("disableHealthCheck")) { |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1849 _json["timeout"] = timeout; | 1857 _json["timeout"] = timeout; |
| 1850 } | 1858 } |
| 1851 if (unhealthyThreshold != null) { | 1859 if (unhealthyThreshold != null) { |
| 1852 _json["unhealthyThreshold"] = unhealthyThreshold; | 1860 _json["unhealthyThreshold"] = unhealthyThreshold; |
| 1853 } | 1861 } |
| 1854 return _json; | 1862 return _json; |
| 1855 } | 1863 } |
| 1856 } | 1864 } |
| 1857 | 1865 |
| 1858 /** | 1866 /** |
| 1859 * Instances are the computing units that App Engine uses to automatically scale | 1867 * An Instance resource is the computing unit that App Engine uses to |
| 1860 * an application. | 1868 * automatically scale an application. |
| 1861 */ | 1869 */ |
| 1862 class Instance { | 1870 class Instance { |
| 1863 /** The App Engine release the instance is running on. @OutputOnly */ | 1871 /** App Engine release this instance is running on. @OutputOnly */ |
| 1864 core.String appEngineRelease; | 1872 core.String appEngineRelease; |
| 1865 /** | 1873 /** |
| 1866 * Availability of instance. @OutputOnly | 1874 * Availability of the instance. @OutputOnly |
| 1867 * Possible string values are: | 1875 * Possible string values are: |
| 1868 * - "UNSPECIFIED" : A UNSPECIFIED. | 1876 * - "UNSPECIFIED" : A UNSPECIFIED. |
| 1869 * - "RESIDENT" : A RESIDENT. | 1877 * - "RESIDENT" : A RESIDENT. |
| 1870 * - "DYNAMIC" : A DYNAMIC. | 1878 * - "DYNAMIC" : A DYNAMIC. |
| 1871 */ | 1879 */ |
| 1872 core.String availability; | 1880 core.String availability; |
| 1873 /** Latency in milliseconds (averaged over the last minute). @OutputOnly */ | 1881 /** Average latency (ms) over the last minute. @OutputOnly */ |
| 1874 core.int averageLatency; | 1882 core.int averageLatency; |
| 1875 /** Number of errors since the instance was started. @OutputOnly */ | 1883 /** Number of errors since this instance was started. @OutputOnly */ |
| 1876 core.int errors; | 1884 core.int errors; |
| 1877 /** | 1885 /** |
| 1878 * The relative name/path of the instance within the version. Example: | 1886 * Relative name of the instance within the version. Example: `instance-1`. |
| 1879 * "instance-1" @OutputOnly | 1887 * @OutputOnly |
| 1880 */ | 1888 */ |
| 1881 core.String id; | 1889 core.String id; |
| 1882 /** Memory usage (in bytes). @OutputOnly */ | 1890 /** Total memory in use (bytes). @OutputOnly */ |
| 1883 core.String memoryUsage; | 1891 core.String memoryUsage; |
| 1884 /** | 1892 /** |
| 1885 * The full path to the Instance resource in the API. Example: | 1893 * Full path to the Instance resource in the API. Example: |
| 1886 * "apps/myapp/services/default/versions/v1/instances/instance-1" @OutputOnly | 1894 * `apps/myapp/services/default/versions/v1/instances/instance-1`. @OutputOnly |
| 1887 */ | 1895 */ |
| 1888 core.String name; | 1896 core.String name; |
| 1889 /** QPS for this instance (averaged over the last minute). @OutputOnly */ | 1897 /** Average queries per second (QPS) over the last minute. @OutputOnly */ |
| 1890 core.double qps; | 1898 core.double qps; |
| 1891 /** Number of requests (since the clone was started). @OutputOnly */ | 1899 /** Number of requests since this instance was started. @OutputOnly */ |
| 1892 core.int requests; | 1900 core.int requests; |
| 1893 /** Time when instance was started. @OutputOnly */ | 1901 /** Time that this instance was started. @OutputOnly */ |
| 1894 core.String startTimestamp; | 1902 core.String startTime; |
| 1895 /** | 1903 /** |
| 1896 * For VMEngines instances, the Compute Engine VM ID of the instance. | 1904 * Whether this instance is in debug mode. Only applicable for instances in |
| 1897 * @OutputOnly | 1905 * App Engine flexible environment. @OutputOnly |
| 1906 */ |
| 1907 core.bool vmDebugEnabled; |
| 1908 /** |
| 1909 * Virtual machine ID of this instance. Only applicable for instances in App |
| 1910 * Engine flexible environment. @OutputOnly |
| 1898 */ | 1911 */ |
| 1899 core.String vmId; | 1912 core.String vmId; |
| 1900 /** | 1913 /** |
| 1901 * For VMEngines instances, the name of the Compute Engine VM where the | 1914 * Name of the virtual machine where this instance lives. Only applicable for |
| 1902 * instance lives. @OutputOnly | 1915 * instances in App Engine flexible environment. @OutputOnly |
| 1903 */ | 1916 */ |
| 1904 core.String vmName; | 1917 core.String vmName; |
| 1905 /** | 1918 /** |
| 1906 * For VMEngines instances, the status of the Compute Engine VM where the | 1919 * Status of the virtual machine where this instance lives. Only applicable |
| 1907 * instance lives. @OutputOnly | 1920 * for instances in App Engine flexible environment. @OutputOnly |
| 1908 */ | 1921 */ |
| 1909 core.String vmStatus; | 1922 core.String vmStatus; |
| 1910 /** | 1923 /** |
| 1911 * For VMEngines instances, whether the instance has been unlocked. | 1924 * Zone where the virtual machine is located. Only applicable for instances in |
| 1912 * @OutputOnly | 1925 * App Engine flexible environment. @OutputOnly |
| 1913 */ | |
| 1914 core.bool vmUnlocked; | |
| 1915 /** | |
| 1916 * For VMEngines instances, the zone where the Compute Engine VM is located. | |
| 1917 * @OutputOnly | |
| 1918 */ | 1926 */ |
| 1919 core.String vmZoneName; | 1927 core.String vmZoneName; |
| 1920 | 1928 |
| 1921 Instance(); | 1929 Instance(); |
| 1922 | 1930 |
| 1923 Instance.fromJson(core.Map _json) { | 1931 Instance.fromJson(core.Map _json) { |
| 1924 if (_json.containsKey("appEngineRelease")) { | 1932 if (_json.containsKey("appEngineRelease")) { |
| 1925 appEngineRelease = _json["appEngineRelease"]; | 1933 appEngineRelease = _json["appEngineRelease"]; |
| 1926 } | 1934 } |
| 1927 if (_json.containsKey("availability")) { | 1935 if (_json.containsKey("availability")) { |
| (...skipping 13 matching lines...) Expand all Loading... |
| 1941 } | 1949 } |
| 1942 if (_json.containsKey("name")) { | 1950 if (_json.containsKey("name")) { |
| 1943 name = _json["name"]; | 1951 name = _json["name"]; |
| 1944 } | 1952 } |
| 1945 if (_json.containsKey("qps")) { | 1953 if (_json.containsKey("qps")) { |
| 1946 qps = _json["qps"]; | 1954 qps = _json["qps"]; |
| 1947 } | 1955 } |
| 1948 if (_json.containsKey("requests")) { | 1956 if (_json.containsKey("requests")) { |
| 1949 requests = _json["requests"]; | 1957 requests = _json["requests"]; |
| 1950 } | 1958 } |
| 1951 if (_json.containsKey("startTimestamp")) { | 1959 if (_json.containsKey("startTime")) { |
| 1952 startTimestamp = _json["startTimestamp"]; | 1960 startTime = _json["startTime"]; |
| 1961 } |
| 1962 if (_json.containsKey("vmDebugEnabled")) { |
| 1963 vmDebugEnabled = _json["vmDebugEnabled"]; |
| 1953 } | 1964 } |
| 1954 if (_json.containsKey("vmId")) { | 1965 if (_json.containsKey("vmId")) { |
| 1955 vmId = _json["vmId"]; | 1966 vmId = _json["vmId"]; |
| 1956 } | 1967 } |
| 1957 if (_json.containsKey("vmName")) { | 1968 if (_json.containsKey("vmName")) { |
| 1958 vmName = _json["vmName"]; | 1969 vmName = _json["vmName"]; |
| 1959 } | 1970 } |
| 1960 if (_json.containsKey("vmStatus")) { | 1971 if (_json.containsKey("vmStatus")) { |
| 1961 vmStatus = _json["vmStatus"]; | 1972 vmStatus = _json["vmStatus"]; |
| 1962 } | 1973 } |
| 1963 if (_json.containsKey("vmUnlocked")) { | |
| 1964 vmUnlocked = _json["vmUnlocked"]; | |
| 1965 } | |
| 1966 if (_json.containsKey("vmZoneName")) { | 1974 if (_json.containsKey("vmZoneName")) { |
| 1967 vmZoneName = _json["vmZoneName"]; | 1975 vmZoneName = _json["vmZoneName"]; |
| 1968 } | 1976 } |
| 1969 } | 1977 } |
| 1970 | 1978 |
| 1971 core.Map toJson() { | 1979 core.Map toJson() { |
| 1972 var _json = new core.Map(); | 1980 var _json = new core.Map(); |
| 1973 if (appEngineRelease != null) { | 1981 if (appEngineRelease != null) { |
| 1974 _json["appEngineRelease"] = appEngineRelease; | 1982 _json["appEngineRelease"] = appEngineRelease; |
| 1975 } | 1983 } |
| (...skipping 14 matching lines...) Expand all Loading... |
| 1990 } | 1998 } |
| 1991 if (name != null) { | 1999 if (name != null) { |
| 1992 _json["name"] = name; | 2000 _json["name"] = name; |
| 1993 } | 2001 } |
| 1994 if (qps != null) { | 2002 if (qps != null) { |
| 1995 _json["qps"] = qps; | 2003 _json["qps"] = qps; |
| 1996 } | 2004 } |
| 1997 if (requests != null) { | 2005 if (requests != null) { |
| 1998 _json["requests"] = requests; | 2006 _json["requests"] = requests; |
| 1999 } | 2007 } |
| 2000 if (startTimestamp != null) { | 2008 if (startTime != null) { |
| 2001 _json["startTimestamp"] = startTimestamp; | 2009 _json["startTime"] = startTime; |
| 2010 } |
| 2011 if (vmDebugEnabled != null) { |
| 2012 _json["vmDebugEnabled"] = vmDebugEnabled; |
| 2002 } | 2013 } |
| 2003 if (vmId != null) { | 2014 if (vmId != null) { |
| 2004 _json["vmId"] = vmId; | 2015 _json["vmId"] = vmId; |
| 2005 } | 2016 } |
| 2006 if (vmName != null) { | 2017 if (vmName != null) { |
| 2007 _json["vmName"] = vmName; | 2018 _json["vmName"] = vmName; |
| 2008 } | 2019 } |
| 2009 if (vmStatus != null) { | 2020 if (vmStatus != null) { |
| 2010 _json["vmStatus"] = vmStatus; | 2021 _json["vmStatus"] = vmStatus; |
| 2011 } | 2022 } |
| 2012 if (vmUnlocked != null) { | |
| 2013 _json["vmUnlocked"] = vmUnlocked; | |
| 2014 } | |
| 2015 if (vmZoneName != null) { | 2023 if (vmZoneName != null) { |
| 2016 _json["vmZoneName"] = vmZoneName; | 2024 _json["vmZoneName"] = vmZoneName; |
| 2017 } | 2025 } |
| 2018 return _json; | 2026 return _json; |
| 2019 } | 2027 } |
| 2020 } | 2028 } |
| 2021 | 2029 |
| 2022 /** A Python runtime third-party library required by the application. */ | 2030 /** Third-party Python runtime library that is required by the application. */ |
| 2023 class Library { | 2031 class Library { |
| 2024 /** The name of the library, e.g. "PIL" or "django". */ | 2032 /** Name of the library. Example: "django". */ |
| 2025 core.String name; | 2033 core.String name; |
| 2026 /** The version of the library to select, or "latest". */ | 2034 /** Version of the library to select, or "latest". */ |
| 2027 core.String version; | 2035 core.String version; |
| 2028 | 2036 |
| 2029 Library(); | 2037 Library(); |
| 2030 | 2038 |
| 2031 Library.fromJson(core.Map _json) { | 2039 Library.fromJson(core.Map _json) { |
| 2032 if (_json.containsKey("name")) { | 2040 if (_json.containsKey("name")) { |
| 2033 name = _json["name"]; | 2041 name = _json["name"]; |
| 2034 } | 2042 } |
| 2035 if (_json.containsKey("version")) { | 2043 if (_json.containsKey("version")) { |
| 2036 version = _json["version"]; | 2044 version = _json["version"]; |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2166 _json["services"] = services.map((value) => (value).toJson()).toList(); | 2174 _json["services"] = services.map((value) => (value).toJson()).toList(); |
| 2167 } | 2175 } |
| 2168 return _json; | 2176 return _json; |
| 2169 } | 2177 } |
| 2170 } | 2178 } |
| 2171 | 2179 |
| 2172 /** Response message for `Versions.ListVersions`. */ | 2180 /** Response message for `Versions.ListVersions`. */ |
| 2173 class ListVersionsResponse { | 2181 class ListVersionsResponse { |
| 2174 /** Continuation token for fetching the next page of results. */ | 2182 /** Continuation token for fetching the next page of results. */ |
| 2175 core.String nextPageToken; | 2183 core.String nextPageToken; |
| 2176 /** The versions belonging to the requested application service. */ | 2184 /** The versions belonging to the requested service. */ |
| 2177 core.List<Version> versions; | 2185 core.List<Version> versions; |
| 2178 | 2186 |
| 2179 ListVersionsResponse(); | 2187 ListVersionsResponse(); |
| 2180 | 2188 |
| 2181 ListVersionsResponse.fromJson(core.Map _json) { | 2189 ListVersionsResponse.fromJson(core.Map _json) { |
| 2182 if (_json.containsKey("nextPageToken")) { | 2190 if (_json.containsKey("nextPageToken")) { |
| 2183 nextPageToken = _json["nextPageToken"]; | 2191 nextPageToken = _json["nextPageToken"]; |
| 2184 } | 2192 } |
| 2185 if (_json.containsKey("versions")) { | 2193 if (_json.containsKey("versions")) { |
| 2186 versions = _json["versions"].map((value) => new Version.fromJson(value)).t
oList(); | 2194 versions = _json["versions"].map((value) => new Version.fromJson(value)).t
oList(); |
| (...skipping 12 matching lines...) Expand all Loading... |
| 2199 } | 2207 } |
| 2200 } | 2208 } |
| 2201 | 2209 |
| 2202 /** A resource that represents Google Cloud Platform location. */ | 2210 /** A resource that represents Google Cloud Platform location. */ |
| 2203 class Location { | 2211 class Location { |
| 2204 /** | 2212 /** |
| 2205 * Cross-service attributes for the location. For example | 2213 * Cross-service attributes for the location. For example |
| 2206 * {"cloud.googleapis.com/region": "us-east1"} | 2214 * {"cloud.googleapis.com/region": "us-east1"} |
| 2207 */ | 2215 */ |
| 2208 core.Map<core.String, core.String> labels; | 2216 core.Map<core.String, core.String> labels; |
| 2217 /** The cononical id for this location. For example: `"us-east1"`. */ |
| 2218 core.String locationId; |
| 2209 /** | 2219 /** |
| 2210 * Service-specific metadata. For example the available capacity at the given | 2220 * Service-specific metadata. For example the available capacity at the given |
| 2211 * location. | 2221 * location. |
| 2212 * | 2222 * |
| 2213 * The values for Object must be JSON objects. It can consist of `num`, | 2223 * 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. | 2224 * `String`, `bool` and `null` as well as `Map` and `List` values. |
| 2215 */ | 2225 */ |
| 2216 core.Map<core.String, core.Object> metadata; | 2226 core.Map<core.String, core.Object> metadata; |
| 2217 /** | 2227 /** |
| 2218 * Resource name for the location, which may vary between implementations. | 2228 * Resource name for the location, which may vary between implementations. For |
| 2219 * Example: `"projects/example-project/locations/us-east1"` | 2229 * example: `"projects/example-project/locations/us-east1"` |
| 2220 */ | 2230 */ |
| 2221 core.String name; | 2231 core.String name; |
| 2222 | 2232 |
| 2223 Location(); | 2233 Location(); |
| 2224 | 2234 |
| 2225 Location.fromJson(core.Map _json) { | 2235 Location.fromJson(core.Map _json) { |
| 2226 if (_json.containsKey("labels")) { | 2236 if (_json.containsKey("labels")) { |
| 2227 labels = _json["labels"]; | 2237 labels = _json["labels"]; |
| 2228 } | 2238 } |
| 2239 if (_json.containsKey("locationId")) { |
| 2240 locationId = _json["locationId"]; |
| 2241 } |
| 2229 if (_json.containsKey("metadata")) { | 2242 if (_json.containsKey("metadata")) { |
| 2230 metadata = _json["metadata"]; | 2243 metadata = _json["metadata"]; |
| 2231 } | 2244 } |
| 2232 if (_json.containsKey("name")) { | 2245 if (_json.containsKey("name")) { |
| 2233 name = _json["name"]; | 2246 name = _json["name"]; |
| 2234 } | 2247 } |
| 2235 } | 2248 } |
| 2236 | 2249 |
| 2237 core.Map toJson() { | 2250 core.Map toJson() { |
| 2238 var _json = new core.Map(); | 2251 var _json = new core.Map(); |
| 2239 if (labels != null) { | 2252 if (labels != null) { |
| 2240 _json["labels"] = labels; | 2253 _json["labels"] = labels; |
| 2241 } | 2254 } |
| 2255 if (locationId != null) { |
| 2256 _json["locationId"] = locationId; |
| 2257 } |
| 2242 if (metadata != null) { | 2258 if (metadata != null) { |
| 2243 _json["metadata"] = metadata; | 2259 _json["metadata"] = metadata; |
| 2244 } | 2260 } |
| 2245 if (name != null) { | 2261 if (name != null) { |
| 2246 _json["name"] = name; | 2262 _json["name"] = name; |
| 2247 } | 2263 } |
| 2248 return _json; | 2264 return _json; |
| 2249 } | 2265 } |
| 2250 } | 2266 } |
| 2251 | 2267 |
| 2252 /** Metadata for the given google.cloud.location.Location. */ | 2268 /** Metadata for the given google.cloud.location.Location. */ |
| 2253 class LocationMetadata { | 2269 class LocationMetadata { |
| 2270 /** |
| 2271 * App Engine Flexible Environment is available in the given location. |
| 2272 * @OutputOnly |
| 2273 */ |
| 2274 core.bool flexibleEnvironmentAvailable; |
| 2275 /** |
| 2276 * App Engine Standard Environment is available in the given location. |
| 2277 * @OutputOnly |
| 2278 */ |
| 2279 core.bool standardEnvironmentAvailable; |
| 2254 | 2280 |
| 2255 LocationMetadata(); | 2281 LocationMetadata(); |
| 2256 | 2282 |
| 2257 LocationMetadata.fromJson(core.Map _json) { | 2283 LocationMetadata.fromJson(core.Map _json) { |
| 2284 if (_json.containsKey("flexibleEnvironmentAvailable")) { |
| 2285 flexibleEnvironmentAvailable = _json["flexibleEnvironmentAvailable"]; |
| 2286 } |
| 2287 if (_json.containsKey("standardEnvironmentAvailable")) { |
| 2288 standardEnvironmentAvailable = _json["standardEnvironmentAvailable"]; |
| 2289 } |
| 2258 } | 2290 } |
| 2259 | 2291 |
| 2260 core.Map toJson() { | 2292 core.Map toJson() { |
| 2261 var _json = new core.Map(); | 2293 var _json = new core.Map(); |
| 2294 if (flexibleEnvironmentAvailable != null) { |
| 2295 _json["flexibleEnvironmentAvailable"] = flexibleEnvironmentAvailable; |
| 2296 } |
| 2297 if (standardEnvironmentAvailable != null) { |
| 2298 _json["standardEnvironmentAvailable"] = standardEnvironmentAvailable; |
| 2299 } |
| 2262 return _json; | 2300 return _json; |
| 2263 } | 2301 } |
| 2264 } | 2302 } |
| 2265 | 2303 |
| 2266 /** | 2304 /** |
| 2267 * A service with manual scaling runs continuously, allowing you to perform | 2305 * A service with manual scaling runs continuously, allowing you to perform |
| 2268 * complex initialization and rely on the state of its memory over time. | 2306 * complex initialization and rely on the state of its memory over time. |
| 2269 */ | 2307 */ |
| 2270 class ManualScaling { | 2308 class ManualScaling { |
| 2271 /** | 2309 /** |
| 2272 * The number of instances to assign to the service at the start. This number | 2310 * Number of instances to assign to the service at the start. This number can |
| 2273 * can later be altered by using the [Modules | 2311 * later be altered by using the [Modules |
| 2274 * API](https://cloud.google.com/appengine/docs/python/modules/functions) | 2312 * API](https://cloud.google.com/appengine/docs/python/modules/functions) |
| 2275 * `set_num_instances()` function. | 2313 * `set_num_instances()` function. |
| 2276 */ | 2314 */ |
| 2277 core.int instances; | 2315 core.int instances; |
| 2278 | 2316 |
| 2279 ManualScaling(); | 2317 ManualScaling(); |
| 2280 | 2318 |
| 2281 ManualScaling.fromJson(core.Map _json) { | 2319 ManualScaling.fromJson(core.Map _json) { |
| 2282 if (_json.containsKey("instances")) { | 2320 if (_json.containsKey("instances")) { |
| 2283 instances = _json["instances"]; | 2321 instances = _json["instances"]; |
| 2284 } | 2322 } |
| 2285 } | 2323 } |
| 2286 | 2324 |
| 2287 core.Map toJson() { | 2325 core.Map toJson() { |
| 2288 var _json = new core.Map(); | 2326 var _json = new core.Map(); |
| 2289 if (instances != null) { | 2327 if (instances != null) { |
| 2290 _json["instances"] = instances; | 2328 _json["instances"] = instances; |
| 2291 } | 2329 } |
| 2292 return _json; | 2330 return _json; |
| 2293 } | 2331 } |
| 2294 } | 2332 } |
| 2295 | 2333 |
| 2296 /** Used to specify extra network settings (for VM runtimes only). */ | 2334 /** Extra network settings. Only applicable for VM runtimes. */ |
| 2297 class Network { | 2335 class Network { |
| 2298 /** | 2336 /** |
| 2299 * A list of ports (or port pairs) to forward from the VM into the app | 2337 * List of ports, or port pairs, to forward from the virtual machine to the |
| 2300 * container. | 2338 * application container. |
| 2301 */ | 2339 */ |
| 2302 core.List<core.String> forwardedPorts; | 2340 core.List<core.String> forwardedPorts; |
| 2303 /** A tag to apply to the VM instance during creation. */ | 2341 /** Tag to apply to the VM instance during creation. */ |
| 2304 core.String instanceTag; | 2342 core.String instanceTag; |
| 2305 /** | 2343 /** |
| 2306 * The Google Compute Engine network where the VMs will be created. If not | 2344 * Google Cloud Platform network where the virtual machines are created. |
| 2307 * specified, or empty, the network named "default" will be used. (The short | 2345 * Specify the short name, not the resource path. Defaults to `default`. |
| 2308 * name should be specified, not the resource path.) | |
| 2309 */ | 2346 */ |
| 2310 core.String name; | 2347 core.String name; |
| 2311 | 2348 |
| 2312 Network(); | 2349 Network(); |
| 2313 | 2350 |
| 2314 Network.fromJson(core.Map _json) { | 2351 Network.fromJson(core.Map _json) { |
| 2315 if (_json.containsKey("forwardedPorts")) { | 2352 if (_json.containsKey("forwardedPorts")) { |
| 2316 forwardedPorts = _json["forwardedPorts"]; | 2353 forwardedPorts = _json["forwardedPorts"]; |
| 2317 } | 2354 } |
| 2318 if (_json.containsKey("instanceTag")) { | 2355 if (_json.containsKey("instanceTag")) { |
| (...skipping 12 matching lines...) Expand all Loading... |
| 2331 if (instanceTag != null) { | 2368 if (instanceTag != null) { |
| 2332 _json["instanceTag"] = instanceTag; | 2369 _json["instanceTag"] = instanceTag; |
| 2333 } | 2370 } |
| 2334 if (name != null) { | 2371 if (name != null) { |
| 2335 _json["name"] = name; | 2372 _json["name"] = name; |
| 2336 } | 2373 } |
| 2337 return _json; | 2374 return _json; |
| 2338 } | 2375 } |
| 2339 } | 2376 } |
| 2340 | 2377 |
| 2341 /** Target scaling by network usage (for VM runtimes only). */ | 2378 /** Target scaling by network usage. Only applicable for VM runtimes. */ |
| 2342 class NetworkUtilization { | 2379 class NetworkUtilization { |
| 2343 /** Target bytes per second received. */ | 2380 /** Target bytes received per second. */ |
| 2344 core.int targetReceivedBytesPerSec; | 2381 core.int targetReceivedBytesPerSecond; |
| 2345 /** Target packets per second received. */ | 2382 /** Target packets received per second. */ |
| 2346 core.int targetReceivedPacketsPerSec; | 2383 core.int targetReceivedPacketsPerSecond; |
| 2347 /** Target bytes per second sent. */ | 2384 /** Target bytes sent per second. */ |
| 2348 core.int targetSentBytesPerSec; | 2385 core.int targetSentBytesPerSecond; |
| 2349 /** Target packets per second sent. */ | 2386 /** Target packets sent per second. */ |
| 2350 core.int targetSentPacketsPerSec; | 2387 core.int targetSentPacketsPerSecond; |
| 2351 | 2388 |
| 2352 NetworkUtilization(); | 2389 NetworkUtilization(); |
| 2353 | 2390 |
| 2354 NetworkUtilization.fromJson(core.Map _json) { | 2391 NetworkUtilization.fromJson(core.Map _json) { |
| 2355 if (_json.containsKey("targetReceivedBytesPerSec")) { | 2392 if (_json.containsKey("targetReceivedBytesPerSecond")) { |
| 2356 targetReceivedBytesPerSec = _json["targetReceivedBytesPerSec"]; | 2393 targetReceivedBytesPerSecond = _json["targetReceivedBytesPerSecond"]; |
| 2357 } | 2394 } |
| 2358 if (_json.containsKey("targetReceivedPacketsPerSec")) { | 2395 if (_json.containsKey("targetReceivedPacketsPerSecond")) { |
| 2359 targetReceivedPacketsPerSec = _json["targetReceivedPacketsPerSec"]; | 2396 targetReceivedPacketsPerSecond = _json["targetReceivedPacketsPerSecond"]; |
| 2360 } | 2397 } |
| 2361 if (_json.containsKey("targetSentBytesPerSec")) { | 2398 if (_json.containsKey("targetSentBytesPerSecond")) { |
| 2362 targetSentBytesPerSec = _json["targetSentBytesPerSec"]; | 2399 targetSentBytesPerSecond = _json["targetSentBytesPerSecond"]; |
| 2363 } | 2400 } |
| 2364 if (_json.containsKey("targetSentPacketsPerSec")) { | 2401 if (_json.containsKey("targetSentPacketsPerSecond")) { |
| 2365 targetSentPacketsPerSec = _json["targetSentPacketsPerSec"]; | 2402 targetSentPacketsPerSecond = _json["targetSentPacketsPerSecond"]; |
| 2366 } | 2403 } |
| 2367 } | 2404 } |
| 2368 | 2405 |
| 2369 core.Map toJson() { | 2406 core.Map toJson() { |
| 2370 var _json = new core.Map(); | 2407 var _json = new core.Map(); |
| 2371 if (targetReceivedBytesPerSec != null) { | 2408 if (targetReceivedBytesPerSecond != null) { |
| 2372 _json["targetReceivedBytesPerSec"] = targetReceivedBytesPerSec; | 2409 _json["targetReceivedBytesPerSecond"] = targetReceivedBytesPerSecond; |
| 2373 } | 2410 } |
| 2374 if (targetReceivedPacketsPerSec != null) { | 2411 if (targetReceivedPacketsPerSecond != null) { |
| 2375 _json["targetReceivedPacketsPerSec"] = targetReceivedPacketsPerSec; | 2412 _json["targetReceivedPacketsPerSecond"] = targetReceivedPacketsPerSecond; |
| 2376 } | 2413 } |
| 2377 if (targetSentBytesPerSec != null) { | 2414 if (targetSentBytesPerSecond != null) { |
| 2378 _json["targetSentBytesPerSec"] = targetSentBytesPerSec; | 2415 _json["targetSentBytesPerSecond"] = targetSentBytesPerSecond; |
| 2379 } | 2416 } |
| 2380 if (targetSentPacketsPerSec != null) { | 2417 if (targetSentPacketsPerSecond != null) { |
| 2381 _json["targetSentPacketsPerSec"] = targetSentPacketsPerSec; | 2418 _json["targetSentPacketsPerSecond"] = targetSentPacketsPerSecond; |
| 2382 } | 2419 } |
| 2383 return _json; | 2420 return _json; |
| 2384 } | 2421 } |
| 2385 } | 2422 } |
| 2386 | 2423 |
| 2387 /** | 2424 /** |
| 2388 * This resource represents a long-running operation that is the result of a | 2425 * This resource represents a long-running operation that is the result of a |
| 2389 * network API call. | 2426 * network API call. |
| 2390 */ | 2427 */ |
| 2391 class Operation { | 2428 class Operation { |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2463 } | 2500 } |
| 2464 if (response != null) { | 2501 if (response != null) { |
| 2465 _json["response"] = response; | 2502 _json["response"] = response; |
| 2466 } | 2503 } |
| 2467 return _json; | 2504 return _json; |
| 2468 } | 2505 } |
| 2469 } | 2506 } |
| 2470 | 2507 |
| 2471 /** Metadata for the given google.longrunning.Operation. */ | 2508 /** Metadata for the given google.longrunning.Operation. */ |
| 2472 class OperationMetadata { | 2509 class OperationMetadata { |
| 2473 /** | 2510 /** Timestamp that this operation completed. @OutputOnly */ |
| 2474 * Timestamp that this operation was completed. (Not present if the operation | |
| 2475 * is still in progress.) @OutputOnly | |
| 2476 */ | |
| 2477 core.String endTime; | 2511 core.String endTime; |
| 2478 /** Timestamp that this operation was received. @OutputOnly */ | 2512 /** Timestamp that this operation was created. @OutputOnly */ |
| 2479 core.String insertTime; | 2513 core.String insertTime; |
| 2480 /** | 2514 /** |
| 2481 * API method name that initiated the operation. Example: | 2515 * API method that initiated this operation. Example: |
| 2482 * "google.appengine.v1beta4.Version.CreateVersion". @OutputOnly | 2516 * `google.appengine.v1beta4.Version.CreateVersion`. @OutputOnly |
| 2483 */ | 2517 */ |
| 2484 core.String method; | 2518 core.String method; |
| 2485 /** | 2519 /** |
| 2486 * The type of the operation (deprecated, use method field instead). Example: | 2520 * Type of this operation. Deprecated, use method field instead. Example: |
| 2487 * "create_version". @OutputOnly | 2521 * "create_version". @OutputOnly |
| 2488 */ | 2522 */ |
| 2489 core.String operationType; | 2523 core.String operationType; |
| 2490 /** | 2524 /** |
| 2491 * Resource that this operation is acting on. Example: | 2525 * Name of the resource that this operation is acting on. Example: |
| 2492 * "apps/myapp/modules/default". @OutputOnly | 2526 * `apps/myapp/modules/default`. @OutputOnly |
| 2493 */ | 2527 */ |
| 2494 core.String target; | 2528 core.String target; |
| 2495 /** The user who requested this operation. @OutputOnly */ | 2529 /** User who requested this operation. @OutputOnly */ |
| 2496 core.String user; | 2530 core.String user; |
| 2497 | 2531 |
| 2498 OperationMetadata(); | 2532 OperationMetadata(); |
| 2499 | 2533 |
| 2500 OperationMetadata.fromJson(core.Map _json) { | 2534 OperationMetadata.fromJson(core.Map _json) { |
| 2501 if (_json.containsKey("endTime")) { | 2535 if (_json.containsKey("endTime")) { |
| 2502 endTime = _json["endTime"]; | 2536 endTime = _json["endTime"]; |
| 2503 } | 2537 } |
| 2504 if (_json.containsKey("insertTime")) { | 2538 if (_json.containsKey("insertTime")) { |
| 2505 insertTime = _json["insertTime"]; | 2539 insertTime = _json["insertTime"]; |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2537 } | 2571 } |
| 2538 if (user != null) { | 2572 if (user != null) { |
| 2539 _json["user"] = user; | 2573 _json["user"] = user; |
| 2540 } | 2574 } |
| 2541 return _json; | 2575 return _json; |
| 2542 } | 2576 } |
| 2543 } | 2577 } |
| 2544 | 2578 |
| 2545 /** Metadata for the given google.longrunning.Operation. */ | 2579 /** Metadata for the given google.longrunning.Operation. */ |
| 2546 class OperationMetadataV1 { | 2580 class OperationMetadataV1 { |
| 2547 /** | 2581 /** Time that this operation completed. @OutputOnly */ |
| 2548 * Timestamp that this operation was completed. (Not present if the operation | |
| 2549 * is still in progress.) @OutputOnly | |
| 2550 */ | |
| 2551 core.String endTime; | 2582 core.String endTime; |
| 2552 /** Timestamp that this operation was received. @OutputOnly */ | 2583 /** Time that this operation was created. @OutputOnly */ |
| 2553 core.String insertTime; | 2584 core.String insertTime; |
| 2554 /** | 2585 /** |
| 2555 * API method name that initiated the operation. Example: | 2586 * API method that initiated this operation. Example: |
| 2556 * "google.appengine.v1.Version.CreateVersion". @OutputOnly | 2587 * `google.appengine.v1.Versions.CreateVersion`. @OutputOnly |
| 2557 */ | 2588 */ |
| 2558 core.String method; | 2589 core.String method; |
| 2559 /** | 2590 /** |
| 2560 * Resource that this operation is acting on. Example: | 2591 * Name of the resource that this operation is acting on. Example: |
| 2561 * "apps/myapp/services/default". @OutputOnly | 2592 * `apps/myapp/services/default`. @OutputOnly |
| 2562 */ | 2593 */ |
| 2563 core.String target; | 2594 core.String target; |
| 2564 /** The user who requested this operation. @OutputOnly */ | 2595 /** User who requested this operation. @OutputOnly */ |
| 2565 core.String user; | 2596 core.String user; |
| 2566 | 2597 |
| 2567 OperationMetadataV1(); | 2598 OperationMetadataV1(); |
| 2568 | 2599 |
| 2569 OperationMetadataV1.fromJson(core.Map _json) { | 2600 OperationMetadataV1.fromJson(core.Map _json) { |
| 2570 if (_json.containsKey("endTime")) { | 2601 if (_json.containsKey("endTime")) { |
| 2571 endTime = _json["endTime"]; | 2602 endTime = _json["endTime"]; |
| 2572 } | 2603 } |
| 2573 if (_json.containsKey("insertTime")) { | 2604 if (_json.containsKey("insertTime")) { |
| 2574 insertTime = _json["insertTime"]; | 2605 insertTime = _json["insertTime"]; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 2600 } | 2631 } |
| 2601 if (user != null) { | 2632 if (user != null) { |
| 2602 _json["user"] = user; | 2633 _json["user"] = user; |
| 2603 } | 2634 } |
| 2604 return _json; | 2635 return _json; |
| 2605 } | 2636 } |
| 2606 } | 2637 } |
| 2607 | 2638 |
| 2608 /** Metadata for the given google.longrunning.Operation. */ | 2639 /** Metadata for the given google.longrunning.Operation. */ |
| 2609 class OperationMetadataV1Beta5 { | 2640 class OperationMetadataV1Beta5 { |
| 2610 /** | 2641 /** Timestamp that this operation completed. @OutputOnly */ |
| 2611 * Timestamp that this operation was completed. (Not present if the operation | |
| 2612 * is still in progress.) @OutputOnly | |
| 2613 */ | |
| 2614 core.String endTime; | 2642 core.String endTime; |
| 2615 /** Timestamp that this operation was received. @OutputOnly */ | 2643 /** Timestamp that this operation was created. @OutputOnly */ |
| 2616 core.String insertTime; | 2644 core.String insertTime; |
| 2617 /** | 2645 /** |
| 2618 * API method name that initiated the operation. Example: | 2646 * API method name that initiated this operation. Example: |
| 2619 * "google.appengine.v1beta5.Version.CreateVersion". @OutputOnly | 2647 * `google.appengine.v1beta5.Version.CreateVersion`. @OutputOnly |
| 2620 */ | 2648 */ |
| 2621 core.String method; | 2649 core.String method; |
| 2622 /** | 2650 /** |
| 2623 * Resource that this operation is acting on. Example: | 2651 * Name of the resource that this operation is acting on. Example: |
| 2624 * "apps/myapp/services/default". @OutputOnly | 2652 * `apps/myapp/services/default`. @OutputOnly |
| 2625 */ | 2653 */ |
| 2626 core.String target; | 2654 core.String target; |
| 2627 /** The user who requested this operation. @OutputOnly */ | 2655 /** User who requested this operation. @OutputOnly */ |
| 2628 core.String user; | 2656 core.String user; |
| 2629 | 2657 |
| 2630 OperationMetadataV1Beta5(); | 2658 OperationMetadataV1Beta5(); |
| 2631 | 2659 |
| 2632 OperationMetadataV1Beta5.fromJson(core.Map _json) { | 2660 OperationMetadataV1Beta5.fromJson(core.Map _json) { |
| 2633 if (_json.containsKey("endTime")) { | 2661 if (_json.containsKey("endTime")) { |
| 2634 endTime = _json["endTime"]; | 2662 endTime = _json["endTime"]; |
| 2635 } | 2663 } |
| 2636 if (_json.containsKey("insertTime")) { | 2664 if (_json.containsKey("insertTime")) { |
| 2637 insertTime = _json["insertTime"]; | 2665 insertTime = _json["insertTime"]; |
| (...skipping 23 matching lines...) Expand all Loading... |
| 2661 if (target != null) { | 2689 if (target != null) { |
| 2662 _json["target"] = target; | 2690 _json["target"] = target; |
| 2663 } | 2691 } |
| 2664 if (user != null) { | 2692 if (user != null) { |
| 2665 _json["user"] = user; | 2693 _json["user"] = user; |
| 2666 } | 2694 } |
| 2667 return _json; | 2695 return _json; |
| 2668 } | 2696 } |
| 2669 } | 2697 } |
| 2670 | 2698 |
| 2671 /** Target scaling by request utilization (for VM runtimes only). */ | 2699 /** Request message for 'Applications.RepairApplication'. */ |
| 2700 class RepairApplicationRequest { |
| 2701 |
| 2702 RepairApplicationRequest(); |
| 2703 |
| 2704 RepairApplicationRequest.fromJson(core.Map _json) { |
| 2705 } |
| 2706 |
| 2707 core.Map toJson() { |
| 2708 var _json = new core.Map(); |
| 2709 return _json; |
| 2710 } |
| 2711 } |
| 2712 |
| 2713 /** Target scaling by request utilization. Only applicable for VM runtimes. */ |
| 2672 class RequestUtilization { | 2714 class RequestUtilization { |
| 2673 /** Target number of concurrent requests. */ | 2715 /** Target number of concurrent requests. */ |
| 2674 core.int targetConcurrentRequests; | 2716 core.int targetConcurrentRequests; |
| 2675 /** Target requests per second. */ | 2717 /** Target requests per second. */ |
| 2676 core.int targetRequestCountPerSec; | 2718 core.int targetRequestCountPerSecond; |
| 2677 | 2719 |
| 2678 RequestUtilization(); | 2720 RequestUtilization(); |
| 2679 | 2721 |
| 2680 RequestUtilization.fromJson(core.Map _json) { | 2722 RequestUtilization.fromJson(core.Map _json) { |
| 2681 if (_json.containsKey("targetConcurrentRequests")) { | 2723 if (_json.containsKey("targetConcurrentRequests")) { |
| 2682 targetConcurrentRequests = _json["targetConcurrentRequests"]; | 2724 targetConcurrentRequests = _json["targetConcurrentRequests"]; |
| 2683 } | 2725 } |
| 2684 if (_json.containsKey("targetRequestCountPerSec")) { | 2726 if (_json.containsKey("targetRequestCountPerSecond")) { |
| 2685 targetRequestCountPerSec = _json["targetRequestCountPerSec"]; | 2727 targetRequestCountPerSecond = _json["targetRequestCountPerSecond"]; |
| 2686 } | 2728 } |
| 2687 } | 2729 } |
| 2688 | 2730 |
| 2689 core.Map toJson() { | 2731 core.Map toJson() { |
| 2690 var _json = new core.Map(); | 2732 var _json = new core.Map(); |
| 2691 if (targetConcurrentRequests != null) { | 2733 if (targetConcurrentRequests != null) { |
| 2692 _json["targetConcurrentRequests"] = targetConcurrentRequests; | 2734 _json["targetConcurrentRequests"] = targetConcurrentRequests; |
| 2693 } | 2735 } |
| 2694 if (targetRequestCountPerSec != null) { | 2736 if (targetRequestCountPerSecond != null) { |
| 2695 _json["targetRequestCountPerSec"] = targetRequestCountPerSec; | 2737 _json["targetRequestCountPerSecond"] = targetRequestCountPerSecond; |
| 2696 } | 2738 } |
| 2697 return _json; | 2739 return _json; |
| 2698 } | 2740 } |
| 2699 } | 2741 } |
| 2700 | 2742 |
| 2701 /** Used to specify how many machine resources an app version needs. */ | 2743 /** Machine resources for a version. */ |
| 2702 class Resources { | 2744 class Resources { |
| 2703 /** How many CPU cores an app version needs. */ | 2745 /** Number of CPU cores needed. */ |
| 2704 core.double cpu; | 2746 core.double cpu; |
| 2705 /** How much disk size, in GB, an app version needs. */ | 2747 /** Disk size (GB) needed. */ |
| 2706 core.double diskGb; | 2748 core.double diskGb; |
| 2707 /** How much memory, in GB, an app version needs. */ | 2749 /** Memory (GB) needed. */ |
| 2708 core.double memoryGb; | 2750 core.double memoryGb; |
| 2709 | 2751 |
| 2710 Resources(); | 2752 Resources(); |
| 2711 | 2753 |
| 2712 Resources.fromJson(core.Map _json) { | 2754 Resources.fromJson(core.Map _json) { |
| 2713 if (_json.containsKey("cpu")) { | 2755 if (_json.containsKey("cpu")) { |
| 2714 cpu = _json["cpu"]; | 2756 cpu = _json["cpu"]; |
| 2715 } | 2757 } |
| 2716 if (_json.containsKey("diskGb")) { | 2758 if (_json.containsKey("diskGb")) { |
| 2717 diskGb = _json["diskGb"]; | 2759 diskGb = _json["diskGb"]; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 2731 } | 2773 } |
| 2732 if (memoryGb != null) { | 2774 if (memoryGb != null) { |
| 2733 _json["memoryGb"] = memoryGb; | 2775 _json["memoryGb"] = memoryGb; |
| 2734 } | 2776 } |
| 2735 return _json; | 2777 return _json; |
| 2736 } | 2778 } |
| 2737 } | 2779 } |
| 2738 | 2780 |
| 2739 /** Executes a script to handle the request that matches the URL pattern. */ | 2781 /** Executes a script to handle the request that matches the URL pattern. */ |
| 2740 class ScriptHandler { | 2782 class ScriptHandler { |
| 2741 /** Specifies the path to the script from the application root directory. */ | 2783 /** Path to the script from the application root directory. */ |
| 2742 core.String scriptPath; | 2784 core.String scriptPath; |
| 2743 | 2785 |
| 2744 ScriptHandler(); | 2786 ScriptHandler(); |
| 2745 | 2787 |
| 2746 ScriptHandler.fromJson(core.Map _json) { | 2788 ScriptHandler.fromJson(core.Map _json) { |
| 2747 if (_json.containsKey("scriptPath")) { | 2789 if (_json.containsKey("scriptPath")) { |
| 2748 scriptPath = _json["scriptPath"]; | 2790 scriptPath = _json["scriptPath"]; |
| 2749 } | 2791 } |
| 2750 } | 2792 } |
| 2751 | 2793 |
| 2752 core.Map toJson() { | 2794 core.Map toJson() { |
| 2753 var _json = new core.Map(); | 2795 var _json = new core.Map(); |
| 2754 if (scriptPath != null) { | 2796 if (scriptPath != null) { |
| 2755 _json["scriptPath"] = scriptPath; | 2797 _json["scriptPath"] = scriptPath; |
| 2756 } | 2798 } |
| 2757 return _json; | 2799 return _json; |
| 2758 } | 2800 } |
| 2759 } | 2801 } |
| 2760 | 2802 |
| 2761 /** | 2803 /** |
| 2762 * A service is a logical component of an application that can share state and | 2804 * A Service resource is a logical component of an application that can share |
| 2763 * communicate in a secure fashion with other services. For example, an | 2805 * state and communicate in a secure fashion with other services. For example, |
| 2764 * application that handles customer requests might include separate services to | 2806 * an application that handles customer requests might include separate services |
| 2765 * handle other tasks such as API requests from mobile devices or backend data | 2807 * to handle tasks such as backend data analysis or API requests from mobile |
| 2766 * analysis. Each service has a collection of versions that define a specific | 2808 * devices. Each service has a collection of versions that define a specific set |
| 2767 * set of code used to implement the functionality of that service. | 2809 * of code used to implement the functionality of that service. |
| 2768 */ | 2810 */ |
| 2769 class Service { | 2811 class Service { |
| 2770 /** | 2812 /** |
| 2771 * The relative name/path of the service within the application. Example: | 2813 * Relative name of the service within the application. Example: `default`. |
| 2772 * "default" @OutputOnly | 2814 * @OutputOnly |
| 2773 */ | 2815 */ |
| 2774 core.String id; | 2816 core.String id; |
| 2775 /** | 2817 /** |
| 2776 * The full path to the Service resource in the API. Example: | 2818 * Full path to the Service resource in the API. Example: |
| 2777 * "apps/myapp/services/default" @OutputOnly | 2819 * `apps/myapp/services/default`. @OutputOnly |
| 2778 */ | 2820 */ |
| 2779 core.String name; | 2821 core.String name; |
| 2780 /** | 2822 /** |
| 2781 * A mapping that defines fractional HTTP traffic diversion to different | 2823 * Mapping that defines fractional HTTP traffic diversion to different |
| 2782 * versions within the service. | 2824 * versions within the service. |
| 2783 */ | 2825 */ |
| 2784 TrafficSplit split; | 2826 TrafficSplit split; |
| 2785 | 2827 |
| 2786 Service(); | 2828 Service(); |
| 2787 | 2829 |
| 2788 Service.fromJson(core.Map _json) { | 2830 Service.fromJson(core.Map _json) { |
| 2789 if (_json.containsKey("id")) { | 2831 if (_json.containsKey("id")) { |
| 2790 id = _json["id"]; | 2832 id = _json["id"]; |
| 2791 } | 2833 } |
| (...skipping 14 matching lines...) Expand all Loading... |
| 2806 _json["name"] = name; | 2848 _json["name"] = name; |
| 2807 } | 2849 } |
| 2808 if (split != null) { | 2850 if (split != null) { |
| 2809 _json["split"] = (split).toJson(); | 2851 _json["split"] = (split).toJson(); |
| 2810 } | 2852 } |
| 2811 return _json; | 2853 return _json; |
| 2812 } | 2854 } |
| 2813 } | 2855 } |
| 2814 | 2856 |
| 2815 /** | 2857 /** |
| 2816 * A reference to a particular snapshot of the source tree used to build and | |
| 2817 * deploy the application. | |
| 2818 */ | |
| 2819 class SourceReference { | |
| 2820 /** | |
| 2821 * Optional. A URI string identifying the repository. Example: | |
| 2822 * "https://source.developers.google.com/p/app-123/r/default" | |
| 2823 */ | |
| 2824 core.String repository; | |
| 2825 /** | |
| 2826 * The canonical (and persistent) identifier of the deployed revision, i.e. | |
| 2827 * any kind of aliases including tags or branch names are not allowed. Example | |
| 2828 * (git): "2198322f89e0bb2e25021667c2ed489d1fd34e6b" | |
| 2829 */ | |
| 2830 core.String revisionId; | |
| 2831 | |
| 2832 SourceReference(); | |
| 2833 | |
| 2834 SourceReference.fromJson(core.Map _json) { | |
| 2835 if (_json.containsKey("repository")) { | |
| 2836 repository = _json["repository"]; | |
| 2837 } | |
| 2838 if (_json.containsKey("revisionId")) { | |
| 2839 revisionId = _json["revisionId"]; | |
| 2840 } | |
| 2841 } | |
| 2842 | |
| 2843 core.Map toJson() { | |
| 2844 var _json = new core.Map(); | |
| 2845 if (repository != null) { | |
| 2846 _json["repository"] = repository; | |
| 2847 } | |
| 2848 if (revisionId != null) { | |
| 2849 _json["revisionId"] = revisionId; | |
| 2850 } | |
| 2851 return _json; | |
| 2852 } | |
| 2853 } | |
| 2854 | |
| 2855 /** | |
| 2856 * Files served directly to the user for a given URL, such as images, CSS | 2858 * Files served directly to the user for a given URL, such as images, CSS |
| 2857 * stylesheets, or JavaScript source files. Static file handlers describe which | 2859 * stylesheets, or JavaScript source files. Static file handlers describe which |
| 2858 * files in the application directory are static files, and which URLs serve | 2860 * files in the application directory are static files, and which URLs serve |
| 2859 * them. | 2861 * them. |
| 2860 */ | 2862 */ |
| 2861 class StaticFilesHandler { | 2863 class StaticFilesHandler { |
| 2862 /** | 2864 /** |
| 2863 * By default, files declared in static file handlers are uploaded as static | 2865 * Whether files should also be uploaded as code data. By default, files |
| 2864 * data and are only served to end users, they cannot be read by an | 2866 * declared in static file handlers are uploaded as static data and are only |
| 2865 * application. If this field is set to true, the files are also uploaded as | 2867 * served to end users; they cannot be read by the application. If enabled, |
| 2866 * code data so your application can read them. Both uploads are charged | 2868 * uploads are charged against both your code and static data storage resource |
| 2867 * against your code and static data storage resource quotas. | 2869 * quotas. |
| 2868 */ | 2870 */ |
| 2869 core.bool applicationReadable; | 2871 core.bool applicationReadable; |
| 2870 /** | 2872 /** |
| 2871 * The length of time a static file served by this handler ought to be cached | 2873 * Time a static file served by this handler should be cached by web proxies |
| 2872 * by web proxies and browsers. | 2874 * and browsers. |
| 2873 */ | 2875 */ |
| 2874 core.String expiration; | 2876 core.String expiration; |
| 2875 /** HTTP headers to use for all responses from these URLs. */ | 2877 /** HTTP headers to use for all responses from these URLs. */ |
| 2876 core.Map<core.String, core.String> httpHeaders; | 2878 core.Map<core.String, core.String> httpHeaders; |
| 2877 /** | 2879 /** |
| 2878 * If specified, all files served by this handler will be served using the | 2880 * MIME type used to serve all files served by this handler. Defaults to |
| 2879 * specified MIME type. If not specified, the MIME type for a file will be | 2881 * file-specific MIME types, which are derived from each file's filename |
| 2880 * derived from the file's filename extension. | 2882 * extension. |
| 2881 */ | 2883 */ |
| 2882 core.String mimeType; | 2884 core.String mimeType; |
| 2883 /** | 2885 /** |
| 2884 * The path to the static files matched by the URL pattern, from the | 2886 * Path to the static files matched by the URL pattern, from the application |
| 2885 * application root directory. The path can refer to text matched in groupings | 2887 * root directory. The path can refer to text matched in groupings in the URL |
| 2886 * in the URL pattern. | 2888 * pattern. |
| 2887 */ | 2889 */ |
| 2888 core.String path; | 2890 core.String path; |
| 2889 /** | 2891 /** |
| 2890 * If true, this UrlMap entry does not match the request unless the file | 2892 * Whether this handler should match the request if the file referenced by the |
| 2891 * referenced by the handler also exists. If no such file exists, processing | 2893 * handler does not exist. |
| 2892 * will continue with the next UrlMap that matches the requested URL. | |
| 2893 */ | 2894 */ |
| 2894 core.bool requireMatchingFile; | 2895 core.bool requireMatchingFile; |
| 2895 /** | 2896 /** |
| 2896 * A regular expression that matches the file paths for all files that will be | 2897 * Regular expression that matches the file paths for all files that should be |
| 2897 * referenced by this handler. | 2898 * referenced by this handler. |
| 2898 */ | 2899 */ |
| 2899 core.String uploadPathRegex; | 2900 core.String uploadPathRegex; |
| 2900 | 2901 |
| 2901 StaticFilesHandler(); | 2902 StaticFilesHandler(); |
| 2902 | 2903 |
| 2903 StaticFilesHandler.fromJson(core.Map _json) { | 2904 StaticFilesHandler.fromJson(core.Map _json) { |
| 2904 if (_json.containsKey("applicationReadable")) { | 2905 if (_json.containsKey("applicationReadable")) { |
| 2905 applicationReadable = _json["applicationReadable"]; | 2906 applicationReadable = _json["applicationReadable"]; |
| 2906 } | 2907 } |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3027 _json["details"] = details; | 3028 _json["details"] = details; |
| 3028 } | 3029 } |
| 3029 if (message != null) { | 3030 if (message != null) { |
| 3030 _json["message"] = message; | 3031 _json["message"] = message; |
| 3031 } | 3032 } |
| 3032 return _json; | 3033 return _json; |
| 3033 } | 3034 } |
| 3034 } | 3035 } |
| 3035 | 3036 |
| 3036 /** | 3037 /** |
| 3037 * Configuration for traffic splitting for versions within a single service. | 3038 * Traffic routing configuration for versions within a single service. Traffic |
| 3038 * Traffic splitting allows traffic directed to the service to be assigned to | 3039 * splits define how traffic directed to the service is assigned to versions. |
| 3039 * one of several versions in a fractional way, enabling experiments and | |
| 3040 * canarying new builds, for example. | |
| 3041 */ | 3040 */ |
| 3042 class TrafficSplit { | 3041 class TrafficSplit { |
| 3043 /** | 3042 /** |
| 3044 * Mapping from service version IDs within the service to fractional (0.000, | 3043 * Mapping from version IDs within the service to fractional (0.000, 1] |
| 3045 * 1] allocations of traffic for that version. Each version may only be | 3044 * allocations of traffic for that version. Each version can be specified only |
| 3046 * specified once, but some versions in the service may not have any traffic | 3045 * once, but some versions in the service may not have any traffic allocation. |
| 3047 * allocation. Services that have traffic allocated in this field may not be | 3046 * Services that have traffic allocated cannot be deleted until either the |
| 3048 * deleted until the service is deleted, or their traffic allocation is | 3047 * service is deleted or their traffic allocation is removed. Allocations must |
| 3049 * removed. Allocations must sum to 1. Supports precision up to two decimal | 3048 * sum to 1. Up to two decimal place precision is supported for IP-based |
| 3050 * places for IP-based splits and up to three decimal places for cookie-based | 3049 * splits and up to three decimal places is supported for cookie-based splits. |
| 3051 * splits. | |
| 3052 */ | 3050 */ |
| 3053 core.Map<core.String, core.double> allocations; | 3051 core.Map<core.String, core.double> allocations; |
| 3054 /** | 3052 /** |
| 3055 * Which mechanism should be used as a selector when choosing a version to | 3053 * Mechanism used to determine which version a request is sent to. The traffic |
| 3056 * send a request to. The traffic selection algorithm will be stable for | 3054 * selection algorithm will be stable for either type until allocations are |
| 3057 * either type until allocations are changed. | 3055 * changed. |
| 3058 * Possible string values are: | 3056 * Possible string values are: |
| 3059 * - "UNSPECIFIED" : A UNSPECIFIED. | 3057 * - "UNSPECIFIED" : A UNSPECIFIED. |
| 3060 * - "COOKIE" : A COOKIE. | 3058 * - "COOKIE" : A COOKIE. |
| 3061 * - "IP" : A IP. | 3059 * - "IP" : A IP. |
| 3062 */ | 3060 */ |
| 3063 core.String shardBy; | 3061 core.String shardBy; |
| 3064 | 3062 |
| 3065 TrafficSplit(); | 3063 TrafficSplit(); |
| 3066 | 3064 |
| 3067 TrafficSplit.fromJson(core.Map _json) { | 3065 TrafficSplit.fromJson(core.Map _json) { |
| (...skipping 13 matching lines...) Expand all Loading... |
| 3081 if (shardBy != null) { | 3079 if (shardBy != null) { |
| 3082 _json["shardBy"] = shardBy; | 3080 _json["shardBy"] = shardBy; |
| 3083 } | 3081 } |
| 3084 return _json; | 3082 return _json; |
| 3085 } | 3083 } |
| 3086 } | 3084 } |
| 3087 | 3085 |
| 3088 /** Rules to match an HTTP request and dispatch that request to a service. */ | 3086 /** Rules to match an HTTP request and dispatch that request to a service. */ |
| 3089 class UrlDispatchRule { | 3087 class UrlDispatchRule { |
| 3090 /** | 3088 /** |
| 3091 * The domain name to match on. Supports '*' (glob) wildcarding on the | 3089 * Domain name to match against. The wildcard "`*`" is supported if specified |
| 3092 * left-hand side of a '.'. If empty, all domains will be matched (the same as | 3090 * before a period: "`*.`". Defaults to matching all domains: "`*`". |
| 3093 * '*'). | |
| 3094 */ | 3091 */ |
| 3095 core.String domain; | 3092 core.String domain; |
| 3096 /** | 3093 /** |
| 3097 * The pathname within the host. This must start with a '/'. A single '*' | 3094 * Pathname within the host. Must start with a "`/`". A single "`*`" can be |
| 3098 * (glob) can be included at the end of the path. The sum of the lengths of | 3095 * included at the end of the path. The sum of the lengths of the domain and |
| 3099 * the domain and path may not exceed 100 characters. | 3096 * path may not exceed 100 characters. |
| 3100 */ | 3097 */ |
| 3101 core.String path; | 3098 core.String path; |
| 3102 /** | 3099 /** |
| 3103 * The resource id of a Service in this application that should service the | 3100 * Resource ID of a service in this application that should serve the matched |
| 3104 * matched request. The Service must already exist. Example: "default". | 3101 * request. The service must already exist. Example: `default`. |
| 3105 */ | 3102 */ |
| 3106 core.String service; | 3103 core.String service; |
| 3107 | 3104 |
| 3108 UrlDispatchRule(); | 3105 UrlDispatchRule(); |
| 3109 | 3106 |
| 3110 UrlDispatchRule.fromJson(core.Map _json) { | 3107 UrlDispatchRule.fromJson(core.Map _json) { |
| 3111 if (_json.containsKey("domain")) { | 3108 if (_json.containsKey("domain")) { |
| 3112 domain = _json["domain"]; | 3109 domain = _json["domain"]; |
| 3113 } | 3110 } |
| 3114 if (_json.containsKey("path")) { | 3111 if (_json.containsKey("path")) { |
| (...skipping 13 matching lines...) Expand all Loading... |
| 3128 _json["path"] = path; | 3125 _json["path"] = path; |
| 3129 } | 3126 } |
| 3130 if (service != null) { | 3127 if (service != null) { |
| 3131 _json["service"] = service; | 3128 _json["service"] = service; |
| 3132 } | 3129 } |
| 3133 return _json; | 3130 return _json; |
| 3134 } | 3131 } |
| 3135 } | 3132 } |
| 3136 | 3133 |
| 3137 /** | 3134 /** |
| 3138 * A URL pattern and description of how it should be handled. App Engine can | 3135 * URL pattern and description of how the URL should be handled. App Engine can |
| 3139 * handle URLs by executing application code, or by serving static files | 3136 * handle URLs by executing application code or by serving static files uploaded |
| 3140 * uploaded with the code, such as images, CSS or JavaScript. | 3137 * with the version, such as images, CSS, or JavaScript. |
| 3141 */ | 3138 */ |
| 3142 class UrlMap { | 3139 class UrlMap { |
| 3143 /** Use API Endpoints to handle requests. */ | 3140 /** Uses API Endpoints to handle requests. */ |
| 3144 ApiEndpointHandler apiEndpoint; | 3141 ApiEndpointHandler apiEndpoint; |
| 3145 /** | 3142 /** |
| 3146 * For users not logged in, how to handle access to resources with required | 3143 * Action to take when users access resources that require authentication. |
| 3147 * login. Defaults to "redirect". | 3144 * Defaults to `redirect`. |
| 3148 * Possible string values are: | 3145 * Possible string values are: |
| 3149 * - "AUTH_FAIL_ACTION_UNSPECIFIED" : A AUTH_FAIL_ACTION_UNSPECIFIED. | 3146 * - "AUTH_FAIL_ACTION_UNSPECIFIED" : A AUTH_FAIL_ACTION_UNSPECIFIED. |
| 3150 * - "AUTH_FAIL_ACTION_REDIRECT" : A AUTH_FAIL_ACTION_REDIRECT. | 3147 * - "AUTH_FAIL_ACTION_REDIRECT" : A AUTH_FAIL_ACTION_REDIRECT. |
| 3151 * - "AUTH_FAIL_ACTION_UNAUTHORIZED" : A AUTH_FAIL_ACTION_UNAUTHORIZED. | 3148 * - "AUTH_FAIL_ACTION_UNAUTHORIZED" : A AUTH_FAIL_ACTION_UNAUTHORIZED. |
| 3152 */ | 3149 */ |
| 3153 core.String authFailAction; | 3150 core.String authFailAction; |
| 3154 /** | 3151 /** |
| 3155 * What level of login is required to access this resource. | 3152 * Level of login required to access this resource. |
| 3156 * Possible string values are: | 3153 * Possible string values are: |
| 3157 * - "LOGIN_UNSPECIFIED" : A LOGIN_UNSPECIFIED. | 3154 * - "LOGIN_UNSPECIFIED" : A LOGIN_UNSPECIFIED. |
| 3158 * - "LOGIN_OPTIONAL" : A LOGIN_OPTIONAL. | 3155 * - "LOGIN_OPTIONAL" : A LOGIN_OPTIONAL. |
| 3159 * - "LOGIN_ADMIN" : A LOGIN_ADMIN. | 3156 * - "LOGIN_ADMIN" : A LOGIN_ADMIN. |
| 3160 * - "LOGIN_REQUIRED" : A LOGIN_REQUIRED. | 3157 * - "LOGIN_REQUIRED" : A LOGIN_REQUIRED. |
| 3161 */ | 3158 */ |
| 3162 core.String login; | 3159 core.String login; |
| 3163 /** | 3160 /** |
| 3164 * `30x` code to use when performing redirects for the `secure` field. A `302` | 3161 * `30x` code to use when performing redirects for the `secure` field. |
| 3165 * is used by default. | 3162 * Defaults to `302`. |
| 3166 * Possible string values are: | 3163 * Possible string values are: |
| 3167 * - "REDIRECT_HTTP_RESPONSE_CODE_UNSPECIFIED" : A | 3164 * - "REDIRECT_HTTP_RESPONSE_CODE_UNSPECIFIED" : A |
| 3168 * REDIRECT_HTTP_RESPONSE_CODE_UNSPECIFIED. | 3165 * REDIRECT_HTTP_RESPONSE_CODE_UNSPECIFIED. |
| 3169 * - "REDIRECT_HTTP_RESPONSE_CODE_301" : A REDIRECT_HTTP_RESPONSE_CODE_301. | 3166 * - "REDIRECT_HTTP_RESPONSE_CODE_301" : A REDIRECT_HTTP_RESPONSE_CODE_301. |
| 3170 * - "REDIRECT_HTTP_RESPONSE_CODE_302" : A REDIRECT_HTTP_RESPONSE_CODE_302. | 3167 * - "REDIRECT_HTTP_RESPONSE_CODE_302" : A REDIRECT_HTTP_RESPONSE_CODE_302. |
| 3171 * - "REDIRECT_HTTP_RESPONSE_CODE_303" : A REDIRECT_HTTP_RESPONSE_CODE_303. | 3168 * - "REDIRECT_HTTP_RESPONSE_CODE_303" : A REDIRECT_HTTP_RESPONSE_CODE_303. |
| 3172 * - "REDIRECT_HTTP_RESPONSE_CODE_307" : A REDIRECT_HTTP_RESPONSE_CODE_307. | 3169 * - "REDIRECT_HTTP_RESPONSE_CODE_307" : A REDIRECT_HTTP_RESPONSE_CODE_307. |
| 3173 */ | 3170 */ |
| 3174 core.String redirectHttpResponseCode; | 3171 core.String redirectHttpResponseCode; |
| 3175 /** Executes a script to handle the request that matches the URL pattern. */ | 3172 /** Executes a script to handle the request that matches this URL pattern. */ |
| 3176 ScriptHandler script; | 3173 ScriptHandler script; |
| 3177 /** | 3174 /** |
| 3178 * Configures whether security (HTTPS) should be enforced for this URL. | 3175 * Security (HTTPS) enforcement for this URL. |
| 3179 * Possible string values are: | 3176 * Possible string values are: |
| 3180 * - "SECURE_UNSPECIFIED" : A SECURE_UNSPECIFIED. | 3177 * - "SECURE_UNSPECIFIED" : A SECURE_UNSPECIFIED. |
| 3181 * - "SECURE_DEFAULT" : A SECURE_DEFAULT. | 3178 * - "SECURE_DEFAULT" : A SECURE_DEFAULT. |
| 3182 * - "SECURE_NEVER" : A SECURE_NEVER. | 3179 * - "SECURE_NEVER" : A SECURE_NEVER. |
| 3183 * - "SECURE_OPTIONAL" : A SECURE_OPTIONAL. | 3180 * - "SECURE_OPTIONAL" : A SECURE_OPTIONAL. |
| 3184 * - "SECURE_ALWAYS" : A SECURE_ALWAYS. | 3181 * - "SECURE_ALWAYS" : A SECURE_ALWAYS. |
| 3185 */ | 3182 */ |
| 3186 core.String securityLevel; | 3183 core.String securityLevel; |
| 3187 /** Returns the contents of a file, such as an image, as the response. */ | 3184 /** Returns the contents of a file, such as an image, as the response. */ |
| 3188 StaticFilesHandler staticFiles; | 3185 StaticFilesHandler staticFiles; |
| 3189 /** | 3186 /** |
| 3190 * A URL prefix. This value uses regular expression syntax (and so regexp | 3187 * URL prefix. Uses regular expression syntax, which means regexp special |
| 3191 * special characters must be escaped), but it should not contain groupings. | 3188 * characters must be escaped, but should not contain groupings. All URLs that |
| 3192 * All URLs that begin with this prefix are handled by this handler, using the | 3189 * begin with this prefix are handled by this handler, using the portion of |
| 3193 * portion of the URL after the prefix as part of the file path. This is | 3190 * the URL after the prefix as part of the file path. |
| 3194 * always required. | |
| 3195 */ | 3191 */ |
| 3196 core.String urlRegex; | 3192 core.String urlRegex; |
| 3197 | 3193 |
| 3198 UrlMap(); | 3194 UrlMap(); |
| 3199 | 3195 |
| 3200 UrlMap.fromJson(core.Map _json) { | 3196 UrlMap.fromJson(core.Map _json) { |
| 3201 if (_json.containsKey("apiEndpoint")) { | 3197 if (_json.containsKey("apiEndpoint")) { |
| 3202 apiEndpoint = new ApiEndpointHandler.fromJson(_json["apiEndpoint"]); | 3198 apiEndpoint = new ApiEndpointHandler.fromJson(_json["apiEndpoint"]); |
| 3203 } | 3199 } |
| 3204 if (_json.containsKey("authFailAction")) { | 3200 if (_json.containsKey("authFailAction")) { |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3248 _json["staticFiles"] = (staticFiles).toJson(); | 3244 _json["staticFiles"] = (staticFiles).toJson(); |
| 3249 } | 3245 } |
| 3250 if (urlRegex != null) { | 3246 if (urlRegex != null) { |
| 3251 _json["urlRegex"] = urlRegex; | 3247 _json["urlRegex"] = urlRegex; |
| 3252 } | 3248 } |
| 3253 return _json; | 3249 return _json; |
| 3254 } | 3250 } |
| 3255 } | 3251 } |
| 3256 | 3252 |
| 3257 /** | 3253 /** |
| 3258 * A Version is a specific set of source code and configuration files deployed | 3254 * A Version resource is a specific set of source code and configuration files |
| 3259 * to a service. | 3255 * that are deployed into a service. |
| 3260 */ | 3256 */ |
| 3261 class Version { | 3257 class Version { |
| 3262 /** | 3258 /** |
| 3263 * Serving configuration for Google Cloud Endpoints. Only returned in `GET` | 3259 * Serving configuration for [Google Cloud |
| 3264 * requests if `view=FULL` is set. May only be set on create requests; once | 3260 * Endpoints](https://cloud.google.com/appengine/docs/python/endpoints/). Only |
| 3265 * created, is immutable. | 3261 * returned in `GET` requests if `view=FULL` is set. |
| 3266 */ | 3262 */ |
| 3267 ApiConfigHandler apiConfig; | 3263 ApiConfigHandler apiConfig; |
| 3268 /** | 3264 /** |
| 3269 * Automatic scaling is the scaling policy that App Engine has used since its | 3265 * Automatic scaling is based on request rate, response latencies, and other |
| 3270 * inception. It is based on request rate, response latencies, and other | |
| 3271 * application metrics. | 3266 * application metrics. |
| 3272 */ | 3267 */ |
| 3273 AutomaticScaling automaticScaling; | 3268 AutomaticScaling automaticScaling; |
| 3274 /** | 3269 /** |
| 3275 * A service with basic scaling will create an instance when the application | 3270 * A service with basic scaling will create an instance when the application |
| 3276 * receives a request. The instance will be turned down when the app becomes | 3271 * receives a request. The instance will be turned down when the app becomes |
| 3277 * idle. Basic scaling is ideal for work that is intermittent or driven by | 3272 * idle. Basic scaling is ideal for work that is intermittent or driven by |
| 3278 * user activity. | 3273 * user activity. |
| 3279 */ | 3274 */ |
| 3280 BasicScaling basicScaling; | 3275 BasicScaling basicScaling; |
| 3281 /** Beta settings supplied to the application via metadata. */ | 3276 /** |
| 3277 * Metadata settings that are supplied to this version to enable beta runtime |
| 3278 * features. |
| 3279 */ |
| 3282 core.Map<core.String, core.String> betaSettings; | 3280 core.Map<core.String, core.String> betaSettings; |
| 3281 /** Time that this version was created. @OutputOnly */ |
| 3282 core.String createTime; |
| 3283 /** Email address of the user who created this version. @OutputOnly */ |
| 3284 core.String createdBy; |
| 3283 /** | 3285 /** |
| 3284 * Creation time of this version. This will be between the start and end times | 3286 * Duration that static files should be cached by web proxies and browsers. |
| 3285 * of the operation that creates this version. @OutputOnly | 3287 * Only applicable if the corresponding |
| 3286 */ | 3288 * [StaticFilesHandler](https://cloud.google.com/appengine/docs/admin-api/refe
rence/rest/v1/apps.services.versions#staticfileshandler) |
| 3287 core.String creationTime; | 3289 * does not specify its own expiration time. Only returned in `GET` requests |
| 3288 /** | 3290 * if `view=FULL` is set. |
| 3289 * The length of time a static file served by a static file handler ought to | |
| 3290 * be cached by web proxies and browsers, if the handler does not specify its | |
| 3291 * own expiration. Only returned in `GET` requests if `view=FULL` is set. May | |
| 3292 * only be set on create requests; once created, is immutable. | |
| 3293 */ | 3291 */ |
| 3294 core.String defaultExpiration; | 3292 core.String defaultExpiration; |
| 3295 /** The email address of the user who created this version. @OutputOnly */ | |
| 3296 core.String deployer; | |
| 3297 /** | 3293 /** |
| 3298 * Code and application artifacts that make up this version. Only returned in | 3294 * Code and application artifacts that make up this version. Only returned in |
| 3299 * `GET` requests if `view=FULL` is set. May only be set on create requests; | 3295 * `GET` requests if `view=FULL` is set. |
| 3300 * once created, is immutable. | |
| 3301 */ | 3296 */ |
| 3302 Deployment deployment; | 3297 Deployment deployment; |
| 3303 /** | 3298 /** |
| 3304 * Total size of version files hosted on App Engine disk in bytes. @OutputOnly | 3299 * Total size in bytes of all the files that are included in this version and |
| 3300 * curerntly hosted on the App Engine disk. @OutputOnly |
| 3305 */ | 3301 */ |
| 3306 core.String diskUsageBytes; | 3302 core.String diskUsageBytes; |
| 3307 /** | 3303 /** |
| 3308 * The App Engine execution environment to use for this version. Default: "1" | 3304 * App Engine execution environment for this version. Defaults to `standard`. |
| 3309 */ | 3305 */ |
| 3310 core.String env; | 3306 core.String env; |
| 3311 /** | 3307 /** |
| 3312 * Environment variables made available to the application. Only returned in | 3308 * Environment variables available to the application. Only returned in `GET` |
| 3313 * `GET` requests if `view=FULL` is set. May only be set on create requests; | 3309 * requests if `view=FULL` is set. |
| 3314 * once created, is immutable. | |
| 3315 */ | 3310 */ |
| 3316 core.Map<core.String, core.String> envVariables; | 3311 core.Map<core.String, core.String> envVariables; |
| 3317 /** | 3312 /** |
| 3318 * Custom static error pages instead of these generic error pages, (limit 10 | 3313 * Custom static error pages. Limited to 10KB per page. Only returned in `GET` |
| 3319 * KB/page) Only returned in `GET` requests if `view=FULL` is set. May only be | 3314 * requests if `view=FULL` is set. |
| 3320 * set on create requests; once created, is immutable. | |
| 3321 */ | 3315 */ |
| 3322 core.List<ErrorHandler> errorHandlers; | 3316 core.List<ErrorHandler> errorHandlers; |
| 3323 /** | 3317 /** |
| 3324 * An ordered list of URL Matching patterns that should be applied to incoming | 3318 * An ordered list of URL-matching patterns that should be applied to incoming |
| 3325 * requests. The first matching URL consumes the request, and subsequent | 3319 * requests. The first matching URL handles the request and other request |
| 3326 * handlers are not attempted. Only returned in `GET` requests if `view=FULL` | 3320 * handlers are not attempted. Only returned in `GET` requests if `view=FULL` |
| 3327 * is set. May only be set on create requests; once created, is immutable. | 3321 * is set. |
| 3328 */ | 3322 */ |
| 3329 core.List<UrlMap> handlers; | 3323 core.List<UrlMap> handlers; |
| 3330 /** | 3324 /** |
| 3331 * Configure health checking for the VM instances. Unhealthy VM instances will | 3325 * Configures health checking for VM instances. Unhealthy instances are |
| 3332 * be stopped and replaced with new instances. Only returned in `GET` requests | 3326 * stopped and replaced with new instances. Only applicable for VM runtimes. |
| 3333 * if `view=FULL` is set. May only be set on create requests; once created, is | 3327 * Only returned in `GET` requests if `view=FULL` is set. |
| 3334 * immutable. | |
| 3335 */ | 3328 */ |
| 3336 HealthCheck healthCheck; | 3329 HealthCheck healthCheck; |
| 3337 /** | 3330 /** |
| 3338 * The relative name/path of the Version within the service. Example: "v1". | 3331 * Relative name of the version within the service. Example: `v1`. Version |
| 3339 * Version specifiers can contain lowercase letters, digits, and hyphens. It | 3332 * names can contain only lowercase letters, numbers, or hyphens. Reserved |
| 3340 * cannot begin with the prefix `ah-` and the names `default` and `latest` are | 3333 * names: "default", "latest", and any name with the prefix "ah-". |
| 3341 * reserved and cannot be used. | |
| 3342 */ | 3334 */ |
| 3343 core.String id; | 3335 core.String id; |
| 3344 /** | 3336 /** |
| 3345 * Before an application can receive email or XMPP messages, the application | 3337 * Before an application can receive email or XMPP messages, the application |
| 3346 * must be configured to enable the service. | 3338 * must be configured to enable the service. |
| 3347 */ | 3339 */ |
| 3348 core.List<core.String> inboundServices; | 3340 core.List<core.String> inboundServices; |
| 3349 /** | 3341 /** |
| 3350 * The instance class to use to run this app. Valid values for | 3342 * Instance class that is used to run this version. Valid values are: * |
| 3351 * AutomaticScaling are `[F1, F2, F4, F4_1G]`. Valid values for ManualScaling | 3343 * AutomaticScaling: `F1`, `F2`, `F4`, `F4_1G` * ManualScaling or |
| 3352 * and BasicScaling are `[B1, B2, B4, B8, B4_1G]`. Default: "F1" for | 3344 * BasicScaling: `B1`, `B2`, `B4`, `B8`, `B4_1G` Defaults to `F1` for |
| 3353 * AutomaticScaling, "B1" for ManualScaling and BasicScaling | 3345 * AutomaticScaling and `B1` for ManualScaling or BasicScaling. |
| 3354 */ | 3346 */ |
| 3355 core.String instanceClass; | 3347 core.String instanceClass; |
| 3356 /** | 3348 /** |
| 3357 * Configuration for Python runtime third-party libraries required by the | 3349 * Configuration for third-party Python runtime libraries that are required by |
| 3358 * application. Only returned in `GET` requests if `view=FULL` is set. May | 3350 * the application. Only returned in `GET` requests if `view=FULL` is set. |
| 3359 * only be set on create requests; once created, is immutable. | |
| 3360 */ | 3351 */ |
| 3361 core.List<Library> libraries; | 3352 core.List<Library> libraries; |
| 3362 /** | 3353 /** |
| 3363 * A service with manual scaling runs continuously, allowing you to perform | 3354 * A service with manual scaling runs continuously, allowing you to perform |
| 3364 * complex initialization and rely on the state of its memory over time. | 3355 * complex initialization and rely on the state of its memory over time. |
| 3365 */ | 3356 */ |
| 3366 ManualScaling manualScaling; | 3357 ManualScaling manualScaling; |
| 3367 /** | 3358 /** |
| 3368 * The full path to the Version resource in the API. Example: | 3359 * Full path to the Version resource in the API. Example: |
| 3369 * "apps/myapp/services/default/versions/v1". @OutputOnly | 3360 * `apps/myapp/services/default/versions/v1`. @OutputOnly |
| 3370 */ | 3361 */ |
| 3371 core.String name; | 3362 core.String name; |
| 3372 /** Used to specify extra network settings (for VM runtimes only). */ | 3363 /** Extra network settings. Only applicable for VM runtimes. */ |
| 3373 Network network; | 3364 Network network; |
| 3374 /** | 3365 /** |
| 3375 * Go only. Files that match this pattern will not be built into the app. May | 3366 * Files that match this pattern will not be built into this version. Only |
| 3376 * only be set on create requests. | 3367 * applicable for Go runtimes. Only returned in `GET` requests if `view=FULL` |
| 3368 * is set. |
| 3377 */ | 3369 */ |
| 3378 core.String nobuildFilesRegex; | 3370 core.String nobuildFilesRegex; |
| 3379 /** | 3371 /** Machine resources for this version. Only applicable for VM runtimes. */ |
| 3380 * Used to specify how many machine resources an app version needs (for VM | |
| 3381 * runtimes only). | |
| 3382 */ | |
| 3383 Resources resources; | 3372 Resources resources; |
| 3384 /** The desired runtime. Values can include python27, java7, go, etc. */ | 3373 /** Desired runtime. Example: `python27`. */ |
| 3385 core.String runtime; | 3374 core.String runtime; |
| 3386 /** | 3375 /** |
| 3387 * The current serving status of this version. Only `SERVING` versions will | 3376 * Current serving status of this version. Only the versions with a `SERVING` |
| 3388 * have instances created or billed for. If this field is unset when a version | 3377 * status create instances and can be billed. `SERVING_STATUS_UNSPECIFIED` is |
| 3389 * is created, `SERVING` status will be assumed. It is an error to explicitly | 3378 * an invalid value. Defaults to `SERVING`. |
| 3390 * set this field to `SERVING_STATUS_UNSPECIFIED`. | |
| 3391 * Possible string values are: | 3379 * Possible string values are: |
| 3392 * - "SERVING_STATUS_UNSPECIFIED" : A SERVING_STATUS_UNSPECIFIED. | 3380 * - "SERVING_STATUS_UNSPECIFIED" : A SERVING_STATUS_UNSPECIFIED. |
| 3393 * - "SERVING" : A SERVING. | 3381 * - "SERVING" : A SERVING. |
| 3394 * - "STOPPED" : A STOPPED. | 3382 * - "STOPPED" : A STOPPED. |
| 3395 */ | 3383 */ |
| 3396 core.String servingStatus; | 3384 core.String servingStatus; |
| 3397 /** If true, multiple requests can be dispatched to the app at once. */ | 3385 /** Whether multiple requests can be dispatched to this version at once. */ |
| 3398 core.bool threadsafe; | 3386 core.bool threadsafe; |
| 3399 /** Whether to deploy this app in a VM container. */ | 3387 /** |
| 3388 * Serving URL for this version. Example: |
| 3389 * "https://myversion-dot-myservice-dot-myapp.appspot.com" @OutputOnly |
| 3390 */ |
| 3391 core.String versionUrl; |
| 3392 /** Whether to deploy this version in a container on a virtual machine. */ |
| 3400 core.bool vm; | 3393 core.bool vm; |
| 3401 | 3394 |
| 3402 Version(); | 3395 Version(); |
| 3403 | 3396 |
| 3404 Version.fromJson(core.Map _json) { | 3397 Version.fromJson(core.Map _json) { |
| 3405 if (_json.containsKey("apiConfig")) { | 3398 if (_json.containsKey("apiConfig")) { |
| 3406 apiConfig = new ApiConfigHandler.fromJson(_json["apiConfig"]); | 3399 apiConfig = new ApiConfigHandler.fromJson(_json["apiConfig"]); |
| 3407 } | 3400 } |
| 3408 if (_json.containsKey("automaticScaling")) { | 3401 if (_json.containsKey("automaticScaling")) { |
| 3409 automaticScaling = new AutomaticScaling.fromJson(_json["automaticScaling"]
); | 3402 automaticScaling = new AutomaticScaling.fromJson(_json["automaticScaling"]
); |
| 3410 } | 3403 } |
| 3411 if (_json.containsKey("basicScaling")) { | 3404 if (_json.containsKey("basicScaling")) { |
| 3412 basicScaling = new BasicScaling.fromJson(_json["basicScaling"]); | 3405 basicScaling = new BasicScaling.fromJson(_json["basicScaling"]); |
| 3413 } | 3406 } |
| 3414 if (_json.containsKey("betaSettings")) { | 3407 if (_json.containsKey("betaSettings")) { |
| 3415 betaSettings = _json["betaSettings"]; | 3408 betaSettings = _json["betaSettings"]; |
| 3416 } | 3409 } |
| 3417 if (_json.containsKey("creationTime")) { | 3410 if (_json.containsKey("createTime")) { |
| 3418 creationTime = _json["creationTime"]; | 3411 createTime = _json["createTime"]; |
| 3412 } |
| 3413 if (_json.containsKey("createdBy")) { |
| 3414 createdBy = _json["createdBy"]; |
| 3419 } | 3415 } |
| 3420 if (_json.containsKey("defaultExpiration")) { | 3416 if (_json.containsKey("defaultExpiration")) { |
| 3421 defaultExpiration = _json["defaultExpiration"]; | 3417 defaultExpiration = _json["defaultExpiration"]; |
| 3422 } | 3418 } |
| 3423 if (_json.containsKey("deployer")) { | |
| 3424 deployer = _json["deployer"]; | |
| 3425 } | |
| 3426 if (_json.containsKey("deployment")) { | 3419 if (_json.containsKey("deployment")) { |
| 3427 deployment = new Deployment.fromJson(_json["deployment"]); | 3420 deployment = new Deployment.fromJson(_json["deployment"]); |
| 3428 } | 3421 } |
| 3429 if (_json.containsKey("diskUsageBytes")) { | 3422 if (_json.containsKey("diskUsageBytes")) { |
| 3430 diskUsageBytes = _json["diskUsageBytes"]; | 3423 diskUsageBytes = _json["diskUsageBytes"]; |
| 3431 } | 3424 } |
| 3432 if (_json.containsKey("env")) { | 3425 if (_json.containsKey("env")) { |
| 3433 env = _json["env"]; | 3426 env = _json["env"]; |
| 3434 } | 3427 } |
| 3435 if (_json.containsKey("envVariables")) { | 3428 if (_json.containsKey("envVariables")) { |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3473 } | 3466 } |
| 3474 if (_json.containsKey("runtime")) { | 3467 if (_json.containsKey("runtime")) { |
| 3475 runtime = _json["runtime"]; | 3468 runtime = _json["runtime"]; |
| 3476 } | 3469 } |
| 3477 if (_json.containsKey("servingStatus")) { | 3470 if (_json.containsKey("servingStatus")) { |
| 3478 servingStatus = _json["servingStatus"]; | 3471 servingStatus = _json["servingStatus"]; |
| 3479 } | 3472 } |
| 3480 if (_json.containsKey("threadsafe")) { | 3473 if (_json.containsKey("threadsafe")) { |
| 3481 threadsafe = _json["threadsafe"]; | 3474 threadsafe = _json["threadsafe"]; |
| 3482 } | 3475 } |
| 3476 if (_json.containsKey("versionUrl")) { |
| 3477 versionUrl = _json["versionUrl"]; |
| 3478 } |
| 3483 if (_json.containsKey("vm")) { | 3479 if (_json.containsKey("vm")) { |
| 3484 vm = _json["vm"]; | 3480 vm = _json["vm"]; |
| 3485 } | 3481 } |
| 3486 } | 3482 } |
| 3487 | 3483 |
| 3488 core.Map toJson() { | 3484 core.Map toJson() { |
| 3489 var _json = new core.Map(); | 3485 var _json = new core.Map(); |
| 3490 if (apiConfig != null) { | 3486 if (apiConfig != null) { |
| 3491 _json["apiConfig"] = (apiConfig).toJson(); | 3487 _json["apiConfig"] = (apiConfig).toJson(); |
| 3492 } | 3488 } |
| 3493 if (automaticScaling != null) { | 3489 if (automaticScaling != null) { |
| 3494 _json["automaticScaling"] = (automaticScaling).toJson(); | 3490 _json["automaticScaling"] = (automaticScaling).toJson(); |
| 3495 } | 3491 } |
| 3496 if (basicScaling != null) { | 3492 if (basicScaling != null) { |
| 3497 _json["basicScaling"] = (basicScaling).toJson(); | 3493 _json["basicScaling"] = (basicScaling).toJson(); |
| 3498 } | 3494 } |
| 3499 if (betaSettings != null) { | 3495 if (betaSettings != null) { |
| 3500 _json["betaSettings"] = betaSettings; | 3496 _json["betaSettings"] = betaSettings; |
| 3501 } | 3497 } |
| 3502 if (creationTime != null) { | 3498 if (createTime != null) { |
| 3503 _json["creationTime"] = creationTime; | 3499 _json["createTime"] = createTime; |
| 3500 } |
| 3501 if (createdBy != null) { |
| 3502 _json["createdBy"] = createdBy; |
| 3504 } | 3503 } |
| 3505 if (defaultExpiration != null) { | 3504 if (defaultExpiration != null) { |
| 3506 _json["defaultExpiration"] = defaultExpiration; | 3505 _json["defaultExpiration"] = defaultExpiration; |
| 3507 } | 3506 } |
| 3508 if (deployer != null) { | |
| 3509 _json["deployer"] = deployer; | |
| 3510 } | |
| 3511 if (deployment != null) { | 3507 if (deployment != null) { |
| 3512 _json["deployment"] = (deployment).toJson(); | 3508 _json["deployment"] = (deployment).toJson(); |
| 3513 } | 3509 } |
| 3514 if (diskUsageBytes != null) { | 3510 if (diskUsageBytes != null) { |
| 3515 _json["diskUsageBytes"] = diskUsageBytes; | 3511 _json["diskUsageBytes"] = diskUsageBytes; |
| 3516 } | 3512 } |
| 3517 if (env != null) { | 3513 if (env != null) { |
| 3518 _json["env"] = env; | 3514 _json["env"] = env; |
| 3519 } | 3515 } |
| 3520 if (envVariables != null) { | 3516 if (envVariables != null) { |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3558 } | 3554 } |
| 3559 if (runtime != null) { | 3555 if (runtime != null) { |
| 3560 _json["runtime"] = runtime; | 3556 _json["runtime"] = runtime; |
| 3561 } | 3557 } |
| 3562 if (servingStatus != null) { | 3558 if (servingStatus != null) { |
| 3563 _json["servingStatus"] = servingStatus; | 3559 _json["servingStatus"] = servingStatus; |
| 3564 } | 3560 } |
| 3565 if (threadsafe != null) { | 3561 if (threadsafe != null) { |
| 3566 _json["threadsafe"] = threadsafe; | 3562 _json["threadsafe"] = threadsafe; |
| 3567 } | 3563 } |
| 3564 if (versionUrl != null) { |
| 3565 _json["versionUrl"] = versionUrl; |
| 3566 } |
| 3568 if (vm != null) { | 3567 if (vm != null) { |
| 3569 _json["vm"] = vm; | 3568 _json["vm"] = vm; |
| 3570 } | 3569 } |
| 3571 return _json; | 3570 return _json; |
| 3572 } | 3571 } |
| 3573 } | 3572 } |
| 3573 |
| 3574 class ZipInfo { |
| 3575 /** |
| 3576 * An estimate of the number of files in a zip for a zip deployment. If set, |
| 3577 * must be greater than or equal to the actual number of files. Used for |
| 3578 * optimizing performance; if not provided, deployment may be slow. |
| 3579 */ |
| 3580 core.int filesCount; |
| 3581 /** |
| 3582 * URL of the zip file to deploy from. Must be a URL to a resource in Google |
| 3583 * Cloud Storage in the form 'http(s)://storage.googleapis.com/\/\'. |
| 3584 */ |
| 3585 core.String sourceUrl; |
| 3586 |
| 3587 ZipInfo(); |
| 3588 |
| 3589 ZipInfo.fromJson(core.Map _json) { |
| 3590 if (_json.containsKey("filesCount")) { |
| 3591 filesCount = _json["filesCount"]; |
| 3592 } |
| 3593 if (_json.containsKey("sourceUrl")) { |
| 3594 sourceUrl = _json["sourceUrl"]; |
| 3595 } |
| 3596 } |
| 3597 |
| 3598 core.Map toJson() { |
| 3599 var _json = new core.Map(); |
| 3600 if (filesCount != null) { |
| 3601 _json["filesCount"] = filesCount; |
| 3602 } |
| 3603 if (sourceUrl != null) { |
| 3604 _json["sourceUrl"] = sourceUrl; |
| 3605 } |
| 3606 return _json; |
| 3607 } |
| 3608 } |
| OLD | NEW |