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

BillingReservationData Class

Definition

A class representing the BillingReservation data model. The definition of the reservation.

public class BillingReservationData : Azure.ResourceManager.Models.TrackedResourceData, System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.Billing.BillingReservationData>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.Billing.BillingReservationData>
type BillingReservationData = class
    inherit TrackedResourceData
    interface IJsonModel<BillingReservationData>
    interface IPersistableModel<BillingReservationData>
Public Class BillingReservationData
Inherits TrackedResourceData
Implements IJsonModel(Of BillingReservationData), IPersistableModel(Of BillingReservationData)
Inheritance
BillingReservationData
Implements

Constructors

BillingReservationData(AzureLocation)

Initializes a new instance of BillingReservationData.

Properties

Aggregates

The array of aggregates of a reservation's utilization.

AppliedScopeProperties

Properties specific to applied scope type. Not required if not applicable. Required and need to provide tenantId and managementGroupId if AppliedScopeType is ManagementGroup.

AppliedScopes

The array of applied scopes of a reservation. Will be null if the reservation is in Shared scope.

AppliedScopeType

The applied scope type of the reservation.

BenefitStartOn

This is the DateTime when the reservation benefit started.

BillingPlan

The billing plan options available for this sku.

BillingScopeId

Subscription that will be charged for purchasing reservation or savings plan.

Capabilities

Capabilities of the reservation.

DisplayName

The display name of the reservation.

DisplayProvisioningState

The provisioning state of the reservation for display, e.g. Succeeded.

EffectiveOn

The effective date time of the reservation.

ETag

Gets or sets the e tag.

ExpireOn

The expiry date of the reservation.

ExtendedStatusInfo

The message giving detailed information about the status code.

Id

Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.

(Inherited from ResourceData)
InstanceFlexibility

Allows reservation discount to be applied across skus within the same auto fit group. Not all skus support instance size flexibility.

IsArchived

Indicates if the reservation is archived.

IsRenewed

The renew state of the reservation.

LastUpdatedOn

DateTime of the last time the reservation was updated.

Location

The geo-location where the resource lives.

(Inherited from TrackedResourceData)
MergeProperties

Properties of reservation merge.

Name

The name of the resource.

(Inherited from ResourceData)
ProductCode

Represents UPN.

ProvisioningState

The provisioning state of the reservation, e.g. Succeeded.

ProvisioningSubState

The provisioning state of the reservation, e.g. Succeeded.

PurchaseOn

This is the date when the reservation was purchased.

Quantity

The number of the reservation.

RenewDestination

Reservation Id of the reservation which is purchased because of renew. Format of the resource Id is /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}.

RenewProperties

The renew properties for a reservation.

RenewSource

The renew source of the reservation.

ReservationExpireOn

This is the date-time when the reservation will expire.

ReservationPurchaseOn

This is the date-time when the reservation was purchased.

ReservedResourceType

The reserved source type of the reservation, e.g. virtual machine.

ResourceType

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

(Inherited from ResourceData)
ReviewOn

This is the date-time when the Azure Hybrid Benefit needs to be reviewed.

SkuDescription

The sku description of the reservation.

SkuName

The name of the reservation sku.

SplitProperties

Properties of reservation split.

SwapProperties

Properties of reservation swap.

SystemData

Azure Resource Manager metadata containing createdBy and modifiedBy information.

(Inherited from ResourceData)
Tags

Resource tags.

(Inherited from TrackedResourceData)
Term

The term of the reservation, e.g. P1Y.

Trend

last 7 day utilization trend for a reservation.

UserFriendlyAppliedScopeType

The applied scope type of the reservation for display, e.g. Shared.

UserFriendlyRenewState

The renew state of the reservation for display, e.g. On.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions) (Inherited from TrackedResourceData)

Explicit Interface Implementations

IJsonModel<BillingReservationData>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<BillingReservationData>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<BillingReservationData>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<BillingReservationData>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<BillingReservationData>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to