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.androidpublisher.v2; | 3 library googleapis.androidpublisher.v2; |
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 22 matching lines...) Loading... |
33 AndroidpublisherApi(http.Client client, {core.String rootUrl: "https://www.goo
gleapis.com/", core.String servicePath: "androidpublisher/v2/applications/"}) : | 33 AndroidpublisherApi(http.Client client, {core.String rootUrl: "https://www.goo
gleapis.com/", core.String servicePath: "androidpublisher/v2/applications/"}) : |
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 EditsResourceApi { | 38 class EditsResourceApi { |
39 final commons.ApiRequester _requester; | 39 final commons.ApiRequester _requester; |
40 | 40 |
41 EditsApklistingsResourceApi get apklistings => new EditsApklistingsResourceApi
(_requester); | 41 EditsApklistingsResourceApi get apklistings => new EditsApklistingsResourceApi
(_requester); |
42 EditsApksResourceApi get apks => new EditsApksResourceApi(_requester); | 42 EditsApksResourceApi get apks => new EditsApksResourceApi(_requester); |
| 43 EditsDeobfuscationfilesResourceApi get deobfuscationfiles => new EditsDeobfusc
ationfilesResourceApi(_requester); |
43 EditsDetailsResourceApi get details => new EditsDetailsResourceApi(_requester)
; | 44 EditsDetailsResourceApi get details => new EditsDetailsResourceApi(_requester)
; |
44 EditsExpansionfilesResourceApi get expansionfiles => new EditsExpansionfilesRe
sourceApi(_requester); | 45 EditsExpansionfilesResourceApi get expansionfiles => new EditsExpansionfilesRe
sourceApi(_requester); |
45 EditsImagesResourceApi get images => new EditsImagesResourceApi(_requester); | 46 EditsImagesResourceApi get images => new EditsImagesResourceApi(_requester); |
46 EditsListingsResourceApi get listings => new EditsListingsResourceApi(_request
er); | 47 EditsListingsResourceApi get listings => new EditsListingsResourceApi(_request
er); |
47 EditsTestersResourceApi get testers => new EditsTestersResourceApi(_requester)
; | 48 EditsTestersResourceApi get testers => new EditsTestersResourceApi(_requester)
; |
48 EditsTracksResourceApi get tracks => new EditsTracksResourceApi(_requester); | 49 EditsTracksResourceApi get tracks => new EditsTracksResourceApi(_requester); |
49 | 50 |
50 EditsResourceApi(commons.ApiRequester client) : | 51 EditsResourceApi(commons.ApiRequester client) : |
51 _requester = client; | 52 _requester = client; |
52 | 53 |
(...skipping 742 matching lines...) Loading... |
795 queryParams: _queryParams, | 796 queryParams: _queryParams, |
796 uploadOptions: _uploadOptions, | 797 uploadOptions: _uploadOptions, |
797 uploadMedia: _uploadMedia, | 798 uploadMedia: _uploadMedia, |
798 downloadOptions: _downloadOptions); | 799 downloadOptions: _downloadOptions); |
799 return _response.then((data) => new Apk.fromJson(data)); | 800 return _response.then((data) => new Apk.fromJson(data)); |
800 } | 801 } |
801 | 802 |
802 } | 803 } |
803 | 804 |
804 | 805 |
| 806 class EditsDeobfuscationfilesResourceApi { |
| 807 final commons.ApiRequester _requester; |
| 808 |
| 809 EditsDeobfuscationfilesResourceApi(commons.ApiRequester client) : |
| 810 _requester = client; |
| 811 |
| 812 /** |
| 813 * Uploads the deobfuscation file of the specified APK. If a deobfuscation |
| 814 * file already exists, it will be replaced. |
| 815 * |
| 816 * Request parameters: |
| 817 * |
| 818 * [packageName] - Unique identifier of the Android app for which the |
| 819 * deobfuscatiuon files are being uploaded; for example, "com.spiffygame". |
| 820 * |
| 821 * [editId] - Unique identifier for this edit. |
| 822 * |
| 823 * [apkVersionCode] - The version code of the APK whose deobfuscation file is |
| 824 * being uploaded. |
| 825 * |
| 826 * [deobfuscationFileType] - null |
| 827 * Possible string values are: |
| 828 * - "proguard" |
| 829 * |
| 830 * [uploadMedia] - The media to upload. |
| 831 * |
| 832 * [uploadOptions] - Options for the media upload. Streaming Media without the |
| 833 * length being known ahead of time is only supported via resumable uploads. |
| 834 * |
| 835 * Completes with a [DeobfuscationFilesUploadResponse]. |
| 836 * |
| 837 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 838 * error. |
| 839 * |
| 840 * If the used [http.Client] completes with an error when making a REST call, |
| 841 * this method will complete with the same error. |
| 842 */ |
| 843 async.Future<DeobfuscationFilesUploadResponse> upload(core.String packageName,
core.String editId, core.int apkVersionCode, core.String deobfuscationFileType,
{commons.UploadOptions uploadOptions : commons.UploadOptions.Default, commons.M
edia uploadMedia}) { |
| 844 var _url = null; |
| 845 var _queryParams = new core.Map(); |
| 846 var _uploadMedia = null; |
| 847 var _uploadOptions = null; |
| 848 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 849 var _body = null; |
| 850 |
| 851 if (packageName == null) { |
| 852 throw new core.ArgumentError("Parameter packageName is required."); |
| 853 } |
| 854 if (editId == null) { |
| 855 throw new core.ArgumentError("Parameter editId is required."); |
| 856 } |
| 857 if (apkVersionCode == null) { |
| 858 throw new core.ArgumentError("Parameter apkVersionCode is required."); |
| 859 } |
| 860 if (deobfuscationFileType == null) { |
| 861 throw new core.ArgumentError("Parameter deobfuscationFileType is required.
"); |
| 862 } |
| 863 |
| 864 _uploadMedia = uploadMedia; |
| 865 _uploadOptions = uploadOptions; |
| 866 |
| 867 if (_uploadMedia == null) { |
| 868 _url = commons.Escaper.ecapeVariable('$packageName') + '/edits/' + commons
.Escaper.ecapeVariable('$editId') + '/apks/' + commons.Escaper.ecapeVariable('$a
pkVersionCode') + '/deobfuscationFiles/' + commons.Escaper.ecapeVariable('$deobf
uscationFileType'); |
| 869 } else if (_uploadOptions is commons.ResumableUploadOptions) { |
| 870 _url = '/resumable/upload/androidpublisher/v2/applications/' + commons.Esc
aper.ecapeVariable('$packageName') + '/edits/' + commons.Escaper.ecapeVariable('
$editId') + '/apks/' + commons.Escaper.ecapeVariable('$apkVersionCode') + '/deob
fuscationFiles/' + commons.Escaper.ecapeVariable('$deobfuscationFileType'); |
| 871 } else { |
| 872 _url = '/upload/androidpublisher/v2/applications/' + commons.Escaper.ecape
Variable('$packageName') + '/edits/' + commons.Escaper.ecapeVariable('$editId')
+ '/apks/' + commons.Escaper.ecapeVariable('$apkVersionCode') + '/deobfuscationF
iles/' + commons.Escaper.ecapeVariable('$deobfuscationFileType'); |
| 873 } |
| 874 |
| 875 |
| 876 var _response = _requester.request(_url, |
| 877 "POST", |
| 878 body: _body, |
| 879 queryParams: _queryParams, |
| 880 uploadOptions: _uploadOptions, |
| 881 uploadMedia: _uploadMedia, |
| 882 downloadOptions: _downloadOptions); |
| 883 return _response.then((data) => new DeobfuscationFilesUploadResponse.fromJso
n(data)); |
| 884 } |
| 885 |
| 886 } |
| 887 |
| 888 |
805 class EditsDetailsResourceApi { | 889 class EditsDetailsResourceApi { |
806 final commons.ApiRequester _requester; | 890 final commons.ApiRequester _requester; |
807 | 891 |
808 EditsDetailsResourceApi(commons.ApiRequester client) : | 892 EditsDetailsResourceApi(commons.ApiRequester client) : |
809 _requester = client; | 893 _requester = client; |
810 | 894 |
811 /** | 895 /** |
812 * Fetches app details for this edit. This includes the default language and | 896 * Fetches app details for this edit. This includes the default language and |
813 * developer support contact information. | 897 * developer support contact information. |
814 * | 898 * |
(...skipping 2675 matching lines...) Loading... |
3490 if (developerComment != null) { | 3574 if (developerComment != null) { |
3491 _json["developerComment"] = (developerComment).toJson(); | 3575 _json["developerComment"] = (developerComment).toJson(); |
3492 } | 3576 } |
3493 if (userComment != null) { | 3577 if (userComment != null) { |
3494 _json["userComment"] = (userComment).toJson(); | 3578 _json["userComment"] = (userComment).toJson(); |
3495 } | 3579 } |
3496 return _json; | 3580 return _json; |
3497 } | 3581 } |
3498 } | 3582 } |
3499 | 3583 |
| 3584 /** Represents a deobfuscation file. */ |
| 3585 class DeobfuscationFile { |
| 3586 /** The type of the deobfuscation file. */ |
| 3587 core.String symbolType; |
| 3588 |
| 3589 DeobfuscationFile(); |
| 3590 |
| 3591 DeobfuscationFile.fromJson(core.Map _json) { |
| 3592 if (_json.containsKey("symbolType")) { |
| 3593 symbolType = _json["symbolType"]; |
| 3594 } |
| 3595 } |
| 3596 |
| 3597 core.Map toJson() { |
| 3598 var _json = new core.Map(); |
| 3599 if (symbolType != null) { |
| 3600 _json["symbolType"] = symbolType; |
| 3601 } |
| 3602 return _json; |
| 3603 } |
| 3604 } |
| 3605 |
| 3606 class DeobfuscationFilesUploadResponse { |
| 3607 DeobfuscationFile deobfuscationFile; |
| 3608 |
| 3609 DeobfuscationFilesUploadResponse(); |
| 3610 |
| 3611 DeobfuscationFilesUploadResponse.fromJson(core.Map _json) { |
| 3612 if (_json.containsKey("deobfuscationFile")) { |
| 3613 deobfuscationFile = new DeobfuscationFile.fromJson(_json["deobfuscationFil
e"]); |
| 3614 } |
| 3615 } |
| 3616 |
| 3617 core.Map toJson() { |
| 3618 var _json = new core.Map(); |
| 3619 if (deobfuscationFile != null) { |
| 3620 _json["deobfuscationFile"] = (deobfuscationFile).toJson(); |
| 3621 } |
| 3622 return _json; |
| 3623 } |
| 3624 } |
| 3625 |
3500 class DeveloperComment { | 3626 class DeveloperComment { |
3501 /** The last time at which this comment was updated. */ | 3627 /** The last time at which this comment was updated. */ |
3502 Timestamp lastModified; | 3628 Timestamp lastModified; |
3503 /** The content of the comment, i.e. reply body. */ | 3629 /** The content of the comment, i.e. reply body. */ |
3504 core.String text; | 3630 core.String text; |
3505 | 3631 |
3506 DeveloperComment(); | 3632 DeveloperComment(); |
3507 | 3633 |
3508 DeveloperComment.fromJson(core.Map _json) { | 3634 DeveloperComment.fromJson(core.Map _json) { |
3509 if (_json.containsKey("lastModified")) { | 3635 if (_json.containsKey("lastModified")) { |
(...skipping 1772 matching lines...) Loading... |
5282 } | 5408 } |
5283 if (starRating != null) { | 5409 if (starRating != null) { |
5284 _json["starRating"] = starRating; | 5410 _json["starRating"] = starRating; |
5285 } | 5411 } |
5286 if (text != null) { | 5412 if (text != null) { |
5287 _json["text"] = text; | 5413 _json["text"] = text; |
5288 } | 5414 } |
5289 return _json; | 5415 return _json; |
5290 } | 5416 } |
5291 } | 5417 } |
OLD | NEW |