Skip to content

Autorest Template

Paymaun edited this page Jan 7, 2021 · 8 revisions

The CLI IoT extension makes heavy use of swagger specs via autorest.

Below is an example autorest config template to place in a config.md

IoT extension SDK

see https://aka.ms/autorest

Configuration

input-file: <input swagger>.json

python-mode: create
python:
    namespace: <namespace>
    output-folder: sdk
    license-header: MICROSOFT_MIT_NO_VERSION
    azure-arm: true
    add-credentials: true
    basic-setup-py: true
    payload-flattening-threshold: 2
    clear-output-folder: true
    no-namespace-folders: true
Clone this wiki locally