| 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.appengine.v1; | 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' |
| 13 ApiRequestError, DetailedApiRequestError; | 13 show ApiRequestError, DetailedApiRequestError; |
| 14 | 14 |
| 15 const core.String USER_AGENT = 'dart-api-client appengine/v1'; | 15 const core.String USER_AGENT = 'dart-api-client appengine/v1'; |
| 16 | 16 |
| 17 /** | 17 /// The App Engine Admin API enables developers to provision and manage their |
| 18 * The App Engine Admin API enables developers to provision and manage their App | 18 /// App Engine applications. |
| 19 * Engine applications. | |
| 20 */ | |
| 21 class AppengineApi { | 19 class AppengineApi { |
| 22 /** View and manage your applications deployed on Google App Engine */ | 20 /// View and manage your applications deployed on Google App Engine |
| 23 static const AppengineAdminScope = "https://www.googleapis.com/auth/appengine.
admin"; | 21 static const AppengineAdminScope = |
| 22 "https://www.googleapis.com/auth/appengine.admin"; |
| 24 | 23 |
| 25 /** View and manage your data across Google Cloud Platform services */ | 24 /// View and manage your data across Google Cloud Platform services |
| 26 static const CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platf
orm"; | 25 static const CloudPlatformScope = |
| 26 "https://www.googleapis.com/auth/cloud-platform"; |
| 27 | 27 |
| 28 /** View your data across Google Cloud Platform services */ | 28 /// View your data across Google Cloud Platform services |
| 29 static const CloudPlatformReadOnlyScope = "https://www.googleapis.com/auth/clo
ud-platform.read-only"; | 29 static const CloudPlatformReadOnlyScope = |
| 30 | 30 "https://www.googleapis.com/auth/cloud-platform.read-only"; |
| 31 | 31 |
| 32 final commons.ApiRequester _requester; | 32 final commons.ApiRequester _requester; |
| 33 | 33 |
| 34 AppsResourceApi get apps => new AppsResourceApi(_requester); | 34 AppsResourceApi get apps => new AppsResourceApi(_requester); |
| 35 | 35 |
| 36 AppengineApi(http.Client client, {core.String rootUrl: "https://appengine.goog
leapis.com/", core.String servicePath: ""}) : | 36 AppengineApi(http.Client client, |
| 37 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A
GENT); | 37 {core.String rootUrl: "https://appengine.googleapis.com/", |
| 38 core.String servicePath: ""}) |
| 39 : _requester = |
| 40 new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT); |
| 38 } | 41 } |
| 39 | 42 |
| 40 | |
| 41 class AppsResourceApi { | 43 class AppsResourceApi { |
| 42 final commons.ApiRequester _requester; | 44 final commons.ApiRequester _requester; |
| 43 | 45 |
| 44 AppsLocationsResourceApi get locations => new AppsLocationsResourceApi(_reques
ter); | 46 AppsAuthorizedCertificatesResourceApi get authorizedCertificates => |
| 45 AppsOperationsResourceApi get operations => new AppsOperationsResourceApi(_req
uester); | 47 new AppsAuthorizedCertificatesResourceApi(_requester); |
| 46 AppsServicesResourceApi get services => new AppsServicesResourceApi(_requester
); | 48 AppsAuthorizedDomainsResourceApi get authorizedDomains => |
| 49 new AppsAuthorizedDomainsResourceApi(_requester); |
| 50 AppsDomainMappingsResourceApi get domainMappings => |
| 51 new AppsDomainMappingsResourceApi(_requester); |
| 52 AppsLocationsResourceApi get locations => |
| 53 new AppsLocationsResourceApi(_requester); |
| 54 AppsOperationsResourceApi get operations => |
| 55 new AppsOperationsResourceApi(_requester); |
| 56 AppsServicesResourceApi get services => |
| 57 new AppsServicesResourceApi(_requester); |
| 47 | 58 |
| 48 AppsResourceApi(commons.ApiRequester client) : | 59 AppsResourceApi(commons.ApiRequester client) : _requester = client; |
| 49 _requester = client; | |
| 50 | 60 |
| 51 /** | 61 /// Creates an App Engine application for a Google Cloud Platform project. |
| 52 * Creates an App Engine application for a Google Cloud Platform project. | 62 /// Required fields: |
| 53 * Required fields: | 63 /// id - The ID of the target Cloud Platform project. |
| 54 * id - The ID of the target Cloud Platform project. | 64 /// location - The region (https://cloud.google.com/appengine/docs/locations) |
| 55 * location - The region (https://cloud.google.com/appengine/docs/locations) | 65 /// where you want the App Engine application located.For more information |
| 56 * where you want the App Engine application located.For more information | 66 /// about App Engine applications, see Managing Projects, Applications, and |
| 57 * about App Engine applications, see Managing Projects, Applications, and | 67 /// Billing (https://cloud.google.com/appengine/docs/python/console/). |
| 58 * Billing (https://cloud.google.com/appengine/docs/python/console/). | 68 /// |
| 59 * | 69 /// [request] - The metadata request object. |
| 60 * [request] - The metadata request object. | 70 /// |
| 61 * | 71 /// Request parameters: |
| 62 * Request parameters: | 72 /// |
| 63 * | 73 /// Completes with a [Operation]. |
| 64 * Completes with a [Operation]. | 74 /// |
| 65 * | 75 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 66 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 76 /// an error. |
| 67 * error. | 77 /// |
| 68 * | 78 /// If the used [http.Client] completes with an error when making a REST |
| 69 * If the used [http.Client] completes with an error when making a REST call, | 79 /// call, this method will complete with the same error. |
| 70 * this method will complete with the same error. | |
| 71 */ | |
| 72 async.Future<Operation> create(Application request) { | 80 async.Future<Operation> create(Application request) { |
| 73 var _url = null; | 81 var _url = null; |
| 74 var _queryParams = new core.Map(); | 82 var _queryParams = new core.Map(); |
| 75 var _uploadMedia = null; | 83 var _uploadMedia = null; |
| 76 var _uploadOptions = null; | 84 var _uploadOptions = null; |
| 77 var _downloadOptions = commons.DownloadOptions.Metadata; | 85 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 78 var _body = null; | 86 var _body = null; |
| 79 | 87 |
| 80 if (request != null) { | 88 if (request != null) { |
| 81 _body = convert.JSON.encode((request).toJson()); | 89 _body = convert.JSON.encode((request).toJson()); |
| 82 } | 90 } |
| 83 | 91 |
| 84 _url = 'v1/apps'; | 92 _url = 'v1/apps'; |
| 85 | 93 |
| 86 var _response = _requester.request(_url, | 94 var _response = _requester.request(_url, "POST", |
| 87 "POST", | 95 body: _body, |
| 88 body: _body, | 96 queryParams: _queryParams, |
| 89 queryParams: _queryParams, | 97 uploadOptions: _uploadOptions, |
| 90 uploadOptions: _uploadOptions, | 98 uploadMedia: _uploadMedia, |
| 91 uploadMedia: _uploadMedia, | 99 downloadOptions: _downloadOptions); |
| 92 downloadOptions: _downloadOptions); | |
| 93 return _response.then((data) => new Operation.fromJson(data)); | 100 return _response.then((data) => new Operation.fromJson(data)); |
| 94 } | 101 } |
| 95 | 102 |
| 96 /** | 103 /// Gets information about an application. |
| 97 * Gets information about an application. | 104 /// |
| 98 * | 105 /// Request parameters: |
| 99 * Request parameters: | 106 /// |
| 100 * | 107 /// [appsId] - Part of `name`. Name of the Application resource to get. |
| 101 * [appsId] - Part of `name`. Name of the Application resource to get. | 108 /// Example: apps/myapp. |
| 102 * Example: apps/myapp. | 109 /// |
| 103 * | 110 /// Completes with a [Application]. |
| 104 * Completes with a [Application]. | 111 /// |
| 105 * | 112 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 106 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 113 /// an error. |
| 107 * error. | 114 /// |
| 108 * | 115 /// If the used [http.Client] completes with an error when making a REST |
| 109 * If the used [http.Client] completes with an error when making a REST call, | 116 /// call, this method will complete with the same error. |
| 110 * this method will complete with the same error. | |
| 111 */ | |
| 112 async.Future<Application> get(core.String appsId) { | 117 async.Future<Application> get(core.String appsId) { |
| 113 var _url = null; | 118 var _url = null; |
| 114 var _queryParams = new core.Map(); | 119 var _queryParams = new core.Map(); |
| 115 var _uploadMedia = null; | 120 var _uploadMedia = null; |
| 116 var _uploadOptions = null; | 121 var _uploadOptions = null; |
| 117 var _downloadOptions = commons.DownloadOptions.Metadata; | 122 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 118 var _body = null; | 123 var _body = null; |
| 119 | 124 |
| 120 if (appsId == null) { | 125 if (appsId == null) { |
| 121 throw new core.ArgumentError("Parameter appsId is required."); | 126 throw new core.ArgumentError("Parameter appsId is required."); |
| 122 } | 127 } |
| 123 | 128 |
| 124 _url = 'v1/apps/' + commons.Escaper.ecapeVariable('$appsId'); | 129 _url = 'v1/apps/' + commons.Escaper.ecapeVariable('$appsId'); |
| 125 | 130 |
| 126 var _response = _requester.request(_url, | 131 var _response = _requester.request(_url, "GET", |
| 127 "GET", | 132 body: _body, |
| 128 body: _body, | 133 queryParams: _queryParams, |
| 129 queryParams: _queryParams, | 134 uploadOptions: _uploadOptions, |
| 130 uploadOptions: _uploadOptions, | 135 uploadMedia: _uploadMedia, |
| 131 uploadMedia: _uploadMedia, | 136 downloadOptions: _downloadOptions); |
| 132 downloadOptions: _downloadOptions); | |
| 133 return _response.then((data) => new Application.fromJson(data)); | 137 return _response.then((data) => new Application.fromJson(data)); |
| 134 } | 138 } |
| 135 | 139 |
| 136 /** | 140 /// Updates the specified Application resource. You can update the following |
| 137 * Updates the specified Application resource. You can update the following | 141 /// fields: |
| 138 * fields: | 142 /// auth_domain - Google authentication domain for controlling user access to |
| 139 * auth_domain - Google authentication domain for controlling user access to | 143 /// the application. |
| 140 * the application. | 144 /// default_cookie_expiration - Cookie expiration policy for the application. |
| 141 * default_cookie_expiration - Cookie expiration policy for the application. | 145 /// |
| 142 * | 146 /// [request] - The metadata request object. |
| 143 * [request] - The metadata request object. | 147 /// |
| 144 * | 148 /// Request parameters: |
| 145 * Request parameters: | 149 /// |
| 146 * | 150 /// [appsId] - Part of `name`. Name of the Application resource to update. |
| 147 * [appsId] - Part of `name`. Name of the Application resource to update. | 151 /// Example: apps/myapp. |
| 148 * Example: apps/myapp. | 152 /// |
| 149 * | 153 /// [updateMask] - Standard field mask for the set of fields to be updated. |
| 150 * [updateMask] - Standard field mask for the set of fields to be updated. | 154 /// |
| 151 * | 155 /// Completes with a [Operation]. |
| 152 * Completes with a [Operation]. | 156 /// |
| 153 * | 157 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 154 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 158 /// an error. |
| 155 * error. | 159 /// |
| 156 * | 160 /// If the used [http.Client] completes with an error when making a REST |
| 157 * If the used [http.Client] completes with an error when making a REST call, | 161 /// call, this method will complete with the same error. |
| 158 * this method will complete with the same error. | 162 async.Future<Operation> patch(Application request, core.String appsId, |
| 159 */ | 163 {core.String updateMask}) { |
| 160 async.Future<Operation> patch(Application request, core.String appsId, {core.S
tring updateMask}) { | |
| 161 var _url = null; | 164 var _url = null; |
| 162 var _queryParams = new core.Map(); | 165 var _queryParams = new core.Map(); |
| 163 var _uploadMedia = null; | 166 var _uploadMedia = null; |
| 164 var _uploadOptions = null; | 167 var _uploadOptions = null; |
| 165 var _downloadOptions = commons.DownloadOptions.Metadata; | 168 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 166 var _body = null; | 169 var _body = null; |
| 167 | 170 |
| 168 if (request != null) { | 171 if (request != null) { |
| 169 _body = convert.JSON.encode((request).toJson()); | 172 _body = convert.JSON.encode((request).toJson()); |
| 170 } | 173 } |
| 171 if (appsId == null) { | 174 if (appsId == null) { |
| 172 throw new core.ArgumentError("Parameter appsId is required."); | 175 throw new core.ArgumentError("Parameter appsId is required."); |
| 173 } | 176 } |
| 174 if (updateMask != null) { | 177 if (updateMask != null) { |
| 175 _queryParams["updateMask"] = [updateMask]; | 178 _queryParams["updateMask"] = [updateMask]; |
| 176 } | 179 } |
| 177 | 180 |
| 178 _url = 'v1/apps/' + commons.Escaper.ecapeVariable('$appsId'); | 181 _url = 'v1/apps/' + commons.Escaper.ecapeVariable('$appsId'); |
| 179 | 182 |
| 180 var _response = _requester.request(_url, | 183 var _response = _requester.request(_url, "PATCH", |
| 181 "PATCH", | 184 body: _body, |
| 182 body: _body, | 185 queryParams: _queryParams, |
| 183 queryParams: _queryParams, | 186 uploadOptions: _uploadOptions, |
| 184 uploadOptions: _uploadOptions, | 187 uploadMedia: _uploadMedia, |
| 185 uploadMedia: _uploadMedia, | 188 downloadOptions: _downloadOptions); |
| 186 downloadOptions: _downloadOptions); | |
| 187 return _response.then((data) => new Operation.fromJson(data)); | 189 return _response.then((data) => new Operation.fromJson(data)); |
| 188 } | 190 } |
| 189 | 191 |
| 190 /** | 192 /// Recreates the required App Engine features for the specified App Engine |
| 191 * Recreates the required App Engine features for the specified App Engine | 193 /// application, for example a Cloud Storage bucket or App Engine service |
| 192 * application, for example a Cloud Storage bucket or App Engine service | 194 /// account. Use this method if you receive an error message about a missing |
| 193 * account. Use this method if you receive an error message about a missing | 195 /// feature, for example, Error retrieving the App Engine service account. |
| 194 * feature, for example, Error retrieving the App Engine service account. | 196 /// |
| 195 * | 197 /// [request] - The metadata request object. |
| 196 * [request] - The metadata request object. | 198 /// |
| 197 * | 199 /// Request parameters: |
| 198 * Request parameters: | 200 /// |
| 199 * | 201 /// [appsId] - Part of `name`. Name of the application to repair. Example: |
| 200 * [appsId] - Part of `name`. Name of the application to repair. Example: | 202 /// apps/myapp |
| 201 * apps/myapp | 203 /// |
| 202 * | 204 /// Completes with a [Operation]. |
| 203 * Completes with a [Operation]. | 205 /// |
| 204 * | 206 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 205 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 207 /// an error. |
| 206 * error. | 208 /// |
| 207 * | 209 /// If the used [http.Client] completes with an error when making a REST |
| 208 * If the used [http.Client] completes with an error when making a REST call, | 210 /// call, this method will complete with the same error. |
| 209 * this method will complete with the same error. | 211 async.Future<Operation> repair( |
| 210 */ | 212 RepairApplicationRequest request, core.String appsId) { |
| 211 async.Future<Operation> repair(RepairApplicationRequest request, core.String a
ppsId) { | |
| 212 var _url = null; | 213 var _url = null; |
| 213 var _queryParams = new core.Map(); | 214 var _queryParams = new core.Map(); |
| 214 var _uploadMedia = null; | 215 var _uploadMedia = null; |
| 215 var _uploadOptions = null; | 216 var _uploadOptions = null; |
| 216 var _downloadOptions = commons.DownloadOptions.Metadata; | 217 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 217 var _body = null; | 218 var _body = null; |
| 218 | 219 |
| 219 if (request != null) { | 220 if (request != null) { |
| 220 _body = convert.JSON.encode((request).toJson()); | 221 _body = convert.JSON.encode((request).toJson()); |
| 221 } | 222 } |
| 222 if (appsId == null) { | 223 if (appsId == null) { |
| 223 throw new core.ArgumentError("Parameter appsId is required."); | 224 throw new core.ArgumentError("Parameter appsId is required."); |
| 224 } | 225 } |
| 225 | 226 |
| 226 _url = 'v1/apps/' + commons.Escaper.ecapeVariable('$appsId') + ':repair'; | 227 _url = 'v1/apps/' + commons.Escaper.ecapeVariable('$appsId') + ':repair'; |
| 227 | 228 |
| 228 var _response = _requester.request(_url, | 229 var _response = _requester.request(_url, "POST", |
| 229 "POST", | 230 body: _body, |
| 230 body: _body, | 231 queryParams: _queryParams, |
| 231 queryParams: _queryParams, | 232 uploadOptions: _uploadOptions, |
| 232 uploadOptions: _uploadOptions, | 233 uploadMedia: _uploadMedia, |
| 233 uploadMedia: _uploadMedia, | 234 downloadOptions: _downloadOptions); |
| 234 downloadOptions: _downloadOptions); | |
| 235 return _response.then((data) => new Operation.fromJson(data)); | 235 return _response.then((data) => new Operation.fromJson(data)); |
| 236 } | 236 } |
| 237 | |
| 238 } | 237 } |
| 239 | 238 |
| 239 class AppsAuthorizedCertificatesResourceApi { |
| 240 final commons.ApiRequester _requester; |
| 241 |
| 242 AppsAuthorizedCertificatesResourceApi(commons.ApiRequester client) |
| 243 : _requester = client; |
| 244 |
| 245 /// Uploads the specified SSL certificate. |
| 246 /// |
| 247 /// [request] - The metadata request object. |
| 248 /// |
| 249 /// Request parameters: |
| 250 /// |
| 251 /// [appsId] - Part of `parent`. Name of the parent Application resource. |
| 252 /// Example: apps/myapp. |
| 253 /// |
| 254 /// Completes with a [AuthorizedCertificate]. |
| 255 /// |
| 256 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 257 /// an error. |
| 258 /// |
| 259 /// If the used [http.Client] completes with an error when making a REST |
| 260 /// call, this method will complete with the same error. |
| 261 async.Future<AuthorizedCertificate> create( |
| 262 AuthorizedCertificate request, core.String appsId) { |
| 263 var _url = null; |
| 264 var _queryParams = new core.Map(); |
| 265 var _uploadMedia = null; |
| 266 var _uploadOptions = null; |
| 267 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 268 var _body = null; |
| 269 |
| 270 if (request != null) { |
| 271 _body = convert.JSON.encode((request).toJson()); |
| 272 } |
| 273 if (appsId == null) { |
| 274 throw new core.ArgumentError("Parameter appsId is required."); |
| 275 } |
| 276 |
| 277 _url = 'v1/apps/' + |
| 278 commons.Escaper.ecapeVariable('$appsId') + |
| 279 '/authorizedCertificates'; |
| 280 |
| 281 var _response = _requester.request(_url, "POST", |
| 282 body: _body, |
| 283 queryParams: _queryParams, |
| 284 uploadOptions: _uploadOptions, |
| 285 uploadMedia: _uploadMedia, |
| 286 downloadOptions: _downloadOptions); |
| 287 return _response.then((data) => new AuthorizedCertificate.fromJson(data)); |
| 288 } |
| 289 |
| 290 /// Deletes the specified SSL certificate. |
| 291 /// |
| 292 /// Request parameters: |
| 293 /// |
| 294 /// [appsId] - Part of `name`. Name of the resource to delete. Example: |
| 295 /// apps/myapp/authorizedCertificates/12345. |
| 296 /// |
| 297 /// [authorizedCertificatesId] - Part of `name`. See documentation of |
| 298 /// `appsId`. |
| 299 /// |
| 300 /// Completes with a [Empty]. |
| 301 /// |
| 302 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 303 /// an error. |
| 304 /// |
| 305 /// If the used [http.Client] completes with an error when making a REST |
| 306 /// call, this method will complete with the same error. |
| 307 async.Future<Empty> delete( |
| 308 core.String appsId, core.String authorizedCertificatesId) { |
| 309 var _url = null; |
| 310 var _queryParams = new core.Map(); |
| 311 var _uploadMedia = null; |
| 312 var _uploadOptions = null; |
| 313 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 314 var _body = null; |
| 315 |
| 316 if (appsId == null) { |
| 317 throw new core.ArgumentError("Parameter appsId is required."); |
| 318 } |
| 319 if (authorizedCertificatesId == null) { |
| 320 throw new core.ArgumentError( |
| 321 "Parameter authorizedCertificatesId is required."); |
| 322 } |
| 323 |
| 324 _url = 'v1/apps/' + |
| 325 commons.Escaper.ecapeVariable('$appsId') + |
| 326 '/authorizedCertificates/' + |
| 327 commons.Escaper.ecapeVariable('$authorizedCertificatesId'); |
| 328 |
| 329 var _response = _requester.request(_url, "DELETE", |
| 330 body: _body, |
| 331 queryParams: _queryParams, |
| 332 uploadOptions: _uploadOptions, |
| 333 uploadMedia: _uploadMedia, |
| 334 downloadOptions: _downloadOptions); |
| 335 return _response.then((data) => new Empty.fromJson(data)); |
| 336 } |
| 337 |
| 338 /// Gets the specified SSL certificate. |
| 339 /// |
| 340 /// Request parameters: |
| 341 /// |
| 342 /// [appsId] - Part of `name`. Name of the resource requested. Example: |
| 343 /// apps/myapp/authorizedCertificates/12345. |
| 344 /// |
| 345 /// [authorizedCertificatesId] - Part of `name`. See documentation of |
| 346 /// `appsId`. |
| 347 /// |
| 348 /// [view] - Controls the set of fields returned in the GET response. |
| 349 /// Possible string values are: |
| 350 /// - "BASIC_CERTIFICATE" : A BASIC_CERTIFICATE. |
| 351 /// - "FULL_CERTIFICATE" : A FULL_CERTIFICATE. |
| 352 /// |
| 353 /// Completes with a [AuthorizedCertificate]. |
| 354 /// |
| 355 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 356 /// an error. |
| 357 /// |
| 358 /// If the used [http.Client] completes with an error when making a REST |
| 359 /// call, this method will complete with the same error. |
| 360 async.Future<AuthorizedCertificate> get( |
| 361 core.String appsId, core.String authorizedCertificatesId, |
| 362 {core.String view}) { |
| 363 var _url = null; |
| 364 var _queryParams = new core.Map(); |
| 365 var _uploadMedia = null; |
| 366 var _uploadOptions = null; |
| 367 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 368 var _body = null; |
| 369 |
| 370 if (appsId == null) { |
| 371 throw new core.ArgumentError("Parameter appsId is required."); |
| 372 } |
| 373 if (authorizedCertificatesId == null) { |
| 374 throw new core.ArgumentError( |
| 375 "Parameter authorizedCertificatesId is required."); |
| 376 } |
| 377 if (view != null) { |
| 378 _queryParams["view"] = [view]; |
| 379 } |
| 380 |
| 381 _url = 'v1/apps/' + |
| 382 commons.Escaper.ecapeVariable('$appsId') + |
| 383 '/authorizedCertificates/' + |
| 384 commons.Escaper.ecapeVariable('$authorizedCertificatesId'); |
| 385 |
| 386 var _response = _requester.request(_url, "GET", |
| 387 body: _body, |
| 388 queryParams: _queryParams, |
| 389 uploadOptions: _uploadOptions, |
| 390 uploadMedia: _uploadMedia, |
| 391 downloadOptions: _downloadOptions); |
| 392 return _response.then((data) => new AuthorizedCertificate.fromJson(data)); |
| 393 } |
| 394 |
| 395 /// Lists all SSL certificates the user is authorized to administer. |
| 396 /// |
| 397 /// Request parameters: |
| 398 /// |
| 399 /// [appsId] - Part of `parent`. Name of the parent Application resource. |
| 400 /// Example: apps/myapp. |
| 401 /// |
| 402 /// [pageToken] - Continuation token for fetching the next page of results. |
| 403 /// |
| 404 /// [pageSize] - Maximum results to return per page. |
| 405 /// |
| 406 /// [view] - Controls the set of fields returned in the LIST response. |
| 407 /// Possible string values are: |
| 408 /// - "BASIC_CERTIFICATE" : A BASIC_CERTIFICATE. |
| 409 /// - "FULL_CERTIFICATE" : A FULL_CERTIFICATE. |
| 410 /// |
| 411 /// Completes with a [ListAuthorizedCertificatesResponse]. |
| 412 /// |
| 413 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 414 /// an error. |
| 415 /// |
| 416 /// If the used [http.Client] completes with an error when making a REST |
| 417 /// call, this method will complete with the same error. |
| 418 async.Future<ListAuthorizedCertificatesResponse> list(core.String appsId, |
| 419 {core.String pageToken, core.int pageSize, core.String view}) { |
| 420 var _url = null; |
| 421 var _queryParams = new core.Map(); |
| 422 var _uploadMedia = null; |
| 423 var _uploadOptions = null; |
| 424 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 425 var _body = null; |
| 426 |
| 427 if (appsId == null) { |
| 428 throw new core.ArgumentError("Parameter appsId is required."); |
| 429 } |
| 430 if (pageToken != null) { |
| 431 _queryParams["pageToken"] = [pageToken]; |
| 432 } |
| 433 if (pageSize != null) { |
| 434 _queryParams["pageSize"] = ["${pageSize}"]; |
| 435 } |
| 436 if (view != null) { |
| 437 _queryParams["view"] = [view]; |
| 438 } |
| 439 |
| 440 _url = 'v1/apps/' + |
| 441 commons.Escaper.ecapeVariable('$appsId') + |
| 442 '/authorizedCertificates'; |
| 443 |
| 444 var _response = _requester.request(_url, "GET", |
| 445 body: _body, |
| 446 queryParams: _queryParams, |
| 447 uploadOptions: _uploadOptions, |
| 448 uploadMedia: _uploadMedia, |
| 449 downloadOptions: _downloadOptions); |
| 450 return _response |
| 451 .then((data) => new ListAuthorizedCertificatesResponse.fromJson(data)); |
| 452 } |
| 453 |
| 454 /// Updates the specified SSL certificate. To renew a certificate and |
| 455 /// maintain its existing domain mappings, update certificate_data with a new |
| 456 /// certificate. The new certificate must be applicable to the same domains |
| 457 /// as the original certificate. The certificate display_name may also be |
| 458 /// updated. |
| 459 /// |
| 460 /// [request] - The metadata request object. |
| 461 /// |
| 462 /// Request parameters: |
| 463 /// |
| 464 /// [appsId] - Part of `name`. Name of the resource to update. Example: |
| 465 /// apps/myapp/authorizedCertificates/12345. |
| 466 /// |
| 467 /// [authorizedCertificatesId] - Part of `name`. See documentation of |
| 468 /// `appsId`. |
| 469 /// |
| 470 /// [updateMask] - Standard field mask for the set of fields to be updated. |
| 471 /// Updates are only supported on the certificate_raw_data and display_name |
| 472 /// fields. |
| 473 /// |
| 474 /// Completes with a [AuthorizedCertificate]. |
| 475 /// |
| 476 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 477 /// an error. |
| 478 /// |
| 479 /// If the used [http.Client] completes with an error when making a REST |
| 480 /// call, this method will complete with the same error. |
| 481 async.Future<AuthorizedCertificate> patch(AuthorizedCertificate request, |
| 482 core.String appsId, core.String authorizedCertificatesId, |
| 483 {core.String updateMask}) { |
| 484 var _url = null; |
| 485 var _queryParams = new core.Map(); |
| 486 var _uploadMedia = null; |
| 487 var _uploadOptions = null; |
| 488 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 489 var _body = null; |
| 490 |
| 491 if (request != null) { |
| 492 _body = convert.JSON.encode((request).toJson()); |
| 493 } |
| 494 if (appsId == null) { |
| 495 throw new core.ArgumentError("Parameter appsId is required."); |
| 496 } |
| 497 if (authorizedCertificatesId == null) { |
| 498 throw new core.ArgumentError( |
| 499 "Parameter authorizedCertificatesId is required."); |
| 500 } |
| 501 if (updateMask != null) { |
| 502 _queryParams["updateMask"] = [updateMask]; |
| 503 } |
| 504 |
| 505 _url = 'v1/apps/' + |
| 506 commons.Escaper.ecapeVariable('$appsId') + |
| 507 '/authorizedCertificates/' + |
| 508 commons.Escaper.ecapeVariable('$authorizedCertificatesId'); |
| 509 |
| 510 var _response = _requester.request(_url, "PATCH", |
| 511 body: _body, |
| 512 queryParams: _queryParams, |
| 513 uploadOptions: _uploadOptions, |
| 514 uploadMedia: _uploadMedia, |
| 515 downloadOptions: _downloadOptions); |
| 516 return _response.then((data) => new AuthorizedCertificate.fromJson(data)); |
| 517 } |
| 518 } |
| 519 |
| 520 class AppsAuthorizedDomainsResourceApi { |
| 521 final commons.ApiRequester _requester; |
| 522 |
| 523 AppsAuthorizedDomainsResourceApi(commons.ApiRequester client) |
| 524 : _requester = client; |
| 525 |
| 526 /// Lists all domains the user is authorized to administer. |
| 527 /// |
| 528 /// Request parameters: |
| 529 /// |
| 530 /// [appsId] - Part of `parent`. Name of the parent Application resource. |
| 531 /// Example: apps/myapp. |
| 532 /// |
| 533 /// [pageSize] - Maximum results to return per page. |
| 534 /// |
| 535 /// [pageToken] - Continuation token for fetching the next page of results. |
| 536 /// |
| 537 /// Completes with a [ListAuthorizedDomainsResponse]. |
| 538 /// |
| 539 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 540 /// an error. |
| 541 /// |
| 542 /// If the used [http.Client] completes with an error when making a REST |
| 543 /// call, this method will complete with the same error. |
| 544 async.Future<ListAuthorizedDomainsResponse> list(core.String appsId, |
| 545 {core.int pageSize, core.String pageToken}) { |
| 546 var _url = null; |
| 547 var _queryParams = new core.Map(); |
| 548 var _uploadMedia = null; |
| 549 var _uploadOptions = null; |
| 550 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 551 var _body = null; |
| 552 |
| 553 if (appsId == null) { |
| 554 throw new core.ArgumentError("Parameter appsId is required."); |
| 555 } |
| 556 if (pageSize != null) { |
| 557 _queryParams["pageSize"] = ["${pageSize}"]; |
| 558 } |
| 559 if (pageToken != null) { |
| 560 _queryParams["pageToken"] = [pageToken]; |
| 561 } |
| 562 |
| 563 _url = 'v1/apps/' + |
| 564 commons.Escaper.ecapeVariable('$appsId') + |
| 565 '/authorizedDomains'; |
| 566 |
| 567 var _response = _requester.request(_url, "GET", |
| 568 body: _body, |
| 569 queryParams: _queryParams, |
| 570 uploadOptions: _uploadOptions, |
| 571 uploadMedia: _uploadMedia, |
| 572 downloadOptions: _downloadOptions); |
| 573 return _response |
| 574 .then((data) => new ListAuthorizedDomainsResponse.fromJson(data)); |
| 575 } |
| 576 } |
| 577 |
| 578 class AppsDomainMappingsResourceApi { |
| 579 final commons.ApiRequester _requester; |
| 580 |
| 581 AppsDomainMappingsResourceApi(commons.ApiRequester client) |
| 582 : _requester = client; |
| 583 |
| 584 /// Maps a domain to an application. A user must be authorized to administer |
| 585 /// a domain in order to map it to an application. For a list of available |
| 586 /// authorized domains, see AuthorizedDomains.ListAuthorizedDomains. |
| 587 /// |
| 588 /// [request] - The metadata request object. |
| 589 /// |
| 590 /// Request parameters: |
| 591 /// |
| 592 /// [appsId] - Part of `parent`. Name of the parent Application resource. |
| 593 /// Example: apps/myapp. |
| 594 /// |
| 595 /// Completes with a [Operation]. |
| 596 /// |
| 597 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 598 /// an error. |
| 599 /// |
| 600 /// If the used [http.Client] completes with an error when making a REST |
| 601 /// call, this method will complete with the same error. |
| 602 async.Future<Operation> create(DomainMapping request, core.String appsId) { |
| 603 var _url = null; |
| 604 var _queryParams = new core.Map(); |
| 605 var _uploadMedia = null; |
| 606 var _uploadOptions = null; |
| 607 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 608 var _body = null; |
| 609 |
| 610 if (request != null) { |
| 611 _body = convert.JSON.encode((request).toJson()); |
| 612 } |
| 613 if (appsId == null) { |
| 614 throw new core.ArgumentError("Parameter appsId is required."); |
| 615 } |
| 616 |
| 617 _url = 'v1/apps/' + |
| 618 commons.Escaper.ecapeVariable('$appsId') + |
| 619 '/domainMappings'; |
| 620 |
| 621 var _response = _requester.request(_url, "POST", |
| 622 body: _body, |
| 623 queryParams: _queryParams, |
| 624 uploadOptions: _uploadOptions, |
| 625 uploadMedia: _uploadMedia, |
| 626 downloadOptions: _downloadOptions); |
| 627 return _response.then((data) => new Operation.fromJson(data)); |
| 628 } |
| 629 |
| 630 /// Deletes the specified domain mapping. A user must be authorized to |
| 631 /// administer the associated domain in order to delete a DomainMapping |
| 632 /// resource. |
| 633 /// |
| 634 /// Request parameters: |
| 635 /// |
| 636 /// [appsId] - Part of `name`. Name of the resource to delete. Example: |
| 637 /// apps/myapp/domainMappings/example.com. |
| 638 /// |
| 639 /// [domainMappingsId] - Part of `name`. See documentation of `appsId`. |
| 640 /// |
| 641 /// Completes with a [Operation]. |
| 642 /// |
| 643 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 644 /// an error. |
| 645 /// |
| 646 /// If the used [http.Client] completes with an error when making a REST |
| 647 /// call, this method will complete with the same error. |
| 648 async.Future<Operation> delete( |
| 649 core.String appsId, core.String domainMappingsId) { |
| 650 var _url = null; |
| 651 var _queryParams = new core.Map(); |
| 652 var _uploadMedia = null; |
| 653 var _uploadOptions = null; |
| 654 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 655 var _body = null; |
| 656 |
| 657 if (appsId == null) { |
| 658 throw new core.ArgumentError("Parameter appsId is required."); |
| 659 } |
| 660 if (domainMappingsId == null) { |
| 661 throw new core.ArgumentError("Parameter domainMappingsId is required."); |
| 662 } |
| 663 |
| 664 _url = 'v1/apps/' + |
| 665 commons.Escaper.ecapeVariable('$appsId') + |
| 666 '/domainMappings/' + |
| 667 commons.Escaper.ecapeVariable('$domainMappingsId'); |
| 668 |
| 669 var _response = _requester.request(_url, "DELETE", |
| 670 body: _body, |
| 671 queryParams: _queryParams, |
| 672 uploadOptions: _uploadOptions, |
| 673 uploadMedia: _uploadMedia, |
| 674 downloadOptions: _downloadOptions); |
| 675 return _response.then((data) => new Operation.fromJson(data)); |
| 676 } |
| 677 |
| 678 /// Gets the specified domain mapping. |
| 679 /// |
| 680 /// Request parameters: |
| 681 /// |
| 682 /// [appsId] - Part of `name`. Name of the resource requested. Example: |
| 683 /// apps/myapp/domainMappings/example.com. |
| 684 /// |
| 685 /// [domainMappingsId] - Part of `name`. See documentation of `appsId`. |
| 686 /// |
| 687 /// Completes with a [DomainMapping]. |
| 688 /// |
| 689 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 690 /// an error. |
| 691 /// |
| 692 /// If the used [http.Client] completes with an error when making a REST |
| 693 /// call, this method will complete with the same error. |
| 694 async.Future<DomainMapping> get( |
| 695 core.String appsId, core.String domainMappingsId) { |
| 696 var _url = null; |
| 697 var _queryParams = new core.Map(); |
| 698 var _uploadMedia = null; |
| 699 var _uploadOptions = null; |
| 700 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 701 var _body = null; |
| 702 |
| 703 if (appsId == null) { |
| 704 throw new core.ArgumentError("Parameter appsId is required."); |
| 705 } |
| 706 if (domainMappingsId == null) { |
| 707 throw new core.ArgumentError("Parameter domainMappingsId is required."); |
| 708 } |
| 709 |
| 710 _url = 'v1/apps/' + |
| 711 commons.Escaper.ecapeVariable('$appsId') + |
| 712 '/domainMappings/' + |
| 713 commons.Escaper.ecapeVariable('$domainMappingsId'); |
| 714 |
| 715 var _response = _requester.request(_url, "GET", |
| 716 body: _body, |
| 717 queryParams: _queryParams, |
| 718 uploadOptions: _uploadOptions, |
| 719 uploadMedia: _uploadMedia, |
| 720 downloadOptions: _downloadOptions); |
| 721 return _response.then((data) => new DomainMapping.fromJson(data)); |
| 722 } |
| 723 |
| 724 /// Lists the domain mappings on an application. |
| 725 /// |
| 726 /// Request parameters: |
| 727 /// |
| 728 /// [appsId] - Part of `parent`. Name of the parent Application resource. |
| 729 /// Example: apps/myapp. |
| 730 /// |
| 731 /// [pageToken] - Continuation token for fetching the next page of results. |
| 732 /// |
| 733 /// [pageSize] - Maximum results to return per page. |
| 734 /// |
| 735 /// Completes with a [ListDomainMappingsResponse]. |
| 736 /// |
| 737 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 738 /// an error. |
| 739 /// |
| 740 /// If the used [http.Client] completes with an error when making a REST |
| 741 /// call, this method will complete with the same error. |
| 742 async.Future<ListDomainMappingsResponse> list(core.String appsId, |
| 743 {core.String pageToken, core.int pageSize}) { |
| 744 var _url = null; |
| 745 var _queryParams = new core.Map(); |
| 746 var _uploadMedia = null; |
| 747 var _uploadOptions = null; |
| 748 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 749 var _body = null; |
| 750 |
| 751 if (appsId == null) { |
| 752 throw new core.ArgumentError("Parameter appsId is required."); |
| 753 } |
| 754 if (pageToken != null) { |
| 755 _queryParams["pageToken"] = [pageToken]; |
| 756 } |
| 757 if (pageSize != null) { |
| 758 _queryParams["pageSize"] = ["${pageSize}"]; |
| 759 } |
| 760 |
| 761 _url = 'v1/apps/' + |
| 762 commons.Escaper.ecapeVariable('$appsId') + |
| 763 '/domainMappings'; |
| 764 |
| 765 var _response = _requester.request(_url, "GET", |
| 766 body: _body, |
| 767 queryParams: _queryParams, |
| 768 uploadOptions: _uploadOptions, |
| 769 uploadMedia: _uploadMedia, |
| 770 downloadOptions: _downloadOptions); |
| 771 return _response |
| 772 .then((data) => new ListDomainMappingsResponse.fromJson(data)); |
| 773 } |
| 774 |
| 775 /// Updates the specified domain mapping. To map an SSL certificate to a |
| 776 /// domain mapping, update certificate_id to point to an |
| 777 /// AuthorizedCertificate resource. A user must be authorized to administer |
| 778 /// the associated domain in order to update a DomainMapping resource. |
| 779 /// |
| 780 /// [request] - The metadata request object. |
| 781 /// |
| 782 /// Request parameters: |
| 783 /// |
| 784 /// [appsId] - Part of `name`. Name of the resource to update. Example: |
| 785 /// apps/myapp/domainMappings/example.com. |
| 786 /// |
| 787 /// [domainMappingsId] - Part of `name`. See documentation of `appsId`. |
| 788 /// |
| 789 /// [updateMask] - Standard field mask for the set of fields to be updated. |
| 790 /// |
| 791 /// Completes with a [Operation]. |
| 792 /// |
| 793 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 794 /// an error. |
| 795 /// |
| 796 /// If the used [http.Client] completes with an error when making a REST |
| 797 /// call, this method will complete with the same error. |
| 798 async.Future<Operation> patch( |
| 799 DomainMapping request, core.String appsId, core.String domainMappingsId, |
| 800 {core.String updateMask}) { |
| 801 var _url = null; |
| 802 var _queryParams = new core.Map(); |
| 803 var _uploadMedia = null; |
| 804 var _uploadOptions = null; |
| 805 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 806 var _body = null; |
| 807 |
| 808 if (request != null) { |
| 809 _body = convert.JSON.encode((request).toJson()); |
| 810 } |
| 811 if (appsId == null) { |
| 812 throw new core.ArgumentError("Parameter appsId is required."); |
| 813 } |
| 814 if (domainMappingsId == null) { |
| 815 throw new core.ArgumentError("Parameter domainMappingsId is required."); |
| 816 } |
| 817 if (updateMask != null) { |
| 818 _queryParams["updateMask"] = [updateMask]; |
| 819 } |
| 820 |
| 821 _url = 'v1/apps/' + |
| 822 commons.Escaper.ecapeVariable('$appsId') + |
| 823 '/domainMappings/' + |
| 824 commons.Escaper.ecapeVariable('$domainMappingsId'); |
| 825 |
| 826 var _response = _requester.request(_url, "PATCH", |
| 827 body: _body, |
| 828 queryParams: _queryParams, |
| 829 uploadOptions: _uploadOptions, |
| 830 uploadMedia: _uploadMedia, |
| 831 downloadOptions: _downloadOptions); |
| 832 return _response.then((data) => new Operation.fromJson(data)); |
| 833 } |
| 834 } |
| 240 | 835 |
| 241 class AppsLocationsResourceApi { | 836 class AppsLocationsResourceApi { |
| 242 final commons.ApiRequester _requester; | 837 final commons.ApiRequester _requester; |
| 243 | 838 |
| 244 AppsLocationsResourceApi(commons.ApiRequester client) : | 839 AppsLocationsResourceApi(commons.ApiRequester client) : _requester = client; |
| 245 _requester = client; | 840 |
| 246 | 841 /// Get information about a location. |
| 247 /** | 842 /// |
| 248 * Get information about a location. | 843 /// Request parameters: |
| 249 * | 844 /// |
| 250 * Request parameters: | 845 /// [appsId] - Part of `name`. Resource name for the location. |
| 251 * | 846 /// |
| 252 * [appsId] - Part of `name`. Resource name for the location. | 847 /// [locationsId] - Part of `name`. See documentation of `appsId`. |
| 253 * | 848 /// |
| 254 * [locationsId] - Part of `name`. See documentation of `appsId`. | 849 /// Completes with a [Location]. |
| 255 * | 850 /// |
| 256 * Completes with a [Location]. | 851 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 257 * | 852 /// an error. |
| 258 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 853 /// |
| 259 * error. | 854 /// If the used [http.Client] completes with an error when making a REST |
| 260 * | 855 /// call, this method will complete with the same error. |
| 261 * If the used [http.Client] completes with an error when making a REST call, | |
| 262 * this method will complete with the same error. | |
| 263 */ | |
| 264 async.Future<Location> get(core.String appsId, core.String locationsId) { | 856 async.Future<Location> get(core.String appsId, core.String locationsId) { |
| 265 var _url = null; | 857 var _url = null; |
| 266 var _queryParams = new core.Map(); | 858 var _queryParams = new core.Map(); |
| 267 var _uploadMedia = null; | 859 var _uploadMedia = null; |
| 268 var _uploadOptions = null; | 860 var _uploadOptions = null; |
| 269 var _downloadOptions = commons.DownloadOptions.Metadata; | 861 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 270 var _body = null; | 862 var _body = null; |
| 271 | 863 |
| 272 if (appsId == null) { | 864 if (appsId == null) { |
| 273 throw new core.ArgumentError("Parameter appsId is required."); | 865 throw new core.ArgumentError("Parameter appsId is required."); |
| 274 } | 866 } |
| 275 if (locationsId == null) { | 867 if (locationsId == null) { |
| 276 throw new core.ArgumentError("Parameter locationsId is required."); | 868 throw new core.ArgumentError("Parameter locationsId is required."); |
| 277 } | 869 } |
| 278 | 870 |
| 279 _url = 'v1/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/locations/'
+ commons.Escaper.ecapeVariable('$locationsId'); | 871 _url = 'v1/apps/' + |
| 872 commons.Escaper.ecapeVariable('$appsId') + |
| 873 '/locations/' + |
| 874 commons.Escaper.ecapeVariable('$locationsId'); |
| 280 | 875 |
| 281 var _response = _requester.request(_url, | 876 var _response = _requester.request(_url, "GET", |
| 282 "GET", | 877 body: _body, |
| 283 body: _body, | 878 queryParams: _queryParams, |
| 284 queryParams: _queryParams, | 879 uploadOptions: _uploadOptions, |
| 285 uploadOptions: _uploadOptions, | 880 uploadMedia: _uploadMedia, |
| 286 uploadMedia: _uploadMedia, | 881 downloadOptions: _downloadOptions); |
| 287 downloadOptions: _downloadOptions); | |
| 288 return _response.then((data) => new Location.fromJson(data)); | 882 return _response.then((data) => new Location.fromJson(data)); |
| 289 } | 883 } |
| 290 | 884 |
| 291 /** | 885 /// Lists information about the supported locations for this service. |
| 292 * Lists information about the supported locations for this service. | 886 /// |
| 293 * | 887 /// Request parameters: |
| 294 * Request parameters: | 888 /// |
| 295 * | 889 /// [appsId] - Part of `name`. The resource that owns the locations |
| 296 * [appsId] - Part of `name`. The resource that owns the locations collection, | 890 /// collection, if applicable. |
| 297 * if applicable. | 891 /// |
| 298 * | 892 /// [pageToken] - The standard list page token. |
| 299 * [pageSize] - The standard list page size. | 893 /// |
| 300 * | 894 /// [pageSize] - The standard list page size. |
| 301 * [filter] - The standard list filter. | 895 /// |
| 302 * | 896 /// [filter] - The standard list filter. |
| 303 * [pageToken] - The standard list page token. | 897 /// |
| 304 * | 898 /// Completes with a [ListLocationsResponse]. |
| 305 * Completes with a [ListLocationsResponse]. | 899 /// |
| 306 * | 900 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 307 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 901 /// an error. |
| 308 * error. | 902 /// |
| 309 * | 903 /// If the used [http.Client] completes with an error when making a REST |
| 310 * If the used [http.Client] completes with an error when making a REST call, | 904 /// call, this method will complete with the same error. |
| 311 * this method will complete with the same error. | 905 async.Future<ListLocationsResponse> list(core.String appsId, |
| 312 */ | 906 {core.String pageToken, core.int pageSize, core.String filter}) { |
| 313 async.Future<ListLocationsResponse> list(core.String appsId, {core.int pageSiz
e, core.String filter, core.String pageToken}) { | |
| 314 var _url = null; | 907 var _url = null; |
| 315 var _queryParams = new core.Map(); | 908 var _queryParams = new core.Map(); |
| 316 var _uploadMedia = null; | 909 var _uploadMedia = null; |
| 317 var _uploadOptions = null; | 910 var _uploadOptions = null; |
| 318 var _downloadOptions = commons.DownloadOptions.Metadata; | 911 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 319 var _body = null; | 912 var _body = null; |
| 320 | 913 |
| 321 if (appsId == null) { | 914 if (appsId == null) { |
| 322 throw new core.ArgumentError("Parameter appsId is required."); | 915 throw new core.ArgumentError("Parameter appsId is required."); |
| 323 } | 916 } |
| 917 if (pageToken != null) { |
| 918 _queryParams["pageToken"] = [pageToken]; |
| 919 } |
| 324 if (pageSize != null) { | 920 if (pageSize != null) { |
| 325 _queryParams["pageSize"] = ["${pageSize}"]; | 921 _queryParams["pageSize"] = ["${pageSize}"]; |
| 326 } | 922 } |
| 327 if (filter != null) { | 923 if (filter != null) { |
| 328 _queryParams["filter"] = [filter]; | 924 _queryParams["filter"] = [filter]; |
| 329 } | 925 } |
| 330 if (pageToken != null) { | |
| 331 _queryParams["pageToken"] = [pageToken]; | |
| 332 } | |
| 333 | 926 |
| 334 _url = 'v1/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/locations'; | 927 _url = 'v1/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/locations'; |
| 335 | 928 |
| 336 var _response = _requester.request(_url, | 929 var _response = _requester.request(_url, "GET", |
| 337 "GET", | 930 body: _body, |
| 338 body: _body, | 931 queryParams: _queryParams, |
| 339 queryParams: _queryParams, | 932 uploadOptions: _uploadOptions, |
| 340 uploadOptions: _uploadOptions, | 933 uploadMedia: _uploadMedia, |
| 341 uploadMedia: _uploadMedia, | 934 downloadOptions: _downloadOptions); |
| 342 downloadOptions: _downloadOptions); | |
| 343 return _response.then((data) => new ListLocationsResponse.fromJson(data)); | 935 return _response.then((data) => new ListLocationsResponse.fromJson(data)); |
| 344 } | 936 } |
| 345 | |
| 346 } | 937 } |
| 347 | 938 |
| 348 | |
| 349 class AppsOperationsResourceApi { | 939 class AppsOperationsResourceApi { |
| 350 final commons.ApiRequester _requester; | 940 final commons.ApiRequester _requester; |
| 351 | 941 |
| 352 AppsOperationsResourceApi(commons.ApiRequester client) : | 942 AppsOperationsResourceApi(commons.ApiRequester client) : _requester = client; |
| 353 _requester = client; | |
| 354 | 943 |
| 355 /** | 944 /// Gets the latest state of a long-running operation. Clients can use this |
| 356 * Gets the latest state of a long-running operation. Clients can use this | 945 /// method to poll the operation result at intervals as recommended by the |
| 357 * method to poll the operation result at intervals as recommended by the API | 946 /// API service. |
| 358 * service. | 947 /// |
| 359 * | 948 /// Request parameters: |
| 360 * Request parameters: | 949 /// |
| 361 * | 950 /// [appsId] - Part of `name`. The name of the operation resource. |
| 362 * [appsId] - Part of `name`. The name of the operation resource. | 951 /// |
| 363 * | 952 /// [operationsId] - Part of `name`. See documentation of `appsId`. |
| 364 * [operationsId] - Part of `name`. See documentation of `appsId`. | 953 /// |
| 365 * | 954 /// Completes with a [Operation]. |
| 366 * Completes with a [Operation]. | 955 /// |
| 367 * | 956 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 368 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 957 /// an error. |
| 369 * error. | 958 /// |
| 370 * | 959 /// If the used [http.Client] completes with an error when making a REST |
| 371 * If the used [http.Client] completes with an error when making a REST call, | 960 /// call, this method will complete with the same error. |
| 372 * this method will complete with the same error. | |
| 373 */ | |
| 374 async.Future<Operation> get(core.String appsId, core.String operationsId) { | 961 async.Future<Operation> get(core.String appsId, core.String operationsId) { |
| 375 var _url = null; | 962 var _url = null; |
| 376 var _queryParams = new core.Map(); | 963 var _queryParams = new core.Map(); |
| 377 var _uploadMedia = null; | 964 var _uploadMedia = null; |
| 378 var _uploadOptions = null; | 965 var _uploadOptions = null; |
| 379 var _downloadOptions = commons.DownloadOptions.Metadata; | 966 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 380 var _body = null; | 967 var _body = null; |
| 381 | 968 |
| 382 if (appsId == null) { | 969 if (appsId == null) { |
| 383 throw new core.ArgumentError("Parameter appsId is required."); | 970 throw new core.ArgumentError("Parameter appsId is required."); |
| 384 } | 971 } |
| 385 if (operationsId == null) { | 972 if (operationsId == null) { |
| 386 throw new core.ArgumentError("Parameter operationsId is required."); | 973 throw new core.ArgumentError("Parameter operationsId is required."); |
| 387 } | 974 } |
| 388 | 975 |
| 389 _url = 'v1/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/operations/
' + commons.Escaper.ecapeVariable('$operationsId'); | 976 _url = 'v1/apps/' + |
| 977 commons.Escaper.ecapeVariable('$appsId') + |
| 978 '/operations/' + |
| 979 commons.Escaper.ecapeVariable('$operationsId'); |
| 390 | 980 |
| 391 var _response = _requester.request(_url, | 981 var _response = _requester.request(_url, "GET", |
| 392 "GET", | 982 body: _body, |
| 393 body: _body, | 983 queryParams: _queryParams, |
| 394 queryParams: _queryParams, | 984 uploadOptions: _uploadOptions, |
| 395 uploadOptions: _uploadOptions, | 985 uploadMedia: _uploadMedia, |
| 396 uploadMedia: _uploadMedia, | 986 downloadOptions: _downloadOptions); |
| 397 downloadOptions: _downloadOptions); | |
| 398 return _response.then((data) => new Operation.fromJson(data)); | 987 return _response.then((data) => new Operation.fromJson(data)); |
| 399 } | 988 } |
| 400 | 989 |
| 401 /** | 990 /// Lists operations that match the specified filter in the request. If the |
| 402 * Lists operations that match the specified filter in the request. If the | 991 /// server doesn't support this method, it returns UNIMPLEMENTED.NOTE: the |
| 403 * server doesn't support this method, it returns UNIMPLEMENTED.NOTE: the name | 992 /// name binding allows API services to override the binding to use different |
| 404 * binding allows API services to override the binding to use different | 993 /// resource name schemes, such as users / * /operations. To override the |
| 405 * resource name schemes, such as users / * /operations. To override the | 994 /// binding, API services can add a binding such as "/v1/{name=users / * |
| 406 * binding, API services can add a binding such as "/v1/{name=users / * | 995 /// }/operations" to their service configuration. For backwards |
| 407 * }/operations" to their service configuration. For backwards compatibility, | 996 /// compatibility, the default name includes the operations collection id, |
| 408 * the default name includes the operations collection id, however overriding | 997 /// however overriding users must ensure the name binding is the parent |
| 409 * users must ensure the name binding is the parent resource, without the | 998 /// resource, without the operations collection id. |
| 410 * operations collection id. | 999 /// |
| 411 * | 1000 /// Request parameters: |
| 412 * Request parameters: | 1001 /// |
| 413 * | 1002 /// [appsId] - Part of `name`. The name of the operation's parent resource. |
| 414 * [appsId] - Part of `name`. The name of the operation's parent resource. | 1003 /// |
| 415 * | 1004 /// [filter] - The standard list filter. |
| 416 * [filter] - The standard list filter. | 1005 /// |
| 417 * | 1006 /// [pageToken] - The standard list page token. |
| 418 * [pageToken] - The standard list page token. | 1007 /// |
| 419 * | 1008 /// [pageSize] - The standard list page size. |
| 420 * [pageSize] - The standard list page size. | 1009 /// |
| 421 * | 1010 /// Completes with a [ListOperationsResponse]. |
| 422 * Completes with a [ListOperationsResponse]. | 1011 /// |
| 423 * | 1012 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 424 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1013 /// an error. |
| 425 * error. | 1014 /// |
| 426 * | 1015 /// If the used [http.Client] completes with an error when making a REST |
| 427 * If the used [http.Client] completes with an error when making a REST call, | 1016 /// call, this method will complete with the same error. |
| 428 * this method will complete with the same error. | 1017 async.Future<ListOperationsResponse> list(core.String appsId, |
| 429 */ | 1018 {core.String filter, core.String pageToken, core.int pageSize}) { |
| 430 async.Future<ListOperationsResponse> list(core.String appsId, {core.String fil
ter, core.String pageToken, core.int pageSize}) { | |
| 431 var _url = null; | 1019 var _url = null; |
| 432 var _queryParams = new core.Map(); | 1020 var _queryParams = new core.Map(); |
| 433 var _uploadMedia = null; | 1021 var _uploadMedia = null; |
| 434 var _uploadOptions = null; | 1022 var _uploadOptions = null; |
| 435 var _downloadOptions = commons.DownloadOptions.Metadata; | 1023 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 436 var _body = null; | 1024 var _body = null; |
| 437 | 1025 |
| 438 if (appsId == null) { | 1026 if (appsId == null) { |
| 439 throw new core.ArgumentError("Parameter appsId is required."); | 1027 throw new core.ArgumentError("Parameter appsId is required."); |
| 440 } | 1028 } |
| 441 if (filter != null) { | 1029 if (filter != null) { |
| 442 _queryParams["filter"] = [filter]; | 1030 _queryParams["filter"] = [filter]; |
| 443 } | 1031 } |
| 444 if (pageToken != null) { | 1032 if (pageToken != null) { |
| 445 _queryParams["pageToken"] = [pageToken]; | 1033 _queryParams["pageToken"] = [pageToken]; |
| 446 } | 1034 } |
| 447 if (pageSize != null) { | 1035 if (pageSize != null) { |
| 448 _queryParams["pageSize"] = ["${pageSize}"]; | 1036 _queryParams["pageSize"] = ["${pageSize}"]; |
| 449 } | 1037 } |
| 450 | 1038 |
| 451 _url = 'v1/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/operations'
; | 1039 _url = |
| 1040 'v1/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/operations'; |
| 452 | 1041 |
| 453 var _response = _requester.request(_url, | 1042 var _response = _requester.request(_url, "GET", |
| 454 "GET", | 1043 body: _body, |
| 455 body: _body, | 1044 queryParams: _queryParams, |
| 456 queryParams: _queryParams, | 1045 uploadOptions: _uploadOptions, |
| 457 uploadOptions: _uploadOptions, | 1046 uploadMedia: _uploadMedia, |
| 458 uploadMedia: _uploadMedia, | 1047 downloadOptions: _downloadOptions); |
| 459 downloadOptions: _downloadOptions); | |
| 460 return _response.then((data) => new ListOperationsResponse.fromJson(data)); | 1048 return _response.then((data) => new ListOperationsResponse.fromJson(data)); |
| 461 } | 1049 } |
| 462 | |
| 463 } | 1050 } |
| 464 | 1051 |
| 465 | |
| 466 class AppsServicesResourceApi { | 1052 class AppsServicesResourceApi { |
| 467 final commons.ApiRequester _requester; | 1053 final commons.ApiRequester _requester; |
| 468 | 1054 |
| 469 AppsServicesVersionsResourceApi get versions => new AppsServicesVersionsResour
ceApi(_requester); | 1055 AppsServicesVersionsResourceApi get versions => |
| 1056 new AppsServicesVersionsResourceApi(_requester); |
| 470 | 1057 |
| 471 AppsServicesResourceApi(commons.ApiRequester client) : | 1058 AppsServicesResourceApi(commons.ApiRequester client) : _requester = client; |
| 472 _requester = client; | |
| 473 | 1059 |
| 474 /** | 1060 /// Deletes the specified service and all enclosed versions. |
| 475 * Deletes the specified service and all enclosed versions. | 1061 /// |
| 476 * | 1062 /// Request parameters: |
| 477 * Request parameters: | 1063 /// |
| 478 * | 1064 /// [appsId] - Part of `name`. Name of the resource requested. Example: |
| 479 * [appsId] - Part of `name`. Name of the resource requested. Example: | 1065 /// apps/myapp/services/default. |
| 480 * apps/myapp/services/default. | 1066 /// |
| 481 * | 1067 /// [servicesId] - Part of `name`. See documentation of `appsId`. |
| 482 * [servicesId] - Part of `name`. See documentation of `appsId`. | 1068 /// |
| 483 * | 1069 /// Completes with a [Operation]. |
| 484 * Completes with a [Operation]. | 1070 /// |
| 485 * | 1071 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 486 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1072 /// an error. |
| 487 * error. | 1073 /// |
| 488 * | 1074 /// If the used [http.Client] completes with an error when making a REST |
| 489 * If the used [http.Client] completes with an error when making a REST call, | 1075 /// call, this method will complete with the same error. |
| 490 * this method will complete with the same error. | |
| 491 */ | |
| 492 async.Future<Operation> delete(core.String appsId, core.String servicesId) { | 1076 async.Future<Operation> delete(core.String appsId, core.String servicesId) { |
| 493 var _url = null; | 1077 var _url = null; |
| 494 var _queryParams = new core.Map(); | 1078 var _queryParams = new core.Map(); |
| 495 var _uploadMedia = null; | 1079 var _uploadMedia = null; |
| 496 var _uploadOptions = null; | 1080 var _uploadOptions = null; |
| 497 var _downloadOptions = commons.DownloadOptions.Metadata; | 1081 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 498 var _body = null; | 1082 var _body = null; |
| 499 | 1083 |
| 500 if (appsId == null) { | 1084 if (appsId == null) { |
| 501 throw new core.ArgumentError("Parameter appsId is required."); | 1085 throw new core.ArgumentError("Parameter appsId is required."); |
| 502 } | 1086 } |
| 503 if (servicesId == null) { | 1087 if (servicesId == null) { |
| 504 throw new core.ArgumentError("Parameter servicesId is required."); | 1088 throw new core.ArgumentError("Parameter servicesId is required."); |
| 505 } | 1089 } |
| 506 | 1090 |
| 507 _url = 'v1/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/services/'
+ commons.Escaper.ecapeVariable('$servicesId'); | 1091 _url = 'v1/apps/' + |
| 1092 commons.Escaper.ecapeVariable('$appsId') + |
| 1093 '/services/' + |
| 1094 commons.Escaper.ecapeVariable('$servicesId'); |
| 508 | 1095 |
| 509 var _response = _requester.request(_url, | 1096 var _response = _requester.request(_url, "DELETE", |
| 510 "DELETE", | 1097 body: _body, |
| 511 body: _body, | 1098 queryParams: _queryParams, |
| 512 queryParams: _queryParams, | 1099 uploadOptions: _uploadOptions, |
| 513 uploadOptions: _uploadOptions, | 1100 uploadMedia: _uploadMedia, |
| 514 uploadMedia: _uploadMedia, | 1101 downloadOptions: _downloadOptions); |
| 515 downloadOptions: _downloadOptions); | |
| 516 return _response.then((data) => new Operation.fromJson(data)); | 1102 return _response.then((data) => new Operation.fromJson(data)); |
| 517 } | 1103 } |
| 518 | 1104 |
| 519 /** | 1105 /// Gets the current configuration of the specified service. |
| 520 * Gets the current configuration of the specified service. | 1106 /// |
| 521 * | 1107 /// Request parameters: |
| 522 * Request parameters: | 1108 /// |
| 523 * | 1109 /// [appsId] - Part of `name`. Name of the resource requested. Example: |
| 524 * [appsId] - Part of `name`. Name of the resource requested. Example: | 1110 /// apps/myapp/services/default. |
| 525 * apps/myapp/services/default. | 1111 /// |
| 526 * | 1112 /// [servicesId] - Part of `name`. See documentation of `appsId`. |
| 527 * [servicesId] - Part of `name`. See documentation of `appsId`. | 1113 /// |
| 528 * | 1114 /// Completes with a [Service]. |
| 529 * Completes with a [Service]. | 1115 /// |
| 530 * | 1116 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 531 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1117 /// an error. |
| 532 * error. | 1118 /// |
| 533 * | 1119 /// If the used [http.Client] completes with an error when making a REST |
| 534 * If the used [http.Client] completes with an error when making a REST call, | 1120 /// call, this method will complete with the same error. |
| 535 * this method will complete with the same error. | |
| 536 */ | |
| 537 async.Future<Service> get(core.String appsId, core.String servicesId) { | 1121 async.Future<Service> get(core.String appsId, core.String servicesId) { |
| 538 var _url = null; | 1122 var _url = null; |
| 539 var _queryParams = new core.Map(); | 1123 var _queryParams = new core.Map(); |
| 540 var _uploadMedia = null; | 1124 var _uploadMedia = null; |
| 541 var _uploadOptions = null; | 1125 var _uploadOptions = null; |
| 542 var _downloadOptions = commons.DownloadOptions.Metadata; | 1126 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 543 var _body = null; | 1127 var _body = null; |
| 544 | 1128 |
| 545 if (appsId == null) { | 1129 if (appsId == null) { |
| 546 throw new core.ArgumentError("Parameter appsId is required."); | 1130 throw new core.ArgumentError("Parameter appsId is required."); |
| 547 } | 1131 } |
| 548 if (servicesId == null) { | 1132 if (servicesId == null) { |
| 549 throw new core.ArgumentError("Parameter servicesId is required."); | 1133 throw new core.ArgumentError("Parameter servicesId is required."); |
| 550 } | 1134 } |
| 551 | 1135 |
| 552 _url = 'v1/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/services/'
+ commons.Escaper.ecapeVariable('$servicesId'); | 1136 _url = 'v1/apps/' + |
| 1137 commons.Escaper.ecapeVariable('$appsId') + |
| 1138 '/services/' + |
| 1139 commons.Escaper.ecapeVariable('$servicesId'); |
| 553 | 1140 |
| 554 var _response = _requester.request(_url, | 1141 var _response = _requester.request(_url, "GET", |
| 555 "GET", | 1142 body: _body, |
| 556 body: _body, | 1143 queryParams: _queryParams, |
| 557 queryParams: _queryParams, | 1144 uploadOptions: _uploadOptions, |
| 558 uploadOptions: _uploadOptions, | 1145 uploadMedia: _uploadMedia, |
| 559 uploadMedia: _uploadMedia, | 1146 downloadOptions: _downloadOptions); |
| 560 downloadOptions: _downloadOptions); | |
| 561 return _response.then((data) => new Service.fromJson(data)); | 1147 return _response.then((data) => new Service.fromJson(data)); |
| 562 } | 1148 } |
| 563 | 1149 |
| 564 /** | 1150 /// Lists all the services in the application. |
| 565 * Lists all the services in the application. | 1151 /// |
| 566 * | 1152 /// Request parameters: |
| 567 * Request parameters: | 1153 /// |
| 568 * | 1154 /// [appsId] - Part of `parent`. Name of the parent Application resource. |
| 569 * [appsId] - Part of `parent`. Name of the parent Application resource. | 1155 /// Example: apps/myapp. |
| 570 * Example: apps/myapp. | 1156 /// |
| 571 * | 1157 /// [pageToken] - Continuation token for fetching the next page of results. |
| 572 * [pageToken] - Continuation token for fetching the next page of results. | 1158 /// |
| 573 * | 1159 /// [pageSize] - Maximum results to return per page. |
| 574 * [pageSize] - Maximum results to return per page. | 1160 /// |
| 575 * | 1161 /// Completes with a [ListServicesResponse]. |
| 576 * Completes with a [ListServicesResponse]. | 1162 /// |
| 577 * | 1163 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 578 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1164 /// an error. |
| 579 * error. | 1165 /// |
| 580 * | 1166 /// If the used [http.Client] completes with an error when making a REST |
| 581 * If the used [http.Client] completes with an error when making a REST call, | 1167 /// call, this method will complete with the same error. |
| 582 * this method will complete with the same error. | 1168 async.Future<ListServicesResponse> list(core.String appsId, |
| 583 */ | 1169 {core.String pageToken, core.int pageSize}) { |
| 584 async.Future<ListServicesResponse> list(core.String appsId, {core.String pageT
oken, core.int pageSize}) { | |
| 585 var _url = null; | 1170 var _url = null; |
| 586 var _queryParams = new core.Map(); | 1171 var _queryParams = new core.Map(); |
| 587 var _uploadMedia = null; | 1172 var _uploadMedia = null; |
| 588 var _uploadOptions = null; | 1173 var _uploadOptions = null; |
| 589 var _downloadOptions = commons.DownloadOptions.Metadata; | 1174 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 590 var _body = null; | 1175 var _body = null; |
| 591 | 1176 |
| 592 if (appsId == null) { | 1177 if (appsId == null) { |
| 593 throw new core.ArgumentError("Parameter appsId is required."); | 1178 throw new core.ArgumentError("Parameter appsId is required."); |
| 594 } | 1179 } |
| 595 if (pageToken != null) { | 1180 if (pageToken != null) { |
| 596 _queryParams["pageToken"] = [pageToken]; | 1181 _queryParams["pageToken"] = [pageToken]; |
| 597 } | 1182 } |
| 598 if (pageSize != null) { | 1183 if (pageSize != null) { |
| 599 _queryParams["pageSize"] = ["${pageSize}"]; | 1184 _queryParams["pageSize"] = ["${pageSize}"]; |
| 600 } | 1185 } |
| 601 | 1186 |
| 602 _url = 'v1/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/services'; | 1187 _url = 'v1/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/services'; |
| 603 | 1188 |
| 604 var _response = _requester.request(_url, | 1189 var _response = _requester.request(_url, "GET", |
| 605 "GET", | 1190 body: _body, |
| 606 body: _body, | 1191 queryParams: _queryParams, |
| 607 queryParams: _queryParams, | 1192 uploadOptions: _uploadOptions, |
| 608 uploadOptions: _uploadOptions, | 1193 uploadMedia: _uploadMedia, |
| 609 uploadMedia: _uploadMedia, | 1194 downloadOptions: _downloadOptions); |
| 610 downloadOptions: _downloadOptions); | |
| 611 return _response.then((data) => new ListServicesResponse.fromJson(data)); | 1195 return _response.then((data) => new ListServicesResponse.fromJson(data)); |
| 612 } | 1196 } |
| 613 | 1197 |
| 614 /** | 1198 /// Updates the configuration of the specified service. |
| 615 * Updates the configuration of the specified service. | 1199 /// |
| 616 * | 1200 /// [request] - The metadata request object. |
| 617 * [request] - The metadata request object. | 1201 /// |
| 618 * | 1202 /// Request parameters: |
| 619 * Request parameters: | 1203 /// |
| 620 * | 1204 /// [appsId] - Part of `name`. Name of the resource to update. Example: |
| 621 * [appsId] - Part of `name`. Name of the resource to update. Example: | 1205 /// apps/myapp/services/default. |
| 622 * apps/myapp/services/default. | 1206 /// |
| 623 * | 1207 /// [servicesId] - Part of `name`. See documentation of `appsId`. |
| 624 * [servicesId] - Part of `name`. See documentation of `appsId`. | 1208 /// |
| 625 * | 1209 /// [updateMask] - Standard field mask for the set of fields to be updated. |
| 626 * [migrateTraffic] - Set to true to gradually shift traffic to one or more | 1210 /// |
| 627 * versions that you specify. By default, traffic is shifted immediately. For | 1211 /// [migrateTraffic] - Set to true to gradually shift traffic to one or more |
| 628 * gradual traffic migration, the target versions must be located within | 1212 /// versions that you specify. By default, traffic is shifted immediately. |
| 629 * instances that are configured for both warmup requests | 1213 /// For gradual traffic migration, the target versions must be located within |
| 630 * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.s
ervices.versions#inboundservicetype) | 1214 /// instances that are configured for both warmup requests |
| 631 * and automatic scaling | 1215 /// (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.
services.versions#inboundservicetype) |
| 632 * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.s
ervices.versions#automaticscaling). | 1216 /// and automatic scaling |
| 633 * You must specify the shardBy | 1217 /// (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.
services.versions#automaticscaling). |
| 634 * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.s
ervices#shardby) | 1218 /// You must specify the shardBy |
| 635 * field in the Service resource. Gradual traffic migration is not supported | 1219 /// (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.
services#shardby) |
| 636 * in the App Engine flexible environment. For examples, see Migrating and | 1220 /// field in the Service resource. Gradual traffic migration is not supported |
| 637 * Splitting Traffic | 1221 /// in the App Engine flexible environment. For examples, see Migrating and |
| 638 * (https://cloud.google.com/appengine/docs/admin-api/migrating-splitting-traf
fic). | 1222 /// Splitting Traffic |
| 639 * | 1223 /// (https://cloud.google.com/appengine/docs/admin-api/migrating-splitting-tra
ffic). |
| 640 * [updateMask] - Standard field mask for the set of fields to be updated. | 1224 /// |
| 641 * | 1225 /// Completes with a [Operation]. |
| 642 * Completes with a [Operation]. | 1226 /// |
| 643 * | 1227 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 644 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1228 /// an error. |
| 645 * error. | 1229 /// |
| 646 * | 1230 /// If the used [http.Client] completes with an error when making a REST |
| 647 * If the used [http.Client] completes with an error when making a REST call, | 1231 /// call, this method will complete with the same error. |
| 648 * this method will complete with the same error. | 1232 async.Future<Operation> patch( |
| 649 */ | 1233 Service request, core.String appsId, core.String servicesId, |
| 650 async.Future<Operation> patch(Service request, core.String appsId, core.String
servicesId, {core.bool migrateTraffic, core.String updateMask}) { | 1234 {core.String updateMask, core.bool migrateTraffic}) { |
| 651 var _url = null; | 1235 var _url = null; |
| 652 var _queryParams = new core.Map(); | 1236 var _queryParams = new core.Map(); |
| 653 var _uploadMedia = null; | 1237 var _uploadMedia = null; |
| 654 var _uploadOptions = null; | 1238 var _uploadOptions = null; |
| 655 var _downloadOptions = commons.DownloadOptions.Metadata; | 1239 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 656 var _body = null; | 1240 var _body = null; |
| 657 | 1241 |
| 658 if (request != null) { | 1242 if (request != null) { |
| 659 _body = convert.JSON.encode((request).toJson()); | 1243 _body = convert.JSON.encode((request).toJson()); |
| 660 } | 1244 } |
| 661 if (appsId == null) { | 1245 if (appsId == null) { |
| 662 throw new core.ArgumentError("Parameter appsId is required."); | 1246 throw new core.ArgumentError("Parameter appsId is required."); |
| 663 } | 1247 } |
| 664 if (servicesId == null) { | 1248 if (servicesId == null) { |
| 665 throw new core.ArgumentError("Parameter servicesId is required."); | 1249 throw new core.ArgumentError("Parameter servicesId is required."); |
| 666 } | 1250 } |
| 1251 if (updateMask != null) { |
| 1252 _queryParams["updateMask"] = [updateMask]; |
| 1253 } |
| 667 if (migrateTraffic != null) { | 1254 if (migrateTraffic != null) { |
| 668 _queryParams["migrateTraffic"] = ["${migrateTraffic}"]; | 1255 _queryParams["migrateTraffic"] = ["${migrateTraffic}"]; |
| 669 } | 1256 } |
| 670 if (updateMask != null) { | |
| 671 _queryParams["updateMask"] = [updateMask]; | |
| 672 } | |
| 673 | 1257 |
| 674 _url = 'v1/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/services/'
+ commons.Escaper.ecapeVariable('$servicesId'); | 1258 _url = 'v1/apps/' + |
| 1259 commons.Escaper.ecapeVariable('$appsId') + |
| 1260 '/services/' + |
| 1261 commons.Escaper.ecapeVariable('$servicesId'); |
| 675 | 1262 |
| 676 var _response = _requester.request(_url, | 1263 var _response = _requester.request(_url, "PATCH", |
| 677 "PATCH", | 1264 body: _body, |
| 678 body: _body, | 1265 queryParams: _queryParams, |
| 679 queryParams: _queryParams, | 1266 uploadOptions: _uploadOptions, |
| 680 uploadOptions: _uploadOptions, | 1267 uploadMedia: _uploadMedia, |
| 681 uploadMedia: _uploadMedia, | 1268 downloadOptions: _downloadOptions); |
| 682 downloadOptions: _downloadOptions); | |
| 683 return _response.then((data) => new Operation.fromJson(data)); | 1269 return _response.then((data) => new Operation.fromJson(data)); |
| 684 } | 1270 } |
| 685 | |
| 686 } | 1271 } |
| 687 | 1272 |
| 688 | |
| 689 class AppsServicesVersionsResourceApi { | 1273 class AppsServicesVersionsResourceApi { |
| 690 final commons.ApiRequester _requester; | 1274 final commons.ApiRequester _requester; |
| 691 | 1275 |
| 692 AppsServicesVersionsInstancesResourceApi get instances => new AppsServicesVers
ionsInstancesResourceApi(_requester); | 1276 AppsServicesVersionsInstancesResourceApi get instances => |
| 1277 new AppsServicesVersionsInstancesResourceApi(_requester); |
| 693 | 1278 |
| 694 AppsServicesVersionsResourceApi(commons.ApiRequester client) : | 1279 AppsServicesVersionsResourceApi(commons.ApiRequester client) |
| 695 _requester = client; | 1280 : _requester = client; |
| 696 | 1281 |
| 697 /** | 1282 /// Deploys code and resource files to a new version. |
| 698 * Deploys code and resource files to a new version. | 1283 /// |
| 699 * | 1284 /// [request] - The metadata request object. |
| 700 * [request] - The metadata request object. | 1285 /// |
| 701 * | 1286 /// Request parameters: |
| 702 * Request parameters: | 1287 /// |
| 703 * | 1288 /// [appsId] - Part of `parent`. Name of the parent resource to create this |
| 704 * [appsId] - Part of `parent`. Name of the parent resource to create this | 1289 /// version under. Example: apps/myapp/services/default. |
| 705 * version under. Example: apps/myapp/services/default. | 1290 /// |
| 706 * | 1291 /// [servicesId] - Part of `parent`. See documentation of `appsId`. |
| 707 * [servicesId] - Part of `parent`. See documentation of `appsId`. | 1292 /// |
| 708 * | 1293 /// Completes with a [Operation]. |
| 709 * Completes with a [Operation]. | 1294 /// |
| 710 * | 1295 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 711 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1296 /// an error. |
| 712 * error. | 1297 /// |
| 713 * | 1298 /// If the used [http.Client] completes with an error when making a REST |
| 714 * If the used [http.Client] completes with an error when making a REST call, | 1299 /// call, this method will complete with the same error. |
| 715 * this method will complete with the same error. | 1300 async.Future<Operation> create( |
| 716 */ | 1301 Version request, core.String appsId, core.String servicesId) { |
| 717 async.Future<Operation> create(Version request, core.String appsId, core.Strin
g servicesId) { | |
| 718 var _url = null; | 1302 var _url = null; |
| 719 var _queryParams = new core.Map(); | 1303 var _queryParams = new core.Map(); |
| 720 var _uploadMedia = null; | 1304 var _uploadMedia = null; |
| 721 var _uploadOptions = null; | 1305 var _uploadOptions = null; |
| 722 var _downloadOptions = commons.DownloadOptions.Metadata; | 1306 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 723 var _body = null; | 1307 var _body = null; |
| 724 | 1308 |
| 725 if (request != null) { | 1309 if (request != null) { |
| 726 _body = convert.JSON.encode((request).toJson()); | 1310 _body = convert.JSON.encode((request).toJson()); |
| 727 } | 1311 } |
| 728 if (appsId == null) { | 1312 if (appsId == null) { |
| 729 throw new core.ArgumentError("Parameter appsId is required."); | 1313 throw new core.ArgumentError("Parameter appsId is required."); |
| 730 } | 1314 } |
| 731 if (servicesId == null) { | 1315 if (servicesId == null) { |
| 732 throw new core.ArgumentError("Parameter servicesId is required."); | 1316 throw new core.ArgumentError("Parameter servicesId is required."); |
| 733 } | 1317 } |
| 734 | 1318 |
| 735 _url = 'v1/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/services/'
+ commons.Escaper.ecapeVariable('$servicesId') + '/versions'; | 1319 _url = 'v1/apps/' + |
| 1320 commons.Escaper.ecapeVariable('$appsId') + |
| 1321 '/services/' + |
| 1322 commons.Escaper.ecapeVariable('$servicesId') + |
| 1323 '/versions'; |
| 736 | 1324 |
| 737 var _response = _requester.request(_url, | 1325 var _response = _requester.request(_url, "POST", |
| 738 "POST", | 1326 body: _body, |
| 739 body: _body, | 1327 queryParams: _queryParams, |
| 740 queryParams: _queryParams, | 1328 uploadOptions: _uploadOptions, |
| 741 uploadOptions: _uploadOptions, | 1329 uploadMedia: _uploadMedia, |
| 742 uploadMedia: _uploadMedia, | 1330 downloadOptions: _downloadOptions); |
| 743 downloadOptions: _downloadOptions); | |
| 744 return _response.then((data) => new Operation.fromJson(data)); | 1331 return _response.then((data) => new Operation.fromJson(data)); |
| 745 } | 1332 } |
| 746 | 1333 |
| 747 /** | 1334 /// Deletes an existing Version resource. |
| 748 * Deletes an existing Version resource. | 1335 /// |
| 749 * | 1336 /// Request parameters: |
| 750 * Request parameters: | 1337 /// |
| 751 * | 1338 /// [appsId] - Part of `name`. Name of the resource requested. Example: |
| 752 * [appsId] - Part of `name`. Name of the resource requested. Example: | 1339 /// apps/myapp/services/default/versions/v1. |
| 753 * apps/myapp/services/default/versions/v1. | 1340 /// |
| 754 * | 1341 /// [servicesId] - Part of `name`. See documentation of `appsId`. |
| 755 * [servicesId] - Part of `name`. See documentation of `appsId`. | 1342 /// |
| 756 * | 1343 /// [versionsId] - Part of `name`. See documentation of `appsId`. |
| 757 * [versionsId] - Part of `name`. See documentation of `appsId`. | 1344 /// |
| 758 * | 1345 /// Completes with a [Operation]. |
| 759 * Completes with a [Operation]. | 1346 /// |
| 760 * | 1347 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 761 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1348 /// an error. |
| 762 * error. | 1349 /// |
| 763 * | 1350 /// If the used [http.Client] completes with an error when making a REST |
| 764 * If the used [http.Client] completes with an error when making a REST call, | 1351 /// call, this method will complete with the same error. |
| 765 * this method will complete with the same error. | 1352 async.Future<Operation> delete( |
| 766 */ | 1353 core.String appsId, core.String servicesId, core.String versionsId) { |
| 767 async.Future<Operation> delete(core.String appsId, core.String servicesId, cor
e.String versionsId) { | |
| 768 var _url = null; | 1354 var _url = null; |
| 769 var _queryParams = new core.Map(); | 1355 var _queryParams = new core.Map(); |
| 770 var _uploadMedia = null; | 1356 var _uploadMedia = null; |
| 771 var _uploadOptions = null; | 1357 var _uploadOptions = null; |
| 772 var _downloadOptions = commons.DownloadOptions.Metadata; | 1358 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 773 var _body = null; | 1359 var _body = null; |
| 774 | 1360 |
| 775 if (appsId == null) { | 1361 if (appsId == null) { |
| 776 throw new core.ArgumentError("Parameter appsId is required."); | 1362 throw new core.ArgumentError("Parameter appsId is required."); |
| 777 } | 1363 } |
| 778 if (servicesId == null) { | 1364 if (servicesId == null) { |
| 779 throw new core.ArgumentError("Parameter servicesId is required."); | 1365 throw new core.ArgumentError("Parameter servicesId is required."); |
| 780 } | 1366 } |
| 781 if (versionsId == null) { | 1367 if (versionsId == null) { |
| 782 throw new core.ArgumentError("Parameter versionsId is required."); | 1368 throw new core.ArgumentError("Parameter versionsId is required."); |
| 783 } | 1369 } |
| 784 | 1370 |
| 785 _url = 'v1/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/services/'
+ commons.Escaper.ecapeVariable('$servicesId') + '/versions/' + commons.Escaper.
ecapeVariable('$versionsId'); | 1371 _url = 'v1/apps/' + |
| 1372 commons.Escaper.ecapeVariable('$appsId') + |
| 1373 '/services/' + |
| 1374 commons.Escaper.ecapeVariable('$servicesId') + |
| 1375 '/versions/' + |
| 1376 commons.Escaper.ecapeVariable('$versionsId'); |
| 786 | 1377 |
| 787 var _response = _requester.request(_url, | 1378 var _response = _requester.request(_url, "DELETE", |
| 788 "DELETE", | 1379 body: _body, |
| 789 body: _body, | 1380 queryParams: _queryParams, |
| 790 queryParams: _queryParams, | 1381 uploadOptions: _uploadOptions, |
| 791 uploadOptions: _uploadOptions, | 1382 uploadMedia: _uploadMedia, |
| 792 uploadMedia: _uploadMedia, | 1383 downloadOptions: _downloadOptions); |
| 793 downloadOptions: _downloadOptions); | |
| 794 return _response.then((data) => new Operation.fromJson(data)); | 1384 return _response.then((data) => new Operation.fromJson(data)); |
| 795 } | 1385 } |
| 796 | 1386 |
| 797 /** | 1387 /// Gets the specified Version resource. By default, only a BASIC_VIEW will |
| 798 * Gets the specified Version resource. By default, only a BASIC_VIEW will be | 1388 /// be returned. Specify the FULL_VIEW parameter to get the full resource. |
| 799 * returned. Specify the FULL_VIEW parameter to get the full resource. | 1389 /// |
| 800 * | 1390 /// Request parameters: |
| 801 * Request parameters: | 1391 /// |
| 802 * | 1392 /// [appsId] - Part of `name`. Name of the resource requested. Example: |
| 803 * [appsId] - Part of `name`. Name of the resource requested. Example: | 1393 /// apps/myapp/services/default/versions/v1. |
| 804 * apps/myapp/services/default/versions/v1. | 1394 /// |
| 805 * | 1395 /// [servicesId] - Part of `name`. See documentation of `appsId`. |
| 806 * [servicesId] - Part of `name`. See documentation of `appsId`. | 1396 /// |
| 807 * | 1397 /// [versionsId] - Part of `name`. See documentation of `appsId`. |
| 808 * [versionsId] - Part of `name`. See documentation of `appsId`. | 1398 /// |
| 809 * | 1399 /// [view] - Controls the set of fields returned in the Get response. |
| 810 * [view] - Controls the set of fields returned in the Get response. | 1400 /// Possible string values are: |
| 811 * Possible string values are: | 1401 /// - "BASIC" : A BASIC. |
| 812 * - "BASIC" : A BASIC. | 1402 /// - "FULL" : A FULL. |
| 813 * - "FULL" : A FULL. | 1403 /// |
| 814 * | 1404 /// Completes with a [Version]. |
| 815 * Completes with a [Version]. | 1405 /// |
| 816 * | 1406 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 817 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1407 /// an error. |
| 818 * error. | 1408 /// |
| 819 * | 1409 /// If the used [http.Client] completes with an error when making a REST |
| 820 * If the used [http.Client] completes with an error when making a REST call, | 1410 /// call, this method will complete with the same error. |
| 821 * this method will complete with the same error. | 1411 async.Future<Version> get( |
| 822 */ | 1412 core.String appsId, core.String servicesId, core.String versionsId, |
| 823 async.Future<Version> get(core.String appsId, core.String servicesId, core.Str
ing versionsId, {core.String view}) { | 1413 {core.String view}) { |
| 824 var _url = null; | 1414 var _url = null; |
| 825 var _queryParams = new core.Map(); | 1415 var _queryParams = new core.Map(); |
| 826 var _uploadMedia = null; | 1416 var _uploadMedia = null; |
| 827 var _uploadOptions = null; | 1417 var _uploadOptions = null; |
| 828 var _downloadOptions = commons.DownloadOptions.Metadata; | 1418 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 829 var _body = null; | 1419 var _body = null; |
| 830 | 1420 |
| 831 if (appsId == null) { | 1421 if (appsId == null) { |
| 832 throw new core.ArgumentError("Parameter appsId is required."); | 1422 throw new core.ArgumentError("Parameter appsId is required."); |
| 833 } | 1423 } |
| 834 if (servicesId == null) { | 1424 if (servicesId == null) { |
| 835 throw new core.ArgumentError("Parameter servicesId is required."); | 1425 throw new core.ArgumentError("Parameter servicesId is required."); |
| 836 } | 1426 } |
| 837 if (versionsId == null) { | 1427 if (versionsId == null) { |
| 838 throw new core.ArgumentError("Parameter versionsId is required."); | 1428 throw new core.ArgumentError("Parameter versionsId is required."); |
| 839 } | 1429 } |
| 840 if (view != null) { | 1430 if (view != null) { |
| 841 _queryParams["view"] = [view]; | 1431 _queryParams["view"] = [view]; |
| 842 } | 1432 } |
| 843 | 1433 |
| 844 _url = 'v1/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/services/'
+ commons.Escaper.ecapeVariable('$servicesId') + '/versions/' + commons.Escaper.
ecapeVariable('$versionsId'); | 1434 _url = 'v1/apps/' + |
| 1435 commons.Escaper.ecapeVariable('$appsId') + |
| 1436 '/services/' + |
| 1437 commons.Escaper.ecapeVariable('$servicesId') + |
| 1438 '/versions/' + |
| 1439 commons.Escaper.ecapeVariable('$versionsId'); |
| 845 | 1440 |
| 846 var _response = _requester.request(_url, | 1441 var _response = _requester.request(_url, "GET", |
| 847 "GET", | 1442 body: _body, |
| 848 body: _body, | 1443 queryParams: _queryParams, |
| 849 queryParams: _queryParams, | 1444 uploadOptions: _uploadOptions, |
| 850 uploadOptions: _uploadOptions, | 1445 uploadMedia: _uploadMedia, |
| 851 uploadMedia: _uploadMedia, | 1446 downloadOptions: _downloadOptions); |
| 852 downloadOptions: _downloadOptions); | |
| 853 return _response.then((data) => new Version.fromJson(data)); | 1447 return _response.then((data) => new Version.fromJson(data)); |
| 854 } | 1448 } |
| 855 | 1449 |
| 856 /** | 1450 /// Lists the versions of a service. |
| 857 * Lists the versions of a service. | 1451 /// |
| 858 * | 1452 /// Request parameters: |
| 859 * Request parameters: | 1453 /// |
| 860 * | 1454 /// [appsId] - Part of `parent`. Name of the parent Service resource. |
| 861 * [appsId] - Part of `parent`. Name of the parent Service resource. Example: | 1455 /// Example: apps/myapp/services/default. |
| 862 * apps/myapp/services/default. | 1456 /// |
| 863 * | 1457 /// [servicesId] - Part of `parent`. See documentation of `appsId`. |
| 864 * [servicesId] - Part of `parent`. See documentation of `appsId`. | 1458 /// |
| 865 * | 1459 /// [pageToken] - Continuation token for fetching the next page of results. |
| 866 * [pageToken] - Continuation token for fetching the next page of results. | 1460 /// |
| 867 * | 1461 /// [pageSize] - Maximum results to return per page. |
| 868 * [pageSize] - Maximum results to return per page. | 1462 /// |
| 869 * | 1463 /// [view] - Controls the set of fields returned in the List response. |
| 870 * [view] - Controls the set of fields returned in the List response. | 1464 /// Possible string values are: |
| 871 * Possible string values are: | 1465 /// - "BASIC" : A BASIC. |
| 872 * - "BASIC" : A BASIC. | 1466 /// - "FULL" : A FULL. |
| 873 * - "FULL" : A FULL. | 1467 /// |
| 874 * | 1468 /// Completes with a [ListVersionsResponse]. |
| 875 * Completes with a [ListVersionsResponse]. | 1469 /// |
| 876 * | 1470 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 877 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1471 /// an error. |
| 878 * error. | 1472 /// |
| 879 * | 1473 /// If the used [http.Client] completes with an error when making a REST |
| 880 * If the used [http.Client] completes with an error when making a REST call, | 1474 /// call, this method will complete with the same error. |
| 881 * this method will complete with the same error. | 1475 async.Future<ListVersionsResponse> list( |
| 882 */ | 1476 core.String appsId, core.String servicesId, |
| 883 async.Future<ListVersionsResponse> list(core.String appsId, core.String servic
esId, {core.String pageToken, core.int pageSize, core.String view}) { | 1477 {core.String pageToken, core.int pageSize, core.String view}) { |
| 884 var _url = null; | 1478 var _url = null; |
| 885 var _queryParams = new core.Map(); | 1479 var _queryParams = new core.Map(); |
| 886 var _uploadMedia = null; | 1480 var _uploadMedia = null; |
| 887 var _uploadOptions = null; | 1481 var _uploadOptions = null; |
| 888 var _downloadOptions = commons.DownloadOptions.Metadata; | 1482 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 889 var _body = null; | 1483 var _body = null; |
| 890 | 1484 |
| 891 if (appsId == null) { | 1485 if (appsId == null) { |
| 892 throw new core.ArgumentError("Parameter appsId is required."); | 1486 throw new core.ArgumentError("Parameter appsId is required."); |
| 893 } | 1487 } |
| 894 if (servicesId == null) { | 1488 if (servicesId == null) { |
| 895 throw new core.ArgumentError("Parameter servicesId is required."); | 1489 throw new core.ArgumentError("Parameter servicesId is required."); |
| 896 } | 1490 } |
| 897 if (pageToken != null) { | 1491 if (pageToken != null) { |
| 898 _queryParams["pageToken"] = [pageToken]; | 1492 _queryParams["pageToken"] = [pageToken]; |
| 899 } | 1493 } |
| 900 if (pageSize != null) { | 1494 if (pageSize != null) { |
| 901 _queryParams["pageSize"] = ["${pageSize}"]; | 1495 _queryParams["pageSize"] = ["${pageSize}"]; |
| 902 } | 1496 } |
| 903 if (view != null) { | 1497 if (view != null) { |
| 904 _queryParams["view"] = [view]; | 1498 _queryParams["view"] = [view]; |
| 905 } | 1499 } |
| 906 | 1500 |
| 907 _url = 'v1/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/services/'
+ commons.Escaper.ecapeVariable('$servicesId') + '/versions'; | 1501 _url = 'v1/apps/' + |
| 1502 commons.Escaper.ecapeVariable('$appsId') + |
| 1503 '/services/' + |
| 1504 commons.Escaper.ecapeVariable('$servicesId') + |
| 1505 '/versions'; |
| 908 | 1506 |
| 909 var _response = _requester.request(_url, | 1507 var _response = _requester.request(_url, "GET", |
| 910 "GET", | 1508 body: _body, |
| 911 body: _body, | 1509 queryParams: _queryParams, |
| 912 queryParams: _queryParams, | 1510 uploadOptions: _uploadOptions, |
| 913 uploadOptions: _uploadOptions, | 1511 uploadMedia: _uploadMedia, |
| 914 uploadMedia: _uploadMedia, | 1512 downloadOptions: _downloadOptions); |
| 915 downloadOptions: _downloadOptions); | |
| 916 return _response.then((data) => new ListVersionsResponse.fromJson(data)); | 1513 return _response.then((data) => new ListVersionsResponse.fromJson(data)); |
| 917 } | 1514 } |
| 918 | 1515 |
| 919 /** | 1516 /// Updates the specified Version resource. You can specify the following |
| 920 * Updates the specified Version resource. You can specify the following | 1517 /// fields depending on the App Engine environment and type of scaling that |
| 921 * fields depending on the App Engine environment and type of scaling that the | 1518 /// the version resource uses: |
| 922 * version resource uses: | 1519 /// serving_status |
| 923 * serving_status | 1520 /// (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.
services.versions#Version.FIELDS.serving_status): |
| 924 * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.s
ervices.versions#Version.FIELDS.serving_status): | 1521 /// For Version resources that use basic scaling, manual scaling, or run in |
| 925 * For Version resources that use basic scaling, manual scaling, or run in | 1522 /// the App Engine flexible environment. |
| 926 * the App Engine flexible environment. | 1523 /// instance_class |
| 927 * instance_class | 1524 /// (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.
services.versions#Version.FIELDS.instance_class): |
| 928 * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.s
ervices.versions#Version.FIELDS.instance_class): | 1525 /// For Version resources that run in the App Engine standard environment. |
| 929 * For Version resources that run in the App Engine standard environment. | 1526 /// automatic_scaling.min_idle_instances |
| 930 * automatic_scaling.min_idle_instances | 1527 /// (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.
services.versions#Version.FIELDS.automatic_scaling): |
| 931 * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.s
ervices.versions#Version.FIELDS.automatic_scaling): | 1528 /// For Version resources that use automatic scaling and run in the App |
| 932 * For Version resources that use automatic scaling and run in the App Engine | 1529 /// Engine standard environment. |
| 933 * standard environment. | 1530 /// automatic_scaling.max_idle_instances |
| 934 * automatic_scaling.max_idle_instances | 1531 /// (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.
services.versions#Version.FIELDS.automatic_scaling): |
| 935 * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.s
ervices.versions#Version.FIELDS.automatic_scaling): | 1532 /// For Version resources that use automatic scaling and run in the App |
| 936 * For Version resources that use automatic scaling and run in the App Engine | 1533 /// Engine standard environment. |
| 937 * standard environment. | 1534 /// automatic_scaling.min_total_instances |
| 938 * | 1535 /// (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.
services.versions#Version.FIELDS.automatic_scaling): |
| 939 * [request] - The metadata request object. | 1536 /// For Version resources that use automatic scaling and run in the App |
| 940 * | 1537 /// Engine Flexible environment. |
| 941 * Request parameters: | 1538 /// automatic_scaling.max_total_instances |
| 942 * | 1539 /// (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.
services.versions#Version.FIELDS.automatic_scaling): |
| 943 * [appsId] - Part of `name`. Name of the resource to update. Example: | 1540 /// For Version resources that use automatic scaling and run in the App |
| 944 * apps/myapp/services/default/versions/1. | 1541 /// Engine Flexible environment. |
| 945 * | 1542 /// automatic_scaling.cool_down_period_sec |
| 946 * [servicesId] - Part of `name`. See documentation of `appsId`. | 1543 /// (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.
services.versions#Version.FIELDS.automatic_scaling): |
| 947 * | 1544 /// For Version resources that use automatic scaling and run in the App |
| 948 * [versionsId] - Part of `name`. See documentation of `appsId`. | 1545 /// Engine Flexible environment. |
| 949 * | 1546 /// automatic_scaling.cpu_utilization.target_utilization |
| 950 * [updateMask] - Standard field mask for the set of fields to be updated. | 1547 /// (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.
services.versions#Version.FIELDS.automatic_scaling): |
| 951 * | 1548 /// For Version resources that use automatic scaling and run in the App |
| 952 * Completes with a [Operation]. | 1549 /// Engine Flexible environment. |
| 953 * | 1550 /// |
| 954 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1551 /// [request] - The metadata request object. |
| 955 * error. | 1552 /// |
| 956 * | 1553 /// Request parameters: |
| 957 * If the used [http.Client] completes with an error when making a REST call, | 1554 /// |
| 958 * this method will complete with the same error. | 1555 /// [appsId] - Part of `name`. Name of the resource to update. Example: |
| 959 */ | 1556 /// apps/myapp/services/default/versions/1. |
| 960 async.Future<Operation> patch(Version request, core.String appsId, core.String
servicesId, core.String versionsId, {core.String updateMask}) { | 1557 /// |
| 1558 /// [servicesId] - Part of `name`. See documentation of `appsId`. |
| 1559 /// |
| 1560 /// [versionsId] - Part of `name`. See documentation of `appsId`. |
| 1561 /// |
| 1562 /// [updateMask] - Standard field mask for the set of fields to be updated. |
| 1563 /// |
| 1564 /// Completes with a [Operation]. |
| 1565 /// |
| 1566 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 1567 /// an error. |
| 1568 /// |
| 1569 /// If the used [http.Client] completes with an error when making a REST |
| 1570 /// call, this method will complete with the same error. |
| 1571 async.Future<Operation> patch(Version request, core.String appsId, |
| 1572 core.String servicesId, core.String versionsId, |
| 1573 {core.String updateMask}) { |
| 961 var _url = null; | 1574 var _url = null; |
| 962 var _queryParams = new core.Map(); | 1575 var _queryParams = new core.Map(); |
| 963 var _uploadMedia = null; | 1576 var _uploadMedia = null; |
| 964 var _uploadOptions = null; | 1577 var _uploadOptions = null; |
| 965 var _downloadOptions = commons.DownloadOptions.Metadata; | 1578 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 966 var _body = null; | 1579 var _body = null; |
| 967 | 1580 |
| 968 if (request != null) { | 1581 if (request != null) { |
| 969 _body = convert.JSON.encode((request).toJson()); | 1582 _body = convert.JSON.encode((request).toJson()); |
| 970 } | 1583 } |
| 971 if (appsId == null) { | 1584 if (appsId == null) { |
| 972 throw new core.ArgumentError("Parameter appsId is required."); | 1585 throw new core.ArgumentError("Parameter appsId is required."); |
| 973 } | 1586 } |
| 974 if (servicesId == null) { | 1587 if (servicesId == null) { |
| 975 throw new core.ArgumentError("Parameter servicesId is required."); | 1588 throw new core.ArgumentError("Parameter servicesId is required."); |
| 976 } | 1589 } |
| 977 if (versionsId == null) { | 1590 if (versionsId == null) { |
| 978 throw new core.ArgumentError("Parameter versionsId is required."); | 1591 throw new core.ArgumentError("Parameter versionsId is required."); |
| 979 } | 1592 } |
| 980 if (updateMask != null) { | 1593 if (updateMask != null) { |
| 981 _queryParams["updateMask"] = [updateMask]; | 1594 _queryParams["updateMask"] = [updateMask]; |
| 982 } | 1595 } |
| 983 | 1596 |
| 984 _url = 'v1/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/services/'
+ commons.Escaper.ecapeVariable('$servicesId') + '/versions/' + commons.Escaper.
ecapeVariable('$versionsId'); | 1597 _url = 'v1/apps/' + |
| 1598 commons.Escaper.ecapeVariable('$appsId') + |
| 1599 '/services/' + |
| 1600 commons.Escaper.ecapeVariable('$servicesId') + |
| 1601 '/versions/' + |
| 1602 commons.Escaper.ecapeVariable('$versionsId'); |
| 985 | 1603 |
| 986 var _response = _requester.request(_url, | 1604 var _response = _requester.request(_url, "PATCH", |
| 987 "PATCH", | 1605 body: _body, |
| 988 body: _body, | 1606 queryParams: _queryParams, |
| 989 queryParams: _queryParams, | 1607 uploadOptions: _uploadOptions, |
| 990 uploadOptions: _uploadOptions, | 1608 uploadMedia: _uploadMedia, |
| 991 uploadMedia: _uploadMedia, | 1609 downloadOptions: _downloadOptions); |
| 992 downloadOptions: _downloadOptions); | |
| 993 return _response.then((data) => new Operation.fromJson(data)); | 1610 return _response.then((data) => new Operation.fromJson(data)); |
| 994 } | 1611 } |
| 995 | |
| 996 } | 1612 } |
| 997 | 1613 |
| 998 | |
| 999 class AppsServicesVersionsInstancesResourceApi { | 1614 class AppsServicesVersionsInstancesResourceApi { |
| 1000 final commons.ApiRequester _requester; | 1615 final commons.ApiRequester _requester; |
| 1001 | 1616 |
| 1002 AppsServicesVersionsInstancesResourceApi(commons.ApiRequester client) : | 1617 AppsServicesVersionsInstancesResourceApi(commons.ApiRequester client) |
| 1003 _requester = client; | 1618 : _requester = client; |
| 1004 | 1619 |
| 1005 /** | 1620 /// Enables debugging on a VM instance. This allows you to use the SSH |
| 1006 * Enables debugging on a VM instance. This allows you to use the SSH command | 1621 /// command to connect to the virtual machine where the instance lives. While |
| 1007 * to connect to the virtual machine where the instance lives. While in "debug | 1622 /// in "debug mode", the instance continues to serve live traffic. You should |
| 1008 * mode", the instance continues to serve live traffic. You should delete the | 1623 /// delete the instance when you are done debugging and then allow the system |
| 1009 * instance when you are done debugging and then allow the system to take over | 1624 /// to take over and determine if another instance should be started.Only |
| 1010 * and determine if another instance should be started.Only applicable for | 1625 /// applicable for instances in App Engine flexible environment. |
| 1011 * instances in App Engine flexible environment. | 1626 /// |
| 1012 * | 1627 /// [request] - The metadata request object. |
| 1013 * [request] - The metadata request object. | 1628 /// |
| 1014 * | 1629 /// Request parameters: |
| 1015 * Request parameters: | 1630 /// |
| 1016 * | 1631 /// [appsId] - Part of `name`. Name of the resource requested. Example: |
| 1017 * [appsId] - Part of `name`. Name of the resource requested. Example: | 1632 /// apps/myapp/services/default/versions/v1/instances/instance-1. |
| 1018 * apps/myapp/services/default/versions/v1/instances/instance-1. | 1633 /// |
| 1019 * | 1634 /// [servicesId] - Part of `name`. See documentation of `appsId`. |
| 1020 * [servicesId] - Part of `name`. See documentation of `appsId`. | 1635 /// |
| 1021 * | 1636 /// [versionsId] - Part of `name`. See documentation of `appsId`. |
| 1022 * [versionsId] - Part of `name`. See documentation of `appsId`. | 1637 /// |
| 1023 * | 1638 /// [instancesId] - Part of `name`. See documentation of `appsId`. |
| 1024 * [instancesId] - Part of `name`. See documentation of `appsId`. | 1639 /// |
| 1025 * | 1640 /// Completes with a [Operation]. |
| 1026 * Completes with a [Operation]. | 1641 /// |
| 1027 * | 1642 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 1028 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1643 /// an error. |
| 1029 * error. | 1644 /// |
| 1030 * | 1645 /// If the used [http.Client] completes with an error when making a REST |
| 1031 * If the used [http.Client] completes with an error when making a REST call, | 1646 /// call, this method will complete with the same error. |
| 1032 * this method will complete with the same error. | 1647 async.Future<Operation> debug( |
| 1033 */ | 1648 DebugInstanceRequest request, |
| 1034 async.Future<Operation> debug(DebugInstanceRequest request, core.String appsId
, core.String servicesId, core.String versionsId, core.String instancesId) { | 1649 core.String appsId, |
| 1650 core.String servicesId, |
| 1651 core.String versionsId, |
| 1652 core.String instancesId) { |
| 1035 var _url = null; | 1653 var _url = null; |
| 1036 var _queryParams = new core.Map(); | 1654 var _queryParams = new core.Map(); |
| 1037 var _uploadMedia = null; | 1655 var _uploadMedia = null; |
| 1038 var _uploadOptions = null; | 1656 var _uploadOptions = null; |
| 1039 var _downloadOptions = commons.DownloadOptions.Metadata; | 1657 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1040 var _body = null; | 1658 var _body = null; |
| 1041 | 1659 |
| 1042 if (request != null) { | 1660 if (request != null) { |
| 1043 _body = convert.JSON.encode((request).toJson()); | 1661 _body = convert.JSON.encode((request).toJson()); |
| 1044 } | 1662 } |
| 1045 if (appsId == null) { | 1663 if (appsId == null) { |
| 1046 throw new core.ArgumentError("Parameter appsId is required."); | 1664 throw new core.ArgumentError("Parameter appsId is required."); |
| 1047 } | 1665 } |
| 1048 if (servicesId == null) { | 1666 if (servicesId == null) { |
| 1049 throw new core.ArgumentError("Parameter servicesId is required."); | 1667 throw new core.ArgumentError("Parameter servicesId is required."); |
| 1050 } | 1668 } |
| 1051 if (versionsId == null) { | 1669 if (versionsId == null) { |
| 1052 throw new core.ArgumentError("Parameter versionsId is required."); | 1670 throw new core.ArgumentError("Parameter versionsId is required."); |
| 1053 } | 1671 } |
| 1054 if (instancesId == null) { | 1672 if (instancesId == null) { |
| 1055 throw new core.ArgumentError("Parameter instancesId is required."); | 1673 throw new core.ArgumentError("Parameter instancesId is required."); |
| 1056 } | 1674 } |
| 1057 | 1675 |
| 1058 _url = 'v1/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/services/'
+ commons.Escaper.ecapeVariable('$servicesId') + '/versions/' + commons.Escaper.
ecapeVariable('$versionsId') + '/instances/' + commons.Escaper.ecapeVariable('$i
nstancesId') + ':debug'; | 1676 _url = 'v1/apps/' + |
| 1677 commons.Escaper.ecapeVariable('$appsId') + |
| 1678 '/services/' + |
| 1679 commons.Escaper.ecapeVariable('$servicesId') + |
| 1680 '/versions/' + |
| 1681 commons.Escaper.ecapeVariable('$versionsId') + |
| 1682 '/instances/' + |
| 1683 commons.Escaper.ecapeVariable('$instancesId') + |
| 1684 ':debug'; |
| 1059 | 1685 |
| 1060 var _response = _requester.request(_url, | 1686 var _response = _requester.request(_url, "POST", |
| 1061 "POST", | 1687 body: _body, |
| 1062 body: _body, | 1688 queryParams: _queryParams, |
| 1063 queryParams: _queryParams, | 1689 uploadOptions: _uploadOptions, |
| 1064 uploadOptions: _uploadOptions, | 1690 uploadMedia: _uploadMedia, |
| 1065 uploadMedia: _uploadMedia, | 1691 downloadOptions: _downloadOptions); |
| 1066 downloadOptions: _downloadOptions); | |
| 1067 return _response.then((data) => new Operation.fromJson(data)); | 1692 return _response.then((data) => new Operation.fromJson(data)); |
| 1068 } | 1693 } |
| 1069 | 1694 |
| 1070 /** | 1695 /// Stops a running instance. |
| 1071 * Stops a running instance. | 1696 /// |
| 1072 * | 1697 /// Request parameters: |
| 1073 * Request parameters: | 1698 /// |
| 1074 * | 1699 /// [appsId] - Part of `name`. Name of the resource requested. Example: |
| 1075 * [appsId] - Part of `name`. Name of the resource requested. Example: | 1700 /// apps/myapp/services/default/versions/v1/instances/instance-1. |
| 1076 * apps/myapp/services/default/versions/v1/instances/instance-1. | 1701 /// |
| 1077 * | 1702 /// [servicesId] - Part of `name`. See documentation of `appsId`. |
| 1078 * [servicesId] - Part of `name`. See documentation of `appsId`. | 1703 /// |
| 1079 * | 1704 /// [versionsId] - Part of `name`. See documentation of `appsId`. |
| 1080 * [versionsId] - Part of `name`. See documentation of `appsId`. | 1705 /// |
| 1081 * | 1706 /// [instancesId] - Part of `name`. See documentation of `appsId`. |
| 1082 * [instancesId] - Part of `name`. See documentation of `appsId`. | 1707 /// |
| 1083 * | 1708 /// Completes with a [Operation]. |
| 1084 * Completes with a [Operation]. | 1709 /// |
| 1085 * | 1710 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 1086 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1711 /// an error. |
| 1087 * error. | 1712 /// |
| 1088 * | 1713 /// If the used [http.Client] completes with an error when making a REST |
| 1089 * If the used [http.Client] completes with an error when making a REST call, | 1714 /// call, this method will complete with the same error. |
| 1090 * this method will complete with the same error. | 1715 async.Future<Operation> delete(core.String appsId, core.String servicesId, |
| 1091 */ | 1716 core.String versionsId, core.String instancesId) { |
| 1092 async.Future<Operation> delete(core.String appsId, core.String servicesId, cor
e.String versionsId, core.String instancesId) { | |
| 1093 var _url = null; | 1717 var _url = null; |
| 1094 var _queryParams = new core.Map(); | 1718 var _queryParams = new core.Map(); |
| 1095 var _uploadMedia = null; | 1719 var _uploadMedia = null; |
| 1096 var _uploadOptions = null; | 1720 var _uploadOptions = null; |
| 1097 var _downloadOptions = commons.DownloadOptions.Metadata; | 1721 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1098 var _body = null; | 1722 var _body = null; |
| 1099 | 1723 |
| 1100 if (appsId == null) { | 1724 if (appsId == null) { |
| 1101 throw new core.ArgumentError("Parameter appsId is required."); | 1725 throw new core.ArgumentError("Parameter appsId is required."); |
| 1102 } | 1726 } |
| 1103 if (servicesId == null) { | 1727 if (servicesId == null) { |
| 1104 throw new core.ArgumentError("Parameter servicesId is required."); | 1728 throw new core.ArgumentError("Parameter servicesId is required."); |
| 1105 } | 1729 } |
| 1106 if (versionsId == null) { | 1730 if (versionsId == null) { |
| 1107 throw new core.ArgumentError("Parameter versionsId is required."); | 1731 throw new core.ArgumentError("Parameter versionsId is required."); |
| 1108 } | 1732 } |
| 1109 if (instancesId == null) { | 1733 if (instancesId == null) { |
| 1110 throw new core.ArgumentError("Parameter instancesId is required."); | 1734 throw new core.ArgumentError("Parameter instancesId is required."); |
| 1111 } | 1735 } |
| 1112 | 1736 |
| 1113 _url = 'v1/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/services/'
+ commons.Escaper.ecapeVariable('$servicesId') + '/versions/' + commons.Escaper.
ecapeVariable('$versionsId') + '/instances/' + commons.Escaper.ecapeVariable('$i
nstancesId'); | 1737 _url = 'v1/apps/' + |
| 1738 commons.Escaper.ecapeVariable('$appsId') + |
| 1739 '/services/' + |
| 1740 commons.Escaper.ecapeVariable('$servicesId') + |
| 1741 '/versions/' + |
| 1742 commons.Escaper.ecapeVariable('$versionsId') + |
| 1743 '/instances/' + |
| 1744 commons.Escaper.ecapeVariable('$instancesId'); |
| 1114 | 1745 |
| 1115 var _response = _requester.request(_url, | 1746 var _response = _requester.request(_url, "DELETE", |
| 1116 "DELETE", | 1747 body: _body, |
| 1117 body: _body, | 1748 queryParams: _queryParams, |
| 1118 queryParams: _queryParams, | 1749 uploadOptions: _uploadOptions, |
| 1119 uploadOptions: _uploadOptions, | 1750 uploadMedia: _uploadMedia, |
| 1120 uploadMedia: _uploadMedia, | 1751 downloadOptions: _downloadOptions); |
| 1121 downloadOptions: _downloadOptions); | |
| 1122 return _response.then((data) => new Operation.fromJson(data)); | 1752 return _response.then((data) => new Operation.fromJson(data)); |
| 1123 } | 1753 } |
| 1124 | 1754 |
| 1125 /** | 1755 /// Gets instance information. |
| 1126 * Gets instance information. | 1756 /// |
| 1127 * | 1757 /// Request parameters: |
| 1128 * Request parameters: | 1758 /// |
| 1129 * | 1759 /// [appsId] - Part of `name`. Name of the resource requested. Example: |
| 1130 * [appsId] - Part of `name`. Name of the resource requested. Example: | 1760 /// apps/myapp/services/default/versions/v1/instances/instance-1. |
| 1131 * apps/myapp/services/default/versions/v1/instances/instance-1. | 1761 /// |
| 1132 * | 1762 /// [servicesId] - Part of `name`. See documentation of `appsId`. |
| 1133 * [servicesId] - Part of `name`. See documentation of `appsId`. | 1763 /// |
| 1134 * | 1764 /// [versionsId] - Part of `name`. See documentation of `appsId`. |
| 1135 * [versionsId] - Part of `name`. See documentation of `appsId`. | 1765 /// |
| 1136 * | 1766 /// [instancesId] - Part of `name`. See documentation of `appsId`. |
| 1137 * [instancesId] - Part of `name`. See documentation of `appsId`. | 1767 /// |
| 1138 * | 1768 /// Completes with a [Instance]. |
| 1139 * Completes with a [Instance]. | 1769 /// |
| 1140 * | 1770 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 1141 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1771 /// an error. |
| 1142 * error. | 1772 /// |
| 1143 * | 1773 /// If the used [http.Client] completes with an error when making a REST |
| 1144 * If the used [http.Client] completes with an error when making a REST call, | 1774 /// call, this method will complete with the same error. |
| 1145 * this method will complete with the same error. | 1775 async.Future<Instance> get(core.String appsId, core.String servicesId, |
| 1146 */ | 1776 core.String versionsId, core.String instancesId) { |
| 1147 async.Future<Instance> get(core.String appsId, core.String servicesId, core.St
ring versionsId, core.String instancesId) { | |
| 1148 var _url = null; | 1777 var _url = null; |
| 1149 var _queryParams = new core.Map(); | 1778 var _queryParams = new core.Map(); |
| 1150 var _uploadMedia = null; | 1779 var _uploadMedia = null; |
| 1151 var _uploadOptions = null; | 1780 var _uploadOptions = null; |
| 1152 var _downloadOptions = commons.DownloadOptions.Metadata; | 1781 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1153 var _body = null; | 1782 var _body = null; |
| 1154 | 1783 |
| 1155 if (appsId == null) { | 1784 if (appsId == null) { |
| 1156 throw new core.ArgumentError("Parameter appsId is required."); | 1785 throw new core.ArgumentError("Parameter appsId is required."); |
| 1157 } | 1786 } |
| 1158 if (servicesId == null) { | 1787 if (servicesId == null) { |
| 1159 throw new core.ArgumentError("Parameter servicesId is required."); | 1788 throw new core.ArgumentError("Parameter servicesId is required."); |
| 1160 } | 1789 } |
| 1161 if (versionsId == null) { | 1790 if (versionsId == null) { |
| 1162 throw new core.ArgumentError("Parameter versionsId is required."); | 1791 throw new core.ArgumentError("Parameter versionsId is required."); |
| 1163 } | 1792 } |
| 1164 if (instancesId == null) { | 1793 if (instancesId == null) { |
| 1165 throw new core.ArgumentError("Parameter instancesId is required."); | 1794 throw new core.ArgumentError("Parameter instancesId is required."); |
| 1166 } | 1795 } |
| 1167 | 1796 |
| 1168 _url = 'v1/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/services/'
+ commons.Escaper.ecapeVariable('$servicesId') + '/versions/' + commons.Escaper.
ecapeVariable('$versionsId') + '/instances/' + commons.Escaper.ecapeVariable('$i
nstancesId'); | 1797 _url = 'v1/apps/' + |
| 1798 commons.Escaper.ecapeVariable('$appsId') + |
| 1799 '/services/' + |
| 1800 commons.Escaper.ecapeVariable('$servicesId') + |
| 1801 '/versions/' + |
| 1802 commons.Escaper.ecapeVariable('$versionsId') + |
| 1803 '/instances/' + |
| 1804 commons.Escaper.ecapeVariable('$instancesId'); |
| 1169 | 1805 |
| 1170 var _response = _requester.request(_url, | 1806 var _response = _requester.request(_url, "GET", |
| 1171 "GET", | 1807 body: _body, |
| 1172 body: _body, | 1808 queryParams: _queryParams, |
| 1173 queryParams: _queryParams, | 1809 uploadOptions: _uploadOptions, |
| 1174 uploadOptions: _uploadOptions, | 1810 uploadMedia: _uploadMedia, |
| 1175 uploadMedia: _uploadMedia, | 1811 downloadOptions: _downloadOptions); |
| 1176 downloadOptions: _downloadOptions); | |
| 1177 return _response.then((data) => new Instance.fromJson(data)); | 1812 return _response.then((data) => new Instance.fromJson(data)); |
| 1178 } | 1813 } |
| 1179 | 1814 |
| 1180 /** | 1815 /// Lists the instances of a version.Tip: To aggregate details about |
| 1181 * Lists the instances of a version.Tip: To aggregate details about instances | 1816 /// instances over time, see the Stackdriver Monitoring API |
| 1182 * over time, see the Stackdriver Monitoring API | 1817 /// (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSerie
s/list). |
| 1183 * (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries
/list). | 1818 /// |
| 1184 * | 1819 /// Request parameters: |
| 1185 * Request parameters: | 1820 /// |
| 1186 * | 1821 /// [appsId] - Part of `parent`. Name of the parent Version resource. |
| 1187 * [appsId] - Part of `parent`. Name of the parent Version resource. Example: | 1822 /// Example: apps/myapp/services/default/versions/v1. |
| 1188 * apps/myapp/services/default/versions/v1. | 1823 /// |
| 1189 * | 1824 /// [servicesId] - Part of `parent`. See documentation of `appsId`. |
| 1190 * [servicesId] - Part of `parent`. See documentation of `appsId`. | 1825 /// |
| 1191 * | 1826 /// [versionsId] - Part of `parent`. See documentation of `appsId`. |
| 1192 * [versionsId] - Part of `parent`. See documentation of `appsId`. | 1827 /// |
| 1193 * | 1828 /// [pageToken] - Continuation token for fetching the next page of results. |
| 1194 * [pageToken] - Continuation token for fetching the next page of results. | 1829 /// |
| 1195 * | 1830 /// [pageSize] - Maximum results to return per page. |
| 1196 * [pageSize] - Maximum results to return per page. | 1831 /// |
| 1197 * | 1832 /// Completes with a [ListInstancesResponse]. |
| 1198 * Completes with a [ListInstancesResponse]. | 1833 /// |
| 1199 * | 1834 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 1200 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1835 /// an error. |
| 1201 * error. | 1836 /// |
| 1202 * | 1837 /// If the used [http.Client] completes with an error when making a REST |
| 1203 * If the used [http.Client] completes with an error when making a REST call, | 1838 /// call, this method will complete with the same error. |
| 1204 * this method will complete with the same error. | 1839 async.Future<ListInstancesResponse> list( |
| 1205 */ | 1840 core.String appsId, core.String servicesId, core.String versionsId, |
| 1206 async.Future<ListInstancesResponse> list(core.String appsId, core.String servi
cesId, core.String versionsId, {core.String pageToken, core.int pageSize}) { | 1841 {core.String pageToken, core.int pageSize}) { |
| 1207 var _url = null; | 1842 var _url = null; |
| 1208 var _queryParams = new core.Map(); | 1843 var _queryParams = new core.Map(); |
| 1209 var _uploadMedia = null; | 1844 var _uploadMedia = null; |
| 1210 var _uploadOptions = null; | 1845 var _uploadOptions = null; |
| 1211 var _downloadOptions = commons.DownloadOptions.Metadata; | 1846 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1212 var _body = null; | 1847 var _body = null; |
| 1213 | 1848 |
| 1214 if (appsId == null) { | 1849 if (appsId == null) { |
| 1215 throw new core.ArgumentError("Parameter appsId is required."); | 1850 throw new core.ArgumentError("Parameter appsId is required."); |
| 1216 } | 1851 } |
| 1217 if (servicesId == null) { | 1852 if (servicesId == null) { |
| 1218 throw new core.ArgumentError("Parameter servicesId is required."); | 1853 throw new core.ArgumentError("Parameter servicesId is required."); |
| 1219 } | 1854 } |
| 1220 if (versionsId == null) { | 1855 if (versionsId == null) { |
| 1221 throw new core.ArgumentError("Parameter versionsId is required."); | 1856 throw new core.ArgumentError("Parameter versionsId is required."); |
| 1222 } | 1857 } |
| 1223 if (pageToken != null) { | 1858 if (pageToken != null) { |
| 1224 _queryParams["pageToken"] = [pageToken]; | 1859 _queryParams["pageToken"] = [pageToken]; |
| 1225 } | 1860 } |
| 1226 if (pageSize != null) { | 1861 if (pageSize != null) { |
| 1227 _queryParams["pageSize"] = ["${pageSize}"]; | 1862 _queryParams["pageSize"] = ["${pageSize}"]; |
| 1228 } | 1863 } |
| 1229 | 1864 |
| 1230 _url = 'v1/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/services/'
+ commons.Escaper.ecapeVariable('$servicesId') + '/versions/' + commons.Escaper.
ecapeVariable('$versionsId') + '/instances'; | 1865 _url = 'v1/apps/' + |
| 1866 commons.Escaper.ecapeVariable('$appsId') + |
| 1867 '/services/' + |
| 1868 commons.Escaper.ecapeVariable('$servicesId') + |
| 1869 '/versions/' + |
| 1870 commons.Escaper.ecapeVariable('$versionsId') + |
| 1871 '/instances'; |
| 1231 | 1872 |
| 1232 var _response = _requester.request(_url, | 1873 var _response = _requester.request(_url, "GET", |
| 1233 "GET", | 1874 body: _body, |
| 1234 body: _body, | 1875 queryParams: _queryParams, |
| 1235 queryParams: _queryParams, | 1876 uploadOptions: _uploadOptions, |
| 1236 uploadOptions: _uploadOptions, | 1877 uploadMedia: _uploadMedia, |
| 1237 uploadMedia: _uploadMedia, | 1878 downloadOptions: _downloadOptions); |
| 1238 downloadOptions: _downloadOptions); | |
| 1239 return _response.then((data) => new ListInstancesResponse.fromJson(data)); | 1879 return _response.then((data) => new ListInstancesResponse.fromJson(data)); |
| 1240 } | 1880 } |
| 1241 | |
| 1242 } | 1881 } |
| 1243 | 1882 |
| 1883 /// Google Cloud Endpoints |
| 1884 /// (https://cloud.google.com/appengine/docs/python/endpoints/) configuration |
| 1885 /// for API handlers. |
| 1886 class ApiConfigHandler { |
| 1887 /// Action to take when users access resources that require authentication. |
| 1888 /// Defaults to redirect. |
| 1889 /// Possible string values are: |
| 1890 /// - "AUTH_FAIL_ACTION_UNSPECIFIED" : Not specified. |
| 1891 /// AUTH_FAIL_ACTION_REDIRECT is assumed. |
| 1892 /// - "AUTH_FAIL_ACTION_REDIRECT" : Redirects user to "accounts.google.com". |
| 1893 /// The user is redirected back to the application URL after signing in or |
| 1894 /// creating an account. |
| 1895 /// - "AUTH_FAIL_ACTION_UNAUTHORIZED" : Rejects request with a 401 HTTP |
| 1896 /// status code and an error message. |
| 1897 core.String authFailAction; |
| 1244 | 1898 |
| 1899 /// Level of login required to access this resource. Defaults to optional. |
| 1900 /// Possible string values are: |
| 1901 /// - "LOGIN_UNSPECIFIED" : Not specified. LOGIN_OPTIONAL is assumed. |
| 1902 /// - "LOGIN_OPTIONAL" : Does not require that the user is signed in. |
| 1903 /// - "LOGIN_ADMIN" : If the user is not signed in, the auth_fail_action is |
| 1904 /// taken. In addition, if the user is not an administrator for the |
| 1905 /// application, they are given an error message regardless of |
| 1906 /// auth_fail_action. If the user is an administrator, the handler proceeds. |
| 1907 /// - "LOGIN_REQUIRED" : If the user has signed in, the handler proceeds |
| 1908 /// normally. Otherwise, the auth_fail_action is taken. |
| 1909 core.String login; |
| 1245 | 1910 |
| 1246 /** | 1911 /// Path to the script from the application root directory. |
| 1247 * Google Cloud Endpoints | |
| 1248 * (https://cloud.google.com/appengine/docs/python/endpoints/) configuration for | |
| 1249 * API handlers. | |
| 1250 */ | |
| 1251 class ApiConfigHandler { | |
| 1252 /** | |
| 1253 * Action to take when users access resources that require authentication. | |
| 1254 * Defaults to redirect. | |
| 1255 * Possible string values are: | |
| 1256 * - "AUTH_FAIL_ACTION_UNSPECIFIED" : Not specified. AUTH_FAIL_ACTION_REDIRECT | |
| 1257 * is assumed. | |
| 1258 * - "AUTH_FAIL_ACTION_REDIRECT" : Redirects user to "accounts.google.com". | |
| 1259 * The user is redirected back to the application URL after signing in or | |
| 1260 * creating an account. | |
| 1261 * - "AUTH_FAIL_ACTION_UNAUTHORIZED" : Rejects request with a 401 HTTP status | |
| 1262 * code and an error message. | |
| 1263 */ | |
| 1264 core.String authFailAction; | |
| 1265 /** | |
| 1266 * Level of login required to access this resource. Defaults to optional. | |
| 1267 * Possible string values are: | |
| 1268 * - "LOGIN_UNSPECIFIED" : Not specified. LOGIN_OPTIONAL is assumed. | |
| 1269 * - "LOGIN_OPTIONAL" : Does not require that the user is signed in. | |
| 1270 * - "LOGIN_ADMIN" : If the user is not signed in, the auth_fail_action is | |
| 1271 * taken. In addition, if the user is not an administrator for the | |
| 1272 * application, they are given an error message regardless of | |
| 1273 * auth_fail_action. If the user is an administrator, the handler proceeds. | |
| 1274 * - "LOGIN_REQUIRED" : If the user has signed in, the handler proceeds | |
| 1275 * normally. Otherwise, the auth_fail_action is taken. | |
| 1276 */ | |
| 1277 core.String login; | |
| 1278 /** Path to the script from the application root directory. */ | |
| 1279 core.String script; | 1912 core.String script; |
| 1280 /** | 1913 |
| 1281 * Security (HTTPS) enforcement for this URL. | 1914 /// Security (HTTPS) enforcement for this URL. |
| 1282 * Possible string values are: | 1915 /// Possible string values are: |
| 1283 * - "SECURE_UNSPECIFIED" : Not specified. | 1916 /// - "SECURE_UNSPECIFIED" : Not specified. |
| 1284 * - "SECURE_DEFAULT" : Both HTTP and HTTPS requests with URLs that match the | 1917 /// - "SECURE_DEFAULT" : Both HTTP and HTTPS requests with URLs that match |
| 1285 * handler succeed without redirects. The application can examine the request | 1918 /// the handler succeed without redirects. The application can examine the |
| 1286 * to determine which protocol was used, and respond accordingly. | 1919 /// request to determine which protocol was used, and respond accordingly. |
| 1287 * - "SECURE_NEVER" : Requests for a URL that match this handler that use | 1920 /// - "SECURE_NEVER" : Requests for a URL that match this handler that use |
| 1288 * HTTPS are automatically redirected to the HTTP equivalent URL. | 1921 /// HTTPS are automatically redirected to the HTTP equivalent URL. |
| 1289 * - "SECURE_OPTIONAL" : Both HTTP and HTTPS requests with URLs that match the | 1922 /// - "SECURE_OPTIONAL" : Both HTTP and HTTPS requests with URLs that match |
| 1290 * handler succeed without redirects. The application can examine the request | 1923 /// the handler succeed without redirects. The application can examine the |
| 1291 * to determine which protocol was used and respond accordingly. | 1924 /// request to determine which protocol was used and respond accordingly. |
| 1292 * - "SECURE_ALWAYS" : Requests for a URL that match this handler that do not | 1925 /// - "SECURE_ALWAYS" : Requests for a URL that match this handler that do |
| 1293 * use HTTPS are automatically redirected to the HTTPS URL with the same path. | 1926 /// not use HTTPS are automatically redirected to the HTTPS URL with the same |
| 1294 * Query parameters are reserved for the redirect. | 1927 /// path. Query parameters are reserved for the redirect. |
| 1295 */ | |
| 1296 core.String securityLevel; | 1928 core.String securityLevel; |
| 1297 /** URL to serve the endpoint at. */ | 1929 |
| 1930 /// URL to serve the endpoint at. |
| 1298 core.String url; | 1931 core.String url; |
| 1299 | 1932 |
| 1300 ApiConfigHandler(); | 1933 ApiConfigHandler(); |
| 1301 | 1934 |
| 1302 ApiConfigHandler.fromJson(core.Map _json) { | 1935 ApiConfigHandler.fromJson(core.Map _json) { |
| 1303 if (_json.containsKey("authFailAction")) { | 1936 if (_json.containsKey("authFailAction")) { |
| 1304 authFailAction = _json["authFailAction"]; | 1937 authFailAction = _json["authFailAction"]; |
| 1305 } | 1938 } |
| 1306 if (_json.containsKey("login")) { | 1939 if (_json.containsKey("login")) { |
| 1307 login = _json["login"]; | 1940 login = _json["login"]; |
| 1308 } | 1941 } |
| 1309 if (_json.containsKey("script")) { | 1942 if (_json.containsKey("script")) { |
| 1310 script = _json["script"]; | 1943 script = _json["script"]; |
| 1311 } | 1944 } |
| 1312 if (_json.containsKey("securityLevel")) { | 1945 if (_json.containsKey("securityLevel")) { |
| 1313 securityLevel = _json["securityLevel"]; | 1946 securityLevel = _json["securityLevel"]; |
| 1314 } | 1947 } |
| 1315 if (_json.containsKey("url")) { | 1948 if (_json.containsKey("url")) { |
| 1316 url = _json["url"]; | 1949 url = _json["url"]; |
| 1317 } | 1950 } |
| 1318 } | 1951 } |
| 1319 | 1952 |
| 1320 core.Map<core.String, core.Object> toJson() { | 1953 core.Map<core.String, core.Object> toJson() { |
| 1321 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1954 final core.Map<core.String, core.Object> _json = |
| 1955 new core.Map<core.String, core.Object>(); |
| 1322 if (authFailAction != null) { | 1956 if (authFailAction != null) { |
| 1323 _json["authFailAction"] = authFailAction; | 1957 _json["authFailAction"] = authFailAction; |
| 1324 } | 1958 } |
| 1325 if (login != null) { | 1959 if (login != null) { |
| 1326 _json["login"] = login; | 1960 _json["login"] = login; |
| 1327 } | 1961 } |
| 1328 if (script != null) { | 1962 if (script != null) { |
| 1329 _json["script"] = script; | 1963 _json["script"] = script; |
| 1330 } | 1964 } |
| 1331 if (securityLevel != null) { | 1965 if (securityLevel != null) { |
| 1332 _json["securityLevel"] = securityLevel; | 1966 _json["securityLevel"] = securityLevel; |
| 1333 } | 1967 } |
| 1334 if (url != null) { | 1968 if (url != null) { |
| 1335 _json["url"] = url; | 1969 _json["url"] = url; |
| 1336 } | 1970 } |
| 1337 return _json; | 1971 return _json; |
| 1338 } | 1972 } |
| 1339 } | 1973 } |
| 1340 | 1974 |
| 1341 /** Uses Google Cloud Endpoints to handle requests. */ | 1975 /// Uses Google Cloud Endpoints to handle requests. |
| 1342 class ApiEndpointHandler { | 1976 class ApiEndpointHandler { |
| 1343 /** Path to the script from the application root directory. */ | 1977 /// Path to the script from the application root directory. |
| 1344 core.String scriptPath; | 1978 core.String scriptPath; |
| 1345 | 1979 |
| 1346 ApiEndpointHandler(); | 1980 ApiEndpointHandler(); |
| 1347 | 1981 |
| 1348 ApiEndpointHandler.fromJson(core.Map _json) { | 1982 ApiEndpointHandler.fromJson(core.Map _json) { |
| 1349 if (_json.containsKey("scriptPath")) { | 1983 if (_json.containsKey("scriptPath")) { |
| 1350 scriptPath = _json["scriptPath"]; | 1984 scriptPath = _json["scriptPath"]; |
| 1351 } | 1985 } |
| 1352 } | 1986 } |
| 1353 | 1987 |
| 1354 core.Map<core.String, core.Object> toJson() { | 1988 core.Map<core.String, core.Object> toJson() { |
| 1355 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1989 final core.Map<core.String, core.Object> _json = |
| 1990 new core.Map<core.String, core.Object>(); |
| 1356 if (scriptPath != null) { | 1991 if (scriptPath != null) { |
| 1357 _json["scriptPath"] = scriptPath; | 1992 _json["scriptPath"] = scriptPath; |
| 1358 } | 1993 } |
| 1359 return _json; | 1994 return _json; |
| 1360 } | 1995 } |
| 1361 } | 1996 } |
| 1362 | 1997 |
| 1363 /** | 1998 /// An Application resource contains the top-level configuration of an App |
| 1364 * An Application resource contains the top-level configuration of an App Engine | 1999 /// Engine application. Next tag: 20 |
| 1365 * application. Next tag: 20 | |
| 1366 */ | |
| 1367 class Application { | 2000 class Application { |
| 1368 /** | 2001 /// Google Apps authentication domain that controls which users can access |
| 1369 * Google Apps authentication domain that controls which users can access this | 2002 /// this application.Defaults to open access for any Google Account. |
| 1370 * application.Defaults to open access for any Google Account. | |
| 1371 */ | |
| 1372 core.String authDomain; | 2003 core.String authDomain; |
| 1373 /** | 2004 |
| 1374 * Google Cloud Storage bucket that can be used for storing files associated | 2005 /// Google Cloud Storage bucket that can be used for storing files associated |
| 1375 * with this application. This bucket is associated with the application and | 2006 /// with this application. This bucket is associated with the application and |
| 1376 * can be used by the gcloud deployment commands.@OutputOnly | 2007 /// can be used by the gcloud deployment commands.@OutputOnly |
| 1377 */ | |
| 1378 core.String codeBucket; | 2008 core.String codeBucket; |
| 1379 /** | 2009 |
| 1380 * Google Cloud Storage bucket that can be used by this application to store | 2010 /// Google Cloud Storage bucket that can be used by this application to store |
| 1381 * content.@OutputOnly | 2011 /// content.@OutputOnly |
| 1382 */ | |
| 1383 core.String defaultBucket; | 2012 core.String defaultBucket; |
| 1384 /** Cookie expiration policy for this application. */ | 2013 |
| 2014 /// Cookie expiration policy for this application. |
| 1385 core.String defaultCookieExpiration; | 2015 core.String defaultCookieExpiration; |
| 1386 /** | 2016 |
| 1387 * Hostname used to reach this application, as resolved by App | 2017 /// Hostname used to reach this application, as resolved by App |
| 1388 * Engine.@OutputOnly | 2018 /// Engine.@OutputOnly |
| 1389 */ | |
| 1390 core.String defaultHostname; | 2019 core.String defaultHostname; |
| 1391 /** | 2020 |
| 1392 * HTTP path dispatch rules for requests to the application that do not | 2021 /// HTTP path dispatch rules for requests to the application that do not |
| 1393 * explicitly target a service or version. Rules are order-dependent. Up to 20 | 2022 /// explicitly target a service or version. Rules are order-dependent. Up to |
| 1394 * dispatch rules can be supported.@OutputOnly | 2023 /// 20 dispatch rules can be supported.@OutputOnly |
| 1395 */ | |
| 1396 core.List<UrlDispatchRule> dispatchRules; | 2024 core.List<UrlDispatchRule> dispatchRules; |
| 1397 /** | 2025 |
| 1398 * The Google Container Registry domain used for storing managed build docker | 2026 /// The feature specific settings to be used in the application. |
| 1399 * images for this application. | 2027 FeatureSettings featureSettings; |
| 1400 */ | 2028 |
| 2029 /// The Google Container Registry domain used for storing managed build |
| 2030 /// docker images for this application. |
| 1401 core.String gcrDomain; | 2031 core.String gcrDomain; |
| 1402 IdentityAwareProxy iap; | 2032 IdentityAwareProxy iap; |
| 1403 /** | 2033 |
| 1404 * Identifier of the Application resource. This identifier is equivalent to | 2034 /// Identifier of the Application resource. This identifier is equivalent to |
| 1405 * the project ID of the Google Cloud Platform project where you want to | 2035 /// the project ID of the Google Cloud Platform project where you want to |
| 1406 * deploy your application. Example: myapp. | 2036 /// deploy your application. Example: myapp. |
| 1407 */ | |
| 1408 core.String id; | 2037 core.String id; |
| 1409 /** | 2038 |
| 1410 * Location from which this application will be run. Application instances | 2039 /// Location from which this application will be run. Application instances |
| 1411 * will run out of data centers in the chosen location, which is also where | 2040 /// will run out of data centers in the chosen location, which is also where |
| 1412 * all of the application's end user content is stored.Defaults to | 2041 /// all of the application's end user content is stored.Defaults to |
| 1413 * us-central.Options are:us-central - Central USeurope-west - Western | 2042 /// us-central.Options are:us-central - Central USeurope-west - Western |
| 1414 * Europeus-east1 - Eastern US | 2043 /// Europeus-east1 - Eastern US |
| 1415 */ | |
| 1416 core.String locationId; | 2044 core.String locationId; |
| 1417 /** | 2045 |
| 1418 * Full path to the Application resource in the API. Example: | 2046 /// Full path to the Application resource in the API. Example: |
| 1419 * apps/myapp.@OutputOnly | 2047 /// apps/myapp.@OutputOnly |
| 1420 */ | |
| 1421 core.String name; | 2048 core.String name; |
| 1422 /** | 2049 |
| 1423 * Serving status of this application. | 2050 /// Serving status of this application. |
| 1424 * Possible string values are: | 2051 /// Possible string values are: |
| 1425 * - "UNSPECIFIED" : Serving status is unspecified. | 2052 /// - "UNSPECIFIED" : Serving status is unspecified. |
| 1426 * - "SERVING" : Application is serving. | 2053 /// - "SERVING" : Application is serving. |
| 1427 * - "USER_DISABLED" : Application has been disabled by the user. | 2054 /// - "USER_DISABLED" : Application has been disabled by the user. |
| 1428 * - "SYSTEM_DISABLED" : Application has been disabled by the system. | 2055 /// - "SYSTEM_DISABLED" : Application has been disabled by the system. |
| 1429 */ | |
| 1430 core.String servingStatus; | 2056 core.String servingStatus; |
| 1431 | 2057 |
| 1432 Application(); | 2058 Application(); |
| 1433 | 2059 |
| 1434 Application.fromJson(core.Map _json) { | 2060 Application.fromJson(core.Map _json) { |
| 1435 if (_json.containsKey("authDomain")) { | 2061 if (_json.containsKey("authDomain")) { |
| 1436 authDomain = _json["authDomain"]; | 2062 authDomain = _json["authDomain"]; |
| 1437 } | 2063 } |
| 1438 if (_json.containsKey("codeBucket")) { | 2064 if (_json.containsKey("codeBucket")) { |
| 1439 codeBucket = _json["codeBucket"]; | 2065 codeBucket = _json["codeBucket"]; |
| 1440 } | 2066 } |
| 1441 if (_json.containsKey("defaultBucket")) { | 2067 if (_json.containsKey("defaultBucket")) { |
| 1442 defaultBucket = _json["defaultBucket"]; | 2068 defaultBucket = _json["defaultBucket"]; |
| 1443 } | 2069 } |
| 1444 if (_json.containsKey("defaultCookieExpiration")) { | 2070 if (_json.containsKey("defaultCookieExpiration")) { |
| 1445 defaultCookieExpiration = _json["defaultCookieExpiration"]; | 2071 defaultCookieExpiration = _json["defaultCookieExpiration"]; |
| 1446 } | 2072 } |
| 1447 if (_json.containsKey("defaultHostname")) { | 2073 if (_json.containsKey("defaultHostname")) { |
| 1448 defaultHostname = _json["defaultHostname"]; | 2074 defaultHostname = _json["defaultHostname"]; |
| 1449 } | 2075 } |
| 1450 if (_json.containsKey("dispatchRules")) { | 2076 if (_json.containsKey("dispatchRules")) { |
| 1451 dispatchRules = _json["dispatchRules"].map((value) => new UrlDispatchRule.
fromJson(value)).toList(); | 2077 dispatchRules = _json["dispatchRules"] |
| 2078 .map((value) => new UrlDispatchRule.fromJson(value)) |
| 2079 .toList(); |
| 2080 } |
| 2081 if (_json.containsKey("featureSettings")) { |
| 2082 featureSettings = new FeatureSettings.fromJson(_json["featureSettings"]); |
| 1452 } | 2083 } |
| 1453 if (_json.containsKey("gcrDomain")) { | 2084 if (_json.containsKey("gcrDomain")) { |
| 1454 gcrDomain = _json["gcrDomain"]; | 2085 gcrDomain = _json["gcrDomain"]; |
| 1455 } | 2086 } |
| 1456 if (_json.containsKey("iap")) { | 2087 if (_json.containsKey("iap")) { |
| 1457 iap = new IdentityAwareProxy.fromJson(_json["iap"]); | 2088 iap = new IdentityAwareProxy.fromJson(_json["iap"]); |
| 1458 } | 2089 } |
| 1459 if (_json.containsKey("id")) { | 2090 if (_json.containsKey("id")) { |
| 1460 id = _json["id"]; | 2091 id = _json["id"]; |
| 1461 } | 2092 } |
| 1462 if (_json.containsKey("locationId")) { | 2093 if (_json.containsKey("locationId")) { |
| 1463 locationId = _json["locationId"]; | 2094 locationId = _json["locationId"]; |
| 1464 } | 2095 } |
| 1465 if (_json.containsKey("name")) { | 2096 if (_json.containsKey("name")) { |
| 1466 name = _json["name"]; | 2097 name = _json["name"]; |
| 1467 } | 2098 } |
| 1468 if (_json.containsKey("servingStatus")) { | 2099 if (_json.containsKey("servingStatus")) { |
| 1469 servingStatus = _json["servingStatus"]; | 2100 servingStatus = _json["servingStatus"]; |
| 1470 } | 2101 } |
| 1471 } | 2102 } |
| 1472 | 2103 |
| 1473 core.Map<core.String, core.Object> toJson() { | 2104 core.Map<core.String, core.Object> toJson() { |
| 1474 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2105 final core.Map<core.String, core.Object> _json = |
| 2106 new core.Map<core.String, core.Object>(); |
| 1475 if (authDomain != null) { | 2107 if (authDomain != null) { |
| 1476 _json["authDomain"] = authDomain; | 2108 _json["authDomain"] = authDomain; |
| 1477 } | 2109 } |
| 1478 if (codeBucket != null) { | 2110 if (codeBucket != null) { |
| 1479 _json["codeBucket"] = codeBucket; | 2111 _json["codeBucket"] = codeBucket; |
| 1480 } | 2112 } |
| 1481 if (defaultBucket != null) { | 2113 if (defaultBucket != null) { |
| 1482 _json["defaultBucket"] = defaultBucket; | 2114 _json["defaultBucket"] = defaultBucket; |
| 1483 } | 2115 } |
| 1484 if (defaultCookieExpiration != null) { | 2116 if (defaultCookieExpiration != null) { |
| 1485 _json["defaultCookieExpiration"] = defaultCookieExpiration; | 2117 _json["defaultCookieExpiration"] = defaultCookieExpiration; |
| 1486 } | 2118 } |
| 1487 if (defaultHostname != null) { | 2119 if (defaultHostname != null) { |
| 1488 _json["defaultHostname"] = defaultHostname; | 2120 _json["defaultHostname"] = defaultHostname; |
| 1489 } | 2121 } |
| 1490 if (dispatchRules != null) { | 2122 if (dispatchRules != null) { |
| 1491 _json["dispatchRules"] = dispatchRules.map((value) => (value).toJson()).to
List(); | 2123 _json["dispatchRules"] = |
| 2124 dispatchRules.map((value) => (value).toJson()).toList(); |
| 2125 } |
| 2126 if (featureSettings != null) { |
| 2127 _json["featureSettings"] = (featureSettings).toJson(); |
| 1492 } | 2128 } |
| 1493 if (gcrDomain != null) { | 2129 if (gcrDomain != null) { |
| 1494 _json["gcrDomain"] = gcrDomain; | 2130 _json["gcrDomain"] = gcrDomain; |
| 1495 } | 2131 } |
| 1496 if (iap != null) { | 2132 if (iap != null) { |
| 1497 _json["iap"] = (iap).toJson(); | 2133 _json["iap"] = (iap).toJson(); |
| 1498 } | 2134 } |
| 1499 if (id != null) { | 2135 if (id != null) { |
| 1500 _json["id"] = id; | 2136 _json["id"] = id; |
| 1501 } | 2137 } |
| 1502 if (locationId != null) { | 2138 if (locationId != null) { |
| 1503 _json["locationId"] = locationId; | 2139 _json["locationId"] = locationId; |
| 1504 } | 2140 } |
| 1505 if (name != null) { | 2141 if (name != null) { |
| 1506 _json["name"] = name; | 2142 _json["name"] = name; |
| 1507 } | 2143 } |
| 1508 if (servingStatus != null) { | 2144 if (servingStatus != null) { |
| 1509 _json["servingStatus"] = servingStatus; | 2145 _json["servingStatus"] = servingStatus; |
| 1510 } | 2146 } |
| 1511 return _json; | 2147 return _json; |
| 1512 } | 2148 } |
| 1513 } | 2149 } |
| 1514 | 2150 |
| 1515 /** | 2151 /// An SSL certificate that a user has been authorized to administer. A user is |
| 1516 * Automatic scaling is based on request rate, response latencies, and other | 2152 /// authorized to administer any certificate that applies to one of their |
| 1517 * application metrics. | 2153 /// authorized domains. |
| 1518 */ | 2154 class AuthorizedCertificate { |
| 2155 /// The SSL certificate serving the AuthorizedCertificate resource. This must |
| 2156 /// be obtained independently from a certificate authority. |
| 2157 CertificateRawData certificateRawData; |
| 2158 |
| 2159 /// The user-specified display name of the certificate. This is not |
| 2160 /// guaranteed to be unique. Example: My Certificate. |
| 2161 core.String displayName; |
| 2162 |
| 2163 /// Aggregate count of the domain mappings with this certificate mapped. This |
| 2164 /// count includes domain mappings on applications for which the user does |
| 2165 /// not have VIEWER permissions.Only returned by GET or LIST requests when |
| 2166 /// specifically requested by the view=FULL_CERTIFICATE option.@OutputOnly |
| 2167 core.int domainMappingsCount; |
| 2168 |
| 2169 /// Topmost applicable domains of this certificate. This certificate applies |
| 2170 /// to these domains and their subdomains. Example: example.com.@OutputOnly |
| 2171 core.List<core.String> domainNames; |
| 2172 |
| 2173 /// The time when this certificate expires. To update the renewal time on |
| 2174 /// this certificate, upload an SSL certificate with a different expiration |
| 2175 /// time using AuthorizedCertificates.UpdateAuthorizedCertificate.@OutputOnly |
| 2176 core.String expireTime; |
| 2177 |
| 2178 /// Relative name of the certificate. This is a unique value autogenerated on |
| 2179 /// AuthorizedCertificate resource creation. Example: 12345.@OutputOnly |
| 2180 core.String id; |
| 2181 |
| 2182 /// Full path to the AuthorizedCertificate resource in the API. Example: |
| 2183 /// apps/myapp/authorizedCertificates/12345.@OutputOnly |
| 2184 core.String name; |
| 2185 |
| 2186 /// The full paths to user visible Domain Mapping resources that have this |
| 2187 /// certificate mapped. Example: apps/myapp/domainMappings/example.com.This |
| 2188 /// may not represent the full list of mapped domain mappings if the user |
| 2189 /// does not have VIEWER permissions on all of the applications that have |
| 2190 /// this certificate mapped. See domain_mappings_count for a complete |
| 2191 /// count.Only returned by GET or LIST requests when specifically requested |
| 2192 /// by the view=FULL_CERTIFICATE option.@OutputOnly |
| 2193 core.List<core.String> visibleDomainMappings; |
| 2194 |
| 2195 AuthorizedCertificate(); |
| 2196 |
| 2197 AuthorizedCertificate.fromJson(core.Map _json) { |
| 2198 if (_json.containsKey("certificateRawData")) { |
| 2199 certificateRawData = |
| 2200 new CertificateRawData.fromJson(_json["certificateRawData"]); |
| 2201 } |
| 2202 if (_json.containsKey("displayName")) { |
| 2203 displayName = _json["displayName"]; |
| 2204 } |
| 2205 if (_json.containsKey("domainMappingsCount")) { |
| 2206 domainMappingsCount = _json["domainMappingsCount"]; |
| 2207 } |
| 2208 if (_json.containsKey("domainNames")) { |
| 2209 domainNames = _json["domainNames"]; |
| 2210 } |
| 2211 if (_json.containsKey("expireTime")) { |
| 2212 expireTime = _json["expireTime"]; |
| 2213 } |
| 2214 if (_json.containsKey("id")) { |
| 2215 id = _json["id"]; |
| 2216 } |
| 2217 if (_json.containsKey("name")) { |
| 2218 name = _json["name"]; |
| 2219 } |
| 2220 if (_json.containsKey("visibleDomainMappings")) { |
| 2221 visibleDomainMappings = _json["visibleDomainMappings"]; |
| 2222 } |
| 2223 } |
| 2224 |
| 2225 core.Map<core.String, core.Object> toJson() { |
| 2226 final core.Map<core.String, core.Object> _json = |
| 2227 new core.Map<core.String, core.Object>(); |
| 2228 if (certificateRawData != null) { |
| 2229 _json["certificateRawData"] = (certificateRawData).toJson(); |
| 2230 } |
| 2231 if (displayName != null) { |
| 2232 _json["displayName"] = displayName; |
| 2233 } |
| 2234 if (domainMappingsCount != null) { |
| 2235 _json["domainMappingsCount"] = domainMappingsCount; |
| 2236 } |
| 2237 if (domainNames != null) { |
| 2238 _json["domainNames"] = domainNames; |
| 2239 } |
| 2240 if (expireTime != null) { |
| 2241 _json["expireTime"] = expireTime; |
| 2242 } |
| 2243 if (id != null) { |
| 2244 _json["id"] = id; |
| 2245 } |
| 2246 if (name != null) { |
| 2247 _json["name"] = name; |
| 2248 } |
| 2249 if (visibleDomainMappings != null) { |
| 2250 _json["visibleDomainMappings"] = visibleDomainMappings; |
| 2251 } |
| 2252 return _json; |
| 2253 } |
| 2254 } |
| 2255 |
| 2256 /// A domain that a user has been authorized to administer. To authorize use of |
| 2257 /// a domain, verify ownership via Webmaster Central |
| 2258 /// (https://www.google.com/webmasters/verification/home). |
| 2259 class AuthorizedDomain { |
| 2260 /// Fully qualified domain name of the domain authorized for use. Example: |
| 2261 /// example.com. |
| 2262 core.String id; |
| 2263 |
| 2264 /// Full path to the AuthorizedDomain resource in the API. Example: |
| 2265 /// apps/myapp/authorizedDomains/example.com.@OutputOnly |
| 2266 core.String name; |
| 2267 |
| 2268 AuthorizedDomain(); |
| 2269 |
| 2270 AuthorizedDomain.fromJson(core.Map _json) { |
| 2271 if (_json.containsKey("id")) { |
| 2272 id = _json["id"]; |
| 2273 } |
| 2274 if (_json.containsKey("name")) { |
| 2275 name = _json["name"]; |
| 2276 } |
| 2277 } |
| 2278 |
| 2279 core.Map<core.String, core.Object> toJson() { |
| 2280 final core.Map<core.String, core.Object> _json = |
| 2281 new core.Map<core.String, core.Object>(); |
| 2282 if (id != null) { |
| 2283 _json["id"] = id; |
| 2284 } |
| 2285 if (name != null) { |
| 2286 _json["name"] = name; |
| 2287 } |
| 2288 return _json; |
| 2289 } |
| 2290 } |
| 2291 |
| 2292 /// Automatic scaling is based on request rate, response latencies, and other |
| 2293 /// application metrics. |
| 1519 class AutomaticScaling { | 2294 class AutomaticScaling { |
| 1520 /** | 2295 /// Amount of time that the Autoscaler |
| 1521 * Amount of time that the Autoscaler | 2296 /// (https://cloud.google.com/compute/docs/autoscaler/) should wait between |
| 1522 * (https://cloud.google.com/compute/docs/autoscaler/) should wait between | 2297 /// changes to the number of virtual machines. Only applicable for VM |
| 1523 * changes to the number of virtual machines. Only applicable for VM runtimes. | 2298 /// runtimes. |
| 1524 */ | |
| 1525 core.String coolDownPeriod; | 2299 core.String coolDownPeriod; |
| 1526 /** Target scaling by CPU usage. */ | 2300 |
| 2301 /// Target scaling by CPU usage. |
| 1527 CpuUtilization cpuUtilization; | 2302 CpuUtilization cpuUtilization; |
| 1528 /** Target scaling by disk usage. */ | 2303 |
| 2304 /// Target scaling by disk usage. |
| 1529 DiskUtilization diskUtilization; | 2305 DiskUtilization diskUtilization; |
| 1530 /** | 2306 |
| 1531 * Number of concurrent requests an automatic scaling instance can accept | 2307 /// Number of concurrent requests an automatic scaling instance can accept |
| 1532 * before the scheduler spawns a new instance.Defaults to a runtime-specific | 2308 /// before the scheduler spawns a new instance.Defaults to a runtime-specific |
| 1533 * value. | 2309 /// value. |
| 1534 */ | |
| 1535 core.int maxConcurrentRequests; | 2310 core.int maxConcurrentRequests; |
| 1536 /** | 2311 |
| 1537 * Maximum number of idle instances that should be maintained for this | 2312 /// Maximum number of idle instances that should be maintained for this |
| 1538 * version. | 2313 /// version. |
| 1539 */ | |
| 1540 core.int maxIdleInstances; | 2314 core.int maxIdleInstances; |
| 1541 /** | 2315 |
| 1542 * Maximum amount of time that a request should wait in the pending queue | 2316 /// Maximum amount of time that a request should wait in the pending queue |
| 1543 * before starting a new instance to handle it. | 2317 /// before starting a new instance to handle it. |
| 1544 */ | |
| 1545 core.String maxPendingLatency; | 2318 core.String maxPendingLatency; |
| 1546 /** Maximum number of instances that should be started to handle requests. */ | 2319 |
| 2320 /// Maximum number of instances that should be started to handle requests. |
| 1547 core.int maxTotalInstances; | 2321 core.int maxTotalInstances; |
| 1548 /** | 2322 |
| 1549 * Minimum number of idle instances that should be maintained for this | 2323 /// Minimum number of idle instances that should be maintained for this |
| 1550 * version. Only applicable for the default version of a service. | 2324 /// version. Only applicable for the default version of a service. |
| 1551 */ | |
| 1552 core.int minIdleInstances; | 2325 core.int minIdleInstances; |
| 1553 /** | 2326 |
| 1554 * Minimum amount of time a request should wait in the pending queue before | 2327 /// Minimum amount of time a request should wait in the pending queue before |
| 1555 * starting a new instance to handle it. | 2328 /// starting a new instance to handle it. |
| 1556 */ | |
| 1557 core.String minPendingLatency; | 2329 core.String minPendingLatency; |
| 1558 /** | 2330 |
| 1559 * Minimum number of instances that should be maintained for this version. | 2331 /// Minimum number of instances that should be maintained for this version. |
| 1560 */ | |
| 1561 core.int minTotalInstances; | 2332 core.int minTotalInstances; |
| 1562 /** Target scaling by network usage. */ | 2333 |
| 2334 /// Target scaling by network usage. |
| 1563 NetworkUtilization networkUtilization; | 2335 NetworkUtilization networkUtilization; |
| 1564 /** Target scaling by request utilization. */ | 2336 |
| 2337 /// Target scaling by request utilization. |
| 1565 RequestUtilization requestUtilization; | 2338 RequestUtilization requestUtilization; |
| 1566 | 2339 |
| 1567 AutomaticScaling(); | 2340 AutomaticScaling(); |
| 1568 | 2341 |
| 1569 AutomaticScaling.fromJson(core.Map _json) { | 2342 AutomaticScaling.fromJson(core.Map _json) { |
| 1570 if (_json.containsKey("coolDownPeriod")) { | 2343 if (_json.containsKey("coolDownPeriod")) { |
| 1571 coolDownPeriod = _json["coolDownPeriod"]; | 2344 coolDownPeriod = _json["coolDownPeriod"]; |
| 1572 } | 2345 } |
| 1573 if (_json.containsKey("cpuUtilization")) { | 2346 if (_json.containsKey("cpuUtilization")) { |
| 1574 cpuUtilization = new CpuUtilization.fromJson(_json["cpuUtilization"]); | 2347 cpuUtilization = new CpuUtilization.fromJson(_json["cpuUtilization"]); |
| (...skipping 16 matching lines...) Expand all Loading... |
| 1591 if (_json.containsKey("minIdleInstances")) { | 2364 if (_json.containsKey("minIdleInstances")) { |
| 1592 minIdleInstances = _json["minIdleInstances"]; | 2365 minIdleInstances = _json["minIdleInstances"]; |
| 1593 } | 2366 } |
| 1594 if (_json.containsKey("minPendingLatency")) { | 2367 if (_json.containsKey("minPendingLatency")) { |
| 1595 minPendingLatency = _json["minPendingLatency"]; | 2368 minPendingLatency = _json["minPendingLatency"]; |
| 1596 } | 2369 } |
| 1597 if (_json.containsKey("minTotalInstances")) { | 2370 if (_json.containsKey("minTotalInstances")) { |
| 1598 minTotalInstances = _json["minTotalInstances"]; | 2371 minTotalInstances = _json["minTotalInstances"]; |
| 1599 } | 2372 } |
| 1600 if (_json.containsKey("networkUtilization")) { | 2373 if (_json.containsKey("networkUtilization")) { |
| 1601 networkUtilization = new NetworkUtilization.fromJson(_json["networkUtiliza
tion"]); | 2374 networkUtilization = |
| 2375 new NetworkUtilization.fromJson(_json["networkUtilization"]); |
| 1602 } | 2376 } |
| 1603 if (_json.containsKey("requestUtilization")) { | 2377 if (_json.containsKey("requestUtilization")) { |
| 1604 requestUtilization = new RequestUtilization.fromJson(_json["requestUtiliza
tion"]); | 2378 requestUtilization = |
| 2379 new RequestUtilization.fromJson(_json["requestUtilization"]); |
| 1605 } | 2380 } |
| 1606 } | 2381 } |
| 1607 | 2382 |
| 1608 core.Map<core.String, core.Object> toJson() { | 2383 core.Map<core.String, core.Object> toJson() { |
| 1609 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2384 final core.Map<core.String, core.Object> _json = |
| 2385 new core.Map<core.String, core.Object>(); |
| 1610 if (coolDownPeriod != null) { | 2386 if (coolDownPeriod != null) { |
| 1611 _json["coolDownPeriod"] = coolDownPeriod; | 2387 _json["coolDownPeriod"] = coolDownPeriod; |
| 1612 } | 2388 } |
| 1613 if (cpuUtilization != null) { | 2389 if (cpuUtilization != null) { |
| 1614 _json["cpuUtilization"] = (cpuUtilization).toJson(); | 2390 _json["cpuUtilization"] = (cpuUtilization).toJson(); |
| 1615 } | 2391 } |
| 1616 if (diskUtilization != null) { | 2392 if (diskUtilization != null) { |
| 1617 _json["diskUtilization"] = (diskUtilization).toJson(); | 2393 _json["diskUtilization"] = (diskUtilization).toJson(); |
| 1618 } | 2394 } |
| 1619 if (maxConcurrentRequests != null) { | 2395 if (maxConcurrentRequests != null) { |
| (...skipping 20 matching lines...) Expand all Loading... |
| 1640 if (networkUtilization != null) { | 2416 if (networkUtilization != null) { |
| 1641 _json["networkUtilization"] = (networkUtilization).toJson(); | 2417 _json["networkUtilization"] = (networkUtilization).toJson(); |
| 1642 } | 2418 } |
| 1643 if (requestUtilization != null) { | 2419 if (requestUtilization != null) { |
| 1644 _json["requestUtilization"] = (requestUtilization).toJson(); | 2420 _json["requestUtilization"] = (requestUtilization).toJson(); |
| 1645 } | 2421 } |
| 1646 return _json; | 2422 return _json; |
| 1647 } | 2423 } |
| 1648 } | 2424 } |
| 1649 | 2425 |
| 1650 /** | 2426 /// A service with basic scaling will create an instance when the application |
| 1651 * A service with basic scaling will create an instance when the application | 2427 /// receives a request. The instance will be turned down when the app becomes |
| 1652 * receives a request. The instance will be turned down when the app becomes | 2428 /// idle. Basic scaling is ideal for work that is intermittent or driven by |
| 1653 * idle. Basic scaling is ideal for work that is intermittent or driven by user | 2429 /// user activity. |
| 1654 * activity. | |
| 1655 */ | |
| 1656 class BasicScaling { | 2430 class BasicScaling { |
| 1657 /** | 2431 /// Duration of time after the last request that an instance must wait before |
| 1658 * Duration of time after the last request that an instance must wait before | 2432 /// the instance is shut down. |
| 1659 * the instance is shut down. | |
| 1660 */ | |
| 1661 core.String idleTimeout; | 2433 core.String idleTimeout; |
| 1662 /** Maximum number of instances to create for this version. */ | 2434 |
| 2435 /// Maximum number of instances to create for this version. |
| 1663 core.int maxInstances; | 2436 core.int maxInstances; |
| 1664 | 2437 |
| 1665 BasicScaling(); | 2438 BasicScaling(); |
| 1666 | 2439 |
| 1667 BasicScaling.fromJson(core.Map _json) { | 2440 BasicScaling.fromJson(core.Map _json) { |
| 1668 if (_json.containsKey("idleTimeout")) { | 2441 if (_json.containsKey("idleTimeout")) { |
| 1669 idleTimeout = _json["idleTimeout"]; | 2442 idleTimeout = _json["idleTimeout"]; |
| 1670 } | 2443 } |
| 1671 if (_json.containsKey("maxInstances")) { | 2444 if (_json.containsKey("maxInstances")) { |
| 1672 maxInstances = _json["maxInstances"]; | 2445 maxInstances = _json["maxInstances"]; |
| 1673 } | 2446 } |
| 1674 } | 2447 } |
| 1675 | 2448 |
| 1676 core.Map<core.String, core.Object> toJson() { | 2449 core.Map<core.String, core.Object> toJson() { |
| 1677 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2450 final core.Map<core.String, core.Object> _json = |
| 2451 new core.Map<core.String, core.Object>(); |
| 1678 if (idleTimeout != null) { | 2452 if (idleTimeout != null) { |
| 1679 _json["idleTimeout"] = idleTimeout; | 2453 _json["idleTimeout"] = idleTimeout; |
| 1680 } | 2454 } |
| 1681 if (maxInstances != null) { | 2455 if (maxInstances != null) { |
| 1682 _json["maxInstances"] = maxInstances; | 2456 _json["maxInstances"] = maxInstances; |
| 1683 } | 2457 } |
| 1684 return _json; | 2458 return _json; |
| 1685 } | 2459 } |
| 1686 } | 2460 } |
| 1687 | 2461 |
| 1688 /** | 2462 /// An SSL certificate obtained from a certificate authority. |
| 1689 * Docker image that is used to create a container and start a VM instance for | 2463 class CertificateRawData { |
| 1690 * the version that you deploy. Only applicable for instances running in the App | 2464 /// Unencrypted PEM encoded RSA private key. This field is set once on |
| 1691 * Engine flexible environment. | 2465 /// certificate creation and then encrypted. The key size must be 2048 bits |
| 1692 */ | 2466 /// or fewer. Must include the header and footer. Example: <pre> -----BEGIN |
| 2467 /// RSA PRIVATE KEY----- <unencrypted_key_value> -----END RSA PRIVATE |
| 2468 /// KEY----- </pre> @InputOnly |
| 2469 core.String privateKey; |
| 2470 |
| 2471 /// PEM encoded x.509 public key certificate. This field is set once on |
| 2472 /// certificate creation. Must include the header and footer. Example: <pre> |
| 2473 /// -----BEGIN CERTIFICATE----- <certificate_value> -----END CERTIFICATE----- |
| 2474 /// </pre> |
| 2475 core.String publicCertificate; |
| 2476 |
| 2477 CertificateRawData(); |
| 2478 |
| 2479 CertificateRawData.fromJson(core.Map _json) { |
| 2480 if (_json.containsKey("privateKey")) { |
| 2481 privateKey = _json["privateKey"]; |
| 2482 } |
| 2483 if (_json.containsKey("publicCertificate")) { |
| 2484 publicCertificate = _json["publicCertificate"]; |
| 2485 } |
| 2486 } |
| 2487 |
| 2488 core.Map<core.String, core.Object> toJson() { |
| 2489 final core.Map<core.String, core.Object> _json = |
| 2490 new core.Map<core.String, core.Object>(); |
| 2491 if (privateKey != null) { |
| 2492 _json["privateKey"] = privateKey; |
| 2493 } |
| 2494 if (publicCertificate != null) { |
| 2495 _json["publicCertificate"] = publicCertificate; |
| 2496 } |
| 2497 return _json; |
| 2498 } |
| 2499 } |
| 2500 |
| 2501 /// Docker image that is used to create a container and start a VM instance for |
| 2502 /// the version that you deploy. Only applicable for instances running in the |
| 2503 /// App Engine flexible environment. |
| 1693 class ContainerInfo { | 2504 class ContainerInfo { |
| 1694 /** | 2505 /// URI to the hosted container image in Google Container Registry. The URI |
| 1695 * URI to the hosted container image in Google Container Registry. The URI | 2506 /// must be fully qualified and include a tag or digest. Examples: |
| 1696 * must be fully qualified and include a tag or digest. Examples: | 2507 /// "gcr.io/my-project/image:tag" or "gcr.io/my-project/image@digest" |
| 1697 * "gcr.io/my-project/image:tag" or "gcr.io/my-project/image@digest" | |
| 1698 */ | |
| 1699 core.String image; | 2508 core.String image; |
| 1700 | 2509 |
| 1701 ContainerInfo(); | 2510 ContainerInfo(); |
| 1702 | 2511 |
| 1703 ContainerInfo.fromJson(core.Map _json) { | 2512 ContainerInfo.fromJson(core.Map _json) { |
| 1704 if (_json.containsKey("image")) { | 2513 if (_json.containsKey("image")) { |
| 1705 image = _json["image"]; | 2514 image = _json["image"]; |
| 1706 } | 2515 } |
| 1707 } | 2516 } |
| 1708 | 2517 |
| 1709 core.Map<core.String, core.Object> toJson() { | 2518 core.Map<core.String, core.Object> toJson() { |
| 1710 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2519 final core.Map<core.String, core.Object> _json = |
| 2520 new core.Map<core.String, core.Object>(); |
| 1711 if (image != null) { | 2521 if (image != null) { |
| 1712 _json["image"] = image; | 2522 _json["image"] = image; |
| 1713 } | 2523 } |
| 1714 return _json; | 2524 return _json; |
| 1715 } | 2525 } |
| 1716 } | 2526 } |
| 1717 | 2527 |
| 1718 /** Target scaling by CPU usage. */ | 2528 /// Target scaling by CPU usage. |
| 1719 class CpuUtilization { | 2529 class CpuUtilization { |
| 1720 /** Period of time over which CPU utilization is calculated. */ | 2530 /// Period of time over which CPU utilization is calculated. |
| 1721 core.String aggregationWindowLength; | 2531 core.String aggregationWindowLength; |
| 1722 /** | 2532 |
| 1723 * Target CPU utilization ratio to maintain when scaling. Must be between 0 | 2533 /// Target CPU utilization ratio to maintain when scaling. Must be between 0 |
| 1724 * and 1. | 2534 /// and 1. |
| 1725 */ | |
| 1726 core.double targetUtilization; | 2535 core.double targetUtilization; |
| 1727 | 2536 |
| 1728 CpuUtilization(); | 2537 CpuUtilization(); |
| 1729 | 2538 |
| 1730 CpuUtilization.fromJson(core.Map _json) { | 2539 CpuUtilization.fromJson(core.Map _json) { |
| 1731 if (_json.containsKey("aggregationWindowLength")) { | 2540 if (_json.containsKey("aggregationWindowLength")) { |
| 1732 aggregationWindowLength = _json["aggregationWindowLength"]; | 2541 aggregationWindowLength = _json["aggregationWindowLength"]; |
| 1733 } | 2542 } |
| 1734 if (_json.containsKey("targetUtilization")) { | 2543 if (_json.containsKey("targetUtilization")) { |
| 1735 targetUtilization = _json["targetUtilization"]; | 2544 targetUtilization = _json["targetUtilization"]; |
| 1736 } | 2545 } |
| 1737 } | 2546 } |
| 1738 | 2547 |
| 1739 core.Map<core.String, core.Object> toJson() { | 2548 core.Map<core.String, core.Object> toJson() { |
| 1740 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2549 final core.Map<core.String, core.Object> _json = |
| 2550 new core.Map<core.String, core.Object>(); |
| 1741 if (aggregationWindowLength != null) { | 2551 if (aggregationWindowLength != null) { |
| 1742 _json["aggregationWindowLength"] = aggregationWindowLength; | 2552 _json["aggregationWindowLength"] = aggregationWindowLength; |
| 1743 } | 2553 } |
| 1744 if (targetUtilization != null) { | 2554 if (targetUtilization != null) { |
| 1745 _json["targetUtilization"] = targetUtilization; | 2555 _json["targetUtilization"] = targetUtilization; |
| 1746 } | 2556 } |
| 1747 return _json; | 2557 return _json; |
| 1748 } | 2558 } |
| 1749 } | 2559 } |
| 1750 | 2560 |
| 1751 /** Request message for Instances.DebugInstance. */ | 2561 /// Request message for Instances.DebugInstance. |
| 1752 class DebugInstanceRequest { | 2562 class DebugInstanceRequest { |
| 1753 /** | 2563 /// Public SSH key to add to the instance. Examples: |
| 1754 * Public SSH key to add to the instance. Examples: | 2564 /// [USERNAME]:ssh-rsa [KEY_VALUE] [USERNAME] |
| 1755 * [USERNAME]:ssh-rsa [KEY_VALUE] [USERNAME] | 2565 /// [USERNAME]:ssh-rsa [KEY_VALUE] google-ssh |
| 1756 * [USERNAME]:ssh-rsa [KEY_VALUE] google-ssh | 2566 /// {"userName":"[USERNAME]","expireOn":"[EXPIRE_TIME]"}For more information, |
| 1757 * {"userName":"[USERNAME]","expireOn":"[EXPIRE_TIME]"}For more information, | 2567 /// see Adding and Removing SSH Keys |
| 1758 * see Adding and Removing SSH Keys | 2568 /// (https://cloud.google.com/compute/docs/instances/adding-removing-ssh-keys)
. |
| 1759 * (https://cloud.google.com/compute/docs/instances/adding-removing-ssh-keys). | |
| 1760 */ | |
| 1761 core.String sshKey; | 2569 core.String sshKey; |
| 1762 | 2570 |
| 1763 DebugInstanceRequest(); | 2571 DebugInstanceRequest(); |
| 1764 | 2572 |
| 1765 DebugInstanceRequest.fromJson(core.Map _json) { | 2573 DebugInstanceRequest.fromJson(core.Map _json) { |
| 1766 if (_json.containsKey("sshKey")) { | 2574 if (_json.containsKey("sshKey")) { |
| 1767 sshKey = _json["sshKey"]; | 2575 sshKey = _json["sshKey"]; |
| 1768 } | 2576 } |
| 1769 } | 2577 } |
| 1770 | 2578 |
| 1771 core.Map<core.String, core.Object> toJson() { | 2579 core.Map<core.String, core.Object> toJson() { |
| 1772 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2580 final core.Map<core.String, core.Object> _json = |
| 2581 new core.Map<core.String, core.Object>(); |
| 1773 if (sshKey != null) { | 2582 if (sshKey != null) { |
| 1774 _json["sshKey"] = sshKey; | 2583 _json["sshKey"] = sshKey; |
| 1775 } | 2584 } |
| 1776 return _json; | 2585 return _json; |
| 1777 } | 2586 } |
| 1778 } | 2587 } |
| 1779 | 2588 |
| 1780 /** Code and application artifacts used to deploy a version to App Engine. */ | 2589 /// Code and application artifacts used to deploy a version to App Engine. |
| 1781 class Deployment { | 2590 class Deployment { |
| 1782 /** | 2591 /// The Docker image for the container that runs the version. Only applicable |
| 1783 * The Docker image for the container that runs the version. Only applicable | 2592 /// for instances running in the App Engine flexible environment. |
| 1784 * for instances running in the App Engine flexible environment. | |
| 1785 */ | |
| 1786 ContainerInfo container; | 2593 ContainerInfo container; |
| 1787 /** | 2594 |
| 1788 * Manifest of the files stored in Google Cloud Storage that are included as | 2595 /// Manifest of the files stored in Google Cloud Storage that are included as |
| 1789 * part of this version. All files must be readable using the credentials | 2596 /// part of this version. All files must be readable using the credentials |
| 1790 * supplied with this call. | 2597 /// supplied with this call. |
| 1791 */ | |
| 1792 core.Map<core.String, FileInfo> files; | 2598 core.Map<core.String, FileInfo> files; |
| 1793 /** The zip file for this deployment, if this is a zip deployment. */ | 2599 |
| 2600 /// The zip file for this deployment, if this is a zip deployment. |
| 1794 ZipInfo zip; | 2601 ZipInfo zip; |
| 1795 | 2602 |
| 1796 Deployment(); | 2603 Deployment(); |
| 1797 | 2604 |
| 1798 Deployment.fromJson(core.Map _json) { | 2605 Deployment.fromJson(core.Map _json) { |
| 1799 if (_json.containsKey("container")) { | 2606 if (_json.containsKey("container")) { |
| 1800 container = new ContainerInfo.fromJson(_json["container"]); | 2607 container = new ContainerInfo.fromJson(_json["container"]); |
| 1801 } | 2608 } |
| 1802 if (_json.containsKey("files")) { | 2609 if (_json.containsKey("files")) { |
| 1803 files = commons.mapMap<core.Map<core.String, core.Object>, FileInfo>(_json
["files"], (core.Map<core.String, core.Object> item) => new FileInfo.fromJson(it
em)); | 2610 files = commons.mapMap<core.Map<core.String, core.Object>, FileInfo>( |
| 2611 _json["files"], |
| 2612 (core.Map<core.String, core.Object> item) => |
| 2613 new FileInfo.fromJson(item)); |
| 1804 } | 2614 } |
| 1805 if (_json.containsKey("zip")) { | 2615 if (_json.containsKey("zip")) { |
| 1806 zip = new ZipInfo.fromJson(_json["zip"]); | 2616 zip = new ZipInfo.fromJson(_json["zip"]); |
| 1807 } | 2617 } |
| 1808 } | 2618 } |
| 1809 | 2619 |
| 1810 core.Map<core.String, core.Object> toJson() { | 2620 core.Map<core.String, core.Object> toJson() { |
| 1811 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2621 final core.Map<core.String, core.Object> _json = |
| 2622 new core.Map<core.String, core.Object>(); |
| 1812 if (container != null) { | 2623 if (container != null) { |
| 1813 _json["container"] = (container).toJson(); | 2624 _json["container"] = (container).toJson(); |
| 1814 } | 2625 } |
| 1815 if (files != null) { | 2626 if (files != null) { |
| 1816 _json["files"] = commons.mapMap<FileInfo, core.Map<core.String, core.Objec
t>>(files, (FileInfo item) => (item).toJson()); | 2627 _json["files"] = |
| 2628 commons.mapMap<FileInfo, core.Map<core.String, core.Object>>( |
| 2629 files, (FileInfo item) => (item).toJson()); |
| 1817 } | 2630 } |
| 1818 if (zip != null) { | 2631 if (zip != null) { |
| 1819 _json["zip"] = (zip).toJson(); | 2632 _json["zip"] = (zip).toJson(); |
| 1820 } | 2633 } |
| 1821 return _json; | 2634 return _json; |
| 1822 } | 2635 } |
| 1823 } | 2636 } |
| 1824 | 2637 |
| 1825 /** Target scaling by disk usage. Only applicable for VM runtimes. */ | 2638 /// Target scaling by disk usage. Only applicable for VM runtimes. |
| 1826 class DiskUtilization { | 2639 class DiskUtilization { |
| 1827 /** Target bytes read per second. */ | 2640 /// Target bytes read per second. |
| 1828 core.int targetReadBytesPerSecond; | 2641 core.int targetReadBytesPerSecond; |
| 1829 /** Target ops read per seconds. */ | 2642 |
| 2643 /// Target ops read per seconds. |
| 1830 core.int targetReadOpsPerSecond; | 2644 core.int targetReadOpsPerSecond; |
| 1831 /** Target bytes written per second. */ | 2645 |
| 2646 /// Target bytes written per second. |
| 1832 core.int targetWriteBytesPerSecond; | 2647 core.int targetWriteBytesPerSecond; |
| 1833 /** Target ops written per second. */ | 2648 |
| 2649 /// Target ops written per second. |
| 1834 core.int targetWriteOpsPerSecond; | 2650 core.int targetWriteOpsPerSecond; |
| 1835 | 2651 |
| 1836 DiskUtilization(); | 2652 DiskUtilization(); |
| 1837 | 2653 |
| 1838 DiskUtilization.fromJson(core.Map _json) { | 2654 DiskUtilization.fromJson(core.Map _json) { |
| 1839 if (_json.containsKey("targetReadBytesPerSecond")) { | 2655 if (_json.containsKey("targetReadBytesPerSecond")) { |
| 1840 targetReadBytesPerSecond = _json["targetReadBytesPerSecond"]; | 2656 targetReadBytesPerSecond = _json["targetReadBytesPerSecond"]; |
| 1841 } | 2657 } |
| 1842 if (_json.containsKey("targetReadOpsPerSecond")) { | 2658 if (_json.containsKey("targetReadOpsPerSecond")) { |
| 1843 targetReadOpsPerSecond = _json["targetReadOpsPerSecond"]; | 2659 targetReadOpsPerSecond = _json["targetReadOpsPerSecond"]; |
| 1844 } | 2660 } |
| 1845 if (_json.containsKey("targetWriteBytesPerSecond")) { | 2661 if (_json.containsKey("targetWriteBytesPerSecond")) { |
| 1846 targetWriteBytesPerSecond = _json["targetWriteBytesPerSecond"]; | 2662 targetWriteBytesPerSecond = _json["targetWriteBytesPerSecond"]; |
| 1847 } | 2663 } |
| 1848 if (_json.containsKey("targetWriteOpsPerSecond")) { | 2664 if (_json.containsKey("targetWriteOpsPerSecond")) { |
| 1849 targetWriteOpsPerSecond = _json["targetWriteOpsPerSecond"]; | 2665 targetWriteOpsPerSecond = _json["targetWriteOpsPerSecond"]; |
| 1850 } | 2666 } |
| 1851 } | 2667 } |
| 1852 | 2668 |
| 1853 core.Map<core.String, core.Object> toJson() { | 2669 core.Map<core.String, core.Object> toJson() { |
| 1854 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2670 final core.Map<core.String, core.Object> _json = |
| 2671 new core.Map<core.String, core.Object>(); |
| 1855 if (targetReadBytesPerSecond != null) { | 2672 if (targetReadBytesPerSecond != null) { |
| 1856 _json["targetReadBytesPerSecond"] = targetReadBytesPerSecond; | 2673 _json["targetReadBytesPerSecond"] = targetReadBytesPerSecond; |
| 1857 } | 2674 } |
| 1858 if (targetReadOpsPerSecond != null) { | 2675 if (targetReadOpsPerSecond != null) { |
| 1859 _json["targetReadOpsPerSecond"] = targetReadOpsPerSecond; | 2676 _json["targetReadOpsPerSecond"] = targetReadOpsPerSecond; |
| 1860 } | 2677 } |
| 1861 if (targetWriteBytesPerSecond != null) { | 2678 if (targetWriteBytesPerSecond != null) { |
| 1862 _json["targetWriteBytesPerSecond"] = targetWriteBytesPerSecond; | 2679 _json["targetWriteBytesPerSecond"] = targetWriteBytesPerSecond; |
| 1863 } | 2680 } |
| 1864 if (targetWriteOpsPerSecond != null) { | 2681 if (targetWriteOpsPerSecond != null) { |
| 1865 _json["targetWriteOpsPerSecond"] = targetWriteOpsPerSecond; | 2682 _json["targetWriteOpsPerSecond"] = targetWriteOpsPerSecond; |
| 1866 } | 2683 } |
| 1867 return _json; | 2684 return _json; |
| 1868 } | 2685 } |
| 1869 } | 2686 } |
| 1870 | 2687 |
| 1871 /** | 2688 /// A domain serving an App Engine application. |
| 1872 * Cloud Endpoints (https://cloud.google.com/endpoints) configuration. The | 2689 class DomainMapping { |
| 1873 * Endpoints API Service provides tooling for serving Open API and gRPC | 2690 /// Relative name of the domain serving the application. Example: |
| 1874 * endpoints via an NGINX proxy.The fields here refer to the name and | 2691 /// example.com. |
| 1875 * configuration id of a "service" resource in the Service Management API | 2692 core.String id; |
| 1876 * (https://cloud.google.com/service-management/overview). | 2693 |
| 1877 */ | 2694 /// Full path to the DomainMapping resource in the API. Example: |
| 2695 /// apps/myapp/domainMapping/example.com.@OutputOnly |
| 2696 core.String name; |
| 2697 |
| 2698 /// The resource records required to configure this domain mapping. These |
| 2699 /// records must be added to the domain's DNS configuration in order to serve |
| 2700 /// the application via this domain mapping.@OutputOnly |
| 2701 core.List<ResourceRecord> resourceRecords; |
| 2702 |
| 2703 /// SSL configuration for this domain. If unconfigured, this domain will not |
| 2704 /// serve with SSL. |
| 2705 SslSettings sslSettings; |
| 2706 |
| 2707 DomainMapping(); |
| 2708 |
| 2709 DomainMapping.fromJson(core.Map _json) { |
| 2710 if (_json.containsKey("id")) { |
| 2711 id = _json["id"]; |
| 2712 } |
| 2713 if (_json.containsKey("name")) { |
| 2714 name = _json["name"]; |
| 2715 } |
| 2716 if (_json.containsKey("resourceRecords")) { |
| 2717 resourceRecords = _json["resourceRecords"] |
| 2718 .map((value) => new ResourceRecord.fromJson(value)) |
| 2719 .toList(); |
| 2720 } |
| 2721 if (_json.containsKey("sslSettings")) { |
| 2722 sslSettings = new SslSettings.fromJson(_json["sslSettings"]); |
| 2723 } |
| 2724 } |
| 2725 |
| 2726 core.Map<core.String, core.Object> toJson() { |
| 2727 final core.Map<core.String, core.Object> _json = |
| 2728 new core.Map<core.String, core.Object>(); |
| 2729 if (id != null) { |
| 2730 _json["id"] = id; |
| 2731 } |
| 2732 if (name != null) { |
| 2733 _json["name"] = name; |
| 2734 } |
| 2735 if (resourceRecords != null) { |
| 2736 _json["resourceRecords"] = |
| 2737 resourceRecords.map((value) => (value).toJson()).toList(); |
| 2738 } |
| 2739 if (sslSettings != null) { |
| 2740 _json["sslSettings"] = (sslSettings).toJson(); |
| 2741 } |
| 2742 return _json; |
| 2743 } |
| 2744 } |
| 2745 |
| 2746 /// A generic empty message that you can re-use to avoid defining duplicated |
| 2747 /// empty messages in your APIs. A typical example is to use it as the request |
| 2748 /// or the response type of an API method. For instance: |
| 2749 /// service Foo { |
| 2750 /// rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); |
| 2751 /// } |
| 2752 /// The JSON representation for Empty is empty JSON object {}. |
| 2753 class Empty { |
| 2754 Empty(); |
| 2755 |
| 2756 Empty.fromJson(core.Map _json) {} |
| 2757 |
| 2758 core.Map<core.String, core.Object> toJson() { |
| 2759 final core.Map<core.String, core.Object> _json = |
| 2760 new core.Map<core.String, core.Object>(); |
| 2761 return _json; |
| 2762 } |
| 2763 } |
| 2764 |
| 2765 /// Cloud Endpoints (https://cloud.google.com/endpoints) configuration. The |
| 2766 /// Endpoints API Service provides tooling for serving Open API and gRPC |
| 2767 /// endpoints via an NGINX proxy.The fields here refer to the name and |
| 2768 /// configuration id of a "service" resource in the Service Management API |
| 2769 /// (https://cloud.google.com/service-management/overview). |
| 1878 class EndpointsApiService { | 2770 class EndpointsApiService { |
| 1879 /** | 2771 /// Endpoints service configuration id as specified by the Service Management |
| 1880 * Endpoints service configuration id as specified by the Service Management | 2772 /// API. For example "2016-09-19r1" |
| 1881 * API. For example "2016-09-19r1" | |
| 1882 */ | |
| 1883 core.String configId; | 2773 core.String configId; |
| 1884 /** | 2774 |
| 1885 * Endpoints service name which is the name of the "service" resource in the | 2775 /// Endpoints service name which is the name of the "service" resource in the |
| 1886 * Service Management API. For example "myapi.endpoints.myproject.cloud.goog" | 2776 /// Service Management API. For example |
| 1887 */ | 2777 /// "myapi.endpoints.myproject.cloud.goog" |
| 1888 core.String name; | 2778 core.String name; |
| 1889 | 2779 |
| 1890 EndpointsApiService(); | 2780 EndpointsApiService(); |
| 1891 | 2781 |
| 1892 EndpointsApiService.fromJson(core.Map _json) { | 2782 EndpointsApiService.fromJson(core.Map _json) { |
| 1893 if (_json.containsKey("configId")) { | 2783 if (_json.containsKey("configId")) { |
| 1894 configId = _json["configId"]; | 2784 configId = _json["configId"]; |
| 1895 } | 2785 } |
| 1896 if (_json.containsKey("name")) { | 2786 if (_json.containsKey("name")) { |
| 1897 name = _json["name"]; | 2787 name = _json["name"]; |
| 1898 } | 2788 } |
| 1899 } | 2789 } |
| 1900 | 2790 |
| 1901 core.Map<core.String, core.Object> toJson() { | 2791 core.Map<core.String, core.Object> toJson() { |
| 1902 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2792 final core.Map<core.String, core.Object> _json = |
| 2793 new core.Map<core.String, core.Object>(); |
| 1903 if (configId != null) { | 2794 if (configId != null) { |
| 1904 _json["configId"] = configId; | 2795 _json["configId"] = configId; |
| 1905 } | 2796 } |
| 1906 if (name != null) { | 2797 if (name != null) { |
| 1907 _json["name"] = name; | 2798 _json["name"] = name; |
| 1908 } | 2799 } |
| 1909 return _json; | 2800 return _json; |
| 1910 } | 2801 } |
| 1911 } | 2802 } |
| 1912 | 2803 |
| 1913 /** Custom static error page to be served when an error occurs. */ | 2804 /// Custom static error page to be served when an error occurs. |
| 1914 class ErrorHandler { | 2805 class ErrorHandler { |
| 1915 /** | 2806 /// Error condition this handler applies to. |
| 1916 * Error condition this handler applies to. | 2807 /// Possible string values are: |
| 1917 * Possible string values are: | 2808 /// - "ERROR_CODE_UNSPECIFIED" : Not specified. ERROR_CODE_DEFAULT is |
| 1918 * - "ERROR_CODE_UNSPECIFIED" : Not specified. ERROR_CODE_DEFAULT is assumed. | 2809 /// assumed. |
| 1919 * - "ERROR_CODE_DEFAULT" : All other error types. | 2810 /// - "ERROR_CODE_DEFAULT" : All other error types. |
| 1920 * - "ERROR_CODE_OVER_QUOTA" : Application has exceeded a resource quota. | 2811 /// - "ERROR_CODE_OVER_QUOTA" : Application has exceeded a resource quota. |
| 1921 * - "ERROR_CODE_DOS_API_DENIAL" : Client blocked by the application's Denial | 2812 /// - "ERROR_CODE_DOS_API_DENIAL" : Client blocked by the application's |
| 1922 * of Service protection configuration. | 2813 /// Denial of Service protection configuration. |
| 1923 * - "ERROR_CODE_TIMEOUT" : Deadline reached before the application responds. | 2814 /// - "ERROR_CODE_TIMEOUT" : Deadline reached before the application |
| 1924 */ | 2815 /// responds. |
| 1925 core.String errorCode; | 2816 core.String errorCode; |
| 1926 /** MIME type of file. Defaults to text/html. */ | 2817 |
| 2818 /// MIME type of file. Defaults to text/html. |
| 1927 core.String mimeType; | 2819 core.String mimeType; |
| 1928 /** Static file content to be served for this error. */ | 2820 |
| 2821 /// Static file content to be served for this error. |
| 1929 core.String staticFile; | 2822 core.String staticFile; |
| 1930 | 2823 |
| 1931 ErrorHandler(); | 2824 ErrorHandler(); |
| 1932 | 2825 |
| 1933 ErrorHandler.fromJson(core.Map _json) { | 2826 ErrorHandler.fromJson(core.Map _json) { |
| 1934 if (_json.containsKey("errorCode")) { | 2827 if (_json.containsKey("errorCode")) { |
| 1935 errorCode = _json["errorCode"]; | 2828 errorCode = _json["errorCode"]; |
| 1936 } | 2829 } |
| 1937 if (_json.containsKey("mimeType")) { | 2830 if (_json.containsKey("mimeType")) { |
| 1938 mimeType = _json["mimeType"]; | 2831 mimeType = _json["mimeType"]; |
| 1939 } | 2832 } |
| 1940 if (_json.containsKey("staticFile")) { | 2833 if (_json.containsKey("staticFile")) { |
| 1941 staticFile = _json["staticFile"]; | 2834 staticFile = _json["staticFile"]; |
| 1942 } | 2835 } |
| 1943 } | 2836 } |
| 1944 | 2837 |
| 1945 core.Map<core.String, core.Object> toJson() { | 2838 core.Map<core.String, core.Object> toJson() { |
| 1946 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2839 final core.Map<core.String, core.Object> _json = |
| 2840 new core.Map<core.String, core.Object>(); |
| 1947 if (errorCode != null) { | 2841 if (errorCode != null) { |
| 1948 _json["errorCode"] = errorCode; | 2842 _json["errorCode"] = errorCode; |
| 1949 } | 2843 } |
| 1950 if (mimeType != null) { | 2844 if (mimeType != null) { |
| 1951 _json["mimeType"] = mimeType; | 2845 _json["mimeType"] = mimeType; |
| 1952 } | 2846 } |
| 1953 if (staticFile != null) { | 2847 if (staticFile != null) { |
| 1954 _json["staticFile"] = staticFile; | 2848 _json["staticFile"] = staticFile; |
| 1955 } | 2849 } |
| 1956 return _json; | 2850 return _json; |
| 1957 } | 2851 } |
| 1958 } | 2852 } |
| 1959 | 2853 |
| 1960 /** | 2854 /// The feature specific settings to be used in the application. These define |
| 1961 * Single source file that is part of the version to be deployed. Each source | 2855 /// behaviors that are user configurable. |
| 1962 * file that is deployed must be specified separately. | 2856 class FeatureSettings { |
| 1963 */ | 2857 /// Boolean value indicating if split health checks should be used instead of |
| 2858 /// the legacy health checks. At an app.yaml level, this means defaulting to |
| 2859 /// 'readiness_check' and 'liveness_check' values instead of 'health_check' |
| 2860 /// ones. Once the legacy 'health_check' behavior is deprecated, and this |
| 2861 /// value is always true, this setting can be removed. |
| 2862 core.bool splitHealthChecks; |
| 2863 |
| 2864 FeatureSettings(); |
| 2865 |
| 2866 FeatureSettings.fromJson(core.Map _json) { |
| 2867 if (_json.containsKey("splitHealthChecks")) { |
| 2868 splitHealthChecks = _json["splitHealthChecks"]; |
| 2869 } |
| 2870 } |
| 2871 |
| 2872 core.Map<core.String, core.Object> toJson() { |
| 2873 final core.Map<core.String, core.Object> _json = |
| 2874 new core.Map<core.String, core.Object>(); |
| 2875 if (splitHealthChecks != null) { |
| 2876 _json["splitHealthChecks"] = splitHealthChecks; |
| 2877 } |
| 2878 return _json; |
| 2879 } |
| 2880 } |
| 2881 |
| 2882 /// Single source file that is part of the version to be deployed. Each source |
| 2883 /// file that is deployed must be specified separately. |
| 1964 class FileInfo { | 2884 class FileInfo { |
| 1965 /** | 2885 /// The MIME type of the file.Defaults to the value from Google Cloud |
| 1966 * The MIME type of the file.Defaults to the value from Google Cloud Storage. | 2886 /// Storage. |
| 1967 */ | |
| 1968 core.String mimeType; | 2887 core.String mimeType; |
| 1969 /** The SHA1 hash of the file, in hex. */ | 2888 |
| 2889 /// The SHA1 hash of the file, in hex. |
| 1970 core.String sha1Sum; | 2890 core.String sha1Sum; |
| 1971 /** | 2891 |
| 1972 * URL source to use to fetch this file. Must be a URL to a resource in Google | 2892 /// URL source to use to fetch this file. Must be a URL to a resource in |
| 1973 * Cloud Storage in the form | 2893 /// Google Cloud Storage in the form |
| 1974 * 'http(s)://storage.googleapis.com/<bucket>/<object>'. | 2894 /// 'http(s)://storage.googleapis.com/<bucket>/<object>'. |
| 1975 */ | |
| 1976 core.String sourceUrl; | 2895 core.String sourceUrl; |
| 1977 | 2896 |
| 1978 FileInfo(); | 2897 FileInfo(); |
| 1979 | 2898 |
| 1980 FileInfo.fromJson(core.Map _json) { | 2899 FileInfo.fromJson(core.Map _json) { |
| 1981 if (_json.containsKey("mimeType")) { | 2900 if (_json.containsKey("mimeType")) { |
| 1982 mimeType = _json["mimeType"]; | 2901 mimeType = _json["mimeType"]; |
| 1983 } | 2902 } |
| 1984 if (_json.containsKey("sha1Sum")) { | 2903 if (_json.containsKey("sha1Sum")) { |
| 1985 sha1Sum = _json["sha1Sum"]; | 2904 sha1Sum = _json["sha1Sum"]; |
| 1986 } | 2905 } |
| 1987 if (_json.containsKey("sourceUrl")) { | 2906 if (_json.containsKey("sourceUrl")) { |
| 1988 sourceUrl = _json["sourceUrl"]; | 2907 sourceUrl = _json["sourceUrl"]; |
| 1989 } | 2908 } |
| 1990 } | 2909 } |
| 1991 | 2910 |
| 1992 core.Map<core.String, core.Object> toJson() { | 2911 core.Map<core.String, core.Object> toJson() { |
| 1993 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2912 final core.Map<core.String, core.Object> _json = |
| 2913 new core.Map<core.String, core.Object>(); |
| 1994 if (mimeType != null) { | 2914 if (mimeType != null) { |
| 1995 _json["mimeType"] = mimeType; | 2915 _json["mimeType"] = mimeType; |
| 1996 } | 2916 } |
| 1997 if (sha1Sum != null) { | 2917 if (sha1Sum != null) { |
| 1998 _json["sha1Sum"] = sha1Sum; | 2918 _json["sha1Sum"] = sha1Sum; |
| 1999 } | 2919 } |
| 2000 if (sourceUrl != null) { | 2920 if (sourceUrl != null) { |
| 2001 _json["sourceUrl"] = sourceUrl; | 2921 _json["sourceUrl"] = sourceUrl; |
| 2002 } | 2922 } |
| 2003 return _json; | 2923 return _json; |
| 2004 } | 2924 } |
| 2005 } | 2925 } |
| 2006 | 2926 |
| 2007 /** | 2927 /// Health checking configuration for VM instances. Unhealthy instances are |
| 2008 * Health checking configuration for VM instances. Unhealthy instances are | 2928 /// killed and replaced with new instances. Only applicable for instances in |
| 2009 * killed and replaced with new instances. Only applicable for instances in App | 2929 /// App Engine flexible environment. |
| 2010 * Engine flexible environment. | |
| 2011 */ | |
| 2012 class HealthCheck { | 2930 class HealthCheck { |
| 2013 /** Interval between health checks. */ | 2931 /// Interval between health checks. |
| 2014 core.String checkInterval; | 2932 core.String checkInterval; |
| 2015 /** Whether to explicitly disable health checks for this instance. */ | 2933 |
| 2934 /// Whether to explicitly disable health checks for this instance. |
| 2016 core.bool disableHealthCheck; | 2935 core.bool disableHealthCheck; |
| 2017 /** | 2936 |
| 2018 * Number of consecutive successful health checks required before receiving | 2937 /// Number of consecutive successful health checks required before receiving |
| 2019 * traffic. | 2938 /// traffic. |
| 2020 */ | |
| 2021 core.int healthyThreshold; | 2939 core.int healthyThreshold; |
| 2022 /** | 2940 |
| 2023 * Host header to send when performing an HTTP health check. Example: | 2941 /// Host header to send when performing an HTTP health check. Example: |
| 2024 * "myapp.appspot.com" | 2942 /// "myapp.appspot.com" |
| 2025 */ | |
| 2026 core.String host; | 2943 core.String host; |
| 2027 /** | 2944 |
| 2028 * Number of consecutive failed health checks required before an instance is | 2945 /// Number of consecutive failed health checks required before an instance is |
| 2029 * restarted. | 2946 /// restarted. |
| 2030 */ | |
| 2031 core.int restartThreshold; | 2947 core.int restartThreshold; |
| 2032 /** Time before the health check is considered failed. */ | 2948 |
| 2949 /// Time before the health check is considered failed. |
| 2033 core.String timeout; | 2950 core.String timeout; |
| 2034 /** | 2951 |
| 2035 * Number of consecutive failed health checks required before removing | 2952 /// Number of consecutive failed health checks required before removing |
| 2036 * traffic. | 2953 /// traffic. |
| 2037 */ | |
| 2038 core.int unhealthyThreshold; | 2954 core.int unhealthyThreshold; |
| 2039 | 2955 |
| 2040 HealthCheck(); | 2956 HealthCheck(); |
| 2041 | 2957 |
| 2042 HealthCheck.fromJson(core.Map _json) { | 2958 HealthCheck.fromJson(core.Map _json) { |
| 2043 if (_json.containsKey("checkInterval")) { | 2959 if (_json.containsKey("checkInterval")) { |
| 2044 checkInterval = _json["checkInterval"]; | 2960 checkInterval = _json["checkInterval"]; |
| 2045 } | 2961 } |
| 2046 if (_json.containsKey("disableHealthCheck")) { | 2962 if (_json.containsKey("disableHealthCheck")) { |
| 2047 disableHealthCheck = _json["disableHealthCheck"]; | 2963 disableHealthCheck = _json["disableHealthCheck"]; |
| 2048 } | 2964 } |
| 2049 if (_json.containsKey("healthyThreshold")) { | 2965 if (_json.containsKey("healthyThreshold")) { |
| 2050 healthyThreshold = _json["healthyThreshold"]; | 2966 healthyThreshold = _json["healthyThreshold"]; |
| 2051 } | 2967 } |
| 2052 if (_json.containsKey("host")) { | 2968 if (_json.containsKey("host")) { |
| 2053 host = _json["host"]; | 2969 host = _json["host"]; |
| 2054 } | 2970 } |
| 2055 if (_json.containsKey("restartThreshold")) { | 2971 if (_json.containsKey("restartThreshold")) { |
| 2056 restartThreshold = _json["restartThreshold"]; | 2972 restartThreshold = _json["restartThreshold"]; |
| 2057 } | 2973 } |
| 2058 if (_json.containsKey("timeout")) { | 2974 if (_json.containsKey("timeout")) { |
| 2059 timeout = _json["timeout"]; | 2975 timeout = _json["timeout"]; |
| 2060 } | 2976 } |
| 2061 if (_json.containsKey("unhealthyThreshold")) { | 2977 if (_json.containsKey("unhealthyThreshold")) { |
| 2062 unhealthyThreshold = _json["unhealthyThreshold"]; | 2978 unhealthyThreshold = _json["unhealthyThreshold"]; |
| 2063 } | 2979 } |
| 2064 } | 2980 } |
| 2065 | 2981 |
| 2066 core.Map<core.String, core.Object> toJson() { | 2982 core.Map<core.String, core.Object> toJson() { |
| 2067 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2983 final core.Map<core.String, core.Object> _json = |
| 2984 new core.Map<core.String, core.Object>(); |
| 2068 if (checkInterval != null) { | 2985 if (checkInterval != null) { |
| 2069 _json["checkInterval"] = checkInterval; | 2986 _json["checkInterval"] = checkInterval; |
| 2070 } | 2987 } |
| 2071 if (disableHealthCheck != null) { | 2988 if (disableHealthCheck != null) { |
| 2072 _json["disableHealthCheck"] = disableHealthCheck; | 2989 _json["disableHealthCheck"] = disableHealthCheck; |
| 2073 } | 2990 } |
| 2074 if (healthyThreshold != null) { | 2991 if (healthyThreshold != null) { |
| 2075 _json["healthyThreshold"] = healthyThreshold; | 2992 _json["healthyThreshold"] = healthyThreshold; |
| 2076 } | 2993 } |
| 2077 if (host != null) { | 2994 if (host != null) { |
| 2078 _json["host"] = host; | 2995 _json["host"] = host; |
| 2079 } | 2996 } |
| 2080 if (restartThreshold != null) { | 2997 if (restartThreshold != null) { |
| 2081 _json["restartThreshold"] = restartThreshold; | 2998 _json["restartThreshold"] = restartThreshold; |
| 2082 } | 2999 } |
| 2083 if (timeout != null) { | 3000 if (timeout != null) { |
| 2084 _json["timeout"] = timeout; | 3001 _json["timeout"] = timeout; |
| 2085 } | 3002 } |
| 2086 if (unhealthyThreshold != null) { | 3003 if (unhealthyThreshold != null) { |
| 2087 _json["unhealthyThreshold"] = unhealthyThreshold; | 3004 _json["unhealthyThreshold"] = unhealthyThreshold; |
| 2088 } | 3005 } |
| 2089 return _json; | 3006 return _json; |
| 2090 } | 3007 } |
| 2091 } | 3008 } |
| 2092 | 3009 |
| 2093 /** Identity-Aware Proxy */ | 3010 /// Identity-Aware Proxy |
| 2094 class IdentityAwareProxy { | 3011 class IdentityAwareProxy { |
| 2095 /** | 3012 /// Whether the serving infrastructure will authenticate and authorize all |
| 2096 * Whether the serving infrastructure will authenticate and authorize all | 3013 /// incoming requests.If true, the oauth2_client_id and oauth2_client_secret |
| 2097 * incoming requests.If true, the oauth2_client_id and oauth2_client_secret | 3014 /// fields must be non-empty. |
| 2098 * fields must be non-empty. | |
| 2099 */ | |
| 2100 core.bool enabled; | 3015 core.bool enabled; |
| 2101 /** OAuth2 client ID to use for the authentication flow. */ | 3016 |
| 3017 /// OAuth2 client ID to use for the authentication flow. |
| 2102 core.String oauth2ClientId; | 3018 core.String oauth2ClientId; |
| 2103 /** | 3019 |
| 2104 * OAuth2 client secret to use for the authentication flow.For security | 3020 /// OAuth2 client secret to use for the authentication flow.For security |
| 2105 * reasons, this value cannot be retrieved via the API. Instead, the SHA-256 | 3021 /// reasons, this value cannot be retrieved via the API. Instead, the SHA-256 |
| 2106 * hash of the value is returned in the oauth2_client_secret_sha256 | 3022 /// hash of the value is returned in the oauth2_client_secret_sha256 |
| 2107 * field.@InputOnly | 3023 /// field.@InputOnly |
| 2108 */ | |
| 2109 core.String oauth2ClientSecret; | 3024 core.String oauth2ClientSecret; |
| 2110 /** Hex-encoded SHA-256 hash of the client secret.@OutputOnly */ | 3025 |
| 3026 /// Hex-encoded SHA-256 hash of the client secret.@OutputOnly |
| 2111 core.String oauth2ClientSecretSha256; | 3027 core.String oauth2ClientSecretSha256; |
| 2112 | 3028 |
| 2113 IdentityAwareProxy(); | 3029 IdentityAwareProxy(); |
| 2114 | 3030 |
| 2115 IdentityAwareProxy.fromJson(core.Map _json) { | 3031 IdentityAwareProxy.fromJson(core.Map _json) { |
| 2116 if (_json.containsKey("enabled")) { | 3032 if (_json.containsKey("enabled")) { |
| 2117 enabled = _json["enabled"]; | 3033 enabled = _json["enabled"]; |
| 2118 } | 3034 } |
| 2119 if (_json.containsKey("oauth2ClientId")) { | 3035 if (_json.containsKey("oauth2ClientId")) { |
| 2120 oauth2ClientId = _json["oauth2ClientId"]; | 3036 oauth2ClientId = _json["oauth2ClientId"]; |
| 2121 } | 3037 } |
| 2122 if (_json.containsKey("oauth2ClientSecret")) { | 3038 if (_json.containsKey("oauth2ClientSecret")) { |
| 2123 oauth2ClientSecret = _json["oauth2ClientSecret"]; | 3039 oauth2ClientSecret = _json["oauth2ClientSecret"]; |
| 2124 } | 3040 } |
| 2125 if (_json.containsKey("oauth2ClientSecretSha256")) { | 3041 if (_json.containsKey("oauth2ClientSecretSha256")) { |
| 2126 oauth2ClientSecretSha256 = _json["oauth2ClientSecretSha256"]; | 3042 oauth2ClientSecretSha256 = _json["oauth2ClientSecretSha256"]; |
| 2127 } | 3043 } |
| 2128 } | 3044 } |
| 2129 | 3045 |
| 2130 core.Map<core.String, core.Object> toJson() { | 3046 core.Map<core.String, core.Object> toJson() { |
| 2131 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3047 final core.Map<core.String, core.Object> _json = |
| 3048 new core.Map<core.String, core.Object>(); |
| 2132 if (enabled != null) { | 3049 if (enabled != null) { |
| 2133 _json["enabled"] = enabled; | 3050 _json["enabled"] = enabled; |
| 2134 } | 3051 } |
| 2135 if (oauth2ClientId != null) { | 3052 if (oauth2ClientId != null) { |
| 2136 _json["oauth2ClientId"] = oauth2ClientId; | 3053 _json["oauth2ClientId"] = oauth2ClientId; |
| 2137 } | 3054 } |
| 2138 if (oauth2ClientSecret != null) { | 3055 if (oauth2ClientSecret != null) { |
| 2139 _json["oauth2ClientSecret"] = oauth2ClientSecret; | 3056 _json["oauth2ClientSecret"] = oauth2ClientSecret; |
| 2140 } | 3057 } |
| 2141 if (oauth2ClientSecretSha256 != null) { | 3058 if (oauth2ClientSecretSha256 != null) { |
| 2142 _json["oauth2ClientSecretSha256"] = oauth2ClientSecretSha256; | 3059 _json["oauth2ClientSecretSha256"] = oauth2ClientSecretSha256; |
| 2143 } | 3060 } |
| 2144 return _json; | 3061 return _json; |
| 2145 } | 3062 } |
| 2146 } | 3063 } |
| 2147 | 3064 |
| 2148 /** | 3065 /// An Instance resource is the computing unit that App Engine uses to |
| 2149 * An Instance resource is the computing unit that App Engine uses to | 3066 /// automatically scale an application. |
| 2150 * automatically scale an application. | |
| 2151 */ | |
| 2152 class Instance { | 3067 class Instance { |
| 2153 /** App Engine release this instance is running on.@OutputOnly */ | 3068 /// App Engine release this instance is running on.@OutputOnly |
| 2154 core.String appEngineRelease; | 3069 core.String appEngineRelease; |
| 2155 /** | 3070 |
| 2156 * Availability of the instance.@OutputOnly | 3071 /// Availability of the instance.@OutputOnly |
| 2157 * Possible string values are: | 3072 /// Possible string values are: |
| 2158 * - "UNSPECIFIED" | 3073 /// - "UNSPECIFIED" |
| 2159 * - "RESIDENT" | 3074 /// - "RESIDENT" |
| 2160 * - "DYNAMIC" | 3075 /// - "DYNAMIC" |
| 2161 */ | |
| 2162 core.String availability; | 3076 core.String availability; |
| 2163 /** Average latency (ms) over the last minute.@OutputOnly */ | 3077 |
| 3078 /// Average latency (ms) over the last minute.@OutputOnly |
| 2164 core.int averageLatency; | 3079 core.int averageLatency; |
| 2165 /** Number of errors since this instance was started.@OutputOnly */ | 3080 |
| 3081 /// Number of errors since this instance was started.@OutputOnly |
| 2166 core.int errors; | 3082 core.int errors; |
| 2167 /** | 3083 |
| 2168 * Relative name of the instance within the version. Example: | 3084 /// Relative name of the instance within the version. Example: |
| 2169 * instance-1.@OutputOnly | 3085 /// instance-1.@OutputOnly |
| 2170 */ | |
| 2171 core.String id; | 3086 core.String id; |
| 2172 /** Total memory in use (bytes).@OutputOnly */ | 3087 |
| 3088 /// Total memory in use (bytes).@OutputOnly |
| 2173 core.String memoryUsage; | 3089 core.String memoryUsage; |
| 2174 /** | 3090 |
| 2175 * Full path to the Instance resource in the API. Example: | 3091 /// Full path to the Instance resource in the API. Example: |
| 2176 * apps/myapp/services/default/versions/v1/instances/instance-1.@OutputOnly | 3092 /// apps/myapp/services/default/versions/v1/instances/instance-1.@OutputOnly |
| 2177 */ | |
| 2178 core.String name; | 3093 core.String name; |
| 2179 /** Average queries per second (QPS) over the last minute.@OutputOnly */ | 3094 |
| 3095 /// Average queries per second (QPS) over the last minute.@OutputOnly |
| 2180 core.double qps; | 3096 core.double qps; |
| 2181 /** Number of requests since this instance was started.@OutputOnly */ | 3097 |
| 3098 /// Number of requests since this instance was started.@OutputOnly |
| 2182 core.int requests; | 3099 core.int requests; |
| 2183 /** Time that this instance was started.@OutputOnly */ | 3100 |
| 3101 /// Time that this instance was started.@OutputOnly |
| 2184 core.String startTime; | 3102 core.String startTime; |
| 2185 /** | 3103 |
| 2186 * Whether this instance is in debug mode. Only applicable for instances in | 3104 /// Whether this instance is in debug mode. Only applicable for instances in |
| 2187 * App Engine flexible environment.@OutputOnly | 3105 /// App Engine flexible environment.@OutputOnly |
| 2188 */ | |
| 2189 core.bool vmDebugEnabled; | 3106 core.bool vmDebugEnabled; |
| 2190 /** | 3107 |
| 2191 * Virtual machine ID of this instance. Only applicable for instances in App | 3108 /// Virtual machine ID of this instance. Only applicable for instances in App |
| 2192 * Engine flexible environment.@OutputOnly | 3109 /// Engine flexible environment.@OutputOnly |
| 2193 */ | |
| 2194 core.String vmId; | 3110 core.String vmId; |
| 2195 /** | 3111 |
| 2196 * The IP address of this instance. Only applicable for instances in App | 3112 /// The IP address of this instance. Only applicable for instances in App |
| 2197 * Engine flexible environment.@OutputOnly | 3113 /// Engine flexible environment.@OutputOnly |
| 2198 */ | |
| 2199 core.String vmIp; | 3114 core.String vmIp; |
| 2200 /** | 3115 |
| 2201 * Name of the virtual machine where this instance lives. Only applicable for | 3116 /// Name of the virtual machine where this instance lives. Only applicable |
| 2202 * instances in App Engine flexible environment.@OutputOnly | 3117 /// for instances in App Engine flexible environment.@OutputOnly |
| 2203 */ | |
| 2204 core.String vmName; | 3118 core.String vmName; |
| 2205 /** | 3119 |
| 2206 * Status of the virtual machine where this instance lives. Only applicable | 3120 /// Status of the virtual machine where this instance lives. Only applicable |
| 2207 * for instances in App Engine flexible environment.@OutputOnly | 3121 /// for instances in App Engine flexible environment.@OutputOnly |
| 2208 */ | |
| 2209 core.String vmStatus; | 3122 core.String vmStatus; |
| 2210 /** | 3123 |
| 2211 * Zone where the virtual machine is located. Only applicable for instances in | 3124 /// Zone where the virtual machine is located. Only applicable for instances |
| 2212 * App Engine flexible environment.@OutputOnly | 3125 /// in App Engine flexible environment.@OutputOnly |
| 2213 */ | |
| 2214 core.String vmZoneName; | 3126 core.String vmZoneName; |
| 2215 | 3127 |
| 2216 Instance(); | 3128 Instance(); |
| 2217 | 3129 |
| 2218 Instance.fromJson(core.Map _json) { | 3130 Instance.fromJson(core.Map _json) { |
| 2219 if (_json.containsKey("appEngineRelease")) { | 3131 if (_json.containsKey("appEngineRelease")) { |
| 2220 appEngineRelease = _json["appEngineRelease"]; | 3132 appEngineRelease = _json["appEngineRelease"]; |
| 2221 } | 3133 } |
| 2222 if (_json.containsKey("availability")) { | 3134 if (_json.containsKey("availability")) { |
| 2223 availability = _json["availability"]; | 3135 availability = _json["availability"]; |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2260 } | 3172 } |
| 2261 if (_json.containsKey("vmStatus")) { | 3173 if (_json.containsKey("vmStatus")) { |
| 2262 vmStatus = _json["vmStatus"]; | 3174 vmStatus = _json["vmStatus"]; |
| 2263 } | 3175 } |
| 2264 if (_json.containsKey("vmZoneName")) { | 3176 if (_json.containsKey("vmZoneName")) { |
| 2265 vmZoneName = _json["vmZoneName"]; | 3177 vmZoneName = _json["vmZoneName"]; |
| 2266 } | 3178 } |
| 2267 } | 3179 } |
| 2268 | 3180 |
| 2269 core.Map<core.String, core.Object> toJson() { | 3181 core.Map<core.String, core.Object> toJson() { |
| 2270 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3182 final core.Map<core.String, core.Object> _json = |
| 3183 new core.Map<core.String, core.Object>(); |
| 2271 if (appEngineRelease != null) { | 3184 if (appEngineRelease != null) { |
| 2272 _json["appEngineRelease"] = appEngineRelease; | 3185 _json["appEngineRelease"] = appEngineRelease; |
| 2273 } | 3186 } |
| 2274 if (availability != null) { | 3187 if (availability != null) { |
| 2275 _json["availability"] = availability; | 3188 _json["availability"] = availability; |
| 2276 } | 3189 } |
| 2277 if (averageLatency != null) { | 3190 if (averageLatency != null) { |
| 2278 _json["averageLatency"] = averageLatency; | 3191 _json["averageLatency"] = averageLatency; |
| 2279 } | 3192 } |
| 2280 if (errors != null) { | 3193 if (errors != null) { |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2313 if (vmStatus != null) { | 3226 if (vmStatus != null) { |
| 2314 _json["vmStatus"] = vmStatus; | 3227 _json["vmStatus"] = vmStatus; |
| 2315 } | 3228 } |
| 2316 if (vmZoneName != null) { | 3229 if (vmZoneName != null) { |
| 2317 _json["vmZoneName"] = vmZoneName; | 3230 _json["vmZoneName"] = vmZoneName; |
| 2318 } | 3231 } |
| 2319 return _json; | 3232 return _json; |
| 2320 } | 3233 } |
| 2321 } | 3234 } |
| 2322 | 3235 |
| 2323 /** Third-party Python runtime library that is required by the application. */ | 3236 /// Third-party Python runtime library that is required by the application. |
| 2324 class Library { | 3237 class Library { |
| 2325 /** Name of the library. Example: "django". */ | 3238 /// Name of the library. Example: "django". |
| 2326 core.String name; | 3239 core.String name; |
| 2327 /** Version of the library to select, or "latest". */ | 3240 |
| 3241 /// Version of the library to select, or "latest". |
| 2328 core.String version; | 3242 core.String version; |
| 2329 | 3243 |
| 2330 Library(); | 3244 Library(); |
| 2331 | 3245 |
| 2332 Library.fromJson(core.Map _json) { | 3246 Library.fromJson(core.Map _json) { |
| 2333 if (_json.containsKey("name")) { | 3247 if (_json.containsKey("name")) { |
| 2334 name = _json["name"]; | 3248 name = _json["name"]; |
| 2335 } | 3249 } |
| 2336 if (_json.containsKey("version")) { | 3250 if (_json.containsKey("version")) { |
| 2337 version = _json["version"]; | 3251 version = _json["version"]; |
| 2338 } | 3252 } |
| 2339 } | 3253 } |
| 2340 | 3254 |
| 2341 core.Map<core.String, core.Object> toJson() { | 3255 core.Map<core.String, core.Object> toJson() { |
| 2342 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3256 final core.Map<core.String, core.Object> _json = |
| 3257 new core.Map<core.String, core.Object>(); |
| 2343 if (name != null) { | 3258 if (name != null) { |
| 2344 _json["name"] = name; | 3259 _json["name"] = name; |
| 2345 } | 3260 } |
| 2346 if (version != null) { | 3261 if (version != null) { |
| 2347 _json["version"] = version; | 3262 _json["version"] = version; |
| 2348 } | 3263 } |
| 2349 return _json; | 3264 return _json; |
| 2350 } | 3265 } |
| 2351 } | 3266 } |
| 2352 | 3267 |
| 2353 /** Response message for Instances.ListInstances. */ | 3268 /// Response message for AuthorizedCertificates.ListAuthorizedCertificates. |
| 3269 class ListAuthorizedCertificatesResponse { |
| 3270 /// The SSL certificates the user is authorized to administer. |
| 3271 core.List<AuthorizedCertificate> certificates; |
| 3272 |
| 3273 /// Continuation token for fetching the next page of results. |
| 3274 core.String nextPageToken; |
| 3275 |
| 3276 ListAuthorizedCertificatesResponse(); |
| 3277 |
| 3278 ListAuthorizedCertificatesResponse.fromJson(core.Map _json) { |
| 3279 if (_json.containsKey("certificates")) { |
| 3280 certificates = _json["certificates"] |
| 3281 .map((value) => new AuthorizedCertificate.fromJson(value)) |
| 3282 .toList(); |
| 3283 } |
| 3284 if (_json.containsKey("nextPageToken")) { |
| 3285 nextPageToken = _json["nextPageToken"]; |
| 3286 } |
| 3287 } |
| 3288 |
| 3289 core.Map<core.String, core.Object> toJson() { |
| 3290 final core.Map<core.String, core.Object> _json = |
| 3291 new core.Map<core.String, core.Object>(); |
| 3292 if (certificates != null) { |
| 3293 _json["certificates"] = |
| 3294 certificates.map((value) => (value).toJson()).toList(); |
| 3295 } |
| 3296 if (nextPageToken != null) { |
| 3297 _json["nextPageToken"] = nextPageToken; |
| 3298 } |
| 3299 return _json; |
| 3300 } |
| 3301 } |
| 3302 |
| 3303 /// Response message for AuthorizedDomains.ListAuthorizedDomains. |
| 3304 class ListAuthorizedDomainsResponse { |
| 3305 /// The authorized domains belonging to the user. |
| 3306 core.List<AuthorizedDomain> domains; |
| 3307 |
| 3308 /// Continuation token for fetching the next page of results. |
| 3309 core.String nextPageToken; |
| 3310 |
| 3311 ListAuthorizedDomainsResponse(); |
| 3312 |
| 3313 ListAuthorizedDomainsResponse.fromJson(core.Map _json) { |
| 3314 if (_json.containsKey("domains")) { |
| 3315 domains = _json["domains"] |
| 3316 .map((value) => new AuthorizedDomain.fromJson(value)) |
| 3317 .toList(); |
| 3318 } |
| 3319 if (_json.containsKey("nextPageToken")) { |
| 3320 nextPageToken = _json["nextPageToken"]; |
| 3321 } |
| 3322 } |
| 3323 |
| 3324 core.Map<core.String, core.Object> toJson() { |
| 3325 final core.Map<core.String, core.Object> _json = |
| 3326 new core.Map<core.String, core.Object>(); |
| 3327 if (domains != null) { |
| 3328 _json["domains"] = domains.map((value) => (value).toJson()).toList(); |
| 3329 } |
| 3330 if (nextPageToken != null) { |
| 3331 _json["nextPageToken"] = nextPageToken; |
| 3332 } |
| 3333 return _json; |
| 3334 } |
| 3335 } |
| 3336 |
| 3337 /// Response message for DomainMappings.ListDomainMappings. |
| 3338 class ListDomainMappingsResponse { |
| 3339 /// The domain mappings for the application. |
| 3340 core.List<DomainMapping> domainMappings; |
| 3341 |
| 3342 /// Continuation token for fetching the next page of results. |
| 3343 core.String nextPageToken; |
| 3344 |
| 3345 ListDomainMappingsResponse(); |
| 3346 |
| 3347 ListDomainMappingsResponse.fromJson(core.Map _json) { |
| 3348 if (_json.containsKey("domainMappings")) { |
| 3349 domainMappings = _json["domainMappings"] |
| 3350 .map((value) => new DomainMapping.fromJson(value)) |
| 3351 .toList(); |
| 3352 } |
| 3353 if (_json.containsKey("nextPageToken")) { |
| 3354 nextPageToken = _json["nextPageToken"]; |
| 3355 } |
| 3356 } |
| 3357 |
| 3358 core.Map<core.String, core.Object> toJson() { |
| 3359 final core.Map<core.String, core.Object> _json = |
| 3360 new core.Map<core.String, core.Object>(); |
| 3361 if (domainMappings != null) { |
| 3362 _json["domainMappings"] = |
| 3363 domainMappings.map((value) => (value).toJson()).toList(); |
| 3364 } |
| 3365 if (nextPageToken != null) { |
| 3366 _json["nextPageToken"] = nextPageToken; |
| 3367 } |
| 3368 return _json; |
| 3369 } |
| 3370 } |
| 3371 |
| 3372 /// Response message for Instances.ListInstances. |
| 2354 class ListInstancesResponse { | 3373 class ListInstancesResponse { |
| 2355 /** The instances belonging to the requested version. */ | 3374 /// The instances belonging to the requested version. |
| 2356 core.List<Instance> instances; | 3375 core.List<Instance> instances; |
| 2357 /** Continuation token for fetching the next page of results. */ | 3376 |
| 3377 /// Continuation token for fetching the next page of results. |
| 2358 core.String nextPageToken; | 3378 core.String nextPageToken; |
| 2359 | 3379 |
| 2360 ListInstancesResponse(); | 3380 ListInstancesResponse(); |
| 2361 | 3381 |
| 2362 ListInstancesResponse.fromJson(core.Map _json) { | 3382 ListInstancesResponse.fromJson(core.Map _json) { |
| 2363 if (_json.containsKey("instances")) { | 3383 if (_json.containsKey("instances")) { |
| 2364 instances = _json["instances"].map((value) => new Instance.fromJson(value)
).toList(); | 3384 instances = _json["instances"] |
| 3385 .map((value) => new Instance.fromJson(value)) |
| 3386 .toList(); |
| 2365 } | 3387 } |
| 2366 if (_json.containsKey("nextPageToken")) { | 3388 if (_json.containsKey("nextPageToken")) { |
| 2367 nextPageToken = _json["nextPageToken"]; | 3389 nextPageToken = _json["nextPageToken"]; |
| 2368 } | 3390 } |
| 2369 } | 3391 } |
| 2370 | 3392 |
| 2371 core.Map<core.String, core.Object> toJson() { | 3393 core.Map<core.String, core.Object> toJson() { |
| 2372 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3394 final core.Map<core.String, core.Object> _json = |
| 3395 new core.Map<core.String, core.Object>(); |
| 2373 if (instances != null) { | 3396 if (instances != null) { |
| 2374 _json["instances"] = instances.map((value) => (value).toJson()).toList(); | 3397 _json["instances"] = instances.map((value) => (value).toJson()).toList(); |
| 2375 } | 3398 } |
| 2376 if (nextPageToken != null) { | 3399 if (nextPageToken != null) { |
| 2377 _json["nextPageToken"] = nextPageToken; | 3400 _json["nextPageToken"] = nextPageToken; |
| 2378 } | 3401 } |
| 2379 return _json; | 3402 return _json; |
| 2380 } | 3403 } |
| 2381 } | 3404 } |
| 2382 | 3405 |
| 2383 /** The response message for Locations.ListLocations. */ | 3406 /// The response message for Locations.ListLocations. |
| 2384 class ListLocationsResponse { | 3407 class ListLocationsResponse { |
| 2385 /** A list of locations that matches the specified filter in the request. */ | 3408 /// A list of locations that matches the specified filter in the request. |
| 2386 core.List<Location> locations; | 3409 core.List<Location> locations; |
| 2387 /** The standard List next-page token. */ | 3410 |
| 3411 /// The standard List next-page token. |
| 2388 core.String nextPageToken; | 3412 core.String nextPageToken; |
| 2389 | 3413 |
| 2390 ListLocationsResponse(); | 3414 ListLocationsResponse(); |
| 2391 | 3415 |
| 2392 ListLocationsResponse.fromJson(core.Map _json) { | 3416 ListLocationsResponse.fromJson(core.Map _json) { |
| 2393 if (_json.containsKey("locations")) { | 3417 if (_json.containsKey("locations")) { |
| 2394 locations = _json["locations"].map((value) => new Location.fromJson(value)
).toList(); | 3418 locations = _json["locations"] |
| 3419 .map((value) => new Location.fromJson(value)) |
| 3420 .toList(); |
| 2395 } | 3421 } |
| 2396 if (_json.containsKey("nextPageToken")) { | 3422 if (_json.containsKey("nextPageToken")) { |
| 2397 nextPageToken = _json["nextPageToken"]; | 3423 nextPageToken = _json["nextPageToken"]; |
| 2398 } | 3424 } |
| 2399 } | 3425 } |
| 2400 | 3426 |
| 2401 core.Map<core.String, core.Object> toJson() { | 3427 core.Map<core.String, core.Object> toJson() { |
| 2402 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3428 final core.Map<core.String, core.Object> _json = |
| 3429 new core.Map<core.String, core.Object>(); |
| 2403 if (locations != null) { | 3430 if (locations != null) { |
| 2404 _json["locations"] = locations.map((value) => (value).toJson()).toList(); | 3431 _json["locations"] = locations.map((value) => (value).toJson()).toList(); |
| 2405 } | 3432 } |
| 2406 if (nextPageToken != null) { | 3433 if (nextPageToken != null) { |
| 2407 _json["nextPageToken"] = nextPageToken; | 3434 _json["nextPageToken"] = nextPageToken; |
| 2408 } | 3435 } |
| 2409 return _json; | 3436 return _json; |
| 2410 } | 3437 } |
| 2411 } | 3438 } |
| 2412 | 3439 |
| 2413 /** The response message for Operations.ListOperations. */ | 3440 /// The response message for Operations.ListOperations. |
| 2414 class ListOperationsResponse { | 3441 class ListOperationsResponse { |
| 2415 /** The standard List next-page token. */ | 3442 /// The standard List next-page token. |
| 2416 core.String nextPageToken; | 3443 core.String nextPageToken; |
| 2417 /** A list of operations that matches the specified filter in the request. */ | 3444 |
| 3445 /// A list of operations that matches the specified filter in the request. |
| 2418 core.List<Operation> operations; | 3446 core.List<Operation> operations; |
| 2419 | 3447 |
| 2420 ListOperationsResponse(); | 3448 ListOperationsResponse(); |
| 2421 | 3449 |
| 2422 ListOperationsResponse.fromJson(core.Map _json) { | 3450 ListOperationsResponse.fromJson(core.Map _json) { |
| 2423 if (_json.containsKey("nextPageToken")) { | 3451 if (_json.containsKey("nextPageToken")) { |
| 2424 nextPageToken = _json["nextPageToken"]; | 3452 nextPageToken = _json["nextPageToken"]; |
| 2425 } | 3453 } |
| 2426 if (_json.containsKey("operations")) { | 3454 if (_json.containsKey("operations")) { |
| 2427 operations = _json["operations"].map((value) => new Operation.fromJson(val
ue)).toList(); | 3455 operations = _json["operations"] |
| 3456 .map((value) => new Operation.fromJson(value)) |
| 3457 .toList(); |
| 2428 } | 3458 } |
| 2429 } | 3459 } |
| 2430 | 3460 |
| 2431 core.Map<core.String, core.Object> toJson() { | 3461 core.Map<core.String, core.Object> toJson() { |
| 2432 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3462 final core.Map<core.String, core.Object> _json = |
| 3463 new core.Map<core.String, core.Object>(); |
| 2433 if (nextPageToken != null) { | 3464 if (nextPageToken != null) { |
| 2434 _json["nextPageToken"] = nextPageToken; | 3465 _json["nextPageToken"] = nextPageToken; |
| 2435 } | 3466 } |
| 2436 if (operations != null) { | 3467 if (operations != null) { |
| 2437 _json["operations"] = operations.map((value) => (value).toJson()).toList()
; | 3468 _json["operations"] = |
| 3469 operations.map((value) => (value).toJson()).toList(); |
| 2438 } | 3470 } |
| 2439 return _json; | 3471 return _json; |
| 2440 } | 3472 } |
| 2441 } | 3473 } |
| 2442 | 3474 |
| 2443 /** Response message for Services.ListServices. */ | 3475 /// Response message for Services.ListServices. |
| 2444 class ListServicesResponse { | 3476 class ListServicesResponse { |
| 2445 /** Continuation token for fetching the next page of results. */ | 3477 /// Continuation token for fetching the next page of results. |
| 2446 core.String nextPageToken; | 3478 core.String nextPageToken; |
| 2447 /** The services belonging to the requested application. */ | 3479 |
| 3480 /// The services belonging to the requested application. |
| 2448 core.List<Service> services; | 3481 core.List<Service> services; |
| 2449 | 3482 |
| 2450 ListServicesResponse(); | 3483 ListServicesResponse(); |
| 2451 | 3484 |
| 2452 ListServicesResponse.fromJson(core.Map _json) { | 3485 ListServicesResponse.fromJson(core.Map _json) { |
| 2453 if (_json.containsKey("nextPageToken")) { | 3486 if (_json.containsKey("nextPageToken")) { |
| 2454 nextPageToken = _json["nextPageToken"]; | 3487 nextPageToken = _json["nextPageToken"]; |
| 2455 } | 3488 } |
| 2456 if (_json.containsKey("services")) { | 3489 if (_json.containsKey("services")) { |
| 2457 services = _json["services"].map((value) => new Service.fromJson(value)).t
oList(); | 3490 services = _json["services"] |
| 3491 .map((value) => new Service.fromJson(value)) |
| 3492 .toList(); |
| 2458 } | 3493 } |
| 2459 } | 3494 } |
| 2460 | 3495 |
| 2461 core.Map<core.String, core.Object> toJson() { | 3496 core.Map<core.String, core.Object> toJson() { |
| 2462 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3497 final core.Map<core.String, core.Object> _json = |
| 3498 new core.Map<core.String, core.Object>(); |
| 2463 if (nextPageToken != null) { | 3499 if (nextPageToken != null) { |
| 2464 _json["nextPageToken"] = nextPageToken; | 3500 _json["nextPageToken"] = nextPageToken; |
| 2465 } | 3501 } |
| 2466 if (services != null) { | 3502 if (services != null) { |
| 2467 _json["services"] = services.map((value) => (value).toJson()).toList(); | 3503 _json["services"] = services.map((value) => (value).toJson()).toList(); |
| 2468 } | 3504 } |
| 2469 return _json; | 3505 return _json; |
| 2470 } | 3506 } |
| 2471 } | 3507 } |
| 2472 | 3508 |
| 2473 /** Response message for Versions.ListVersions. */ | 3509 /// Response message for Versions.ListVersions. |
| 2474 class ListVersionsResponse { | 3510 class ListVersionsResponse { |
| 2475 /** Continuation token for fetching the next page of results. */ | 3511 /// Continuation token for fetching the next page of results. |
| 2476 core.String nextPageToken; | 3512 core.String nextPageToken; |
| 2477 /** The versions belonging to the requested service. */ | 3513 |
| 3514 /// The versions belonging to the requested service. |
| 2478 core.List<Version> versions; | 3515 core.List<Version> versions; |
| 2479 | 3516 |
| 2480 ListVersionsResponse(); | 3517 ListVersionsResponse(); |
| 2481 | 3518 |
| 2482 ListVersionsResponse.fromJson(core.Map _json) { | 3519 ListVersionsResponse.fromJson(core.Map _json) { |
| 2483 if (_json.containsKey("nextPageToken")) { | 3520 if (_json.containsKey("nextPageToken")) { |
| 2484 nextPageToken = _json["nextPageToken"]; | 3521 nextPageToken = _json["nextPageToken"]; |
| 2485 } | 3522 } |
| 2486 if (_json.containsKey("versions")) { | 3523 if (_json.containsKey("versions")) { |
| 2487 versions = _json["versions"].map((value) => new Version.fromJson(value)).t
oList(); | 3524 versions = _json["versions"] |
| 3525 .map((value) => new Version.fromJson(value)) |
| 3526 .toList(); |
| 2488 } | 3527 } |
| 2489 } | 3528 } |
| 2490 | 3529 |
| 2491 core.Map<core.String, core.Object> toJson() { | 3530 core.Map<core.String, core.Object> toJson() { |
| 2492 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3531 final core.Map<core.String, core.Object> _json = |
| 3532 new core.Map<core.String, core.Object>(); |
| 2493 if (nextPageToken != null) { | 3533 if (nextPageToken != null) { |
| 2494 _json["nextPageToken"] = nextPageToken; | 3534 _json["nextPageToken"] = nextPageToken; |
| 2495 } | 3535 } |
| 2496 if (versions != null) { | 3536 if (versions != null) { |
| 2497 _json["versions"] = versions.map((value) => (value).toJson()).toList(); | 3537 _json["versions"] = versions.map((value) => (value).toJson()).toList(); |
| 2498 } | 3538 } |
| 2499 return _json; | 3539 return _json; |
| 2500 } | 3540 } |
| 2501 } | 3541 } |
| 2502 | 3542 |
| 2503 /** | 3543 /// Health checking configuration for VM instances. Unhealthy instances are |
| 2504 * Health checking configuration for VM instances. Unhealthy instances are | 3544 /// killed and replaced with new instances. |
| 2505 * killed and replaced with new instances. | |
| 2506 */ | |
| 2507 class LivenessCheck { | 3545 class LivenessCheck { |
| 2508 /** Interval between health checks. */ | 3546 /// Interval between health checks. |
| 2509 core.String checkInterval; | 3547 core.String checkInterval; |
| 2510 /** | 3548 |
| 2511 * Number of consecutive failed checks required before considering the VM | 3549 /// Number of consecutive failed checks required before considering the VM |
| 2512 * unhealthy. | 3550 /// unhealthy. |
| 2513 */ | |
| 2514 core.int failureThreshold; | 3551 core.int failureThreshold; |
| 2515 /** | 3552 |
| 2516 * Host header to send when performing a HTTP Liveness check. Example: | 3553 /// Host header to send when performing a HTTP Liveness check. Example: |
| 2517 * "myapp.appspot.com" | 3554 /// "myapp.appspot.com" |
| 2518 */ | |
| 2519 core.String host; | 3555 core.String host; |
| 2520 /** The initial delay before starting to execute the checks. */ | 3556 |
| 3557 /// The initial delay before starting to execute the checks. |
| 2521 core.String initialDelay; | 3558 core.String initialDelay; |
| 2522 /** The request path. */ | 3559 |
| 3560 /// The request path. |
| 2523 core.String path; | 3561 core.String path; |
| 2524 /** | 3562 |
| 2525 * Number of consecutive successful checks required before considering the VM | 3563 /// Number of consecutive successful checks required before considering the |
| 2526 * healthy. | 3564 /// VM healthy. |
| 2527 */ | |
| 2528 core.int successThreshold; | 3565 core.int successThreshold; |
| 2529 /** Time before the check is considered failed. */ | 3566 |
| 3567 /// Time before the check is considered failed. |
| 2530 core.String timeout; | 3568 core.String timeout; |
| 2531 | 3569 |
| 2532 LivenessCheck(); | 3570 LivenessCheck(); |
| 2533 | 3571 |
| 2534 LivenessCheck.fromJson(core.Map _json) { | 3572 LivenessCheck.fromJson(core.Map _json) { |
| 2535 if (_json.containsKey("checkInterval")) { | 3573 if (_json.containsKey("checkInterval")) { |
| 2536 checkInterval = _json["checkInterval"]; | 3574 checkInterval = _json["checkInterval"]; |
| 2537 } | 3575 } |
| 2538 if (_json.containsKey("failureThreshold")) { | 3576 if (_json.containsKey("failureThreshold")) { |
| 2539 failureThreshold = _json["failureThreshold"]; | 3577 failureThreshold = _json["failureThreshold"]; |
| 2540 } | 3578 } |
| 2541 if (_json.containsKey("host")) { | 3579 if (_json.containsKey("host")) { |
| 2542 host = _json["host"]; | 3580 host = _json["host"]; |
| 2543 } | 3581 } |
| 2544 if (_json.containsKey("initialDelay")) { | 3582 if (_json.containsKey("initialDelay")) { |
| 2545 initialDelay = _json["initialDelay"]; | 3583 initialDelay = _json["initialDelay"]; |
| 2546 } | 3584 } |
| 2547 if (_json.containsKey("path")) { | 3585 if (_json.containsKey("path")) { |
| 2548 path = _json["path"]; | 3586 path = _json["path"]; |
| 2549 } | 3587 } |
| 2550 if (_json.containsKey("successThreshold")) { | 3588 if (_json.containsKey("successThreshold")) { |
| 2551 successThreshold = _json["successThreshold"]; | 3589 successThreshold = _json["successThreshold"]; |
| 2552 } | 3590 } |
| 2553 if (_json.containsKey("timeout")) { | 3591 if (_json.containsKey("timeout")) { |
| 2554 timeout = _json["timeout"]; | 3592 timeout = _json["timeout"]; |
| 2555 } | 3593 } |
| 2556 } | 3594 } |
| 2557 | 3595 |
| 2558 core.Map<core.String, core.Object> toJson() { | 3596 core.Map<core.String, core.Object> toJson() { |
| 2559 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3597 final core.Map<core.String, core.Object> _json = |
| 3598 new core.Map<core.String, core.Object>(); |
| 2560 if (checkInterval != null) { | 3599 if (checkInterval != null) { |
| 2561 _json["checkInterval"] = checkInterval; | 3600 _json["checkInterval"] = checkInterval; |
| 2562 } | 3601 } |
| 2563 if (failureThreshold != null) { | 3602 if (failureThreshold != null) { |
| 2564 _json["failureThreshold"] = failureThreshold; | 3603 _json["failureThreshold"] = failureThreshold; |
| 2565 } | 3604 } |
| 2566 if (host != null) { | 3605 if (host != null) { |
| 2567 _json["host"] = host; | 3606 _json["host"] = host; |
| 2568 } | 3607 } |
| 2569 if (initialDelay != null) { | 3608 if (initialDelay != null) { |
| 2570 _json["initialDelay"] = initialDelay; | 3609 _json["initialDelay"] = initialDelay; |
| 2571 } | 3610 } |
| 2572 if (path != null) { | 3611 if (path != null) { |
| 2573 _json["path"] = path; | 3612 _json["path"] = path; |
| 2574 } | 3613 } |
| 2575 if (successThreshold != null) { | 3614 if (successThreshold != null) { |
| 2576 _json["successThreshold"] = successThreshold; | 3615 _json["successThreshold"] = successThreshold; |
| 2577 } | 3616 } |
| 2578 if (timeout != null) { | 3617 if (timeout != null) { |
| 2579 _json["timeout"] = timeout; | 3618 _json["timeout"] = timeout; |
| 2580 } | 3619 } |
| 2581 return _json; | 3620 return _json; |
| 2582 } | 3621 } |
| 2583 } | 3622 } |
| 2584 | 3623 |
| 2585 /** A resource that represents Google Cloud Platform location. */ | 3624 /// A resource that represents Google Cloud Platform location. |
| 2586 class Location { | 3625 class Location { |
| 2587 /** | 3626 /// Cross-service attributes for the location. For example |
| 2588 * Cross-service attributes for the location. For example | 3627 /// {"cloud.googleapis.com/region": "us-east1"} |
| 2589 * {"cloud.googleapis.com/region": "us-east1"} | |
| 2590 */ | |
| 2591 core.Map<core.String, core.String> labels; | 3628 core.Map<core.String, core.String> labels; |
| 2592 /** The canonical id for this location. For example: "us-east1". */ | 3629 |
| 3630 /// The canonical id for this location. For example: "us-east1". |
| 2593 core.String locationId; | 3631 core.String locationId; |
| 2594 /** | 3632 |
| 2595 * Service-specific metadata. For example the available capacity at the given | 3633 /// Service-specific metadata. For example the available capacity at the |
| 2596 * location. | 3634 /// given location. |
| 2597 * | 3635 /// |
| 2598 * The values for Object must be JSON objects. It can consist of `num`, | 3636 /// The values for Object must be JSON objects. It can consist of `num`, |
| 2599 * `String`, `bool` and `null` as well as `Map` and `List` values. | 3637 /// `String`, `bool` and `null` as well as `Map` and `List` values. |
| 2600 */ | |
| 2601 core.Map<core.String, core.Object> metadata; | 3638 core.Map<core.String, core.Object> metadata; |
| 2602 /** | 3639 |
| 2603 * Resource name for the location, which may vary between implementations. For | 3640 /// Resource name for the location, which may vary between implementations. |
| 2604 * example: "projects/example-project/locations/us-east1" | 3641 /// For example: "projects/example-project/locations/us-east1" |
| 2605 */ | |
| 2606 core.String name; | 3642 core.String name; |
| 2607 | 3643 |
| 2608 Location(); | 3644 Location(); |
| 2609 | 3645 |
| 2610 Location.fromJson(core.Map _json) { | 3646 Location.fromJson(core.Map _json) { |
| 2611 if (_json.containsKey("labels")) { | 3647 if (_json.containsKey("labels")) { |
| 2612 labels = _json["labels"]; | 3648 labels = _json["labels"]; |
| 2613 } | 3649 } |
| 2614 if (_json.containsKey("locationId")) { | 3650 if (_json.containsKey("locationId")) { |
| 2615 locationId = _json["locationId"]; | 3651 locationId = _json["locationId"]; |
| 2616 } | 3652 } |
| 2617 if (_json.containsKey("metadata")) { | 3653 if (_json.containsKey("metadata")) { |
| 2618 metadata = _json["metadata"]; | 3654 metadata = _json["metadata"]; |
| 2619 } | 3655 } |
| 2620 if (_json.containsKey("name")) { | 3656 if (_json.containsKey("name")) { |
| 2621 name = _json["name"]; | 3657 name = _json["name"]; |
| 2622 } | 3658 } |
| 2623 } | 3659 } |
| 2624 | 3660 |
| 2625 core.Map<core.String, core.Object> toJson() { | 3661 core.Map<core.String, core.Object> toJson() { |
| 2626 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3662 final core.Map<core.String, core.Object> _json = |
| 3663 new core.Map<core.String, core.Object>(); |
| 2627 if (labels != null) { | 3664 if (labels != null) { |
| 2628 _json["labels"] = labels; | 3665 _json["labels"] = labels; |
| 2629 } | 3666 } |
| 2630 if (locationId != null) { | 3667 if (locationId != null) { |
| 2631 _json["locationId"] = locationId; | 3668 _json["locationId"] = locationId; |
| 2632 } | 3669 } |
| 2633 if (metadata != null) { | 3670 if (metadata != null) { |
| 2634 _json["metadata"] = metadata; | 3671 _json["metadata"] = metadata; |
| 2635 } | 3672 } |
| 2636 if (name != null) { | 3673 if (name != null) { |
| 2637 _json["name"] = name; | 3674 _json["name"] = name; |
| 2638 } | 3675 } |
| 2639 return _json; | 3676 return _json; |
| 2640 } | 3677 } |
| 2641 } | 3678 } |
| 2642 | 3679 |
| 2643 /** Metadata for the given google.cloud.location.Location. */ | 3680 /// Metadata for the given google.cloud.location.Location. |
| 2644 class LocationMetadata { | 3681 class LocationMetadata { |
| 2645 /** | 3682 /// App Engine Flexible Environment is available in the given |
| 2646 * App Engine Flexible Environment is available in the given | 3683 /// location.@OutputOnly |
| 2647 * location.@OutputOnly | |
| 2648 */ | |
| 2649 core.bool flexibleEnvironmentAvailable; | 3684 core.bool flexibleEnvironmentAvailable; |
| 2650 /** | 3685 |
| 2651 * App Engine Standard Environment is available in the given | 3686 /// App Engine Standard Environment is available in the given |
| 2652 * location.@OutputOnly | 3687 /// location.@OutputOnly |
| 2653 */ | |
| 2654 core.bool standardEnvironmentAvailable; | 3688 core.bool standardEnvironmentAvailable; |
| 2655 | 3689 |
| 2656 LocationMetadata(); | 3690 LocationMetadata(); |
| 2657 | 3691 |
| 2658 LocationMetadata.fromJson(core.Map _json) { | 3692 LocationMetadata.fromJson(core.Map _json) { |
| 2659 if (_json.containsKey("flexibleEnvironmentAvailable")) { | 3693 if (_json.containsKey("flexibleEnvironmentAvailable")) { |
| 2660 flexibleEnvironmentAvailable = _json["flexibleEnvironmentAvailable"]; | 3694 flexibleEnvironmentAvailable = _json["flexibleEnvironmentAvailable"]; |
| 2661 } | 3695 } |
| 2662 if (_json.containsKey("standardEnvironmentAvailable")) { | 3696 if (_json.containsKey("standardEnvironmentAvailable")) { |
| 2663 standardEnvironmentAvailable = _json["standardEnvironmentAvailable"]; | 3697 standardEnvironmentAvailable = _json["standardEnvironmentAvailable"]; |
| 2664 } | 3698 } |
| 2665 } | 3699 } |
| 2666 | 3700 |
| 2667 core.Map<core.String, core.Object> toJson() { | 3701 core.Map<core.String, core.Object> toJson() { |
| 2668 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3702 final core.Map<core.String, core.Object> _json = |
| 3703 new core.Map<core.String, core.Object>(); |
| 2669 if (flexibleEnvironmentAvailable != null) { | 3704 if (flexibleEnvironmentAvailable != null) { |
| 2670 _json["flexibleEnvironmentAvailable"] = flexibleEnvironmentAvailable; | 3705 _json["flexibleEnvironmentAvailable"] = flexibleEnvironmentAvailable; |
| 2671 } | 3706 } |
| 2672 if (standardEnvironmentAvailable != null) { | 3707 if (standardEnvironmentAvailable != null) { |
| 2673 _json["standardEnvironmentAvailable"] = standardEnvironmentAvailable; | 3708 _json["standardEnvironmentAvailable"] = standardEnvironmentAvailable; |
| 2674 } | 3709 } |
| 2675 return _json; | 3710 return _json; |
| 2676 } | 3711 } |
| 2677 } | 3712 } |
| 2678 | 3713 |
| 2679 /** | 3714 /// A service with manual scaling runs continuously, allowing you to perform |
| 2680 * A service with manual scaling runs continuously, allowing you to perform | 3715 /// complex initialization and rely on the state of its memory over time. |
| 2681 * complex initialization and rely on the state of its memory over time. | |
| 2682 */ | |
| 2683 class ManualScaling { | 3716 class ManualScaling { |
| 2684 /** | 3717 /// Number of instances to assign to the service at the start. This number |
| 2685 * Number of instances to assign to the service at the start. This number can | 3718 /// can later be altered by using the Modules API |
| 2686 * later be altered by using the Modules API | 3719 /// (https://cloud.google.com/appengine/docs/python/modules/functions) |
| 2687 * (https://cloud.google.com/appengine/docs/python/modules/functions) | 3720 /// set_num_instances() function. |
| 2688 * set_num_instances() function. | |
| 2689 */ | |
| 2690 core.int instances; | 3721 core.int instances; |
| 2691 | 3722 |
| 2692 ManualScaling(); | 3723 ManualScaling(); |
| 2693 | 3724 |
| 2694 ManualScaling.fromJson(core.Map _json) { | 3725 ManualScaling.fromJson(core.Map _json) { |
| 2695 if (_json.containsKey("instances")) { | 3726 if (_json.containsKey("instances")) { |
| 2696 instances = _json["instances"]; | 3727 instances = _json["instances"]; |
| 2697 } | 3728 } |
| 2698 } | 3729 } |
| 2699 | 3730 |
| 2700 core.Map<core.String, core.Object> toJson() { | 3731 core.Map<core.String, core.Object> toJson() { |
| 2701 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3732 final core.Map<core.String, core.Object> _json = |
| 3733 new core.Map<core.String, core.Object>(); |
| 2702 if (instances != null) { | 3734 if (instances != null) { |
| 2703 _json["instances"] = instances; | 3735 _json["instances"] = instances; |
| 2704 } | 3736 } |
| 2705 return _json; | 3737 return _json; |
| 2706 } | 3738 } |
| 2707 } | 3739 } |
| 2708 | 3740 |
| 2709 /** | 3741 /// Extra network settings. Only applicable for App Engine flexible environment |
| 2710 * Extra network settings. Only applicable for App Engine flexible environment | 3742 /// versions |
| 2711 * versions | |
| 2712 */ | |
| 2713 class Network { | 3743 class Network { |
| 2714 /** | 3744 /// List of ports, or port pairs, to forward from the virtual machine to the |
| 2715 * List of ports, or port pairs, to forward from the virtual machine to the | 3745 /// application container. Only applicable for App Engine flexible |
| 2716 * application container. Only applicable for App Engine flexible environment | 3746 /// environment versions. |
| 2717 * versions. | |
| 2718 */ | |
| 2719 core.List<core.String> forwardedPorts; | 3747 core.List<core.String> forwardedPorts; |
| 2720 /** | 3748 |
| 2721 * Tag to apply to the VM instance during creation. Only applicable for for | 3749 /// Tag to apply to the VM instance during creation. Only applicable for for |
| 2722 * App Engine flexible environment versions. | 3750 /// App Engine flexible environment versions. |
| 2723 */ | |
| 2724 core.String instanceTag; | 3751 core.String instanceTag; |
| 2725 /** | 3752 |
| 2726 * Google Compute Engine network where the virtual machines are created. | 3753 /// Google Compute Engine network where the virtual machines are created. |
| 2727 * Specify the short name, not the resource path.Defaults to default. | 3754 /// Specify the short name, not the resource path.Defaults to default. |
| 2728 */ | |
| 2729 core.String name; | 3755 core.String name; |
| 2730 /** | 3756 |
| 2731 * Google Cloud Platform sub-network where the virtual machines are created. | 3757 /// Google Cloud Platform sub-network where the virtual machines are created. |
| 2732 * Specify the short name, not the resource path.If a subnetwork name is | 3758 /// Specify the short name, not the resource path.If a subnetwork name is |
| 2733 * specified, a network name will also be required unless it is for the | 3759 /// specified, a network name will also be required unless it is for the |
| 2734 * default network. | 3760 /// default network. |
| 2735 * If the network the VM instance is being created in is a Legacy network, | 3761 /// If the network the VM instance is being created in is a Legacy network, |
| 2736 * then the IP address is allocated from the IPv4Range. | 3762 /// then the IP address is allocated from the IPv4Range. |
| 2737 * If the network the VM instance is being created in is an auto Subnet Mode | 3763 /// If the network the VM instance is being created in is an auto Subnet Mode |
| 2738 * Network, then only network name should be specified (not the | 3764 /// Network, then only network name should be specified (not the |
| 2739 * subnetwork_name) and the IP address is created from the IPCidrRange of the | 3765 /// subnetwork_name) and the IP address is created from the IPCidrRange of |
| 2740 * subnetwork that exists in that zone for that network. | 3766 /// the subnetwork that exists in that zone for that network. |
| 2741 * If the network the VM instance is being created in is a custom Subnet Mode | 3767 /// If the network the VM instance is being created in is a custom Subnet |
| 2742 * Network, then the subnetwork_name must be specified and the IP address is | 3768 /// Mode Network, then the subnetwork_name must be specified and the IP |
| 2743 * created from the IPCidrRange of the subnetwork.If specified, the subnetwork | 3769 /// address is created from the IPCidrRange of the subnetwork.If specified, |
| 2744 * must exist in the same region as the App Engine flexible environment | 3770 /// the subnetwork must exist in the same region as the App Engine flexible |
| 2745 * application. | 3771 /// environment application. |
| 2746 */ | |
| 2747 core.String subnetworkName; | 3772 core.String subnetworkName; |
| 2748 | 3773 |
| 2749 Network(); | 3774 Network(); |
| 2750 | 3775 |
| 2751 Network.fromJson(core.Map _json) { | 3776 Network.fromJson(core.Map _json) { |
| 2752 if (_json.containsKey("forwardedPorts")) { | 3777 if (_json.containsKey("forwardedPorts")) { |
| 2753 forwardedPorts = _json["forwardedPorts"]; | 3778 forwardedPorts = _json["forwardedPorts"]; |
| 2754 } | 3779 } |
| 2755 if (_json.containsKey("instanceTag")) { | 3780 if (_json.containsKey("instanceTag")) { |
| 2756 instanceTag = _json["instanceTag"]; | 3781 instanceTag = _json["instanceTag"]; |
| 2757 } | 3782 } |
| 2758 if (_json.containsKey("name")) { | 3783 if (_json.containsKey("name")) { |
| 2759 name = _json["name"]; | 3784 name = _json["name"]; |
| 2760 } | 3785 } |
| 2761 if (_json.containsKey("subnetworkName")) { | 3786 if (_json.containsKey("subnetworkName")) { |
| 2762 subnetworkName = _json["subnetworkName"]; | 3787 subnetworkName = _json["subnetworkName"]; |
| 2763 } | 3788 } |
| 2764 } | 3789 } |
| 2765 | 3790 |
| 2766 core.Map<core.String, core.Object> toJson() { | 3791 core.Map<core.String, core.Object> toJson() { |
| 2767 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3792 final core.Map<core.String, core.Object> _json = |
| 3793 new core.Map<core.String, core.Object>(); |
| 2768 if (forwardedPorts != null) { | 3794 if (forwardedPorts != null) { |
| 2769 _json["forwardedPorts"] = forwardedPorts; | 3795 _json["forwardedPorts"] = forwardedPorts; |
| 2770 } | 3796 } |
| 2771 if (instanceTag != null) { | 3797 if (instanceTag != null) { |
| 2772 _json["instanceTag"] = instanceTag; | 3798 _json["instanceTag"] = instanceTag; |
| 2773 } | 3799 } |
| 2774 if (name != null) { | 3800 if (name != null) { |
| 2775 _json["name"] = name; | 3801 _json["name"] = name; |
| 2776 } | 3802 } |
| 2777 if (subnetworkName != null) { | 3803 if (subnetworkName != null) { |
| 2778 _json["subnetworkName"] = subnetworkName; | 3804 _json["subnetworkName"] = subnetworkName; |
| 2779 } | 3805 } |
| 2780 return _json; | 3806 return _json; |
| 2781 } | 3807 } |
| 2782 } | 3808 } |
| 2783 | 3809 |
| 2784 /** Target scaling by network usage. Only applicable for VM runtimes. */ | 3810 /// Target scaling by network usage. Only applicable for VM runtimes. |
| 2785 class NetworkUtilization { | 3811 class NetworkUtilization { |
| 2786 /** Target bytes received per second. */ | 3812 /// Target bytes received per second. |
| 2787 core.int targetReceivedBytesPerSecond; | 3813 core.int targetReceivedBytesPerSecond; |
| 2788 /** Target packets received per second. */ | 3814 |
| 3815 /// Target packets received per second. |
| 2789 core.int targetReceivedPacketsPerSecond; | 3816 core.int targetReceivedPacketsPerSecond; |
| 2790 /** Target bytes sent per second. */ | 3817 |
| 3818 /// Target bytes sent per second. |
| 2791 core.int targetSentBytesPerSecond; | 3819 core.int targetSentBytesPerSecond; |
| 2792 /** Target packets sent per second. */ | 3820 |
| 3821 /// Target packets sent per second. |
| 2793 core.int targetSentPacketsPerSecond; | 3822 core.int targetSentPacketsPerSecond; |
| 2794 | 3823 |
| 2795 NetworkUtilization(); | 3824 NetworkUtilization(); |
| 2796 | 3825 |
| 2797 NetworkUtilization.fromJson(core.Map _json) { | 3826 NetworkUtilization.fromJson(core.Map _json) { |
| 2798 if (_json.containsKey("targetReceivedBytesPerSecond")) { | 3827 if (_json.containsKey("targetReceivedBytesPerSecond")) { |
| 2799 targetReceivedBytesPerSecond = _json["targetReceivedBytesPerSecond"]; | 3828 targetReceivedBytesPerSecond = _json["targetReceivedBytesPerSecond"]; |
| 2800 } | 3829 } |
| 2801 if (_json.containsKey("targetReceivedPacketsPerSecond")) { | 3830 if (_json.containsKey("targetReceivedPacketsPerSecond")) { |
| 2802 targetReceivedPacketsPerSecond = _json["targetReceivedPacketsPerSecond"]; | 3831 targetReceivedPacketsPerSecond = _json["targetReceivedPacketsPerSecond"]; |
| 2803 } | 3832 } |
| 2804 if (_json.containsKey("targetSentBytesPerSecond")) { | 3833 if (_json.containsKey("targetSentBytesPerSecond")) { |
| 2805 targetSentBytesPerSecond = _json["targetSentBytesPerSecond"]; | 3834 targetSentBytesPerSecond = _json["targetSentBytesPerSecond"]; |
| 2806 } | 3835 } |
| 2807 if (_json.containsKey("targetSentPacketsPerSecond")) { | 3836 if (_json.containsKey("targetSentPacketsPerSecond")) { |
| 2808 targetSentPacketsPerSecond = _json["targetSentPacketsPerSecond"]; | 3837 targetSentPacketsPerSecond = _json["targetSentPacketsPerSecond"]; |
| 2809 } | 3838 } |
| 2810 } | 3839 } |
| 2811 | 3840 |
| 2812 core.Map<core.String, core.Object> toJson() { | 3841 core.Map<core.String, core.Object> toJson() { |
| 2813 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3842 final core.Map<core.String, core.Object> _json = |
| 3843 new core.Map<core.String, core.Object>(); |
| 2814 if (targetReceivedBytesPerSecond != null) { | 3844 if (targetReceivedBytesPerSecond != null) { |
| 2815 _json["targetReceivedBytesPerSecond"] = targetReceivedBytesPerSecond; | 3845 _json["targetReceivedBytesPerSecond"] = targetReceivedBytesPerSecond; |
| 2816 } | 3846 } |
| 2817 if (targetReceivedPacketsPerSecond != null) { | 3847 if (targetReceivedPacketsPerSecond != null) { |
| 2818 _json["targetReceivedPacketsPerSecond"] = targetReceivedPacketsPerSecond; | 3848 _json["targetReceivedPacketsPerSecond"] = targetReceivedPacketsPerSecond; |
| 2819 } | 3849 } |
| 2820 if (targetSentBytesPerSecond != null) { | 3850 if (targetSentBytesPerSecond != null) { |
| 2821 _json["targetSentBytesPerSecond"] = targetSentBytesPerSecond; | 3851 _json["targetSentBytesPerSecond"] = targetSentBytesPerSecond; |
| 2822 } | 3852 } |
| 2823 if (targetSentPacketsPerSecond != null) { | 3853 if (targetSentPacketsPerSecond != null) { |
| 2824 _json["targetSentPacketsPerSecond"] = targetSentPacketsPerSecond; | 3854 _json["targetSentPacketsPerSecond"] = targetSentPacketsPerSecond; |
| 2825 } | 3855 } |
| 2826 return _json; | 3856 return _json; |
| 2827 } | 3857 } |
| 2828 } | 3858 } |
| 2829 | 3859 |
| 2830 /** | 3860 /// This resource represents a long-running operation that is the result of a |
| 2831 * This resource represents a long-running operation that is the result of a | 3861 /// network API call. |
| 2832 * network API call. | |
| 2833 */ | |
| 2834 class Operation { | 3862 class Operation { |
| 2835 /** | 3863 /// If the value is false, it means the operation is still in progress. If |
| 2836 * If the value is false, it means the operation is still in progress. If | 3864 /// true, the operation is completed, and either error or response is |
| 2837 * true, the operation is completed, and either error or response is | 3865 /// available. |
| 2838 * available. | |
| 2839 */ | |
| 2840 core.bool done; | 3866 core.bool done; |
| 2841 /** The error result of the operation in case of failure or cancellation. */ | 3867 |
| 3868 /// The error result of the operation in case of failure or cancellation. |
| 2842 Status error; | 3869 Status error; |
| 2843 /** | 3870 |
| 2844 * Service-specific metadata associated with the operation. It typically | 3871 /// Service-specific metadata associated with the operation. It typically |
| 2845 * contains progress information and common metadata such as create time. Some | 3872 /// contains progress information and common metadata such as create time. |
| 2846 * services might not provide such metadata. Any method that returns a | 3873 /// Some services might not provide such metadata. Any method that returns a |
| 2847 * long-running operation should document the metadata type, if any. | 3874 /// long-running operation should document the metadata type, if any. |
| 2848 * | 3875 /// |
| 2849 * The values for Object must be JSON objects. It can consist of `num`, | 3876 /// The values for Object must be JSON objects. It can consist of `num`, |
| 2850 * `String`, `bool` and `null` as well as `Map` and `List` values. | 3877 /// `String`, `bool` and `null` as well as `Map` and `List` values. |
| 2851 */ | |
| 2852 core.Map<core.String, core.Object> metadata; | 3878 core.Map<core.String, core.Object> metadata; |
| 2853 /** | 3879 |
| 2854 * The server-assigned name, which is only unique within the same service that | 3880 /// The server-assigned name, which is only unique within the same service |
| 2855 * originally returns it. If you use the default HTTP mapping, the name should | 3881 /// that originally returns it. If you use the default HTTP mapping, the name |
| 2856 * have the format of operations/some/unique/name. | 3882 /// should have the format of operations/some/unique/name. |
| 2857 */ | |
| 2858 core.String name; | 3883 core.String name; |
| 2859 /** | 3884 |
| 2860 * The normal response of the operation in case of success. If the original | 3885 /// The normal response of the operation in case of success. If the original |
| 2861 * method returns no data on success, such as Delete, the response is | 3886 /// method returns no data on success, such as Delete, the response is |
| 2862 * google.protobuf.Empty. If the original method is standard | 3887 /// google.protobuf.Empty. If the original method is standard |
| 2863 * Get/Create/Update, the response should be the resource. For other methods, | 3888 /// Get/Create/Update, the response should be the resource. For other |
| 2864 * the response should have the type XxxResponse, where Xxx is the original | 3889 /// methods, the response should have the type XxxResponse, where Xxx is the |
| 2865 * method name. For example, if the original method name is TakeSnapshot(), | 3890 /// original method name. For example, if the original method name is |
| 2866 * the inferred response type is TakeSnapshotResponse. | 3891 /// TakeSnapshot(), the inferred response type is TakeSnapshotResponse. |
| 2867 * | 3892 /// |
| 2868 * The values for Object must be JSON objects. It can consist of `num`, | 3893 /// The values for Object must be JSON objects. It can consist of `num`, |
| 2869 * `String`, `bool` and `null` as well as `Map` and `List` values. | 3894 /// `String`, `bool` and `null` as well as `Map` and `List` values. |
| 2870 */ | |
| 2871 core.Map<core.String, core.Object> response; | 3895 core.Map<core.String, core.Object> response; |
| 2872 | 3896 |
| 2873 Operation(); | 3897 Operation(); |
| 2874 | 3898 |
| 2875 Operation.fromJson(core.Map _json) { | 3899 Operation.fromJson(core.Map _json) { |
| 2876 if (_json.containsKey("done")) { | 3900 if (_json.containsKey("done")) { |
| 2877 done = _json["done"]; | 3901 done = _json["done"]; |
| 2878 } | 3902 } |
| 2879 if (_json.containsKey("error")) { | 3903 if (_json.containsKey("error")) { |
| 2880 error = new Status.fromJson(_json["error"]); | 3904 error = new Status.fromJson(_json["error"]); |
| 2881 } | 3905 } |
| 2882 if (_json.containsKey("metadata")) { | 3906 if (_json.containsKey("metadata")) { |
| 2883 metadata = _json["metadata"]; | 3907 metadata = _json["metadata"]; |
| 2884 } | 3908 } |
| 2885 if (_json.containsKey("name")) { | 3909 if (_json.containsKey("name")) { |
| 2886 name = _json["name"]; | 3910 name = _json["name"]; |
| 2887 } | 3911 } |
| 2888 if (_json.containsKey("response")) { | 3912 if (_json.containsKey("response")) { |
| 2889 response = _json["response"]; | 3913 response = _json["response"]; |
| 2890 } | 3914 } |
| 2891 } | 3915 } |
| 2892 | 3916 |
| 2893 core.Map<core.String, core.Object> toJson() { | 3917 core.Map<core.String, core.Object> toJson() { |
| 2894 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3918 final core.Map<core.String, core.Object> _json = |
| 3919 new core.Map<core.String, core.Object>(); |
| 2895 if (done != null) { | 3920 if (done != null) { |
| 2896 _json["done"] = done; | 3921 _json["done"] = done; |
| 2897 } | 3922 } |
| 2898 if (error != null) { | 3923 if (error != null) { |
| 2899 _json["error"] = (error).toJson(); | 3924 _json["error"] = (error).toJson(); |
| 2900 } | 3925 } |
| 2901 if (metadata != null) { | 3926 if (metadata != null) { |
| 2902 _json["metadata"] = metadata; | 3927 _json["metadata"] = metadata; |
| 2903 } | 3928 } |
| 2904 if (name != null) { | 3929 if (name != null) { |
| 2905 _json["name"] = name; | 3930 _json["name"] = name; |
| 2906 } | 3931 } |
| 2907 if (response != null) { | 3932 if (response != null) { |
| 2908 _json["response"] = response; | 3933 _json["response"] = response; |
| 2909 } | 3934 } |
| 2910 return _json; | 3935 return _json; |
| 2911 } | 3936 } |
| 2912 } | 3937 } |
| 2913 | 3938 |
| 2914 /** Metadata for the given google.longrunning.Operation. */ | 3939 /// Metadata for the given google.longrunning.Operation. |
| 2915 class OperationMetadata { | 3940 class OperationMetadata { |
| 2916 /** Timestamp that this operation completed.@OutputOnly */ | 3941 /// Timestamp that this operation completed.@OutputOnly |
| 2917 core.String endTime; | 3942 core.String endTime; |
| 2918 /** Timestamp that this operation was created.@OutputOnly */ | 3943 |
| 3944 /// Timestamp that this operation was created.@OutputOnly |
| 2919 core.String insertTime; | 3945 core.String insertTime; |
| 2920 /** | 3946 |
| 2921 * API method that initiated this operation. Example: | 3947 /// API method that initiated this operation. Example: |
| 2922 * google.appengine.v1beta4.Version.CreateVersion.@OutputOnly | 3948 /// google.appengine.v1beta4.Version.CreateVersion.@OutputOnly |
| 2923 */ | |
| 2924 core.String method; | 3949 core.String method; |
| 2925 /** | 3950 |
| 2926 * Type of this operation. Deprecated, use method field instead. Example: | 3951 /// Type of this operation. Deprecated, use method field instead. Example: |
| 2927 * "create_version".@OutputOnly | 3952 /// "create_version".@OutputOnly |
| 2928 */ | |
| 2929 core.String operationType; | 3953 core.String operationType; |
| 2930 /** | 3954 |
| 2931 * Name of the resource that this operation is acting on. Example: | 3955 /// Name of the resource that this operation is acting on. Example: |
| 2932 * apps/myapp/modules/default.@OutputOnly | 3956 /// apps/myapp/modules/default.@OutputOnly |
| 2933 */ | |
| 2934 core.String target; | 3957 core.String target; |
| 2935 /** User who requested this operation.@OutputOnly */ | 3958 |
| 3959 /// User who requested this operation.@OutputOnly |
| 2936 core.String user; | 3960 core.String user; |
| 2937 | 3961 |
| 2938 OperationMetadata(); | 3962 OperationMetadata(); |
| 2939 | 3963 |
| 2940 OperationMetadata.fromJson(core.Map _json) { | 3964 OperationMetadata.fromJson(core.Map _json) { |
| 2941 if (_json.containsKey("endTime")) { | 3965 if (_json.containsKey("endTime")) { |
| 2942 endTime = _json["endTime"]; | 3966 endTime = _json["endTime"]; |
| 2943 } | 3967 } |
| 2944 if (_json.containsKey("insertTime")) { | 3968 if (_json.containsKey("insertTime")) { |
| 2945 insertTime = _json["insertTime"]; | 3969 insertTime = _json["insertTime"]; |
| 2946 } | 3970 } |
| 2947 if (_json.containsKey("method")) { | 3971 if (_json.containsKey("method")) { |
| 2948 method = _json["method"]; | 3972 method = _json["method"]; |
| 2949 } | 3973 } |
| 2950 if (_json.containsKey("operationType")) { | 3974 if (_json.containsKey("operationType")) { |
| 2951 operationType = _json["operationType"]; | 3975 operationType = _json["operationType"]; |
| 2952 } | 3976 } |
| 2953 if (_json.containsKey("target")) { | 3977 if (_json.containsKey("target")) { |
| 2954 target = _json["target"]; | 3978 target = _json["target"]; |
| 2955 } | 3979 } |
| 2956 if (_json.containsKey("user")) { | 3980 if (_json.containsKey("user")) { |
| 2957 user = _json["user"]; | 3981 user = _json["user"]; |
| 2958 } | 3982 } |
| 2959 } | 3983 } |
| 2960 | 3984 |
| 2961 core.Map<core.String, core.Object> toJson() { | 3985 core.Map<core.String, core.Object> toJson() { |
| 2962 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3986 final core.Map<core.String, core.Object> _json = |
| 3987 new core.Map<core.String, core.Object>(); |
| 2963 if (endTime != null) { | 3988 if (endTime != null) { |
| 2964 _json["endTime"] = endTime; | 3989 _json["endTime"] = endTime; |
| 2965 } | 3990 } |
| 2966 if (insertTime != null) { | 3991 if (insertTime != null) { |
| 2967 _json["insertTime"] = insertTime; | 3992 _json["insertTime"] = insertTime; |
| 2968 } | 3993 } |
| 2969 if (method != null) { | 3994 if (method != null) { |
| 2970 _json["method"] = method; | 3995 _json["method"] = method; |
| 2971 } | 3996 } |
| 2972 if (operationType != null) { | 3997 if (operationType != null) { |
| 2973 _json["operationType"] = operationType; | 3998 _json["operationType"] = operationType; |
| 2974 } | 3999 } |
| 2975 if (target != null) { | 4000 if (target != null) { |
| 2976 _json["target"] = target; | 4001 _json["target"] = target; |
| 2977 } | 4002 } |
| 2978 if (user != null) { | 4003 if (user != null) { |
| 2979 _json["user"] = user; | 4004 _json["user"] = user; |
| 2980 } | 4005 } |
| 2981 return _json; | 4006 return _json; |
| 2982 } | 4007 } |
| 2983 } | 4008 } |
| 2984 | 4009 |
| 2985 /** Metadata for the given google.longrunning.Operation. */ | 4010 /// Metadata for the given google.longrunning.Operation. |
| 2986 class OperationMetadataExperimental { | 4011 class OperationMetadataExperimental { |
| 2987 /** Time that this operation completed.@OutputOnly */ | 4012 /// Time that this operation completed.@OutputOnly |
| 2988 core.String endTime; | 4013 core.String endTime; |
| 2989 /** Time that this operation was created.@OutputOnly */ | 4014 |
| 4015 /// Time that this operation was created.@OutputOnly |
| 2990 core.String insertTime; | 4016 core.String insertTime; |
| 2991 /** | 4017 |
| 2992 * API method that initiated this operation. Example: | 4018 /// API method that initiated this operation. Example: |
| 2993 * google.appengine.experimental.CustomDomains.CreateCustomDomain.@OutputOnly | 4019 /// google.appengine.experimental.CustomDomains.CreateCustomDomain.@OutputOnly |
| 2994 */ | |
| 2995 core.String method; | 4020 core.String method; |
| 2996 /** | 4021 |
| 2997 * Name of the resource that this operation is acting on. Example: | 4022 /// Name of the resource that this operation is acting on. Example: |
| 2998 * apps/myapp/customDomains/example.com.@OutputOnly | 4023 /// apps/myapp/customDomains/example.com.@OutputOnly |
| 2999 */ | |
| 3000 core.String target; | 4024 core.String target; |
| 3001 /** User who requested this operation.@OutputOnly */ | 4025 |
| 4026 /// User who requested this operation.@OutputOnly |
| 3002 core.String user; | 4027 core.String user; |
| 3003 | 4028 |
| 3004 OperationMetadataExperimental(); | 4029 OperationMetadataExperimental(); |
| 3005 | 4030 |
| 3006 OperationMetadataExperimental.fromJson(core.Map _json) { | 4031 OperationMetadataExperimental.fromJson(core.Map _json) { |
| 3007 if (_json.containsKey("endTime")) { | 4032 if (_json.containsKey("endTime")) { |
| 3008 endTime = _json["endTime"]; | 4033 endTime = _json["endTime"]; |
| 3009 } | 4034 } |
| 3010 if (_json.containsKey("insertTime")) { | 4035 if (_json.containsKey("insertTime")) { |
| 3011 insertTime = _json["insertTime"]; | 4036 insertTime = _json["insertTime"]; |
| 3012 } | 4037 } |
| 3013 if (_json.containsKey("method")) { | 4038 if (_json.containsKey("method")) { |
| 3014 method = _json["method"]; | 4039 method = _json["method"]; |
| 3015 } | 4040 } |
| 3016 if (_json.containsKey("target")) { | 4041 if (_json.containsKey("target")) { |
| 3017 target = _json["target"]; | 4042 target = _json["target"]; |
| 3018 } | 4043 } |
| 3019 if (_json.containsKey("user")) { | 4044 if (_json.containsKey("user")) { |
| 3020 user = _json["user"]; | 4045 user = _json["user"]; |
| 3021 } | 4046 } |
| 3022 } | 4047 } |
| 3023 | 4048 |
| 3024 core.Map<core.String, core.Object> toJson() { | 4049 core.Map<core.String, core.Object> toJson() { |
| 3025 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4050 final core.Map<core.String, core.Object> _json = |
| 4051 new core.Map<core.String, core.Object>(); |
| 3026 if (endTime != null) { | 4052 if (endTime != null) { |
| 3027 _json["endTime"] = endTime; | 4053 _json["endTime"] = endTime; |
| 3028 } | 4054 } |
| 3029 if (insertTime != null) { | 4055 if (insertTime != null) { |
| 3030 _json["insertTime"] = insertTime; | 4056 _json["insertTime"] = insertTime; |
| 3031 } | 4057 } |
| 3032 if (method != null) { | 4058 if (method != null) { |
| 3033 _json["method"] = method; | 4059 _json["method"] = method; |
| 3034 } | 4060 } |
| 3035 if (target != null) { | 4061 if (target != null) { |
| 3036 _json["target"] = target; | 4062 _json["target"] = target; |
| 3037 } | 4063 } |
| 3038 if (user != null) { | 4064 if (user != null) { |
| 3039 _json["user"] = user; | 4065 _json["user"] = user; |
| 3040 } | 4066 } |
| 3041 return _json; | 4067 return _json; |
| 3042 } | 4068 } |
| 3043 } | 4069 } |
| 3044 | 4070 |
| 3045 /** Metadata for the given google.longrunning.Operation. */ | 4071 /// Metadata for the given google.longrunning.Operation. |
| 3046 class OperationMetadataV1 { | 4072 class OperationMetadataV1 { |
| 3047 /** Time that this operation completed.@OutputOnly */ | 4073 /// Time that this operation completed.@OutputOnly |
| 3048 core.String endTime; | 4074 core.String endTime; |
| 3049 /** | 4075 |
| 3050 * Ephemeral message that may change every time the operation is polled. | 4076 /// Ephemeral message that may change every time the operation is polled. |
| 3051 * @OutputOnly | 4077 /// @OutputOnly |
| 3052 */ | |
| 3053 core.String ephemeralMessage; | 4078 core.String ephemeralMessage; |
| 3054 /** Time that this operation was created.@OutputOnly */ | 4079 |
| 4080 /// Time that this operation was created.@OutputOnly |
| 3055 core.String insertTime; | 4081 core.String insertTime; |
| 3056 /** | 4082 |
| 3057 * API method that initiated this operation. Example: | 4083 /// API method that initiated this operation. Example: |
| 3058 * google.appengine.v1.Versions.CreateVersion.@OutputOnly | 4084 /// google.appengine.v1.Versions.CreateVersion.@OutputOnly |
| 3059 */ | |
| 3060 core.String method; | 4085 core.String method; |
| 3061 /** | 4086 |
| 3062 * Name of the resource that this operation is acting on. Example: | 4087 /// Name of the resource that this operation is acting on. Example: |
| 3063 * apps/myapp/services/default.@OutputOnly | 4088 /// apps/myapp/services/default.@OutputOnly |
| 3064 */ | |
| 3065 core.String target; | 4089 core.String target; |
| 3066 /** User who requested this operation.@OutputOnly */ | 4090 |
| 4091 /// User who requested this operation.@OutputOnly |
| 3067 core.String user; | 4092 core.String user; |
| 3068 /** Durable messages that persist on every operation poll. @OutputOnly */ | 4093 |
| 4094 /// Durable messages that persist on every operation poll. @OutputOnly |
| 3069 core.List<core.String> warning; | 4095 core.List<core.String> warning; |
| 3070 | 4096 |
| 3071 OperationMetadataV1(); | 4097 OperationMetadataV1(); |
| 3072 | 4098 |
| 3073 OperationMetadataV1.fromJson(core.Map _json) { | 4099 OperationMetadataV1.fromJson(core.Map _json) { |
| 3074 if (_json.containsKey("endTime")) { | 4100 if (_json.containsKey("endTime")) { |
| 3075 endTime = _json["endTime"]; | 4101 endTime = _json["endTime"]; |
| 3076 } | 4102 } |
| 3077 if (_json.containsKey("ephemeralMessage")) { | 4103 if (_json.containsKey("ephemeralMessage")) { |
| 3078 ephemeralMessage = _json["ephemeralMessage"]; | 4104 ephemeralMessage = _json["ephemeralMessage"]; |
| 3079 } | 4105 } |
| 3080 if (_json.containsKey("insertTime")) { | 4106 if (_json.containsKey("insertTime")) { |
| 3081 insertTime = _json["insertTime"]; | 4107 insertTime = _json["insertTime"]; |
| 3082 } | 4108 } |
| 3083 if (_json.containsKey("method")) { | 4109 if (_json.containsKey("method")) { |
| 3084 method = _json["method"]; | 4110 method = _json["method"]; |
| 3085 } | 4111 } |
| 3086 if (_json.containsKey("target")) { | 4112 if (_json.containsKey("target")) { |
| 3087 target = _json["target"]; | 4113 target = _json["target"]; |
| 3088 } | 4114 } |
| 3089 if (_json.containsKey("user")) { | 4115 if (_json.containsKey("user")) { |
| 3090 user = _json["user"]; | 4116 user = _json["user"]; |
| 3091 } | 4117 } |
| 3092 if (_json.containsKey("warning")) { | 4118 if (_json.containsKey("warning")) { |
| 3093 warning = _json["warning"]; | 4119 warning = _json["warning"]; |
| 3094 } | 4120 } |
| 3095 } | 4121 } |
| 3096 | 4122 |
| 3097 core.Map<core.String, core.Object> toJson() { | 4123 core.Map<core.String, core.Object> toJson() { |
| 3098 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4124 final core.Map<core.String, core.Object> _json = |
| 4125 new core.Map<core.String, core.Object>(); |
| 3099 if (endTime != null) { | 4126 if (endTime != null) { |
| 3100 _json["endTime"] = endTime; | 4127 _json["endTime"] = endTime; |
| 3101 } | 4128 } |
| 3102 if (ephemeralMessage != null) { | 4129 if (ephemeralMessage != null) { |
| 3103 _json["ephemeralMessage"] = ephemeralMessage; | 4130 _json["ephemeralMessage"] = ephemeralMessage; |
| 3104 } | 4131 } |
| 3105 if (insertTime != null) { | 4132 if (insertTime != null) { |
| 3106 _json["insertTime"] = insertTime; | 4133 _json["insertTime"] = insertTime; |
| 3107 } | 4134 } |
| 3108 if (method != null) { | 4135 if (method != null) { |
| 3109 _json["method"] = method; | 4136 _json["method"] = method; |
| 3110 } | 4137 } |
| 3111 if (target != null) { | 4138 if (target != null) { |
| 3112 _json["target"] = target; | 4139 _json["target"] = target; |
| 3113 } | 4140 } |
| 3114 if (user != null) { | 4141 if (user != null) { |
| 3115 _json["user"] = user; | 4142 _json["user"] = user; |
| 3116 } | 4143 } |
| 3117 if (warning != null) { | 4144 if (warning != null) { |
| 3118 _json["warning"] = warning; | 4145 _json["warning"] = warning; |
| 3119 } | 4146 } |
| 3120 return _json; | 4147 return _json; |
| 3121 } | 4148 } |
| 3122 } | 4149 } |
| 3123 | 4150 |
| 3124 /** Metadata for the given google.longrunning.Operation. */ | 4151 /// Metadata for the given google.longrunning.Operation. |
| 3125 class OperationMetadataV1Alpha { | 4152 class OperationMetadataV1Alpha { |
| 3126 /** Time that this operation completed.@OutputOnly */ | 4153 /// Time that this operation completed.@OutputOnly |
| 3127 core.String endTime; | 4154 core.String endTime; |
| 3128 /** | 4155 |
| 3129 * Ephemeral message that may change every time the operation is polled. | 4156 /// Ephemeral message that may change every time the operation is polled. |
| 3130 * @OutputOnly | 4157 /// @OutputOnly |
| 3131 */ | |
| 3132 core.String ephemeralMessage; | 4158 core.String ephemeralMessage; |
| 3133 /** Time that this operation was created.@OutputOnly */ | 4159 |
| 4160 /// Time that this operation was created.@OutputOnly |
| 3134 core.String insertTime; | 4161 core.String insertTime; |
| 3135 /** | 4162 |
| 3136 * API method that initiated this operation. Example: | 4163 /// API method that initiated this operation. Example: |
| 3137 * google.appengine.v1alpha.Versions.CreateVersion.@OutputOnly | 4164 /// google.appengine.v1alpha.Versions.CreateVersion.@OutputOnly |
| 3138 */ | |
| 3139 core.String method; | 4165 core.String method; |
| 3140 /** | 4166 |
| 3141 * Name of the resource that this operation is acting on. Example: | 4167 /// Name of the resource that this operation is acting on. Example: |
| 3142 * apps/myapp/services/default.@OutputOnly | 4168 /// apps/myapp/services/default.@OutputOnly |
| 3143 */ | |
| 3144 core.String target; | 4169 core.String target; |
| 3145 /** User who requested this operation.@OutputOnly */ | 4170 |
| 4171 /// User who requested this operation.@OutputOnly |
| 3146 core.String user; | 4172 core.String user; |
| 3147 /** Durable messages that persist on every operation poll. @OutputOnly */ | 4173 |
| 4174 /// Durable messages that persist on every operation poll. @OutputOnly |
| 3148 core.List<core.String> warning; | 4175 core.List<core.String> warning; |
| 3149 | 4176 |
| 3150 OperationMetadataV1Alpha(); | 4177 OperationMetadataV1Alpha(); |
| 3151 | 4178 |
| 3152 OperationMetadataV1Alpha.fromJson(core.Map _json) { | 4179 OperationMetadataV1Alpha.fromJson(core.Map _json) { |
| 3153 if (_json.containsKey("endTime")) { | 4180 if (_json.containsKey("endTime")) { |
| 3154 endTime = _json["endTime"]; | 4181 endTime = _json["endTime"]; |
| 3155 } | 4182 } |
| 3156 if (_json.containsKey("ephemeralMessage")) { | 4183 if (_json.containsKey("ephemeralMessage")) { |
| 3157 ephemeralMessage = _json["ephemeralMessage"]; | 4184 ephemeralMessage = _json["ephemeralMessage"]; |
| 3158 } | 4185 } |
| 3159 if (_json.containsKey("insertTime")) { | 4186 if (_json.containsKey("insertTime")) { |
| 3160 insertTime = _json["insertTime"]; | 4187 insertTime = _json["insertTime"]; |
| 3161 } | 4188 } |
| 3162 if (_json.containsKey("method")) { | 4189 if (_json.containsKey("method")) { |
| 3163 method = _json["method"]; | 4190 method = _json["method"]; |
| 3164 } | 4191 } |
| 3165 if (_json.containsKey("target")) { | 4192 if (_json.containsKey("target")) { |
| 3166 target = _json["target"]; | 4193 target = _json["target"]; |
| 3167 } | 4194 } |
| 3168 if (_json.containsKey("user")) { | 4195 if (_json.containsKey("user")) { |
| 3169 user = _json["user"]; | 4196 user = _json["user"]; |
| 3170 } | 4197 } |
| 3171 if (_json.containsKey("warning")) { | 4198 if (_json.containsKey("warning")) { |
| 3172 warning = _json["warning"]; | 4199 warning = _json["warning"]; |
| 3173 } | 4200 } |
| 3174 } | 4201 } |
| 3175 | 4202 |
| 3176 core.Map<core.String, core.Object> toJson() { | 4203 core.Map<core.String, core.Object> toJson() { |
| 3177 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4204 final core.Map<core.String, core.Object> _json = |
| 4205 new core.Map<core.String, core.Object>(); |
| 3178 if (endTime != null) { | 4206 if (endTime != null) { |
| 3179 _json["endTime"] = endTime; | 4207 _json["endTime"] = endTime; |
| 3180 } | 4208 } |
| 3181 if (ephemeralMessage != null) { | 4209 if (ephemeralMessage != null) { |
| 3182 _json["ephemeralMessage"] = ephemeralMessage; | 4210 _json["ephemeralMessage"] = ephemeralMessage; |
| 3183 } | 4211 } |
| 3184 if (insertTime != null) { | 4212 if (insertTime != null) { |
| 3185 _json["insertTime"] = insertTime; | 4213 _json["insertTime"] = insertTime; |
| 3186 } | 4214 } |
| 3187 if (method != null) { | 4215 if (method != null) { |
| 3188 _json["method"] = method; | 4216 _json["method"] = method; |
| 3189 } | 4217 } |
| 3190 if (target != null) { | 4218 if (target != null) { |
| 3191 _json["target"] = target; | 4219 _json["target"] = target; |
| 3192 } | 4220 } |
| 3193 if (user != null) { | 4221 if (user != null) { |
| 3194 _json["user"] = user; | 4222 _json["user"] = user; |
| 3195 } | 4223 } |
| 3196 if (warning != null) { | 4224 if (warning != null) { |
| 3197 _json["warning"] = warning; | 4225 _json["warning"] = warning; |
| 3198 } | 4226 } |
| 3199 return _json; | 4227 return _json; |
| 3200 } | 4228 } |
| 3201 } | 4229 } |
| 3202 | 4230 |
| 3203 /** Metadata for the given google.longrunning.Operation. */ | 4231 /// Metadata for the given google.longrunning.Operation. |
| 3204 class OperationMetadataV1Beta { | 4232 class OperationMetadataV1Beta { |
| 3205 /** Time that this operation completed.@OutputOnly */ | 4233 /// Time that this operation completed.@OutputOnly |
| 3206 core.String endTime; | 4234 core.String endTime; |
| 3207 /** | 4235 |
| 3208 * Ephemeral message that may change every time the operation is polled. | 4236 /// Ephemeral message that may change every time the operation is polled. |
| 3209 * @OutputOnly | 4237 /// @OutputOnly |
| 3210 */ | |
| 3211 core.String ephemeralMessage; | 4238 core.String ephemeralMessage; |
| 3212 /** Time that this operation was created.@OutputOnly */ | 4239 |
| 4240 /// Time that this operation was created.@OutputOnly |
| 3213 core.String insertTime; | 4241 core.String insertTime; |
| 3214 /** | 4242 |
| 3215 * API method that initiated this operation. Example: | 4243 /// API method that initiated this operation. Example: |
| 3216 * google.appengine.v1beta.Versions.CreateVersion.@OutputOnly | 4244 /// google.appengine.v1beta.Versions.CreateVersion.@OutputOnly |
| 3217 */ | |
| 3218 core.String method; | 4245 core.String method; |
| 3219 /** | 4246 |
| 3220 * Name of the resource that this operation is acting on. Example: | 4247 /// Name of the resource that this operation is acting on. Example: |
| 3221 * apps/myapp/services/default.@OutputOnly | 4248 /// apps/myapp/services/default.@OutputOnly |
| 3222 */ | |
| 3223 core.String target; | 4249 core.String target; |
| 3224 /** User who requested this operation.@OutputOnly */ | 4250 |
| 4251 /// User who requested this operation.@OutputOnly |
| 3225 core.String user; | 4252 core.String user; |
| 3226 /** Durable messages that persist on every operation poll. @OutputOnly */ | 4253 |
| 4254 /// Durable messages that persist on every operation poll. @OutputOnly |
| 3227 core.List<core.String> warning; | 4255 core.List<core.String> warning; |
| 3228 | 4256 |
| 3229 OperationMetadataV1Beta(); | 4257 OperationMetadataV1Beta(); |
| 3230 | 4258 |
| 3231 OperationMetadataV1Beta.fromJson(core.Map _json) { | 4259 OperationMetadataV1Beta.fromJson(core.Map _json) { |
| 3232 if (_json.containsKey("endTime")) { | 4260 if (_json.containsKey("endTime")) { |
| 3233 endTime = _json["endTime"]; | 4261 endTime = _json["endTime"]; |
| 3234 } | 4262 } |
| 3235 if (_json.containsKey("ephemeralMessage")) { | 4263 if (_json.containsKey("ephemeralMessage")) { |
| 3236 ephemeralMessage = _json["ephemeralMessage"]; | 4264 ephemeralMessage = _json["ephemeralMessage"]; |
| 3237 } | 4265 } |
| 3238 if (_json.containsKey("insertTime")) { | 4266 if (_json.containsKey("insertTime")) { |
| 3239 insertTime = _json["insertTime"]; | 4267 insertTime = _json["insertTime"]; |
| 3240 } | 4268 } |
| 3241 if (_json.containsKey("method")) { | 4269 if (_json.containsKey("method")) { |
| 3242 method = _json["method"]; | 4270 method = _json["method"]; |
| 3243 } | 4271 } |
| 3244 if (_json.containsKey("target")) { | 4272 if (_json.containsKey("target")) { |
| 3245 target = _json["target"]; | 4273 target = _json["target"]; |
| 3246 } | 4274 } |
| 3247 if (_json.containsKey("user")) { | 4275 if (_json.containsKey("user")) { |
| 3248 user = _json["user"]; | 4276 user = _json["user"]; |
| 3249 } | 4277 } |
| 3250 if (_json.containsKey("warning")) { | 4278 if (_json.containsKey("warning")) { |
| 3251 warning = _json["warning"]; | 4279 warning = _json["warning"]; |
| 3252 } | 4280 } |
| 3253 } | 4281 } |
| 3254 | 4282 |
| 3255 core.Map<core.String, core.Object> toJson() { | 4283 core.Map<core.String, core.Object> toJson() { |
| 3256 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4284 final core.Map<core.String, core.Object> _json = |
| 4285 new core.Map<core.String, core.Object>(); |
| 3257 if (endTime != null) { | 4286 if (endTime != null) { |
| 3258 _json["endTime"] = endTime; | 4287 _json["endTime"] = endTime; |
| 3259 } | 4288 } |
| 3260 if (ephemeralMessage != null) { | 4289 if (ephemeralMessage != null) { |
| 3261 _json["ephemeralMessage"] = ephemeralMessage; | 4290 _json["ephemeralMessage"] = ephemeralMessage; |
| 3262 } | 4291 } |
| 3263 if (insertTime != null) { | 4292 if (insertTime != null) { |
| 3264 _json["insertTime"] = insertTime; | 4293 _json["insertTime"] = insertTime; |
| 3265 } | 4294 } |
| 3266 if (method != null) { | 4295 if (method != null) { |
| 3267 _json["method"] = method; | 4296 _json["method"] = method; |
| 3268 } | 4297 } |
| 3269 if (target != null) { | 4298 if (target != null) { |
| 3270 _json["target"] = target; | 4299 _json["target"] = target; |
| 3271 } | 4300 } |
| 3272 if (user != null) { | 4301 if (user != null) { |
| 3273 _json["user"] = user; | 4302 _json["user"] = user; |
| 3274 } | 4303 } |
| 3275 if (warning != null) { | 4304 if (warning != null) { |
| 3276 _json["warning"] = warning; | 4305 _json["warning"] = warning; |
| 3277 } | 4306 } |
| 3278 return _json; | 4307 return _json; |
| 3279 } | 4308 } |
| 3280 } | 4309 } |
| 3281 | 4310 |
| 3282 /** Metadata for the given google.longrunning.Operation. */ | 4311 /// Metadata for the given google.longrunning.Operation. |
| 3283 class OperationMetadataV1Beta5 { | 4312 class OperationMetadataV1Beta5 { |
| 3284 /** Timestamp that this operation completed.@OutputOnly */ | 4313 /// Timestamp that this operation completed.@OutputOnly |
| 3285 core.String endTime; | 4314 core.String endTime; |
| 3286 /** Timestamp that this operation was created.@OutputOnly */ | 4315 |
| 4316 /// Timestamp that this operation was created.@OutputOnly |
| 3287 core.String insertTime; | 4317 core.String insertTime; |
| 3288 /** | 4318 |
| 3289 * API method name that initiated this operation. Example: | 4319 /// API method name that initiated this operation. Example: |
| 3290 * google.appengine.v1beta5.Version.CreateVersion.@OutputOnly | 4320 /// google.appengine.v1beta5.Version.CreateVersion.@OutputOnly |
| 3291 */ | |
| 3292 core.String method; | 4321 core.String method; |
| 3293 /** | 4322 |
| 3294 * Name of the resource that this operation is acting on. Example: | 4323 /// Name of the resource that this operation is acting on. Example: |
| 3295 * apps/myapp/services/default.@OutputOnly | 4324 /// apps/myapp/services/default.@OutputOnly |
| 3296 */ | |
| 3297 core.String target; | 4325 core.String target; |
| 3298 /** User who requested this operation.@OutputOnly */ | 4326 |
| 4327 /// User who requested this operation.@OutputOnly |
| 3299 core.String user; | 4328 core.String user; |
| 3300 | 4329 |
| 3301 OperationMetadataV1Beta5(); | 4330 OperationMetadataV1Beta5(); |
| 3302 | 4331 |
| 3303 OperationMetadataV1Beta5.fromJson(core.Map _json) { | 4332 OperationMetadataV1Beta5.fromJson(core.Map _json) { |
| 3304 if (_json.containsKey("endTime")) { | 4333 if (_json.containsKey("endTime")) { |
| 3305 endTime = _json["endTime"]; | 4334 endTime = _json["endTime"]; |
| 3306 } | 4335 } |
| 3307 if (_json.containsKey("insertTime")) { | 4336 if (_json.containsKey("insertTime")) { |
| 3308 insertTime = _json["insertTime"]; | 4337 insertTime = _json["insertTime"]; |
| 3309 } | 4338 } |
| 3310 if (_json.containsKey("method")) { | 4339 if (_json.containsKey("method")) { |
| 3311 method = _json["method"]; | 4340 method = _json["method"]; |
| 3312 } | 4341 } |
| 3313 if (_json.containsKey("target")) { | 4342 if (_json.containsKey("target")) { |
| 3314 target = _json["target"]; | 4343 target = _json["target"]; |
| 3315 } | 4344 } |
| 3316 if (_json.containsKey("user")) { | 4345 if (_json.containsKey("user")) { |
| 3317 user = _json["user"]; | 4346 user = _json["user"]; |
| 3318 } | 4347 } |
| 3319 } | 4348 } |
| 3320 | 4349 |
| 3321 core.Map<core.String, core.Object> toJson() { | 4350 core.Map<core.String, core.Object> toJson() { |
| 3322 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4351 final core.Map<core.String, core.Object> _json = |
| 4352 new core.Map<core.String, core.Object>(); |
| 3323 if (endTime != null) { | 4353 if (endTime != null) { |
| 3324 _json["endTime"] = endTime; | 4354 _json["endTime"] = endTime; |
| 3325 } | 4355 } |
| 3326 if (insertTime != null) { | 4356 if (insertTime != null) { |
| 3327 _json["insertTime"] = insertTime; | 4357 _json["insertTime"] = insertTime; |
| 3328 } | 4358 } |
| 3329 if (method != null) { | 4359 if (method != null) { |
| 3330 _json["method"] = method; | 4360 _json["method"] = method; |
| 3331 } | 4361 } |
| 3332 if (target != null) { | 4362 if (target != null) { |
| 3333 _json["target"] = target; | 4363 _json["target"] = target; |
| 3334 } | 4364 } |
| 3335 if (user != null) { | 4365 if (user != null) { |
| 3336 _json["user"] = user; | 4366 _json["user"] = user; |
| 3337 } | 4367 } |
| 3338 return _json; | 4368 return _json; |
| 3339 } | 4369 } |
| 3340 } | 4370 } |
| 3341 | 4371 |
| 3342 /** | 4372 /// Readiness checking configuration for VM instances. Unhealthy instances are |
| 3343 * Readiness checking configuration for VM instances. Unhealthy instances are | 4373 /// removed from traffic rotation. |
| 3344 * removed from traffic rotation. | |
| 3345 */ | |
| 3346 class ReadinessCheck { | 4374 class ReadinessCheck { |
| 3347 /** | 4375 /// A maximum time limit on application initialization, measured from moment |
| 3348 * A maximum time limit on application initialization, measured from moment | 4376 /// the application successfully replies to a healthcheck until it is ready |
| 3349 * the application successfully replies to a healthcheck until it is ready to | 4377 /// to serve traffic. |
| 3350 * serve traffic. | |
| 3351 */ | |
| 3352 core.String appStartTimeout; | 4378 core.String appStartTimeout; |
| 3353 /** Interval between health checks. */ | 4379 |
| 4380 /// Interval between health checks. |
| 3354 core.String checkInterval; | 4381 core.String checkInterval; |
| 3355 /** Number of consecutive failed checks required before removing traffic. */ | 4382 |
| 4383 /// Number of consecutive failed checks required before removing traffic. |
| 3356 core.int failureThreshold; | 4384 core.int failureThreshold; |
| 3357 /** | 4385 |
| 3358 * Host header to send when performing a HTTP Readiness check. Example: | 4386 /// Host header to send when performing a HTTP Readiness check. Example: |
| 3359 * "myapp.appspot.com" | 4387 /// "myapp.appspot.com" |
| 3360 */ | |
| 3361 core.String host; | 4388 core.String host; |
| 3362 /** The request path. */ | 4389 |
| 4390 /// The request path. |
| 3363 core.String path; | 4391 core.String path; |
| 3364 /** | 4392 |
| 3365 * Number of consecutive successful checks required before receiving traffic. | 4393 /// Number of consecutive successful checks required before receiving |
| 3366 */ | 4394 /// traffic. |
| 3367 core.int successThreshold; | 4395 core.int successThreshold; |
| 3368 /** Time before the check is considered failed. */ | 4396 |
| 4397 /// Time before the check is considered failed. |
| 3369 core.String timeout; | 4398 core.String timeout; |
| 3370 | 4399 |
| 3371 ReadinessCheck(); | 4400 ReadinessCheck(); |
| 3372 | 4401 |
| 3373 ReadinessCheck.fromJson(core.Map _json) { | 4402 ReadinessCheck.fromJson(core.Map _json) { |
| 3374 if (_json.containsKey("appStartTimeout")) { | 4403 if (_json.containsKey("appStartTimeout")) { |
| 3375 appStartTimeout = _json["appStartTimeout"]; | 4404 appStartTimeout = _json["appStartTimeout"]; |
| 3376 } | 4405 } |
| 3377 if (_json.containsKey("checkInterval")) { | 4406 if (_json.containsKey("checkInterval")) { |
| 3378 checkInterval = _json["checkInterval"]; | 4407 checkInterval = _json["checkInterval"]; |
| 3379 } | 4408 } |
| 3380 if (_json.containsKey("failureThreshold")) { | 4409 if (_json.containsKey("failureThreshold")) { |
| 3381 failureThreshold = _json["failureThreshold"]; | 4410 failureThreshold = _json["failureThreshold"]; |
| 3382 } | 4411 } |
| 3383 if (_json.containsKey("host")) { | 4412 if (_json.containsKey("host")) { |
| 3384 host = _json["host"]; | 4413 host = _json["host"]; |
| 3385 } | 4414 } |
| 3386 if (_json.containsKey("path")) { | 4415 if (_json.containsKey("path")) { |
| 3387 path = _json["path"]; | 4416 path = _json["path"]; |
| 3388 } | 4417 } |
| 3389 if (_json.containsKey("successThreshold")) { | 4418 if (_json.containsKey("successThreshold")) { |
| 3390 successThreshold = _json["successThreshold"]; | 4419 successThreshold = _json["successThreshold"]; |
| 3391 } | 4420 } |
| 3392 if (_json.containsKey("timeout")) { | 4421 if (_json.containsKey("timeout")) { |
| 3393 timeout = _json["timeout"]; | 4422 timeout = _json["timeout"]; |
| 3394 } | 4423 } |
| 3395 } | 4424 } |
| 3396 | 4425 |
| 3397 core.Map<core.String, core.Object> toJson() { | 4426 core.Map<core.String, core.Object> toJson() { |
| 3398 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4427 final core.Map<core.String, core.Object> _json = |
| 4428 new core.Map<core.String, core.Object>(); |
| 3399 if (appStartTimeout != null) { | 4429 if (appStartTimeout != null) { |
| 3400 _json["appStartTimeout"] = appStartTimeout; | 4430 _json["appStartTimeout"] = appStartTimeout; |
| 3401 } | 4431 } |
| 3402 if (checkInterval != null) { | 4432 if (checkInterval != null) { |
| 3403 _json["checkInterval"] = checkInterval; | 4433 _json["checkInterval"] = checkInterval; |
| 3404 } | 4434 } |
| 3405 if (failureThreshold != null) { | 4435 if (failureThreshold != null) { |
| 3406 _json["failureThreshold"] = failureThreshold; | 4436 _json["failureThreshold"] = failureThreshold; |
| 3407 } | 4437 } |
| 3408 if (host != null) { | 4438 if (host != null) { |
| 3409 _json["host"] = host; | 4439 _json["host"] = host; |
| 3410 } | 4440 } |
| 3411 if (path != null) { | 4441 if (path != null) { |
| 3412 _json["path"] = path; | 4442 _json["path"] = path; |
| 3413 } | 4443 } |
| 3414 if (successThreshold != null) { | 4444 if (successThreshold != null) { |
| 3415 _json["successThreshold"] = successThreshold; | 4445 _json["successThreshold"] = successThreshold; |
| 3416 } | 4446 } |
| 3417 if (timeout != null) { | 4447 if (timeout != null) { |
| 3418 _json["timeout"] = timeout; | 4448 _json["timeout"] = timeout; |
| 3419 } | 4449 } |
| 3420 return _json; | 4450 return _json; |
| 3421 } | 4451 } |
| 3422 } | 4452 } |
| 3423 | 4453 |
| 3424 /** Request message for 'Applications.RepairApplication'. */ | 4454 /// Request message for 'Applications.RepairApplication'. |
| 3425 class RepairApplicationRequest { | 4455 class RepairApplicationRequest { |
| 3426 | |
| 3427 RepairApplicationRequest(); | 4456 RepairApplicationRequest(); |
| 3428 | 4457 |
| 3429 RepairApplicationRequest.fromJson(core.Map _json) { | 4458 RepairApplicationRequest.fromJson(core.Map _json) {} |
| 3430 } | |
| 3431 | 4459 |
| 3432 core.Map<core.String, core.Object> toJson() { | 4460 core.Map<core.String, core.Object> toJson() { |
| 3433 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4461 final core.Map<core.String, core.Object> _json = |
| 4462 new core.Map<core.String, core.Object>(); |
| 3434 return _json; | 4463 return _json; |
| 3435 } | 4464 } |
| 3436 } | 4465 } |
| 3437 | 4466 |
| 3438 /** Target scaling by request utilization. Only applicable for VM runtimes. */ | 4467 /// Target scaling by request utilization. Only applicable for VM runtimes. |
| 3439 class RequestUtilization { | 4468 class RequestUtilization { |
| 3440 /** Target number of concurrent requests. */ | 4469 /// Target number of concurrent requests. |
| 3441 core.int targetConcurrentRequests; | 4470 core.int targetConcurrentRequests; |
| 3442 /** Target requests per second. */ | 4471 |
| 4472 /// Target requests per second. |
| 3443 core.int targetRequestCountPerSecond; | 4473 core.int targetRequestCountPerSecond; |
| 3444 | 4474 |
| 3445 RequestUtilization(); | 4475 RequestUtilization(); |
| 3446 | 4476 |
| 3447 RequestUtilization.fromJson(core.Map _json) { | 4477 RequestUtilization.fromJson(core.Map _json) { |
| 3448 if (_json.containsKey("targetConcurrentRequests")) { | 4478 if (_json.containsKey("targetConcurrentRequests")) { |
| 3449 targetConcurrentRequests = _json["targetConcurrentRequests"]; | 4479 targetConcurrentRequests = _json["targetConcurrentRequests"]; |
| 3450 } | 4480 } |
| 3451 if (_json.containsKey("targetRequestCountPerSecond")) { | 4481 if (_json.containsKey("targetRequestCountPerSecond")) { |
| 3452 targetRequestCountPerSecond = _json["targetRequestCountPerSecond"]; | 4482 targetRequestCountPerSecond = _json["targetRequestCountPerSecond"]; |
| 3453 } | 4483 } |
| 3454 } | 4484 } |
| 3455 | 4485 |
| 3456 core.Map<core.String, core.Object> toJson() { | 4486 core.Map<core.String, core.Object> toJson() { |
| 3457 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4487 final core.Map<core.String, core.Object> _json = |
| 4488 new core.Map<core.String, core.Object>(); |
| 3458 if (targetConcurrentRequests != null) { | 4489 if (targetConcurrentRequests != null) { |
| 3459 _json["targetConcurrentRequests"] = targetConcurrentRequests; | 4490 _json["targetConcurrentRequests"] = targetConcurrentRequests; |
| 3460 } | 4491 } |
| 3461 if (targetRequestCountPerSecond != null) { | 4492 if (targetRequestCountPerSecond != null) { |
| 3462 _json["targetRequestCountPerSecond"] = targetRequestCountPerSecond; | 4493 _json["targetRequestCountPerSecond"] = targetRequestCountPerSecond; |
| 3463 } | 4494 } |
| 3464 return _json; | 4495 return _json; |
| 3465 } | 4496 } |
| 3466 } | 4497 } |
| 3467 | 4498 |
| 3468 /** Machine resources for a version. */ | 4499 /// A DNS resource record. |
| 4500 class ResourceRecord { |
| 4501 /// Relative name of the object affected by this record. Only applicable for |
| 4502 /// CNAME records. Example: 'www'. |
| 4503 core.String name; |
| 4504 |
| 4505 /// Data for this record. Values vary by record type, as defined in RFC 1035 |
| 4506 /// (section 5) and RFC 1034 (section 3.6.1). |
| 4507 core.String rrdata; |
| 4508 |
| 4509 /// Resource record type. Example: AAAA. |
| 4510 /// Possible string values are: |
| 4511 /// - "RECORD_TYPE_UNSPECIFIED" : An unknown resource record. |
| 4512 /// - "A" : An A resource record. Data is an IPv4 address. |
| 4513 /// - "AAAA" : An AAAA resource record. Data is an IPv6 address. |
| 4514 /// - "CNAME" : A CNAME resource record. Data is a domain name to be aliased. |
| 4515 core.String type; |
| 4516 |
| 4517 ResourceRecord(); |
| 4518 |
| 4519 ResourceRecord.fromJson(core.Map _json) { |
| 4520 if (_json.containsKey("name")) { |
| 4521 name = _json["name"]; |
| 4522 } |
| 4523 if (_json.containsKey("rrdata")) { |
| 4524 rrdata = _json["rrdata"]; |
| 4525 } |
| 4526 if (_json.containsKey("type")) { |
| 4527 type = _json["type"]; |
| 4528 } |
| 4529 } |
| 4530 |
| 4531 core.Map<core.String, core.Object> toJson() { |
| 4532 final core.Map<core.String, core.Object> _json = |
| 4533 new core.Map<core.String, core.Object>(); |
| 4534 if (name != null) { |
| 4535 _json["name"] = name; |
| 4536 } |
| 4537 if (rrdata != null) { |
| 4538 _json["rrdata"] = rrdata; |
| 4539 } |
| 4540 if (type != null) { |
| 4541 _json["type"] = type; |
| 4542 } |
| 4543 return _json; |
| 4544 } |
| 4545 } |
| 4546 |
| 4547 /// Machine resources for a version. |
| 3469 class Resources { | 4548 class Resources { |
| 3470 /** Number of CPU cores needed. */ | 4549 /// Number of CPU cores needed. |
| 3471 core.double cpu; | 4550 core.double cpu; |
| 3472 /** Disk size (GB) needed. */ | 4551 |
| 4552 /// Disk size (GB) needed. |
| 3473 core.double diskGb; | 4553 core.double diskGb; |
| 3474 /** Memory (GB) needed. */ | 4554 |
| 4555 /// Memory (GB) needed. |
| 3475 core.double memoryGb; | 4556 core.double memoryGb; |
| 3476 /** User specified volumes. */ | 4557 |
| 4558 /// User specified volumes. |
| 3477 core.List<Volume> volumes; | 4559 core.List<Volume> volumes; |
| 3478 | 4560 |
| 3479 Resources(); | 4561 Resources(); |
| 3480 | 4562 |
| 3481 Resources.fromJson(core.Map _json) { | 4563 Resources.fromJson(core.Map _json) { |
| 3482 if (_json.containsKey("cpu")) { | 4564 if (_json.containsKey("cpu")) { |
| 3483 cpu = _json["cpu"]; | 4565 cpu = _json["cpu"]; |
| 3484 } | 4566 } |
| 3485 if (_json.containsKey("diskGb")) { | 4567 if (_json.containsKey("diskGb")) { |
| 3486 diskGb = _json["diskGb"]; | 4568 diskGb = _json["diskGb"]; |
| 3487 } | 4569 } |
| 3488 if (_json.containsKey("memoryGb")) { | 4570 if (_json.containsKey("memoryGb")) { |
| 3489 memoryGb = _json["memoryGb"]; | 4571 memoryGb = _json["memoryGb"]; |
| 3490 } | 4572 } |
| 3491 if (_json.containsKey("volumes")) { | 4573 if (_json.containsKey("volumes")) { |
| 3492 volumes = _json["volumes"].map((value) => new Volume.fromJson(value)).toLi
st(); | 4574 volumes = |
| 4575 _json["volumes"].map((value) => new Volume.fromJson(value)).toList(); |
| 3493 } | 4576 } |
| 3494 } | 4577 } |
| 3495 | 4578 |
| 3496 core.Map<core.String, core.Object> toJson() { | 4579 core.Map<core.String, core.Object> toJson() { |
| 3497 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4580 final core.Map<core.String, core.Object> _json = |
| 4581 new core.Map<core.String, core.Object>(); |
| 3498 if (cpu != null) { | 4582 if (cpu != null) { |
| 3499 _json["cpu"] = cpu; | 4583 _json["cpu"] = cpu; |
| 3500 } | 4584 } |
| 3501 if (diskGb != null) { | 4585 if (diskGb != null) { |
| 3502 _json["diskGb"] = diskGb; | 4586 _json["diskGb"] = diskGb; |
| 3503 } | 4587 } |
| 3504 if (memoryGb != null) { | 4588 if (memoryGb != null) { |
| 3505 _json["memoryGb"] = memoryGb; | 4589 _json["memoryGb"] = memoryGb; |
| 3506 } | 4590 } |
| 3507 if (volumes != null) { | 4591 if (volumes != null) { |
| 3508 _json["volumes"] = volumes.map((value) => (value).toJson()).toList(); | 4592 _json["volumes"] = volumes.map((value) => (value).toJson()).toList(); |
| 3509 } | 4593 } |
| 3510 return _json; | 4594 return _json; |
| 3511 } | 4595 } |
| 3512 } | 4596 } |
| 3513 | 4597 |
| 3514 /** Executes a script to handle the request that matches the URL pattern. */ | 4598 /// Executes a script to handle the request that matches the URL pattern. |
| 3515 class ScriptHandler { | 4599 class ScriptHandler { |
| 3516 /** Path to the script from the application root directory. */ | 4600 /// Path to the script from the application root directory. |
| 3517 core.String scriptPath; | 4601 core.String scriptPath; |
| 3518 | 4602 |
| 3519 ScriptHandler(); | 4603 ScriptHandler(); |
| 3520 | 4604 |
| 3521 ScriptHandler.fromJson(core.Map _json) { | 4605 ScriptHandler.fromJson(core.Map _json) { |
| 3522 if (_json.containsKey("scriptPath")) { | 4606 if (_json.containsKey("scriptPath")) { |
| 3523 scriptPath = _json["scriptPath"]; | 4607 scriptPath = _json["scriptPath"]; |
| 3524 } | 4608 } |
| 3525 } | 4609 } |
| 3526 | 4610 |
| 3527 core.Map<core.String, core.Object> toJson() { | 4611 core.Map<core.String, core.Object> toJson() { |
| 3528 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4612 final core.Map<core.String, core.Object> _json = |
| 4613 new core.Map<core.String, core.Object>(); |
| 3529 if (scriptPath != null) { | 4614 if (scriptPath != null) { |
| 3530 _json["scriptPath"] = scriptPath; | 4615 _json["scriptPath"] = scriptPath; |
| 3531 } | 4616 } |
| 3532 return _json; | 4617 return _json; |
| 3533 } | 4618 } |
| 3534 } | 4619 } |
| 3535 | 4620 |
| 3536 /** | 4621 /// A Service resource is a logical component of an application that can share |
| 3537 * A Service resource is a logical component of an application that can share | 4622 /// state and communicate in a secure fashion with other services. For example, |
| 3538 * state and communicate in a secure fashion with other services. For example, | 4623 /// an application that handles customer requests might include separate |
| 3539 * an application that handles customer requests might include separate services | 4624 /// services to handle tasks such as backend data analysis or API requests from |
| 3540 * to handle tasks such as backend data analysis or API requests from mobile | 4625 /// mobile devices. Each service has a collection of versions that define a |
| 3541 * devices. Each service has a collection of versions that define a specific set | 4626 /// specific set of code used to implement the functionality of that service. |
| 3542 * of code used to implement the functionality of that service. | |
| 3543 */ | |
| 3544 class Service { | 4627 class Service { |
| 3545 /** | 4628 /// Relative name of the service within the application. Example: |
| 3546 * Relative name of the service within the application. Example: | 4629 /// default.@OutputOnly |
| 3547 * default.@OutputOnly | |
| 3548 */ | |
| 3549 core.String id; | 4630 core.String id; |
| 3550 /** | 4631 |
| 3551 * Full path to the Service resource in the API. Example: | 4632 /// Full path to the Service resource in the API. Example: |
| 3552 * apps/myapp/services/default.@OutputOnly | 4633 /// apps/myapp/services/default.@OutputOnly |
| 3553 */ | |
| 3554 core.String name; | 4634 core.String name; |
| 3555 /** | 4635 |
| 3556 * Mapping that defines fractional HTTP traffic diversion to different | 4636 /// Mapping that defines fractional HTTP traffic diversion to different |
| 3557 * versions within the service. | 4637 /// versions within the service. |
| 3558 */ | |
| 3559 TrafficSplit split; | 4638 TrafficSplit split; |
| 3560 | 4639 |
| 3561 Service(); | 4640 Service(); |
| 3562 | 4641 |
| 3563 Service.fromJson(core.Map _json) { | 4642 Service.fromJson(core.Map _json) { |
| 3564 if (_json.containsKey("id")) { | 4643 if (_json.containsKey("id")) { |
| 3565 id = _json["id"]; | 4644 id = _json["id"]; |
| 3566 } | 4645 } |
| 3567 if (_json.containsKey("name")) { | 4646 if (_json.containsKey("name")) { |
| 3568 name = _json["name"]; | 4647 name = _json["name"]; |
| 3569 } | 4648 } |
| 3570 if (_json.containsKey("split")) { | 4649 if (_json.containsKey("split")) { |
| 3571 split = new TrafficSplit.fromJson(_json["split"]); | 4650 split = new TrafficSplit.fromJson(_json["split"]); |
| 3572 } | 4651 } |
| 3573 } | 4652 } |
| 3574 | 4653 |
| 3575 core.Map<core.String, core.Object> toJson() { | 4654 core.Map<core.String, core.Object> toJson() { |
| 3576 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4655 final core.Map<core.String, core.Object> _json = |
| 4656 new core.Map<core.String, core.Object>(); |
| 3577 if (id != null) { | 4657 if (id != null) { |
| 3578 _json["id"] = id; | 4658 _json["id"] = id; |
| 3579 } | 4659 } |
| 3580 if (name != null) { | 4660 if (name != null) { |
| 3581 _json["name"] = name; | 4661 _json["name"] = name; |
| 3582 } | 4662 } |
| 3583 if (split != null) { | 4663 if (split != null) { |
| 3584 _json["split"] = (split).toJson(); | 4664 _json["split"] = (split).toJson(); |
| 3585 } | 4665 } |
| 3586 return _json; | 4666 return _json; |
| 3587 } | 4667 } |
| 3588 } | 4668 } |
| 3589 | 4669 |
| 3590 /** | 4670 /// SSL configuration for a DomainMapping resource. |
| 3591 * Files served directly to the user for a given URL, such as images, CSS | 4671 class SslSettings { |
| 3592 * stylesheets, or JavaScript source files. Static file handlers describe which | 4672 /// ID of the AuthorizedCertificate resource configuring SSL for the |
| 3593 * files in the application directory are static files, and which URLs serve | 4673 /// application. Clearing this field will remove SSL support. Example: 12345. |
| 3594 * them. | 4674 core.String certificateId; |
| 3595 */ | 4675 |
| 4676 SslSettings(); |
| 4677 |
| 4678 SslSettings.fromJson(core.Map _json) { |
| 4679 if (_json.containsKey("certificateId")) { |
| 4680 certificateId = _json["certificateId"]; |
| 4681 } |
| 4682 } |
| 4683 |
| 4684 core.Map<core.String, core.Object> toJson() { |
| 4685 final core.Map<core.String, core.Object> _json = |
| 4686 new core.Map<core.String, core.Object>(); |
| 4687 if (certificateId != null) { |
| 4688 _json["certificateId"] = certificateId; |
| 4689 } |
| 4690 return _json; |
| 4691 } |
| 4692 } |
| 4693 |
| 4694 /// Files served directly to the user for a given URL, such as images, CSS |
| 4695 /// stylesheets, or JavaScript source files. Static file handlers describe |
| 4696 /// which files in the application directory are static files, and which URLs |
| 4697 /// serve them. |
| 3596 class StaticFilesHandler { | 4698 class StaticFilesHandler { |
| 3597 /** | 4699 /// Whether files should also be uploaded as code data. By default, files |
| 3598 * Whether files should also be uploaded as code data. By default, files | 4700 /// declared in static file handlers are uploaded as static data and are only |
| 3599 * declared in static file handlers are uploaded as static data and are only | 4701 /// served to end users; they cannot be read by the application. If enabled, |
| 3600 * served to end users; they cannot be read by the application. If enabled, | 4702 /// uploads are charged against both your code and static data storage |
| 3601 * uploads are charged against both your code and static data storage resource | 4703 /// resource quotas. |
| 3602 * quotas. | |
| 3603 */ | |
| 3604 core.bool applicationReadable; | 4704 core.bool applicationReadable; |
| 3605 /** | 4705 |
| 3606 * Time a static file served by this handler should be cached by web proxies | 4706 /// Time a static file served by this handler should be cached by web proxies |
| 3607 * and browsers. | 4707 /// and browsers. |
| 3608 */ | |
| 3609 core.String expiration; | 4708 core.String expiration; |
| 3610 /** HTTP headers to use for all responses from these URLs. */ | 4709 |
| 4710 /// HTTP headers to use for all responses from these URLs. |
| 3611 core.Map<core.String, core.String> httpHeaders; | 4711 core.Map<core.String, core.String> httpHeaders; |
| 3612 /** | 4712 |
| 3613 * MIME type used to serve all files served by this handler.Defaults to | 4713 /// MIME type used to serve all files served by this handler.Defaults to |
| 3614 * file-specific MIME types, which are derived from each file's filename | 4714 /// file-specific MIME types, which are derived from each file's filename |
| 3615 * extension. | 4715 /// extension. |
| 3616 */ | |
| 3617 core.String mimeType; | 4716 core.String mimeType; |
| 3618 /** | 4717 |
| 3619 * Path to the static files matched by the URL pattern, from the application | 4718 /// Path to the static files matched by the URL pattern, from the application |
| 3620 * root directory. The path can refer to text matched in groupings in the URL | 4719 /// root directory. The path can refer to text matched in groupings in the |
| 3621 * pattern. | 4720 /// URL pattern. |
| 3622 */ | |
| 3623 core.String path; | 4721 core.String path; |
| 3624 /** | 4722 |
| 3625 * Whether this handler should match the request if the file referenced by the | 4723 /// Whether this handler should match the request if the file referenced by |
| 3626 * handler does not exist. | 4724 /// the handler does not exist. |
| 3627 */ | |
| 3628 core.bool requireMatchingFile; | 4725 core.bool requireMatchingFile; |
| 3629 /** | 4726 |
| 3630 * Regular expression that matches the file paths for all files that should be | 4727 /// Regular expression that matches the file paths for all files that should |
| 3631 * referenced by this handler. | 4728 /// be referenced by this handler. |
| 3632 */ | |
| 3633 core.String uploadPathRegex; | 4729 core.String uploadPathRegex; |
| 3634 | 4730 |
| 3635 StaticFilesHandler(); | 4731 StaticFilesHandler(); |
| 3636 | 4732 |
| 3637 StaticFilesHandler.fromJson(core.Map _json) { | 4733 StaticFilesHandler.fromJson(core.Map _json) { |
| 3638 if (_json.containsKey("applicationReadable")) { | 4734 if (_json.containsKey("applicationReadable")) { |
| 3639 applicationReadable = _json["applicationReadable"]; | 4735 applicationReadable = _json["applicationReadable"]; |
| 3640 } | 4736 } |
| 3641 if (_json.containsKey("expiration")) { | 4737 if (_json.containsKey("expiration")) { |
| 3642 expiration = _json["expiration"]; | 4738 expiration = _json["expiration"]; |
| 3643 } | 4739 } |
| 3644 if (_json.containsKey("httpHeaders")) { | 4740 if (_json.containsKey("httpHeaders")) { |
| 3645 httpHeaders = _json["httpHeaders"]; | 4741 httpHeaders = _json["httpHeaders"]; |
| 3646 } | 4742 } |
| 3647 if (_json.containsKey("mimeType")) { | 4743 if (_json.containsKey("mimeType")) { |
| 3648 mimeType = _json["mimeType"]; | 4744 mimeType = _json["mimeType"]; |
| 3649 } | 4745 } |
| 3650 if (_json.containsKey("path")) { | 4746 if (_json.containsKey("path")) { |
| 3651 path = _json["path"]; | 4747 path = _json["path"]; |
| 3652 } | 4748 } |
| 3653 if (_json.containsKey("requireMatchingFile")) { | 4749 if (_json.containsKey("requireMatchingFile")) { |
| 3654 requireMatchingFile = _json["requireMatchingFile"]; | 4750 requireMatchingFile = _json["requireMatchingFile"]; |
| 3655 } | 4751 } |
| 3656 if (_json.containsKey("uploadPathRegex")) { | 4752 if (_json.containsKey("uploadPathRegex")) { |
| 3657 uploadPathRegex = _json["uploadPathRegex"]; | 4753 uploadPathRegex = _json["uploadPathRegex"]; |
| 3658 } | 4754 } |
| 3659 } | 4755 } |
| 3660 | 4756 |
| 3661 core.Map<core.String, core.Object> toJson() { | 4757 core.Map<core.String, core.Object> toJson() { |
| 3662 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4758 final core.Map<core.String, core.Object> _json = |
| 4759 new core.Map<core.String, core.Object>(); |
| 3663 if (applicationReadable != null) { | 4760 if (applicationReadable != null) { |
| 3664 _json["applicationReadable"] = applicationReadable; | 4761 _json["applicationReadable"] = applicationReadable; |
| 3665 } | 4762 } |
| 3666 if (expiration != null) { | 4763 if (expiration != null) { |
| 3667 _json["expiration"] = expiration; | 4764 _json["expiration"] = expiration; |
| 3668 } | 4765 } |
| 3669 if (httpHeaders != null) { | 4766 if (httpHeaders != null) { |
| 3670 _json["httpHeaders"] = httpHeaders; | 4767 _json["httpHeaders"] = httpHeaders; |
| 3671 } | 4768 } |
| 3672 if (mimeType != null) { | 4769 if (mimeType != null) { |
| 3673 _json["mimeType"] = mimeType; | 4770 _json["mimeType"] = mimeType; |
| 3674 } | 4771 } |
| 3675 if (path != null) { | 4772 if (path != null) { |
| 3676 _json["path"] = path; | 4773 _json["path"] = path; |
| 3677 } | 4774 } |
| 3678 if (requireMatchingFile != null) { | 4775 if (requireMatchingFile != null) { |
| 3679 _json["requireMatchingFile"] = requireMatchingFile; | 4776 _json["requireMatchingFile"] = requireMatchingFile; |
| 3680 } | 4777 } |
| 3681 if (uploadPathRegex != null) { | 4778 if (uploadPathRegex != null) { |
| 3682 _json["uploadPathRegex"] = uploadPathRegex; | 4779 _json["uploadPathRegex"] = uploadPathRegex; |
| 3683 } | 4780 } |
| 3684 return _json; | 4781 return _json; |
| 3685 } | 4782 } |
| 3686 } | 4783 } |
| 3687 | 4784 |
| 3688 /** | 4785 /// The Status type defines a logical error model that is suitable for |
| 3689 * The Status type defines a logical error model that is suitable for different | 4786 /// different programming environments, including REST APIs and RPC APIs. It is |
| 3690 * programming environments, including REST APIs and RPC APIs. It is used by | 4787 /// used by gRPC (https://github.com/grpc). The error model is designed to be: |
| 3691 * gRPC (https://github.com/grpc). The error model is designed to be: | 4788 /// Simple to use and understand for most users |
| 3692 * Simple to use and understand for most users | 4789 /// Flexible enough to meet unexpected needsOverviewThe Status message contains |
| 3693 * Flexible enough to meet unexpected needsOverviewThe Status message contains | 4790 /// three pieces of data: error code, error message, and error details. The |
| 3694 * three pieces of data: error code, error message, and error details. The error | 4791 /// error code should be an enum value of google.rpc.Code, but it may accept |
| 3695 * code should be an enum value of google.rpc.Code, but it may accept additional | 4792 /// additional error codes if needed. The error message should be a |
| 3696 * error codes if needed. The error message should be a developer-facing English | 4793 /// developer-facing English message that helps developers understand and |
| 3697 * message that helps developers understand and resolve the error. If a | 4794 /// resolve the error. If a localized user-facing error message is needed, put |
| 3698 * localized user-facing error message is needed, put the localized message in | 4795 /// the localized message in the error details or localize it in the client. |
| 3699 * the error details or localize it in the client. The optional error details | 4796 /// The optional error details may contain arbitrary information about the |
| 3700 * may contain arbitrary information about the error. There is a predefined set | 4797 /// error. There is a predefined set of error detail types in the package |
| 3701 * of error detail types in the package google.rpc that can be used for common | 4798 /// google.rpc that can be used for common error conditions.Language mappingThe |
| 3702 * error conditions.Language mappingThe Status message is the logical | 4799 /// Status message is the logical representation of the error model, but it is |
| 3703 * representation of the error model, but it is not necessarily the actual wire | 4800 /// not necessarily the actual wire format. When the Status message is exposed |
| 3704 * format. When the Status message is exposed in different client libraries and | 4801 /// in different client libraries and different wire protocols, it can be |
| 3705 * different wire protocols, it can be mapped differently. For example, it will | 4802 /// mapped differently. For example, it will likely be mapped to some |
| 3706 * likely be mapped to some exceptions in Java, but more likely mapped to some | 4803 /// exceptions in Java, but more likely mapped to some error codes in C.Other |
| 3707 * error codes in C.Other usesThe error model and the Status message can be used | 4804 /// usesThe error model and the Status message can be used in a variety of |
| 3708 * in a variety of environments, either with or without APIs, to provide a | 4805 /// environments, either with or without APIs, to provide a consistent |
| 3709 * consistent developer experience across different environments.Example uses of | 4806 /// developer experience across different environments.Example uses of this |
| 3710 * this error model include: | 4807 /// error model include: |
| 3711 * Partial errors. If a service needs to return partial errors to the client, it | 4808 /// Partial errors. If a service needs to return partial errors to the client, |
| 3712 * may embed the Status in the normal response to indicate the partial errors. | 4809 /// it may embed the Status in the normal response to indicate the partial |
| 3713 * Workflow errors. A typical workflow has multiple steps. Each step may have a | 4810 /// errors. |
| 3714 * Status message for error reporting. | 4811 /// Workflow errors. A typical workflow has multiple steps. Each step may have |
| 3715 * Batch operations. If a client uses batch request and batch response, the | 4812 /// a Status message for error reporting. |
| 3716 * Status message should be used directly inside batch response, one for each | 4813 /// Batch operations. If a client uses batch request and batch response, the |
| 3717 * error sub-response. | 4814 /// Status message should be used directly inside batch response, one for each |
| 3718 * Asynchronous operations. If an API call embeds asynchronous operation results | 4815 /// error sub-response. |
| 3719 * in its response, the status of those operations should be represented | 4816 /// Asynchronous operations. If an API call embeds asynchronous operation |
| 3720 * directly using the Status message. | 4817 /// results in its response, the status of those operations should be |
| 3721 * Logging. If some API errors are stored in logs, the message Status could be | 4818 /// represented directly using the Status message. |
| 3722 * used directly after any stripping needed for security/privacy reasons. | 4819 /// Logging. If some API errors are stored in logs, the message Status could be |
| 3723 */ | 4820 /// used directly after any stripping needed for security/privacy reasons. |
| 3724 class Status { | 4821 class Status { |
| 3725 /** The status code, which should be an enum value of google.rpc.Code. */ | 4822 /// The status code, which should be an enum value of google.rpc.Code. |
| 3726 core.int code; | 4823 core.int code; |
| 3727 /** | 4824 |
| 3728 * A list of messages that carry the error details. There is a common set of | 4825 /// A list of messages that carry the error details. There is a common set of |
| 3729 * message types for APIs to use. | 4826 /// message types for APIs to use. |
| 3730 * | 4827 /// |
| 3731 * The values for Object must be JSON objects. It can consist of `num`, | 4828 /// The values for Object must be JSON objects. It can consist of `num`, |
| 3732 * `String`, `bool` and `null` as well as `Map` and `List` values. | 4829 /// `String`, `bool` and `null` as well as `Map` and `List` values. |
| 3733 */ | |
| 3734 core.List<core.Map<core.String, core.Object>> details; | 4830 core.List<core.Map<core.String, core.Object>> details; |
| 3735 /** | 4831 |
| 3736 * A developer-facing error message, which should be in English. Any | 4832 /// A developer-facing error message, which should be in English. Any |
| 3737 * user-facing error message should be localized and sent in the | 4833 /// user-facing error message should be localized and sent in the |
| 3738 * google.rpc.Status.details field, or localized by the client. | 4834 /// google.rpc.Status.details field, or localized by the client. |
| 3739 */ | |
| 3740 core.String message; | 4835 core.String message; |
| 3741 | 4836 |
| 3742 Status(); | 4837 Status(); |
| 3743 | 4838 |
| 3744 Status.fromJson(core.Map _json) { | 4839 Status.fromJson(core.Map _json) { |
| 3745 if (_json.containsKey("code")) { | 4840 if (_json.containsKey("code")) { |
| 3746 code = _json["code"]; | 4841 code = _json["code"]; |
| 3747 } | 4842 } |
| 3748 if (_json.containsKey("details")) { | 4843 if (_json.containsKey("details")) { |
| 3749 details = _json["details"]; | 4844 details = _json["details"]; |
| 3750 } | 4845 } |
| 3751 if (_json.containsKey("message")) { | 4846 if (_json.containsKey("message")) { |
| 3752 message = _json["message"]; | 4847 message = _json["message"]; |
| 3753 } | 4848 } |
| 3754 } | 4849 } |
| 3755 | 4850 |
| 3756 core.Map<core.String, core.Object> toJson() { | 4851 core.Map<core.String, core.Object> toJson() { |
| 3757 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4852 final core.Map<core.String, core.Object> _json = |
| 4853 new core.Map<core.String, core.Object>(); |
| 3758 if (code != null) { | 4854 if (code != null) { |
| 3759 _json["code"] = code; | 4855 _json["code"] = code; |
| 3760 } | 4856 } |
| 3761 if (details != null) { | 4857 if (details != null) { |
| 3762 _json["details"] = details; | 4858 _json["details"] = details; |
| 3763 } | 4859 } |
| 3764 if (message != null) { | 4860 if (message != null) { |
| 3765 _json["message"] = message; | 4861 _json["message"] = message; |
| 3766 } | 4862 } |
| 3767 return _json; | 4863 return _json; |
| 3768 } | 4864 } |
| 3769 } | 4865 } |
| 3770 | 4866 |
| 3771 /** | 4867 /// Traffic routing configuration for versions within a single service. Traffic |
| 3772 * Traffic routing configuration for versions within a single service. Traffic | 4868 /// splits define how traffic directed to the service is assigned to versions. |
| 3773 * splits define how traffic directed to the service is assigned to versions. | |
| 3774 */ | |
| 3775 class TrafficSplit { | 4869 class TrafficSplit { |
| 3776 /** | 4870 /// Mapping from version IDs within the service to fractional (0.000, 1] |
| 3777 * Mapping from version IDs within the service to fractional (0.000, 1] | 4871 /// allocations of traffic for that version. Each version can be specified |
| 3778 * allocations of traffic for that version. Each version can be specified only | 4872 /// only once, but some versions in the service may not have any traffic |
| 3779 * once, but some versions in the service may not have any traffic allocation. | 4873 /// allocation. Services that have traffic allocated cannot be deleted until |
| 3780 * Services that have traffic allocated cannot be deleted until either the | 4874 /// either the service is deleted or their traffic allocation is removed. |
| 3781 * service is deleted or their traffic allocation is removed. Allocations must | 4875 /// Allocations must sum to 1. Up to two decimal place precision is supported |
| 3782 * sum to 1. Up to two decimal place precision is supported for IP-based | 4876 /// for IP-based splits and up to three decimal places is supported for |
| 3783 * splits and up to three decimal places is supported for cookie-based splits. | 4877 /// cookie-based splits. |
| 3784 */ | |
| 3785 core.Map<core.String, core.double> allocations; | 4878 core.Map<core.String, core.double> allocations; |
| 3786 /** | 4879 |
| 3787 * Mechanism used to determine which version a request is sent to. The traffic | 4880 /// Mechanism used to determine which version a request is sent to. The |
| 3788 * selection algorithm will be stable for either type until allocations are | 4881 /// traffic selection algorithm will be stable for either type until |
| 3789 * changed. | 4882 /// allocations are changed. |
| 3790 * Possible string values are: | 4883 /// Possible string values are: |
| 3791 * - "UNSPECIFIED" : Diversion method unspecified. | 4884 /// - "UNSPECIFIED" : Diversion method unspecified. |
| 3792 * - "COOKIE" : Diversion based on a specially named cookie, "GOOGAPPUID." The | 4885 /// - "COOKIE" : Diversion based on a specially named cookie, "GOOGAPPUID." |
| 3793 * cookie must be set by the application itself or no diversion will occur. | 4886 /// The cookie must be set by the application itself or no diversion will |
| 3794 * - "IP" : Diversion based on applying the modulus operation to a fingerprint | 4887 /// occur. |
| 3795 * of the IP address. | 4888 /// - "IP" : Diversion based on applying the modulus operation to a |
| 3796 * - "RANDOM" : Diversion based on weighted random assignment. An incoming | 4889 /// fingerprint of the IP address. |
| 3797 * request is randomly routed to a version in the traffic split, with | 4890 /// - "RANDOM" : Diversion based on weighted random assignment. An incoming |
| 3798 * probability proportional to the version's traffic share. | 4891 /// request is randomly routed to a version in the traffic split, with |
| 3799 */ | 4892 /// probability proportional to the version's traffic share. |
| 3800 core.String shardBy; | 4893 core.String shardBy; |
| 3801 | 4894 |
| 3802 TrafficSplit(); | 4895 TrafficSplit(); |
| 3803 | 4896 |
| 3804 TrafficSplit.fromJson(core.Map _json) { | 4897 TrafficSplit.fromJson(core.Map _json) { |
| 3805 if (_json.containsKey("allocations")) { | 4898 if (_json.containsKey("allocations")) { |
| 3806 allocations = _json["allocations"]; | 4899 allocations = _json["allocations"]; |
| 3807 } | 4900 } |
| 3808 if (_json.containsKey("shardBy")) { | 4901 if (_json.containsKey("shardBy")) { |
| 3809 shardBy = _json["shardBy"]; | 4902 shardBy = _json["shardBy"]; |
| 3810 } | 4903 } |
| 3811 } | 4904 } |
| 3812 | 4905 |
| 3813 core.Map<core.String, core.Object> toJson() { | 4906 core.Map<core.String, core.Object> toJson() { |
| 3814 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4907 final core.Map<core.String, core.Object> _json = |
| 4908 new core.Map<core.String, core.Object>(); |
| 3815 if (allocations != null) { | 4909 if (allocations != null) { |
| 3816 _json["allocations"] = allocations; | 4910 _json["allocations"] = allocations; |
| 3817 } | 4911 } |
| 3818 if (shardBy != null) { | 4912 if (shardBy != null) { |
| 3819 _json["shardBy"] = shardBy; | 4913 _json["shardBy"] = shardBy; |
| 3820 } | 4914 } |
| 3821 return _json; | 4915 return _json; |
| 3822 } | 4916 } |
| 3823 } | 4917 } |
| 3824 | 4918 |
| 3825 /** Rules to match an HTTP request and dispatch that request to a service. */ | 4919 /// Rules to match an HTTP request and dispatch that request to a service. |
| 3826 class UrlDispatchRule { | 4920 class UrlDispatchRule { |
| 3827 /** | 4921 /// Domain name to match against. The wildcard "*" is supported if specified |
| 3828 * Domain name to match against. The wildcard "*" is supported if specified | 4922 /// before a period: "*.".Defaults to matching all domains: "*". |
| 3829 * before a period: "*.".Defaults to matching all domains: "*". | |
| 3830 */ | |
| 3831 core.String domain; | 4923 core.String domain; |
| 3832 /** | 4924 |
| 3833 * Pathname within the host. Must start with a "/". A single "*" can be | 4925 /// Pathname within the host. Must start with a "/". A single "*" can be |
| 3834 * included at the end of the path.The sum of the lengths of the domain and | 4926 /// included at the end of the path.The sum of the lengths of the domain and |
| 3835 * path may not exceed 100 characters. | 4927 /// path may not exceed 100 characters. |
| 3836 */ | |
| 3837 core.String path; | 4928 core.String path; |
| 3838 /** | 4929 |
| 3839 * Resource ID of a service in this application that should serve the matched | 4930 /// Resource ID of a service in this application that should serve the |
| 3840 * request. The service must already exist. Example: default. | 4931 /// matched request. The service must already exist. Example: default. |
| 3841 */ | |
| 3842 core.String service; | 4932 core.String service; |
| 3843 | 4933 |
| 3844 UrlDispatchRule(); | 4934 UrlDispatchRule(); |
| 3845 | 4935 |
| 3846 UrlDispatchRule.fromJson(core.Map _json) { | 4936 UrlDispatchRule.fromJson(core.Map _json) { |
| 3847 if (_json.containsKey("domain")) { | 4937 if (_json.containsKey("domain")) { |
| 3848 domain = _json["domain"]; | 4938 domain = _json["domain"]; |
| 3849 } | 4939 } |
| 3850 if (_json.containsKey("path")) { | 4940 if (_json.containsKey("path")) { |
| 3851 path = _json["path"]; | 4941 path = _json["path"]; |
| 3852 } | 4942 } |
| 3853 if (_json.containsKey("service")) { | 4943 if (_json.containsKey("service")) { |
| 3854 service = _json["service"]; | 4944 service = _json["service"]; |
| 3855 } | 4945 } |
| 3856 } | 4946 } |
| 3857 | 4947 |
| 3858 core.Map<core.String, core.Object> toJson() { | 4948 core.Map<core.String, core.Object> toJson() { |
| 3859 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4949 final core.Map<core.String, core.Object> _json = |
| 4950 new core.Map<core.String, core.Object>(); |
| 3860 if (domain != null) { | 4951 if (domain != null) { |
| 3861 _json["domain"] = domain; | 4952 _json["domain"] = domain; |
| 3862 } | 4953 } |
| 3863 if (path != null) { | 4954 if (path != null) { |
| 3864 _json["path"] = path; | 4955 _json["path"] = path; |
| 3865 } | 4956 } |
| 3866 if (service != null) { | 4957 if (service != null) { |
| 3867 _json["service"] = service; | 4958 _json["service"] = service; |
| 3868 } | 4959 } |
| 3869 return _json; | 4960 return _json; |
| 3870 } | 4961 } |
| 3871 } | 4962 } |
| 3872 | 4963 |
| 3873 /** | 4964 /// URL pattern and description of how the URL should be handled. App Engine |
| 3874 * URL pattern and description of how the URL should be handled. App Engine can | 4965 /// can handle URLs by executing application code or by serving static files |
| 3875 * handle URLs by executing application code or by serving static files uploaded | 4966 /// uploaded with the version, such as images, CSS, or JavaScript. |
| 3876 * with the version, such as images, CSS, or JavaScript. | |
| 3877 */ | |
| 3878 class UrlMap { | 4967 class UrlMap { |
| 3879 /** Uses API Endpoints to handle requests. */ | 4968 /// Uses API Endpoints to handle requests. |
| 3880 ApiEndpointHandler apiEndpoint; | 4969 ApiEndpointHandler apiEndpoint; |
| 3881 /** | 4970 |
| 3882 * Action to take when users access resources that require authentication. | 4971 /// Action to take when users access resources that require authentication. |
| 3883 * Defaults to redirect. | 4972 /// Defaults to redirect. |
| 3884 * Possible string values are: | 4973 /// Possible string values are: |
| 3885 * - "AUTH_FAIL_ACTION_UNSPECIFIED" : Not specified. AUTH_FAIL_ACTION_REDIRECT | 4974 /// - "AUTH_FAIL_ACTION_UNSPECIFIED" : Not specified. |
| 3886 * is assumed. | 4975 /// AUTH_FAIL_ACTION_REDIRECT is assumed. |
| 3887 * - "AUTH_FAIL_ACTION_REDIRECT" : Redirects user to "accounts.google.com". | 4976 /// - "AUTH_FAIL_ACTION_REDIRECT" : Redirects user to "accounts.google.com". |
| 3888 * The user is redirected back to the application URL after signing in or | 4977 /// The user is redirected back to the application URL after signing in or |
| 3889 * creating an account. | 4978 /// creating an account. |
| 3890 * - "AUTH_FAIL_ACTION_UNAUTHORIZED" : Rejects request with a 401 HTTP status | 4979 /// - "AUTH_FAIL_ACTION_UNAUTHORIZED" : Rejects request with a 401 HTTP |
| 3891 * code and an error message. | 4980 /// status code and an error message. |
| 3892 */ | |
| 3893 core.String authFailAction; | 4981 core.String authFailAction; |
| 3894 /** | 4982 |
| 3895 * Level of login required to access this resource. | 4983 /// Level of login required to access this resource. |
| 3896 * Possible string values are: | 4984 /// Possible string values are: |
| 3897 * - "LOGIN_UNSPECIFIED" : Not specified. LOGIN_OPTIONAL is assumed. | 4985 /// - "LOGIN_UNSPECIFIED" : Not specified. LOGIN_OPTIONAL is assumed. |
| 3898 * - "LOGIN_OPTIONAL" : Does not require that the user is signed in. | 4986 /// - "LOGIN_OPTIONAL" : Does not require that the user is signed in. |
| 3899 * - "LOGIN_ADMIN" : If the user is not signed in, the auth_fail_action is | 4987 /// - "LOGIN_ADMIN" : If the user is not signed in, the auth_fail_action is |
| 3900 * taken. In addition, if the user is not an administrator for the | 4988 /// taken. In addition, if the user is not an administrator for the |
| 3901 * application, they are given an error message regardless of | 4989 /// application, they are given an error message regardless of |
| 3902 * auth_fail_action. If the user is an administrator, the handler proceeds. | 4990 /// auth_fail_action. If the user is an administrator, the handler proceeds. |
| 3903 * - "LOGIN_REQUIRED" : If the user has signed in, the handler proceeds | 4991 /// - "LOGIN_REQUIRED" : If the user has signed in, the handler proceeds |
| 3904 * normally. Otherwise, the auth_fail_action is taken. | 4992 /// normally. Otherwise, the auth_fail_action is taken. |
| 3905 */ | |
| 3906 core.String login; | 4993 core.String login; |
| 3907 /** | 4994 |
| 3908 * 30x code to use when performing redirects for the secure field. Defaults to | 4995 /// 30x code to use when performing redirects for the secure field. Defaults |
| 3909 * 302. | 4996 /// to 302. |
| 3910 * Possible string values are: | 4997 /// Possible string values are: |
| 3911 * - "REDIRECT_HTTP_RESPONSE_CODE_UNSPECIFIED" : Not specified. 302 is | 4998 /// - "REDIRECT_HTTP_RESPONSE_CODE_UNSPECIFIED" : Not specified. 302 is |
| 3912 * assumed. | 4999 /// assumed. |
| 3913 * - "REDIRECT_HTTP_RESPONSE_CODE_301" : 301 Moved Permanently code. | 5000 /// - "REDIRECT_HTTP_RESPONSE_CODE_301" : 301 Moved Permanently code. |
| 3914 * - "REDIRECT_HTTP_RESPONSE_CODE_302" : 302 Moved Temporarily code. | 5001 /// - "REDIRECT_HTTP_RESPONSE_CODE_302" : 302 Moved Temporarily code. |
| 3915 * - "REDIRECT_HTTP_RESPONSE_CODE_303" : 303 See Other code. | 5002 /// - "REDIRECT_HTTP_RESPONSE_CODE_303" : 303 See Other code. |
| 3916 * - "REDIRECT_HTTP_RESPONSE_CODE_307" : 307 Temporary Redirect code. | 5003 /// - "REDIRECT_HTTP_RESPONSE_CODE_307" : 307 Temporary Redirect code. |
| 3917 */ | |
| 3918 core.String redirectHttpResponseCode; | 5004 core.String redirectHttpResponseCode; |
| 3919 /** Executes a script to handle the request that matches this URL pattern. */ | 5005 |
| 5006 /// Executes a script to handle the request that matches this URL pattern. |
| 3920 ScriptHandler script; | 5007 ScriptHandler script; |
| 3921 /** | 5008 |
| 3922 * Security (HTTPS) enforcement for this URL. | 5009 /// Security (HTTPS) enforcement for this URL. |
| 3923 * Possible string values are: | 5010 /// Possible string values are: |
| 3924 * - "SECURE_UNSPECIFIED" : Not specified. | 5011 /// - "SECURE_UNSPECIFIED" : Not specified. |
| 3925 * - "SECURE_DEFAULT" : Both HTTP and HTTPS requests with URLs that match the | 5012 /// - "SECURE_DEFAULT" : Both HTTP and HTTPS requests with URLs that match |
| 3926 * handler succeed without redirects. The application can examine the request | 5013 /// the handler succeed without redirects. The application can examine the |
| 3927 * to determine which protocol was used, and respond accordingly. | 5014 /// request to determine which protocol was used, and respond accordingly. |
| 3928 * - "SECURE_NEVER" : Requests for a URL that match this handler that use | 5015 /// - "SECURE_NEVER" : Requests for a URL that match this handler that use |
| 3929 * HTTPS are automatically redirected to the HTTP equivalent URL. | 5016 /// HTTPS are automatically redirected to the HTTP equivalent URL. |
| 3930 * - "SECURE_OPTIONAL" : Both HTTP and HTTPS requests with URLs that match the | 5017 /// - "SECURE_OPTIONAL" : Both HTTP and HTTPS requests with URLs that match |
| 3931 * handler succeed without redirects. The application can examine the request | 5018 /// the handler succeed without redirects. The application can examine the |
| 3932 * to determine which protocol was used and respond accordingly. | 5019 /// request to determine which protocol was used and respond accordingly. |
| 3933 * - "SECURE_ALWAYS" : Requests for a URL that match this handler that do not | 5020 /// - "SECURE_ALWAYS" : Requests for a URL that match this handler that do |
| 3934 * use HTTPS are automatically redirected to the HTTPS URL with the same path. | 5021 /// not use HTTPS are automatically redirected to the HTTPS URL with the same |
| 3935 * Query parameters are reserved for the redirect. | 5022 /// path. Query parameters are reserved for the redirect. |
| 3936 */ | |
| 3937 core.String securityLevel; | 5023 core.String securityLevel; |
| 3938 /** Returns the contents of a file, such as an image, as the response. */ | 5024 |
| 5025 /// Returns the contents of a file, such as an image, as the response. |
| 3939 StaticFilesHandler staticFiles; | 5026 StaticFilesHandler staticFiles; |
| 3940 /** | 5027 |
| 3941 * URL prefix. Uses regular expression syntax, which means regexp special | 5028 /// URL prefix. Uses regular expression syntax, which means regexp special |
| 3942 * characters must be escaped, but should not contain groupings. All URLs that | 5029 /// characters must be escaped, but should not contain groupings. All URLs |
| 3943 * begin with this prefix are handled by this handler, using the portion of | 5030 /// that begin with this prefix are handled by this handler, using the |
| 3944 * the URL after the prefix as part of the file path. | 5031 /// portion of the URL after the prefix as part of the file path. |
| 3945 */ | |
| 3946 core.String urlRegex; | 5032 core.String urlRegex; |
| 3947 | 5033 |
| 3948 UrlMap(); | 5034 UrlMap(); |
| 3949 | 5035 |
| 3950 UrlMap.fromJson(core.Map _json) { | 5036 UrlMap.fromJson(core.Map _json) { |
| 3951 if (_json.containsKey("apiEndpoint")) { | 5037 if (_json.containsKey("apiEndpoint")) { |
| 3952 apiEndpoint = new ApiEndpointHandler.fromJson(_json["apiEndpoint"]); | 5038 apiEndpoint = new ApiEndpointHandler.fromJson(_json["apiEndpoint"]); |
| 3953 } | 5039 } |
| 3954 if (_json.containsKey("authFailAction")) { | 5040 if (_json.containsKey("authFailAction")) { |
| 3955 authFailAction = _json["authFailAction"]; | 5041 authFailAction = _json["authFailAction"]; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 3968 } | 5054 } |
| 3969 if (_json.containsKey("staticFiles")) { | 5055 if (_json.containsKey("staticFiles")) { |
| 3970 staticFiles = new StaticFilesHandler.fromJson(_json["staticFiles"]); | 5056 staticFiles = new StaticFilesHandler.fromJson(_json["staticFiles"]); |
| 3971 } | 5057 } |
| 3972 if (_json.containsKey("urlRegex")) { | 5058 if (_json.containsKey("urlRegex")) { |
| 3973 urlRegex = _json["urlRegex"]; | 5059 urlRegex = _json["urlRegex"]; |
| 3974 } | 5060 } |
| 3975 } | 5061 } |
| 3976 | 5062 |
| 3977 core.Map<core.String, core.Object> toJson() { | 5063 core.Map<core.String, core.Object> toJson() { |
| 3978 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 5064 final core.Map<core.String, core.Object> _json = |
| 5065 new core.Map<core.String, core.Object>(); |
| 3979 if (apiEndpoint != null) { | 5066 if (apiEndpoint != null) { |
| 3980 _json["apiEndpoint"] = (apiEndpoint).toJson(); | 5067 _json["apiEndpoint"] = (apiEndpoint).toJson(); |
| 3981 } | 5068 } |
| 3982 if (authFailAction != null) { | 5069 if (authFailAction != null) { |
| 3983 _json["authFailAction"] = authFailAction; | 5070 _json["authFailAction"] = authFailAction; |
| 3984 } | 5071 } |
| 3985 if (login != null) { | 5072 if (login != null) { |
| 3986 _json["login"] = login; | 5073 _json["login"] = login; |
| 3987 } | 5074 } |
| 3988 if (redirectHttpResponseCode != null) { | 5075 if (redirectHttpResponseCode != null) { |
| 3989 _json["redirectHttpResponseCode"] = redirectHttpResponseCode; | 5076 _json["redirectHttpResponseCode"] = redirectHttpResponseCode; |
| 3990 } | 5077 } |
| 3991 if (script != null) { | 5078 if (script != null) { |
| 3992 _json["script"] = (script).toJson(); | 5079 _json["script"] = (script).toJson(); |
| 3993 } | 5080 } |
| 3994 if (securityLevel != null) { | 5081 if (securityLevel != null) { |
| 3995 _json["securityLevel"] = securityLevel; | 5082 _json["securityLevel"] = securityLevel; |
| 3996 } | 5083 } |
| 3997 if (staticFiles != null) { | 5084 if (staticFiles != null) { |
| 3998 _json["staticFiles"] = (staticFiles).toJson(); | 5085 _json["staticFiles"] = (staticFiles).toJson(); |
| 3999 } | 5086 } |
| 4000 if (urlRegex != null) { | 5087 if (urlRegex != null) { |
| 4001 _json["urlRegex"] = urlRegex; | 5088 _json["urlRegex"] = urlRegex; |
| 4002 } | 5089 } |
| 4003 return _json; | 5090 return _json; |
| 4004 } | 5091 } |
| 4005 } | 5092 } |
| 4006 | 5093 |
| 4007 /** | 5094 /// A Version resource is a specific set of source code and configuration files |
| 4008 * A Version resource is a specific set of source code and configuration files | 5095 /// that are deployed into a service. |
| 4009 * that are deployed into a service. | |
| 4010 */ | |
| 4011 class Version { | 5096 class Version { |
| 4012 /** | 5097 /// Serving configuration for Google Cloud Endpoints |
| 4013 * Serving configuration for Google Cloud Endpoints | 5098 /// (https://cloud.google.com/appengine/docs/python/endpoints/).Only returned |
| 4014 * (https://cloud.google.com/appengine/docs/python/endpoints/).Only returned | 5099 /// in GET requests if view=FULL is set. |
| 4015 * in GET requests if view=FULL is set. | |
| 4016 */ | |
| 4017 ApiConfigHandler apiConfig; | 5100 ApiConfigHandler apiConfig; |
| 4018 /** | 5101 |
| 4019 * Automatic scaling is based on request rate, response latencies, and other | 5102 /// Automatic scaling is based on request rate, response latencies, and other |
| 4020 * application metrics. | 5103 /// application metrics. |
| 4021 */ | |
| 4022 AutomaticScaling automaticScaling; | 5104 AutomaticScaling automaticScaling; |
| 4023 /** | 5105 |
| 4024 * A service with basic scaling will create an instance when the application | 5106 /// A service with basic scaling will create an instance when the application |
| 4025 * receives a request. The instance will be turned down when the app becomes | 5107 /// receives a request. The instance will be turned down when the app becomes |
| 4026 * idle. Basic scaling is ideal for work that is intermittent or driven by | 5108 /// idle. Basic scaling is ideal for work that is intermittent or driven by |
| 4027 * user activity. | 5109 /// user activity. |
| 4028 */ | |
| 4029 BasicScaling basicScaling; | 5110 BasicScaling basicScaling; |
| 4030 /** | 5111 |
| 4031 * Metadata settings that are supplied to this version to enable beta runtime | 5112 /// Metadata settings that are supplied to this version to enable beta |
| 4032 * features. | 5113 /// runtime features. |
| 4033 */ | |
| 4034 core.Map<core.String, core.String> betaSettings; | 5114 core.Map<core.String, core.String> betaSettings; |
| 4035 /** Time that this version was created.@OutputOnly */ | 5115 |
| 5116 /// Time that this version was created.@OutputOnly |
| 4036 core.String createTime; | 5117 core.String createTime; |
| 4037 /** Email address of the user who created this version.@OutputOnly */ | 5118 |
| 5119 /// Email address of the user who created this version.@OutputOnly |
| 4038 core.String createdBy; | 5120 core.String createdBy; |
| 4039 /** | 5121 |
| 4040 * Duration that static files should be cached by web proxies and browsers. | 5122 /// Duration that static files should be cached by web proxies and browsers. |
| 4041 * Only applicable if the corresponding StaticFilesHandler | 5123 /// Only applicable if the corresponding StaticFilesHandler |
| 4042 * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.s
ervices.versions#staticfileshandler) | 5124 /// (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.
services.versions#staticfileshandler) |
| 4043 * does not specify its own expiration time.Only returned in GET requests if | 5125 /// does not specify its own expiration time.Only returned in GET requests if |
| 4044 * view=FULL is set. | 5126 /// view=FULL is set. |
| 4045 */ | |
| 4046 core.String defaultExpiration; | 5127 core.String defaultExpiration; |
| 4047 /** | 5128 |
| 4048 * Code and application artifacts that make up this version.Only returned in | 5129 /// Code and application artifacts that make up this version.Only returned in |
| 4049 * GET requests if view=FULL is set. | 5130 /// GET requests if view=FULL is set. |
| 4050 */ | |
| 4051 Deployment deployment; | 5131 Deployment deployment; |
| 4052 /** | 5132 |
| 4053 * Total size in bytes of all the files that are included in this version and | 5133 /// Total size in bytes of all the files that are included in this version |
| 4054 * curerntly hosted on the App Engine disk.@OutputOnly | 5134 /// and curerntly hosted on the App Engine disk.@OutputOnly |
| 4055 */ | |
| 4056 core.String diskUsageBytes; | 5135 core.String diskUsageBytes; |
| 4057 /** | 5136 |
| 4058 * Cloud Endpoints configuration.If endpoints_api_service is set, the Cloud | 5137 /// Cloud Endpoints configuration.If endpoints_api_service is set, the Cloud |
| 4059 * Endpoints Extensible Service Proxy will be provided to serve the API | 5138 /// Endpoints Extensible Service Proxy will be provided to serve the API |
| 4060 * implemented by the app. | 5139 /// implemented by the app. |
| 4061 */ | |
| 4062 EndpointsApiService endpointsApiService; | 5140 EndpointsApiService endpointsApiService; |
| 4063 /** | 5141 |
| 4064 * App Engine execution environment for this version.Defaults to standard. | 5142 /// App Engine execution environment for this version.Defaults to standard. |
| 4065 */ | |
| 4066 core.String env; | 5143 core.String env; |
| 4067 /** | 5144 |
| 4068 * Environment variables available to the application.Only returned in GET | 5145 /// Environment variables available to the application.Only returned in GET |
| 4069 * requests if view=FULL is set. | 5146 /// requests if view=FULL is set. |
| 4070 */ | |
| 4071 core.Map<core.String, core.String> envVariables; | 5147 core.Map<core.String, core.String> envVariables; |
| 4072 /** | 5148 |
| 4073 * Custom static error pages. Limited to 10KB per page.Only returned in GET | 5149 /// Custom static error pages. Limited to 10KB per page.Only returned in GET |
| 4074 * requests if view=FULL is set. | 5150 /// requests if view=FULL is set. |
| 4075 */ | |
| 4076 core.List<ErrorHandler> errorHandlers; | 5151 core.List<ErrorHandler> errorHandlers; |
| 4077 /** | 5152 |
| 4078 * An ordered list of URL-matching patterns that should be applied to incoming | 5153 /// An ordered list of URL-matching patterns that should be applied to |
| 4079 * requests. The first matching URL handles the request and other request | 5154 /// incoming requests. The first matching URL handles the request and other |
| 4080 * handlers are not attempted.Only returned in GET requests if view=FULL is | 5155 /// request handlers are not attempted.Only returned in GET requests if |
| 4081 * set. | 5156 /// view=FULL is set. |
| 4082 */ | |
| 4083 core.List<UrlMap> handlers; | 5157 core.List<UrlMap> handlers; |
| 4084 /** | 5158 |
| 4085 * Configures health checking for VM instances. Unhealthy instances are | 5159 /// Configures health checking for VM instances. Unhealthy instances are |
| 4086 * stopped and replaced with new instances. Only applicable for VM | 5160 /// stopped and replaced with new instances. Only applicable for VM |
| 4087 * runtimes.Only returned in GET requests if view=FULL is set. | 5161 /// runtimes.Only returned in GET requests if view=FULL is set. |
| 4088 */ | |
| 4089 HealthCheck healthCheck; | 5162 HealthCheck healthCheck; |
| 4090 /** | 5163 |
| 4091 * Relative name of the version within the service. Example: v1. Version names | 5164 /// Relative name of the version within the service. Example: v1. Version |
| 4092 * can contain only lowercase letters, numbers, or hyphens. Reserved names: | 5165 /// names can contain only lowercase letters, numbers, or hyphens. Reserved |
| 4093 * "default", "latest", and any name with the prefix "ah-". | 5166 /// names: "default", "latest", and any name with the prefix "ah-". |
| 4094 */ | |
| 4095 core.String id; | 5167 core.String id; |
| 4096 /** | 5168 |
| 4097 * Before an application can receive email or XMPP messages, the application | 5169 /// Before an application can receive email or XMPP messages, the application |
| 4098 * must be configured to enable the service. | 5170 /// must be configured to enable the service. |
| 4099 */ | |
| 4100 core.List<core.String> inboundServices; | 5171 core.List<core.String> inboundServices; |
| 4101 /** | 5172 |
| 4102 * Instance class that is used to run this version. Valid values are: | 5173 /// Instance class that is used to run this version. Valid values are: |
| 4103 * AutomaticScaling: F1, F2, F4, F4_1G | 5174 /// AutomaticScaling: F1, F2, F4, F4_1G |
| 4104 * ManualScaling or BasicScaling: B1, B2, B4, B8, B4_1GDefaults to F1 for | 5175 /// ManualScaling or BasicScaling: B1, B2, B4, B8, B4_1GDefaults to F1 for |
| 4105 * AutomaticScaling and B1 for ManualScaling or BasicScaling. | 5176 /// AutomaticScaling and B1 for ManualScaling or BasicScaling. |
| 4106 */ | |
| 4107 core.String instanceClass; | 5177 core.String instanceClass; |
| 4108 /** | 5178 |
| 4109 * Configuration for third-party Python runtime libraries that are required by | 5179 /// Configuration for third-party Python runtime libraries that are required |
| 4110 * the application.Only returned in GET requests if view=FULL is set. | 5180 /// by the application.Only returned in GET requests if view=FULL is set. |
| 4111 */ | |
| 4112 core.List<Library> libraries; | 5181 core.List<Library> libraries; |
| 4113 /** | 5182 |
| 4114 * Configures liveness health checking for VM instances. Unhealthy instances | 5183 /// Configures liveness health checking for VM instances. Unhealthy instances |
| 4115 * are stopped and replaced with new instancesOnly returned in GET requests if | 5184 /// are stopped and replaced with new instancesOnly returned in GET requests |
| 4116 * view=FULL is set. | 5185 /// if view=FULL is set. |
| 4117 */ | |
| 4118 LivenessCheck livenessCheck; | 5186 LivenessCheck livenessCheck; |
| 4119 /** | 5187 |
| 4120 * A service with manual scaling runs continuously, allowing you to perform | 5188 /// A service with manual scaling runs continuously, allowing you to perform |
| 4121 * complex initialization and rely on the state of its memory over time. | 5189 /// complex initialization and rely on the state of its memory over time. |
| 4122 */ | |
| 4123 ManualScaling manualScaling; | 5190 ManualScaling manualScaling; |
| 4124 /** | 5191 |
| 4125 * Full path to the Version resource in the API. Example: | 5192 /// Full path to the Version resource in the API. Example: |
| 4126 * apps/myapp/services/default/versions/v1.@OutputOnly | 5193 /// apps/myapp/services/default/versions/v1.@OutputOnly |
| 4127 */ | |
| 4128 core.String name; | 5194 core.String name; |
| 4129 /** | 5195 |
| 4130 * Extra network settings. Only applicable for App Engine flexible environment | 5196 /// Extra network settings. Only applicable for App Engine flexible |
| 4131 * versions. | 5197 /// environment versions. |
| 4132 */ | |
| 4133 Network network; | 5198 Network network; |
| 4134 /** | 5199 |
| 4135 * Files that match this pattern will not be built into this version. Only | 5200 /// Files that match this pattern will not be built into this version. Only |
| 4136 * applicable for Go runtimes.Only returned in GET requests if view=FULL is | 5201 /// applicable for Go runtimes.Only returned in GET requests if view=FULL is |
| 4137 * set. | 5202 /// set. |
| 4138 */ | |
| 4139 core.String nobuildFilesRegex; | 5203 core.String nobuildFilesRegex; |
| 4140 /** | 5204 |
| 4141 * Configures readiness health checking for VM instances. Unhealthy instances | 5205 /// Configures readiness health checking for VM instances. Unhealthy |
| 4142 * are not put into the backend traffic rotation.Only returned in GET requests | 5206 /// instances are not put into the backend traffic rotation.Only returned in |
| 4143 * if view=FULL is set. | 5207 /// GET requests if view=FULL is set. |
| 4144 */ | |
| 4145 ReadinessCheck readinessCheck; | 5208 ReadinessCheck readinessCheck; |
| 4146 /** Machine resources for this version. Only applicable for VM runtimes. */ | 5209 |
| 5210 /// Machine resources for this version. Only applicable for VM runtimes. |
| 4147 Resources resources; | 5211 Resources resources; |
| 4148 /** Desired runtime. Example: python27. */ | 5212 |
| 5213 /// Desired runtime. Example: python27. |
| 4149 core.String runtime; | 5214 core.String runtime; |
| 4150 /** | 5215 |
| 4151 * The version of the API in the given runtime environment. Please see the | 5216 /// The version of the API in the given runtime environment. Please see the |
| 4152 * app.yaml reference for valid values at | 5217 /// app.yaml reference for valid values at |
| 4153 * https://cloud.google.com/appengine/docs/standard/<language>/config/appref | 5218 /// https://cloud.google.com/appengine/docs/standard/<language>/config/appref |
| 4154 */ | |
| 4155 core.String runtimeApiVersion; | 5219 core.String runtimeApiVersion; |
| 4156 /** | 5220 |
| 4157 * Current serving status of this version. Only the versions with a SERVING | 5221 /// Current serving status of this version. Only the versions with a SERVING |
| 4158 * status create instances and can be billed.SERVING_STATUS_UNSPECIFIED is an | 5222 /// status create instances and can be billed.SERVING_STATUS_UNSPECIFIED is |
| 4159 * invalid value. Defaults to SERVING. | 5223 /// an invalid value. Defaults to SERVING. |
| 4160 * Possible string values are: | 5224 /// Possible string values are: |
| 4161 * - "SERVING_STATUS_UNSPECIFIED" : Not specified. | 5225 /// - "SERVING_STATUS_UNSPECIFIED" : Not specified. |
| 4162 * - "SERVING" : Currently serving. Instances are created according to the | 5226 /// - "SERVING" : Currently serving. Instances are created according to the |
| 4163 * scaling settings of the version. | 5227 /// scaling settings of the version. |
| 4164 * - "STOPPED" : Disabled. No instances will be created and the scaling | 5228 /// - "STOPPED" : Disabled. No instances will be created and the scaling |
| 4165 * settings are ignored until the state of the version changes to SERVING. | 5229 /// settings are ignored until the state of the version changes to SERVING. |
| 4166 */ | |
| 4167 core.String servingStatus; | 5230 core.String servingStatus; |
| 4168 /** Whether multiple requests can be dispatched to this version at once. */ | 5231 |
| 5232 /// Whether multiple requests can be dispatched to this version at once. |
| 4169 core.bool threadsafe; | 5233 core.bool threadsafe; |
| 4170 /** | 5234 |
| 4171 * Serving URL for this version. Example: | 5235 /// Serving URL for this version. Example: |
| 4172 * "https://myversion-dot-myservice-dot-myapp.appspot.com"@OutputOnly | 5236 /// "https://myversion-dot-myservice-dot-myapp.appspot.com"@OutputOnly |
| 4173 */ | |
| 4174 core.String versionUrl; | 5237 core.String versionUrl; |
| 4175 /** Whether to deploy this version in a container on a virtual machine. */ | 5238 |
| 5239 /// Whether to deploy this version in a container on a virtual machine. |
| 4176 core.bool vm; | 5240 core.bool vm; |
| 4177 | 5241 |
| 4178 Version(); | 5242 Version(); |
| 4179 | 5243 |
| 4180 Version.fromJson(core.Map _json) { | 5244 Version.fromJson(core.Map _json) { |
| 4181 if (_json.containsKey("apiConfig")) { | 5245 if (_json.containsKey("apiConfig")) { |
| 4182 apiConfig = new ApiConfigHandler.fromJson(_json["apiConfig"]); | 5246 apiConfig = new ApiConfigHandler.fromJson(_json["apiConfig"]); |
| 4183 } | 5247 } |
| 4184 if (_json.containsKey("automaticScaling")) { | 5248 if (_json.containsKey("automaticScaling")) { |
| 4185 automaticScaling = new AutomaticScaling.fromJson(_json["automaticScaling"]
); | 5249 automaticScaling = |
| 5250 new AutomaticScaling.fromJson(_json["automaticScaling"]); |
| 4186 } | 5251 } |
| 4187 if (_json.containsKey("basicScaling")) { | 5252 if (_json.containsKey("basicScaling")) { |
| 4188 basicScaling = new BasicScaling.fromJson(_json["basicScaling"]); | 5253 basicScaling = new BasicScaling.fromJson(_json["basicScaling"]); |
| 4189 } | 5254 } |
| 4190 if (_json.containsKey("betaSettings")) { | 5255 if (_json.containsKey("betaSettings")) { |
| 4191 betaSettings = _json["betaSettings"]; | 5256 betaSettings = _json["betaSettings"]; |
| 4192 } | 5257 } |
| 4193 if (_json.containsKey("createTime")) { | 5258 if (_json.containsKey("createTime")) { |
| 4194 createTime = _json["createTime"]; | 5259 createTime = _json["createTime"]; |
| 4195 } | 5260 } |
| 4196 if (_json.containsKey("createdBy")) { | 5261 if (_json.containsKey("createdBy")) { |
| 4197 createdBy = _json["createdBy"]; | 5262 createdBy = _json["createdBy"]; |
| 4198 } | 5263 } |
| 4199 if (_json.containsKey("defaultExpiration")) { | 5264 if (_json.containsKey("defaultExpiration")) { |
| 4200 defaultExpiration = _json["defaultExpiration"]; | 5265 defaultExpiration = _json["defaultExpiration"]; |
| 4201 } | 5266 } |
| 4202 if (_json.containsKey("deployment")) { | 5267 if (_json.containsKey("deployment")) { |
| 4203 deployment = new Deployment.fromJson(_json["deployment"]); | 5268 deployment = new Deployment.fromJson(_json["deployment"]); |
| 4204 } | 5269 } |
| 4205 if (_json.containsKey("diskUsageBytes")) { | 5270 if (_json.containsKey("diskUsageBytes")) { |
| 4206 diskUsageBytes = _json["diskUsageBytes"]; | 5271 diskUsageBytes = _json["diskUsageBytes"]; |
| 4207 } | 5272 } |
| 4208 if (_json.containsKey("endpointsApiService")) { | 5273 if (_json.containsKey("endpointsApiService")) { |
| 4209 endpointsApiService = new EndpointsApiService.fromJson(_json["endpointsApi
Service"]); | 5274 endpointsApiService = |
| 5275 new EndpointsApiService.fromJson(_json["endpointsApiService"]); |
| 4210 } | 5276 } |
| 4211 if (_json.containsKey("env")) { | 5277 if (_json.containsKey("env")) { |
| 4212 env = _json["env"]; | 5278 env = _json["env"]; |
| 4213 } | 5279 } |
| 4214 if (_json.containsKey("envVariables")) { | 5280 if (_json.containsKey("envVariables")) { |
| 4215 envVariables = _json["envVariables"]; | 5281 envVariables = _json["envVariables"]; |
| 4216 } | 5282 } |
| 4217 if (_json.containsKey("errorHandlers")) { | 5283 if (_json.containsKey("errorHandlers")) { |
| 4218 errorHandlers = _json["errorHandlers"].map((value) => new ErrorHandler.fro
mJson(value)).toList(); | 5284 errorHandlers = _json["errorHandlers"] |
| 5285 .map((value) => new ErrorHandler.fromJson(value)) |
| 5286 .toList(); |
| 4219 } | 5287 } |
| 4220 if (_json.containsKey("handlers")) { | 5288 if (_json.containsKey("handlers")) { |
| 4221 handlers = _json["handlers"].map((value) => new UrlMap.fromJson(value)).to
List(); | 5289 handlers = |
| 5290 _json["handlers"].map((value) => new UrlMap.fromJson(value)).toList(); |
| 4222 } | 5291 } |
| 4223 if (_json.containsKey("healthCheck")) { | 5292 if (_json.containsKey("healthCheck")) { |
| 4224 healthCheck = new HealthCheck.fromJson(_json["healthCheck"]); | 5293 healthCheck = new HealthCheck.fromJson(_json["healthCheck"]); |
| 4225 } | 5294 } |
| 4226 if (_json.containsKey("id")) { | 5295 if (_json.containsKey("id")) { |
| 4227 id = _json["id"]; | 5296 id = _json["id"]; |
| 4228 } | 5297 } |
| 4229 if (_json.containsKey("inboundServices")) { | 5298 if (_json.containsKey("inboundServices")) { |
| 4230 inboundServices = _json["inboundServices"]; | 5299 inboundServices = _json["inboundServices"]; |
| 4231 } | 5300 } |
| 4232 if (_json.containsKey("instanceClass")) { | 5301 if (_json.containsKey("instanceClass")) { |
| 4233 instanceClass = _json["instanceClass"]; | 5302 instanceClass = _json["instanceClass"]; |
| 4234 } | 5303 } |
| 4235 if (_json.containsKey("libraries")) { | 5304 if (_json.containsKey("libraries")) { |
| 4236 libraries = _json["libraries"].map((value) => new Library.fromJson(value))
.toList(); | 5305 libraries = _json["libraries"] |
| 5306 .map((value) => new Library.fromJson(value)) |
| 5307 .toList(); |
| 4237 } | 5308 } |
| 4238 if (_json.containsKey("livenessCheck")) { | 5309 if (_json.containsKey("livenessCheck")) { |
| 4239 livenessCheck = new LivenessCheck.fromJson(_json["livenessCheck"]); | 5310 livenessCheck = new LivenessCheck.fromJson(_json["livenessCheck"]); |
| 4240 } | 5311 } |
| 4241 if (_json.containsKey("manualScaling")) { | 5312 if (_json.containsKey("manualScaling")) { |
| 4242 manualScaling = new ManualScaling.fromJson(_json["manualScaling"]); | 5313 manualScaling = new ManualScaling.fromJson(_json["manualScaling"]); |
| 4243 } | 5314 } |
| 4244 if (_json.containsKey("name")) { | 5315 if (_json.containsKey("name")) { |
| 4245 name = _json["name"]; | 5316 name = _json["name"]; |
| 4246 } | 5317 } |
| (...skipping 23 matching lines...) Expand all Loading... |
| 4270 } | 5341 } |
| 4271 if (_json.containsKey("versionUrl")) { | 5342 if (_json.containsKey("versionUrl")) { |
| 4272 versionUrl = _json["versionUrl"]; | 5343 versionUrl = _json["versionUrl"]; |
| 4273 } | 5344 } |
| 4274 if (_json.containsKey("vm")) { | 5345 if (_json.containsKey("vm")) { |
| 4275 vm = _json["vm"]; | 5346 vm = _json["vm"]; |
| 4276 } | 5347 } |
| 4277 } | 5348 } |
| 4278 | 5349 |
| 4279 core.Map<core.String, core.Object> toJson() { | 5350 core.Map<core.String, core.Object> toJson() { |
| 4280 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 5351 final core.Map<core.String, core.Object> _json = |
| 5352 new core.Map<core.String, core.Object>(); |
| 4281 if (apiConfig != null) { | 5353 if (apiConfig != null) { |
| 4282 _json["apiConfig"] = (apiConfig).toJson(); | 5354 _json["apiConfig"] = (apiConfig).toJson(); |
| 4283 } | 5355 } |
| 4284 if (automaticScaling != null) { | 5356 if (automaticScaling != null) { |
| 4285 _json["automaticScaling"] = (automaticScaling).toJson(); | 5357 _json["automaticScaling"] = (automaticScaling).toJson(); |
| 4286 } | 5358 } |
| 4287 if (basicScaling != null) { | 5359 if (basicScaling != null) { |
| 4288 _json["basicScaling"] = (basicScaling).toJson(); | 5360 _json["basicScaling"] = (basicScaling).toJson(); |
| 4289 } | 5361 } |
| 4290 if (betaSettings != null) { | 5362 if (betaSettings != null) { |
| (...skipping 17 matching lines...) Expand all Loading... |
| 4308 if (endpointsApiService != null) { | 5380 if (endpointsApiService != null) { |
| 4309 _json["endpointsApiService"] = (endpointsApiService).toJson(); | 5381 _json["endpointsApiService"] = (endpointsApiService).toJson(); |
| 4310 } | 5382 } |
| 4311 if (env != null) { | 5383 if (env != null) { |
| 4312 _json["env"] = env; | 5384 _json["env"] = env; |
| 4313 } | 5385 } |
| 4314 if (envVariables != null) { | 5386 if (envVariables != null) { |
| 4315 _json["envVariables"] = envVariables; | 5387 _json["envVariables"] = envVariables; |
| 4316 } | 5388 } |
| 4317 if (errorHandlers != null) { | 5389 if (errorHandlers != null) { |
| 4318 _json["errorHandlers"] = errorHandlers.map((value) => (value).toJson()).to
List(); | 5390 _json["errorHandlers"] = |
| 5391 errorHandlers.map((value) => (value).toJson()).toList(); |
| 4319 } | 5392 } |
| 4320 if (handlers != null) { | 5393 if (handlers != null) { |
| 4321 _json["handlers"] = handlers.map((value) => (value).toJson()).toList(); | 5394 _json["handlers"] = handlers.map((value) => (value).toJson()).toList(); |
| 4322 } | 5395 } |
| 4323 if (healthCheck != null) { | 5396 if (healthCheck != null) { |
| 4324 _json["healthCheck"] = (healthCheck).toJson(); | 5397 _json["healthCheck"] = (healthCheck).toJson(); |
| 4325 } | 5398 } |
| 4326 if (id != null) { | 5399 if (id != null) { |
| 4327 _json["id"] = id; | 5400 _json["id"] = id; |
| 4328 } | 5401 } |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4371 if (versionUrl != null) { | 5444 if (versionUrl != null) { |
| 4372 _json["versionUrl"] = versionUrl; | 5445 _json["versionUrl"] = versionUrl; |
| 4373 } | 5446 } |
| 4374 if (vm != null) { | 5447 if (vm != null) { |
| 4375 _json["vm"] = vm; | 5448 _json["vm"] = vm; |
| 4376 } | 5449 } |
| 4377 return _json; | 5450 return _json; |
| 4378 } | 5451 } |
| 4379 } | 5452 } |
| 4380 | 5453 |
| 4381 /** | 5454 /// Volumes mounted within the app container. Only applicable for VM runtimes. |
| 4382 * Volumes mounted within the app container. Only applicable for VM runtimes. | |
| 4383 */ | |
| 4384 class Volume { | 5455 class Volume { |
| 4385 /** Unique name for the volume. */ | 5456 /// Unique name for the volume. |
| 4386 core.String name; | 5457 core.String name; |
| 4387 /** Volume size in gigabytes. */ | 5458 |
| 5459 /// Volume size in gigabytes. |
| 4388 core.double sizeGb; | 5460 core.double sizeGb; |
| 4389 /** Underlying volume type, e.g. 'tmpfs'. */ | 5461 |
| 5462 /// Underlying volume type, e.g. 'tmpfs'. |
| 4390 core.String volumeType; | 5463 core.String volumeType; |
| 4391 | 5464 |
| 4392 Volume(); | 5465 Volume(); |
| 4393 | 5466 |
| 4394 Volume.fromJson(core.Map _json) { | 5467 Volume.fromJson(core.Map _json) { |
| 4395 if (_json.containsKey("name")) { | 5468 if (_json.containsKey("name")) { |
| 4396 name = _json["name"]; | 5469 name = _json["name"]; |
| 4397 } | 5470 } |
| 4398 if (_json.containsKey("sizeGb")) { | 5471 if (_json.containsKey("sizeGb")) { |
| 4399 sizeGb = _json["sizeGb"]; | 5472 sizeGb = _json["sizeGb"]; |
| 4400 } | 5473 } |
| 4401 if (_json.containsKey("volumeType")) { | 5474 if (_json.containsKey("volumeType")) { |
| 4402 volumeType = _json["volumeType"]; | 5475 volumeType = _json["volumeType"]; |
| 4403 } | 5476 } |
| 4404 } | 5477 } |
| 4405 | 5478 |
| 4406 core.Map<core.String, core.Object> toJson() { | 5479 core.Map<core.String, core.Object> toJson() { |
| 4407 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 5480 final core.Map<core.String, core.Object> _json = |
| 5481 new core.Map<core.String, core.Object>(); |
| 4408 if (name != null) { | 5482 if (name != null) { |
| 4409 _json["name"] = name; | 5483 _json["name"] = name; |
| 4410 } | 5484 } |
| 4411 if (sizeGb != null) { | 5485 if (sizeGb != null) { |
| 4412 _json["sizeGb"] = sizeGb; | 5486 _json["sizeGb"] = sizeGb; |
| 4413 } | 5487 } |
| 4414 if (volumeType != null) { | 5488 if (volumeType != null) { |
| 4415 _json["volumeType"] = volumeType; | 5489 _json["volumeType"] = volumeType; |
| 4416 } | 5490 } |
| 4417 return _json; | 5491 return _json; |
| 4418 } | 5492 } |
| 4419 } | 5493 } |
| 4420 | 5494 |
| 4421 /** The zip file information for a zip deployment. */ | 5495 /// The zip file information for a zip deployment. |
| 4422 class ZipInfo { | 5496 class ZipInfo { |
| 4423 /** | 5497 /// An estimate of the number of files in a zip for a zip deployment. If set, |
| 4424 * An estimate of the number of files in a zip for a zip deployment. If set, | 5498 /// must be greater than or equal to the actual number of files. Used for |
| 4425 * must be greater than or equal to the actual number of files. Used for | 5499 /// optimizing performance; if not provided, deployment may be slow. |
| 4426 * optimizing performance; if not provided, deployment may be slow. | |
| 4427 */ | |
| 4428 core.int filesCount; | 5500 core.int filesCount; |
| 4429 /** | 5501 |
| 4430 * URL of the zip file to deploy from. Must be a URL to a resource in Google | 5502 /// URL of the zip file to deploy from. Must be a URL to a resource in Google |
| 4431 * Cloud Storage in the form | 5503 /// Cloud Storage in the form |
| 4432 * 'http(s)://storage.googleapis.com/<bucket>/<object>'. | 5504 /// 'http(s)://storage.googleapis.com/<bucket>/<object>'. |
| 4433 */ | |
| 4434 core.String sourceUrl; | 5505 core.String sourceUrl; |
| 4435 | 5506 |
| 4436 ZipInfo(); | 5507 ZipInfo(); |
| 4437 | 5508 |
| 4438 ZipInfo.fromJson(core.Map _json) { | 5509 ZipInfo.fromJson(core.Map _json) { |
| 4439 if (_json.containsKey("filesCount")) { | 5510 if (_json.containsKey("filesCount")) { |
| 4440 filesCount = _json["filesCount"]; | 5511 filesCount = _json["filesCount"]; |
| 4441 } | 5512 } |
| 4442 if (_json.containsKey("sourceUrl")) { | 5513 if (_json.containsKey("sourceUrl")) { |
| 4443 sourceUrl = _json["sourceUrl"]; | 5514 sourceUrl = _json["sourceUrl"]; |
| 4444 } | 5515 } |
| 4445 } | 5516 } |
| 4446 | 5517 |
| 4447 core.Map<core.String, core.Object> toJson() { | 5518 core.Map<core.String, core.Object> toJson() { |
| 4448 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 5519 final core.Map<core.String, core.Object> _json = |
| 5520 new core.Map<core.String, core.Object>(); |
| 4449 if (filesCount != null) { | 5521 if (filesCount != null) { |
| 4450 _json["filesCount"] = filesCount; | 5522 _json["filesCount"] = filesCount; |
| 4451 } | 5523 } |
| 4452 if (sourceUrl != null) { | 5524 if (sourceUrl != null) { |
| 4453 _json["sourceUrl"] = sourceUrl; | 5525 _json["sourceUrl"] = sourceUrl; |
| 4454 } | 5526 } |
| 4455 return _json; | 5527 return _json; |
| 4456 } | 5528 } |
| 4457 } | 5529 } |
| OLD | NEW |