Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update readme #18390

Merged
merged 6 commits into from
Mar 25, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
```