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 1 commit
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
Prev Previous commit
iothub t2 readme config
  • Loading branch information
RAY-316 committed Apr 19, 2021
commit d529f318cf00be6a74e4fec2c61987abdbba8da5
3 changes: 3 additions & 0 deletions specification/iothub/resource-manager/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,9 @@ 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
Expand Down
58 changes: 55 additions & 3 deletions specification/iothub/resource-manager/readme.python.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,19 @@ 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)
``` yaml $(python) && !$(track2)
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
```

``` yaml $(python) && $(track2)
azure-arm: true
license-header: MICROSOFT_MIT_NO_VERSION
namespace: azure.mgmt.iothub
Expand All @@ -18,7 +30,20 @@ no-namespace-folders: true

Generate all API versions currently shipped for this package

```yaml $(python) && $(multiapi)
```yaml $(python) && $(multiapi) && !$(track2)
batch:
- tag: package-preview-2021-03
- tag: package-2020-03
- tag: package-2019-11
- tag: package-2019-03
- tag: package-2018-04
- tag: package-2018-01
- tag: package-2017-07
- tag: package-2017-01
- tag: package-2016-02
```

```yaml $(python) && $(multiapi) && $(track2)
batch:
- tag: package-preview-2021-03
- tag: package-2020-03
Expand All @@ -39,6 +64,9 @@ Please also specify `--python-sdks-folder=<path to the root directory of your az
``` 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
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
Expand All @@ -49,6 +77,9 @@ Please also specify `--python-sdks-folder=<path to the root directory of your az
``` yaml $(tag) == 'package-2020-03' && $(python)
namespace: azure.mgmt.iothub.v2020_03_01
output-folder: $(python-sdks-folder)/iothub/azure-mgmt-iothub/azure/mgmt/iothub/v2020_03_01
python:
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 @@ -59,6 +90,9 @@ Please also specify `--python-sdks-folder=<path to the root directory of your az
``` yaml $(tag) == 'package-2019-11' && $(python)
namespace: azure.mgmt.iothub.v2019_11_04
output-folder: $(python-sdks-folder)/iothub/azure-mgmt-iothub/azure/mgmt/iothub/v2019_11_04
python:
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 @@ -69,6 +103,9 @@ Please also specify `--python-sdks-folder=<path to the root directory of your az
``` yaml $(tag) == 'package-2019-03' && $(python)
namespace: azure.mgmt.iothub.v2019_03_22
output-folder: $(python-sdks-folder)/iothub/azure-mgmt-iothub/azure/mgmt/iothub/v2019_03_22
python:
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 @@ -79,6 +116,9 @@ Please also specify `--python-sdks-folder=<path to the root directory of your az
``` yaml $(tag) == 'package-2018-04' && $(python)
namespace: azure.mgmt.iothub.v2018_04_01
output-folder: $(python-sdks-folder)/iothub/azure-mgmt-iothub/azure/mgmt/iothub/v2018_04_01
python:
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 @@ -89,6 +129,9 @@ Please also specify `--python-sdks-folder=<path to the root directory of your az
``` yaml $(tag) == 'package-2018-01' && $(python)
namespace: azure.mgmt.iothub.v2018_01_22
output-folder: $(python-sdks-folder)/iothub/azure-mgmt-iothub/azure/mgmt/iothub/v2018_01_22
python:
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 @@ -99,6 +142,9 @@ Please also specify `--python-sdks-folder=<path to the root directory of your az
``` yaml $(tag) == 'package-2017-07' && $(python)
namespace: azure.mgmt.iothub.v2017_07_01
output-folder: $(python-sdks-folder)/iothub/azure-mgmt-iothub/azure/mgmt/iothub/v2017_07_01
python:
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 @@ -109,6 +155,9 @@ Please also specify `--python-sdks-folder=<path to the root directory of your az
``` yaml $(tag) == 'package-2017-01' && $(python)
namespace: azure.mgmt.iothub.v2017_01_19
output-folder: $(python-sdks-folder)/iothub/azure-mgmt-iothub/azure/mgmt/iothub/v2017_01_19
python:
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 @@ -119,4 +168,7 @@ Please also specify `--python-sdks-folder=<path to the root directory of your az
``` yaml $(tag) == 'package-2016-02' && $(python)
namespace: azure.mgmt.iothub.v2016_02_03
output-folder: $(python-sdks-folder)/iothub/azure-mgmt-iothub/azure/mgmt/iothub/v2016_02_03
```
python:
namespace: azure.mgmt.iothub.v2016_02_03
output-folder: $(python-sdks-folder)/iothub/azure-mgmt-iothub/azure/mgmt/iothub/v2016_02_03
```