diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/api/Azure.ResourceManager.Consumption.netstandard2.0.cs b/sdk/consumption/Azure.ResourceManager.Consumption/api/Azure.ResourceManager.Consumption.netstandard2.0.cs index 14d0dc53159d..0d0380857f1a 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/api/Azure.ResourceManager.Consumption.netstandard2.0.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/api/Azure.ResourceManager.Consumption.netstandard2.0.cs @@ -330,6 +330,7 @@ public ConsumptionCreditSummary() { } public string CreditCurrency { get { throw null; } } public Azure.ETag? ETag { get { throw null; } set { } } public Azure.ResourceManager.Consumption.Models.ConsumptionAmount ExpiredCredit { get { throw null; } } + public bool? IsEstimatedBalance { get { throw null; } } public Azure.ResourceManager.Consumption.Models.ConsumptionAmount PendingCreditAdjustments { get { throw null; } } public Azure.ResourceManager.Consumption.Models.ConsumptionAmount PendingEligibleCharges { get { throw null; } } public Azure.ResourceManager.Consumption.Models.ConsumptionReseller Reseller { get { throw null; } } @@ -354,6 +355,7 @@ public ConsumptionEventSummary() { } public Azure.ETag? ETag { get { throw null; } set { } } public Azure.ResourceManager.Consumption.Models.ConsumptionEventType? EventType { get { throw null; } set { } } public string InvoiceNumber { get { throw null; } } + public bool? IsEstimatedBalance { get { throw null; } } public Azure.Core.ResourceIdentifier LotId { get { throw null; } } public string LotSource { get { throw null; } } public Azure.ResourceManager.Consumption.Models.ConsumptionAmount NewCredit { get { throw null; } } @@ -435,6 +437,7 @@ public ConsumptionLotSummary() { } public string CreditCurrency { get { throw null; } } public Azure.ETag? ETag { get { throw null; } set { } } public System.DateTimeOffset? ExpireOn { get { throw null; } } + public bool? IsEstimatedBalance { get { throw null; } } public Azure.ResourceManager.Consumption.Models.ConsumptionAmount OriginalAmount { get { throw null; } } public Azure.ResourceManager.Consumption.Models.ConsumptionAmountWithExchangeRate OriginalAmountInBillingCurrency { get { throw null; } } public string PoNumber { get { throw null; } } diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionCreditSummary.Serialization.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionCreditSummary.Serialization.cs index 381736302b18..7b881f1c882c 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionCreditSummary.Serialization.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionCreditSummary.Serialization.cs @@ -42,6 +42,7 @@ internal static ConsumptionCreditSummary DeserializeConsumptionCreditSummary(Jso Optional creditCurrency = default; Optional billingCurrency = default; Optional reseller = default; + Optional isEstimatedBalance = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("eTag"u8)) @@ -148,11 +149,21 @@ internal static ConsumptionCreditSummary DeserializeConsumptionCreditSummary(Jso reseller = ConsumptionReseller.DeserializeConsumptionReseller(property0.Value); continue; } + if (property0.NameEquals("isEstimatedBalance"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + property0.ThrowNonNullablePropertyIsNull(); + continue; + } + isEstimatedBalance = property0.Value.GetBoolean(); + continue; + } } continue; } } - return new ConsumptionCreditSummary(id, name, type, systemData.Value, balanceSummary.Value, pendingCreditAdjustments.Value, expiredCredit.Value, pendingEligibleCharges.Value, creditCurrency.Value, billingCurrency.Value, reseller.Value, Optional.ToNullable(eTag)); + return new ConsumptionCreditSummary(id, name, type, systemData.Value, balanceSummary.Value, pendingCreditAdjustments.Value, expiredCredit.Value, pendingEligibleCharges.Value, creditCurrency.Value, billingCurrency.Value, reseller.Value, Optional.ToNullable(isEstimatedBalance), Optional.ToNullable(eTag)); } } } diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionCreditSummary.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionCreditSummary.cs index a646c6b7a66f..c615e42de9db 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionCreditSummary.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionCreditSummary.cs @@ -31,8 +31,9 @@ public ConsumptionCreditSummary() /// The credit currency. /// The billing currency. /// Credit's reseller. + /// If true, the listed details are based on an estimation and it will be subjected to change. /// 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. - internal ConsumptionCreditSummary(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, CreditBalanceSummary balanceSummary, ConsumptionAmount pendingCreditAdjustments, ConsumptionAmount expiredCredit, ConsumptionAmount pendingEligibleCharges, string creditCurrency, string billingCurrency, ConsumptionReseller reseller, ETag? etag) : base(id, name, resourceType, systemData) + internal ConsumptionCreditSummary(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, CreditBalanceSummary balanceSummary, ConsumptionAmount pendingCreditAdjustments, ConsumptionAmount expiredCredit, ConsumptionAmount pendingEligibleCharges, string creditCurrency, string billingCurrency, ConsumptionReseller reseller, bool? isEstimatedBalance, ETag? etag) : base(id, name, resourceType, systemData) { BalanceSummary = balanceSummary; PendingCreditAdjustments = pendingCreditAdjustments; @@ -41,6 +42,7 @@ internal ConsumptionCreditSummary(ResourceIdentifier id, string name, ResourceTy CreditCurrency = creditCurrency; BillingCurrency = billingCurrency; Reseller = reseller; + IsEstimatedBalance = isEstimatedBalance; ETag = etag; } @@ -58,6 +60,8 @@ internal ConsumptionCreditSummary(ResourceIdentifier id, string name, ResourceTy public string BillingCurrency { get; } /// Credit's reseller. public ConsumptionReseller Reseller { get; } + /// If true, the listed details are based on an estimation and it will be subjected to change. + public bool? IsEstimatedBalance { get; } /// 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. public ETag? ETag { get; set; } } diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionEventSummary.Serialization.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionEventSummary.Serialization.cs index d94a5fd4fcc4..28c384e2d914 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionEventSummary.Serialization.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionEventSummary.Serialization.cs @@ -63,6 +63,7 @@ internal static ConsumptionEventSummary DeserializeConsumptionEventSummary(JsonE Optional adjustmentsInBillingCurrency = default; Optional chargesInBillingCurrency = default; Optional closedBalanceInBillingCurrency = default; + Optional isEstimatedBalance = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("eTag"u8)) @@ -299,11 +300,21 @@ internal static ConsumptionEventSummary DeserializeConsumptionEventSummary(JsonE closedBalanceInBillingCurrency = ConsumptionAmountWithExchangeRate.DeserializeConsumptionAmountWithExchangeRate(property0.Value); continue; } + if (property0.NameEquals("isEstimatedBalance"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + property0.ThrowNonNullablePropertyIsNull(); + continue; + } + isEstimatedBalance = property0.Value.GetBoolean(); + continue; + } } continue; } } - return new ConsumptionEventSummary(id, name, type, systemData.Value, Optional.ToNullable(transactionDate), description.Value, newCredit.Value, adjustments.Value, creditExpired.Value, charges.Value, closedBalance.Value, Optional.ToNullable(eventType), invoiceNumber.Value, billingProfileId.Value, billingProfileDisplayName.Value, lotId.Value, lotSource.Value, canceledCredit.Value, creditCurrency.Value, billingCurrency.Value, reseller.Value, creditExpiredInBillingCurrency.Value, newCreditInBillingCurrency.Value, adjustmentsInBillingCurrency.Value, chargesInBillingCurrency.Value, closedBalanceInBillingCurrency.Value, Optional.ToNullable(eTag)); + return new ConsumptionEventSummary(id, name, type, systemData.Value, Optional.ToNullable(transactionDate), description.Value, newCredit.Value, adjustments.Value, creditExpired.Value, charges.Value, closedBalance.Value, Optional.ToNullable(eventType), invoiceNumber.Value, billingProfileId.Value, billingProfileDisplayName.Value, lotId.Value, lotSource.Value, canceledCredit.Value, creditCurrency.Value, billingCurrency.Value, reseller.Value, creditExpiredInBillingCurrency.Value, newCreditInBillingCurrency.Value, adjustmentsInBillingCurrency.Value, chargesInBillingCurrency.Value, closedBalanceInBillingCurrency.Value, Optional.ToNullable(isEstimatedBalance), Optional.ToNullable(eTag)); } } } diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionEventSummary.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionEventSummary.cs index 31119eaa9669..35236da53427 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionEventSummary.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionEventSummary.cs @@ -47,8 +47,9 @@ public ConsumptionEventSummary() /// The amount of balance adjustment in billing currency. /// The amount of charges for events of type SettleCharges and PendingEligibleCharges in billing currency. /// The balance in billing currency after the event. + /// If true, the listed details are based on an estimation and it will be subjected to change. /// 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. - internal ConsumptionEventSummary(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, DateTimeOffset? transactOn, string description, ConsumptionAmount newCredit, ConsumptionAmount adjustments, ConsumptionAmount creditExpired, ConsumptionAmount charges, ConsumptionAmount closedBalance, ConsumptionEventType? eventType, string invoiceNumber, ResourceIdentifier billingProfileId, string billingProfileDisplayName, ResourceIdentifier lotId, string lotSource, ConsumptionAmount canceledCredit, string creditCurrency, string billingCurrency, ConsumptionReseller reseller, ConsumptionAmountWithExchangeRate creditExpiredInBillingCurrency, ConsumptionAmountWithExchangeRate newCreditInBillingCurrency, ConsumptionAmountWithExchangeRate adjustmentsInBillingCurrency, ConsumptionAmountWithExchangeRate chargesInBillingCurrency, ConsumptionAmountWithExchangeRate closedBalanceInBillingCurrency, ETag? etag) : base(id, name, resourceType, systemData) + internal ConsumptionEventSummary(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, DateTimeOffset? transactOn, string description, ConsumptionAmount newCredit, ConsumptionAmount adjustments, ConsumptionAmount creditExpired, ConsumptionAmount charges, ConsumptionAmount closedBalance, ConsumptionEventType? eventType, string invoiceNumber, ResourceIdentifier billingProfileId, string billingProfileDisplayName, ResourceIdentifier lotId, string lotSource, ConsumptionAmount canceledCredit, string creditCurrency, string billingCurrency, ConsumptionReseller reseller, ConsumptionAmountWithExchangeRate creditExpiredInBillingCurrency, ConsumptionAmountWithExchangeRate newCreditInBillingCurrency, ConsumptionAmountWithExchangeRate adjustmentsInBillingCurrency, ConsumptionAmountWithExchangeRate chargesInBillingCurrency, ConsumptionAmountWithExchangeRate closedBalanceInBillingCurrency, bool? isEstimatedBalance, ETag? etag) : base(id, name, resourceType, systemData) { TransactOn = transactOn; Description = description; @@ -72,6 +73,7 @@ internal ConsumptionEventSummary(ResourceIdentifier id, string name, ResourceTyp AdjustmentsInBillingCurrency = adjustmentsInBillingCurrency; ChargesInBillingCurrency = chargesInBillingCurrency; ClosedBalanceInBillingCurrency = closedBalanceInBillingCurrency; + IsEstimatedBalance = isEstimatedBalance; ETag = etag; } @@ -119,6 +121,8 @@ internal ConsumptionEventSummary(ResourceIdentifier id, string name, ResourceTyp public ConsumptionAmountWithExchangeRate ChargesInBillingCurrency { get; } /// The balance in billing currency after the event. public ConsumptionAmountWithExchangeRate ClosedBalanceInBillingCurrency { get; } + /// If true, the listed details are based on an estimation and it will be subjected to change. + public bool? IsEstimatedBalance { get; } /// 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. public ETag? ETag { get; set; } } diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionLotSummary.Serialization.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionLotSummary.Serialization.cs index 582fb7a1ce01..eb9961e27dd8 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionLotSummary.Serialization.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionLotSummary.Serialization.cs @@ -49,6 +49,7 @@ internal static ConsumptionLotSummary DeserializeConsumptionLotSummary(JsonEleme Optional originalAmountInBillingCurrency = default; Optional closedBalanceInBillingCurrency = default; Optional reseller = default; + Optional isEstimatedBalance = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("eTag"u8)) @@ -210,11 +211,21 @@ internal static ConsumptionLotSummary DeserializeConsumptionLotSummary(JsonEleme reseller = ConsumptionReseller.DeserializeConsumptionReseller(property0.Value); continue; } + if (property0.NameEquals("isEstimatedBalance"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + property0.ThrowNonNullablePropertyIsNull(); + continue; + } + isEstimatedBalance = property0.Value.GetBoolean(); + continue; + } } continue; } } - return new ConsumptionLotSummary(id, name, type, systemData.Value, originalAmount.Value, closedBalance.Value, Optional.ToNullable(source), Optional.ToNullable(startDate), Optional.ToNullable(expirationDate), poNumber.Value, Optional.ToNullable(purchasedDate), Optional.ToNullable(status), creditCurrency.Value, billingCurrency.Value, originalAmountInBillingCurrency.Value, closedBalanceInBillingCurrency.Value, reseller.Value, Optional.ToNullable(eTag)); + return new ConsumptionLotSummary(id, name, type, systemData.Value, originalAmount.Value, closedBalance.Value, Optional.ToNullable(source), Optional.ToNullable(startDate), Optional.ToNullable(expirationDate), poNumber.Value, Optional.ToNullable(purchasedDate), Optional.ToNullable(status), creditCurrency.Value, billingCurrency.Value, originalAmountInBillingCurrency.Value, closedBalanceInBillingCurrency.Value, reseller.Value, Optional.ToNullable(isEstimatedBalance), Optional.ToNullable(eTag)); } } } diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionLotSummary.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionLotSummary.cs index 02de5bb3a660..8488918749f2 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionLotSummary.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionLotSummary.cs @@ -38,8 +38,9 @@ public ConsumptionLotSummary() /// The original amount of a lot in billing currency. /// The balance as of the last invoice in billing currency. /// The reseller of the lot. + /// If true, the listed details are based on an estimation and it will be subjected to change. /// 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. - internal ConsumptionLotSummary(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, ConsumptionAmount originalAmount, ConsumptionAmount closedBalance, ConsumptionLotSource? source, DateTimeOffset? startOn, DateTimeOffset? expireOn, string poNumber, DateTimeOffset? purchasedOn, ConsumptionLotStatus? status, string creditCurrency, string billingCurrency, ConsumptionAmountWithExchangeRate originalAmountInBillingCurrency, ConsumptionAmountWithExchangeRate closedBalanceInBillingCurrency, ConsumptionReseller reseller, ETag? etag) : base(id, name, resourceType, systemData) + internal ConsumptionLotSummary(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, ConsumptionAmount originalAmount, ConsumptionAmount closedBalance, ConsumptionLotSource? source, DateTimeOffset? startOn, DateTimeOffset? expireOn, string poNumber, DateTimeOffset? purchasedOn, ConsumptionLotStatus? status, string creditCurrency, string billingCurrency, ConsumptionAmountWithExchangeRate originalAmountInBillingCurrency, ConsumptionAmountWithExchangeRate closedBalanceInBillingCurrency, ConsumptionReseller reseller, bool? isEstimatedBalance, ETag? etag) : base(id, name, resourceType, systemData) { OriginalAmount = originalAmount; ClosedBalance = closedBalance; @@ -54,6 +55,7 @@ internal ConsumptionLotSummary(ResourceIdentifier id, string name, ResourceType OriginalAmountInBillingCurrency = originalAmountInBillingCurrency; ClosedBalanceInBillingCurrency = closedBalanceInBillingCurrency; Reseller = reseller; + IsEstimatedBalance = isEstimatedBalance; ETag = etag; } @@ -83,6 +85,8 @@ internal ConsumptionLotSummary(ResourceIdentifier id, string name, ResourceType public ConsumptionAmountWithExchangeRate ClosedBalanceInBillingCurrency { get; } /// The reseller of the lot. public ConsumptionReseller Reseller { get; } + /// If true, the listed details are based on an estimation and it will be subjected to change. + public bool? IsEstimatedBalance { get; } /// 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. public ETag? ETag { get; set; } } diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/RestOperations/AggregatedCostRestOperations.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/RestOperations/AggregatedCostRestOperations.cs index cad91880758e..b3bc9452e7a2 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/RestOperations/AggregatedCostRestOperations.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/RestOperations/AggregatedCostRestOperations.cs @@ -33,7 +33,7 @@ public AggregatedCostRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2021-10-01"; + _apiVersion = apiVersion ?? "2023-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/RestOperations/BalancesRestOperations.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/RestOperations/BalancesRestOperations.cs index 463e119f3c74..f8b9c20e656a 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/RestOperations/BalancesRestOperations.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/RestOperations/BalancesRestOperations.cs @@ -33,7 +33,7 @@ public BalancesRestOperations(HttpPipeline pipeline, string applicationId, Uri e { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2021-10-01"; + _apiVersion = apiVersion ?? "2023-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/RestOperations/BudgetsRestOperations.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/RestOperations/BudgetsRestOperations.cs index 31877adb9e3e..8d4bca52537d 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/RestOperations/BudgetsRestOperations.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/RestOperations/BudgetsRestOperations.cs @@ -33,7 +33,7 @@ public BudgetsRestOperations(HttpPipeline pipeline, string applicationId, Uri en { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2021-10-01"; + _apiVersion = apiVersion ?? "2023-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/RestOperations/CreditsRestOperations.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/RestOperations/CreditsRestOperations.cs index 5970e691a72a..a72556fb55b2 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/RestOperations/CreditsRestOperations.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/RestOperations/CreditsRestOperations.cs @@ -33,7 +33,7 @@ public CreditsRestOperations(HttpPipeline pipeline, string applicationId, Uri en { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2021-10-01"; + _apiVersion = apiVersion ?? "2023-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/RestOperations/EventsRestOperations.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/RestOperations/EventsRestOperations.cs index 151b06abd7ba..0f058bedff5a 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/RestOperations/EventsRestOperations.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/RestOperations/EventsRestOperations.cs @@ -33,7 +33,7 @@ public EventsRestOperations(HttpPipeline pipeline, string applicationId, Uri end { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2021-10-01"; + _apiVersion = apiVersion ?? "2023-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/RestOperations/LotsRestOperations.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/RestOperations/LotsRestOperations.cs index 986b3bd2e359..7fb8285d388c 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/RestOperations/LotsRestOperations.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/RestOperations/LotsRestOperations.cs @@ -33,7 +33,7 @@ public LotsRestOperations(HttpPipeline pipeline, string applicationId, Uri endpo { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2021-10-01"; + _apiVersion = apiVersion ?? "2023-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/RestOperations/PriceSheetRestOperations.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/RestOperations/PriceSheetRestOperations.cs index b3f192b997bf..639106ebe616 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/RestOperations/PriceSheetRestOperations.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/RestOperations/PriceSheetRestOperations.cs @@ -33,7 +33,7 @@ public PriceSheetRestOperations(HttpPipeline pipeline, string applicationId, Uri { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2021-10-01"; + _apiVersion = apiVersion ?? "2023-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/RestOperations/ReservationTransactionsRestOperations.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/RestOperations/ReservationTransactionsRestOperations.cs index bd815b029027..21b14d68c600 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/RestOperations/ReservationTransactionsRestOperations.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/RestOperations/ReservationTransactionsRestOperations.cs @@ -33,7 +33,7 @@ public ReservationTransactionsRestOperations(HttpPipeline pipeline, string appli { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2021-10-01"; + _apiVersion = apiVersion ?? "2023-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/RestOperations/ReservationsDetailsRestOperations.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/RestOperations/ReservationsDetailsRestOperations.cs index 7864ae5f415a..484c7fdc3946 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/RestOperations/ReservationsDetailsRestOperations.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/RestOperations/ReservationsDetailsRestOperations.cs @@ -33,7 +33,7 @@ public ReservationsDetailsRestOperations(HttpPipeline pipeline, string applicati { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2021-10-01"; + _apiVersion = apiVersion ?? "2023-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -55,7 +55,7 @@ internal HttpMessage CreateListByReservationOrderRequest(string reservationOrder return message; } - /// Lists the reservations details for provided date range. Note: ARM has a payload size limit of 12MB, so currently callers get 502 when the response size exceeds the ARM limit. In such cases, API call should be made with smaller date ranges. + /// Lists the reservations details for provided date range. Note: ARM has a payload size limit of 12MB, so currently callers get 400 when the response size exceeds the ARM limit. In such cases, API call should be made with smaller date ranges. /// Order Id of the reservation. /// Filter reservation details by date range. The properties/UsageDate for start date and end date. The filter supports 'le' and 'ge'. /// The cancellation token to use. @@ -82,7 +82,7 @@ public async Task> ListByReservationOrder } } - /// Lists the reservations details for provided date range. Note: ARM has a payload size limit of 12MB, so currently callers get 502 when the response size exceeds the ARM limit. In such cases, API call should be made with smaller date ranges. + /// Lists the reservations details for provided date range. Note: ARM has a payload size limit of 12MB, so currently callers get 400 when the response size exceeds the ARM limit. In such cases, API call should be made with smaller date ranges. /// Order Id of the reservation. /// Filter reservation details by date range. The properties/UsageDate for start date and end date. The filter supports 'le' and 'ge'. /// The cancellation token to use. @@ -129,7 +129,7 @@ internal HttpMessage CreateListByReservationOrderAndReservationRequest(string re return message; } - /// Lists the reservations details for provided date range. Note: ARM has a payload size limit of 12MB, so currently callers get 502 when the response size exceeds the ARM limit. In such cases, API call should be made with smaller date ranges. + /// Lists the reservations details for provided date range. Note: ARM has a payload size limit of 12MB, so currently callers get 400 when the response size exceeds the ARM limit. In such cases, API call should be made with smaller date ranges. /// Order Id of the reservation. /// Id of the reservation. /// Filter reservation details by date range. The properties/UsageDate for start date and end date. The filter supports 'le' and 'ge'. @@ -158,7 +158,7 @@ public async Task> ListByReservationOrder } } - /// Lists the reservations details for provided date range. Note: ARM has a payload size limit of 12MB, so currently callers get 502 when the response size exceeds the ARM limit. In such cases, API call should be made with smaller date ranges. + /// Lists the reservations details for provided date range. Note: ARM has a payload size limit of 12MB, so currently callers get 400 when the response size exceeds the ARM limit. In such cases, API call should be made with smaller date ranges. /// Order Id of the reservation. /// Id of the reservation. /// Filter reservation details by date range. The properties/UsageDate for start date and end date. The filter supports 'le' and 'ge'. @@ -224,7 +224,7 @@ internal HttpMessage CreateListRequest(string resourceScope, string startDate, s return message; } - /// Lists the reservations details for the defined scope and provided date range. Note: ARM has a payload size limit of 12MB, so currently callers get 502 when the response size exceeds the ARM limit. In such cases, API call should be made with smaller date ranges. + /// Lists the reservations details for the defined scope and provided date range. Note: ARM has a payload size limit of 12MB, so currently callers get 400 when the response size exceeds the ARM limit. In such cases, API call should be made with smaller date ranges. /// The scope associated with reservations details operations. This includes '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for BillingAccount scope (legacy), and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for BillingProfile scope (modern). /// Start date. Only applicable when querying with billing profile. /// End date. Only applicable when querying with billing profile. @@ -253,7 +253,7 @@ public async Task> ListAsync(string resou } } - /// Lists the reservations details for the defined scope and provided date range. Note: ARM has a payload size limit of 12MB, so currently callers get 502 when the response size exceeds the ARM limit. In such cases, API call should be made with smaller date ranges. + /// Lists the reservations details for the defined scope and provided date range. Note: ARM has a payload size limit of 12MB, so currently callers get 400 when the response size exceeds the ARM limit. In such cases, API call should be made with smaller date ranges. /// The scope associated with reservations details operations. This includes '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for BillingAccount scope (legacy), and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for BillingProfile scope (modern). /// Start date. Only applicable when querying with billing profile. /// End date. Only applicable when querying with billing profile. @@ -296,7 +296,7 @@ internal HttpMessage CreateListByReservationOrderNextPageRequest(string nextLink return message; } - /// Lists the reservations details for provided date range. Note: ARM has a payload size limit of 12MB, so currently callers get 502 when the response size exceeds the ARM limit. In such cases, API call should be made with smaller date ranges. + /// Lists the reservations details for provided date range. Note: ARM has a payload size limit of 12MB, so currently callers get 400 when the response size exceeds the ARM limit. In such cases, API call should be made with smaller date ranges. /// The URL to the next page of results. /// Order Id of the reservation. /// Filter reservation details by date range. The properties/UsageDate for start date and end date. The filter supports 'le' and 'ge'. @@ -325,7 +325,7 @@ public async Task> ListByReservationOrder } } - /// Lists the reservations details for provided date range. Note: ARM has a payload size limit of 12MB, so currently callers get 502 when the response size exceeds the ARM limit. In such cases, API call should be made with smaller date ranges. + /// Lists the reservations details for provided date range. Note: ARM has a payload size limit of 12MB, so currently callers get 400 when the response size exceeds the ARM limit. In such cases, API call should be made with smaller date ranges. /// The URL to the next page of results. /// Order Id of the reservation. /// Filter reservation details by date range. The properties/UsageDate for start date and end date. The filter supports 'le' and 'ge'. @@ -368,7 +368,7 @@ internal HttpMessage CreateListByReservationOrderAndReservationNextPageRequest(s return message; } - /// Lists the reservations details for provided date range. Note: ARM has a payload size limit of 12MB, so currently callers get 502 when the response size exceeds the ARM limit. In such cases, API call should be made with smaller date ranges. + /// Lists the reservations details for provided date range. Note: ARM has a payload size limit of 12MB, so currently callers get 400 when the response size exceeds the ARM limit. In such cases, API call should be made with smaller date ranges. /// The URL to the next page of results. /// Order Id of the reservation. /// Id of the reservation. @@ -399,7 +399,7 @@ public async Task> ListByReservationOrder } } - /// Lists the reservations details for provided date range. Note: ARM has a payload size limit of 12MB, so currently callers get 502 when the response size exceeds the ARM limit. In such cases, API call should be made with smaller date ranges. + /// Lists the reservations details for provided date range. Note: ARM has a payload size limit of 12MB, so currently callers get 400 when the response size exceeds the ARM limit. In such cases, API call should be made with smaller date ranges. /// The URL to the next page of results. /// Order Id of the reservation. /// Id of the reservation. @@ -444,7 +444,7 @@ internal HttpMessage CreateListNextPageRequest(string nextLink, string resourceS return message; } - /// Lists the reservations details for the defined scope and provided date range. Note: ARM has a payload size limit of 12MB, so currently callers get 502 when the response size exceeds the ARM limit. In such cases, API call should be made with smaller date ranges. + /// Lists the reservations details for the defined scope and provided date range. Note: ARM has a payload size limit of 12MB, so currently callers get 400 when the response size exceeds the ARM limit. In such cases, API call should be made with smaller date ranges. /// The URL to the next page of results. /// The scope associated with reservations details operations. This includes '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for BillingAccount scope (legacy), and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for BillingProfile scope (modern). /// Start date. Only applicable when querying with billing profile. @@ -475,7 +475,7 @@ public async Task> ListNextPageAsync(stri } } - /// Lists the reservations details for the defined scope and provided date range. Note: ARM has a payload size limit of 12MB, so currently callers get 502 when the response size exceeds the ARM limit. In such cases, API call should be made with smaller date ranges. + /// Lists the reservations details for the defined scope and provided date range. Note: ARM has a payload size limit of 12MB, so currently callers get 400 when the response size exceeds the ARM limit. In such cases, API call should be made with smaller date ranges. /// The URL to the next page of results. /// The scope associated with reservations details operations. This includes '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for BillingAccount scope (legacy), and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for BillingProfile scope (modern). /// Start date. Only applicable when querying with billing profile. diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/RestOperations/ReservationsSummariesRestOperations.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/RestOperations/ReservationsSummariesRestOperations.cs index 0bf50d669df0..b42979002cc6 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/RestOperations/ReservationsSummariesRestOperations.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/RestOperations/ReservationsSummariesRestOperations.cs @@ -33,7 +33,7 @@ public ReservationsSummariesRestOperations(HttpPipeline pipeline, string applica { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2021-10-01"; + _apiVersion = apiVersion ?? "2023-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/autorest.md b/sdk/consumption/Azure.ResourceManager.Consumption/src/autorest.md index eae4bf3561b0..755a0c6573ad 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/autorest.md +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/autorest.md @@ -9,7 +9,7 @@ generate-model-factory: false csharp: true library-name: Consumption namespace: Azure.ResourceManager.Consumption -require: https://github.com/Azure/azure-rest-api-specs/blob/6b08774c89877269e73e11ac3ecbd1bd4e14f5a0/specification/consumption/resource-manager/readme.md +require: /mnt/vss/_work/1/s/azure-rest-api-specs/specification/consumption/resource-manager/readme.md output-folder: $(this-folder)/Generated clear-output-folder: true skip-csproj: true