From 8992083f133a605bb40219dc31a75e2e8ca19f3c Mon Sep 17 00:00:00 2001 From: Krista Pratico Date: Wed, 3 Feb 2021 13:18:00 -0800 Subject: [PATCH] update translator text readmes for python (#12817) * test * updating readme for python under translatortext --- .../data-plane/TranslatorText/readme.md | 25 +------------------ .../TranslatorText/readme.python.md | 16 ++++++++++++ 2 files changed, 17 insertions(+), 24 deletions(-) create mode 100644 specification/cognitiveservices/data-plane/TranslatorText/readme.python.md diff --git a/specification/cognitiveservices/data-plane/TranslatorText/readme.md b/specification/cognitiveservices/data-plane/TranslatorText/readme.md index 46a05a571f8c..707bf7b6e9af 100644 --- a/specification/cognitiveservices/data-plane/TranslatorText/readme.md +++ b/specification/cognitiveservices/data-plane/TranslatorText/readme.md @@ -64,30 +64,7 @@ csharp: ## 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.translatortext - package-name: azure-cognitiveservices-translatortext - clear-output-folder: true -``` -``` yaml $(python) && $(python-mode) == 'update' -python: - no-namespace-folders: true - output-folder: $(python-sdks-folder)/cognitiveservices/azure-cognitiveservices-translatortext/azure/cognitiveservices/translatortext -``` -``` yaml $(python) && $(python-mode) == 'create' -python: - basic-setup-py: true - output-folder: $(python-sdks-folder)/cognitiveservices/azure-cognitiveservices-translatortext -``` +See configuration in [readme.python.md](./readme.python.md) ## Go diff --git a/specification/cognitiveservices/data-plane/TranslatorText/readme.python.md b/specification/cognitiveservices/data-plane/TranslatorText/readme.python.md new file mode 100644 index 000000000000..d3f01d477f61 --- /dev/null +++ b/specification/cognitiveservices/data-plane/TranslatorText/readme.python.md @@ -0,0 +1,16 @@ +## Python + +These settings apply only when `--python` is specified on the command line. +Please also specify `--python-sdks-folder=`. + +``` yaml +license-header: MICROSOFT_MIT_NO_VERSION +add-credentials: true +payload-flattening-threshold: 2 +namespace: azure.ai.translatortext +package-name: azure-ai-translatortext +clear-output-folder: true +credential-scopes: https://cognitiveservices.azure.com/.default +no-namespace-folders: true +python-sdks-folder: $(python-sdks-folder) +``` \ No newline at end of file