diff --git a/sdk/consumption/azure-mgmt-consumption/CHANGELOG.md b/sdk/consumption/azure-mgmt-consumption/CHANGELOG.md index 46601afc01e9..a11f0b6882f4 100644 --- a/sdk/consumption/azure-mgmt-consumption/CHANGELOG.md +++ b/sdk/consumption/azure-mgmt-consumption/CHANGELOG.md @@ -1,5 +1,18 @@ # Release History +## 11.1.0 (2026-08-17) + +### Features Added + + - Model `ReservationRecommendationDetailsProperties` added property `management_group_id` + - Model `ReservationRecommendationDetailsProperties` added property `projected_usage` + - Model `ReservationRecommendationDetailsProperties` added property `tenant_id` + - Enum `Scope` added member `MANAGEMENT_GROUP` + - Added model `LegacyManagementGroupScopeReservationRecommendationProperties` + - Added model `ModernManagementGroupScopeReservationRecommendationProperties` + - Added model `ReservationRecommendationDetailsProjectedUsageProperties` + - Operation group `ReservationRecommendationDetailsOperations` added parameter `management_group_id` in method `get` + ## 11.0.0 (2026-07-20) ### Features Added diff --git a/sdk/consumption/azure-mgmt-consumption/_metadata.json b/sdk/consumption/azure-mgmt-consumption/_metadata.json index 1756e0e9d654..27e17859c3bc 100644 --- a/sdk/consumption/azure-mgmt-consumption/_metadata.json +++ b/sdk/consumption/azure-mgmt-consumption/_metadata.json @@ -1,11 +1,11 @@ { - "apiVersion": "2024-08-01", + "apiVersion": "2026-06-01", "apiVersions": { - "Microsoft.Consumption": "2024-08-01" + "Microsoft.Consumption": "2026-06-01" }, - "commit": "cf49df24bee763924bb4d9abceebe4fd1916a6ad", + "commit": "069ddc2a68bac3f5e5f51a9e3c4636a5316cade3", "repository_url": "https://github.com/Azure/azure-rest-api-specs", "typespec_src": "specification/consumption/resource-manager/Microsoft.Consumption/Consumption", - "emitterVersion": "0.63.3", - "httpClientPythonVersion": "^0.34.2" + "emitterVersion": "0.63.5", + "httpClientPythonVersion": "^0.36.0" } \ No newline at end of file diff --git a/sdk/consumption/azure-mgmt-consumption/api.md b/sdk/consumption/azure-mgmt-consumption/api.md index 174ec7b559f3..181c79fedd2f 100644 --- a/sdk/consumption/azure-mgmt-consumption/api.md +++ b/sdk/consumption/azure-mgmt-consumption/api.md @@ -386,12 +386,14 @@ namespace azure.mgmt.consumption.aio.operations ) -> None: ... @distributed_trace_async + @api_version_validation(params_added_on={'2026-06-01': ['management_group_id']}, api_versions_list=['2024-08-01', '2026-06-01']) async def get( self, resource_scope: str, *, filter: Optional[str] = ..., look_back_period: Union[str, LookBackPeriod], + management_group_id: Optional[str] = ..., product: str, region: str, scope: Union[str, Scope], @@ -1080,6 +1082,34 @@ namespace azure.mgmt.consumption.models usage_start: Optional[str] + class azure.mgmt.consumption.models.LegacyManagementGroupScopeReservationRecommendationProperties(LegacyReservationRecommendationProperties, discriminator='ManagementGroup'): + cost_with_no_reserved_instances: Decimal + first_usage_date: datetime + instance_flexibility_group: str + instance_flexibility_ratio: float + last_usage_date: datetime + look_back_period: str + management_group_id: str + meter_id: str + net_savings: Decimal + normalized_size: str + recommended_quantity: Decimal + recommended_quantity_normalized: float + resource_type: str + scope: Literal["ManagementGroup"] + sku_properties: list[SkuProperty] + tenant_id: str + term: str + total_cost_with_reserved_instances: Decimal + total_hours: int + + @overload + def __init__(self) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + class azure.mgmt.consumption.models.LegacyReservationRecommendation(ReservationRecommendation, discriminator='legacy'): etag: str id: str @@ -1530,6 +1560,36 @@ namespace azure.mgmt.consumption.models usage_start: Optional[str] + class azure.mgmt.consumption.models.ModernManagementGroupScopeReservationRecommendationProperties(ModernReservationRecommendationProperties, discriminator='ManagementGroup'): + cost_with_no_reserved_instances: Amount + first_usage_date: datetime + instance_flexibility_group: str + instance_flexibility_ratio: float + last_usage_date: datetime + location: str + look_back_period: int + management_group_id: str + meter_id: str + net_savings: Amount + normalized_size: str + recommended_quantity: Decimal + recommended_quantity_normalized: float + resource_type: str + scope: Literal["ManagementGroup"] + sku_name: str + sku_properties: list[SkuProperty] + tenant_id: str + term: str + total_cost_with_reserved_instances: Amount + total_hours: int + + @overload + def __init__(self) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + class azure.mgmt.consumption.models.ModernReservationRecommendation(ReservationRecommendation, discriminator='modern'): etag: str id: str @@ -2074,12 +2134,19 @@ namespace azure.mgmt.consumption.models ) -> None: ... + class azure.mgmt.consumption.models.ReservationRecommendationDetailsProjectedUsageProperties(_Model): + total_retail_usage_in_c_us: Optional[float] + + class azure.mgmt.consumption.models.ReservationRecommendationDetailsProperties(_Model): currency: Optional[str] + management_group_id: Optional[str] + projected_usage: Optional[ReservationRecommendationDetailsProjectedUsageProperties] resource: Optional[ReservationRecommendationDetailsResourceProperties] resource_group: Optional[str] savings: Optional[ReservationRecommendationDetailsSavingsProperties] scope: Optional[str] + tenant_id: Optional[str] usage: Optional[ReservationRecommendationDetailsUsageProperties] @@ -2211,6 +2278,7 @@ namespace azure.mgmt.consumption.models class azure.mgmt.consumption.models.Scope(str, Enum, metaclass=CaseInsensitiveEnumMeta): + MANAGEMENT_GROUP = "ManagementGroup" SHARED = "Shared" SINGLE = "Single" @@ -2657,12 +2725,14 @@ namespace azure.mgmt.consumption.operations ) -> None: ... @distributed_trace + @api_version_validation(params_added_on={'2026-06-01': ['management_group_id']}, api_versions_list=['2024-08-01', '2026-06-01']) def get( self, resource_scope: str, *, filter: Optional[str] = ..., look_back_period: Union[str, LookBackPeriod], + management_group_id: Optional[str] = ..., product: str, region: str, scope: Union[str, Scope], @@ -2851,11 +2921,11 @@ namespace azure.mgmt.consumption.types key "properties": ForwardRef('BudgetProperties', module='types') key "systemData": ForwardRef('SystemData', module='types') key "type": str - e_tag: str + eTag: str id: str name: str properties: BudgetProperties - system_data: SystemData + systemData: SystemData type: str @@ -2865,14 +2935,13 @@ namespace azure.mgmt.consumption.types key "values": Required[list[str]] name: str operator: Union[str, BudgetOperatorType] - values_property: list[str] + values: list[str] class azure.mgmt.consumption.types.BudgetFilter(TypedDict): key "dimensions": ForwardRef('BudgetComparisonExpression', module='types') key "tags": ForwardRef('BudgetComparisonExpression', module='types') and: list[BudgetFilterProperties] - and_property: list[BudgetFilterProperties] dimensions: BudgetComparisonExpression tags: BudgetComparisonExpression @@ -2894,19 +2963,19 @@ namespace azure.mgmt.consumption.types key "timePeriod": Required[BudgetTimePeriod] amount: float category: Union[str, CategoryType] - current_spend: CurrentSpend + currentSpend: CurrentSpend filter: BudgetFilter - forecast_spend: ForecastSpend + forecastSpend: ForecastSpend notifications: dict[str, Notification] - time_grain: Union[str, TimeGrainType] - time_period: BudgetTimePeriod + timeGrain: Union[str, TimeGrainType] + timePeriod: BudgetTimePeriod class azure.mgmt.consumption.types.BudgetTimePeriod(TypedDict, total=False): key "endDate": str key "startDate": Required[str] - end_date: str - start_date: str + endDate: str + startDate: str class azure.mgmt.consumption.types.CurrentSpend(TypedDict, total=False): @@ -2923,7 +2992,7 @@ namespace azure.mgmt.consumption.types key "type": str id: str name: str - system_data: SystemData + systemData: SystemData type: str @@ -2941,16 +3010,14 @@ namespace azure.mgmt.consumption.types key "operator": Required[Union[str, OperatorType]] key "threshold": Required[float] key "thresholdType": Union[str, ThresholdType] + contactEmails: list[str] contactGroups: list[str] contactRoles: list[str] - contact_emails: list[str] - contact_groups: list[str] - contact_roles: list[str] enabled: bool locale: Union[str, CultureCode] operator: Union[str, OperatorType] threshold: float - threshold_type: Union[str, ThresholdType] + thresholdType: Union[str, ThresholdType] class azure.mgmt.consumption.types.Resource(TypedDict, total=False): @@ -2960,7 +3027,7 @@ namespace azure.mgmt.consumption.types key "type": str id: str name: str - system_data: SystemData + systemData: SystemData type: str @@ -2971,12 +3038,12 @@ namespace azure.mgmt.consumption.types key "lastModifiedAt": str key "lastModifiedBy": str key "lastModifiedByType": Union[str, CreatedByType] - created_at: str - created_by: str - created_by_type: Union[str, CreatedByType] - last_modified_at: str - last_modified_by: str - last_modified_by_type: Union[str, CreatedByType] + createdAt: str + createdBy: str + createdByType: Union[str, CreatedByType] + lastModifiedAt: str + lastModifiedBy: str + lastModifiedByType: Union[str, CreatedByType] ``` \ No newline at end of file diff --git a/sdk/consumption/azure-mgmt-consumption/api.metadata.yml b/sdk/consumption/azure-mgmt-consumption/api.metadata.yml index f553fbb2af5b..c0362fac204f 100644 --- a/sdk/consumption/azure-mgmt-consumption/api.metadata.yml +++ b/sdk/consumption/azure-mgmt-consumption/api.metadata.yml @@ -1,3 +1,3 @@ -apiMdSha256: 23a638a77b22f3c78142f262c0d789b16a0153c9fe719b1e9ac21873153a9251 -parserVersion: 0.3.28 +apiMdSha256: 6b5aec58eae9255676978940bd7eadbd6dd0a052d371fda42707164956c80363 +parserVersion: 0.3.31 pythonVersion: 3.13.14 diff --git a/sdk/consumption/azure-mgmt-consumption/apiview-properties.json b/sdk/consumption/azure-mgmt-consumption/apiview-properties.json index 7ac6037f881c..ab9a76a239cb 100644 --- a/sdk/consumption/azure-mgmt-consumption/apiview-properties.json +++ b/sdk/consumption/azure-mgmt-consumption/apiview-properties.json @@ -32,9 +32,10 @@ "azure.mgmt.consumption.models.HighCasedErrorResponse": "Microsoft.Consumption.HighCasedErrorResponse", "azure.mgmt.consumption.models.LegacyChargeSummary": "Microsoft.Consumption.LegacyChargeSummary", "azure.mgmt.consumption.models.LegacyChargeSummaryProperties": "Microsoft.Consumption.LegacyChargeSummaryProperties", + "azure.mgmt.consumption.models.LegacyReservationRecommendationProperties": "Microsoft.Consumption.LegacyReservationRecommendationProperties", + "azure.mgmt.consumption.models.LegacyManagementGroupScopeReservationRecommendationProperties": "Microsoft.Consumption.LegacyManagementGroupScopeReservationRecommendationProperties", "azure.mgmt.consumption.models.ReservationRecommendation": "Microsoft.Consumption.ReservationRecommendation", "azure.mgmt.consumption.models.LegacyReservationRecommendation": "Microsoft.Consumption.LegacyReservationRecommendation", - "azure.mgmt.consumption.models.LegacyReservationRecommendationProperties": "Microsoft.Consumption.LegacyReservationRecommendationProperties", "azure.mgmt.consumption.models.LegacyReservationTransactionProperties": "Microsoft.Consumption.LegacyReservationTransactionProperties", "azure.mgmt.consumption.models.LegacySharedScopeReservationRecommendationProperties": "Microsoft.Consumption.LegacySharedScopeReservationRecommendationProperties", "azure.mgmt.consumption.models.LegacySingleScopeReservationRecommendationProperties": "Microsoft.Consumption.LegacySingleScopeReservationRecommendationProperties", @@ -51,8 +52,9 @@ "azure.mgmt.consumption.models.MeterDetailsResponse": "Microsoft.Consumption.MeterDetailsResponse", "azure.mgmt.consumption.models.ModernChargeSummary": "Microsoft.Consumption.ModernChargeSummary", "azure.mgmt.consumption.models.ModernChargeSummaryProperties": "Microsoft.Consumption.ModernChargeSummaryProperties", - "azure.mgmt.consumption.models.ModernReservationRecommendation": "Microsoft.Consumption.ModernReservationRecommendation", "azure.mgmt.consumption.models.ModernReservationRecommendationProperties": "Microsoft.Consumption.ModernReservationRecommendationProperties", + "azure.mgmt.consumption.models.ModernManagementGroupScopeReservationRecommendationProperties": "Microsoft.Consumption.ModernManagementGroupScopeReservationRecommendationProperties", + "azure.mgmt.consumption.models.ModernReservationRecommendation": "Microsoft.Consumption.ModernReservationRecommendation", "azure.mgmt.consumption.models.ModernReservationTransaction": "Microsoft.Consumption.ModernReservationTransaction", "azure.mgmt.consumption.models.ModernReservationTransactionProperties": "Microsoft.Consumption.ModernReservationTransactionProperties", "azure.mgmt.consumption.models.ModernSharedScopeReservationRecommendationProperties": "Microsoft.Consumption.ModernSharedScopeReservationRecommendationProperties", @@ -72,6 +74,7 @@ "azure.mgmt.consumption.models.ReservationDetailProperties": "Microsoft.Consumption.ReservationDetailProperties", "azure.mgmt.consumption.models.ReservationRecommendationDetailsCalculatedSavingsProperties": "Microsoft.Consumption.ReservationRecommendationDetailsCalculatedSavingsProperties", "azure.mgmt.consumption.models.ReservationRecommendationDetailsModel": "Microsoft.Consumption.ReservationRecommendationDetailsModel", + "azure.mgmt.consumption.models.ReservationRecommendationDetailsProjectedUsageProperties": "Microsoft.Consumption.ReservationRecommendationDetailsProjectedUsageProperties", "azure.mgmt.consumption.models.ReservationRecommendationDetailsProperties": "Microsoft.Consumption.ReservationRecommendationDetailsProperties", "azure.mgmt.consumption.models.ReservationRecommendationDetailsResourceProperties": "Microsoft.Consumption.ReservationRecommendationDetailsResourceProperties", "azure.mgmt.consumption.models.ReservationRecommendationDetailsSavingsProperties": "Microsoft.Consumption.ReservationRecommendationDetailsSavingsProperties", @@ -172,5 +175,5 @@ "azure.mgmt.consumption.operations.LotsOperations.list_by_customer": "Microsoft.Consumption.LotsOperationGroup.listByCustomer", "azure.mgmt.consumption.aio.operations.LotsOperations.list_by_customer": "Microsoft.Consumption.LotsOperationGroup.listByCustomer" }, - "CrossLanguageVersion": "6d59b39f8eeb" + "CrossLanguageVersion": "4cef19d23bc5" } \ No newline at end of file diff --git a/sdk/consumption/azure-mgmt-consumption/azure/mgmt/consumption/_client.py b/sdk/consumption/azure-mgmt-consumption/azure/mgmt/consumption/_client.py index d7509912a142..d117829661e8 100644 --- a/sdk/consumption/azure-mgmt-consumption/azure/mgmt/consumption/_client.py +++ b/sdk/consumption/azure-mgmt-consumption/azure/mgmt/consumption/_client.py @@ -1,3 +1,4 @@ +# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -49,7 +50,7 @@ from azure.core.credentials import TokenCredential -class ConsumptionManagementClient: # pylint: disable=too-many-instance-attributes +class ConsumptionManagementClient: # pylint: disable=too-many-instance-attributes,docstring-keyword-should-match-keyword-only """Consumption management client provides access to consumption resources for Azure Enterprise Subscriptions. @@ -100,7 +101,7 @@ class ConsumptionManagementClient: # pylint: disable=too-many-instance-attribut :keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is None. :paramtype cloud_setting: ~azure.core.AzureClouds - :keyword api_version: The API version to use for this operation. Known values are "2024-08-01" + :keyword api_version: The API version to use for this operation. Known values are "2026-06-01" and None. Default value is None. If not set, the operation's default API version will be used. Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str diff --git a/sdk/consumption/azure-mgmt-consumption/azure/mgmt/consumption/_configuration.py b/sdk/consumption/azure-mgmt-consumption/azure/mgmt/consumption/_configuration.py index b5a5112a1c25..793a3b03e47a 100644 --- a/sdk/consumption/azure-mgmt-consumption/azure/mgmt/consumption/_configuration.py +++ b/sdk/consumption/azure-mgmt-consumption/azure/mgmt/consumption/_configuration.py @@ -1,3 +1,4 @@ +# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -18,7 +19,7 @@ from azure.core.credentials import TokenCredential -class ConsumptionManagementClientConfiguration: # pylint: disable=too-many-instance-attributes +class ConsumptionManagementClientConfiguration: # pylint: disable=too-many-instance-attributes,docstring-keyword-should-match-keyword-only """Configuration for ConsumptionManagementClient. Note that all parameters used to create this instance are saved as instance @@ -33,7 +34,7 @@ class ConsumptionManagementClientConfiguration: # pylint: disable=too-many-inst :param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is None. :type cloud_setting: ~azure.core.AzureClouds - :keyword api_version: The API version to use for this operation. Known values are "2024-08-01" + :keyword api_version: The API version to use for this operation. Known values are "2026-06-01" and None. Default value is None. If not set, the operation's default API version will be used. Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str @@ -47,7 +48,7 @@ def __init__( cloud_setting: Optional["AzureClouds"] = None, **kwargs: Any ) -> None: - api_version: str = kwargs.pop("api_version", "2024-08-01") + api_version: str = kwargs.pop("api_version", "2026-06-01") if credential is None: raise ValueError("Parameter 'credential' must not be None.") diff --git a/sdk/consumption/azure-mgmt-consumption/azure/mgmt/consumption/_patch.py b/sdk/consumption/azure-mgmt-consumption/azure/mgmt/consumption/_patch.py index 87676c65a8f0..ea765788358a 100644 --- a/sdk/consumption/azure-mgmt-consumption/azure/mgmt/consumption/_patch.py +++ b/sdk/consumption/azure-mgmt-consumption/azure/mgmt/consumption/_patch.py @@ -8,7 +8,6 @@ Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize """ - __all__: list[str] = [] # Add all objects you want publicly available to users at this package level diff --git a/sdk/consumption/azure-mgmt-consumption/azure/mgmt/consumption/_utils/model_base.py b/sdk/consumption/azure-mgmt-consumption/azure/mgmt/consumption/_utils/model_base.py index 1934415c1369..88aaf1823543 100644 --- a/sdk/consumption/azure-mgmt-consumption/azure/mgmt/consumption/_utils/model_base.py +++ b/sdk/consumption/azure-mgmt-consumption/azure/mgmt/consumption/_utils/model_base.py @@ -158,7 +158,15 @@ def _is_readonly(p): class SdkJSONEncoder(JSONEncoder): - """A JSON encoder that's capable of serializing datetime objects and bytes.""" + """A JSON encoder that's capable of serializing datetime objects and bytes. + + :param args: Additional positional arguments passed to the base ``JSONEncoder``. + :type args: typing.Any + :keyword exclude_readonly: Whether to exclude readonly properties. Defaults to False. + :paramtype exclude_readonly: bool + :keyword format: The format to use for serialization. Defaults to None. + :paramtype format: typing.Optional[str] + """ def __init__(self, *args, exclude_readonly: bool = False, format: typing.Optional[str] = None, **kwargs): super().__init__(*args, **kwargs) @@ -342,6 +350,12 @@ def _deserialize_int_as_str(attr): return int(attr) +def _deserialize_bool_as_str(attr): + if isinstance(attr, bool): + return attr + return attr.lower() == "true" + + _DESERIALIZE_MAPPING = { datetime: _deserialize_datetime, date: _deserialize_date, @@ -369,6 +383,8 @@ def _deserialize_int_as_str(attr): def get_deserializer(annotation: typing.Any, rf: typing.Optional["_RestField"] = None): if annotation is int and rf and rf._format == "str": return _deserialize_int_as_str + if annotation is bool and rf and rf._format == "str": + return _deserialize_bool_as_str if annotation is str and rf and rf._format in _ARRAY_ENCODE_MAPPING: return functools.partial(_deserialize_array_encoded, _ARRAY_ENCODE_MAPPING[rf._format]) if rf and rf._format: diff --git a/sdk/consumption/azure-mgmt-consumption/azure/mgmt/consumption/_utils/serialization.py b/sdk/consumption/azure-mgmt-consumption/azure/mgmt/consumption/_utils/serialization.py index 75906e2eb77f..ae08f9d89f74 100644 --- a/sdk/consumption/azure-mgmt-consumption/azure/mgmt/consumption/_utils/serialization.py +++ b/sdk/consumption/azure-mgmt-consumption/azure/mgmt/consumption/_utils/serialization.py @@ -480,7 +480,11 @@ def _decode_attribute_map_key(key): class Serializer: # pylint: disable=too-many-public-methods - """Request object model serializer.""" + """Request object model serializer. + + :param classes: Mapping of model names to model types, used to resolve models during serialization. + :type classes: typing.Optional[typing.Mapping[str, type]] + """ basic_types = {str: "str", int: "int", bool: "bool", float: "float"} diff --git a/sdk/consumption/azure-mgmt-consumption/azure/mgmt/consumption/_validation.py b/sdk/consumption/azure-mgmt-consumption/azure/mgmt/consumption/_validation.py new file mode 100644 index 000000000000..f5af3a4eb8a2 --- /dev/null +++ b/sdk/consumption/azure-mgmt-consumption/azure/mgmt/consumption/_validation.py @@ -0,0 +1,66 @@ +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- +import functools + + +def api_version_validation(**kwargs): + params_added_on = kwargs.pop("params_added_on", {}) + method_added_on = kwargs.pop("method_added_on", "") + api_versions_list = kwargs.pop("api_versions_list", []) + + def _index_with_default(value: str, default: int = -1) -> int: + """Get the index of value in lst, or return default if not found. + + :param value: The value to search for in the api_versions_list. + :type value: str + :param default: The default value to return if the value is not found. + :type default: int + :return: The index of the value in the list, or the default value if not found. + :rtype: int + """ + try: + return api_versions_list.index(value) + except ValueError: + return default + + def decorator(func): + @functools.wraps(func) + def wrapper(*args, **kwargs): + try: + # this assumes the client has an _api_version attribute + client = args[0] + client_api_version = client._config.api_version # pylint: disable=protected-access + except AttributeError: + return func(*args, **kwargs) + + if _index_with_default(method_added_on) > _index_with_default(client_api_version): + raise ValueError( + f"'{func.__name__}' is not available in API version " + f"{client_api_version}. Pass service API version {method_added_on} or newer to your client." + ) + + unsupported = { + parameter: api_version + for api_version, parameters in params_added_on.items() + for parameter in parameters + if parameter in kwargs and _index_with_default(api_version) > _index_with_default(client_api_version) + } + if unsupported: + raise ValueError( + "".join( + [ + f"'{param}' is not available in API version {client_api_version}. " + f"Use service API version {version} or newer.\n" + for param, version in unsupported.items() + ] + ) + ) + return func(*args, **kwargs) + + return wrapper + + return decorator diff --git a/sdk/consumption/azure-mgmt-consumption/azure/mgmt/consumption/_version.py b/sdk/consumption/azure-mgmt-consumption/azure/mgmt/consumption/_version.py index 98736875ea16..6e3157772a9f 100644 --- a/sdk/consumption/azure-mgmt-consumption/azure/mgmt/consumption/_version.py +++ b/sdk/consumption/azure-mgmt-consumption/azure/mgmt/consumption/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "11.0.0" +VERSION = "11.1.0" diff --git a/sdk/consumption/azure-mgmt-consumption/azure/mgmt/consumption/aio/_client.py b/sdk/consumption/azure-mgmt-consumption/azure/mgmt/consumption/aio/_client.py index a464be22aa96..ffb1f5485d6b 100644 --- a/sdk/consumption/azure-mgmt-consumption/azure/mgmt/consumption/aio/_client.py +++ b/sdk/consumption/azure-mgmt-consumption/azure/mgmt/consumption/aio/_client.py @@ -1,3 +1,4 @@ +# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -49,7 +50,7 @@ from azure.core.credentials_async import AsyncTokenCredential -class ConsumptionManagementClient: # pylint: disable=too-many-instance-attributes +class ConsumptionManagementClient: # pylint: disable=too-many-instance-attributes,docstring-keyword-should-match-keyword-only """Consumption management client provides access to consumption resources for Azure Enterprise Subscriptions. @@ -101,7 +102,7 @@ class ConsumptionManagementClient: # pylint: disable=too-many-instance-attribut :keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is None. :paramtype cloud_setting: ~azure.core.AzureClouds - :keyword api_version: The API version to use for this operation. Known values are "2024-08-01" + :keyword api_version: The API version to use for this operation. Known values are "2026-06-01" and None. Default value is None. If not set, the operation's default API version will be used. Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str diff --git a/sdk/consumption/azure-mgmt-consumption/azure/mgmt/consumption/aio/_configuration.py b/sdk/consumption/azure-mgmt-consumption/azure/mgmt/consumption/aio/_configuration.py index b2fe00c52a16..028ccb6ccfca 100644 --- a/sdk/consumption/azure-mgmt-consumption/azure/mgmt/consumption/aio/_configuration.py +++ b/sdk/consumption/azure-mgmt-consumption/azure/mgmt/consumption/aio/_configuration.py @@ -1,3 +1,4 @@ +# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -18,7 +19,7 @@ from azure.core.credentials_async import AsyncTokenCredential -class ConsumptionManagementClientConfiguration: # pylint: disable=too-many-instance-attributes +class ConsumptionManagementClientConfiguration: # pylint: disable=too-many-instance-attributes,docstring-keyword-should-match-keyword-only """Configuration for ConsumptionManagementClient. Note that all parameters used to create this instance are saved as instance @@ -33,7 +34,7 @@ class ConsumptionManagementClientConfiguration: # pylint: disable=too-many-inst :param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is None. :type cloud_setting: ~azure.core.AzureClouds - :keyword api_version: The API version to use for this operation. Known values are "2024-08-01" + :keyword api_version: The API version to use for this operation. Known values are "2026-06-01" and None. Default value is None. If not set, the operation's default API version will be used. Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str @@ -47,7 +48,7 @@ def __init__( cloud_setting: Optional["AzureClouds"] = None, **kwargs: Any ) -> None: - api_version: str = kwargs.pop("api_version", "2024-08-01") + api_version: str = kwargs.pop("api_version", "2026-06-01") if credential is None: raise ValueError("Parameter 'credential' must not be None.") diff --git a/sdk/consumption/azure-mgmt-consumption/azure/mgmt/consumption/aio/_patch.py b/sdk/consumption/azure-mgmt-consumption/azure/mgmt/consumption/aio/_patch.py index 87676c65a8f0..ea765788358a 100644 --- a/sdk/consumption/azure-mgmt-consumption/azure/mgmt/consumption/aio/_patch.py +++ b/sdk/consumption/azure-mgmt-consumption/azure/mgmt/consumption/aio/_patch.py @@ -8,7 +8,6 @@ Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize """ - __all__: list[str] = [] # Add all objects you want publicly available to users at this package level diff --git a/sdk/consumption/azure-mgmt-consumption/azure/mgmt/consumption/aio/operations/_operations.py b/sdk/consumption/azure-mgmt-consumption/azure/mgmt/consumption/aio/operations/_operations.py index 59d53fb279bc..697a0d8822d0 100644 --- a/sdk/consumption/azure-mgmt-consumption/azure/mgmt/consumption/aio/operations/_operations.py +++ b/sdk/consumption/azure-mgmt-consumption/azure/mgmt/consumption/aio/operations/_operations.py @@ -37,6 +37,7 @@ from ... import models as _models, types as _types from ..._utils.model_base import SdkJSONEncoder, _deserialize, _failsafe_deserialize from ..._utils.serialization import Deserializer, Serializer +from ..._validation import api_version_validation from ...operations._operations import ( build_aggregated_cost_get_by_management_group_request, build_aggregated_cost_get_for_billing_period_by_management_group_request, @@ -78,7 +79,7 @@ List = list -class Operations: +class Operations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -190,7 +191,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class PriceSheetOperations: +class PriceSheetOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -503,7 +504,7 @@ def get_long_running_output(pipeline_response): ) -class BudgetsOperations: +class BudgetsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -911,7 +912,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class CreditsOperations: +class CreditsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -1003,7 +1004,7 @@ async def get( return deserialized # type: ignore -class UsageDetailsOperations: +class UsageDetailsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -1163,7 +1164,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class MarketplacesOperations: +class MarketplacesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -1303,7 +1304,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class TagsOperations: +class TagsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -1390,7 +1391,7 @@ async def get(self, scope: str, **kwargs: Any) -> Optional[_models.TagsResult]: return deserialized # type: ignore -class ChargesOperations: +class ChargesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -1502,7 +1503,7 @@ async def list( return deserialized # type: ignore -class BalancesOperations: +class BalancesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -1659,7 +1660,7 @@ async def get_for_billing_period_by_billing_account( # pylint: disable=name-too return deserialized # type: ignore -class ReservationsSummariesOperations: +class ReservationsSummariesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -2041,7 +2042,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class ReservationsDetailsOperations: +class ReservationsDetailsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -2411,7 +2412,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class ReservationRecommendationsOperations: +class ReservationRecommendationsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -2539,7 +2540,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class ReservationRecommendationDetailsOperations: # pylint: disable=name-too-long +class ReservationRecommendationDetailsOperations: # pylint: disable=docstring-missing-param,name-too-long """ .. warning:: **DO NOT** instantiate this class directly. @@ -2559,6 +2560,10 @@ def __init__(self, *args, **kwargs) -> None: self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") @distributed_trace_async + @api_version_validation( + params_added_on={"2026-06-01": ["management_group_id"]}, + api_versions_list=["2024-08-01", "2026-06-01"], + ) async def get( self, resource_scope: str, @@ -2569,6 +2574,7 @@ async def get( look_back_period: Union[str, _models.LookBackPeriod], product: str, filter: Optional[str] = None, + management_group_id: Optional[str] = None, **kwargs: Any ) -> Optional[_models.ReservationRecommendationDetailsModel]: """Details of a reservation recommendation for what-if analysis of reserved instances. @@ -2580,7 +2586,8 @@ async def get( '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile scope. Required. :type resource_scope: str - :keyword scope: Scope of the reservation. Known values are: "Single" and "Shared". Required. + :keyword scope: Scope of the reservation. Known values are: "Single", "Shared", and + "ManagementGroup". Required. :paramtype scope: str or ~azure.mgmt.consumption.models.Scope :keyword region: Used to select the region the recommendation should be generated for. Required. @@ -2599,6 +2606,9 @@ async def get( properties/subscriptionId can be specified for billing account and billing profile paths. Default value is None. :paramtype filter: str + :keyword management_group_id: Specify the management group ID. Required when recommendation + scope is 'ManagementGroup'. Default value is None. + :paramtype management_group_id: str :return: ReservationRecommendationDetailsModel or None. The ReservationRecommendationDetailsModel is compatible with MutableMapping :rtype: ~azure.mgmt.consumption.models.ReservationRecommendationDetailsModel or None @@ -2625,6 +2635,7 @@ async def get( look_back_period=look_back_period, product=product, filter=filter, + management_group_id=management_group_id, api_version=self._config.api_version, headers=_headers, params=_params, @@ -2668,7 +2679,7 @@ async def get( return deserialized # type: ignore -class ReservationTransactionsOperations: +class ReservationTransactionsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -2928,7 +2939,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class AggregatedCostOperations: +class AggregatedCostOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -3093,7 +3104,7 @@ async def get_for_billing_period_by_management_group( # pylint: disable=name-to return deserialized # type: ignore -class EventsOperations: +class EventsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -3324,7 +3335,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class LotsOperations: +class LotsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. diff --git a/sdk/consumption/azure-mgmt-consumption/azure/mgmt/consumption/aio/operations/_patch.py b/sdk/consumption/azure-mgmt-consumption/azure/mgmt/consumption/aio/operations/_patch.py index 87676c65a8f0..ea765788358a 100644 --- a/sdk/consumption/azure-mgmt-consumption/azure/mgmt/consumption/aio/operations/_patch.py +++ b/sdk/consumption/azure-mgmt-consumption/azure/mgmt/consumption/aio/operations/_patch.py @@ -8,7 +8,6 @@ Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize """ - __all__: list[str] = [] # Add all objects you want publicly available to users at this package level diff --git a/sdk/consumption/azure-mgmt-consumption/azure/mgmt/consumption/models/__init__.py b/sdk/consumption/azure-mgmt-consumption/azure/mgmt/consumption/models/__init__.py index 8258fdd112f6..7180c5879948 100644 --- a/sdk/consumption/azure-mgmt-consumption/azure/mgmt/consumption/models/__init__.py +++ b/sdk/consumption/azure-mgmt-consumption/azure/mgmt/consumption/models/__init__.py @@ -43,6 +43,7 @@ HighCasedErrorResponse, LegacyChargeSummary, LegacyChargeSummaryProperties, + LegacyManagementGroupScopeReservationRecommendationProperties, LegacyReservationRecommendation, LegacyReservationRecommendationProperties, LegacyReservationTransactionProperties, @@ -60,6 +61,7 @@ MeterDetailsResponse, ModernChargeSummary, ModernChargeSummaryProperties, + ModernManagementGroupScopeReservationRecommendationProperties, ModernReservationRecommendation, ModernReservationRecommendationProperties, ModernReservationTransaction, @@ -83,6 +85,7 @@ ReservationRecommendation, ReservationRecommendationDetailsCalculatedSavingsProperties, ReservationRecommendationDetailsModel, + ReservationRecommendationDetailsProjectedUsageProperties, ReservationRecommendationDetailsProperties, ReservationRecommendationDetailsResourceProperties, ReservationRecommendationDetailsSavingsProperties, @@ -158,6 +161,7 @@ "HighCasedErrorResponse", "LegacyChargeSummary", "LegacyChargeSummaryProperties", + "LegacyManagementGroupScopeReservationRecommendationProperties", "LegacyReservationRecommendation", "LegacyReservationRecommendationProperties", "LegacyReservationTransactionProperties", @@ -175,6 +179,7 @@ "MeterDetailsResponse", "ModernChargeSummary", "ModernChargeSummaryProperties", + "ModernManagementGroupScopeReservationRecommendationProperties", "ModernReservationRecommendation", "ModernReservationRecommendationProperties", "ModernReservationTransaction", @@ -198,6 +203,7 @@ "ReservationRecommendation", "ReservationRecommendationDetailsCalculatedSavingsProperties", "ReservationRecommendationDetailsModel", + "ReservationRecommendationDetailsProjectedUsageProperties", "ReservationRecommendationDetailsProperties", "ReservationRecommendationDetailsResourceProperties", "ReservationRecommendationDetailsSavingsProperties", diff --git a/sdk/consumption/azure-mgmt-consumption/azure/mgmt/consumption/models/_enums.py b/sdk/consumption/azure-mgmt-consumption/azure/mgmt/consumption/models/_enums.py index d27f5c882e13..632b65e259d8 100644 --- a/sdk/consumption/azure-mgmt-consumption/azure/mgmt/consumption/models/_enums.py +++ b/sdk/consumption/azure-mgmt-consumption/azure/mgmt/consumption/models/_enums.py @@ -229,6 +229,8 @@ class Scope(str, Enum, metaclass=CaseInsensitiveEnumMeta): """SINGLE.""" SHARED = "Shared" """SHARED.""" + MANAGEMENT_GROUP = "ManagementGroup" + """Management group scoped recommendation.""" class Status(str, Enum, metaclass=CaseInsensitiveEnumMeta): diff --git a/sdk/consumption/azure-mgmt-consumption/azure/mgmt/consumption/models/_models.py b/sdk/consumption/azure-mgmt-consumption/azure/mgmt/consumption/models/_models.py index fac7e4574f4b..e558f72e46ef 100644 --- a/sdk/consumption/azure-mgmt-consumption/azure/mgmt/consumption/models/_models.py +++ b/sdk/consumption/azure-mgmt-consumption/azure/mgmt/consumption/models/_models.py @@ -81,7 +81,7 @@ class Resource(_Model): """Azure Resource Manager metadata containing createdBy and modifiedBy information.""" -class Balance(Resource): +class Balance(Resource): # pylint: disable=docstring-keyword-should-match-keyword-only """A balance resource. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -167,7 +167,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class BalanceProperties(_Model): +class BalanceProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The properties of the balance. :ivar currency: The ISO currency in which the meter is charged, for example, USD. @@ -316,7 +316,7 @@ class ExtensionResource(Resource): """ -class Budget(ExtensionResource): +class Budget(ExtensionResource): # pylint: disable=docstring-keyword-should-match-keyword-only """A budget resource. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -393,7 +393,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class BudgetComparisonExpression(_Model): +class BudgetComparisonExpression(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The comparison expression to be used in the budgets. :ivar name: The name of the column to use in comparison. Required. @@ -435,7 +435,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class BudgetFilter(_Model): +class BudgetFilter(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """May be used to filter budgets by resource group, resource, or meter. :ivar and_property: The logical "AND" expression. Must have at least 2 items. @@ -479,7 +479,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class BudgetFilterProperties(_Model): +class BudgetFilterProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The Dimensions or Tags to filter a budget by. :ivar dimensions: Has comparison expression for a dimension. @@ -516,7 +516,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class BudgetProperties(_Model): +class BudgetProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The properties of the budget. :ivar category: The category of the budget, whether the budget tracks cost or usage. Required. @@ -600,7 +600,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class BudgetTimePeriod(_Model): +class BudgetTimePeriod(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The start and end date for a budget. :ivar start_date: The start date for the budget. Required. @@ -666,7 +666,7 @@ class ProxyResource(Resource): """ -class ChargeSummary(ProxyResource): +class ChargeSummary(ProxyResource): # pylint: disable=docstring-keyword-should-match-keyword-only """A charge summary resource. You probably want to use the sub-classes and not this class directly. Known sub-classes are: @@ -739,7 +739,7 @@ class CreditBalanceSummary(_Model): """Estimated balance in billing currency.""" -class CreditSummary(ProxyResource): +class CreditSummary(ProxyResource): # pylint: disable=docstring-keyword-should-match-keyword-only """A credit summary resource. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -929,7 +929,7 @@ class ErrorDetail(_Model): """The error additional info.""" -class ErrorResponse(_Model): +class ErrorResponse(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Error response. :ivar error: The error object. @@ -957,7 +957,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class EventProperties(_Model): +class EventProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The event properties. :ivar transaction_date: The date of the event. @@ -1128,7 +1128,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class EventSummary(ProxyResource): +class EventSummary(ProxyResource): # pylint: disable=docstring-keyword-should-match-keyword-only """An event summary resource. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -1252,7 +1252,7 @@ class HighCasedErrorDetails(_Model): """Error message indicating why the operation failed.""" -class HighCasedErrorResponse(_Model): +class HighCasedErrorResponse(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Error response indicates that the service is not able to process the incoming request. The reason is provided in the error message. @@ -1293,7 +1293,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class LegacyChargeSummary(ChargeSummary, discriminator="legacy"): +class LegacyChargeSummary( + ChargeSummary, discriminator="legacy" +): # pylint: disable=docstring-keyword-should-match-keyword-only """Legacy charge summary. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -1409,7 +1411,189 @@ class LegacyChargeSummaryProperties(_Model): """Currency Code.""" -class ReservationRecommendation(_Model): +class LegacyReservationRecommendationProperties( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only + """The properties of the reservation recommendation. + + You probably want to use the sub-classes and not this class directly. Known sub-classes are: + LegacyManagementGroupScopeReservationRecommendationProperties, + LegacySharedScopeReservationRecommendationProperties, + LegacySingleScopeReservationRecommendationProperties + + :ivar look_back_period: The number of days of usage to look back for recommendation. + :vartype look_back_period: str + :ivar instance_flexibility_ratio: The instance Flexibility Ratio. + :vartype instance_flexibility_ratio: float + :ivar instance_flexibility_group: The instance Flexibility Group. + :vartype instance_flexibility_group: str + :ivar normalized_size: The normalized Size. + :vartype normalized_size: str + :ivar recommended_quantity_normalized: The recommended Quantity Normalized. + :vartype recommended_quantity_normalized: float + :ivar meter_id: The meter id (GUID). + :vartype meter_id: str + :ivar resource_type: The azure resource type. + :vartype resource_type: str + :ivar term: Term period of the reservation. ex: P1M, P1Y or P3Y. + :vartype term: str + :ivar cost_with_no_reserved_instances: The total amount of cost without reserved instances. + :vartype cost_with_no_reserved_instances: ~decimal.Decimal + :ivar recommended_quantity: Recommended quality for reserved instances. + :vartype recommended_quantity: ~decimal.Decimal + :ivar total_cost_with_reserved_instances: The total amount of cost with reserved instances. + :vartype total_cost_with_reserved_instances: ~decimal.Decimal + :ivar net_savings: Total estimated savings with reserved instances. + :vartype net_savings: ~decimal.Decimal + :ivar first_usage_date: The usage date for looking back. + :vartype first_usage_date: ~datetime.datetime + :ivar scope: Shared or single recommendation. Required. Default value is None. + :vartype scope: str + :ivar sku_properties: List of sku properties. + :vartype sku_properties: list[~azure.mgmt.consumption.models.SkuProperty] + :ivar last_usage_date: The last usage date used for looking back for computing the + recommendation. + :vartype last_usage_date: ~datetime.datetime + :ivar total_hours: The total hours for which the cost is covered. + :vartype total_hours: int + """ + + __mapping__: dict[str, _Model] = {} + look_back_period: Optional[str] = rest_field(name="lookBackPeriod", visibility=["read"]) + """The number of days of usage to look back for recommendation.""" + instance_flexibility_ratio: Optional[float] = rest_field(name="instanceFlexibilityRatio", visibility=["read"]) + """The instance Flexibility Ratio.""" + instance_flexibility_group: Optional[str] = rest_field(name="instanceFlexibilityGroup", visibility=["read"]) + """The instance Flexibility Group.""" + normalized_size: Optional[str] = rest_field(name="normalizedSize", visibility=["read"]) + """The normalized Size.""" + recommended_quantity_normalized: Optional[float] = rest_field( + name="recommendedQuantityNormalized", visibility=["read"] + ) + """The recommended Quantity Normalized.""" + meter_id: Optional[str] = rest_field(name="meterId", visibility=["read"]) + """The meter id (GUID).""" + resource_type: Optional[str] = rest_field(name="resourceType", visibility=["read"]) + """The azure resource type.""" + term: Optional[str] = rest_field(visibility=["read"]) + """Term period of the reservation. ex: P1M, P1Y or P3Y.""" + cost_with_no_reserved_instances: Optional[decimal.Decimal] = rest_field( + name="costWithNoReservedInstances", visibility=["read"] + ) + """The total amount of cost without reserved instances.""" + recommended_quantity: Optional[decimal.Decimal] = rest_field(name="recommendedQuantity", visibility=["read"]) + """Recommended quality for reserved instances.""" + total_cost_with_reserved_instances: Optional[decimal.Decimal] = rest_field( + name="totalCostWithReservedInstances", visibility=["read"] + ) + """The total amount of cost with reserved instances.""" + net_savings: Optional[decimal.Decimal] = rest_field(name="netSavings", visibility=["read"]) + """Total estimated savings with reserved instances.""" + first_usage_date: Optional[datetime.datetime] = rest_field( + name="firstUsageDate", visibility=["read"], format="rfc3339" + ) + """The usage date for looking back.""" + scope: str = rest_discriminator(name="scope", visibility=["read", "create", "update", "delete", "query"]) + """Shared or single recommendation. Required. Default value is None.""" + sku_properties: Optional[list["_models.SkuProperty"]] = rest_field(name="skuProperties", visibility=["read"]) + """List of sku properties.""" + last_usage_date: Optional[datetime.datetime] = rest_field( + name="lastUsageDate", visibility=["read"], format="rfc3339" + ) + """The last usage date used for looking back for computing the recommendation.""" + total_hours: Optional[int] = rest_field(name="totalHours", visibility=["read"]) + """The total hours for which the cost is covered.""" + + @overload + def __init__( + self, + *, + scope: str, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class LegacyManagementGroupScopeReservationRecommendationProperties( + LegacyReservationRecommendationProperties, discriminator="ManagementGroup" +): # pylint: disable=name-too-long + """The properties of the legacy reservation recommendation for management group scope. + + :ivar look_back_period: The number of days of usage to look back for recommendation. + :vartype look_back_period: str + :ivar instance_flexibility_ratio: The instance Flexibility Ratio. + :vartype instance_flexibility_ratio: float + :ivar instance_flexibility_group: The instance Flexibility Group. + :vartype instance_flexibility_group: str + :ivar normalized_size: The normalized Size. + :vartype normalized_size: str + :ivar recommended_quantity_normalized: The recommended Quantity Normalized. + :vartype recommended_quantity_normalized: float + :ivar meter_id: The meter id (GUID). + :vartype meter_id: str + :ivar resource_type: The azure resource type. + :vartype resource_type: str + :ivar term: Term period of the reservation. ex: P1M, P1Y or P3Y. + :vartype term: str + :ivar cost_with_no_reserved_instances: The total amount of cost without reserved instances. + :vartype cost_with_no_reserved_instances: ~decimal.Decimal + :ivar recommended_quantity: Recommended quality for reserved instances. + :vartype recommended_quantity: ~decimal.Decimal + :ivar total_cost_with_reserved_instances: The total amount of cost with reserved instances. + :vartype total_cost_with_reserved_instances: ~decimal.Decimal + :ivar net_savings: Total estimated savings with reserved instances. + :vartype net_savings: ~decimal.Decimal + :ivar first_usage_date: The usage date for looking back. + :vartype first_usage_date: ~datetime.datetime + :ivar sku_properties: List of sku properties. + :vartype sku_properties: list[~azure.mgmt.consumption.models.SkuProperty] + :ivar last_usage_date: The last usage date used for looking back for computing the + recommendation. + :vartype last_usage_date: ~datetime.datetime + :ivar total_hours: The total hours for which the cost is covered. + :vartype total_hours: int + :ivar management_group_id: Management group id associated with management group scoped + recommendation. Required. + :vartype management_group_id: str + :ivar tenant_id: The tenant ID associated with the management group. Required. + :vartype tenant_id: str + :ivar scope: Shared or single recommendation. Required. Default value is "ManagementGroup". + :vartype scope: str + """ + + management_group_id: str = rest_field(name="managementGroupId", visibility=["read"]) + """Management group id associated with management group scoped recommendation. Required.""" + tenant_id: str = rest_field(name="tenantId", visibility=["read"]) + """The tenant ID associated with the management group. Required.""" + scope: Literal["ManagementGroup"] = rest_discriminator(name="scope", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Shared or single recommendation. Required. Default value is \"ManagementGroup\".""" + + @overload + def __init__( + self, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.scope = "ManagementGroup" # type: ignore + + +class ReservationRecommendation(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """A reservation recommendation resource. You probably want to use the sub-classes and not this class directly. Known sub-classes are: @@ -1480,7 +1664,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class LegacyReservationRecommendation(ReservationRecommendation, discriminator="legacy"): +class LegacyReservationRecommendation( + ReservationRecommendation, discriminator="legacy" +): # pylint: disable=docstring-keyword-should-match-keyword-only """Legacy reservation recommendation. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -1534,114 +1720,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: self.kind = ReservationRecommendationKind.LEGACY # type: ignore -class LegacyReservationRecommendationProperties(_Model): # pylint: disable=name-too-long - """The properties of the reservation recommendation. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - LegacySharedScopeReservationRecommendationProperties, - LegacySingleScopeReservationRecommendationProperties - - :ivar look_back_period: The number of days of usage to look back for recommendation. - :vartype look_back_period: str - :ivar instance_flexibility_ratio: The instance Flexibility Ratio. - :vartype instance_flexibility_ratio: float - :ivar instance_flexibility_group: The instance Flexibility Group. - :vartype instance_flexibility_group: str - :ivar normalized_size: The normalized Size. - :vartype normalized_size: str - :ivar recommended_quantity_normalized: The recommended Quantity Normalized. - :vartype recommended_quantity_normalized: float - :ivar meter_id: The meter id (GUID). - :vartype meter_id: str - :ivar resource_type: The azure resource type. - :vartype resource_type: str - :ivar term: Term period of the reservation. ex: P1M, P1Y or P3Y. - :vartype term: str - :ivar cost_with_no_reserved_instances: The total amount of cost without reserved instances. - :vartype cost_with_no_reserved_instances: ~decimal.Decimal - :ivar recommended_quantity: Recommended quality for reserved instances. - :vartype recommended_quantity: ~decimal.Decimal - :ivar total_cost_with_reserved_instances: The total amount of cost with reserved instances. - :vartype total_cost_with_reserved_instances: ~decimal.Decimal - :ivar net_savings: Total estimated savings with reserved instances. - :vartype net_savings: ~decimal.Decimal - :ivar first_usage_date: The usage date for looking back. - :vartype first_usage_date: ~datetime.datetime - :ivar scope: Shared or single recommendation. Required. Default value is None. - :vartype scope: str - :ivar sku_properties: List of sku properties. - :vartype sku_properties: list[~azure.mgmt.consumption.models.SkuProperty] - :ivar last_usage_date: The last usage date used for looking back for computing the - recommendation. - :vartype last_usage_date: ~datetime.datetime - :ivar total_hours: The total hours for which the cost is covered. - :vartype total_hours: int - """ - - __mapping__: dict[str, _Model] = {} - look_back_period: Optional[str] = rest_field(name="lookBackPeriod", visibility=["read"]) - """The number of days of usage to look back for recommendation.""" - instance_flexibility_ratio: Optional[float] = rest_field(name="instanceFlexibilityRatio", visibility=["read"]) - """The instance Flexibility Ratio.""" - instance_flexibility_group: Optional[str] = rest_field(name="instanceFlexibilityGroup", visibility=["read"]) - """The instance Flexibility Group.""" - normalized_size: Optional[str] = rest_field(name="normalizedSize", visibility=["read"]) - """The normalized Size.""" - recommended_quantity_normalized: Optional[float] = rest_field( - name="recommendedQuantityNormalized", visibility=["read"] - ) - """The recommended Quantity Normalized.""" - meter_id: Optional[str] = rest_field(name="meterId", visibility=["read"]) - """The meter id (GUID).""" - resource_type: Optional[str] = rest_field(name="resourceType", visibility=["read"]) - """The azure resource type.""" - term: Optional[str] = rest_field(visibility=["read"]) - """Term period of the reservation. ex: P1M, P1Y or P3Y.""" - cost_with_no_reserved_instances: Optional[decimal.Decimal] = rest_field( - name="costWithNoReservedInstances", visibility=["read"] - ) - """The total amount of cost without reserved instances.""" - recommended_quantity: Optional[decimal.Decimal] = rest_field(name="recommendedQuantity", visibility=["read"]) - """Recommended quality for reserved instances.""" - total_cost_with_reserved_instances: Optional[decimal.Decimal] = rest_field( - name="totalCostWithReservedInstances", visibility=["read"] - ) - """The total amount of cost with reserved instances.""" - net_savings: Optional[decimal.Decimal] = rest_field(name="netSavings", visibility=["read"]) - """Total estimated savings with reserved instances.""" - first_usage_date: Optional[datetime.datetime] = rest_field( - name="firstUsageDate", visibility=["read"], format="rfc3339" - ) - """The usage date for looking back.""" - scope: str = rest_discriminator(name="scope", visibility=["read", "create", "update", "delete", "query"]) - """Shared or single recommendation. Required. Default value is None.""" - sku_properties: Optional[list["_models.SkuProperty"]] = rest_field(name="skuProperties", visibility=["read"]) - """List of sku properties.""" - last_usage_date: Optional[datetime.datetime] = rest_field( - name="lastUsageDate", visibility=["read"], format="rfc3339" - ) - """The last usage date used for looking back for computing the recommendation.""" - total_hours: Optional[int] = rest_field(name="totalHours", visibility=["read"]) - """The total hours for which the cost is covered.""" - - @overload - def __init__( - self, - *, - scope: str, - ) -> None: ... - - @overload - def __init__(self, mapping: Mapping[str, Any]) -> None: - """ - :param mapping: raw JSON to initialize the model. - :type mapping: Mapping[str, Any] - """ - - def __init__(self, *args: Any, **kwargs: Any) -> None: - super().__init__(*args, **kwargs) - - class LegacyReservationTransactionProperties(_Model): """The properties of a legacy reservation transaction. @@ -1877,7 +1955,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: self.scope = "Single" # type: ignore -class UsageDetail(Resource): +class UsageDetail(Resource): # pylint: disable=docstring-keyword-should-match-keyword-only """An usage detail resource. You probably want to use the sub-classes and not this class directly. Known sub-classes are: @@ -1929,7 +2007,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class LegacyUsageDetail(UsageDetail, discriminator="legacy"): +class LegacyUsageDetail( + UsageDetail, discriminator="legacy" +): # pylint: disable=docstring-keyword-should-match-keyword-only """Legacy usage detail. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -2374,7 +2454,7 @@ class LotProperties(_Model): """Amount consumed from the commitment.""" -class LotSummary(ProxyResource): +class LotSummary(ProxyResource): # pylint: disable=docstring-keyword-should-match-keyword-only """A lot summary resource. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -2460,7 +2540,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class ManagementGroupAggregatedCostProperties(_Model): +class ManagementGroupAggregatedCostProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The properties of the Management Group Aggregated Cost. :ivar billing_period_id: The id of the billing period resource that the aggregated cost belongs @@ -2537,7 +2617,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ManagementGroupAggregatedCostResult(Resource): +class ManagementGroupAggregatedCostResult(Resource): # pylint: disable=docstring-keyword-should-match-keyword-only """A management group aggregated cost resource. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -2617,7 +2697,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class Marketplace(Resource): +class Marketplace(Resource): # pylint: disable=docstring-keyword-should-match-keyword-only """A marketplace resource. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -2903,7 +2983,9 @@ class MeterDetailsResponse(_Model): """The service family.""" -class ModernChargeSummary(ChargeSummary, discriminator="modern"): +class ModernChargeSummary( + ChargeSummary, discriminator="modern" +): # pylint: disable=docstring-keyword-should-match-keyword-only """Modern charge summary. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -3042,64 +3124,13 @@ class ModernChargeSummaryProperties(_Model): """Subscription guid.""" -class ModernReservationRecommendation(ReservationRecommendation, discriminator="modern"): - """Modern reservation recommendation. - - :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or - "Microsoft.Storage/storageAccounts". - :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy - information. - :vartype system_data: ~azure.mgmt.consumption.models.SystemData - :ivar location: Resource location. - :vartype location: str - :ivar sku: Resource sku. - :vartype sku: str - :ivar etag: The etag for the resource. - :vartype etag: str - :ivar tags: Resource tags. - :vartype tags: dict[str, str] - :ivar properties: Properties for modern reservation recommendation. Required. - :vartype properties: ~azure.mgmt.consumption.models.ModernReservationRecommendationProperties - :ivar kind: Specifies the kind of reservation recommendation. Required. MODERN. - :vartype kind: str or ~azure.mgmt.consumption.models.MODERN - """ - - properties: "_models.ModernReservationRecommendationProperties" = rest_field( - visibility=["read", "create", "update", "delete", "query"] - ) - """Properties for modern reservation recommendation. Required.""" - kind: Literal[ReservationRecommendationKind.MODERN] = rest_discriminator(name="kind", visibility=["read", "create", "update", "delete", "query"]) # type: ignore - """Specifies the kind of reservation recommendation. Required. MODERN.""" - - @overload - def __init__( - self, - *, - properties: "_models.ModernReservationRecommendationProperties", - ) -> None: ... - - @overload - def __init__(self, mapping: Mapping[str, Any]) -> None: - """ - :param mapping: raw JSON to initialize the model. - :type mapping: Mapping[str, Any] - """ - - def __init__(self, *args: Any, **kwargs: Any) -> None: - super().__init__(*args, **kwargs) - self.kind = ReservationRecommendationKind.MODERN # type: ignore - - -class ModernReservationRecommendationProperties(_Model): # pylint: disable=name-too-long +class ModernReservationRecommendationProperties( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """The properties of the reservation recommendation. You probably want to use the sub-classes and not this class directly. Known sub-classes are: + ModernManagementGroupScopeReservationRecommendationProperties, ModernSharedScopeReservationRecommendationProperties, ModernSingleScopeReservationRecommendationProperties @@ -3212,7 +3243,138 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ModernReservationTransaction(Resource): +class ModernManagementGroupScopeReservationRecommendationProperties( + ModernReservationRecommendationProperties, discriminator="ManagementGroup" +): # pylint: disable=name-too-long + """The properties of the modern reservation recommendation for management group scope. + + :ivar location: Resource Location. + :vartype location: str + :ivar look_back_period: The number of days of usage to look back for recommendation. + :vartype look_back_period: int + :ivar instance_flexibility_ratio: The instance Flexibility Ratio. + :vartype instance_flexibility_ratio: float + :ivar instance_flexibility_group: The instance Flexibility Group. + :vartype instance_flexibility_group: str + :ivar normalized_size: The normalized Size. + :vartype normalized_size: str + :ivar recommended_quantity_normalized: The recommended Quantity Normalized. + :vartype recommended_quantity_normalized: float + :ivar meter_id: The meter id (GUID). + :vartype meter_id: str + :ivar term: Term period of the reservation. ex: P1M, P1Y or P3Y. + :vartype term: str + :ivar cost_with_no_reserved_instances: The total amount of cost without reserved instances. + :vartype cost_with_no_reserved_instances: ~azure.mgmt.consumption.models.Amount + :ivar recommended_quantity: Recommended quality for reserved instances. + :vartype recommended_quantity: ~decimal.Decimal + :ivar resource_type: Resource type. + :vartype resource_type: str + :ivar total_cost_with_reserved_instances: The total amount of cost with reserved instances. + :vartype total_cost_with_reserved_instances: ~azure.mgmt.consumption.models.Amount + :ivar net_savings: Total estimated savings with reserved instances. + :vartype net_savings: ~azure.mgmt.consumption.models.Amount + :ivar first_usage_date: The usage date for looking back. + :vartype first_usage_date: ~datetime.datetime + :ivar sku_properties: List of sku properties. + :vartype sku_properties: list[~azure.mgmt.consumption.models.SkuProperty] + :ivar sku_name: This is the ARM Sku name. + :vartype sku_name: str + :ivar last_usage_date: The last usage date used for looking back for computing the + recommendation. + :vartype last_usage_date: ~datetime.datetime + :ivar total_hours: The total hours for which the cost is covered. + :vartype total_hours: int + :ivar management_group_id: Management group id associated with management group scoped + recommendation. Required. + :vartype management_group_id: str + :ivar tenant_id: The tenant ID associated with the management group. Required. + :vartype tenant_id: str + :ivar scope: Shared or single recommendation. Required. Default value is "ManagementGroup". + :vartype scope: str + """ + + management_group_id: str = rest_field(name="managementGroupId", visibility=["read"]) + """Management group id associated with management group scoped recommendation. Required.""" + tenant_id: str = rest_field(name="tenantId", visibility=["read"]) + """The tenant ID associated with the management group. Required.""" + scope: Literal["ManagementGroup"] = rest_discriminator(name="scope", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Shared or single recommendation. Required. Default value is \"ManagementGroup\".""" + + @overload + def __init__( + self, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.scope = "ManagementGroup" # type: ignore + + +class ModernReservationRecommendation( + ReservationRecommendation, discriminator="modern" +): # pylint: disable=docstring-keyword-should-match-keyword-only + """Modern reservation recommendation. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype system_data: ~azure.mgmt.consumption.models.SystemData + :ivar location: Resource location. + :vartype location: str + :ivar sku: Resource sku. + :vartype sku: str + :ivar etag: The etag for the resource. + :vartype etag: str + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + :ivar properties: Properties for modern reservation recommendation. Required. + :vartype properties: ~azure.mgmt.consumption.models.ModernReservationRecommendationProperties + :ivar kind: Specifies the kind of reservation recommendation. Required. MODERN. + :vartype kind: str or ~azure.mgmt.consumption.models.MODERN + """ + + properties: "_models.ModernReservationRecommendationProperties" = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Properties for modern reservation recommendation. Required.""" + kind: Literal[ReservationRecommendationKind.MODERN] = rest_discriminator(name="kind", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Specifies the kind of reservation recommendation. Required. MODERN.""" + + @overload + def __init__( + self, + *, + properties: "_models.ModernReservationRecommendationProperties", + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.kind = ReservationRecommendationKind.MODERN # type: ignore + + +class ModernReservationTransaction(Resource): # pylint: disable=docstring-keyword-should-match-keyword-only """Modern Reservation transaction resource. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -3528,7 +3690,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: self.scope = "Single" # type: ignore -class ModernUsageDetail(UsageDetail, discriminator="modern"): +class ModernUsageDetail( + UsageDetail, discriminator="modern" +): # pylint: disable=docstring-keyword-should-match-keyword-only """Modern usage detail. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -4059,7 +4223,7 @@ class ModernUsageDetailProperties(_Model): """Name for Cost Allocation Rule.""" -class Notification(_Model): +class Notification(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The notification associated with a budget. :ivar enabled: The notification is enabled or not. Required. @@ -4154,7 +4318,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class Operation(_Model): +class Operation(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """A Consumption REST API operation. :ivar id: Operation Id. @@ -4215,7 +4379,7 @@ class OperationDisplay(_Model): """Description of the operation.""" -class OperationStatus(_Model): +class OperationStatus(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The status of the long running operation. :ivar status: The status of the long running operation. Known values are: "Running", @@ -4357,7 +4521,7 @@ class PriceSheetProperties(_Model): """SavingsPlan Details.""" -class PriceSheetResult(ProxyResource): +class PriceSheetResult(ProxyResource): # pylint: disable=docstring-keyword-should-match-keyword-only """An pricesheet resource. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -4444,7 +4608,7 @@ class Reseller(_Model): """The reseller property description.""" -class ReservationDetail(Resource): +class ReservationDetail(Resource): # pylint: disable=docstring-keyword-should-match-keyword-only """reservation detail resource. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -4592,7 +4756,9 @@ class ReservationDetailProperties(_Model): """The reservation kind.""" -class ReservationRecommendationDetailsCalculatedSavingsProperties(_Model): # pylint: disable=name-too-long +class ReservationRecommendationDetailsCalculatedSavingsProperties( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Details of estimated savings. The costs and savings are estimated for the term. :ivar on_demand_cost: The cost without reservation. Includes hardware and software cost. @@ -4652,7 +4818,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ReservationRecommendationDetailsModel(Resource): +class ReservationRecommendationDetailsModel(Resource): # pylint: disable=docstring-keyword-should-match-keyword-only """Reservation recommendation details. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -4691,7 +4857,17 @@ class ReservationRecommendationDetailsModel(Resource): tags: Optional[dict[str, str]] = rest_field(visibility=["read"]) """Resource tags.""" - __flattened_items = ["currency", "resource", "resource_group", "savings", "scope", "usage"] + __flattened_items = [ + "currency", + "resource", + "resource_group", + "savings", + "scope", + "usage", + "management_group_id", + "tenant_id", + "projected_usage", + ] @overload def __init__( @@ -4731,6 +4907,17 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) +class ReservationRecommendationDetailsProjectedUsageProperties(_Model): # pylint: disable=name-too-long + """Details about projected usage data that has been used for computing the recommendation. + + :ivar total_retail_usage_in_c_us: Total projected retail usage in commitment units (CUs). + :vartype total_retail_usage_in_c_us: float + """ + + total_retail_usage_in_c_us: Optional[float] = rest_field(name="totalRetailUsageInCUs", visibility=["read"]) + """Total projected retail usage in commitment units (CUs).""" + + class ReservationRecommendationDetailsProperties(_Model): # pylint: disable=name-too-long """The properties of the reservation recommendation. @@ -4748,6 +4935,15 @@ class ReservationRecommendationDetailsProperties(_Model): # pylint: disable=nam :vartype scope: str :ivar usage: Historical usage details used to calculate the estimated savings. :vartype usage: ~azure.mgmt.consumption.models.ReservationRecommendationDetailsUsageProperties + :ivar management_group_id: Management group id associated with management group scoped + recommendation. + :vartype management_group_id: str + :ivar tenant_id: The tenant ID associated with the management group. Populated only when + managementGroupId is populated. + :vartype tenant_id: str + :ivar projected_usage: Projected usage details used for generating the recommendation. + :vartype projected_usage: + ~azure.mgmt.consumption.models.ReservationRecommendationDetailsProjectedUsageProperties """ currency: Optional[str] = rest_field(visibility=["read"]) @@ -4762,6 +4958,15 @@ class ReservationRecommendationDetailsProperties(_Model): # pylint: disable=nam """Scope of the reservation, ex: Single or Shared.""" usage: Optional["_models.ReservationRecommendationDetailsUsageProperties"] = rest_field(visibility=["read"]) """Historical usage details used to calculate the estimated savings.""" + management_group_id: Optional[str] = rest_field(name="managementGroupId", visibility=["read"]) + """Management group id associated with management group scoped recommendation.""" + tenant_id: Optional[str] = rest_field(name="tenantId", visibility=["read"]) + """The tenant ID associated with the management group. Populated only when managementGroupId is + populated.""" + projected_usage: Optional["_models.ReservationRecommendationDetailsProjectedUsageProperties"] = rest_field( + name="projectedUsage", visibility=["read"] + ) + """Projected usage details used for generating the recommendation.""" class ReservationRecommendationDetailsResourceProperties(_Model): # pylint: disable=name-too-long @@ -4801,7 +5006,9 @@ class ReservationRecommendationDetailsResourceProperties(_Model): # pylint: dis """The azure resource type.""" -class ReservationRecommendationDetailsSavingsProperties(_Model): # pylint: disable=name-too-long +class ReservationRecommendationDetailsSavingsProperties( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Details of the estimated savings. :ivar calculated_savings: List of calculated savings. @@ -4886,7 +5093,7 @@ class ReservationRecommendationDetailsUsageProperties(_Model): # pylint: disabl """The grain of the values represented in the usage data ex: hourly.""" -class ReservationSummary(Resource): +class ReservationSummary(Resource): # pylint: disable=docstring-keyword-should-match-keyword-only """reservation summary resource. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -5069,7 +5276,7 @@ class ReservationSummaryProperties(_Model): """This is the utilized percentage for the reservation Id.""" -class ReservationTransaction(Resource): +class ReservationTransaction(Resource): # pylint: disable=docstring-keyword-should-match-keyword-only """Reservation transaction resource. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -5192,7 +5399,7 @@ class SkuProperty(_Model): """The value of sku property.""" -class SystemData(_Model): +class SystemData(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Metadata pertaining to creation and last modification of the resource. :ivar created_by: The identity that created the resource. @@ -5259,7 +5466,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class Tag(_Model): +class Tag(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The tag resource. :ivar key: Tag key. @@ -5292,7 +5499,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class TagProperties(_Model): +class TagProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The properties of the tag. :ivar tags: A list of Tag. @@ -5328,7 +5535,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class TagsResult(ProxyResource): +class TagsResult(ProxyResource): # pylint: disable=docstring-keyword-should-match-keyword-only """A resource listing all tags. :ivar id: Fully qualified resource ID for the resource. Ex - diff --git a/sdk/consumption/azure-mgmt-consumption/azure/mgmt/consumption/models/_patch.py b/sdk/consumption/azure-mgmt-consumption/azure/mgmt/consumption/models/_patch.py index 87676c65a8f0..ea765788358a 100644 --- a/sdk/consumption/azure-mgmt-consumption/azure/mgmt/consumption/models/_patch.py +++ b/sdk/consumption/azure-mgmt-consumption/azure/mgmt/consumption/models/_patch.py @@ -8,7 +8,6 @@ Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize """ - __all__: list[str] = [] # Add all objects you want publicly available to users at this package level diff --git a/sdk/consumption/azure-mgmt-consumption/azure/mgmt/consumption/operations/_operations.py b/sdk/consumption/azure-mgmt-consumption/azure/mgmt/consumption/operations/_operations.py index e42ff826707e..2b1aa1d96740 100644 --- a/sdk/consumption/azure-mgmt-consumption/azure/mgmt/consumption/operations/_operations.py +++ b/sdk/consumption/azure-mgmt-consumption/azure/mgmt/consumption/operations/_operations.py @@ -37,6 +37,7 @@ from .._configuration import ConsumptionManagementClientConfiguration from .._utils.model_base import SdkJSONEncoder, _deserialize, _failsafe_deserialize from .._utils.serialization import Deserializer, Serializer +from .._validation import api_version_validation T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, dict[str, Any]], Any]] @@ -50,7 +51,7 @@ def build_operations_list_request(**kwargs: Any) -> HttpRequest: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-08-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -77,7 +78,7 @@ def build_price_sheet_get_by_billing_period_request( # pylint: disable=name-too _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-08-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -115,7 +116,7 @@ def build_price_sheet_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-08-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -147,7 +148,7 @@ def build_price_sheet_download_by_billing_account_period_request( # pylint: dis _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-08-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -172,7 +173,7 @@ def build_budgets_get_request(scope: str, budget_name: str, **kwargs: Any) -> Ht _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-08-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -198,7 +199,7 @@ def build_budgets_create_or_update_request(scope: str, budget_name: str, **kwarg _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-08-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -224,7 +225,7 @@ def build_budgets_create_or_update_request(scope: str, budget_name: str, **kwarg def build_budgets_delete_request(scope: str, budget_name: str, **kwargs: Any) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-08-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-06-01")) # Construct URL _url = "/{scope}/providers/Microsoft.Consumption/budgets/{budgetName}" path_format_arguments = { @@ -244,7 +245,7 @@ def build_budgets_list_request(scope: str, **kwargs: Any) -> HttpRequest: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-08-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -268,7 +269,7 @@ def build_credits_get_request(billing_account_id: str, billing_profile_id: str, _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-08-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -302,7 +303,7 @@ def build_usage_details_list_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-08-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -343,7 +344,7 @@ def build_marketplaces_list_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-08-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -373,7 +374,7 @@ def build_tags_get_request(scope: str, **kwargs: Any) -> HttpRequest: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-08-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -405,7 +406,7 @@ def build_charges_list_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-08-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -439,7 +440,7 @@ def build_balances_get_by_billing_account_request( # pylint: disable=name-too-l _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-08-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -465,7 +466,7 @@ def build_balances_get_for_billing_period_by_billing_account_request( # pylint: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-08-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -492,7 +493,7 @@ def build_reservations_summaries_list_by_reservation_order_request( # pylint: d _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-08-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -526,7 +527,7 @@ def build_reservations_summaries_list_by_reservation_order_and_reservation_reque _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-08-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -564,7 +565,7 @@ def build_reservations_summaries_list_request( # pylint: disable=name-too-long _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-08-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -601,7 +602,7 @@ def build_reservations_details_list_by_reservation_order_request( # pylint: dis _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-08-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -628,7 +629,7 @@ def build_reservations_details_list_by_reservation_order_and_reservation_request _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-08-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -663,7 +664,7 @@ def build_reservations_details_list_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-08-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -699,7 +700,7 @@ def build_reservation_recommendations_list_request( # pylint: disable=name-too- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-08-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -730,12 +731,13 @@ def build_reservation_recommendation_details_get_request( # pylint: disable=nam look_back_period: Union[str, _models.LookBackPeriod], product: str, filter: Optional[str] = None, + management_group_id: Optional[str] = None, **kwargs: Any ) -> HttpRequest: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-08-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -755,6 +757,8 @@ def build_reservation_recommendation_details_get_request( # pylint: disable=nam _params["product"] = _SERIALIZER.query("product", product, "str") if filter is not None: _params["$filter"] = _SERIALIZER.query("filter", filter, "str") + if management_group_id is not None: + _params["managementGroupId"] = _SERIALIZER.query("management_group_id", management_group_id, "str") # Construct headers _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") @@ -773,7 +777,7 @@ def build_reservation_transactions_list_request( # pylint: disable=name-too-lon _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-08-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -807,7 +811,7 @@ def build_reservation_transactions_list_by_billing_profile_request( # pylint: d _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-08-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -836,7 +840,7 @@ def build_aggregated_cost_get_by_management_group_request( # pylint: disable=na _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-08-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -864,7 +868,7 @@ def build_aggregated_cost_get_for_billing_period_by_management_group_request( # _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-08-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -891,7 +895,7 @@ def build_events_list_by_billing_profile_request( # pylint: disable=name-too-lo _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-08-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -920,7 +924,7 @@ def build_events_list_by_billing_account_request( # pylint: disable=name-too-lo _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-08-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -948,7 +952,7 @@ def build_lots_list_by_billing_profile_request( # pylint: disable=name-too-long _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-08-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -975,7 +979,7 @@ def build_lots_list_by_billing_account_request( # pylint: disable=name-too-long _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-08-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1003,7 +1007,7 @@ def build_lots_list_by_customer_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-08-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1026,7 +1030,7 @@ def build_lots_list_by_customer_request( return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) -class Operations: +class Operations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -1138,7 +1142,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class PriceSheetOperations: +class PriceSheetOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -1451,7 +1455,7 @@ def get_long_running_output(pipeline_response): ) -class BudgetsOperations: +class BudgetsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -1861,7 +1865,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class CreditsOperations: +class CreditsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -1951,7 +1955,7 @@ def get(self, billing_account_id: str, billing_profile_id: str, **kwargs: Any) - return deserialized # type: ignore -class UsageDetailsOperations: +class UsageDetailsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -2111,7 +2115,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class MarketplacesOperations: +class MarketplacesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -2251,7 +2255,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class TagsOperations: +class TagsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -2338,7 +2342,7 @@ def get(self, scope: str, **kwargs: Any) -> Optional[_models.TagsResult]: return deserialized # type: ignore -class ChargesOperations: +class ChargesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -2450,7 +2454,7 @@ def list( return deserialized # type: ignore -class BalancesOperations: +class BalancesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -2607,7 +2611,7 @@ def get_for_billing_period_by_billing_account( # pylint: disable=name-too-long return deserialized # type: ignore -class ReservationsSummariesOperations: +class ReservationsSummariesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -2986,7 +2990,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class ReservationsDetailsOperations: +class ReservationsDetailsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -3353,7 +3357,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class ReservationRecommendationsOperations: +class ReservationRecommendationsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -3480,7 +3484,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class ReservationRecommendationDetailsOperations: # pylint: disable=name-too-long +class ReservationRecommendationDetailsOperations: # pylint: disable=docstring-missing-param,name-too-long """ .. warning:: **DO NOT** instantiate this class directly. @@ -3500,6 +3504,10 @@ def __init__(self, *args, **kwargs) -> None: self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") @distributed_trace + @api_version_validation( + params_added_on={"2026-06-01": ["management_group_id"]}, + api_versions_list=["2024-08-01", "2026-06-01"], + ) def get( self, resource_scope: str, @@ -3510,6 +3518,7 @@ def get( look_back_period: Union[str, _models.LookBackPeriod], product: str, filter: Optional[str] = None, + management_group_id: Optional[str] = None, **kwargs: Any ) -> Optional[_models.ReservationRecommendationDetailsModel]: """Details of a reservation recommendation for what-if analysis of reserved instances. @@ -3521,7 +3530,8 @@ def get( '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile scope. Required. :type resource_scope: str - :keyword scope: Scope of the reservation. Known values are: "Single" and "Shared". Required. + :keyword scope: Scope of the reservation. Known values are: "Single", "Shared", and + "ManagementGroup". Required. :paramtype scope: str or ~azure.mgmt.consumption.models.Scope :keyword region: Used to select the region the recommendation should be generated for. Required. @@ -3540,6 +3550,9 @@ def get( properties/subscriptionId can be specified for billing account and billing profile paths. Default value is None. :paramtype filter: str + :keyword management_group_id: Specify the management group ID. Required when recommendation + scope is 'ManagementGroup'. Default value is None. + :paramtype management_group_id: str :return: ReservationRecommendationDetailsModel or None. The ReservationRecommendationDetailsModel is compatible with MutableMapping :rtype: ~azure.mgmt.consumption.models.ReservationRecommendationDetailsModel or None @@ -3566,6 +3579,7 @@ def get( look_back_period=look_back_period, product=product, filter=filter, + management_group_id=management_group_id, api_version=self._config.api_version, headers=_headers, params=_params, @@ -3609,7 +3623,7 @@ def get( return deserialized # type: ignore -class ReservationTransactionsOperations: +class ReservationTransactionsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -3868,7 +3882,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class AggregatedCostOperations: +class AggregatedCostOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -4033,7 +4047,7 @@ def get_for_billing_period_by_management_group( # pylint: disable=name-too-long return deserialized # type: ignore -class EventsOperations: +class EventsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -4264,7 +4278,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class LotsOperations: +class LotsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. diff --git a/sdk/consumption/azure-mgmt-consumption/azure/mgmt/consumption/operations/_patch.py b/sdk/consumption/azure-mgmt-consumption/azure/mgmt/consumption/operations/_patch.py index 87676c65a8f0..ea765788358a 100644 --- a/sdk/consumption/azure-mgmt-consumption/azure/mgmt/consumption/operations/_patch.py +++ b/sdk/consumption/azure-mgmt-consumption/azure/mgmt/consumption/operations/_patch.py @@ -8,7 +8,6 @@ Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize """ - __all__: list[str] = [] # Add all objects you want publicly available to users at this package level diff --git a/sdk/consumption/azure-mgmt-consumption/azure/mgmt/consumption/types.py b/sdk/consumption/azure-mgmt-consumption/azure/mgmt/consumption/types.py index 57bf41dac8f4..e3b8377f7908 100644 --- a/sdk/consumption/azure-mgmt-consumption/azure/mgmt/consumption/types.py +++ b/sdk/consumption/azure-mgmt-consumption/azure/mgmt/consumption/types.py @@ -33,9 +33,9 @@ class Resource(TypedDict, total=False): :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy information. - :vartype system_data: "SystemData" + :vartype systemData: "SystemData" """ id: str @@ -61,9 +61,9 @@ class ExtensionResource(Resource): :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy information. - :vartype system_data: "SystemData" + :vartype systemData: "SystemData" """ @@ -78,14 +78,14 @@ class Budget(ExtensionResource): :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy information. - :vartype system_data: "SystemData" + :vartype systemData: "SystemData" :ivar properties: The properties of the budget. :vartype properties: "BudgetProperties" - :ivar e_tag: eTag of the resource. To handle concurrent update scenario, this field will be - used to determine whether the user is updating the latest version or not. - :vartype e_tag: str + :ivar eTag: eTag of the resource. To handle concurrent update scenario, this field will be used + to determine whether the user is updating the latest version or not. + :vartype eTag: str """ properties: "BudgetProperties" @@ -102,8 +102,8 @@ class BudgetComparisonExpression(TypedDict, total=False): :vartype name: str :ivar operator: The operator to use for comparison. Required. "In" :vartype operator: Union[str, "BudgetOperatorType"] - :ivar values_property: Array of values to use for comparison. Required. - :vartype values_property: list[str] + :ivar values: Array of values to use for comparison. Required. + :vartype values: list[str] """ name: Required[str] @@ -125,8 +125,8 @@ class BudgetComparisonExpression(TypedDict, total=False): ) BudgetFilter.__doc__ = """May be used to filter budgets by resource group, resource, or meter. -:ivar and_property: The logical "AND" expression. Must have at least 2 items. -:vartype and_property: list["BudgetFilterProperties"] +:ivar and: The logical "AND" expression. Must have at least 2 items. +:vartype and: list["BudgetFilterProperties"] :ivar dimensions: Has comparison expression for a dimension. :vartype dimensions: "BudgetComparisonExpression" :ivar tags: Has comparison expression for a tag. @@ -157,25 +157,25 @@ class BudgetProperties(TypedDict, total=False): :vartype category: Union[str, "CategoryType"] :ivar amount: The total amount of cost to track with the budget. Required. :vartype amount: float - :ivar time_grain: The time covered by a budget. Tracking of the amount will be reset based on + :ivar timeGrain: The time covered by a budget. Tracking of the amount will be reset based on the time grain. BillingMonth, BillingQuarter, and BillingAnnual are only supported by WD customers. Required. Known values are: "Monthly", "Quarterly", "Annually", "BillingMonth", "BillingQuarter", and "BillingAnnual". - :vartype time_grain: Union[str, "TimeGrainType"] - :ivar time_period: Has start and end date of the budget. The start date must be first of the + :vartype timeGrain: Union[str, "TimeGrainType"] + :ivar timePeriod: Has start and end date of the budget. The start date must be first of the month and should be less than the end date. Budget start date must be on or after June 1, 2017. Future start date should not be more than twelve months. Past start date should be selected within the timegrain period. There are no restrictions on the end date. Required. - :vartype time_period: "BudgetTimePeriod" + :vartype timePeriod: "BudgetTimePeriod" :ivar filter: May be used to filter budgets by user-specified dimensions and/or tags. :vartype filter: "BudgetFilter" - :ivar current_spend: The current amount of cost which is being tracked for a budget. - :vartype current_spend: "CurrentSpend" + :ivar currentSpend: The current amount of cost which is being tracked for a budget. + :vartype currentSpend: "CurrentSpend" :ivar notifications: Dictionary of notifications associated with the budget. Budget can have up to five notifications. :vartype notifications: dict[str, "Notification"] - :ivar forecast_spend: The forecasted cost which is being tracked for a budget. - :vartype forecast_spend: "ForecastSpend" + :ivar forecastSpend: The forecasted cost which is being tracked for a budget. + :vartype forecastSpend: "ForecastSpend" """ category: Required[Union[str, "CategoryType"]] @@ -206,11 +206,11 @@ class BudgetProperties(TypedDict, total=False): class BudgetTimePeriod(TypedDict, total=False): """The start and end date for a budget. - :ivar start_date: The start date for the budget. Required. - :vartype start_date: str - :ivar end_date: The end date for the budget. If not provided, we default this to 10 years from + :ivar startDate: The start date for the budget. Required. + :vartype startDate: str + :ivar endDate: The end date for the budget. If not provided, we default this to 10 years from the start date. - :vartype end_date: str + :vartype endDate: str """ startDate: Required[str] @@ -262,20 +262,20 @@ class Notification(TypedDict, total=False): :ivar threshold: Threshold value associated with a notification. Notification is sent when the cost exceeded the threshold. It is always percent and has to be between 0 and 1000. Required. :vartype threshold: float - :ivar contact_emails: Email addresses to send the budget notification to when the threshold is + :ivar contactEmails: Email addresses to send the budget notification to when the threshold is exceeded. Must have at least one contact email or contact group specified at the Subscription or Resource Group scopes. All other scopes must have at least one contact email specified. Required. - :vartype contact_emails: list[str] - :ivar contact_roles: Contact roles to send the budget notification to when the threshold is + :vartype contactEmails: list[str] + :ivar contactRoles: Contact roles to send the budget notification to when the threshold is exceeded. - :vartype contact_roles: list[str] - :ivar contact_groups: Action groups to send the budget notification to when the threshold is + :vartype contactRoles: list[str] + :ivar contactGroups: Action groups to send the budget notification to when the threshold is exceeded. Must be provided as a fully qualified Azure resource id. Only supported at Subscription or Resource Group scopes. - :vartype contact_groups: list[str] - :ivar threshold_type: The type of threshold. Known values are: "Actual" and "Forecasted". - :vartype threshold_type: Union[str, "ThresholdType"] + :vartype contactGroups: list[str] + :ivar thresholdType: The type of threshold. Known values are: "Actual" and "Forecasted". + :vartype thresholdType: Union[str, "ThresholdType"] :ivar locale: Language in which the recipient will receive the notification. Known values are: "en-us", "ja-jp", "zh-cn", "de-de", "es-es", "fr-fr", "it-it", "ko-kr", "pt-br", "ru-ru", "zh-tw", "cs-cz", "pl-pl", "tr-tr", "da-dk", "en-gb", "hu-hu", "nb-no", "nl-nl", "pt-pt", and @@ -313,20 +313,20 @@ class Notification(TypedDict, total=False): class SystemData(TypedDict, total=False): """Metadata pertaining to creation and last modification of the resource. - :ivar created_by: The identity that created the resource. - :vartype created_by: str - :ivar created_by_type: The type of identity that created the resource. Known values are: - "User", "Application", "ManagedIdentity", and "Key". - :vartype created_by_type: Union[str, "CreatedByType"] - :ivar created_at: The timestamp of resource creation (UTC). - :vartype created_at: str - :ivar last_modified_by: The identity that last modified the resource. - :vartype last_modified_by: str - :ivar last_modified_by_type: The type of identity that last modified the resource. Known values + :ivar createdBy: The identity that created the resource. + :vartype createdBy: str + :ivar createdByType: The type of identity that created the resource. Known values are: "User", + "Application", "ManagedIdentity", and "Key". + :vartype createdByType: Union[str, "CreatedByType"] + :ivar createdAt: The timestamp of resource creation (UTC). + :vartype createdAt: str + :ivar lastModifiedBy: The identity that last modified the resource. + :vartype lastModifiedBy: str + :ivar lastModifiedByType: The type of identity that last modified the resource. Known values are: "User", "Application", "ManagedIdentity", and "Key". - :vartype last_modified_by_type: Union[str, "CreatedByType"] - :ivar last_modified_at: The timestamp of resource last modification (UTC). - :vartype last_modified_at: str + :vartype lastModifiedByType: Union[str, "CreatedByType"] + :ivar lastModifiedAt: The timestamp of resource last modification (UTC). + :vartype lastModifiedAt: str """ createdBy: str diff --git a/sdk/consumption/azure-mgmt-consumption/generated_samples/aggregated_cost_by_management_group.py b/sdk/consumption/azure-mgmt-consumption/generated_samples/aggregated_cost_by_management_group.py index f54bd232555f..3107c1d24977 100644 --- a/sdk/consumption/azure-mgmt-consumption/generated_samples/aggregated_cost_by_management_group.py +++ b/sdk/consumption/azure-mgmt-consumption/generated_samples/aggregated_cost_by_management_group.py @@ -36,6 +36,6 @@ def main(): print(response) -# x-ms-original-file: 2024-08-01/AggregatedCostByManagementGroup.json +# x-ms-original-file: 2026-06-01/AggregatedCostByManagementGroup.json if __name__ == "__main__": main() diff --git a/sdk/consumption/azure-mgmt-consumption/generated_samples/aggregated_cost_by_management_group_filter_by_date.py b/sdk/consumption/azure-mgmt-consumption/generated_samples/aggregated_cost_by_management_group_filter_by_date.py index f03b3bc3c90c..11eeb9311b32 100644 --- a/sdk/consumption/azure-mgmt-consumption/generated_samples/aggregated_cost_by_management_group_filter_by_date.py +++ b/sdk/consumption/azure-mgmt-consumption/generated_samples/aggregated_cost_by_management_group_filter_by_date.py @@ -36,6 +36,6 @@ def main(): print(response) -# x-ms-original-file: 2024-08-01/AggregatedCostByManagementGroupFilterByDate.json +# x-ms-original-file: 2026-06-01/AggregatedCostByManagementGroupFilterByDate.json if __name__ == "__main__": main() diff --git a/sdk/consumption/azure-mgmt-consumption/generated_samples/aggregated_cost_for_billing_period_by_management_group.py b/sdk/consumption/azure-mgmt-consumption/generated_samples/aggregated_cost_for_billing_period_by_management_group.py index 0248876a5a6d..4f2d775ef82a 100644 --- a/sdk/consumption/azure-mgmt-consumption/generated_samples/aggregated_cost_for_billing_period_by_management_group.py +++ b/sdk/consumption/azure-mgmt-consumption/generated_samples/aggregated_cost_for_billing_period_by_management_group.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2024-08-01/AggregatedCostForBillingPeriodByManagementGroup.json +# x-ms-original-file: 2026-06-01/AggregatedCostForBillingPeriodByManagementGroup.json if __name__ == "__main__": main() diff --git a/sdk/consumption/azure-mgmt-consumption/generated_samples/balances_by_billing_account.py b/sdk/consumption/azure-mgmt-consumption/generated_samples/balances_by_billing_account.py index 1c581b7061d8..4d3d4a31f4a7 100644 --- a/sdk/consumption/azure-mgmt-consumption/generated_samples/balances_by_billing_account.py +++ b/sdk/consumption/azure-mgmt-consumption/generated_samples/balances_by_billing_account.py @@ -36,6 +36,6 @@ def main(): print(response) -# x-ms-original-file: 2024-08-01/BalancesByBillingAccount.json +# x-ms-original-file: 2026-06-01/BalancesByBillingAccount.json if __name__ == "__main__": main() diff --git a/sdk/consumption/azure-mgmt-consumption/generated_samples/balances_by_billing_account_for_billing_period.py b/sdk/consumption/azure-mgmt-consumption/generated_samples/balances_by_billing_account_for_billing_period.py index 18af623e9d36..97778b413a04 100644 --- a/sdk/consumption/azure-mgmt-consumption/generated_samples/balances_by_billing_account_for_billing_period.py +++ b/sdk/consumption/azure-mgmt-consumption/generated_samples/balances_by_billing_account_for_billing_period.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2024-08-01/BalancesByBillingAccountForBillingPeriod.json +# x-ms-original-file: 2026-06-01/BalancesByBillingAccountForBillingPeriod.json if __name__ == "__main__": main() diff --git a/sdk/consumption/azure-mgmt-consumption/generated_samples/budget.py b/sdk/consumption/azure-mgmt-consumption/generated_samples/budget.py index 600c512cdb32..3a3e35c7ab45 100644 --- a/sdk/consumption/azure-mgmt-consumption/generated_samples/budget.py +++ b/sdk/consumption/azure-mgmt-consumption/generated_samples/budget.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2024-08-01/Budget.json +# x-ms-original-file: 2026-06-01/Budget.json if __name__ == "__main__": main() diff --git a/sdk/consumption/azure-mgmt-consumption/generated_samples/budgets_list.py b/sdk/consumption/azure-mgmt-consumption/generated_samples/budgets_list.py index d7fbafdd88c7..cef49746cbab 100644 --- a/sdk/consumption/azure-mgmt-consumption/generated_samples/budgets_list.py +++ b/sdk/consumption/azure-mgmt-consumption/generated_samples/budgets_list.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2024-08-01/BudgetsList.json +# x-ms-original-file: 2026-06-01/BudgetsList.json if __name__ == "__main__": main() diff --git a/sdk/consumption/azure-mgmt-consumption/generated_samples/charges_for_billing_period_by_department.py b/sdk/consumption/azure-mgmt-consumption/generated_samples/charges_for_billing_period_by_department.py index c86a3cb815b5..0846e7ef3461 100644 --- a/sdk/consumption/azure-mgmt-consumption/generated_samples/charges_for_billing_period_by_department.py +++ b/sdk/consumption/azure-mgmt-consumption/generated_samples/charges_for_billing_period_by_department.py @@ -36,6 +36,6 @@ def main(): print(response) -# x-ms-original-file: 2024-08-01/ChargesForBillingPeriodByDepartment.json +# x-ms-original-file: 2026-06-01/ChargesForBillingPeriodByDepartment.json if __name__ == "__main__": main() diff --git a/sdk/consumption/azure-mgmt-consumption/generated_samples/charges_for_billing_period_by_enrollment_account.py b/sdk/consumption/azure-mgmt-consumption/generated_samples/charges_for_billing_period_by_enrollment_account.py index 84adeef3c64e..acfd34a5ee9e 100644 --- a/sdk/consumption/azure-mgmt-consumption/generated_samples/charges_for_billing_period_by_enrollment_account.py +++ b/sdk/consumption/azure-mgmt-consumption/generated_samples/charges_for_billing_period_by_enrollment_account.py @@ -36,6 +36,6 @@ def main(): print(response) -# x-ms-original-file: 2024-08-01/ChargesForBillingPeriodByEnrollmentAccount.json +# x-ms-original-file: 2026-06-01/ChargesForBillingPeriodByEnrollmentAccount.json if __name__ == "__main__": main() diff --git a/sdk/consumption/azure-mgmt-consumption/generated_samples/charges_list_by_modern_billing_account.py b/sdk/consumption/azure-mgmt-consumption/generated_samples/charges_list_by_modern_billing_account.py index 778441fb62ae..90991c986198 100644 --- a/sdk/consumption/azure-mgmt-consumption/generated_samples/charges_list_by_modern_billing_account.py +++ b/sdk/consumption/azure-mgmt-consumption/generated_samples/charges_list_by_modern_billing_account.py @@ -36,6 +36,6 @@ def main(): print(response) -# x-ms-original-file: 2024-08-01/ChargesListByModernBillingAccount.json +# x-ms-original-file: 2026-06-01/ChargesListByModernBillingAccount.json if __name__ == "__main__": main() diff --git a/sdk/consumption/azure-mgmt-consumption/generated_samples/charges_list_by_modern_billing_account_group_by_billing_profile_id.py b/sdk/consumption/azure-mgmt-consumption/generated_samples/charges_list_by_modern_billing_account_group_by_billing_profile_id.py index ca674ee191c6..424feaa73e14 100644 --- a/sdk/consumption/azure-mgmt-consumption/generated_samples/charges_list_by_modern_billing_account_group_by_billing_profile_id.py +++ b/sdk/consumption/azure-mgmt-consumption/generated_samples/charges_list_by_modern_billing_account_group_by_billing_profile_id.py @@ -36,6 +36,6 @@ def main(): print(response) -# x-ms-original-file: 2024-08-01/ChargesListByModernBillingAccountGroupByBillingProfileId.json +# x-ms-original-file: 2026-06-01/ChargesListByModernBillingAccountGroupByBillingProfileId.json if __name__ == "__main__": main() diff --git a/sdk/consumption/azure-mgmt-consumption/generated_samples/charges_list_by_modern_billing_account_group_by_customer_id.py b/sdk/consumption/azure-mgmt-consumption/generated_samples/charges_list_by_modern_billing_account_group_by_customer_id.py index 73ccbd783900..35b3ea8e0ba1 100644 --- a/sdk/consumption/azure-mgmt-consumption/generated_samples/charges_list_by_modern_billing_account_group_by_customer_id.py +++ b/sdk/consumption/azure-mgmt-consumption/generated_samples/charges_list_by_modern_billing_account_group_by_customer_id.py @@ -36,6 +36,6 @@ def main(): print(response) -# x-ms-original-file: 2024-08-01/ChargesListByModernBillingAccountGroupByCustomerId.json +# x-ms-original-file: 2026-06-01/ChargesListByModernBillingAccountGroupByCustomerId.json if __name__ == "__main__": main() diff --git a/sdk/consumption/azure-mgmt-consumption/generated_samples/charges_list_by_modern_billing_account_group_by_invoice_section_id.py b/sdk/consumption/azure-mgmt-consumption/generated_samples/charges_list_by_modern_billing_account_group_by_invoice_section_id.py index 47f1e461dcaa..0782929df0f8 100644 --- a/sdk/consumption/azure-mgmt-consumption/generated_samples/charges_list_by_modern_billing_account_group_by_invoice_section_id.py +++ b/sdk/consumption/azure-mgmt-consumption/generated_samples/charges_list_by_modern_billing_account_group_by_invoice_section_id.py @@ -36,6 +36,6 @@ def main(): print(response) -# x-ms-original-file: 2024-08-01/ChargesListByModernBillingAccountGroupByInvoiceSectionId.json +# x-ms-original-file: 2026-06-01/ChargesListByModernBillingAccountGroupByInvoiceSectionId.json if __name__ == "__main__": main() diff --git a/sdk/consumption/azure-mgmt-consumption/generated_samples/charges_list_by_modern_billing_profile.py b/sdk/consumption/azure-mgmt-consumption/generated_samples/charges_list_by_modern_billing_profile.py index ab026677736b..6c1eb6006760 100644 --- a/sdk/consumption/azure-mgmt-consumption/generated_samples/charges_list_by_modern_billing_profile.py +++ b/sdk/consumption/azure-mgmt-consumption/generated_samples/charges_list_by_modern_billing_profile.py @@ -36,6 +36,6 @@ def main(): print(response) -# x-ms-original-file: 2024-08-01/ChargesListByModernBillingProfile.json +# x-ms-original-file: 2026-06-01/ChargesListByModernBillingProfile.json if __name__ == "__main__": main() diff --git a/sdk/consumption/azure-mgmt-consumption/generated_samples/charges_list_by_modern_billing_profile_group_by_invoice_section_id.py b/sdk/consumption/azure-mgmt-consumption/generated_samples/charges_list_by_modern_billing_profile_group_by_invoice_section_id.py index 6967c31d5996..6f5e7c2383f2 100644 --- a/sdk/consumption/azure-mgmt-consumption/generated_samples/charges_list_by_modern_billing_profile_group_by_invoice_section_id.py +++ b/sdk/consumption/azure-mgmt-consumption/generated_samples/charges_list_by_modern_billing_profile_group_by_invoice_section_id.py @@ -36,6 +36,6 @@ def main(): print(response) -# x-ms-original-file: 2024-08-01/ChargesListByModernBillingProfileGroupByInvoiceSectionId.json +# x-ms-original-file: 2026-06-01/ChargesListByModernBillingProfileGroupByInvoiceSectionId.json if __name__ == "__main__": main() diff --git a/sdk/consumption/azure-mgmt-consumption/generated_samples/charges_list_by_modern_billing_profile_invoice_section.py b/sdk/consumption/azure-mgmt-consumption/generated_samples/charges_list_by_modern_billing_profile_invoice_section.py index 1327997db9a7..b226ef662663 100644 --- a/sdk/consumption/azure-mgmt-consumption/generated_samples/charges_list_by_modern_billing_profile_invoice_section.py +++ b/sdk/consumption/azure-mgmt-consumption/generated_samples/charges_list_by_modern_billing_profile_invoice_section.py @@ -36,6 +36,6 @@ def main(): print(response) -# x-ms-original-file: 2024-08-01/ChargesListByModernBillingProfileInvoiceSection.json +# x-ms-original-file: 2026-06-01/ChargesListByModernBillingProfileInvoiceSection.json if __name__ == "__main__": main() diff --git a/sdk/consumption/azure-mgmt-consumption/generated_samples/charges_list_by_modern_customer.py b/sdk/consumption/azure-mgmt-consumption/generated_samples/charges_list_by_modern_customer.py index 5ec04cc4bb34..b1a0d9268936 100644 --- a/sdk/consumption/azure-mgmt-consumption/generated_samples/charges_list_by_modern_customer.py +++ b/sdk/consumption/azure-mgmt-consumption/generated_samples/charges_list_by_modern_customer.py @@ -36,6 +36,6 @@ def main(): print(response) -# x-ms-original-file: 2024-08-01/ChargesListByModernCustomer.json +# x-ms-original-file: 2026-06-01/ChargesListByModernCustomer.json if __name__ == "__main__": main() diff --git a/sdk/consumption/azure-mgmt-consumption/generated_samples/charges_list_by_modern_invoice_section_id.py b/sdk/consumption/azure-mgmt-consumption/generated_samples/charges_list_by_modern_invoice_section_id.py index 9c216ba8211c..83e92534c168 100644 --- a/sdk/consumption/azure-mgmt-consumption/generated_samples/charges_list_by_modern_invoice_section_id.py +++ b/sdk/consumption/azure-mgmt-consumption/generated_samples/charges_list_by_modern_invoice_section_id.py @@ -36,6 +36,6 @@ def main(): print(response) -# x-ms-original-file: 2024-08-01/ChargesListByModernInvoiceSectionId.json +# x-ms-original-file: 2026-06-01/ChargesListByModernInvoiceSectionId.json if __name__ == "__main__": main() diff --git a/sdk/consumption/azure-mgmt-consumption/generated_samples/charges_list_for_department_filter_by_start_end_date.py b/sdk/consumption/azure-mgmt-consumption/generated_samples/charges_list_for_department_filter_by_start_end_date.py index ceb036ee6e5a..3f51aa65629f 100644 --- a/sdk/consumption/azure-mgmt-consumption/generated_samples/charges_list_for_department_filter_by_start_end_date.py +++ b/sdk/consumption/azure-mgmt-consumption/generated_samples/charges_list_for_department_filter_by_start_end_date.py @@ -36,6 +36,6 @@ def main(): print(response) -# x-ms-original-file: 2024-08-01/ChargesListForDepartmentFilterByStartEndDate.json +# x-ms-original-file: 2026-06-01/ChargesListForDepartmentFilterByStartEndDate.json if __name__ == "__main__": main() diff --git a/sdk/consumption/azure-mgmt-consumption/generated_samples/charges_list_for_enrollment_account_filter_by_start_end_date.py b/sdk/consumption/azure-mgmt-consumption/generated_samples/charges_list_for_enrollment_account_filter_by_start_end_date.py index a74f8d0d2247..d0414ab3b566 100644 --- a/sdk/consumption/azure-mgmt-consumption/generated_samples/charges_list_for_enrollment_account_filter_by_start_end_date.py +++ b/sdk/consumption/azure-mgmt-consumption/generated_samples/charges_list_for_enrollment_account_filter_by_start_end_date.py @@ -36,6 +36,6 @@ def main(): print(response) -# x-ms-original-file: 2024-08-01/ChargesListForEnrollmentAccountFilterByStartEndDate.json +# x-ms-original-file: 2026-06-01/ChargesListForEnrollmentAccountFilterByStartEndDate.json if __name__ == "__main__": main() diff --git a/sdk/consumption/azure-mgmt-consumption/generated_samples/create_or_update_budget.py b/sdk/consumption/azure-mgmt-consumption/generated_samples/create_or_update_budget.py index fb0be68de01d..5c299b5a02e3 100644 --- a/sdk/consumption/azure-mgmt-consumption/generated_samples/create_or_update_budget.py +++ b/sdk/consumption/azure-mgmt-consumption/generated_samples/create_or_update_budget.py @@ -77,6 +77,6 @@ def main(): print(response) -# x-ms-original-file: 2024-08-01/CreateOrUpdateBudget.json +# x-ms-original-file: 2026-06-01/CreateOrUpdateBudget.json if __name__ == "__main__": main() diff --git a/sdk/consumption/azure-mgmt-consumption/generated_samples/credit_summary_by_billing_profile.py b/sdk/consumption/azure-mgmt-consumption/generated_samples/credit_summary_by_billing_profile.py index 2b68b380a7cf..ed4df9812d4c 100644 --- a/sdk/consumption/azure-mgmt-consumption/generated_samples/credit_summary_by_billing_profile.py +++ b/sdk/consumption/azure-mgmt-consumption/generated_samples/credit_summary_by_billing_profile.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2024-08-01/CreditSummaryByBillingProfile.json +# x-ms-original-file: 2026-06-01/CreditSummaryByBillingProfile.json if __name__ == "__main__": main() diff --git a/sdk/consumption/azure-mgmt-consumption/generated_samples/delete_budget.py b/sdk/consumption/azure-mgmt-consumption/generated_samples/delete_budget.py index c827c5e26031..1c16cf8b4fff 100644 --- a/sdk/consumption/azure-mgmt-consumption/generated_samples/delete_budget.py +++ b/sdk/consumption/azure-mgmt-consumption/generated_samples/delete_budget.py @@ -36,6 +36,6 @@ def main(): ) -# x-ms-original-file: 2024-08-01/DeleteBudget.json +# x-ms-original-file: 2026-06-01/DeleteBudget.json if __name__ == "__main__": main() diff --git a/sdk/consumption/azure-mgmt-consumption/generated_samples/ea_price_sheet_for_billing_period.py b/sdk/consumption/azure-mgmt-consumption/generated_samples/ea_price_sheet_for_billing_period.py index 094b1597c460..5ad5dd515b59 100644 --- a/sdk/consumption/azure-mgmt-consumption/generated_samples/ea_price_sheet_for_billing_period.py +++ b/sdk/consumption/azure-mgmt-consumption/generated_samples/ea_price_sheet_for_billing_period.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2024-08-01/EAPriceSheetForBillingPeriod.json +# x-ms-original-file: 2026-06-01/EAPriceSheetForBillingPeriod.json if __name__ == "__main__": main() diff --git a/sdk/consumption/azure-mgmt-consumption/generated_samples/events_get_by_billing_account.py b/sdk/consumption/azure-mgmt-consumption/generated_samples/events_get_by_billing_account.py index dba866b3e9d3..2662dc819db3 100644 --- a/sdk/consumption/azure-mgmt-consumption/generated_samples/events_get_by_billing_account.py +++ b/sdk/consumption/azure-mgmt-consumption/generated_samples/events_get_by_billing_account.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2024-08-01/EventsGetByBillingAccount.json +# x-ms-original-file: 2026-06-01/EventsGetByBillingAccount.json if __name__ == "__main__": main() diff --git a/sdk/consumption/azure-mgmt-consumption/generated_samples/events_get_by_billing_account_contributor.py b/sdk/consumption/azure-mgmt-consumption/generated_samples/events_get_by_billing_account_contributor.py index 3a989a5d3b94..3095136666c5 100644 --- a/sdk/consumption/azure-mgmt-consumption/generated_samples/events_get_by_billing_account_contributor.py +++ b/sdk/consumption/azure-mgmt-consumption/generated_samples/events_get_by_billing_account_contributor.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2024-08-01/EventsGetByBillingAccount-Contributor.json +# x-ms-original-file: 2026-06-01/EventsGetByBillingAccount-Contributor.json if __name__ == "__main__": main() diff --git a/sdk/consumption/azure-mgmt-consumption/generated_samples/events_get_by_billing_account_primary.py b/sdk/consumption/azure-mgmt-consumption/generated_samples/events_get_by_billing_account_primary.py index 4326a9f3f37f..27611e7e2b43 100644 --- a/sdk/consumption/azure-mgmt-consumption/generated_samples/events_get_by_billing_account_primary.py +++ b/sdk/consumption/azure-mgmt-consumption/generated_samples/events_get_by_billing_account_primary.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2024-08-01/EventsGetByBillingAccount-Primary.json +# x-ms-original-file: 2026-06-01/EventsGetByBillingAccount-Primary.json if __name__ == "__main__": main() diff --git a/sdk/consumption/azure-mgmt-consumption/generated_samples/events_get_by_billing_account_with_filters.py b/sdk/consumption/azure-mgmt-consumption/generated_samples/events_get_by_billing_account_with_filters.py index 7e55c513090c..ce86de2facb1 100644 --- a/sdk/consumption/azure-mgmt-consumption/generated_samples/events_get_by_billing_account_with_filters.py +++ b/sdk/consumption/azure-mgmt-consumption/generated_samples/events_get_by_billing_account_with_filters.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2024-08-01/EventsGetByBillingAccountWithFilters.json +# x-ms-original-file: 2026-06-01/EventsGetByBillingAccountWithFilters.json if __name__ == "__main__": main() diff --git a/sdk/consumption/azure-mgmt-consumption/generated_samples/events_get_by_billing_account_with_filters_contributor.py b/sdk/consumption/azure-mgmt-consumption/generated_samples/events_get_by_billing_account_with_filters_contributor.py index 2caf77d85767..19943cd20c57 100644 --- a/sdk/consumption/azure-mgmt-consumption/generated_samples/events_get_by_billing_account_with_filters_contributor.py +++ b/sdk/consumption/azure-mgmt-consumption/generated_samples/events_get_by_billing_account_with_filters_contributor.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2024-08-01/EventsGetByBillingAccountWithFilters-Contributor.json +# x-ms-original-file: 2026-06-01/EventsGetByBillingAccountWithFilters-Contributor.json if __name__ == "__main__": main() diff --git a/sdk/consumption/azure-mgmt-consumption/generated_samples/events_get_by_billing_account_with_filters_primary.py b/sdk/consumption/azure-mgmt-consumption/generated_samples/events_get_by_billing_account_with_filters_primary.py index 49357acc5fa3..192d6a7f0c92 100644 --- a/sdk/consumption/azure-mgmt-consumption/generated_samples/events_get_by_billing_account_with_filters_primary.py +++ b/sdk/consumption/azure-mgmt-consumption/generated_samples/events_get_by_billing_account_with_filters_primary.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2024-08-01/EventsGetByBillingAccountWithFilters-Primary.json +# x-ms-original-file: 2026-06-01/EventsGetByBillingAccountWithFilters-Primary.json if __name__ == "__main__": main() diff --git a/sdk/consumption/azure-mgmt-consumption/generated_samples/events_list_by_billing_profile.py b/sdk/consumption/azure-mgmt-consumption/generated_samples/events_list_by_billing_profile.py index 00bc8b2f57c7..576560a9f0d4 100644 --- a/sdk/consumption/azure-mgmt-consumption/generated_samples/events_list_by_billing_profile.py +++ b/sdk/consumption/azure-mgmt-consumption/generated_samples/events_list_by_billing_profile.py @@ -40,6 +40,6 @@ def main(): print(item) -# x-ms-original-file: 2024-08-01/EventsListByBillingProfile.json +# x-ms-original-file: 2026-06-01/EventsListByBillingProfile.json if __name__ == "__main__": main() diff --git a/sdk/consumption/azure-mgmt-consumption/generated_samples/lots_list_by_billing_account.py b/sdk/consumption/azure-mgmt-consumption/generated_samples/lots_list_by_billing_account.py index 9055a7698ebf..43d47f635ac7 100644 --- a/sdk/consumption/azure-mgmt-consumption/generated_samples/lots_list_by_billing_account.py +++ b/sdk/consumption/azure-mgmt-consumption/generated_samples/lots_list_by_billing_account.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2024-08-01/LotsListByBillingAccount.json +# x-ms-original-file: 2026-06-01/LotsListByBillingAccount.json if __name__ == "__main__": main() diff --git a/sdk/consumption/azure-mgmt-consumption/generated_samples/lots_list_by_billing_account_contributor.py b/sdk/consumption/azure-mgmt-consumption/generated_samples/lots_list_by_billing_account_contributor.py index 325eb9a94f9c..739a0bb0dba3 100644 --- a/sdk/consumption/azure-mgmt-consumption/generated_samples/lots_list_by_billing_account_contributor.py +++ b/sdk/consumption/azure-mgmt-consumption/generated_samples/lots_list_by_billing_account_contributor.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2024-08-01/LotsListByBillingAccount-Contributor.json +# x-ms-original-file: 2026-06-01/LotsListByBillingAccount-Contributor.json if __name__ == "__main__": main() diff --git a/sdk/consumption/azure-mgmt-consumption/generated_samples/lots_list_by_billing_account_primary.py b/sdk/consumption/azure-mgmt-consumption/generated_samples/lots_list_by_billing_account_primary.py index f8bf40b03326..e180e87d1678 100644 --- a/sdk/consumption/azure-mgmt-consumption/generated_samples/lots_list_by_billing_account_primary.py +++ b/sdk/consumption/azure-mgmt-consumption/generated_samples/lots_list_by_billing_account_primary.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2024-08-01/LotsListByBillingAccount-Primary.json +# x-ms-original-file: 2026-06-01/LotsListByBillingAccount-Primary.json if __name__ == "__main__": main() diff --git a/sdk/consumption/azure-mgmt-consumption/generated_samples/lots_list_by_billing_account_with_filters.py b/sdk/consumption/azure-mgmt-consumption/generated_samples/lots_list_by_billing_account_with_filters.py index c85b3717a7f3..5fa5ebfcafd3 100644 --- a/sdk/consumption/azure-mgmt-consumption/generated_samples/lots_list_by_billing_account_with_filters.py +++ b/sdk/consumption/azure-mgmt-consumption/generated_samples/lots_list_by_billing_account_with_filters.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2024-08-01/LotsListByBillingAccountWithFilters.json +# x-ms-original-file: 2026-06-01/LotsListByBillingAccountWithFilters.json if __name__ == "__main__": main() diff --git a/sdk/consumption/azure-mgmt-consumption/generated_samples/lots_list_by_billing_account_with_filters_contributor.py b/sdk/consumption/azure-mgmt-consumption/generated_samples/lots_list_by_billing_account_with_filters_contributor.py index 4662776d07cb..0b31a3dd06fd 100644 --- a/sdk/consumption/azure-mgmt-consumption/generated_samples/lots_list_by_billing_account_with_filters_contributor.py +++ b/sdk/consumption/azure-mgmt-consumption/generated_samples/lots_list_by_billing_account_with_filters_contributor.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2024-08-01/LotsListByBillingAccountWithFilters-Contributor.json +# x-ms-original-file: 2026-06-01/LotsListByBillingAccountWithFilters-Contributor.json if __name__ == "__main__": main() diff --git a/sdk/consumption/azure-mgmt-consumption/generated_samples/lots_list_by_billing_account_with_filters_primary.py b/sdk/consumption/azure-mgmt-consumption/generated_samples/lots_list_by_billing_account_with_filters_primary.py index fc2bca819e72..f27566b155cd 100644 --- a/sdk/consumption/azure-mgmt-consumption/generated_samples/lots_list_by_billing_account_with_filters_primary.py +++ b/sdk/consumption/azure-mgmt-consumption/generated_samples/lots_list_by_billing_account_with_filters_primary.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2024-08-01/LotsListByBillingAccountWithFilters-Primary.json +# x-ms-original-file: 2026-06-01/LotsListByBillingAccountWithFilters-Primary.json if __name__ == "__main__": main() diff --git a/sdk/consumption/azure-mgmt-consumption/generated_samples/lots_list_by_billing_profile.py b/sdk/consumption/azure-mgmt-consumption/generated_samples/lots_list_by_billing_profile.py index cbad3b5f39b0..f758e86a04f3 100644 --- a/sdk/consumption/azure-mgmt-consumption/generated_samples/lots_list_by_billing_profile.py +++ b/sdk/consumption/azure-mgmt-consumption/generated_samples/lots_list_by_billing_profile.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2024-08-01/LotsListByBillingProfile.json +# x-ms-original-file: 2026-06-01/LotsListByBillingProfile.json if __name__ == "__main__": main() diff --git a/sdk/consumption/azure-mgmt-consumption/generated_samples/lots_list_by_customer.py b/sdk/consumption/azure-mgmt-consumption/generated_samples/lots_list_by_customer.py index 8e6fa60a98a0..049d89285f88 100644 --- a/sdk/consumption/azure-mgmt-consumption/generated_samples/lots_list_by_customer.py +++ b/sdk/consumption/azure-mgmt-consumption/generated_samples/lots_list_by_customer.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2024-08-01/LotsListByCustomer.json +# x-ms-original-file: 2026-06-01/LotsListByCustomer.json if __name__ == "__main__": main() diff --git a/sdk/consumption/azure-mgmt-consumption/generated_samples/lots_list_by_customer_with_filters.py b/sdk/consumption/azure-mgmt-consumption/generated_samples/lots_list_by_customer_with_filters.py index a601a9a634d3..28ee539ef425 100644 --- a/sdk/consumption/azure-mgmt-consumption/generated_samples/lots_list_by_customer_with_filters.py +++ b/sdk/consumption/azure-mgmt-consumption/generated_samples/lots_list_by_customer_with_filters.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2024-08-01/LotsListByCustomerWithFilters.json +# x-ms-original-file: 2026-06-01/LotsListByCustomerWithFilters.json if __name__ == "__main__": main() diff --git a/sdk/consumption/azure-mgmt-consumption/generated_samples/marketplaces_by_billing_account_list.py b/sdk/consumption/azure-mgmt-consumption/generated_samples/marketplaces_by_billing_account_list.py index 384fd7e9694f..069b15cd0e12 100644 --- a/sdk/consumption/azure-mgmt-consumption/generated_samples/marketplaces_by_billing_account_list.py +++ b/sdk/consumption/azure-mgmt-consumption/generated_samples/marketplaces_by_billing_account_list.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2024-08-01/MarketplacesByBillingAccountList.json +# x-ms-original-file: 2026-06-01/MarketplacesByBillingAccountList.json if __name__ == "__main__": main() diff --git a/sdk/consumption/azure-mgmt-consumption/generated_samples/marketplaces_by_billing_account_list_for_billing_period.py b/sdk/consumption/azure-mgmt-consumption/generated_samples/marketplaces_by_billing_account_list_for_billing_period.py index 76e55e10cbd6..afb26e0eae51 100644 --- a/sdk/consumption/azure-mgmt-consumption/generated_samples/marketplaces_by_billing_account_list_for_billing_period.py +++ b/sdk/consumption/azure-mgmt-consumption/generated_samples/marketplaces_by_billing_account_list_for_billing_period.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2024-08-01/MarketplacesByBillingAccountListForBillingPeriod.json +# x-ms-original-file: 2026-06-01/MarketplacesByBillingAccountListForBillingPeriod.json if __name__ == "__main__": main() diff --git a/sdk/consumption/azure-mgmt-consumption/generated_samples/marketplaces_by_department_list.py b/sdk/consumption/azure-mgmt-consumption/generated_samples/marketplaces_by_department_list.py index 93049c02dec0..d3648a9db217 100644 --- a/sdk/consumption/azure-mgmt-consumption/generated_samples/marketplaces_by_department_list.py +++ b/sdk/consumption/azure-mgmt-consumption/generated_samples/marketplaces_by_department_list.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2024-08-01/MarketplacesByDepartmentList.json +# x-ms-original-file: 2026-06-01/MarketplacesByDepartmentList.json if __name__ == "__main__": main() diff --git a/sdk/consumption/azure-mgmt-consumption/generated_samples/marketplaces_by_department_list_by_billing_period.py b/sdk/consumption/azure-mgmt-consumption/generated_samples/marketplaces_by_department_list_by_billing_period.py index 29a00af9c5ec..ce5b7197531c 100644 --- a/sdk/consumption/azure-mgmt-consumption/generated_samples/marketplaces_by_department_list_by_billing_period.py +++ b/sdk/consumption/azure-mgmt-consumption/generated_samples/marketplaces_by_department_list_by_billing_period.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2024-08-01/MarketplacesByDepartment_ListByBillingPeriod.json +# x-ms-original-file: 2026-06-01/MarketplacesByDepartment_ListByBillingPeriod.json if __name__ == "__main__": main() diff --git a/sdk/consumption/azure-mgmt-consumption/generated_samples/marketplaces_by_enrollment_account_list.py b/sdk/consumption/azure-mgmt-consumption/generated_samples/marketplaces_by_enrollment_account_list.py index 8e2322596069..ca4a983885e4 100644 --- a/sdk/consumption/azure-mgmt-consumption/generated_samples/marketplaces_by_enrollment_account_list.py +++ b/sdk/consumption/azure-mgmt-consumption/generated_samples/marketplaces_by_enrollment_account_list.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2024-08-01/MarketplacesByEnrollmentAccountList.json +# x-ms-original-file: 2026-06-01/MarketplacesByEnrollmentAccountList.json if __name__ == "__main__": main() diff --git a/sdk/consumption/azure-mgmt-consumption/generated_samples/marketplaces_by_enrollment_accounts_list_by_billing_period.py b/sdk/consumption/azure-mgmt-consumption/generated_samples/marketplaces_by_enrollment_accounts_list_by_billing_period.py index 042e2efe09a1..8e599f844943 100644 --- a/sdk/consumption/azure-mgmt-consumption/generated_samples/marketplaces_by_enrollment_accounts_list_by_billing_period.py +++ b/sdk/consumption/azure-mgmt-consumption/generated_samples/marketplaces_by_enrollment_accounts_list_by_billing_period.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2024-08-01/MarketplacesByEnrollmentAccounts_ListByBillingPeriod.json +# x-ms-original-file: 2026-06-01/MarketplacesByEnrollmentAccounts_ListByBillingPeriod.json if __name__ == "__main__": main() diff --git a/sdk/consumption/azure-mgmt-consumption/generated_samples/marketplaces_by_management_group_list.py b/sdk/consumption/azure-mgmt-consumption/generated_samples/marketplaces_by_management_group_list.py index e8c7382fd17e..b947a345efe9 100644 --- a/sdk/consumption/azure-mgmt-consumption/generated_samples/marketplaces_by_management_group_list.py +++ b/sdk/consumption/azure-mgmt-consumption/generated_samples/marketplaces_by_management_group_list.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2024-08-01/MarketplacesByManagementGroupList.json +# x-ms-original-file: 2026-06-01/MarketplacesByManagementGroupList.json if __name__ == "__main__": main() diff --git a/sdk/consumption/azure-mgmt-consumption/generated_samples/marketplaces_by_management_group_list_for_billing_period.py b/sdk/consumption/azure-mgmt-consumption/generated_samples/marketplaces_by_management_group_list_for_billing_period.py index 62284a923b8f..4127c6e62dcd 100644 --- a/sdk/consumption/azure-mgmt-consumption/generated_samples/marketplaces_by_management_group_list_for_billing_period.py +++ b/sdk/consumption/azure-mgmt-consumption/generated_samples/marketplaces_by_management_group_list_for_billing_period.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2024-08-01/MarketplacesByManagementGroup_ListForBillingPeriod.json +# x-ms-original-file: 2026-06-01/MarketplacesByManagementGroup_ListForBillingPeriod.json if __name__ == "__main__": main() diff --git a/sdk/consumption/azure-mgmt-consumption/generated_samples/marketplaces_list.py b/sdk/consumption/azure-mgmt-consumption/generated_samples/marketplaces_list.py index 49993db9453a..f68788b9426e 100644 --- a/sdk/consumption/azure-mgmt-consumption/generated_samples/marketplaces_list.py +++ b/sdk/consumption/azure-mgmt-consumption/generated_samples/marketplaces_list.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2024-08-01/MarketplacesList.json +# x-ms-original-file: 2026-06-01/MarketplacesList.json if __name__ == "__main__": main() diff --git a/sdk/consumption/azure-mgmt-consumption/generated_samples/marketplaces_list_for_billing_period.py b/sdk/consumption/azure-mgmt-consumption/generated_samples/marketplaces_list_for_billing_period.py index db30f039aa6d..64eb1d5295c6 100644 --- a/sdk/consumption/azure-mgmt-consumption/generated_samples/marketplaces_list_for_billing_period.py +++ b/sdk/consumption/azure-mgmt-consumption/generated_samples/marketplaces_list_for_billing_period.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2024-08-01/MarketplacesListForBillingPeriod.json +# x-ms-original-file: 2026-06-01/MarketplacesListForBillingPeriod.json if __name__ == "__main__": main() diff --git a/sdk/consumption/azure-mgmt-consumption/generated_samples/operation_list.py b/sdk/consumption/azure-mgmt-consumption/generated_samples/operation_list.py index cb978d6bf272..f80afd1a46ab 100644 --- a/sdk/consumption/azure-mgmt-consumption/generated_samples/operation_list.py +++ b/sdk/consumption/azure-mgmt-consumption/generated_samples/operation_list.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: 2024-08-01/OperationList.json +# x-ms-original-file: 2026-06-01/OperationList.json if __name__ == "__main__": main() diff --git a/sdk/consumption/azure-mgmt-consumption/generated_samples/price_sheet.py b/sdk/consumption/azure-mgmt-consumption/generated_samples/price_sheet.py index dd827c2225bf..430163bfc79b 100644 --- a/sdk/consumption/azure-mgmt-consumption/generated_samples/price_sheet.py +++ b/sdk/consumption/azure-mgmt-consumption/generated_samples/price_sheet.py @@ -34,6 +34,6 @@ def main(): print(response) -# x-ms-original-file: 2024-08-01/PriceSheet.json +# x-ms-original-file: 2026-06-01/PriceSheet.json if __name__ == "__main__": main() diff --git a/sdk/consumption/azure-mgmt-consumption/generated_samples/price_sheet_expand.py b/sdk/consumption/azure-mgmt-consumption/generated_samples/price_sheet_expand.py index b61d9892fcd2..c6c2a643a71d 100644 --- a/sdk/consumption/azure-mgmt-consumption/generated_samples/price_sheet_expand.py +++ b/sdk/consumption/azure-mgmt-consumption/generated_samples/price_sheet_expand.py @@ -36,6 +36,6 @@ def main(): print(response) -# x-ms-original-file: 2024-08-01/PriceSheetExpand.json +# x-ms-original-file: 2026-06-01/PriceSheetExpand.json if __name__ == "__main__": main() diff --git a/sdk/consumption/azure-mgmt-consumption/generated_samples/price_sheet_for_billing_period.py b/sdk/consumption/azure-mgmt-consumption/generated_samples/price_sheet_for_billing_period.py index 5a869a121e74..c55c58d44a53 100644 --- a/sdk/consumption/azure-mgmt-consumption/generated_samples/price_sheet_for_billing_period.py +++ b/sdk/consumption/azure-mgmt-consumption/generated_samples/price_sheet_for_billing_period.py @@ -36,6 +36,6 @@ def main(): print(response) -# x-ms-original-file: 2024-08-01/PriceSheetForBillingPeriod.json +# x-ms-original-file: 2026-06-01/PriceSheetForBillingPeriod.json if __name__ == "__main__": main() diff --git a/sdk/consumption/azure-mgmt-consumption/generated_samples/reservation_details.py b/sdk/consumption/azure-mgmt-consumption/generated_samples/reservation_details.py index ed69dacc0825..efb3e2b59824 100644 --- a/sdk/consumption/azure-mgmt-consumption/generated_samples/reservation_details.py +++ b/sdk/consumption/azure-mgmt-consumption/generated_samples/reservation_details.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2024-08-01/ReservationDetails.json +# x-ms-original-file: 2026-06-01/ReservationDetails.json if __name__ == "__main__": main() diff --git a/sdk/consumption/azure-mgmt-consumption/generated_samples/reservation_details_by_billing_account_id.py b/sdk/consumption/azure-mgmt-consumption/generated_samples/reservation_details_by_billing_account_id.py index 2de8a4107b68..aec90e51dd58 100644 --- a/sdk/consumption/azure-mgmt-consumption/generated_samples/reservation_details_by_billing_account_id.py +++ b/sdk/consumption/azure-mgmt-consumption/generated_samples/reservation_details_by_billing_account_id.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2024-08-01/ReservationDetailsByBillingAccountId.json +# x-ms-original-file: 2026-06-01/ReservationDetailsByBillingAccountId.json if __name__ == "__main__": main() diff --git a/sdk/consumption/azure-mgmt-consumption/generated_samples/reservation_details_by_billing_profile_id.py b/sdk/consumption/azure-mgmt-consumption/generated_samples/reservation_details_by_billing_profile_id.py index 87f3a7638f03..abc30d4f6b22 100644 --- a/sdk/consumption/azure-mgmt-consumption/generated_samples/reservation_details_by_billing_profile_id.py +++ b/sdk/consumption/azure-mgmt-consumption/generated_samples/reservation_details_by_billing_profile_id.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2024-08-01/ReservationDetailsByBillingProfileId.json +# x-ms-original-file: 2026-06-01/ReservationDetailsByBillingProfileId.json if __name__ == "__main__": main() diff --git a/sdk/consumption/azure-mgmt-consumption/generated_samples/reservation_details_by_billing_profile_id_reservation_id.py b/sdk/consumption/azure-mgmt-consumption/generated_samples/reservation_details_by_billing_profile_id_reservation_id.py index c0c1fd974262..2a56709bbc4c 100644 --- a/sdk/consumption/azure-mgmt-consumption/generated_samples/reservation_details_by_billing_profile_id_reservation_id.py +++ b/sdk/consumption/azure-mgmt-consumption/generated_samples/reservation_details_by_billing_profile_id_reservation_id.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2024-08-01/ReservationDetailsByBillingProfileIdReservationId.json +# x-ms-original-file: 2026-06-01/ReservationDetailsByBillingProfileIdReservationId.json if __name__ == "__main__": main() diff --git a/sdk/consumption/azure-mgmt-consumption/generated_samples/reservation_details_with_reservation_id.py b/sdk/consumption/azure-mgmt-consumption/generated_samples/reservation_details_with_reservation_id.py index 36dfdf78cec7..826560bd3a30 100644 --- a/sdk/consumption/azure-mgmt-consumption/generated_samples/reservation_details_with_reservation_id.py +++ b/sdk/consumption/azure-mgmt-consumption/generated_samples/reservation_details_with_reservation_id.py @@ -39,6 +39,6 @@ def main(): print(item) -# x-ms-original-file: 2024-08-01/ReservationDetailsWithReservationId.json +# x-ms-original-file: 2026-06-01/ReservationDetailsWithReservationId.json if __name__ == "__main__": main() diff --git a/sdk/consumption/azure-mgmt-consumption/generated_samples/reservation_recommendation_details_by_billing_account.py b/sdk/consumption/azure-mgmt-consumption/generated_samples/reservation_recommendation_details_by_billing_account.py index 793d365752c9..1569c057126f 100644 --- a/sdk/consumption/azure-mgmt-consumption/generated_samples/reservation_recommendation_details_by_billing_account.py +++ b/sdk/consumption/azure-mgmt-consumption/generated_samples/reservation_recommendation_details_by_billing_account.py @@ -41,6 +41,6 @@ def main(): print(response) -# x-ms-original-file: 2024-08-01/ReservationRecommendationDetailsByBillingAccount.json +# x-ms-original-file: 2026-06-01/ReservationRecommendationDetailsByBillingAccount.json if __name__ == "__main__": main() diff --git a/sdk/consumption/azure-mgmt-consumption/generated_samples/reservation_recommendation_details_by_billing_account_for_management_group.py b/sdk/consumption/azure-mgmt-consumption/generated_samples/reservation_recommendation_details_by_billing_account_for_management_group.py new file mode 100644 index 000000000000..c86793bf9066 --- /dev/null +++ b/sdk/consumption/azure-mgmt-consumption/generated_samples/reservation_recommendation_details_by_billing_account_for_management_group.py @@ -0,0 +1,46 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.consumption import ConsumptionManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-consumption +# USAGE + python reservation_recommendation_details_by_billing_account_for_management_group.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = ConsumptionManagementClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.reservation_recommendation_details.get( + resource_scope="providers/Microsoft.Billing/billingAccounts/00000000", + scope="ManagementGroup", + region="westus", + term="P3Y", + look_back_period="Last30Days", + product="Standard_DS13_v2", + ) + print(response) + + +# x-ms-original-file: 2026-06-01/ReservationRecommendationDetailsByBillingAccountForManagementGroup.json +if __name__ == "__main__": + main() diff --git a/sdk/consumption/azure-mgmt-consumption/generated_samples/reservation_recommendation_details_by_billing_profile.py b/sdk/consumption/azure-mgmt-consumption/generated_samples/reservation_recommendation_details_by_billing_profile.py index 25c321d5602e..e6c51561b1e2 100644 --- a/sdk/consumption/azure-mgmt-consumption/generated_samples/reservation_recommendation_details_by_billing_profile.py +++ b/sdk/consumption/azure-mgmt-consumption/generated_samples/reservation_recommendation_details_by_billing_profile.py @@ -42,6 +42,6 @@ def main(): print(response) -# x-ms-original-file: 2024-08-01/ReservationRecommendationDetailsByBillingProfile.json +# x-ms-original-file: 2026-06-01/ReservationRecommendationDetailsByBillingProfile.json if __name__ == "__main__": main() diff --git a/sdk/consumption/azure-mgmt-consumption/generated_samples/reservation_recommendation_details_by_resource_group.py b/sdk/consumption/azure-mgmt-consumption/generated_samples/reservation_recommendation_details_by_resource_group.py index f115014c33b5..8b09b2409a8a 100644 --- a/sdk/consumption/azure-mgmt-consumption/generated_samples/reservation_recommendation_details_by_resource_group.py +++ b/sdk/consumption/azure-mgmt-consumption/generated_samples/reservation_recommendation_details_by_resource_group.py @@ -41,6 +41,6 @@ def main(): print(response) -# x-ms-original-file: 2024-08-01/ReservationRecommendationDetailsByResourceGroup.json +# x-ms-original-file: 2026-06-01/ReservationRecommendationDetailsByResourceGroup.json if __name__ == "__main__": main() diff --git a/sdk/consumption/azure-mgmt-consumption/generated_samples/reservation_recommendation_details_by_subscription.py b/sdk/consumption/azure-mgmt-consumption/generated_samples/reservation_recommendation_details_by_subscription.py index b7bf0c2d1300..ec02af1dd27c 100644 --- a/sdk/consumption/azure-mgmt-consumption/generated_samples/reservation_recommendation_details_by_subscription.py +++ b/sdk/consumption/azure-mgmt-consumption/generated_samples/reservation_recommendation_details_by_subscription.py @@ -41,6 +41,6 @@ def main(): print(response) -# x-ms-original-file: 2024-08-01/ReservationRecommendationDetailsBySubscription.json +# x-ms-original-file: 2026-06-01/ReservationRecommendationDetailsBySubscription.json if __name__ == "__main__": main() diff --git a/sdk/consumption/azure-mgmt-consumption/generated_samples/reservation_recommendation_details_pre_purchase_plan_by_subscription.py b/sdk/consumption/azure-mgmt-consumption/generated_samples/reservation_recommendation_details_pre_purchase_plan_by_subscription.py new file mode 100644 index 000000000000..c6c7b2b6413f --- /dev/null +++ b/sdk/consumption/azure-mgmt-consumption/generated_samples/reservation_recommendation_details_pre_purchase_plan_by_subscription.py @@ -0,0 +1,46 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.consumption import ConsumptionManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-consumption +# USAGE + python reservation_recommendation_details_pre_purchase_plan_by_subscription.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = ConsumptionManagementClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.reservation_recommendation_details.get( + resource_scope="subscriptions/00000000-0000-0000-0000-000000000000", + scope="Single", + region="westus", + term="P3Y", + look_back_period="Last30Days", + product="Standard_DS13_v2", + ) + print(response) + + +# x-ms-original-file: 2026-06-01/ReservationRecommendationDetailsPrePurchasePlanBySubscription.json +if __name__ == "__main__": + main() diff --git a/sdk/consumption/azure-mgmt-consumption/generated_samples/reservation_recommendations_by_billing_account.py b/sdk/consumption/azure-mgmt-consumption/generated_samples/reservation_recommendations_by_billing_account.py index 064172aad53f..2bd0b2a4dce8 100644 --- a/sdk/consumption/azure-mgmt-consumption/generated_samples/reservation_recommendations_by_billing_account.py +++ b/sdk/consumption/azure-mgmt-consumption/generated_samples/reservation_recommendations_by_billing_account.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2024-08-01/ReservationRecommendationsByBillingAccount.json +# x-ms-original-file: 2026-06-01/ReservationRecommendationsByBillingAccount.json if __name__ == "__main__": main() diff --git a/sdk/consumption/azure-mgmt-consumption/generated_samples/reservation_recommendations_by_billing_account_filter_by_scope.py b/sdk/consumption/azure-mgmt-consumption/generated_samples/reservation_recommendations_by_billing_account_filter_by_scope.py index d8ae80501c0f..b6add34d37ef 100644 --- a/sdk/consumption/azure-mgmt-consumption/generated_samples/reservation_recommendations_by_billing_account_filter_by_scope.py +++ b/sdk/consumption/azure-mgmt-consumption/generated_samples/reservation_recommendations_by_billing_account_filter_by_scope.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2024-08-01/ReservationRecommendationsByBillingAccountFilterByScope.json +# x-ms-original-file: 2026-06-01/ReservationRecommendationsByBillingAccountFilterByScope.json if __name__ == "__main__": main() diff --git a/sdk/consumption/azure-mgmt-consumption/generated_samples/reservation_recommendations_by_billing_account_for_management_group.py b/sdk/consumption/azure-mgmt-consumption/generated_samples/reservation_recommendations_by_billing_account_for_management_group.py new file mode 100644 index 000000000000..7b31bb1dd30b --- /dev/null +++ b/sdk/consumption/azure-mgmt-consumption/generated_samples/reservation_recommendations_by_billing_account_for_management_group.py @@ -0,0 +1,42 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.consumption import ConsumptionManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-consumption +# USAGE + python reservation_recommendations_by_billing_account_for_management_group.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = ConsumptionManagementClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.reservation_recommendations.list( + resource_scope="providers/Microsoft.Billing/billingAccounts/00000000", + ) + for item in response: + print(item) + + +# x-ms-original-file: 2026-06-01/ReservationRecommendationsByBillingAccountForManagementGroup.json +if __name__ == "__main__": + main() diff --git a/sdk/consumption/azure-mgmt-consumption/generated_samples/reservation_recommendations_by_billing_profile.py b/sdk/consumption/azure-mgmt-consumption/generated_samples/reservation_recommendations_by_billing_profile.py index 49a766091d40..5597a34a18bc 100644 --- a/sdk/consumption/azure-mgmt-consumption/generated_samples/reservation_recommendations_by_billing_profile.py +++ b/sdk/consumption/azure-mgmt-consumption/generated_samples/reservation_recommendations_by_billing_profile.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2024-08-01/ReservationRecommendationsByBillingProfile.json +# x-ms-original-file: 2026-06-01/ReservationRecommendationsByBillingProfile.json if __name__ == "__main__": main() diff --git a/sdk/consumption/azure-mgmt-consumption/generated_samples/reservation_recommendations_by_resource_group.py b/sdk/consumption/azure-mgmt-consumption/generated_samples/reservation_recommendations_by_resource_group.py index 345e9c7ed2e0..17887ad46817 100644 --- a/sdk/consumption/azure-mgmt-consumption/generated_samples/reservation_recommendations_by_resource_group.py +++ b/sdk/consumption/azure-mgmt-consumption/generated_samples/reservation_recommendations_by_resource_group.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2024-08-01/ReservationRecommendationsByResourceGroup.json +# x-ms-original-file: 2026-06-01/ReservationRecommendationsByResourceGroup.json if __name__ == "__main__": main() diff --git a/sdk/consumption/azure-mgmt-consumption/generated_samples/reservation_recommendations_by_subscription.py b/sdk/consumption/azure-mgmt-consumption/generated_samples/reservation_recommendations_by_subscription.py index 8f9f59bfa55b..d1aec51899bb 100644 --- a/sdk/consumption/azure-mgmt-consumption/generated_samples/reservation_recommendations_by_subscription.py +++ b/sdk/consumption/azure-mgmt-consumption/generated_samples/reservation_recommendations_by_subscription.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2024-08-01/ReservationRecommendationsBySubscription.json +# x-ms-original-file: 2026-06-01/ReservationRecommendationsBySubscription.json if __name__ == "__main__": main() diff --git a/sdk/consumption/azure-mgmt-consumption/generated_samples/reservation_recommendations_filter_by_subscription_for_scope_look_back_period.py b/sdk/consumption/azure-mgmt-consumption/generated_samples/reservation_recommendations_filter_by_subscription_for_scope_look_back_period.py index 85aef9747e66..a5c11ec4343a 100644 --- a/sdk/consumption/azure-mgmt-consumption/generated_samples/reservation_recommendations_filter_by_subscription_for_scope_look_back_period.py +++ b/sdk/consumption/azure-mgmt-consumption/generated_samples/reservation_recommendations_filter_by_subscription_for_scope_look_back_period.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2024-08-01/ReservationRecommendationsFilterBySubscriptionForScopeLookBackPeriod.json +# x-ms-original-file: 2026-06-01/ReservationRecommendationsFilterBySubscriptionForScopeLookBackPeriod.json if __name__ == "__main__": main() diff --git a/sdk/consumption/azure-mgmt-consumption/generated_samples/reservation_summaries_daily.py b/sdk/consumption/azure-mgmt-consumption/generated_samples/reservation_summaries_daily.py index 7b39b3381c25..e5d982e2dba3 100644 --- a/sdk/consumption/azure-mgmt-consumption/generated_samples/reservation_summaries_daily.py +++ b/sdk/consumption/azure-mgmt-consumption/generated_samples/reservation_summaries_daily.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2024-08-01/ReservationSummariesDaily.json +# x-ms-original-file: 2026-06-01/ReservationSummariesDaily.json if __name__ == "__main__": main() diff --git a/sdk/consumption/azure-mgmt-consumption/generated_samples/reservation_summaries_daily_with_billing_account_id.py b/sdk/consumption/azure-mgmt-consumption/generated_samples/reservation_summaries_daily_with_billing_account_id.py index 024cba114756..7c61fda2bf1e 100644 --- a/sdk/consumption/azure-mgmt-consumption/generated_samples/reservation_summaries_daily_with_billing_account_id.py +++ b/sdk/consumption/azure-mgmt-consumption/generated_samples/reservation_summaries_daily_with_billing_account_id.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2024-08-01/ReservationSummariesDailyWithBillingAccountId.json +# x-ms-original-file: 2026-06-01/ReservationSummariesDailyWithBillingAccountId.json if __name__ == "__main__": main() diff --git a/sdk/consumption/azure-mgmt-consumption/generated_samples/reservation_summaries_daily_with_billing_profile_id.py b/sdk/consumption/azure-mgmt-consumption/generated_samples/reservation_summaries_daily_with_billing_profile_id.py index ad81fa638616..cade126925c3 100644 --- a/sdk/consumption/azure-mgmt-consumption/generated_samples/reservation_summaries_daily_with_billing_profile_id.py +++ b/sdk/consumption/azure-mgmt-consumption/generated_samples/reservation_summaries_daily_with_billing_profile_id.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2024-08-01/ReservationSummariesDailyWithBillingProfileId.json +# x-ms-original-file: 2026-06-01/ReservationSummariesDailyWithBillingProfileId.json if __name__ == "__main__": main() diff --git a/sdk/consumption/azure-mgmt-consumption/generated_samples/reservation_summaries_daily_with_reservation_id.py b/sdk/consumption/azure-mgmt-consumption/generated_samples/reservation_summaries_daily_with_reservation_id.py index 7dab1d4d032a..779e7a15cbc8 100644 --- a/sdk/consumption/azure-mgmt-consumption/generated_samples/reservation_summaries_daily_with_reservation_id.py +++ b/sdk/consumption/azure-mgmt-consumption/generated_samples/reservation_summaries_daily_with_reservation_id.py @@ -39,6 +39,6 @@ def main(): print(item) -# x-ms-original-file: 2024-08-01/ReservationSummariesDailyWithReservationId.json +# x-ms-original-file: 2026-06-01/ReservationSummariesDailyWithReservationId.json if __name__ == "__main__": main() diff --git a/sdk/consumption/azure-mgmt-consumption/generated_samples/reservation_summaries_monthly.py b/sdk/consumption/azure-mgmt-consumption/generated_samples/reservation_summaries_monthly.py index cfd1444d7d85..fc11e1461151 100644 --- a/sdk/consumption/azure-mgmt-consumption/generated_samples/reservation_summaries_monthly.py +++ b/sdk/consumption/azure-mgmt-consumption/generated_samples/reservation_summaries_monthly.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2024-08-01/ReservationSummariesMonthly.json +# x-ms-original-file: 2026-06-01/ReservationSummariesMonthly.json if __name__ == "__main__": main() diff --git a/sdk/consumption/azure-mgmt-consumption/generated_samples/reservation_summaries_monthly_with_billing_account_id.py b/sdk/consumption/azure-mgmt-consumption/generated_samples/reservation_summaries_monthly_with_billing_account_id.py index 90559db003ac..f95fbeb609ea 100644 --- a/sdk/consumption/azure-mgmt-consumption/generated_samples/reservation_summaries_monthly_with_billing_account_id.py +++ b/sdk/consumption/azure-mgmt-consumption/generated_samples/reservation_summaries_monthly_with_billing_account_id.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2024-08-01/ReservationSummariesMonthlyWithBillingAccountId.json +# x-ms-original-file: 2026-06-01/ReservationSummariesMonthlyWithBillingAccountId.json if __name__ == "__main__": main() diff --git a/sdk/consumption/azure-mgmt-consumption/generated_samples/reservation_summaries_monthly_with_billing_profile_id.py b/sdk/consumption/azure-mgmt-consumption/generated_samples/reservation_summaries_monthly_with_billing_profile_id.py index b9a994e9f819..49881a74ea76 100644 --- a/sdk/consumption/azure-mgmt-consumption/generated_samples/reservation_summaries_monthly_with_billing_profile_id.py +++ b/sdk/consumption/azure-mgmt-consumption/generated_samples/reservation_summaries_monthly_with_billing_profile_id.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2024-08-01/ReservationSummariesMonthlyWithBillingProfileId.json +# x-ms-original-file: 2026-06-01/ReservationSummariesMonthlyWithBillingProfileId.json if __name__ == "__main__": main() diff --git a/sdk/consumption/azure-mgmt-consumption/generated_samples/reservation_summaries_monthly_with_billing_profile_id_reservation_id.py b/sdk/consumption/azure-mgmt-consumption/generated_samples/reservation_summaries_monthly_with_billing_profile_id_reservation_id.py index 47dca093d2b1..a3a86ca4380d 100644 --- a/sdk/consumption/azure-mgmt-consumption/generated_samples/reservation_summaries_monthly_with_billing_profile_id_reservation_id.py +++ b/sdk/consumption/azure-mgmt-consumption/generated_samples/reservation_summaries_monthly_with_billing_profile_id_reservation_id.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2024-08-01/ReservationSummariesMonthlyWithBillingProfileIdReservationId.json +# x-ms-original-file: 2026-06-01/ReservationSummariesMonthlyWithBillingProfileIdReservationId.json if __name__ == "__main__": main() diff --git a/sdk/consumption/azure-mgmt-consumption/generated_samples/reservation_summaries_monthly_with_reservation_id.py b/sdk/consumption/azure-mgmt-consumption/generated_samples/reservation_summaries_monthly_with_reservation_id.py index f54063220218..978527f27283 100644 --- a/sdk/consumption/azure-mgmt-consumption/generated_samples/reservation_summaries_monthly_with_reservation_id.py +++ b/sdk/consumption/azure-mgmt-consumption/generated_samples/reservation_summaries_monthly_with_reservation_id.py @@ -39,6 +39,6 @@ def main(): print(item) -# x-ms-original-file: 2024-08-01/ReservationSummariesMonthlyWithReservationId.json +# x-ms-original-file: 2026-06-01/ReservationSummariesMonthlyWithReservationId.json if __name__ == "__main__": main() diff --git a/sdk/consumption/azure-mgmt-consumption/generated_samples/reservation_transactions_list_by_billing_profile_id.py b/sdk/consumption/azure-mgmt-consumption/generated_samples/reservation_transactions_list_by_billing_profile_id.py index cba4943812d1..ba82b9729453 100644 --- a/sdk/consumption/azure-mgmt-consumption/generated_samples/reservation_transactions_list_by_billing_profile_id.py +++ b/sdk/consumption/azure-mgmt-consumption/generated_samples/reservation_transactions_list_by_billing_profile_id.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2024-08-01/ReservationTransactionsListByBillingProfileId.json +# x-ms-original-file: 2026-06-01/ReservationTransactionsListByBillingProfileId.json if __name__ == "__main__": main() diff --git a/sdk/consumption/azure-mgmt-consumption/generated_samples/reservation_transactions_list_by_enrollment_number.py b/sdk/consumption/azure-mgmt-consumption/generated_samples/reservation_transactions_list_by_enrollment_number.py index 92ac66065c3c..93899d8d5039 100644 --- a/sdk/consumption/azure-mgmt-consumption/generated_samples/reservation_transactions_list_by_enrollment_number.py +++ b/sdk/consumption/azure-mgmt-consumption/generated_samples/reservation_transactions_list_by_enrollment_number.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2024-08-01/ReservationTransactionsListByEnrollmentNumber.json +# x-ms-original-file: 2026-06-01/ReservationTransactionsListByEnrollmentNumber.json if __name__ == "__main__": main() diff --git a/sdk/consumption/azure-mgmt-consumption/generated_samples/tags.py b/sdk/consumption/azure-mgmt-consumption/generated_samples/tags.py index 931a0832e9da..54a5974fb9d4 100644 --- a/sdk/consumption/azure-mgmt-consumption/generated_samples/tags.py +++ b/sdk/consumption/azure-mgmt-consumption/generated_samples/tags.py @@ -36,6 +36,6 @@ def main(): print(response) -# x-ms-original-file: 2024-08-01/Tags.json +# x-ms-original-file: 2026-06-01/Tags.json if __name__ == "__main__": main() diff --git a/sdk/consumption/azure-mgmt-consumption/generated_samples/usage_details_expand.py b/sdk/consumption/azure-mgmt-consumption/generated_samples/usage_details_expand.py index 543d0ef17610..85a270405edc 100644 --- a/sdk/consumption/azure-mgmt-consumption/generated_samples/usage_details_expand.py +++ b/sdk/consumption/azure-mgmt-consumption/generated_samples/usage_details_expand.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2024-08-01/UsageDetailsExpand.json +# x-ms-original-file: 2026-06-01/UsageDetailsExpand.json if __name__ == "__main__": main() diff --git a/sdk/consumption/azure-mgmt-consumption/generated_samples/usage_details_list.py b/sdk/consumption/azure-mgmt-consumption/generated_samples/usage_details_list.py index c620f400af9d..3f55d45b9b78 100644 --- a/sdk/consumption/azure-mgmt-consumption/generated_samples/usage_details_list.py +++ b/sdk/consumption/azure-mgmt-consumption/generated_samples/usage_details_list.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2024-08-01/UsageDetailsList.json +# x-ms-original-file: 2026-06-01/UsageDetailsList.json if __name__ == "__main__": main() diff --git a/sdk/consumption/azure-mgmt-consumption/generated_samples/usage_details_list_by_billing_account.py b/sdk/consumption/azure-mgmt-consumption/generated_samples/usage_details_list_by_billing_account.py index 4370941ec461..3e89ebfa9f02 100644 --- a/sdk/consumption/azure-mgmt-consumption/generated_samples/usage_details_list_by_billing_account.py +++ b/sdk/consumption/azure-mgmt-consumption/generated_samples/usage_details_list_by_billing_account.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2024-08-01/UsageDetailsListByBillingAccount.json +# x-ms-original-file: 2026-06-01/UsageDetailsListByBillingAccount.json if __name__ == "__main__": main() diff --git a/sdk/consumption/azure-mgmt-consumption/generated_samples/usage_details_list_by_department.py b/sdk/consumption/azure-mgmt-consumption/generated_samples/usage_details_list_by_department.py index 0a87072de400..d26d000efd9e 100644 --- a/sdk/consumption/azure-mgmt-consumption/generated_samples/usage_details_list_by_department.py +++ b/sdk/consumption/azure-mgmt-consumption/generated_samples/usage_details_list_by_department.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2024-08-01/UsageDetailsListByDepartment.json +# x-ms-original-file: 2026-06-01/UsageDetailsListByDepartment.json if __name__ == "__main__": main() diff --git a/sdk/consumption/azure-mgmt-consumption/generated_samples/usage_details_list_by_enrollment_account.py b/sdk/consumption/azure-mgmt-consumption/generated_samples/usage_details_list_by_enrollment_account.py index a50251a4d91b..61d80e1ab0c0 100644 --- a/sdk/consumption/azure-mgmt-consumption/generated_samples/usage_details_list_by_enrollment_account.py +++ b/sdk/consumption/azure-mgmt-consumption/generated_samples/usage_details_list_by_enrollment_account.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2024-08-01/UsageDetailsListByEnrollmentAccount.json +# x-ms-original-file: 2026-06-01/UsageDetailsListByEnrollmentAccount.json if __name__ == "__main__": main() diff --git a/sdk/consumption/azure-mgmt-consumption/generated_samples/usage_details_list_by_management_group.py b/sdk/consumption/azure-mgmt-consumption/generated_samples/usage_details_list_by_management_group.py index f0cf51b15a7b..81c2673edfc2 100644 --- a/sdk/consumption/azure-mgmt-consumption/generated_samples/usage_details_list_by_management_group.py +++ b/sdk/consumption/azure-mgmt-consumption/generated_samples/usage_details_list_by_management_group.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2024-08-01/UsageDetailsListByManagementGroup.json +# x-ms-original-file: 2026-06-01/UsageDetailsListByManagementGroup.json if __name__ == "__main__": main() diff --git a/sdk/consumption/azure-mgmt-consumption/generated_samples/usage_details_list_by_mca_billing_account.py b/sdk/consumption/azure-mgmt-consumption/generated_samples/usage_details_list_by_mca_billing_account.py index 37768e4eb784..cc744fa3a338 100644 --- a/sdk/consumption/azure-mgmt-consumption/generated_samples/usage_details_list_by_mca_billing_account.py +++ b/sdk/consumption/azure-mgmt-consumption/generated_samples/usage_details_list_by_mca_billing_account.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2024-08-01/UsageDetailsListByMCABillingAccount.json +# x-ms-original-file: 2026-06-01/UsageDetailsListByMCABillingAccount.json if __name__ == "__main__": main() diff --git a/sdk/consumption/azure-mgmt-consumption/generated_samples/usage_details_list_by_mca_billing_profile.py b/sdk/consumption/azure-mgmt-consumption/generated_samples/usage_details_list_by_mca_billing_profile.py index b0d04f21f24a..22294b42e22f 100644 --- a/sdk/consumption/azure-mgmt-consumption/generated_samples/usage_details_list_by_mca_billing_profile.py +++ b/sdk/consumption/azure-mgmt-consumption/generated_samples/usage_details_list_by_mca_billing_profile.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2024-08-01/UsageDetailsListByMCABillingProfile.json +# x-ms-original-file: 2026-06-01/UsageDetailsListByMCABillingProfile.json if __name__ == "__main__": main() diff --git a/sdk/consumption/azure-mgmt-consumption/generated_samples/usage_details_list_by_mca_customer.py b/sdk/consumption/azure-mgmt-consumption/generated_samples/usage_details_list_by_mca_customer.py index 623344c1e859..a095bc195b22 100644 --- a/sdk/consumption/azure-mgmt-consumption/generated_samples/usage_details_list_by_mca_customer.py +++ b/sdk/consumption/azure-mgmt-consumption/generated_samples/usage_details_list_by_mca_customer.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2024-08-01/UsageDetailsListByMCACustomer.json +# x-ms-original-file: 2026-06-01/UsageDetailsListByMCACustomer.json if __name__ == "__main__": main() diff --git a/sdk/consumption/azure-mgmt-consumption/generated_samples/usage_details_list_by_mca_invoice_section.py b/sdk/consumption/azure-mgmt-consumption/generated_samples/usage_details_list_by_mca_invoice_section.py index 4f4ae1aabdd4..aa42b9b1e15d 100644 --- a/sdk/consumption/azure-mgmt-consumption/generated_samples/usage_details_list_by_mca_invoice_section.py +++ b/sdk/consumption/azure-mgmt-consumption/generated_samples/usage_details_list_by_mca_invoice_section.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2024-08-01/UsageDetailsListByMCAInvoiceSection.json +# x-ms-original-file: 2026-06-01/UsageDetailsListByMCAInvoiceSection.json if __name__ == "__main__": main() diff --git a/sdk/consumption/azure-mgmt-consumption/generated_samples/usage_details_list_by_metric_actual_cost.py b/sdk/consumption/azure-mgmt-consumption/generated_samples/usage_details_list_by_metric_actual_cost.py index d5fc410affcf..8a15aebbcc3c 100644 --- a/sdk/consumption/azure-mgmt-consumption/generated_samples/usage_details_list_by_metric_actual_cost.py +++ b/sdk/consumption/azure-mgmt-consumption/generated_samples/usage_details_list_by_metric_actual_cost.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2024-08-01/UsageDetailsListByMetricActualCost.json +# x-ms-original-file: 2026-06-01/UsageDetailsListByMetricActualCost.json if __name__ == "__main__": main() diff --git a/sdk/consumption/azure-mgmt-consumption/generated_samples/usage_details_list_by_metric_amortized_cost.py b/sdk/consumption/azure-mgmt-consumption/generated_samples/usage_details_list_by_metric_amortized_cost.py index e70a7b54b148..a5a42c2a3696 100644 --- a/sdk/consumption/azure-mgmt-consumption/generated_samples/usage_details_list_by_metric_amortized_cost.py +++ b/sdk/consumption/azure-mgmt-consumption/generated_samples/usage_details_list_by_metric_amortized_cost.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2024-08-01/UsageDetailsListByMetricAmortizedCost.json +# x-ms-original-file: 2026-06-01/UsageDetailsListByMetricAmortizedCost.json if __name__ == "__main__": main() diff --git a/sdk/consumption/azure-mgmt-consumption/generated_samples/usage_details_list_by_metric_usage.py b/sdk/consumption/azure-mgmt-consumption/generated_samples/usage_details_list_by_metric_usage.py index 2ab08389063b..1f62de041777 100644 --- a/sdk/consumption/azure-mgmt-consumption/generated_samples/usage_details_list_by_metric_usage.py +++ b/sdk/consumption/azure-mgmt-consumption/generated_samples/usage_details_list_by_metric_usage.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2024-08-01/UsageDetailsListByMetricUsage.json +# x-ms-original-file: 2026-06-01/UsageDetailsListByMetricUsage.json if __name__ == "__main__": main() diff --git a/sdk/consumption/azure-mgmt-consumption/generated_samples/usage_details_list_filter_by_tag.py b/sdk/consumption/azure-mgmt-consumption/generated_samples/usage_details_list_filter_by_tag.py index 4f2ee946ca23..432e960d4dc0 100644 --- a/sdk/consumption/azure-mgmt-consumption/generated_samples/usage_details_list_filter_by_tag.py +++ b/sdk/consumption/azure-mgmt-consumption/generated_samples/usage_details_list_filter_by_tag.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2024-08-01/UsageDetailsListFilterByTag.json +# x-ms-original-file: 2026-06-01/UsageDetailsListFilterByTag.json if __name__ == "__main__": main() diff --git a/sdk/consumption/azure-mgmt-consumption/generated_samples/usage_details_list_for_billing_period.py b/sdk/consumption/azure-mgmt-consumption/generated_samples/usage_details_list_for_billing_period.py index a6fd8c66385b..9d40e1647913 100644 --- a/sdk/consumption/azure-mgmt-consumption/generated_samples/usage_details_list_for_billing_period.py +++ b/sdk/consumption/azure-mgmt-consumption/generated_samples/usage_details_list_for_billing_period.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2024-08-01/UsageDetailsListForBillingPeriod.json +# x-ms-original-file: 2026-06-01/UsageDetailsListForBillingPeriod.json if __name__ == "__main__": main() diff --git a/sdk/consumption/azure-mgmt-consumption/generated_samples/usage_details_list_for_billing_period_by_billing_account.py b/sdk/consumption/azure-mgmt-consumption/generated_samples/usage_details_list_for_billing_period_by_billing_account.py index bca8fb922615..892dfec39944 100644 --- a/sdk/consumption/azure-mgmt-consumption/generated_samples/usage_details_list_for_billing_period_by_billing_account.py +++ b/sdk/consumption/azure-mgmt-consumption/generated_samples/usage_details_list_for_billing_period_by_billing_account.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2024-08-01/UsageDetailsListForBillingPeriodByBillingAccount.json +# x-ms-original-file: 2026-06-01/UsageDetailsListForBillingPeriodByBillingAccount.json if __name__ == "__main__": main() diff --git a/sdk/consumption/azure-mgmt-consumption/generated_samples/usage_details_list_for_billing_period_by_department.py b/sdk/consumption/azure-mgmt-consumption/generated_samples/usage_details_list_for_billing_period_by_department.py index efdf91ad5869..556c4d7bdd01 100644 --- a/sdk/consumption/azure-mgmt-consumption/generated_samples/usage_details_list_for_billing_period_by_department.py +++ b/sdk/consumption/azure-mgmt-consumption/generated_samples/usage_details_list_for_billing_period_by_department.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2024-08-01/UsageDetailsListForBillingPeriodByDepartment.json +# x-ms-original-file: 2026-06-01/UsageDetailsListForBillingPeriodByDepartment.json if __name__ == "__main__": main() diff --git a/sdk/consumption/azure-mgmt-consumption/generated_samples/usage_details_list_for_billing_period_by_enrollment_account.py b/sdk/consumption/azure-mgmt-consumption/generated_samples/usage_details_list_for_billing_period_by_enrollment_account.py index d3ec370fae32..c985e102eb13 100644 --- a/sdk/consumption/azure-mgmt-consumption/generated_samples/usage_details_list_for_billing_period_by_enrollment_account.py +++ b/sdk/consumption/azure-mgmt-consumption/generated_samples/usage_details_list_for_billing_period_by_enrollment_account.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2024-08-01/UsageDetailsListForBillingPeriodByEnrollmentAccount.json +# x-ms-original-file: 2026-06-01/UsageDetailsListForBillingPeriodByEnrollmentAccount.json if __name__ == "__main__": main() diff --git a/sdk/consumption/azure-mgmt-consumption/generated_samples/usage_details_list_for_billing_period_by_management_group.py b/sdk/consumption/azure-mgmt-consumption/generated_samples/usage_details_list_for_billing_period_by_management_group.py index 193ce797fc52..8b18bc07ab78 100644 --- a/sdk/consumption/azure-mgmt-consumption/generated_samples/usage_details_list_for_billing_period_by_management_group.py +++ b/sdk/consumption/azure-mgmt-consumption/generated_samples/usage_details_list_for_billing_period_by_management_group.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2024-08-01/UsageDetailsListForBillingPeriodByManagementGroup.json +# x-ms-original-file: 2026-06-01/UsageDetailsListForBillingPeriodByManagementGroup.json if __name__ == "__main__": main() diff --git a/sdk/consumption/azure-mgmt-consumption/tsp-location.yaml b/sdk/consumption/azure-mgmt-consumption/tsp-location.yaml index 87f208e1b79e..490d31fb72ad 100644 --- a/sdk/consumption/azure-mgmt-consumption/tsp-location.yaml +++ b/sdk/consumption/azure-mgmt-consumption/tsp-location.yaml @@ -1,4 +1,4 @@ directory: specification/consumption/resource-manager/Microsoft.Consumption/Consumption -commit: cf49df24bee763924bb4d9abceebe4fd1916a6ad +commit: 069ddc2a68bac3f5e5f51a9e3c4636a5316cade3 repo: Azure/azure-rest-api-specs additionalDirectories: