| 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.v1beta4; | 3 library googleapis_beta.appengine.v1beta4; |
| 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 515 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 526 var _response = _requester.request(_url, | 526 var _response = _requester.request(_url, |
| 527 "GET", | 527 "GET", |
| 528 body: _body, | 528 body: _body, |
| 529 queryParams: _queryParams, | 529 queryParams: _queryParams, |
| 530 uploadOptions: _uploadOptions, | 530 uploadOptions: _uploadOptions, |
| 531 uploadMedia: _uploadMedia, | 531 uploadMedia: _uploadMedia, |
| 532 downloadOptions: _downloadOptions); | 532 downloadOptions: _downloadOptions); |
| 533 return _response.then((data) => new ListVersionsResponse.fromJson(data)); | 533 return _response.then((data) => new ListVersionsResponse.fromJson(data)); |
| 534 } | 534 } |
| 535 | 535 |
| 536 /** |
| 537 * Updates an existing version. Note: UNIMPLEMENTED. |
| 538 * |
| 539 * [request] - The metadata request object. |
| 540 * |
| 541 * Request parameters: |
| 542 * |
| 543 * [appsId] - Part of `name`. Name of the resource to update. For example: |
| 544 * "apps/myapp/modules/default/versions/1". |
| 545 * |
| 546 * [modulesId] - Part of `name`. See documentation of `appsId`. |
| 547 * |
| 548 * [versionsId] - Part of `name`. See documentation of `appsId`. |
| 549 * |
| 550 * [mask] - Standard field mask for the set of fields to be updated. |
| 551 * |
| 552 * Completes with a [Operation]. |
| 553 * |
| 554 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 555 * error. |
| 556 * |
| 557 * If the used [http.Client] completes with an error when making a REST call, |
| 558 * this method will complete with the same error. |
| 559 */ |
| 560 async.Future<Operation> patch(Version request, core.String appsId, core.String
modulesId, core.String versionsId, {core.String mask}) { |
| 561 var _url = null; |
| 562 var _queryParams = new core.Map(); |
| 563 var _uploadMedia = null; |
| 564 var _uploadOptions = null; |
| 565 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 566 var _body = null; |
| 567 |
| 568 if (request != null) { |
| 569 _body = convert.JSON.encode((request).toJson()); |
| 570 } |
| 571 if (appsId == null) { |
| 572 throw new core.ArgumentError("Parameter appsId is required."); |
| 573 } |
| 574 if (modulesId == null) { |
| 575 throw new core.ArgumentError("Parameter modulesId is required."); |
| 576 } |
| 577 if (versionsId == null) { |
| 578 throw new core.ArgumentError("Parameter versionsId is required."); |
| 579 } |
| 580 if (mask != null) { |
| 581 _queryParams["mask"] = [mask]; |
| 582 } |
| 583 |
| 584 _url = 'v1beta4/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/module
s/' + commons.Escaper.ecapeVariable('$modulesId') + '/versions/' + commons.Escap
er.ecapeVariable('$versionsId'); |
| 585 |
| 586 var _response = _requester.request(_url, |
| 587 "PATCH", |
| 588 body: _body, |
| 589 queryParams: _queryParams, |
| 590 uploadOptions: _uploadOptions, |
| 591 uploadMedia: _uploadMedia, |
| 592 downloadOptions: _downloadOptions); |
| 593 return _response.then((data) => new Operation.fromJson(data)); |
| 594 } |
| 595 |
| 536 } | 596 } |
| 537 | 597 |
| 538 | 598 |
| 539 class AppsOperationsResourceApi { | 599 class AppsOperationsResourceApi { |
| 540 final commons.ApiRequester _requester; | 600 final commons.ApiRequester _requester; |
| 541 | 601 |
| 542 AppsOperationsResourceApi(commons.ApiRequester client) : | 602 AppsOperationsResourceApi(commons.ApiRequester client) : |
| 543 _requester = client; | 603 _requester = client; |
| 544 | 604 |
| 545 /** | 605 /** |
| (...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 747 return _json; | 807 return _json; |
| 748 } | 808 } |
| 749 } | 809 } |
| 750 | 810 |
| 751 /** | 811 /** |
| 752 * An Application contains the top-level configuration of an App Engine | 812 * An Application contains the top-level configuration of an App Engine |
| 753 * application. | 813 * application. |
| 754 */ | 814 */ |
| 755 class Application { | 815 class Application { |
| 756 /** | 816 /** |
| 817 * If set, only users from the specified Google Apps authentication domain may |
| 818 * access the application. If not set, any Google Account may access the |
| 819 * application. |
| 820 */ |
| 821 core.String authDomain; |
| 822 /** |
| 757 * A Google Cloud Storage bucket which can be used for storing files | 823 * A Google Cloud Storage bucket which can be used for storing files |
| 758 * associated with an application. This bucket is associated with the | 824 * associated with an application. This bucket is associated with the |
| 759 * application and can be used by the gcloud deployment commands. @OutputOnly | 825 * application and can be used by the gcloud deployment commands. @OutputOnly |
| 760 */ | 826 */ |
| 761 core.String codeBucket; | 827 core.String codeBucket; |
| 762 /** | 828 /** |
| 763 * A Google Cloud Storage bucket which can be used by the application to store | 829 * A Google Cloud Storage bucket which can be used by the application to store |
| 764 * content. @OutputOnly | 830 * content. @OutputOnly |
| 765 */ | 831 */ |
| 766 core.String defaultBucket; | 832 core.String defaultBucket; |
| 833 /** Determines the cookie expiration policy for the application. */ |
| 834 core.String defaultCookieExpiration; |
| 835 /** |
| 836 * The hostname used to reach the application, as resolved by App Engine. |
| 837 * @OutputOnly |
| 838 */ |
| 839 core.String defaultHostname; |
| 767 /** | 840 /** |
| 768 * HTTP path dispatch rules for requests to the app that do not explicitly | 841 * HTTP path dispatch rules for requests to the app that do not explicitly |
| 769 * target a module or version. The rules are order-dependent. | 842 * target a module or version. The rules are order-dependent. |
| 770 */ | 843 */ |
| 771 core.List<UrlDispatchRule> dispatchRules; | 844 core.List<UrlDispatchRule> dispatchRules; |
| 772 /** | 845 /** The relative name/path of the application. Example: "myapp". */ |
| 773 * The relative name/path of the application. Example: "myapp". @OutputOnly | |
| 774 */ | |
| 775 core.String id; | 846 core.String id; |
| 776 /** | 847 /** |
| 777 * The location from which the application will be run. Choices are | 848 * The location from which the application will be run. Choices are |
| 778 * "us-central" for United States and "europe-west" for European Union. | 849 * "us-central" for United States and "europe-west" for European Union. |
| 779 * Application instances will run out of data centers in the chosen location | 850 * Application instances will run out of data centers in the chosen location |
| 780 * and all of the application's End User Content will be stored at rest in the | 851 * and all of the application's End User Content will be stored at rest in the |
| 781 * chosen location. The default is "us-central". | 852 * chosen location. The default is "us-central". |
| 782 */ | 853 */ |
| 783 core.String location; | 854 core.String location; |
| 784 /** | 855 /** |
| 785 * The full path to the application in the API. Example: "apps/myapp". | 856 * The full path to the application in the API. Example: "apps/myapp". |
| 786 * @OutputOnly | 857 * @OutputOnly |
| 787 */ | 858 */ |
| 788 core.String name; | 859 core.String name; |
| 789 | 860 |
| 790 Application(); | 861 Application(); |
| 791 | 862 |
| 792 Application.fromJson(core.Map _json) { | 863 Application.fromJson(core.Map _json) { |
| 864 if (_json.containsKey("authDomain")) { |
| 865 authDomain = _json["authDomain"]; |
| 866 } |
| 793 if (_json.containsKey("codeBucket")) { | 867 if (_json.containsKey("codeBucket")) { |
| 794 codeBucket = _json["codeBucket"]; | 868 codeBucket = _json["codeBucket"]; |
| 795 } | 869 } |
| 796 if (_json.containsKey("defaultBucket")) { | 870 if (_json.containsKey("defaultBucket")) { |
| 797 defaultBucket = _json["defaultBucket"]; | 871 defaultBucket = _json["defaultBucket"]; |
| 798 } | 872 } |
| 873 if (_json.containsKey("defaultCookieExpiration")) { |
| 874 defaultCookieExpiration = _json["defaultCookieExpiration"]; |
| 875 } |
| 876 if (_json.containsKey("defaultHostname")) { |
| 877 defaultHostname = _json["defaultHostname"]; |
| 878 } |
| 799 if (_json.containsKey("dispatchRules")) { | 879 if (_json.containsKey("dispatchRules")) { |
| 800 dispatchRules = _json["dispatchRules"].map((value) => new UrlDispatchRule.
fromJson(value)).toList(); | 880 dispatchRules = _json["dispatchRules"].map((value) => new UrlDispatchRule.
fromJson(value)).toList(); |
| 801 } | 881 } |
| 802 if (_json.containsKey("id")) { | 882 if (_json.containsKey("id")) { |
| 803 id = _json["id"]; | 883 id = _json["id"]; |
| 804 } | 884 } |
| 805 if (_json.containsKey("location")) { | 885 if (_json.containsKey("location")) { |
| 806 location = _json["location"]; | 886 location = _json["location"]; |
| 807 } | 887 } |
| 808 if (_json.containsKey("name")) { | 888 if (_json.containsKey("name")) { |
| 809 name = _json["name"]; | 889 name = _json["name"]; |
| 810 } | 890 } |
| 811 } | 891 } |
| 812 | 892 |
| 813 core.Map toJson() { | 893 core.Map toJson() { |
| 814 var _json = new core.Map(); | 894 var _json = new core.Map(); |
| 895 if (authDomain != null) { |
| 896 _json["authDomain"] = authDomain; |
| 897 } |
| 815 if (codeBucket != null) { | 898 if (codeBucket != null) { |
| 816 _json["codeBucket"] = codeBucket; | 899 _json["codeBucket"] = codeBucket; |
| 817 } | 900 } |
| 818 if (defaultBucket != null) { | 901 if (defaultBucket != null) { |
| 819 _json["defaultBucket"] = defaultBucket; | 902 _json["defaultBucket"] = defaultBucket; |
| 820 } | 903 } |
| 904 if (defaultCookieExpiration != null) { |
| 905 _json["defaultCookieExpiration"] = defaultCookieExpiration; |
| 906 } |
| 907 if (defaultHostname != null) { |
| 908 _json["defaultHostname"] = defaultHostname; |
| 909 } |
| 821 if (dispatchRules != null) { | 910 if (dispatchRules != null) { |
| 822 _json["dispatchRules"] = dispatchRules.map((value) => (value).toJson()).to
List(); | 911 _json["dispatchRules"] = dispatchRules.map((value) => (value).toJson()).to
List(); |
| 823 } | 912 } |
| 824 if (id != null) { | 913 if (id != null) { |
| 825 _json["id"] = id; | 914 _json["id"] = id; |
| 826 } | 915 } |
| 827 if (location != null) { | 916 if (location != null) { |
| 828 _json["location"] = location; | 917 _json["location"] = location; |
| 829 } | 918 } |
| 830 if (name != null) { | 919 if (name != null) { |
| (...skipping 1949 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2780 } | 2869 } |
| 2781 if (threadsafe != null) { | 2870 if (threadsafe != null) { |
| 2782 _json["threadsafe"] = threadsafe; | 2871 _json["threadsafe"] = threadsafe; |
| 2783 } | 2872 } |
| 2784 if (vm != null) { | 2873 if (vm != null) { |
| 2785 _json["vm"] = vm; | 2874 _json["vm"] = vm; |
| 2786 } | 2875 } |
| 2787 return _json; | 2876 return _json; |
| 2788 } | 2877 } |
| 2789 } | 2878 } |
| OLD | NEW |