Skip to content

Commit

Permalink
update eventhub python.md for track2 (Azure#9066)
Browse files Browse the repository at this point in the history
* update eventhub python.md for track2

* keep python:

* Update readme.python.md

Co-authored-by: Zim Kalinowski <zikalino@microsoft.com>
  • Loading branch information
00Kai0 and Zim Kalinowski committed Oct 12, 2020
1 parent 2ecd1d5 commit b6c4aff
Showing 1 changed file with 35 additions and 5 deletions.
40 changes: 35 additions & 5 deletions specification/eventhub/resource-manager/readme.python.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

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

``` yaml $(python)
``` yaml !$(track2)
python:
azure-arm: true
license-header: MICROSOFT_MIT_NO_VERSION
Expand All @@ -12,23 +12,49 @@ python:
no-namespace-folders: true
```
These settings apply only when `--track2` is specified on the command line.

``` yaml $(track2)
azure-arm: true
license-header: MICROSOFT_MIT_NO_VERSION
package-name: azure-mgmt-eventhub
no-namespace-folders: true
```

### Python multi-api

Generate all API versions currently shipped for this package

```yaml $(python) && $(multiapi)
```yaml $(multiapi) && !$(track2)
batch:
- tag: package-2018-01-preview
- tag: package-2017-04
- tag: package-2015-08
```

```yaml $(multiapi) && $(track2)
clear-output-folder: true
batch:
- tag: package-2018-01-preview
- tag: package-2017-04
- tag: package-2015-08
- multiapiscript: true
```

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

### Tag: package-2018-01-preview and python

These settings apply only when `--tag=package-2018-01-preview --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-preview' && $(python)
``` yaml $(tag) == 'package-2018-01-preview'
namespace: azure.mgmt.eventhub.v2018_01_01_preview
output-folder: $(python-sdks-folder)/eventhub/azure-mgmt-eventhub/azure/mgmt/eventhub/v2018_01_01_preview
python:
namespace: azure.mgmt.eventhub.v2018_01_01_preview
output-folder: $(python-sdks-folder)/eventhub/azure-mgmt-eventhub/azure/mgmt/eventhub/v2018_01_01_preview
Expand All @@ -39,7 +65,9 @@ python:
These settings apply only when `--tag=package-2017-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-2017-04' && $(python)
``` yaml $(tag) == 'package-2017-04'
namespace: azure.mgmt.eventhub.v2017_04_01
output-folder: $(python-sdks-folder)/eventhub/azure-mgmt-eventhub/azure/mgmt/eventhub/v2017_04_01
python:
namespace: azure.mgmt.eventhub.v2017_04_01
output-folder: $(python-sdks-folder)/eventhub/azure-mgmt-eventhub/azure/mgmt/eventhub/v2017_04_01
Expand All @@ -50,7 +78,9 @@ python:
These settings apply only when `--tag=package-2015-08 --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-2015-08' && $(python)
``` yaml $(tag) == 'package-2015-08'
namespace: azure.mgmt.eventhub.v2015_08_01
output-folder: $(python-sdks-folder)/eventhub/azure-mgmt-eventhub/azure/mgmt/eventhub/v2015_08_01
python:
namespace: azure.mgmt.eventhub.v2015_08_01
output-folder: $(python-sdks-folder)/eventhub/azure-mgmt-eventhub/azure/mgmt/eventhub/v2015_08_01
Expand Down

0 comments on commit b6c4aff

Please sign in to comment.