ArmConsumptionModelFactory.ConsumptionLegacyUsageDetail Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of ConsumptionLegacyUsageDetail.
public static Azure.ResourceManager.Consumption.Models.ConsumptionLegacyUsageDetail ConsumptionLegacyUsageDetail (Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, Azure.ETag? etag = default, System.Collections.Generic.IReadOnlyDictionary<string,string> tags = default, string billingAccountId = default, string billingAccountName = default, DateTimeOffset? billingPeriodStartOn = default, DateTimeOffset? billingPeriodEndOn = default, string billingProfileId = default, string billingProfileName = default, string accountOwnerId = default, string accountName = default, string subscriptionId = default, string subscriptionName = default, DateTimeOffset? on = default, string product = default, string partNumber = default, Guid? meterId = default, Azure.ResourceManager.Consumption.Models.ConsumptionMeterDetailsInfo meterDetails = default, decimal? quantity = default, decimal? effectivePrice = default, decimal? cost = default, decimal? unitPrice = default, string billingCurrency = default, string resourceLocation = default, string consumedService = default, string resourceId = default, string resourceName = default, string serviceInfo1 = default, string serviceInfo2 = default, string additionalInfo = default, string invoiceSection = default, string costCenter = default, string resourceGroup = default, string reservationId = default, string reservationName = default, string productOrderId = default, string productOrderName = default, string offerId = default, bool? isAzureCreditEligible = default, string term = default, string publisherName = default, string publisherType = default, string planName = default, string chargeType = default, string frequency = default, decimal? payGPrice = default, string benefitId = default, string benefitName = default, Azure.ResourceManager.Consumption.Models.ConsumptionPricingModelType? pricingModel = default);
static member ConsumptionLegacyUsageDetail : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * Nullable<Azure.ETag> * System.Collections.Generic.IReadOnlyDictionary<string, string> * string * string * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * string * string * string * string * string * string * Nullable<DateTimeOffset> * string * string * Nullable<Guid> * Azure.ResourceManager.Consumption.Models.ConsumptionMeterDetailsInfo * Nullable<decimal> * Nullable<decimal> * Nullable<decimal> * Nullable<decimal> * string * string * string * string * string * string * string * string * string * string * string * string * string * string * string * string * Nullable<bool> * string * string * string * string * string * string * Nullable<decimal> * string * string * Nullable<Azure.ResourceManager.Consumption.Models.ConsumptionPricingModelType> -> Azure.ResourceManager.Consumption.Models.ConsumptionLegacyUsageDetail
Public Shared Function ConsumptionLegacyUsageDetail (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional etag As Nullable(Of ETag) = Nothing, Optional tags As IReadOnlyDictionary(Of String, String) = Nothing, Optional billingAccountId As String = Nothing, Optional billingAccountName As String = Nothing, Optional billingPeriodStartOn As Nullable(Of DateTimeOffset) = Nothing, Optional billingPeriodEndOn As Nullable(Of DateTimeOffset) = Nothing, Optional billingProfileId As String = Nothing, Optional billingProfileName As String = Nothing, Optional accountOwnerId As String = Nothing, Optional accountName As String = Nothing, Optional subscriptionId As String = Nothing, Optional subscriptionName As String = Nothing, Optional on As Nullable(Of DateTimeOffset) = Nothing, Optional product As String = Nothing, Optional partNumber As String = Nothing, Optional meterId As Nullable(Of Guid) = Nothing, Optional meterDetails As ConsumptionMeterDetailsInfo = Nothing, Optional quantity As Nullable(Of Decimal) = Nothing, Optional effectivePrice As Nullable(Of Decimal) = Nothing, Optional cost As Nullable(Of Decimal) = Nothing, Optional unitPrice As Nullable(Of Decimal) = Nothing, Optional billingCurrency As String = Nothing, Optional resourceLocation As String = Nothing, Optional consumedService As String = Nothing, Optional resourceId As String = Nothing, Optional resourceName As String = Nothing, Optional serviceInfo1 As String = Nothing, Optional serviceInfo2 As String = Nothing, Optional additionalInfo As String = Nothing, Optional invoiceSection As String = Nothing, Optional costCenter As String = Nothing, Optional resourceGroup As String = Nothing, Optional reservationId As String = Nothing, Optional reservationName As String = Nothing, Optional productOrderId As String = Nothing, Optional productOrderName As String = Nothing, Optional offerId As String = Nothing, Optional isAzureCreditEligible As Nullable(Of Boolean) = Nothing, Optional term As String = Nothing, Optional publisherName As String = Nothing, Optional publisherType As String = Nothing, Optional planName As String = Nothing, Optional chargeType As String = Nothing, Optional frequency As String = Nothing, Optional payGPrice As Nullable(Of Decimal) = Nothing, Optional benefitId As String = Nothing, Optional benefitName As String = Nothing, Optional pricingModel As Nullable(Of ConsumptionPricingModelType) = Nothing) As ConsumptionLegacyUsageDetail
Parameters
The id.
- name
- String
The name.
- resourceType
- ResourceType
The resourceType.
- systemData
- SystemData
The systemData.
- tags
- IReadOnlyDictionary<String,String>
Resource tags.
- billingAccountId
- String
Billing Account identifier.
- billingAccountName
- String
Billing Account Name.
- billingPeriodStartOn
- Nullable<DateTimeOffset>
The billing period start date.
- billingPeriodEndOn
- Nullable<DateTimeOffset>
The billing period end date.
- billingProfileId
- String
Billing Profile identifier.
- billingProfileName
- String
Billing Profile Name.
- accountOwnerId
- String
Account Owner Id.
- accountName
- String
Account Name.
- subscriptionId
- String
Subscription guid.
- subscriptionName
- String
Subscription name.
Date for the usage record.
- product
- String
Product name for the consumed service or purchase. Not available for Marketplace.
- partNumber
- String
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.
- meterDetails
- ConsumptionMeterDetailsInfo
The details about the meter. By default this is not populated, unless it's specified in $expand.
Unit Price is the price applicable to you. (your EA or other contract price).
- billingCurrency
- String
Billing Currency.
- resourceLocation
- String
Resource Location.
- consumedService
- String
Consumed service name. Name of the azure resource provider that emits the usage or was purchased. This value is not provided for marketplace usage.
- resourceId
- String
Unique identifier of the Azure Resource Manager usage detail resource.
- resourceName
- String
Resource Name.
- serviceInfo1
- String
Service-specific metadata.
- serviceInfo2
- String
Legacy field with optional service-specific metadata.
- additionalInfo
- String
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.
- invoiceSection
- String
Invoice Section Name.
- costCenter
- String
The cost center of this department if it is a department and a cost center is provided.
- resourceGroup
- String
Resource Group Name.
- reservationId
- String
ARM resource id of the reservation. Only applies to records relevant to reservations.
- reservationName
- String
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.
- productOrderId
- String
Product Order Id. For reservations this is the Reservation Order ID.
- productOrderName
- String
Product Order Name. For reservations this is the SKU that was purchased.
- offerId
- String
Offer Id. Ex: MS-AZR-0017P, MS-AZR-0148P.
- term
- String
Term (in months). 1 month for monthly recurring purchase. 12 months for a 1 year reservation. 36 months for a 3 year reservation.
- publisherName
- String
Publisher Name.
- publisherType
- String
Publisher Type.
- planName
- String
Plan Name.
- chargeType
- String
Indicates a charge represents credits, usage, a Marketplace purchase, a reservation fee, or a refund.
- frequency
- String
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.
- benefitId
- String
Unique identifier for the applicable benefit.
- benefitName
- String
Name of the applicable benefit.
- pricingModel
- Nullable<ConsumptionPricingModelType>
Identifier that indicates how the meter is priced.
Returns
A new ConsumptionLegacyUsageDetail instance for mocking.
Applies to
Azure SDK for .NET