Skip to content

Mgmt regeneration

iscai-msft edited this page Mar 2, 2020 · 9 revisions

See https://github.com/Azure/autorest.python/wiki/Generating-Multi-API-client first

Storage

Assuming you have an env variable "SDK_FOLDER" to something like D:\VSProjects\azure-sdk-for-python\sdk

Generate the code itself

autorest ..\azure-rest-api-specs\specification\storage\resource-manager\readme.md --use=. --python-sdks-folder=$SDK_FOLDER --python --multiapi --python-mode=update --keep-version-file

Generate the multiapi mixin

autorest ..\azure-rest-api-specs\specification\storage\resource-manager\readme.md --use=. --python-sdks-folder=$SDK_FOLDER --python --multiapiscript

Note from dev env

python -m autorest.multiapi --python-sdks-folder=$SDK_FOLDER azure-mgmt-storage

Synapse

autorest --use=. --python --python-mode-update --python-sdks-folder=..\azure-sdk-for-python\sdk\ https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/synapse/data-plane/readme.md

https://github.com/Azure/azure-rest-api-specs/tree/master/specification/synapse/data-plane