-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
ConsumptionBalanceResult.cs
104 lines (98 loc) · 6.07 KB
/
ConsumptionBalanceResult.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System.Collections.Generic;
using Azure;
using Azure.Core;
using Azure.ResourceManager.Models;
namespace Azure.ResourceManager.Consumption.Models
{
/// <summary> A balance resource. </summary>
public partial class ConsumptionBalanceResult : ResourceData
{
/// <summary> Initializes a new instance of ConsumptionBalanceResult. </summary>
internal ConsumptionBalanceResult()
{
NewPurchasesDetails = new ChangeTrackingList<ConsumptionBalanceNewPurchasesDetail>();
AdjustmentDetails = new ChangeTrackingList<ConsumptionBalanceAdjustmentDetail>();
Tags = new ChangeTrackingDictionary<string, string>();
}
/// <summary> Initializes a new instance of ConsumptionBalanceResult. </summary>
/// <param name="id"> The id. </param>
/// <param name="name"> The name. </param>
/// <param name="resourceType"> The resourceType. </param>
/// <param name="systemData"> The systemData. </param>
/// <param name="currency"> The ISO currency in which the meter is charged, for example, USD. </param>
/// <param name="beginningBalance"> The beginning balance for the billing period. </param>
/// <param name="endingBalance"> The ending balance for the billing period (for open periods this will be updated daily). </param>
/// <param name="newPurchases"> Total new purchase amount. </param>
/// <param name="adjustments"> Total adjustment amount. </param>
/// <param name="utilized"> Total Commitment usage. </param>
/// <param name="serviceOverage"> Overage for Azure services. </param>
/// <param name="chargesBilledSeparately"> Charges Billed separately. </param>
/// <param name="totalOverage"> serviceOverage + chargesBilledSeparately. </param>
/// <param name="totalUsage"> Azure service commitment + total Overage. </param>
/// <param name="azureMarketplaceServiceCharges"> Total charges for Azure Marketplace. </param>
/// <param name="billingFrequency"> The billing frequency. </param>
/// <param name="isPriceHidden"> Price is hidden or not. </param>
/// <param name="newPurchasesDetails"> List of new purchases. </param>
/// <param name="adjustmentDetails"> List of Adjustments (Promo credit, SIE credit etc.). </param>
/// <param name="etag"> The etag for the resource. </param>
/// <param name="tags"> Resource tags. </param>
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<ConsumptionBalanceNewPurchasesDetail> newPurchasesDetails, IReadOnlyList<ConsumptionBalanceAdjustmentDetail> adjustmentDetails, ETag? etag, IReadOnlyDictionary<string, string> tags) : base(id, name, resourceType, systemData)
{
Currency = currency;
BeginningBalance = beginningBalance;
EndingBalance = endingBalance;
NewPurchases = newPurchases;
Adjustments = adjustments;
Utilized = utilized;
ServiceOverage = serviceOverage;
ChargesBilledSeparately = chargesBilledSeparately;
TotalOverage = totalOverage;
TotalUsage = totalUsage;
AzureMarketplaceServiceCharges = azureMarketplaceServiceCharges;
BillingFrequency = billingFrequency;
IsPriceHidden = isPriceHidden;
NewPurchasesDetails = newPurchasesDetails;
AdjustmentDetails = adjustmentDetails;
ETag = etag;
Tags = tags;
}
/// <summary> The ISO currency in which the meter is charged, for example, USD. </summary>
public string Currency { get; }
/// <summary> The beginning balance for the billing period. </summary>
public decimal? BeginningBalance { get; }
/// <summary> The ending balance for the billing period (for open periods this will be updated daily). </summary>
public decimal? EndingBalance { get; }
/// <summary> Total new purchase amount. </summary>
public decimal? NewPurchases { get; }
/// <summary> Total adjustment amount. </summary>
public decimal? Adjustments { get; }
/// <summary> Total Commitment usage. </summary>
public decimal? Utilized { get; }
/// <summary> Overage for Azure services. </summary>
public decimal? ServiceOverage { get; }
/// <summary> Charges Billed separately. </summary>
public decimal? ChargesBilledSeparately { get; }
/// <summary> serviceOverage + chargesBilledSeparately. </summary>
public decimal? TotalOverage { get; }
/// <summary> Azure service commitment + total Overage. </summary>
public decimal? TotalUsage { get; }
/// <summary> Total charges for Azure Marketplace. </summary>
public decimal? AzureMarketplaceServiceCharges { get; }
/// <summary> The billing frequency. </summary>
public ConsumptionBillingFrequency? BillingFrequency { get; }
/// <summary> Price is hidden or not. </summary>
public bool? IsPriceHidden { get; }
/// <summary> List of new purchases. </summary>
public IReadOnlyList<ConsumptionBalanceNewPurchasesDetail> NewPurchasesDetails { get; }
/// <summary> List of Adjustments (Promo credit, SIE credit etc.). </summary>
public IReadOnlyList<ConsumptionBalanceAdjustmentDetail> AdjustmentDetails { get; }
/// <summary> The etag for the resource. </summary>
public ETag? ETag { get; }
/// <summary> Resource tags. </summary>
public IReadOnlyDictionary<string, string> Tags { get; }
}
}