Skip to content

Commit

Permalink
add media track2 config (Azure#11868)
Browse files Browse the repository at this point in the history
  • Loading branch information
00Kai0 authored Feb 1, 2021
1 parent dcc2c56 commit 6f31fc9
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 26 deletions.
27 changes: 1 addition & 26 deletions specification/mediaservices/resource-manager/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -194,32 +194,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.media
package-name: azure-mgmt-media
clear-output-folder: true
```

``` yaml $(python) && $(python-mode) == 'update'
python:
no-namespace-folders: true
output-folder: $(python-sdks-folder)/media/azure-mgmt-media/azure/mgmt/media
```

``` yaml $(python) && $(python-mode) == 'create'
python:
basic-setup-py: true
output-folder: $(python-sdks-folder)/media/azure-mgmt-media
```
See configuration in [readme.python.md](./readme.python.md)

## Go

Expand Down
46 changes: 46 additions & 0 deletions specification/mediaservices/resource-manager/readme.python.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
## 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
python:
azure-arm: true
license-header: MICROSOFT_MIT_NO_VERSION
payload-flattening-threshold: 2
namespace: azure.mgmt.media
package-name: azure-mgmt-media
clear-output-folder: true
```
``` yaml $(python) && $(track2)
python-mode: create
azure-arm: true
license-header: MICROSOFT_MIT_NO_VERSION
namespace: azure.mgmt.media
package-name: azure-mgmt-media
clear-output-folder: true
```
``` yaml $(python) && $(python-mode) == 'update' && !$(track2)
python:
no-namespace-folders: true
output-folder: $(python-sdks-folder)/media/azure-mgmt-media/azure/mgmt/media
```
``` yaml $(python) && $(python-mode) == 'create' && !$(track2)
python:
basic-setup-py: true
output-folder: $(python-sdks-folder)/media/azure-mgmt-media
```
``` yaml $(python) && $(python-mode) == 'update' && $(track2)
no-namespace-folders: true
output-folder: $(python-sdks-folder)/media/azure-mgmt-media/azure/mgmt/media
```
``` yaml $(python) && $(python-mode) == 'create' && $(track2)
basic-setup-py: true
output-folder: $(python-sdks-folder)/media/azure-mgmt-media
```

0 comments on commit 6f31fc9

Please sign in to comment.