Skip to content

Commit 6bab062

Browse files
RAY-316msyyc
andauthored
Servicefabric t2 config (Azure#14492)
* sql t2 readme config * readme config * Update readme.python.md * conflient resolve * t2 congfig * readme config * t2 config * Update cluster.json * Update cluster.json * Update specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2020-03-01/cluster.json * Update readme.python.md * Update readme.python.md * Update readme.md * Update readme.python.md * directive * Update readme.md Co-authored-by: msyyc <[email protected]>
1 parent 6ad3ec5 commit 6bab062

File tree

2 files changed

+42
-4
lines changed

2 files changed

+42
-4
lines changed

specification/servicefabric/resource-manager/readme.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ directive:
5757
reason: There are open issues (bugs) in the validator affecting some of the examples and since there is no way to selectively disable the validation for a particular example or paths, all of the example validation is being turned off.
5858
- suppress: Example Validations
5959
reason: There are open issues (bugs) in the validator affecting some of the examples and since there is no way to selectively disable the validation for a particular example or paths, all of the example validation is being turned off.
60-
6160
```
6261
6362
### Tag: package-2020-03
@@ -182,6 +181,7 @@ This is not used by Autorest itself.
182181
swagger-to-sdk:
183182
- repo: azure-sdk-for-net
184183
- repo: azure-sdk-for-python
184+
- repo: azure-sdk-for-python-track2
185185
- repo: azure-sdk-for-java
186186
- repo: azure-sdk-for-go
187187
- repo: azure-sdk-for-node
@@ -212,6 +212,10 @@ csharp:
212212

213213
See configuration in [readme.go.md](./readme.go.md)
214214

215+
## Python
216+
217+
See configuration in [readme.python.md](./readme.python.md)
218+
215219
## Java
216220

217221
See configuration in [readme.java.md](./readme.java.md)

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

Lines changed: 37 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ These settings apply only when `--python` is specified on the command line.
44
Please also specify `--python-sdks-folder=<path to the root directory of your azure-sdk-for-python clone>`.
55
Use `--python-mode=update` if you already have a setup.py and just want to update the code itself.
66

7-
``` yaml $(python)
7+
``` yaml $(python) && !$(track2)
88
python-mode: create
99
python:
1010
azure-arm: true
@@ -14,13 +14,47 @@ python:
1414
package-name: azure-mgmt-servicefabric
1515
clear-output-folder: true
1616
```
17-
``` yaml $(python) && $(python-mode) == 'update'
17+
``` yaml $(python) && $(track2)
18+
python-mode: create
19+
azure-arm: true
20+
license-header: MICROSOFT_MIT_NO_VERSION
21+
namespace: azure.mgmt.servicefabric
22+
package-name: azure-mgmt-servicefabric
23+
package-version: 1.0.0b1
24+
clear-output-folder: true
25+
```
26+
27+
28+
``` yaml $(python) && $(python-mode) == 'update' && !$(track2)
1829
python:
1930
no-namespace-folders: true
2031
output-folder: $(python-sdks-folder)/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric
2132
```
22-
``` yaml $(python) && $(python-mode) == 'create'
33+
``` yaml $(python) && $(python-mode) == 'create' && !$(track2)
2334
python:
2435
basic-setup-py: true
2536
output-folder: $(python-sdks-folder)/servicefabric/azure-mgmt-servicefabric
2637
```
38+
``` yaml $(python) && $(python-mode) == 'update' && $(track2)
39+
no-namespace-folders: true
40+
output-folder: $(python-sdks-folder)/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric
41+
```
42+
``` yaml $(python) && $(python-mode) == 'create' && $(track2)
43+
basic-setup-py: true
44+
output-folder: $(python-sdks-folder)/servicefabric/azure-mgmt-servicefabric
45+
```
46+
47+
``` yaml $(python) && $(track2)
48+
directive:
49+
- from: application.json
50+
where: $.paths["/providers/Microsoft.ServiceFabric/operations"].get
51+
transform: $['operationId'] = 'Application_List'
52+
53+
- from: managedcluster.json
54+
where: $.paths["/providers/Microsoft.ServiceFabric/operations"].get
55+
transform: $['operationId'] = 'Managedcluster_List'
56+
57+
- from: nodetype.json
58+
where: $.paths["/providers/Microsoft.ServiceFabric/operations"].get
59+
transform: $['operationId'] = 'Nodetype_List'
60+
```

0 commit comments

Comments
 (0)