Skip to content

Commit de8d05e

Browse files
msyycJiaqiZhang-Dev
authored andcommitted
[storage][python] Convert to single-api package (Azure#34681)
* convert to single api for storage * fix config * fix config * Update readme.python.md --------- Co-authored-by: JiaqiZhang-Dev <[email protected]>
1 parent 1e5ee2b commit de8d05e

File tree

1 file changed

+9
-62
lines changed

1 file changed

+9
-62
lines changed

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

Lines changed: 9 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -1,79 +1,26 @@
11
## Python
22

33
These settings apply only when `--python` is specified on the command line.
4+
Please also specify `--python-sdks-folder=<path to the root directory of your azure-sdk-for-python clone>`.
45

5-
``` yaml
6+
``` yaml $(python)
7+
title: StorageManagementClient
68
azure-arm: true
79
license-header: MICROSOFT_MIT_NO_VERSION
810
package-name: azure-mgmt-storage
11+
namespace: azure.mgmt.storage
912
package-version: 1.0.0b1
10-
no-namespace-folders: true
11-
modelerfour:
12-
lenient-model-deduplication: true
13-
```
14-
15-
### Python multi-api
16-
17-
Generate all API versions currently shipped for this package
18-
19-
```yaml $(python)
20-
multiapi: true
21-
default-api-version: "2024-01-01"
2213
clear-output-folder: true
23-
batch:
24-
- tag: package-2024-01
25-
- tag: package-2019-06
26-
- tag: package-2017-10
27-
- tag: package-2016-01
28-
- multiapiscript: true
2914
```
3015
31-
``` yaml $(multiapiscript)
32-
output-folder: $(python-sdks-folder)/storage/azure-mgmt-storage/azure/mgmt/storage/
33-
perform-load: false
34-
```
35-
36-
### Tag: package-2024-01 and python
37-
38-
These settings apply only when `--tag=package-2024-01 --python` is specified on the command line.
39-
Please also specify `--python-sdks-folder=<path to the root directory of your azure-sdk-for-python clone>`.
40-
41-
``` yaml $(tag) == 'package-2024-01'
42-
namespace: azure.mgmt.storage.v2024_01_01
43-
output-folder: $(python-sdks-folder)/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01
44-
```
45-
46-
### Tag: package-2019-06 and python
47-
48-
These settings apply only when `--tag=package-2019-06 --python` is specified on the command line.
49-
Please also specify `--python-sdks-folder=<path to the root directory of your azure-sdk-for-python clone>`.
50-
51-
``` yaml $(tag) == 'package-2019-06'
52-
namespace: azure.mgmt.storage.v2019_06_01
53-
output-folder: $(python-sdks-folder)/storage/azure-mgmt-storage/azure/mgmt/storage/v2019_06_01
54-
```
55-
56-
### Tag: package-2017-10 and python
57-
58-
These settings apply only when `--tag=package-2017-10 --python` is specified on the command line.
59-
Please also specify `--python-sdks-folder=<path to the root directory of your azure-sdk-for-python clone>`.
60-
61-
``` yaml $(tag) == 'package-2017-10'
62-
namespace: azure.mgmt.storage.v2017_10_01
63-
output-folder: $(python-sdks-folder)/storage/azure-mgmt-storage/azure/mgmt/storage/v2017_10_01
64-
```
65-
66-
### Tag: package-2016-01 and python
67-
68-
These settings apply only when `--tag=package-2016-01 --python` is specified on the command line.
69-
Please also specify `--python-sdks-folder=<path to the root directory of your azure-sdk-for-python clone>`.
70-
71-
``` yaml $(tag) == 'package-2016-01'
72-
namespace: azure.mgmt.storage.v2016_01_01
73-
output-folder: $(python-sdks-folder)/storage/azure-mgmt-storage/azure/mgmt/storage/v2016_01_01
16+
``` yaml $(python)
17+
no-namespace-folders: true
18+
output-folder: $(python-sdks-folder)/storage/azure-mgmt-storage/azure/mgmt/storage
7419
```
7520
7621
``` yaml $(python)
22+
modelerfour:
23+
lenient-model-deduplication: true
7724
directive:
7825
- from: swagger-document
7926
where: $.definitions.LeaseContainerRequest

0 commit comments

Comments
 (0)