Skip to content

Commit

Permalink
Upgrade to python track2 sdk for purview (Azure#12634)
Browse files Browse the repository at this point in the history
* upgrade to python track2 sdk for purview

* Update readme.md

* Update readme.md

* fix

Co-authored-by: msyyc <[email protected]>
  • Loading branch information
00Kai0 and msyyc authored Jan 29, 2021
1 parent 9599cc1 commit 08688f3
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 25 deletions.
27 changes: 2 additions & 25 deletions specification/purview/resource-manager/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ This is not used by Autorest itself.

``` yaml $(swagger-to-sdk)
swagger-to-sdk:
- repo: azure-sdk-for-python
- repo: azure-sdk-for-python-track2
- repo: azure-sdk-for-go
```

Expand All @@ -71,30 +71,7 @@ csharp:

## Python

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)
python-mode: create
python:
azure-arm: true
license-header: MICROSOFT_MIT_NO_VERSION
payload-flattening-threshold: 2
namespace: azure.mgmt.purview
package-name: azure-mgmt-purview
clear-output-folder: true
```
``` yaml $(python) && $(python-mode) == 'update'
python:
no-namespace-folders: true
output-folder: $(python-sdks-folder)/purview/azure-mgmt-purview/azure/mgmt/purview
```
``` yaml $(python) && $(python-mode) == 'create'
python:
basic-setup-py: true
output-folder: $(python-sdks-folder)/purview/azure-mgmt-purview
```
See configuration in [readme.python.md](./readme.python.md)

## Go

Expand Down
23 changes: 23 additions & 0 deletions specification/purview/resource-manager/readme.python.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
## Python

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) && $(track2)
python-mode: create
azure-arm: true
license-header: MICROSOFT_MIT_NO_VERSION
namespace: azure.mgmt.purview
package-name: azure-mgmt-purview
package-version: 1.0.0b1
clear-output-folder: true
```
``` yaml $(python) && $(python-mode) == 'update' && $(track2)
no-namespace-folders: true
output-folder: $(python-sdks-folder)/purview/azure-mgmt-purview/azure/mgmt/purview
```
``` yaml $(python) && $(python-mode) == 'create' && $(track2)
basic-setup-py: true
output-folder: $(python-sdks-folder)/purview/azure-mgmt-purview
```

0 comments on commit 08688f3

Please sign in to comment.