你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ArmConsumptionModelFactory.ConsumptionReservationDetail 方法

定义

初始化 ConsumptionReservationDetail 的新实例。

public static Azure.ResourceManager.Consumption.Models.ConsumptionReservationDetail ConsumptionReservationDetail (Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, string reservationOrderId = default, string instanceFlexibilityRatio = default, string instanceFlexibilityGroup = default, string reservationId = default, string skuName = default, decimal? reservedHours = default, DateTimeOffset? consumptionOccurredOn = default, decimal? usedHours = default, Azure.Core.ResourceIdentifier instanceId = default, decimal? totalReservedQuantity = default, string kind = default, Azure.ETag? etag = default, System.Collections.Generic.IReadOnlyDictionary<string,string> tags = default);
static member ConsumptionReservationDetail : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * string * string * string * string * string * Nullable<decimal> * Nullable<DateTimeOffset> * Nullable<decimal> * Azure.Core.ResourceIdentifier * Nullable<decimal> * string * Nullable<Azure.ETag> * System.Collections.Generic.IReadOnlyDictionary<string, string> -> Azure.ResourceManager.Consumption.Models.ConsumptionReservationDetail
Public Shared Function ConsumptionReservationDetail (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional reservationOrderId As String = Nothing, Optional instanceFlexibilityRatio As String = Nothing, Optional instanceFlexibilityGroup As String = Nothing, Optional reservationId As String = Nothing, Optional skuName As String = Nothing, Optional reservedHours As Nullable(Of Decimal) = Nothing, Optional consumptionOccurredOn As Nullable(Of DateTimeOffset) = Nothing, Optional usedHours As Nullable(Of Decimal) = Nothing, Optional instanceId As ResourceIdentifier = Nothing, Optional totalReservedQuantity As Nullable(Of Decimal) = Nothing, Optional kind As String = Nothing, Optional etag As Nullable(Of ETag) = Nothing, Optional tags As IReadOnlyDictionary(Of String, String) = Nothing) As ConsumptionReservationDetail

参数

name
String

名称。

resourceType
ResourceType

resourceType。

systemData
SystemData

systemData。

reservationOrderId
String

预留订单 ID 是预留购买的标识符。 每个预留订单 ID 表示单个购买交易。 预留订单包含预留。 预留顺序指定预留的 VM 大小和区域。 序列化名称:ConsumptionReservationDetail.properties.reservationOrderId

instanceFlexibilityRatio
String

实例灵活性比率。 序列化名称:ConsumptionReservationDetail.properties.instanceFlexibilityRatio

instanceFlexibilityGroup
String

实例灵活性组。 序列化名称:ConsumptionReservationDetail.properties.instanceFlexibilityGroup

reservationId
String

预留 ID 是预留订单中预留的标识符。 每个预留是用于应用权益范围的分组,还指定可应用预留权益的实例数。 序列化名称:ConsumptionReservationDetail.properties.reservationId

skuName
String

这是 ARM SKU 名称。 它可用于与使用情况记录中其他信息中的 serviceType 字段联接。 序列化名称:ConsumptionReservationDetail.properties.skuName

reservedHours
Nullable<Decimal>

这是为当天保留的总小时数。 例如,如果在下午 1 点预留了 1 个实例,则这一天为 11 小时,从后续日期开始为 24 小时。 序列化名称:ConsumptionReservationDetail.properties.reservedHours

consumptionOccurredOn
Nullable<DateTimeOffset>

产生消耗的日期。 序列化名称:ConsumptionReservationDetail.properties.usageDate

usedHours
Nullable<Decimal>

这是实例使用的总小时数。 序列化名称:ConsumptionReservationDetail.properties.usedHours

instanceId
ResourceIdentifier

此标识符是资源名称或完全限定的资源 ID。 序列化名称:ConsumptionReservationDetail.properties.instanceId

totalReservedQuantity
Nullable<Decimal>

这是为 reservationId 保留的实例总数。 序列化名称:ConsumptionReservationDetail.properties.totalReservedQuantity

kind
String

预留类型。 序列化名称:ConsumptionReservationDetail.properties.kind

etag
Nullable<ETag>

资源的 etag。 序列化名称:Resource.etag

tags
IReadOnlyDictionary<String,String>

资源标记。 序列化名称:Resource.tags

返回

用于模拟的新 ConsumptionReservationDetail 实例。

适用于