Skip to content

Commit 5dec1ee

Browse files
author
SDKAuto
committed
CodeGen from PR 33481 in Azure/azure-rest-api-specs
Merge 17ac74df90273a9b21d9b94ce87683f9c3362cc1 into 040184cd37f2eb2704325b47f205a32eb0891413
1 parent 37f4f54 commit 5dec1ee

File tree

303 files changed

+18946
-3358
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

303 files changed

+18946
-3358
lines changed

sdk/costmanagement/azure-mgmt-costmanagement/CHANGELOG.md

Lines changed: 148 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,153 @@
11
# Release History
22

3+
## 5.0.0b1 (2025-03-25)
4+
5+
### Features Added
6+
7+
- Client `CostManagementClient` added operation group `cost_allocation_rules`
8+
- Client `CostManagementClient` added operation group `generate_benefit_utilization_summaries_report`
9+
- Client `CostManagementClient` added operation group `budgets`
10+
- Client `CostManagementClient` added operation group `settings`
11+
- Model `CommonExportProperties` added property `data_overwrite_behavior`
12+
- Model `CommonExportProperties` added property `compression_mode`
13+
- Model `CommonExportProperties` added property `export_description`
14+
- Model `CommonExportProperties` added property `system_suspension_context`
15+
- Model `Export` added property `identity`
16+
- Model `Export` added property `location`
17+
- Model `Export` added property `data_overwrite_behavior`
18+
- Model `Export` added property `compression_mode`
19+
- Model `Export` added property `export_description`
20+
- Model `Export` added property `system_suspension_context`
21+
- Model `ExportDatasetConfiguration` added property `data_version`
22+
- Model `ExportDatasetConfiguration` added property `filters`
23+
- Model `ExportDeliveryDestination` added property `type`
24+
- Model `ExportDeliveryDestination` added property `microsoft_fabric_settings`
25+
- Model `ExportProperties` added property `data_overwrite_behavior`
26+
- Model `ExportProperties` added property `compression_mode`
27+
- Model `ExportProperties` added property `export_description`
28+
- Model `ExportProperties` added property `system_suspension_context`
29+
- Model `ExportRun` added property `start_date`
30+
- Model `ExportRun` added property `end_date`
31+
- Model `ExportRun` added property `manifest_file`
32+
- Enum `ExportType` added member `FOCUS_COST`
33+
- Enum `ExportType` added member `PRICE_SHEET`
34+
- Enum `ExportType` added member `RESERVATION_DETAILS`
35+
- Enum `ExportType` added member `RESERVATION_RECOMMENDATIONS`
36+
- Enum `ExportType` added member `RESERVATION_TRANSACTIONS`
37+
- Enum `FormatType` added member `DELTA`
38+
- Enum `FormatType` added member `PARQUET`
39+
- Enum `GranularityType` added member `MONTHLY`
40+
- Enum `OperationStatusType` added member `COMPLETE`
41+
- Enum `StatusType` added member `SYSTEM_SUSPENDED`
42+
- Enum `TimeframeType` added member `THE_CURRENT_MONTH`
43+
- Added model `AsyncOperationStatusProperties`
44+
- Added model `BenefitUtilizationSummariesOperationStatus`
45+
- Added model `BenefitUtilizationSummariesRequest`
46+
- Added enum `BenefitUtilizationSummaryReportSchema`
47+
- Added model `Budget`
48+
- Added model `BudgetComparisonExpression`
49+
- Added model `BudgetFilter`
50+
- Added model `BudgetFilterProperties`
51+
- Added enum `BudgetNotificationOperatorType`
52+
- Added enum `BudgetOperatorType`
53+
- Added model `BudgetTimePeriod`
54+
- Added model `BudgetsListResult`
55+
- Added enum `CategoryType`
56+
- Added enum `CompressionModeType`
57+
- Added enum `CostAllocationPolicyType`
58+
- Added model `CostAllocationProportion`
59+
- Added model `CostAllocationResource`
60+
- Added enum `CostAllocationResourceType`
61+
- Added model `CostAllocationRuleCheckNameAvailabilityRequest`
62+
- Added model `CostAllocationRuleCheckNameAvailabilityResponse`
63+
- Added model `CostAllocationRuleDefinition`
64+
- Added model `CostAllocationRuleDetails`
65+
- Added model `CostAllocationRuleList`
66+
- Added model `CostAllocationRuleProperties`
67+
- Added enum `CultureCode`
68+
- Added model `CurrentSpend`
69+
- Added enum `DataOverwriteBehaviorType`
70+
- Added enum `DestinationType`
71+
- Added model `EAPriceSheetProperties`
72+
- Added model `ErrorAdditionalInfo`
73+
- Added model `ErrorDetail`
74+
- Added model `ErrorDetailAutoGenerated`
75+
- Added model `ErrorResponseAutoGenerated`
76+
- Added model `ErrorResponseAutoGenerated2`
77+
- Added model `ExportRunRequest`
78+
- Added model `ExportSuspensionContext`
79+
- Added model `FabricLakehouse`
80+
- Added model `FabricWorkspace`
81+
- Added enum `FilterItemNames`
82+
- Added model `FilterItems`
83+
- Added model `ForecastSpend`
84+
- Added enum `Frequency`
85+
- Added model `MCAPriceSheetProperties`
86+
- Added model `MicrosoftFabricDestinationSettings`
87+
- Added model `Notification`
88+
- Added model `OperationStatusAutoGenerated`
89+
- Added model `PricesheetDownloadProperties`
90+
- Added enum `Reason`
91+
- Added enum `RuleStatus`
92+
- Added model `Setting`
93+
- Added enum `SettingType`
94+
- Added enum `SettingsKind`
95+
- Added model `SettingsListResult`
96+
- Added model `SourceCostAllocationResource`
97+
- Added model `SystemAssignedServiceIdentity`
98+
- Added enum `SystemAssignedServiceIdentityType`
99+
- Added model `TagInheritanceProperties`
100+
- Added model `TagInheritanceSetting`
101+
- Added model `TargetCostAllocationResource`
102+
- Added enum `ThresholdType`
103+
- Added enum `TimeGrainType`
104+
- Model `PriceSheetOperations` added method `begin_download_by_billing_account`
105+
- Model `PriceSheetOperations` added method `begin_download_by_invoice`
106+
- Added model `BudgetsOperations`
107+
- Added model `CostAllocationRulesOperations`
108+
- Added model `GenerateBenefitUtilizationSummariesReportOperations`
109+
- Added model `SettingsOperations`
110+
- Method `AlertsOperations.dismiss` has a new overload `def dismiss(self: None, scope: str, alert_id: str, parameters: IO[bytes], content_type: str)`
111+
- Method `ExportsOperations.create_or_update` has a new overload `def create_or_update(self: None, scope: str, export_name: str, parameters: IO[bytes], content_type: str)`
112+
- Method `ExportsOperations.execute` has a new overload `def execute(self: None, scope: str, export_name: str, parameters: Optional[ExportRunRequest], content_type: str)`
113+
- Method `ExportsOperations.execute` has a new overload `def execute(self: None, scope: str, export_name: str, parameters: Optional[IO[bytes]], content_type: str)`
114+
- Method `ForecastOperations.external_cloud_provider_usage` has a new overload `def external_cloud_provider_usage(self: None, external_cloud_provider_type: Union[str, ExternalCloudProviderType], external_cloud_provider_id: str, parameters: IO[bytes], filter: Optional[str], content_type: str)`
115+
- Method `ForecastOperations.usage` has a new overload `def usage(self: None, scope: str, parameters: IO[bytes], filter: Optional[str], content_type: str)`
116+
- Method `GenerateCostDetailsReportOperations.begin_create_operation` has a new overload `def begin_create_operation(self: None, scope: str, parameters: IO[bytes], content_type: str)`
117+
- Method `GenerateDetailedCostReportOperations.begin_create_operation` has a new overload `def begin_create_operation(self: None, scope: str, parameters: IO[bytes], content_type: str)`
118+
- Method `QueryOperations.usage` has a new overload `def usage(self: None, scope: str, parameters: IO[bytes], content_type: str)`
119+
- Method `QueryOperations.usage_by_external_cloud_provider_type` has a new overload `def usage_by_external_cloud_provider_type(self: None, external_cloud_provider_type: Union[str, ExternalCloudProviderType], external_cloud_provider_id: str, parameters: IO[bytes], content_type: str)`
120+
- Method `ScheduledActionsOperations.check_name_availability` has a new overload `def check_name_availability(self: None, check_name_availability_request: IO[bytes], content_type: str)`
121+
- Method `ScheduledActionsOperations.check_name_availability_by_scope` has a new overload `def check_name_availability_by_scope(self: None, scope: str, check_name_availability_request: IO[bytes], content_type: str)`
122+
- Method `ScheduledActionsOperations.create_or_update` has a new overload `def create_or_update(self: None, name: str, scheduled_action: IO[bytes], if_match: Optional[str], content_type: str)`
123+
- Method `ScheduledActionsOperations.create_or_update_by_scope` has a new overload `def create_or_update_by_scope(self: None, scope: str, name: str, scheduled_action: IO[bytes], if_match: Optional[str], content_type: str)`
124+
- Method `ViewsOperations.create_or_update` has a new overload `def create_or_update(self: None, view_name: str, parameters: IO[bytes], content_type: str)`
125+
- Method `ViewsOperations.create_or_update_by_scope` has a new overload `def create_or_update_by_scope(self: None, scope: str, view_name: str, parameters: IO[bytes], content_type: str)`
126+
- Method `BudgetsOperations.create_or_update` has a new overload `def create_or_update(self: None, scope: str, budget_name: str, parameters: Budget, content_type: str)`
127+
- Method `BudgetsOperations.create_or_update` has a new overload `def create_or_update(self: None, scope: str, budget_name: str, parameters: IO[bytes], content_type: str)`
128+
- Method `CostAllocationRulesOperations.check_name_availability` has a new overload `def check_name_availability(self: None, billing_account_id: str, cost_allocation_rule_check_name_availability_request: CostAllocationRuleCheckNameAvailabilityRequest, content_type: str)`
129+
- Method `CostAllocationRulesOperations.check_name_availability` has a new overload `def check_name_availability(self: None, billing_account_id: str, cost_allocation_rule_check_name_availability_request: IO[bytes], content_type: str)`
130+
- Method `CostAllocationRulesOperations.create_or_update` has a new overload `def create_or_update(self: None, billing_account_id: str, rule_name: str, cost_allocation_rule: CostAllocationRuleDefinition, content_type: str)`
131+
- Method `CostAllocationRulesOperations.create_or_update` has a new overload `def create_or_update(self: None, billing_account_id: str, rule_name: str, cost_allocation_rule: IO[bytes], content_type: str)`
132+
- Method `GenerateBenefitUtilizationSummariesReportOperations.begin_generate_by_billing_account` has a new overload `def begin_generate_by_billing_account(self: None, billing_account_id: str, benefit_utilization_summaries_request: BenefitUtilizationSummariesRequest, content_type: str)`
133+
- Method `GenerateBenefitUtilizationSummariesReportOperations.begin_generate_by_billing_account` has a new overload `def begin_generate_by_billing_account(self: None, billing_account_id: str, benefit_utilization_summaries_request: IO[bytes], content_type: str)`
134+
- Method `GenerateBenefitUtilizationSummariesReportOperations.begin_generate_by_billing_profile` has a new overload `def begin_generate_by_billing_profile(self: None, billing_account_id: str, billing_profile_id: str, benefit_utilization_summaries_request: BenefitUtilizationSummariesRequest, content_type: str)`
135+
- Method `GenerateBenefitUtilizationSummariesReportOperations.begin_generate_by_billing_profile` has a new overload `def begin_generate_by_billing_profile(self: None, billing_account_id: str, billing_profile_id: str, benefit_utilization_summaries_request: IO[bytes], content_type: str)`
136+
- Method `GenerateBenefitUtilizationSummariesReportOperations.begin_generate_by_reservation_id` has a new overload `def begin_generate_by_reservation_id(self: None, reservation_order_id: str, reservation_id: str, benefit_utilization_summaries_request: BenefitUtilizationSummariesRequest, content_type: str)`
137+
- Method `GenerateBenefitUtilizationSummariesReportOperations.begin_generate_by_reservation_id` has a new overload `def begin_generate_by_reservation_id(self: None, reservation_order_id: str, reservation_id: str, benefit_utilization_summaries_request: IO[bytes], content_type: str)`
138+
- Method `GenerateBenefitUtilizationSummariesReportOperations.begin_generate_by_reservation_order_id` has a new overload `def begin_generate_by_reservation_order_id(self: None, reservation_order_id: str, benefit_utilization_summaries_request: BenefitUtilizationSummariesRequest, content_type: str)`
139+
- Method `GenerateBenefitUtilizationSummariesReportOperations.begin_generate_by_reservation_order_id` has a new overload `def begin_generate_by_reservation_order_id(self: None, reservation_order_id: str, benefit_utilization_summaries_request: IO[bytes], content_type: str)`
140+
- Method `GenerateBenefitUtilizationSummariesReportOperations.begin_generate_by_savings_plan_id` has a new overload `def begin_generate_by_savings_plan_id(self: None, savings_plan_order_id: str, savings_plan_id: str, benefit_utilization_summaries_request: BenefitUtilizationSummariesRequest, content_type: str)`
141+
- Method `GenerateBenefitUtilizationSummariesReportOperations.begin_generate_by_savings_plan_id` has a new overload `def begin_generate_by_savings_plan_id(self: None, savings_plan_order_id: str, savings_plan_id: str, benefit_utilization_summaries_request: IO[bytes], content_type: str)`
142+
- Method `GenerateBenefitUtilizationSummariesReportOperations.begin_generate_by_savings_plan_order_id` has a new overload `def begin_generate_by_savings_plan_order_id(self: None, savings_plan_order_id: str, benefit_utilization_summaries_request: BenefitUtilizationSummariesRequest, content_type: str)`
143+
- Method `GenerateBenefitUtilizationSummariesReportOperations.begin_generate_by_savings_plan_order_id` has a new overload `def begin_generate_by_savings_plan_order_id(self: None, savings_plan_order_id: str, benefit_utilization_summaries_request: IO[bytes], content_type: str)`
144+
- Method `SettingsOperations.create_or_update_by_scope` has a new overload `def create_or_update_by_scope(self: None, scope: str, type: Union[str, SettingType], setting: Setting, content_type: str)`
145+
- Method `SettingsOperations.create_or_update_by_scope` has a new overload `def create_or_update_by_scope(self: None, scope: str, type: Union[str, SettingType], setting: IO[bytes], content_type: str)`
146+
147+
### Breaking Changes
148+
149+
- Deleted or renamed method `PriceSheetOperations.begin_download`
150+
3151
## 4.0.1 (2023-07-19)
4152

5153
### Bugs Fixed

sdk/costmanagement/azure-mgmt-costmanagement/README.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Microsoft Azure SDK for Python
22

33
This is the Microsoft Azure Cost Management Client Library.
4-
This package has been tested with Python 3.7+.
4+
This package has been tested with Python 3.8+.
55
For a more complete view of Azure libraries, see the [azure sdk python release](https://aka.ms/azsdk/python/all).
66

77
## _Disclaimer_
@@ -12,7 +12,7 @@ _Azure SDK Python packages support for Python 2.7 has ended 01 January 2022. For
1212

1313
### Prerequisites
1414

15-
- Python 3.7+ is required to use this package.
15+
- Python 3.8+ is required to use this package.
1616
- [Azure subscription](https://azure.microsoft.com/free/)
1717

1818
### Install the package
@@ -55,6 +55,3 @@ Code samples for this package can be found at:
5555
If you encounter any bugs or have suggestions, please file an issue in the
5656
[Issues](https://github.com/Azure/azure-sdk-for-python/issues)
5757
section of the project.
58-
59-
60-
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"commit": "493aa7224fd65fe1e5b4cff59bcae5c6cdf4525e",
2+
"commit": "ba3631957859da5ce2ddbabddac35a5d05bde224",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
4-
"autorest": "3.9.2",
4+
"autorest": "3.10.2",
55
"use": [
6-
"@autorest/python@6.6.0",
7-
"@autorest/modelerfour@4.24.3"
6+
"@autorest/python@6.27.4",
7+
"@autorest/modelerfour@4.27.0"
88
],
9-
"autorest_command": "autorest specification/cost-management/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --tag=package-2022-10 --use=@autorest/python@6.6.0 --use=@autorest/modelerfour@4.24.3 --version=3.9.2 --version-tolerant=False",
9+
"autorest_command": "autorest specification/cost-management/resource-manager/readme.md --generate-sample=True --generate-test=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-python/sdk --use=@autorest/python@6.27.4 --use=@autorest/modelerfour@4.27.0 --version=3.10.2 --version-tolerant=False",
1010
"readme": "specification/cost-management/resource-manager/readme.md"
1111
}

sdk/costmanagement/azure-mgmt-costmanagement/azure/mgmt/costmanagement/__init__.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,28 @@
55
# Code generated by Microsoft (R) AutoRest Code Generator.
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
8+
# pylint: disable=wrong-import-position
89

9-
from ._cost_management_client import CostManagementClient
10+
from typing import TYPE_CHECKING
11+
12+
if TYPE_CHECKING:
13+
from ._patch import * # pylint: disable=unused-wildcard-import
14+
15+
from ._cost_management_client import CostManagementClient # type: ignore
1016
from ._version import VERSION
1117

1218
__version__ = VERSION
1319

1420
try:
1521
from ._patch import __all__ as _patch_all
16-
from ._patch import * # pylint: disable=unused-wildcard-import
22+
from ._patch import *
1723
except ImportError:
1824
_patch_all = []
1925
from ._patch import patch_sdk as _patch_sdk
2026

2127
__all__ = [
2228
"CostManagementClient",
2329
]
24-
__all__.extend([p for p in _patch_all if p not in __all__])
30+
__all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore
2531

2632
_patch_sdk()

sdk/costmanagement/azure-mgmt-costmanagement/azure/mgmt/costmanagement/_configuration.py

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,33 +8,30 @@
88

99
from typing import Any, TYPE_CHECKING
1010

11-
from azure.core.configuration import Configuration
1211
from azure.core.pipeline import policies
1312
from azure.mgmt.core.policies import ARMChallengeAuthenticationPolicy, ARMHttpLoggingPolicy
1413

1514
from ._version import VERSION
1615

1716
if TYPE_CHECKING:
18-
# pylint: disable=unused-import,ungrouped-imports
1917
from azure.core.credentials import TokenCredential
2018

2119

22-
class CostManagementClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes
20+
class CostManagementClientConfiguration: # pylint: disable=too-many-instance-attributes
2321
"""Configuration for CostManagementClient.
2422
2523
Note that all parameters used to create this instance are saved as instance
2624
attributes.
2725
2826
:param credential: Credential needed for the client to connect to Azure. Required.
2927
:type credential: ~azure.core.credentials.TokenCredential
30-
:keyword api_version: Api Version. Default value is "2022-10-01". Note that overriding this
31-
default value may result in unsupported behavior.
28+
:keyword api_version: Api Version. Default value is "2024-10-01-preview". Note that overriding
29+
this default value may result in unsupported behavior.
3230
:paramtype api_version: str
3331
"""
3432

3533
def __init__(self, credential: "TokenCredential", **kwargs: Any) -> None:
36-
super(CostManagementClientConfiguration, self).__init__(**kwargs)
37-
api_version: str = kwargs.pop("api_version", "2022-10-01")
34+
api_version: str = kwargs.pop("api_version", "2024-10-01-preview")
3835

3936
if credential is None:
4037
raise ValueError("Parameter 'credential' must not be None.")
@@ -43,6 +40,7 @@ def __init__(self, credential: "TokenCredential", **kwargs: Any) -> None:
4340
self.api_version = api_version
4441
self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"])
4542
kwargs.setdefault("sdk_moniker", "mgmt-costmanagement/{}".format(VERSION))
43+
self.polling_interval = kwargs.get("polling_interval", 30)
4644
self._configure(**kwargs)
4745

4846
def _configure(self, **kwargs: Any) -> None:
@@ -51,9 +49,9 @@ def _configure(self, **kwargs: Any) -> None:
5149
self.proxy_policy = kwargs.get("proxy_policy") or policies.ProxyPolicy(**kwargs)
5250
self.logging_policy = kwargs.get("logging_policy") or policies.NetworkTraceLoggingPolicy(**kwargs)
5351
self.http_logging_policy = kwargs.get("http_logging_policy") or ARMHttpLoggingPolicy(**kwargs)
54-
self.retry_policy = kwargs.get("retry_policy") or policies.RetryPolicy(**kwargs)
5552
self.custom_hook_policy = kwargs.get("custom_hook_policy") or policies.CustomHookPolicy(**kwargs)
5653
self.redirect_policy = kwargs.get("redirect_policy") or policies.RedirectPolicy(**kwargs)
54+
self.retry_policy = kwargs.get("retry_policy") or policies.RetryPolicy(**kwargs)
5755
self.authentication_policy = kwargs.get("authentication_policy")
5856
if self.credential and not self.authentication_policy:
5957
self.authentication_policy = ARMChallengeAuthenticationPolicy(

0 commit comments

Comments
 (0)