From b80ecaeea6e0516fd40656d6289e24c65883cf4e Mon Sep 17 00:00:00 2001 From: Laurent Mazuel Date: Tue, 16 Apr 2019 16:07:44 -0700 Subject: [PATCH] Databricks Python configuration --- .../databricks/resource-manager/readme.md | 7 ++++- .../resource-manager/readme.python.md | 27 +++++++++++++++++++ 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 specification/databricks/resource-manager/readme.python.md diff --git a/specification/databricks/resource-manager/readme.md b/specification/databricks/resource-manager/readme.md index 9248a3ccab20..4ba4790f62fa 100644 --- a/specification/databricks/resource-manager/readme.md +++ b/specification/databricks/resource-manager/readme.md @@ -70,6 +70,7 @@ This is not used by Autorest itself. ``` yaml $(swagger-to-sdk) swagger-to-sdk: + - repo: azure-sdk-for-python - repo: azure-sdk-for-go - repo: azure-sdk-for-js - repo: azure-sdk-for-node @@ -77,4 +78,8 @@ swagger-to-sdk: ## Go -See configuration in [readme.go.md](./readme.go.md) \ No newline at end of file +See configuration in [readme.go.md](./readme.go.md) + +## Python + +See configuration in [readme.python.md](./readme.python.md) \ No newline at end of file diff --git a/specification/databricks/resource-manager/readme.python.md b/specification/databricks/resource-manager/readme.python.md new file mode 100644 index 000000000000..13fd2c10408e --- /dev/null +++ b/specification/databricks/resource-manager/readme.python.md @@ -0,0 +1,27 @@ +## 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: true + license-header: MICROSOFT_MIT_NO_VERSION + payload-flattening-threshold: 2 + namespace: azure.mgmt.databricks + package-name: azure-mgmt-databricks + package-version: 0.1.0 + clear-output-folder: true +``` +``` yaml $(python) && $(python-mode) == 'update' +python: + no-namespace-folders: true + output-folder: $(python-sdks-folder)/azure-mgmt-databricks/azure/mgmt/databricks +``` +``` yaml $(python) && $(python-mode) == 'create' +python: + basic-setup-py: true + output-folder: $(python-sdks-folder)/azure-mgmt-databricks +```