diff --git a/specification/containerregistry/resource-manager/readme.md b/specification/containerregistry/resource-manager/readme.md index 0881189bb609..73fb9fbb2d47 100644 --- a/specification/containerregistry/resource-manager/readme.md +++ b/specification/containerregistry/resource-manager/readme.md @@ -125,76 +125,6 @@ csharp: clear-output-folder: true ``` -## 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-containerregistry - 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-09 - - tag: package-2018-02-preview - - tag: package-2017-10 - - tag: package-2017-03 -``` - -### Tag: package-2018-09 and python - -These settings apply only when `--tag=package-2018-09 --python` is specified on the command line. -Please also specify `--python-sdks-folder=`. - -``` yaml $(tag) == 'package-2018-09' && $(python) -python: - namespace: azure.mgmt.containerregistry.v2018_09_01 - output-folder: $(python-sdks-folder)/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01 -``` - -### Tag: package-2018-02-preview and python - -These settings apply only when `--tag=package-2018-02-preview --python` is specified on the command line. -Please also specify `--python-sdks-folder=`. - -``` yaml $(tag) == 'package-2018-02-preview' && $(python) -python: - namespace: azure.mgmt.containerregistry.v2018_02_01_preview - output-folder: $(python-sdks-folder)/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_02_01_preview -``` - -### Tag: package-2017-10 and python - -These settings apply only when `--tag=package-2017-10 --python` is specified on the command line. -Please also specify `--python-sdks-folder=`. - -``` yaml $(tag) == 'package-2017-10' && $(python) -python: - namespace: azure.mgmt.containerregistry.v2017_10_01 - output-folder: $(python-sdks-folder)/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2017_10_01 -``` - -### Tag: package-2017-03 and python - -These settings apply only when `--tag=package-2017-03 --python` is specified on the command line. -Please also specify `--python-sdks-folder=`. - -``` yaml $(tag) == 'package-2017-03' && $(python) -python: - namespace: azure.mgmt.containerregistry.v2017_03_01 - output-folder: $(python-sdks-folder)/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2017_03_01 -``` - ## Go diff --git a/specification/containerregistry/resource-manager/readme.python.md b/specification/containerregistry/resource-manager/readme.python.md new file mode 100644 index 000000000000..b73d84808626 --- /dev/null +++ b/specification/containerregistry/resource-manager/readme.python.md @@ -0,0 +1,69 @@ +## 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-containerregistry + 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-09 + - tag: package-2018-02-preview + - tag: package-2017-10 + - tag: package-2017-03 +``` + +### Tag: package-2018-09 and python + +These settings apply only when `--tag=package-2018-09 --python` is specified on the command line. +Please also specify `--python-sdks-folder=`. + +``` yaml $(tag) == 'package-2018-09' && $(python) +python: + namespace: azure.mgmt.containerregistry.v2018_09_01 + output-folder: $(python-sdks-folder)/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01 +``` + +### Tag: package-2018-02-preview and python + +These settings apply only when `--tag=package-2018-02-preview --python` is specified on the command line. +Please also specify `--python-sdks-folder=`. + +``` yaml $(tag) == 'package-2018-02-preview' && $(python) +python: + namespace: azure.mgmt.containerregistry.v2018_02_01_preview + output-folder: $(python-sdks-folder)/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_02_01_preview +``` + +### Tag: package-2017-10 and python + +These settings apply only when `--tag=package-2017-10 --python` is specified on the command line. +Please also specify `--python-sdks-folder=`. + +``` yaml $(tag) == 'package-2017-10' && $(python) +python: + namespace: azure.mgmt.containerregistry.v2017_10_01 + output-folder: $(python-sdks-folder)/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2017_10_01 +``` + +### Tag: package-2017-03 and python + +These settings apply only when `--tag=package-2017-03 --python` is specified on the command line. +Please also specify `--python-sdks-folder=`. + +``` yaml $(tag) == 'package-2017-03' && $(python) +python: + namespace: azure.mgmt.containerregistry.v2017_03_01 + output-folder: $(python-sdks-folder)/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2017_03_01 +```