forked from Azure/autorest.java
-
Notifications
You must be signed in to change notification settings - Fork 1
/
generate-android.bat
154 lines (154 loc) · 8.67 KB
/
generate-android.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
ECHO OFF
set AZURE_ARGUMENTS=--version=3.1.3 --android --v4 --java --use:. --output-folder=android-tests\app --sync-methods=all --generate-client-as-impl=true --generate-sync-async-clients=true
set INPUTSOURCE=https://raw.githubusercontent.com/Azure/autorest.testserver/master/swagger
set NAMESPACE=com.azure.androidtest
ECHO =======================
set INPUTFILE=%INPUTSOURCE%/additionalProperties.json
ECHO %INPUTFILE%
call autorest %AZURE_ARGUMENTS% --input-file=%INPUTFILE% --namespace=%NAMESPACE%.fixtures.additionalproperties --payload-flattening-threshold=1
ECHO =======================
set INPUTFILE=%INPUTSOURCE%/body-array.json
ECHO %INPUTFILE%
call autorest %AZURE_ARGUMENTS% --input-file=%INPUTFILE% --namespace=%NAMESPACE%.fixtures.bodyarray --payload-flattening-threshold=1
ECHO =======================
set INPUTFILE=%INPUTSOURCE%/body-boolean.json
ECHO %INPUTFILE%
call autorest %AZURE_ARGUMENTS% --input-file=%INPUTFILE% --namespace=%NAMESPACE%.fixtures.bodyboolean --payload-flattening-threshold=1
ECHO =======================
set INPUTFILE=%INPUTSOURCE%/body-boolean.quirks.json
ECHO %INPUTFILE%
call autorest %AZURE_ARGUMENTS% --input-file=%INPUTFILE% --namespace=%NAMESPACE%.fixtures.bodybooleanquirks --payload-flattening-threshold=1
ECHO =======================
set INPUTFILE=%INPUTSOURCE%/body-complex.json
ECHO %INPUTFILE%
REM "Require byte[] clone from android core"
REM call autorest %AZURE_ARGUMENTS% --input-file=%INPUTFILE% --namespace=%NAMESPACE%.fixtures.bodycomplex --payload-flattening-threshold=1
ECHO =======================
set INPUTFILE=%INPUTSOURCE%/body-file.json
ECHO %INPUTFILE%
REM "Null pointer exception, should be fixable"
REM call autorest %AZURE_ARGUMENTS% --input-file=%INPUTFILE% --namespace=%NAMESPACE%.fixtures.bodyfile --payload-flattening-threshold=1
ECHO =======================
set INPUTFILE=%INPUTSOURCE%/body-string.json
ECHO %INPUTFILE%
call autorest %AZURE_ARGUMENTS% --input-file=%INPUTFILE% --namespace=%NAMESPACE%.fixtures.bodystring --payload-flattening-threshold=1
ECHO =======================
set INPUTFILE=%INPUTSOURCE%/custom-baseUrl.json
ECHO %INPUTFILE%
call autorest %AZURE_ARGUMENTS% --input-file=%INPUTFILE% --namespace=%NAMESPACE%.fixtures.custombaseurl --payload-flattening-threshold=1
ECHO =======================
set INPUTFILE=%INPUTSOURCE%/custom-baseUrl-more-options.json
ECHO %INPUTFILE%
call autorest %AZURE_ARGUMENTS% --input-file=%INPUTFILE% --namespace=%NAMESPACE%.fixtures.custombaseurlmoreoptions --payload-flattening-threshold=1
ECHO =======================
set INPUTFILE=%INPUTSOURCE%/head.json
ECHO %INPUTFILE%
call autorest %AZURE_ARGUMENTS% --input-file=%INPUTFILE% --namespace=%NAMESPACE%.fixtures.head --payload-flattening-threshold=1
ECHO =======================
set INPUTFILE=%INPUTSOURCE%/head-exceptions.json
ECHO %INPUTFILE%
call autorest %AZURE_ARGUMENTS% --input-file=%INPUTFILE% --namespace=%NAMESPACE%.fixtures.headexceptions --payload-flattening-threshold=1
ECHO =======================
set INPUTFILE=%INPUTSOURCE%/header.json
ECHO %INPUTFILE%
REM "Requires byte[] clone from android core"
REM call autorest %AZURE_ARGUMENTS% --input-file=%INPUTFILE% --namespace=%NAMESPACE%.fixtures.header --payload-flattening-threshold=1
ECHO =======================
set INPUTFILE=%INPUTSOURCE%/body-dictionary.json
ECHO %INPUTFILE%
call autorest %AZURE_ARGUMENTS% --input-file=%INPUTFILE% --namespace=%NAMESPACE%.fixtures.bodydictionary --payload-flattening-threshold=1
ECHO =======================
set INPUTFILE=%INPUTSOURCE%/body-duration.json
ECHO %INPUTFILE%
call autorest %AZURE_ARGUMENTS% --input-file=%INPUTFILE% --namespace=%NAMESPACE%.fixtures.bodyduration --payload-flattening-threshold=1
ECHO =======================
set INPUTFILE=%INPUTSOURCE%/body-integer.json
ECHO %INPUTFILE%
call autorest %AZURE_ARGUMENTS% --input-file=%INPUTFILE% --namespace=%NAMESPACE%.fixtures.bodyinteger --payload-flattening-threshold=1
ECHO =======================
set INPUTFILE=%INPUTSOURCE%/body-number.json
ECHO %INPUTFILE%
call autorest %AZURE_ARGUMENTS% --input-file=%INPUTFILE% --namespace=%NAMESPACE%.fixtures.bodynumber --payload-flattening-threshold=1
ECHO =======================
set INPUTFILE=%INPUTSOURCE%/httpInfrastructure.json
ECHO %INPUTFILE%
call autorest %AZURE_ARGUMENTS% --input-file=%INPUTFILE% --namespace=%NAMESPACE%.fixtures.httpinfrastructure --payload-flattening-threshold=1
ECHO =======================
set INPUTFILE=%INPUTSOURCE%/body-byte.json
ECHO %INPUTFILE%
call autorest %AZURE_ARGUMENTS% --input-file=%INPUTFILE% --namespace=%NAMESPACE%.fixtures.bodybyte --payload-flattening-threshold=1
ECHO =======================
set INPUTFILE=%INPUTSOURCE%/body-date.json
ECHO %INPUTFILE%
call autorest %AZURE_ARGUMENTS% --input-file=%INPUTFILE% --namespace=%NAMESPACE%.fixtures.bodydate --payload-flattening-threshold=1
ECHO =======================
set INPUTFILE=%INPUTSOURCE%/body-datetime.json
ECHO %INPUTFILE%
call autorest %AZURE_ARGUMENTS% --input-file=%INPUTFILE% --namespace=%NAMESPACE%.fixtures.bodydatetime --payload-flattening-threshold=1
ECHO =======================
set INPUTFILE=%INPUTSOURCE%/body-datetime-rfc1123.json
ECHO %INPUTFILE%
call autorest %AZURE_ARGUMENTS% --input-file=%INPUTFILE% --namespace=%NAMESPACE%.fixtures.bodydatetimerfc1123 --payload-flattening-threshold=1
ECHO =======================
set INPUTFILE=%INPUTSOURCE%/paging.json
ECHO %INPUTFILE%
REM "Paging is not supported yet for Android"
REM call autorest %AZURE_ARGUMENTS% --input-file=%INPUTFILE% --namespace=%NAMESPACE%.fixtures.paging --payload-flattening-threshold=1
ECHO =======================
set INPUTFILE=%INPUTSOURCE%/url.json
ECHO %INPUTFILE%
REM "Require byte[] to string conversion"
REM call autorest %AZURE_ARGUMENTS% --input-file=%INPUTFILE% --namespace=%NAMESPACE%.fixtures.url --payload-flattening-threshold=1
ECHO =======================
set INPUTFILE=%INPUTSOURCE%/url-multi-collectionFormat.json
ECHO %INPUTFILE%
REM "Require parameter conversion from List<String> to String"
REM call autorest %AZURE_ARGUMENTS% --input-file=%INPUTFILE% --namespace=%NAMESPACE%.fixtures.urlmulticollectionformat --payload-flattening-threshold=1
ECHO =======================
set INPUTFILE=%INPUTSOURCE%/extensible-enums-swagger.json
ECHO %INPUTFILE%
call autorest %AZURE_ARGUMENTS% --input-file=%INPUTFILE% --namespace=%NAMESPACE%.fixtures.extensibleenums --payload-flattening-threshold=1
ECHO =======================
set INPUTFILE=%INPUTSOURCE%/required-optional.json
ECHO %INPUTFILE%
REM "Parameter type is wrong, has Flux"
REM call autorest %AZURE_ARGUMENTS% --input-file=%INPUTFILE% --namespace=%NAMESPACE%.fixtures.requiredoptional --payload-flattening-threshold=1
ECHO =======================
set INPUTFILE=%INPUTSOURCE%/xml-service.json
ECHO %INPUTFILE%
REM "Need byte[] clone from android core, fix imports"
REM call autorest %AZURE_ARGUMENTS% --input-file=%INPUTFILE% --namespace=%NAMESPACE%.fixtures.xmlservice --payload-flattening-threshold=1
ECHO =======================
set INPUTFILE=%INPUTSOURCE%/parameter-flattening.json
ECHO %INPUTFILE%
call autorest %AZURE_ARGUMENTS% --input-file=%INPUTFILE% --namespace=%NAMESPACE%.fixtures.parameterflattenting --payload-flattening-threshold=1
ECHO =======================
set INPUTFILE=%INPUTSOURCE%/model-flattening.json
ECHO %INPUTFILE%
call autorest %AZURE_ARGUMENTS% --input-file=%INPUTFILE% --namespace=%NAMESPACE%.fixtures.modelflattening --payload-flattening-threshold=1
ECHO =======================
set INPUTFILE=%INPUTSOURCE%/media_types.json
ECHO %INPUTFILE%
REM "Parameter type is wrong, has Flux"
REM call autorest %AZURE_ARGUMENTS% --input-file=%INPUTFILE% --namespace=%NAMESPACE%.fixtures.mediatypes --payload-flattening-threshold=1
ECHO =======================
set INPUTFILE=%INPUTSOURCE%/validation.json
ECHO %INPUTFILE%
call autorest %AZURE_ARGUMENTS% --input-file=%INPUTFILE% --namespace=%NAMESPACE%.fixtures.validation --payload-flattening-threshold=1
ECHO =======================
set INPUTFILE=%INPUTSOURCE%/non-string-enum.json
ECHO %INPUTFILE%
call autorest %AZURE_ARGUMENTS% --input-file=%INPUTFILE% --namespace=%NAMESPACE%.fixtures.nonstringenum --payload-flattening-threshold=1
ECHO =======================
set INPUTFILE=%INPUTSOURCE%/multiple-inheritance.json
ECHO %INPUTFILE%
call autorest %AZURE_ARGUMENTS% --input-file=%INPUTFILE% --namespace=%NAMESPACE%.fixtures.multipleinheritance --payload-flattening-threshold=1
ECHO =======================
set INPUTFILE=%INPUTSOURCE%/xms-error-responses.json
ECHO %INPUTFILE%
REM "no longer test this one"
REM call autorest %AZURE_ARGUMENTS% --input-file=%INPUTFILE% --namespace=%NAMESPACE%.fixtures.errorResponse --payload-flattening-threshold=1
ECHO =======================
set INPUTFILE=%INPUTSOURCE%/report.json
ECHO %INPUTFILE%
call autorest %AZURE_ARGUMENTS% --input-file=%INPUTFILE% --namespace=%NAMESPACE%.fixtures.report --payload-flattening-threshold=1