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

add iothub track2 config #11667

Closed
wants to merge 2 commits into from
Closed
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 @@ -287,7 +287,8 @@
"description": "After the long running delete operation completes successfully, a 404 Not Found is returned when the status polling request no longer finds the Iot hub metadata in the service.",
"schema": {
"$ref": "#/definitions/ErrorDetails"
}
},
"x-ms-error-response": true
},
"default": {
"description": "DefaultErrorResponse",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,8 @@
"description": "After the long running delete operation completes successfully, a 404 Not Found is returned when the status polling request no longer finds the Iot hub metadata in the service.",
"schema": {
"$ref": "#/definitions/ErrorDetails"
}
},
"x-ms-error-response": true
},
"default": {
"description": "DefaultErrorResponse",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,8 @@
"description": "After the long running delete operation completes successfully, a 404 Not Found is returned when the status polling request no longer finds the Iot hub metadata in the service.",
"schema": {
"$ref": "#/definitions/ErrorDetails"
}
},
"x-ms-error-response": true
},
"default": {
"description": "DefaultErrorResponse",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,8 @@
"description": "After the long running delete operation completes successfully, a 404 Not Found is returned when the status polling request no longer finds the Iot hub metadata in the service.",
"schema": {
"$ref": "#/definitions/ErrorDetails"
}
},
"x-ms-error-response": true
},
"default": {
"description": "DefaultErrorResponse",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,8 @@
"description": "After the long running delete operation completes successfully, a 404 Not Found is returned when the status polling request no longer finds the Iot hub metadata in the service.",
"schema": {
"$ref": "#/definitions/ErrorDetails"
}
},
"x-ms-error-response": true
},
"default": {
"description": "DefaultErrorResponse",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,8 @@
"description": "After the long running delete operation completes successfully, a 404 Not Found is returned when the status polling request no longer finds the Iot hub metadata in the service.",
"schema": {
"$ref": "#/definitions/ErrorDetails"
}
},
"x-ms-error-response": true
},
"default": {
"description": "DefaultErrorResponse",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,8 @@
"description": "After the long running delete operation completes successfully, a 404 Not Found is returned when the status polling request no longer finds the Iot hub metadata in the service.",
"schema": {
"$ref": "#/definitions/ErrorDetails"
}
},
"x-ms-error-response": true
},
"default": {
"description": "DefaultErrorResponse",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,8 @@
"description": "After the long running delete operation completes successfully, a 404 Not Found is returned when the status polling request no longer finds the Iot hub metadata in the service.",
"schema": {
"$ref": "#/definitions/ErrorDetails"
}
},
"x-ms-error-response": true
},
"default": {
"description": "DefaultErrorResponse",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,8 @@
"description": "After the long running delete operation completes successfully, a 404 Not Found is returned when the status polling request no longer finds the Iot hub metadata in the service.",
"schema": {
"$ref": "#/definitions/ErrorDetails"
}
},
"x-ms-error-response": true
},
"default": {
"description": "DefaultErrorResponse",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,8 @@
"description": "After the long running delete operation completes successfully, a 404 Not Found is returned when the status polling request no longer finds the Iot hub metadata in the service.",
"schema": {
"$ref": "#/definitions/ErrorDetails"
}
},
"x-ms-error-response": true
},
"default": {
"description": "DefaultErrorResponse",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,8 @@
"description": "After the long running delete operation completes successfully, a 404 Not Found is returned when the status polling request no longer finds the Iot hub metadata in the service.",
"schema": {
"$ref": "#/definitions/ErrorDetails"
}
},
"x-ms-error-response": true
},
"default": {
"description": "DefaultErrorResponse",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,8 @@
"description": "After the long running delete operation completes successfully, a 404 Not Found is returned when the status polling request no longer finds the Iot hub metadata in the service.",
"schema": {
"$ref": "#/definitions/ErrorDetails"
}
},
"x-ms-error-response": true
},
"default": {
"description": "DefaultErrorResponse",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,8 @@
"description": "After the long running delete operation completes successfully, a 404 Not Found is returned when the status polling request no longer finds the Iot hub metadata in the service.",
"schema": {
"$ref": "#/definitions/ErrorDetails"
}
},
"x-ms-error-response": true
},
"default": {
"description": "DefaultErrorResponse",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,8 @@
"description": "After the long running delete operation completes successfully, a 404 Not Found is returned when the status polling request no longer finds the Iot hub metadata in the service.",
"schema": {
"$ref": "#/definitions/ErrorDetails"
}
},
"x-ms-error-response": true
},
"default": {
"description": "DefaultErrorResponse",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,8 @@
"description": "After the long running delete operation completes successfully, a 404 Not Found is returned when the status polling request no longer finds the Iot hub metadata in the service.",
"schema": {
"$ref": "#/definitions/ErrorDetails"
}
},
"x-ms-error-response": true
},
"default": {
"description": "DefaultErrorResponse",
Expand Down
89 changes: 79 additions & 10 deletions specification/iothub/resource-manager/readme.python.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +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)
``` yaml $(python) && !$(track2)
python:
azure-arm: true
license-header: MICROSOFT_MIT_NO_VERSION
Expand All @@ -16,11 +16,33 @@ python:
no-namespace-folders: true
```

``` yaml $(python) && $(track2)
azure-arm: true
license-header: MICROSOFT_MIT_NO_VERSION
namespace: azure.mgmt.iothub
package-name: azure-mgmt-iothub
package-version: 1.0.0b1
no-namespace-folders: true
```

### Python multi-api

Generate all API versions currently shipped for this package

```yaml $(python) && $(multiapi)
```yaml $(python) && $(multiapi) && !$(track2)
batch:
- 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)
clear-output-folder: true
batch:
- tag: package-2020-03
- tag: package-2019-11
Expand All @@ -30,92 +52,139 @@ batch:
- tag: package-2017-07
- tag: package-2017-01
- tag: package-2016-02
- multiapiscript: true
```

``` yaml $(multiapiscript)
output-folder: $(python-sdks-folder)/iothub/azure-mgmt-iothub/azure/mgmt/iothub/
clear-output-folder: false
perform-load: false
```

### 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)
``` yaml $(tag) == 'package-2020-03' && $(python) && !$(track2)
python:
namespace: azure.mgmt.iothub.v2020_03_01
output-folder: $(python-sdks-folder)/iothub/azure-mgmt-iothub/azure/mgmt/iothub/v2020_03_01
```

``` yaml $(tag) == 'package-2020-03' && $(python) && $(track2)
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

These settings apply only when `--tag=package-2019-11 --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-2019-11' && $(python)
``` yaml $(tag) == 'package-2019-11' && $(python) && !$(track2)
python:
namespace: azure.mgmt.iothub.v2019_11_04
output-folder: $(python-sdks-folder)/iothub/azure-mgmt-iothub/azure/mgmt/iothub/v2019_11_04
```

``` yaml $(tag) == 'package-2019-11' && $(python) && $(track2)
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

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

``` yaml $(tag) == 'package-2019-03' && $(python) && $(track2)
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

These settings apply only when `--tag=package-2018-04 --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-2018-04' && $(python)
``` yaml $(tag) == 'package-2018-04' && $(python) && !$(track2)
python:
namespace: azure.mgmt.iothub.v2018_04_01
output-folder: $(python-sdks-folder)/iothub/azure-mgmt-iothub/azure/mgmt/iothub/v2018_04_01
```

``` yaml $(tag) == 'package-2018-04' && $(python) && $(track2)
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

These settings apply only when `--tag=package-2018-01 --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-2018-01' && $(python)
``` yaml $(tag) == 'package-2018-01' && $(python) && !$(track2)
python:
namespace: azure.mgmt.iothub.v2018_01_22
output-folder: $(python-sdks-folder)/iothub/azure-mgmt-iothub/azure/mgmt/iothub/v2018_01_22
```

``` yaml $(tag) == 'package-2018-01' && $(python) && $(track2)
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

These settings apply only when `--tag=package-2017-07 --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-2017-07' && $(python)
``` yaml $(tag) == 'package-2017-07' && $(python) && !$(track2)
python:
namespace: azure.mgmt.iothub.v2017_07_01
output-folder: $(python-sdks-folder)/iothub/azure-mgmt-iothub/azure/mgmt/iothub/v2017_07_01
```

``` yaml $(tag) == 'package-2017-07' && $(python) && $(track2)
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

These settings apply only when `--tag=package-2017-01 --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-2017-01' && $(python)
``` yaml $(tag) == 'package-2017-01' && $(python) && !$(track2)
python:
namespace: azure.mgmt.iothub.v2017_01_19
output-folder: $(python-sdks-folder)/iothub/azure-mgmt-iothub/azure/mgmt/iothub/v2017_01_19
```

``` yaml $(tag) == 'package-2017-01' && $(python) && $(track2)
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

These settings apply only when `--tag=package-2016-02 --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-2016-02' && $(python)
``` yaml $(tag) == 'package-2016-02' && $(python) && !$(track2)
python:
namespace: azure.mgmt.iothub.v2016_02_03
output-folder: $(python-sdks-folder)/iothub/azure-mgmt-iothub/azure/mgmt/iothub/v2016_02_03
```

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