diff --git a/specification/containerregistry/data-plane/readme.md b/specification/containerregistry/data-plane/readme.md index f305b4cb02a2..dc21df238fc5 100644 --- a/specification/containerregistry/data-plane/readme.md +++ b/specification/containerregistry/data-plane/readme.md @@ -75,6 +75,8 @@ This is not used by Autorest itself. swagger-to-sdk: - repo: azure-sdk-for-net - repo: azure-sdk-for-go + - repo: azure-sdk-for-python + ``` ## C# @@ -97,6 +99,10 @@ csharp: See configuration in [readme.go.md](./readme.go.md) +## Python + +See configuration in [readme.python.md](./readme.python.md) + ## Suppression ``` yaml diff --git a/specification/containerregistry/data-plane/readme.python.md b/specification/containerregistry/data-plane/readme.python.md new file mode 100644 index 000000000000..fedf75a7fa43 --- /dev/null +++ b/specification/containerregistry/data-plane/readme.python.md @@ -0,0 +1,28 @@ +## Python + +These settings apply only when `--python` is specified on the command line. +Please also specify `--python-sdks-folder=`. +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: false + license-header: MICROSOFT_MIT_NO_VERSION + payload-flattening-threshold: 2 + namespace: azure.containerregistry + package-name: azure-containerregistry + package-version: 0.1.0 + clear-output-folder: true + add-credentials: true +``` +``` yaml $(python) && $(python-mode) == 'update' +python: + no-namespace-folders: true + output-folder: $(python-sdks-folder)/containerregistry/azure-containerregistry/azure/containerregistry +``` +``` yaml $(python) && $(python-mode) == 'create' +python: + basic-setup-py: true + output-folder: $(python-sdks-folder)/containerregistry/azure-containerregistry +``` \ No newline at end of file