Skip to content

Commit 3a5b541

Browse files
jianghaolulmazuel
authored andcommitted
Java multi api (#3221)
* Fix ASE instance metrics url * Add java multi-api sections in select readme files * Add java multi api to network (temporary) * Add Java multi api to resources * Fix readme for Java in media * Add web app multiapi * Add multi api for web app and network * sync with master (#3153) * Use common Resource & Sku definitions in all Sql specs (#3134) * Use common Resource & Sku definitions * Don't use common Sku definition * Just use common SQL definitions * Fixed syntax error * Fixed another syntax error * Fixed sku ref error * Fixed syntax error in example * Fix Python conf of servermanager (#3140) * Fix ServerManager Py Conf (#3141) * Plug SwaggerToSdk to LogAnalyticsMgmt (#3142) * [Storage] Support Management policy on new api version 2018-03-01-preview (#3137) * [Storage] Add new API version 2018-03-01-preview * [Storage] Update rest version 2018-03-01-preview * [Storage] Support Management Policy * [Storage] Update since code review comments * Add Python conf * [Storage] Add managment policy doc link to policy description. * [Storage] modify as review comments * RSA key size examples, ECC descriptions (#3136) * RSA key size examples, ECC descriptions * remove preview changes for now * Added GroupType property in HybridWorkerGroup (#3132) * Watcher resource swagger specs. For more details on the Usage of the resource: https://docs.microsoft.com/en-us/azure/automation/automation-watchers-tutorial (#3102) * Watcher specs * using the same model for get/put input and output. * Fix storage Python conf (#3148) * Fix for Azure Networking swagger 2018-04-01 version (#3146) * Adding storage 2018-03-01-preview to java multi-api section (#3155) * readme for resource,keyvault,web * Fix keyvault namespace * Fix keyvault,dns, add storage 2016-01-01 * Fix web and storage multi api config * Add java multi api for authorization, iotcentral, keyvault, resources * Add policyinsights and fconfig to resources * Fix web app output path * Multiapibatch (#3205) * Change all existing ##Java sections * Add java multi api sections * Use azure-sdk-for-java repo * Fix typo in batch readme
1 parent 4ea7c06 commit 3a5b541

File tree

105 files changed

+3494
-602
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

105 files changed

+3494
-602
lines changed

specification/addons/resource-manager/readme.md

Lines changed: 41 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -138,11 +138,46 @@ These settings apply only when `--java` is specified on the command line.
138138
Please also specify `--azure-libraries-for-java-folder=<path to the root directory of your azure-libraries-for-java clone>`.
139139

140140
``` yaml $(java)
141+
azure-arm: true
142+
fluent: true
143+
namespace: com.microsoft.azure.management.addons
144+
license-header: MICROSOFT_MIT_NO_CODEGEN
145+
payload-flattening-threshold: 1
146+
output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-addons
147+
```
148+
149+
### Java multi-api
150+
151+
``` yaml $(java) && $(multiapi)
152+
batch:
153+
- tag: package-2018-03
154+
- tag: package-2017-05
155+
```
156+
157+
### Tag: package-2018-03 and java
158+
159+
These settings apply only when `--tag=package-2018-03 --java` is specified on the command line.
160+
Please also specify `--azure-libraries-for-java=<path to the root directory of your azure-sdk-for-java clone>`.
161+
162+
``` yaml $(tag) == 'package-2018-03' && $(java) && $(multiapi)
141163
java:
142-
azure-arm: true
143-
fluent: true
144-
namespace: com.microsoft.azure.management.addons
145-
license-header: MICROSOFT_MIT_NO_CODEGEN
146-
payload-flattening-threshold: 1
147-
output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-addons
164+
namespace: com.microsoft.azure.management.addons.v2018_03_01
165+
output-folder: $(azure-libraries-for-java-folder)/addons/resource-manager/v2018_03_01
166+
regenerate-manager: true
167+
generate-interface: true
148168
```
169+
170+
### Tag: package-2017-05 and java
171+
172+
These settings apply only when `--tag=package-2017-05 --java` is specified on the command line.
173+
Please also specify `--azure-libraries-for-java=<path to the root directory of your azure-sdk-for-java clone>`.
174+
175+
``` yaml $(tag) == 'package-2017-05' && $(java) && $(multiapi)
176+
java:
177+
namespace: com.microsoft.azure.management.addons.v2017_05_15
178+
output-folder: $(azure-libraries-for-java-folder)/addons/resource-manager/v2017_05_15
179+
regenerate-manager: true
180+
generate-interface: true
181+
```
182+
183+

specification/adhybridhealthservice/resource-manager/readme.md

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ This is not used by Autorest itself.
5151
``` yaml $(swagger-to-sdk)
5252
swagger-to-sdk:
5353
- repo: azure-sdk-for-python
54-
- repo: azure-libraries-for-java
54+
- repo: azure-sdk-for-java
5555
- repo: azure-sdk-for-go
5656
- repo: azure-sdk-for-node
5757
```
@@ -120,11 +120,10 @@ These settings apply only when `--java` is specified on the command line.
120120
Please also specify `--azure-libraries-for-java-folder=<path to the root directory of your azure-libraries-for-java clone>`.
121121

122122
``` yaml $(java)
123-
java:
124-
azure-arm: true
125-
fluent: true
126-
namespace: com.microsoft.azure.management.adhybridhealthservice
127-
license-header: MICROSOFT_MIT_NO_CODEGEN
128-
payload-flattening-threshold: 1
129-
output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-adhybridhealthservice
123+
azure-arm: true
124+
fluent: true
125+
namespace: com.microsoft.azure.management.adhybridhealthservice
126+
license-header: MICROSOFT_MIT_NO_CODEGEN
127+
payload-flattening-threshold: 1
128+
output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-adhybridhealthservice
130129
```

specification/advisor/resource-manager/readme.md

Lines changed: 56 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ This is not used by Autorest itself.
7070
``` yaml $(swagger-to-sdk)
7171
swagger-to-sdk:
7272
- repo: azure-sdk-for-python
73-
- repo: azure-libraries-for-java
73+
- repo: azure-sdk-for-java
7474
- repo: azure-sdk-for-go
7575
- repo: azure-sdk-for-node
7676
```
@@ -159,11 +159,60 @@ These settings apply only when `--java` is specified on the command line.
159159
Please also specify `--azure-libraries-for-java-folder=<path to the root directory of your azure-libraries-for-java clone>`.
160160

161161
``` yaml $(java)
162+
azure-arm: true
163+
fluent: true
164+
namespace: com.microsoft.azure.management.advisor
165+
license-header: MICROSOFT_MIT_NO_CODEGEN
166+
payload-flattening-threshold: 1
167+
output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-advisor
168+
```
169+
170+
### Java multi-api
171+
172+
``` yaml $(java) && $(multiapi)
173+
batch:
174+
- tag: package-2017-03
175+
- tag: package-2017-04
176+
- tag: package-2016-07-preview
177+
```
178+
179+
### Tag: package-2017-03 and java
180+
181+
These settings apply only when `--tag=package-2017-03 --java` is specified on the command line.
182+
Please also specify `--azure-libraries-for-java=<path to the root directory of your azure-sdk-for-java clone>`.
183+
184+
``` yaml $(tag) == 'package-2017-03' && $(java) && $(multiapi)
162185
java:
163-
azure-arm: true
164-
fluent: true
165-
namespace: com.microsoft.azure.management.advisor
166-
license-header: MICROSOFT_MIT_NO_CODEGEN
167-
payload-flattening-threshold: 1
168-
output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-advisor
186+
namespace: com.microsoft.azure.management.advisor.v2017_03_31
187+
output-folder: $(azure-libraries-for-java-folder)/advisor/resource-manager/v2017_03_31
188+
regenerate-manager: true
189+
generate-interface: true
169190
```
191+
192+
### Tag: package-2017-04 and java
193+
194+
These settings apply only when `--tag=package-2017-04 --java` is specified on the command line.
195+
Please also specify `--azure-libraries-for-java=<path to the root directory of your azure-sdk-for-java clone>`.
196+
197+
``` yaml $(tag) == 'package-2017-04' && $(java) && $(multiapi)
198+
java:
199+
namespace: com.microsoft.azure.management.advisor.v2017_04_19
200+
output-folder: $(azure-libraries-for-java-folder)/advisor/resource-manager/v2017_04_19
201+
regenerate-manager: true
202+
generate-interface: true
203+
```
204+
205+
### Tag: package-2016-07-preview and java
206+
207+
These settings apply only when `--tag=package-2016-07-preview --java` is specified on the command line.
208+
Please also specify `--azure-libraries-for-java=<path to the root directory of your azure-sdk-for-java clone>`.
209+
210+
``` yaml $(tag) == 'package-2016-07-preview' && $(java) && $(multiapi)
211+
java:
212+
namespace: com.microsoft.azure.management.advisor.v2016_07_12_preview
213+
output-folder: $(azure-libraries-for-java-folder)/advisor/resource-manager/v2016_07_12_preview
214+
regenerate-manager: true
215+
generate-interface: true
216+
```
217+
218+

specification/analysisservices/resource-manager/readme.md

Lines changed: 70 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -164,11 +164,74 @@ These settings apply only when `--java` is specified on the command line.
164164
Please also specify `--azure-libraries-for-java-folder=<path to the root directory of your azure-libraries-for-java clone>`.
165165

166166
``` yaml $(java)
167-
java:
168-
azure-arm: true
169-
fluent: true
170-
namespace: com.microsoft.azure.management.analysisservices
171-
license-header: MICROSOFT_MIT_NO_CODEGEN
172-
payload-flattening-threshold: 1
173-
output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-analysisservices
167+
azure-arm: true
168+
fluent: true
169+
namespace: com.microsoft.azure.management.analysisservices
170+
license-header: MICROSOFT_MIT_NO_CODEGEN
171+
payload-flattening-threshold: 1
172+
output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-analysisservices
174173
```
174+
175+
### Java multi-api
176+
177+
``` yaml $(java) && $(multiapi)
178+
batch:
179+
- tag: package-2016-05
180+
- tag: package-2017-07
181+
- tag: package-2017-08
182+
- tag: package-2017-08-beta
183+
```
184+
185+
### Tag: package-2016-05 and java
186+
187+
These settings apply only when `--tag=package-2016-05 --java` is specified on the command line.
188+
Please also specify `--azure-libraries-for-java=<path to the root directory of your azure-sdk-for-java clone>`.
189+
190+
``` yaml $(tag) == 'package-2016-05' && $(java) && $(multiapi)
191+
java:
192+
namespace: com.microsoft.azure.management.analysisservices.v2016_05_16
193+
output-folder: $(azure-libraries-for-java-folder)/analysisservices/resource-manager/v2016_05_16
194+
regenerate-manager: true
195+
generate-interface: true
196+
```
197+
198+
### Tag: package-2017-07 and java
199+
200+
These settings apply only when `--tag=package-2017-07 --java` is specified on the command line.
201+
Please also specify `--azure-libraries-for-java=<path to the root directory of your azure-sdk-for-java clone>`.
202+
203+
``` yaml $(tag) == 'package-2017-07' && $(java) && $(multiapi)
204+
java:
205+
namespace: com.microsoft.azure.management.analysisservices.v2017_07_14
206+
output-folder: $(azure-libraries-for-java-folder)/analysisservices/resource-manager/v2017_07_14
207+
regenerate-manager: true
208+
generate-interface: true
209+
```
210+
211+
### Tag: package-2017-08 and java
212+
213+
These settings apply only when `--tag=package-2017-08 --java` is specified on the command line.
214+
Please also specify `--azure-libraries-for-java=<path to the root directory of your azure-sdk-for-java clone>`.
215+
216+
``` yaml $(tag) == 'package-2017-08' && $(java) && $(multiapi)
217+
java:
218+
namespace: com.microsoft.azure.management.analysisservices.v2017_08_01
219+
output-folder: $(azure-libraries-for-java-folder)/analysisservices/resource-manager/v2017_08_01
220+
regenerate-manager: true
221+
generate-interface: true
222+
```
223+
224+
### Tag: package-2017-08-beta and java
225+
226+
These settings apply only when `--tag=package-2017-08-beta --java` is specified on the command line.
227+
Please also specify `--azure-libraries-for-java=<path to the root directory of your azure-sdk-for-java clone>`.
228+
229+
``` yaml $(tag) == 'package-2017-08-beta' && $(java) && $(multiapi)
230+
java:
231+
namespace: com.microsoft.azure.management.analysisservices.v2017_08_01_beta
232+
output-folder: $(azure-libraries-for-java-folder)/analysisservices/resource-manager/v2017_08_01_beta
233+
regenerate-manager: true
234+
generate-interface: true
235+
```
236+
237+

specification/apimanagement/resource-manager/readme.md

Lines changed: 70 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -249,11 +249,74 @@ These settings apply only when `--java` is specified on the command line.
249249
Please also specify `--azure-libraries-for-java-folder=<path to the root directory of your azure-libraries-for-java clone>`.
250250

251251
``` yaml $(java)
252-
java:
253-
azure-arm: true
254-
fluent: true
255-
namespace: com.microsoft.azure.management.apimanagement
256-
license-header: MICROSOFT_MIT_NO_CODEGEN
257-
payload-flattening-threshold: 1
258-
output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-apimanagement
252+
azure-arm: true
253+
fluent: true
254+
namespace: com.microsoft.azure.management.apimanagement
255+
license-header: MICROSOFT_MIT_NO_CODEGEN
256+
payload-flattening-threshold: 1
257+
output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-apimanagement
259258
```
259+
260+
### Java multi-api
261+
262+
``` yaml $(java) && $(multiapi)
263+
batch:
264+
- tag: package-2016-07
265+
- tag: package-2016-10
266+
- tag: package-2018-01
267+
- tag: package-2017-03
268+
```
269+
270+
### Tag: package-2016-07 and java
271+
272+
These settings apply only when `--tag=package-2016-07 --java` is specified on the command line.
273+
Please also specify `--azure-libraries-for-java=<path to the root directory of your azure-sdk-for-java clone>`.
274+
275+
``` yaml $(tag) == 'package-2016-07' && $(java) && $(multiapi)
276+
java:
277+
namespace: com.microsoft.azure.management.apimanagement.v2016_07_07
278+
output-folder: $(azure-libraries-for-java-folder)/apimanagement/resource-manager/v2016_07_07
279+
regenerate-manager: true
280+
generate-interface: true
281+
```
282+
283+
### Tag: package-2016-10 and java
284+
285+
These settings apply only when `--tag=package-2016-10 --java` is specified on the command line.
286+
Please also specify `--azure-libraries-for-java=<path to the root directory of your azure-sdk-for-java clone>`.
287+
288+
``` yaml $(tag) == 'package-2016-10' && $(java) && $(multiapi)
289+
java:
290+
namespace: com.microsoft.azure.management.apimanagement.v2016_10_10
291+
output-folder: $(azure-libraries-for-java-folder)/apimanagement/resource-manager/v2016_10_10
292+
regenerate-manager: true
293+
generate-interface: true
294+
```
295+
296+
### Tag: package-2018-01 and java
297+
298+
These settings apply only when `--tag=package-2018-01 --java` is specified on the command line.
299+
Please also specify `--azure-libraries-for-java=<path to the root directory of your azure-sdk-for-java clone>`.
300+
301+
``` yaml $(tag) == 'package-2018-01' && $(java) && $(multiapi)
302+
java:
303+
namespace: com.microsoft.azure.management.apimanagement.v2018_01_01
304+
output-folder: $(azure-libraries-for-java-folder)/apimanagement/resource-manager/v2018_01_01
305+
regenerate-manager: true
306+
generate-interface: true
307+
```
308+
309+
### Tag: package-2017-03 and java
310+
311+
These settings apply only when `--tag=package-2017-03 --java` is specified on the command line.
312+
Please also specify `--azure-libraries-for-java=<path to the root directory of your azure-sdk-for-java clone>`.
313+
314+
``` yaml $(tag) == 'package-2017-03' && $(java) && $(multiapi)
315+
java:
316+
namespace: com.microsoft.azure.management.apimanagement.v2017_03_01
317+
output-folder: $(azure-libraries-for-java-folder)/apimanagement/resource-manager/v2017_03_01
318+
regenerate-manager: true
319+
generate-interface: true
320+
```
321+
322+

specification/applicationinsights/resource-manager/readme.md

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ This is not used by Autorest itself.
280280
``` yaml $(swagger-to-sdk)
281281
swagger-to-sdk:
282282
- repo: azure-sdk-for-python
283-
- repo: azure-libraries-for-java
283+
- repo: azure-sdk-for-java
284284
- repo: azure-sdk-for-go
285285
- repo: azure-sdk-for-node
286286
```
@@ -363,13 +363,12 @@ These settings apply only when `--java` is specified on the command line.
363363
Please also specify `--azure-libraries-for-java-folder=<path to the root directory of your azure-libraries-for-java clone>`.
364364

365365
``` yaml $(java)
366-
java:
367-
azure-arm: true
368-
fluent: true
369-
namespace: com.microsoft.azure.management.applicationinsights
370-
license-header: MICROSOFT_MIT_NO_CODEGEN
371-
payload-flattening-threshold: 1
372-
output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-applicationinsights
366+
azure-arm: true
367+
fluent: true
368+
namespace: com.microsoft.azure.management.applicationinsights
369+
license-header: MICROSOFT_MIT_NO_CODEGEN
370+
payload-flattening-threshold: 1
371+
output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-applicationinsights
373372
```
374373

375374
### Tag: schema-2015-05-preview

specification/authorization/resource-manager/readme.md

Lines changed: 26 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ This is not used by Autorest itself.
117117
``` yaml $(swagger-to-sdk)
118118
swagger-to-sdk:
119119
- repo: azure-sdk-for-python
120-
- repo: azure-libraries-for-java
120+
- repo: azure-sdk-for-java
121121
- repo: azure-sdk-for-go
122122
- repo: azure-sdk-for-node
123123
- repo: azure-sdk-for-ruby
@@ -206,11 +206,30 @@ These settings apply only when `--java` is specified on the command line.
206206
Please also specify `--azure-libraries-for-java-folder=<path to the root directory of your azure-libraries-for-java clone>`.
207207

208208
``` yaml $(java)
209+
azure-arm: true
210+
fluent: true
211+
namespace: com.microsoft.azure.management.authorization
212+
license-header: MICROSOFT_MIT_NO_CODEGEN
213+
payload-flattening-threshold: 1
214+
output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-authorization
215+
```
216+
217+
### Java multi-api
218+
219+
``` yaml $(java) && $(multiapi)
220+
batch:
221+
- tag: package-2015-07
222+
```
223+
224+
### Tag: package-2015-07 and java
225+
226+
These settings apply only when `--tag=package-2015-07 --java` is specified on he command line.
227+
Please also specify `--azure-libraries-for-java-folder=<path to the root directory of your azure-sdk-for-java clone>`.
228+
229+
``` yaml $(tag) == 'package-2015-07' && $(java) && $(multiapi)
209230
java:
210-
azure-arm: true
211-
fluent: true
212-
namespace: com.microsoft.azure.management.authorization
213-
license-header: MICROSOFT_MIT_NO_CODEGEN
214-
payload-flattening-threshold: 1
215-
output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-authorization
231+
namespace: com.microsoft.azure.management.authorization.v2015_07_01
232+
output-folder: $(azure-libraries-for-java-folder)/authorization/resource-manager/v2015_07_01
233+
regenerate-manager: true
234+
generate-interface: true
216235
```

0 commit comments

Comments
 (0)