Skip to content

Commit 0cd7b3e

Browse files
authored
[Recoveryservicesbackup]python config (#16985)
* python config * split namespace * Update readme.python.md
1 parent a2e38ac commit 0cd7b3e

File tree

2 files changed

+42
-39
lines changed

2 files changed

+42
-39
lines changed

specification/recoveryservicesbackup/resource-manager/readme.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,6 @@ This is not used by Autorest itself.
274274
``` yaml $(swagger-to-sdk)
275275
swagger-to-sdk:
276276
- repo: azure-sdk-for-net
277-
- repo: azure-sdk-for-python
278277
- repo: azure-sdk-for-python-track2
279278
- repo: azure-sdk-for-java
280279
- repo: azure-sdk-for-go
@@ -306,6 +305,10 @@ csharp:
306305

307306
See configuration in [readme.go.md](./readme.go.md)
308307

308+
## Python
309+
310+
See configuration in [readme.python.md](./readme.python.md)
311+
309312
## Java
310313

311314
See configuration in [readme.java.md](./readme.java.md)
Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,52 @@
11
## Python
22

3-
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>`.
5-
Use `--python-mode=update` if you already have a setup.py and just want to update the code itself.
6-
7-
``` yaml $(python) && !$(track2)
8-
python-mode: create
9-
python:
10-
azure-arm: true
11-
license-header: MICROSOFT_MIT_NO_VERSION
12-
payload-flattening-threshold: 2
13-
namespace: azure.mgmt.recoveryservicesbackup
14-
package-name: azure-mgmt-recoveryservicesbackup
15-
package-version: 0.1.0
16-
clear-output-folder: true
17-
```
18-
``` yaml $(python) && $(track2)
19-
python-mode: create
3+
These settings apply only when `--track2` is specified on the command line.
4+
5+
``` yaml $(track2)
206
azure-arm: true
217
license-header: MICROSOFT_MIT_NO_VERSION
22-
namespace: azure.mgmt.recoveryservicesbackup
238
package-name: azure-mgmt-recoveryservicesbackup
249
package-version: 1.0.0b1
25-
clear-output-folder: true
26-
modelerfour:
27-
lenient-model-deduplication: true
28-
```
29-
``` yaml $(python) && $(python-mode) == 'update' && !$(track2)
30-
python:
31-
no-namespace-folders: true
32-
output-folder: $(python-sdks-folder)/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup
10+
no-namespace-folders: true
3311
```
34-
``` yaml $(python) && $(python-mode) == 'create' && !$(track2)
35-
python:
36-
basic-setup-py: true
37-
output-folder: $(python-sdks-folder)/recoveryservices/azure-mgmt-recoveryservicesbackup
12+
13+
### Python multi-api
14+
15+
Generate all API versions currently shipped for this package
16+
17+
```yaml $(track2)
18+
clear-output-folder: true
19+
batch:
20+
- tag: package-passivestamp-2018-12-20
21+
- tag: package-2021-10
3822
```
39-
``` yaml $(python) && $(python-mode) == 'update' && $(track2)
40-
no-namespace-folders: true
41-
output-folder: $(python-sdks-folder)/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup
23+
24+
### Tag: package-passivestamp-2018-12-20 and python
25+
26+
These settings apply only when `--tag=package-passivestamp-2018-12-20 --python` is specified on the command line.
27+
Please also specify `--python-sdks-folder=<path to the root directory of your azure-sdk-for-python clone>`.
28+
29+
``` yaml $(tag) == 'package-passivestamp-2018-12-20'
30+
title: Recovery Services Backup Passive Client
31+
namespace: azure.mgmt.recoveryservicesbackup.passivestamp
32+
output-folder: $(python-sdks-folder)/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/passivestamp
4233
```
43-
``` yaml $(python) && $(python-mode) == 'create' && $(track2)
44-
basic-setup-py: true
45-
output-folder: $(python-sdks-folder)/recoveryservices/azure-mgmt-recoveryservicesbackup
34+
35+
### Tag: package-2021-10 and python
36+
37+
These settings apply only when `--tag=package-2021-10 --python` is specified on the command line.
38+
Please also specify `--python-sdks-folder=<path to the root directory of your azure-sdk-for-python clone>`.
39+
40+
``` yaml $(tag) == 'package-2021-10'
41+
namespace: azure.mgmt.recoveryservicesbackup.activestamp
42+
output-folder: $(python-sdks-folder)/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp
4643
```
4744

45+
46+
4847
``` yaml $(python) && $(track2)
48+
modelerfour:
49+
lenient-model-deduplication: true
4950
directive:
5051
- from: swagger-document
5152
where: $.definitions.ProtectionIntent
@@ -56,5 +57,4 @@ directive:
5657
transform: >
5758
$['required'] = ['featureType'];
5859
59-
60-
```
60+
```

0 commit comments

Comments
 (0)