Skip to content

Commit

Permalink
update readme (#18390)
Browse files Browse the repository at this point in the history
* update readme

* update readme

* Update readme.python.md

* Update readme.python.md

* Update readme.python.md

* Update readme.python.md
  • Loading branch information
Wzb123456789 authored and visingl committed Mar 30, 2022
1 parent 945d289 commit 0dc28b7
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 54 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ swagger-to-sdk:
- repo: azure-sdk-for-go
- repo: azure-sdk-for-js
- repo: azure-sdk-for-node
- repo: azure-sdk-for-python
- repo: azure-sdk-for-python-track2
- repo: azure-resource-manager-schemas
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,15 @@ Please also specify `--python-sdks-folder=<path to the root directory of your az
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.securityandcompliance
package-name: azure-mgmt-securityandcompliance
package-version: 2.0.0
clear-output-folder: true
azure-arm: true
license-header: MICROSOFT_MIT_NO_VERSION
namespace: azure.mgmt.securityandcompliance
package-name: azure-mgmt-securityandcompliance
package-version: 2.0.0
clear-output-folder: true
```
``` yaml $(python) && $(python-mode) == 'update'
python:
no-namespace-folders: true
output-folder: $(python-sdks-folder)/securityandcompliance/azure-mgmt-securityandcompliance/azure/mgmt/securityandcompliance
```
``` yaml $(python) && $(python-mode) == 'create'
python:
basic-setup-py: true
output-folder: $(python-sdks-folder)/securityandcompliance/azure-mgmt-securityandcompliance
``` yaml $(python)
no-namespace-folders: true
output-folder: $(python-sdks-folder)/securityandcompliance/azure-mgmt-securityandcompliance/azure/mgmt/securityandcompliance
```
10 changes: 4 additions & 6 deletions specification/testbase/resource-manager/readme.python.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,12 @@ Please also specify `--python-sdks-folder=<path to the root directory of your az
azure-arm: true
license-header: MICROSOFT_MIT_NO_VERSION
package-name: azure-mgmt-testbase
no-namespace-folders: true
namespace: azure.mgmt.testbase
package-version: 1.0.0b1
clear-output-folder: true
```
``` yaml $(python-mode) == 'update'
``` yaml $(python)
no-namespace-folders: true
output-folder: $(python-sdks-folder)/testbase/azure-mgmt-testbase/azure/mgmt/testbase
```
``` yaml $(python-mode) == 'create'
basic-setup-py: true
output-folder: $(python-sdks-folder)/testbase/azure-mgmt-testbase
```
11 changes: 3 additions & 8 deletions specification/vi/resource-manager/readme.python.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,16 @@
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>`.

```yaml $(python) && $(track2)
```yaml $(python)
azure-arm: true
license-header: MICROSOFT_MIT_NO_VERSION
package-name: azure-mgmt-videoindexer
clear-output-folder: true
no-namespace-folders: true
namespace: azure.mgmt.videoindexer
package-version: 1.0.0b1
```
```yaml $(python) && $(python-mode) == 'update' && $(track2)
```yaml $(python)
no-namespace-folders: true
output-folder: $(python-sdks-folder)/videoindexer/azure-mgmt-videoindexer/azure/mgmt/videoindexer
```
``` yaml $(python) && $(python-mode) == 'create' && $(track2)
basic-setup-py: true
output-folder: $(python-sdks-folder)/videoindexer/azure-mgmt-videoindexer
```
2 changes: 1 addition & 1 deletion specification/windowsiot/resource-manager/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ This is not used by Autorest itself.
swagger-to-sdk:
- repo: azure-powershell
- 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-go-track2
Expand Down
29 changes: 9 additions & 20 deletions specification/windowsiot/resource-manager/readme.python.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,17 @@

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

0 comments on commit 0dc28b7

Please sign in to comment.