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

iothub t2 readme config #13980

Merged
merged 3 commits into from
Apr 20, 2021
Merged
Show file tree
Hide file tree
Changes from 2 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
8 changes: 5 additions & 3 deletions specification/iothub/resource-manager/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -221,9 +221,7 @@ 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 azure-mgmt-iothub
- repo: azure-sdk-for-python-track2
- repo: azure-sdk-for-java
- repo: azure-sdk-for-go
- repo: azure-sdk-for-js
Expand All @@ -250,6 +248,10 @@ csharp:
clear-output-folder: true
```

## Python

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

## Go

See configuration in [readme.go.md](./readme.go.md)
Expand Down
67 changes: 34 additions & 33 deletions specification/iothub/resource-manager/readme.python.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,13 @@ 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:
azure-arm: true
license-header: MICROSOFT_MIT_NO_VERSION
payload-flattening-threshold: 2
namespace: azure.mgmt.iothub
package-name: azure-mgmt-iothub
package-version: 0.8.2
clear-output-folder: true
no-namespace-folders: true
azure-arm: true
license-header: MICROSOFT_MIT_NO_VERSION
namespace: azure.mgmt.iothub
package-name: azure-mgmt-iothub
package-version: 0.8.2
clear-output-folder: true
no-namespace-folders: true
```

### Python multi-api
Expand All @@ -22,6 +20,7 @@ Generate all API versions currently shipped for this package

```yaml $(python) && $(multiapi)
batch:
- tag: package-preview-2021-03
- tag: package-2020-03
- tag: package-2019-11
- tag: package-2019-03
Expand All @@ -32,15 +31,24 @@ batch:
- tag: package-2016-02
```

### Tag: package-preview-2021-03 and python

These settings apply only when `--tag=package-preview-2021-03 --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 $(tag) == 'package-preview-2021-03' && $(python)
namespace: azure.mgmt.iothub.v2021_03_01_preview
output-folder: $(python-sdks-folder)/iothub/azure-mgmt-iothub/azure/mgmt/iothub/v2021_03_01_preview
```

### Tag: package-2020-03 and python

These settings apply only when `--tag=package-2020-03 --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 $(tag) == 'package-2020-03' && $(python)
python:
namespace: azure.mgmt.iothub.v2020_03_01
output-folder: $(python-sdks-folder)/iothub/azure-mgmt-iothub/azure/mgmt/iothub/v2020_03_01
namespace: azure.mgmt.iothub.v2020_03_01
output-folder: $(python-sdks-folder)/iothub/azure-mgmt-iothub/azure/mgmt/iothub/v2020_03_01
```

### Tag: package-2019-11 and python
Expand All @@ -49,9 +57,8 @@ These settings apply only when `--tag=package-2019-11 --python` is specified on
Please also specify `--python-sdks-folder=<path to the root directory of your azure-sdk-for-python clone>`.

``` yaml $(tag) == 'package-2019-11' && $(python)
python:
namespace: azure.mgmt.iothub.v2019_11_04
output-folder: $(python-sdks-folder)/iothub/azure-mgmt-iothub/azure/mgmt/iothub/v2019_11_04
namespace: azure.mgmt.iothub.v2019_11_04
output-folder: $(python-sdks-folder)/iothub/azure-mgmt-iothub/azure/mgmt/iothub/v2019_11_04
```

### Tag: package-2019-03 and python
Expand All @@ -60,9 +67,8 @@ These settings apply only when `--tag=package-2019-03 --python` is specified on
Please also specify `--python-sdks-folder=<path to the root directory of your azure-sdk-for-python clone>`.

``` yaml $(tag) == 'package-2019-03' && $(python)
python:
namespace: azure.mgmt.iothub.v2019_03_22
output-folder: $(python-sdks-folder)/iothub/azure-mgmt-iothub/azure/mgmt/iothub/v2019_03_22
namespace: azure.mgmt.iothub.v2019_03_22
output-folder: $(python-sdks-folder)/iothub/azure-mgmt-iothub/azure/mgmt/iothub/v2019_03_22
```

### Tag: package-2018-04 and python
Expand All @@ -71,9 +77,8 @@ These settings apply only when `--tag=package-2018-04 --python` is specified on
Please also specify `--python-sdks-folder=<path to the root directory of your azure-sdk-for-python clone>`.

``` yaml $(tag) == 'package-2018-04' && $(python)
python:
namespace: azure.mgmt.iothub.v2018_04_01
output-folder: $(python-sdks-folder)/iothub/azure-mgmt-iothub/azure/mgmt/iothub/v2018_04_01
namespace: azure.mgmt.iothub.v2018_04_01
output-folder: $(python-sdks-folder)/iothub/azure-mgmt-iothub/azure/mgmt/iothub/v2018_04_01
```

### Tag: package-2018-01 and python
Expand All @@ -82,9 +87,8 @@ These settings apply only when `--tag=package-2018-01 --python` is specified on
Please also specify `--python-sdks-folder=<path to the root directory of your azure-sdk-for-python clone>`.

``` yaml $(tag) == 'package-2018-01' && $(python)
python:
namespace: azure.mgmt.iothub.v2018_01_22
output-folder: $(python-sdks-folder)/iothub/azure-mgmt-iothub/azure/mgmt/iothub/v2018_01_22
namespace: azure.mgmt.iothub.v2018_01_22
output-folder: $(python-sdks-folder)/iothub/azure-mgmt-iothub/azure/mgmt/iothub/v2018_01_22
```

### Tag: package-2017-07 and python
Expand All @@ -93,9 +97,8 @@ These settings apply only when `--tag=package-2017-07 --python` is specified on
Please also specify `--python-sdks-folder=<path to the root directory of your azure-sdk-for-python clone>`.

``` yaml $(tag) == 'package-2017-07' && $(python)
python:
namespace: azure.mgmt.iothub.v2017_07_01
output-folder: $(python-sdks-folder)/iothub/azure-mgmt-iothub/azure/mgmt/iothub/v2017_07_01
namespace: azure.mgmt.iothub.v2017_07_01
output-folder: $(python-sdks-folder)/iothub/azure-mgmt-iothub/azure/mgmt/iothub/v2017_07_01
```

### Tag: package-2017-01 and python
Expand All @@ -104,9 +107,8 @@ These settings apply only when `--tag=package-2017-01 --python` is specified on
Please also specify `--python-sdks-folder=<path to the root directory of your azure-sdk-for-python clone>`.

``` yaml $(tag) == 'package-2017-01' && $(python)
python:
namespace: azure.mgmt.iothub.v2017_01_19
output-folder: $(python-sdks-folder)/iothub/azure-mgmt-iothub/azure/mgmt/iothub/v2017_01_19
namespace: azure.mgmt.iothub.v2017_01_19
output-folder: $(python-sdks-folder)/iothub/azure-mgmt-iothub/azure/mgmt/iothub/v2017_01_19
```

### Tag: package-2016-02 and python
Expand All @@ -115,7 +117,6 @@ These settings apply only when `--tag=package-2016-02 --python` is specified on
Please also specify `--python-sdks-folder=<path to the root directory of your azure-sdk-for-python clone>`.

``` yaml $(tag) == 'package-2016-02' && $(python)
python:
namespace: azure.mgmt.iothub.v2016_02_03
output-folder: $(python-sdks-folder)/iothub/azure-mgmt-iothub/azure/mgmt/iothub/v2016_02_03
namespace: azure.mgmt.iothub.v2016_02_03
output-folder: $(python-sdks-folder)/iothub/azure-mgmt-iothub/azure/mgmt/iothub/v2016_02_03
```