From f3d05decc5b15afd76fc118f9d4b672d95f8f323 Mon Sep 17 00:00:00 2001 From: Qiaoqiao Zhang <55688292+qiaozha@users.noreply.github.com> Date: Fri, 15 May 2020 10:54:07 +0800 Subject: [PATCH] cost-management-for-cli-extensions (#9392) --- .../resource-manager/readme.az.md | 13 ++++++++ .../resource-manager/readme.cli.md | 1 + .../resource-manager/readme.md | 32 ++----------------- .../resource-manager/readme.python.md | 29 +++++++++++++++++ 4 files changed, 45 insertions(+), 30 deletions(-) create mode 100644 specification/cost-management/resource-manager/readme.az.md create mode 100644 specification/cost-management/resource-manager/readme.cli.md create mode 100644 specification/cost-management/resource-manager/readme.python.md diff --git a/specification/cost-management/resource-manager/readme.az.md b/specification/cost-management/resource-manager/readme.az.md new file mode 100644 index 000000000000..16d31b9cefe8 --- /dev/null +++ b/specification/cost-management/resource-manager/readme.az.md @@ -0,0 +1,13 @@ +## AZ + +These settings apply only when `--az` is specified on the command line. + +``` yaml $(az) +az: + extensions: costmanagement + namespace: azure.mgmt.costmanagement + package-name: azure-mgmt-costmanagement +az-output-folder: $(azure-cli-extension-folder)/src/costmanagement +python-sdk-output-folder: "$(az-output-folder)/azext_costmanagement/vendored_sdks/costmanagement" + +``` diff --git a/specification/cost-management/resource-manager/readme.cli.md b/specification/cost-management/resource-manager/readme.cli.md new file mode 100644 index 000000000000..986dcf24c83b --- /dev/null +++ b/specification/cost-management/resource-manager/readme.cli.md @@ -0,0 +1 @@ +## CLI \ No newline at end of file diff --git a/specification/cost-management/resource-manager/readme.md b/specification/cost-management/resource-manager/readme.md index 205a74666b50..12dadfcd7709 100644 --- a/specification/cost-management/resource-manager/readme.md +++ b/specification/cost-management/resource-manager/readme.md @@ -27,7 +27,7 @@ These are the global settings for the Cost Management API. ``` yaml openapi-type: arm tag: package-2019-11 -azure-validator: true +azure-validator: false ``` --- @@ -190,6 +190,7 @@ swagger-to-sdk: - repo: azure-sdk-for-ruby after_scripts: - bundle install && rake arm:regen_all_profiles['azure_mgmt_costmanagement'] + - repo: azure-cli-extensions ``` ## C# @@ -206,35 +207,6 @@ csharp: clear-output-folder: true ``` -## 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.costmanagement - package-name: azure-mgmt-costmanagement - package-version: 1.2.0 - clear-output-folder: true -``` - -``` yaml $(python) && $(python-mode) == 'update' -python: - no-namespace-folders: true - output-folder: $(python-sdks-folder)/costmanagement/azure-mgmt-costmanagement/azure/mgmt/costmanagement -``` - -``` yaml $(python) && $(python-mode) == 'create' -python: - basic-setup-py: true - output-folder: $(python-sdks-folder)/costmanagement/azure-mgmt-costmanagement -``` ## Go diff --git a/specification/cost-management/resource-manager/readme.python.md b/specification/cost-management/resource-manager/readme.python.md new file mode 100644 index 000000000000..e813c023f2cb --- /dev/null +++ b/specification/cost-management/resource-manager/readme.python.md @@ -0,0 +1,29 @@ +## 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.costmanagement + package-name: azure-mgmt-costmanagement + package-version: 1.2.0 + clear-output-folder: true +``` + +``` yaml $(python) && $(python-mode) == 'update' +python: + no-namespace-folders: true + output-folder: $(python-sdks-folder)/costmanagement/azure-mgmt-costmanagement/azure/mgmt/costmanagement +``` + +``` yaml $(python) && $(python-mode) == 'create' +python: + basic-setup-py: true + output-folder: $(python-sdks-folder)/costmanagement/azure-mgmt-costmanagement +``` \ No newline at end of file