ArmReservationsModelFactory.ReservationOrderData Method

Definition

Initializes a new instance of ReservationOrderData.

public static Azure.ResourceManager.Reservations.ReservationOrderData ReservationOrderData (Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, int? version = default, string displayName = default, DateTimeOffset? requestOn = default, DateTimeOffset? createdOn = default, DateTimeOffset? expireOn = default, DateTimeOffset? reservationExpireOn = default, DateTimeOffset? benefitStartOn = default, int? originalQuantity = default, Azure.ResourceManager.Reservations.Models.ReservationTerm? term = default, Azure.ResourceManager.Reservations.Models.ReservationProvisioningState? provisioningState = default, Azure.ResourceManager.Reservations.Models.ReservationBillingPlan? billingPlan = default, Azure.ResourceManager.Reservations.Models.ReservationOrderBillingPlanInformation planInformation = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Reservations.ReservationDetailData> reservations = default, DateTimeOffset? reviewOn = default);
static member ReservationOrderData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * Nullable<int> * string * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * Nullable<int> * Nullable<Azure.ResourceManager.Reservations.Models.ReservationTerm> * Nullable<Azure.ResourceManager.Reservations.Models.ReservationProvisioningState> * Nullable<Azure.ResourceManager.Reservations.Models.ReservationBillingPlan> * Azure.ResourceManager.Reservations.Models.ReservationOrderBillingPlanInformation * seq<Azure.ResourceManager.Reservations.ReservationDetailData> * Nullable<DateTimeOffset> -> Azure.ResourceManager.Reservations.ReservationOrderData
Public Shared Function ReservationOrderData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional version As Nullable(Of Integer) = Nothing, Optional displayName As String = Nothing, Optional requestOn As Nullable(Of DateTimeOffset) = Nothing, Optional createdOn As Nullable(Of DateTimeOffset) = Nothing, Optional expireOn As Nullable(Of DateTimeOffset) = Nothing, Optional reservationExpireOn As Nullable(Of DateTimeOffset) = Nothing, Optional benefitStartOn As Nullable(Of DateTimeOffset) = Nothing, Optional originalQuantity As Nullable(Of Integer) = Nothing, Optional term As Nullable(Of ReservationTerm) = Nothing, Optional provisioningState As Nullable(Of ReservationProvisioningState) = Nothing, Optional billingPlan As Nullable(Of ReservationBillingPlan) = Nothing, Optional planInformation As ReservationOrderBillingPlanInformation = Nothing, Optional reservations As IEnumerable(Of ReservationDetailData) = Nothing, Optional reviewOn As Nullable(Of DateTimeOffset) = Nothing) As ReservationOrderData

Parameters

id
ResourceIdentifier

The id.

name
String

The name.

resourceType
ResourceType

The resourceType.

systemData
SystemData

The systemData.

version
Nullable<Int32>
displayName
String

Friendly name for user to easily identified the reservation.

requestOn
Nullable<DateTimeOffset>

This is the DateTime when the reservation was initially requested for purchase.

createdOn
Nullable<DateTimeOffset>

This is the DateTime when the reservation was created.

expireOn
Nullable<DateTimeOffset>

This is the date when the reservation will expire.

reservationExpireOn
Nullable<DateTimeOffset>

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

benefitStartOn
Nullable<DateTimeOffset>

This is the DateTime when the reservation benefit started.

originalQuantity
Nullable<Int32>

Total Quantity of the skus purchased in the reservation.

term
Nullable<ReservationTerm>

Represent the term of reservation.

provisioningState
Nullable<ReservationProvisioningState>

Current state of the reservation.

billingPlan
Nullable<ReservationBillingPlan>

Represent the billing plans.

planInformation
ReservationOrderBillingPlanInformation

Information describing the type of billing plan for this reservation.

reviewOn
Nullable<DateTimeOffset>

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

Returns

A new ReservationOrderData instance for mocking.

Applies to