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

[python] track2 config for alertsmanagement,applicationinsights,attestation,batch,cost-managemen… #15000

Merged
merged 1 commit into from
Jun 28, 2021
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
1 change: 0 additions & 1 deletion specification/alertsmanagement/resource-manager/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,6 @@ This is not used by Autorest itself.
``` yaml $(swagger-to-sdk)
swagger-to-sdk:
- repo: azure-sdk-for-net
- repo: azure-sdk-for-python
- repo: azure-sdk-for-python-track2
- repo: azure-libraries-for-java
- repo: azure-sdk-for-go
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,47 +4,28 @@ 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.alertsmanagement
package-name: azure-mgmt-alertsmanagement
clear-output-folder: true
```

``` yaml $(python) && $(track2)
python-mode: create
azure-arm: true
license-header: MICROSOFT_MIT_NO_VERSION
namespace: azure.mgmt.alertsmanagement
package-name: azure-mgmt-alertsmanagement
package-version: 1.0.0b1
clear-output-folder: true
modelerfour:
lenient-model-deduplication: true
```

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

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

``` yaml $(python) && $(python-mode) == 'create' && !$(track2)
python:
basic-setup-py: true
output-folder: $(python-sdks-folder)/alertsmanagement/azure-mgmt-alertsmanagement
```

``` yaml $(python) && $(python-mode) == 'create' && $(track2)
basic-setup-py: true
output-folder: $(python-sdks-folder)/alertsmanagement/azure-mgmt-alertsmanagement
```

``` yaml $(python) && $(track2)
modelerfour:
lenient-model-deduplication: true
```
3 changes: 0 additions & 3 deletions specification/applicationinsights/resource-manager/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -435,9 +435,6 @@ This is not used by Autorest itself.
``` yaml $(swagger-to-sdk)
swagger-to-sdk:
- repo: azure-sdk-for-net
- repo: azure-sdk-for-python
after_scripts:
- python ./scripts/multiapi_init_gen.py --default-api-version=2020-03-01-preview azure-mgmt-applicationinsights
- repo: azure-sdk-for-python-track2
- repo: azure-sdk-for-java
- repo: azure-sdk-for-go
Expand Down
Original file line number Diff line number Diff line change
@@ -1,43 +1,20 @@
## Python

## python
These settings apply only when `--python` is specified on the command line.

```yaml $(python) && !$(track2)
python-mode: create
python:
azure-arm: true
license-header: MICROSOFT_MIT_NO_VERSION
payload-flattening-threshold: 2
package-name: azure-mgmt-applicationinsights
clear-output-folder: true
no-namespace-folders: true
```
```yaml $(python) && $(track2)
python-mode: create
azure-arm: true
license-header: MICROSOFT_MIT_NO_VERSION
package-name: azure-mgmt-applicationinsights
package-version: 1.0.0b1
clear-output-folder: true
no-namespace-folders: true
modelerfour:
lenient-model-deduplication: true
```
### Python multi-api

``` yaml $(python) && $(multiapi) && !$(track2)
batch:
- tag: package-2015-05
- tag: package-2017-10
- tag: package-2018-05-01-preview
- tag: package-2018-06-17-preview
- tag: package-2019-10-17-preview
- tag: package-2020-02-02-preview
- tag: package-2020-02-02
- tag: package-2020-03-01-preview
- tag: package-preview-2020-06-only
```
``` yaml $(python) && $(multiapi) && $(track2)
clear-output-folder: true
batch:
- tag: package-2015-05
- tag: package-2017-10
Expand All @@ -61,11 +38,6 @@ perform-load: false

These settings apply only when `--tag=package-2015-05 --python` is specified on the command line.

``` yaml $(tag) == 'package-2015-05' && $(python) && !$(track2)
python:
namespace: azure.mgmt.applicationinsights.v2015_05_01
output-folder: $(python-sdks-folder)/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2015_05_01
```
``` yaml $(tag) == 'package-2015-05' && $(python) && $(track2)
namespace: azure.mgmt.applicationinsights.v2015_05_01
output-folder: $(python-sdks-folder)/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2015_05_01
Expand All @@ -75,11 +47,6 @@ output-folder: $(python-sdks-folder)/applicationinsights/azure-mgmt-applicationi

These settings apply only when `--tag=package-2017-10 --python` is specified on the command line.

``` yaml $(tag) == 'package-2017-10' && $(python) && !$(track2)
python:
namespace: azure.mgmt.applicationinsights.v2017_10_01
output-folder: $(python-sdks-folder)/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2017_10_01
```
``` yaml $(tag) == 'package-2017-10' && $(python) && $(track2)
namespace: azure.mgmt.applicationinsights.v2017_10_01
output-folder: $(python-sdks-folder)/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2017_10_01
Expand All @@ -89,11 +56,6 @@ output-folder: $(python-sdks-folder)/applicationinsights/azure-mgmt-applicationi

These settings apply only when `--tag=package-2018-06-17-preview --python` is specified on the command line.

``` yaml $(tag) == 'package-2018-06-17-preview' && $(python) && !$(track2)
python:
namespace: azure.mgmt.applicationinsights.v2018_06_17_preview
output-folder: $(python-sdks-folder)/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2018_06_17_preview
```
``` yaml $(tag) == 'package-2018-06-17-preview' && $(python) && $(track2)
namespace: azure.mgmt.applicationinsights.v2018_06_17_preview
output-folder: $(python-sdks-folder)/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2018_06_17_preview
Expand All @@ -103,11 +65,6 @@ output-folder: $(python-sdks-folder)/applicationinsights/azure-mgmt-applicationi

These settings apply only when `--tag=package-2019-10-17-preview --python` is specified on the command line.

```yaml $(tag) == 'package-2019-10-17-preview' && $(python) && !$(track2)
python:
namespace: azure.mgmt.applicationinsights.v2019_10_17_preview
output-folder: $(python-sdks-folder)/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2019_10_17_preview
```
```yaml $(tag) == 'package-2019-10-17-preview' && $(python) && $(track2)
namespace: azure.mgmt.applicationinsights.v2019_10_17_preview
output-folder: $(python-sdks-folder)/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2019_10_17_preview
Expand All @@ -117,11 +74,6 @@ output-folder: $(python-sdks-folder)/applicationinsights/azure-mgmt-applicationi

These settings apply only when `--tag=package-2018-05-01-preview --python` is specified on the command line.

``` yaml $(tag) == 'package-2018-05-01-preview' && $(python) && !$(track2)
python:
namespace: azure.mgmt.applicationinsights.v2018_05_01_preview
output-folder: $(python-sdks-folder)/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2018_05_01_preview
```
``` yaml $(tag) == 'package-2018-05-01-preview' && $(python) && $(track2)
namespace: azure.mgmt.applicationinsights.v2018_05_01_preview
output-folder: $(python-sdks-folder)/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2018_05_01_preview
Expand All @@ -131,11 +83,6 @@ output-folder: $(python-sdks-folder)/applicationinsights/azure-mgmt-applicationi

These settings apply only when `--tag=package-2020-02-02-preview --python` is specified on the command line.

``` yaml $(tag) == 'package-2020-02-02-preview' && $(python) && !$(track2)
python:
namespace: azure.mgmt.applicationinsights.v2020_02_02_preview
output-folder: $(python-sdks-folder)/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2020_02_02_preview
```
``` yaml $(tag) == 'package-2020-02-02-preview' && $(python) && $(track2)
namespace: azure.mgmt.applicationinsights.v2020_02_02_preview
output-folder: $(python-sdks-folder)/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2020_02_02_preview
Expand All @@ -145,11 +92,6 @@ output-folder: $(python-sdks-folder)/applicationinsights/azure-mgmt-applicationi

These settings apply only when `--tag=package-2020-03-01-preview --python` is specified on the command line.

``` yaml $(tag) == 'package-2020-03-01-preview' && $(python) && !$(track2)
python:
namespace: azure.mgmt.applicationinsights.v2020_03_01_preview
output-folder: $(python-sdks-folder)/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2020_03_01_preview
```
``` yaml $(tag) == 'package-2020-03-01-preview' && $(python) && $(track2)
namespace: azure.mgmt.applicationinsights.v2020_03_01_preview
output-folder: $(python-sdks-folder)/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2020_03_01_preview
Expand All @@ -159,12 +101,11 @@ output-folder: $(python-sdks-folder)/applicationinsights/azure-mgmt-applicationi

These settings apply only when `--tag=package-preview-2020-06-only --python` is specified on the command line.

``` yaml $(tag) == 'package-preview-2020-06-only' && $(python) && !$(track2)
python:
namespace: azure.mgmt.applicationinsights.v2020_06_02_preview
output-folder: $(python-sdks-folder)/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2020_06_02_preview
```
``` yaml $(tag) == 'package-preview-2020-06-only' && $(python) && $(track2)
namespace: azure.mgmt.applicationinsights.v2020_06_02_preview
output-folder: $(python-sdks-folder)/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2020_06_02_preview
```
```yaml $(python) && $(track2)
modelerfour:
lenient-model-deduplication: true
```
1 change: 0 additions & 1 deletion specification/attestation/resource-manager/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ This is not used by Autorest itself.
``` yaml $(swagger-to-sdk)
swagger-to-sdk:
- repo: azure-sdk-for-net
- repo: azure-sdk-for-python
- repo: azure-sdk-for-python-track2
- repo: azure-sdk-for-go
- repo: azure-sdk-for-js
Expand Down
28 changes: 6 additions & 22 deletions specification/attestation/resource-manager/readme.python.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +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) && !$(track2)
python-mode: create
python:
azure-arm: true
license-header: MICROSOFT_MIT_NO_VERSION
payload-flattening-threshold: 2
namespace: azure.mgmt.attestation
package-name: azure-mgmt-attestation
package-version: 0.1.0
clear-output-folder: true
```
``` yaml $(python) && $(track2)
python-mode: create
azure-arm: true
license-header: MICROSOFT_MIT_NO_VERSION
namespace: azure.mgmt.attestation
Expand All @@ -26,16 +14,7 @@ clear-output-folder: true
modelerfour:
lenient-model-deduplication: true
```
``` yaml $(python) && $(python-mode) == 'update' && !$(track2)
python:
no-namespace-folders: true
output-folder: $(python-sdks-folder)/attestation/azure-mgmt-attestation/azure/mgmt/attestation
```
``` yaml $(python) && $(python-mode) == 'create' && !$(track2)
python:
basic-setup-py: true
output-folder: $(python-sdks-folder)/attestation/azure-mgmt-attestation
```

``` yaml $(python) && $(python-mode) == 'update' && $(track2)
no-namespace-folders: true
output-folder: $(python-sdks-folder)/attestation/azure-mgmt-attestation/azure/mgmt/attestation
Expand All @@ -44,3 +23,8 @@ output-folder: $(python-sdks-folder)/attestation/azure-mgmt-attestation/azure/mg
basic-setup-py: true
output-folder: $(python-sdks-folder)/attestation/azure-mgmt-attestation
```

``` yaml $(python) && $(track2)
modelerfour:
lenient-model-deduplication: true
```
1 change: 0 additions & 1 deletion specification/batch/resource-manager/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,6 @@ This is not used by Autorest itself.
``` yaml $(swagger-to-sdk)
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
Expand Down
22 changes: 2 additions & 20 deletions specification/batch/resource-manager/readme.python.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +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) && !$(track2)
python-mode: create
python:
azure-arm: true
license-header: MICROSOFT_MIT_NO_VERSION
payload-flattening-threshold: 2
namespace: azure.mgmt.batch
package-name: azure-mgmt-batch
clear-output-folder: true
```

``` yaml $(python) && $(track2)
python-mode: create
azure-arm: true
license-header: MICROSOFT_MIT_NO_VERSION
namespace: azure.mgmt.batch
Expand All @@ -25,18 +13,12 @@ package-version: 14.0.0b1
clear-output-folder: true
```

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

``` yaml $(python) && $(python-mode) == 'create'
``` yaml $(python) && $(python-mode) == 'create' && $(track2)
basic-setup-py: true
output-folder: $(python-sdks-folder)/batch/azure-mgmt-batch
python:
basic-setup-py: true
output-folder: $(python-sdks-folder)/batch/azure-mgmt-batch
```
5 changes: 4 additions & 1 deletion specification/cost-management/resource-manager/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,6 @@ This is not used by Autorest itself.
swagger-to-sdk:
- repo: azure-sdk-for-net
- repo: azure-sdk-for-go
- repo: azure-sdk-for-python
- repo: azure-sdk-for-python-track2
- repo: azure-sdk-for-node
- repo: azure-sdk-for-ruby
Expand Down Expand Up @@ -256,6 +255,10 @@ csharp:

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

## Python

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

## Java

These settings apply only when `--java` is specified on the command line.
Expand Down
30 changes: 4 additions & 26 deletions specification/cost-management/resource-manager/readme.python.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,48 +4,26 @@ 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.costmanagement
package-name: azure-mgmt-costmanagement
package-version: 1.2.0
clear-output-folder: true
```

``` yaml $(python) && $(track2)
python-mode: create
azure-arm: true
license-header: MICROSOFT_MIT_NO_VERSION
namespace: azure.mgmt.costmanagement
package-name: azure-mgmt-costmanagement
package-version: 1.0.0b1
clear-output-folder: true
modelerfour:
lenient-model-deduplication: true
```

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

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

``` yaml $(python) && $(python-mode) == 'create' && !$(track2)
python:
basic-setup-py: true
output-folder: $(python-sdks-folder)/costmanagement/azure-mgmt-costmanagement
```

``` yaml $(python) && $(python-mode) == 'create' && $(track2)
basic-setup-py: true
output-folder: $(python-sdks-folder)/costmanagement/azure-mgmt-costmanagement
```
``` yaml $(python) && $(track2)
modelerfour:
lenient-model-deduplication: true
```
Loading