diff --git a/specification/cognitiveservices/data-plane/CustomWebSearch/readme.md b/specification/cognitiveservices/data-plane/CustomWebSearch/readme.md index fc25d5fb6885..3fd2ec58b5ed 100644 --- a/specification/cognitiveservices/data-plane/CustomWebSearch/readme.md +++ b/specification/cognitiveservices/data-plane/CustomWebSearch/readme.md @@ -49,33 +49,6 @@ csharp: sync-methods: none ``` -## 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: - license-header: MICROSOFT_MIT_NO_VERSION - add-credentials: true - payload-flattening-threshold: 2 - namespace: azure.cognitiveservices.search.customsearch - package-name: azure-cognitiveservices-search-customsearch - clear-output-folder: true -``` -``` yaml $(python) && $(python-mode) == 'update' -python: - no-namespace-folders: true - output-folder: $(python-sdks-folder)/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch -``` -``` yaml $(python) && $(python-mode) == 'create' -python: - basic-setup-py: true - output-folder: $(python-sdks-folder)/azure-cognitiveservices-search-customsearch -``` - ## Suppressions Suppressing errors due to API design: ``` yaml diff --git a/specification/cognitiveservices/data-plane/CustomWebSearch/readme.python.md b/specification/cognitiveservices/data-plane/CustomWebSearch/readme.python.md new file mode 100644 index 000000000000..10ebb90edd19 --- /dev/null +++ b/specification/cognitiveservices/data-plane/CustomWebSearch/readme.python.md @@ -0,0 +1,26 @@ +## 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: + license-header: MICROSOFT_MIT_NO_VERSION + add-credentials: true + payload-flattening-threshold: 2 + namespace: azure.cognitiveservices.search.customsearch + package-name: azure-cognitiveservices-search-customsearch + clear-output-folder: true +``` +``` yaml $(python) && $(python-mode) == 'update' +python: + no-namespace-folders: true + output-folder: $(python-sdks-folder)/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch +``` +``` yaml $(python) && $(python-mode) == 'create' +python: + basic-setup-py: true + output-folder: $(python-sdks-folder)/azure-cognitiveservices-search-customsearch +```