This is the AutoRest configuration file for Cost Management.
To build the SDK for Cost Management, 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 Cost Management API.
openapi-type: arm
tag: package-2022-10
azure-validator: false
These settings apply only when --tag=package-2022-10
is specified on the command line.
input-file:
- Microsoft.CostManagement/stable/2022-10-01/common-types.json
- Microsoft.CostManagement/stable/2022-10-01/costmanagement.json
- Microsoft.CostManagement/stable/2022-10-01/costmanagement.exports.json
- Microsoft.CostManagement/stable/2022-10-01/costmanagement.generatecostdetailsreport.json
- Microsoft.CostManagement/stable/2022-10-01/costmanagement.generatedetailedcostreport.json
- Microsoft.CostManagement/stable/2022-10-01/costmanagement.pricesheets.json
- Microsoft.CostManagement/stable/2022-10-01/scheduledActions.json
- Microsoft.CostManagement/stable/2022-10-01/costmanagement.benefits.json
These settings apply only when --tag=package-preview-2022-10-05
is specified on the command line.
input-file:
- Microsoft.CostManagement/preview/2022-10-05-preview/costmanagement.json
- Microsoft.CostManagement/preview/2022-10-05-preview/settings.json
These settings apply only when --tag=package-preview-2022-10
is specified on the command line.
input-file:
- Microsoft.CostManagement/preview/2022-10-01-preview/costmanagement.json
- Microsoft.CostManagement/preview/2022-10-01-preview/settings.json
These settings apply only when --tag=package-preview-2022-08
is specified on the command line.
input-file:
- Microsoft.CostManagement/preview/2022-08-01-preview/costmanagement.json
These settings apply only when --tag=package-2022-05
is specified on the command line.
input-file:
- Microsoft.CostManagement/stable/2022-05-01/costmanagement.generatecostdetailsreport.json
- Microsoft.CostManagement/stable/2021-10-01/costmanagement.json
- Microsoft.CostManagement/stable/2021-10-01/costmanagement.exports.json
- Microsoft.CostManagement/stable/2021-10-01/costmanagement.generatedetailedcostreport.json
These settings apply only when --tag=package-preview-2020-08
is specified on the command line.
input-file:
- Microsoft.CostManagement/preview/2020-08-01-preview/costmanagement.insights.json
- Microsoft.CostManagement/stable/2021-10-01/costmanagement.json
- Microsoft.CostManagement/preview/2022-06-01-preview/scheduledActions.json
These settings apply only when --tag=package-preview-2022-06
is specified on the command line.
input-file:
- Microsoft.CostManagement/preview/2022-06-01-preview/scheduledActions.json
- Microsoft.CostManagement/stable/2021-10-01/costmanagement.json
- Microsoft.CostManagement/stable/2021-10-01/costmanagement.exports.json
These settings apply only when --tag=package-preview-2022-04
is specified on the command line.
input-file:
- Microsoft.CostManagement/preview/2022-04-01-preview/scheduledActions.json
- Microsoft.CostManagement/stable/2021-10-01/costmanagement.json
- Microsoft.CostManagement/stable/2021-10-01/costmanagement.exports.json
These settings apply only when --tag=package-preview-2022-02
is specified on the command line.
input-file:
- Microsoft.CostManagement/preview/2022-02-01-preview/costmanagement.pricesheets.json
These settings apply only when --tag=package-2021-10
is specified on the command line.
input-file:
- Microsoft.CostManagement/stable/2021-10-01/costmanagement.exports.json
- Microsoft.CostManagement/stable/2021-10-01/costmanagement.generatedetailedcostreport.json
- Microsoft.CostManagement/stable/2021-10-01/costmanagement.json
These settings apply only when --tag=package-2021-01
is specified on the command line.
input-file:
- Microsoft.CostManagement/stable/2021-01-01/costmanagement.exports.json
- Microsoft.CostManagement/stable/2021-01-01/costmanagement.generatedetailedcostreport.json
- Microsoft.CostManagement/stable/2020-06-01/costmanagement.json
These settings apply only when --tag=package-preview-2020-12
is specified on the command line.
input-file:
- Microsoft.CostManagement/preview/2020-12-01-preview/costmanagement.exports.json
- Microsoft.CostManagement/preview/2020-12-01-preview/costmanagement.generatedetailedcostreport.json
- Microsoft.CostManagement/stable/2020-06-01/costmanagement.json
These settings apply only when --tag=package-preview-2020-03
is specified on the command line.
input-file:
- Microsoft.CostManagement/stable/2020-06-01/costmanagement.json
- Microsoft.CostManagement/preview/2020-03-01-preview/costallocation.json
These settings apply only when --tag=package-2020-06
is specified on the command line.
input-file:
- Microsoft.CostManagement/stable/2020-06-01/costmanagement.json
- Microsoft.CostManagement/stable/2020-06-01/costmanagement.exports.json
These settings apply only when --tag=package-2019-11
is specified on the command line.
input-file:
- Microsoft.CostManagement/stable/2019-11-01/costmanagement.json
- Microsoft.CostManagement/stable/2019-11-01/costmanagement.exports.json
These settings apply only when --tag=package-2019-10
is specified on the command line.
input-file:
- Microsoft.CostManagement/stable/2019-10-01/costmanagement.json
These settings apply only when --tag=package-2019-09
is specified on the command line.
input-file:
- Microsoft.CostManagement/stable/2019-09-01/costmanagement.json
These settings apply only when --tag=package-preview-2019-04
is specified on the command line.
input-file:
- Microsoft.CostManagement/preview/2019-04-01-preview/costmanagement.json
These settings apply only when --tag=package-2019-01
is specified on the command line.
input-file:
- Microsoft.CostManagement/stable/2019-01-01/costmanagement.json
These settings apply only when --tag=package-preview-2019-03
is specified on the command line.
input-file:
- Microsoft.CostManagement/preview/2019-03-01-preview/costmanagement.json
These settings apply only when --tag=package-2018-05
is specified on the command line.
input-file:
- Microsoft.CostManagement/stable/2018-05-31/costmanagement.json
directive:
- suppress: R4011
from: costmanagement.exports.json
reason: 'API change needed, The delete operation is defined without a 200 or 204 error response implementation,please add it'
- suppress: R3023
from: costmanagement.generatedetailedcostreport.json
reason: 'API change needed, Operations API must be implemented for operations'
- suppress: R4018
from: costmanagement.json
reason: 'API change needed, Response schema of OperatioAPI does not match Arm Schema'
- suppress: R4037
from: costmanagement.generatedetailedcostreport.json
reason: 'This needs api change - MissingTypeObject'
- suppress: R4009
from: costmanagement.exports.json
reason: API change needed, we do not yet support systemdata
- suppress: R4009
from: costmanagement.json
reason: API change needed, we do not yet support systemdata
- suppress: EnumInsteadOfBoolean
from: costmanagement.exports.json
where: $.definitions.CommonExportProperties.properties.partitionData
reason: 'API change needed'
- suppress: EnumInsteadOfBoolean
from: costmanagement.json
where: $.definitions.DimensionProperties.properties.filterEnabled
reason: 'API change needed'
- suppress: EnumInsteadOfBoolean
from: costmanagement.json
where: $.definitions.DimensionProperties.properties.groupingEnabled
reason: 'API change needed'
- suppress: EnumInsteadOfBoolean
from: costmanagement.json
where: $.definitions.ForecastDefinition.properties.includeFreshPartialCost
reason: 'API change needed'
- suppress: EnumInsteadOfBoolean
from: costmanagement.json
where: $.definitions.ForecastDefinition.properties.includeActualCost
reason: 'API change needed'
- suppress: R2059
from: costmanagement.json
where: $.paths
reason: We are extending Microsoft.Billing RP in some scenarios
- suppress: R3023
from: costmanagement.json
where: $.paths
reason: operations API for Microsoft.Billing are defined in Microsoft.Billing
- suppress: XmsResourceInPutResponse
from: costmanagement.json
where: '$.paths["/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.CostManagement/showbackRules/{ruleName}"].put'
reason: 'older PR, not forecast.'
- suppress: DefinitionsPropertiesNamesCamelCase
from: costmanagement.json
where: $.definitions.CustomChargeProperties.properties.ChargeValue
reason: 'older PR, not forecast.'
- suppress: DefinitionsPropertiesNamesCamelCase
from: costmanagement.json
where: $.definitions.CustomChargeProperties.properties.EffectiveMonth
reason: 'older PR, not forecast.'
- suppress: DefinitionsPropertiesNamesCamelCase
from: costmanagement.json
where: $.definitions.CustomChargeProperties.properties.EndMonth
reason: 'older PR, not forecast.'
- suppress: DefinitionsPropertiesNamesCamelCase
from: costmanagement.json
where: $.definitions.ShowbackRulesKind.properties.RuleType
reason: 'older PR, not forecast.'
- suppress: EnumInsteadOfBoolean
from: costmanagement.json
where: $.definitions.Notification.properties.enabled
reason: 'false alarm '
- suppress: EnumInsteadOfBoolean
from: costmanagement.json
where: $.definitions.CheckNameAvailabilityResult.properties.nameAvailable
reason: 'false alarm '
- suppress: EnumInsteadOfBoolean
from: costmanagement.json
where: $.definitions.KpiProperties.properties.enabled
reason: 'false alarm '
- suppress: EnumInsteadOfBoolean
from: costmanagement.json
where: $.definitions.ViewProperties.properties.accumulated
reason: 'false alarm '
These settings apply only when --tag=package-2018-08-preview
is specified on the command line.
input-file:
- Microsoft.CostManagement/preview/2018-08-01-preview/costmanagement.json
These settings apply only when --tag=package-2018-12-preview
is specified on the command line.
input-file:
- Microsoft.CostManagement/preview/2018-12-01-preview/costmanagement.json
These settings apply only when --tag=package-2019-01
is specified on the command line.
input-file:
- Microsoft.CostManagement/stable/2019-01-01/costmanagement.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-track2
- repo: azure-sdk-for-node
- repo: azure-sdk-for-ruby
after_scripts:
- bundle install && rake arm:regen_all_profiles['azure_mgmt_costmanagement']
- repo: azure-cli-extensions
- repo: azure-resource-manager-schemas
- repo: azure-powershell
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.CostManagement
output-folder: $(csharp-sdks-folder)/cost-management/Microsoft.Azure.Management.CostManagement/src/Generated
clear-output-folder: true
See configuration in readme.go.md
See configuration in readme.python.md
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.costmanagement
license-header: MICROSOFT_MIT_NO_CODEGEN
payload-flattening-threshold: 1
output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-costmanagement
batch:
- tag: package-2018-05
- tag: package-2018-08-preview
- tag: package-2019-01
- tag: package-2019-09
- tag: package-2019-11
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.costmanagement.v2018_05_31
output-folder: $(azure-libraries-for-java-folder)/sdk/costmanagement/mgmt-v2018_05_31
regenerate-manager: true
generate-interface: true
These settings apply only when --tag=package-2018-08-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.costmanagement.v2018_08_01_preview
output-folder: $(azure-libraries-for-java-folder)/sdk/costmanagement/mgmt-v2018_08_01_preview
regenerate-manager: true
generate-interface: true
These settings apply only when --tag=package-2018-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.costmanagement.v2018_12_01_preview
output-folder: $(azure-libraries-for-java-folder)/sdk/costmanagement/mgmt-v2018_12_01_preview
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.costmanagement.v2019_01_01
output-folder: $(azure-libraries-for-java-folder)/sdk/costmanagement/mgmt-v2019_01_01
regenerate-manager: true
generate-interface: true
These settings apply only when --tag=package-2019-09 --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.costmanagement.v2019_09_01
output-folder: $(azure-libraries-for-java-folder)/sdk/costmanagement/mgmt-v2019_09_01
regenerate-manager: true
generate-interface: true
These settings apply only when --tag=package-2019-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.costmanagement.v2019_11_01
output-folder: $(azure-libraries-for-java-folder)/sdk/costmanagement/mgmt-v2019_11_01
regenerate-manager: true
generate-interface: true