From a123376874b81173d534cefcb16af1d0e337a9ff Mon Sep 17 00:00:00 2001 From: Chengming Date: Wed, 19 Jul 2023 15:15:03 +0800 Subject: [PATCH 1/6] fix `meterId` empty format issue --- .../Models/ConsumptionMarketplace.Serialization.cs | 8 ++++---- .../Azure.ResourceManager.Consumption/src/autorest.md | 3 +++ 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionMarketplace.Serialization.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionMarketplace.Serialization.cs index 9cbe9b5cca0fd..9c2f3d86b4b30 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionMarketplace.Serialization.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionMarketplace.Serialization.cs @@ -119,7 +119,7 @@ internal static ConsumptionMarketplace DeserializeConsumptionMarketplace(JsonEle } if (property0.NameEquals("usageStart"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) + if (property0.Value.ValueKind == JsonValueKind.Null || property0.Value.ValueKind == JsonValueKind.String && property0.Value.GetString().Length == 0) { continue; } @@ -128,7 +128,7 @@ internal static ConsumptionMarketplace DeserializeConsumptionMarketplace(JsonEle } if (property0.NameEquals("usageEnd"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) + if (property0.Value.ValueKind == JsonValueKind.Null || property0.Value.ValueKind == JsonValueKind.String && property0.Value.GetString().Length == 0) { continue; } @@ -213,7 +213,7 @@ internal static ConsumptionMarketplace DeserializeConsumptionMarketplace(JsonEle } if (property0.NameEquals("meterId"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) + if (property0.Value.ValueKind == JsonValueKind.Null || property0.Value.ValueKind == JsonValueKind.String && property0.Value.GetString().Length == 0) { continue; } @@ -222,7 +222,7 @@ internal static ConsumptionMarketplace DeserializeConsumptionMarketplace(JsonEle } if (property0.NameEquals("subscriptionGuid"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) + if (property0.Value.ValueKind == JsonValueKind.Null || property0.Value.ValueKind == JsonValueKind.String && property0.Value.GetString().Length == 0) { continue; } diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/autorest.md b/sdk/consumption/Azure.ResourceManager.Consumption/src/autorest.md index 03dd2a3ac0174..7d77da3e6ea28 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/autorest.md +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/autorest.md @@ -88,6 +88,9 @@ rename-rules: URI: Uri Etag: ETag|etag +models-to-treat-empty-string-as-null: + - ConsumptionMarketplace + rename-mapping: Budget: ConsumptionBudget CategoryType: BudgetCategory From 710a9eff3db77dd28fe24eec433bcbc1ac456652 Mon Sep 17 00:00:00 2001 From: Chengming Date: Wed, 19 Jul 2023 15:32:19 +0800 Subject: [PATCH 2/6] delete `mgmt-debug` config --- .../Generated/ArmConsumptionModelFactory.cs | 2225 ++++------------- .../src/Generated/ConsumptionBudgetData.cs | 91 +- .../Models/BudgetAssociatedNotification.cs | 105 +- .../src/Generated/Models/BudgetCategory.cs | 10 +- .../Models/BudgetComparisonExpression.cs | 50 +- .../Generated/Models/BudgetCurrentSpend.cs | 25 +- .../Models/BudgetFilterProperties.cs | 25 +- .../Generated/Models/BudgetForecastSpend.cs | 25 +- .../Generated/Models/BudgetOperatorType.cs | 10 +- .../Generated/Models/BudgetTimeGrainType.cs | 35 +- .../src/Generated/Models/BudgetTimePeriod.cs | 30 +- .../src/Generated/Models/BudgetsListResult.cs | 25 +- .../src/Generated/Models/ChargeSummaryKind.cs | 15 +- .../src/Generated/Models/ChargesListResult.cs | 7 +- .../Models/ConsumptionAggregatedCostResult.cs | 125 +- .../src/Generated/Models/ConsumptionAmount.cs | 25 +- .../ConsumptionAmountWithExchangeRate.cs | 35 +- .../ConsumptionBalanceAdjustmentDetail.cs | 25 +- .../ConsumptionBalanceNewPurchasesDetail.cs | 25 +- .../Models/ConsumptionBalanceResult.cs | 175 +- .../Models/ConsumptionBillingFrequency.cs | 20 +- .../Models/ConsumptionBudgetFilter.cs | 35 +- .../ConsumptionCalculatedSavingsProperties.cs | 75 +- .../Models/ConsumptionChargeSummary.cs | 21 +- .../Models/ConsumptionCreditSummary.cs | 85 +- .../Models/ConsumptionEventSummary.cs | 235 +- .../Generated/Models/ConsumptionEventType.cs | 45 +- .../Models/ConsumptionLegacyChargeSummary.cs | 85 +- ...sumptionLegacyReservationRecommendation.cs | 175 +- .../Models/ConsumptionLegacyUsageDetail.cs | 480 +--- .../Generated/Models/ConsumptionLotSource.cs | 20 +- .../Generated/Models/ConsumptionLotStatus.cs | 35 +- .../Generated/Models/ConsumptionLotSummary.cs | 145 +- .../Models/ConsumptionMarketplace.cs | 285 +-- .../Models/ConsumptionMeterDetails.cs | 95 +- .../Models/ConsumptionMeterDetailsInfo.cs | 55 +- .../Generated/Models/ConsumptionMetricType.cs | 20 +- .../Models/ConsumptionModernChargeSummary.cs | 125 +- ...sumptionModernReservationRecommendation.cs | 190 +- ...ConsumptionModernReservationTransaction.cs | 215 +- .../Models/ConsumptionModernUsageDetail.cs | 740 ++---- .../Models/ConsumptionPricingModelType.cs | 20 +- .../Generated/Models/ConsumptionReseller.cs | 25 +- .../Models/ConsumptionReservationDetail.cs | 135 +- .../ConsumptionReservationRecommendation.cs | 51 +- ...umptionReservationRecommendationDetails.cs | 105 +- ...ReservationRecommendationLookBackPeriod.cs | 20 +- ...nsumptionReservationRecommendationScope.cs | 15 +- ...onsumptionReservationRecommendationTerm.cs | 15 +- .../Models/ConsumptionReservationSummary.cs | 175 +- .../ConsumptionReservationTransaction.cs | 245 +- .../Models/ConsumptionResourceProperties.cs | 65 +- .../Models/ConsumptionSavingsProperties.cs | 65 +- .../Models/ConsumptionSkuProperty.cs | 25 +- .../src/Generated/Models/ConsumptionTag.cs | 25 +- .../Generated/Models/ConsumptionTagsResult.cs | 45 +- .../Models/ConsumptionUsageDetail.cs | 31 +- .../Models/ConsumptionUsageProperties.cs | 55 +- .../Generated/Models/CreditBalanceSummary.cs | 35 +- .../src/Generated/Models/Events.cs | 25 +- .../src/Generated/Models/Lots.cs | 25 +- .../Models/MarketplacesListResult.cs | 25 +- ...ModernReservationTransactionsListResult.cs | 25 +- .../Models/NotificationAlertTriggerType.cs | 20 +- .../Models/NotificationThresholdType.cs | 15 +- .../Generated/Models/PriceSheetProperties.cs | 95 +- .../src/Generated/Models/PriceSheetResult.cs | 55 +- .../RecipientNotificationLanguageCode.cs | 110 +- .../Models/ReservationDetailsListResult.cs | 25 +- .../Models/ReservationRecommendationKind.cs | 15 +- .../ReservationRecommendationsListResult.cs | 27 +- .../Models/ReservationSummariesListResult.cs | 25 +- .../Models/ReservationSummaryDataGrain.cs | 15 +- .../ReservationTransactionsListResult.cs | 25 +- .../src/Generated/Models/UsageDetailsKind.cs | 15 +- .../Models/UsageDetailsListResult.cs | 17 +- .../src/autorest.md | 3 - 77 files changed, 1594 insertions(+), 6389 deletions(-) diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/ArmConsumptionModelFactory.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/ArmConsumptionModelFactory.cs index 5264395d926f6..1f934a50404de 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/ArmConsumptionModelFactory.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/ArmConsumptionModelFactory.cs @@ -23,18 +23,9 @@ public static partial class ArmConsumptionModelFactory /// The name. /// The resourceType. /// The systemData. - /// - /// Specifies the kind of usage details. - /// Serialized Name: UsageDetail.kind - /// - /// - /// The etag for the resource. - /// Serialized Name: Resource.etag - /// - /// - /// Resource tags. - /// Serialized Name: Resource.tags - /// + /// Specifies the kind of usage details. + /// The etag for the resource. + /// Resource tags. /// A new instance for mocking. public static ConsumptionUsageDetail ConsumptionUsageDetail(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string kind = "Unknown", ETag? etag = null, IReadOnlyDictionary tags = null) { @@ -48,118 +39,34 @@ public static ConsumptionUsageDetail ConsumptionUsageDetail(ResourceIdentifier i /// The name. /// The resourceType. /// The systemData. - /// - /// The id of the billing period resource that the usage belongs to. - /// Serialized Name: Marketplace.properties.billingPeriodId - /// - /// - /// The start of the date time range covered by the usage detail. - /// Serialized Name: Marketplace.properties.usageStart - /// - /// - /// The end of the date time range covered by the usage detail. - /// Serialized Name: Marketplace.properties.usageEnd - /// - /// - /// The marketplace resource rate. - /// Serialized Name: Marketplace.properties.resourceRate - /// - /// - /// The type of offer. - /// Serialized Name: Marketplace.properties.offerName - /// - /// - /// The name of resource group. - /// Serialized Name: Marketplace.properties.resourceGroup - /// - /// - /// Additional information. - /// Serialized Name: Marketplace.properties.additionalInfo - /// - /// - /// The order number. - /// Serialized Name: Marketplace.properties.orderNumber - /// - /// - /// The name of the resource instance that the usage is about. - /// Serialized Name: Marketplace.properties.instanceName - /// - /// - /// The uri of the resource instance that the usage is about. - /// Serialized Name: Marketplace.properties.instanceId - /// - /// - /// The ISO currency in which the meter is charged, for example, USD. - /// Serialized Name: Marketplace.properties.currency - /// - /// - /// The quantity of usage. - /// Serialized Name: Marketplace.properties.consumedQuantity - /// - /// - /// The unit of measure. - /// Serialized Name: Marketplace.properties.unitOfMeasure - /// - /// - /// The amount of cost before tax. - /// Serialized Name: Marketplace.properties.pretaxCost - /// - /// - /// The estimated usage is subject to change. - /// Serialized Name: Marketplace.properties.isEstimated - /// - /// - /// The meter id (GUID). - /// Serialized Name: Marketplace.properties.meterId - /// - /// - /// Subscription guid. - /// Serialized Name: Marketplace.properties.subscriptionGuid - /// - /// - /// Subscription name. - /// Serialized Name: Marketplace.properties.subscriptionName - /// - /// - /// Account name. - /// Serialized Name: Marketplace.properties.accountName - /// - /// - /// Department name. - /// Serialized Name: Marketplace.properties.departmentName - /// - /// - /// Consumed service name. - /// Serialized Name: Marketplace.properties.consumedService - /// - /// - /// The cost center of this department if it is a department and a costcenter exists - /// Serialized Name: Marketplace.properties.costCenter - /// - /// - /// Additional details of this usage item. By default this is not populated, unless it's specified in $expand. - /// Serialized Name: Marketplace.properties.additionalProperties - /// - /// - /// The name of publisher. - /// Serialized Name: Marketplace.properties.publisherName - /// - /// - /// The name of plan. - /// Serialized Name: Marketplace.properties.planName - /// - /// - /// Flag indicating whether this is a recurring charge or not. - /// Serialized Name: Marketplace.properties.isRecurringCharge - /// - /// - /// The etag for the resource. - /// Serialized Name: Resource.etag - /// - /// - /// Resource tags. - /// Serialized Name: Resource.tags - /// + /// The id of the billing period resource that the usage belongs to. + /// The start of the date time range covered by the usage detail. + /// The end of the date time range covered by the usage detail. + /// The marketplace resource rate. + /// The type of offer. + /// The name of resource group. + /// Additional information. + /// The order number. + /// The name of the resource instance that the usage is about. + /// The uri of the resource instance that the usage is about. + /// The ISO currency in which the meter is charged, for example, USD. + /// The quantity of usage. + /// The unit of measure. + /// The amount of cost before tax. + /// The estimated usage is subject to change. + /// The meter id (GUID). + /// Subscription guid. + /// Subscription name. + /// Account name. + /// Department name. + /// Consumed service name. + /// The cost center of this department if it is a department and a costcenter exists. + /// Additional details of this usage item. By default this is not populated, unless it's specified in $expand. + /// The name of publisher. + /// The name of plan. + /// Flag indicating whether this is a recurring charge or not. + /// The etag for the resource. + /// Resource tags. /// A new instance for mocking. public static ConsumptionMarketplace ConsumptionMarketplace(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string billingPeriodId = null, DateTimeOffset? usageStartOn = null, DateTimeOffset? usageEndOn = null, decimal? resourceRate = null, string offerName = null, string resourceGroup = null, string additionalInfo = null, string orderNumber = null, string instanceName = null, string instanceId = null, string currency = null, decimal? consumedQuantity = null, string unitOfMeasure = null, decimal? pretaxCost = null, bool? isEstimated = null, Guid? meterId = null, Guid? subscriptionGuid = null, string subscriptionName = null, string accountName = null, string departmentName = null, string consumedService = null, string costCenter = null, string additionalProperties = null, string publisherName = null, string planName = null, bool? isRecurringCharge = null, ETag? etag = null, IReadOnlyDictionary tags = null) { @@ -173,42 +80,15 @@ public static ConsumptionMarketplace ConsumptionMarketplace(ResourceIdentifier i /// The name. /// The resourceType. /// The systemData. - /// - /// The category of the budget, whether the budget tracks cost or usage. - /// Serialized Name: Budget.properties.category - /// - /// - /// The total amount of cost to track with the budget - /// Serialized Name: Budget.properties.amount - /// - /// - /// The time covered by a budget. Tracking of the amount will be reset based on the time grain. BillingMonth, BillingQuarter, and BillingAnnual are only supported by WD customers - /// Serialized Name: Budget.properties.timeGrain - /// - /// - /// Has start and end date of the budget. The start date must be first of the month and should be less than the end date. Budget start date must be on or after June 1, 2017. Future start date should not be more than twelve months. Past start date should be selected within the timegrain period. There are no restrictions on the end date. - /// Serialized Name: Budget.properties.timePeriod - /// - /// - /// May be used to filter budgets by user-specified dimensions and/or tags. - /// Serialized Name: Budget.properties.filter - /// - /// - /// The current amount of cost which is being tracked for a budget. - /// Serialized Name: Budget.properties.currentSpend - /// - /// - /// Dictionary of notifications associated with the budget. Budget can have up to five notifications. - /// Serialized Name: Budget.properties.notifications - /// - /// - /// The forecasted cost which is being tracked for a budget. - /// Serialized Name: Budget.properties.forecastSpend - /// - /// - /// 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. - /// Serialized Name: ProxyResource.eTag - /// + /// The category of the budget, whether the budget tracks cost or usage. + /// The total amount of cost to track with the budget. + /// The time covered by a budget. Tracking of the amount will be reset based on the time grain. BillingMonth, BillingQuarter, and BillingAnnual are only supported by WD customers. + /// Has start and end date of the budget. The start date must be first of the month and should be less than the end date. Budget start date must be on or after June 1, 2017. Future start date should not be more than twelve months. Past start date should be selected within the timegrain period. There are no restrictions on the end date. + /// May be used to filter budgets by user-specified dimensions and/or tags. + /// The current amount of cost which is being tracked for a budget. + /// Dictionary of notifications associated with the budget. Budget can have up to five notifications. + /// The forecasted cost which is being tracked for a budget. + /// 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. /// A new instance for mocking. public static ConsumptionBudgetData ConsumptionBudgetData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, BudgetCategory? category = null, decimal? amount = null, BudgetTimeGrainType? timeGrain = null, BudgetTimePeriod timePeriod = null, ConsumptionBudgetFilter filter = null, BudgetCurrentSpend currentSpend = null, IDictionary notifications = null, BudgetForecastSpend forecastSpend = null, ETag? etag = null) { @@ -218,14 +98,8 @@ public static ConsumptionBudgetData ConsumptionBudgetData(ResourceIdentifier id } /// Initializes a new instance of BudgetCurrentSpend. - /// - /// The total amount of cost which is being tracked by the budget. - /// Serialized Name: CurrentSpend.amount - /// - /// - /// The unit of measure for the budget amount. - /// Serialized Name: CurrentSpend.unit - /// + /// The total amount of cost which is being tracked by the budget. + /// The unit of measure for the budget amount. /// A new instance for mocking. public static BudgetCurrentSpend BudgetCurrentSpend(decimal? amount = null, string unit = null) { @@ -233,14 +107,8 @@ public static BudgetCurrentSpend BudgetCurrentSpend(decimal? amount = null, stri } /// Initializes a new instance of BudgetForecastSpend. - /// - /// The forecasted cost for the total time period which is being tracked by the budget. This value is only provided if the budget contains a forecast alert type. - /// Serialized Name: ForecastSpend.amount - /// - /// - /// The unit of measure for the budget amount. - /// Serialized Name: ForecastSpend.unit - /// + /// The forecasted cost for the total time period which is being tracked by the budget. This value is only provided if the budget contains a forecast alert type. + /// The unit of measure for the budget amount. /// A new instance for mocking. public static BudgetForecastSpend BudgetForecastSpend(decimal? amount = null, string unit = null) { @@ -252,22 +120,10 @@ public static BudgetForecastSpend BudgetForecastSpend(decimal? amount = null, st /// The name. /// The resourceType. /// The systemData. - /// - /// A list of Tag. - /// Serialized Name: TagsResult.properties.tags - /// - /// - /// The link (url) to the next page of results. - /// Serialized Name: TagsResult.properties.nextLink - /// - /// - /// The link (url) to the previous page of results. - /// Serialized Name: TagsResult.properties.previousLink - /// - /// - /// 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. - /// Serialized Name: ProxyResource.eTag - /// + /// A list of Tag. + /// The link (url) to the next page of results. + /// The link (url) to the previous page of results. + /// 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. /// A new instance for mocking. public static ConsumptionTagsResult ConsumptionTagsResult(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IEnumerable tags = null, string nextLink = null, string previousLink = null, ETag? etag = null) { @@ -281,14 +137,8 @@ public static ConsumptionTagsResult ConsumptionTagsResult(ResourceIdentifier id /// The name. /// The resourceType. /// The systemData. - /// - /// Specifies the kind of charge summary. - /// Serialized Name: ChargeSummary.kind - /// - /// - /// 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. - /// Serialized Name: ProxyResource.eTag - /// + /// Specifies the kind of charge summary. + /// 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. /// A new instance for mocking. public static ConsumptionChargeSummary ConsumptionChargeSummary(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string kind = "Unknown", ETag? etag = null) { @@ -300,74 +150,23 @@ public static ConsumptionChargeSummary ConsumptionChargeSummary(ResourceIdentifi /// The name. /// The resourceType. /// The systemData. - /// - /// The ISO currency in which the meter is charged, for example, USD. - /// Serialized Name: Balance.properties.currency - /// - /// - /// The beginning balance for the billing period. - /// Serialized Name: Balance.properties.beginningBalance - /// - /// - /// The ending balance for the billing period (for open periods this will be updated daily). - /// Serialized Name: Balance.properties.endingBalance - /// - /// - /// Total new purchase amount. - /// Serialized Name: Balance.properties.newPurchases - /// - /// - /// Total adjustment amount. - /// Serialized Name: Balance.properties.adjustments - /// - /// - /// Total Commitment usage. - /// Serialized Name: Balance.properties.utilized - /// - /// - /// Overage for Azure services. - /// Serialized Name: Balance.properties.serviceOverage - /// - /// - /// Charges Billed separately. - /// Serialized Name: Balance.properties.chargesBilledSeparately - /// - /// - /// serviceOverage + chargesBilledSeparately. - /// Serialized Name: Balance.properties.totalOverage - /// - /// - /// Azure service commitment + total Overage. - /// Serialized Name: Balance.properties.totalUsage - /// - /// - /// Total charges for Azure Marketplace. - /// Serialized Name: Balance.properties.azureMarketplaceServiceCharges - /// - /// - /// The billing frequency. - /// Serialized Name: Balance.properties.billingFrequency - /// - /// - /// Price is hidden or not. - /// Serialized Name: Balance.properties.priceHidden - /// - /// - /// List of new purchases. - /// Serialized Name: Balance.properties.newPurchasesDetails - /// - /// - /// List of Adjustments (Promo credit, SIE credit etc.). - /// Serialized Name: Balance.properties.adjustmentDetails - /// - /// - /// The etag for the resource. - /// Serialized Name: Resource.etag - /// - /// - /// Resource tags. - /// Serialized Name: Resource.tags - /// + /// The ISO currency in which the meter is charged, for example, USD. + /// The beginning balance for the billing period. + /// The ending balance for the billing period (for open periods this will be updated daily). + /// Total new purchase amount. + /// Total adjustment amount. + /// Total Commitment usage. + /// Overage for Azure services. + /// Charges Billed separately. + /// serviceOverage + chargesBilledSeparately. + /// Azure service commitment + total Overage. + /// Total charges for Azure Marketplace. + /// The billing frequency. + /// Price is hidden or not. + /// List of new purchases. + /// List of Adjustments (Promo credit, SIE credit etc.). + /// The etag for the resource. + /// Resource tags. /// A new instance for mocking. public static ConsumptionBalanceResult ConsumptionBalanceResult(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string currency = null, decimal? beginningBalance = null, decimal? endingBalance = null, decimal? newPurchases = null, decimal? adjustments = null, decimal? utilized = null, decimal? serviceOverage = null, decimal? chargesBilledSeparately = null, decimal? totalOverage = null, decimal? totalUsage = null, decimal? azureMarketplaceServiceCharges = null, ConsumptionBillingFrequency? billingFrequency = null, bool? isPriceHidden = null, IEnumerable newPurchasesDetails = null, IEnumerable adjustmentDetails = null, ETag? etag = null, IReadOnlyDictionary tags = null) { @@ -379,14 +178,8 @@ public static ConsumptionBalanceResult ConsumptionBalanceResult(ResourceIdentifi } /// Initializes a new instance of ConsumptionBalanceNewPurchasesDetail. - /// - /// the name of new purchase. - /// Serialized Name: BalancePropertiesNewPurchasesDetailsItem.name - /// - /// - /// the value of new purchase. - /// Serialized Name: BalancePropertiesNewPurchasesDetailsItem.value - /// + /// the name of new purchase. + /// the value of new purchase. /// A new instance for mocking. public static ConsumptionBalanceNewPurchasesDetail ConsumptionBalanceNewPurchasesDetail(string name = null, decimal? value = null) { @@ -394,14 +187,8 @@ public static ConsumptionBalanceNewPurchasesDetail ConsumptionBalanceNewPurchase } /// Initializes a new instance of ConsumptionBalanceAdjustmentDetail. - /// - /// the name of new adjustment. - /// Serialized Name: BalancePropertiesAdjustmentDetailsItem.name - /// - /// - /// the value of new adjustment. - /// Serialized Name: BalancePropertiesAdjustmentDetailsItem.value - /// + /// the name of new adjustment. + /// the value of new adjustment. /// A new instance for mocking. public static ConsumptionBalanceAdjustmentDetail ConsumptionBalanceAdjustmentDetail(string name = null, decimal? value = null) { @@ -413,74 +200,23 @@ public static ConsumptionBalanceAdjustmentDetail ConsumptionBalanceAdjustmentDet /// The name. /// The resourceType. /// The systemData. - /// - /// The reservation order ID is the identifier for a reservation purchase. Each reservation order ID represents a single purchase transaction. A reservation order contains reservations. The reservation order specifies the VM size and region for the reservations. - /// Serialized Name: ReservationSummary.properties.reservationOrderId - /// - /// - /// The reservation ID is the identifier of a reservation within a reservation order. Each reservation is the grouping for applying the benefit scope and also specifies the number of instances to which the reservation benefit can be applied to. - /// Serialized Name: ReservationSummary.properties.reservationId - /// - /// - /// This is the ARM Sku name. It can be used to join with the serviceType field in additional info in usage records. - /// Serialized Name: ReservationSummary.properties.skuName - /// - /// - /// This is the total hours reserved. E.g. if reservation for 1 instance was made on 1 PM, this will be 11 hours for that day and 24 hours from subsequent days - /// Serialized Name: ReservationSummary.properties.reservedHours - /// - /// - /// Data corresponding to the utilization record. If the grain of data is monthly, it will be first day of month. - /// Serialized Name: ReservationSummary.properties.usageDate - /// - /// - /// Total used hours by the reservation - /// Serialized Name: ReservationSummary.properties.usedHours - /// - /// - /// This is the minimum hourly utilization in the usage time (day or month). E.g. if usage record corresponds to 12/10/2017 and on that for hour 4 and 5, utilization was 10%, this field will return 10% for that day - /// Serialized Name: ReservationSummary.properties.minUtilizationPercentage - /// - /// - /// This is average utilization for the entire time range. (day or month depending on the grain) - /// Serialized Name: ReservationSummary.properties.avgUtilizationPercentage - /// - /// - /// This is the maximum hourly utilization in the usage time (day or month). E.g. if usage record corresponds to 12/10/2017 and on that for hour 4 and 5, utilization was 100%, this field will return 100% for that day. - /// Serialized Name: ReservationSummary.properties.maxUtilizationPercentage - /// - /// - /// The reservation kind. - /// Serialized Name: ReservationSummary.properties.kind - /// - /// - /// This is the purchased quantity for the reservationId. - /// Serialized Name: ReservationSummary.properties.purchasedQuantity - /// - /// - /// This is the remaining quantity for the reservationId. - /// Serialized Name: ReservationSummary.properties.remainingQuantity - /// - /// - /// This is the total count of instances that are reserved for the reservationId. - /// Serialized Name: ReservationSummary.properties.totalReservedQuantity - /// - /// - /// This is the used quantity for the reservationId. - /// Serialized Name: ReservationSummary.properties.usedQuantity - /// - /// - /// This is the utilized percentage for the reservation Id. - /// Serialized Name: ReservationSummary.properties.utilizedPercentage - /// - /// - /// The etag for the resource. - /// Serialized Name: Resource.etag - /// - /// - /// Resource tags. - /// Serialized Name: Resource.tags - /// + /// The reservation order ID is the identifier for a reservation purchase. Each reservation order ID represents a single purchase transaction. A reservation order contains reservations. The reservation order specifies the VM size and region for the reservations. + /// The reservation ID is the identifier of a reservation within a reservation order. Each reservation is the grouping for applying the benefit scope and also specifies the number of instances to which the reservation benefit can be applied to. + /// This is the ARM Sku name. It can be used to join with the serviceType field in additional info in usage records. + /// This is the total hours reserved. E.g. if reservation for 1 instance was made on 1 PM, this will be 11 hours for that day and 24 hours from subsequent days. + /// Data corresponding to the utilization record. If the grain of data is monthly, it will be first day of month. + /// Total used hours by the reservation. + /// This is the minimum hourly utilization in the usage time (day or month). E.g. if usage record corresponds to 12/10/2017 and on that for hour 4 and 5, utilization was 10%, this field will return 10% for that day. + /// This is average utilization for the entire time range. (day or month depending on the grain). + /// This is the maximum hourly utilization in the usage time (day or month). E.g. if usage record corresponds to 12/10/2017 and on that for hour 4 and 5, utilization was 100%, this field will return 100% for that day. + /// The reservation kind. + /// This is the purchased quantity for the reservationId. + /// This is the remaining quantity for the reservationId. + /// This is the total count of instances that are reserved for the reservationId. + /// This is the used quantity for the reservationId. + /// This is the utilized percentage for the reservation Id. + /// The etag for the resource. + /// Resource tags. /// A new instance for mocking. public static ConsumptionReservationSummary ConsumptionReservationSummary(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string reservationOrderId = null, string reservationId = null, string skuName = null, decimal? reservedHours = null, DateTimeOffset? useOn = null, decimal? usedHours = null, decimal? minUtilizationPercentage = null, decimal? avgUtilizationPercentage = null, decimal? maxUtilizationPercentage = null, string kind = null, decimal? purchasedQuantity = null, decimal? remainingQuantity = null, decimal? totalReservedQuantity = null, decimal? usedQuantity = null, decimal? utilizedPercentage = null, ETag? etag = null, IReadOnlyDictionary tags = null) { @@ -494,58 +230,19 @@ public static ConsumptionReservationSummary ConsumptionReservationSummary(Resour /// The name. /// The resourceType. /// The systemData. - /// - /// The reservation order ID is the identifier for a reservation purchase. Each reservation order ID represents a single purchase transaction. A reservation order contains reservations. The reservation order specifies the VM size and region for the reservations. - /// Serialized Name: ConsumptionReservationDetail.properties.reservationOrderId - /// - /// - /// The instance Flexibility Ratio. - /// Serialized Name: ConsumptionReservationDetail.properties.instanceFlexibilityRatio - /// - /// - /// The instance Flexibility Group. - /// Serialized Name: ConsumptionReservationDetail.properties.instanceFlexibilityGroup - /// - /// - /// The reservation ID is the identifier of a reservation within a reservation order. Each reservation is the grouping for applying the benefit scope and also specifies the number of instances to which the reservation benefit can be applied to. - /// Serialized Name: ConsumptionReservationDetail.properties.reservationId - /// - /// - /// This is the ARM Sku name. It can be used to join with the serviceType field in additional info in usage records. - /// Serialized Name: ConsumptionReservationDetail.properties.skuName - /// - /// - /// This is the total hours reserved for the day. E.g. if reservation for 1 instance was made on 1 PM, this will be 11 hours for that day and 24 hours from subsequent days. - /// Serialized Name: ConsumptionReservationDetail.properties.reservedHours - /// - /// - /// The date on which consumption occurred. - /// Serialized Name: ConsumptionReservationDetail.properties.usageDate - /// - /// - /// This is the total hours used by the instance. - /// Serialized Name: ConsumptionReservationDetail.properties.usedHours - /// - /// - /// This identifier is the name of the resource or the fully qualified Resource ID. - /// Serialized Name: ConsumptionReservationDetail.properties.instanceId - /// - /// - /// This is the total count of instances that are reserved for the reservationId. - /// Serialized Name: ConsumptionReservationDetail.properties.totalReservedQuantity - /// - /// - /// The reservation kind. - /// Serialized Name: ConsumptionReservationDetail.properties.kind - /// - /// - /// The etag for the resource. - /// Serialized Name: Resource.etag - /// - /// - /// Resource tags. - /// Serialized Name: Resource.tags - /// + /// The reservation order ID is the identifier for a reservation purchase. Each reservation order ID represents a single purchase transaction. A reservation order contains reservations. The reservation order specifies the VM size and region for the reservations. + /// The instance Flexibility Ratio. + /// The instance Flexibility Group. + /// The reservation ID is the identifier of a reservation within a reservation order. Each reservation is the grouping for applying the benefit scope and also specifies the number of instances to which the reservation benefit can be applied to. + /// This is the ARM Sku name. It can be used to join with the serviceType field in additional info in usage records. + /// This is the total hours reserved for the day. E.g. if reservation for 1 instance was made on 1 PM, this will be 11 hours for that day and 24 hours from subsequent days. + /// The date on which consumption occurred. + /// This is the total hours used by the instance. + /// This identifier is the name of the resource or the fully qualified Resource ID. + /// This is the total count of instances that are reserved for the reservationId. + /// The reservation kind. + /// The etag for the resource. + /// Resource tags. /// A new instance for mocking. public static ConsumptionReservationDetail ConsumptionReservationDetail(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string reservationOrderId = null, string instanceFlexibilityRatio = null, string instanceFlexibilityGroup = null, string reservationId = null, string skuName = null, decimal? reservedHours = null, DateTimeOffset? consumptionOccurredOn = null, decimal? usedHours = null, ResourceIdentifier instanceId = null, decimal? totalReservedQuantity = null, string kind = null, ETag? etag = null, IReadOnlyDictionary tags = null) { @@ -559,26 +256,11 @@ public static ConsumptionReservationDetail ConsumptionReservationDetail(Resource /// The name. /// The resourceType. /// The systemData. - /// - /// Specifies the kind of reservation recommendation. - /// Serialized Name: ReservationRecommendation.kind - /// - /// - /// The etag for the resource. - /// Serialized Name: Resource.etag - /// - /// - /// Resource tags. - /// Serialized Name: Resource.tags - /// - /// - /// Resource location - /// Serialized Name: ResourceAttributes.location - /// - /// - /// Resource sku - /// Serialized Name: ResourceAttributes.sku - /// + /// Specifies the kind of reservation recommendation. + /// The etag for the resource. + /// Resource tags. + /// Resource location. + /// Resource sku. /// A new instance for mocking. public static ConsumptionReservationRecommendation ConsumptionReservationRecommendation(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string kind = "Unknown", ETag? etag = null, IReadOnlyDictionary tags = null, AzureLocation? location = null, string sku = null) { @@ -592,46 +274,16 @@ public static ConsumptionReservationRecommendation ConsumptionReservationRecomme /// The name. /// The resourceType. /// The systemData. - /// - /// Resource Location. - /// Serialized Name: ReservationRecommendationDetailsModel.location - /// - /// - /// Resource sku - /// Serialized Name: ReservationRecommendationDetailsModel.sku - /// - /// - /// An ISO 4217 currency code identifier for the costs and savings - /// Serialized Name: ReservationRecommendationDetailsModel.properties.currency - /// - /// - /// Resource specific properties. - /// Serialized Name: ReservationRecommendationDetailsModel.properties.resource - /// - /// - /// Resource Group. - /// Serialized Name: ReservationRecommendationDetailsModel.properties.resourceGroup - /// - /// - /// Savings information for the recommendation. - /// Serialized Name: ReservationRecommendationDetailsModel.properties.savings - /// - /// - /// Scope of the reservation, ex: Single or Shared. - /// Serialized Name: ReservationRecommendationDetailsModel.properties.scope - /// - /// - /// Historical usage details used to calculate the estimated savings. - /// Serialized Name: ReservationRecommendationDetailsModel.properties.usage - /// - /// - /// The etag for the resource. - /// Serialized Name: Resource.etag - /// - /// - /// Resource tags. - /// Serialized Name: Resource.tags - /// + /// Resource Location. + /// Resource sku. + /// An ISO 4217 currency code identifier for the costs and savings. + /// Resource specific properties. + /// Resource Group. + /// Savings information for the recommendation. + /// Scope of the reservation, ex: Single or Shared. + /// Historical usage details used to calculate the estimated savings. + /// The etag for the resource. + /// Resource tags. /// A new instance for mocking. public static ConsumptionReservationRecommendationDetails ConsumptionReservationRecommendationDetails(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, AzureLocation? location = null, string sku = null, string currency = null, ConsumptionResourceProperties properties = null, string resourceGroup = null, ConsumptionSavingsProperties savings = null, string scope = null, ConsumptionUsageProperties usage = null, ETag? etag = null, IReadOnlyDictionary tags = null) { @@ -641,30 +293,12 @@ public static ConsumptionReservationRecommendationDetails ConsumptionReservation } /// Initializes a new instance of ConsumptionResourceProperties. - /// - /// List of subscriptions for which the reservation is applied. - /// Serialized Name: ReservationRecommendationDetailsResourceProperties.appliedScopes - /// - /// - /// On demand rate of the resource. - /// Serialized Name: ReservationRecommendationDetailsResourceProperties.onDemandRate - /// - /// - /// Azure product ex: Standard_E8s_v3 etc. - /// Serialized Name: ReservationRecommendationDetailsResourceProperties.product - /// - /// - /// Azure resource region ex:EastUS, WestUS etc. - /// Serialized Name: ReservationRecommendationDetailsResourceProperties.region - /// - /// - /// Reservation rate of the resource. - /// Serialized Name: ReservationRecommendationDetailsResourceProperties.reservationRate - /// - /// - /// The azure resource type. - /// Serialized Name: ReservationRecommendationDetailsResourceProperties.resourceType - /// + /// List of subscriptions for which the reservation is applied. + /// On demand rate of the resource. + /// Azure product ex: Standard_E8s_v3 etc. + /// Azure resource region ex:EastUS, WestUS etc. + /// Reservation rate of the resource. + /// The azure resource type. /// A new instance for mocking. public static ConsumptionResourceProperties ConsumptionResourceProperties(IEnumerable appliedScopes = null, float? onDemandRate = null, string product = null, string region = null, float? reservationRate = null, string resourceType = null) { @@ -674,30 +308,12 @@ public static ConsumptionResourceProperties ConsumptionResourceProperties(IEnume } /// Initializes a new instance of ConsumptionSavingsProperties. - /// - /// List of calculated savings. - /// Serialized Name: ReservationRecommendationDetailsSavingsProperties.calculatedSavings - /// - /// - /// Number of days of usage to look back used for computing the recommendation. - /// Serialized Name: ReservationRecommendationDetailsSavingsProperties.lookBackPeriod - /// - /// - /// Number of recommended units of the resource. - /// Serialized Name: ReservationRecommendationDetailsSavingsProperties.recommendedQuantity - /// - /// - /// Term period of the reservation, ex: P1Y or P3Y. - /// Serialized Name: ReservationRecommendationDetailsSavingsProperties.reservationOrderTerm - /// - /// - /// Type of savings, ex: instance. - /// Serialized Name: ReservationRecommendationDetailsSavingsProperties.savingsType - /// - /// - /// Measurement unit ex: hour etc. - /// Serialized Name: ReservationRecommendationDetailsSavingsProperties.unitOfMeasure - /// + /// List of calculated savings. + /// Number of days of usage to look back used for computing the recommendation. + /// Number of recommended units of the resource. + /// Term period of the reservation, ex: P1Y or P3Y. + /// Type of savings, ex: instance. + /// Measurement unit ex: hour etc. /// A new instance for mocking. public static ConsumptionSavingsProperties ConsumptionSavingsProperties(IEnumerable calculatedSavings = null, int? lookBackPeriod = null, float? recommendedQuantity = null, string reservationOrderTerm = null, string savingsType = null, string unitOfMeasure = null) { @@ -707,34 +323,13 @@ public static ConsumptionSavingsProperties ConsumptionSavingsProperties(IEnumera } /// Initializes a new instance of ConsumptionCalculatedSavingsProperties. - /// - /// The cost without reservation. - /// Serialized Name: ReservationRecommendationDetailsCalculatedSavingsProperties.onDemandCost - /// - /// - /// The difference between total reservation cost and reservation cost. - /// Serialized Name: ReservationRecommendationDetailsCalculatedSavingsProperties.overageCost - /// - /// - /// The quantity for calculated savings. - /// Serialized Name: ReservationRecommendationDetailsCalculatedSavingsProperties.quantity - /// - /// - /// The exact cost of the estimated usage using reservation. - /// Serialized Name: ReservationRecommendationDetailsCalculatedSavingsProperties.reservationCost - /// - /// - /// The cost of the suggested quantity. - /// Serialized Name: ReservationRecommendationDetailsCalculatedSavingsProperties.totalReservationCost - /// - /// - /// The number of reserved units used to calculate savings. Always 1 for virtual machines. - /// Serialized Name: ReservationRecommendationDetailsCalculatedSavingsProperties.reservedUnitCount - /// - /// - /// The amount saved by purchasing the recommended quantity of reservation. - /// Serialized Name: ReservationRecommendationDetailsCalculatedSavingsProperties.savings - /// + /// The cost without reservation. + /// The difference between total reservation cost and reservation cost. + /// The quantity for calculated savings. + /// The exact cost of the estimated usage using reservation. + /// The cost of the suggested quantity. + /// The number of reserved units used to calculate savings. Always 1 for virtual machines. + /// The amount saved by purchasing the recommended quantity of reservation. /// A new instance for mocking. public static ConsumptionCalculatedSavingsProperties ConsumptionCalculatedSavingsProperties(float? onDemandCost = null, float? overageCost = null, float? quantity = null, float? reservationCost = null, float? totalReservationCost = null, float? reservedUnitCount = null, float? savings = null) { @@ -742,26 +337,11 @@ public static ConsumptionCalculatedSavingsProperties ConsumptionCalculatedSaving } /// Initializes a new instance of ConsumptionUsageProperties. - /// - /// The first usage date used for looking back for computing the recommendation. - /// Serialized Name: ReservationRecommendationDetailsUsageProperties.firstConsumptionDate - /// - /// - /// The last usage date used for looking back for computing the recommendation. - /// Serialized Name: ReservationRecommendationDetailsUsageProperties.lastConsumptionDate - /// - /// - /// What the usage data values represent ex: virtual machine instance. - /// Serialized Name: ReservationRecommendationDetailsUsageProperties.lookBackUnitType - /// - /// - /// The breakdown of historical resource usage. The values are in the order of usage between the firstConsumptionDate and the lastConsumptionDate. - /// Serialized Name: ReservationRecommendationDetailsUsageProperties.usageData - /// - /// - /// The grain of the values represented in the usage data ex: hourly. - /// Serialized Name: ReservationRecommendationDetailsUsageProperties.usageGrain - /// + /// The first usage date used for looking back for computing the recommendation. + /// The last usage date used for looking back for computing the recommendation. + /// What the usage data values represent ex: virtual machine instance. + /// The breakdown of historical resource usage. The values are in the order of usage between the firstConsumptionDate and the lastConsumptionDate. + /// The grain of the values represented in the usage data ex: hourly. /// A new instance for mocking. public static ConsumptionUsageProperties ConsumptionUsageProperties(string firstConsumptionDate = null, string lastConsumptionDate = null, string lookBackUnitType = null, IEnumerable usageData = null, string usageGrain = null) { @@ -775,102 +355,30 @@ public static ConsumptionUsageProperties ConsumptionUsageProperties(string first /// The name. /// The resourceType. /// The systemData. - /// - /// The date of the transaction - /// Serialized Name: ReservationTransaction.properties.eventDate - /// - /// - /// The reservation order ID is the identifier for a reservation purchase. Each reservation order ID represents a single purchase transaction. A reservation order contains reservations. The reservation order specifies the VM size and region for the reservations. - /// Serialized Name: ReservationTransaction.properties.reservationOrderId - /// - /// - /// The description of the transaction. - /// Serialized Name: ReservationTransaction.properties.description - /// - /// - /// The type of the transaction (Purchase, Cancel or Refund). - /// Serialized Name: ReservationTransaction.properties.eventType - /// - /// - /// The quantity of the transaction. - /// Serialized Name: ReservationTransaction.properties.quantity - /// - /// - /// The charge of the transaction. - /// Serialized Name: ReservationTransaction.properties.amount - /// - /// - /// The ISO currency in which the transaction is charged, for example, USD. - /// Serialized Name: ReservationTransaction.properties.currency - /// - /// - /// The name of the reservation order. - /// Serialized Name: ReservationTransaction.properties.reservationOrderName - /// - /// - /// The purchasing enrollment. - /// Serialized Name: ReservationTransaction.properties.purchasingEnrollment - /// - /// - /// The subscription guid that makes the transaction. - /// Serialized Name: ReservationTransaction.properties.purchasingSubscriptionGuid - /// - /// - /// The subscription name that makes the transaction. - /// Serialized Name: ReservationTransaction.properties.purchasingSubscriptionName - /// - /// - /// This is the ARM Sku name. It can be used to join with the serviceType field in additional info in usage records. - /// Serialized Name: ReservationTransaction.properties.armSkuName - /// - /// - /// This is the term of the transaction. - /// Serialized Name: ReservationTransaction.properties.term - /// - /// - /// The region of the transaction. - /// Serialized Name: ReservationTransaction.properties.region - /// - /// - /// The name of the account that makes the transaction. - /// Serialized Name: ReservationTransaction.properties.accountName - /// - /// - /// The email of the account owner that makes the transaction. - /// Serialized Name: ReservationTransaction.properties.accountOwnerEmail - /// - /// - /// The department name. - /// Serialized Name: ReservationTransaction.properties.departmentName - /// - /// - /// The cost center of this department if it is a department and a cost center is provided. - /// Serialized Name: ReservationTransaction.properties.costCenter - /// - /// - /// The current enrollment. - /// Serialized Name: ReservationTransaction.properties.currentEnrollment - /// - /// - /// The billing frequency, which can be either one-time or recurring. - /// Serialized Name: ReservationTransaction.properties.billingFrequency - /// - /// - /// The billing month(yyyyMMdd), on which the event initiated. - /// Serialized Name: ReservationTransaction.properties.billingMonth - /// - /// - /// The monetary commitment amount at the enrollment scope. - /// Serialized Name: ReservationTransaction.properties.monetaryCommitment - /// - /// - /// The overage amount at the enrollment scope. - /// Serialized Name: ReservationTransaction.properties.overage - /// - /// - /// Resource tags. - /// Serialized Name: ReservationTransactionResource.tags - /// + /// The date of the transaction. + /// The reservation order ID is the identifier for a reservation purchase. Each reservation order ID represents a single purchase transaction. A reservation order contains reservations. The reservation order specifies the VM size and region for the reservations. + /// The description of the transaction. + /// The type of the transaction (Purchase, Cancel or Refund). + /// The quantity of the transaction. + /// The charge of the transaction. + /// The ISO currency in which the transaction is charged, for example, USD. + /// The name of the reservation order. + /// The purchasing enrollment. + /// The subscription guid that makes the transaction. + /// The subscription name that makes the transaction. + /// This is the ARM Sku name. It can be used to join with the serviceType field in additional info in usage records. + /// This is the term of the transaction. + /// The region of the transaction. + /// The name of the account that makes the transaction. + /// The email of the account owner that makes the transaction. + /// The department name. + /// The cost center of this department if it is a department and a cost center is provided. + /// The current enrollment. + /// The billing frequency, which can be either one-time or recurring. + /// The billing month(yyyyMMdd), on which the event initiated. + /// The monetary commitment amount at the enrollment scope. + /// The overage amount at the enrollment scope. + /// Resource tags. /// A new instance for mocking. public static ConsumptionReservationTransaction ConsumptionReservationTransaction(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, DateTimeOffset? transactOn = null, string reservationOrderId = null, string description = null, string eventType = null, decimal? quantity = null, decimal? amount = null, string currency = null, string reservationOrderName = null, string purchasingEnrollment = null, Guid? purchasingSubscriptionGuid = null, string purchasingSubscriptionName = null, string armSkuName = null, string term = null, string region = null, string accountName = null, string accountOwnerEmail = null, string departmentName = null, string costCenter = null, string currentEnrollment = null, string billingFrequency = null, int? billingMonth = null, decimal? monetaryCommitment = null, decimal? overage = null, IEnumerable tags = null) { @@ -884,90 +392,27 @@ public static ConsumptionReservationTransaction ConsumptionReservationTransactio /// The name. /// The resourceType. /// The systemData. - /// - /// The charge of the transaction. - /// Serialized Name: ModernReservationTransaction.properties.amount - /// - /// - /// This is the ARM Sku name. It can be used to join with the serviceType field in additional info in usage records. - /// Serialized Name: ModernReservationTransaction.properties.armSkuName - /// - /// - /// The billing frequency, which can be either one-time or recurring. - /// Serialized Name: ModernReservationTransaction.properties.billingFrequency - /// - /// - /// Billing profile Id. - /// Serialized Name: ModernReservationTransaction.properties.billingProfileId - /// - /// - /// Billing profile name. - /// Serialized Name: ModernReservationTransaction.properties.billingProfileName - /// - /// - /// The ISO currency in which the transaction is charged, for example, USD. - /// Serialized Name: ModernReservationTransaction.properties.currency - /// - /// - /// The description of the transaction. - /// Serialized Name: ModernReservationTransaction.properties.description - /// - /// - /// The date of the transaction - /// Serialized Name: ModernReservationTransaction.properties.eventDate - /// - /// - /// The type of the transaction (Purchase, Cancel or Refund). - /// Serialized Name: ModernReservationTransaction.properties.eventType - /// - /// - /// Invoice Number - /// Serialized Name: ModernReservationTransaction.properties.invoice - /// - /// - /// Invoice Id as on the invoice where the specific transaction appears. - /// Serialized Name: ModernReservationTransaction.properties.invoiceId - /// - /// - /// Invoice Section Id - /// Serialized Name: ModernReservationTransaction.properties.invoiceSectionId - /// - /// - /// Invoice Section Name. - /// Serialized Name: ModernReservationTransaction.properties.invoiceSectionName - /// - /// - /// The subscription guid that makes the transaction. - /// Serialized Name: ModernReservationTransaction.properties.purchasingSubscriptionGuid - /// - /// - /// The subscription name that makes the transaction. - /// Serialized Name: ModernReservationTransaction.properties.purchasingSubscriptionName - /// - /// - /// The quantity of the transaction. - /// Serialized Name: ModernReservationTransaction.properties.quantity - /// - /// - /// The region of the transaction. - /// Serialized Name: ModernReservationTransaction.properties.region - /// - /// - /// The reservation order ID is the identifier for a reservation purchase. Each reservation order ID represents a single purchase transaction. A reservation order contains reservations. The reservation order specifies the VM size and region for the reservations. - /// Serialized Name: ModernReservationTransaction.properties.reservationOrderId - /// - /// - /// The name of the reservation order. - /// Serialized Name: ModernReservationTransaction.properties.reservationOrderName - /// - /// - /// This is the term of the transaction. - /// Serialized Name: ModernReservationTransaction.properties.term - /// - /// - /// Resource tags. - /// Serialized Name: ReservationTransactionResource.tags - /// + /// The charge of the transaction. + /// This is the ARM Sku name. It can be used to join with the serviceType field in additional info in usage records. + /// The billing frequency, which can be either one-time or recurring. + /// Billing profile Id. + /// Billing profile name. + /// The ISO currency in which the transaction is charged, for example, USD. + /// The description of the transaction. + /// The date of the transaction. + /// The type of the transaction (Purchase, Cancel or Refund). + /// Invoice Number. + /// Invoice Id as on the invoice where the specific transaction appears. + /// Invoice Section Id. + /// Invoice Section Name. + /// The subscription guid that makes the transaction. + /// The subscription name that makes the transaction. + /// The quantity of the transaction. + /// The region of the transaction. + /// The reservation order ID is the identifier for a reservation purchase. Each reservation order ID represents a single purchase transaction. A reservation order contains reservations. The reservation order specifies the VM size and region for the reservations. + /// The name of the reservation order. + /// This is the term of the transaction. + /// Resource tags. /// A new instance for mocking. public static ConsumptionModernReservationTransaction ConsumptionModernReservationTransaction(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, decimal? amount = null, string armSkuName = null, string billingFrequency = null, ResourceIdentifier billingProfileId = null, string billingProfileName = null, string currency = null, string description = null, DateTimeOffset? transactOn = null, string eventType = null, string invoice = null, ResourceIdentifier invoiceId = null, ResourceIdentifier invoiceSectionId = null, string invoiceSectionName = null, Guid? purchasingSubscriptionGuid = null, string purchasingSubscriptionName = null, decimal? quantity = null, string region = null, string reservationOrderId = null, string reservationOrderName = null, string term = null, IEnumerable tags = null) { @@ -981,26 +426,11 @@ public static ConsumptionModernReservationTransaction ConsumptionModernReservati /// The name. /// The resourceType. /// The systemData. - /// - /// Price sheet - /// Serialized Name: PriceSheetResult.properties.pricesheets - /// - /// - /// The link (url) to the next page of results. - /// Serialized Name: PriceSheetResult.properties.nextLink - /// - /// - /// Pricesheet download details. - /// Serialized Name: PriceSheetResult.properties.download - /// - /// - /// The etag for the resource. - /// Serialized Name: Resource.etag - /// - /// - /// Resource tags. - /// Serialized Name: Resource.tags - /// + /// Price sheet. + /// The link (url) to the next page of results. + /// Pricesheet download details. + /// The etag for the resource. + /// Resource tags. /// A new instance for mocking. public static PriceSheetResult PriceSheetResult(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IEnumerable pricesheets = null, string nextLink = null, ConsumptionMeterDetails download = null, ETag? etag = null, IReadOnlyDictionary tags = null) { @@ -1011,42 +441,15 @@ public static PriceSheetResult PriceSheetResult(ResourceIdentifier id = null, st } /// Initializes a new instance of PriceSheetProperties. - /// - /// The id of the billing period resource that the usage belongs to. - /// Serialized Name: PriceSheetProperties.billingPeriodId - /// - /// - /// The meter id (GUID) - /// Serialized Name: PriceSheetProperties.meterId - /// - /// - /// The details about the meter. By default this is not populated, unless it's specified in $expand. - /// Serialized Name: PriceSheetProperties.meterDetails - /// - /// - /// Unit of measure - /// Serialized Name: PriceSheetProperties.unitOfMeasure - /// - /// - /// Included quality for an offer - /// Serialized Name: PriceSheetProperties.includedQuantity - /// - /// - /// Part Number - /// Serialized Name: PriceSheetProperties.partNumber - /// - /// - /// Unit Price - /// Serialized Name: PriceSheetProperties.unitPrice - /// - /// - /// Currency Code - /// Serialized Name: PriceSheetProperties.currencyCode - /// - /// - /// Offer Id - /// Serialized Name: PriceSheetProperties.offerId - /// + /// The id of the billing period resource that the usage belongs to. + /// The meter id (GUID). + /// The details about the meter. By default this is not populated, unless it's specified in $expand. + /// Unit of measure. + /// Included quality for an offer. + /// Part Number. + /// Unit Price. + /// Currency Code. + /// Offer Id. /// A new instance for mocking. public static PriceSheetProperties PriceSheetProperties(ResourceIdentifier billingPeriodId = null, Guid? meterId = null, ConsumptionMeterDetails meterDetails = null, string unitOfMeasure = null, decimal? includedQuantity = null, string partNumber = null, decimal? unitPrice = null, string currencyCode = null, string offerId = null) { @@ -1054,42 +457,15 @@ public static PriceSheetProperties PriceSheetProperties(ResourceIdentifier billi } /// Initializes a new instance of ConsumptionMeterDetails. - /// - /// The name of the meter, within the given meter category - /// Serialized Name: MeterDetails.meterName - /// - /// - /// The category of the meter, for example, 'Cloud services', 'Networking', etc.. - /// Serialized Name: MeterDetails.meterCategory - /// - /// - /// The subcategory of the meter, for example, 'A6 Cloud services', 'ExpressRoute (IXP)', etc.. - /// Serialized Name: MeterDetails.meterSubCategory - /// - /// - /// The unit in which the meter consumption is charged, for example, 'Hours', 'GB', etc. - /// Serialized Name: MeterDetails.unit - /// - /// - /// The location in which the Azure service is available. - /// Serialized Name: MeterDetails.meterLocation - /// - /// - /// The total included quantity associated with the offer. - /// Serialized Name: MeterDetails.totalIncludedQuantity - /// - /// - /// The pretax listing price. - /// Serialized Name: MeterDetails.pretaxStandardRate - /// - /// - /// The name of the service. - /// Serialized Name: MeterDetails.serviceName - /// - /// - /// The service tier. - /// Serialized Name: MeterDetails.serviceTier - /// + /// The name of the meter, within the given meter category. + /// The category of the meter, for example, 'Cloud services', 'Networking', etc.. + /// The subcategory of the meter, for example, 'A6 Cloud services', 'ExpressRoute (IXP)', etc.. + /// The unit in which the meter consumption is charged, for example, 'Hours', 'GB', etc. + /// The location in which the Azure service is available. + /// The total included quantity associated with the offer. + /// The pretax listing price. + /// The name of the service. + /// The service tier. /// A new instance for mocking. public static ConsumptionMeterDetails ConsumptionMeterDetails(string meterName = null, string meterCategory = null, string meterSubCategory = null, string unit = null, string meterLocation = null, decimal? totalIncludedQuantity = null, decimal? pretaxStandardRate = null, string serviceName = null, string serviceTier = null) { @@ -1101,54 +477,18 @@ public static ConsumptionMeterDetails ConsumptionMeterDetails(string meterName = /// The name. /// The resourceType. /// The systemData. - /// - /// The id of the billing period resource that the aggregated cost belongs to. - /// Serialized Name: ManagementGroupAggregatedCostResult.properties.billingPeriodId - /// - /// - /// The start of the date time range covered by aggregated cost. - /// Serialized Name: ManagementGroupAggregatedCostResult.properties.usageStart - /// - /// - /// The end of the date time range covered by the aggregated cost. - /// Serialized Name: ManagementGroupAggregatedCostResult.properties.usageEnd - /// - /// - /// Azure Charges. - /// Serialized Name: ManagementGroupAggregatedCostResult.properties.azureCharges - /// - /// - /// Marketplace Charges. - /// Serialized Name: ManagementGroupAggregatedCostResult.properties.marketplaceCharges - /// - /// - /// Charges Billed Separately. - /// Serialized Name: ManagementGroupAggregatedCostResult.properties.chargesBilledSeparately - /// - /// - /// The ISO currency in which the meter is charged, for example, USD. - /// Serialized Name: ManagementGroupAggregatedCostResult.properties.currency - /// - /// - /// Children of a management group - /// Serialized Name: ManagementGroupAggregatedCostResult.properties.children - /// - /// - /// List of subscription Guids included in the calculation of aggregated cost - /// Serialized Name: ManagementGroupAggregatedCostResult.properties.includedSubscriptions - /// - /// - /// List of subscription Guids excluded from the calculation of aggregated cost - /// Serialized Name: ManagementGroupAggregatedCostResult.properties.excludedSubscriptions - /// - /// - /// The etag for the resource. - /// Serialized Name: Resource.etag - /// - /// - /// Resource tags. - /// Serialized Name: Resource.tags - /// + /// The id of the billing period resource that the aggregated cost belongs to. + /// The start of the date time range covered by aggregated cost. + /// The end of the date time range covered by the aggregated cost. + /// Azure Charges. + /// Marketplace Charges. + /// Charges Billed Separately. + /// The ISO currency in which the meter is charged, for example, USD. + /// Children of a management group. + /// List of subscription Guids included in the calculation of aggregated cost. + /// List of subscription Guids excluded from the calculation of aggregated cost. + /// The etag for the resource. + /// Resource tags. /// A new instance for mocking. public static ConsumptionAggregatedCostResult ConsumptionAggregatedCostResult(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string billingPeriodId = null, DateTimeOffset? usageStartOn = null, DateTimeOffset? usageEndOn = null, decimal? azureCharges = null, decimal? marketplaceCharges = null, decimal? chargesBilledSeparately = null, string currency = null, IEnumerable children = null, IEnumerable includedSubscriptions = null, IEnumerable excludedSubscriptions = null, ETag? etag = null, IReadOnlyDictionary tags = null) { @@ -1165,98 +505,29 @@ public static ConsumptionAggregatedCostResult ConsumptionAggregatedCostResult(Re /// The name. /// The resourceType. /// The systemData. - /// - /// The date of the event. - /// Serialized Name: EventSummary.properties.transactionDate - /// - /// - /// The description of the event. - /// Serialized Name: EventSummary.properties.description - /// - /// - /// The amount of new credit or commitment for NewCredit or SettleCharges event. - /// Serialized Name: EventSummary.properties.newCredit - /// - /// - /// The amount of balance adjustment. The property is not available for ConsumptionCommitment lots. - /// Serialized Name: EventSummary.properties.adjustments - /// - /// - /// The amount of expired credit or commitment for NewCredit or SettleCharges event. - /// Serialized Name: EventSummary.properties.creditExpired - /// - /// - /// The amount of charges for events of type SettleCharges and PendingEligibleCharges. - /// Serialized Name: EventSummary.properties.charges - /// - /// - /// The balance after the event. - /// Serialized Name: EventSummary.properties.closedBalance - /// - /// - /// Identifies the type of the event. - /// Serialized Name: EventSummary.properties.eventType - /// - /// - /// The number which uniquely identifies the invoice on which the event was billed. This will be empty for unbilled events. - /// Serialized Name: EventSummary.properties.invoiceNumber - /// - /// - /// The ID that uniquely identifies the billing profile for which the event happened. The property is only available for billing account of type MicrosoftCustomerAgreement. - /// Serialized Name: EventSummary.properties.billingProfileId - /// - /// - /// The display name of the billing profile for which the event happened. The property is only available for billing account of type MicrosoftCustomerAgreement. - /// Serialized Name: EventSummary.properties.billingProfileDisplayName - /// - /// - /// The ID that uniquely identifies the lot for which the event happened. - /// Serialized Name: EventSummary.properties.lotId - /// - /// - /// Identifies the source of the lot for which the event happened. - /// Serialized Name: EventSummary.properties.lotSource - /// - /// - /// Amount of canceled credit. - /// Serialized Name: EventSummary.properties.canceledCredit - /// - /// - /// The credit currency of the event. - /// Serialized Name: EventSummary.properties.creditCurrency - /// - /// - /// The billing currency of the event. - /// Serialized Name: EventSummary.properties.billingCurrency - /// - /// - /// The reseller of the event. - /// Serialized Name: EventSummary.properties.reseller - /// - /// - /// The amount of expired credit or commitment for NewCredit or SettleCharges event in billing currency. - /// Serialized Name: EventSummary.properties.creditExpiredInBillingCurrency - /// - /// - /// The amount of new credit or commitment for NewCredit or SettleCharges event in billing currency. - /// Serialized Name: EventSummary.properties.newCreditInBillingCurrency - /// - /// - /// The amount of balance adjustment in billing currency. - /// Serialized Name: EventSummary.properties.adjustmentsInBillingCurrency - /// - /// - /// The amount of charges for events of type SettleCharges and PendingEligibleCharges in billing currency. - /// Serialized Name: EventSummary.properties.chargesInBillingCurrency - /// - /// - /// The balance in billing currency after the event. - /// Serialized Name: EventSummary.properties.closedBalanceInBillingCurrency - /// - /// - /// 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. - /// Serialized Name: ProxyResource.eTag - /// + /// The date of the event. + /// The description of the event. + /// The amount of new credit or commitment for NewCredit or SettleCharges event. + /// The amount of balance adjustment. The property is not available for ConsumptionCommitment lots. + /// The amount of expired credit or commitment for NewCredit or SettleCharges event. + /// The amount of charges for events of type SettleCharges and PendingEligibleCharges. + /// The balance after the event. + /// Identifies the type of the event. + /// The number which uniquely identifies the invoice on which the event was billed. This will be empty for unbilled events. + /// The ID that uniquely identifies the billing profile for which the event happened. The property is only available for billing account of type MicrosoftCustomerAgreement. + /// The display name of the billing profile for which the event happened. The property is only available for billing account of type MicrosoftCustomerAgreement. + /// The ID that uniquely identifies the lot for which the event happened. + /// Identifies the source of the lot for which the event happened. + /// Amount of canceled credit. + /// The credit currency of the event. + /// The billing currency of the event. + /// The reseller of the event. + /// The amount of expired credit or commitment for NewCredit or SettleCharges event in billing currency. + /// The amount of new credit or commitment for NewCredit or SettleCharges event in billing currency. + /// 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. + /// 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. /// A new instance for mocking. public static ConsumptionEventSummary ConsumptionEventSummary(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, DateTimeOffset? transactOn = null, string description = null, ConsumptionAmount newCredit = null, ConsumptionAmount adjustments = null, ConsumptionAmount creditExpired = null, ConsumptionAmount charges = null, ConsumptionAmount closedBalance = null, ConsumptionEventType? eventType = null, string invoiceNumber = null, ResourceIdentifier billingProfileId = null, string billingProfileDisplayName = null, ResourceIdentifier lotId = null, string lotSource = null, ConsumptionAmount canceledCredit = null, string creditCurrency = null, string billingCurrency = null, ConsumptionReseller reseller = null, ConsumptionAmountWithExchangeRate creditExpiredInBillingCurrency = null, ConsumptionAmountWithExchangeRate newCreditInBillingCurrency = null, ConsumptionAmountWithExchangeRate adjustmentsInBillingCurrency = null, ConsumptionAmountWithExchangeRate chargesInBillingCurrency = null, ConsumptionAmountWithExchangeRate closedBalanceInBillingCurrency = null, ETag? etag = null) { @@ -1264,14 +535,8 @@ public static ConsumptionEventSummary ConsumptionEventSummary(ResourceIdentifier } /// Initializes a new instance of ConsumptionAmount. - /// - /// Amount currency. - /// Serialized Name: Amount.currency - /// - /// - /// Amount. - /// Serialized Name: Amount.value - /// + /// Amount currency. + /// Amount. /// A new instance for mocking. public static ConsumptionAmount ConsumptionAmount(string currency = null, decimal? value = null) { @@ -1279,14 +544,8 @@ public static ConsumptionAmount ConsumptionAmount(string currency = null, decima } /// Initializes a new instance of ConsumptionReseller. - /// - /// The reseller property ID. - /// Serialized Name: Reseller.resellerId - /// - /// - /// The reseller property description. - /// Serialized Name: Reseller.resellerDescription - /// + /// The reseller property ID. + /// The reseller property description. /// A new instance for mocking. public static ConsumptionReseller ConsumptionReseller(ResourceIdentifier resellerId = null, string resellerDescription = null) { @@ -1294,22 +553,10 @@ public static ConsumptionReseller ConsumptionReseller(ResourceIdentifier reselle } /// Initializes a new instance of ConsumptionAmountWithExchangeRate. - /// - /// Amount currency. - /// Serialized Name: Amount.currency - /// - /// - /// Amount. - /// Serialized Name: Amount.value - /// - /// - /// The exchange rate. - /// Serialized Name: AmountWithExchangeRate.exchangeRate - /// - /// - /// The exchange rate month. - /// Serialized Name: AmountWithExchangeRate.exchangeRateMonth - /// + /// Amount currency. + /// Amount. + /// The exchange rate. + /// The exchange rate month. /// A new instance for mocking. public static ConsumptionAmountWithExchangeRate ConsumptionAmountWithExchangeRate(string currency = null, decimal? value = null, decimal? exchangeRate = null, int? exchangeRateMonth = null) { @@ -1321,62 +568,20 @@ public static ConsumptionAmountWithExchangeRate ConsumptionAmountWithExchangeRat /// The name. /// The resourceType. /// The systemData. - /// - /// The original amount of a lot. - /// Serialized Name: LotSummary.properties.originalAmount - /// - /// - /// The balance as of the last invoice. - /// Serialized Name: LotSummary.properties.closedBalance - /// - /// - /// The source of the lot. - /// Serialized Name: LotSummary.properties.source - /// - /// - /// The date when the lot became effective. - /// Serialized Name: LotSummary.properties.startDate - /// - /// - /// The expiration date of a lot. - /// Serialized Name: LotSummary.properties.expirationDate - /// - /// - /// The po number of the invoice on which the lot was added. This property is not available for ConsumptionCommitment lots. - /// Serialized Name: LotSummary.properties.poNumber - /// - /// - /// The date when the lot was added. - /// Serialized Name: LotSummary.properties.purchasedDate - /// - /// - /// The status of the lot. - /// Serialized Name: LotSummary.properties.status - /// - /// - /// The currency of the lot. - /// Serialized Name: LotSummary.properties.creditCurrency - /// - /// - /// The billing currency of the lot. - /// Serialized Name: LotSummary.properties.billingCurrency - /// - /// - /// The original amount of a lot in billing currency. - /// Serialized Name: LotSummary.properties.originalAmountInBillingCurrency - /// - /// - /// The balance as of the last invoice in billing currency. - /// Serialized Name: LotSummary.properties.closedBalanceInBillingCurrency - /// - /// - /// The reseller of the lot. - /// Serialized Name: LotSummary.properties.reseller - /// - /// - /// 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. - /// Serialized Name: ProxyResource.eTag - /// + /// The original amount of a lot. + /// The balance as of the last invoice. + /// The source of the lot. + /// The date when the lot became effective. + /// The expiration date of a lot. + /// The po number of the invoice on which the lot was added. This property is not available for ConsumptionCommitment lots. + /// The date when the lot was added. + /// The status of the lot. + /// The currency of the lot. + /// The billing currency of the lot. + /// The original amount of a lot in billing currency. + /// The balance as of the last invoice in billing currency. + /// The reseller of the lot. + /// 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. /// A new instance for mocking. public static ConsumptionLotSummary ConsumptionLotSummary(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, ConsumptionAmount originalAmount = null, ConsumptionAmount closedBalance = null, ConsumptionLotSource? source = null, DateTimeOffset? startOn = null, DateTimeOffset? expireOn = null, string poNumber = null, DateTimeOffset? purchasedOn = null, ConsumptionLotStatus? status = null, string creditCurrency = null, string billingCurrency = null, ConsumptionAmountWithExchangeRate originalAmountInBillingCurrency = null, ConsumptionAmountWithExchangeRate closedBalanceInBillingCurrency = null, ConsumptionReseller reseller = null, ETag? etag = null) { @@ -1388,38 +593,14 @@ public static ConsumptionLotSummary ConsumptionLotSummary(ResourceIdentifier id /// The name. /// The resourceType. /// The systemData. - /// - /// Summary of balances associated with this credit summary. - /// Serialized Name: CreditSummary.properties.balanceSummary - /// - /// - /// Pending credit adjustments. - /// Serialized Name: CreditSummary.properties.pendingCreditAdjustments - /// - /// - /// Expired credit. - /// Serialized Name: CreditSummary.properties.expiredCredit - /// - /// - /// Pending eligible charges. - /// Serialized Name: CreditSummary.properties.pendingEligibleCharges - /// - /// - /// The credit currency. - /// Serialized Name: CreditSummary.properties.creditCurrency - /// - /// - /// The billing currency. - /// Serialized Name: CreditSummary.properties.billingCurrency - /// - /// - /// Credit's reseller. - /// Serialized Name: CreditSummary.properties.reseller - /// - /// - /// 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. - /// Serialized Name: ProxyResource.eTag - /// + /// Summary of balances associated with this credit summary. + /// Pending credit adjustments. + /// Expired credit. + /// Pending eligible charges. + /// The credit currency. + /// The billing currency. + /// Credit's reseller. + /// 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. /// A new instance for mocking. public static ConsumptionCreditSummary ConsumptionCreditSummary(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, CreditBalanceSummary balanceSummary = null, ConsumptionAmount pendingCreditAdjustments = null, ConsumptionAmount expiredCredit = null, ConsumptionAmount pendingEligibleCharges = null, string creditCurrency = null, string billingCurrency = null, ConsumptionReseller reseller = null, ETag? etag = null) { @@ -1427,18 +608,9 @@ public static ConsumptionCreditSummary ConsumptionCreditSummary(ResourceIdentifi } /// Initializes a new instance of CreditBalanceSummary. - /// - /// Estimated balance. - /// Serialized Name: CreditBalanceSummary.estimatedBalance - /// - /// - /// Current balance. - /// Serialized Name: CreditBalanceSummary.currentBalance - /// - /// - /// Estimated balance in billing currency. - /// Serialized Name: CreditBalanceSummary.estimatedBalanceInBillingCurrency - /// + /// Estimated balance. + /// Current balance. + /// Estimated balance in billing currency. /// A new instance for mocking. public static CreditBalanceSummary CreditBalanceSummary(ConsumptionAmount estimatedBalance = null, ConsumptionAmount currentBalance = null, ConsumptionAmountWithExchangeRate estimatedBalanceInBillingCurrency = null) { @@ -1450,198 +622,54 @@ public static CreditBalanceSummary CreditBalanceSummary(ConsumptionAmount estima /// The name. /// The resourceType. /// The systemData. - /// - /// The etag for the resource. - /// Serialized Name: Resource.etag - /// - /// - /// Resource tags. - /// Serialized Name: Resource.tags - /// - /// - /// Billing Account identifier. - /// Serialized Name: LegacyUsageDetail.properties.billingAccountId - /// - /// - /// Billing Account Name. - /// Serialized Name: LegacyUsageDetail.properties.billingAccountName - /// - /// - /// The billing period start date. - /// Serialized Name: LegacyUsageDetail.properties.billingPeriodStartDate - /// - /// - /// The billing period end date. - /// Serialized Name: LegacyUsageDetail.properties.billingPeriodEndDate - /// - /// - /// Billing Profile identifier. - /// Serialized Name: LegacyUsageDetail.properties.billingProfileId - /// - /// - /// Billing Profile Name. - /// Serialized Name: LegacyUsageDetail.properties.billingProfileName - /// - /// - /// Account Owner Id. - /// Serialized Name: LegacyUsageDetail.properties.accountOwnerId - /// - /// - /// Account Name. - /// Serialized Name: LegacyUsageDetail.properties.accountName - /// - /// - /// Subscription guid. - /// Serialized Name: LegacyUsageDetail.properties.subscriptionId - /// - /// - /// Subscription name. - /// Serialized Name: LegacyUsageDetail.properties.subscriptionName - /// - /// - /// Date for the usage record. - /// Serialized Name: LegacyUsageDetail.properties.date - /// - /// - /// Product name for the consumed service or purchase. Not available for Marketplace. - /// Serialized Name: LegacyUsageDetail.properties.product - /// - /// - /// Part Number of the service used. Can be used to join with the price sheet. Not available for marketplace. - /// Serialized Name: LegacyUsageDetail.properties.partNumber - /// - /// - /// The meter id (GUID). Not available for marketplace. For reserved instance this represents the primary meter for which the reservation was purchased. For the actual VM Size for which the reservation is purchased see productOrderName. - /// Serialized Name: LegacyUsageDetail.properties.meterId - /// - /// - /// The details about the meter. By default this is not populated, unless it's specified in $expand. - /// Serialized Name: LegacyUsageDetail.properties.meterDetails - /// - /// - /// The usage quantity. - /// Serialized Name: LegacyUsageDetail.properties.quantity - /// - /// - /// Effective Price that's charged for the usage. - /// Serialized Name: LegacyUsageDetail.properties.effectivePrice - /// - /// - /// The amount of cost before tax. - /// Serialized Name: LegacyUsageDetail.properties.cost - /// - /// - /// Unit Price is the price applicable to you. (your EA or other contract price). - /// Serialized Name: LegacyUsageDetail.properties.unitPrice - /// - /// - /// Billing Currency. - /// Serialized Name: LegacyUsageDetail.properties.billingCurrency - /// - /// - /// Resource Location. - /// Serialized Name: LegacyUsageDetail.properties.resourceLocation - /// - /// - /// Consumed service name. Name of the azure resource provider that emits the usage or was purchased. This value is not provided for marketplace usage. - /// Serialized Name: LegacyUsageDetail.properties.consumedService - /// - /// - /// Unique identifier of the Azure Resource Manager usage detail resource. - /// Serialized Name: LegacyUsageDetail.properties.resourceId - /// - /// - /// Resource Name. - /// Serialized Name: LegacyUsageDetail.properties.resourceName - /// - /// - /// Service-specific metadata. - /// Serialized Name: LegacyUsageDetail.properties.serviceInfo1 - /// - /// - /// Legacy field with optional service-specific metadata. - /// Serialized Name: LegacyUsageDetail.properties.serviceInfo2 - /// - /// - /// Additional details of this usage item. By default this is not populated, unless it's specified in $expand. Use this field to get usage line item specific details such as the actual VM Size (ServiceType) or the ratio in which the reservation discount is applied. - /// Serialized Name: LegacyUsageDetail.properties.additionalInfo - /// - /// - /// Invoice Section Name. - /// Serialized Name: LegacyUsageDetail.properties.invoiceSection - /// - /// - /// The cost center of this department if it is a department and a cost center is provided. - /// Serialized Name: LegacyUsageDetail.properties.costCenter - /// - /// - /// Resource Group Name. - /// Serialized Name: LegacyUsageDetail.properties.resourceGroup - /// - /// - /// ARM resource id of the reservation. Only applies to records relevant to reservations. - /// Serialized Name: LegacyUsageDetail.properties.reservationId - /// - /// - /// User provided display name of the reservation. Last known name for a particular day is populated in the daily data. Only applies to records relevant to reservations. - /// Serialized Name: LegacyUsageDetail.properties.reservationName - /// - /// - /// Product Order Id. For reservations this is the Reservation Order ID. - /// Serialized Name: LegacyUsageDetail.properties.productOrderId - /// - /// - /// Product Order Name. For reservations this is the SKU that was purchased. - /// Serialized Name: LegacyUsageDetail.properties.productOrderName - /// - /// - /// Offer Id. Ex: MS-AZR-0017P, MS-AZR-0148P. - /// Serialized Name: LegacyUsageDetail.properties.offerId - /// - /// - /// Is Azure Credit Eligible. - /// Serialized Name: LegacyUsageDetail.properties.isAzureCreditEligible - /// - /// - /// Term (in months). 1 month for monthly recurring purchase. 12 months for a 1 year reservation. 36 months for a 3 year reservation. - /// Serialized Name: LegacyUsageDetail.properties.term - /// - /// - /// Publisher Name. - /// Serialized Name: LegacyUsageDetail.properties.publisherName - /// - /// - /// Publisher Type. - /// Serialized Name: LegacyUsageDetail.properties.publisherType - /// - /// - /// Plan Name. - /// Serialized Name: LegacyUsageDetail.properties.planName - /// - /// - /// Indicates a charge represents credits, usage, a Marketplace purchase, a reservation fee, or a refund. - /// Serialized Name: LegacyUsageDetail.properties.chargeType - /// - /// - /// Indicates how frequently this charge will occur. OneTime for purchases which only happen once, Monthly for fees which recur every month, and UsageBased for charges based on how much a service is used. - /// Serialized Name: LegacyUsageDetail.properties.frequency - /// - /// - /// Retail price for the resource. - /// Serialized Name: LegacyUsageDetail.properties.payGPrice - /// - /// - /// Unique identifier for the applicable benefit. - /// Serialized Name: LegacyUsageDetail.properties.benefitId - /// - /// - /// Name of the applicable benefit. - /// Serialized Name: LegacyUsageDetail.properties.benefitName - /// - /// - /// Identifier that indicates how the meter is priced. - /// Serialized Name: LegacyUsageDetail.properties.pricingModel - /// + /// The etag for the resource. + /// Resource tags. + /// Billing Account identifier. + /// Billing Account Name. + /// The billing period start date. + /// The billing period end date. + /// Billing Profile identifier. + /// Billing Profile Name. + /// Account Owner Id. + /// Account Name. + /// Subscription guid. + /// Subscription name. + /// Date for the usage record. + /// Product name for the consumed service or purchase. Not available for Marketplace. + /// Part Number of the service used. Can be used to join with the price sheet. Not available for marketplace. + /// The meter id (GUID). Not available for marketplace. For reserved instance this represents the primary meter for which the reservation was purchased. For the actual VM Size for which the reservation is purchased see productOrderName. + /// The details about the meter. By default this is not populated, unless it's specified in $expand. + /// The usage quantity. + /// Effective Price that's charged for the usage. + /// The amount of cost before tax. + /// Unit Price is the price applicable to you. (your EA or other contract price). + /// Billing Currency. + /// Resource Location. + /// Consumed service name. Name of the azure resource provider that emits the usage or was purchased. This value is not provided for marketplace usage. + /// Unique identifier of the Azure Resource Manager usage detail resource. + /// Resource Name. + /// Service-specific metadata. + /// Legacy field with optional service-specific metadata. + /// Additional details of this usage item. By default this is not populated, unless it's specified in $expand. Use this field to get usage line item specific details such as the actual VM Size (ServiceType) or the ratio in which the reservation discount is applied. + /// Invoice Section Name. + /// The cost center of this department if it is a department and a cost center is provided. + /// Resource Group Name. + /// ARM resource id of the reservation. Only applies to records relevant to reservations. + /// User provided display name of the reservation. Last known name for a particular day is populated in the daily data. Only applies to records relevant to reservations. + /// Product Order Id. For reservations this is the Reservation Order ID. + /// Product Order Name. For reservations this is the SKU that was purchased. + /// Offer Id. Ex: MS-AZR-0017P, MS-AZR-0148P. + /// Is Azure Credit Eligible. + /// Term (in months). 1 month for monthly recurring purchase. 12 months for a 1 year reservation. 36 months for a 3 year reservation. + /// Publisher Name. + /// Publisher Type. + /// Plan Name. + /// Indicates a charge represents credits, usage, a Marketplace purchase, a reservation fee, or a refund. + /// Indicates how frequently this charge will occur. OneTime for purchases which only happen once, Monthly for fees which recur every month, and UsageBased for charges based on how much a service is used. + /// Retail price for the resource. + /// Unique identifier for the applicable benefit. + /// Name of the applicable benefit. + /// Identifier that indicates how the meter is priced. /// A new instance for mocking. public static ConsumptionLegacyUsageDetail ConsumptionLegacyUsageDetail(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, ETag? etag = null, IReadOnlyDictionary tags = null, string billingAccountId = null, string billingAccountName = null, DateTimeOffset? billingPeriodStartOn = null, DateTimeOffset? billingPeriodEndOn = null, string billingProfileId = null, string billingProfileName = null, string accountOwnerId = null, string accountName = null, string subscriptionId = null, string subscriptionName = null, DateTimeOffset? @on = null, string product = null, string partNumber = null, Guid? meterId = null, ConsumptionMeterDetailsInfo meterDetails = null, decimal? quantity = null, decimal? effectivePrice = null, decimal? cost = null, decimal? unitPrice = null, string billingCurrency = null, string resourceLocation = null, string consumedService = null, string resourceId = null, string resourceName = null, string serviceInfo1 = null, string serviceInfo2 = null, string additionalInfo = null, string invoiceSection = null, string costCenter = null, string resourceGroup = null, string reservationId = null, string reservationName = null, string productOrderId = null, string productOrderName = null, string offerId = null, bool? isAzureCreditEligible = null, string term = null, string publisherName = null, string publisherType = null, string planName = null, string chargeType = null, string frequency = null, decimal? payGPrice = null, string benefitId = null, string benefitName = null, ConsumptionPricingModelType? pricingModel = null) { @@ -1651,26 +679,11 @@ public static ConsumptionLegacyUsageDetail ConsumptionLegacyUsageDetail(Resource } /// Initializes a new instance of ConsumptionMeterDetailsInfo. - /// - /// The name of the meter, within the given meter category - /// Serialized Name: MeterDetailsResponse.meterName - /// - /// - /// The category of the meter, for example, 'Cloud services', 'Networking', etc.. - /// Serialized Name: MeterDetailsResponse.meterCategory - /// - /// - /// The subcategory of the meter, for example, 'A6 Cloud services', 'ExpressRoute (IXP)', etc.. - /// Serialized Name: MeterDetailsResponse.meterSubCategory - /// - /// - /// The unit in which the meter consumption is charged, for example, 'Hours', 'GB', etc. - /// Serialized Name: MeterDetailsResponse.unitOfMeasure - /// - /// - /// The service family. - /// Serialized Name: MeterDetailsResponse.serviceFamily - /// + /// The name of the meter, within the given meter category. + /// The category of the meter, for example, 'Cloud services', 'Networking', etc.. + /// The subcategory of the meter, for example, 'A6 Cloud services', 'ExpressRoute (IXP)', etc.. + /// The unit in which the meter consumption is charged, for example, 'Hours', 'GB', etc. + /// The service family. /// A new instance for mocking. public static ConsumptionMeterDetailsInfo ConsumptionMeterDetailsInfo(string meterName = null, string meterCategory = null, string meterSubCategory = null, string unitOfMeasure = null, string serviceFamily = null) { @@ -1682,302 +695,80 @@ public static ConsumptionMeterDetailsInfo ConsumptionMeterDetailsInfo(string met /// The name. /// The resourceType. /// The systemData. - /// - /// The etag for the resource. - /// Serialized Name: Resource.etag - /// - /// - /// Resource tags. - /// Serialized Name: Resource.tags - /// - /// - /// Billing Account identifier. - /// Serialized Name: ModernUsageDetail.properties.billingAccountId - /// - /// - /// Effective Price that's charged for the usage. - /// Serialized Name: ModernUsageDetail.properties.effectivePrice - /// - /// - /// Identifier that indicates how the meter is priced - /// Serialized Name: ModernUsageDetail.properties.pricingModel - /// - /// - /// Name of the Billing Account. - /// Serialized Name: ModernUsageDetail.properties.billingAccountName - /// - /// - /// Billing Period Start Date as in the invoice. - /// Serialized Name: ModernUsageDetail.properties.billingPeriodStartDate - /// - /// - /// Billing Period End Date as in the invoice. - /// Serialized Name: ModernUsageDetail.properties.billingPeriodEndDate - /// - /// - /// Identifier for the billing profile that groups costs across invoices in the a singular billing currency across across the customers who have onboarded the Microsoft customer agreement and the customers in CSP who have made entitlement purchases like SaaS, Marketplace, RI, etc. - /// Serialized Name: ModernUsageDetail.properties.billingProfileId - /// - /// - /// Name of the billing profile that groups costs across invoices in the a singular billing currency across across the customers who have onboarded the Microsoft customer agreement and the customers in CSP who have made entitlement purchases like SaaS, Marketplace, RI, etc. - /// Serialized Name: ModernUsageDetail.properties.billingProfileName - /// - /// - /// Unique Microsoft generated identifier for the Azure Subscription. - /// Serialized Name: ModernUsageDetail.properties.subscriptionGuid - /// - /// - /// Name of the Azure Subscription. - /// Serialized Name: ModernUsageDetail.properties.subscriptionName - /// - /// - /// Date for the usage record. - /// Serialized Name: ModernUsageDetail.properties.date - /// - /// - /// Name of the product that has accrued charges by consumption or purchase as listed in the invoice. Not available for Marketplace. - /// Serialized Name: ModernUsageDetail.properties.product - /// - /// - /// The meter id (GUID). Not available for marketplace. For reserved instance this represents the primary meter for which the reservation was purchased. For the actual VM Size for which the reservation is purchased see productOrderName. - /// Serialized Name: ModernUsageDetail.properties.meterId - /// - /// - /// Identifies the name of the meter against which consumption is measured. - /// Serialized Name: ModernUsageDetail.properties.meterName - /// - /// - /// Identifies the location of the datacenter for certain services that are priced based on datacenter location. - /// Serialized Name: ModernUsageDetail.properties.meterRegion - /// - /// - /// Identifies the top-level service for the usage. - /// Serialized Name: ModernUsageDetail.properties.meterCategory - /// - /// - /// Defines the type or sub-category of Azure service that can affect the rate. - /// Serialized Name: ModernUsageDetail.properties.meterSubCategory - /// - /// - /// List the service family for the product purchased or charged (Example: Storage ; Compute). - /// Serialized Name: ModernUsageDetail.properties.serviceFamily - /// - /// - /// Measure the quantity purchased or consumed.The amount of the meter used during the billing period. - /// Serialized Name: ModernUsageDetail.properties.quantity - /// - /// - /// Identifies the Unit that the service is charged in. For example, GB, hours, 10,000 s. - /// Serialized Name: ModernUsageDetail.properties.unitOfMeasure - /// - /// - /// Instance Name. - /// Serialized Name: ModernUsageDetail.properties.instanceName - /// - /// - /// Estimated extendedCost or blended cost before tax in USD. - /// Serialized Name: ModernUsageDetail.properties.costInUSD - /// - /// - /// Unit Price is the price applicable to you. (your EA or other contract price). - /// Serialized Name: ModernUsageDetail.properties.unitPrice - /// - /// - /// The currency defining the billed cost. - /// Serialized Name: ModernUsageDetail.properties.billingCurrencyCode - /// - /// - /// Name of the resource location. - /// Serialized Name: ModernUsageDetail.properties.resourceLocation - /// - /// - /// Consumed service name. Name of the azure resource provider that emits the usage or was purchased. This value is not provided for marketplace usage. - /// Serialized Name: ModernUsageDetail.properties.consumedService - /// - /// - /// Service-specific metadata. - /// Serialized Name: ModernUsageDetail.properties.serviceInfo1 - /// - /// - /// Legacy field with optional service-specific metadata. - /// Serialized Name: ModernUsageDetail.properties.serviceInfo2 - /// - /// - /// Additional details of this usage item. Use this field to get usage line item specific details such as the actual VM Size (ServiceType) or the ratio in which the reservation discount is applied. - /// Serialized Name: ModernUsageDetail.properties.additionalInfo - /// - /// - /// Identifier of the project that is being charged in the invoice. Not applicable for Microsoft Customer Agreements onboarded by partners. - /// Serialized Name: ModernUsageDetail.properties.invoiceSectionId - /// - /// - /// Name of the project that is being charged in the invoice. Not applicable for Microsoft Customer Agreements onboarded by partners. - /// Serialized Name: ModernUsageDetail.properties.invoiceSectionName - /// - /// - /// The cost center of this department if it is a department and a cost center is provided. - /// Serialized Name: ModernUsageDetail.properties.costCenter - /// - /// - /// Name of the Azure resource group used for cohesive lifecycle management of resources. - /// Serialized Name: ModernUsageDetail.properties.resourceGroup - /// - /// - /// ARM resource id of the reservation. Only applies to records relevant to reservations. - /// Serialized Name: ModernUsageDetail.properties.reservationId - /// - /// - /// User provided display name of the reservation. Last known name for a particular day is populated in the daily data. Only applies to records relevant to reservations. - /// Serialized Name: ModernUsageDetail.properties.reservationName - /// - /// - /// The identifier for the asset or Azure plan name that the subscription belongs to. For example: Azure Plan. For reservations this is the Reservation Order ID. - /// Serialized Name: ModernUsageDetail.properties.productOrderId - /// - /// - /// Product Order Name. For reservations this is the SKU that was purchased. - /// Serialized Name: ModernUsageDetail.properties.productOrderName - /// - /// - /// Determines if the cost is eligible to be paid for using Azure credits. - /// Serialized Name: ModernUsageDetail.properties.isAzureCreditEligible - /// - /// - /// Term (in months). Displays the term for the validity of the offer. For example. In case of reserved instances it displays 12 months for yearly term of reserved instance. For one time purchases or recurring purchases, the terms displays 1 month; This is not applicable for Azure consumption. - /// Serialized Name: ModernUsageDetail.properties.term - /// - /// - /// Name of the publisher of the service including Microsoft or Third Party publishers. - /// Serialized Name: ModernUsageDetail.properties.publisherName - /// - /// - /// Type of publisher that identifies if the publisher is first party, third party reseller or third party agency. - /// Serialized Name: ModernUsageDetail.properties.publisherType - /// - /// - /// Indicates a charge represents credits, usage, a Marketplace purchase, a reservation fee, or a refund. - /// Serialized Name: ModernUsageDetail.properties.chargeType - /// - /// - /// Indicates how frequently this charge will occur. OneTime for purchases which only happen once, Monthly for fees which recur every month, and UsageBased for charges based on how much a service is used. - /// Serialized Name: ModernUsageDetail.properties.frequency - /// - /// - /// ExtendedCost or blended cost before tax in billed currency. - /// Serialized Name: ModernUsageDetail.properties.costInBillingCurrency - /// - /// - /// ExtendedCost or blended cost before tax in pricing currency to correlate with prices. - /// Serialized Name: ModernUsageDetail.properties.costInPricingCurrency - /// - /// - /// Exchange rate used in conversion from pricing currency to billing currency. - /// Serialized Name: ModernUsageDetail.properties.exchangeRate - /// - /// - /// Date on which exchange rate used in conversion from pricing currency to billing currency. - /// Serialized Name: ModernUsageDetail.properties.exchangeRateDate - /// - /// - /// Invoice ID as on the invoice where the specific transaction appears. - /// Serialized Name: ModernUsageDetail.properties.invoiceId - /// - /// - /// Reference to an original invoice there is a refund (negative cost). This is populated only when there is a refund. - /// Serialized Name: ModernUsageDetail.properties.previousInvoiceId - /// - /// - /// Pricing Billing Currency. - /// Serialized Name: ModernUsageDetail.properties.pricingCurrencyCode - /// - /// - /// Identifier for the product that has accrued charges by consumption or purchase . This is the concatenated key of productId and SkuId in partner center. - /// Serialized Name: ModernUsageDetail.properties.productIdentifier - /// - /// - /// Resource Location Normalized. - /// Serialized Name: ModernUsageDetail.properties.resourceLocationNormalized - /// - /// - /// Start date for the rating period when the service usage was rated for charges. The prices for Azure services are determined for the rating period. - /// Serialized Name: ModernUsageDetail.properties.servicePeriodStartDate - /// - /// - /// End date for the period when the service usage was rated for charges. The prices for Azure services are determined based on the rating period. - /// Serialized Name: ModernUsageDetail.properties.servicePeriodEndDate - /// - /// - /// Identifier of the customer's AAD tenant. - /// Serialized Name: ModernUsageDetail.properties.customerTenantId - /// - /// - /// Name of the customer's AAD tenant. - /// Serialized Name: ModernUsageDetail.properties.customerName - /// - /// - /// Identifier for the partner's AAD tenant. - /// Serialized Name: ModernUsageDetail.properties.partnerTenantId - /// - /// - /// Name of the partner' AAD tenant. - /// Serialized Name: ModernUsageDetail.properties.partnerName - /// - /// - /// MPNId for the reseller associated with the subscription. - /// Serialized Name: ModernUsageDetail.properties.resellerMpnId - /// - /// - /// Reseller Name. - /// Serialized Name: ModernUsageDetail.properties.resellerName - /// - /// - /// Publisher Id. - /// Serialized Name: ModernUsageDetail.properties.publisherId - /// - /// - /// Market Price that's charged for the usage. - /// Serialized Name: ModernUsageDetail.properties.marketPrice - /// - /// - /// Exchange Rate from pricing currency to billing currency. - /// Serialized Name: ModernUsageDetail.properties.exchangeRatePricingToBilling - /// - /// - /// The amount of PayG cost before tax in billing currency. - /// Serialized Name: ModernUsageDetail.properties.paygCostInBillingCurrency - /// - /// - /// The amount of PayG cost before tax in US Dollar currency. - /// Serialized Name: ModernUsageDetail.properties.paygCostInUSD - /// - /// - /// Rate of discount applied if there is a partner earned credit (PEC) based on partner admin link access. - /// Serialized Name: ModernUsageDetail.properties.partnerEarnedCreditRate - /// - /// - /// Flag to indicate if partner earned credit has been applied or not. - /// Serialized Name: ModernUsageDetail.properties.partnerEarnedCreditApplied - /// - /// - /// Retail price for the resource. - /// Serialized Name: ModernUsageDetail.properties.payGPrice - /// - /// - /// Unique identifier for the applicable benefit. - /// Serialized Name: ModernUsageDetail.properties.benefitId - /// - /// - /// Name of the applicable benefit. - /// Serialized Name: ModernUsageDetail.properties.benefitName - /// - /// - /// Identifier for Product Category or Line Of Business, Ex - Azure, Microsoft 365, AWS e.t.c - /// Serialized Name: ModernUsageDetail.properties.provider - /// - /// - /// Name for Cost Allocation Rule. - /// Serialized Name: ModernUsageDetail.properties.costAllocationRuleName - /// + /// The etag for the resource. + /// Resource tags. + /// Billing Account identifier. + /// Effective Price that's charged for the usage. + /// Identifier that indicates how the meter is priced. + /// Name of the Billing Account. + /// Billing Period Start Date as in the invoice. + /// Billing Period End Date as in the invoice. + /// Identifier for the billing profile that groups costs across invoices in the a singular billing currency across across the customers who have onboarded the Microsoft customer agreement and the customers in CSP who have made entitlement purchases like SaaS, Marketplace, RI, etc. + /// Name of the billing profile that groups costs across invoices in the a singular billing currency across across the customers who have onboarded the Microsoft customer agreement and the customers in CSP who have made entitlement purchases like SaaS, Marketplace, RI, etc. + /// Unique Microsoft generated identifier for the Azure Subscription. + /// Name of the Azure Subscription. + /// Date for the usage record. + /// Name of the product that has accrued charges by consumption or purchase as listed in the invoice. Not available for Marketplace. + /// The meter id (GUID). Not available for marketplace. For reserved instance this represents the primary meter for which the reservation was purchased. For the actual VM Size for which the reservation is purchased see productOrderName. + /// Identifies the name of the meter against which consumption is measured. + /// Identifies the location of the datacenter for certain services that are priced based on datacenter location. + /// Identifies the top-level service for the usage. + /// Defines the type or sub-category of Azure service that can affect the rate. + /// List the service family for the product purchased or charged (Example: Storage ; Compute). + /// Measure the quantity purchased or consumed.The amount of the meter used during the billing period. + /// Identifies the Unit that the service is charged in. For example, GB, hours, 10,000 s. + /// Instance Name. + /// Estimated extendedCost or blended cost before tax in USD. + /// Unit Price is the price applicable to you. (your EA or other contract price). + /// The currency defining the billed cost. + /// Name of the resource location. + /// Consumed service name. Name of the azure resource provider that emits the usage or was purchased. This value is not provided for marketplace usage. + /// Service-specific metadata. + /// Legacy field with optional service-specific metadata. + /// Additional details of this usage item. Use this field to get usage line item specific details such as the actual VM Size (ServiceType) or the ratio in which the reservation discount is applied. + /// Identifier of the project that is being charged in the invoice. Not applicable for Microsoft Customer Agreements onboarded by partners. + /// Name of the project that is being charged in the invoice. Not applicable for Microsoft Customer Agreements onboarded by partners. + /// The cost center of this department if it is a department and a cost center is provided. + /// Name of the Azure resource group used for cohesive lifecycle management of resources. + /// ARM resource id of the reservation. Only applies to records relevant to reservations. + /// User provided display name of the reservation. Last known name for a particular day is populated in the daily data. Only applies to records relevant to reservations. + /// The identifier for the asset or Azure plan name that the subscription belongs to. For example: Azure Plan. For reservations this is the Reservation Order ID. + /// Product Order Name. For reservations this is the SKU that was purchased. + /// Determines if the cost is eligible to be paid for using Azure credits. + /// Term (in months). Displays the term for the validity of the offer. For example. In case of reserved instances it displays 12 months for yearly term of reserved instance. For one time purchases or recurring purchases, the terms displays 1 month; This is not applicable for Azure consumption. + /// Name of the publisher of the service including Microsoft or Third Party publishers. + /// Type of publisher that identifies if the publisher is first party, third party reseller or third party agency. + /// Indicates a charge represents credits, usage, a Marketplace purchase, a reservation fee, or a refund. + /// Indicates how frequently this charge will occur. OneTime for purchases which only happen once, Monthly for fees which recur every month, and UsageBased for charges based on how much a service is used. + /// ExtendedCost or blended cost before tax in billed currency. + /// ExtendedCost or blended cost before tax in pricing currency to correlate with prices. + /// Exchange rate used in conversion from pricing currency to billing currency. + /// Date on which exchange rate used in conversion from pricing currency to billing currency. + /// Invoice ID as on the invoice where the specific transaction appears. + /// Reference to an original invoice there is a refund (negative cost). This is populated only when there is a refund. + /// Pricing Billing Currency. + /// Identifier for the product that has accrued charges by consumption or purchase . This is the concatenated key of productId and SkuId in partner center. + /// Resource Location Normalized. + /// Start date for the rating period when the service usage was rated for charges. The prices for Azure services are determined for the rating period. + /// End date for the period when the service usage was rated for charges. The prices for Azure services are determined based on the rating period. + /// Identifier of the customer's AAD tenant. + /// Name of the customer's AAD tenant. + /// Identifier for the partner's AAD tenant. + /// Name of the partner' AAD tenant. + /// MPNId for the reseller associated with the subscription. + /// Reseller Name. + /// Publisher Id. + /// Market Price that's charged for the usage. + /// Exchange Rate from pricing currency to billing currency. + /// The amount of PayG cost before tax in billing currency. + /// The amount of PayG cost before tax in US Dollar currency. + /// Rate of discount applied if there is a partner earned credit (PEC) based on partner admin link access. + /// Flag to indicate if partner earned credit has been applied or not. + /// Retail price for the resource. + /// Unique identifier for the applicable benefit. + /// Name of the applicable benefit. + /// Identifier for Product Category or Line Of Business, Ex - Azure, Microsoft 365, AWS e.t.c. + /// Name for Cost Allocation Rule. /// A new instance for mocking. public static ConsumptionModernUsageDetail ConsumptionModernUsageDetail(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, ETag? etag = null, IReadOnlyDictionary tags = null, string billingAccountId = null, decimal? effectivePrice = null, ConsumptionPricingModelType? pricingModel = null, string billingAccountName = null, DateTimeOffset? billingPeriodStartOn = null, DateTimeOffset? billingPeriodEndOn = null, string billingProfileId = null, string billingProfileName = null, string subscriptionGuid = null, string subscriptionName = null, DateTimeOffset? @on = null, string product = null, Guid? meterId = null, string meterName = null, string meterRegion = null, string meterCategory = null, string meterSubCategory = null, string serviceFamily = null, decimal? quantity = null, string unitOfMeasure = null, string instanceName = null, decimal? costInUSD = null, decimal? unitPrice = null, string billingCurrencyCode = null, string resourceLocation = null, string consumedService = null, string serviceInfo1 = null, string serviceInfo2 = null, string additionalInfo = null, string invoiceSectionId = null, string invoiceSectionName = null, string costCenter = null, string resourceGroup = null, string reservationId = null, string reservationName = null, string productOrderId = null, string productOrderName = null, bool? isAzureCreditEligible = null, string term = null, string publisherName = null, string publisherType = null, string chargeType = null, string frequency = null, decimal? costInBillingCurrency = null, decimal? costInPricingCurrency = null, string exchangeRate = null, DateTimeOffset? exchangeRateOn = null, string invoiceId = null, string previousInvoiceId = null, string pricingCurrencyCode = null, string productIdentifier = null, string resourceLocationNormalized = null, DateTimeOffset? servicePeriodStartOn = null, DateTimeOffset? servicePeriodEndOn = null, string customerTenantId = null, string customerName = null, string partnerTenantId = null, string partnerName = null, string resellerMpnId = null, string resellerName = null, string publisherId = null, decimal? marketPrice = null, decimal? exchangeRatePricingToBilling = null, decimal? paygCostInBillingCurrency = null, decimal? paygCostInUSD = null, decimal? partnerEarnedCreditRate = null, string partnerEarnedCreditApplied = null, decimal? payGPrice = null, string benefitId = null, string benefitName = null, string provider = null, string costAllocationRuleName = null) { @@ -1987,14 +778,8 @@ public static ConsumptionModernUsageDetail ConsumptionModernUsageDetail(Resource } /// Initializes a new instance of ConsumptionSkuProperty. - /// - /// The name of sku property. - /// Serialized Name: SkuProperty.name - /// - /// - /// The value of sku property. - /// Serialized Name: SkuProperty.value - /// + /// The name of sku property. + /// The value of sku property. /// A new instance for mocking. public static ConsumptionSkuProperty ConsumptionSkuProperty(string name = null, string value = null) { @@ -2006,86 +791,26 @@ public static ConsumptionSkuProperty ConsumptionSkuProperty(string name = null, /// The name. /// The resourceType. /// The systemData. - /// - /// The etag for the resource. - /// Serialized Name: Resource.etag - /// - /// - /// Resource tags. - /// Serialized Name: Resource.tags - /// - /// - /// Resource location - /// Serialized Name: ResourceAttributes.location - /// - /// - /// Resource sku - /// Serialized Name: ResourceAttributes.sku - /// - /// - /// Resource Location. - /// Serialized Name: ModernReservationRecommendation.properties.location - /// - /// - /// The number of days of usage to look back for recommendation. - /// Serialized Name: ModernReservationRecommendation.properties.lookBackPeriod - /// - /// - /// The instance Flexibility Ratio. - /// Serialized Name: ModernReservationRecommendation.properties.instanceFlexibilityRatio - /// - /// - /// The instance Flexibility Group. - /// Serialized Name: ModernReservationRecommendation.properties.instanceFlexibilityGroup - /// - /// - /// The normalized Size. - /// Serialized Name: ModernReservationRecommendation.properties.normalizedSize - /// - /// - /// The recommended Quantity Normalized. - /// Serialized Name: ModernReservationRecommendation.properties.recommendedQuantityNormalized - /// - /// - /// The meter id (GUID) - /// Serialized Name: ModernReservationRecommendation.properties.meterId - /// - /// - /// RI recommendations in one or three year terms. - /// Serialized Name: ModernReservationRecommendation.properties.term - /// - /// - /// The total amount of cost without reserved instances. - /// Serialized Name: ModernReservationRecommendation.properties.costWithNoReservedInstances - /// - /// - /// Recommended quality for reserved instances. - /// Serialized Name: ModernReservationRecommendation.properties.recommendedQuantity - /// - /// - /// The total amount of cost with reserved instances. - /// Serialized Name: ModernReservationRecommendation.properties.totalCostWithReservedInstances - /// - /// - /// Total estimated savings with reserved instances. - /// Serialized Name: ModernReservationRecommendation.properties.netSavings - /// - /// - /// The usage date for looking back. - /// Serialized Name: ModernReservationRecommendation.properties.firstUsageDate - /// - /// - /// Shared or single recommendation. - /// Serialized Name: ModernReservationRecommendation.properties.scope - /// - /// - /// List of sku properties - /// Serialized Name: ModernReservationRecommendation.properties.skuProperties - /// - /// - /// This is the ARM Sku name. - /// Serialized Name: ModernReservationRecommendation.properties.skuName - /// + /// The etag for the resource. + /// Resource tags. + /// Resource location. + /// Resource sku. + /// Resource Location. + /// The number of days of usage to look back for recommendation. + /// The instance Flexibility Ratio. + /// The instance Flexibility Group. + /// The normalized Size. + /// The recommended Quantity Normalized. + /// The meter id (GUID). + /// RI recommendations in one or three year terms. + /// The total amount of cost without reserved instances. + /// Recommended quality for reserved instances. + /// The total amount of cost with reserved instances. + /// Total estimated savings with reserved instances. + /// The usage date for looking back. + /// Shared or single recommendation. + /// List of sku properties. + /// This is the ARM Sku name. /// A new instance for mocking. public static ConsumptionModernReservationRecommendation ConsumptionModernReservationRecommendation(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, ETag? etag = null, IReadOnlyDictionary tags = null, AzureLocation? location = null, string sku = null, string locationPropertiesLocation = null, int? lookBackPeriod = null, float? instanceFlexibilityRatio = null, string instanceFlexibilityGroup = null, string normalizedSize = null, float? recommendedQuantityNormalized = null, Guid? meterId = null, string term = null, ConsumptionAmount costWithNoReservedInstances = null, decimal? recommendedQuantity = null, ConsumptionAmount totalCostWithReservedInstances = null, ConsumptionAmount netSavings = null, DateTimeOffset? firstUsageOn = null, string scope = null, IEnumerable skuProperties = null, string skuName = null) { @@ -2100,38 +825,14 @@ public static ConsumptionModernReservationRecommendation ConsumptionModernReserv /// The name. /// The resourceType. /// The systemData. - /// - /// 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. - /// Serialized Name: ProxyResource.eTag - /// - /// - /// The id of the billing period resource that the charge belongs to. - /// Serialized Name: LegacyChargeSummary.properties.billingPeriodId - /// - /// - /// Usage start date. - /// Serialized Name: LegacyChargeSummary.properties.usageStart - /// - /// - /// Usage end date. - /// Serialized Name: LegacyChargeSummary.properties.usageEnd - /// - /// - /// Azure Charges. - /// Serialized Name: LegacyChargeSummary.properties.azureCharges - /// - /// - /// Charges Billed separately. - /// Serialized Name: LegacyChargeSummary.properties.chargesBilledSeparately - /// - /// - /// Marketplace Charges. - /// Serialized Name: LegacyChargeSummary.properties.marketplaceCharges - /// - /// - /// Currency Code - /// Serialized Name: LegacyChargeSummary.properties.currency - /// + /// 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. + /// The id of the billing period resource that the charge belongs to. + /// Usage start date. + /// Usage end date. + /// Azure Charges. + /// Charges Billed separately. + /// Marketplace Charges. + /// Currency Code. /// A new instance for mocking. public static ConsumptionLegacyChargeSummary ConsumptionLegacyChargeSummary(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, ETag? etag = null, string billingPeriodId = null, string usageStart = null, string usageEnd = null, decimal? azureCharges = null, decimal? chargesBilledSeparately = null, decimal? marketplaceCharges = null, string currency = null) { @@ -2143,54 +844,18 @@ public static ConsumptionLegacyChargeSummary ConsumptionLegacyChargeSummary(Reso /// The name. /// The resourceType. /// The systemData. - /// - /// 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. - /// Serialized Name: ProxyResource.eTag - /// - /// - /// The id of the billing period resource that the charge belongs to. - /// Serialized Name: ModernChargeSummary.properties.billingPeriodId - /// - /// - /// Usage start date. - /// Serialized Name: ModernChargeSummary.properties.usageStart - /// - /// - /// Usage end date. - /// Serialized Name: ModernChargeSummary.properties.usageEnd - /// - /// - /// Azure Charges. - /// Serialized Name: ModernChargeSummary.properties.azureCharges - /// - /// - /// Charges Billed separately. - /// Serialized Name: ModernChargeSummary.properties.chargesBilledSeparately - /// - /// - /// Marketplace Charges. - /// Serialized Name: ModernChargeSummary.properties.marketplaceCharges - /// - /// - /// Billing Account Id - /// Serialized Name: ModernChargeSummary.properties.billingAccountId - /// - /// - /// Billing Profile Id - /// Serialized Name: ModernChargeSummary.properties.billingProfileId - /// - /// - /// Invoice Section Id - /// Serialized Name: ModernChargeSummary.properties.invoiceSectionId - /// - /// - /// Customer Id - /// Serialized Name: ModernChargeSummary.properties.customerId - /// - /// - /// Is charge Invoiced - /// Serialized Name: ModernChargeSummary.properties.isInvoiced - /// + /// 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. + /// The id of the billing period resource that the charge belongs to. + /// Usage start date. + /// Usage end date. + /// Azure Charges. + /// Charges Billed separately. + /// Marketplace Charges. + /// Billing Account Id. + /// Billing Profile Id. + /// Invoice Section Id. + /// Customer Id. + /// Is charge Invoiced. /// A new instance for mocking. public static ConsumptionModernChargeSummary ConsumptionModernChargeSummary(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, ETag? etag = null, string billingPeriodId = null, string usageStart = null, string usageEnd = null, ConsumptionAmount azureCharges = null, ConsumptionAmount chargesBilledSeparately = null, ConsumptionAmount marketplaceCharges = null, string billingAccountId = null, string billingProfileId = null, string invoiceSectionId = null, string customerId = null, bool? isInvoiced = null) { diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/ConsumptionBudgetData.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/ConsumptionBudgetData.cs index c956ad5f31339..39ef6c41f1599 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/ConsumptionBudgetData.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/ConsumptionBudgetData.cs @@ -16,7 +16,6 @@ namespace Azure.ResourceManager.Consumption /// /// A class representing the ConsumptionBudget data model. /// A budget resource. - /// Serialized Name: Budget /// public partial class ConsumptionBudgetData : ResourceData { @@ -31,42 +30,15 @@ public ConsumptionBudgetData() /// The name. /// The resourceType. /// The systemData. - /// - /// The category of the budget, whether the budget tracks cost or usage. - /// Serialized Name: Budget.properties.category - /// - /// - /// The total amount of cost to track with the budget - /// Serialized Name: Budget.properties.amount - /// - /// - /// The time covered by a budget. Tracking of the amount will be reset based on the time grain. BillingMonth, BillingQuarter, and BillingAnnual are only supported by WD customers - /// Serialized Name: Budget.properties.timeGrain - /// - /// - /// Has start and end date of the budget. The start date must be first of the month and should be less than the end date. Budget start date must be on or after June 1, 2017. Future start date should not be more than twelve months. Past start date should be selected within the timegrain period. There are no restrictions on the end date. - /// Serialized Name: Budget.properties.timePeriod - /// - /// - /// May be used to filter budgets by user-specified dimensions and/or tags. - /// Serialized Name: Budget.properties.filter - /// - /// - /// The current amount of cost which is being tracked for a budget. - /// Serialized Name: Budget.properties.currentSpend - /// - /// - /// Dictionary of notifications associated with the budget. Budget can have up to five notifications. - /// Serialized Name: Budget.properties.notifications - /// - /// - /// The forecasted cost which is being tracked for a budget. - /// Serialized Name: Budget.properties.forecastSpend - /// - /// - /// 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. - /// Serialized Name: ProxyResource.eTag - /// + /// The category of the budget, whether the budget tracks cost or usage. + /// The total amount of cost to track with the budget. + /// The time covered by a budget. Tracking of the amount will be reset based on the time grain. BillingMonth, BillingQuarter, and BillingAnnual are only supported by WD customers. + /// Has start and end date of the budget. The start date must be first of the month and should be less than the end date. Budget start date must be on or after June 1, 2017. Future start date should not be more than twelve months. Past start date should be selected within the timegrain period. There are no restrictions on the end date. + /// May be used to filter budgets by user-specified dimensions and/or tags. + /// The current amount of cost which is being tracked for a budget. + /// Dictionary of notifications associated with the budget. Budget can have up to five notifications. + /// The forecasted cost which is being tracked for a budget. + /// 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 ConsumptionBudgetData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, BudgetCategory? category, decimal? amount, BudgetTimeGrainType? timeGrain, BudgetTimePeriod timePeriod, ConsumptionBudgetFilter filter, BudgetCurrentSpend currentSpend, IDictionary notifications, BudgetForecastSpend forecastSpend, ETag? etag) : base(id, name, resourceType, systemData) { Category = category; @@ -80,50 +52,23 @@ internal ConsumptionBudgetData(ResourceIdentifier id, string name, ResourceType ETag = etag; } - /// - /// The category of the budget, whether the budget tracks cost or usage. - /// Serialized Name: Budget.properties.category - /// + /// The category of the budget, whether the budget tracks cost or usage. public BudgetCategory? Category { get; set; } - /// - /// The total amount of cost to track with the budget - /// Serialized Name: Budget.properties.amount - /// + /// The total amount of cost to track with the budget. public decimal? Amount { get; set; } - /// - /// The time covered by a budget. Tracking of the amount will be reset based on the time grain. BillingMonth, BillingQuarter, and BillingAnnual are only supported by WD customers - /// Serialized Name: Budget.properties.timeGrain - /// + /// The time covered by a budget. Tracking of the amount will be reset based on the time grain. BillingMonth, BillingQuarter, and BillingAnnual are only supported by WD customers. public BudgetTimeGrainType? TimeGrain { get; set; } - /// - /// Has start and end date of the budget. The start date must be first of the month and should be less than the end date. Budget start date must be on or after June 1, 2017. Future start date should not be more than twelve months. Past start date should be selected within the timegrain period. There are no restrictions on the end date. - /// Serialized Name: Budget.properties.timePeriod - /// + /// Has start and end date of the budget. The start date must be first of the month and should be less than the end date. Budget start date must be on or after June 1, 2017. Future start date should not be more than twelve months. Past start date should be selected within the timegrain period. There are no restrictions on the end date. public BudgetTimePeriod TimePeriod { get; set; } - /// - /// May be used to filter budgets by user-specified dimensions and/or tags. - /// Serialized Name: Budget.properties.filter - /// + /// May be used to filter budgets by user-specified dimensions and/or tags. public ConsumptionBudgetFilter Filter { get; set; } - /// - /// The current amount of cost which is being tracked for a budget. - /// Serialized Name: Budget.properties.currentSpend - /// + /// The current amount of cost which is being tracked for a budget. public BudgetCurrentSpend CurrentSpend { get; } - /// - /// Dictionary of notifications associated with the budget. Budget can have up to five notifications. - /// Serialized Name: Budget.properties.notifications - /// + /// Dictionary of notifications associated with the budget. Budget can have up to five notifications. public IDictionary Notifications { get; } - /// - /// The forecasted cost which is being tracked for a budget. - /// Serialized Name: Budget.properties.forecastSpend - /// + /// The forecasted cost which is being tracked for a budget. public BudgetForecastSpend ForecastSpend { 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. - /// Serialized Name: ProxyResource.eTag - /// + /// eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not. public ETag? ETag { get; set; } } } diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/BudgetAssociatedNotification.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/BudgetAssociatedNotification.cs index d4f9cc4c0f882..6bad29fd95a4d 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/BudgetAssociatedNotification.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/BudgetAssociatedNotification.cs @@ -12,29 +12,14 @@ namespace Azure.ResourceManager.Consumption.Models { - /// - /// The notification associated with a budget. - /// Serialized Name: Notification - /// + /// The notification associated with a budget. public partial class BudgetAssociatedNotification { /// Initializes a new instance of BudgetAssociatedNotification. - /// - /// The notification is enabled or not. - /// Serialized Name: Notification.enabled - /// - /// - /// The comparison operator. - /// Serialized Name: Notification.operator - /// - /// - /// Threshold value associated with a notification. Notification is sent when the cost exceeded the threshold. It is always percent and has to be between 0 and 1000. - /// Serialized Name: Notification.threshold - /// - /// - /// Email addresses to send the budget notification to when the threshold is exceeded. Must have at least one contact email or contact group specified at the Subscription or Resource Group scopes. All other scopes must have at least one contact email specified. - /// Serialized Name: Notification.contactEmails - /// + /// The notification is enabled or not. + /// The comparison operator. + /// Threshold value associated with a notification. Notification is sent when the cost exceeded the threshold. It is always percent and has to be between 0 and 1000. + /// Email addresses to send the budget notification to when the threshold is exceeded. Must have at least one contact email or contact group specified at the Subscription or Resource Group scopes. All other scopes must have at least one contact email specified. /// is null. public BudgetAssociatedNotification(bool isEnabled, NotificationAlertTriggerType @operator, decimal threshold, IEnumerable contactEmails) { @@ -49,38 +34,14 @@ public BudgetAssociatedNotification(bool isEnabled, NotificationAlertTriggerType } /// Initializes a new instance of BudgetAssociatedNotification. - /// - /// The notification is enabled or not. - /// Serialized Name: Notification.enabled - /// - /// - /// The comparison operator. - /// Serialized Name: Notification.operator - /// - /// - /// Threshold value associated with a notification. Notification is sent when the cost exceeded the threshold. It is always percent and has to be between 0 and 1000. - /// Serialized Name: Notification.threshold - /// - /// - /// Email addresses to send the budget notification to when the threshold is exceeded. Must have at least one contact email or contact group specified at the Subscription or Resource Group scopes. All other scopes must have at least one contact email specified. - /// Serialized Name: Notification.contactEmails - /// - /// - /// Contact roles to send the budget notification to when the threshold is exceeded. - /// Serialized Name: Notification.contactRoles - /// - /// - /// Action groups to send the budget notification to when the threshold is exceeded. Must be provided as a fully qualified Azure resource id. Only supported at Subscription or Resource Group scopes. - /// Serialized Name: Notification.contactGroups - /// - /// - /// The type of threshold - /// Serialized Name: Notification.thresholdType - /// - /// - /// Language in which the recipient will receive the notification - /// Serialized Name: Notification.locale - /// + /// The notification is enabled or not. + /// The comparison operator. + /// Threshold value associated with a notification. Notification is sent when the cost exceeded the threshold. It is always percent and has to be between 0 and 1000. + /// Email addresses to send the budget notification to when the threshold is exceeded. Must have at least one contact email or contact group specified at the Subscription or Resource Group scopes. All other scopes must have at least one contact email specified. + /// Contact roles to send the budget notification to when the threshold is exceeded. + /// Action groups to send the budget notification to when the threshold is exceeded. Must be provided as a fully qualified Azure resource id. Only supported at Subscription or Resource Group scopes. + /// The type of threshold. + /// Language in which the recipient will receive the notification. internal BudgetAssociatedNotification(bool isEnabled, NotificationAlertTriggerType @operator, decimal threshold, IList contactEmails, IList contactRoles, IList contactGroups, NotificationThresholdType? thresholdType, RecipientNotificationLanguageCode? locale) { IsEnabled = isEnabled; @@ -93,45 +54,21 @@ internal BudgetAssociatedNotification(bool isEnabled, NotificationAlertTriggerTy Locale = locale; } - /// - /// The notification is enabled or not. - /// Serialized Name: Notification.enabled - /// + /// The notification is enabled or not. public bool IsEnabled { get; set; } - /// - /// The comparison operator. - /// Serialized Name: Notification.operator - /// + /// The comparison operator. public NotificationAlertTriggerType Operator { get; set; } - /// - /// Threshold value associated with a notification. Notification is sent when the cost exceeded the threshold. It is always percent and has to be between 0 and 1000. - /// Serialized Name: Notification.threshold - /// + /// Threshold value associated with a notification. Notification is sent when the cost exceeded the threshold. It is always percent and has to be between 0 and 1000. public decimal Threshold { get; set; } - /// - /// Email addresses to send the budget notification to when the threshold is exceeded. Must have at least one contact email or contact group specified at the Subscription or Resource Group scopes. All other scopes must have at least one contact email specified. - /// Serialized Name: Notification.contactEmails - /// + /// Email addresses to send the budget notification to when the threshold is exceeded. Must have at least one contact email or contact group specified at the Subscription or Resource Group scopes. All other scopes must have at least one contact email specified. public IList ContactEmails { get; } - /// - /// Contact roles to send the budget notification to when the threshold is exceeded. - /// Serialized Name: Notification.contactRoles - /// + /// Contact roles to send the budget notification to when the threshold is exceeded. public IList ContactRoles { get; } - /// - /// Action groups to send the budget notification to when the threshold is exceeded. Must be provided as a fully qualified Azure resource id. Only supported at Subscription or Resource Group scopes. - /// Serialized Name: Notification.contactGroups - /// + /// Action groups to send the budget notification to when the threshold is exceeded. Must be provided as a fully qualified Azure resource id. Only supported at Subscription or Resource Group scopes. public IList ContactGroups { get; } - /// - /// The type of threshold - /// Serialized Name: Notification.thresholdType - /// + /// The type of threshold. public NotificationThresholdType? ThresholdType { get; set; } - /// - /// Language in which the recipient will receive the notification - /// Serialized Name: Notification.locale - /// + /// Language in which the recipient will receive the notification. public RecipientNotificationLanguageCode? Locale { get; set; } } } diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/BudgetCategory.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/BudgetCategory.cs index 340b3608ab9ac..f8a797a9c1e94 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/BudgetCategory.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/BudgetCategory.cs @@ -10,10 +10,7 @@ namespace Azure.ResourceManager.Consumption.Models { - /// - /// The category of the budget, whether the budget tracks cost or usage. - /// Serialized Name: CategoryType - /// + /// The category of the budget, whether the budget tracks cost or usage. public readonly partial struct BudgetCategory : IEquatable { private readonly string _value; @@ -27,10 +24,7 @@ public BudgetCategory(string value) private const string CostValue = "Cost"; - /// - /// Cost - /// Serialized Name: CategoryType.Cost - /// + /// Cost. public static BudgetCategory Cost { get; } = new BudgetCategory(CostValue); /// Determines if two values are the same. public static bool operator ==(BudgetCategory left, BudgetCategory right) => left.Equals(right); diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/BudgetComparisonExpression.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/BudgetComparisonExpression.cs index f5bb15d3fc07c..672b47f87d576 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/BudgetComparisonExpression.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/BudgetComparisonExpression.cs @@ -12,25 +12,13 @@ namespace Azure.ResourceManager.Consumption.Models { - /// - /// The comparison expression to be used in the budgets. - /// Serialized Name: BudgetComparisonExpression - /// + /// The comparison expression to be used in the budgets. public partial class BudgetComparisonExpression { /// Initializes a new instance of BudgetComparisonExpression. - /// - /// The name of the column to use in comparison. - /// Serialized Name: BudgetComparisonExpression.name - /// - /// - /// The operator to use for comparison. - /// Serialized Name: BudgetComparisonExpression.operator - /// - /// - /// Array of values to use for comparison - /// Serialized Name: BudgetComparisonExpression.values - /// + /// The name of the column to use in comparison. + /// The operator to use for comparison. + /// Array of values to use for comparison. /// or is null. public BudgetComparisonExpression(string name, BudgetOperatorType @operator, IEnumerable values) { @@ -43,18 +31,9 @@ public BudgetComparisonExpression(string name, BudgetOperatorType @operator, IEn } /// Initializes a new instance of BudgetComparisonExpression. - /// - /// The name of the column to use in comparison. - /// Serialized Name: BudgetComparisonExpression.name - /// - /// - /// The operator to use for comparison. - /// Serialized Name: BudgetComparisonExpression.operator - /// - /// - /// Array of values to use for comparison - /// Serialized Name: BudgetComparisonExpression.values - /// + /// The name of the column to use in comparison. + /// The operator to use for comparison. + /// Array of values to use for comparison. internal BudgetComparisonExpression(string name, BudgetOperatorType @operator, IList values) { Name = name; @@ -62,20 +41,11 @@ internal BudgetComparisonExpression(string name, BudgetOperatorType @operator, I Values = values; } - /// - /// The name of the column to use in comparison. - /// Serialized Name: BudgetComparisonExpression.name - /// + /// The name of the column to use in comparison. public string Name { get; set; } - /// - /// The operator to use for comparison. - /// Serialized Name: BudgetComparisonExpression.operator - /// + /// The operator to use for comparison. public BudgetOperatorType Operator { get; set; } - /// - /// Array of values to use for comparison - /// Serialized Name: BudgetComparisonExpression.values - /// + /// Array of values to use for comparison. public IList Values { get; } } } diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/BudgetCurrentSpend.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/BudgetCurrentSpend.cs index a880a0b8aa0e1..d284c9ad0233d 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/BudgetCurrentSpend.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/BudgetCurrentSpend.cs @@ -7,10 +7,7 @@ namespace Azure.ResourceManager.Consumption.Models { - /// - /// The current amount of cost which is being tracked for a budget. - /// Serialized Name: CurrentSpend - /// + /// The current amount of cost which is being tracked for a budget. public partial class BudgetCurrentSpend { /// Initializes a new instance of BudgetCurrentSpend. @@ -19,29 +16,17 @@ internal BudgetCurrentSpend() } /// Initializes a new instance of BudgetCurrentSpend. - /// - /// The total amount of cost which is being tracked by the budget. - /// Serialized Name: CurrentSpend.amount - /// - /// - /// The unit of measure for the budget amount. - /// Serialized Name: CurrentSpend.unit - /// + /// The total amount of cost which is being tracked by the budget. + /// The unit of measure for the budget amount. internal BudgetCurrentSpend(decimal? amount, string unit) { Amount = amount; Unit = unit; } - /// - /// The total amount of cost which is being tracked by the budget. - /// Serialized Name: CurrentSpend.amount - /// + /// The total amount of cost which is being tracked by the budget. public decimal? Amount { get; } - /// - /// The unit of measure for the budget amount. - /// Serialized Name: CurrentSpend.unit - /// + /// The unit of measure for the budget amount. public string Unit { get; } } } diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/BudgetFilterProperties.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/BudgetFilterProperties.cs index 6050c9312954a..e8fd81518e2f4 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/BudgetFilterProperties.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/BudgetFilterProperties.cs @@ -7,10 +7,7 @@ namespace Azure.ResourceManager.Consumption.Models { - /// - /// The Dimensions or Tags to filter a budget by. - /// Serialized Name: BudgetFilterProperties - /// + /// The Dimensions or Tags to filter a budget by. public partial class BudgetFilterProperties { /// Initializes a new instance of BudgetFilterProperties. @@ -19,29 +16,17 @@ public BudgetFilterProperties() } /// Initializes a new instance of BudgetFilterProperties. - /// - /// Has comparison expression for a dimension - /// Serialized Name: BudgetFilterProperties.dimensions - /// - /// - /// Has comparison expression for a tag - /// Serialized Name: BudgetFilterProperties.tags - /// + /// Has comparison expression for a dimension. + /// Has comparison expression for a tag. internal BudgetFilterProperties(BudgetComparisonExpression dimensions, BudgetComparisonExpression tags) { Dimensions = dimensions; Tags = tags; } - /// - /// Has comparison expression for a dimension - /// Serialized Name: BudgetFilterProperties.dimensions - /// + /// Has comparison expression for a dimension. public BudgetComparisonExpression Dimensions { get; set; } - /// - /// Has comparison expression for a tag - /// Serialized Name: BudgetFilterProperties.tags - /// + /// Has comparison expression for a tag. public BudgetComparisonExpression Tags { get; set; } } } diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/BudgetForecastSpend.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/BudgetForecastSpend.cs index 723ee49ced0f6..ce4439c5642f8 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/BudgetForecastSpend.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/BudgetForecastSpend.cs @@ -7,10 +7,7 @@ namespace Azure.ResourceManager.Consumption.Models { - /// - /// The forecasted cost which is being tracked for a budget. - /// Serialized Name: ForecastSpend - /// + /// The forecasted cost which is being tracked for a budget. public partial class BudgetForecastSpend { /// Initializes a new instance of BudgetForecastSpend. @@ -19,29 +16,17 @@ internal BudgetForecastSpend() } /// Initializes a new instance of BudgetForecastSpend. - /// - /// The forecasted cost for the total time period which is being tracked by the budget. This value is only provided if the budget contains a forecast alert type. - /// Serialized Name: ForecastSpend.amount - /// - /// - /// The unit of measure for the budget amount. - /// Serialized Name: ForecastSpend.unit - /// + /// The forecasted cost for the total time period which is being tracked by the budget. This value is only provided if the budget contains a forecast alert type. + /// The unit of measure for the budget amount. internal BudgetForecastSpend(decimal? amount, string unit) { Amount = amount; Unit = unit; } - /// - /// The forecasted cost for the total time period which is being tracked by the budget. This value is only provided if the budget contains a forecast alert type. - /// Serialized Name: ForecastSpend.amount - /// + /// The forecasted cost for the total time period which is being tracked by the budget. This value is only provided if the budget contains a forecast alert type. public decimal? Amount { get; } - /// - /// The unit of measure for the budget amount. - /// Serialized Name: ForecastSpend.unit - /// + /// The unit of measure for the budget amount. public string Unit { get; } } } diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/BudgetOperatorType.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/BudgetOperatorType.cs index 06ba53e52a480..946fb872928e4 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/BudgetOperatorType.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/BudgetOperatorType.cs @@ -10,10 +10,7 @@ namespace Azure.ResourceManager.Consumption.Models { - /// - /// The operator to use for comparison. - /// Serialized Name: BudgetOperatorType - /// + /// The operator to use for comparison. public readonly partial struct BudgetOperatorType : IEquatable { private readonly string _value; @@ -27,10 +24,7 @@ public BudgetOperatorType(string value) private const string InValue = "In"; - /// - /// In - /// Serialized Name: BudgetOperatorType.In - /// + /// In. public static BudgetOperatorType In { get; } = new BudgetOperatorType(InValue); /// Determines if two values are the same. public static bool operator ==(BudgetOperatorType left, BudgetOperatorType right) => left.Equals(right); diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/BudgetTimeGrainType.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/BudgetTimeGrainType.cs index ef2ca1572a9e1..43e4c2a1b3d0a 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/BudgetTimeGrainType.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/BudgetTimeGrainType.cs @@ -10,10 +10,7 @@ namespace Azure.ResourceManager.Consumption.Models { - /// - /// The time covered by a budget. Tracking of the amount will be reset based on the time grain. BillingMonth, BillingQuarter, and BillingAnnual are only supported by WD customers - /// Serialized Name: TimeGrainType - /// + /// The time covered by a budget. Tracking of the amount will be reset based on the time grain. BillingMonth, BillingQuarter, and BillingAnnual are only supported by WD customers. public readonly partial struct BudgetTimeGrainType : IEquatable { private readonly string _value; @@ -32,35 +29,17 @@ public BudgetTimeGrainType(string value) private const string BillingQuarterValue = "BillingQuarter"; private const string BillingAnnualValue = "BillingAnnual"; - /// - /// Monthly - /// Serialized Name: TimeGrainType.Monthly - /// + /// Monthly. public static BudgetTimeGrainType Monthly { get; } = new BudgetTimeGrainType(MonthlyValue); - /// - /// Quarterly - /// Serialized Name: TimeGrainType.Quarterly - /// + /// Quarterly. public static BudgetTimeGrainType Quarterly { get; } = new BudgetTimeGrainType(QuarterlyValue); - /// - /// Annually - /// Serialized Name: TimeGrainType.Annually - /// + /// Annually. public static BudgetTimeGrainType Annually { get; } = new BudgetTimeGrainType(AnnuallyValue); - /// - /// BillingMonth - /// Serialized Name: TimeGrainType.BillingMonth - /// + /// BillingMonth. public static BudgetTimeGrainType BillingMonth { get; } = new BudgetTimeGrainType(BillingMonthValue); - /// - /// BillingQuarter - /// Serialized Name: TimeGrainType.BillingQuarter - /// + /// BillingQuarter. public static BudgetTimeGrainType BillingQuarter { get; } = new BudgetTimeGrainType(BillingQuarterValue); - /// - /// BillingAnnual - /// Serialized Name: TimeGrainType.BillingAnnual - /// + /// BillingAnnual. public static BudgetTimeGrainType BillingAnnual { get; } = new BudgetTimeGrainType(BillingAnnualValue); /// Determines if two values are the same. public static bool operator ==(BudgetTimeGrainType left, BudgetTimeGrainType right) => left.Equals(right); diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/BudgetTimePeriod.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/BudgetTimePeriod.cs index ce86d8137b7b1..e8e92461a6969 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/BudgetTimePeriod.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/BudgetTimePeriod.cs @@ -9,46 +9,28 @@ namespace Azure.ResourceManager.Consumption.Models { - /// - /// The start and end date for a budget. - /// Serialized Name: BudgetTimePeriod - /// + /// The start and end date for a budget. public partial class BudgetTimePeriod { /// Initializes a new instance of BudgetTimePeriod. - /// - /// The start date for the budget. - /// Serialized Name: BudgetTimePeriod.startDate - /// + /// The start date for the budget. public BudgetTimePeriod(DateTimeOffset startOn) { StartOn = startOn; } /// Initializes a new instance of BudgetTimePeriod. - /// - /// The start date for the budget. - /// Serialized Name: BudgetTimePeriod.startDate - /// - /// - /// The end date for the budget. If not provided, we default this to 10 years from the start date. - /// Serialized Name: BudgetTimePeriod.endDate - /// + /// The start date for the budget. + /// The end date for the budget. If not provided, we default this to 10 years from the start date. internal BudgetTimePeriod(DateTimeOffset startOn, DateTimeOffset? endOn) { StartOn = startOn; EndOn = endOn; } - /// - /// The start date for the budget. - /// Serialized Name: BudgetTimePeriod.startDate - /// + /// The start date for the budget. public DateTimeOffset StartOn { get; set; } - /// - /// The end date for the budget. If not provided, we default this to 10 years from the start date. - /// Serialized Name: BudgetTimePeriod.endDate - /// + /// The end date for the budget. If not provided, we default this to 10 years from the start date. public DateTimeOffset? EndOn { get; set; } } } diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/BudgetsListResult.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/BudgetsListResult.cs index ddd286aed9852..3d11414a3f479 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/BudgetsListResult.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/BudgetsListResult.cs @@ -11,10 +11,7 @@ namespace Azure.ResourceManager.Consumption.Models { - /// - /// Result of listing budgets. It contains a list of available budgets in the scope provided. - /// Serialized Name: BudgetsListResult - /// + /// Result of listing budgets. It contains a list of available budgets in the scope provided. internal partial class BudgetsListResult { /// Initializes a new instance of BudgetsListResult. @@ -24,29 +21,17 @@ internal BudgetsListResult() } /// Initializes a new instance of BudgetsListResult. - /// - /// The list of budgets. - /// Serialized Name: BudgetsListResult.value - /// - /// - /// The link (url) to the next page of results. - /// Serialized Name: BudgetsListResult.nextLink - /// + /// The list of budgets. + /// The link (url) to the next page of results. internal BudgetsListResult(IReadOnlyList value, string nextLink) { Value = value; NextLink = nextLink; } - /// - /// The list of budgets. - /// Serialized Name: BudgetsListResult.value - /// + /// The list of budgets. public IReadOnlyList Value { get; } - /// - /// The link (url) to the next page of results. - /// Serialized Name: BudgetsListResult.nextLink - /// + /// The link (url) to the next page of results. public string NextLink { get; } } } diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ChargeSummaryKind.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ChargeSummaryKind.cs index b9ac29eec8963..9ee11e984f8a6 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ChargeSummaryKind.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ChargeSummaryKind.cs @@ -10,10 +10,7 @@ namespace Azure.ResourceManager.Consumption.Models { - /// - /// Specifies the kind of charge summary. - /// Serialized Name: ChargeSummaryKind - /// + /// Specifies the kind of charge summary. internal readonly partial struct ChargeSummaryKind : IEquatable { private readonly string _value; @@ -28,15 +25,9 @@ public ChargeSummaryKind(string value) private const string LegacyValue = "legacy"; private const string ModernValue = "modern"; - /// - /// legacy - /// Serialized Name: ChargeSummaryKind.legacy - /// + /// legacy. public static ChargeSummaryKind Legacy { get; } = new ChargeSummaryKind(LegacyValue); - /// - /// modern - /// Serialized Name: ChargeSummaryKind.modern - /// + /// modern. public static ChargeSummaryKind Modern { get; } = new ChargeSummaryKind(ModernValue); /// Determines if two values are the same. public static bool operator ==(ChargeSummaryKind left, ChargeSummaryKind right) => left.Equals(right); diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ChargesListResult.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ChargesListResult.cs index 2a14ecda31398..48a26a0539998 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ChargesListResult.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ChargesListResult.cs @@ -10,10 +10,7 @@ namespace Azure.ResourceManager.Consumption.Models { - /// - /// Result of listing charge summary. - /// Serialized Name: ChargesListResult - /// + /// Result of listing charge summary. internal partial class ChargesListResult { /// Initializes a new instance of ChargesListResult. @@ -25,7 +22,6 @@ internal ChargesListResult() /// Initializes a new instance of ChargesListResult. /// /// The list of charge summary - /// Serialized Name: ChargesListResult.value /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. /// The available derived classes include and . /// @@ -36,7 +32,6 @@ internal ChargesListResult(IReadOnlyList value) /// /// The list of charge summary - /// Serialized Name: ChargesListResult.value /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. /// The available derived classes include and . /// diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionAggregatedCostResult.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionAggregatedCostResult.cs index fa224245e9f33..7af803a153668 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionAggregatedCostResult.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionAggregatedCostResult.cs @@ -13,10 +13,7 @@ namespace Azure.ResourceManager.Consumption.Models { - /// - /// A management group aggregated cost resource. - /// Serialized Name: ManagementGroupAggregatedCostResult - /// + /// A management group aggregated cost resource. public partial class ConsumptionAggregatedCostResult : ResourceData { /// Initializes a new instance of ConsumptionAggregatedCostResult. @@ -33,54 +30,18 @@ internal ConsumptionAggregatedCostResult() /// The name. /// The resourceType. /// The systemData. - /// - /// The id of the billing period resource that the aggregated cost belongs to. - /// Serialized Name: ManagementGroupAggregatedCostResult.properties.billingPeriodId - /// - /// - /// The start of the date time range covered by aggregated cost. - /// Serialized Name: ManagementGroupAggregatedCostResult.properties.usageStart - /// - /// - /// The end of the date time range covered by the aggregated cost. - /// Serialized Name: ManagementGroupAggregatedCostResult.properties.usageEnd - /// - /// - /// Azure Charges. - /// Serialized Name: ManagementGroupAggregatedCostResult.properties.azureCharges - /// - /// - /// Marketplace Charges. - /// Serialized Name: ManagementGroupAggregatedCostResult.properties.marketplaceCharges - /// - /// - /// Charges Billed Separately. - /// Serialized Name: ManagementGroupAggregatedCostResult.properties.chargesBilledSeparately - /// - /// - /// The ISO currency in which the meter is charged, for example, USD. - /// Serialized Name: ManagementGroupAggregatedCostResult.properties.currency - /// - /// - /// Children of a management group - /// Serialized Name: ManagementGroupAggregatedCostResult.properties.children - /// - /// - /// List of subscription Guids included in the calculation of aggregated cost - /// Serialized Name: ManagementGroupAggregatedCostResult.properties.includedSubscriptions - /// - /// - /// List of subscription Guids excluded from the calculation of aggregated cost - /// Serialized Name: ManagementGroupAggregatedCostResult.properties.excludedSubscriptions - /// - /// - /// The etag for the resource. - /// Serialized Name: Resource.etag - /// - /// - /// Resource tags. - /// Serialized Name: Resource.tags - /// + /// The id of the billing period resource that the aggregated cost belongs to. + /// The start of the date time range covered by aggregated cost. + /// The end of the date time range covered by the aggregated cost. + /// Azure Charges. + /// Marketplace Charges. + /// Charges Billed Separately. + /// The ISO currency in which the meter is charged, for example, USD. + /// Children of a management group. + /// List of subscription Guids included in the calculation of aggregated cost. + /// List of subscription Guids excluded from the calculation of aggregated cost. + /// The etag for the resource. + /// Resource tags. internal ConsumptionAggregatedCostResult(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string billingPeriodId, DateTimeOffset? usageStartOn, DateTimeOffset? usageEndOn, decimal? azureCharges, decimal? marketplaceCharges, decimal? chargesBilledSeparately, string currency, IReadOnlyList children, IReadOnlyList includedSubscriptions, IReadOnlyList excludedSubscriptions, ETag? etag, IReadOnlyDictionary tags) : base(id, name, resourceType, systemData) { BillingPeriodId = billingPeriodId; @@ -97,65 +58,29 @@ internal ConsumptionAggregatedCostResult(ResourceIdentifier id, string name, Res Tags = tags; } - /// - /// The id of the billing period resource that the aggregated cost belongs to. - /// Serialized Name: ManagementGroupAggregatedCostResult.properties.billingPeriodId - /// + /// The id of the billing period resource that the aggregated cost belongs to. public string BillingPeriodId { get; } - /// - /// The start of the date time range covered by aggregated cost. - /// Serialized Name: ManagementGroupAggregatedCostResult.properties.usageStart - /// + /// The start of the date time range covered by aggregated cost. public DateTimeOffset? UsageStartOn { get; } - /// - /// The end of the date time range covered by the aggregated cost. - /// Serialized Name: ManagementGroupAggregatedCostResult.properties.usageEnd - /// + /// The end of the date time range covered by the aggregated cost. public DateTimeOffset? UsageEndOn { get; } - /// - /// Azure Charges. - /// Serialized Name: ManagementGroupAggregatedCostResult.properties.azureCharges - /// + /// Azure Charges. public decimal? AzureCharges { get; } - /// - /// Marketplace Charges. - /// Serialized Name: ManagementGroupAggregatedCostResult.properties.marketplaceCharges - /// + /// Marketplace Charges. public decimal? MarketplaceCharges { get; } - /// - /// Charges Billed Separately. - /// Serialized Name: ManagementGroupAggregatedCostResult.properties.chargesBilledSeparately - /// + /// Charges Billed Separately. public decimal? ChargesBilledSeparately { get; } - /// - /// The ISO currency in which the meter is charged, for example, USD. - /// Serialized Name: ManagementGroupAggregatedCostResult.properties.currency - /// + /// The ISO currency in which the meter is charged, for example, USD. public string Currency { get; } - /// - /// Children of a management group - /// Serialized Name: ManagementGroupAggregatedCostResult.properties.children - /// + /// Children of a management group. public IReadOnlyList Children { get; } - /// - /// List of subscription Guids included in the calculation of aggregated cost - /// Serialized Name: ManagementGroupAggregatedCostResult.properties.includedSubscriptions - /// + /// List of subscription Guids included in the calculation of aggregated cost. public IReadOnlyList IncludedSubscriptions { get; } - /// - /// List of subscription Guids excluded from the calculation of aggregated cost - /// Serialized Name: ManagementGroupAggregatedCostResult.properties.excludedSubscriptions - /// + /// List of subscription Guids excluded from the calculation of aggregated cost. public IReadOnlyList ExcludedSubscriptions { get; } - /// - /// The etag for the resource. - /// Serialized Name: Resource.etag - /// + /// The etag for the resource. public ETag? ETag { get; } - /// - /// Resource tags. - /// Serialized Name: Resource.tags - /// + /// Resource tags. public IReadOnlyDictionary Tags { get; } } } diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionAmount.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionAmount.cs index af5fee9e5784c..b0960cb43df9b 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionAmount.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionAmount.cs @@ -7,10 +7,7 @@ namespace Azure.ResourceManager.Consumption.Models { - /// - /// The amount plus currency . - /// Serialized Name: Amount - /// + /// The amount plus currency . public partial class ConsumptionAmount { /// Initializes a new instance of ConsumptionAmount. @@ -19,29 +16,17 @@ internal ConsumptionAmount() } /// Initializes a new instance of ConsumptionAmount. - /// - /// Amount currency. - /// Serialized Name: Amount.currency - /// - /// - /// Amount. - /// Serialized Name: Amount.value - /// + /// Amount currency. + /// Amount. internal ConsumptionAmount(string currency, decimal? value) { Currency = currency; Value = value; } - /// - /// Amount currency. - /// Serialized Name: Amount.currency - /// + /// Amount currency. public string Currency { get; } - /// - /// Amount. - /// Serialized Name: Amount.value - /// + /// Amount. public decimal? Value { get; } } } diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionAmountWithExchangeRate.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionAmountWithExchangeRate.cs index d3faa2ac01e6a..25738ef5b9b55 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionAmountWithExchangeRate.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionAmountWithExchangeRate.cs @@ -7,10 +7,7 @@ namespace Azure.ResourceManager.Consumption.Models { - /// - /// The amount with exchange rate. - /// Serialized Name: AmountWithExchangeRate - /// + /// The amount with exchange rate. public partial class ConsumptionAmountWithExchangeRate : ConsumptionAmount { /// Initializes a new instance of ConsumptionAmountWithExchangeRate. @@ -19,37 +16,19 @@ internal ConsumptionAmountWithExchangeRate() } /// Initializes a new instance of ConsumptionAmountWithExchangeRate. - /// - /// Amount currency. - /// Serialized Name: Amount.currency - /// - /// - /// Amount. - /// Serialized Name: Amount.value - /// - /// - /// The exchange rate. - /// Serialized Name: AmountWithExchangeRate.exchangeRate - /// - /// - /// The exchange rate month. - /// Serialized Name: AmountWithExchangeRate.exchangeRateMonth - /// + /// Amount currency. + /// Amount. + /// The exchange rate. + /// The exchange rate month. internal ConsumptionAmountWithExchangeRate(string currency, decimal? value, decimal? exchangeRate, int? exchangeRateMonth) : base(currency, value) { ExchangeRate = exchangeRate; ExchangeRateMonth = exchangeRateMonth; } - /// - /// The exchange rate. - /// Serialized Name: AmountWithExchangeRate.exchangeRate - /// + /// The exchange rate. public decimal? ExchangeRate { get; } - /// - /// The exchange rate month. - /// Serialized Name: AmountWithExchangeRate.exchangeRateMonth - /// + /// The exchange rate month. public int? ExchangeRateMonth { get; } } } diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionBalanceAdjustmentDetail.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionBalanceAdjustmentDetail.cs index 319d1d2f90d28..54b27708d861b 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionBalanceAdjustmentDetail.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionBalanceAdjustmentDetail.cs @@ -7,10 +7,7 @@ namespace Azure.ResourceManager.Consumption.Models { - /// - /// The ConsumptionBalanceAdjustmentDetail. - /// Serialized Name: BalancePropertiesAdjustmentDetailsItem - /// + /// The ConsumptionBalanceAdjustmentDetail. public partial class ConsumptionBalanceAdjustmentDetail { /// Initializes a new instance of ConsumptionBalanceAdjustmentDetail. @@ -19,29 +16,17 @@ internal ConsumptionBalanceAdjustmentDetail() } /// Initializes a new instance of ConsumptionBalanceAdjustmentDetail. - /// - /// the name of new adjustment. - /// Serialized Name: BalancePropertiesAdjustmentDetailsItem.name - /// - /// - /// the value of new adjustment. - /// Serialized Name: BalancePropertiesAdjustmentDetailsItem.value - /// + /// the name of new adjustment. + /// the value of new adjustment. internal ConsumptionBalanceAdjustmentDetail(string name, decimal? value) { Name = name; Value = value; } - /// - /// the name of new adjustment. - /// Serialized Name: BalancePropertiesAdjustmentDetailsItem.name - /// + /// the name of new adjustment. public string Name { get; } - /// - /// the value of new adjustment. - /// Serialized Name: BalancePropertiesAdjustmentDetailsItem.value - /// + /// the value of new adjustment. public decimal? Value { get; } } } diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionBalanceNewPurchasesDetail.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionBalanceNewPurchasesDetail.cs index 4fc027c927a94..fd4c08c175eb0 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionBalanceNewPurchasesDetail.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionBalanceNewPurchasesDetail.cs @@ -7,10 +7,7 @@ namespace Azure.ResourceManager.Consumption.Models { - /// - /// The ConsumptionBalanceNewPurchasesDetail. - /// Serialized Name: BalancePropertiesNewPurchasesDetailsItem - /// + /// The ConsumptionBalanceNewPurchasesDetail. public partial class ConsumptionBalanceNewPurchasesDetail { /// Initializes a new instance of ConsumptionBalanceNewPurchasesDetail. @@ -19,29 +16,17 @@ internal ConsumptionBalanceNewPurchasesDetail() } /// Initializes a new instance of ConsumptionBalanceNewPurchasesDetail. - /// - /// the name of new purchase. - /// Serialized Name: BalancePropertiesNewPurchasesDetailsItem.name - /// - /// - /// the value of new purchase. - /// Serialized Name: BalancePropertiesNewPurchasesDetailsItem.value - /// + /// the name of new purchase. + /// the value of new purchase. internal ConsumptionBalanceNewPurchasesDetail(string name, decimal? value) { Name = name; Value = value; } - /// - /// the name of new purchase. - /// Serialized Name: BalancePropertiesNewPurchasesDetailsItem.name - /// + /// the name of new purchase. public string Name { get; } - /// - /// the value of new purchase. - /// Serialized Name: BalancePropertiesNewPurchasesDetailsItem.value - /// + /// the value of new purchase. public decimal? Value { get; } } } 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 32a1d43fcb20d..9247a0df93f7b 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionBalanceResult.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionBalanceResult.cs @@ -12,10 +12,7 @@ namespace Azure.ResourceManager.Consumption.Models { - /// - /// A balance resource. - /// Serialized Name: Balance - /// + /// A balance resource. public partial class ConsumptionBalanceResult : ResourceData { /// Initializes a new instance of ConsumptionBalanceResult. @@ -31,74 +28,23 @@ internal ConsumptionBalanceResult() /// The name. /// The resourceType. /// The systemData. - /// - /// The ISO currency in which the meter is charged, for example, USD. - /// Serialized Name: Balance.properties.currency - /// - /// - /// The beginning balance for the billing period. - /// Serialized Name: Balance.properties.beginningBalance - /// - /// - /// The ending balance for the billing period (for open periods this will be updated daily). - /// Serialized Name: Balance.properties.endingBalance - /// - /// - /// Total new purchase amount. - /// Serialized Name: Balance.properties.newPurchases - /// - /// - /// Total adjustment amount. - /// Serialized Name: Balance.properties.adjustments - /// - /// - /// Total Commitment usage. - /// Serialized Name: Balance.properties.utilized - /// - /// - /// Overage for Azure services. - /// Serialized Name: Balance.properties.serviceOverage - /// - /// - /// Charges Billed separately. - /// Serialized Name: Balance.properties.chargesBilledSeparately - /// - /// - /// serviceOverage + chargesBilledSeparately. - /// Serialized Name: Balance.properties.totalOverage - /// - /// - /// Azure service commitment + total Overage. - /// Serialized Name: Balance.properties.totalUsage - /// - /// - /// Total charges for Azure Marketplace. - /// Serialized Name: Balance.properties.azureMarketplaceServiceCharges - /// - /// - /// The billing frequency. - /// Serialized Name: Balance.properties.billingFrequency - /// - /// - /// Price is hidden or not. - /// Serialized Name: Balance.properties.priceHidden - /// - /// - /// List of new purchases. - /// Serialized Name: Balance.properties.newPurchasesDetails - /// - /// - /// List of Adjustments (Promo credit, SIE credit etc.). - /// Serialized Name: Balance.properties.adjustmentDetails - /// - /// - /// The etag for the resource. - /// Serialized Name: Resource.etag - /// - /// - /// Resource tags. - /// Serialized Name: Resource.tags - /// + /// The ISO currency in which the meter is charged, for example, USD. + /// The beginning balance for the billing period. + /// The ending balance for the billing period (for open periods this will be updated daily). + /// Total new purchase amount. + /// Total adjustment amount. + /// Total Commitment usage. + /// Overage for Azure services. + /// Charges Billed separately. + /// serviceOverage + chargesBilledSeparately. + /// Azure service commitment + total Overage. + /// Total charges for Azure Marketplace. + /// The billing frequency. + /// Price is hidden or not. + /// 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) { Currency = currency; @@ -120,90 +66,39 @@ internal ConsumptionBalanceResult(ResourceIdentifier id, string name, ResourceTy Tags = tags; } - /// - /// The ISO currency in which the meter is charged, for example, USD. - /// Serialized Name: Balance.properties.currency - /// + /// The ISO currency in which the meter is charged, for example, USD. public string Currency { get; } - /// - /// The beginning balance for the billing period. - /// Serialized Name: Balance.properties.beginningBalance - /// + /// The beginning balance for the billing period. public decimal? BeginningBalance { get; } - /// - /// The ending balance for the billing period (for open periods this will be updated daily). - /// Serialized Name: Balance.properties.endingBalance - /// + /// The ending balance for the billing period (for open periods this will be updated daily). public decimal? EndingBalance { get; } - /// - /// Total new purchase amount. - /// Serialized Name: Balance.properties.newPurchases - /// + /// Total new purchase amount. public decimal? NewPurchases { get; } - /// - /// Total adjustment amount. - /// Serialized Name: Balance.properties.adjustments - /// + /// Total adjustment amount. public decimal? Adjustments { get; } - /// - /// Total Commitment usage. - /// Serialized Name: Balance.properties.utilized - /// + /// Total Commitment usage. public decimal? Utilized { get; } - /// - /// Overage for Azure services. - /// Serialized Name: Balance.properties.serviceOverage - /// + /// Overage for Azure services. public decimal? ServiceOverage { get; } - /// - /// Charges Billed separately. - /// Serialized Name: Balance.properties.chargesBilledSeparately - /// + /// Charges Billed separately. public decimal? ChargesBilledSeparately { get; } - /// - /// serviceOverage + chargesBilledSeparately. - /// Serialized Name: Balance.properties.totalOverage - /// + /// serviceOverage + chargesBilledSeparately. public decimal? TotalOverage { get; } - /// - /// Azure service commitment + total Overage. - /// Serialized Name: Balance.properties.totalUsage - /// + /// Azure service commitment + total Overage. public decimal? TotalUsage { get; } - /// - /// Total charges for Azure Marketplace. - /// Serialized Name: Balance.properties.azureMarketplaceServiceCharges - /// + /// Total charges for Azure Marketplace. public decimal? AzureMarketplaceServiceCharges { get; } - /// - /// The billing frequency. - /// Serialized Name: Balance.properties.billingFrequency - /// + /// The billing frequency. public ConsumptionBillingFrequency? BillingFrequency { get; } - /// - /// Price is hidden or not. - /// Serialized Name: Balance.properties.priceHidden - /// + /// Price is hidden or not. public bool? IsPriceHidden { get; } - /// - /// List of new purchases. - /// Serialized Name: Balance.properties.newPurchasesDetails - /// + /// List of new purchases. public IReadOnlyList NewPurchasesDetails { get; } - /// - /// List of Adjustments (Promo credit, SIE credit etc.). - /// Serialized Name: Balance.properties.adjustmentDetails - /// + /// List of Adjustments (Promo credit, SIE credit etc.). public IReadOnlyList AdjustmentDetails { get; } - /// - /// The etag for the resource. - /// Serialized Name: Resource.etag - /// + /// The etag for the resource. public ETag? ETag { get; } - /// - /// Resource tags. - /// Serialized Name: Resource.tags - /// + /// Resource tags. public IReadOnlyDictionary Tags { get; } } } diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionBillingFrequency.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionBillingFrequency.cs index 7ce0ea68e22eb..d61bacb89f285 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionBillingFrequency.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionBillingFrequency.cs @@ -10,10 +10,7 @@ namespace Azure.ResourceManager.Consumption.Models { - /// - /// The billing frequency. - /// Serialized Name: BillingFrequency - /// + /// The billing frequency. public readonly partial struct ConsumptionBillingFrequency : IEquatable { private readonly string _value; @@ -29,20 +26,11 @@ public ConsumptionBillingFrequency(string value) private const string QuarterValue = "Quarter"; private const string YearValue = "Year"; - /// - /// Month - /// Serialized Name: BillingFrequency.Month - /// + /// Month. public static ConsumptionBillingFrequency Month { get; } = new ConsumptionBillingFrequency(MonthValue); - /// - /// Quarter - /// Serialized Name: BillingFrequency.Quarter - /// + /// Quarter. public static ConsumptionBillingFrequency Quarter { get; } = new ConsumptionBillingFrequency(QuarterValue); - /// - /// Year - /// Serialized Name: BillingFrequency.Year - /// + /// Year. public static ConsumptionBillingFrequency Year { get; } = new ConsumptionBillingFrequency(YearValue); /// Determines if two values are the same. public static bool operator ==(ConsumptionBillingFrequency left, ConsumptionBillingFrequency right) => left.Equals(right); diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionBudgetFilter.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionBudgetFilter.cs index 6d95cda2f7f1c..416f6e9c0b0ee 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionBudgetFilter.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionBudgetFilter.cs @@ -10,10 +10,7 @@ namespace Azure.ResourceManager.Consumption.Models { - /// - /// May be used to filter budgets by resource group, resource, or meter. - /// Serialized Name: BudgetFilter - /// + /// May be used to filter budgets by resource group, resource, or meter. public partial class ConsumptionBudgetFilter { /// Initializes a new instance of ConsumptionBudgetFilter. @@ -23,18 +20,9 @@ public ConsumptionBudgetFilter() } /// Initializes a new instance of ConsumptionBudgetFilter. - /// - /// The logical "AND" expression. Must have at least 2 items. - /// Serialized Name: BudgetFilter.and - /// - /// - /// Has comparison expression for a dimension - /// Serialized Name: BudgetFilter.dimensions - /// - /// - /// Has comparison expression for a tag - /// Serialized Name: BudgetFilter.tags - /// + /// The logical "AND" expression. Must have at least 2 items. + /// Has comparison expression for a dimension. + /// Has comparison expression for a tag. internal ConsumptionBudgetFilter(IList and, BudgetComparisonExpression dimensions, BudgetComparisonExpression tags) { And = and; @@ -42,20 +30,11 @@ internal ConsumptionBudgetFilter(IList and, BudgetCompar Tags = tags; } - /// - /// The logical "AND" expression. Must have at least 2 items. - /// Serialized Name: BudgetFilter.and - /// + /// The logical "AND" expression. Must have at least 2 items. public IList And { get; } - /// - /// Has comparison expression for a dimension - /// Serialized Name: BudgetFilter.dimensions - /// + /// Has comparison expression for a dimension. public BudgetComparisonExpression Dimensions { get; set; } - /// - /// Has comparison expression for a tag - /// Serialized Name: BudgetFilter.tags - /// + /// Has comparison expression for a tag. public BudgetComparisonExpression Tags { get; set; } } } diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionCalculatedSavingsProperties.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionCalculatedSavingsProperties.cs index 105fda164d711..5b271040f919c 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionCalculatedSavingsProperties.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionCalculatedSavingsProperties.cs @@ -7,10 +7,7 @@ namespace Azure.ResourceManager.Consumption.Models { - /// - /// Details of estimated savings. - /// Serialized Name: ReservationRecommendationDetailsCalculatedSavingsProperties - /// + /// Details of estimated savings. public partial class ConsumptionCalculatedSavingsProperties { /// Initializes a new instance of ConsumptionCalculatedSavingsProperties. @@ -19,34 +16,13 @@ internal ConsumptionCalculatedSavingsProperties() } /// Initializes a new instance of ConsumptionCalculatedSavingsProperties. - /// - /// The cost without reservation. - /// Serialized Name: ReservationRecommendationDetailsCalculatedSavingsProperties.onDemandCost - /// - /// - /// The difference between total reservation cost and reservation cost. - /// Serialized Name: ReservationRecommendationDetailsCalculatedSavingsProperties.overageCost - /// - /// - /// The quantity for calculated savings. - /// Serialized Name: ReservationRecommendationDetailsCalculatedSavingsProperties.quantity - /// - /// - /// The exact cost of the estimated usage using reservation. - /// Serialized Name: ReservationRecommendationDetailsCalculatedSavingsProperties.reservationCost - /// - /// - /// The cost of the suggested quantity. - /// Serialized Name: ReservationRecommendationDetailsCalculatedSavingsProperties.totalReservationCost - /// - /// - /// The number of reserved units used to calculate savings. Always 1 for virtual machines. - /// Serialized Name: ReservationRecommendationDetailsCalculatedSavingsProperties.reservedUnitCount - /// - /// - /// The amount saved by purchasing the recommended quantity of reservation. - /// Serialized Name: ReservationRecommendationDetailsCalculatedSavingsProperties.savings - /// + /// The cost without reservation. + /// The difference between total reservation cost and reservation cost. + /// The quantity for calculated savings. + /// The exact cost of the estimated usage using reservation. + /// The cost of the suggested quantity. + /// The number of reserved units used to calculate savings. Always 1 for virtual machines. + /// The amount saved by purchasing the recommended quantity of reservation. internal ConsumptionCalculatedSavingsProperties(float? onDemandCost, float? overageCost, float? quantity, float? reservationCost, float? totalReservationCost, float? reservedUnitCount, float? savings) { OnDemandCost = onDemandCost; @@ -58,40 +34,19 @@ internal ConsumptionCalculatedSavingsProperties(float? onDemandCost, float? over Savings = savings; } - /// - /// The cost without reservation. - /// Serialized Name: ReservationRecommendationDetailsCalculatedSavingsProperties.onDemandCost - /// + /// The cost without reservation. public float? OnDemandCost { get; } - /// - /// The difference between total reservation cost and reservation cost. - /// Serialized Name: ReservationRecommendationDetailsCalculatedSavingsProperties.overageCost - /// + /// The difference between total reservation cost and reservation cost. public float? OverageCost { get; } - /// - /// The quantity for calculated savings. - /// Serialized Name: ReservationRecommendationDetailsCalculatedSavingsProperties.quantity - /// + /// The quantity for calculated savings. public float? Quantity { get; } - /// - /// The exact cost of the estimated usage using reservation. - /// Serialized Name: ReservationRecommendationDetailsCalculatedSavingsProperties.reservationCost - /// + /// The exact cost of the estimated usage using reservation. public float? ReservationCost { get; } - /// - /// The cost of the suggested quantity. - /// Serialized Name: ReservationRecommendationDetailsCalculatedSavingsProperties.totalReservationCost - /// + /// The cost of the suggested quantity. public float? TotalReservationCost { get; } - /// - /// The number of reserved units used to calculate savings. Always 1 for virtual machines. - /// Serialized Name: ReservationRecommendationDetailsCalculatedSavingsProperties.reservedUnitCount - /// + /// The number of reserved units used to calculate savings. Always 1 for virtual machines. public float? ReservedUnitCount { get; } - /// - /// The amount saved by purchasing the recommended quantity of reservation. - /// Serialized Name: ReservationRecommendationDetailsCalculatedSavingsProperties.savings - /// + /// The amount saved by purchasing the recommended quantity of reservation. public float? Savings { get; } } } diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionChargeSummary.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionChargeSummary.cs index ca1d029d25584..1aecfdca1c567 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionChargeSummary.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionChargeSummary.cs @@ -13,7 +13,6 @@ namespace Azure.ResourceManager.Consumption.Models { /// /// A charge summary resource. - /// Serialized Name: ChargeSummary /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. /// The available derived classes include and . /// @@ -29,29 +28,17 @@ public ConsumptionChargeSummary() /// The name. /// The resourceType. /// The systemData. - /// - /// Specifies the kind of charge summary. - /// Serialized Name: ChargeSummary.kind - /// - /// - /// 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. - /// Serialized Name: ProxyResource.eTag - /// + /// Specifies the kind of charge summary. + /// 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 ConsumptionChargeSummary(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, ChargeSummaryKind kind, ETag? etag) : base(id, name, resourceType, systemData) { Kind = kind; ETag = etag; } - /// - /// Specifies the kind of charge summary. - /// Serialized Name: ChargeSummary.kind - /// + /// Specifies the kind of charge summary. internal ChargeSummaryKind Kind { get; set; } - /// - /// 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. - /// Serialized Name: ProxyResource.eTag - /// + /// eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not. public ETag? ETag { get; set; } } } 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 0b233db1e397f..aa640f084900d 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionCreditSummary.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionCreditSummary.cs @@ -11,10 +11,7 @@ namespace Azure.ResourceManager.Consumption.Models { - /// - /// A credit summary resource. - /// Serialized Name: CreditSummary - /// + /// A credit summary resource. public partial class ConsumptionCreditSummary : ResourceData { /// Initializes a new instance of ConsumptionCreditSummary. @@ -27,38 +24,14 @@ public ConsumptionCreditSummary() /// The name. /// The resourceType. /// The systemData. - /// - /// Summary of balances associated with this credit summary. - /// Serialized Name: CreditSummary.properties.balanceSummary - /// - /// - /// Pending credit adjustments. - /// Serialized Name: CreditSummary.properties.pendingCreditAdjustments - /// - /// - /// Expired credit. - /// Serialized Name: CreditSummary.properties.expiredCredit - /// - /// - /// Pending eligible charges. - /// Serialized Name: CreditSummary.properties.pendingEligibleCharges - /// - /// - /// The credit currency. - /// Serialized Name: CreditSummary.properties.creditCurrency - /// - /// - /// The billing currency. - /// Serialized Name: CreditSummary.properties.billingCurrency - /// - /// - /// Credit's reseller. - /// Serialized Name: CreditSummary.properties.reseller - /// - /// - /// 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. - /// Serialized Name: ProxyResource.eTag - /// + /// Summary of balances associated with this credit summary. + /// Pending credit adjustments. + /// Expired credit. + /// Pending eligible charges. + /// The credit currency. + /// The billing currency. + /// Credit's reseller. + /// 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) { BalanceSummary = balanceSummary; @@ -71,45 +44,21 @@ internal ConsumptionCreditSummary(ResourceIdentifier id, string name, ResourceTy ETag = etag; } - /// - /// Summary of balances associated with this credit summary. - /// Serialized Name: CreditSummary.properties.balanceSummary - /// + /// Summary of balances associated with this credit summary. public CreditBalanceSummary BalanceSummary { get; } - /// - /// Pending credit adjustments. - /// Serialized Name: CreditSummary.properties.pendingCreditAdjustments - /// + /// Pending credit adjustments. public ConsumptionAmount PendingCreditAdjustments { get; } - /// - /// Expired credit. - /// Serialized Name: CreditSummary.properties.expiredCredit - /// + /// Expired credit. public ConsumptionAmount ExpiredCredit { get; } - /// - /// Pending eligible charges. - /// Serialized Name: CreditSummary.properties.pendingEligibleCharges - /// + /// Pending eligible charges. public ConsumptionAmount PendingEligibleCharges { get; } - /// - /// The credit currency. - /// Serialized Name: CreditSummary.properties.creditCurrency - /// + /// The credit currency. public string CreditCurrency { get; } - /// - /// The billing currency. - /// Serialized Name: CreditSummary.properties.billingCurrency - /// + /// The billing currency. public string BillingCurrency { get; } - /// - /// Credit's reseller. - /// Serialized Name: CreditSummary.properties.reseller - /// + /// Credit's reseller. public ConsumptionReseller Reseller { 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. - /// Serialized Name: ProxyResource.eTag - /// + /// eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not. public ETag? ETag { get; set; } } } 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 170aff1b8cb56..31119eaa9669e 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionEventSummary.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionEventSummary.cs @@ -12,10 +12,7 @@ namespace Azure.ResourceManager.Consumption.Models { - /// - /// An event summary resource. - /// Serialized Name: EventSummary - /// + /// An event summary resource. public partial class ConsumptionEventSummary : ResourceData { /// Initializes a new instance of ConsumptionEventSummary. @@ -28,98 +25,29 @@ public ConsumptionEventSummary() /// The name. /// The resourceType. /// The systemData. - /// - /// The date of the event. - /// Serialized Name: EventSummary.properties.transactionDate - /// - /// - /// The description of the event. - /// Serialized Name: EventSummary.properties.description - /// - /// - /// The amount of new credit or commitment for NewCredit or SettleCharges event. - /// Serialized Name: EventSummary.properties.newCredit - /// - /// - /// The amount of balance adjustment. The property is not available for ConsumptionCommitment lots. - /// Serialized Name: EventSummary.properties.adjustments - /// - /// - /// The amount of expired credit or commitment for NewCredit or SettleCharges event. - /// Serialized Name: EventSummary.properties.creditExpired - /// - /// - /// The amount of charges for events of type SettleCharges and PendingEligibleCharges. - /// Serialized Name: EventSummary.properties.charges - /// - /// - /// The balance after the event. - /// Serialized Name: EventSummary.properties.closedBalance - /// - /// - /// Identifies the type of the event. - /// Serialized Name: EventSummary.properties.eventType - /// - /// - /// The number which uniquely identifies the invoice on which the event was billed. This will be empty for unbilled events. - /// Serialized Name: EventSummary.properties.invoiceNumber - /// - /// - /// The ID that uniquely identifies the billing profile for which the event happened. The property is only available for billing account of type MicrosoftCustomerAgreement. - /// Serialized Name: EventSummary.properties.billingProfileId - /// - /// - /// The display name of the billing profile for which the event happened. The property is only available for billing account of type MicrosoftCustomerAgreement. - /// Serialized Name: EventSummary.properties.billingProfileDisplayName - /// - /// - /// The ID that uniquely identifies the lot for which the event happened. - /// Serialized Name: EventSummary.properties.lotId - /// - /// - /// Identifies the source of the lot for which the event happened. - /// Serialized Name: EventSummary.properties.lotSource - /// - /// - /// Amount of canceled credit. - /// Serialized Name: EventSummary.properties.canceledCredit - /// - /// - /// The credit currency of the event. - /// Serialized Name: EventSummary.properties.creditCurrency - /// - /// - /// The billing currency of the event. - /// Serialized Name: EventSummary.properties.billingCurrency - /// - /// - /// The reseller of the event. - /// Serialized Name: EventSummary.properties.reseller - /// - /// - /// The amount of expired credit or commitment for NewCredit or SettleCharges event in billing currency. - /// Serialized Name: EventSummary.properties.creditExpiredInBillingCurrency - /// - /// - /// The amount of new credit or commitment for NewCredit or SettleCharges event in billing currency. - /// Serialized Name: EventSummary.properties.newCreditInBillingCurrency - /// - /// - /// The amount of balance adjustment in billing currency. - /// Serialized Name: EventSummary.properties.adjustmentsInBillingCurrency - /// - /// - /// The amount of charges for events of type SettleCharges and PendingEligibleCharges in billing currency. - /// Serialized Name: EventSummary.properties.chargesInBillingCurrency - /// - /// - /// The balance in billing currency after the event. - /// Serialized Name: EventSummary.properties.closedBalanceInBillingCurrency - /// - /// - /// 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. - /// Serialized Name: ProxyResource.eTag - /// + /// The date of the event. + /// The description of the event. + /// The amount of new credit or commitment for NewCredit or SettleCharges event. + /// The amount of balance adjustment. The property is not available for ConsumptionCommitment lots. + /// The amount of expired credit or commitment for NewCredit or SettleCharges event. + /// The amount of charges for events of type SettleCharges and PendingEligibleCharges. + /// The balance after the event. + /// Identifies the type of the event. + /// The number which uniquely identifies the invoice on which the event was billed. This will be empty for unbilled events. + /// The ID that uniquely identifies the billing profile for which the event happened. The property is only available for billing account of type MicrosoftCustomerAgreement. + /// The display name of the billing profile for which the event happened. The property is only available for billing account of type MicrosoftCustomerAgreement. + /// The ID that uniquely identifies the lot for which the event happened. + /// Identifies the source of the lot for which the event happened. + /// Amount of canceled credit. + /// The credit currency of the event. + /// The billing currency of the event. + /// The reseller of the event. + /// The amount of expired credit or commitment for NewCredit or SettleCharges event in billing currency. + /// The amount of new credit or commitment for NewCredit or SettleCharges event in billing currency. + /// 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. + /// 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) { TransactOn = transactOn; @@ -147,120 +75,51 @@ internal ConsumptionEventSummary(ResourceIdentifier id, string name, ResourceTyp ETag = etag; } - /// - /// The date of the event. - /// Serialized Name: EventSummary.properties.transactionDate - /// + /// The date of the event. public DateTimeOffset? TransactOn { get; } - /// - /// The description of the event. - /// Serialized Name: EventSummary.properties.description - /// + /// The description of the event. public string Description { get; } - /// - /// The amount of new credit or commitment for NewCredit or SettleCharges event. - /// Serialized Name: EventSummary.properties.newCredit - /// + /// The amount of new credit or commitment for NewCredit or SettleCharges event. public ConsumptionAmount NewCredit { get; } - /// - /// The amount of balance adjustment. The property is not available for ConsumptionCommitment lots. - /// Serialized Name: EventSummary.properties.adjustments - /// + /// The amount of balance adjustment. The property is not available for ConsumptionCommitment lots. public ConsumptionAmount Adjustments { get; } - /// - /// The amount of expired credit or commitment for NewCredit or SettleCharges event. - /// Serialized Name: EventSummary.properties.creditExpired - /// + /// The amount of expired credit or commitment for NewCredit or SettleCharges event. public ConsumptionAmount CreditExpired { get; } - /// - /// The amount of charges for events of type SettleCharges and PendingEligibleCharges. - /// Serialized Name: EventSummary.properties.charges - /// + /// The amount of charges for events of type SettleCharges and PendingEligibleCharges. public ConsumptionAmount Charges { get; } - /// - /// The balance after the event. - /// Serialized Name: EventSummary.properties.closedBalance - /// + /// The balance after the event. public ConsumptionAmount ClosedBalance { get; } - /// - /// Identifies the type of the event. - /// Serialized Name: EventSummary.properties.eventType - /// + /// Identifies the type of the event. public ConsumptionEventType? EventType { get; set; } - /// - /// The number which uniquely identifies the invoice on which the event was billed. This will be empty for unbilled events. - /// Serialized Name: EventSummary.properties.invoiceNumber - /// + /// The number which uniquely identifies the invoice on which the event was billed. This will be empty for unbilled events. public string InvoiceNumber { get; } - /// - /// The ID that uniquely identifies the billing profile for which the event happened. The property is only available for billing account of type MicrosoftCustomerAgreement. - /// Serialized Name: EventSummary.properties.billingProfileId - /// + /// The ID that uniquely identifies the billing profile for which the event happened. The property is only available for billing account of type MicrosoftCustomerAgreement. public ResourceIdentifier BillingProfileId { get; } - /// - /// The display name of the billing profile for which the event happened. The property is only available for billing account of type MicrosoftCustomerAgreement. - /// Serialized Name: EventSummary.properties.billingProfileDisplayName - /// + /// The display name of the billing profile for which the event happened. The property is only available for billing account of type MicrosoftCustomerAgreement. public string BillingProfileDisplayName { get; } - /// - /// The ID that uniquely identifies the lot for which the event happened. - /// Serialized Name: EventSummary.properties.lotId - /// + /// The ID that uniquely identifies the lot for which the event happened. public ResourceIdentifier LotId { get; } - /// - /// Identifies the source of the lot for which the event happened. - /// Serialized Name: EventSummary.properties.lotSource - /// + /// Identifies the source of the lot for which the event happened. public string LotSource { get; } - /// - /// Amount of canceled credit. - /// Serialized Name: EventSummary.properties.canceledCredit - /// + /// Amount of canceled credit. public ConsumptionAmount CanceledCredit { get; } - /// - /// The credit currency of the event. - /// Serialized Name: EventSummary.properties.creditCurrency - /// + /// The credit currency of the event. public string CreditCurrency { get; } - /// - /// The billing currency of the event. - /// Serialized Name: EventSummary.properties.billingCurrency - /// + /// The billing currency of the event. public string BillingCurrency { get; } - /// - /// The reseller of the event. - /// Serialized Name: EventSummary.properties.reseller - /// + /// The reseller of the event. public ConsumptionReseller Reseller { get; } - /// - /// The amount of expired credit or commitment for NewCredit or SettleCharges event in billing currency. - /// Serialized Name: EventSummary.properties.creditExpiredInBillingCurrency - /// + /// The amount of expired credit or commitment for NewCredit or SettleCharges event in billing currency. public ConsumptionAmountWithExchangeRate CreditExpiredInBillingCurrency { get; } - /// - /// The amount of new credit or commitment for NewCredit or SettleCharges event in billing currency. - /// Serialized Name: EventSummary.properties.newCreditInBillingCurrency - /// + /// The amount of new credit or commitment for NewCredit or SettleCharges event in billing currency. public ConsumptionAmountWithExchangeRate NewCreditInBillingCurrency { get; } - /// - /// The amount of balance adjustment in billing currency. - /// Serialized Name: EventSummary.properties.adjustmentsInBillingCurrency - /// + /// The amount of balance adjustment in billing currency. public ConsumptionAmountWithExchangeRate AdjustmentsInBillingCurrency { get; } - /// - /// The amount of charges for events of type SettleCharges and PendingEligibleCharges in billing currency. - /// Serialized Name: EventSummary.properties.chargesInBillingCurrency - /// + /// The amount of charges for events of type SettleCharges and PendingEligibleCharges in billing currency. public ConsumptionAmountWithExchangeRate ChargesInBillingCurrency { get; } - /// - /// The balance in billing currency after the event. - /// Serialized Name: EventSummary.properties.closedBalanceInBillingCurrency - /// + /// The balance in billing currency after the event. public ConsumptionAmountWithExchangeRate ClosedBalanceInBillingCurrency { 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. - /// Serialized Name: ProxyResource.eTag - /// + /// eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not. public ETag? ETag { get; set; } } } diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionEventType.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionEventType.cs index 71a7b4ae66bb0..d394904bdff70 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionEventType.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionEventType.cs @@ -10,10 +10,7 @@ namespace Azure.ResourceManager.Consumption.Models { - /// - /// Identifies the type of the event. - /// Serialized Name: EventType - /// + /// Identifies the type of the event. public readonly partial struct ConsumptionEventType : IEquatable { private readonly string _value; @@ -34,45 +31,21 @@ public ConsumptionEventType(string value) private const string NewCreditValue = "NewCredit"; private const string CreditExpiredValue = "CreditExpired"; - /// - /// SettledCharges - /// Serialized Name: EventType.SettledCharges - /// + /// SettledCharges. public static ConsumptionEventType SettledCharges { get; } = new ConsumptionEventType(SettledChargesValue); - /// - /// PendingCharges - /// Serialized Name: EventType.PendingCharges - /// + /// PendingCharges. public static ConsumptionEventType PendingCharges { get; } = new ConsumptionEventType(PendingChargesValue); - /// - /// PendingAdjustments - /// Serialized Name: EventType.PendingAdjustments - /// + /// PendingAdjustments. public static ConsumptionEventType PendingAdjustments { get; } = new ConsumptionEventType(PendingAdjustmentsValue); - /// - /// PendingNewCredit - /// Serialized Name: EventType.PendingNewCredit - /// + /// PendingNewCredit. public static ConsumptionEventType PendingNewCredit { get; } = new ConsumptionEventType(PendingNewCreditValue); - /// - /// PendingExpiredCredit - /// Serialized Name: EventType.PendingExpiredCredit - /// + /// PendingExpiredCredit. public static ConsumptionEventType PendingExpiredCredit { get; } = new ConsumptionEventType(PendingExpiredCreditValue); - /// - /// UnKnown - /// Serialized Name: EventType.UnKnown - /// + /// UnKnown. public static ConsumptionEventType UnKnown { get; } = new ConsumptionEventType(UnKnownValue); - /// - /// NewCredit - /// Serialized Name: EventType.NewCredit - /// + /// NewCredit. public static ConsumptionEventType NewCredit { get; } = new ConsumptionEventType(NewCreditValue); - /// - /// CreditExpired - /// Serialized Name: EventType.CreditExpired - /// + /// CreditExpired. public static ConsumptionEventType CreditExpired { get; } = new ConsumptionEventType(CreditExpiredValue); /// Determines if two values are the same. public static bool operator ==(ConsumptionEventType left, ConsumptionEventType right) => left.Equals(right); diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionLegacyChargeSummary.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionLegacyChargeSummary.cs index 37ccce5c69f9c..6d56f34432fec 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionLegacyChargeSummary.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionLegacyChargeSummary.cs @@ -11,10 +11,7 @@ namespace Azure.ResourceManager.Consumption.Models { - /// - /// Legacy charge summary. - /// Serialized Name: LegacyChargeSummary - /// + /// Legacy charge summary. public partial class ConsumptionLegacyChargeSummary : ConsumptionChargeSummary { /// Initializes a new instance of ConsumptionLegacyChargeSummary. @@ -28,42 +25,15 @@ public ConsumptionLegacyChargeSummary() /// The name. /// The resourceType. /// The systemData. - /// - /// Specifies the kind of charge summary. - /// Serialized Name: ChargeSummary.kind - /// - /// - /// 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. - /// Serialized Name: ProxyResource.eTag - /// - /// - /// The id of the billing period resource that the charge belongs to. - /// Serialized Name: LegacyChargeSummary.properties.billingPeriodId - /// - /// - /// Usage start date. - /// Serialized Name: LegacyChargeSummary.properties.usageStart - /// - /// - /// Usage end date. - /// Serialized Name: LegacyChargeSummary.properties.usageEnd - /// - /// - /// Azure Charges. - /// Serialized Name: LegacyChargeSummary.properties.azureCharges - /// - /// - /// Charges Billed separately. - /// Serialized Name: LegacyChargeSummary.properties.chargesBilledSeparately - /// - /// - /// Marketplace Charges. - /// Serialized Name: LegacyChargeSummary.properties.marketplaceCharges - /// - /// - /// Currency Code - /// Serialized Name: LegacyChargeSummary.properties.currency - /// + /// Specifies the kind of charge summary. + /// 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. + /// The id of the billing period resource that the charge belongs to. + /// Usage start date. + /// Usage end date. + /// Azure Charges. + /// Charges Billed separately. + /// Marketplace Charges. + /// Currency Code. internal ConsumptionLegacyChargeSummary(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, ChargeSummaryKind kind, ETag? etag, string billingPeriodId, string usageStart, string usageEnd, decimal? azureCharges, decimal? chargesBilledSeparately, decimal? marketplaceCharges, string currency) : base(id, name, resourceType, systemData, kind, etag) { BillingPeriodId = billingPeriodId; @@ -76,40 +46,19 @@ internal ConsumptionLegacyChargeSummary(ResourceIdentifier id, string name, Reso Kind = kind; } - /// - /// The id of the billing period resource that the charge belongs to. - /// Serialized Name: LegacyChargeSummary.properties.billingPeriodId - /// + /// The id of the billing period resource that the charge belongs to. public string BillingPeriodId { get; } - /// - /// Usage start date. - /// Serialized Name: LegacyChargeSummary.properties.usageStart - /// + /// Usage start date. public string UsageStart { get; } - /// - /// Usage end date. - /// Serialized Name: LegacyChargeSummary.properties.usageEnd - /// + /// Usage end date. public string UsageEnd { get; } - /// - /// Azure Charges. - /// Serialized Name: LegacyChargeSummary.properties.azureCharges - /// + /// Azure Charges. public decimal? AzureCharges { get; } - /// - /// Charges Billed separately. - /// Serialized Name: LegacyChargeSummary.properties.chargesBilledSeparately - /// + /// Charges Billed separately. public decimal? ChargesBilledSeparately { get; } - /// - /// Marketplace Charges. - /// Serialized Name: LegacyChargeSummary.properties.marketplaceCharges - /// + /// Marketplace Charges. public decimal? MarketplaceCharges { get; } - /// - /// Currency Code - /// Serialized Name: LegacyChargeSummary.properties.currency - /// + /// Currency Code. public string Currency { get; } } } diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionLegacyReservationRecommendation.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionLegacyReservationRecommendation.cs index 11d41440d335e..9f363dfbcaae1 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionLegacyReservationRecommendation.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionLegacyReservationRecommendation.cs @@ -13,17 +13,11 @@ namespace Azure.ResourceManager.Consumption.Models { - /// - /// Legacy reservation recommendation. - /// Serialized Name: LegacyReservationRecommendation - /// + /// Legacy reservation recommendation. public partial class ConsumptionLegacyReservationRecommendation : ConsumptionReservationRecommendation { /// Initializes a new instance of ConsumptionLegacyReservationRecommendation. - /// - /// Shared or single recommendation. - /// Serialized Name: LegacyReservationRecommendation.properties.scope - /// + /// Shared or single recommendation. /// is null. internal ConsumptionLegacyReservationRecommendation(string scope) { @@ -39,82 +33,25 @@ internal ConsumptionLegacyReservationRecommendation(string scope) /// The name. /// The resourceType. /// The systemData. - /// - /// Specifies the kind of reservation recommendation. - /// Serialized Name: ReservationRecommendation.kind - /// - /// - /// The etag for the resource. - /// Serialized Name: Resource.etag - /// - /// - /// Resource tags. - /// Serialized Name: Resource.tags - /// - /// - /// Resource location - /// Serialized Name: ResourceAttributes.location - /// - /// - /// Resource sku - /// Serialized Name: ResourceAttributes.sku - /// - /// - /// The number of days of usage to look back for recommendation. - /// Serialized Name: LegacyReservationRecommendation.properties.lookBackPeriod - /// - /// - /// The instance Flexibility Ratio. - /// Serialized Name: LegacyReservationRecommendation.properties.instanceFlexibilityRatio - /// - /// - /// The instance Flexibility Group. - /// Serialized Name: LegacyReservationRecommendation.properties.instanceFlexibilityGroup - /// - /// - /// The normalized Size. - /// Serialized Name: LegacyReservationRecommendation.properties.normalizedSize - /// - /// - /// The recommended Quantity Normalized. - /// Serialized Name: LegacyReservationRecommendation.properties.recommendedQuantityNormalized - /// - /// - /// The meter id (GUID) - /// Serialized Name: LegacyReservationRecommendation.properties.meterId - /// - /// - /// RI recommendations in one or three year terms. - /// Serialized Name: LegacyReservationRecommendation.properties.term - /// - /// - /// The total amount of cost without reserved instances. - /// Serialized Name: LegacyReservationRecommendation.properties.costWithNoReservedInstances - /// - /// - /// Recommended quality for reserved instances. - /// Serialized Name: LegacyReservationRecommendation.properties.recommendedQuantity - /// - /// - /// The total amount of cost with reserved instances. - /// Serialized Name: LegacyReservationRecommendation.properties.totalCostWithReservedInstances - /// - /// - /// Total estimated savings with reserved instances. - /// Serialized Name: LegacyReservationRecommendation.properties.netSavings - /// - /// - /// The usage date for looking back. - /// Serialized Name: LegacyReservationRecommendation.properties.firstUsageDate - /// - /// - /// Shared or single recommendation. - /// Serialized Name: LegacyReservationRecommendation.properties.scope - /// - /// - /// List of sku properties - /// Serialized Name: LegacyReservationRecommendation.properties.skuProperties - /// + /// Specifies the kind of reservation recommendation. + /// The etag for the resource. + /// Resource tags. + /// Resource location. + /// Resource sku. + /// The number of days of usage to look back for recommendation. + /// The instance Flexibility Ratio. + /// The instance Flexibility Group. + /// The normalized Size. + /// The recommended Quantity Normalized. + /// The meter id (GUID). + /// RI recommendations in one or three year terms. + /// The total amount of cost without reserved instances. + /// Recommended quality for reserved instances. + /// The total amount of cost with reserved instances. + /// Total estimated savings with reserved instances. + /// The usage date for looking back. + /// Shared or single recommendation. + /// List of sku properties. internal ConsumptionLegacyReservationRecommendation(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, ReservationRecommendationKind kind, ETag? etag, IReadOnlyDictionary tags, AzureLocation? location, string sku, string lookBackPeriod, float? instanceFlexibilityRatio, string instanceFlexibilityGroup, string normalizedSize, float? recommendedQuantityNormalized, Guid? meterId, string term, decimal? costWithNoReservedInstances, decimal? recommendedQuantity, decimal? totalCostWithReservedInstances, decimal? netSavings, DateTimeOffset? firstUsageOn, string scope, IReadOnlyList skuProperties) : base(id, name, resourceType, systemData, kind, etag, tags, location, sku) { LookBackPeriod = lookBackPeriod; @@ -134,75 +71,33 @@ internal ConsumptionLegacyReservationRecommendation(ResourceIdentifier id, strin Kind = kind; } - /// - /// The number of days of usage to look back for recommendation. - /// Serialized Name: LegacyReservationRecommendation.properties.lookBackPeriod - /// + /// The number of days of usage to look back for recommendation. public string LookBackPeriod { get; } - /// - /// The instance Flexibility Ratio. - /// Serialized Name: LegacyReservationRecommendation.properties.instanceFlexibilityRatio - /// + /// The instance Flexibility Ratio. public float? InstanceFlexibilityRatio { get; } - /// - /// The instance Flexibility Group. - /// Serialized Name: LegacyReservationRecommendation.properties.instanceFlexibilityGroup - /// + /// The instance Flexibility Group. public string InstanceFlexibilityGroup { get; } - /// - /// The normalized Size. - /// Serialized Name: LegacyReservationRecommendation.properties.normalizedSize - /// + /// The normalized Size. public string NormalizedSize { get; } - /// - /// The recommended Quantity Normalized. - /// Serialized Name: LegacyReservationRecommendation.properties.recommendedQuantityNormalized - /// + /// The recommended Quantity Normalized. public float? RecommendedQuantityNormalized { get; } - /// - /// The meter id (GUID) - /// Serialized Name: LegacyReservationRecommendation.properties.meterId - /// + /// The meter id (GUID). public Guid? MeterId { get; } - /// - /// RI recommendations in one or three year terms. - /// Serialized Name: LegacyReservationRecommendation.properties.term - /// + /// RI recommendations in one or three year terms. public string Term { get; } - /// - /// The total amount of cost without reserved instances. - /// Serialized Name: LegacyReservationRecommendation.properties.costWithNoReservedInstances - /// + /// The total amount of cost without reserved instances. public decimal? CostWithNoReservedInstances { get; } - /// - /// Recommended quality for reserved instances. - /// Serialized Name: LegacyReservationRecommendation.properties.recommendedQuantity - /// + /// Recommended quality for reserved instances. public decimal? RecommendedQuantity { get; } - /// - /// The total amount of cost with reserved instances. - /// Serialized Name: LegacyReservationRecommendation.properties.totalCostWithReservedInstances - /// + /// The total amount of cost with reserved instances. public decimal? TotalCostWithReservedInstances { get; } - /// - /// Total estimated savings with reserved instances. - /// Serialized Name: LegacyReservationRecommendation.properties.netSavings - /// + /// Total estimated savings with reserved instances. public decimal? NetSavings { get; } - /// - /// The usage date for looking back. - /// Serialized Name: LegacyReservationRecommendation.properties.firstUsageDate - /// + /// The usage date for looking back. public DateTimeOffset? FirstUsageOn { get; } - /// - /// Shared or single recommendation. - /// Serialized Name: LegacyReservationRecommendation.properties.scope - /// + /// Shared or single recommendation. internal string Scope { get; set; } - /// - /// List of sku properties - /// Serialized Name: LegacyReservationRecommendation.properties.skuProperties - /// + /// List of sku properties. public IReadOnlyList SkuProperties { get; } } } diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionLegacyUsageDetail.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionLegacyUsageDetail.cs index 22add9d5ec673..d4a537b43b1c8 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionLegacyUsageDetail.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionLegacyUsageDetail.cs @@ -13,10 +13,7 @@ namespace Azure.ResourceManager.Consumption.Models { - /// - /// Legacy usage detail. - /// Serialized Name: LegacyUsageDetail - /// + /// Legacy usage detail. public partial class ConsumptionLegacyUsageDetail : ConsumptionUsageDetail { /// Initializes a new instance of ConsumptionLegacyUsageDetail. @@ -30,202 +27,55 @@ internal ConsumptionLegacyUsageDetail() /// The name. /// The resourceType. /// The systemData. - /// - /// Specifies the kind of usage details. - /// Serialized Name: UsageDetail.kind - /// - /// - /// The etag for the resource. - /// Serialized Name: Resource.etag - /// - /// - /// Resource tags. - /// Serialized Name: Resource.tags - /// - /// - /// Billing Account identifier. - /// Serialized Name: LegacyUsageDetail.properties.billingAccountId - /// - /// - /// Billing Account Name. - /// Serialized Name: LegacyUsageDetail.properties.billingAccountName - /// - /// - /// The billing period start date. - /// Serialized Name: LegacyUsageDetail.properties.billingPeriodStartDate - /// - /// - /// The billing period end date. - /// Serialized Name: LegacyUsageDetail.properties.billingPeriodEndDate - /// - /// - /// Billing Profile identifier. - /// Serialized Name: LegacyUsageDetail.properties.billingProfileId - /// - /// - /// Billing Profile Name. - /// Serialized Name: LegacyUsageDetail.properties.billingProfileName - /// - /// - /// Account Owner Id. - /// Serialized Name: LegacyUsageDetail.properties.accountOwnerId - /// - /// - /// Account Name. - /// Serialized Name: LegacyUsageDetail.properties.accountName - /// - /// - /// Subscription guid. - /// Serialized Name: LegacyUsageDetail.properties.subscriptionId - /// - /// - /// Subscription name. - /// Serialized Name: LegacyUsageDetail.properties.subscriptionName - /// - /// - /// Date for the usage record. - /// Serialized Name: LegacyUsageDetail.properties.date - /// - /// - /// Product name for the consumed service or purchase. Not available for Marketplace. - /// Serialized Name: LegacyUsageDetail.properties.product - /// - /// - /// Part Number of the service used. Can be used to join with the price sheet. Not available for marketplace. - /// Serialized Name: LegacyUsageDetail.properties.partNumber - /// - /// - /// The meter id (GUID). Not available for marketplace. For reserved instance this represents the primary meter for which the reservation was purchased. For the actual VM Size for which the reservation is purchased see productOrderName. - /// Serialized Name: LegacyUsageDetail.properties.meterId - /// - /// - /// The details about the meter. By default this is not populated, unless it's specified in $expand. - /// Serialized Name: LegacyUsageDetail.properties.meterDetails - /// - /// - /// The usage quantity. - /// Serialized Name: LegacyUsageDetail.properties.quantity - /// - /// - /// Effective Price that's charged for the usage. - /// Serialized Name: LegacyUsageDetail.properties.effectivePrice - /// - /// - /// The amount of cost before tax. - /// Serialized Name: LegacyUsageDetail.properties.cost - /// - /// - /// Unit Price is the price applicable to you. (your EA or other contract price). - /// Serialized Name: LegacyUsageDetail.properties.unitPrice - /// - /// - /// Billing Currency. - /// Serialized Name: LegacyUsageDetail.properties.billingCurrency - /// - /// - /// Resource Location. - /// Serialized Name: LegacyUsageDetail.properties.resourceLocation - /// - /// - /// Consumed service name. Name of the azure resource provider that emits the usage or was purchased. This value is not provided for marketplace usage. - /// Serialized Name: LegacyUsageDetail.properties.consumedService - /// - /// - /// Unique identifier of the Azure Resource Manager usage detail resource. - /// Serialized Name: LegacyUsageDetail.properties.resourceId - /// - /// - /// Resource Name. - /// Serialized Name: LegacyUsageDetail.properties.resourceName - /// - /// - /// Service-specific metadata. - /// Serialized Name: LegacyUsageDetail.properties.serviceInfo1 - /// - /// - /// Legacy field with optional service-specific metadata. - /// Serialized Name: LegacyUsageDetail.properties.serviceInfo2 - /// - /// - /// Additional details of this usage item. By default this is not populated, unless it's specified in $expand. Use this field to get usage line item specific details such as the actual VM Size (ServiceType) or the ratio in which the reservation discount is applied. - /// Serialized Name: LegacyUsageDetail.properties.additionalInfo - /// - /// - /// Invoice Section Name. - /// Serialized Name: LegacyUsageDetail.properties.invoiceSection - /// - /// - /// The cost center of this department if it is a department and a cost center is provided. - /// Serialized Name: LegacyUsageDetail.properties.costCenter - /// - /// - /// Resource Group Name. - /// Serialized Name: LegacyUsageDetail.properties.resourceGroup - /// - /// - /// ARM resource id of the reservation. Only applies to records relevant to reservations. - /// Serialized Name: LegacyUsageDetail.properties.reservationId - /// - /// - /// User provided display name of the reservation. Last known name for a particular day is populated in the daily data. Only applies to records relevant to reservations. - /// Serialized Name: LegacyUsageDetail.properties.reservationName - /// - /// - /// Product Order Id. For reservations this is the Reservation Order ID. - /// Serialized Name: LegacyUsageDetail.properties.productOrderId - /// - /// - /// Product Order Name. For reservations this is the SKU that was purchased. - /// Serialized Name: LegacyUsageDetail.properties.productOrderName - /// - /// - /// Offer Id. Ex: MS-AZR-0017P, MS-AZR-0148P. - /// Serialized Name: LegacyUsageDetail.properties.offerId - /// - /// - /// Is Azure Credit Eligible. - /// Serialized Name: LegacyUsageDetail.properties.isAzureCreditEligible - /// - /// - /// Term (in months). 1 month for monthly recurring purchase. 12 months for a 1 year reservation. 36 months for a 3 year reservation. - /// Serialized Name: LegacyUsageDetail.properties.term - /// - /// - /// Publisher Name. - /// Serialized Name: LegacyUsageDetail.properties.publisherName - /// - /// - /// Publisher Type. - /// Serialized Name: LegacyUsageDetail.properties.publisherType - /// - /// - /// Plan Name. - /// Serialized Name: LegacyUsageDetail.properties.planName - /// - /// - /// Indicates a charge represents credits, usage, a Marketplace purchase, a reservation fee, or a refund. - /// Serialized Name: LegacyUsageDetail.properties.chargeType - /// - /// - /// Indicates how frequently this charge will occur. OneTime for purchases which only happen once, Monthly for fees which recur every month, and UsageBased for charges based on how much a service is used. - /// Serialized Name: LegacyUsageDetail.properties.frequency - /// - /// - /// Retail price for the resource. - /// Serialized Name: LegacyUsageDetail.properties.payGPrice - /// - /// - /// Unique identifier for the applicable benefit. - /// Serialized Name: LegacyUsageDetail.properties.benefitId - /// - /// - /// Name of the applicable benefit. - /// Serialized Name: LegacyUsageDetail.properties.benefitName - /// - /// - /// Identifier that indicates how the meter is priced. - /// Serialized Name: LegacyUsageDetail.properties.pricingModel - /// + /// Specifies the kind of usage details. + /// The etag for the resource. + /// Resource tags. + /// Billing Account identifier. + /// Billing Account Name. + /// The billing period start date. + /// The billing period end date. + /// Billing Profile identifier. + /// Billing Profile Name. + /// Account Owner Id. + /// Account Name. + /// Subscription guid. + /// Subscription name. + /// Date for the usage record. + /// Product name for the consumed service or purchase. Not available for Marketplace. + /// Part Number of the service used. Can be used to join with the price sheet. Not available for marketplace. + /// The meter id (GUID). Not available for marketplace. For reserved instance this represents the primary meter for which the reservation was purchased. For the actual VM Size for which the reservation is purchased see productOrderName. + /// The details about the meter. By default this is not populated, unless it's specified in $expand. + /// The usage quantity. + /// Effective Price that's charged for the usage. + /// The amount of cost before tax. + /// Unit Price is the price applicable to you. (your EA or other contract price). + /// Billing Currency. + /// Resource Location. + /// Consumed service name. Name of the azure resource provider that emits the usage or was purchased. This value is not provided for marketplace usage. + /// Unique identifier of the Azure Resource Manager usage detail resource. + /// Resource Name. + /// Service-specific metadata. + /// Legacy field with optional service-specific metadata. + /// Additional details of this usage item. By default this is not populated, unless it's specified in $expand. Use this field to get usage line item specific details such as the actual VM Size (ServiceType) or the ratio in which the reservation discount is applied. + /// Invoice Section Name. + /// The cost center of this department if it is a department and a cost center is provided. + /// Resource Group Name. + /// ARM resource id of the reservation. Only applies to records relevant to reservations. + /// User provided display name of the reservation. Last known name for a particular day is populated in the daily data. Only applies to records relevant to reservations. + /// Product Order Id. For reservations this is the Reservation Order ID. + /// Product Order Name. For reservations this is the SKU that was purchased. + /// Offer Id. Ex: MS-AZR-0017P, MS-AZR-0148P. + /// Is Azure Credit Eligible. + /// Term (in months). 1 month for monthly recurring purchase. 12 months for a 1 year reservation. 36 months for a 3 year reservation. + /// Publisher Name. + /// Publisher Type. + /// Plan Name. + /// Indicates a charge represents credits, usage, a Marketplace purchase, a reservation fee, or a refund. + /// Indicates how frequently this charge will occur. OneTime for purchases which only happen once, Monthly for fees which recur every month, and UsageBased for charges based on how much a service is used. + /// Retail price for the resource. + /// Unique identifier for the applicable benefit. + /// Name of the applicable benefit. + /// Identifier that indicates how the meter is priced. internal ConsumptionLegacyUsageDetail(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, UsageDetailsKind kind, ETag? etag, IReadOnlyDictionary tags, string billingAccountId, string billingAccountName, DateTimeOffset? billingPeriodStartOn, DateTimeOffset? billingPeriodEndOn, string billingProfileId, string billingProfileName, string accountOwnerId, string accountName, string subscriptionId, string subscriptionName, DateTimeOffset? @on, string product, string partNumber, Guid? meterId, ConsumptionMeterDetailsInfo meterDetails, decimal? quantity, decimal? effectivePrice, decimal? cost, decimal? unitPrice, string billingCurrency, string resourceLocation, string consumedService, string resourceId, string resourceName, string serviceInfo1, string serviceInfo2, string additionalInfo, string invoiceSection, string costCenter, string resourceGroup, string reservationId, string reservationName, string productOrderId, string productOrderName, string offerId, bool? isAzureCreditEligible, string term, string publisherName, string publisherType, string planName, string chargeType, string frequency, decimal? payGPrice, string benefitId, string benefitName, ConsumptionPricingModelType? pricingModel) : base(id, name, resourceType, systemData, kind, etag, tags) { BillingAccountId = billingAccountId; @@ -277,235 +127,97 @@ internal ConsumptionLegacyUsageDetail(ResourceIdentifier id, string name, Resour Kind = kind; } - /// - /// Billing Account identifier. - /// Serialized Name: LegacyUsageDetail.properties.billingAccountId - /// + /// Billing Account identifier. public string BillingAccountId { get; } - /// - /// Billing Account Name. - /// Serialized Name: LegacyUsageDetail.properties.billingAccountName - /// + /// Billing Account Name. public string BillingAccountName { get; } - /// - /// The billing period start date. - /// Serialized Name: LegacyUsageDetail.properties.billingPeriodStartDate - /// + /// The billing period start date. public DateTimeOffset? BillingPeriodStartOn { get; } - /// - /// The billing period end date. - /// Serialized Name: LegacyUsageDetail.properties.billingPeriodEndDate - /// + /// The billing period end date. public DateTimeOffset? BillingPeriodEndOn { get; } - /// - /// Billing Profile identifier. - /// Serialized Name: LegacyUsageDetail.properties.billingProfileId - /// + /// Billing Profile identifier. public string BillingProfileId { get; } - /// - /// Billing Profile Name. - /// Serialized Name: LegacyUsageDetail.properties.billingProfileName - /// + /// Billing Profile Name. public string BillingProfileName { get; } - /// - /// Account Owner Id. - /// Serialized Name: LegacyUsageDetail.properties.accountOwnerId - /// + /// Account Owner Id. public string AccountOwnerId { get; } - /// - /// Account Name. - /// Serialized Name: LegacyUsageDetail.properties.accountName - /// + /// Account Name. public string AccountName { get; } - /// - /// Subscription guid. - /// Serialized Name: LegacyUsageDetail.properties.subscriptionId - /// + /// Subscription guid. public string SubscriptionId { get; } - /// - /// Subscription name. - /// Serialized Name: LegacyUsageDetail.properties.subscriptionName - /// + /// Subscription name. public string SubscriptionName { get; } - /// - /// Date for the usage record. - /// Serialized Name: LegacyUsageDetail.properties.date - /// + /// Date for the usage record. public DateTimeOffset? On { get; } - /// - /// Product name for the consumed service or purchase. Not available for Marketplace. - /// Serialized Name: LegacyUsageDetail.properties.product - /// + /// Product name for the consumed service or purchase. Not available for Marketplace. public string Product { get; } - /// - /// Part Number of the service used. Can be used to join with the price sheet. Not available for marketplace. - /// Serialized Name: LegacyUsageDetail.properties.partNumber - /// + /// Part Number of the service used. Can be used to join with the price sheet. Not available for marketplace. public string PartNumber { get; } - /// - /// The meter id (GUID). Not available for marketplace. For reserved instance this represents the primary meter for which the reservation was purchased. For the actual VM Size for which the reservation is purchased see productOrderName. - /// Serialized Name: LegacyUsageDetail.properties.meterId - /// + /// The meter id (GUID). Not available for marketplace. For reserved instance this represents the primary meter for which the reservation was purchased. For the actual VM Size for which the reservation is purchased see productOrderName. public Guid? MeterId { get; } - /// - /// The details about the meter. By default this is not populated, unless it's specified in $expand. - /// Serialized Name: LegacyUsageDetail.properties.meterDetails - /// + /// The details about the meter. By default this is not populated, unless it's specified in $expand. public ConsumptionMeterDetailsInfo MeterDetails { get; } - /// - /// The usage quantity. - /// Serialized Name: LegacyUsageDetail.properties.quantity - /// + /// The usage quantity. public decimal? Quantity { get; } - /// - /// Effective Price that's charged for the usage. - /// Serialized Name: LegacyUsageDetail.properties.effectivePrice - /// + /// Effective Price that's charged for the usage. public decimal? EffectivePrice { get; } - /// - /// The amount of cost before tax. - /// Serialized Name: LegacyUsageDetail.properties.cost - /// + /// The amount of cost before tax. public decimal? Cost { get; } - /// - /// Unit Price is the price applicable to you. (your EA or other contract price). - /// Serialized Name: LegacyUsageDetail.properties.unitPrice - /// + /// Unit Price is the price applicable to you. (your EA or other contract price). public decimal? UnitPrice { get; } - /// - /// Billing Currency. - /// Serialized Name: LegacyUsageDetail.properties.billingCurrency - /// + /// Billing Currency. public string BillingCurrency { get; } - /// - /// Resource Location. - /// Serialized Name: LegacyUsageDetail.properties.resourceLocation - /// + /// Resource Location. public string ResourceLocation { get; } - /// - /// Consumed service name. Name of the azure resource provider that emits the usage or was purchased. This value is not provided for marketplace usage. - /// Serialized Name: LegacyUsageDetail.properties.consumedService - /// + /// Consumed service name. Name of the azure resource provider that emits the usage or was purchased. This value is not provided for marketplace usage. public string ConsumedService { get; } - /// - /// Unique identifier of the Azure Resource Manager usage detail resource. - /// Serialized Name: LegacyUsageDetail.properties.resourceId - /// + /// Unique identifier of the Azure Resource Manager usage detail resource. public string ResourceId { get; } - /// - /// Resource Name. - /// Serialized Name: LegacyUsageDetail.properties.resourceName - /// + /// Resource Name. public string ResourceName { get; } - /// - /// Service-specific metadata. - /// Serialized Name: LegacyUsageDetail.properties.serviceInfo1 - /// + /// Service-specific metadata. public string ServiceInfo1 { get; } - /// - /// Legacy field with optional service-specific metadata. - /// Serialized Name: LegacyUsageDetail.properties.serviceInfo2 - /// + /// Legacy field with optional service-specific metadata. public string ServiceInfo2 { get; } - /// - /// Additional details of this usage item. By default this is not populated, unless it's specified in $expand. Use this field to get usage line item specific details such as the actual VM Size (ServiceType) or the ratio in which the reservation discount is applied. - /// Serialized Name: LegacyUsageDetail.properties.additionalInfo - /// + /// Additional details of this usage item. By default this is not populated, unless it's specified in $expand. Use this field to get usage line item specific details such as the actual VM Size (ServiceType) or the ratio in which the reservation discount is applied. public string AdditionalInfo { get; } - /// - /// Invoice Section Name. - /// Serialized Name: LegacyUsageDetail.properties.invoiceSection - /// + /// Invoice Section Name. public string InvoiceSection { get; } - /// - /// The cost center of this department if it is a department and a cost center is provided. - /// Serialized Name: LegacyUsageDetail.properties.costCenter - /// + /// The cost center of this department if it is a department and a cost center is provided. public string CostCenter { get; } - /// - /// Resource Group Name. - /// Serialized Name: LegacyUsageDetail.properties.resourceGroup - /// + /// Resource Group Name. public string ResourceGroup { get; } - /// - /// ARM resource id of the reservation. Only applies to records relevant to reservations. - /// Serialized Name: LegacyUsageDetail.properties.reservationId - /// + /// ARM resource id of the reservation. Only applies to records relevant to reservations. public string ReservationId { get; } - /// - /// User provided display name of the reservation. Last known name for a particular day is populated in the daily data. Only applies to records relevant to reservations. - /// Serialized Name: LegacyUsageDetail.properties.reservationName - /// + /// User provided display name of the reservation. Last known name for a particular day is populated in the daily data. Only applies to records relevant to reservations. public string ReservationName { get; } - /// - /// Product Order Id. For reservations this is the Reservation Order ID. - /// Serialized Name: LegacyUsageDetail.properties.productOrderId - /// + /// Product Order Id. For reservations this is the Reservation Order ID. public string ProductOrderId { get; } - /// - /// Product Order Name. For reservations this is the SKU that was purchased. - /// Serialized Name: LegacyUsageDetail.properties.productOrderName - /// + /// Product Order Name. For reservations this is the SKU that was purchased. public string ProductOrderName { get; } - /// - /// Offer Id. Ex: MS-AZR-0017P, MS-AZR-0148P. - /// Serialized Name: LegacyUsageDetail.properties.offerId - /// + /// Offer Id. Ex: MS-AZR-0017P, MS-AZR-0148P. public string OfferId { get; } - /// - /// Is Azure Credit Eligible. - /// Serialized Name: LegacyUsageDetail.properties.isAzureCreditEligible - /// + /// Is Azure Credit Eligible. public bool? IsAzureCreditEligible { get; } - /// - /// Term (in months). 1 month for monthly recurring purchase. 12 months for a 1 year reservation. 36 months for a 3 year reservation. - /// Serialized Name: LegacyUsageDetail.properties.term - /// + /// Term (in months). 1 month for monthly recurring purchase. 12 months for a 1 year reservation. 36 months for a 3 year reservation. public string Term { get; } - /// - /// Publisher Name. - /// Serialized Name: LegacyUsageDetail.properties.publisherName - /// + /// Publisher Name. public string PublisherName { get; } - /// - /// Publisher Type. - /// Serialized Name: LegacyUsageDetail.properties.publisherType - /// + /// Publisher Type. public string PublisherType { get; } - /// - /// Plan Name. - /// Serialized Name: LegacyUsageDetail.properties.planName - /// + /// Plan Name. public string PlanName { get; } - /// - /// Indicates a charge represents credits, usage, a Marketplace purchase, a reservation fee, or a refund. - /// Serialized Name: LegacyUsageDetail.properties.chargeType - /// + /// Indicates a charge represents credits, usage, a Marketplace purchase, a reservation fee, or a refund. public string ChargeType { get; } - /// - /// Indicates how frequently this charge will occur. OneTime for purchases which only happen once, Monthly for fees which recur every month, and UsageBased for charges based on how much a service is used. - /// Serialized Name: LegacyUsageDetail.properties.frequency - /// + /// Indicates how frequently this charge will occur. OneTime for purchases which only happen once, Monthly for fees which recur every month, and UsageBased for charges based on how much a service is used. public string Frequency { get; } - /// - /// Retail price for the resource. - /// Serialized Name: LegacyUsageDetail.properties.payGPrice - /// + /// Retail price for the resource. public decimal? PayGPrice { get; } - /// - /// Unique identifier for the applicable benefit. - /// Serialized Name: LegacyUsageDetail.properties.benefitId - /// + /// Unique identifier for the applicable benefit. public string BenefitId { get; } - /// - /// Name of the applicable benefit. - /// Serialized Name: LegacyUsageDetail.properties.benefitName - /// + /// Name of the applicable benefit. public string BenefitName { get; } - /// - /// Identifier that indicates how the meter is priced. - /// Serialized Name: LegacyUsageDetail.properties.pricingModel - /// + /// Identifier that indicates how the meter is priced. public ConsumptionPricingModelType? PricingModel { get; } } } diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionLotSource.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionLotSource.cs index ad17ffe897ca7..c361ac1091f47 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionLotSource.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionLotSource.cs @@ -10,10 +10,7 @@ namespace Azure.ResourceManager.Consumption.Models { - /// - /// The source of the lot. - /// Serialized Name: LotSource - /// + /// The source of the lot. public readonly partial struct ConsumptionLotSource : IEquatable { private readonly string _value; @@ -29,20 +26,11 @@ public ConsumptionLotSource(string value) private const string PromotionalCreditValue = "PromotionalCredit"; private const string ConsumptionCommitmentValue = "ConsumptionCommitment"; - /// - /// PurchasedCredit - /// Serialized Name: LotSource.PurchasedCredit - /// + /// PurchasedCredit. public static ConsumptionLotSource PurchasedCredit { get; } = new ConsumptionLotSource(PurchasedCreditValue); - /// - /// PromotionalCredit - /// Serialized Name: LotSource.PromotionalCredit - /// + /// PromotionalCredit. public static ConsumptionLotSource PromotionalCredit { get; } = new ConsumptionLotSource(PromotionalCreditValue); - /// - /// ConsumptionCommitment - /// Serialized Name: LotSource.ConsumptionCommitment - /// + /// ConsumptionCommitment. public static ConsumptionLotSource ConsumptionCommitment { get; } = new ConsumptionLotSource(ConsumptionCommitmentValue); /// Determines if two values are the same. public static bool operator ==(ConsumptionLotSource left, ConsumptionLotSource right) => left.Equals(right); diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionLotStatus.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionLotStatus.cs index 956c23d1ae43f..c8d026ca95590 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionLotStatus.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionLotStatus.cs @@ -10,10 +10,7 @@ namespace Azure.ResourceManager.Consumption.Models { - /// - /// The status of the lot. - /// Serialized Name: Status - /// + /// The status of the lot. public readonly partial struct ConsumptionLotStatus : IEquatable { private readonly string _value; @@ -32,35 +29,17 @@ public ConsumptionLotStatus(string value) private const string CompleteValue = "Complete"; private const string CanceledValue = "Canceled"; - /// - /// None - /// Serialized Name: Status.None - /// + /// None. public static ConsumptionLotStatus None { get; } = new ConsumptionLotStatus(NoneValue); - /// - /// Active - /// Serialized Name: Status.Active - /// + /// Active. public static ConsumptionLotStatus Active { get; } = new ConsumptionLotStatus(ActiveValue); - /// - /// Inactive - /// Serialized Name: Status.Inactive - /// + /// Inactive. public static ConsumptionLotStatus Inactive { get; } = new ConsumptionLotStatus(InactiveValue); - /// - /// Expired - /// Serialized Name: Status.Expired - /// + /// Expired. public static ConsumptionLotStatus Expired { get; } = new ConsumptionLotStatus(ExpiredValue); - /// - /// Complete - /// Serialized Name: Status.Complete - /// + /// Complete. public static ConsumptionLotStatus Complete { get; } = new ConsumptionLotStatus(CompleteValue); - /// - /// Canceled - /// Serialized Name: Status.Canceled - /// + /// Canceled. public static ConsumptionLotStatus Canceled { get; } = new ConsumptionLotStatus(CanceledValue); /// Determines if two values are the same. public static bool operator ==(ConsumptionLotStatus left, ConsumptionLotStatus right) => left.Equals(right); 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 bce760bb37811..02de5bb3a6609 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionLotSummary.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionLotSummary.cs @@ -12,10 +12,7 @@ namespace Azure.ResourceManager.Consumption.Models { - /// - /// A lot summary resource. - /// Serialized Name: LotSummary - /// + /// A lot summary resource. public partial class ConsumptionLotSummary : ResourceData { /// Initializes a new instance of ConsumptionLotSummary. @@ -28,62 +25,20 @@ public ConsumptionLotSummary() /// The name. /// The resourceType. /// The systemData. - /// - /// The original amount of a lot. - /// Serialized Name: LotSummary.properties.originalAmount - /// - /// - /// The balance as of the last invoice. - /// Serialized Name: LotSummary.properties.closedBalance - /// - /// - /// The source of the lot. - /// Serialized Name: LotSummary.properties.source - /// - /// - /// The date when the lot became effective. - /// Serialized Name: LotSummary.properties.startDate - /// - /// - /// The expiration date of a lot. - /// Serialized Name: LotSummary.properties.expirationDate - /// - /// - /// The po number of the invoice on which the lot was added. This property is not available for ConsumptionCommitment lots. - /// Serialized Name: LotSummary.properties.poNumber - /// - /// - /// The date when the lot was added. - /// Serialized Name: LotSummary.properties.purchasedDate - /// - /// - /// The status of the lot. - /// Serialized Name: LotSummary.properties.status - /// - /// - /// The currency of the lot. - /// Serialized Name: LotSummary.properties.creditCurrency - /// - /// - /// The billing currency of the lot. - /// Serialized Name: LotSummary.properties.billingCurrency - /// - /// - /// The original amount of a lot in billing currency. - /// Serialized Name: LotSummary.properties.originalAmountInBillingCurrency - /// - /// - /// The balance as of the last invoice in billing currency. - /// Serialized Name: LotSummary.properties.closedBalanceInBillingCurrency - /// - /// - /// The reseller of the lot. - /// Serialized Name: LotSummary.properties.reseller - /// - /// - /// 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. - /// Serialized Name: ProxyResource.eTag - /// + /// The original amount of a lot. + /// The balance as of the last invoice. + /// The source of the lot. + /// The date when the lot became effective. + /// The expiration date of a lot. + /// The po number of the invoice on which the lot was added. This property is not available for ConsumptionCommitment lots. + /// The date when the lot was added. + /// The status of the lot. + /// The currency of the lot. + /// The billing currency of the lot. + /// The original amount of a lot in billing currency. + /// The balance as of the last invoice in billing currency. + /// The reseller of the lot. + /// 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) { OriginalAmount = originalAmount; @@ -102,75 +57,33 @@ internal ConsumptionLotSummary(ResourceIdentifier id, string name, ResourceType ETag = etag; } - /// - /// The original amount of a lot. - /// Serialized Name: LotSummary.properties.originalAmount - /// + /// The original amount of a lot. public ConsumptionAmount OriginalAmount { get; } - /// - /// The balance as of the last invoice. - /// Serialized Name: LotSummary.properties.closedBalance - /// + /// The balance as of the last invoice. public ConsumptionAmount ClosedBalance { get; } - /// - /// The source of the lot. - /// Serialized Name: LotSummary.properties.source - /// + /// The source of the lot. public ConsumptionLotSource? Source { get; } - /// - /// The date when the lot became effective. - /// Serialized Name: LotSummary.properties.startDate - /// + /// The date when the lot became effective. public DateTimeOffset? StartOn { get; } - /// - /// The expiration date of a lot. - /// Serialized Name: LotSummary.properties.expirationDate - /// + /// The expiration date of a lot. public DateTimeOffset? ExpireOn { get; } - /// - /// The po number of the invoice on which the lot was added. This property is not available for ConsumptionCommitment lots. - /// Serialized Name: LotSummary.properties.poNumber - /// + /// The po number of the invoice on which the lot was added. This property is not available for ConsumptionCommitment lots. public string PoNumber { get; } - /// - /// The date when the lot was added. - /// Serialized Name: LotSummary.properties.purchasedDate - /// + /// The date when the lot was added. public DateTimeOffset? PurchasedOn { get; } - /// - /// The status of the lot. - /// Serialized Name: LotSummary.properties.status - /// + /// The status of the lot. public ConsumptionLotStatus? Status { get; } - /// - /// The currency of the lot. - /// Serialized Name: LotSummary.properties.creditCurrency - /// + /// The currency of the lot. public string CreditCurrency { get; } - /// - /// The billing currency of the lot. - /// Serialized Name: LotSummary.properties.billingCurrency - /// + /// The billing currency of the lot. public string BillingCurrency { get; } - /// - /// The original amount of a lot in billing currency. - /// Serialized Name: LotSummary.properties.originalAmountInBillingCurrency - /// + /// The original amount of a lot in billing currency. public ConsumptionAmountWithExchangeRate OriginalAmountInBillingCurrency { get; } - /// - /// The balance as of the last invoice in billing currency. - /// Serialized Name: LotSummary.properties.closedBalanceInBillingCurrency - /// + /// The balance as of the last invoice in billing currency. public ConsumptionAmountWithExchangeRate ClosedBalanceInBillingCurrency { get; } - /// - /// The reseller of the lot. - /// Serialized Name: LotSummary.properties.reseller - /// + /// The reseller of the lot. public ConsumptionReseller Reseller { 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. - /// Serialized Name: ProxyResource.eTag - /// + /// eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not. public ETag? ETag { get; set; } } } diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionMarketplace.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionMarketplace.cs index d054f36c2aa2f..766b1bbd61db1 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionMarketplace.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionMarketplace.cs @@ -13,10 +13,7 @@ namespace Azure.ResourceManager.Consumption.Models { - /// - /// A marketplace resource. - /// Serialized Name: Marketplace - /// + /// A marketplace resource. public partial class ConsumptionMarketplace : ResourceData { /// Initializes a new instance of ConsumptionMarketplace. @@ -30,118 +27,34 @@ internal ConsumptionMarketplace() /// The name. /// The resourceType. /// The systemData. - /// - /// The id of the billing period resource that the usage belongs to. - /// Serialized Name: Marketplace.properties.billingPeriodId - /// - /// - /// The start of the date time range covered by the usage detail. - /// Serialized Name: Marketplace.properties.usageStart - /// - /// - /// The end of the date time range covered by the usage detail. - /// Serialized Name: Marketplace.properties.usageEnd - /// - /// - /// The marketplace resource rate. - /// Serialized Name: Marketplace.properties.resourceRate - /// - /// - /// The type of offer. - /// Serialized Name: Marketplace.properties.offerName - /// - /// - /// The name of resource group. - /// Serialized Name: Marketplace.properties.resourceGroup - /// - /// - /// Additional information. - /// Serialized Name: Marketplace.properties.additionalInfo - /// - /// - /// The order number. - /// Serialized Name: Marketplace.properties.orderNumber - /// - /// - /// The name of the resource instance that the usage is about. - /// Serialized Name: Marketplace.properties.instanceName - /// - /// - /// The uri of the resource instance that the usage is about. - /// Serialized Name: Marketplace.properties.instanceId - /// - /// - /// The ISO currency in which the meter is charged, for example, USD. - /// Serialized Name: Marketplace.properties.currency - /// - /// - /// The quantity of usage. - /// Serialized Name: Marketplace.properties.consumedQuantity - /// - /// - /// The unit of measure. - /// Serialized Name: Marketplace.properties.unitOfMeasure - /// - /// - /// The amount of cost before tax. - /// Serialized Name: Marketplace.properties.pretaxCost - /// - /// - /// The estimated usage is subject to change. - /// Serialized Name: Marketplace.properties.isEstimated - /// - /// - /// The meter id (GUID). - /// Serialized Name: Marketplace.properties.meterId - /// - /// - /// Subscription guid. - /// Serialized Name: Marketplace.properties.subscriptionGuid - /// - /// - /// Subscription name. - /// Serialized Name: Marketplace.properties.subscriptionName - /// - /// - /// Account name. - /// Serialized Name: Marketplace.properties.accountName - /// - /// - /// Department name. - /// Serialized Name: Marketplace.properties.departmentName - /// - /// - /// Consumed service name. - /// Serialized Name: Marketplace.properties.consumedService - /// - /// - /// The cost center of this department if it is a department and a costcenter exists - /// Serialized Name: Marketplace.properties.costCenter - /// - /// - /// Additional details of this usage item. By default this is not populated, unless it's specified in $expand. - /// Serialized Name: Marketplace.properties.additionalProperties - /// - /// - /// The name of publisher. - /// Serialized Name: Marketplace.properties.publisherName - /// - /// - /// The name of plan. - /// Serialized Name: Marketplace.properties.planName - /// - /// - /// Flag indicating whether this is a recurring charge or not. - /// Serialized Name: Marketplace.properties.isRecurringCharge - /// - /// - /// The etag for the resource. - /// Serialized Name: Resource.etag - /// - /// - /// Resource tags. - /// Serialized Name: Resource.tags - /// + /// The id of the billing period resource that the usage belongs to. + /// The start of the date time range covered by the usage detail. + /// The end of the date time range covered by the usage detail. + /// The marketplace resource rate. + /// The type of offer. + /// The name of resource group. + /// Additional information. + /// The order number. + /// The name of the resource instance that the usage is about. + /// The uri of the resource instance that the usage is about. + /// The ISO currency in which the meter is charged, for example, USD. + /// The quantity of usage. + /// The unit of measure. + /// The amount of cost before tax. + /// The estimated usage is subject to change. + /// The meter id (GUID). + /// Subscription guid. + /// Subscription name. + /// Account name. + /// Department name. + /// Consumed service name. + /// The cost center of this department if it is a department and a costcenter exists. + /// Additional details of this usage item. By default this is not populated, unless it's specified in $expand. + /// The name of publisher. + /// The name of plan. + /// Flag indicating whether this is a recurring charge or not. + /// The etag for the resource. + /// Resource tags. internal ConsumptionMarketplace(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string billingPeriodId, DateTimeOffset? usageStartOn, DateTimeOffset? usageEndOn, decimal? resourceRate, string offerName, string resourceGroup, string additionalInfo, string orderNumber, string instanceName, string instanceId, string currency, decimal? consumedQuantity, string unitOfMeasure, decimal? pretaxCost, bool? isEstimated, Guid? meterId, Guid? subscriptionGuid, string subscriptionName, string accountName, string departmentName, string consumedService, string costCenter, string additionalProperties, string publisherName, string planName, bool? isRecurringCharge, ETag? etag, IReadOnlyDictionary tags) : base(id, name, resourceType, systemData) { BillingPeriodId = billingPeriodId; @@ -174,145 +87,61 @@ internal ConsumptionMarketplace(ResourceIdentifier id, string name, ResourceType Tags = tags; } - /// - /// The id of the billing period resource that the usage belongs to. - /// Serialized Name: Marketplace.properties.billingPeriodId - /// + /// The id of the billing period resource that the usage belongs to. public string BillingPeriodId { get; } - /// - /// The start of the date time range covered by the usage detail. - /// Serialized Name: Marketplace.properties.usageStart - /// + /// The start of the date time range covered by the usage detail. public DateTimeOffset? UsageStartOn { get; } - /// - /// The end of the date time range covered by the usage detail. - /// Serialized Name: Marketplace.properties.usageEnd - /// + /// The end of the date time range covered by the usage detail. public DateTimeOffset? UsageEndOn { get; } - /// - /// The marketplace resource rate. - /// Serialized Name: Marketplace.properties.resourceRate - /// + /// The marketplace resource rate. public decimal? ResourceRate { get; } - /// - /// The type of offer. - /// Serialized Name: Marketplace.properties.offerName - /// + /// The type of offer. public string OfferName { get; } - /// - /// The name of resource group. - /// Serialized Name: Marketplace.properties.resourceGroup - /// + /// The name of resource group. public string ResourceGroup { get; } - /// - /// Additional information. - /// Serialized Name: Marketplace.properties.additionalInfo - /// + /// Additional information. public string AdditionalInfo { get; } - /// - /// The order number. - /// Serialized Name: Marketplace.properties.orderNumber - /// + /// The order number. public string OrderNumber { get; } - /// - /// The name of the resource instance that the usage is about. - /// Serialized Name: Marketplace.properties.instanceName - /// + /// The name of the resource instance that the usage is about. public string InstanceName { get; } - /// - /// The uri of the resource instance that the usage is about. - /// Serialized Name: Marketplace.properties.instanceId - /// + /// The uri of the resource instance that the usage is about. public string InstanceId { get; } - /// - /// The ISO currency in which the meter is charged, for example, USD. - /// Serialized Name: Marketplace.properties.currency - /// + /// The ISO currency in which the meter is charged, for example, USD. public string Currency { get; } - /// - /// The quantity of usage. - /// Serialized Name: Marketplace.properties.consumedQuantity - /// + /// The quantity of usage. public decimal? ConsumedQuantity { get; } - /// - /// The unit of measure. - /// Serialized Name: Marketplace.properties.unitOfMeasure - /// + /// The unit of measure. public string UnitOfMeasure { get; } - /// - /// The amount of cost before tax. - /// Serialized Name: Marketplace.properties.pretaxCost - /// + /// The amount of cost before tax. public decimal? PretaxCost { get; } - /// - /// The estimated usage is subject to change. - /// Serialized Name: Marketplace.properties.isEstimated - /// + /// The estimated usage is subject to change. public bool? IsEstimated { get; } - /// - /// The meter id (GUID). - /// Serialized Name: Marketplace.properties.meterId - /// + /// The meter id (GUID). public Guid? MeterId { get; } - /// - /// Subscription guid. - /// Serialized Name: Marketplace.properties.subscriptionGuid - /// + /// Subscription guid. public Guid? SubscriptionGuid { get; } - /// - /// Subscription name. - /// Serialized Name: Marketplace.properties.subscriptionName - /// + /// Subscription name. public string SubscriptionName { get; } - /// - /// Account name. - /// Serialized Name: Marketplace.properties.accountName - /// + /// Account name. public string AccountName { get; } - /// - /// Department name. - /// Serialized Name: Marketplace.properties.departmentName - /// + /// Department name. public string DepartmentName { get; } - /// - /// Consumed service name. - /// Serialized Name: Marketplace.properties.consumedService - /// + /// Consumed service name. public string ConsumedService { get; } - /// - /// The cost center of this department if it is a department and a costcenter exists - /// Serialized Name: Marketplace.properties.costCenter - /// + /// The cost center of this department if it is a department and a costcenter exists. public string CostCenter { get; } - /// - /// Additional details of this usage item. By default this is not populated, unless it's specified in $expand. - /// Serialized Name: Marketplace.properties.additionalProperties - /// + /// Additional details of this usage item. By default this is not populated, unless it's specified in $expand. public string AdditionalProperties { get; } - /// - /// The name of publisher. - /// Serialized Name: Marketplace.properties.publisherName - /// + /// The name of publisher. public string PublisherName { get; } - /// - /// The name of plan. - /// Serialized Name: Marketplace.properties.planName - /// + /// The name of plan. public string PlanName { get; } - /// - /// Flag indicating whether this is a recurring charge or not. - /// Serialized Name: Marketplace.properties.isRecurringCharge - /// + /// Flag indicating whether this is a recurring charge or not. public bool? IsRecurringCharge { get; } - /// - /// The etag for the resource. - /// Serialized Name: Resource.etag - /// + /// The etag for the resource. public ETag? ETag { get; } - /// - /// Resource tags. - /// Serialized Name: Resource.tags - /// + /// Resource tags. public IReadOnlyDictionary Tags { get; } } } diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionMeterDetails.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionMeterDetails.cs index 317186d45b3b2..ecb71ad06fe81 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionMeterDetails.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionMeterDetails.cs @@ -7,10 +7,7 @@ namespace Azure.ResourceManager.Consumption.Models { - /// - /// The properties of the meter detail. - /// Serialized Name: MeterDetails - /// + /// The properties of the meter detail. public partial class ConsumptionMeterDetails { /// Initializes a new instance of ConsumptionMeterDetails. @@ -19,42 +16,15 @@ internal ConsumptionMeterDetails() } /// Initializes a new instance of ConsumptionMeterDetails. - /// - /// The name of the meter, within the given meter category - /// Serialized Name: MeterDetails.meterName - /// - /// - /// The category of the meter, for example, 'Cloud services', 'Networking', etc.. - /// Serialized Name: MeterDetails.meterCategory - /// - /// - /// The subcategory of the meter, for example, 'A6 Cloud services', 'ExpressRoute (IXP)', etc.. - /// Serialized Name: MeterDetails.meterSubCategory - /// - /// - /// The unit in which the meter consumption is charged, for example, 'Hours', 'GB', etc. - /// Serialized Name: MeterDetails.unit - /// - /// - /// The location in which the Azure service is available. - /// Serialized Name: MeterDetails.meterLocation - /// - /// - /// The total included quantity associated with the offer. - /// Serialized Name: MeterDetails.totalIncludedQuantity - /// - /// - /// The pretax listing price. - /// Serialized Name: MeterDetails.pretaxStandardRate - /// - /// - /// The name of the service. - /// Serialized Name: MeterDetails.serviceName - /// - /// - /// The service tier. - /// Serialized Name: MeterDetails.serviceTier - /// + /// The name of the meter, within the given meter category. + /// The category of the meter, for example, 'Cloud services', 'Networking', etc.. + /// The subcategory of the meter, for example, 'A6 Cloud services', 'ExpressRoute (IXP)', etc.. + /// The unit in which the meter consumption is charged, for example, 'Hours', 'GB', etc. + /// The location in which the Azure service is available. + /// The total included quantity associated with the offer. + /// The pretax listing price. + /// The name of the service. + /// The service tier. internal ConsumptionMeterDetails(string meterName, string meterCategory, string meterSubCategory, string unit, string meterLocation, decimal? totalIncludedQuantity, decimal? pretaxStandardRate, string serviceName, string serviceTier) { MeterName = meterName; @@ -68,50 +38,23 @@ internal ConsumptionMeterDetails(string meterName, string meterCategory, string ServiceTier = serviceTier; } - /// - /// The name of the meter, within the given meter category - /// Serialized Name: MeterDetails.meterName - /// + /// The name of the meter, within the given meter category. public string MeterName { get; } - /// - /// The category of the meter, for example, 'Cloud services', 'Networking', etc.. - /// Serialized Name: MeterDetails.meterCategory - /// + /// The category of the meter, for example, 'Cloud services', 'Networking', etc.. public string MeterCategory { get; } - /// - /// The subcategory of the meter, for example, 'A6 Cloud services', 'ExpressRoute (IXP)', etc.. - /// Serialized Name: MeterDetails.meterSubCategory - /// + /// The subcategory of the meter, for example, 'A6 Cloud services', 'ExpressRoute (IXP)', etc.. public string MeterSubCategory { get; } - /// - /// The unit in which the meter consumption is charged, for example, 'Hours', 'GB', etc. - /// Serialized Name: MeterDetails.unit - /// + /// The unit in which the meter consumption is charged, for example, 'Hours', 'GB', etc. public string Unit { get; } - /// - /// The location in which the Azure service is available. - /// Serialized Name: MeterDetails.meterLocation - /// + /// The location in which the Azure service is available. public string MeterLocation { get; } - /// - /// The total included quantity associated with the offer. - /// Serialized Name: MeterDetails.totalIncludedQuantity - /// + /// The total included quantity associated with the offer. public decimal? TotalIncludedQuantity { get; } - /// - /// The pretax listing price. - /// Serialized Name: MeterDetails.pretaxStandardRate - /// + /// The pretax listing price. public decimal? PretaxStandardRate { get; } - /// - /// The name of the service. - /// Serialized Name: MeterDetails.serviceName - /// + /// The name of the service. public string ServiceName { get; } - /// - /// The service tier. - /// Serialized Name: MeterDetails.serviceTier - /// + /// The service tier. public string ServiceTier { get; } } } diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionMeterDetailsInfo.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionMeterDetailsInfo.cs index 5b246b0b29311..e3891d5d216d5 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionMeterDetailsInfo.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionMeterDetailsInfo.cs @@ -7,10 +7,7 @@ namespace Azure.ResourceManager.Consumption.Models { - /// - /// The properties of the meter detail. - /// Serialized Name: MeterDetailsResponse - /// + /// The properties of the meter detail. public partial class ConsumptionMeterDetailsInfo { /// Initializes a new instance of ConsumptionMeterDetailsInfo. @@ -19,26 +16,11 @@ internal ConsumptionMeterDetailsInfo() } /// Initializes a new instance of ConsumptionMeterDetailsInfo. - /// - /// The name of the meter, within the given meter category - /// Serialized Name: MeterDetailsResponse.meterName - /// - /// - /// The category of the meter, for example, 'Cloud services', 'Networking', etc.. - /// Serialized Name: MeterDetailsResponse.meterCategory - /// - /// - /// The subcategory of the meter, for example, 'A6 Cloud services', 'ExpressRoute (IXP)', etc.. - /// Serialized Name: MeterDetailsResponse.meterSubCategory - /// - /// - /// The unit in which the meter consumption is charged, for example, 'Hours', 'GB', etc. - /// Serialized Name: MeterDetailsResponse.unitOfMeasure - /// - /// - /// The service family. - /// Serialized Name: MeterDetailsResponse.serviceFamily - /// + /// The name of the meter, within the given meter category. + /// The category of the meter, for example, 'Cloud services', 'Networking', etc.. + /// The subcategory of the meter, for example, 'A6 Cloud services', 'ExpressRoute (IXP)', etc.. + /// The unit in which the meter consumption is charged, for example, 'Hours', 'GB', etc. + /// The service family. internal ConsumptionMeterDetailsInfo(string meterName, string meterCategory, string meterSubCategory, string unitOfMeasure, string serviceFamily) { MeterName = meterName; @@ -48,30 +30,15 @@ internal ConsumptionMeterDetailsInfo(string meterName, string meterCategory, str ServiceFamily = serviceFamily; } - /// - /// The name of the meter, within the given meter category - /// Serialized Name: MeterDetailsResponse.meterName - /// + /// The name of the meter, within the given meter category. public string MeterName { get; } - /// - /// The category of the meter, for example, 'Cloud services', 'Networking', etc.. - /// Serialized Name: MeterDetailsResponse.meterCategory - /// + /// The category of the meter, for example, 'Cloud services', 'Networking', etc.. public string MeterCategory { get; } - /// - /// The subcategory of the meter, for example, 'A6 Cloud services', 'ExpressRoute (IXP)', etc.. - /// Serialized Name: MeterDetailsResponse.meterSubCategory - /// + /// The subcategory of the meter, for example, 'A6 Cloud services', 'ExpressRoute (IXP)', etc.. public string MeterSubCategory { get; } - /// - /// The unit in which the meter consumption is charged, for example, 'Hours', 'GB', etc. - /// Serialized Name: MeterDetailsResponse.unitOfMeasure - /// + /// The unit in which the meter consumption is charged, for example, 'Hours', 'GB', etc. public string UnitOfMeasure { get; } - /// - /// The service family. - /// Serialized Name: MeterDetailsResponse.serviceFamily - /// + /// The service family. public string ServiceFamily { get; } } } diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionMetricType.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionMetricType.cs index 0a30c174dd267..40b9fa107abc5 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionMetricType.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionMetricType.cs @@ -10,10 +10,7 @@ namespace Azure.ResourceManager.Consumption.Models { - /// - /// The ConsumptionMetricType. - /// Serialized Name: Metrictype - /// + /// The ConsumptionMetricType. public readonly partial struct ConsumptionMetricType : IEquatable { private readonly string _value; @@ -29,20 +26,11 @@ public ConsumptionMetricType(string value) private const string AmortizedCostMetricTypeValue = "amortizedcost"; private const string UsageMetricTypeValue = "usage"; - /// - /// Actual cost data. - /// Serialized Name: Metrictype.actualcost - /// + /// Actual cost data. public static ConsumptionMetricType ActualCostMetricType { get; } = new ConsumptionMetricType(ActualCostMetricTypeValue); - /// - /// Amortized cost data. - /// Serialized Name: Metrictype.amortizedcost - /// + /// Amortized cost data. public static ConsumptionMetricType AmortizedCostMetricType { get; } = new ConsumptionMetricType(AmortizedCostMetricTypeValue); - /// - /// Usage data. - /// Serialized Name: Metrictype.usage - /// + /// Usage data. public static ConsumptionMetricType UsageMetricType { get; } = new ConsumptionMetricType(UsageMetricTypeValue); /// Determines if two values are the same. public static bool operator ==(ConsumptionMetricType left, ConsumptionMetricType right) => left.Equals(right); diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionModernChargeSummary.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionModernChargeSummary.cs index d27774efd0fd3..2fbc83231c3f4 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionModernChargeSummary.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionModernChargeSummary.cs @@ -11,10 +11,7 @@ namespace Azure.ResourceManager.Consumption.Models { - /// - /// Modern charge summary. - /// Serialized Name: ModernChargeSummary - /// + /// Modern charge summary. public partial class ConsumptionModernChargeSummary : ConsumptionChargeSummary { /// Initializes a new instance of ConsumptionModernChargeSummary. @@ -28,58 +25,19 @@ public ConsumptionModernChargeSummary() /// The name. /// The resourceType. /// The systemData. - /// - /// Specifies the kind of charge summary. - /// Serialized Name: ChargeSummary.kind - /// - /// - /// 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. - /// Serialized Name: ProxyResource.eTag - /// - /// - /// The id of the billing period resource that the charge belongs to. - /// Serialized Name: ModernChargeSummary.properties.billingPeriodId - /// - /// - /// Usage start date. - /// Serialized Name: ModernChargeSummary.properties.usageStart - /// - /// - /// Usage end date. - /// Serialized Name: ModernChargeSummary.properties.usageEnd - /// - /// - /// Azure Charges. - /// Serialized Name: ModernChargeSummary.properties.azureCharges - /// - /// - /// Charges Billed separately. - /// Serialized Name: ModernChargeSummary.properties.chargesBilledSeparately - /// - /// - /// Marketplace Charges. - /// Serialized Name: ModernChargeSummary.properties.marketplaceCharges - /// - /// - /// Billing Account Id - /// Serialized Name: ModernChargeSummary.properties.billingAccountId - /// - /// - /// Billing Profile Id - /// Serialized Name: ModernChargeSummary.properties.billingProfileId - /// - /// - /// Invoice Section Id - /// Serialized Name: ModernChargeSummary.properties.invoiceSectionId - /// - /// - /// Customer Id - /// Serialized Name: ModernChargeSummary.properties.customerId - /// - /// - /// Is charge Invoiced - /// Serialized Name: ModernChargeSummary.properties.isInvoiced - /// + /// Specifies the kind of charge summary. + /// 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. + /// The id of the billing period resource that the charge belongs to. + /// Usage start date. + /// Usage end date. + /// Azure Charges. + /// Charges Billed separately. + /// Marketplace Charges. + /// Billing Account Id. + /// Billing Profile Id. + /// Invoice Section Id. + /// Customer Id. + /// Is charge Invoiced. internal ConsumptionModernChargeSummary(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, ChargeSummaryKind kind, ETag? etag, string billingPeriodId, string usageStart, string usageEnd, ConsumptionAmount azureCharges, ConsumptionAmount chargesBilledSeparately, ConsumptionAmount marketplaceCharges, string billingAccountId, string billingProfileId, string invoiceSectionId, string customerId, bool? isInvoiced) : base(id, name, resourceType, systemData, kind, etag) { BillingPeriodId = billingPeriodId; @@ -96,60 +54,27 @@ internal ConsumptionModernChargeSummary(ResourceIdentifier id, string name, Reso Kind = kind; } - /// - /// The id of the billing period resource that the charge belongs to. - /// Serialized Name: ModernChargeSummary.properties.billingPeriodId - /// + /// The id of the billing period resource that the charge belongs to. public string BillingPeriodId { get; } - /// - /// Usage start date. - /// Serialized Name: ModernChargeSummary.properties.usageStart - /// + /// Usage start date. public string UsageStart { get; } - /// - /// Usage end date. - /// Serialized Name: ModernChargeSummary.properties.usageEnd - /// + /// Usage end date. public string UsageEnd { get; } - /// - /// Azure Charges. - /// Serialized Name: ModernChargeSummary.properties.azureCharges - /// + /// Azure Charges. public ConsumptionAmount AzureCharges { get; } - /// - /// Charges Billed separately. - /// Serialized Name: ModernChargeSummary.properties.chargesBilledSeparately - /// + /// Charges Billed separately. public ConsumptionAmount ChargesBilledSeparately { get; } - /// - /// Marketplace Charges. - /// Serialized Name: ModernChargeSummary.properties.marketplaceCharges - /// + /// Marketplace Charges. public ConsumptionAmount MarketplaceCharges { get; } - /// - /// Billing Account Id - /// Serialized Name: ModernChargeSummary.properties.billingAccountId - /// + /// Billing Account Id. public string BillingAccountId { get; } - /// - /// Billing Profile Id - /// Serialized Name: ModernChargeSummary.properties.billingProfileId - /// + /// Billing Profile Id. public string BillingProfileId { get; } - /// - /// Invoice Section Id - /// Serialized Name: ModernChargeSummary.properties.invoiceSectionId - /// + /// Invoice Section Id. public string InvoiceSectionId { get; } - /// - /// Customer Id - /// Serialized Name: ModernChargeSummary.properties.customerId - /// + /// Customer Id. public string CustomerId { get; } - /// - /// Is charge Invoiced - /// Serialized Name: ModernChargeSummary.properties.isInvoiced - /// + /// Is charge Invoiced. public bool? IsInvoiced { get; } } } diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionModernReservationRecommendation.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionModernReservationRecommendation.cs index a973209aa2bbc..cd8e43421a383 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionModernReservationRecommendation.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionModernReservationRecommendation.cs @@ -13,10 +13,7 @@ namespace Azure.ResourceManager.Consumption.Models { - /// - /// Modern reservation recommendation. - /// Serialized Name: ModernReservationRecommendation - /// + /// Modern reservation recommendation. public partial class ConsumptionModernReservationRecommendation : ConsumptionReservationRecommendation { /// Initializes a new instance of ConsumptionModernReservationRecommendation. @@ -31,90 +28,27 @@ internal ConsumptionModernReservationRecommendation() /// The name. /// The resourceType. /// The systemData. - /// - /// Specifies the kind of reservation recommendation. - /// Serialized Name: ReservationRecommendation.kind - /// - /// - /// The etag for the resource. - /// Serialized Name: Resource.etag - /// - /// - /// Resource tags. - /// Serialized Name: Resource.tags - /// - /// - /// Resource location - /// Serialized Name: ResourceAttributes.location - /// - /// - /// Resource sku - /// Serialized Name: ResourceAttributes.sku - /// - /// - /// Resource Location. - /// Serialized Name: ModernReservationRecommendation.properties.location - /// - /// - /// The number of days of usage to look back for recommendation. - /// Serialized Name: ModernReservationRecommendation.properties.lookBackPeriod - /// - /// - /// The instance Flexibility Ratio. - /// Serialized Name: ModernReservationRecommendation.properties.instanceFlexibilityRatio - /// - /// - /// The instance Flexibility Group. - /// Serialized Name: ModernReservationRecommendation.properties.instanceFlexibilityGroup - /// - /// - /// The normalized Size. - /// Serialized Name: ModernReservationRecommendation.properties.normalizedSize - /// - /// - /// The recommended Quantity Normalized. - /// Serialized Name: ModernReservationRecommendation.properties.recommendedQuantityNormalized - /// - /// - /// The meter id (GUID) - /// Serialized Name: ModernReservationRecommendation.properties.meterId - /// - /// - /// RI recommendations in one or three year terms. - /// Serialized Name: ModernReservationRecommendation.properties.term - /// - /// - /// The total amount of cost without reserved instances. - /// Serialized Name: ModernReservationRecommendation.properties.costWithNoReservedInstances - /// - /// - /// Recommended quality for reserved instances. - /// Serialized Name: ModernReservationRecommendation.properties.recommendedQuantity - /// - /// - /// The total amount of cost with reserved instances. - /// Serialized Name: ModernReservationRecommendation.properties.totalCostWithReservedInstances - /// - /// - /// Total estimated savings with reserved instances. - /// Serialized Name: ModernReservationRecommendation.properties.netSavings - /// - /// - /// The usage date for looking back. - /// Serialized Name: ModernReservationRecommendation.properties.firstUsageDate - /// - /// - /// Shared or single recommendation. - /// Serialized Name: ModernReservationRecommendation.properties.scope - /// - /// - /// List of sku properties - /// Serialized Name: ModernReservationRecommendation.properties.skuProperties - /// - /// - /// This is the ARM Sku name. - /// Serialized Name: ModernReservationRecommendation.properties.skuName - /// + /// Specifies the kind of reservation recommendation. + /// The etag for the resource. + /// Resource tags. + /// Resource location. + /// Resource sku. + /// Resource Location. + /// The number of days of usage to look back for recommendation. + /// The instance Flexibility Ratio. + /// The instance Flexibility Group. + /// The normalized Size. + /// The recommended Quantity Normalized. + /// The meter id (GUID). + /// RI recommendations in one or three year terms. + /// The total amount of cost without reserved instances. + /// Recommended quality for reserved instances. + /// The total amount of cost with reserved instances. + /// Total estimated savings with reserved instances. + /// The usage date for looking back. + /// Shared or single recommendation. + /// List of sku properties. + /// This is the ARM Sku name. internal ConsumptionModernReservationRecommendation(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, ReservationRecommendationKind kind, ETag? etag, IReadOnlyDictionary tags, AzureLocation? location, string sku, string locationPropertiesLocation, int? lookBackPeriod, float? instanceFlexibilityRatio, string instanceFlexibilityGroup, string normalizedSize, float? recommendedQuantityNormalized, Guid? meterId, string term, ConsumptionAmount costWithNoReservedInstances, decimal? recommendedQuantity, ConsumptionAmount totalCostWithReservedInstances, ConsumptionAmount netSavings, DateTimeOffset? firstUsageOn, string scope, IReadOnlyList skuProperties, string skuName) : base(id, name, resourceType, systemData, kind, etag, tags, location, sku) { LocationPropertiesLocation = locationPropertiesLocation; @@ -136,85 +70,37 @@ internal ConsumptionModernReservationRecommendation(ResourceIdentifier id, strin Kind = kind; } - /// - /// Resource Location. - /// Serialized Name: ModernReservationRecommendation.properties.location - /// + /// Resource Location. public string LocationPropertiesLocation { get; } - /// - /// The number of days of usage to look back for recommendation. - /// Serialized Name: ModernReservationRecommendation.properties.lookBackPeriod - /// + /// The number of days of usage to look back for recommendation. public int? LookBackPeriod { get; } - /// - /// The instance Flexibility Ratio. - /// Serialized Name: ModernReservationRecommendation.properties.instanceFlexibilityRatio - /// + /// The instance Flexibility Ratio. public float? InstanceFlexibilityRatio { get; } - /// - /// The instance Flexibility Group. - /// Serialized Name: ModernReservationRecommendation.properties.instanceFlexibilityGroup - /// + /// The instance Flexibility Group. public string InstanceFlexibilityGroup { get; } - /// - /// The normalized Size. - /// Serialized Name: ModernReservationRecommendation.properties.normalizedSize - /// + /// The normalized Size. public string NormalizedSize { get; } - /// - /// The recommended Quantity Normalized. - /// Serialized Name: ModernReservationRecommendation.properties.recommendedQuantityNormalized - /// + /// The recommended Quantity Normalized. public float? RecommendedQuantityNormalized { get; } - /// - /// The meter id (GUID) - /// Serialized Name: ModernReservationRecommendation.properties.meterId - /// + /// The meter id (GUID). public Guid? MeterId { get; } - /// - /// RI recommendations in one or three year terms. - /// Serialized Name: ModernReservationRecommendation.properties.term - /// + /// RI recommendations in one or three year terms. public string Term { get; } - /// - /// The total amount of cost without reserved instances. - /// Serialized Name: ModernReservationRecommendation.properties.costWithNoReservedInstances - /// + /// The total amount of cost without reserved instances. public ConsumptionAmount CostWithNoReservedInstances { get; } - /// - /// Recommended quality for reserved instances. - /// Serialized Name: ModernReservationRecommendation.properties.recommendedQuantity - /// + /// Recommended quality for reserved instances. public decimal? RecommendedQuantity { get; } - /// - /// The total amount of cost with reserved instances. - /// Serialized Name: ModernReservationRecommendation.properties.totalCostWithReservedInstances - /// + /// The total amount of cost with reserved instances. public ConsumptionAmount TotalCostWithReservedInstances { get; } - /// - /// Total estimated savings with reserved instances. - /// Serialized Name: ModernReservationRecommendation.properties.netSavings - /// + /// Total estimated savings with reserved instances. public ConsumptionAmount NetSavings { get; } - /// - /// The usage date for looking back. - /// Serialized Name: ModernReservationRecommendation.properties.firstUsageDate - /// + /// The usage date for looking back. public DateTimeOffset? FirstUsageOn { get; } - /// - /// Shared or single recommendation. - /// Serialized Name: ModernReservationRecommendation.properties.scope - /// + /// Shared or single recommendation. public string Scope { get; } - /// - /// List of sku properties - /// Serialized Name: ModernReservationRecommendation.properties.skuProperties - /// + /// List of sku properties. public IReadOnlyList SkuProperties { get; } - /// - /// This is the ARM Sku name. - /// Serialized Name: ModernReservationRecommendation.properties.skuName - /// + /// This is the ARM Sku name. public string SkuName { get; } } } diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionModernReservationTransaction.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionModernReservationTransaction.cs index b6c2c8cf9c39c..62ace96d641a4 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionModernReservationTransaction.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionModernReservationTransaction.cs @@ -12,10 +12,7 @@ namespace Azure.ResourceManager.Consumption.Models { - /// - /// Modern Reservation transaction resource. - /// Serialized Name: ModernReservationTransaction - /// + /// Modern Reservation transaction resource. public partial class ConsumptionModernReservationTransaction : ResourceData { /// Initializes a new instance of ConsumptionModernReservationTransaction. @@ -29,90 +26,27 @@ internal ConsumptionModernReservationTransaction() /// The name. /// The resourceType. /// The systemData. - /// - /// The charge of the transaction. - /// Serialized Name: ModernReservationTransaction.properties.amount - /// - /// - /// This is the ARM Sku name. It can be used to join with the serviceType field in additional info in usage records. - /// Serialized Name: ModernReservationTransaction.properties.armSkuName - /// - /// - /// The billing frequency, which can be either one-time or recurring. - /// Serialized Name: ModernReservationTransaction.properties.billingFrequency - /// - /// - /// Billing profile Id. - /// Serialized Name: ModernReservationTransaction.properties.billingProfileId - /// - /// - /// Billing profile name. - /// Serialized Name: ModernReservationTransaction.properties.billingProfileName - /// - /// - /// The ISO currency in which the transaction is charged, for example, USD. - /// Serialized Name: ModernReservationTransaction.properties.currency - /// - /// - /// The description of the transaction. - /// Serialized Name: ModernReservationTransaction.properties.description - /// - /// - /// The date of the transaction - /// Serialized Name: ModernReservationTransaction.properties.eventDate - /// - /// - /// The type of the transaction (Purchase, Cancel or Refund). - /// Serialized Name: ModernReservationTransaction.properties.eventType - /// - /// - /// Invoice Number - /// Serialized Name: ModernReservationTransaction.properties.invoice - /// - /// - /// Invoice Id as on the invoice where the specific transaction appears. - /// Serialized Name: ModernReservationTransaction.properties.invoiceId - /// - /// - /// Invoice Section Id - /// Serialized Name: ModernReservationTransaction.properties.invoiceSectionId - /// - /// - /// Invoice Section Name. - /// Serialized Name: ModernReservationTransaction.properties.invoiceSectionName - /// - /// - /// The subscription guid that makes the transaction. - /// Serialized Name: ModernReservationTransaction.properties.purchasingSubscriptionGuid - /// - /// - /// The subscription name that makes the transaction. - /// Serialized Name: ModernReservationTransaction.properties.purchasingSubscriptionName - /// - /// - /// The quantity of the transaction. - /// Serialized Name: ModernReservationTransaction.properties.quantity - /// - /// - /// The region of the transaction. - /// Serialized Name: ModernReservationTransaction.properties.region - /// - /// - /// The reservation order ID is the identifier for a reservation purchase. Each reservation order ID represents a single purchase transaction. A reservation order contains reservations. The reservation order specifies the VM size and region for the reservations. - /// Serialized Name: ModernReservationTransaction.properties.reservationOrderId - /// - /// - /// The name of the reservation order. - /// Serialized Name: ModernReservationTransaction.properties.reservationOrderName - /// - /// - /// This is the term of the transaction. - /// Serialized Name: ModernReservationTransaction.properties.term - /// - /// - /// Resource tags. - /// Serialized Name: ReservationTransactionResource.tags - /// + /// The charge of the transaction. + /// This is the ARM Sku name. It can be used to join with the serviceType field in additional info in usage records. + /// The billing frequency, which can be either one-time or recurring. + /// Billing profile Id. + /// Billing profile name. + /// The ISO currency in which the transaction is charged, for example, USD. + /// The description of the transaction. + /// The date of the transaction. + /// The type of the transaction (Purchase, Cancel or Refund). + /// Invoice Number. + /// Invoice Id as on the invoice where the specific transaction appears. + /// Invoice Section Id. + /// Invoice Section Name. + /// The subscription guid that makes the transaction. + /// The subscription name that makes the transaction. + /// The quantity of the transaction. + /// The region of the transaction. + /// The reservation order ID is the identifier for a reservation purchase. Each reservation order ID represents a single purchase transaction. A reservation order contains reservations. The reservation order specifies the VM size and region for the reservations. + /// The name of the reservation order. + /// This is the term of the transaction. + /// Resource tags. internal ConsumptionModernReservationTransaction(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, decimal? amount, string armSkuName, string billingFrequency, ResourceIdentifier billingProfileId, string billingProfileName, string currency, string description, DateTimeOffset? transactOn, string eventType, string invoice, ResourceIdentifier invoiceId, ResourceIdentifier invoiceSectionId, string invoiceSectionName, Guid? purchasingSubscriptionGuid, string purchasingSubscriptionName, decimal? quantity, string region, string reservationOrderId, string reservationOrderName, string term, IReadOnlyList tags) : base(id, name, resourceType, systemData) { Amount = amount; @@ -138,110 +72,47 @@ internal ConsumptionModernReservationTransaction(ResourceIdentifier id, string n Tags = tags; } - /// - /// The charge of the transaction. - /// Serialized Name: ModernReservationTransaction.properties.amount - /// + /// The charge of the transaction. public decimal? Amount { get; } - /// - /// This is the ARM Sku name. It can be used to join with the serviceType field in additional info in usage records. - /// Serialized Name: ModernReservationTransaction.properties.armSkuName - /// + /// This is the ARM Sku name. It can be used to join with the serviceType field in additional info in usage records. public string ArmSkuName { get; } - /// - /// The billing frequency, which can be either one-time or recurring. - /// Serialized Name: ModernReservationTransaction.properties.billingFrequency - /// + /// The billing frequency, which can be either one-time or recurring. public string BillingFrequency { get; } - /// - /// Billing profile Id. - /// Serialized Name: ModernReservationTransaction.properties.billingProfileId - /// + /// Billing profile Id. public ResourceIdentifier BillingProfileId { get; } - /// - /// Billing profile name. - /// Serialized Name: ModernReservationTransaction.properties.billingProfileName - /// + /// Billing profile name. public string BillingProfileName { get; } - /// - /// The ISO currency in which the transaction is charged, for example, USD. - /// Serialized Name: ModernReservationTransaction.properties.currency - /// + /// The ISO currency in which the transaction is charged, for example, USD. public string Currency { get; } - /// - /// The description of the transaction. - /// Serialized Name: ModernReservationTransaction.properties.description - /// + /// The description of the transaction. public string Description { get; } - /// - /// The date of the transaction - /// Serialized Name: ModernReservationTransaction.properties.eventDate - /// + /// The date of the transaction. public DateTimeOffset? TransactOn { get; } - /// - /// The type of the transaction (Purchase, Cancel or Refund). - /// Serialized Name: ModernReservationTransaction.properties.eventType - /// + /// The type of the transaction (Purchase, Cancel or Refund). public string EventType { get; } - /// - /// Invoice Number - /// Serialized Name: ModernReservationTransaction.properties.invoice - /// + /// Invoice Number. public string Invoice { get; } - /// - /// Invoice Id as on the invoice where the specific transaction appears. - /// Serialized Name: ModernReservationTransaction.properties.invoiceId - /// + /// Invoice Id as on the invoice where the specific transaction appears. public ResourceIdentifier InvoiceId { get; } - /// - /// Invoice Section Id - /// Serialized Name: ModernReservationTransaction.properties.invoiceSectionId - /// + /// Invoice Section Id. public ResourceIdentifier InvoiceSectionId { get; } - /// - /// Invoice Section Name. - /// Serialized Name: ModernReservationTransaction.properties.invoiceSectionName - /// + /// Invoice Section Name. public string InvoiceSectionName { get; } - /// - /// The subscription guid that makes the transaction. - /// Serialized Name: ModernReservationTransaction.properties.purchasingSubscriptionGuid - /// + /// The subscription guid that makes the transaction. public Guid? PurchasingSubscriptionGuid { get; } - /// - /// The subscription name that makes the transaction. - /// Serialized Name: ModernReservationTransaction.properties.purchasingSubscriptionName - /// + /// The subscription name that makes the transaction. public string PurchasingSubscriptionName { get; } - /// - /// The quantity of the transaction. - /// Serialized Name: ModernReservationTransaction.properties.quantity - /// + /// The quantity of the transaction. public decimal? Quantity { get; } - /// - /// The region of the transaction. - /// Serialized Name: ModernReservationTransaction.properties.region - /// + /// The region of the transaction. public string Region { get; } - /// - /// The reservation order ID is the identifier for a reservation purchase. Each reservation order ID represents a single purchase transaction. A reservation order contains reservations. The reservation order specifies the VM size and region for the reservations. - /// Serialized Name: ModernReservationTransaction.properties.reservationOrderId - /// + /// The reservation order ID is the identifier for a reservation purchase. Each reservation order ID represents a single purchase transaction. A reservation order contains reservations. The reservation order specifies the VM size and region for the reservations. public string ReservationOrderId { get; } - /// - /// The name of the reservation order. - /// Serialized Name: ModernReservationTransaction.properties.reservationOrderName - /// + /// The name of the reservation order. public string ReservationOrderName { get; } - /// - /// This is the term of the transaction. - /// Serialized Name: ModernReservationTransaction.properties.term - /// + /// This is the term of the transaction. public string Term { get; } - /// - /// Resource tags. - /// Serialized Name: ReservationTransactionResource.tags - /// + /// Resource tags. public IReadOnlyList Tags { get; } } } diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionModernUsageDetail.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionModernUsageDetail.cs index f1a18eb051ce1..9aabfce577ccb 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionModernUsageDetail.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionModernUsageDetail.cs @@ -13,10 +13,7 @@ namespace Azure.ResourceManager.Consumption.Models { - /// - /// Modern usage detail. - /// Serialized Name: ModernUsageDetail - /// + /// Modern usage detail. public partial class ConsumptionModernUsageDetail : ConsumptionUsageDetail { /// Initializes a new instance of ConsumptionModernUsageDetail. @@ -30,306 +27,81 @@ internal ConsumptionModernUsageDetail() /// The name. /// The resourceType. /// The systemData. - /// - /// Specifies the kind of usage details. - /// Serialized Name: UsageDetail.kind - /// - /// - /// The etag for the resource. - /// Serialized Name: Resource.etag - /// - /// - /// Resource tags. - /// Serialized Name: Resource.tags - /// - /// - /// Billing Account identifier. - /// Serialized Name: ModernUsageDetail.properties.billingAccountId - /// - /// - /// Effective Price that's charged for the usage. - /// Serialized Name: ModernUsageDetail.properties.effectivePrice - /// - /// - /// Identifier that indicates how the meter is priced - /// Serialized Name: ModernUsageDetail.properties.pricingModel - /// - /// - /// Name of the Billing Account. - /// Serialized Name: ModernUsageDetail.properties.billingAccountName - /// - /// - /// Billing Period Start Date as in the invoice. - /// Serialized Name: ModernUsageDetail.properties.billingPeriodStartDate - /// - /// - /// Billing Period End Date as in the invoice. - /// Serialized Name: ModernUsageDetail.properties.billingPeriodEndDate - /// - /// - /// Identifier for the billing profile that groups costs across invoices in the a singular billing currency across across the customers who have onboarded the Microsoft customer agreement and the customers in CSP who have made entitlement purchases like SaaS, Marketplace, RI, etc. - /// Serialized Name: ModernUsageDetail.properties.billingProfileId - /// - /// - /// Name of the billing profile that groups costs across invoices in the a singular billing currency across across the customers who have onboarded the Microsoft customer agreement and the customers in CSP who have made entitlement purchases like SaaS, Marketplace, RI, etc. - /// Serialized Name: ModernUsageDetail.properties.billingProfileName - /// - /// - /// Unique Microsoft generated identifier for the Azure Subscription. - /// Serialized Name: ModernUsageDetail.properties.subscriptionGuid - /// - /// - /// Name of the Azure Subscription. - /// Serialized Name: ModernUsageDetail.properties.subscriptionName - /// - /// - /// Date for the usage record. - /// Serialized Name: ModernUsageDetail.properties.date - /// - /// - /// Name of the product that has accrued charges by consumption or purchase as listed in the invoice. Not available for Marketplace. - /// Serialized Name: ModernUsageDetail.properties.product - /// - /// - /// The meter id (GUID). Not available for marketplace. For reserved instance this represents the primary meter for which the reservation was purchased. For the actual VM Size for which the reservation is purchased see productOrderName. - /// Serialized Name: ModernUsageDetail.properties.meterId - /// - /// - /// Identifies the name of the meter against which consumption is measured. - /// Serialized Name: ModernUsageDetail.properties.meterName - /// - /// - /// Identifies the location of the datacenter for certain services that are priced based on datacenter location. - /// Serialized Name: ModernUsageDetail.properties.meterRegion - /// - /// - /// Identifies the top-level service for the usage. - /// Serialized Name: ModernUsageDetail.properties.meterCategory - /// - /// - /// Defines the type or sub-category of Azure service that can affect the rate. - /// Serialized Name: ModernUsageDetail.properties.meterSubCategory - /// - /// - /// List the service family for the product purchased or charged (Example: Storage ; Compute). - /// Serialized Name: ModernUsageDetail.properties.serviceFamily - /// - /// - /// Measure the quantity purchased or consumed.The amount of the meter used during the billing period. - /// Serialized Name: ModernUsageDetail.properties.quantity - /// - /// - /// Identifies the Unit that the service is charged in. For example, GB, hours, 10,000 s. - /// Serialized Name: ModernUsageDetail.properties.unitOfMeasure - /// - /// - /// Instance Name. - /// Serialized Name: ModernUsageDetail.properties.instanceName - /// - /// - /// Estimated extendedCost or blended cost before tax in USD. - /// Serialized Name: ModernUsageDetail.properties.costInUSD - /// - /// - /// Unit Price is the price applicable to you. (your EA or other contract price). - /// Serialized Name: ModernUsageDetail.properties.unitPrice - /// - /// - /// The currency defining the billed cost. - /// Serialized Name: ModernUsageDetail.properties.billingCurrencyCode - /// - /// - /// Name of the resource location. - /// Serialized Name: ModernUsageDetail.properties.resourceLocation - /// - /// - /// Consumed service name. Name of the azure resource provider that emits the usage or was purchased. This value is not provided for marketplace usage. - /// Serialized Name: ModernUsageDetail.properties.consumedService - /// - /// - /// Service-specific metadata. - /// Serialized Name: ModernUsageDetail.properties.serviceInfo1 - /// - /// - /// Legacy field with optional service-specific metadata. - /// Serialized Name: ModernUsageDetail.properties.serviceInfo2 - /// - /// - /// Additional details of this usage item. Use this field to get usage line item specific details such as the actual VM Size (ServiceType) or the ratio in which the reservation discount is applied. - /// Serialized Name: ModernUsageDetail.properties.additionalInfo - /// - /// - /// Identifier of the project that is being charged in the invoice. Not applicable for Microsoft Customer Agreements onboarded by partners. - /// Serialized Name: ModernUsageDetail.properties.invoiceSectionId - /// - /// - /// Name of the project that is being charged in the invoice. Not applicable for Microsoft Customer Agreements onboarded by partners. - /// Serialized Name: ModernUsageDetail.properties.invoiceSectionName - /// - /// - /// The cost center of this department if it is a department and a cost center is provided. - /// Serialized Name: ModernUsageDetail.properties.costCenter - /// - /// - /// Name of the Azure resource group used for cohesive lifecycle management of resources. - /// Serialized Name: ModernUsageDetail.properties.resourceGroup - /// - /// - /// ARM resource id of the reservation. Only applies to records relevant to reservations. - /// Serialized Name: ModernUsageDetail.properties.reservationId - /// - /// - /// User provided display name of the reservation. Last known name for a particular day is populated in the daily data. Only applies to records relevant to reservations. - /// Serialized Name: ModernUsageDetail.properties.reservationName - /// - /// - /// The identifier for the asset or Azure plan name that the subscription belongs to. For example: Azure Plan. For reservations this is the Reservation Order ID. - /// Serialized Name: ModernUsageDetail.properties.productOrderId - /// - /// - /// Product Order Name. For reservations this is the SKU that was purchased. - /// Serialized Name: ModernUsageDetail.properties.productOrderName - /// - /// - /// Determines if the cost is eligible to be paid for using Azure credits. - /// Serialized Name: ModernUsageDetail.properties.isAzureCreditEligible - /// - /// - /// Term (in months). Displays the term for the validity of the offer. For example. In case of reserved instances it displays 12 months for yearly term of reserved instance. For one time purchases or recurring purchases, the terms displays 1 month; This is not applicable for Azure consumption. - /// Serialized Name: ModernUsageDetail.properties.term - /// - /// - /// Name of the publisher of the service including Microsoft or Third Party publishers. - /// Serialized Name: ModernUsageDetail.properties.publisherName - /// - /// - /// Type of publisher that identifies if the publisher is first party, third party reseller or third party agency. - /// Serialized Name: ModernUsageDetail.properties.publisherType - /// - /// - /// Indicates a charge represents credits, usage, a Marketplace purchase, a reservation fee, or a refund. - /// Serialized Name: ModernUsageDetail.properties.chargeType - /// - /// - /// Indicates how frequently this charge will occur. OneTime for purchases which only happen once, Monthly for fees which recur every month, and UsageBased for charges based on how much a service is used. - /// Serialized Name: ModernUsageDetail.properties.frequency - /// - /// - /// ExtendedCost or blended cost before tax in billed currency. - /// Serialized Name: ModernUsageDetail.properties.costInBillingCurrency - /// - /// - /// ExtendedCost or blended cost before tax in pricing currency to correlate with prices. - /// Serialized Name: ModernUsageDetail.properties.costInPricingCurrency - /// - /// - /// Exchange rate used in conversion from pricing currency to billing currency. - /// Serialized Name: ModernUsageDetail.properties.exchangeRate - /// - /// - /// Date on which exchange rate used in conversion from pricing currency to billing currency. - /// Serialized Name: ModernUsageDetail.properties.exchangeRateDate - /// - /// - /// Invoice ID as on the invoice where the specific transaction appears. - /// Serialized Name: ModernUsageDetail.properties.invoiceId - /// - /// - /// Reference to an original invoice there is a refund (negative cost). This is populated only when there is a refund. - /// Serialized Name: ModernUsageDetail.properties.previousInvoiceId - /// - /// - /// Pricing Billing Currency. - /// Serialized Name: ModernUsageDetail.properties.pricingCurrencyCode - /// - /// - /// Identifier for the product that has accrued charges by consumption or purchase . This is the concatenated key of productId and SkuId in partner center. - /// Serialized Name: ModernUsageDetail.properties.productIdentifier - /// - /// - /// Resource Location Normalized. - /// Serialized Name: ModernUsageDetail.properties.resourceLocationNormalized - /// - /// - /// Start date for the rating period when the service usage was rated for charges. The prices for Azure services are determined for the rating period. - /// Serialized Name: ModernUsageDetail.properties.servicePeriodStartDate - /// - /// - /// End date for the period when the service usage was rated for charges. The prices for Azure services are determined based on the rating period. - /// Serialized Name: ModernUsageDetail.properties.servicePeriodEndDate - /// - /// - /// Identifier of the customer's AAD tenant. - /// Serialized Name: ModernUsageDetail.properties.customerTenantId - /// - /// - /// Name of the customer's AAD tenant. - /// Serialized Name: ModernUsageDetail.properties.customerName - /// - /// - /// Identifier for the partner's AAD tenant. - /// Serialized Name: ModernUsageDetail.properties.partnerTenantId - /// - /// - /// Name of the partner' AAD tenant. - /// Serialized Name: ModernUsageDetail.properties.partnerName - /// - /// - /// MPNId for the reseller associated with the subscription. - /// Serialized Name: ModernUsageDetail.properties.resellerMpnId - /// - /// - /// Reseller Name. - /// Serialized Name: ModernUsageDetail.properties.resellerName - /// - /// - /// Publisher Id. - /// Serialized Name: ModernUsageDetail.properties.publisherId - /// - /// - /// Market Price that's charged for the usage. - /// Serialized Name: ModernUsageDetail.properties.marketPrice - /// - /// - /// Exchange Rate from pricing currency to billing currency. - /// Serialized Name: ModernUsageDetail.properties.exchangeRatePricingToBilling - /// - /// - /// The amount of PayG cost before tax in billing currency. - /// Serialized Name: ModernUsageDetail.properties.paygCostInBillingCurrency - /// - /// - /// The amount of PayG cost before tax in US Dollar currency. - /// Serialized Name: ModernUsageDetail.properties.paygCostInUSD - /// - /// - /// Rate of discount applied if there is a partner earned credit (PEC) based on partner admin link access. - /// Serialized Name: ModernUsageDetail.properties.partnerEarnedCreditRate - /// - /// - /// Flag to indicate if partner earned credit has been applied or not. - /// Serialized Name: ModernUsageDetail.properties.partnerEarnedCreditApplied - /// - /// - /// Retail price for the resource. - /// Serialized Name: ModernUsageDetail.properties.payGPrice - /// - /// - /// Unique identifier for the applicable benefit. - /// Serialized Name: ModernUsageDetail.properties.benefitId - /// - /// - /// Name of the applicable benefit. - /// Serialized Name: ModernUsageDetail.properties.benefitName - /// - /// - /// Identifier for Product Category or Line Of Business, Ex - Azure, Microsoft 365, AWS e.t.c - /// Serialized Name: ModernUsageDetail.properties.provider - /// - /// - /// Name for Cost Allocation Rule. - /// Serialized Name: ModernUsageDetail.properties.costAllocationRuleName - /// + /// Specifies the kind of usage details. + /// The etag for the resource. + /// Resource tags. + /// Billing Account identifier. + /// Effective Price that's charged for the usage. + /// Identifier that indicates how the meter is priced. + /// Name of the Billing Account. + /// Billing Period Start Date as in the invoice. + /// Billing Period End Date as in the invoice. + /// Identifier for the billing profile that groups costs across invoices in the a singular billing currency across across the customers who have onboarded the Microsoft customer agreement and the customers in CSP who have made entitlement purchases like SaaS, Marketplace, RI, etc. + /// Name of the billing profile that groups costs across invoices in the a singular billing currency across across the customers who have onboarded the Microsoft customer agreement and the customers in CSP who have made entitlement purchases like SaaS, Marketplace, RI, etc. + /// Unique Microsoft generated identifier for the Azure Subscription. + /// Name of the Azure Subscription. + /// Date for the usage record. + /// Name of the product that has accrued charges by consumption or purchase as listed in the invoice. Not available for Marketplace. + /// The meter id (GUID). Not available for marketplace. For reserved instance this represents the primary meter for which the reservation was purchased. For the actual VM Size for which the reservation is purchased see productOrderName. + /// Identifies the name of the meter against which consumption is measured. + /// Identifies the location of the datacenter for certain services that are priced based on datacenter location. + /// Identifies the top-level service for the usage. + /// Defines the type or sub-category of Azure service that can affect the rate. + /// List the service family for the product purchased or charged (Example: Storage ; Compute). + /// Measure the quantity purchased or consumed.The amount of the meter used during the billing period. + /// Identifies the Unit that the service is charged in. For example, GB, hours, 10,000 s. + /// Instance Name. + /// Estimated extendedCost or blended cost before tax in USD. + /// Unit Price is the price applicable to you. (your EA or other contract price). + /// The currency defining the billed cost. + /// Name of the resource location. + /// Consumed service name. Name of the azure resource provider that emits the usage or was purchased. This value is not provided for marketplace usage. + /// Service-specific metadata. + /// Legacy field with optional service-specific metadata. + /// Additional details of this usage item. Use this field to get usage line item specific details such as the actual VM Size (ServiceType) or the ratio in which the reservation discount is applied. + /// Identifier of the project that is being charged in the invoice. Not applicable for Microsoft Customer Agreements onboarded by partners. + /// Name of the project that is being charged in the invoice. Not applicable for Microsoft Customer Agreements onboarded by partners. + /// The cost center of this department if it is a department and a cost center is provided. + /// Name of the Azure resource group used for cohesive lifecycle management of resources. + /// ARM resource id of the reservation. Only applies to records relevant to reservations. + /// User provided display name of the reservation. Last known name for a particular day is populated in the daily data. Only applies to records relevant to reservations. + /// The identifier for the asset or Azure plan name that the subscription belongs to. For example: Azure Plan. For reservations this is the Reservation Order ID. + /// Product Order Name. For reservations this is the SKU that was purchased. + /// Determines if the cost is eligible to be paid for using Azure credits. + /// Term (in months). Displays the term for the validity of the offer. For example. In case of reserved instances it displays 12 months for yearly term of reserved instance. For one time purchases or recurring purchases, the terms displays 1 month; This is not applicable for Azure consumption. + /// Name of the publisher of the service including Microsoft or Third Party publishers. + /// Type of publisher that identifies if the publisher is first party, third party reseller or third party agency. + /// Indicates a charge represents credits, usage, a Marketplace purchase, a reservation fee, or a refund. + /// Indicates how frequently this charge will occur. OneTime for purchases which only happen once, Monthly for fees which recur every month, and UsageBased for charges based on how much a service is used. + /// ExtendedCost or blended cost before tax in billed currency. + /// ExtendedCost or blended cost before tax in pricing currency to correlate with prices. + /// Exchange rate used in conversion from pricing currency to billing currency. + /// Date on which exchange rate used in conversion from pricing currency to billing currency. + /// Invoice ID as on the invoice where the specific transaction appears. + /// Reference to an original invoice there is a refund (negative cost). This is populated only when there is a refund. + /// Pricing Billing Currency. + /// Identifier for the product that has accrued charges by consumption or purchase . This is the concatenated key of productId and SkuId in partner center. + /// Resource Location Normalized. + /// Start date for the rating period when the service usage was rated for charges. The prices for Azure services are determined for the rating period. + /// End date for the period when the service usage was rated for charges. The prices for Azure services are determined based on the rating period. + /// Identifier of the customer's AAD tenant. + /// Name of the customer's AAD tenant. + /// Identifier for the partner's AAD tenant. + /// Name of the partner' AAD tenant. + /// MPNId for the reseller associated with the subscription. + /// Reseller Name. + /// Publisher Id. + /// Market Price that's charged for the usage. + /// Exchange Rate from pricing currency to billing currency. + /// The amount of PayG cost before tax in billing currency. + /// The amount of PayG cost before tax in US Dollar currency. + /// Rate of discount applied if there is a partner earned credit (PEC) based on partner admin link access. + /// Flag to indicate if partner earned credit has been applied or not. + /// Retail price for the resource. + /// Unique identifier for the applicable benefit. + /// Name of the applicable benefit. + /// Identifier for Product Category or Line Of Business, Ex - Azure, Microsoft 365, AWS e.t.c. + /// Name for Cost Allocation Rule. internal ConsumptionModernUsageDetail(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, UsageDetailsKind kind, ETag? etag, IReadOnlyDictionary tags, string billingAccountId, decimal? effectivePrice, ConsumptionPricingModelType? pricingModel, string billingAccountName, DateTimeOffset? billingPeriodStartOn, DateTimeOffset? billingPeriodEndOn, string billingProfileId, string billingProfileName, string subscriptionGuid, string subscriptionName, DateTimeOffset? @on, string product, Guid? meterId, string meterName, string meterRegion, string meterCategory, string meterSubCategory, string serviceFamily, decimal? quantity, string unitOfMeasure, string instanceName, decimal? costInUSD, decimal? unitPrice, string billingCurrencyCode, string resourceLocation, string consumedService, string serviceInfo1, string serviceInfo2, string additionalInfo, string invoiceSectionId, string invoiceSectionName, string costCenter, string resourceGroup, string reservationId, string reservationName, string productOrderId, string productOrderName, bool? isAzureCreditEligible, string term, string publisherName, string publisherType, string chargeType, string frequency, decimal? costInBillingCurrency, decimal? costInPricingCurrency, string exchangeRate, DateTimeOffset? exchangeRateOn, string invoiceId, string previousInvoiceId, string pricingCurrencyCode, string productIdentifier, string resourceLocationNormalized, DateTimeOffset? servicePeriodStartOn, DateTimeOffset? servicePeriodEndOn, string customerTenantId, string customerName, string partnerTenantId, string partnerName, string resellerMpnId, string resellerName, string publisherId, decimal? marketPrice, decimal? exchangeRatePricingToBilling, decimal? paygCostInBillingCurrency, decimal? paygCostInUSD, decimal? partnerEarnedCreditRate, string partnerEarnedCreditApplied, decimal? payGPrice, string benefitId, string benefitName, string provider, string costAllocationRuleName) : base(id, name, resourceType, systemData, kind, etag, tags) { BillingAccountId = billingAccountId; @@ -407,365 +179,149 @@ internal ConsumptionModernUsageDetail(ResourceIdentifier id, string name, Resour Kind = kind; } - /// - /// Billing Account identifier. - /// Serialized Name: ModernUsageDetail.properties.billingAccountId - /// + /// Billing Account identifier. public string BillingAccountId { get; } - /// - /// Effective Price that's charged for the usage. - /// Serialized Name: ModernUsageDetail.properties.effectivePrice - /// + /// Effective Price that's charged for the usage. public decimal? EffectivePrice { get; } - /// - /// Identifier that indicates how the meter is priced - /// Serialized Name: ModernUsageDetail.properties.pricingModel - /// + /// Identifier that indicates how the meter is priced. public ConsumptionPricingModelType? PricingModel { get; } - /// - /// Name of the Billing Account. - /// Serialized Name: ModernUsageDetail.properties.billingAccountName - /// + /// Name of the Billing Account. public string BillingAccountName { get; } - /// - /// Billing Period Start Date as in the invoice. - /// Serialized Name: ModernUsageDetail.properties.billingPeriodStartDate - /// + /// Billing Period Start Date as in the invoice. public DateTimeOffset? BillingPeriodStartOn { get; } - /// - /// Billing Period End Date as in the invoice. - /// Serialized Name: ModernUsageDetail.properties.billingPeriodEndDate - /// + /// Billing Period End Date as in the invoice. public DateTimeOffset? BillingPeriodEndOn { get; } - /// - /// Identifier for the billing profile that groups costs across invoices in the a singular billing currency across across the customers who have onboarded the Microsoft customer agreement and the customers in CSP who have made entitlement purchases like SaaS, Marketplace, RI, etc. - /// Serialized Name: ModernUsageDetail.properties.billingProfileId - /// + /// Identifier for the billing profile that groups costs across invoices in the a singular billing currency across across the customers who have onboarded the Microsoft customer agreement and the customers in CSP who have made entitlement purchases like SaaS, Marketplace, RI, etc. public string BillingProfileId { get; } - /// - /// Name of the billing profile that groups costs across invoices in the a singular billing currency across across the customers who have onboarded the Microsoft customer agreement and the customers in CSP who have made entitlement purchases like SaaS, Marketplace, RI, etc. - /// Serialized Name: ModernUsageDetail.properties.billingProfileName - /// + /// Name of the billing profile that groups costs across invoices in the a singular billing currency across across the customers who have onboarded the Microsoft customer agreement and the customers in CSP who have made entitlement purchases like SaaS, Marketplace, RI, etc. public string BillingProfileName { get; } - /// - /// Unique Microsoft generated identifier for the Azure Subscription. - /// Serialized Name: ModernUsageDetail.properties.subscriptionGuid - /// + /// Unique Microsoft generated identifier for the Azure Subscription. public string SubscriptionGuid { get; } - /// - /// Name of the Azure Subscription. - /// Serialized Name: ModernUsageDetail.properties.subscriptionName - /// + /// Name of the Azure Subscription. public string SubscriptionName { get; } - /// - /// Date for the usage record. - /// Serialized Name: ModernUsageDetail.properties.date - /// + /// Date for the usage record. public DateTimeOffset? On { get; } - /// - /// Name of the product that has accrued charges by consumption or purchase as listed in the invoice. Not available for Marketplace. - /// Serialized Name: ModernUsageDetail.properties.product - /// + /// Name of the product that has accrued charges by consumption or purchase as listed in the invoice. Not available for Marketplace. public string Product { get; } - /// - /// The meter id (GUID). Not available for marketplace. For reserved instance this represents the primary meter for which the reservation was purchased. For the actual VM Size for which the reservation is purchased see productOrderName. - /// Serialized Name: ModernUsageDetail.properties.meterId - /// + /// The meter id (GUID). Not available for marketplace. For reserved instance this represents the primary meter for which the reservation was purchased. For the actual VM Size for which the reservation is purchased see productOrderName. public Guid? MeterId { get; } - /// - /// Identifies the name of the meter against which consumption is measured. - /// Serialized Name: ModernUsageDetail.properties.meterName - /// + /// Identifies the name of the meter against which consumption is measured. public string MeterName { get; } - /// - /// Identifies the location of the datacenter for certain services that are priced based on datacenter location. - /// Serialized Name: ModernUsageDetail.properties.meterRegion - /// + /// Identifies the location of the datacenter for certain services that are priced based on datacenter location. public string MeterRegion { get; } - /// - /// Identifies the top-level service for the usage. - /// Serialized Name: ModernUsageDetail.properties.meterCategory - /// + /// Identifies the top-level service for the usage. public string MeterCategory { get; } - /// - /// Defines the type or sub-category of Azure service that can affect the rate. - /// Serialized Name: ModernUsageDetail.properties.meterSubCategory - /// + /// Defines the type or sub-category of Azure service that can affect the rate. public string MeterSubCategory { get; } - /// - /// List the service family for the product purchased or charged (Example: Storage ; Compute). - /// Serialized Name: ModernUsageDetail.properties.serviceFamily - /// + /// List the service family for the product purchased or charged (Example: Storage ; Compute). public string ServiceFamily { get; } - /// - /// Measure the quantity purchased or consumed.The amount of the meter used during the billing period. - /// Serialized Name: ModernUsageDetail.properties.quantity - /// + /// Measure the quantity purchased or consumed.The amount of the meter used during the billing period. public decimal? Quantity { get; } - /// - /// Identifies the Unit that the service is charged in. For example, GB, hours, 10,000 s. - /// Serialized Name: ModernUsageDetail.properties.unitOfMeasure - /// + /// Identifies the Unit that the service is charged in. For example, GB, hours, 10,000 s. public string UnitOfMeasure { get; } - /// - /// Instance Name. - /// Serialized Name: ModernUsageDetail.properties.instanceName - /// + /// Instance Name. public string InstanceName { get; } - /// - /// Estimated extendedCost or blended cost before tax in USD. - /// Serialized Name: ModernUsageDetail.properties.costInUSD - /// + /// Estimated extendedCost or blended cost before tax in USD. public decimal? CostInUSD { get; } - /// - /// Unit Price is the price applicable to you. (your EA or other contract price). - /// Serialized Name: ModernUsageDetail.properties.unitPrice - /// + /// Unit Price is the price applicable to you. (your EA or other contract price). public decimal? UnitPrice { get; } - /// - /// The currency defining the billed cost. - /// Serialized Name: ModernUsageDetail.properties.billingCurrencyCode - /// + /// The currency defining the billed cost. public string BillingCurrencyCode { get; } - /// - /// Name of the resource location. - /// Serialized Name: ModernUsageDetail.properties.resourceLocation - /// + /// Name of the resource location. public string ResourceLocation { get; } - /// - /// Consumed service name. Name of the azure resource provider that emits the usage or was purchased. This value is not provided for marketplace usage. - /// Serialized Name: ModernUsageDetail.properties.consumedService - /// + /// Consumed service name. Name of the azure resource provider that emits the usage or was purchased. This value is not provided for marketplace usage. public string ConsumedService { get; } - /// - /// Service-specific metadata. - /// Serialized Name: ModernUsageDetail.properties.serviceInfo1 - /// + /// Service-specific metadata. public string ServiceInfo1 { get; } - /// - /// Legacy field with optional service-specific metadata. - /// Serialized Name: ModernUsageDetail.properties.serviceInfo2 - /// + /// Legacy field with optional service-specific metadata. public string ServiceInfo2 { get; } - /// - /// Additional details of this usage item. Use this field to get usage line item specific details such as the actual VM Size (ServiceType) or the ratio in which the reservation discount is applied. - /// Serialized Name: ModernUsageDetail.properties.additionalInfo - /// + /// Additional details of this usage item. Use this field to get usage line item specific details such as the actual VM Size (ServiceType) or the ratio in which the reservation discount is applied. public string AdditionalInfo { get; } - /// - /// Identifier of the project that is being charged in the invoice. Not applicable for Microsoft Customer Agreements onboarded by partners. - /// Serialized Name: ModernUsageDetail.properties.invoiceSectionId - /// + /// Identifier of the project that is being charged in the invoice. Not applicable for Microsoft Customer Agreements onboarded by partners. public string InvoiceSectionId { get; } - /// - /// Name of the project that is being charged in the invoice. Not applicable for Microsoft Customer Agreements onboarded by partners. - /// Serialized Name: ModernUsageDetail.properties.invoiceSectionName - /// + /// Name of the project that is being charged in the invoice. Not applicable for Microsoft Customer Agreements onboarded by partners. public string InvoiceSectionName { get; } - /// - /// The cost center of this department if it is a department and a cost center is provided. - /// Serialized Name: ModernUsageDetail.properties.costCenter - /// + /// The cost center of this department if it is a department and a cost center is provided. public string CostCenter { get; } - /// - /// Name of the Azure resource group used for cohesive lifecycle management of resources. - /// Serialized Name: ModernUsageDetail.properties.resourceGroup - /// + /// Name of the Azure resource group used for cohesive lifecycle management of resources. public string ResourceGroup { get; } - /// - /// ARM resource id of the reservation. Only applies to records relevant to reservations. - /// Serialized Name: ModernUsageDetail.properties.reservationId - /// + /// ARM resource id of the reservation. Only applies to records relevant to reservations. public string ReservationId { get; } - /// - /// User provided display name of the reservation. Last known name for a particular day is populated in the daily data. Only applies to records relevant to reservations. - /// Serialized Name: ModernUsageDetail.properties.reservationName - /// + /// User provided display name of the reservation. Last known name for a particular day is populated in the daily data. Only applies to records relevant to reservations. public string ReservationName { get; } - /// - /// The identifier for the asset or Azure plan name that the subscription belongs to. For example: Azure Plan. For reservations this is the Reservation Order ID. - /// Serialized Name: ModernUsageDetail.properties.productOrderId - /// + /// The identifier for the asset or Azure plan name that the subscription belongs to. For example: Azure Plan. For reservations this is the Reservation Order ID. public string ProductOrderId { get; } - /// - /// Product Order Name. For reservations this is the SKU that was purchased. - /// Serialized Name: ModernUsageDetail.properties.productOrderName - /// + /// Product Order Name. For reservations this is the SKU that was purchased. public string ProductOrderName { get; } - /// - /// Determines if the cost is eligible to be paid for using Azure credits. - /// Serialized Name: ModernUsageDetail.properties.isAzureCreditEligible - /// + /// Determines if the cost is eligible to be paid for using Azure credits. public bool? IsAzureCreditEligible { get; } - /// - /// Term (in months). Displays the term for the validity of the offer. For example. In case of reserved instances it displays 12 months for yearly term of reserved instance. For one time purchases or recurring purchases, the terms displays 1 month; This is not applicable for Azure consumption. - /// Serialized Name: ModernUsageDetail.properties.term - /// + /// Term (in months). Displays the term for the validity of the offer. For example. In case of reserved instances it displays 12 months for yearly term of reserved instance. For one time purchases or recurring purchases, the terms displays 1 month; This is not applicable for Azure consumption. public string Term { get; } - /// - /// Name of the publisher of the service including Microsoft or Third Party publishers. - /// Serialized Name: ModernUsageDetail.properties.publisherName - /// + /// Name of the publisher of the service including Microsoft or Third Party publishers. public string PublisherName { get; } - /// - /// Type of publisher that identifies if the publisher is first party, third party reseller or third party agency. - /// Serialized Name: ModernUsageDetail.properties.publisherType - /// + /// Type of publisher that identifies if the publisher is first party, third party reseller or third party agency. public string PublisherType { get; } - /// - /// Indicates a charge represents credits, usage, a Marketplace purchase, a reservation fee, or a refund. - /// Serialized Name: ModernUsageDetail.properties.chargeType - /// + /// Indicates a charge represents credits, usage, a Marketplace purchase, a reservation fee, or a refund. public string ChargeType { get; } - /// - /// Indicates how frequently this charge will occur. OneTime for purchases which only happen once, Monthly for fees which recur every month, and UsageBased for charges based on how much a service is used. - /// Serialized Name: ModernUsageDetail.properties.frequency - /// + /// Indicates how frequently this charge will occur. OneTime for purchases which only happen once, Monthly for fees which recur every month, and UsageBased for charges based on how much a service is used. public string Frequency { get; } - /// - /// ExtendedCost or blended cost before tax in billed currency. - /// Serialized Name: ModernUsageDetail.properties.costInBillingCurrency - /// + /// ExtendedCost or blended cost before tax in billed currency. public decimal? CostInBillingCurrency { get; } - /// - /// ExtendedCost or blended cost before tax in pricing currency to correlate with prices. - /// Serialized Name: ModernUsageDetail.properties.costInPricingCurrency - /// + /// ExtendedCost or blended cost before tax in pricing currency to correlate with prices. public decimal? CostInPricingCurrency { get; } - /// - /// Exchange rate used in conversion from pricing currency to billing currency. - /// Serialized Name: ModernUsageDetail.properties.exchangeRate - /// + /// Exchange rate used in conversion from pricing currency to billing currency. public string ExchangeRate { get; } - /// - /// Date on which exchange rate used in conversion from pricing currency to billing currency. - /// Serialized Name: ModernUsageDetail.properties.exchangeRateDate - /// + /// Date on which exchange rate used in conversion from pricing currency to billing currency. public DateTimeOffset? ExchangeRateOn { get; } - /// - /// Invoice ID as on the invoice where the specific transaction appears. - /// Serialized Name: ModernUsageDetail.properties.invoiceId - /// + /// Invoice ID as on the invoice where the specific transaction appears. public string InvoiceId { get; } - /// - /// Reference to an original invoice there is a refund (negative cost). This is populated only when there is a refund. - /// Serialized Name: ModernUsageDetail.properties.previousInvoiceId - /// + /// Reference to an original invoice there is a refund (negative cost). This is populated only when there is a refund. public string PreviousInvoiceId { get; } - /// - /// Pricing Billing Currency. - /// Serialized Name: ModernUsageDetail.properties.pricingCurrencyCode - /// + /// Pricing Billing Currency. public string PricingCurrencyCode { get; } - /// - /// Identifier for the product that has accrued charges by consumption or purchase . This is the concatenated key of productId and SkuId in partner center. - /// Serialized Name: ModernUsageDetail.properties.productIdentifier - /// + /// Identifier for the product that has accrued charges by consumption or purchase . This is the concatenated key of productId and SkuId in partner center. public string ProductIdentifier { get; } - /// - /// Resource Location Normalized. - /// Serialized Name: ModernUsageDetail.properties.resourceLocationNormalized - /// + /// Resource Location Normalized. public string ResourceLocationNormalized { get; } - /// - /// Start date for the rating period when the service usage was rated for charges. The prices for Azure services are determined for the rating period. - /// Serialized Name: ModernUsageDetail.properties.servicePeriodStartDate - /// + /// Start date for the rating period when the service usage was rated for charges. The prices for Azure services are determined for the rating period. public DateTimeOffset? ServicePeriodStartOn { get; } - /// - /// End date for the period when the service usage was rated for charges. The prices for Azure services are determined based on the rating period. - /// Serialized Name: ModernUsageDetail.properties.servicePeriodEndDate - /// + /// End date for the period when the service usage was rated for charges. The prices for Azure services are determined based on the rating period. public DateTimeOffset? ServicePeriodEndOn { get; } - /// - /// Identifier of the customer's AAD tenant. - /// Serialized Name: ModernUsageDetail.properties.customerTenantId - /// + /// Identifier of the customer's AAD tenant. public string CustomerTenantId { get; } - /// - /// Name of the customer's AAD tenant. - /// Serialized Name: ModernUsageDetail.properties.customerName - /// + /// Name of the customer's AAD tenant. public string CustomerName { get; } - /// - /// Identifier for the partner's AAD tenant. - /// Serialized Name: ModernUsageDetail.properties.partnerTenantId - /// + /// Identifier for the partner's AAD tenant. public string PartnerTenantId { get; } - /// - /// Name of the partner' AAD tenant. - /// Serialized Name: ModernUsageDetail.properties.partnerName - /// + /// Name of the partner' AAD tenant. public string PartnerName { get; } - /// - /// MPNId for the reseller associated with the subscription. - /// Serialized Name: ModernUsageDetail.properties.resellerMpnId - /// + /// MPNId for the reseller associated with the subscription. public string ResellerMpnId { get; } - /// - /// Reseller Name. - /// Serialized Name: ModernUsageDetail.properties.resellerName - /// + /// Reseller Name. public string ResellerName { get; } - /// - /// Publisher Id. - /// Serialized Name: ModernUsageDetail.properties.publisherId - /// + /// Publisher Id. public string PublisherId { get; } - /// - /// Market Price that's charged for the usage. - /// Serialized Name: ModernUsageDetail.properties.marketPrice - /// + /// Market Price that's charged for the usage. public decimal? MarketPrice { get; } - /// - /// Exchange Rate from pricing currency to billing currency. - /// Serialized Name: ModernUsageDetail.properties.exchangeRatePricingToBilling - /// + /// Exchange Rate from pricing currency to billing currency. public decimal? ExchangeRatePricingToBilling { get; } - /// - /// The amount of PayG cost before tax in billing currency. - /// Serialized Name: ModernUsageDetail.properties.paygCostInBillingCurrency - /// + /// The amount of PayG cost before tax in billing currency. public decimal? PaygCostInBillingCurrency { get; } - /// - /// The amount of PayG cost before tax in US Dollar currency. - /// Serialized Name: ModernUsageDetail.properties.paygCostInUSD - /// + /// The amount of PayG cost before tax in US Dollar currency. public decimal? PaygCostInUSD { get; } - /// - /// Rate of discount applied if there is a partner earned credit (PEC) based on partner admin link access. - /// Serialized Name: ModernUsageDetail.properties.partnerEarnedCreditRate - /// + /// Rate of discount applied if there is a partner earned credit (PEC) based on partner admin link access. public decimal? PartnerEarnedCreditRate { get; } - /// - /// Flag to indicate if partner earned credit has been applied or not. - /// Serialized Name: ModernUsageDetail.properties.partnerEarnedCreditApplied - /// + /// Flag to indicate if partner earned credit has been applied or not. public string PartnerEarnedCreditApplied { get; } - /// - /// Retail price for the resource. - /// Serialized Name: ModernUsageDetail.properties.payGPrice - /// + /// Retail price for the resource. public decimal? PayGPrice { get; } - /// - /// Unique identifier for the applicable benefit. - /// Serialized Name: ModernUsageDetail.properties.benefitId - /// + /// Unique identifier for the applicable benefit. public string BenefitId { get; } - /// - /// Name of the applicable benefit. - /// Serialized Name: ModernUsageDetail.properties.benefitName - /// + /// Name of the applicable benefit. public string BenefitName { get; } - /// - /// Identifier for Product Category or Line Of Business, Ex - Azure, Microsoft 365, AWS e.t.c - /// Serialized Name: ModernUsageDetail.properties.provider - /// + /// Identifier for Product Category or Line Of Business, Ex - Azure, Microsoft 365, AWS e.t.c. public string Provider { get; } - /// - /// Name for Cost Allocation Rule. - /// Serialized Name: ModernUsageDetail.properties.costAllocationRuleName - /// + /// Name for Cost Allocation Rule. public string CostAllocationRuleName { get; } } } diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionPricingModelType.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionPricingModelType.cs index 97b615d55f989..fdb3355171560 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionPricingModelType.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionPricingModelType.cs @@ -10,10 +10,7 @@ namespace Azure.ResourceManager.Consumption.Models { - /// - /// Identifier that indicates how the meter is priced. - /// Serialized Name: PricingModelType - /// + /// Identifier that indicates how the meter is priced. public readonly partial struct ConsumptionPricingModelType : IEquatable { private readonly string _value; @@ -29,20 +26,11 @@ public ConsumptionPricingModelType(string value) private const string ReservationValue = "Reservation"; private const string SpotValue = "Spot"; - /// - /// On Demand - /// Serialized Name: PricingModelType.On Demand - /// + /// On Demand. public static ConsumptionPricingModelType OnDemand { get; } = new ConsumptionPricingModelType(OnDemandValue); - /// - /// Reservation - /// Serialized Name: PricingModelType.Reservation - /// + /// Reservation. public static ConsumptionPricingModelType Reservation { get; } = new ConsumptionPricingModelType(ReservationValue); - /// - /// Spot - /// Serialized Name: PricingModelType.Spot - /// + /// Spot. public static ConsumptionPricingModelType Spot { get; } = new ConsumptionPricingModelType(SpotValue); /// Determines if two values are the same. public static bool operator ==(ConsumptionPricingModelType left, ConsumptionPricingModelType right) => left.Equals(right); diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionReseller.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionReseller.cs index 56ba582fe6845..a4ad85e828b23 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionReseller.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionReseller.cs @@ -9,10 +9,7 @@ namespace Azure.ResourceManager.Consumption.Models { - /// - /// The reseller properties. - /// Serialized Name: Reseller - /// + /// The reseller properties. public partial class ConsumptionReseller { /// Initializes a new instance of ConsumptionReseller. @@ -21,29 +18,17 @@ internal ConsumptionReseller() } /// Initializes a new instance of ConsumptionReseller. - /// - /// The reseller property ID. - /// Serialized Name: Reseller.resellerId - /// - /// - /// The reseller property description. - /// Serialized Name: Reseller.resellerDescription - /// + /// The reseller property ID. + /// The reseller property description. internal ConsumptionReseller(ResourceIdentifier resellerId, string resellerDescription) { ResellerId = resellerId; ResellerDescription = resellerDescription; } - /// - /// The reseller property ID. - /// Serialized Name: Reseller.resellerId - /// + /// The reseller property ID. public ResourceIdentifier ResellerId { get; } - /// - /// The reseller property description. - /// Serialized Name: Reseller.resellerDescription - /// + /// The reseller property description. public string ResellerDescription { get; } } } diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionReservationDetail.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionReservationDetail.cs index 40628be19b2ff..8437a4db4051c 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionReservationDetail.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionReservationDetail.cs @@ -13,10 +13,7 @@ namespace Azure.ResourceManager.Consumption.Models { - /// - /// reservation detail resource. - /// Serialized Name: ConsumptionReservationDetail - /// + /// reservation detail resource. public partial class ConsumptionReservationDetail : ResourceData { /// Initializes a new instance of ConsumptionReservationDetail. @@ -30,58 +27,19 @@ internal ConsumptionReservationDetail() /// The name. /// The resourceType. /// The systemData. - /// - /// The reservation order ID is the identifier for a reservation purchase. Each reservation order ID represents a single purchase transaction. A reservation order contains reservations. The reservation order specifies the VM size and region for the reservations. - /// Serialized Name: ConsumptionReservationDetail.properties.reservationOrderId - /// - /// - /// The instance Flexibility Ratio. - /// Serialized Name: ConsumptionReservationDetail.properties.instanceFlexibilityRatio - /// - /// - /// The instance Flexibility Group. - /// Serialized Name: ConsumptionReservationDetail.properties.instanceFlexibilityGroup - /// - /// - /// The reservation ID is the identifier of a reservation within a reservation order. Each reservation is the grouping for applying the benefit scope and also specifies the number of instances to which the reservation benefit can be applied to. - /// Serialized Name: ConsumptionReservationDetail.properties.reservationId - /// - /// - /// This is the ARM Sku name. It can be used to join with the serviceType field in additional info in usage records. - /// Serialized Name: ConsumptionReservationDetail.properties.skuName - /// - /// - /// This is the total hours reserved for the day. E.g. if reservation for 1 instance was made on 1 PM, this will be 11 hours for that day and 24 hours from subsequent days. - /// Serialized Name: ConsumptionReservationDetail.properties.reservedHours - /// - /// - /// The date on which consumption occurred. - /// Serialized Name: ConsumptionReservationDetail.properties.usageDate - /// - /// - /// This is the total hours used by the instance. - /// Serialized Name: ConsumptionReservationDetail.properties.usedHours - /// - /// - /// This identifier is the name of the resource or the fully qualified Resource ID. - /// Serialized Name: ConsumptionReservationDetail.properties.instanceId - /// - /// - /// This is the total count of instances that are reserved for the reservationId. - /// Serialized Name: ConsumptionReservationDetail.properties.totalReservedQuantity - /// - /// - /// The reservation kind. - /// Serialized Name: ConsumptionReservationDetail.properties.kind - /// - /// - /// The etag for the resource. - /// Serialized Name: Resource.etag - /// - /// - /// Resource tags. - /// Serialized Name: Resource.tags - /// + /// The reservation order ID is the identifier for a reservation purchase. Each reservation order ID represents a single purchase transaction. A reservation order contains reservations. The reservation order specifies the VM size and region for the reservations. + /// The instance Flexibility Ratio. + /// The instance Flexibility Group. + /// The reservation ID is the identifier of a reservation within a reservation order. Each reservation is the grouping for applying the benefit scope and also specifies the number of instances to which the reservation benefit can be applied to. + /// This is the ARM Sku name. It can be used to join with the serviceType field in additional info in usage records. + /// This is the total hours reserved for the day. E.g. if reservation for 1 instance was made on 1 PM, this will be 11 hours for that day and 24 hours from subsequent days. + /// The date on which consumption occurred. + /// This is the total hours used by the instance. + /// This identifier is the name of the resource or the fully qualified Resource ID. + /// This is the total count of instances that are reserved for the reservationId. + /// The reservation kind. + /// The etag for the resource. + /// Resource tags. internal ConsumptionReservationDetail(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string reservationOrderId, string instanceFlexibilityRatio, string instanceFlexibilityGroup, string reservationId, string skuName, decimal? reservedHours, DateTimeOffset? consumptionOccurredOn, decimal? usedHours, ResourceIdentifier instanceId, decimal? totalReservedQuantity, string kind, ETag? etag, IReadOnlyDictionary tags) : base(id, name, resourceType, systemData) { ReservationOrderId = reservationOrderId; @@ -99,70 +57,31 @@ internal ConsumptionReservationDetail(ResourceIdentifier id, string name, Resour Tags = tags; } - /// - /// The reservation order ID is the identifier for a reservation purchase. Each reservation order ID represents a single purchase transaction. A reservation order contains reservations. The reservation order specifies the VM size and region for the reservations. - /// Serialized Name: ConsumptionReservationDetail.properties.reservationOrderId - /// + /// The reservation order ID is the identifier for a reservation purchase. Each reservation order ID represents a single purchase transaction. A reservation order contains reservations. The reservation order specifies the VM size and region for the reservations. public string ReservationOrderId { get; } - /// - /// The instance Flexibility Ratio. - /// Serialized Name: ConsumptionReservationDetail.properties.instanceFlexibilityRatio - /// + /// The instance Flexibility Ratio. public string InstanceFlexibilityRatio { get; } - /// - /// The instance Flexibility Group. - /// Serialized Name: ConsumptionReservationDetail.properties.instanceFlexibilityGroup - /// + /// The instance Flexibility Group. public string InstanceFlexibilityGroup { get; } - /// - /// The reservation ID is the identifier of a reservation within a reservation order. Each reservation is the grouping for applying the benefit scope and also specifies the number of instances to which the reservation benefit can be applied to. - /// Serialized Name: ConsumptionReservationDetail.properties.reservationId - /// + /// The reservation ID is the identifier of a reservation within a reservation order. Each reservation is the grouping for applying the benefit scope and also specifies the number of instances to which the reservation benefit can be applied to. public string ReservationId { get; } - /// - /// This is the ARM Sku name. It can be used to join with the serviceType field in additional info in usage records. - /// Serialized Name: ConsumptionReservationDetail.properties.skuName - /// + /// This is the ARM Sku name. It can be used to join with the serviceType field in additional info in usage records. public string SkuName { get; } - /// - /// This is the total hours reserved for the day. E.g. if reservation for 1 instance was made on 1 PM, this will be 11 hours for that day and 24 hours from subsequent days. - /// Serialized Name: ConsumptionReservationDetail.properties.reservedHours - /// + /// This is the total hours reserved for the day. E.g. if reservation for 1 instance was made on 1 PM, this will be 11 hours for that day and 24 hours from subsequent days. public decimal? ReservedHours { get; } - /// - /// The date on which consumption occurred. - /// Serialized Name: ConsumptionReservationDetail.properties.usageDate - /// + /// The date on which consumption occurred. public DateTimeOffset? ConsumptionOccurredOn { get; } - /// - /// This is the total hours used by the instance. - /// Serialized Name: ConsumptionReservationDetail.properties.usedHours - /// + /// This is the total hours used by the instance. public decimal? UsedHours { get; } - /// - /// This identifier is the name of the resource or the fully qualified Resource ID. - /// Serialized Name: ConsumptionReservationDetail.properties.instanceId - /// + /// This identifier is the name of the resource or the fully qualified Resource ID. public ResourceIdentifier InstanceId { get; } - /// - /// This is the total count of instances that are reserved for the reservationId. - /// Serialized Name: ConsumptionReservationDetail.properties.totalReservedQuantity - /// + /// This is the total count of instances that are reserved for the reservationId. public decimal? TotalReservedQuantity { get; } - /// - /// The reservation kind. - /// Serialized Name: ConsumptionReservationDetail.properties.kind - /// + /// The reservation kind. public string Kind { get; } - /// - /// The etag for the resource. - /// Serialized Name: Resource.etag - /// + /// The etag for the resource. public ETag? ETag { get; } - /// - /// Resource tags. - /// Serialized Name: Resource.tags - /// + /// Resource tags. public IReadOnlyDictionary Tags { get; } } } diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionReservationRecommendation.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionReservationRecommendation.cs index c4317679ba529..57bf3c0512665 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionReservationRecommendation.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionReservationRecommendation.cs @@ -14,7 +14,6 @@ namespace Azure.ResourceManager.Consumption.Models { /// /// A reservation recommendation resource. - /// Serialized Name: ReservationRecommendation /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. /// The available derived classes include and . /// @@ -31,26 +30,11 @@ internal ConsumptionReservationRecommendation() /// The name. /// The resourceType. /// The systemData. - /// - /// Specifies the kind of reservation recommendation. - /// Serialized Name: ReservationRecommendation.kind - /// - /// - /// The etag for the resource. - /// Serialized Name: Resource.etag - /// - /// - /// Resource tags. - /// Serialized Name: Resource.tags - /// - /// - /// Resource location - /// Serialized Name: ResourceAttributes.location - /// - /// - /// Resource sku - /// Serialized Name: ResourceAttributes.sku - /// + /// Specifies the kind of reservation recommendation. + /// The etag for the resource. + /// Resource tags. + /// Resource location. + /// Resource sku. internal ConsumptionReservationRecommendation(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, ReservationRecommendationKind kind, ETag? etag, IReadOnlyDictionary tags, AzureLocation? location, string sku) : base(id, name, resourceType, systemData) { Kind = kind; @@ -60,30 +44,15 @@ internal ConsumptionReservationRecommendation(ResourceIdentifier id, string name Sku = sku; } - /// - /// Specifies the kind of reservation recommendation. - /// Serialized Name: ReservationRecommendation.kind - /// + /// Specifies the kind of reservation recommendation. internal ReservationRecommendationKind Kind { get; set; } - /// - /// The etag for the resource. - /// Serialized Name: Resource.etag - /// + /// The etag for the resource. public ETag? ETag { get; } - /// - /// Resource tags. - /// Serialized Name: Resource.tags - /// + /// Resource tags. public IReadOnlyDictionary Tags { get; } - /// - /// Resource location - /// Serialized Name: ResourceAttributes.location - /// + /// Resource location. public AzureLocation? Location { get; } - /// - /// Resource sku - /// Serialized Name: ResourceAttributes.sku - /// + /// Resource sku. public string Sku { get; } } } diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionReservationRecommendationDetails.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionReservationRecommendationDetails.cs index 0e457dd44d917..75adb0dc5652a 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionReservationRecommendationDetails.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionReservationRecommendationDetails.cs @@ -12,10 +12,7 @@ namespace Azure.ResourceManager.Consumption.Models { - /// - /// Reservation recommendation details. - /// Serialized Name: ReservationRecommendationDetailsModel - /// + /// Reservation recommendation details. public partial class ConsumptionReservationRecommendationDetails : ResourceData { /// Initializes a new instance of ConsumptionReservationRecommendationDetails. @@ -29,46 +26,16 @@ internal ConsumptionReservationRecommendationDetails() /// The name. /// The resourceType. /// The systemData. - /// - /// Resource Location. - /// Serialized Name: ReservationRecommendationDetailsModel.location - /// - /// - /// Resource sku - /// Serialized Name: ReservationRecommendationDetailsModel.sku - /// - /// - /// An ISO 4217 currency code identifier for the costs and savings - /// Serialized Name: ReservationRecommendationDetailsModel.properties.currency - /// - /// - /// Resource specific properties. - /// Serialized Name: ReservationRecommendationDetailsModel.properties.resource - /// - /// - /// Resource Group. - /// Serialized Name: ReservationRecommendationDetailsModel.properties.resourceGroup - /// - /// - /// Savings information for the recommendation. - /// Serialized Name: ReservationRecommendationDetailsModel.properties.savings - /// - /// - /// Scope of the reservation, ex: Single or Shared. - /// Serialized Name: ReservationRecommendationDetailsModel.properties.scope - /// - /// - /// Historical usage details used to calculate the estimated savings. - /// Serialized Name: ReservationRecommendationDetailsModel.properties.usage - /// - /// - /// The etag for the resource. - /// Serialized Name: Resource.etag - /// - /// - /// Resource tags. - /// Serialized Name: Resource.tags - /// + /// Resource Location. + /// Resource sku. + /// An ISO 4217 currency code identifier for the costs and savings. + /// Resource specific properties. + /// Resource Group. + /// Savings information for the recommendation. + /// Scope of the reservation, ex: Single or Shared. + /// Historical usage details used to calculate the estimated savings. + /// The etag for the resource. + /// Resource tags. internal ConsumptionReservationRecommendationDetails(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, AzureLocation? location, string sku, string currency, ConsumptionResourceProperties properties, string resourceGroup, ConsumptionSavingsProperties savings, string scope, ConsumptionUsageProperties usage, ETag? etag, IReadOnlyDictionary tags) : base(id, name, resourceType, systemData) { Location = location; @@ -83,55 +50,25 @@ internal ConsumptionReservationRecommendationDetails(ResourceIdentifier id, stri Tags = tags; } - /// - /// Resource Location. - /// Serialized Name: ReservationRecommendationDetailsModel.location - /// + /// Resource Location. public AzureLocation? Location { get; } - /// - /// Resource sku - /// Serialized Name: ReservationRecommendationDetailsModel.sku - /// + /// Resource sku. public string Sku { get; } - /// - /// An ISO 4217 currency code identifier for the costs and savings - /// Serialized Name: ReservationRecommendationDetailsModel.properties.currency - /// + /// An ISO 4217 currency code identifier for the costs and savings. public string Currency { get; } - /// - /// Resource specific properties. - /// Serialized Name: ReservationRecommendationDetailsModel.properties.resource - /// + /// Resource specific properties. public ConsumptionResourceProperties Properties { get; } - /// - /// Resource Group. - /// Serialized Name: ReservationRecommendationDetailsModel.properties.resourceGroup - /// + /// Resource Group. public string ResourceGroup { get; } - /// - /// Savings information for the recommendation. - /// Serialized Name: ReservationRecommendationDetailsModel.properties.savings - /// + /// Savings information for the recommendation. public ConsumptionSavingsProperties Savings { get; } - /// - /// Scope of the reservation, ex: Single or Shared. - /// Serialized Name: ReservationRecommendationDetailsModel.properties.scope - /// + /// Scope of the reservation, ex: Single or Shared. public string Scope { get; } - /// - /// Historical usage details used to calculate the estimated savings. - /// Serialized Name: ReservationRecommendationDetailsModel.properties.usage - /// + /// Historical usage details used to calculate the estimated savings. public ConsumptionUsageProperties Usage { get; } - /// - /// The etag for the resource. - /// Serialized Name: Resource.etag - /// + /// The etag for the resource. public ETag? ETag { get; } - /// - /// Resource tags. - /// Serialized Name: Resource.tags - /// + /// Resource tags. public IReadOnlyDictionary Tags { get; } } } diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionReservationRecommendationLookBackPeriod.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionReservationRecommendationLookBackPeriod.cs index c7462531aee3d..18bd5dfe32087 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionReservationRecommendationLookBackPeriod.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionReservationRecommendationLookBackPeriod.cs @@ -10,10 +10,7 @@ namespace Azure.ResourceManager.Consumption.Models { - /// - /// The ConsumptionReservationRecommendationLookBackPeriod. - /// Serialized Name: LookBackPeriod - /// + /// The ConsumptionReservationRecommendationLookBackPeriod. public readonly partial struct ConsumptionReservationRecommendationLookBackPeriod : IEquatable { private readonly string _value; @@ -29,20 +26,11 @@ public ConsumptionReservationRecommendationLookBackPeriod(string value) private const string Last30DaysValue = "Last30Days"; private const string Last60DaysValue = "Last60Days"; - /// - /// Use 7 days of data for recommendations - /// Serialized Name: LookBackPeriod.Last7Days - /// + /// Use 7 days of data for recommendations. public static ConsumptionReservationRecommendationLookBackPeriod Last07Days { get; } = new ConsumptionReservationRecommendationLookBackPeriod(Last07DaysValue); - /// - /// Use 30 days of data for recommendations - /// Serialized Name: LookBackPeriod.Last30Days - /// + /// Use 30 days of data for recommendations. public static ConsumptionReservationRecommendationLookBackPeriod Last30Days { get; } = new ConsumptionReservationRecommendationLookBackPeriod(Last30DaysValue); - /// - /// Use 60 days of data for recommendations - /// Serialized Name: LookBackPeriod.Last60Days - /// + /// Use 60 days of data for recommendations. public static ConsumptionReservationRecommendationLookBackPeriod Last60Days { get; } = new ConsumptionReservationRecommendationLookBackPeriod(Last60DaysValue); /// Determines if two values are the same. public static bool operator ==(ConsumptionReservationRecommendationLookBackPeriod left, ConsumptionReservationRecommendationLookBackPeriod right) => left.Equals(right); diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionReservationRecommendationScope.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionReservationRecommendationScope.cs index 70f3da56421fe..f88abb0f6bb64 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionReservationRecommendationScope.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionReservationRecommendationScope.cs @@ -10,10 +10,7 @@ namespace Azure.ResourceManager.Consumption.Models { - /// - /// The ConsumptionReservationRecommendationScope. - /// Serialized Name: Scope - /// + /// The ConsumptionReservationRecommendationScope. public readonly partial struct ConsumptionReservationRecommendationScope : IEquatable { private readonly string _value; @@ -28,15 +25,9 @@ public ConsumptionReservationRecommendationScope(string value) private const string SingleValue = "Single"; private const string SharedValue = "Shared"; - /// - /// Single - /// Serialized Name: Scope.Single - /// + /// Single. public static ConsumptionReservationRecommendationScope Single { get; } = new ConsumptionReservationRecommendationScope(SingleValue); - /// - /// Shared - /// Serialized Name: Scope.Shared - /// + /// Shared. public static ConsumptionReservationRecommendationScope Shared { get; } = new ConsumptionReservationRecommendationScope(SharedValue); /// Determines if two values are the same. public static bool operator ==(ConsumptionReservationRecommendationScope left, ConsumptionReservationRecommendationScope right) => left.Equals(right); diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionReservationRecommendationTerm.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionReservationRecommendationTerm.cs index a0db143ee2b7e..79408fcf553f1 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionReservationRecommendationTerm.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionReservationRecommendationTerm.cs @@ -10,10 +10,7 @@ namespace Azure.ResourceManager.Consumption.Models { - /// - /// The ConsumptionReservationRecommendationTerm. - /// Serialized Name: Term - /// + /// The ConsumptionReservationRecommendationTerm. public readonly partial struct ConsumptionReservationRecommendationTerm : IEquatable { private readonly string _value; @@ -28,15 +25,9 @@ public ConsumptionReservationRecommendationTerm(string value) private const string P1YValue = "P1Y"; private const string P3YValue = "P3Y"; - /// - /// 1 year reservation term - /// Serialized Name: Term.P1Y - /// + /// 1 year reservation term. public static ConsumptionReservationRecommendationTerm P1Y { get; } = new ConsumptionReservationRecommendationTerm(P1YValue); - /// - /// 3 year reservation term - /// Serialized Name: Term.P3Y - /// + /// 3 year reservation term. public static ConsumptionReservationRecommendationTerm P3Y { get; } = new ConsumptionReservationRecommendationTerm(P3YValue); /// Determines if two values are the same. public static bool operator ==(ConsumptionReservationRecommendationTerm left, ConsumptionReservationRecommendationTerm right) => left.Equals(right); diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionReservationSummary.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionReservationSummary.cs index 88f1820076841..8304ddce96442 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionReservationSummary.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionReservationSummary.cs @@ -13,10 +13,7 @@ namespace Azure.ResourceManager.Consumption.Models { - /// - /// reservation summary resource. - /// Serialized Name: ReservationSummary - /// + /// reservation summary resource. public partial class ConsumptionReservationSummary : ResourceData { /// Initializes a new instance of ConsumptionReservationSummary. @@ -30,74 +27,23 @@ internal ConsumptionReservationSummary() /// The name. /// The resourceType. /// The systemData. - /// - /// The reservation order ID is the identifier for a reservation purchase. Each reservation order ID represents a single purchase transaction. A reservation order contains reservations. The reservation order specifies the VM size and region for the reservations. - /// Serialized Name: ReservationSummary.properties.reservationOrderId - /// - /// - /// The reservation ID is the identifier of a reservation within a reservation order. Each reservation is the grouping for applying the benefit scope and also specifies the number of instances to which the reservation benefit can be applied to. - /// Serialized Name: ReservationSummary.properties.reservationId - /// - /// - /// This is the ARM Sku name. It can be used to join with the serviceType field in additional info in usage records. - /// Serialized Name: ReservationSummary.properties.skuName - /// - /// - /// This is the total hours reserved. E.g. if reservation for 1 instance was made on 1 PM, this will be 11 hours for that day and 24 hours from subsequent days - /// Serialized Name: ReservationSummary.properties.reservedHours - /// - /// - /// Data corresponding to the utilization record. If the grain of data is monthly, it will be first day of month. - /// Serialized Name: ReservationSummary.properties.usageDate - /// - /// - /// Total used hours by the reservation - /// Serialized Name: ReservationSummary.properties.usedHours - /// - /// - /// This is the minimum hourly utilization in the usage time (day or month). E.g. if usage record corresponds to 12/10/2017 and on that for hour 4 and 5, utilization was 10%, this field will return 10% for that day - /// Serialized Name: ReservationSummary.properties.minUtilizationPercentage - /// - /// - /// This is average utilization for the entire time range. (day or month depending on the grain) - /// Serialized Name: ReservationSummary.properties.avgUtilizationPercentage - /// - /// - /// This is the maximum hourly utilization in the usage time (day or month). E.g. if usage record corresponds to 12/10/2017 and on that for hour 4 and 5, utilization was 100%, this field will return 100% for that day. - /// Serialized Name: ReservationSummary.properties.maxUtilizationPercentage - /// - /// - /// The reservation kind. - /// Serialized Name: ReservationSummary.properties.kind - /// - /// - /// This is the purchased quantity for the reservationId. - /// Serialized Name: ReservationSummary.properties.purchasedQuantity - /// - /// - /// This is the remaining quantity for the reservationId. - /// Serialized Name: ReservationSummary.properties.remainingQuantity - /// - /// - /// This is the total count of instances that are reserved for the reservationId. - /// Serialized Name: ReservationSummary.properties.totalReservedQuantity - /// - /// - /// This is the used quantity for the reservationId. - /// Serialized Name: ReservationSummary.properties.usedQuantity - /// - /// - /// This is the utilized percentage for the reservation Id. - /// Serialized Name: ReservationSummary.properties.utilizedPercentage - /// - /// - /// The etag for the resource. - /// Serialized Name: Resource.etag - /// - /// - /// Resource tags. - /// Serialized Name: Resource.tags - /// + /// The reservation order ID is the identifier for a reservation purchase. Each reservation order ID represents a single purchase transaction. A reservation order contains reservations. The reservation order specifies the VM size and region for the reservations. + /// The reservation ID is the identifier of a reservation within a reservation order. Each reservation is the grouping for applying the benefit scope and also specifies the number of instances to which the reservation benefit can be applied to. + /// This is the ARM Sku name. It can be used to join with the serviceType field in additional info in usage records. + /// This is the total hours reserved. E.g. if reservation for 1 instance was made on 1 PM, this will be 11 hours for that day and 24 hours from subsequent days. + /// Data corresponding to the utilization record. If the grain of data is monthly, it will be first day of month. + /// Total used hours by the reservation. + /// This is the minimum hourly utilization in the usage time (day or month). E.g. if usage record corresponds to 12/10/2017 and on that for hour 4 and 5, utilization was 10%, this field will return 10% for that day. + /// This is average utilization for the entire time range. (day or month depending on the grain). + /// This is the maximum hourly utilization in the usage time (day or month). E.g. if usage record corresponds to 12/10/2017 and on that for hour 4 and 5, utilization was 100%, this field will return 100% for that day. + /// The reservation kind. + /// This is the purchased quantity for the reservationId. + /// This is the remaining quantity for the reservationId. + /// This is the total count of instances that are reserved for the reservationId. + /// This is the used quantity for the reservationId. + /// This is the utilized percentage for the reservation Id. + /// The etag for the resource. + /// Resource tags. internal ConsumptionReservationSummary(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string reservationOrderId, string reservationId, string skuName, decimal? reservedHours, DateTimeOffset? useOn, decimal? usedHours, decimal? minUtilizationPercentage, decimal? avgUtilizationPercentage, decimal? maxUtilizationPercentage, string kind, decimal? purchasedQuantity, decimal? remainingQuantity, decimal? totalReservedQuantity, decimal? usedQuantity, decimal? utilizedPercentage, ETag? etag, IReadOnlyDictionary tags) : base(id, name, resourceType, systemData) { ReservationOrderId = reservationOrderId; @@ -119,90 +65,39 @@ internal ConsumptionReservationSummary(ResourceIdentifier id, string name, Resou Tags = tags; } - /// - /// The reservation order ID is the identifier for a reservation purchase. Each reservation order ID represents a single purchase transaction. A reservation order contains reservations. The reservation order specifies the VM size and region for the reservations. - /// Serialized Name: ReservationSummary.properties.reservationOrderId - /// + /// The reservation order ID is the identifier for a reservation purchase. Each reservation order ID represents a single purchase transaction. A reservation order contains reservations. The reservation order specifies the VM size and region for the reservations. public string ReservationOrderId { get; } - /// - /// The reservation ID is the identifier of a reservation within a reservation order. Each reservation is the grouping for applying the benefit scope and also specifies the number of instances to which the reservation benefit can be applied to. - /// Serialized Name: ReservationSummary.properties.reservationId - /// + /// The reservation ID is the identifier of a reservation within a reservation order. Each reservation is the grouping for applying the benefit scope and also specifies the number of instances to which the reservation benefit can be applied to. public string ReservationId { get; } - /// - /// This is the ARM Sku name. It can be used to join with the serviceType field in additional info in usage records. - /// Serialized Name: ReservationSummary.properties.skuName - /// + /// This is the ARM Sku name. It can be used to join with the serviceType field in additional info in usage records. public string SkuName { get; } - /// - /// This is the total hours reserved. E.g. if reservation for 1 instance was made on 1 PM, this will be 11 hours for that day and 24 hours from subsequent days - /// Serialized Name: ReservationSummary.properties.reservedHours - /// + /// This is the total hours reserved. E.g. if reservation for 1 instance was made on 1 PM, this will be 11 hours for that day and 24 hours from subsequent days. public decimal? ReservedHours { get; } - /// - /// Data corresponding to the utilization record. If the grain of data is monthly, it will be first day of month. - /// Serialized Name: ReservationSummary.properties.usageDate - /// + /// Data corresponding to the utilization record. If the grain of data is monthly, it will be first day of month. public DateTimeOffset? UseOn { get; } - /// - /// Total used hours by the reservation - /// Serialized Name: ReservationSummary.properties.usedHours - /// + /// Total used hours by the reservation. public decimal? UsedHours { get; } - /// - /// This is the minimum hourly utilization in the usage time (day or month). E.g. if usage record corresponds to 12/10/2017 and on that for hour 4 and 5, utilization was 10%, this field will return 10% for that day - /// Serialized Name: ReservationSummary.properties.minUtilizationPercentage - /// + /// This is the minimum hourly utilization in the usage time (day or month). E.g. if usage record corresponds to 12/10/2017 and on that for hour 4 and 5, utilization was 10%, this field will return 10% for that day. public decimal? MinUtilizationPercentage { get; } - /// - /// This is average utilization for the entire time range. (day or month depending on the grain) - /// Serialized Name: ReservationSummary.properties.avgUtilizationPercentage - /// + /// This is average utilization for the entire time range. (day or month depending on the grain). public decimal? AvgUtilizationPercentage { get; } - /// - /// This is the maximum hourly utilization in the usage time (day or month). E.g. if usage record corresponds to 12/10/2017 and on that for hour 4 and 5, utilization was 100%, this field will return 100% for that day. - /// Serialized Name: ReservationSummary.properties.maxUtilizationPercentage - /// + /// This is the maximum hourly utilization in the usage time (day or month). E.g. if usage record corresponds to 12/10/2017 and on that for hour 4 and 5, utilization was 100%, this field will return 100% for that day. public decimal? MaxUtilizationPercentage { get; } - /// - /// The reservation kind. - /// Serialized Name: ReservationSummary.properties.kind - /// + /// The reservation kind. public string Kind { get; } - /// - /// This is the purchased quantity for the reservationId. - /// Serialized Name: ReservationSummary.properties.purchasedQuantity - /// + /// This is the purchased quantity for the reservationId. public decimal? PurchasedQuantity { get; } - /// - /// This is the remaining quantity for the reservationId. - /// Serialized Name: ReservationSummary.properties.remainingQuantity - /// + /// This is the remaining quantity for the reservationId. public decimal? RemainingQuantity { get; } - /// - /// This is the total count of instances that are reserved for the reservationId. - /// Serialized Name: ReservationSummary.properties.totalReservedQuantity - /// + /// This is the total count of instances that are reserved for the reservationId. public decimal? TotalReservedQuantity { get; } - /// - /// This is the used quantity for the reservationId. - /// Serialized Name: ReservationSummary.properties.usedQuantity - /// + /// This is the used quantity for the reservationId. public decimal? UsedQuantity { get; } - /// - /// This is the utilized percentage for the reservation Id. - /// Serialized Name: ReservationSummary.properties.utilizedPercentage - /// + /// This is the utilized percentage for the reservation Id. public decimal? UtilizedPercentage { get; } - /// - /// The etag for the resource. - /// Serialized Name: Resource.etag - /// + /// The etag for the resource. public ETag? ETag { get; } - /// - /// Resource tags. - /// Serialized Name: Resource.tags - /// + /// Resource tags. public IReadOnlyDictionary Tags { get; } } } diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionReservationTransaction.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionReservationTransaction.cs index 11da38d7c8757..0e45accbcf736 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionReservationTransaction.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionReservationTransaction.cs @@ -12,10 +12,7 @@ namespace Azure.ResourceManager.Consumption.Models { - /// - /// Reservation transaction resource. - /// Serialized Name: ReservationTransaction - /// + /// Reservation transaction resource. public partial class ConsumptionReservationTransaction : ResourceData { /// Initializes a new instance of ConsumptionReservationTransaction. @@ -29,102 +26,30 @@ internal ConsumptionReservationTransaction() /// The name. /// The resourceType. /// The systemData. - /// - /// The date of the transaction - /// Serialized Name: ReservationTransaction.properties.eventDate - /// - /// - /// The reservation order ID is the identifier for a reservation purchase. Each reservation order ID represents a single purchase transaction. A reservation order contains reservations. The reservation order specifies the VM size and region for the reservations. - /// Serialized Name: ReservationTransaction.properties.reservationOrderId - /// - /// - /// The description of the transaction. - /// Serialized Name: ReservationTransaction.properties.description - /// - /// - /// The type of the transaction (Purchase, Cancel or Refund). - /// Serialized Name: ReservationTransaction.properties.eventType - /// - /// - /// The quantity of the transaction. - /// Serialized Name: ReservationTransaction.properties.quantity - /// - /// - /// The charge of the transaction. - /// Serialized Name: ReservationTransaction.properties.amount - /// - /// - /// The ISO currency in which the transaction is charged, for example, USD. - /// Serialized Name: ReservationTransaction.properties.currency - /// - /// - /// The name of the reservation order. - /// Serialized Name: ReservationTransaction.properties.reservationOrderName - /// - /// - /// The purchasing enrollment. - /// Serialized Name: ReservationTransaction.properties.purchasingEnrollment - /// - /// - /// The subscription guid that makes the transaction. - /// Serialized Name: ReservationTransaction.properties.purchasingSubscriptionGuid - /// - /// - /// The subscription name that makes the transaction. - /// Serialized Name: ReservationTransaction.properties.purchasingSubscriptionName - /// - /// - /// This is the ARM Sku name. It can be used to join with the serviceType field in additional info in usage records. - /// Serialized Name: ReservationTransaction.properties.armSkuName - /// - /// - /// This is the term of the transaction. - /// Serialized Name: ReservationTransaction.properties.term - /// - /// - /// The region of the transaction. - /// Serialized Name: ReservationTransaction.properties.region - /// - /// - /// The name of the account that makes the transaction. - /// Serialized Name: ReservationTransaction.properties.accountName - /// - /// - /// The email of the account owner that makes the transaction. - /// Serialized Name: ReservationTransaction.properties.accountOwnerEmail - /// - /// - /// The department name. - /// Serialized Name: ReservationTransaction.properties.departmentName - /// - /// - /// The cost center of this department if it is a department and a cost center is provided. - /// Serialized Name: ReservationTransaction.properties.costCenter - /// - /// - /// The current enrollment. - /// Serialized Name: ReservationTransaction.properties.currentEnrollment - /// - /// - /// The billing frequency, which can be either one-time or recurring. - /// Serialized Name: ReservationTransaction.properties.billingFrequency - /// - /// - /// The billing month(yyyyMMdd), on which the event initiated. - /// Serialized Name: ReservationTransaction.properties.billingMonth - /// - /// - /// The monetary commitment amount at the enrollment scope. - /// Serialized Name: ReservationTransaction.properties.monetaryCommitment - /// - /// - /// The overage amount at the enrollment scope. - /// Serialized Name: ReservationTransaction.properties.overage - /// - /// - /// Resource tags. - /// Serialized Name: ReservationTransactionResource.tags - /// + /// The date of the transaction. + /// The reservation order ID is the identifier for a reservation purchase. Each reservation order ID represents a single purchase transaction. A reservation order contains reservations. The reservation order specifies the VM size and region for the reservations. + /// The description of the transaction. + /// The type of the transaction (Purchase, Cancel or Refund). + /// The quantity of the transaction. + /// The charge of the transaction. + /// The ISO currency in which the transaction is charged, for example, USD. + /// The name of the reservation order. + /// The purchasing enrollment. + /// The subscription guid that makes the transaction. + /// The subscription name that makes the transaction. + /// This is the ARM Sku name. It can be used to join with the serviceType field in additional info in usage records. + /// This is the term of the transaction. + /// The region of the transaction. + /// The name of the account that makes the transaction. + /// The email of the account owner that makes the transaction. + /// The department name. + /// The cost center of this department if it is a department and a cost center is provided. + /// The current enrollment. + /// The billing frequency, which can be either one-time or recurring. + /// The billing month(yyyyMMdd), on which the event initiated. + /// The monetary commitment amount at the enrollment scope. + /// The overage amount at the enrollment scope. + /// Resource tags. internal ConsumptionReservationTransaction(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, DateTimeOffset? transactOn, string reservationOrderId, string description, string eventType, decimal? quantity, decimal? amount, string currency, string reservationOrderName, string purchasingEnrollment, Guid? purchasingSubscriptionGuid, string purchasingSubscriptionName, string armSkuName, string term, string region, string accountName, string accountOwnerEmail, string departmentName, string costCenter, string currentEnrollment, string billingFrequency, int? billingMonth, decimal? monetaryCommitment, decimal? overage, IReadOnlyList tags) : base(id, name, resourceType, systemData) { TransactOn = transactOn; @@ -153,125 +78,53 @@ internal ConsumptionReservationTransaction(ResourceIdentifier id, string name, R Tags = tags; } - /// - /// The date of the transaction - /// Serialized Name: ReservationTransaction.properties.eventDate - /// + /// The date of the transaction. public DateTimeOffset? TransactOn { get; } - /// - /// The reservation order ID is the identifier for a reservation purchase. Each reservation order ID represents a single purchase transaction. A reservation order contains reservations. The reservation order specifies the VM size and region for the reservations. - /// Serialized Name: ReservationTransaction.properties.reservationOrderId - /// + /// The reservation order ID is the identifier for a reservation purchase. Each reservation order ID represents a single purchase transaction. A reservation order contains reservations. The reservation order specifies the VM size and region for the reservations. public string ReservationOrderId { get; } - /// - /// The description of the transaction. - /// Serialized Name: ReservationTransaction.properties.description - /// + /// The description of the transaction. public string Description { get; } - /// - /// The type of the transaction (Purchase, Cancel or Refund). - /// Serialized Name: ReservationTransaction.properties.eventType - /// + /// The type of the transaction (Purchase, Cancel or Refund). public string EventType { get; } - /// - /// The quantity of the transaction. - /// Serialized Name: ReservationTransaction.properties.quantity - /// + /// The quantity of the transaction. public decimal? Quantity { get; } - /// - /// The charge of the transaction. - /// Serialized Name: ReservationTransaction.properties.amount - /// + /// The charge of the transaction. public decimal? Amount { get; } - /// - /// The ISO currency in which the transaction is charged, for example, USD. - /// Serialized Name: ReservationTransaction.properties.currency - /// + /// The ISO currency in which the transaction is charged, for example, USD. public string Currency { get; } - /// - /// The name of the reservation order. - /// Serialized Name: ReservationTransaction.properties.reservationOrderName - /// + /// The name of the reservation order. public string ReservationOrderName { get; } - /// - /// The purchasing enrollment. - /// Serialized Name: ReservationTransaction.properties.purchasingEnrollment - /// + /// The purchasing enrollment. public string PurchasingEnrollment { get; } - /// - /// The subscription guid that makes the transaction. - /// Serialized Name: ReservationTransaction.properties.purchasingSubscriptionGuid - /// + /// The subscription guid that makes the transaction. public Guid? PurchasingSubscriptionGuid { get; } - /// - /// The subscription name that makes the transaction. - /// Serialized Name: ReservationTransaction.properties.purchasingSubscriptionName - /// + /// The subscription name that makes the transaction. public string PurchasingSubscriptionName { get; } - /// - /// This is the ARM Sku name. It can be used to join with the serviceType field in additional info in usage records. - /// Serialized Name: ReservationTransaction.properties.armSkuName - /// + /// This is the ARM Sku name. It can be used to join with the serviceType field in additional info in usage records. public string ArmSkuName { get; } - /// - /// This is the term of the transaction. - /// Serialized Name: ReservationTransaction.properties.term - /// + /// This is the term of the transaction. public string Term { get; } - /// - /// The region of the transaction. - /// Serialized Name: ReservationTransaction.properties.region - /// + /// The region of the transaction. public string Region { get; } - /// - /// The name of the account that makes the transaction. - /// Serialized Name: ReservationTransaction.properties.accountName - /// + /// The name of the account that makes the transaction. public string AccountName { get; } - /// - /// The email of the account owner that makes the transaction. - /// Serialized Name: ReservationTransaction.properties.accountOwnerEmail - /// + /// The email of the account owner that makes the transaction. public string AccountOwnerEmail { get; } - /// - /// The department name. - /// Serialized Name: ReservationTransaction.properties.departmentName - /// + /// The department name. public string DepartmentName { get; } - /// - /// The cost center of this department if it is a department and a cost center is provided. - /// Serialized Name: ReservationTransaction.properties.costCenter - /// + /// The cost center of this department if it is a department and a cost center is provided. public string CostCenter { get; } - /// - /// The current enrollment. - /// Serialized Name: ReservationTransaction.properties.currentEnrollment - /// + /// The current enrollment. public string CurrentEnrollment { get; } - /// - /// The billing frequency, which can be either one-time or recurring. - /// Serialized Name: ReservationTransaction.properties.billingFrequency - /// + /// The billing frequency, which can be either one-time or recurring. public string BillingFrequency { get; } - /// - /// The billing month(yyyyMMdd), on which the event initiated. - /// Serialized Name: ReservationTransaction.properties.billingMonth - /// + /// The billing month(yyyyMMdd), on which the event initiated. public int? BillingMonth { get; } - /// - /// The monetary commitment amount at the enrollment scope. - /// Serialized Name: ReservationTransaction.properties.monetaryCommitment - /// + /// The monetary commitment amount at the enrollment scope. public decimal? MonetaryCommitment { get; } - /// - /// The overage amount at the enrollment scope. - /// Serialized Name: ReservationTransaction.properties.overage - /// + /// The overage amount at the enrollment scope. public decimal? Overage { get; } - /// - /// Resource tags. - /// Serialized Name: ReservationTransactionResource.tags - /// + /// Resource tags. public IReadOnlyList Tags { get; } } } diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionResourceProperties.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionResourceProperties.cs index 7a4abb4a0aa81..9c593d9d357bc 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionResourceProperties.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionResourceProperties.cs @@ -10,10 +10,7 @@ namespace Azure.ResourceManager.Consumption.Models { - /// - /// Details of the resource. - /// Serialized Name: ReservationRecommendationDetailsResourceProperties - /// + /// Details of the resource. public partial class ConsumptionResourceProperties { /// Initializes a new instance of ConsumptionResourceProperties. @@ -23,30 +20,12 @@ internal ConsumptionResourceProperties() } /// Initializes a new instance of ConsumptionResourceProperties. - /// - /// List of subscriptions for which the reservation is applied. - /// Serialized Name: ReservationRecommendationDetailsResourceProperties.appliedScopes - /// - /// - /// On demand rate of the resource. - /// Serialized Name: ReservationRecommendationDetailsResourceProperties.onDemandRate - /// - /// - /// Azure product ex: Standard_E8s_v3 etc. - /// Serialized Name: ReservationRecommendationDetailsResourceProperties.product - /// - /// - /// Azure resource region ex:EastUS, WestUS etc. - /// Serialized Name: ReservationRecommendationDetailsResourceProperties.region - /// - /// - /// Reservation rate of the resource. - /// Serialized Name: ReservationRecommendationDetailsResourceProperties.reservationRate - /// - /// - /// The azure resource type. - /// Serialized Name: ReservationRecommendationDetailsResourceProperties.resourceType - /// + /// List of subscriptions for which the reservation is applied. + /// On demand rate of the resource. + /// Azure product ex: Standard_E8s_v3 etc. + /// Azure resource region ex:EastUS, WestUS etc. + /// Reservation rate of the resource. + /// The azure resource type. internal ConsumptionResourceProperties(IReadOnlyList appliedScopes, float? onDemandRate, string product, string region, float? reservationRate, string resourceType) { AppliedScopes = appliedScopes; @@ -57,35 +36,17 @@ internal ConsumptionResourceProperties(IReadOnlyList appliedScopes, floa ResourceType = resourceType; } - /// - /// List of subscriptions for which the reservation is applied. - /// Serialized Name: ReservationRecommendationDetailsResourceProperties.appliedScopes - /// + /// List of subscriptions for which the reservation is applied. public IReadOnlyList AppliedScopes { get; } - /// - /// On demand rate of the resource. - /// Serialized Name: ReservationRecommendationDetailsResourceProperties.onDemandRate - /// + /// On demand rate of the resource. public float? OnDemandRate { get; } - /// - /// Azure product ex: Standard_E8s_v3 etc. - /// Serialized Name: ReservationRecommendationDetailsResourceProperties.product - /// + /// Azure product ex: Standard_E8s_v3 etc. public string Product { get; } - /// - /// Azure resource region ex:EastUS, WestUS etc. - /// Serialized Name: ReservationRecommendationDetailsResourceProperties.region - /// + /// Azure resource region ex:EastUS, WestUS etc. public string Region { get; } - /// - /// Reservation rate of the resource. - /// Serialized Name: ReservationRecommendationDetailsResourceProperties.reservationRate - /// + /// Reservation rate of the resource. public float? ReservationRate { get; } - /// - /// The azure resource type. - /// Serialized Name: ReservationRecommendationDetailsResourceProperties.resourceType - /// + /// The azure resource type. public string ResourceType { get; } } } diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionSavingsProperties.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionSavingsProperties.cs index 01c1381d4f691..b07aaac68b024 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionSavingsProperties.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionSavingsProperties.cs @@ -10,10 +10,7 @@ namespace Azure.ResourceManager.Consumption.Models { - /// - /// Details of the estimated savings. - /// Serialized Name: ReservationRecommendationDetailsSavingsProperties - /// + /// Details of the estimated savings. public partial class ConsumptionSavingsProperties { /// Initializes a new instance of ConsumptionSavingsProperties. @@ -23,30 +20,12 @@ internal ConsumptionSavingsProperties() } /// Initializes a new instance of ConsumptionSavingsProperties. - /// - /// List of calculated savings. - /// Serialized Name: ReservationRecommendationDetailsSavingsProperties.calculatedSavings - /// - /// - /// Number of days of usage to look back used for computing the recommendation. - /// Serialized Name: ReservationRecommendationDetailsSavingsProperties.lookBackPeriod - /// - /// - /// Number of recommended units of the resource. - /// Serialized Name: ReservationRecommendationDetailsSavingsProperties.recommendedQuantity - /// - /// - /// Term period of the reservation, ex: P1Y or P3Y. - /// Serialized Name: ReservationRecommendationDetailsSavingsProperties.reservationOrderTerm - /// - /// - /// Type of savings, ex: instance. - /// Serialized Name: ReservationRecommendationDetailsSavingsProperties.savingsType - /// - /// - /// Measurement unit ex: hour etc. - /// Serialized Name: ReservationRecommendationDetailsSavingsProperties.unitOfMeasure - /// + /// List of calculated savings. + /// Number of days of usage to look back used for computing the recommendation. + /// Number of recommended units of the resource. + /// Term period of the reservation, ex: P1Y or P3Y. + /// Type of savings, ex: instance. + /// Measurement unit ex: hour etc. internal ConsumptionSavingsProperties(IReadOnlyList calculatedSavings, int? lookBackPeriod, float? recommendedQuantity, string reservationOrderTerm, string savingsType, string unitOfMeasure) { CalculatedSavings = calculatedSavings; @@ -57,35 +36,17 @@ internal ConsumptionSavingsProperties(IReadOnlyList - /// List of calculated savings. - /// Serialized Name: ReservationRecommendationDetailsSavingsProperties.calculatedSavings - /// + /// List of calculated savings. public IReadOnlyList CalculatedSavings { get; } - /// - /// Number of days of usage to look back used for computing the recommendation. - /// Serialized Name: ReservationRecommendationDetailsSavingsProperties.lookBackPeriod - /// + /// Number of days of usage to look back used for computing the recommendation. public int? LookBackPeriod { get; } - /// - /// Number of recommended units of the resource. - /// Serialized Name: ReservationRecommendationDetailsSavingsProperties.recommendedQuantity - /// + /// Number of recommended units of the resource. public float? RecommendedQuantity { get; } - /// - /// Term period of the reservation, ex: P1Y or P3Y. - /// Serialized Name: ReservationRecommendationDetailsSavingsProperties.reservationOrderTerm - /// + /// Term period of the reservation, ex: P1Y or P3Y. public string ReservationOrderTerm { get; } - /// - /// Type of savings, ex: instance. - /// Serialized Name: ReservationRecommendationDetailsSavingsProperties.savingsType - /// + /// Type of savings, ex: instance. public string SavingsType { get; } - /// - /// Measurement unit ex: hour etc. - /// Serialized Name: ReservationRecommendationDetailsSavingsProperties.unitOfMeasure - /// + /// Measurement unit ex: hour etc. public string UnitOfMeasure { get; } } } diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionSkuProperty.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionSkuProperty.cs index d922095484887..4f6e03a78909e 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionSkuProperty.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionSkuProperty.cs @@ -7,10 +7,7 @@ namespace Azure.ResourceManager.Consumption.Models { - /// - /// The Sku property - /// Serialized Name: SkuProperty - /// + /// The Sku property. public partial class ConsumptionSkuProperty { /// Initializes a new instance of ConsumptionSkuProperty. @@ -19,29 +16,17 @@ internal ConsumptionSkuProperty() } /// Initializes a new instance of ConsumptionSkuProperty. - /// - /// The name of sku property. - /// Serialized Name: SkuProperty.name - /// - /// - /// The value of sku property. - /// Serialized Name: SkuProperty.value - /// + /// The name of sku property. + /// The value of sku property. internal ConsumptionSkuProperty(string name, string value) { Name = name; Value = value; } - /// - /// The name of sku property. - /// Serialized Name: SkuProperty.name - /// + /// The name of sku property. public string Name { get; } - /// - /// The value of sku property. - /// Serialized Name: SkuProperty.value - /// + /// The value of sku property. public string Value { get; } } } diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionTag.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionTag.cs index 8246c7f80e3ed..686977026cad3 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionTag.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionTag.cs @@ -10,10 +10,7 @@ namespace Azure.ResourceManager.Consumption.Models { - /// - /// The tag resource. - /// Serialized Name: Tag - /// + /// The tag resource. public partial class ConsumptionTag { /// Initializes a new instance of ConsumptionTag. @@ -23,29 +20,17 @@ public ConsumptionTag() } /// Initializes a new instance of ConsumptionTag. - /// - /// Tag key. - /// Serialized Name: Tag.key - /// - /// - /// Tag values. - /// Serialized Name: Tag.value - /// + /// Tag key. + /// Tag values. internal ConsumptionTag(string key, IList value) { Key = key; Value = value; } - /// - /// Tag key. - /// Serialized Name: Tag.key - /// + /// Tag key. public string Key { get; set; } - /// - /// Tag values. - /// Serialized Name: Tag.value - /// + /// Tag values. public IList Value { get; } } } diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionTagsResult.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionTagsResult.cs index 7afdaa7a342a2..e204093ae73f9 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionTagsResult.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionTagsResult.cs @@ -12,10 +12,7 @@ namespace Azure.ResourceManager.Consumption.Models { - /// - /// A resource listing all tags. - /// Serialized Name: TagsResult - /// + /// A resource listing all tags. public partial class ConsumptionTagsResult : ResourceData { /// Initializes a new instance of ConsumptionTagsResult. @@ -29,22 +26,10 @@ public ConsumptionTagsResult() /// The name. /// The resourceType. /// The systemData. - /// - /// A list of Tag. - /// Serialized Name: TagsResult.properties.tags - /// - /// - /// The link (url) to the next page of results. - /// Serialized Name: TagsResult.properties.nextLink - /// - /// - /// The link (url) to the previous page of results. - /// Serialized Name: TagsResult.properties.previousLink - /// - /// - /// 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. - /// Serialized Name: ProxyResource.eTag - /// + /// A list of Tag. + /// The link (url) to the next page of results. + /// The link (url) to the previous page of results. + /// 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 ConsumptionTagsResult(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IList tags, string nextLink, string previousLink, ETag? etag) : base(id, name, resourceType, systemData) { Tags = tags; @@ -53,25 +38,13 @@ internal ConsumptionTagsResult(ResourceIdentifier id, string name, ResourceType ETag = etag; } - /// - /// A list of Tag. - /// Serialized Name: TagsResult.properties.tags - /// + /// A list of Tag. public IList Tags { get; } - /// - /// The link (url) to the next page of results. - /// Serialized Name: TagsResult.properties.nextLink - /// + /// The link (url) to the next page of results. public string NextLink { get; } - /// - /// The link (url) to the previous page of results. - /// Serialized Name: TagsResult.properties.previousLink - /// + /// The link (url) to the previous page of results. public string PreviousLink { 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. - /// Serialized Name: ProxyResource.eTag - /// + /// eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not. public ETag? ETag { get; set; } } } diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionUsageDetail.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionUsageDetail.cs index 78c1b7ad59c8e..ee24e4ebf9fc8 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionUsageDetail.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionUsageDetail.cs @@ -14,7 +14,6 @@ namespace Azure.ResourceManager.Consumption.Models { /// /// An usage detail resource. - /// Serialized Name: UsageDetail /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. /// The available derived classes include and . /// @@ -31,18 +30,9 @@ internal ConsumptionUsageDetail() /// The name. /// The resourceType. /// The systemData. - /// - /// Specifies the kind of usage details. - /// Serialized Name: UsageDetail.kind - /// - /// - /// The etag for the resource. - /// Serialized Name: Resource.etag - /// - /// - /// Resource tags. - /// Serialized Name: Resource.tags - /// + /// Specifies the kind of usage details. + /// The etag for the resource. + /// Resource tags. internal ConsumptionUsageDetail(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, UsageDetailsKind kind, ETag? etag, IReadOnlyDictionary tags) : base(id, name, resourceType, systemData) { Kind = kind; @@ -50,20 +40,11 @@ internal ConsumptionUsageDetail(ResourceIdentifier id, string name, ResourceType Tags = tags; } - /// - /// Specifies the kind of usage details. - /// Serialized Name: UsageDetail.kind - /// + /// Specifies the kind of usage details. internal UsageDetailsKind Kind { get; set; } - /// - /// The etag for the resource. - /// Serialized Name: Resource.etag - /// + /// The etag for the resource. public ETag? ETag { get; } - /// - /// Resource tags. - /// Serialized Name: Resource.tags - /// + /// Resource tags. public IReadOnlyDictionary Tags { get; } } } diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionUsageProperties.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionUsageProperties.cs index b536f5158236b..08c5e2ab5a4da 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionUsageProperties.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionUsageProperties.cs @@ -10,10 +10,7 @@ namespace Azure.ResourceManager.Consumption.Models { - /// - /// Details about historical usage data that has been used for computing the recommendation. - /// Serialized Name: ReservationRecommendationDetailsUsageProperties - /// + /// Details about historical usage data that has been used for computing the recommendation. public partial class ConsumptionUsageProperties { /// Initializes a new instance of ConsumptionUsageProperties. @@ -23,26 +20,11 @@ internal ConsumptionUsageProperties() } /// Initializes a new instance of ConsumptionUsageProperties. - /// - /// The first usage date used for looking back for computing the recommendation. - /// Serialized Name: ReservationRecommendationDetailsUsageProperties.firstConsumptionDate - /// - /// - /// The last usage date used for looking back for computing the recommendation. - /// Serialized Name: ReservationRecommendationDetailsUsageProperties.lastConsumptionDate - /// - /// - /// What the usage data values represent ex: virtual machine instance. - /// Serialized Name: ReservationRecommendationDetailsUsageProperties.lookBackUnitType - /// - /// - /// The breakdown of historical resource usage. The values are in the order of usage between the firstConsumptionDate and the lastConsumptionDate. - /// Serialized Name: ReservationRecommendationDetailsUsageProperties.usageData - /// - /// - /// The grain of the values represented in the usage data ex: hourly. - /// Serialized Name: ReservationRecommendationDetailsUsageProperties.usageGrain - /// + /// The first usage date used for looking back for computing the recommendation. + /// The last usage date used for looking back for computing the recommendation. + /// What the usage data values represent ex: virtual machine instance. + /// The breakdown of historical resource usage. The values are in the order of usage between the firstConsumptionDate and the lastConsumptionDate. + /// The grain of the values represented in the usage data ex: hourly. internal ConsumptionUsageProperties(string firstConsumptionDate, string lastConsumptionDate, string lookBackUnitType, IReadOnlyList usageData, string usageGrain) { FirstConsumptionDate = firstConsumptionDate; @@ -52,30 +34,15 @@ internal ConsumptionUsageProperties(string firstConsumptionDate, string lastCons UsageGrain = usageGrain; } - /// - /// The first usage date used for looking back for computing the recommendation. - /// Serialized Name: ReservationRecommendationDetailsUsageProperties.firstConsumptionDate - /// + /// The first usage date used for looking back for computing the recommendation. public string FirstConsumptionDate { get; } - /// - /// The last usage date used for looking back for computing the recommendation. - /// Serialized Name: ReservationRecommendationDetailsUsageProperties.lastConsumptionDate - /// + /// The last usage date used for looking back for computing the recommendation. public string LastConsumptionDate { get; } - /// - /// What the usage data values represent ex: virtual machine instance. - /// Serialized Name: ReservationRecommendationDetailsUsageProperties.lookBackUnitType - /// + /// What the usage data values represent ex: virtual machine instance. public string LookBackUnitType { get; } - /// - /// The breakdown of historical resource usage. The values are in the order of usage between the firstConsumptionDate and the lastConsumptionDate. - /// Serialized Name: ReservationRecommendationDetailsUsageProperties.usageData - /// + /// The breakdown of historical resource usage. The values are in the order of usage between the firstConsumptionDate and the lastConsumptionDate. public IReadOnlyList UsageData { get; } - /// - /// The grain of the values represented in the usage data ex: hourly. - /// Serialized Name: ReservationRecommendationDetailsUsageProperties.usageGrain - /// + /// The grain of the values represented in the usage data ex: hourly. public string UsageGrain { get; } } } diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/CreditBalanceSummary.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/CreditBalanceSummary.cs index c0aa1b8f43606..05c7e7d37d639 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/CreditBalanceSummary.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/CreditBalanceSummary.cs @@ -7,10 +7,7 @@ namespace Azure.ResourceManager.Consumption.Models { - /// - /// Summary of credit balances. - /// Serialized Name: CreditBalanceSummary - /// + /// Summary of credit balances. public partial class CreditBalanceSummary { /// Initializes a new instance of CreditBalanceSummary. @@ -19,18 +16,9 @@ internal CreditBalanceSummary() } /// Initializes a new instance of CreditBalanceSummary. - /// - /// Estimated balance. - /// Serialized Name: CreditBalanceSummary.estimatedBalance - /// - /// - /// Current balance. - /// Serialized Name: CreditBalanceSummary.currentBalance - /// - /// - /// Estimated balance in billing currency. - /// Serialized Name: CreditBalanceSummary.estimatedBalanceInBillingCurrency - /// + /// Estimated balance. + /// Current balance. + /// Estimated balance in billing currency. internal CreditBalanceSummary(ConsumptionAmount estimatedBalance, ConsumptionAmount currentBalance, ConsumptionAmountWithExchangeRate estimatedBalanceInBillingCurrency) { EstimatedBalance = estimatedBalance; @@ -38,20 +26,11 @@ internal CreditBalanceSummary(ConsumptionAmount estimatedBalance, ConsumptionAmo EstimatedBalanceInBillingCurrency = estimatedBalanceInBillingCurrency; } - /// - /// Estimated balance. - /// Serialized Name: CreditBalanceSummary.estimatedBalance - /// + /// Estimated balance. public ConsumptionAmount EstimatedBalance { get; } - /// - /// Current balance. - /// Serialized Name: CreditBalanceSummary.currentBalance - /// + /// Current balance. public ConsumptionAmount CurrentBalance { get; } - /// - /// Estimated balance in billing currency. - /// Serialized Name: CreditBalanceSummary.estimatedBalanceInBillingCurrency - /// + /// Estimated balance in billing currency. public ConsumptionAmountWithExchangeRate EstimatedBalanceInBillingCurrency { get; } } } diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/Events.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/Events.cs index 1a87a78228e95..0de6fa7b98f9f 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/Events.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/Events.cs @@ -10,10 +10,7 @@ namespace Azure.ResourceManager.Consumption.Models { - /// - /// Result of listing event summary. - /// Serialized Name: Events - /// + /// Result of listing event summary. internal partial class Events { /// Initializes a new instance of Events. @@ -23,29 +20,17 @@ internal Events() } /// Initializes a new instance of Events. - /// - /// The list of event summary. - /// Serialized Name: Events.value - /// - /// - /// The link (url) to the next page of results. - /// Serialized Name: Events.nextLink - /// + /// The list of event summary. + /// The link (url) to the next page of results. internal Events(IReadOnlyList value, string nextLink) { Value = value; NextLink = nextLink; } - /// - /// The list of event summary. - /// Serialized Name: Events.value - /// + /// The list of event summary. public IReadOnlyList Value { get; } - /// - /// The link (url) to the next page of results. - /// Serialized Name: Events.nextLink - /// + /// The link (url) to the next page of results. public string NextLink { get; } } } diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/Lots.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/Lots.cs index a406c4e2978f2..9dd3fa81b3efd 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/Lots.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/Lots.cs @@ -10,10 +10,7 @@ namespace Azure.ResourceManager.Consumption.Models { - /// - /// Result of listing lot summary. - /// Serialized Name: Lots - /// + /// Result of listing lot summary. internal partial class Lots { /// Initializes a new instance of Lots. @@ -23,29 +20,17 @@ internal Lots() } /// Initializes a new instance of Lots. - /// - /// The list of lot summary. - /// Serialized Name: Lots.value - /// - /// - /// The link (url) to the next page of results. - /// Serialized Name: Lots.nextLink - /// + /// The list of lot summary. + /// The link (url) to the next page of results. internal Lots(IReadOnlyList value, string nextLink) { Value = value; NextLink = nextLink; } - /// - /// The list of lot summary. - /// Serialized Name: Lots.value - /// + /// The list of lot summary. public IReadOnlyList Value { get; } - /// - /// The link (url) to the next page of results. - /// Serialized Name: Lots.nextLink - /// + /// The link (url) to the next page of results. public string NextLink { get; } } } diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/MarketplacesListResult.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/MarketplacesListResult.cs index a61ae3ce9db68..46830670442cc 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/MarketplacesListResult.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/MarketplacesListResult.cs @@ -10,10 +10,7 @@ namespace Azure.ResourceManager.Consumption.Models { - /// - /// Result of listing marketplaces. It contains a list of available marketplaces in reverse chronological order by billing period. - /// Serialized Name: MarketplacesListResult - /// + /// Result of listing marketplaces. It contains a list of available marketplaces in reverse chronological order by billing period. internal partial class MarketplacesListResult { /// Initializes a new instance of MarketplacesListResult. @@ -23,29 +20,17 @@ internal MarketplacesListResult() } /// Initializes a new instance of MarketplacesListResult. - /// - /// The list of marketplaces. - /// Serialized Name: MarketplacesListResult.value - /// - /// - /// The link (url) to the next page of results. - /// Serialized Name: MarketplacesListResult.nextLink - /// + /// The list of marketplaces. + /// The link (url) to the next page of results. internal MarketplacesListResult(IReadOnlyList value, string nextLink) { Value = value; NextLink = nextLink; } - /// - /// The list of marketplaces. - /// Serialized Name: MarketplacesListResult.value - /// + /// The list of marketplaces. public IReadOnlyList Value { get; } - /// - /// The link (url) to the next page of results. - /// Serialized Name: MarketplacesListResult.nextLink - /// + /// The link (url) to the next page of results. public string NextLink { get; } } } diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ModernReservationTransactionsListResult.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ModernReservationTransactionsListResult.cs index e2e1bdb614309..97185f947e1ed 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ModernReservationTransactionsListResult.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ModernReservationTransactionsListResult.cs @@ -10,10 +10,7 @@ namespace Azure.ResourceManager.Consumption.Models { - /// - /// Result of listing reservation recommendations. - /// Serialized Name: ModernReservationTransactionsListResult - /// + /// Result of listing reservation recommendations. internal partial class ModernReservationTransactionsListResult { /// Initializes a new instance of ModernReservationTransactionsListResult. @@ -23,29 +20,17 @@ internal ModernReservationTransactionsListResult() } /// Initializes a new instance of ModernReservationTransactionsListResult. - /// - /// The list of reservation recommendations. - /// Serialized Name: ModernReservationTransactionsListResult.value - /// - /// - /// The link (url) to the next page of results. - /// Serialized Name: ModernReservationTransactionsListResult.nextLink - /// + /// The list of reservation recommendations. + /// The link (url) to the next page of results. internal ModernReservationTransactionsListResult(IReadOnlyList value, string nextLink) { Value = value; NextLink = nextLink; } - /// - /// The list of reservation recommendations. - /// Serialized Name: ModernReservationTransactionsListResult.value - /// + /// The list of reservation recommendations. public IReadOnlyList Value { get; } - /// - /// The link (url) to the next page of results. - /// Serialized Name: ModernReservationTransactionsListResult.nextLink - /// + /// The link (url) to the next page of results. public string NextLink { get; } } } diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/NotificationAlertTriggerType.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/NotificationAlertTriggerType.cs index ca6530ac447b2..04d1934ceea5d 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/NotificationAlertTriggerType.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/NotificationAlertTriggerType.cs @@ -10,10 +10,7 @@ namespace Azure.ResourceManager.Consumption.Models { - /// - /// The comparison operator. - /// Serialized Name: OperatorType - /// + /// The comparison operator. public readonly partial struct NotificationAlertTriggerType : IEquatable { private readonly string _value; @@ -29,20 +26,11 @@ public NotificationAlertTriggerType(string value) private const string GreaterThanValue = "GreaterThan"; private const string GreaterThanOrEqualToValue = "GreaterThanOrEqualTo"; - /// - /// Alert will be triggered if the evaluated cost is the same as threshold value. Note: It’s not recommended to use this OperatorType as there’s low chance of cost being exactly the same as threshold value, leading to missing of your alert. This OperatorType will be deprecated in future. - /// Serialized Name: OperatorType.EqualTo - /// + /// Alert will be triggered if the evaluated cost is the same as threshold value. Note: It’s not recommended to use this OperatorType as there’s low chance of cost being exactly the same as threshold value, leading to missing of your alert. This OperatorType will be deprecated in future. public static NotificationAlertTriggerType EqualTo { get; } = new NotificationAlertTriggerType(EqualToValue); - /// - /// Alert will be triggered if the evaluated cost is greater than the threshold value. Note: This is the recommended OperatorType while configuring Budget Alert. - /// Serialized Name: OperatorType.GreaterThan - /// + /// Alert will be triggered if the evaluated cost is greater than the threshold value. Note: This is the recommended OperatorType while configuring Budget Alert. public static NotificationAlertTriggerType GreaterThan { get; } = new NotificationAlertTriggerType(GreaterThanValue); - /// - /// Alert will be triggered if the evaluated cost is greater than or equal to the threshold value. - /// Serialized Name: OperatorType.GreaterThanOrEqualTo - /// + /// Alert will be triggered if the evaluated cost is greater than or equal to the threshold value. public static NotificationAlertTriggerType GreaterThanOrEqualTo { get; } = new NotificationAlertTriggerType(GreaterThanOrEqualToValue); /// Determines if two values are the same. public static bool operator ==(NotificationAlertTriggerType left, NotificationAlertTriggerType right) => left.Equals(right); diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/NotificationThresholdType.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/NotificationThresholdType.cs index b6e959d134d0b..e783411a836ac 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/NotificationThresholdType.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/NotificationThresholdType.cs @@ -10,10 +10,7 @@ namespace Azure.ResourceManager.Consumption.Models { - /// - /// The type of threshold - /// Serialized Name: ThresholdType - /// + /// The type of threshold. public readonly partial struct NotificationThresholdType : IEquatable { private readonly string _value; @@ -28,15 +25,9 @@ public NotificationThresholdType(string value) private const string ActualValue = "Actual"; private const string ForecastedValue = "Forecasted"; - /// - /// Actual costs budget alerts notify when the actual accrued cost exceeds the allocated budget . - /// Serialized Name: ThresholdType.Actual - /// + /// Actual costs budget alerts notify when the actual accrued cost exceeds the allocated budget . public static NotificationThresholdType Actual { get; } = new NotificationThresholdType(ActualValue); - /// - /// Forecasted costs budget alerts provide advanced notification that your spending trends are likely to exceed your allocated budget, as it relies on forecasted cost predictions. - /// Serialized Name: ThresholdType.Forecasted - /// + /// Forecasted costs budget alerts provide advanced notification that your spending trends are likely to exceed your allocated budget, as it relies on forecasted cost predictions. public static NotificationThresholdType Forecasted { get; } = new NotificationThresholdType(ForecastedValue); /// Determines if two values are the same. public static bool operator ==(NotificationThresholdType left, NotificationThresholdType right) => left.Equals(right); diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/PriceSheetProperties.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/PriceSheetProperties.cs index 7a913c3e70ee1..a5bfc2f4af8ef 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/PriceSheetProperties.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/PriceSheetProperties.cs @@ -10,10 +10,7 @@ namespace Azure.ResourceManager.Consumption.Models { - /// - /// The properties of the price sheet. - /// Serialized Name: PriceSheetProperties - /// + /// The properties of the price sheet. public partial class PriceSheetProperties { /// Initializes a new instance of PriceSheetProperties. @@ -22,42 +19,15 @@ internal PriceSheetProperties() } /// Initializes a new instance of PriceSheetProperties. - /// - /// The id of the billing period resource that the usage belongs to. - /// Serialized Name: PriceSheetProperties.billingPeriodId - /// - /// - /// The meter id (GUID) - /// Serialized Name: PriceSheetProperties.meterId - /// - /// - /// The details about the meter. By default this is not populated, unless it's specified in $expand. - /// Serialized Name: PriceSheetProperties.meterDetails - /// - /// - /// Unit of measure - /// Serialized Name: PriceSheetProperties.unitOfMeasure - /// - /// - /// Included quality for an offer - /// Serialized Name: PriceSheetProperties.includedQuantity - /// - /// - /// Part Number - /// Serialized Name: PriceSheetProperties.partNumber - /// - /// - /// Unit Price - /// Serialized Name: PriceSheetProperties.unitPrice - /// - /// - /// Currency Code - /// Serialized Name: PriceSheetProperties.currencyCode - /// - /// - /// Offer Id - /// Serialized Name: PriceSheetProperties.offerId - /// + /// The id of the billing period resource that the usage belongs to. + /// The meter id (GUID). + /// The details about the meter. By default this is not populated, unless it's specified in $expand. + /// Unit of measure. + /// Included quality for an offer. + /// Part Number. + /// Unit Price. + /// Currency Code. + /// Offer Id. internal PriceSheetProperties(ResourceIdentifier billingPeriodId, Guid? meterId, ConsumptionMeterDetails meterDetails, string unitOfMeasure, decimal? includedQuantity, string partNumber, decimal? unitPrice, string currencyCode, string offerId) { BillingPeriodId = billingPeriodId; @@ -71,50 +41,23 @@ internal PriceSheetProperties(ResourceIdentifier billingPeriodId, Guid? meterId, OfferId = offerId; } - /// - /// The id of the billing period resource that the usage belongs to. - /// Serialized Name: PriceSheetProperties.billingPeriodId - /// + /// The id of the billing period resource that the usage belongs to. public ResourceIdentifier BillingPeriodId { get; } - /// - /// The meter id (GUID) - /// Serialized Name: PriceSheetProperties.meterId - /// + /// The meter id (GUID). public Guid? MeterId { get; } - /// - /// The details about the meter. By default this is not populated, unless it's specified in $expand. - /// Serialized Name: PriceSheetProperties.meterDetails - /// + /// The details about the meter. By default this is not populated, unless it's specified in $expand. public ConsumptionMeterDetails MeterDetails { get; } - /// - /// Unit of measure - /// Serialized Name: PriceSheetProperties.unitOfMeasure - /// + /// Unit of measure. public string UnitOfMeasure { get; } - /// - /// Included quality for an offer - /// Serialized Name: PriceSheetProperties.includedQuantity - /// + /// Included quality for an offer. public decimal? IncludedQuantity { get; } - /// - /// Part Number - /// Serialized Name: PriceSheetProperties.partNumber - /// + /// Part Number. public string PartNumber { get; } - /// - /// Unit Price - /// Serialized Name: PriceSheetProperties.unitPrice - /// + /// Unit Price. public decimal? UnitPrice { get; } - /// - /// Currency Code - /// Serialized Name: PriceSheetProperties.currencyCode - /// + /// Currency Code. public string CurrencyCode { get; } - /// - /// Offer Id - /// Serialized Name: PriceSheetProperties.offerId - /// + /// Offer Id. public string OfferId { get; } } } diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/PriceSheetResult.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/PriceSheetResult.cs index 9b1ffef7be20b..52a4272262d89 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/PriceSheetResult.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/PriceSheetResult.cs @@ -12,10 +12,7 @@ namespace Azure.ResourceManager.Consumption.Models { - /// - /// An pricesheet resource. - /// Serialized Name: PriceSheetResult - /// + /// An pricesheet resource. public partial class PriceSheetResult : ResourceData { /// Initializes a new instance of PriceSheetResult. @@ -30,26 +27,11 @@ internal PriceSheetResult() /// The name. /// The resourceType. /// The systemData. - /// - /// Price sheet - /// Serialized Name: PriceSheetResult.properties.pricesheets - /// - /// - /// The link (url) to the next page of results. - /// Serialized Name: PriceSheetResult.properties.nextLink - /// - /// - /// Pricesheet download details. - /// Serialized Name: PriceSheetResult.properties.download - /// - /// - /// The etag for the resource. - /// Serialized Name: Resource.etag - /// - /// - /// Resource tags. - /// Serialized Name: Resource.tags - /// + /// Price sheet. + /// The link (url) to the next page of results. + /// Pricesheet download details. + /// The etag for the resource. + /// Resource tags. internal PriceSheetResult(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IReadOnlyList pricesheets, string nextLink, ConsumptionMeterDetails download, ETag? etag, IReadOnlyDictionary tags) : base(id, name, resourceType, systemData) { Pricesheets = pricesheets; @@ -59,30 +41,15 @@ internal PriceSheetResult(ResourceIdentifier id, string name, ResourceType resou Tags = tags; } - /// - /// Price sheet - /// Serialized Name: PriceSheetResult.properties.pricesheets - /// + /// Price sheet. public IReadOnlyList Pricesheets { get; } - /// - /// The link (url) to the next page of results. - /// Serialized Name: PriceSheetResult.properties.nextLink - /// + /// The link (url) to the next page of results. public string NextLink { get; } - /// - /// Pricesheet download details. - /// Serialized Name: PriceSheetResult.properties.download - /// + /// Pricesheet download details. public ConsumptionMeterDetails Download { get; } - /// - /// The etag for the resource. - /// Serialized Name: Resource.etag - /// + /// The etag for the resource. public ETag? ETag { get; } - /// - /// Resource tags. - /// Serialized Name: Resource.tags - /// + /// Resource tags. public IReadOnlyDictionary Tags { get; } } } diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/RecipientNotificationLanguageCode.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/RecipientNotificationLanguageCode.cs index 6efe06c389fe7..42a3cb0637405 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/RecipientNotificationLanguageCode.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/RecipientNotificationLanguageCode.cs @@ -10,10 +10,7 @@ namespace Azure.ResourceManager.Consumption.Models { - /// - /// Language in which the recipient will receive the notification - /// Serialized Name: CultureCode - /// + /// Language in which the recipient will receive the notification. public readonly partial struct RecipientNotificationLanguageCode : IEquatable { private readonly string _value; @@ -47,110 +44,47 @@ public RecipientNotificationLanguageCode(string value) private const string PortuguesePortugalValue = "pt-pt"; private const string SwedishSwedenValue = "sv-se"; - /// - /// en-us - /// Serialized Name: CultureCode.en-us - /// + /// en-us. public static RecipientNotificationLanguageCode EnglishUnitedStates { get; } = new RecipientNotificationLanguageCode(EnglishUnitedStatesValue); - /// - /// ja-jp - /// Serialized Name: CultureCode.ja-jp - /// + /// ja-jp. public static RecipientNotificationLanguageCode JapaneseJapan { get; } = new RecipientNotificationLanguageCode(JapaneseJapanValue); - /// - /// zh-cn - /// Serialized Name: CultureCode.zh-cn - /// + /// zh-cn. public static RecipientNotificationLanguageCode ChinesePrc { get; } = new RecipientNotificationLanguageCode(ChinesePrcValue); - /// - /// de-de - /// Serialized Name: CultureCode.de-de - /// + /// de-de. public static RecipientNotificationLanguageCode GermanGermany { get; } = new RecipientNotificationLanguageCode(GermanGermanyValue); - /// - /// es-es - /// Serialized Name: CultureCode.es-es - /// + /// es-es. public static RecipientNotificationLanguageCode SpanishSpain { get; } = new RecipientNotificationLanguageCode(SpanishSpainValue); - /// - /// fr-fr - /// Serialized Name: CultureCode.fr-fr - /// + /// fr-fr. public static RecipientNotificationLanguageCode FrenchFrance { get; } = new RecipientNotificationLanguageCode(FrenchFranceValue); - /// - /// it-it - /// Serialized Name: CultureCode.it-it - /// + /// it-it. public static RecipientNotificationLanguageCode ItalianItaly { get; } = new RecipientNotificationLanguageCode(ItalianItalyValue); - /// - /// ko-kr - /// Serialized Name: CultureCode.ko-kr - /// + /// ko-kr. public static RecipientNotificationLanguageCode KoreanKorea { get; } = new RecipientNotificationLanguageCode(KoreanKoreaValue); - /// - /// pt-br - /// Serialized Name: CultureCode.pt-br - /// + /// pt-br. public static RecipientNotificationLanguageCode PortugueseBrazil { get; } = new RecipientNotificationLanguageCode(PortugueseBrazilValue); - /// - /// ru-ru - /// Serialized Name: CultureCode.ru-ru - /// + /// ru-ru. public static RecipientNotificationLanguageCode RussianRussia { get; } = new RecipientNotificationLanguageCode(RussianRussiaValue); - /// - /// zh-tw - /// Serialized Name: CultureCode.zh-tw - /// + /// zh-tw. public static RecipientNotificationLanguageCode ChineseTaiwan { get; } = new RecipientNotificationLanguageCode(ChineseTaiwanValue); - /// - /// cs-cz - /// Serialized Name: CultureCode.cs-cz - /// + /// cs-cz. public static RecipientNotificationLanguageCode CzechCzechRepublic { get; } = new RecipientNotificationLanguageCode(CzechCzechRepublicValue); - /// - /// pl-pl - /// Serialized Name: CultureCode.pl-pl - /// + /// pl-pl. public static RecipientNotificationLanguageCode PolishPoland { get; } = new RecipientNotificationLanguageCode(PolishPolandValue); - /// - /// tr-tr - /// Serialized Name: CultureCode.tr-tr - /// + /// tr-tr. public static RecipientNotificationLanguageCode TurkishTurkey { get; } = new RecipientNotificationLanguageCode(TurkishTurkeyValue); - /// - /// da-dk - /// Serialized Name: CultureCode.da-dk - /// + /// da-dk. public static RecipientNotificationLanguageCode DanishDenmark { get; } = new RecipientNotificationLanguageCode(DanishDenmarkValue); - /// - /// en-gb - /// Serialized Name: CultureCode.en-gb - /// + /// en-gb. public static RecipientNotificationLanguageCode EnglishUnitedKingdom { get; } = new RecipientNotificationLanguageCode(EnglishUnitedKingdomValue); - /// - /// hu-hu - /// Serialized Name: CultureCode.hu-hu - /// + /// hu-hu. public static RecipientNotificationLanguageCode HungarianHungary { get; } = new RecipientNotificationLanguageCode(HungarianHungaryValue); - /// - /// nb-no - /// Serialized Name: CultureCode.nb-no - /// + /// nb-no. public static RecipientNotificationLanguageCode NorwegianNorway { get; } = new RecipientNotificationLanguageCode(NorwegianNorwayValue); - /// - /// nl-nl - /// Serialized Name: CultureCode.nl-nl - /// + /// nl-nl. public static RecipientNotificationLanguageCode DutchNetherlands { get; } = new RecipientNotificationLanguageCode(DutchNetherlandsValue); - /// - /// pt-pt - /// Serialized Name: CultureCode.pt-pt - /// + /// pt-pt. public static RecipientNotificationLanguageCode PortuguesePortugal { get; } = new RecipientNotificationLanguageCode(PortuguesePortugalValue); - /// - /// sv-se - /// Serialized Name: CultureCode.sv-se - /// + /// sv-se. public static RecipientNotificationLanguageCode SwedishSweden { get; } = new RecipientNotificationLanguageCode(SwedishSwedenValue); /// Determines if two values are the same. public static bool operator ==(RecipientNotificationLanguageCode left, RecipientNotificationLanguageCode right) => left.Equals(right); diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ReservationDetailsListResult.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ReservationDetailsListResult.cs index 394fdabe4dbd2..2c1e8dea07f49 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ReservationDetailsListResult.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ReservationDetailsListResult.cs @@ -10,10 +10,7 @@ namespace Azure.ResourceManager.Consumption.Models { - /// - /// Result of listing reservation details. - /// Serialized Name: ReservationDetailsListResult - /// + /// Result of listing reservation details. internal partial class ReservationDetailsListResult { /// Initializes a new instance of ReservationDetailsListResult. @@ -23,29 +20,17 @@ internal ReservationDetailsListResult() } /// Initializes a new instance of ReservationDetailsListResult. - /// - /// The list of reservation details. - /// Serialized Name: ReservationDetailsListResult.value - /// - /// - /// The link (url) to the next page of results. - /// Serialized Name: ReservationDetailsListResult.nextLink - /// + /// The list of reservation details. + /// The link (url) to the next page of results. internal ReservationDetailsListResult(IReadOnlyList value, string nextLink) { Value = value; NextLink = nextLink; } - /// - /// The list of reservation details. - /// Serialized Name: ReservationDetailsListResult.value - /// + /// The list of reservation details. public IReadOnlyList Value { get; } - /// - /// The link (url) to the next page of results. - /// Serialized Name: ReservationDetailsListResult.nextLink - /// + /// The link (url) to the next page of results. public string NextLink { get; } } } diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ReservationRecommendationKind.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ReservationRecommendationKind.cs index e9419bf7c01f6..fb58c38d544c6 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ReservationRecommendationKind.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ReservationRecommendationKind.cs @@ -10,10 +10,7 @@ namespace Azure.ResourceManager.Consumption.Models { - /// - /// Specifies the kind of reservation recommendation. - /// Serialized Name: ReservationRecommendationKind - /// + /// Specifies the kind of reservation recommendation. internal readonly partial struct ReservationRecommendationKind : IEquatable { private readonly string _value; @@ -28,15 +25,9 @@ public ReservationRecommendationKind(string value) private const string LegacyValue = "legacy"; private const string ModernValue = "modern"; - /// - /// legacy - /// Serialized Name: ReservationRecommendationKind.legacy - /// + /// legacy. public static ReservationRecommendationKind Legacy { get; } = new ReservationRecommendationKind(LegacyValue); - /// - /// modern - /// Serialized Name: ReservationRecommendationKind.modern - /// + /// modern. public static ReservationRecommendationKind Modern { get; } = new ReservationRecommendationKind(ModernValue); /// Determines if two values are the same. public static bool operator ==(ReservationRecommendationKind left, ReservationRecommendationKind right) => left.Equals(right); diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ReservationRecommendationsListResult.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ReservationRecommendationsListResult.cs index 1e98e512aa83a..5f8193746c128 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ReservationRecommendationsListResult.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ReservationRecommendationsListResult.cs @@ -10,10 +10,7 @@ namespace Azure.ResourceManager.Consumption.Models { - /// - /// Result of listing reservation recommendations. - /// Serialized Name: ReservationRecommendationsListResult - /// + /// Result of listing reservation recommendations. internal partial class ReservationRecommendationsListResult { /// Initializes a new instance of ReservationRecommendationsListResult. @@ -25,18 +22,11 @@ internal ReservationRecommendationsListResult() /// Initializes a new instance of ReservationRecommendationsListResult. /// /// The list of reservation recommendations. - /// Serialized Name: ReservationRecommendationsListResult.value /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. /// The available derived classes include and . /// - /// - /// The link (url) to the next page of results. - /// Serialized Name: ReservationRecommendationsListResult.nextLink - /// - /// - /// The link (url) to the previous page of results. - /// Serialized Name: ReservationRecommendationsListResult.previousLink - /// + /// The link (url) to the next page of results. + /// The link (url) to the previous page of results. internal ReservationRecommendationsListResult(IReadOnlyList value, string nextLink, string previousLink) { Value = value; @@ -46,20 +36,13 @@ internal ReservationRecommendationsListResult(IReadOnlyList /// The list of reservation recommendations. - /// Serialized Name: ReservationRecommendationsListResult.value /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. /// The available derived classes include and . /// public IReadOnlyList Value { get; } - /// - /// The link (url) to the next page of results. - /// Serialized Name: ReservationRecommendationsListResult.nextLink - /// + /// The link (url) to the next page of results. public string NextLink { get; } - /// - /// The link (url) to the previous page of results. - /// Serialized Name: ReservationRecommendationsListResult.previousLink - /// + /// The link (url) to the previous page of results. public string PreviousLink { get; } } } diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ReservationSummariesListResult.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ReservationSummariesListResult.cs index 8912ed00634d6..f8b91536ec718 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ReservationSummariesListResult.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ReservationSummariesListResult.cs @@ -10,10 +10,7 @@ namespace Azure.ResourceManager.Consumption.Models { - /// - /// Result of listing reservation summaries. - /// Serialized Name: ReservationSummariesListResult - /// + /// Result of listing reservation summaries. internal partial class ReservationSummariesListResult { /// Initializes a new instance of ReservationSummariesListResult. @@ -23,29 +20,17 @@ internal ReservationSummariesListResult() } /// Initializes a new instance of ReservationSummariesListResult. - /// - /// The list of reservation summaries. - /// Serialized Name: ReservationSummariesListResult.value - /// - /// - /// The link (url) to the next page of results. - /// Serialized Name: ReservationSummariesListResult.nextLink - /// + /// The list of reservation summaries. + /// The link (url) to the next page of results. internal ReservationSummariesListResult(IReadOnlyList value, string nextLink) { Value = value; NextLink = nextLink; } - /// - /// The list of reservation summaries. - /// Serialized Name: ReservationSummariesListResult.value - /// + /// The list of reservation summaries. public IReadOnlyList Value { get; } - /// - /// The link (url) to the next page of results. - /// Serialized Name: ReservationSummariesListResult.nextLink - /// + /// The link (url) to the next page of results. public string NextLink { get; } } } diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ReservationSummaryDataGrain.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ReservationSummaryDataGrain.cs index 2399d96928f83..16eba6cec2a28 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ReservationSummaryDataGrain.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ReservationSummaryDataGrain.cs @@ -10,10 +10,7 @@ namespace Azure.ResourceManager.Consumption.Models { - /// - /// The ReservationSummaryDataGrain. - /// Serialized Name: Datagrain - /// + /// The ReservationSummaryDataGrain. public readonly partial struct ReservationSummaryDataGrain : IEquatable { private readonly string _value; @@ -28,15 +25,9 @@ public ReservationSummaryDataGrain(string value) private const string DailyGrainValue = "daily"; private const string MonthlyGrainValue = "monthly"; - /// - /// Daily grain of data - /// Serialized Name: Datagrain.daily - /// + /// Daily grain of data. public static ReservationSummaryDataGrain DailyGrain { get; } = new ReservationSummaryDataGrain(DailyGrainValue); - /// - /// Monthly grain of data - /// Serialized Name: Datagrain.monthly - /// + /// Monthly grain of data. public static ReservationSummaryDataGrain MonthlyGrain { get; } = new ReservationSummaryDataGrain(MonthlyGrainValue); /// Determines if two values are the same. public static bool operator ==(ReservationSummaryDataGrain left, ReservationSummaryDataGrain right) => left.Equals(right); diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ReservationTransactionsListResult.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ReservationTransactionsListResult.cs index 9c0f94e1756ad..1b2bcc6427b7d 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ReservationTransactionsListResult.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ReservationTransactionsListResult.cs @@ -10,10 +10,7 @@ namespace Azure.ResourceManager.Consumption.Models { - /// - /// Result of listing reservation recommendations. - /// Serialized Name: ReservationTransactionsListResult - /// + /// Result of listing reservation recommendations. internal partial class ReservationTransactionsListResult { /// Initializes a new instance of ReservationTransactionsListResult. @@ -23,29 +20,17 @@ internal ReservationTransactionsListResult() } /// Initializes a new instance of ReservationTransactionsListResult. - /// - /// The list of reservation recommendations. - /// Serialized Name: ReservationTransactionsListResult.value - /// - /// - /// The link (url) to the next page of results. - /// Serialized Name: ReservationTransactionsListResult.nextLink - /// + /// The list of reservation recommendations. + /// The link (url) to the next page of results. internal ReservationTransactionsListResult(IReadOnlyList value, string nextLink) { Value = value; NextLink = nextLink; } - /// - /// The list of reservation recommendations. - /// Serialized Name: ReservationTransactionsListResult.value - /// + /// The list of reservation recommendations. public IReadOnlyList Value { get; } - /// - /// The link (url) to the next page of results. - /// Serialized Name: ReservationTransactionsListResult.nextLink - /// + /// The link (url) to the next page of results. public string NextLink { get; } } } diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/UsageDetailsKind.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/UsageDetailsKind.cs index 4a7a483d2df15..11b66bbe0913a 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/UsageDetailsKind.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/UsageDetailsKind.cs @@ -10,10 +10,7 @@ namespace Azure.ResourceManager.Consumption.Models { - /// - /// Specifies the kind of usage details. - /// Serialized Name: UsageDetailsKind - /// + /// Specifies the kind of usage details. internal readonly partial struct UsageDetailsKind : IEquatable { private readonly string _value; @@ -28,15 +25,9 @@ public UsageDetailsKind(string value) private const string LegacyValue = "legacy"; private const string ModernValue = "modern"; - /// - /// legacy - /// Serialized Name: UsageDetailsKind.legacy - /// + /// legacy. public static UsageDetailsKind Legacy { get; } = new UsageDetailsKind(LegacyValue); - /// - /// modern - /// Serialized Name: UsageDetailsKind.modern - /// + /// modern. public static UsageDetailsKind Modern { get; } = new UsageDetailsKind(ModernValue); /// Determines if two values are the same. public static bool operator ==(UsageDetailsKind left, UsageDetailsKind right) => left.Equals(right); diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/UsageDetailsListResult.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/UsageDetailsListResult.cs index caf0313056172..37622d1c301db 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/UsageDetailsListResult.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/UsageDetailsListResult.cs @@ -10,10 +10,7 @@ namespace Azure.ResourceManager.Consumption.Models { - /// - /// Result of listing usage details. It contains a list of available usage details in reverse chronological order by billing period. - /// Serialized Name: UsageDetailsListResult - /// + /// Result of listing usage details. It contains a list of available usage details in reverse chronological order by billing period. internal partial class UsageDetailsListResult { /// Initializes a new instance of UsageDetailsListResult. @@ -25,14 +22,10 @@ internal UsageDetailsListResult() /// Initializes a new instance of UsageDetailsListResult. /// /// The list of usage details. - /// Serialized Name: UsageDetailsListResult.value /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. /// The available derived classes include and . /// - /// - /// The link (url) to the next page of results. - /// Serialized Name: UsageDetailsListResult.nextLink - /// + /// The link (url) to the next page of results. internal UsageDetailsListResult(IReadOnlyList value, string nextLink) { Value = value; @@ -41,15 +34,11 @@ internal UsageDetailsListResult(IReadOnlyList value, str /// /// The list of usage details. - /// Serialized Name: UsageDetailsListResult.value /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. /// The available derived classes include and . /// public IReadOnlyList Value { get; } - /// - /// The link (url) to the next page of results. - /// Serialized Name: UsageDetailsListResult.nextLink - /// + /// The link (url) to the next page of results. public string NextLink { get; } } } diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/autorest.md b/sdk/consumption/Azure.ResourceManager.Consumption/src/autorest.md index 7d77da3e6ea28..4c3e6fbea4e90 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/autorest.md +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/autorest.md @@ -55,9 +55,6 @@ override-operation-name: Tags_Get: GetConsumptionTags UsageDetails_List: GetConsumptionUsageDetails -mgmt-debug: - show-serialized-names: true - format-by-name-rules: 'tenantId': 'uuid' 'ETag': 'etag' From 35c65e9a21ff8f7be5680c8e6530b87a38095daa Mon Sep 17 00:00:00 2001 From: Chengming Date: Wed, 19 Jul 2023 15:36:25 +0800 Subject: [PATCH 3/6] nullable all `meterID` related class --- ...egacyReservationRecommendation.Serialization.cs | 4 ++-- .../ConsumptionLegacyUsageDetail.Serialization.cs | 8 ++++---- ...odernReservationRecommendation.Serialization.cs | 4 ++-- .../ConsumptionModernUsageDetail.Serialization.cs | 14 +++++++------- .../src/autorest.md | 4 ++++ 5 files changed, 19 insertions(+), 15 deletions(-) diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionLegacyReservationRecommendation.Serialization.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionLegacyReservationRecommendation.Serialization.cs index d948343f01d55..f8d8f5c8c3ed9 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionLegacyReservationRecommendation.Serialization.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionLegacyReservationRecommendation.Serialization.cs @@ -157,7 +157,7 @@ internal static ConsumptionLegacyReservationRecommendation DeserializeConsumptio } if (property0.NameEquals("meterId"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) + if (property0.Value.ValueKind == JsonValueKind.Null || property0.Value.ValueKind == JsonValueKind.String && property0.Value.GetString().Length == 0) { continue; } @@ -207,7 +207,7 @@ internal static ConsumptionLegacyReservationRecommendation DeserializeConsumptio } if (property0.NameEquals("firstUsageDate"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) + if (property0.Value.ValueKind == JsonValueKind.Null || property0.Value.ValueKind == JsonValueKind.String && property0.Value.GetString().Length == 0) { continue; } diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionLegacyUsageDetail.Serialization.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionLegacyUsageDetail.Serialization.cs index 3e392ba1af6ed..19428894a9711 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionLegacyUsageDetail.Serialization.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionLegacyUsageDetail.Serialization.cs @@ -150,7 +150,7 @@ internal static ConsumptionLegacyUsageDetail DeserializeConsumptionLegacyUsageDe } if (property0.NameEquals("billingPeriodStartDate"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) + if (property0.Value.ValueKind == JsonValueKind.Null || property0.Value.ValueKind == JsonValueKind.String && property0.Value.GetString().Length == 0) { continue; } @@ -159,7 +159,7 @@ internal static ConsumptionLegacyUsageDetail DeserializeConsumptionLegacyUsageDe } if (property0.NameEquals("billingPeriodEndDate"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) + if (property0.Value.ValueKind == JsonValueKind.Null || property0.Value.ValueKind == JsonValueKind.String && property0.Value.GetString().Length == 0) { continue; } @@ -198,7 +198,7 @@ internal static ConsumptionLegacyUsageDetail DeserializeConsumptionLegacyUsageDe } if (property0.NameEquals("date"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) + if (property0.Value.ValueKind == JsonValueKind.Null || property0.Value.ValueKind == JsonValueKind.String && property0.Value.GetString().Length == 0) { continue; } @@ -217,7 +217,7 @@ internal static ConsumptionLegacyUsageDetail DeserializeConsumptionLegacyUsageDe } if (property0.NameEquals("meterId"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) + if (property0.Value.ValueKind == JsonValueKind.Null || property0.Value.ValueKind == JsonValueKind.String && property0.Value.GetString().Length == 0) { continue; } diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionModernReservationRecommendation.Serialization.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionModernReservationRecommendation.Serialization.cs index 5beb0a154d494..8163d11cac3c6 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionModernReservationRecommendation.Serialization.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionModernReservationRecommendation.Serialization.cs @@ -168,7 +168,7 @@ internal static ConsumptionModernReservationRecommendation DeserializeConsumptio } if (property0.NameEquals("meterId"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) + if (property0.Value.ValueKind == JsonValueKind.Null || property0.Value.ValueKind == JsonValueKind.String && property0.Value.GetString().Length == 0) { continue; } @@ -218,7 +218,7 @@ internal static ConsumptionModernReservationRecommendation DeserializeConsumptio } if (property0.NameEquals("firstUsageDate"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) + if (property0.Value.ValueKind == JsonValueKind.Null || property0.Value.ValueKind == JsonValueKind.String && property0.Value.GetString().Length == 0) { continue; } diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionModernUsageDetail.Serialization.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionModernUsageDetail.Serialization.cs index dd2058488c72e..184756ffc1ef8 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionModernUsageDetail.Serialization.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/ConsumptionModernUsageDetail.Serialization.cs @@ -194,7 +194,7 @@ internal static ConsumptionModernUsageDetail DeserializeConsumptionModernUsageDe } if (property0.NameEquals("billingPeriodStartDate"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) + if (property0.Value.ValueKind == JsonValueKind.Null || property0.Value.ValueKind == JsonValueKind.String && property0.Value.GetString().Length == 0) { continue; } @@ -203,7 +203,7 @@ internal static ConsumptionModernUsageDetail DeserializeConsumptionModernUsageDe } if (property0.NameEquals("billingPeriodEndDate"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) + if (property0.Value.ValueKind == JsonValueKind.Null || property0.Value.ValueKind == JsonValueKind.String && property0.Value.GetString().Length == 0) { continue; } @@ -232,7 +232,7 @@ internal static ConsumptionModernUsageDetail DeserializeConsumptionModernUsageDe } if (property0.NameEquals("date"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) + if (property0.Value.ValueKind == JsonValueKind.Null || property0.Value.ValueKind == JsonValueKind.String && property0.Value.GetString().Length == 0) { continue; } @@ -246,7 +246,7 @@ internal static ConsumptionModernUsageDetail DeserializeConsumptionModernUsageDe } if (property0.NameEquals("meterId"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) + if (property0.Value.ValueKind == JsonValueKind.Null || property0.Value.ValueKind == JsonValueKind.String && property0.Value.GetString().Length == 0) { continue; } @@ -444,7 +444,7 @@ internal static ConsumptionModernUsageDetail DeserializeConsumptionModernUsageDe } if (property0.NameEquals("exchangeRateDate"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) + if (property0.Value.ValueKind == JsonValueKind.Null || property0.Value.ValueKind == JsonValueKind.String && property0.Value.GetString().Length == 0) { continue; } @@ -478,7 +478,7 @@ internal static ConsumptionModernUsageDetail DeserializeConsumptionModernUsageDe } if (property0.NameEquals("servicePeriodStartDate"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) + if (property0.Value.ValueKind == JsonValueKind.Null || property0.Value.ValueKind == JsonValueKind.String && property0.Value.GetString().Length == 0) { continue; } @@ -487,7 +487,7 @@ internal static ConsumptionModernUsageDetail DeserializeConsumptionModernUsageDe } if (property0.NameEquals("servicePeriodEndDate"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) + if (property0.Value.ValueKind == JsonValueKind.Null || property0.Value.ValueKind == JsonValueKind.String && property0.Value.GetString().Length == 0) { continue; } diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/autorest.md b/sdk/consumption/Azure.ResourceManager.Consumption/src/autorest.md index 4c3e6fbea4e90..7d7aceabfb307 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/autorest.md +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/autorest.md @@ -86,7 +86,11 @@ rename-rules: Etag: ETag|etag models-to-treat-empty-string-as-null: + - ConsumptionLegacyReservationRecommendation + - ConsumptionLegacyUsageDetail - ConsumptionMarketplace + - ConsumptionModernReservationRecommendation + - ConsumptionModernUsageDetail rename-mapping: Budget: ConsumptionBudget From 129bcf88dd66acd6df7131848917867f06002e9c Mon Sep 17 00:00:00 2001 From: Chengming Date: Thu, 20 Jul 2023 10:12:42 +0800 Subject: [PATCH 4/6] add PriceSheetProperties to nullable config --- .../Generated/Models/PriceSheetProperties.Serialization.cs | 4 ++-- .../Azure.ResourceManager.Consumption/src/autorest.md | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/PriceSheetProperties.Serialization.cs b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/PriceSheetProperties.Serialization.cs index 2abbf04bbf14a..1e2a8a22cb7a6 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/PriceSheetProperties.Serialization.cs +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/Generated/Models/PriceSheetProperties.Serialization.cs @@ -32,7 +32,7 @@ internal static PriceSheetProperties DeserializePriceSheetProperties(JsonElement { if (property.NameEquals("billingPeriodId"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (property.Value.ValueKind == JsonValueKind.Null || property.Value.ValueKind == JsonValueKind.String && property.Value.GetString().Length == 0) { continue; } @@ -41,7 +41,7 @@ internal static PriceSheetProperties DeserializePriceSheetProperties(JsonElement } if (property.NameEquals("meterId"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) + if (property.Value.ValueKind == JsonValueKind.Null || property.Value.ValueKind == JsonValueKind.String && property.Value.GetString().Length == 0) { continue; } diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/src/autorest.md b/sdk/consumption/Azure.ResourceManager.Consumption/src/autorest.md index 7d7aceabfb307..b27766e740ff6 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/src/autorest.md +++ b/sdk/consumption/Azure.ResourceManager.Consumption/src/autorest.md @@ -91,6 +91,7 @@ models-to-treat-empty-string-as-null: - ConsumptionMarketplace - ConsumptionModernReservationRecommendation - ConsumptionModernUsageDetail + - PriceSheetProperties rename-mapping: Budget: ConsumptionBudget From 10f7c0b1598ef592e2b47f1cc4fd049ff78bc9a5 Mon Sep 17 00:00:00 2001 From: Chengming Date: Thu, 20 Jul 2023 10:30:43 +0800 Subject: [PATCH 5/6] Update CHANGELOG.md --- sdk/consumption/Azure.ResourceManager.Consumption/CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/CHANGELOG.md b/sdk/consumption/Azure.ResourceManager.Consumption/CHANGELOG.md index c4106f15d99bd..b9281cc1a03dd 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/CHANGELOG.md +++ b/sdk/consumption/Azure.ResourceManager.Consumption/CHANGELOG.md @@ -8,6 +8,8 @@ ### Bugs Fixed +- Fixed all `meterId` serialization issue + ### Other Changes ## 1.1.0-beta.1 (2023-05-29) From 249dc74b5b373359dc29ce5c2453a00e113ac00d Mon Sep 17 00:00:00 2001 From: Chengming Date: Thu, 20 Jul 2023 10:31:57 +0800 Subject: [PATCH 6/6] Update CHANGELOG.md --- sdk/consumption/Azure.ResourceManager.Consumption/CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/consumption/Azure.ResourceManager.Consumption/CHANGELOG.md b/sdk/consumption/Azure.ResourceManager.Consumption/CHANGELOG.md index b9281cc1a03dd..a6b07cce51dda 100644 --- a/sdk/consumption/Azure.ResourceManager.Consumption/CHANGELOG.md +++ b/sdk/consumption/Azure.ResourceManager.Consumption/CHANGELOG.md @@ -8,7 +8,7 @@ ### Bugs Fixed -- Fixed all `meterId` serialization issue +- Fixed all `meterId` serialization issues ### Other Changes