OLD | NEW |
1 // This is a generated file (see the discoveryapis_generator project). | 1 // This is a generated file (see the discoveryapis_generator project). |
2 | 2 |
3 library googleapis_beta.appengine.v1beta; | 3 library googleapis_beta.appengine.v1beta; |
4 | 4 |
5 import 'dart:core' as core; | 5 import 'dart:core' as core; |
6 import 'dart:async' as async; | 6 import 'dart:async' as async; |
7 import 'dart:convert' as convert; | 7 import 'dart:convert' as convert; |
8 | 8 |
9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; | 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; |
10 import 'package:http/http.dart' as http; | 10 import 'package:http/http.dart' as http; |
(...skipping 20 matching lines...) Expand all Loading... |
31 AppsResourceApi get apps => new AppsResourceApi(_requester); | 31 AppsResourceApi get apps => new AppsResourceApi(_requester); |
32 | 32 |
33 AppengineApi(http.Client client, {core.String rootUrl: "https://appengine.goog
leapis.com/", core.String servicePath: ""}) : | 33 AppengineApi(http.Client client, {core.String rootUrl: "https://appengine.goog
leapis.com/", core.String servicePath: ""}) : |
34 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A
GENT); | 34 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A
GENT); |
35 } | 35 } |
36 | 36 |
37 | 37 |
38 class AppsResourceApi { | 38 class AppsResourceApi { |
39 final commons.ApiRequester _requester; | 39 final commons.ApiRequester _requester; |
40 | 40 |
| 41 AppsAuthorizedCertificatesResourceApi get authorizedCertificates => new AppsAu
thorizedCertificatesResourceApi(_requester); |
| 42 AppsAuthorizedDomainsResourceApi get authorizedDomains => new AppsAuthorizedDo
mainsResourceApi(_requester); |
| 43 AppsDomainMappingsResourceApi get domainMappings => new AppsDomainMappingsReso
urceApi(_requester); |
41 AppsLocationsResourceApi get locations => new AppsLocationsResourceApi(_reques
ter); | 44 AppsLocationsResourceApi get locations => new AppsLocationsResourceApi(_reques
ter); |
42 AppsOperationsResourceApi get operations => new AppsOperationsResourceApi(_req
uester); | 45 AppsOperationsResourceApi get operations => new AppsOperationsResourceApi(_req
uester); |
43 AppsServicesResourceApi get services => new AppsServicesResourceApi(_requester
); | 46 AppsServicesResourceApi get services => new AppsServicesResourceApi(_requester
); |
44 | 47 |
45 AppsResourceApi(commons.ApiRequester client) : | 48 AppsResourceApi(commons.ApiRequester client) : |
46 _requester = client; | 49 _requester = client; |
47 | 50 |
48 /** | 51 /** |
49 * Creates an App Engine application for a Google Cloud Platform project. | 52 * Creates an App Engine application for a Google Cloud Platform project. |
50 * Required fields: | 53 * Required fields: id - The ID of the target Cloud Platform project. location |
51 * id - The ID of the target Cloud Platform project. | 54 * - The region (https://cloud.google.com/appengine/docs/locations) where you |
52 * location - The region (https://cloud.google.com/appengine/docs/locations) | 55 * want the App Engine application located.For more information about App |
53 * where you want the App Engine application located.For more information | 56 * Engine applications, see Managing Projects, Applications, and Billing |
54 * about App Engine applications, see Managing Projects, Applications, and | 57 * (https://cloud.google.com/appengine/docs/python/console/). |
55 * Billing (https://cloud.google.com/appengine/docs/python/console/). | |
56 * | 58 * |
57 * [request] - The metadata request object. | 59 * [request] - The metadata request object. |
58 * | 60 * |
59 * Request parameters: | 61 * Request parameters: |
60 * | 62 * |
61 * Completes with a [Operation]. | 63 * Completes with a [Operation]. |
62 * | 64 * |
63 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 65 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
64 * error. | 66 * error. |
65 * | 67 * |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 body: _body, | 127 body: _body, |
126 queryParams: _queryParams, | 128 queryParams: _queryParams, |
127 uploadOptions: _uploadOptions, | 129 uploadOptions: _uploadOptions, |
128 uploadMedia: _uploadMedia, | 130 uploadMedia: _uploadMedia, |
129 downloadOptions: _downloadOptions); | 131 downloadOptions: _downloadOptions); |
130 return _response.then((data) => new Application.fromJson(data)); | 132 return _response.then((data) => new Application.fromJson(data)); |
131 } | 133 } |
132 | 134 |
133 /** | 135 /** |
134 * Updates the specified Application resource. You can update the following | 136 * Updates the specified Application resource. You can update the following |
135 * fields: | 137 * fields: auth_domain - Google authentication domain for controlling user |
136 * auth_domain - Google authentication domain for controlling user access to | 138 * access to the application. default_cookie_expiration - Cookie expiration |
137 * the application. | 139 * policy for the application. |
138 * default_cookie_expiration - Cookie expiration policy for the application. | |
139 * | 140 * |
140 * [request] - The metadata request object. | 141 * [request] - The metadata request object. |
141 * | 142 * |
142 * Request parameters: | 143 * Request parameters: |
143 * | 144 * |
144 * [appsId] - Part of `name`. Name of the Application resource to update. | 145 * [appsId] - Part of `name`. Name of the Application resource to update. |
145 * Example: apps/myapp. | 146 * Example: apps/myapp. |
146 * | 147 * |
147 * [updateMask] - Standard field mask for the set of fields to be updated. | 148 * [updateMask] - Standard field mask for the set of fields to be updated. |
148 * | 149 * |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
228 queryParams: _queryParams, | 229 queryParams: _queryParams, |
229 uploadOptions: _uploadOptions, | 230 uploadOptions: _uploadOptions, |
230 uploadMedia: _uploadMedia, | 231 uploadMedia: _uploadMedia, |
231 downloadOptions: _downloadOptions); | 232 downloadOptions: _downloadOptions); |
232 return _response.then((data) => new Operation.fromJson(data)); | 233 return _response.then((data) => new Operation.fromJson(data)); |
233 } | 234 } |
234 | 235 |
235 } | 236 } |
236 | 237 |
237 | 238 |
| 239 class AppsAuthorizedCertificatesResourceApi { |
| 240 final commons.ApiRequester _requester; |
| 241 |
| 242 AppsAuthorizedCertificatesResourceApi(commons.ApiRequester client) : |
| 243 _requester = client; |
| 244 |
| 245 /** |
| 246 * Uploads the specified SSL certificate. |
| 247 * |
| 248 * [request] - The metadata request object. |
| 249 * |
| 250 * Request parameters: |
| 251 * |
| 252 * [appsId] - Part of `parent`. Name of the parent Application resource. |
| 253 * Example: apps/myapp. |
| 254 * |
| 255 * Completes with a [AuthorizedCertificate]. |
| 256 * |
| 257 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 258 * error. |
| 259 * |
| 260 * If the used [http.Client] completes with an error when making a REST call, |
| 261 * this method will complete with the same error. |
| 262 */ |
| 263 async.Future<AuthorizedCertificate> create(AuthorizedCertificate request, core
.String appsId) { |
| 264 var _url = null; |
| 265 var _queryParams = new core.Map(); |
| 266 var _uploadMedia = null; |
| 267 var _uploadOptions = null; |
| 268 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 269 var _body = null; |
| 270 |
| 271 if (request != null) { |
| 272 _body = convert.JSON.encode((request).toJson()); |
| 273 } |
| 274 if (appsId == null) { |
| 275 throw new core.ArgumentError("Parameter appsId is required."); |
| 276 } |
| 277 |
| 278 _url = 'v1beta/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/authori
zedCertificates'; |
| 279 |
| 280 var _response = _requester.request(_url, |
| 281 "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 /** |
| 291 * Deletes the specified SSL certificate. |
| 292 * |
| 293 * Request parameters: |
| 294 * |
| 295 * [appsId] - Part of `name`. Name of the resource to delete. Example: |
| 296 * apps/myapp/authorizedCertificates/12345. |
| 297 * |
| 298 * [authorizedCertificatesId] - Part of `name`. See documentation of `appsId`. |
| 299 * |
| 300 * Completes with a [Empty]. |
| 301 * |
| 302 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 303 * error. |
| 304 * |
| 305 * If the used [http.Client] completes with an error when making a REST call, |
| 306 * this method will complete with the same error. |
| 307 */ |
| 308 async.Future<Empty> delete(core.String appsId, core.String authorizedCertifica
tesId) { |
| 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("Parameter authorizedCertificatesId is requir
ed."); |
| 321 } |
| 322 |
| 323 _url = 'v1beta/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/authori
zedCertificates/' + commons.Escaper.ecapeVariable('$authorizedCertificatesId'); |
| 324 |
| 325 var _response = _requester.request(_url, |
| 326 "DELETE", |
| 327 body: _body, |
| 328 queryParams: _queryParams, |
| 329 uploadOptions: _uploadOptions, |
| 330 uploadMedia: _uploadMedia, |
| 331 downloadOptions: _downloadOptions); |
| 332 return _response.then((data) => new Empty.fromJson(data)); |
| 333 } |
| 334 |
| 335 /** |
| 336 * Gets the specified SSL certificate. |
| 337 * |
| 338 * Request parameters: |
| 339 * |
| 340 * [appsId] - Part of `name`. Name of the resource requested. Example: |
| 341 * apps/myapp/authorizedCertificates/12345. |
| 342 * |
| 343 * [authorizedCertificatesId] - Part of `name`. See documentation of `appsId`. |
| 344 * |
| 345 * [view] - Controls the set of fields returned in the GET response. |
| 346 * Possible string values are: |
| 347 * - "BASIC_CERTIFICATE" : A BASIC_CERTIFICATE. |
| 348 * - "FULL_CERTIFICATE" : A FULL_CERTIFICATE. |
| 349 * |
| 350 * Completes with a [AuthorizedCertificate]. |
| 351 * |
| 352 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 353 * error. |
| 354 * |
| 355 * If the used [http.Client] completes with an error when making a REST call, |
| 356 * this method will complete with the same error. |
| 357 */ |
| 358 async.Future<AuthorizedCertificate> get(core.String appsId, core.String author
izedCertificatesId, {core.String view}) { |
| 359 var _url = null; |
| 360 var _queryParams = new core.Map(); |
| 361 var _uploadMedia = null; |
| 362 var _uploadOptions = null; |
| 363 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 364 var _body = null; |
| 365 |
| 366 if (appsId == null) { |
| 367 throw new core.ArgumentError("Parameter appsId is required."); |
| 368 } |
| 369 if (authorizedCertificatesId == null) { |
| 370 throw new core.ArgumentError("Parameter authorizedCertificatesId is requir
ed."); |
| 371 } |
| 372 if (view != null) { |
| 373 _queryParams["view"] = [view]; |
| 374 } |
| 375 |
| 376 _url = 'v1beta/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/authori
zedCertificates/' + commons.Escaper.ecapeVariable('$authorizedCertificatesId'); |
| 377 |
| 378 var _response = _requester.request(_url, |
| 379 "GET", |
| 380 body: _body, |
| 381 queryParams: _queryParams, |
| 382 uploadOptions: _uploadOptions, |
| 383 uploadMedia: _uploadMedia, |
| 384 downloadOptions: _downloadOptions); |
| 385 return _response.then((data) => new AuthorizedCertificate.fromJson(data)); |
| 386 } |
| 387 |
| 388 /** |
| 389 * Lists all SSL certificates the user is authorized to administer. |
| 390 * |
| 391 * Request parameters: |
| 392 * |
| 393 * [appsId] - Part of `parent`. Name of the parent Application resource. |
| 394 * Example: apps/myapp. |
| 395 * |
| 396 * [pageSize] - Maximum results to return per page. |
| 397 * |
| 398 * [pageToken] - Continuation token for fetching the next page of results. |
| 399 * |
| 400 * Completes with a [ListAuthorizedCertificatesResponse]. |
| 401 * |
| 402 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 403 * error. |
| 404 * |
| 405 * If the used [http.Client] completes with an error when making a REST call, |
| 406 * this method will complete with the same error. |
| 407 */ |
| 408 async.Future<ListAuthorizedCertificatesResponse> list(core.String appsId, {cor
e.int pageSize, core.String pageToken}) { |
| 409 var _url = null; |
| 410 var _queryParams = new core.Map(); |
| 411 var _uploadMedia = null; |
| 412 var _uploadOptions = null; |
| 413 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 414 var _body = null; |
| 415 |
| 416 if (appsId == null) { |
| 417 throw new core.ArgumentError("Parameter appsId is required."); |
| 418 } |
| 419 if (pageSize != null) { |
| 420 _queryParams["pageSize"] = ["${pageSize}"]; |
| 421 } |
| 422 if (pageToken != null) { |
| 423 _queryParams["pageToken"] = [pageToken]; |
| 424 } |
| 425 |
| 426 _url = 'v1beta/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/authori
zedCertificates'; |
| 427 |
| 428 var _response = _requester.request(_url, |
| 429 "GET", |
| 430 body: _body, |
| 431 queryParams: _queryParams, |
| 432 uploadOptions: _uploadOptions, |
| 433 uploadMedia: _uploadMedia, |
| 434 downloadOptions: _downloadOptions); |
| 435 return _response.then((data) => new ListAuthorizedCertificatesResponse.fromJ
son(data)); |
| 436 } |
| 437 |
| 438 /** |
| 439 * Updates the specified SSL certificate. To renew a certificate and maintain |
| 440 * its existing domain mappings, update certificate_data with a new |
| 441 * certificate. The new certificate must be applicable to the same domains as |
| 442 * the original certificate. The certificate display_name may also be updated. |
| 443 * |
| 444 * [request] - The metadata request object. |
| 445 * |
| 446 * Request parameters: |
| 447 * |
| 448 * [appsId] - Part of `name`. Name of the resource to update. Example: |
| 449 * apps/myapp/authorizedCertificates/12345. |
| 450 * |
| 451 * [authorizedCertificatesId] - Part of `name`. See documentation of `appsId`. |
| 452 * |
| 453 * [updateMask] - Standard field mask for the set of fields to be updated. |
| 454 * Updates are only supported on the certificate_raw_data and display_name |
| 455 * fields. |
| 456 * |
| 457 * Completes with a [AuthorizedCertificate]. |
| 458 * |
| 459 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 460 * error. |
| 461 * |
| 462 * If the used [http.Client] completes with an error when making a REST call, |
| 463 * this method will complete with the same error. |
| 464 */ |
| 465 async.Future<AuthorizedCertificate> patch(AuthorizedCertificate request, core.
String appsId, core.String authorizedCertificatesId, {core.String updateMask}) { |
| 466 var _url = null; |
| 467 var _queryParams = new core.Map(); |
| 468 var _uploadMedia = null; |
| 469 var _uploadOptions = null; |
| 470 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 471 var _body = null; |
| 472 |
| 473 if (request != null) { |
| 474 _body = convert.JSON.encode((request).toJson()); |
| 475 } |
| 476 if (appsId == null) { |
| 477 throw new core.ArgumentError("Parameter appsId is required."); |
| 478 } |
| 479 if (authorizedCertificatesId == null) { |
| 480 throw new core.ArgumentError("Parameter authorizedCertificatesId is requir
ed."); |
| 481 } |
| 482 if (updateMask != null) { |
| 483 _queryParams["updateMask"] = [updateMask]; |
| 484 } |
| 485 |
| 486 _url = 'v1beta/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/authori
zedCertificates/' + commons.Escaper.ecapeVariable('$authorizedCertificatesId'); |
| 487 |
| 488 var _response = _requester.request(_url, |
| 489 "PATCH", |
| 490 body: _body, |
| 491 queryParams: _queryParams, |
| 492 uploadOptions: _uploadOptions, |
| 493 uploadMedia: _uploadMedia, |
| 494 downloadOptions: _downloadOptions); |
| 495 return _response.then((data) => new AuthorizedCertificate.fromJson(data)); |
| 496 } |
| 497 |
| 498 } |
| 499 |
| 500 |
| 501 class AppsAuthorizedDomainsResourceApi { |
| 502 final commons.ApiRequester _requester; |
| 503 |
| 504 AppsAuthorizedDomainsResourceApi(commons.ApiRequester client) : |
| 505 _requester = client; |
| 506 |
| 507 /** |
| 508 * Lists all domains the user is authorized to administer. |
| 509 * |
| 510 * Request parameters: |
| 511 * |
| 512 * [appsId] - Part of `parent`. Name of the parent Application resource. |
| 513 * Example: apps/myapp. |
| 514 * |
| 515 * [pageSize] - Maximum results to return per page. |
| 516 * |
| 517 * [pageToken] - Continuation token for fetching the next page of results. |
| 518 * |
| 519 * Completes with a [ListAuthorizedDomainsResponse]. |
| 520 * |
| 521 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 522 * error. |
| 523 * |
| 524 * If the used [http.Client] completes with an error when making a REST call, |
| 525 * this method will complete with the same error. |
| 526 */ |
| 527 async.Future<ListAuthorizedDomainsResponse> list(core.String appsId, {core.int
pageSize, core.String pageToken}) { |
| 528 var _url = null; |
| 529 var _queryParams = new core.Map(); |
| 530 var _uploadMedia = null; |
| 531 var _uploadOptions = null; |
| 532 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 533 var _body = null; |
| 534 |
| 535 if (appsId == null) { |
| 536 throw new core.ArgumentError("Parameter appsId is required."); |
| 537 } |
| 538 if (pageSize != null) { |
| 539 _queryParams["pageSize"] = ["${pageSize}"]; |
| 540 } |
| 541 if (pageToken != null) { |
| 542 _queryParams["pageToken"] = [pageToken]; |
| 543 } |
| 544 |
| 545 _url = 'v1beta/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/authori
zedDomains'; |
| 546 |
| 547 var _response = _requester.request(_url, |
| 548 "GET", |
| 549 body: _body, |
| 550 queryParams: _queryParams, |
| 551 uploadOptions: _uploadOptions, |
| 552 uploadMedia: _uploadMedia, |
| 553 downloadOptions: _downloadOptions); |
| 554 return _response.then((data) => new ListAuthorizedDomainsResponse.fromJson(d
ata)); |
| 555 } |
| 556 |
| 557 } |
| 558 |
| 559 |
| 560 class AppsDomainMappingsResourceApi { |
| 561 final commons.ApiRequester _requester; |
| 562 |
| 563 AppsDomainMappingsResourceApi(commons.ApiRequester client) : |
| 564 _requester = client; |
| 565 |
| 566 /** |
| 567 * Maps a domain to an application. A user must be authorized to administer a |
| 568 * domain in order to map it to an application. For a list of available |
| 569 * authorized domains, see AuthorizedDomains.ListAuthorizedDomains. |
| 570 * |
| 571 * [request] - The metadata request object. |
| 572 * |
| 573 * Request parameters: |
| 574 * |
| 575 * [appsId] - Part of `parent`. Name of the parent Application resource. |
| 576 * Example: apps/myapp. |
| 577 * |
| 578 * Completes with a [Operation]. |
| 579 * |
| 580 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 581 * error. |
| 582 * |
| 583 * If the used [http.Client] completes with an error when making a REST call, |
| 584 * this method will complete with the same error. |
| 585 */ |
| 586 async.Future<Operation> create(DomainMapping request, core.String appsId) { |
| 587 var _url = null; |
| 588 var _queryParams = new core.Map(); |
| 589 var _uploadMedia = null; |
| 590 var _uploadOptions = null; |
| 591 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 592 var _body = null; |
| 593 |
| 594 if (request != null) { |
| 595 _body = convert.JSON.encode((request).toJson()); |
| 596 } |
| 597 if (appsId == null) { |
| 598 throw new core.ArgumentError("Parameter appsId is required."); |
| 599 } |
| 600 |
| 601 _url = 'v1beta/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/domainM
appings'; |
| 602 |
| 603 var _response = _requester.request(_url, |
| 604 "POST", |
| 605 body: _body, |
| 606 queryParams: _queryParams, |
| 607 uploadOptions: _uploadOptions, |
| 608 uploadMedia: _uploadMedia, |
| 609 downloadOptions: _downloadOptions); |
| 610 return _response.then((data) => new Operation.fromJson(data)); |
| 611 } |
| 612 |
| 613 /** |
| 614 * Deletes the specified domain mapping. A user must be authorized to |
| 615 * administer the associated domain in order to delete a DomainMapping |
| 616 * resource. |
| 617 * |
| 618 * Request parameters: |
| 619 * |
| 620 * [appsId] - Part of `name`. Name of the resource to delete. Example: |
| 621 * apps/myapp/domainMappings/example.com. |
| 622 * |
| 623 * [domainMappingsId] - Part of `name`. See documentation of `appsId`. |
| 624 * |
| 625 * Completes with a [Operation]. |
| 626 * |
| 627 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 628 * error. |
| 629 * |
| 630 * If the used [http.Client] completes with an error when making a REST call, |
| 631 * this method will complete with the same error. |
| 632 */ |
| 633 async.Future<Operation> delete(core.String appsId, core.String domainMappingsI
d) { |
| 634 var _url = null; |
| 635 var _queryParams = new core.Map(); |
| 636 var _uploadMedia = null; |
| 637 var _uploadOptions = null; |
| 638 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 639 var _body = null; |
| 640 |
| 641 if (appsId == null) { |
| 642 throw new core.ArgumentError("Parameter appsId is required."); |
| 643 } |
| 644 if (domainMappingsId == null) { |
| 645 throw new core.ArgumentError("Parameter domainMappingsId is required."); |
| 646 } |
| 647 |
| 648 _url = 'v1beta/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/domainM
appings/' + commons.Escaper.ecapeVariable('$domainMappingsId'); |
| 649 |
| 650 var _response = _requester.request(_url, |
| 651 "DELETE", |
| 652 body: _body, |
| 653 queryParams: _queryParams, |
| 654 uploadOptions: _uploadOptions, |
| 655 uploadMedia: _uploadMedia, |
| 656 downloadOptions: _downloadOptions); |
| 657 return _response.then((data) => new Operation.fromJson(data)); |
| 658 } |
| 659 |
| 660 /** |
| 661 * Gets the specified domain mapping. |
| 662 * |
| 663 * Request parameters: |
| 664 * |
| 665 * [appsId] - Part of `name`. Name of the resource requested. Example: |
| 666 * apps/myapp/domainMappings/example.com. |
| 667 * |
| 668 * [domainMappingsId] - Part of `name`. See documentation of `appsId`. |
| 669 * |
| 670 * Completes with a [DomainMapping]. |
| 671 * |
| 672 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 673 * error. |
| 674 * |
| 675 * If the used [http.Client] completes with an error when making a REST call, |
| 676 * this method will complete with the same error. |
| 677 */ |
| 678 async.Future<DomainMapping> get(core.String appsId, core.String domainMappings
Id) { |
| 679 var _url = null; |
| 680 var _queryParams = new core.Map(); |
| 681 var _uploadMedia = null; |
| 682 var _uploadOptions = null; |
| 683 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 684 var _body = null; |
| 685 |
| 686 if (appsId == null) { |
| 687 throw new core.ArgumentError("Parameter appsId is required."); |
| 688 } |
| 689 if (domainMappingsId == null) { |
| 690 throw new core.ArgumentError("Parameter domainMappingsId is required."); |
| 691 } |
| 692 |
| 693 _url = 'v1beta/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/domainM
appings/' + commons.Escaper.ecapeVariable('$domainMappingsId'); |
| 694 |
| 695 var _response = _requester.request(_url, |
| 696 "GET", |
| 697 body: _body, |
| 698 queryParams: _queryParams, |
| 699 uploadOptions: _uploadOptions, |
| 700 uploadMedia: _uploadMedia, |
| 701 downloadOptions: _downloadOptions); |
| 702 return _response.then((data) => new DomainMapping.fromJson(data)); |
| 703 } |
| 704 |
| 705 /** |
| 706 * Lists the domain mappings on an application. |
| 707 * |
| 708 * Request parameters: |
| 709 * |
| 710 * [appsId] - Part of `parent`. Name of the parent Application resource. |
| 711 * Example: apps/myapp. |
| 712 * |
| 713 * [pageSize] - Maximum results to return per page. |
| 714 * |
| 715 * [pageToken] - Continuation token for fetching the next page of results. |
| 716 * |
| 717 * Completes with a [ListDomainMappingsResponse]. |
| 718 * |
| 719 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 720 * error. |
| 721 * |
| 722 * If the used [http.Client] completes with an error when making a REST call, |
| 723 * this method will complete with the same error. |
| 724 */ |
| 725 async.Future<ListDomainMappingsResponse> list(core.String appsId, {core.int pa
geSize, core.String pageToken}) { |
| 726 var _url = null; |
| 727 var _queryParams = new core.Map(); |
| 728 var _uploadMedia = null; |
| 729 var _uploadOptions = null; |
| 730 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 731 var _body = null; |
| 732 |
| 733 if (appsId == null) { |
| 734 throw new core.ArgumentError("Parameter appsId is required."); |
| 735 } |
| 736 if (pageSize != null) { |
| 737 _queryParams["pageSize"] = ["${pageSize}"]; |
| 738 } |
| 739 if (pageToken != null) { |
| 740 _queryParams["pageToken"] = [pageToken]; |
| 741 } |
| 742 |
| 743 _url = 'v1beta/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/domainM
appings'; |
| 744 |
| 745 var _response = _requester.request(_url, |
| 746 "GET", |
| 747 body: _body, |
| 748 queryParams: _queryParams, |
| 749 uploadOptions: _uploadOptions, |
| 750 uploadMedia: _uploadMedia, |
| 751 downloadOptions: _downloadOptions); |
| 752 return _response.then((data) => new ListDomainMappingsResponse.fromJson(data
)); |
| 753 } |
| 754 |
| 755 /** |
| 756 * Updates the specified domain mapping. To map an SSL certificate to a domain |
| 757 * mapping, update certificate_id to point to an AuthorizedCertificate |
| 758 * resource. A user must be authorized to administer the associated domain in |
| 759 * order to update a DomainMapping resource. |
| 760 * |
| 761 * [request] - The metadata request object. |
| 762 * |
| 763 * Request parameters: |
| 764 * |
| 765 * [appsId] - Part of `name`. Name of the resource to update. Example: |
| 766 * apps/myapp/domainMappings/example.com. |
| 767 * |
| 768 * [domainMappingsId] - Part of `name`. See documentation of `appsId`. |
| 769 * |
| 770 * [updateMask] - Standard field mask for the set of fields to be updated. |
| 771 * |
| 772 * Completes with a [Operation]. |
| 773 * |
| 774 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 775 * error. |
| 776 * |
| 777 * If the used [http.Client] completes with an error when making a REST call, |
| 778 * this method will complete with the same error. |
| 779 */ |
| 780 async.Future<Operation> patch(DomainMapping request, core.String appsId, core.
String domainMappingsId, {core.String updateMask}) { |
| 781 var _url = null; |
| 782 var _queryParams = new core.Map(); |
| 783 var _uploadMedia = null; |
| 784 var _uploadOptions = null; |
| 785 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 786 var _body = null; |
| 787 |
| 788 if (request != null) { |
| 789 _body = convert.JSON.encode((request).toJson()); |
| 790 } |
| 791 if (appsId == null) { |
| 792 throw new core.ArgumentError("Parameter appsId is required."); |
| 793 } |
| 794 if (domainMappingsId == null) { |
| 795 throw new core.ArgumentError("Parameter domainMappingsId is required."); |
| 796 } |
| 797 if (updateMask != null) { |
| 798 _queryParams["updateMask"] = [updateMask]; |
| 799 } |
| 800 |
| 801 _url = 'v1beta/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/domainM
appings/' + commons.Escaper.ecapeVariable('$domainMappingsId'); |
| 802 |
| 803 var _response = _requester.request(_url, |
| 804 "PATCH", |
| 805 body: _body, |
| 806 queryParams: _queryParams, |
| 807 uploadOptions: _uploadOptions, |
| 808 uploadMedia: _uploadMedia, |
| 809 downloadOptions: _downloadOptions); |
| 810 return _response.then((data) => new Operation.fromJson(data)); |
| 811 } |
| 812 |
| 813 } |
| 814 |
| 815 |
238 class AppsLocationsResourceApi { | 816 class AppsLocationsResourceApi { |
239 final commons.ApiRequester _requester; | 817 final commons.ApiRequester _requester; |
240 | 818 |
241 AppsLocationsResourceApi(commons.ApiRequester client) : | 819 AppsLocationsResourceApi(commons.ApiRequester client) : |
242 _requester = client; | 820 _requester = client; |
243 | 821 |
244 /** | 822 /** |
245 * Get information about a location. | 823 * Get information about a location. |
246 * | 824 * |
247 * Request parameters: | 825 * Request parameters: |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
286 } | 864 } |
287 | 865 |
288 /** | 866 /** |
289 * Lists information about the supported locations for this service. | 867 * Lists information about the supported locations for this service. |
290 * | 868 * |
291 * Request parameters: | 869 * Request parameters: |
292 * | 870 * |
293 * [appsId] - Part of `name`. The resource that owns the locations collection, | 871 * [appsId] - Part of `name`. The resource that owns the locations collection, |
294 * if applicable. | 872 * if applicable. |
295 * | 873 * |
296 * [pageToken] - The standard list page token. | 874 * [filter] - The standard list filter. |
297 * | 875 * |
298 * [pageSize] - The standard list page size. | 876 * [pageSize] - The standard list page size. |
299 * | 877 * |
300 * [filter] - The standard list filter. | 878 * [pageToken] - The standard list page token. |
301 * | 879 * |
302 * Completes with a [ListLocationsResponse]. | 880 * Completes with a [ListLocationsResponse]. |
303 * | 881 * |
304 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 882 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
305 * error. | 883 * error. |
306 * | 884 * |
307 * If the used [http.Client] completes with an error when making a REST call, | 885 * If the used [http.Client] completes with an error when making a REST call, |
308 * this method will complete with the same error. | 886 * this method will complete with the same error. |
309 */ | 887 */ |
310 async.Future<ListLocationsResponse> list(core.String appsId, {core.String page
Token, core.int pageSize, core.String filter}) { | 888 async.Future<ListLocationsResponse> list(core.String appsId, {core.String filt
er, core.int pageSize, core.String pageToken}) { |
311 var _url = null; | 889 var _url = null; |
312 var _queryParams = new core.Map(); | 890 var _queryParams = new core.Map(); |
313 var _uploadMedia = null; | 891 var _uploadMedia = null; |
314 var _uploadOptions = null; | 892 var _uploadOptions = null; |
315 var _downloadOptions = commons.DownloadOptions.Metadata; | 893 var _downloadOptions = commons.DownloadOptions.Metadata; |
316 var _body = null; | 894 var _body = null; |
317 | 895 |
318 if (appsId == null) { | 896 if (appsId == null) { |
319 throw new core.ArgumentError("Parameter appsId is required."); | 897 throw new core.ArgumentError("Parameter appsId is required."); |
320 } | 898 } |
| 899 if (filter != null) { |
| 900 _queryParams["filter"] = [filter]; |
| 901 } |
| 902 if (pageSize != null) { |
| 903 _queryParams["pageSize"] = ["${pageSize}"]; |
| 904 } |
321 if (pageToken != null) { | 905 if (pageToken != null) { |
322 _queryParams["pageToken"] = [pageToken]; | 906 _queryParams["pageToken"] = [pageToken]; |
323 } | 907 } |
324 if (pageSize != null) { | |
325 _queryParams["pageSize"] = ["${pageSize}"]; | |
326 } | |
327 if (filter != null) { | |
328 _queryParams["filter"] = [filter]; | |
329 } | |
330 | 908 |
331 _url = 'v1beta/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/locatio
ns'; | 909 _url = 'v1beta/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/locatio
ns'; |
332 | 910 |
333 var _response = _requester.request(_url, | 911 var _response = _requester.request(_url, |
334 "GET", | 912 "GET", |
335 body: _body, | 913 body: _body, |
336 queryParams: _queryParams, | 914 queryParams: _queryParams, |
337 uploadOptions: _uploadOptions, | 915 uploadOptions: _uploadOptions, |
338 uploadMedia: _uploadMedia, | 916 uploadMedia: _uploadMedia, |
339 downloadOptions: _downloadOptions); | 917 downloadOptions: _downloadOptions); |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
400 * server doesn't support this method, it returns UNIMPLEMENTED.NOTE: the name | 978 * server doesn't support this method, it returns UNIMPLEMENTED.NOTE: the name |
401 * binding below allows API services to override the binding to use different | 979 * binding below allows API services to override the binding to use different |
402 * resource name schemes, such as users / * /operations. | 980 * resource name schemes, such as users / * /operations. |
403 * | 981 * |
404 * Request parameters: | 982 * Request parameters: |
405 * | 983 * |
406 * [appsId] - Part of `name`. The name of the operation collection. | 984 * [appsId] - Part of `name`. The name of the operation collection. |
407 * | 985 * |
408 * [filter] - The standard list filter. | 986 * [filter] - The standard list filter. |
409 * | 987 * |
| 988 * [pageSize] - The standard list page size. |
| 989 * |
410 * [pageToken] - The standard list page token. | 990 * [pageToken] - The standard list page token. |
411 * | 991 * |
412 * [pageSize] - The standard list page size. | |
413 * | |
414 * Completes with a [ListOperationsResponse]. | 992 * Completes with a [ListOperationsResponse]. |
415 * | 993 * |
416 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 994 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
417 * error. | 995 * error. |
418 * | 996 * |
419 * If the used [http.Client] completes with an error when making a REST call, | 997 * If the used [http.Client] completes with an error when making a REST call, |
420 * this method will complete with the same error. | 998 * this method will complete with the same error. |
421 */ | 999 */ |
422 async.Future<ListOperationsResponse> list(core.String appsId, {core.String fil
ter, core.String pageToken, core.int pageSize}) { | 1000 async.Future<ListOperationsResponse> list(core.String appsId, {core.String fil
ter, core.int pageSize, core.String pageToken}) { |
423 var _url = null; | 1001 var _url = null; |
424 var _queryParams = new core.Map(); | 1002 var _queryParams = new core.Map(); |
425 var _uploadMedia = null; | 1003 var _uploadMedia = null; |
426 var _uploadOptions = null; | 1004 var _uploadOptions = null; |
427 var _downloadOptions = commons.DownloadOptions.Metadata; | 1005 var _downloadOptions = commons.DownloadOptions.Metadata; |
428 var _body = null; | 1006 var _body = null; |
429 | 1007 |
430 if (appsId == null) { | 1008 if (appsId == null) { |
431 throw new core.ArgumentError("Parameter appsId is required."); | 1009 throw new core.ArgumentError("Parameter appsId is required."); |
432 } | 1010 } |
433 if (filter != null) { | 1011 if (filter != null) { |
434 _queryParams["filter"] = [filter]; | 1012 _queryParams["filter"] = [filter]; |
435 } | 1013 } |
| 1014 if (pageSize != null) { |
| 1015 _queryParams["pageSize"] = ["${pageSize}"]; |
| 1016 } |
436 if (pageToken != null) { | 1017 if (pageToken != null) { |
437 _queryParams["pageToken"] = [pageToken]; | 1018 _queryParams["pageToken"] = [pageToken]; |
438 } | 1019 } |
439 if (pageSize != null) { | |
440 _queryParams["pageSize"] = ["${pageSize}"]; | |
441 } | |
442 | 1020 |
443 _url = 'v1beta/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/operati
ons'; | 1021 _url = 'v1beta/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/operati
ons'; |
444 | 1022 |
445 var _response = _requester.request(_url, | 1023 var _response = _requester.request(_url, |
446 "GET", | 1024 "GET", |
447 body: _body, | 1025 body: _body, |
448 queryParams: _queryParams, | 1026 queryParams: _queryParams, |
449 uploadOptions: _uploadOptions, | 1027 uploadOptions: _uploadOptions, |
450 uploadMedia: _uploadMedia, | 1028 uploadMedia: _uploadMedia, |
451 downloadOptions: _downloadOptions); | 1029 downloadOptions: _downloadOptions); |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
554 } | 1132 } |
555 | 1133 |
556 /** | 1134 /** |
557 * Lists all the services in the application. | 1135 * Lists all the services in the application. |
558 * | 1136 * |
559 * Request parameters: | 1137 * Request parameters: |
560 * | 1138 * |
561 * [appsId] - Part of `parent`. Name of the parent Application resource. | 1139 * [appsId] - Part of `parent`. Name of the parent Application resource. |
562 * Example: apps/myapp. | 1140 * Example: apps/myapp. |
563 * | 1141 * |
| 1142 * [pageSize] - Maximum results to return per page. |
| 1143 * |
564 * [pageToken] - Continuation token for fetching the next page of results. | 1144 * [pageToken] - Continuation token for fetching the next page of results. |
565 * | 1145 * |
566 * [pageSize] - Maximum results to return per page. | |
567 * | |
568 * Completes with a [ListServicesResponse]. | 1146 * Completes with a [ListServicesResponse]. |
569 * | 1147 * |
570 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1148 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
571 * error. | 1149 * error. |
572 * | 1150 * |
573 * If the used [http.Client] completes with an error when making a REST call, | 1151 * If the used [http.Client] completes with an error when making a REST call, |
574 * this method will complete with the same error. | 1152 * this method will complete with the same error. |
575 */ | 1153 */ |
576 async.Future<ListServicesResponse> list(core.String appsId, {core.String pageT
oken, core.int pageSize}) { | 1154 async.Future<ListServicesResponse> list(core.String appsId, {core.int pageSize
, core.String pageToken}) { |
577 var _url = null; | 1155 var _url = null; |
578 var _queryParams = new core.Map(); | 1156 var _queryParams = new core.Map(); |
579 var _uploadMedia = null; | 1157 var _uploadMedia = null; |
580 var _uploadOptions = null; | 1158 var _uploadOptions = null; |
581 var _downloadOptions = commons.DownloadOptions.Metadata; | 1159 var _downloadOptions = commons.DownloadOptions.Metadata; |
582 var _body = null; | 1160 var _body = null; |
583 | 1161 |
584 if (appsId == null) { | 1162 if (appsId == null) { |
585 throw new core.ArgumentError("Parameter appsId is required."); | 1163 throw new core.ArgumentError("Parameter appsId is required."); |
586 } | 1164 } |
| 1165 if (pageSize != null) { |
| 1166 _queryParams["pageSize"] = ["${pageSize}"]; |
| 1167 } |
587 if (pageToken != null) { | 1168 if (pageToken != null) { |
588 _queryParams["pageToken"] = [pageToken]; | 1169 _queryParams["pageToken"] = [pageToken]; |
589 } | 1170 } |
590 if (pageSize != null) { | |
591 _queryParams["pageSize"] = ["${pageSize}"]; | |
592 } | |
593 | 1171 |
594 _url = 'v1beta/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/service
s'; | 1172 _url = 'v1beta/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/service
s'; |
595 | 1173 |
596 var _response = _requester.request(_url, | 1174 var _response = _requester.request(_url, |
597 "GET", | 1175 "GET", |
598 body: _body, | 1176 body: _body, |
599 queryParams: _queryParams, | 1177 queryParams: _queryParams, |
600 uploadOptions: _uploadOptions, | 1178 uploadOptions: _uploadOptions, |
601 uploadMedia: _uploadMedia, | 1179 uploadMedia: _uploadMedia, |
602 downloadOptions: _downloadOptions); | 1180 downloadOptions: _downloadOptions); |
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
848 /** | 1426 /** |
849 * Lists the versions of a service. | 1427 * Lists the versions of a service. |
850 * | 1428 * |
851 * Request parameters: | 1429 * Request parameters: |
852 * | 1430 * |
853 * [appsId] - Part of `parent`. Name of the parent Service resource. Example: | 1431 * [appsId] - Part of `parent`. Name of the parent Service resource. Example: |
854 * apps/myapp/services/default. | 1432 * apps/myapp/services/default. |
855 * | 1433 * |
856 * [servicesId] - Part of `parent`. See documentation of `appsId`. | 1434 * [servicesId] - Part of `parent`. See documentation of `appsId`. |
857 * | 1435 * |
858 * [pageToken] - Continuation token for fetching the next page of results. | |
859 * | |
860 * [pageSize] - Maximum results to return per page. | |
861 * | |
862 * [view] - Controls the set of fields returned in the List response. | 1436 * [view] - Controls the set of fields returned in the List response. |
863 * Possible string values are: | 1437 * Possible string values are: |
864 * - "BASIC" : A BASIC. | 1438 * - "BASIC" : A BASIC. |
865 * - "FULL" : A FULL. | 1439 * - "FULL" : A FULL. |
866 * | 1440 * |
| 1441 * [pageSize] - Maximum results to return per page. |
| 1442 * |
| 1443 * [pageToken] - Continuation token for fetching the next page of results. |
| 1444 * |
867 * Completes with a [ListVersionsResponse]. | 1445 * Completes with a [ListVersionsResponse]. |
868 * | 1446 * |
869 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1447 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
870 * error. | 1448 * error. |
871 * | 1449 * |
872 * If the used [http.Client] completes with an error when making a REST call, | 1450 * If the used [http.Client] completes with an error when making a REST call, |
873 * this method will complete with the same error. | 1451 * this method will complete with the same error. |
874 */ | 1452 */ |
875 async.Future<ListVersionsResponse> list(core.String appsId, core.String servic
esId, {core.String pageToken, core.int pageSize, core.String view}) { | 1453 async.Future<ListVersionsResponse> list(core.String appsId, core.String servic
esId, {core.String view, core.int pageSize, core.String pageToken}) { |
876 var _url = null; | 1454 var _url = null; |
877 var _queryParams = new core.Map(); | 1455 var _queryParams = new core.Map(); |
878 var _uploadMedia = null; | 1456 var _uploadMedia = null; |
879 var _uploadOptions = null; | 1457 var _uploadOptions = null; |
880 var _downloadOptions = commons.DownloadOptions.Metadata; | 1458 var _downloadOptions = commons.DownloadOptions.Metadata; |
881 var _body = null; | 1459 var _body = null; |
882 | 1460 |
883 if (appsId == null) { | 1461 if (appsId == null) { |
884 throw new core.ArgumentError("Parameter appsId is required."); | 1462 throw new core.ArgumentError("Parameter appsId is required."); |
885 } | 1463 } |
886 if (servicesId == null) { | 1464 if (servicesId == null) { |
887 throw new core.ArgumentError("Parameter servicesId is required."); | 1465 throw new core.ArgumentError("Parameter servicesId is required."); |
888 } | 1466 } |
| 1467 if (view != null) { |
| 1468 _queryParams["view"] = [view]; |
| 1469 } |
| 1470 if (pageSize != null) { |
| 1471 _queryParams["pageSize"] = ["${pageSize}"]; |
| 1472 } |
889 if (pageToken != null) { | 1473 if (pageToken != null) { |
890 _queryParams["pageToken"] = [pageToken]; | 1474 _queryParams["pageToken"] = [pageToken]; |
891 } | 1475 } |
892 if (pageSize != null) { | |
893 _queryParams["pageSize"] = ["${pageSize}"]; | |
894 } | |
895 if (view != null) { | |
896 _queryParams["view"] = [view]; | |
897 } | |
898 | 1476 |
899 _url = 'v1beta/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/service
s/' + commons.Escaper.ecapeVariable('$servicesId') + '/versions'; | 1477 _url = 'v1beta/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/service
s/' + commons.Escaper.ecapeVariable('$servicesId') + '/versions'; |
900 | 1478 |
901 var _response = _requester.request(_url, | 1479 var _response = _requester.request(_url, |
902 "GET", | 1480 "GET", |
903 body: _body, | 1481 body: _body, |
904 queryParams: _queryParams, | 1482 queryParams: _queryParams, |
905 uploadOptions: _uploadOptions, | 1483 uploadOptions: _uploadOptions, |
906 uploadMedia: _uploadMedia, | 1484 uploadMedia: _uploadMedia, |
907 downloadOptions: _downloadOptions); | 1485 downloadOptions: _downloadOptions); |
908 return _response.then((data) => new ListVersionsResponse.fromJson(data)); | 1486 return _response.then((data) => new ListVersionsResponse.fromJson(data)); |
909 } | 1487 } |
910 | 1488 |
911 /** | 1489 /** |
912 * Updates the specified Version resource. You can specify the following | 1490 * Updates the specified Version resource. You can specify the following |
913 * fields depending on the App Engine environment and type of scaling that the | 1491 * fields depending on the App Engine environment and type of scaling that the |
914 * version resource uses: | 1492 * version resource uses: serving_status |
915 * serving_status | |
916 * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/ap
ps.services.versions#Version.FIELDS.serving_status): | 1493 * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/ap
ps.services.versions#Version.FIELDS.serving_status): |
917 * For Version resources that use basic scaling, manual scaling, or run in | 1494 * For Version resources that use basic scaling, manual scaling, or run in the |
918 * the App Engine flexible environment. | 1495 * App Engine flexible environment. instance_class |
919 * instance_class | |
920 * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/ap
ps.services.versions#Version.FIELDS.instance_class): | 1496 * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/ap
ps.services.versions#Version.FIELDS.instance_class): |
921 * For Version resources that run in the App Engine standard environment. | 1497 * For Version resources that run in the App Engine standard environment. |
922 * automatic_scaling.min_idle_instances | 1498 * automatic_scaling.min_idle_instances |
923 * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/ap
ps.services.versions#Version.FIELDS.automatic_scaling): | 1499 * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/ap
ps.services.versions#Version.FIELDS.automatic_scaling): |
924 * For Version resources that use automatic scaling and run in the App Engine | 1500 * For Version resources that use automatic scaling and run in the App Engine |
925 * standard environment. | 1501 * standard environment. automatic_scaling.max_idle_instances |
926 * automatic_scaling.max_idle_instances | |
927 * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/ap
ps.services.versions#Version.FIELDS.automatic_scaling): | 1502 * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/ap
ps.services.versions#Version.FIELDS.automatic_scaling): |
928 * For Version resources that use automatic scaling and run in the App Engine | 1503 * For Version resources that use automatic scaling and run in the App Engine |
929 * standard environment. | 1504 * standard environment. |
930 * | 1505 * |
931 * [request] - The metadata request object. | 1506 * [request] - The metadata request object. |
932 * | 1507 * |
933 * Request parameters: | 1508 * Request parameters: |
934 * | 1509 * |
935 * [appsId] - Part of `name`. Name of the resource to update. Example: | 1510 * [appsId] - Part of `name`. Name of the resource to update. Example: |
936 * apps/myapp/services/default/versions/1. | 1511 * apps/myapp/services/default/versions/1. |
937 * | 1512 * |
938 * [servicesId] - Part of `name`. See documentation of `appsId`. | 1513 * [servicesId] - Part of `name`. See documentation of `appsId`. |
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1163 "GET", | 1738 "GET", |
1164 body: _body, | 1739 body: _body, |
1165 queryParams: _queryParams, | 1740 queryParams: _queryParams, |
1166 uploadOptions: _uploadOptions, | 1741 uploadOptions: _uploadOptions, |
1167 uploadMedia: _uploadMedia, | 1742 uploadMedia: _uploadMedia, |
1168 downloadOptions: _downloadOptions); | 1743 downloadOptions: _downloadOptions); |
1169 return _response.then((data) => new Instance.fromJson(data)); | 1744 return _response.then((data) => new Instance.fromJson(data)); |
1170 } | 1745 } |
1171 | 1746 |
1172 /** | 1747 /** |
1173 * Lists the instances of a version. | 1748 * Lists the instances of a version.Tip: To aggregate details about instances |
| 1749 * over time, see the Stackdriver Monitoring API |
| 1750 * (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries
/list). |
1174 * | 1751 * |
1175 * Request parameters: | 1752 * Request parameters: |
1176 * | 1753 * |
1177 * [appsId] - Part of `parent`. Name of the parent Version resource. Example: | 1754 * [appsId] - Part of `parent`. Name of the parent Version resource. Example: |
1178 * apps/myapp/services/default/versions/v1. | 1755 * apps/myapp/services/default/versions/v1. |
1179 * | 1756 * |
1180 * [servicesId] - Part of `parent`. See documentation of `appsId`. | 1757 * [servicesId] - Part of `parent`. See documentation of `appsId`. |
1181 * | 1758 * |
1182 * [versionsId] - Part of `parent`. See documentation of `appsId`. | 1759 * [versionsId] - Part of `parent`. See documentation of `appsId`. |
1183 * | 1760 * |
| 1761 * [pageSize] - Maximum results to return per page. |
| 1762 * |
1184 * [pageToken] - Continuation token for fetching the next page of results. | 1763 * [pageToken] - Continuation token for fetching the next page of results. |
1185 * | 1764 * |
1186 * [pageSize] - Maximum results to return per page. | |
1187 * | |
1188 * Completes with a [ListInstancesResponse]. | 1765 * Completes with a [ListInstancesResponse]. |
1189 * | 1766 * |
1190 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1767 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
1191 * error. | 1768 * error. |
1192 * | 1769 * |
1193 * If the used [http.Client] completes with an error when making a REST call, | 1770 * If the used [http.Client] completes with an error when making a REST call, |
1194 * this method will complete with the same error. | 1771 * this method will complete with the same error. |
1195 */ | 1772 */ |
1196 async.Future<ListInstancesResponse> list(core.String appsId, core.String servi
cesId, core.String versionsId, {core.String pageToken, core.int pageSize}) { | 1773 async.Future<ListInstancesResponse> list(core.String appsId, core.String servi
cesId, core.String versionsId, {core.int pageSize, core.String pageToken}) { |
1197 var _url = null; | 1774 var _url = null; |
1198 var _queryParams = new core.Map(); | 1775 var _queryParams = new core.Map(); |
1199 var _uploadMedia = null; | 1776 var _uploadMedia = null; |
1200 var _uploadOptions = null; | 1777 var _uploadOptions = null; |
1201 var _downloadOptions = commons.DownloadOptions.Metadata; | 1778 var _downloadOptions = commons.DownloadOptions.Metadata; |
1202 var _body = null; | 1779 var _body = null; |
1203 | 1780 |
1204 if (appsId == null) { | 1781 if (appsId == null) { |
1205 throw new core.ArgumentError("Parameter appsId is required."); | 1782 throw new core.ArgumentError("Parameter appsId is required."); |
1206 } | 1783 } |
1207 if (servicesId == null) { | 1784 if (servicesId == null) { |
1208 throw new core.ArgumentError("Parameter servicesId is required."); | 1785 throw new core.ArgumentError("Parameter servicesId is required."); |
1209 } | 1786 } |
1210 if (versionsId == null) { | 1787 if (versionsId == null) { |
1211 throw new core.ArgumentError("Parameter versionsId is required."); | 1788 throw new core.ArgumentError("Parameter versionsId is required."); |
1212 } | 1789 } |
| 1790 if (pageSize != null) { |
| 1791 _queryParams["pageSize"] = ["${pageSize}"]; |
| 1792 } |
1213 if (pageToken != null) { | 1793 if (pageToken != null) { |
1214 _queryParams["pageToken"] = [pageToken]; | 1794 _queryParams["pageToken"] = [pageToken]; |
1215 } | 1795 } |
1216 if (pageSize != null) { | |
1217 _queryParams["pageSize"] = ["${pageSize}"]; | |
1218 } | |
1219 | 1796 |
1220 _url = 'v1beta/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/service
s/' + commons.Escaper.ecapeVariable('$servicesId') + '/versions/' + commons.Esca
per.ecapeVariable('$versionsId') + '/instances'; | 1797 _url = 'v1beta/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/service
s/' + commons.Escaper.ecapeVariable('$servicesId') + '/versions/' + commons.Esca
per.ecapeVariable('$versionsId') + '/instances'; |
1221 | 1798 |
1222 var _response = _requester.request(_url, | 1799 var _response = _requester.request(_url, |
1223 "GET", | 1800 "GET", |
1224 body: _body, | 1801 body: _body, |
1225 queryParams: _queryParams, | 1802 queryParams: _queryParams, |
1226 uploadOptions: _uploadOptions, | 1803 uploadOptions: _uploadOptions, |
1227 uploadMedia: _uploadMedia, | 1804 uploadMedia: _uploadMedia, |
1228 downloadOptions: _downloadOptions); | 1805 downloadOptions: _downloadOptions); |
1229 return _response.then((data) => new ListInstancesResponse.fromJson(data)); | 1806 return _response.then((data) => new ListInstancesResponse.fromJson(data)); |
1230 } | 1807 } |
1231 | 1808 |
1232 } | 1809 } |
1233 | 1810 |
1234 | 1811 |
1235 | 1812 |
1236 /** | 1813 /** |
1237 * Google Cloud Endpoints | 1814 * Google Cloud Endpoints |
1238 * (https://cloud.google.com/appengine/docs/python/endpoints/) configuration for | 1815 * (https://cloud.google.com/appengine/docs/python/endpoints/) configuration for |
1239 * API handlers. | 1816 * API handlers. |
1240 */ | 1817 */ |
1241 class ApiConfigHandler { | 1818 class ApiConfigHandler { |
1242 /** | 1819 /** |
1243 * Action to take when users access resources that require authentication. | 1820 * Action to take when users access resources that require authentication. |
1244 * Defaults to redirect. | 1821 * Defaults to redirect. |
1245 * Possible string values are: | 1822 * Possible string values are: |
1246 * - "AUTH_FAIL_ACTION_UNSPECIFIED" : Not specified. AUTH_FAIL_ACTION_REDIRECT | 1823 * - "AUTH_FAIL_ACTION_UNSPECIFIED" : A AUTH_FAIL_ACTION_UNSPECIFIED. |
1247 * is assumed. | 1824 * - "AUTH_FAIL_ACTION_REDIRECT" : A AUTH_FAIL_ACTION_REDIRECT. |
1248 * - "AUTH_FAIL_ACTION_REDIRECT" : Redirects user to "accounts.google.com". | 1825 * - "AUTH_FAIL_ACTION_UNAUTHORIZED" : A AUTH_FAIL_ACTION_UNAUTHORIZED. |
1249 * The user is redirected back to the application URL after signing in or | |
1250 * creating an account. | |
1251 * - "AUTH_FAIL_ACTION_UNAUTHORIZED" : Rejects request with a 401 HTTP status | |
1252 * code and an error message. | |
1253 */ | 1826 */ |
1254 core.String authFailAction; | 1827 core.String authFailAction; |
1255 /** | 1828 /** |
1256 * Level of login required to access this resource. Defaults to optional. | 1829 * Level of login required to access this resource. Defaults to optional. |
1257 * Possible string values are: | 1830 * Possible string values are: |
1258 * - "LOGIN_UNSPECIFIED" : Not specified. LOGIN_OPTIONAL is assumed. | 1831 * - "LOGIN_UNSPECIFIED" : A LOGIN_UNSPECIFIED. |
1259 * - "LOGIN_OPTIONAL" : Does not require that the user is signed in. | 1832 * - "LOGIN_OPTIONAL" : A LOGIN_OPTIONAL. |
1260 * - "LOGIN_ADMIN" : If the user is not signed in, the auth_fail_action is | 1833 * - "LOGIN_ADMIN" : A LOGIN_ADMIN. |
1261 * taken. In addition, if the user is not an administrator for the | 1834 * - "LOGIN_REQUIRED" : A LOGIN_REQUIRED. |
1262 * application, they are given an error message regardless of | |
1263 * auth_fail_action. If the user is an administrator, the handler proceeds. | |
1264 * - "LOGIN_REQUIRED" : If the user has signed in, the handler proceeds | |
1265 * normally. Otherwise, the auth_fail_action is taken. | |
1266 */ | 1835 */ |
1267 core.String login; | 1836 core.String login; |
1268 /** Path to the script from the application root directory. */ | 1837 /** Path to the script from the application root directory. */ |
1269 core.String script; | 1838 core.String script; |
1270 /** | 1839 /** |
1271 * Security (HTTPS) enforcement for this URL. | 1840 * Security (HTTPS) enforcement for this URL. |
1272 * Possible string values are: | 1841 * Possible string values are: |
1273 * - "SECURE_UNSPECIFIED" : Not specified. | 1842 * - "SECURE_UNSPECIFIED" : A SECURE_UNSPECIFIED. |
1274 * - "SECURE_DEFAULT" : Both HTTP and HTTPS requests with URLs that match the | 1843 * - "SECURE_DEFAULT" : A SECURE_DEFAULT. |
1275 * handler succeed without redirects. The application can examine the request | 1844 * - "SECURE_NEVER" : A SECURE_NEVER. |
1276 * to determine which protocol was used, and respond accordingly. | 1845 * - "SECURE_OPTIONAL" : A SECURE_OPTIONAL. |
1277 * - "SECURE_NEVER" : Requests for a URL that match this handler that use | 1846 * - "SECURE_ALWAYS" : A SECURE_ALWAYS. |
1278 * HTTPS are automatically redirected to the HTTP equivalent URL. | |
1279 * - "SECURE_OPTIONAL" : Both HTTP and HTTPS requests with URLs that match the | |
1280 * handler succeed without redirects. The application can examine the request | |
1281 * to determine which protocol was used and respond accordingly. | |
1282 * - "SECURE_ALWAYS" : Requests for a URL that match this handler that do not | |
1283 * use HTTPS are automatically redirected to the HTTPS URL with the same path. | |
1284 * Query parameters are reserved for the redirect. | |
1285 */ | 1847 */ |
1286 core.String securityLevel; | 1848 core.String securityLevel; |
1287 /** URL to serve the endpoint at. */ | 1849 /** URL to serve the endpoint at. */ |
1288 core.String url; | 1850 core.String url; |
1289 | 1851 |
1290 ApiConfigHandler(); | 1852 ApiConfigHandler(); |
1291 | 1853 |
1292 ApiConfigHandler.fromJson(core.Map _json) { | 1854 ApiConfigHandler.fromJson(core.Map _json) { |
1293 if (_json.containsKey("authFailAction")) { | 1855 if (_json.containsKey("authFailAction")) { |
1294 authFailAction = _json["authFailAction"]; | 1856 authFailAction = _json["authFailAction"]; |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1373 core.String defaultBucket; | 1935 core.String defaultBucket; |
1374 /** Cookie expiration policy for this application. */ | 1936 /** Cookie expiration policy for this application. */ |
1375 core.String defaultCookieExpiration; | 1937 core.String defaultCookieExpiration; |
1376 /** | 1938 /** |
1377 * Hostname used to reach this application, as resolved by App | 1939 * Hostname used to reach this application, as resolved by App |
1378 * Engine.@OutputOnly | 1940 * Engine.@OutputOnly |
1379 */ | 1941 */ |
1380 core.String defaultHostname; | 1942 core.String defaultHostname; |
1381 /** | 1943 /** |
1382 * HTTP path dispatch rules for requests to the application that do not | 1944 * HTTP path dispatch rules for requests to the application that do not |
1383 * explicitly target a service or version. Rules are | 1945 * explicitly target a service or version. Rules are order-dependent. Up to 20 |
1384 * order-dependent.@OutputOnly | 1946 * dispatch rules can be supported.@OutputOnly |
1385 */ | 1947 */ |
1386 core.List<UrlDispatchRule> dispatchRules; | 1948 core.List<UrlDispatchRule> dispatchRules; |
| 1949 /** |
| 1950 * The Google Container Registry domain used for storing managed build docker |
| 1951 * images for this application. |
| 1952 */ |
| 1953 core.String gcrDomain; |
1387 IdentityAwareProxy iap; | 1954 IdentityAwareProxy iap; |
1388 /** | 1955 /** |
1389 * Identifier of the Application resource. This identifier is equivalent to | 1956 * Identifier of the Application resource. This identifier is equivalent to |
1390 * the project ID of the Google Cloud Platform project where you want to | 1957 * the project ID of the Google Cloud Platform project where you want to |
1391 * deploy your application. Example: myapp. | 1958 * deploy your application. Example: myapp. |
1392 */ | 1959 */ |
1393 core.String id; | 1960 core.String id; |
1394 /** | 1961 /** |
1395 * Location from which this application will be run. Application instances | 1962 * Location from which this application will be run. Application instances |
1396 * will run out of data centers in the chosen location, which is also where | 1963 * will run out of data centers in the chosen location, which is also where |
1397 * all of the application's end user content is stored.Defaults to | 1964 * all of the application's end user content is stored.Defaults to |
1398 * us-central.Options are:us-central - Central USeurope-west - Western | 1965 * us-central.Options are:us-central - Central USeurope-west - Western |
1399 * Europeus-east1 - Eastern US | 1966 * Europeus-east1 - Eastern US |
1400 */ | 1967 */ |
1401 core.String locationId; | 1968 core.String locationId; |
1402 /** | 1969 /** |
1403 * Full path to the Application resource in the API. Example: | 1970 * Full path to the Application resource in the API. Example: |
1404 * apps/myapp.@OutputOnly | 1971 * apps/myapp.@OutputOnly |
1405 */ | 1972 */ |
1406 core.String name; | 1973 core.String name; |
| 1974 /** |
| 1975 * Serving status of this application. |
| 1976 * Possible string values are: |
| 1977 * - "UNSPECIFIED" : A UNSPECIFIED. |
| 1978 * - "SERVING" : A SERVING. |
| 1979 * - "USER_DISABLED" : A USER_DISABLED. |
| 1980 * - "SYSTEM_DISABLED" : A SYSTEM_DISABLED. |
| 1981 */ |
| 1982 core.String servingStatus; |
1407 | 1983 |
1408 Application(); | 1984 Application(); |
1409 | 1985 |
1410 Application.fromJson(core.Map _json) { | 1986 Application.fromJson(core.Map _json) { |
1411 if (_json.containsKey("authDomain")) { | 1987 if (_json.containsKey("authDomain")) { |
1412 authDomain = _json["authDomain"]; | 1988 authDomain = _json["authDomain"]; |
1413 } | 1989 } |
1414 if (_json.containsKey("codeBucket")) { | 1990 if (_json.containsKey("codeBucket")) { |
1415 codeBucket = _json["codeBucket"]; | 1991 codeBucket = _json["codeBucket"]; |
1416 } | 1992 } |
1417 if (_json.containsKey("defaultBucket")) { | 1993 if (_json.containsKey("defaultBucket")) { |
1418 defaultBucket = _json["defaultBucket"]; | 1994 defaultBucket = _json["defaultBucket"]; |
1419 } | 1995 } |
1420 if (_json.containsKey("defaultCookieExpiration")) { | 1996 if (_json.containsKey("defaultCookieExpiration")) { |
1421 defaultCookieExpiration = _json["defaultCookieExpiration"]; | 1997 defaultCookieExpiration = _json["defaultCookieExpiration"]; |
1422 } | 1998 } |
1423 if (_json.containsKey("defaultHostname")) { | 1999 if (_json.containsKey("defaultHostname")) { |
1424 defaultHostname = _json["defaultHostname"]; | 2000 defaultHostname = _json["defaultHostname"]; |
1425 } | 2001 } |
1426 if (_json.containsKey("dispatchRules")) { | 2002 if (_json.containsKey("dispatchRules")) { |
1427 dispatchRules = _json["dispatchRules"].map((value) => new UrlDispatchRule.
fromJson(value)).toList(); | 2003 dispatchRules = _json["dispatchRules"].map((value) => new UrlDispatchRule.
fromJson(value)).toList(); |
1428 } | 2004 } |
| 2005 if (_json.containsKey("gcrDomain")) { |
| 2006 gcrDomain = _json["gcrDomain"]; |
| 2007 } |
1429 if (_json.containsKey("iap")) { | 2008 if (_json.containsKey("iap")) { |
1430 iap = new IdentityAwareProxy.fromJson(_json["iap"]); | 2009 iap = new IdentityAwareProxy.fromJson(_json["iap"]); |
1431 } | 2010 } |
1432 if (_json.containsKey("id")) { | 2011 if (_json.containsKey("id")) { |
1433 id = _json["id"]; | 2012 id = _json["id"]; |
1434 } | 2013 } |
1435 if (_json.containsKey("locationId")) { | 2014 if (_json.containsKey("locationId")) { |
1436 locationId = _json["locationId"]; | 2015 locationId = _json["locationId"]; |
1437 } | 2016 } |
1438 if (_json.containsKey("name")) { | 2017 if (_json.containsKey("name")) { |
1439 name = _json["name"]; | 2018 name = _json["name"]; |
1440 } | 2019 } |
| 2020 if (_json.containsKey("servingStatus")) { |
| 2021 servingStatus = _json["servingStatus"]; |
| 2022 } |
1441 } | 2023 } |
1442 | 2024 |
1443 core.Map toJson() { | 2025 core.Map toJson() { |
1444 var _json = new core.Map(); | 2026 var _json = new core.Map(); |
1445 if (authDomain != null) { | 2027 if (authDomain != null) { |
1446 _json["authDomain"] = authDomain; | 2028 _json["authDomain"] = authDomain; |
1447 } | 2029 } |
1448 if (codeBucket != null) { | 2030 if (codeBucket != null) { |
1449 _json["codeBucket"] = codeBucket; | 2031 _json["codeBucket"] = codeBucket; |
1450 } | 2032 } |
1451 if (defaultBucket != null) { | 2033 if (defaultBucket != null) { |
1452 _json["defaultBucket"] = defaultBucket; | 2034 _json["defaultBucket"] = defaultBucket; |
1453 } | 2035 } |
1454 if (defaultCookieExpiration != null) { | 2036 if (defaultCookieExpiration != null) { |
1455 _json["defaultCookieExpiration"] = defaultCookieExpiration; | 2037 _json["defaultCookieExpiration"] = defaultCookieExpiration; |
1456 } | 2038 } |
1457 if (defaultHostname != null) { | 2039 if (defaultHostname != null) { |
1458 _json["defaultHostname"] = defaultHostname; | 2040 _json["defaultHostname"] = defaultHostname; |
1459 } | 2041 } |
1460 if (dispatchRules != null) { | 2042 if (dispatchRules != null) { |
1461 _json["dispatchRules"] = dispatchRules.map((value) => (value).toJson()).to
List(); | 2043 _json["dispatchRules"] = dispatchRules.map((value) => (value).toJson()).to
List(); |
1462 } | 2044 } |
| 2045 if (gcrDomain != null) { |
| 2046 _json["gcrDomain"] = gcrDomain; |
| 2047 } |
1463 if (iap != null) { | 2048 if (iap != null) { |
1464 _json["iap"] = (iap).toJson(); | 2049 _json["iap"] = (iap).toJson(); |
1465 } | 2050 } |
1466 if (id != null) { | 2051 if (id != null) { |
1467 _json["id"] = id; | 2052 _json["id"] = id; |
1468 } | 2053 } |
1469 if (locationId != null) { | 2054 if (locationId != null) { |
1470 _json["locationId"] = locationId; | 2055 _json["locationId"] = locationId; |
1471 } | 2056 } |
1472 if (name != null) { | 2057 if (name != null) { |
1473 _json["name"] = name; | 2058 _json["name"] = name; |
1474 } | 2059 } |
| 2060 if (servingStatus != null) { |
| 2061 _json["servingStatus"] = servingStatus; |
| 2062 } |
| 2063 return _json; |
| 2064 } |
| 2065 } |
| 2066 |
| 2067 /** |
| 2068 * An SSL certificate that a user has been authorized to administer. A user is |
| 2069 * authorized to administer any certificate that applies to one of their |
| 2070 * authorized domains. |
| 2071 */ |
| 2072 class AuthorizedCertificate { |
| 2073 /** |
| 2074 * The SSL certificate serving the AuthorizedCertificate resource. This must |
| 2075 * be obtained independently from a certificate authority. |
| 2076 */ |
| 2077 CertificateRawData certificateRawData; |
| 2078 /** |
| 2079 * The user-specified display name of the certificate. This is not guaranteed |
| 2080 * to be unique. Example: My Certificate. |
| 2081 */ |
| 2082 core.String displayName; |
| 2083 /** |
| 2084 * Aggregate count of the domain mappings with this certificate mapped. This |
| 2085 * count includes domain mappings on applications for which the user does not |
| 2086 * have VIEWER permissions.Only returned by GET requests when specifically |
| 2087 * requested by the view=FULL option.@OutputOnly |
| 2088 */ |
| 2089 core.int domainMappingsCount; |
| 2090 /** |
| 2091 * Topmost applicable domains of this certificate. This certificate applies to |
| 2092 * these domains and their subdomains. Example: example.com.@OutputOnly |
| 2093 */ |
| 2094 core.List<core.String> domainNames; |
| 2095 /** |
| 2096 * The time when this certificate expires. To update the renewal time on this |
| 2097 * certificate, upload an SSL certificate with a different expiration time |
| 2098 * using AuthorizedCertificates.UpdateAuthorizedCertificate.@OutputOnly |
| 2099 */ |
| 2100 core.String expireTime; |
| 2101 /** |
| 2102 * Relative name of the certificate. This is a unique value autogenerated on |
| 2103 * AuthorizedCertificate resource creation. Example: 12345.@OutputOnly |
| 2104 */ |
| 2105 core.String id; |
| 2106 /** |
| 2107 * Full path to the AuthorizedCertificate resource in the API. Example: |
| 2108 * apps/myapp/authorizedCertificates/12345.@OutputOnly |
| 2109 */ |
| 2110 core.String name; |
| 2111 /** |
| 2112 * The full paths to user visible Domain Mapping resources that have this |
| 2113 * certificate mapped. Example: apps/myapp/domainMappings/example.com.This may |
| 2114 * not represent the full list of mapped domain mappings if the user does not |
| 2115 * have VIEWER permissions on all of the applications that have this |
| 2116 * certificate mapped. See domain_mappings_count for a complete count.Only |
| 2117 * returned by GET requests when specifically requested by the view=FULL |
| 2118 * option.@OutputOnly |
| 2119 */ |
| 2120 core.List<core.String> visibleDomainMappings; |
| 2121 |
| 2122 AuthorizedCertificate(); |
| 2123 |
| 2124 AuthorizedCertificate.fromJson(core.Map _json) { |
| 2125 if (_json.containsKey("certificateRawData")) { |
| 2126 certificateRawData = new CertificateRawData.fromJson(_json["certificateRaw
Data"]); |
| 2127 } |
| 2128 if (_json.containsKey("displayName")) { |
| 2129 displayName = _json["displayName"]; |
| 2130 } |
| 2131 if (_json.containsKey("domainMappingsCount")) { |
| 2132 domainMappingsCount = _json["domainMappingsCount"]; |
| 2133 } |
| 2134 if (_json.containsKey("domainNames")) { |
| 2135 domainNames = _json["domainNames"]; |
| 2136 } |
| 2137 if (_json.containsKey("expireTime")) { |
| 2138 expireTime = _json["expireTime"]; |
| 2139 } |
| 2140 if (_json.containsKey("id")) { |
| 2141 id = _json["id"]; |
| 2142 } |
| 2143 if (_json.containsKey("name")) { |
| 2144 name = _json["name"]; |
| 2145 } |
| 2146 if (_json.containsKey("visibleDomainMappings")) { |
| 2147 visibleDomainMappings = _json["visibleDomainMappings"]; |
| 2148 } |
| 2149 } |
| 2150 |
| 2151 core.Map toJson() { |
| 2152 var _json = new core.Map(); |
| 2153 if (certificateRawData != null) { |
| 2154 _json["certificateRawData"] = (certificateRawData).toJson(); |
| 2155 } |
| 2156 if (displayName != null) { |
| 2157 _json["displayName"] = displayName; |
| 2158 } |
| 2159 if (domainMappingsCount != null) { |
| 2160 _json["domainMappingsCount"] = domainMappingsCount; |
| 2161 } |
| 2162 if (domainNames != null) { |
| 2163 _json["domainNames"] = domainNames; |
| 2164 } |
| 2165 if (expireTime != null) { |
| 2166 _json["expireTime"] = expireTime; |
| 2167 } |
| 2168 if (id != null) { |
| 2169 _json["id"] = id; |
| 2170 } |
| 2171 if (name != null) { |
| 2172 _json["name"] = name; |
| 2173 } |
| 2174 if (visibleDomainMappings != null) { |
| 2175 _json["visibleDomainMappings"] = visibleDomainMappings; |
| 2176 } |
| 2177 return _json; |
| 2178 } |
| 2179 } |
| 2180 |
| 2181 /** |
| 2182 * A domain that a user has been authorized to administer. To authorize use of a |
| 2183 * domain, verify ownership via Webmaster Central |
| 2184 * (https://www.google.com/webmasters/verification/home). |
| 2185 */ |
| 2186 class AuthorizedDomain { |
| 2187 /** |
| 2188 * Fully qualified domain name of the domain authorized for use. Example: |
| 2189 * example.com. |
| 2190 */ |
| 2191 core.String id; |
| 2192 /** |
| 2193 * Full path to the AuthorizedDomain resource in the API. Example: |
| 2194 * apps/myapp/authorizedDomains/example.com.@OutputOnly |
| 2195 */ |
| 2196 core.String name; |
| 2197 |
| 2198 AuthorizedDomain(); |
| 2199 |
| 2200 AuthorizedDomain.fromJson(core.Map _json) { |
| 2201 if (_json.containsKey("id")) { |
| 2202 id = _json["id"]; |
| 2203 } |
| 2204 if (_json.containsKey("name")) { |
| 2205 name = _json["name"]; |
| 2206 } |
| 2207 } |
| 2208 |
| 2209 core.Map toJson() { |
| 2210 var _json = new core.Map(); |
| 2211 if (id != null) { |
| 2212 _json["id"] = id; |
| 2213 } |
| 2214 if (name != null) { |
| 2215 _json["name"] = name; |
| 2216 } |
1475 return _json; | 2217 return _json; |
1476 } | 2218 } |
1477 } | 2219 } |
1478 | 2220 |
1479 /** | 2221 /** |
1480 * Automatic scaling is based on request rate, response latencies, and other | 2222 * Automatic scaling is based on request rate, response latencies, and other |
1481 * application metrics. | 2223 * application metrics. |
1482 */ | 2224 */ |
1483 class AutomaticScaling { | 2225 class AutomaticScaling { |
1484 /** | 2226 /** |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1642 if (idleTimeout != null) { | 2384 if (idleTimeout != null) { |
1643 _json["idleTimeout"] = idleTimeout; | 2385 _json["idleTimeout"] = idleTimeout; |
1644 } | 2386 } |
1645 if (maxInstances != null) { | 2387 if (maxInstances != null) { |
1646 _json["maxInstances"] = maxInstances; | 2388 _json["maxInstances"] = maxInstances; |
1647 } | 2389 } |
1648 return _json; | 2390 return _json; |
1649 } | 2391 } |
1650 } | 2392 } |
1651 | 2393 |
| 2394 /** An SSL certificate obtained from a certificate authority. */ |
| 2395 class CertificateRawData { |
| 2396 /** |
| 2397 * Unencrypted PEM encoded RSA private key. This field is set once on |
| 2398 * certificate creation and then encrypted. The key size must be 2048 bits or |
| 2399 * fewer. Must include the header and footer. Example: |
| 2400 * -----BEGIN RSA PRIVATE KEY----- -----END RSA PRIVATE KEY----- |
| 2401 * @InputOnly |
| 2402 */ |
| 2403 core.String privateKey; |
| 2404 /** |
| 2405 * PEM encoded x.509 public key certificate. This field is set once on |
| 2406 * certificate creation. Must include the header and footer. Example: |
| 2407 * -----BEGIN CERTIFICATE----- -----END CERTIFICATE----- |
| 2408 */ |
| 2409 core.String publicCertificate; |
| 2410 |
| 2411 CertificateRawData(); |
| 2412 |
| 2413 CertificateRawData.fromJson(core.Map _json) { |
| 2414 if (_json.containsKey("privateKey")) { |
| 2415 privateKey = _json["privateKey"]; |
| 2416 } |
| 2417 if (_json.containsKey("publicCertificate")) { |
| 2418 publicCertificate = _json["publicCertificate"]; |
| 2419 } |
| 2420 } |
| 2421 |
| 2422 core.Map toJson() { |
| 2423 var _json = new core.Map(); |
| 2424 if (privateKey != null) { |
| 2425 _json["privateKey"] = privateKey; |
| 2426 } |
| 2427 if (publicCertificate != null) { |
| 2428 _json["publicCertificate"] = publicCertificate; |
| 2429 } |
| 2430 return _json; |
| 2431 } |
| 2432 } |
| 2433 |
1652 /** | 2434 /** |
1653 * Docker image that is used to create a container and start a VM instance for | 2435 * Docker image that is used to create a container and start a VM instance for |
1654 * the version that you deploy. Only applicable for instances running in the App | 2436 * the version that you deploy. Only applicable for instances running in the App |
1655 * Engine flexible environment. | 2437 * Engine flexible environment. |
1656 */ | 2438 */ |
1657 class ContainerInfo { | 2439 class ContainerInfo { |
1658 /** | 2440 /** |
1659 * URI to the hosted container image in Google Container Registry. The URI | 2441 * URI to the hosted container image in Google Container Registry. The URI |
1660 * must be fully qualified and include a tag or digest. Examples: | 2442 * must be fully qualified and include a tag or digest. Examples: |
1661 * "gcr.io/my-project/image:tag" or "gcr.io/my-project/image@digest" | 2443 * "gcr.io/my-project/image:tag" or "gcr.io/my-project/image@digest" |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1708 if (targetUtilization != null) { | 2490 if (targetUtilization != null) { |
1709 _json["targetUtilization"] = targetUtilization; | 2491 _json["targetUtilization"] = targetUtilization; |
1710 } | 2492 } |
1711 return _json; | 2493 return _json; |
1712 } | 2494 } |
1713 } | 2495 } |
1714 | 2496 |
1715 /** Request message for Instances.DebugInstance. */ | 2497 /** Request message for Instances.DebugInstance. */ |
1716 class DebugInstanceRequest { | 2498 class DebugInstanceRequest { |
1717 /** | 2499 /** |
1718 * Public SSH key to add to the instance. Examples: | 2500 * Public SSH key to add to the instance. Examples: [USERNAME]:ssh-rsa |
1719 * [USERNAME]:ssh-rsa [KEY_VALUE] [USERNAME] | 2501 * [KEY_VALUE] [USERNAME] [USERNAME]:ssh-rsa [KEY_VALUE] google-ssh |
1720 * [USERNAME]:ssh-rsa [KEY_VALUE] google-ssh | |
1721 * {"userName":"[USERNAME]","expireOn":"[EXPIRE_TIME]"}For more information, | 2502 * {"userName":"[USERNAME]","expireOn":"[EXPIRE_TIME]"}For more information, |
1722 * see Adding and Removing SSH Keys | 2503 * see Adding and Removing SSH Keys |
1723 * (https://cloud.google.com/compute/docs/instances/adding-removing-ssh-keys). | 2504 * (https://cloud.google.com/compute/docs/instances/adding-removing-ssh-keys). |
1724 */ | 2505 */ |
1725 core.String sshKey; | 2506 core.String sshKey; |
1726 | 2507 |
1727 DebugInstanceRequest(); | 2508 DebugInstanceRequest(); |
1728 | 2509 |
1729 DebugInstanceRequest.fromJson(core.Map _json) { | 2510 DebugInstanceRequest.fromJson(core.Map _json) { |
1730 if (_json.containsKey("sshKey")) { | 2511 if (_json.containsKey("sshKey")) { |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1825 if (targetWriteBytesPerSecond != null) { | 2606 if (targetWriteBytesPerSecond != null) { |
1826 _json["targetWriteBytesPerSecond"] = targetWriteBytesPerSecond; | 2607 _json["targetWriteBytesPerSecond"] = targetWriteBytesPerSecond; |
1827 } | 2608 } |
1828 if (targetWriteOpsPerSecond != null) { | 2609 if (targetWriteOpsPerSecond != null) { |
1829 _json["targetWriteOpsPerSecond"] = targetWriteOpsPerSecond; | 2610 _json["targetWriteOpsPerSecond"] = targetWriteOpsPerSecond; |
1830 } | 2611 } |
1831 return _json; | 2612 return _json; |
1832 } | 2613 } |
1833 } | 2614 } |
1834 | 2615 |
| 2616 /** A domain serving an App Engine application. */ |
| 2617 class DomainMapping { |
| 2618 /** |
| 2619 * Relative name of the domain serving the application. Example: example.com. |
| 2620 */ |
| 2621 core.String id; |
| 2622 /** |
| 2623 * Full path to the DomainMapping resource in the API. Example: |
| 2624 * apps/myapp/domainMapping/example.com.@OutputOnly |
| 2625 */ |
| 2626 core.String name; |
| 2627 /** |
| 2628 * The resource records required to configure this domain mapping. These |
| 2629 * records must be added to the domain's DNS configuration in order to serve |
| 2630 * the application via this domain mapping.@OutputOnly |
| 2631 */ |
| 2632 core.List<ResourceRecord> resourceRecords; |
| 2633 /** |
| 2634 * SSL configuration for this domain. If unconfigured, this domain will not |
| 2635 * serve with SSL. |
| 2636 */ |
| 2637 SslSettings sslSettings; |
| 2638 |
| 2639 DomainMapping(); |
| 2640 |
| 2641 DomainMapping.fromJson(core.Map _json) { |
| 2642 if (_json.containsKey("id")) { |
| 2643 id = _json["id"]; |
| 2644 } |
| 2645 if (_json.containsKey("name")) { |
| 2646 name = _json["name"]; |
| 2647 } |
| 2648 if (_json.containsKey("resourceRecords")) { |
| 2649 resourceRecords = _json["resourceRecords"].map((value) => new ResourceReco
rd.fromJson(value)).toList(); |
| 2650 } |
| 2651 if (_json.containsKey("sslSettings")) { |
| 2652 sslSettings = new SslSettings.fromJson(_json["sslSettings"]); |
| 2653 } |
| 2654 } |
| 2655 |
| 2656 core.Map toJson() { |
| 2657 var _json = new core.Map(); |
| 2658 if (id != null) { |
| 2659 _json["id"] = id; |
| 2660 } |
| 2661 if (name != null) { |
| 2662 _json["name"] = name; |
| 2663 } |
| 2664 if (resourceRecords != null) { |
| 2665 _json["resourceRecords"] = resourceRecords.map((value) => (value).toJson()
).toList(); |
| 2666 } |
| 2667 if (sslSettings != null) { |
| 2668 _json["sslSettings"] = (sslSettings).toJson(); |
| 2669 } |
| 2670 return _json; |
| 2671 } |
| 2672 } |
| 2673 |
| 2674 /** |
| 2675 * A generic empty message that you can re-use to avoid defining duplicated |
| 2676 * empty messages in your APIs. A typical example is to use it as the request or |
| 2677 * the response type of an API method. For instance: service Foo { rpc |
| 2678 * Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON |
| 2679 * representation for Empty is empty JSON object {}. |
| 2680 */ |
| 2681 class Empty { |
| 2682 |
| 2683 Empty(); |
| 2684 |
| 2685 Empty.fromJson(core.Map _json) { |
| 2686 } |
| 2687 |
| 2688 core.Map toJson() { |
| 2689 var _json = new core.Map(); |
| 2690 return _json; |
| 2691 } |
| 2692 } |
| 2693 |
1835 /** | 2694 /** |
1836 * Cloud Endpoints (https://cloud.google.com/endpoints) configuration. The | 2695 * Cloud Endpoints (https://cloud.google.com/endpoints) configuration. The |
1837 * Endpoints API Service provides tooling for serving Open API and gRPC | 2696 * Endpoints API Service provides tooling for serving Open API and gRPC |
1838 * endpoints via an NGINX proxy.The fields here refer to the name and | 2697 * endpoints via an NGINX proxy.The fields here refer to the name and |
1839 * configuration id of a "service" resource in the Service Management API | 2698 * configuration id of a "service" resource in the Service Management API |
1840 * (https://cloud.google.com/service-management/overview). | 2699 * (https://cloud.google.com/service-management/overview). |
1841 */ | 2700 */ |
1842 class EndpointsApiService { | 2701 class EndpointsApiService { |
1843 /** | 2702 /** |
1844 * Endpoints service configuration id as specified by the Service Management | 2703 * Endpoints service configuration id as specified by the Service Management |
(...skipping 27 matching lines...) Expand all Loading... |
1872 } | 2731 } |
1873 return _json; | 2732 return _json; |
1874 } | 2733 } |
1875 } | 2734 } |
1876 | 2735 |
1877 /** Custom static error page to be served when an error occurs. */ | 2736 /** Custom static error page to be served when an error occurs. */ |
1878 class ErrorHandler { | 2737 class ErrorHandler { |
1879 /** | 2738 /** |
1880 * Error condition this handler applies to. | 2739 * Error condition this handler applies to. |
1881 * Possible string values are: | 2740 * Possible string values are: |
1882 * - "ERROR_CODE_UNSPECIFIED" : Not specified. ERROR_CODE_DEFAULT is assumed. | 2741 * - "ERROR_CODE_UNSPECIFIED" : A ERROR_CODE_UNSPECIFIED. |
1883 * - "ERROR_CODE_DEFAULT" : All other error types. | 2742 * - "ERROR_CODE_DEFAULT" : A ERROR_CODE_DEFAULT. |
1884 * - "ERROR_CODE_OVER_QUOTA" : Application has exceeded a resource quota. | 2743 * - "ERROR_CODE_OVER_QUOTA" : A ERROR_CODE_OVER_QUOTA. |
1885 * - "ERROR_CODE_DOS_API_DENIAL" : Client blocked by the application's Denial | 2744 * - "ERROR_CODE_DOS_API_DENIAL" : A ERROR_CODE_DOS_API_DENIAL. |
1886 * of Service protection configuration. | 2745 * - "ERROR_CODE_TIMEOUT" : A ERROR_CODE_TIMEOUT. |
1887 * - "ERROR_CODE_TIMEOUT" : Deadline reached before the application responds. | |
1888 */ | 2746 */ |
1889 core.String errorCode; | 2747 core.String errorCode; |
1890 /** MIME type of file. Defaults to text/html. */ | 2748 /** MIME type of file. Defaults to text/html. */ |
1891 core.String mimeType; | 2749 core.String mimeType; |
1892 /** Static file content to be served for this error. */ | 2750 /** Static file content to be served for this error. */ |
1893 core.String staticFile; | 2751 core.String staticFile; |
1894 | 2752 |
1895 ErrorHandler(); | 2753 ErrorHandler(); |
1896 | 2754 |
1897 ErrorHandler.fromJson(core.Map _json) { | 2755 ErrorHandler.fromJson(core.Map _json) { |
(...skipping 29 matching lines...) Expand all Loading... |
1927 */ | 2785 */ |
1928 class FileInfo { | 2786 class FileInfo { |
1929 /** | 2787 /** |
1930 * The MIME type of the file.Defaults to the value from Google Cloud Storage. | 2788 * The MIME type of the file.Defaults to the value from Google Cloud Storage. |
1931 */ | 2789 */ |
1932 core.String mimeType; | 2790 core.String mimeType; |
1933 /** The SHA1 hash of the file, in hex. */ | 2791 /** The SHA1 hash of the file, in hex. */ |
1934 core.String sha1Sum; | 2792 core.String sha1Sum; |
1935 /** | 2793 /** |
1936 * URL source to use to fetch this file. Must be a URL to a resource in Google | 2794 * URL source to use to fetch this file. Must be a URL to a resource in Google |
1937 * Cloud Storage in the form | 2795 * Cloud Storage in the form 'http(s)://storage.googleapis.com//'. |
1938 * 'http(s)://storage.googleapis.com/<bucket>/<object>'. | |
1939 */ | 2796 */ |
1940 core.String sourceUrl; | 2797 core.String sourceUrl; |
1941 | 2798 |
1942 FileInfo(); | 2799 FileInfo(); |
1943 | 2800 |
1944 FileInfo.fromJson(core.Map _json) { | 2801 FileInfo.fromJson(core.Map _json) { |
1945 if (_json.containsKey("mimeType")) { | 2802 if (_json.containsKey("mimeType")) { |
1946 mimeType = _json["mimeType"]; | 2803 mimeType = _json["mimeType"]; |
1947 } | 2804 } |
1948 if (_json.containsKey("sha1Sum")) { | 2805 if (_json.containsKey("sha1Sum")) { |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2112 /** | 2969 /** |
2113 * An Instance resource is the computing unit that App Engine uses to | 2970 * An Instance resource is the computing unit that App Engine uses to |
2114 * automatically scale an application. | 2971 * automatically scale an application. |
2115 */ | 2972 */ |
2116 class Instance { | 2973 class Instance { |
2117 /** App Engine release this instance is running on.@OutputOnly */ | 2974 /** App Engine release this instance is running on.@OutputOnly */ |
2118 core.String appEngineRelease; | 2975 core.String appEngineRelease; |
2119 /** | 2976 /** |
2120 * Availability of the instance.@OutputOnly | 2977 * Availability of the instance.@OutputOnly |
2121 * Possible string values are: | 2978 * Possible string values are: |
2122 * - "UNSPECIFIED" | 2979 * - "UNSPECIFIED" : A UNSPECIFIED. |
2123 * - "RESIDENT" | 2980 * - "RESIDENT" : A RESIDENT. |
2124 * - "DYNAMIC" | 2981 * - "DYNAMIC" : A DYNAMIC. |
2125 */ | 2982 */ |
2126 core.String availability; | 2983 core.String availability; |
2127 /** Average latency (ms) over the last minute.@OutputOnly */ | 2984 /** Average latency (ms) over the last minute.@OutputOnly */ |
2128 core.int averageLatency; | 2985 core.int averageLatency; |
2129 /** Number of errors since this instance was started.@OutputOnly */ | 2986 /** Number of errors since this instance was started.@OutputOnly */ |
2130 core.int errors; | 2987 core.int errors; |
2131 /** | 2988 /** |
2132 * Relative name of the instance within the version. Example: | 2989 * Relative name of the instance within the version. Example: |
2133 * instance-1.@OutputOnly | 2990 * instance-1.@OutputOnly |
2134 */ | 2991 */ |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2307 if (name != null) { | 3164 if (name != null) { |
2308 _json["name"] = name; | 3165 _json["name"] = name; |
2309 } | 3166 } |
2310 if (version != null) { | 3167 if (version != null) { |
2311 _json["version"] = version; | 3168 _json["version"] = version; |
2312 } | 3169 } |
2313 return _json; | 3170 return _json; |
2314 } | 3171 } |
2315 } | 3172 } |
2316 | 3173 |
| 3174 /** Response message for AuthorizedCertificates.ListAuthorizedCertificates. */ |
| 3175 class ListAuthorizedCertificatesResponse { |
| 3176 /** The SSL certificates the user is authorized to administer. */ |
| 3177 core.List<AuthorizedCertificate> certificates; |
| 3178 /** Continuation token for fetching the next page of results. */ |
| 3179 core.String nextPageToken; |
| 3180 |
| 3181 ListAuthorizedCertificatesResponse(); |
| 3182 |
| 3183 ListAuthorizedCertificatesResponse.fromJson(core.Map _json) { |
| 3184 if (_json.containsKey("certificates")) { |
| 3185 certificates = _json["certificates"].map((value) => new AuthorizedCertific
ate.fromJson(value)).toList(); |
| 3186 } |
| 3187 if (_json.containsKey("nextPageToken")) { |
| 3188 nextPageToken = _json["nextPageToken"]; |
| 3189 } |
| 3190 } |
| 3191 |
| 3192 core.Map toJson() { |
| 3193 var _json = new core.Map(); |
| 3194 if (certificates != null) { |
| 3195 _json["certificates"] = certificates.map((value) => (value).toJson()).toLi
st(); |
| 3196 } |
| 3197 if (nextPageToken != null) { |
| 3198 _json["nextPageToken"] = nextPageToken; |
| 3199 } |
| 3200 return _json; |
| 3201 } |
| 3202 } |
| 3203 |
| 3204 /** Response message for AuthorizedDomains.ListAuthorizedDomains. */ |
| 3205 class ListAuthorizedDomainsResponse { |
| 3206 /** The authorized domains belonging to the user. */ |
| 3207 core.List<AuthorizedDomain> domains; |
| 3208 /** Continuation token for fetching the next page of results. */ |
| 3209 core.String nextPageToken; |
| 3210 |
| 3211 ListAuthorizedDomainsResponse(); |
| 3212 |
| 3213 ListAuthorizedDomainsResponse.fromJson(core.Map _json) { |
| 3214 if (_json.containsKey("domains")) { |
| 3215 domains = _json["domains"].map((value) => new AuthorizedDomain.fromJson(va
lue)).toList(); |
| 3216 } |
| 3217 if (_json.containsKey("nextPageToken")) { |
| 3218 nextPageToken = _json["nextPageToken"]; |
| 3219 } |
| 3220 } |
| 3221 |
| 3222 core.Map toJson() { |
| 3223 var _json = new core.Map(); |
| 3224 if (domains != null) { |
| 3225 _json["domains"] = domains.map((value) => (value).toJson()).toList(); |
| 3226 } |
| 3227 if (nextPageToken != null) { |
| 3228 _json["nextPageToken"] = nextPageToken; |
| 3229 } |
| 3230 return _json; |
| 3231 } |
| 3232 } |
| 3233 |
| 3234 /** Response message for DomainMappings.ListDomainMappings. */ |
| 3235 class ListDomainMappingsResponse { |
| 3236 /** The domain mappings for the application. */ |
| 3237 core.List<DomainMapping> domainMappings; |
| 3238 /** Continuation token for fetching the next page of results. */ |
| 3239 core.String nextPageToken; |
| 3240 |
| 3241 ListDomainMappingsResponse(); |
| 3242 |
| 3243 ListDomainMappingsResponse.fromJson(core.Map _json) { |
| 3244 if (_json.containsKey("domainMappings")) { |
| 3245 domainMappings = _json["domainMappings"].map((value) => new DomainMapping.
fromJson(value)).toList(); |
| 3246 } |
| 3247 if (_json.containsKey("nextPageToken")) { |
| 3248 nextPageToken = _json["nextPageToken"]; |
| 3249 } |
| 3250 } |
| 3251 |
| 3252 core.Map toJson() { |
| 3253 var _json = new core.Map(); |
| 3254 if (domainMappings != null) { |
| 3255 _json["domainMappings"] = domainMappings.map((value) => (value).toJson()).
toList(); |
| 3256 } |
| 3257 if (nextPageToken != null) { |
| 3258 _json["nextPageToken"] = nextPageToken; |
| 3259 } |
| 3260 return _json; |
| 3261 } |
| 3262 } |
| 3263 |
2317 /** Response message for Instances.ListInstances. */ | 3264 /** Response message for Instances.ListInstances. */ |
2318 class ListInstancesResponse { | 3265 class ListInstancesResponse { |
2319 /** The instances belonging to the requested version. */ | 3266 /** The instances belonging to the requested version. */ |
2320 core.List<Instance> instances; | 3267 core.List<Instance> instances; |
2321 /** Continuation token for fetching the next page of results. */ | 3268 /** Continuation token for fetching the next page of results. */ |
2322 core.String nextPageToken; | 3269 core.String nextPageToken; |
2323 | 3270 |
2324 ListInstancesResponse(); | 3271 ListInstancesResponse(); |
2325 | 3272 |
2326 ListInstancesResponse.fromJson(core.Map _json) { | 3273 ListInstancesResponse.fromJson(core.Map _json) { |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2465 } | 3412 } |
2466 | 3413 |
2467 /** | 3414 /** |
2468 * Health checking configuration for VM instances. Unhealthy instances are | 3415 * Health checking configuration for VM instances. Unhealthy instances are |
2469 * killed and replaced with new instances. | 3416 * killed and replaced with new instances. |
2470 */ | 3417 */ |
2471 class LivenessCheck { | 3418 class LivenessCheck { |
2472 /** Interval between health checks. */ | 3419 /** Interval between health checks. */ |
2473 core.String checkInterval; | 3420 core.String checkInterval; |
2474 /** | 3421 /** |
2475 * Number of consecutive successful checks required before considering the VM | 3422 * Number of consecutive failed checks required before considering the VM |
2476 * healthy. | 3423 * unhealthy. |
2477 */ | 3424 */ |
2478 core.int healthyThreshold; | 3425 core.int failureThreshold; |
2479 /** | 3426 /** |
2480 * Host header to send when performing a HTTP Liveness check. Example: | 3427 * Host header to send when performing a HTTP Liveness check. Example: |
2481 * "myapp.appspot.com" | 3428 * "myapp.appspot.com" |
2482 */ | 3429 */ |
2483 core.String host; | 3430 core.String host; |
2484 /** The initial delay before starting to execute the checks. */ | 3431 /** The initial delay before starting to execute the checks. */ |
2485 core.String initialDelay; | 3432 core.String initialDelay; |
2486 /** The request path. */ | 3433 /** The request path. */ |
2487 core.String path; | 3434 core.String path; |
| 3435 /** |
| 3436 * Number of consecutive successful checks required before considering the VM |
| 3437 * healthy. |
| 3438 */ |
| 3439 core.int successThreshold; |
2488 /** Time before the check is considered failed. */ | 3440 /** Time before the check is considered failed. */ |
2489 core.String timeout; | 3441 core.String timeout; |
2490 /** | |
2491 * Number of consecutive failed checks required before considering the VM | |
2492 * unhealthy. | |
2493 */ | |
2494 core.int unhealthyThreshold; | |
2495 | 3442 |
2496 LivenessCheck(); | 3443 LivenessCheck(); |
2497 | 3444 |
2498 LivenessCheck.fromJson(core.Map _json) { | 3445 LivenessCheck.fromJson(core.Map _json) { |
2499 if (_json.containsKey("checkInterval")) { | 3446 if (_json.containsKey("checkInterval")) { |
2500 checkInterval = _json["checkInterval"]; | 3447 checkInterval = _json["checkInterval"]; |
2501 } | 3448 } |
2502 if (_json.containsKey("healthyThreshold")) { | 3449 if (_json.containsKey("failureThreshold")) { |
2503 healthyThreshold = _json["healthyThreshold"]; | 3450 failureThreshold = _json["failureThreshold"]; |
2504 } | 3451 } |
2505 if (_json.containsKey("host")) { | 3452 if (_json.containsKey("host")) { |
2506 host = _json["host"]; | 3453 host = _json["host"]; |
2507 } | 3454 } |
2508 if (_json.containsKey("initialDelay")) { | 3455 if (_json.containsKey("initialDelay")) { |
2509 initialDelay = _json["initialDelay"]; | 3456 initialDelay = _json["initialDelay"]; |
2510 } | 3457 } |
2511 if (_json.containsKey("path")) { | 3458 if (_json.containsKey("path")) { |
2512 path = _json["path"]; | 3459 path = _json["path"]; |
2513 } | 3460 } |
| 3461 if (_json.containsKey("successThreshold")) { |
| 3462 successThreshold = _json["successThreshold"]; |
| 3463 } |
2514 if (_json.containsKey("timeout")) { | 3464 if (_json.containsKey("timeout")) { |
2515 timeout = _json["timeout"]; | 3465 timeout = _json["timeout"]; |
2516 } | 3466 } |
2517 if (_json.containsKey("unhealthyThreshold")) { | |
2518 unhealthyThreshold = _json["unhealthyThreshold"]; | |
2519 } | |
2520 } | 3467 } |
2521 | 3468 |
2522 core.Map toJson() { | 3469 core.Map toJson() { |
2523 var _json = new core.Map(); | 3470 var _json = new core.Map(); |
2524 if (checkInterval != null) { | 3471 if (checkInterval != null) { |
2525 _json["checkInterval"] = checkInterval; | 3472 _json["checkInterval"] = checkInterval; |
2526 } | 3473 } |
2527 if (healthyThreshold != null) { | 3474 if (failureThreshold != null) { |
2528 _json["healthyThreshold"] = healthyThreshold; | 3475 _json["failureThreshold"] = failureThreshold; |
2529 } | 3476 } |
2530 if (host != null) { | 3477 if (host != null) { |
2531 _json["host"] = host; | 3478 _json["host"] = host; |
2532 } | 3479 } |
2533 if (initialDelay != null) { | 3480 if (initialDelay != null) { |
2534 _json["initialDelay"] = initialDelay; | 3481 _json["initialDelay"] = initialDelay; |
2535 } | 3482 } |
2536 if (path != null) { | 3483 if (path != null) { |
2537 _json["path"] = path; | 3484 _json["path"] = path; |
2538 } | 3485 } |
| 3486 if (successThreshold != null) { |
| 3487 _json["successThreshold"] = successThreshold; |
| 3488 } |
2539 if (timeout != null) { | 3489 if (timeout != null) { |
2540 _json["timeout"] = timeout; | 3490 _json["timeout"] = timeout; |
2541 } | 3491 } |
2542 if (unhealthyThreshold != null) { | |
2543 _json["unhealthyThreshold"] = unhealthyThreshold; | |
2544 } | |
2545 return _json; | 3492 return _json; |
2546 } | 3493 } |
2547 } | 3494 } |
2548 | 3495 |
2549 /** A resource that represents Google Cloud Platform location. */ | 3496 /** A resource that represents Google Cloud Platform location. */ |
2550 class Location { | 3497 class Location { |
2551 /** | 3498 /** |
2552 * Cross-service attributes for the location. For example | 3499 * Cross-service attributes for the location. For example |
2553 * {"cloud.googleapis.com/region": "us-east1"} | 3500 * {"cloud.googleapis.com/region": "us-east1"} |
2554 */ | 3501 */ |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2681 core.String instanceTag; | 3628 core.String instanceTag; |
2682 /** | 3629 /** |
2683 * Google Cloud Platform network where the virtual machines are created. | 3630 * Google Cloud Platform network where the virtual machines are created. |
2684 * Specify the short name, not the resource path.Defaults to default. | 3631 * Specify the short name, not the resource path.Defaults to default. |
2685 */ | 3632 */ |
2686 core.String name; | 3633 core.String name; |
2687 /** | 3634 /** |
2688 * Google Cloud Platform sub-network where the virtual machines are created. | 3635 * Google Cloud Platform sub-network where the virtual machines are created. |
2689 * Specify the short name, not the resource path.If a subnetwork name is | 3636 * Specify the short name, not the resource path.If a subnetwork name is |
2690 * specified, a network name will also be required unless it is for the | 3637 * specified, a network name will also be required unless it is for the |
2691 * default network. | 3638 * default network. If the network the VM instance is being created in is a |
2692 * If the network the VM instance is being created in is a Legacy network, | 3639 * Legacy network, then the IP address is allocated from the IPv4Range. If the |
2693 * then the IP address is allocated from the IPv4Range. | 3640 * network the VM instance is being created in is an auto Subnet Mode Network, |
2694 * If the network the VM instance is being created in is an auto Subnet Mode | 3641 * then only network name should be specified (not the subnetwork_name) and |
2695 * Network, then only network name should be specified (not the | 3642 * the IP address is created from the IPCidrRange of the subnetwork that |
2696 * subnetwork_name) and the IP address is created from the IPCidrRange of the | 3643 * exists in that zone for that network. If the network the VM instance is |
2697 * subnetwork that exists in that zone for that network. | 3644 * being created in is a custom Subnet Mode Network, then the subnetwork_name |
2698 * If the network the VM instance is being created in is a custom Subnet Mode | 3645 * must be specified and the IP address is created from the IPCidrRange of the |
2699 * Network, then the subnetwork_name must be specified and the IP address is | 3646 * subnetwork.If specified, the subnetwork must exist in the same region as |
2700 * created from the IPCidrRange of the subnetwork.If specified, the subnetwork | 3647 * the Flex app. |
2701 * must exist in the same region as the Flex app. | |
2702 */ | 3648 */ |
2703 core.String subnetworkName; | 3649 core.String subnetworkName; |
2704 | 3650 |
2705 Network(); | 3651 Network(); |
2706 | 3652 |
2707 Network.fromJson(core.Map _json) { | 3653 Network.fromJson(core.Map _json) { |
2708 if (_json.containsKey("forwardedPorts")) { | 3654 if (_json.containsKey("forwardedPorts")) { |
2709 forwardedPorts = _json["forwardedPorts"]; | 3655 forwardedPorts = _json["forwardedPorts"]; |
2710 } | 3656 } |
2711 if (_json.containsKey("instanceTag")) { | 3657 if (_json.containsKey("instanceTag")) { |
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3071 _json["user"] = user; | 4017 _json["user"] = user; |
3072 } | 4018 } |
3073 if (warning != null) { | 4019 if (warning != null) { |
3074 _json["warning"] = warning; | 4020 _json["warning"] = warning; |
3075 } | 4021 } |
3076 return _json; | 4022 return _json; |
3077 } | 4023 } |
3078 } | 4024 } |
3079 | 4025 |
3080 /** Metadata for the given google.longrunning.Operation. */ | 4026 /** Metadata for the given google.longrunning.Operation. */ |
3081 class OperationMetadataV1Alpha { | |
3082 /** Time that this operation completed.@OutputOnly */ | |
3083 core.String endTime; | |
3084 /** | |
3085 * Ephemeral message that may change every time the operation is polled. | |
3086 * @OutputOnly | |
3087 */ | |
3088 core.String ephemeralMessage; | |
3089 /** Time that this operation was created.@OutputOnly */ | |
3090 core.String insertTime; | |
3091 /** | |
3092 * API method that initiated this operation. Example: | |
3093 * google.appengine.v1alpha.Versions.CreateVersion.@OutputOnly | |
3094 */ | |
3095 core.String method; | |
3096 /** | |
3097 * Name of the resource that this operation is acting on. Example: | |
3098 * apps/myapp/services/default.@OutputOnly | |
3099 */ | |
3100 core.String target; | |
3101 /** User who requested this operation.@OutputOnly */ | |
3102 core.String user; | |
3103 /** Durable messages that persist on every operation poll. @OutputOnly */ | |
3104 core.List<core.String> warning; | |
3105 | |
3106 OperationMetadataV1Alpha(); | |
3107 | |
3108 OperationMetadataV1Alpha.fromJson(core.Map _json) { | |
3109 if (_json.containsKey("endTime")) { | |
3110 endTime = _json["endTime"]; | |
3111 } | |
3112 if (_json.containsKey("ephemeralMessage")) { | |
3113 ephemeralMessage = _json["ephemeralMessage"]; | |
3114 } | |
3115 if (_json.containsKey("insertTime")) { | |
3116 insertTime = _json["insertTime"]; | |
3117 } | |
3118 if (_json.containsKey("method")) { | |
3119 method = _json["method"]; | |
3120 } | |
3121 if (_json.containsKey("target")) { | |
3122 target = _json["target"]; | |
3123 } | |
3124 if (_json.containsKey("user")) { | |
3125 user = _json["user"]; | |
3126 } | |
3127 if (_json.containsKey("warning")) { | |
3128 warning = _json["warning"]; | |
3129 } | |
3130 } | |
3131 | |
3132 core.Map toJson() { | |
3133 var _json = new core.Map(); | |
3134 if (endTime != null) { | |
3135 _json["endTime"] = endTime; | |
3136 } | |
3137 if (ephemeralMessage != null) { | |
3138 _json["ephemeralMessage"] = ephemeralMessage; | |
3139 } | |
3140 if (insertTime != null) { | |
3141 _json["insertTime"] = insertTime; | |
3142 } | |
3143 if (method != null) { | |
3144 _json["method"] = method; | |
3145 } | |
3146 if (target != null) { | |
3147 _json["target"] = target; | |
3148 } | |
3149 if (user != null) { | |
3150 _json["user"] = user; | |
3151 } | |
3152 if (warning != null) { | |
3153 _json["warning"] = warning; | |
3154 } | |
3155 return _json; | |
3156 } | |
3157 } | |
3158 | |
3159 /** Metadata for the given google.longrunning.Operation. */ | |
3160 class OperationMetadataV1Beta { | 4027 class OperationMetadataV1Beta { |
3161 /** Time that this operation completed.@OutputOnly */ | 4028 /** Time that this operation completed.@OutputOnly */ |
3162 core.String endTime; | 4029 core.String endTime; |
3163 /** | 4030 /** |
3164 * Ephemeral message that may change every time the operation is polled. | 4031 * Ephemeral message that may change every time the operation is polled. |
3165 * @OutputOnly | 4032 * @OutputOnly |
3166 */ | 4033 */ |
3167 core.String ephemeralMessage; | 4034 core.String ephemeralMessage; |
3168 /** Time that this operation was created.@OutputOnly */ | 4035 /** Time that this operation was created.@OutputOnly */ |
3169 core.String insertTime; | 4036 core.String insertTime; |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3295 } | 4162 } |
3296 } | 4163 } |
3297 | 4164 |
3298 /** | 4165 /** |
3299 * Readiness checking configuration for VM instances. Unhealthy instances are | 4166 * Readiness checking configuration for VM instances. Unhealthy instances are |
3300 * removed from traffic rotation. | 4167 * removed from traffic rotation. |
3301 */ | 4168 */ |
3302 class ReadinessCheck { | 4169 class ReadinessCheck { |
3303 /** Interval between health checks. */ | 4170 /** Interval between health checks. */ |
3304 core.String checkInterval; | 4171 core.String checkInterval; |
3305 /** | 4172 /** Number of consecutive failed checks required before removing traffic. */ |
3306 * Number of consecutive successful checks required before receiving traffic. | 4173 core.int failureThreshold; |
3307 */ | |
3308 core.int healthyThreshold; | |
3309 /** | 4174 /** |
3310 * Host header to send when performing a HTTP Readiness check. Example: | 4175 * Host header to send when performing a HTTP Readiness check. Example: |
3311 * "myapp.appspot.com" | 4176 * "myapp.appspot.com" |
3312 */ | 4177 */ |
3313 core.String host; | 4178 core.String host; |
3314 /** The request path. */ | 4179 /** The request path. */ |
3315 core.String path; | 4180 core.String path; |
| 4181 /** |
| 4182 * Number of consecutive successful checks required before receiving traffic. |
| 4183 */ |
| 4184 core.int successThreshold; |
3316 /** Time before the check is considered failed. */ | 4185 /** Time before the check is considered failed. */ |
3317 core.String timeout; | 4186 core.String timeout; |
3318 /** Number of consecutive failed checks required before removing traffic. */ | |
3319 core.int unhealthyThreshold; | |
3320 | 4187 |
3321 ReadinessCheck(); | 4188 ReadinessCheck(); |
3322 | 4189 |
3323 ReadinessCheck.fromJson(core.Map _json) { | 4190 ReadinessCheck.fromJson(core.Map _json) { |
3324 if (_json.containsKey("checkInterval")) { | 4191 if (_json.containsKey("checkInterval")) { |
3325 checkInterval = _json["checkInterval"]; | 4192 checkInterval = _json["checkInterval"]; |
3326 } | 4193 } |
3327 if (_json.containsKey("healthyThreshold")) { | 4194 if (_json.containsKey("failureThreshold")) { |
3328 healthyThreshold = _json["healthyThreshold"]; | 4195 failureThreshold = _json["failureThreshold"]; |
3329 } | 4196 } |
3330 if (_json.containsKey("host")) { | 4197 if (_json.containsKey("host")) { |
3331 host = _json["host"]; | 4198 host = _json["host"]; |
3332 } | 4199 } |
3333 if (_json.containsKey("path")) { | 4200 if (_json.containsKey("path")) { |
3334 path = _json["path"]; | 4201 path = _json["path"]; |
3335 } | 4202 } |
| 4203 if (_json.containsKey("successThreshold")) { |
| 4204 successThreshold = _json["successThreshold"]; |
| 4205 } |
3336 if (_json.containsKey("timeout")) { | 4206 if (_json.containsKey("timeout")) { |
3337 timeout = _json["timeout"]; | 4207 timeout = _json["timeout"]; |
3338 } | 4208 } |
3339 if (_json.containsKey("unhealthyThreshold")) { | |
3340 unhealthyThreshold = _json["unhealthyThreshold"]; | |
3341 } | |
3342 } | 4209 } |
3343 | 4210 |
3344 core.Map toJson() { | 4211 core.Map toJson() { |
3345 var _json = new core.Map(); | 4212 var _json = new core.Map(); |
3346 if (checkInterval != null) { | 4213 if (checkInterval != null) { |
3347 _json["checkInterval"] = checkInterval; | 4214 _json["checkInterval"] = checkInterval; |
3348 } | 4215 } |
3349 if (healthyThreshold != null) { | 4216 if (failureThreshold != null) { |
3350 _json["healthyThreshold"] = healthyThreshold; | 4217 _json["failureThreshold"] = failureThreshold; |
3351 } | 4218 } |
3352 if (host != null) { | 4219 if (host != null) { |
3353 _json["host"] = host; | 4220 _json["host"] = host; |
3354 } | 4221 } |
3355 if (path != null) { | 4222 if (path != null) { |
3356 _json["path"] = path; | 4223 _json["path"] = path; |
3357 } | 4224 } |
| 4225 if (successThreshold != null) { |
| 4226 _json["successThreshold"] = successThreshold; |
| 4227 } |
3358 if (timeout != null) { | 4228 if (timeout != null) { |
3359 _json["timeout"] = timeout; | 4229 _json["timeout"] = timeout; |
3360 } | 4230 } |
3361 if (unhealthyThreshold != null) { | |
3362 _json["unhealthyThreshold"] = unhealthyThreshold; | |
3363 } | |
3364 return _json; | 4231 return _json; |
3365 } | 4232 } |
3366 } | 4233 } |
3367 | 4234 |
3368 /** Request message for 'Applications.RepairApplication'. */ | 4235 /** Request message for 'Applications.RepairApplication'. */ |
3369 class RepairApplicationRequest { | 4236 class RepairApplicationRequest { |
3370 | 4237 |
3371 RepairApplicationRequest(); | 4238 RepairApplicationRequest(); |
3372 | 4239 |
3373 RepairApplicationRequest.fromJson(core.Map _json) { | 4240 RepairApplicationRequest.fromJson(core.Map _json) { |
(...skipping 28 matching lines...) Expand all Loading... |
3402 if (targetConcurrentRequests != null) { | 4269 if (targetConcurrentRequests != null) { |
3403 _json["targetConcurrentRequests"] = targetConcurrentRequests; | 4270 _json["targetConcurrentRequests"] = targetConcurrentRequests; |
3404 } | 4271 } |
3405 if (targetRequestCountPerSecond != null) { | 4272 if (targetRequestCountPerSecond != null) { |
3406 _json["targetRequestCountPerSecond"] = targetRequestCountPerSecond; | 4273 _json["targetRequestCountPerSecond"] = targetRequestCountPerSecond; |
3407 } | 4274 } |
3408 return _json; | 4275 return _json; |
3409 } | 4276 } |
3410 } | 4277 } |
3411 | 4278 |
| 4279 /** A DNS resource record. */ |
| 4280 class ResourceRecord { |
| 4281 /** |
| 4282 * Relative name of the object affected by this record. Only applicable for |
| 4283 * CNAME records. Example: 'www'. |
| 4284 */ |
| 4285 core.String name; |
| 4286 /** |
| 4287 * Data for this record. Values vary by record type, as defined in RFC 1035 |
| 4288 * (section 5) and RFC 1034 (section 3.6.1). |
| 4289 */ |
| 4290 core.String rrdata; |
| 4291 /** |
| 4292 * Resource record type. Example: AAAA. |
| 4293 * Possible string values are: |
| 4294 * - "A" : A A. |
| 4295 * - "AAAA" : A AAAA. |
| 4296 * - "CNAME" : A CNAME. |
| 4297 */ |
| 4298 core.String type; |
| 4299 |
| 4300 ResourceRecord(); |
| 4301 |
| 4302 ResourceRecord.fromJson(core.Map _json) { |
| 4303 if (_json.containsKey("name")) { |
| 4304 name = _json["name"]; |
| 4305 } |
| 4306 if (_json.containsKey("rrdata")) { |
| 4307 rrdata = _json["rrdata"]; |
| 4308 } |
| 4309 if (_json.containsKey("type")) { |
| 4310 type = _json["type"]; |
| 4311 } |
| 4312 } |
| 4313 |
| 4314 core.Map toJson() { |
| 4315 var _json = new core.Map(); |
| 4316 if (name != null) { |
| 4317 _json["name"] = name; |
| 4318 } |
| 4319 if (rrdata != null) { |
| 4320 _json["rrdata"] = rrdata; |
| 4321 } |
| 4322 if (type != null) { |
| 4323 _json["type"] = type; |
| 4324 } |
| 4325 return _json; |
| 4326 } |
| 4327 } |
| 4328 |
3412 /** Machine resources for a version. */ | 4329 /** Machine resources for a version. */ |
3413 class Resources { | 4330 class Resources { |
3414 /** Number of CPU cores needed. */ | 4331 /** Number of CPU cores needed. */ |
3415 core.double cpu; | 4332 core.double cpu; |
3416 /** Disk size (GB) needed. */ | 4333 /** Disk size (GB) needed. */ |
3417 core.double diskGb; | 4334 core.double diskGb; |
3418 /** Memory (GB) needed. */ | 4335 /** Memory (GB) needed. */ |
3419 core.double memoryGb; | 4336 core.double memoryGb; |
3420 /** User specified volumes. */ | 4337 /** User specified volumes. */ |
3421 core.List<Volume> volumes; | 4338 core.List<Volume> volumes; |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3524 if (name != null) { | 4441 if (name != null) { |
3525 _json["name"] = name; | 4442 _json["name"] = name; |
3526 } | 4443 } |
3527 if (split != null) { | 4444 if (split != null) { |
3528 _json["split"] = (split).toJson(); | 4445 _json["split"] = (split).toJson(); |
3529 } | 4446 } |
3530 return _json; | 4447 return _json; |
3531 } | 4448 } |
3532 } | 4449 } |
3533 | 4450 |
| 4451 /** SSL configuration for a DomainMapping resource. */ |
| 4452 class SslSettings { |
| 4453 /** |
| 4454 * ID of the AuthorizedCertificate resource configuring SSL for the |
| 4455 * application. Clearing this field will remove SSL support. Example: 12345. |
| 4456 */ |
| 4457 core.String certificateId; |
| 4458 |
| 4459 SslSettings(); |
| 4460 |
| 4461 SslSettings.fromJson(core.Map _json) { |
| 4462 if (_json.containsKey("certificateId")) { |
| 4463 certificateId = _json["certificateId"]; |
| 4464 } |
| 4465 } |
| 4466 |
| 4467 core.Map toJson() { |
| 4468 var _json = new core.Map(); |
| 4469 if (certificateId != null) { |
| 4470 _json["certificateId"] = certificateId; |
| 4471 } |
| 4472 return _json; |
| 4473 } |
| 4474 } |
| 4475 |
3534 /** | 4476 /** |
3535 * Files served directly to the user for a given URL, such as images, CSS | 4477 * Files served directly to the user for a given URL, such as images, CSS |
3536 * stylesheets, or JavaScript source files. Static file handlers describe which | 4478 * stylesheets, or JavaScript source files. Static file handlers describe which |
3537 * files in the application directory are static files, and which URLs serve | 4479 * files in the application directory are static files, and which URLs serve |
3538 * them. | 4480 * them. |
3539 */ | 4481 */ |
3540 class StaticFilesHandler { | 4482 class StaticFilesHandler { |
3541 /** | 4483 /** |
3542 * Whether files should also be uploaded as code data. By default, files | 4484 * Whether files should also be uploaded as code data. By default, files |
3543 * declared in static file handlers are uploaded as static data and are only | 4485 * declared in static file handlers are uploaded as static data and are only |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3625 if (uploadPathRegex != null) { | 4567 if (uploadPathRegex != null) { |
3626 _json["uploadPathRegex"] = uploadPathRegex; | 4568 _json["uploadPathRegex"] = uploadPathRegex; |
3627 } | 4569 } |
3628 return _json; | 4570 return _json; |
3629 } | 4571 } |
3630 } | 4572 } |
3631 | 4573 |
3632 /** | 4574 /** |
3633 * The Status type defines a logical error model that is suitable for different | 4575 * The Status type defines a logical error model that is suitable for different |
3634 * programming environments, including REST APIs and RPC APIs. It is used by | 4576 * programming environments, including REST APIs and RPC APIs. It is used by |
3635 * gRPC (https://github.com/grpc). The error model is designed to be: | 4577 * gRPC (https://github.com/grpc). The error model is designed to be: Simple to |
3636 * Simple to use and understand for most users | 4578 * use and understand for most users Flexible enough to meet unexpected |
3637 * Flexible enough to meet unexpected needsOverviewThe Status message contains | 4579 * needsOverviewThe Status message contains three pieces of data: error code, |
3638 * three pieces of data: error code, error message, and error details. The error | 4580 * error message, and error details. The error code should be an enum value of |
3639 * code should be an enum value of google.rpc.Code, but it may accept additional | 4581 * google.rpc.Code, but it may accept additional error codes if needed. The |
3640 * error codes if needed. The error message should be a developer-facing English | 4582 * error message should be a developer-facing English message that helps |
3641 * message that helps developers understand and resolve the error. If a | 4583 * developers understand and resolve the error. If a localized user-facing error |
3642 * localized user-facing error message is needed, put the localized message in | 4584 * message is needed, put the localized message in the error details or localize |
3643 * the error details or localize it in the client. The optional error details | 4585 * it in the client. The optional error details may contain arbitrary |
3644 * may contain arbitrary information about the error. There is a predefined set | 4586 * information about the error. There is a predefined set of error detail types |
3645 * of error detail types in the package google.rpc which can be used for common | 4587 * in the package google.rpc which can be used for common error |
3646 * error conditions.Language mappingThe Status message is the logical | 4588 * conditions.Language mappingThe Status message is the logical representation |
3647 * representation of the error model, but it is not necessarily the actual wire | 4589 * of the error model, but it is not necessarily the actual wire format. When |
3648 * format. When the Status message is exposed in different client libraries and | 4590 * the Status message is exposed in different client libraries and different |
3649 * different wire protocols, it can be mapped differently. For example, it will | 4591 * wire protocols, it can be mapped differently. For example, it will likely be |
3650 * likely be mapped to some exceptions in Java, but more likely mapped to some | 4592 * mapped to some exceptions in Java, but more likely mapped to some error codes |
3651 * error codes in C.Other usesThe error model and the Status message can be used | 4593 * in C.Other usesThe error model and the Status message can be used in a |
3652 * in a variety of environments, either with or without APIs, to provide a | 4594 * variety of environments, either with or without APIs, to provide a consistent |
3653 * consistent developer experience across different environments.Example uses of | 4595 * developer experience across different environments.Example uses of this error |
3654 * this error model include: | 4596 * model include: Partial errors. If a service needs to return partial errors to |
3655 * Partial errors. If a service needs to return partial errors to the client, it | 4597 * the client, it may embed the Status in the normal response to indicate the |
3656 * may embed the Status in the normal response to indicate the partial errors. | 4598 * partial errors. Workflow errors. A typical workflow has multiple steps. Each |
3657 * Workflow errors. A typical workflow has multiple steps. Each step may have a | 4599 * step may have a Status message for error reporting purpose. Batch operations. |
3658 * Status message for error reporting purpose. | 4600 * If a client uses batch request and batch response, the Status message should |
3659 * Batch operations. If a client uses batch request and batch response, the | 4601 * be used directly inside batch response, one for each error sub-response. |
3660 * Status message should be used directly inside batch response, one for each | |
3661 * error sub-response. | |
3662 * Asynchronous operations. If an API call embeds asynchronous operation results | 4602 * Asynchronous operations. If an API call embeds asynchronous operation results |
3663 * in its response, the status of those operations should be represented | 4603 * in its response, the status of those operations should be represented |
3664 * directly using the Status message. | 4604 * directly using the Status message. Logging. If some API errors are stored in |
3665 * Logging. If some API errors are stored in logs, the message Status could be | 4605 * logs, the message Status could be used directly after any stripping needed |
3666 * used directly after any stripping needed for security/privacy reasons. | 4606 * for security/privacy reasons. |
3667 */ | 4607 */ |
3668 class Status { | 4608 class Status { |
3669 /** The status code, which should be an enum value of google.rpc.Code. */ | 4609 /** The status code, which should be an enum value of google.rpc.Code. */ |
3670 core.int code; | 4610 core.int code; |
3671 /** | 4611 /** |
3672 * A list of messages that carry the error details. There will be a common set | 4612 * A list of messages that carry the error details. There will be a common set |
3673 * of message types for APIs to use. | 4613 * of message types for APIs to use. |
3674 * | 4614 * |
3675 * The values for Object must be JSON objects. It can consist of `num`, | 4615 * The values for Object must be JSON objects. It can consist of `num`, |
3676 * `String`, `bool` and `null` as well as `Map` and `List` values. | 4616 * `String`, `bool` and `null` as well as `Map` and `List` values. |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3725 * service is deleted or their traffic allocation is removed. Allocations must | 4665 * service is deleted or their traffic allocation is removed. Allocations must |
3726 * sum to 1. Up to two decimal place precision is supported for IP-based | 4666 * sum to 1. Up to two decimal place precision is supported for IP-based |
3727 * splits and up to three decimal places is supported for cookie-based splits. | 4667 * splits and up to three decimal places is supported for cookie-based splits. |
3728 */ | 4668 */ |
3729 core.Map<core.String, core.double> allocations; | 4669 core.Map<core.String, core.double> allocations; |
3730 /** | 4670 /** |
3731 * Mechanism used to determine which version a request is sent to. The traffic | 4671 * Mechanism used to determine which version a request is sent to. The traffic |
3732 * selection algorithm will be stable for either type until allocations are | 4672 * selection algorithm will be stable for either type until allocations are |
3733 * changed. | 4673 * changed. |
3734 * Possible string values are: | 4674 * Possible string values are: |
3735 * - "UNSPECIFIED" : Diversion method unspecified. | 4675 * - "UNSPECIFIED" : A UNSPECIFIED. |
3736 * - "COOKIE" : Diversion based on a specially named cookie, "GOOGAPPUID." The | 4676 * - "COOKIE" : A COOKIE. |
3737 * cookie must be set by the application itself or no diversion will occur. | 4677 * - "IP" : A IP. |
3738 * - "IP" : Diversion based on applying the modulus operation to a fingerprint | 4678 * - "RANDOM" : A RANDOM. |
3739 * of the IP address. | |
3740 */ | 4679 */ |
3741 core.String shardBy; | 4680 core.String shardBy; |
3742 | 4681 |
3743 TrafficSplit(); | 4682 TrafficSplit(); |
3744 | 4683 |
3745 TrafficSplit.fromJson(core.Map _json) { | 4684 TrafficSplit.fromJson(core.Map _json) { |
3746 if (_json.containsKey("allocations")) { | 4685 if (_json.containsKey("allocations")) { |
3747 allocations = _json["allocations"]; | 4686 allocations = _json["allocations"]; |
3748 } | 4687 } |
3749 if (_json.containsKey("shardBy")) { | 4688 if (_json.containsKey("shardBy")) { |
(...skipping 15 matching lines...) Expand all Loading... |
3765 | 4704 |
3766 /** Rules to match an HTTP request and dispatch that request to a service. */ | 4705 /** Rules to match an HTTP request and dispatch that request to a service. */ |
3767 class UrlDispatchRule { | 4706 class UrlDispatchRule { |
3768 /** | 4707 /** |
3769 * Domain name to match against. The wildcard "*" is supported if specified | 4708 * Domain name to match against. The wildcard "*" is supported if specified |
3770 * before a period: "*.".Defaults to matching all domains: "*". | 4709 * before a period: "*.".Defaults to matching all domains: "*". |
3771 */ | 4710 */ |
3772 core.String domain; | 4711 core.String domain; |
3773 /** | 4712 /** |
3774 * Pathname within the host. Must start with a "/". A single "*" can be | 4713 * Pathname within the host. Must start with a "/". A single "*" can be |
3775 * included at the end of the path. The sum of the lengths of the domain and | 4714 * included at the end of the path.The sum of the lengths of the domain and |
3776 * path may not exceed 100 characters. | 4715 * path may not exceed 100 characters. |
3777 */ | 4716 */ |
3778 core.String path; | 4717 core.String path; |
3779 /** | 4718 /** |
3780 * Resource ID of a service in this application that should serve the matched | 4719 * Resource ID of a service in this application that should serve the matched |
3781 * request. The service must already exist. Example: default. | 4720 * request. The service must already exist. Example: default. |
3782 */ | 4721 */ |
3783 core.String service; | 4722 core.String service; |
3784 | 4723 |
3785 UrlDispatchRule(); | 4724 UrlDispatchRule(); |
(...skipping 30 matching lines...) Expand all Loading... |
3816 * handle URLs by executing application code or by serving static files uploaded | 4755 * handle URLs by executing application code or by serving static files uploaded |
3817 * with the version, such as images, CSS, or JavaScript. | 4756 * with the version, such as images, CSS, or JavaScript. |
3818 */ | 4757 */ |
3819 class UrlMap { | 4758 class UrlMap { |
3820 /** Uses API Endpoints to handle requests. */ | 4759 /** Uses API Endpoints to handle requests. */ |
3821 ApiEndpointHandler apiEndpoint; | 4760 ApiEndpointHandler apiEndpoint; |
3822 /** | 4761 /** |
3823 * Action to take when users access resources that require authentication. | 4762 * Action to take when users access resources that require authentication. |
3824 * Defaults to redirect. | 4763 * Defaults to redirect. |
3825 * Possible string values are: | 4764 * Possible string values are: |
3826 * - "AUTH_FAIL_ACTION_UNSPECIFIED" : Not specified. AUTH_FAIL_ACTION_REDIRECT | 4765 * - "AUTH_FAIL_ACTION_UNSPECIFIED" : A AUTH_FAIL_ACTION_UNSPECIFIED. |
3827 * is assumed. | 4766 * - "AUTH_FAIL_ACTION_REDIRECT" : A AUTH_FAIL_ACTION_REDIRECT. |
3828 * - "AUTH_FAIL_ACTION_REDIRECT" : Redirects user to "accounts.google.com". | 4767 * - "AUTH_FAIL_ACTION_UNAUTHORIZED" : A AUTH_FAIL_ACTION_UNAUTHORIZED. |
3829 * The user is redirected back to the application URL after signing in or | |
3830 * creating an account. | |
3831 * - "AUTH_FAIL_ACTION_UNAUTHORIZED" : Rejects request with a 401 HTTP status | |
3832 * code and an error message. | |
3833 */ | 4768 */ |
3834 core.String authFailAction; | 4769 core.String authFailAction; |
3835 /** | 4770 /** |
3836 * Level of login required to access this resource. | 4771 * Level of login required to access this resource. |
3837 * Possible string values are: | 4772 * Possible string values are: |
3838 * - "LOGIN_UNSPECIFIED" : Not specified. LOGIN_OPTIONAL is assumed. | 4773 * - "LOGIN_UNSPECIFIED" : A LOGIN_UNSPECIFIED. |
3839 * - "LOGIN_OPTIONAL" : Does not require that the user is signed in. | 4774 * - "LOGIN_OPTIONAL" : A LOGIN_OPTIONAL. |
3840 * - "LOGIN_ADMIN" : If the user is not signed in, the auth_fail_action is | 4775 * - "LOGIN_ADMIN" : A LOGIN_ADMIN. |
3841 * taken. In addition, if the user is not an administrator for the | 4776 * - "LOGIN_REQUIRED" : A LOGIN_REQUIRED. |
3842 * application, they are given an error message regardless of | |
3843 * auth_fail_action. If the user is an administrator, the handler proceeds. | |
3844 * - "LOGIN_REQUIRED" : If the user has signed in, the handler proceeds | |
3845 * normally. Otherwise, the auth_fail_action is taken. | |
3846 */ | 4777 */ |
3847 core.String login; | 4778 core.String login; |
3848 /** | 4779 /** |
3849 * 30x code to use when performing redirects for the secure field. Defaults to | 4780 * 30x code to use when performing redirects for the secure field. Defaults to |
3850 * 302. | 4781 * 302. |
3851 * Possible string values are: | 4782 * Possible string values are: |
3852 * - "REDIRECT_HTTP_RESPONSE_CODE_UNSPECIFIED" : Not specified. 302 is | 4783 * - "REDIRECT_HTTP_RESPONSE_CODE_UNSPECIFIED" : A |
3853 * assumed. | 4784 * REDIRECT_HTTP_RESPONSE_CODE_UNSPECIFIED. |
3854 * - "REDIRECT_HTTP_RESPONSE_CODE_301" : 301 Moved Permanently code. | 4785 * - "REDIRECT_HTTP_RESPONSE_CODE_301" : A REDIRECT_HTTP_RESPONSE_CODE_301. |
3855 * - "REDIRECT_HTTP_RESPONSE_CODE_302" : 302 Moved Temporarily code. | 4786 * - "REDIRECT_HTTP_RESPONSE_CODE_302" : A REDIRECT_HTTP_RESPONSE_CODE_302. |
3856 * - "REDIRECT_HTTP_RESPONSE_CODE_303" : 303 See Other code. | 4787 * - "REDIRECT_HTTP_RESPONSE_CODE_303" : A REDIRECT_HTTP_RESPONSE_CODE_303. |
3857 * - "REDIRECT_HTTP_RESPONSE_CODE_307" : 307 Temporary Redirect code. | 4788 * - "REDIRECT_HTTP_RESPONSE_CODE_307" : A REDIRECT_HTTP_RESPONSE_CODE_307. |
3858 */ | 4789 */ |
3859 core.String redirectHttpResponseCode; | 4790 core.String redirectHttpResponseCode; |
3860 /** Executes a script to handle the request that matches this URL pattern. */ | 4791 /** Executes a script to handle the request that matches this URL pattern. */ |
3861 ScriptHandler script; | 4792 ScriptHandler script; |
3862 /** | 4793 /** |
3863 * Security (HTTPS) enforcement for this URL. | 4794 * Security (HTTPS) enforcement for this URL. |
3864 * Possible string values are: | 4795 * Possible string values are: |
3865 * - "SECURE_UNSPECIFIED" : Not specified. | 4796 * - "SECURE_UNSPECIFIED" : A SECURE_UNSPECIFIED. |
3866 * - "SECURE_DEFAULT" : Both HTTP and HTTPS requests with URLs that match the | 4797 * - "SECURE_DEFAULT" : A SECURE_DEFAULT. |
3867 * handler succeed without redirects. The application can examine the request | 4798 * - "SECURE_NEVER" : A SECURE_NEVER. |
3868 * to determine which protocol was used, and respond accordingly. | 4799 * - "SECURE_OPTIONAL" : A SECURE_OPTIONAL. |
3869 * - "SECURE_NEVER" : Requests for a URL that match this handler that use | 4800 * - "SECURE_ALWAYS" : A SECURE_ALWAYS. |
3870 * HTTPS are automatically redirected to the HTTP equivalent URL. | |
3871 * - "SECURE_OPTIONAL" : Both HTTP and HTTPS requests with URLs that match the | |
3872 * handler succeed without redirects. The application can examine the request | |
3873 * to determine which protocol was used and respond accordingly. | |
3874 * - "SECURE_ALWAYS" : Requests for a URL that match this handler that do not | |
3875 * use HTTPS are automatically redirected to the HTTPS URL with the same path. | |
3876 * Query parameters are reserved for the redirect. | |
3877 */ | 4801 */ |
3878 core.String securityLevel; | 4802 core.String securityLevel; |
3879 /** Returns the contents of a file, such as an image, as the response. */ | 4803 /** Returns the contents of a file, such as an image, as the response. */ |
3880 StaticFilesHandler staticFiles; | 4804 StaticFilesHandler staticFiles; |
3881 /** | 4805 /** |
3882 * URL prefix. Uses regular expression syntax, which means regexp special | 4806 * URL prefix. Uses regular expression syntax, which means regexp special |
3883 * characters must be escaped, but should not contain groupings. All URLs that | 4807 * characters must be escaped, but should not contain groupings. All URLs that |
3884 * begin with this prefix are handled by this handler, using the portion of | 4808 * begin with this prefix are handled by this handler, using the portion of |
3885 * the URL after the prefix as part of the file path. | 4809 * the URL after the prefix as part of the file path. |
3886 */ | 4810 */ |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4034 * "default", "latest", and any name with the prefix "ah-". | 4958 * "default", "latest", and any name with the prefix "ah-". |
4035 */ | 4959 */ |
4036 core.String id; | 4960 core.String id; |
4037 /** | 4961 /** |
4038 * Before an application can receive email or XMPP messages, the application | 4962 * Before an application can receive email or XMPP messages, the application |
4039 * must be configured to enable the service. | 4963 * must be configured to enable the service. |
4040 */ | 4964 */ |
4041 core.List<core.String> inboundServices; | 4965 core.List<core.String> inboundServices; |
4042 /** | 4966 /** |
4043 * Instance class that is used to run this version. Valid values are: | 4967 * Instance class that is used to run this version. Valid values are: |
4044 * AutomaticScaling: F1, F2, F4, F4_1G | 4968 * AutomaticScaling: F1, F2, F4, F4_1G ManualScaling or BasicScaling: B1, B2, |
4045 * ManualScaling or BasicScaling: B1, B2, B4, B8, B4_1GDefaults to F1 for | 4969 * B4, B8, B4_1GDefaults to F1 for AutomaticScaling and B1 for ManualScaling |
4046 * AutomaticScaling and B1 for ManualScaling or BasicScaling. | 4970 * or BasicScaling. |
4047 */ | 4971 */ |
4048 core.String instanceClass; | 4972 core.String instanceClass; |
4049 /** | 4973 /** |
4050 * Configuration for third-party Python runtime libraries that are required by | 4974 * Configuration for third-party Python runtime libraries that are required by |
4051 * the application.Only returned in GET requests if view=FULL is set. | 4975 * the application.Only returned in GET requests if view=FULL is set. |
4052 */ | 4976 */ |
4053 core.List<Library> libraries; | 4977 core.List<Library> libraries; |
4054 /** | 4978 /** |
4055 * Configures liveness health checking for VM instances. Unhealthy instances | 4979 * Configures liveness health checking for VM instances. Unhealthy instances |
4056 * are stopped and replaced with new instancesOnly returned in GET requests if | 4980 * are stopped and replaced with new instancesOnly returned in GET requests if |
(...skipping 26 matching lines...) Expand all Loading... |
4083 ReadinessCheck readinessCheck; | 5007 ReadinessCheck readinessCheck; |
4084 /** Machine resources for this version. Only applicable for VM runtimes. */ | 5008 /** Machine resources for this version. Only applicable for VM runtimes. */ |
4085 Resources resources; | 5009 Resources resources; |
4086 /** Desired runtime. Example: python27. */ | 5010 /** Desired runtime. Example: python27. */ |
4087 core.String runtime; | 5011 core.String runtime; |
4088 /** | 5012 /** |
4089 * Current serving status of this version. Only the versions with a SERVING | 5013 * Current serving status of this version. Only the versions with a SERVING |
4090 * status create instances and can be billed.SERVING_STATUS_UNSPECIFIED is an | 5014 * status create instances and can be billed.SERVING_STATUS_UNSPECIFIED is an |
4091 * invalid value. Defaults to SERVING. | 5015 * invalid value. Defaults to SERVING. |
4092 * Possible string values are: | 5016 * Possible string values are: |
4093 * - "SERVING_STATUS_UNSPECIFIED" : Not specified. | 5017 * - "SERVING_STATUS_UNSPECIFIED" : A SERVING_STATUS_UNSPECIFIED. |
4094 * - "SERVING" : Currently serving. Instances are created according to the | 5018 * - "SERVING" : A SERVING. |
4095 * scaling settings of the version. | 5019 * - "STOPPED" : A STOPPED. |
4096 * - "STOPPED" : Disabled. No instances will be created and the scaling | |
4097 * settings are ignored until the state of the version changes to SERVING. | |
4098 */ | 5020 */ |
4099 core.String servingStatus; | 5021 core.String servingStatus; |
4100 /** Whether multiple requests can be dispatched to this version at once. */ | 5022 /** Whether multiple requests can be dispatched to this version at once. */ |
4101 core.bool threadsafe; | 5023 core.bool threadsafe; |
4102 /** | 5024 /** |
4103 * Serving URL for this version. Example: | 5025 * Serving URL for this version. Example: |
4104 * "https://myversion-dot-myservice-dot-myapp.appspot.com"@OutputOnly | 5026 * "https://myversion-dot-myservice-dot-myapp.appspot.com"@OutputOnly |
4105 */ | 5027 */ |
4106 core.String versionUrl; | 5028 core.String versionUrl; |
4107 /** Whether to deploy this version in a container on a virtual machine. */ | 5029 /** Whether to deploy this version in a container on a virtual machine. */ |
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4347 /** The zip file information for a zip deployment. */ | 5269 /** The zip file information for a zip deployment. */ |
4348 class ZipInfo { | 5270 class ZipInfo { |
4349 /** | 5271 /** |
4350 * An estimate of the number of files in a zip for a zip deployment. If set, | 5272 * An estimate of the number of files in a zip for a zip deployment. If set, |
4351 * must be greater than or equal to the actual number of files. Used for | 5273 * must be greater than or equal to the actual number of files. Used for |
4352 * optimizing performance; if not provided, deployment may be slow. | 5274 * optimizing performance; if not provided, deployment may be slow. |
4353 */ | 5275 */ |
4354 core.int filesCount; | 5276 core.int filesCount; |
4355 /** | 5277 /** |
4356 * URL of the zip file to deploy from. Must be a URL to a resource in Google | 5278 * URL of the zip file to deploy from. Must be a URL to a resource in Google |
4357 * Cloud Storage in the form | 5279 * Cloud Storage in the form 'http(s)://storage.googleapis.com//'. |
4358 * 'http(s)://storage.googleapis.com/<bucket>/<object>'. | |
4359 */ | 5280 */ |
4360 core.String sourceUrl; | 5281 core.String sourceUrl; |
4361 | 5282 |
4362 ZipInfo(); | 5283 ZipInfo(); |
4363 | 5284 |
4364 ZipInfo.fromJson(core.Map _json) { | 5285 ZipInfo.fromJson(core.Map _json) { |
4365 if (_json.containsKey("filesCount")) { | 5286 if (_json.containsKey("filesCount")) { |
4366 filesCount = _json["filesCount"]; | 5287 filesCount = _json["filesCount"]; |
4367 } | 5288 } |
4368 if (_json.containsKey("sourceUrl")) { | 5289 if (_json.containsKey("sourceUrl")) { |
4369 sourceUrl = _json["sourceUrl"]; | 5290 sourceUrl = _json["sourceUrl"]; |
4370 } | 5291 } |
4371 } | 5292 } |
4372 | 5293 |
4373 core.Map toJson() { | 5294 core.Map toJson() { |
4374 var _json = new core.Map(); | 5295 var _json = new core.Map(); |
4375 if (filesCount != null) { | 5296 if (filesCount != null) { |
4376 _json["filesCount"] = filesCount; | 5297 _json["filesCount"] = filesCount; |
4377 } | 5298 } |
4378 if (sourceUrl != null) { | 5299 if (sourceUrl != null) { |
4379 _json["sourceUrl"] = sourceUrl; | 5300 _json["sourceUrl"] = sourceUrl; |
4380 } | 5301 } |
4381 return _json; | 5302 return _json; |
4382 } | 5303 } |
4383 } | 5304 } |
OLD | NEW |