This is the AutoRest configuration file for Consumption.
To build the SDK for Consumption, simply Install AutoRest and in this folder, run:
autorest
To see additional help and options, run:
autorest --help
These are the global settings for the Consumption API.
openapi-type: arm
tag: package-2021-05
These settings apply only when --tag=package-2021-05
is specified on the command line.
input-file:
- Microsoft.Consumption/stable/2021-05-01/consumption.json
These settings apply only when --tag=package-2019-11
is specified on the command line.
input-file:
- Microsoft.Consumption/stable/2019-11-01/consumption.json
These settings apply only when --tag=package-2019-10
is specified on the command line.
input-file:
- Microsoft.Consumption/stable/2019-10-01/consumption.json
These settings apply only when --tag=package-2019-06
is specified on the command line.
input-file:
- Microsoft.Consumption/stable/2019-06-01/consumption.json
These settings apply only when --tag=package-2019-05
is specified on the command line.
input-file:
- Microsoft.Consumption/stable/2019-05-01/consumption.json
These settings apply only when --tag=package-preview-2019-05
is specified on the command line.
input-file:
- Microsoft.Consumption/preview/2019-05-01-preview/consumption.json
These settings apply only when --tag=package-preview-2019-04
is specified on the command line.
input-file:
- Microsoft.Consumption/preview/2019-04-01-preview/consumption.json
These settings apply only when --tag=package-preview-2018-11
is specified on the command line.
input-file:
- Microsoft.Consumption/preview/2018-11-01-preview/consumption.json
These settings apply only when --tag=package-2019-01
is specified on the command line.
input-file:
- Microsoft.Consumption/stable/2019-01-01/consumption.json
These settings apply only when --tag=package-2017-11
is specified on the command line.
input-file:
- Microsoft.Consumption/stable/2017-11-30/consumption.json
These settings apply only when --tag=package-2018-01
is specified on the command line.
input-file:
- Microsoft.Consumption/stable/2018-01-31/consumption.json
These settings apply only when --tag=package-2018-03
is specified on the command line.
input-file:
- Microsoft.Consumption/stable/2018-03-31/consumption.json
These settings apply only when --tag=package-2018-05
is specified on the command line.
input-file:
- Microsoft.Consumption/stable/2018-05-31/consumption.json
These settings apply only when --tag=package-2018-06
is specified on the command line.
input-file:
- Microsoft.Consumption/stable/2018-06-30/consumption.json
These settings apply only when --tag=package-2018-08
is specified on the command line.
input-file:
- Microsoft.Consumption/stable/2018-08-31/consumption.json
These settings apply only when --tag=package-2018-10
is specified on the command line.
input-file:
- Microsoft.Consumption/stable/2018-10-01/consumption.json
directive:
- suppress: R2059
from: consumption.json
reason: it's not actually a resource path; the validator is confused because the Billing namespace is in the URI path.
approved-by: "@fearthecowboy"
These settings apply only when --tag=package-2017-04-preview
is specified on the command line.
input-file:
- Microsoft.Consumption/preview/2017-04-24-preview/consumption.json
These settings apply only when --tag=package-2017-12-preview
is specified on the command line.
input-file:
- Microsoft.Consumption/preview/2017-12-30-preview/consumption.json
This section describes what SDK should be generated by the automatic system. This is not used by Autorest itself.
swagger-to-sdk:
- repo: azure-sdk-for-net
- repo: azure-sdk-for-go
- repo: azure-sdk-for-python
- repo: azure-sdk-for-python-track2
- repo: azure-sdk-for-java
- repo: azure-sdk-for-js
- repo: azure-sdk-for-node
- repo: azure-sdk-for-ruby
after_scripts:
- bundle install && rake arm:regen_all_profiles['azure_mgmt_consumption']
- repo: azure-resource-manager-schemas
These settings apply only when --csharp
is specified on the command line.
Please also specify --csharp-sdks-folder=<path to "SDKs" directory of your azure-sdk-for-net clone>
.
csharp:
azure-arm: true
license-header: MICROSOFT_MIT_NO_VERSION
namespace: Microsoft.Azure.Management.Consumption
output-folder: $(csharp-sdks-folder)/consumption/Microsoft.Azure.Management.Consumption/src/Generated
clear-output-folder: true
These settings apply only when --java
is specified on the command line.
Please also specify --azure-libraries-for-java-folder=<path to the root directory of your azure-libraries-for-java clone>
.
azure-arm: true
fluent: true
namespace: com.microsoft.azure.management.consumption
license-header: MICROSOFT_MIT_NO_CODEGEN
payload-flattening-threshold: 1
output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-consumption
batch:
- tag: package-2017-04-preview
- tag: package-2017-11
- tag: package-2018-01
- tag: package-2018-03
- tag: package-2018-05
- tag: package-2018-06
- tag: package-2018-08
- tag: package-2018-10
- tag: package-2019-01
These settings apply only when --tag=package-2017-04-preview --java
is specified on the command line.
Please also specify --azure-libraries-for-java=<path to the root directory of your azure-sdk-for-java clone>
.
java:
namespace: com.microsoft.azure.management.consumption.v2017_04_24_preview
output-folder: $(azure-libraries-for-java-folder)/sdk/consumption/mgmt-v2017_04_24_preview
regenerate-manager: true
generate-interface: true
These settings apply only when --tag=package-2017-11 --java
is specified on the command line.
Please also specify --azure-libraries-for-java=<path to the root directory of your azure-sdk-for-java clone>
.
java:
namespace: com.microsoft.azure.management.consumption.v2017_11_30
output-folder: $(azure-libraries-for-java-folder)/sdk/consumption/mgmt-v2017_11_30
regenerate-manager: true
generate-interface: true
These settings apply only when --tag=package-2018-01 --java
is specified on the command line.
Please also specify --azure-libraries-for-java=<path to the root directory of your azure-sdk-for-java clone>
.
java:
namespace: com.microsoft.azure.management.consumption.v2018_01_31
output-folder: $(azure-libraries-for-java-folder)/sdk/consumption/mgmt-v2018_01_31
regenerate-manager: true
generate-interface: true
These settings apply only when --tag=package-2018-03 --java
is specified on the command line.
Please also specify --azure-libraries-for-java=<path to the root directory of your azure-sdk-for-java clone>
.
java:
namespace: com.microsoft.azure.management.consumption.v2018_03_31
output-folder: $(azure-libraries-for-java-folder)/sdk/consumption/mgmt-v2018_03_31
regenerate-manager: true
generate-interface: true
directive:
- rename-model:
from: CostTags
to: CostTagsModel
- rename-model:
from: Tags
to: TagsModel
- rename-model:
from: ReservationRecommendations
to: ReservationRecommendationsModel
These settings apply only when --tag=package-2017-12-preview --java
is specified on the command line.
Please also specify --azure-libraries-for-java=<path to the root directory of your azure-sdk-for-java clone>
.
java:
namespace: com.microsoft.azure.management.consumption.v2017_12_30_preview
output-folder: $(azure-libraries-for-java-folder)/sdk/consumption/mgmt-v2017_12_30_preview
regenerate-manager: true
generate-interface: true
These settings apply only when --tag=package-2018-05 --java
is specified on the command line.
Please also specify --azure-libraries-for-java=<path to the root directory of your azure-sdk-for-java clone>
.
java:
namespace: com.microsoft.azure.management.consumption.v2018_05_31
output-folder: $(azure-libraries-for-java-folder)/sdk/consumption/mgmt-v2018_05_31
regenerate-manager: true
generate-interface: true
These settings apply only when --tag=package-2018-06 --java
is specified on the command line.
Please also specify --azure-libraries-for-java=<path to the root directory of your azure-sdk-for-java clone>
.
java:
namespace: com.microsoft.azure.management.consumption.v2018_06_30
output-folder: $(azure-libraries-for-java-folder)/sdk/consumption/mgmt-v2018_06_30
regenerate-manager: true
generate-interface: true
These settings apply only when --tag=package-2018-08 --java
is specified on the command line.
Please also specify --azure-libraries-for-java=<path to the root directory of your azure-sdk-for-java clone>
.
java:
namespace: com.microsoft.azure.management.consumption.v2018_08_31
output-folder: $(azure-libraries-for-java-folder)/sdk/consumption/mgmt-v2018_08_31
regenerate-manager: true
generate-interface: true
These settings apply only when --tag=package-2018-10 --java
is specified on the command line.
Please also specify --azure-libraries-for-java=<path to the root directory of your azure-sdk-for-java clone>
.
java:
namespace: com.microsoft.azure.management.consumption.v2018_10_01
output-folder: $(azure-libraries-for-java-folder)/sdk/consumption/mgmt-v2018_10_01
regenerate-manager: true
generate-interface: true
These settings apply only when --tag=package-2019-01 --java
is specified on the command line.
Please also specify --azure-libraries-for-java=<path to the root directory of your azure-sdk-for-java clone>
.
java:
namespace: com.microsoft.azure.management.consumption.v2019_01_01
output-folder: $(azure-libraries-for-java-folder)/sdk/consumption/mgmt-v2019_01_01
regenerate-manager: true
generate-interface: true
directive:
- suppress: R4009
from: consumption.json
reason: SystemData properties does not fit into the consumption RP APIs as they dont really create any actual resources.
See configuration in readme.azureresourceschema.md
See configuration in readme.python.md