Skip to content

Commit

Permalink
MultiApi EventHub (#5331)
Browse files Browse the repository at this point in the history
  • Loading branch information
lmazuel authored Mar 6, 2019
1 parent bb1ef77 commit 9564516
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 25 deletions.
26 changes: 1 addition & 25 deletions specification/eventhub/resource-manager/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,31 +108,7 @@ csharp:

## Python

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)
python-mode: create
python:
azure-arm: true
license-header: MICROSOFT_MIT_NO_VERSION
payload-flattening-threshold: 2
namespace: azure.mgmt.eventhub
package-name: azure-mgmt-eventhub
package-version: 1.3.0
clear-output-folder: true
```
``` yaml $(python) && $(python-mode) == 'update'
python:
no-namespace-folders: true
output-folder: $(python-sdks-folder)/azure-mgmt-eventhub/azure/mgmt/eventhub
```
``` yaml $(python) && $(python-mode) == 'create'
python:
basic-setup-py: true
output-folder: $(python-sdks-folder)/azure-mgmt-eventhub
```
See configuration in [readme.python.md](./readme.python.md)

## Go

Expand Down
57 changes: 57 additions & 0 deletions specification/eventhub/resource-manager/readme.python.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
## Python

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

``` yaml $(python)
python:
azure-arm: true
license-header: MICROSOFT_MIT_NO_VERSION
payload-flattening-threshold: 2
package-name: azure-mgmt-eventhub
clear-output-folder: true
no-namespace-folders: true
```
### Python multi-api
Generate all API versions currently shipped for this package
```yaml $(python) && $(multiapi)
batch:
- tag: package-2018-01-preview
- tag: package-2017-04
- tag: package-2015-08
```
### 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)
python:
namespace: azure.mgmt.eventhub.v2018_01_01_preview
output-folder: $(python-sdks-folder)/azure-mgmt-eventhub/azure/mgmt/eventhub/v2018_01_01_preview
```

### Tag: package-2017-04 and 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)
python:
namespace: azure.mgmt.eventhub.v2017_04_01
output-folder: $(python-sdks-folder)/azure-mgmt-eventhub/azure/mgmt/eventhub/v2017_04_01
```

### Tag: package-2015-08 and 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)
python:
namespace: azure.mgmt.eventhub.v2015_08_01
output-folder: $(python-sdks-folder)/azure-mgmt-eventhub/azure/mgmt/eventhub/v2015_08_01
```

0 comments on commit 9564516

Please sign in to comment.