-
Notifications
You must be signed in to change notification settings - Fork 60
Generation using autorest for Python v5 dev mode
Python 3.6 is required to run this new autorest
- npm install -g "@autorest/autorest"
- git clone --branch autorestv3 https://github.com/Azure/autorest.python.git
- python3.6 -m venv venv
- ./venv/Scripts/activate
- pip install -r requirements.txt
All generation must be done with this venv load.
It's actually as usual, expect the main cmd line must starts with "autorest-beta". Be sure --use points to the folder where you cloned autorest, and that your venv is loaded.
Example: autorest-beta --use=. --add-credentials --payload-flattening-threshold=2 --namespace=azure.cognitiveservices.language.textanalytics --package-name=azure-cognitiveservices-language-textanalytics --no-namespace-folders ---clear-output-folder --output-folder=TextAnalytics --input-file=https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/cognitiveservices/data-plane/TextAnalytics/preview/v3.0-preview.1/TextAnalytics.json --credential-scopes=https://cognitiveservices.azure.com/.default