Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions specification/cost-management/resource-manager/readme.az.md
Original file line number Diff line number Diff line change
@@ -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"

```
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
## CLI
32 changes: 2 additions & 30 deletions specification/cost-management/resource-manager/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

---
Expand Down Expand Up @@ -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#
Expand All @@ -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=<path to the root directory of your azure-sdk-for-python clone>`.
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

Expand Down
29 changes: 29 additions & 0 deletions specification/cost-management/resource-manager/readme.python.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
## Python

These settings apply only when `--python` is specified on the command line.
Please also specify `--python-sdks-folder=<path to the root directory of your azure-sdk-for-python clone>`.
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
```