Skip to content

Commit dd1b44b

Browse files
authored
[Resource] python config (#24216)
* fix part1 * fix part 2 * update * update
1 parent 44b02a2 commit dd1b44b

File tree

2 files changed

+148
-16
lines changed

2 files changed

+148
-16
lines changed

specification/resources/resource-manager/readme.md

Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,47 @@ These settings apply only when `--tag=package-2022-12` is specified on the comma
9090
input-file:
9191
- Microsoft.Resources/stable/2022-12-01/subscriptions.json
9292
```
93+
94+
### Tag: package-policy-2022-08-preview-only
95+
96+
These settings apply only when `--tag=package-policy-2022-08-preview-only` is specified on the command line.
97+
98+
``` yaml $(tag) == 'package-policy-2022-08-preview-only'
99+
input-file:
100+
- Microsoft.Authorization/preview/2022-08-01-preview/policyVariables.json
101+
- Microsoft.Authorization/preview/2022-08-01-preview/policyVariableValues.json
102+
103+
# Needed when there is more than one input file
104+
override-info:
105+
title: PolicyClient
106+
```
107+
108+
### Tag: package-policy-2022-07-preview-only
109+
110+
These settings apply only when `--tag=package-policy-2022-07-preview-only` is specified on the command line.
111+
112+
``` yaml $(tag) == 'package-policy-2022-07-preview-only'
113+
input-file:
114+
- Microsoft.Authorization/preview/2022-07-01-preview/policyExemptions.json
115+
116+
# Needed when there is more than one input file
117+
override-info:
118+
title: PolicyClient
119+
```
120+
121+
### Tag: package-policy-2022-06-only
122+
123+
These settings apply only when `--tag=package-policy-2022-06-only` is specified on the command line.
124+
125+
``` yaml $(tag) == 'package-policy-2022-06-only'
126+
input-file:
127+
- Microsoft.Authorization/stable/2022-06-01/policyAssignments.json
128+
129+
# Needed when there is more than one input file
130+
override-info:
131+
title: PolicyClient
132+
```
133+
93134
### Tag: package-policy-2022-06
94135

95136
These settings apply only when `--tag=package-policy-2022-06` is specified on the command line.
@@ -164,6 +205,21 @@ override-info:
164205
title: PolicyClient
165206
```
166207

208+
### Tag: package-policy-2021-06-only
209+
210+
These settings apply only when `--tag=package-policy-2021-06-only` is specified on the command line.
211+
212+
``` yaml $(tag) == 'package-policy-2021-06-only'
213+
input-file:
214+
- Microsoft.Authorization/stable/2021-06-01/policyAssignments.json
215+
- Microsoft.Authorization/stable/2021-06-01/policyDefinitions.json
216+
- Microsoft.Authorization/stable/2021-06-01/policySetDefinitions.json
217+
218+
# Needed when there is more than one input file
219+
override-info:
220+
title: PolicyClient
221+
```
222+
167223
### Tag: package-privatelinks-2020-05
168224

169225
These settings apply only when `--tag=package-privatelinks-2020-05` is specified on the command line.
@@ -208,6 +264,22 @@ override-info:
208264
title: PolicyClient
209265
```
210266

267+
### Tag: package-policy-2020-09-only
268+
269+
These settings apply only when `--tag=package-policy-2020-09-only` is specified on the command line.
270+
271+
``` yaml $(tag) == 'package-policy-2020-09-only'
272+
input-file:
273+
- Microsoft.Authorization/stable/2020-09-01/dataPolicyManifests.json
274+
- Microsoft.Authorization/stable/2020-09-01/policyAssignments.json
275+
- Microsoft.Authorization/stable/2020-09-01/policyDefinitions.json
276+
- Microsoft.Authorization/stable/2020-09-01/policySetDefinitions.json
277+
278+
# Needed when there is more than one input file
279+
override-info:
280+
title: PolicyClient
281+
```
282+
211283
### Tag: package-locks-2017-04
212284

213285
These settings apply only when `--tag=package-locks-2017-04` is specified on the command line.
@@ -320,6 +392,19 @@ override-info:
320392
title: PolicyClient
321393
```
322394

395+
### Tag: package-policy-2020-07-preview-only
396+
397+
These settings apply only when `--tag=package-policy-2020-07-preview-only` is specified on the command line.
398+
399+
``` yaml $(tag) == 'package-policy-2020-07-preview-only'
400+
input-file:
401+
- Microsoft.Authorization/preview/2020-07-01-preview/policyExemptions.json
402+
403+
# Needed when there is more than one input file
404+
override-info:
405+
title: PolicyClient
406+
```
407+
323408
### Tag: package-policy-2019-09
324409

325410
These settings apply only when `--tag=package-policy-2019-09` is specified on the command line.
@@ -424,6 +509,20 @@ override-info:
424509
title: PolicyClient
425510
```
426511

512+
### Tag: package-policy-2017-06-preview-only
513+
514+
These settings apply only when `--tag=package-policy-2017-06-preview-only` is specified on the command line.
515+
516+
``` yaml $(tag) == 'package-policy-2017-06-preview-only'
517+
input-file:
518+
- Microsoft.Authorization/preview/2017-06-01-preview/policyAssignments.json
519+
- Microsoft.Authorization/preview/2017-06-01-preview/policySetDefinitions.json
520+
521+
# Needed when there is more than one input file
522+
override-info:
523+
title: PolicyClient
524+
```
525+
427526
### Tag: package-templatespecs-2022-02
428527

429528
These settings apply only when `--tag=package-templatespecs-2022-02` is specified on the command line.

specification/resources/resource-manager/readme.python.md

Lines changed: 49 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,18 @@ batch:
3434
- multiapiscript-locks: true
3535
- tag: package-managedapplications-2019-07
3636
- multiapiscript-managedapplications: true
37-
- tag: package-policy-2022-06
38-
- tag: package-policy-2021-06
39-
- tag: package-policy-2020-09
37+
- tag: package-policy-2022-08-preview-only
38+
- tag: package-policy-2022-07-preview-only
39+
- tag: package-policy-2022-06-only
40+
- tag: package-policy-2021-06-only
41+
- tag: package-policy-2020-09-only
42+
- tag: package-policy-2020-07-preview-only
4043
- tag: package-policy-2019-09
4144
- tag: package-policy-2019-06
4245
- tag: package-policy-2019-01
4346
- tag: package-policy-2018-05
4447
- tag: package-policy-2018-03
45-
- tag: package-policy-2017-06
48+
- tag: package-policy-2017-06-preview-only
4649
- tag: package-policy-2016-12
4750
- tag: package-policy-2016-04
4851
- tag: package-policy-2015-10
@@ -250,36 +253,66 @@ namespace: azure.mgmt.resource.managedapplications.v2019_07_01
250253
output-folder: $(python-sdks-folder)/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/v2019_07_01
251254
```
252255

253-
### Tag: package-policy-2022-06 and python
256+
### Tag: package-policy-2022-08-preview-only and python
254257

255-
These settings apply only when `--tag=package-policy-2022-06 --python` is specified on the command line.
258+
These settings apply only when `--tag=package-policy-2022-08-preview-only --python` is specified on the command line.
256259
Please also specify `--python-sdks-folder=<path to the root directory of your azure-sdk-for-python clone>`.
257260

258-
``` yaml $(tag) == 'package-policy-2022-06'
261+
``` yaml $(tag) == 'package-policy-2022-08-preview-only'
262+
namespace: azure.mgmt.resource.policy.v2022_08_01_preview
263+
output-folder: $(python-sdks-folder)/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2022_08_01_preview
264+
```
265+
266+
### Tag: package-policy-2022-07-preview-only and python
267+
268+
These settings apply only when `--tag=package-policy-2022-07-preview-only --python` is specified on the command line.
269+
Please also specify `--python-sdks-folder=<path to the root directory of your azure-sdk-for-python clone>`.
270+
271+
``` yaml $(tag) == 'package-policy-2022-07-preview-only'
272+
namespace: azure.mgmt.resource.policy.v2022_07_01_preview
273+
output-folder: $(python-sdks-folder)/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2022_07_01_preview
274+
```
275+
276+
### Tag: package-policy-2022-06-only and python
277+
278+
These settings apply only when `--tag=package-policy-2022-06-only --python` is specified on the command line.
279+
Please also specify `--python-sdks-folder=<path to the root directory of your azure-sdk-for-python clone>`.
280+
281+
``` yaml $(tag) == 'package-policy-2022-06-only'
259282
namespace: azure.mgmt.resource.policy.v2022_06_01
260283
output-folder: $(python-sdks-folder)/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2022_06_01
261284
```
262285

263-
### Tag: package-policy-2021-06 and python
286+
### Tag: package-policy-2021-06-only and python
264287

265-
These settings apply only when `--tag=package-policy-2021-06 --python` is specified on the command line.
288+
These settings apply only when `--tag=package-policy-2021-06-only --python` is specified on the command line.
266289
Please also specify `--python-sdks-folder=<path to the root directory of your azure-sdk-for-python clone>`.
267290

268-
``` yaml $(tag) == 'package-policy-2021-06'
291+
``` yaml $(tag) == 'package-policy-2021-06-only'
269292
namespace: azure.mgmt.resource.policy.v2021_06_01
270293
output-folder: $(python-sdks-folder)/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2021_06_01
271294
```
272295

273-
### Tag: package-policy-2020-09 and python
296+
### Tag: package-policy-2020-09-only and python
274297

275-
These settings apply only when `--tag=package-policy-2020-09 --python` is specified on the command line.
298+
These settings apply only when `--tag=package-policy-2020-09-only --python` is specified on the command line.
276299
Please also specify `--python-sdks-folder=<path to the root directory of your azure-sdk-for-python clone>`.
277300

278-
``` yaml $(tag) == 'package-policy-2020-09'
301+
``` yaml $(tag) == 'package-policy-2020-09-only'
279302
namespace: azure.mgmt.resource.policy.v2020_09_01
280303
output-folder: $(python-sdks-folder)/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2020_09_01
281304
```
282305

306+
### Tag: package-policy-2020-07-preview-only and python
307+
308+
These settings apply only when `--tag=package-policy-2020-07-preview-only --python` is specified on the command line.
309+
Please also specify `--python-sdks-folder=<path to the root directory of your azure-sdk-for-python clone>`.
310+
311+
``` yaml $(tag) == 'package-policy-2020-07-preview-only'
312+
namespace: azure.mgmt.resource.policy.v2020_07_01_preview
313+
output-folder: $(python-sdks-folder)/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2020_07_01_preview
314+
```
315+
283316
### Tag: package-policy-2019-09 and python
284317

285318
These settings apply only when `--tag=package-policy-2019-09 --python` is specified on the command line.
@@ -330,12 +363,12 @@ namespace: azure.mgmt.resource.policy.v2018_03_01
330363
output-folder: $(python-sdks-folder)/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01
331364
```
332365

333-
### Tag: package-policy-2017-06 and python
366+
### Tag: package-policy-2017-06-preview-only and python
334367

335-
These settings apply only when `--tag=package-policy-2017-06 --python` is specified on the command line.
368+
These settings apply only when `--tag=package-policy-2017-06-preview-only --python` is specified on the command line.
336369
Please also specify `--python-sdks-folder=<path to the root directory of your azure-sdk-for-python clone>`.
337370

338-
``` yaml $(tag) == 'package-policy-2017-06'
371+
``` yaml $(tag) == 'package-policy-2017-06-preview-only'
339372
namespace: azure.mgmt.resource.policy.v2017_06_01_preview
340373
output-folder: $(python-sdks-folder)/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview
341374
```

0 commit comments

Comments
 (0)