From 611ebbb9b4617b714516601619e1a18643fbb868 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Sat, 15 Apr 2023 00:36:48 +0000 Subject: [PATCH] CodeGen from PR 23569 in Azure/azure-rest-api-specs Merge 5a6ba8bd5b6a2b5155edff1538c9de89c8d49a5a into fdf43f2fdacf17bd78c0621df44a5c024b61db82 --- ...ourceManager.Consumption.netstandard2.0.cs | 8 ++- .../BillingAccountConsumptionResource.cs | 20 ++++--- .../BillingProfileConsumptionResource.cs | 4 +- .../ConsumptionBalanceResult.Serialization.cs | 12 ++++- .../Models/ConsumptionBalanceResult.cs | 6 ++- .../ConsumptionCreditSummary.Serialization.cs | 12 ++++- .../Models/ConsumptionCreditSummary.cs | 6 ++- .../ConsumptionEventSummary.Serialization.cs | 12 ++++- .../Models/ConsumptionEventSummary.cs | 6 ++- .../ConsumptionLotSummary.Serialization.cs | 12 ++++- .../Generated/Models/ConsumptionLotSummary.cs | 6 ++- .../ReservationConsumptionResource.cs | 8 +-- .../ReservationOrderConsumptionResource.cs | 8 +-- .../AggregatedCostRestOperations.cs | 2 +- .../RestOperations/BalancesRestOperations.cs | 2 +- .../RestOperations/BudgetsRestOperations.cs | 22 ++++---- .../RestOperations/CreditsRestOperations.cs | 2 +- .../RestOperations/EventsRestOperations.cs | 2 +- .../RestOperations/LotsRestOperations.cs | 2 +- .../PriceSheetRestOperations.cs | 2 +- .../ReservationTransactionsRestOperations.cs | 54 ++++++++++++------- .../ReservationsDetailsRestOperations.cs | 26 ++++----- .../ReservationsSummariesRestOperations.cs | 26 ++++----- .../src/autorest.md | 2 +- 24 files changed, 171 insertions(+), 91 deletions(-) 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..30d7c255d640 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 @@ -10,8 +10,8 @@ protected BillingAccountConsumptionResource() { } public virtual Azure.AsyncPageable GetEventsAsync(string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Pageable GetLots(string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.AsyncPageable GetLotsAsync(string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetReservationTransactions(string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetReservationTransactionsAsync(string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetReservationTransactions(string filter = null, bool? useMarkupIfPartner = default(bool?), decimal? previewMarkupPercentage = default(decimal?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetReservationTransactionsAsync(string filter = null, bool? useMarkupIfPartner = default(bool?), decimal? previewMarkupPercentage = default(decimal?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } public partial class BillingCustomerConsumptionResource : Azure.ResourceManager.ArmResource { @@ -290,6 +290,7 @@ internal ConsumptionBalanceResult() { } public bool? IsPriceHidden { get { throw null; } } public decimal? NewPurchases { get { throw null; } } public System.Collections.Generic.IReadOnlyList NewPurchasesDetails { get { throw null; } } + public decimal? OverageRefund { get { throw null; } } public decimal? ServiceOverage { get { throw null; } } public System.Collections.Generic.IReadOnlyDictionary Tags { get { throw null; } } public decimal? TotalOverage { get { throw null; } } @@ -330,6 +331,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 +356,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 +438,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/BillingAccountConsumptionResource.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/BillingAccountConsumptionResource.cs index b3044c507b3c..3fd8be663abb 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/BillingAccountConsumptionResource.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/BillingAccountConsumptionResource.cs @@ -132,7 +132,7 @@ public virtual Response GetBalance(CancellationToken c } /// - /// List of transactions for reserved instances on billing account scope. Note: The refund transactions are posted along with its purchase transaction (i.e. in the purchase billing month). For example, The refund is requested in May 2021. This refund transaction will have event date as May 2021 but the billing month as April 2020 when the reservation purchase was made. + /// List of transactions for reserved instances on billing account scope. Note: The refund transactions are posted along with its purchase transaction (i.e. in the purchase billing month). For example, The refund is requested in May 2021. This refund transaction will have event date as May 2021 but the billing month as April 2020 when the reservation purchase was made. 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. /// /// /// Request Path @@ -145,17 +145,19 @@ public virtual Response GetBalance(CancellationToken c /// /// /// Filter reservation transactions by date range. The properties/EventDate for start date and end date. The filter supports 'le' and 'ge'. Note: API returns data for the entire start date's and end date's billing month. For example, filter properties/eventDate+ge+2020-01-01+AND+properties/eventDate+le+2020-12-29 will include data for the entire December 2020 month (i.e. will contain records for dates December 30 and 31). + /// Applies mark up to the transactions if the caller is a partner. + /// Preview markup percentage to be applied. /// The cancellation token to use. /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetReservationTransactionsAsync(string filter = null, CancellationToken cancellationToken = default) + public virtual AsyncPageable GetReservationTransactionsAsync(string filter = null, bool? useMarkupIfPartner = null, decimal? previewMarkupPercentage = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _reservationTransactionsRestClient.CreateListRequest(Id.Name, filter); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _reservationTransactionsRestClient.CreateListNextPageRequest(nextLink, Id.Name, filter); + HttpMessage FirstPageRequest(int? pageSizeHint) => _reservationTransactionsRestClient.CreateListRequest(Id.Name, filter, useMarkupIfPartner, previewMarkupPercentage); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _reservationTransactionsRestClient.CreateListNextPageRequest(nextLink, Id.Name, filter, useMarkupIfPartner, previewMarkupPercentage); return PageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, ConsumptionReservationTransaction.DeserializeConsumptionReservationTransaction, _reservationTransactionsClientDiagnostics, Pipeline, "BillingAccountConsumptionResource.GetReservationTransactions", "value", "nextLink", cancellationToken); } /// - /// List of transactions for reserved instances on billing account scope. Note: The refund transactions are posted along with its purchase transaction (i.e. in the purchase billing month). For example, The refund is requested in May 2021. This refund transaction will have event date as May 2021 but the billing month as April 2020 when the reservation purchase was made. + /// List of transactions for reserved instances on billing account scope. Note: The refund transactions are posted along with its purchase transaction (i.e. in the purchase billing month). For example, The refund is requested in May 2021. This refund transaction will have event date as May 2021 but the billing month as April 2020 when the reservation purchase was made. 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. /// /// /// Request Path @@ -168,12 +170,14 @@ public virtual AsyncPageable GetReservationTr /// /// /// Filter reservation transactions by date range. The properties/EventDate for start date and end date. The filter supports 'le' and 'ge'. Note: API returns data for the entire start date's and end date's billing month. For example, filter properties/eventDate+ge+2020-01-01+AND+properties/eventDate+le+2020-12-29 will include data for the entire December 2020 month (i.e. will contain records for dates December 30 and 31). + /// Applies mark up to the transactions if the caller is a partner. + /// Preview markup percentage to be applied. /// The cancellation token to use. /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetReservationTransactions(string filter = null, CancellationToken cancellationToken = default) + public virtual Pageable GetReservationTransactions(string filter = null, bool? useMarkupIfPartner = null, decimal? previewMarkupPercentage = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _reservationTransactionsRestClient.CreateListRequest(Id.Name, filter); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _reservationTransactionsRestClient.CreateListNextPageRequest(nextLink, Id.Name, filter); + HttpMessage FirstPageRequest(int? pageSizeHint) => _reservationTransactionsRestClient.CreateListRequest(Id.Name, filter, useMarkupIfPartner, previewMarkupPercentage); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _reservationTransactionsRestClient.CreateListNextPageRequest(nextLink, Id.Name, filter, useMarkupIfPartner, previewMarkupPercentage); return PageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, ConsumptionReservationTransaction.DeserializeConsumptionReservationTransaction, _reservationTransactionsClientDiagnostics, Pipeline, "BillingAccountConsumptionResource.GetReservationTransactions", "value", "nextLink", cancellationToken); } diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/BillingProfileConsumptionResource.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/BillingProfileConsumptionResource.cs index 19a29c4e116f..555cb2e8da22 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/BillingProfileConsumptionResource.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/BillingProfileConsumptionResource.cs @@ -72,7 +72,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) } /// - /// List of transactions for reserved instances on billing profile scope. The refund transactions are posted along with its purchase transaction (i.e. in the purchase billing month). For example, The refund is requested in May 2021. This refund transaction will have event date as May 2021 but the billing month as April 2020 when the reservation purchase was made. + /// List of transactions for reserved instances on billing profile scope. The refund transactions are posted along with its purchase transaction (i.e. in the purchase billing month). For example, The refund is requested in May 2021. This refund transaction will have event date as May 2021 but the billing month as April 2020 when the reservation purchase was made. 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. /// /// /// Request Path @@ -95,7 +95,7 @@ public virtual AsyncPageable GetReserva } /// - /// List of transactions for reserved instances on billing profile scope. The refund transactions are posted along with its purchase transaction (i.e. in the purchase billing month). For example, The refund is requested in May 2021. This refund transaction will have event date as May 2021 but the billing month as April 2020 when the reservation purchase was made. + /// List of transactions for reserved instances on billing profile scope. The refund transactions are posted along with its purchase transaction (i.e. in the purchase billing month). For example, The refund is requested in May 2021. This refund transaction will have event date as May 2021 but the billing month as April 2020 when the reservation purchase was made. 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. /// /// /// Request Path diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionBalanceResult.Serialization.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionBalanceResult.Serialization.cs index 21c1f6151d37..fa18f1c2b34d 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionBalanceResult.Serialization.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionBalanceResult.Serialization.cs @@ -40,6 +40,7 @@ internal static ConsumptionBalanceResult DeserializeConsumptionBalanceResult(Jso Optional azureMarketplaceServiceCharges = default; Optional billingFrequency = default; Optional priceHidden = default; + Optional overageRefund = default; Optional> newPurchasesDetails = default; Optional> adjustmentDetails = default; foreach (var property in element.EnumerateObject()) @@ -213,6 +214,15 @@ internal static ConsumptionBalanceResult DeserializeConsumptionBalanceResult(Jso priceHidden = property0.Value.GetBoolean(); continue; } + if (property0.NameEquals("overageRefund"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + overageRefund = property0.Value.GetDecimal(); + continue; + } if (property0.NameEquals("newPurchasesDetails"u8)) { if (property0.Value.ValueKind == JsonValueKind.Null) @@ -245,7 +255,7 @@ internal static ConsumptionBalanceResult DeserializeConsumptionBalanceResult(Jso continue; } } - return new ConsumptionBalanceResult(id, name, type, systemData.Value, currency.Value, Optional.ToNullable(beginningBalance), Optional.ToNullable(endingBalance), Optional.ToNullable(newPurchases), Optional.ToNullable(adjustments), Optional.ToNullable(utilized), Optional.ToNullable(serviceOverage), Optional.ToNullable(chargesBilledSeparately), Optional.ToNullable(totalOverage), Optional.ToNullable(totalUsage), Optional.ToNullable(azureMarketplaceServiceCharges), Optional.ToNullable(billingFrequency), Optional.ToNullable(priceHidden), Optional.ToList(newPurchasesDetails), Optional.ToList(adjustmentDetails), Optional.ToNullable(etag), Optional.ToDictionary(tags)); + return new ConsumptionBalanceResult(id, name, type, systemData.Value, currency.Value, Optional.ToNullable(beginningBalance), Optional.ToNullable(endingBalance), Optional.ToNullable(newPurchases), Optional.ToNullable(adjustments), Optional.ToNullable(utilized), Optional.ToNullable(serviceOverage), Optional.ToNullable(chargesBilledSeparately), Optional.ToNullable(totalOverage), Optional.ToNullable(totalUsage), Optional.ToNullable(azureMarketplaceServiceCharges), Optional.ToNullable(billingFrequency), Optional.ToNullable(priceHidden), Optional.ToNullable(overageRefund), Optional.ToList(newPurchasesDetails), Optional.ToList(adjustmentDetails), Optional.ToNullable(etag), Optional.ToDictionary(tags)); } } } diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionBalanceResult.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionBalanceResult.cs index 9247a0df93f7..907a9fae1295 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionBalanceResult.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionBalanceResult.cs @@ -41,11 +41,12 @@ internal ConsumptionBalanceResult() /// Total charges for Azure Marketplace. /// The billing frequency. /// Price is hidden or not. + /// Overage Refunds. /// List of new purchases. /// List of Adjustments (Promo credit, SIE credit etc.). /// The etag for the resource. /// Resource tags. - internal ConsumptionBalanceResult(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string currency, decimal? beginningBalance, decimal? endingBalance, decimal? newPurchases, decimal? adjustments, decimal? utilized, decimal? serviceOverage, decimal? chargesBilledSeparately, decimal? totalOverage, decimal? totalUsage, decimal? azureMarketplaceServiceCharges, ConsumptionBillingFrequency? billingFrequency, bool? isPriceHidden, IReadOnlyList newPurchasesDetails, IReadOnlyList adjustmentDetails, ETag? etag, IReadOnlyDictionary tags) : base(id, name, resourceType, systemData) + internal ConsumptionBalanceResult(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string currency, decimal? beginningBalance, decimal? endingBalance, decimal? newPurchases, decimal? adjustments, decimal? utilized, decimal? serviceOverage, decimal? chargesBilledSeparately, decimal? totalOverage, decimal? totalUsage, decimal? azureMarketplaceServiceCharges, ConsumptionBillingFrequency? billingFrequency, bool? isPriceHidden, decimal? overageRefund, IReadOnlyList newPurchasesDetails, IReadOnlyList adjustmentDetails, ETag? etag, IReadOnlyDictionary tags) : base(id, name, resourceType, systemData) { Currency = currency; BeginningBalance = beginningBalance; @@ -60,6 +61,7 @@ internal ConsumptionBalanceResult(ResourceIdentifier id, string name, ResourceTy AzureMarketplaceServiceCharges = azureMarketplaceServiceCharges; BillingFrequency = billingFrequency; IsPriceHidden = isPriceHidden; + OverageRefund = overageRefund; NewPurchasesDetails = newPurchasesDetails; AdjustmentDetails = adjustmentDetails; ETag = etag; @@ -92,6 +94,8 @@ internal ConsumptionBalanceResult(ResourceIdentifier id, string name, ResourceTy public ConsumptionBillingFrequency? BillingFrequency { get; } /// Price is hidden or not. public bool? IsPriceHidden { get; } + /// Overage Refunds. + public decimal? OverageRefund { get; } /// List of new purchases. public IReadOnlyList NewPurchasesDetails { get; } /// List of Adjustments (Promo credit, SIE credit etc.). 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 3cd0553b18ab..030dbbb677c0 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 @@ -46,6 +46,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)) @@ -145,11 +146,20 @@ internal static ConsumptionCreditSummary DeserializeConsumptionCreditSummary(Jso reseller = ConsumptionReseller.DeserializeConsumptionReseller(property0.Value); continue; } + if (property0.NameEquals("isEstimatedBalance"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + 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 f5aa801a419b..d79839743f60 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 @@ -67,6 +67,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)) @@ -285,11 +286,20 @@ internal static ConsumptionEventSummary DeserializeConsumptionEventSummary(JsonE closedBalanceInBillingCurrency = ConsumptionAmountWithExchangeRate.DeserializeConsumptionAmountWithExchangeRate(property0.Value); continue; } + if (property0.NameEquals("isEstimatedBalance"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + 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 f5c2948f609c..a9fb2fd961f7 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 @@ -53,6 +53,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)) @@ -202,11 +203,20 @@ internal static ConsumptionLotSummary DeserializeConsumptionLotSummary(JsonEleme reseller = ConsumptionReseller.DeserializeConsumptionReseller(property0.Value); continue; } + if (property0.NameEquals("isEstimatedBalance"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + 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/ReservationConsumptionResource.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/ReservationConsumptionResource.cs index dec4588c0cac..a68cedb477a5 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/ReservationConsumptionResource.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/ReservationConsumptionResource.cs @@ -63,7 +63,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) } /// - /// Lists the reservations summaries for daily or monthly grain. + /// Lists the reservations summaries for daily or monthly grain. 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. /// /// /// Request Path @@ -87,7 +87,7 @@ public virtual AsyncPageable GetReservationSummar } /// - /// Lists the reservations summaries for daily or monthly grain. + /// Lists the reservations summaries for daily or monthly grain. 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. /// /// /// Request Path @@ -111,7 +111,7 @@ public virtual Pageable GetReservationSummaries(R } /// - /// 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. If the data size is too large, customers may also get 504 as the API timed out preparing the data. In such cases, API call should be made with smaller date ranges or a call to Generate Reservation Details Report API should be made as it is asynchronous and will not run into response size time outs. /// /// /// Request Path @@ -137,7 +137,7 @@ public virtual AsyncPageable GetReservationDetails } /// - /// 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. If the data size is too large, customers may also get 504 as the API timed out preparing the data. In such cases, API call should be made with smaller date ranges or a call to Generate Reservation Details Report API should be made as it is asynchronous and will not run into response size time outs. /// /// /// Request Path diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/ReservationOrderConsumptionResource.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/ReservationOrderConsumptionResource.cs index 0e06efa497e8..3d58e833e493 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/ReservationOrderConsumptionResource.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/ReservationOrderConsumptionResource.cs @@ -63,7 +63,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) } /// - /// Lists the reservations summaries for daily or monthly grain. + /// Lists the reservations summaries for daily or monthly grain. 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. /// /// /// Request Path @@ -87,7 +87,7 @@ public virtual AsyncPageable GetReservationSummar } /// - /// Lists the reservations summaries for daily or monthly grain. + /// Lists the reservations summaries for daily or monthly grain. 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. /// /// /// Request Path @@ -111,7 +111,7 @@ public virtual Pageable GetReservationSummaries(R } /// - /// 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. If the data size is too large, customers may also get 504 as the API timed out preparing the data. In such cases, API call should be made with smaller date ranges or a call to Generate Reservation Details Report API should be made as it is asynchronous and will not run into response size time outs. /// /// /// Request Path @@ -137,7 +137,7 @@ public virtual AsyncPageable GetReservationDetails } /// - /// 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. If the data size is too large, customers may also get 504 as the API timed out preparing the data. In such cases, API call should be made with smaller date ranges or a call to Generate Reservation Details Report API should be made as it is asynchronous and will not run into response size time outs. /// /// /// Request Path 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..574e12e18a5f 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); } @@ -55,7 +55,7 @@ internal HttpMessage CreateListRequest(string scope) } /// Lists all budgets for the defined scope. - /// The scope associated with budget operations. This includes '/subscriptions/{subscriptionId}/' for subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for invoiceSection scope. + /// The scope associated with budget operations. This includes '/subscriptions/{subscriptionId}/' for subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for invoiceSection scope. /// The cancellation token to use. /// is null. public async Task> ListAsync(string scope, CancellationToken cancellationToken = default) @@ -79,7 +79,7 @@ public async Task> ListAsync(string scope, Cancellat } /// Lists all budgets for the defined scope. - /// The scope associated with budget operations. This includes '/subscriptions/{subscriptionId}/' for subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for invoiceSection scope. + /// The scope associated with budget operations. This includes '/subscriptions/{subscriptionId}/' for subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for invoiceSection scope. /// The cancellation token to use. /// is null. public Response List(string scope, CancellationToken cancellationToken = default) @@ -121,7 +121,7 @@ internal HttpMessage CreateGetRequest(string scope, string budgetName) } /// Gets the budget for the scope by budget name. - /// The scope associated with budget operations. This includes '/subscriptions/{subscriptionId}/' for subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for invoiceSection scope. + /// The scope associated with budget operations. This includes '/subscriptions/{subscriptionId}/' for subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for invoiceSection scope. /// Budget Name. /// The cancellation token to use. /// or is null. @@ -150,7 +150,7 @@ public async Task> GetAsync(string scope, string } /// Gets the budget for the scope by budget name. - /// The scope associated with budget operations. This includes '/subscriptions/{subscriptionId}/' for subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for invoiceSection scope. + /// The scope associated with budget operations. This includes '/subscriptions/{subscriptionId}/' for subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for invoiceSection scope. /// Budget Name. /// The cancellation token to use. /// or is null. @@ -201,7 +201,7 @@ internal HttpMessage CreateCreateOrUpdateRequest(string scope, string budgetName } /// The operation to create or update a budget. You can optionally provide an eTag if desired as a form of concurrency control. To obtain the latest eTag for a given budget, perform a get operation prior to your put operation. - /// The scope associated with budget operations. This includes '/subscriptions/{subscriptionId}/' for subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for invoiceSection scope. + /// The scope associated with budget operations. This includes '/subscriptions/{subscriptionId}/' for subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for invoiceSection scope. /// Budget Name. /// Parameters supplied to the Create Budget operation. /// The cancellation token to use. @@ -231,7 +231,7 @@ public async Task> CreateOrUpdateAsync(string sc } /// The operation to create or update a budget. You can optionally provide an eTag if desired as a form of concurrency control. To obtain the latest eTag for a given budget, perform a get operation prior to your put operation. - /// The scope associated with budget operations. This includes '/subscriptions/{subscriptionId}/' for subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for invoiceSection scope. + /// The scope associated with budget operations. This includes '/subscriptions/{subscriptionId}/' for subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for invoiceSection scope. /// Budget Name. /// Parameters supplied to the Create Budget operation. /// The cancellation token to use. @@ -279,7 +279,7 @@ internal HttpMessage CreateDeleteRequest(string scope, string budgetName) } /// The operation to delete a budget. - /// The scope associated with budget operations. This includes '/subscriptions/{subscriptionId}/' for subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for invoiceSection scope. + /// The scope associated with budget operations. This includes '/subscriptions/{subscriptionId}/' for subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for invoiceSection scope. /// Budget Name. /// The cancellation token to use. /// or is null. @@ -301,7 +301,7 @@ public async Task DeleteAsync(string scope, string budgetName, Cancell } /// The operation to delete a budget. - /// The scope associated with budget operations. This includes '/subscriptions/{subscriptionId}/' for subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for invoiceSection scope. + /// The scope associated with budget operations. This includes '/subscriptions/{subscriptionId}/' for subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for invoiceSection scope. /// Budget Name. /// The cancellation token to use. /// or is null. @@ -338,7 +338,7 @@ internal HttpMessage CreateListNextPageRequest(string nextLink, string scope) /// Lists all budgets for the defined scope. /// The URL to the next page of results. - /// The scope associated with budget operations. This includes '/subscriptions/{subscriptionId}/' for subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for invoiceSection scope. + /// The scope associated with budget operations. This includes '/subscriptions/{subscriptionId}/' for subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for invoiceSection scope. /// The cancellation token to use. /// or is null. public async Task> ListNextPageAsync(string nextLink, string scope, CancellationToken cancellationToken = default) @@ -364,7 +364,7 @@ public async Task> ListNextPageAsync(string nextLink /// Lists all budgets for the defined scope. /// The URL to the next page of results. - /// The scope associated with budget operations. This includes '/subscriptions/{subscriptionId}/' for subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for invoiceSection scope. + /// The scope associated with budget operations. This includes '/subscriptions/{subscriptionId}/' for subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for invoiceSection scope. /// The cancellation token to use. /// or is null. public Response ListNextPage(string nextLink, string scope, CancellationToken cancellationToken = default) 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..af0e1b48950b 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/RestOperations/ReservationTransactionsRestOperations.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/RestOperations/ReservationTransactionsRestOperations.cs @@ -33,11 +33,11 @@ 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); } - internal HttpMessage CreateListRequest(string billingAccountId, string filter) + internal HttpMessage CreateListRequest(string billingAccountId, string filter, bool? useMarkupIfPartner, decimal? previewMarkupPercentage) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -52,23 +52,33 @@ internal HttpMessage CreateListRequest(string billingAccountId, string filter) uri.AppendQuery("$filter", filter, true); } uri.AppendQuery("api-version", _apiVersion, true); + if (useMarkupIfPartner != null) + { + uri.AppendQuery("useMarkupIfPartner", useMarkupIfPartner.Value, true); + } + if (previewMarkupPercentage != null) + { + uri.AppendQuery("previewMarkupPercentage", previewMarkupPercentage.Value, true); + } request.Uri = uri; request.Headers.Add("Accept", "application/json"); _userAgent.Apply(message); return message; } - /// List of transactions for reserved instances on billing account scope. Note: The refund transactions are posted along with its purchase transaction (i.e. in the purchase billing month). For example, The refund is requested in May 2021. This refund transaction will have event date as May 2021 but the billing month as April 2020 when the reservation purchase was made. + /// List of transactions for reserved instances on billing account scope. Note: The refund transactions are posted along with its purchase transaction (i.e. in the purchase billing month). For example, The refund is requested in May 2021. This refund transaction will have event date as May 2021 but the billing month as April 2020 when the reservation purchase was made. 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. /// BillingAccount ID. /// Filter reservation transactions by date range. The properties/EventDate for start date and end date. The filter supports 'le' and 'ge'. Note: API returns data for the entire start date's and end date's billing month. For example, filter properties/eventDate+ge+2020-01-01+AND+properties/eventDate+le+2020-12-29 will include data for the entire December 2020 month (i.e. will contain records for dates December 30 and 31). + /// Applies mark up to the transactions if the caller is a partner. + /// Preview markup percentage to be applied. /// The cancellation token to use. /// is null. /// is an empty string, and was expected to be non-empty. - public async Task> ListAsync(string billingAccountId, string filter = null, CancellationToken cancellationToken = default) + public async Task> ListAsync(string billingAccountId, string filter = null, bool? useMarkupIfPartner = null, decimal? previewMarkupPercentage = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(billingAccountId, nameof(billingAccountId)); - using var message = CreateListRequest(billingAccountId, filter); + using var message = CreateListRequest(billingAccountId, filter, useMarkupIfPartner, previewMarkupPercentage); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -84,17 +94,19 @@ public async Task> ListAsync(string } } - /// List of transactions for reserved instances on billing account scope. Note: The refund transactions are posted along with its purchase transaction (i.e. in the purchase billing month). For example, The refund is requested in May 2021. This refund transaction will have event date as May 2021 but the billing month as April 2020 when the reservation purchase was made. + /// List of transactions for reserved instances on billing account scope. Note: The refund transactions are posted along with its purchase transaction (i.e. in the purchase billing month). For example, The refund is requested in May 2021. This refund transaction will have event date as May 2021 but the billing month as April 2020 when the reservation purchase was made. 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. /// BillingAccount ID. /// Filter reservation transactions by date range. The properties/EventDate for start date and end date. The filter supports 'le' and 'ge'. Note: API returns data for the entire start date's and end date's billing month. For example, filter properties/eventDate+ge+2020-01-01+AND+properties/eventDate+le+2020-12-29 will include data for the entire December 2020 month (i.e. will contain records for dates December 30 and 31). + /// Applies mark up to the transactions if the caller is a partner. + /// Preview markup percentage to be applied. /// The cancellation token to use. /// is null. /// is an empty string, and was expected to be non-empty. - public Response List(string billingAccountId, string filter = null, CancellationToken cancellationToken = default) + public Response List(string billingAccountId, string filter = null, bool? useMarkupIfPartner = null, decimal? previewMarkupPercentage = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(billingAccountId, nameof(billingAccountId)); - using var message = CreateListRequest(billingAccountId, filter); + using var message = CreateListRequest(billingAccountId, filter, useMarkupIfPartner, previewMarkupPercentage); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -133,7 +145,7 @@ internal HttpMessage CreateListByBillingProfileRequest(string billingAccountId, return message; } - /// List of transactions for reserved instances on billing profile scope. The refund transactions are posted along with its purchase transaction (i.e. in the purchase billing month). For example, The refund is requested in May 2021. This refund transaction will have event date as May 2021 but the billing month as April 2020 when the reservation purchase was made. + /// List of transactions for reserved instances on billing profile scope. The refund transactions are posted along with its purchase transaction (i.e. in the purchase billing month). For example, The refund is requested in May 2021. This refund transaction will have event date as May 2021 but the billing month as April 2020 when the reservation purchase was made. 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. /// BillingAccount ID. /// Azure Billing Profile ID. /// Filter reservation transactions by date range. The properties/EventDate for start date and end date. The filter supports 'le' and 'ge'. Note: API returns data for the entire start date's and end date's billing month. For example, filter properties/eventDate+ge+2020-01-01+AND+properties/eventDate+le+2020-12-29 will include data for entire December 2020 month (i.e. will contain records for dates December 30 and 31). @@ -161,7 +173,7 @@ public async Task> ListByBilli } } - /// List of transactions for reserved instances on billing profile scope. The refund transactions are posted along with its purchase transaction (i.e. in the purchase billing month). For example, The refund is requested in May 2021. This refund transaction will have event date as May 2021 but the billing month as April 2020 when the reservation purchase was made. + /// List of transactions for reserved instances on billing profile scope. The refund transactions are posted along with its purchase transaction (i.e. in the purchase billing month). For example, The refund is requested in May 2021. This refund transaction will have event date as May 2021 but the billing month as April 2020 when the reservation purchase was made. 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. /// BillingAccount ID. /// Azure Billing Profile ID. /// Filter reservation transactions by date range. The properties/EventDate for start date and end date. The filter supports 'le' and 'ge'. Note: API returns data for the entire start date's and end date's billing month. For example, filter properties/eventDate+ge+2020-01-01+AND+properties/eventDate+le+2020-12-29 will include data for entire December 2020 month (i.e. will contain records for dates December 30 and 31). @@ -189,7 +201,7 @@ public Response ListByBillingProfile(st } } - internal HttpMessage CreateListNextPageRequest(string nextLink, string billingAccountId, string filter) + internal HttpMessage CreateListNextPageRequest(string nextLink, string billingAccountId, string filter, bool? useMarkupIfPartner, decimal? previewMarkupPercentage) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -203,19 +215,21 @@ internal HttpMessage CreateListNextPageRequest(string nextLink, string billingAc return message; } - /// List of transactions for reserved instances on billing account scope. Note: The refund transactions are posted along with its purchase transaction (i.e. in the purchase billing month). For example, The refund is requested in May 2021. This refund transaction will have event date as May 2021 but the billing month as April 2020 when the reservation purchase was made. + /// List of transactions for reserved instances on billing account scope. Note: The refund transactions are posted along with its purchase transaction (i.e. in the purchase billing month). For example, The refund is requested in May 2021. This refund transaction will have event date as May 2021 but the billing month as April 2020 when the reservation purchase was made. 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. /// BillingAccount ID. /// Filter reservation transactions by date range. The properties/EventDate for start date and end date. The filter supports 'le' and 'ge'. Note: API returns data for the entire start date's and end date's billing month. For example, filter properties/eventDate+ge+2020-01-01+AND+properties/eventDate+le+2020-12-29 will include data for the entire December 2020 month (i.e. will contain records for dates December 30 and 31). + /// Applies mark up to the transactions if the caller is a partner. + /// Preview markup percentage to be applied. /// The cancellation token to use. /// or is null. /// is an empty string, and was expected to be non-empty. - public async Task> ListNextPageAsync(string nextLink, string billingAccountId, string filter = null, CancellationToken cancellationToken = default) + public async Task> ListNextPageAsync(string nextLink, string billingAccountId, string filter = null, bool? useMarkupIfPartner = null, decimal? previewMarkupPercentage = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(billingAccountId, nameof(billingAccountId)); - using var message = CreateListNextPageRequest(nextLink, billingAccountId, filter); + using var message = CreateListNextPageRequest(nextLink, billingAccountId, filter, useMarkupIfPartner, previewMarkupPercentage); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -231,19 +245,21 @@ public async Task> ListNextPageAsync } } - /// List of transactions for reserved instances on billing account scope. Note: The refund transactions are posted along with its purchase transaction (i.e. in the purchase billing month). For example, The refund is requested in May 2021. This refund transaction will have event date as May 2021 but the billing month as April 2020 when the reservation purchase was made. + /// List of transactions for reserved instances on billing account scope. Note: The refund transactions are posted along with its purchase transaction (i.e. in the purchase billing month). For example, The refund is requested in May 2021. This refund transaction will have event date as May 2021 but the billing month as April 2020 when the reservation purchase was made. 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. /// BillingAccount ID. /// Filter reservation transactions by date range. The properties/EventDate for start date and end date. The filter supports 'le' and 'ge'. Note: API returns data for the entire start date's and end date's billing month. For example, filter properties/eventDate+ge+2020-01-01+AND+properties/eventDate+le+2020-12-29 will include data for the entire December 2020 month (i.e. will contain records for dates December 30 and 31). + /// Applies mark up to the transactions if the caller is a partner. + /// Preview markup percentage to be applied. /// The cancellation token to use. /// or is null. /// is an empty string, and was expected to be non-empty. - public Response ListNextPage(string nextLink, string billingAccountId, string filter = null, CancellationToken cancellationToken = default) + public Response ListNextPage(string nextLink, string billingAccountId, string filter = null, bool? useMarkupIfPartner = null, decimal? previewMarkupPercentage = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(billingAccountId, nameof(billingAccountId)); - using var message = CreateListNextPageRequest(nextLink, billingAccountId, filter); + using var message = CreateListNextPageRequest(nextLink, billingAccountId, filter, useMarkupIfPartner, previewMarkupPercentage); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -273,7 +289,7 @@ internal HttpMessage CreateListByBillingProfileNextPageRequest(string nextLink, return message; } - /// List of transactions for reserved instances on billing profile scope. The refund transactions are posted along with its purchase transaction (i.e. in the purchase billing month). For example, The refund is requested in May 2021. This refund transaction will have event date as May 2021 but the billing month as April 2020 when the reservation purchase was made. + /// List of transactions for reserved instances on billing profile scope. The refund transactions are posted along with its purchase transaction (i.e. in the purchase billing month). For example, The refund is requested in May 2021. This refund transaction will have event date as May 2021 but the billing month as April 2020 when the reservation purchase was made. 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. /// BillingAccount ID. /// Azure Billing Profile ID. @@ -303,7 +319,7 @@ public async Task> ListByBilli } } - /// List of transactions for reserved instances on billing profile scope. The refund transactions are posted along with its purchase transaction (i.e. in the purchase billing month). For example, The refund is requested in May 2021. This refund transaction will have event date as May 2021 but the billing month as April 2020 when the reservation purchase was made. + /// List of transactions for reserved instances on billing profile scope. The refund transactions are posted along with its purchase transaction (i.e. in the purchase billing month). For example, The refund is requested in May 2021. This refund transaction will have event date as May 2021 but the billing month as April 2020 when the reservation purchase was made. 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. /// BillingAccount ID. /// Azure Billing Profile ID. 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..4b5203d1771c 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. If the data size is too large, customers may also get 504 as the API timed out preparing the data. In such cases, API call should be made with smaller date ranges or a call to Generate Reservation Details Report API should be made as it is asynchronous and will not run into response size time outs. /// 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. If the data size is too large, customers may also get 504 as the API timed out preparing the data. In such cases, API call should be made with smaller date ranges or a call to Generate Reservation Details Report API should be made as it is asynchronous and will not run into response size time outs. /// 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. If the data size is too large, customers may also get 504 as the API timed out preparing the data. In such cases, API call should be made with smaller date ranges or a call to Generate Reservation Details Report API should be made as it is asynchronous and will not run into response size time outs. /// 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. If the data size is too large, customers may also get 504 as the API timed out preparing the data. In such cases, API call should be made with smaller date ranges or a call to Generate Reservation Details Report API should be made as it is asynchronous and will not run into response size time outs. /// 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 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. If the data size is too large, customers may also get 504 as the API timed out preparing the data. In such cases, API call should be made with smaller date ranges or a call to Generate Reservation Details Report API should be made as it is asynchronous and will not run into response size time outs. /// 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 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. If the data size is too large, customers may also get 504 as the API timed out preparing the data. In such cases, API call should be made with smaller date ranges or a call to Generate Reservation Details Report API should be made as it is asynchronous and will not run into response size time outs. /// 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. If the data size is too large, customers may also get 504 as the API timed out preparing the data. In such cases, API call should be made with smaller date ranges or a call to Generate Reservation Details Report API should be made as it is asynchronous and will not run into response size time outs. /// 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. If the data size is too large, customers may also get 504 as the API timed out preparing the data. In such cases, API call should be made with smaller date ranges or a call to Generate Reservation Details Report API should be made as it is asynchronous and will not run into response size time outs. /// 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. If the data size is too large, customers may also get 504 as the API timed out preparing the data. In such cases, API call should be made with smaller date ranges or a call to Generate Reservation Details Report API should be made as it is asynchronous and will not run into response size time outs. /// 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. If the data size is too large, customers may also get 504 as the API timed out preparing the data. In such cases, API call should be made with smaller date ranges or a call to Generate Reservation Details Report API should be made as it is asynchronous and will not run into response size time outs. /// 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 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. If the data size is too large, customers may also get 504 as the API timed out preparing the data. In such cases, API call should be made with smaller date ranges or a call to Generate Reservation Details Report API should be made as it is asynchronous and will not run into response size time outs. /// 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 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. If the data size is too large, customers may also get 504 as the API timed out preparing the data. In such cases, API call should be made with smaller date ranges or a call to Generate Reservation Details Report API should be made as it is asynchronous and will not run into response size time outs. /// 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..c0818edab0c5 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); } @@ -59,7 +59,7 @@ internal HttpMessage CreateListByReservationOrderRequest(string reservationOrder return message; } - /// Lists the reservations summaries for daily or monthly grain. + /// Lists the reservations summaries for daily or monthly grain. 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. /// Can be daily or monthly. /// Required only for daily grain. The properties/UsageDate for start date and end date. The filter supports 'le' and 'ge'. @@ -86,7 +86,7 @@ public async Task> ListByReservationOrd } } - /// Lists the reservations summaries for daily or monthly grain. + /// Lists the reservations summaries for daily or monthly grain. 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. /// Can be daily or monthly. /// Required only for daily grain. The properties/UsageDate for start date and end date. The filter supports 'le' and 'ge'. @@ -137,7 +137,7 @@ internal HttpMessage CreateListByReservationOrderAndReservationRequest(string re return message; } - /// Lists the reservations summaries for daily or monthly grain. + /// Lists the reservations summaries for daily or monthly grain. 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. /// Can be daily or monthly. @@ -166,7 +166,7 @@ public async Task> ListByReservationOrd } } - /// Lists the reservations summaries for daily or monthly grain. + /// Lists the reservations summaries for daily or monthly grain. 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. /// Can be daily or monthly. @@ -233,7 +233,7 @@ internal HttpMessage CreateListRequest(string resourceScope, ReservationSummaryD return message; } - /// Lists the reservations summaries for the defined scope daily or monthly grain. + /// Lists the reservations summaries for the defined scope daily or monthly grain. 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 summaries operations. This includes '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for BillingAccount scope (legacy), and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for BillingProfile scope (modern). /// Can be daily or monthly. /// Start date. Only applicable when querying with billing profile. @@ -263,7 +263,7 @@ public async Task> ListAsync(string res } } - /// Lists the reservations summaries for the defined scope daily or monthly grain. + /// Lists the reservations summaries for the defined scope daily or monthly grain. 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 summaries operations. This includes '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for BillingAccount scope (legacy), and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for BillingProfile scope (modern). /// Can be daily or monthly. /// Start date. Only applicable when querying with billing profile. @@ -307,7 +307,7 @@ internal HttpMessage CreateListByReservationOrderNextPageRequest(string nextLink return message; } - /// Lists the reservations summaries for daily or monthly grain. + /// Lists the reservations summaries for daily or monthly grain. 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. /// Can be daily or monthly. @@ -336,7 +336,7 @@ public async Task> ListByReservationOrd } } - /// Lists the reservations summaries for daily or monthly grain. + /// Lists the reservations summaries for daily or monthly grain. 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. /// Can be daily or monthly. @@ -379,7 +379,7 @@ internal HttpMessage CreateListByReservationOrderAndReservationNextPageRequest(s return message; } - /// Lists the reservations summaries for daily or monthly grain. + /// Lists the reservations summaries for daily or monthly grain. 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. @@ -410,7 +410,7 @@ public async Task> ListByReservationOrd } } - /// Lists the reservations summaries for daily or monthly grain. + /// Lists the reservations summaries for daily or monthly grain. 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. @@ -455,7 +455,7 @@ internal HttpMessage CreateListNextPageRequest(string nextLink, string resourceS return message; } - /// Lists the reservations summaries for the defined scope daily or monthly grain. + /// Lists the reservations summaries for the defined scope daily or monthly grain. 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 summaries operations. This includes '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for BillingAccount scope (legacy), and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for BillingProfile scope (modern). /// Can be daily or monthly. @@ -487,7 +487,7 @@ public async Task> ListNextPageAsync(st } } - /// Lists the reservations summaries for the defined scope daily or monthly grain. + /// Lists the reservations summaries for the defined scope daily or monthly grain. 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 summaries operations. This includes '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for BillingAccount scope (legacy), and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for BillingProfile scope (modern). /// Can be daily or monthly. diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/autorest.md b/sdk/consumption/Azure.ResourceManager.Consumption/src/autorest.md index aff3543ba330..af17067f9bf2 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