From 59d29e5b9ede1195ac7ef5b826889226ad9a240d Mon Sep 17 00:00:00 2001 From: Laurent Mazuel Date: Fri, 9 Nov 2018 10:56:07 -0800 Subject: [PATCH] Py conf in its own file --- .../data-plane/CustomWebSearch/readme.md | 27 ------------------- .../CustomWebSearch/readme.python.md | 26 ++++++++++++++++++ 2 files changed, 26 insertions(+), 27 deletions(-) create mode 100644 specification/cognitiveservices/data-plane/CustomWebSearch/readme.python.md 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 +```