Skip to content

Commit

Permalink
Servicefabric t2 config (Azure#14492)
Browse files Browse the repository at this point in the history
* 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 <70930885+msyyc@users.noreply.github.com>
  • Loading branch information
2 people authored and mkarmark committed Jul 20, 2021
1 parent cf4979a commit 65d4f3c
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 4 deletions.
6 changes: 5 additions & 1 deletion specification/servicefabric/resource-manager/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ directive:
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.
- suppress: Example Validations
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.

```
### Tag: package-2020-03
Expand Down Expand Up @@ -182,6 +181,7 @@ This is not used by Autorest itself.
swagger-to-sdk:
- repo: azure-sdk-for-net
- repo: azure-sdk-for-python
- repo: azure-sdk-for-python-track2
- repo: azure-sdk-for-java
- repo: azure-sdk-for-go
- repo: azure-sdk-for-node
Expand Down Expand Up @@ -212,6 +212,10 @@ csharp:

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

## Python

See configuration in [readme.python.md](./readme.python.md)

## Java

See configuration in [readme.java.md](./readme.java.md)
Expand Down
40 changes: 37 additions & 3 deletions specification/servicefabric/resource-manager/readme.python.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ These settings apply only when `--python` is specified on the command line.
Please also specify `--python-sdks-folder=<path to the root directory of your azure-sdk-for-python clone>`.
Use `--python-mode=update` if you already have a setup.py and just want to update the code itself.

``` yaml $(python)
``` yaml $(python) && !$(track2)
python-mode: create
python:
azure-arm: true
Expand All @@ -14,13 +14,47 @@ python:
package-name: azure-mgmt-servicefabric
clear-output-folder: true
```
``` yaml $(python) && $(python-mode) == 'update'
``` yaml $(python) && $(track2)
python-mode: create
azure-arm: true
license-header: MICROSOFT_MIT_NO_VERSION
namespace: azure.mgmt.servicefabric
package-name: azure-mgmt-servicefabric
package-version: 1.0.0b1
clear-output-folder: true
```
``` yaml $(python) && $(python-mode) == 'update' && !$(track2)
python:
no-namespace-folders: true
output-folder: $(python-sdks-folder)/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric
```
``` yaml $(python) && $(python-mode) == 'create'
``` yaml $(python) && $(python-mode) == 'create' && !$(track2)
python:
basic-setup-py: true
output-folder: $(python-sdks-folder)/servicefabric/azure-mgmt-servicefabric
```
``` yaml $(python) && $(python-mode) == 'update' && $(track2)
no-namespace-folders: true
output-folder: $(python-sdks-folder)/servicefabric/azure-mgmt-servicefabric/azure/mgmt/servicefabric
```
``` yaml $(python) && $(python-mode) == 'create' && $(track2)
basic-setup-py: true
output-folder: $(python-sdks-folder)/servicefabric/azure-mgmt-servicefabric
```
``` yaml $(python) && $(track2)
directive:
- from: application.json
where: $.paths["/providers/Microsoft.ServiceFabric/operations"].get
transform: $['operationId'] = 'Application_List'

- from: managedcluster.json
where: $.paths["/providers/Microsoft.ServiceFabric/operations"].get
transform: $['operationId'] = 'Managedcluster_List'

- from: nodetype.json
where: $.paths["/providers/Microsoft.ServiceFabric/operations"].get
transform: $['operationId'] = 'Nodetype_List'
```

0 comments on commit 65d4f3c

Please sign in to comment.