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

ArmConsumptionModelFactory.ConsumptionResourceProperties 方法

定义

初始化 ConsumptionResourceProperties 的新实例。

public static Azure.ResourceManager.Consumption.Models.ConsumptionResourceProperties ConsumptionResourceProperties (System.Collections.Generic.IEnumerable<string> appliedScopes = default, float? onDemandRate = default, string product = default, string region = default, float? reservationRate = default, string resourceType = default);
static member ConsumptionResourceProperties : seq<string> * Nullable<single> * string * string * Nullable<single> * string -> Azure.ResourceManager.Consumption.Models.ConsumptionResourceProperties
Public Shared Function ConsumptionResourceProperties (Optional appliedScopes As IEnumerable(Of String) = Nothing, Optional onDemandRate As Nullable(Of Single) = Nothing, Optional product As String = Nothing, Optional region As String = Nothing, Optional reservationRate As Nullable(Of Single) = Nothing, Optional resourceType As String = Nothing) As ConsumptionResourceProperties

参数

appliedScopes
IEnumerable<String>

应用预留的订阅列表。 序列化名称:ReservationRecommendationDetailsResourceProperties.appliedScopes

onDemandRate
Nullable<Single>

资源的按需速率。 序列化名称:ReservationRecommendationDetailsResourceProperties.onDemandRate

product
String

Azure 产品示例:Standard_E8s_v3等。序列化名称:ReservationRecommendationDetailsResourceProperties.product

region
String

Azure 资源区域,例如:EastUS、WestUS 等。序列化名称:ReservationRecommendationDetailsResourceProperties.region

reservationRate
Nullable<Single>

资源的预留率。 序列化名称:ReservationRecommendationDetailsResourceProperties.reservationRate

resourceType
String

Azure 资源类型。 序列化名称:ReservationRecommendationDetailsResourceProperties.resourceType

返回

用于模拟的新 ConsumptionResourceProperties 实例。

适用于