Package: azure-mgmt-costmanagement
Microsoft Azure SDK for PythonThis is the Microsoft Azure Cost Management Client Library.
This package has been tested with Python 3.7+.
For a more complete view of Azure libraries, see theazure sdk python release.DisclaimerAzure SDK Python packages support for Python 2.7 has ended 01 January 2022. For more information and questions, please refer tohttps://github.com/Azure/azure-sdk-for-python/issues/20691Getting startedPrerequisitesPython 3.7+ is required to use this package.Azure subscriptionInstall the packagepipinstallazure-mgmt-costmanagement
pipinstallazure-identityAuthenticationBy default,Azure Active Directorytoken authentication depends on correct configure of following environment variables.AZURE_CLIENT_IDfor Azure client ID.AZURE_TENANT_IDfor Azure tenant ID.AZURE_CLIENT_SECRETfor Azure client secret.With above configuration, client can be authenticated by following code:fromazure.identityimportDefaultAzureCredentialfromazure.mgmt.costmanagementimportCostManagementClientclient=CostManagementClient(credential=DefaultAzureCredential())ExamplesCode samples for this package can be found at:Search Cost Managementon docs.microsoft.comAzure Python Mgmt SDK Samples RepoTroubleshootingNext stepsProvide FeedbackIf you encounter any bugs or have suggestions, please file an issue in theIssuessection of the project.Release History4.0.1 (2023-07-19)Bugs FixedFix deserialization error for some operation when error happens4.0.0 (2023-05-22)Features AddedAdded operation group BenefitRecommendationsOperationsAdded operation group BenefitUtilizationSummariesOperationsAdded operation group GenerateCostDetailsReportOperationsAdded operation group GenerateDetailedCostReportOperationResultsOperationsAdded operation group GenerateDetailedCostReportOperationStatusOperationsAdded operation group GenerateDetailedCostReportOperationsAdded operation group PriceSheetOperationsAdded operation group ScheduledActionsOperationsModel Alert has a new parameter e_tagModel AlertPropertiesDetails has a new parameter company_nameModel AlertPropertiesDetails has a new parameter department_nameModel AlertPropertiesDetails has a new parameter enrollment_end_dateModel AlertPropertiesDetails has a new parameter enrollment_numberModel AlertPropertiesDetails has a new parameter enrollment_start_dateModel AlertPropertiesDetails has a new parameter invoicing_thresholdModel CommonExportProperties has a new parameter next_run_time_estimateModel CommonExportProperties has a new parameter partition_dataModel CommonExportProperties has a new parameter run_historyModel Dimension has a new parameter e_tagModel Dimension has a new parameter locationModel Dimension has a new parameter skuModel Export has a new parameter next_run_time_estimateModel Export has a new parameter partition_dataModel Export has a new parameter run_historyModel ExportDeliveryDestination has a new parameter sas_tokenModel ExportDeliveryDestination has a new parameter storage_accountModel ExportProperties has a new parameter next_run_time_estimateModel ExportProperties has a new parameter partition_dataModel ExportProperties has a new parameter run_historyModel Operation has a new parameter action_typeModel Operation has a new parameter is_data_actionModel Operation has a new parameter originModel OperationDisplay has a new parameter descriptionOperation ExportsOperations.get has a new optional parameter expandOperation ExportsOperations.list has a new optional parameter expandBreaking ChangesModel Alert no longer has parameter tagsModel ProxyResource no longer has parameter e_tagModel ReportConfigFilter no longer has parameter tag_keyModel ReportConfigFilter no longer has parameter tag_valueModel Resource no longer has parameter tagsRemoved operation group SettingsOperations4.0.0b1 (2022-11-07)Features AddedAdded operation group BenefitRecommendationsOperationsAdded operation group BenefitUtilizationSummariesOperationsAdded operation group GenerateCostDetailsReportOperationsAdded operation group GenerateDetailedCostReportOperationResultsOperationsAdded operation group GenerateDetailedCostReportOperationStatusOperationsAdded operation group GenerateDetailedCostReportOperationsAdded operation group PriceSheetOperationsAdded operation group ScheduledActionsOperationsModel Alert has a new parameter e_tagModel AlertPropertiesDetails has a new parameter company_nameModel AlertPropertiesDetails has a new parameter department_nameModel AlertPropertiesDetails has a new parameter enrollment_end_dateModel AlertPropertiesDetails has a new parameter enrollment_numberModel AlertPropertiesDetails has a new parameter enrollment_start_dateModel AlertPropertiesDetails has a new parameter invoicing_thresholdModel CommonExportProperties has a new parameter next_run_time_estimateModel CommonExportProperties has a new parameter partition_dataModel CommonExportProperties has a new parameter run_historyModel Dimension has a new parameter e_tagModel Dimension has a new parameter locationModel Dimension has a new parameter skuModel Export has a new parameter next_run_time_estimateModel Export has a new parameter partition_dataModel Export has a new parameter run_historyModel ExportDeliveryDestination has a new parameter sas_tokenModel ExportDeliveryDestination has a new parameter storage_accountModel ExportProperties has a new parameter next_run_time_estimateModel ExportProperties has a new parameter partition_dataModel ExportProperties has a new parameter run_historyModel Operation has a new parameter action_typeModel Operation has a new parameter is_data_actionModel Operation has a new parameter originModel OperationDisplay has a new parameter descriptionBreaking ChangesModel Alert no longer has parameter tagsModel ProxyResource no longer has parameter e_tagModel ReportConfigFilter no longer has parameter tag_keyModel ReportConfigFilter no longer has parameter tag_valueModel Resource no longer has parameter tagsOperation ExportsOperations.get has a new parameter expandOperation ExportsOperations.list has a new parameter expandRemoved operation group SettingsOperations3.0.0 (2021-07-27)Breaking changesParameter dataset of model QueryDefinition is now requiredParameter dataset of model ForecastDefinition is now required2.0.0 (2021-06-08)FeaturesModel QueryResult has a new parameter skuModel QueryResult has a new parameter e_tagModel QueryResult has a new parameter locationModel View has a new parameter date_rangeModel View has a new parameter data_setModel View has a new parameter include_monetary_commitmentModel View has a new parameter currencyModel ExportExecution has a new parameter tagsAdded operation group GenerateReservationDetailsReportOperationsAdded operation group SettingsOperationsBreaking changesParameter recurrence of model ExportSchedule is now requiredOperation ExportsOperations.list has a new signatureOperation ExportsOperations.get has a new signatureModel Export no longer has parameter run_historyModel Export no longer has parameter next_run_time_estimateModel View no longer has parameter datasetModel ExportExecution no longer has parameter e_tagModel ExportExecution no longer has parameter errorModel CommonExportProperties no longer has parameter run_historyModel CommonExportProperties no longer has parameter next_run_time_estimateModel ExportProperties no longer has parameter run_historyModel ExportProperties no longer has parameter next_run_time_estimateModel QueryFilter has a new signatureModel ReportConfigFilter has a new signature1.0.0 (2021-02-04)FeaturesModel ExportExecution has a new parameter e_tagBreaking changesModel ExportExecution no longer has parameter tags1.0.0b1 (2020-12-09)This is beta preview version.This version uses a next-generation code generator that introduces important breaking changes, but also important new features (like unified authentication and async programming).General breaking changesCredential system has been completly revamped:azure.common.credentialsormsrestazure.azure_active_directoryinstances are no longer supported, use theazure-identityclasses instead:https://pypi.org/project/azure-identity/credentialsparameter has been renamedcredentialTheconfigattribute no longer exists on a client, configuration should be passed as kwarg. Example:MyClient(credential, subscription_id, enable_logging=True). For a complete set of
supported options, see theparameters accept in init documentation of azure-coreYou can't import aversionmodule anymore, use__version__insteadOperations that used to return amsrest.polling.LROPollernow returns aazure.core.polling.LROPollerand are prefixed withbegin_.Exceptions tree have been simplified and most exceptions are nowazure.core.exceptions.HttpResponseError(CloudErrorhas been removed).Most of the operation kwarg have changed. Some of the most noticeable:rawhas been removed. Equivalent feature can be found usingcls, a callback that will give access to internal HTTP response for advanced userFor a complete set of
supported options, see theparameters accept in Request documentation of azure-core0.2.0 (2020-04-08)FeaturesAdded operation DimensionsOperations.listAdded operation QueryOperations.usageBreaking changesModel QueryDataset no longer has parameter sortingRemoved operation DimensionsOperations.list_by_subscriptionRemoved operation QueryOperations.usage_by_scopeGeneral Breaking ChangesThis version uses a next-generation code generator thatmightintroduce breaking changes. In summary, some modules were incorrectly
visible/importable and have been renamed. This fixed several issues
caused by usage of classes that were not supposed to be used in the
first place.CostManagementClient cannot be imported fromazure.mgmt.costmanagement.cost_management_clientanymore (import fromazure.mgmt.costmanagementworks like before)CostManagementClientConfiguration import has been moved fromazure.mgmt.costmanagement.cost_management_clienttoazure.mgmt.costmanagementA modelMyClassfrom a "models" sub-module cannot be imported
anymore usingazure.mgmt.costmanagement.models.my_class(import fromazure.mgmt.costmanagement.modelsworks like before)An operation classMyClassOperationsfrom anoperationssub-module cannot be imported anymore usingazure.mgmt.costmanagement.operations.my_class_operations(import fromazure.mgmt.costmanagement.operationsworks like before)Last but not least, HTTP connection pooling is now enabled by default.
You should always use a client as a context manager, or call close(), or
use no more than one client per process.0.1.0 (2019-05-04)Initial Release