Share via


ArmReservationsModelFactory.ReservationProperties Method

Definition

Initializes a new instance of ReservationProperties.

public static Azure.ResourceManager.Reservations.Models.ReservationProperties ReservationProperties (Azure.ResourceManager.Reservations.Models.ReservedResourceType? reservedResourceType = default, Azure.ResourceManager.Reservations.Models.InstanceFlexibility? instanceFlexibility = default, string displayName = default, System.Collections.Generic.IEnumerable<string> appliedScopes = default, Azure.ResourceManager.Reservations.Models.AppliedScopeType? appliedScopeType = default, bool? isArchived = default, string capabilities = default, int? quantity = default, Azure.ResourceManager.Reservations.Models.ReservationProvisioningState? provisioningState = default, DateTimeOffset? effectOn = default, DateTimeOffset? benefitStartOn = default, DateTimeOffset? lastUpdatedOn = default, DateTimeOffset? expireOn = default, DateTimeOffset? reservationExpireOn = default, DateTimeOffset? reviewOn = default, string skuDescription = default, Azure.ResourceManager.Reservations.Models.ExtendedStatusInfo extendedStatusInfo = default, Azure.ResourceManager.Reservations.Models.ReservationBillingPlan? billingPlan = default, string displayProvisioningState = default, string provisioningSubState = default, DateTimeOffset? purchaseOn = default, DateTimeOffset? reservationPurchaseOn = default, Azure.ResourceManager.Reservations.Models.ReservationSplitProperties splitProperties = default, Azure.ResourceManager.Reservations.Models.ReservationMergeProperties mergeProperties = default, Azure.ResourceManager.Reservations.Models.ReservationSwapProperties swapProperties = default, Azure.ResourceManager.Reservations.Models.AppliedScopeProperties appliedScopeProperties = default, Azure.Core.ResourceIdentifier billingScopeId = default, bool? isRenewEnabled = default, string renewSource = default, string renewDestination = default, Azure.ResourceManager.Reservations.Models.RenewProperties renewProperties = default, Azure.ResourceManager.Reservations.Models.ReservationTerm? term = default, string userFriendlyAppliedScopeType = default, string userFriendlyRenewState = default, Azure.ResourceManager.Reservations.Models.ReservationPropertiesUtilization utilization = default);
static member ReservationProperties : Nullable<Azure.ResourceManager.Reservations.Models.ReservedResourceType> * Nullable<Azure.ResourceManager.Reservations.Models.InstanceFlexibility> * string * seq<string> * Nullable<Azure.ResourceManager.Reservations.Models.AppliedScopeType> * Nullable<bool> * string * Nullable<int> * Nullable<Azure.ResourceManager.Reservations.Models.ReservationProvisioningState> * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * string * Azure.ResourceManager.Reservations.Models.ExtendedStatusInfo * Nullable<Azure.ResourceManager.Reservations.Models.ReservationBillingPlan> * string * string * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * Azure.ResourceManager.Reservations.Models.ReservationSplitProperties * Azure.ResourceManager.Reservations.Models.ReservationMergeProperties * Azure.ResourceManager.Reservations.Models.ReservationSwapProperties * Azure.ResourceManager.Reservations.Models.AppliedScopeProperties * Azure.Core.ResourceIdentifier * Nullable<bool> * string * string * Azure.ResourceManager.Reservations.Models.RenewProperties * Nullable<Azure.ResourceManager.Reservations.Models.ReservationTerm> * string * string * Azure.ResourceManager.Reservations.Models.ReservationPropertiesUtilization -> Azure.ResourceManager.Reservations.Models.ReservationProperties
Public Shared Function ReservationProperties (Optional reservedResourceType As Nullable(Of ReservedResourceType) = Nothing, Optional instanceFlexibility As Nullable(Of InstanceFlexibility) = Nothing, Optional displayName As String = Nothing, Optional appliedScopes As IEnumerable(Of String) = Nothing, Optional appliedScopeType As Nullable(Of AppliedScopeType) = Nothing, Optional isArchived As Nullable(Of Boolean) = Nothing, Optional capabilities As String = Nothing, Optional quantity As Nullable(Of Integer) = Nothing, Optional provisioningState As Nullable(Of ReservationProvisioningState) = Nothing, Optional effectOn As Nullable(Of DateTimeOffset) = Nothing, Optional benefitStartOn As Nullable(Of DateTimeOffset) = Nothing, Optional lastUpdatedOn As Nullable(Of DateTimeOffset) = Nothing, Optional expireOn As Nullable(Of DateTimeOffset) = Nothing, Optional reservationExpireOn As Nullable(Of DateTimeOffset) = Nothing, Optional reviewOn As Nullable(Of DateTimeOffset) = Nothing, Optional skuDescription As String = Nothing, Optional extendedStatusInfo As ExtendedStatusInfo = Nothing, Optional billingPlan As Nullable(Of ReservationBillingPlan) = Nothing, Optional displayProvisioningState As String = Nothing, Optional provisioningSubState As String = Nothing, Optional purchaseOn As Nullable(Of DateTimeOffset) = Nothing, Optional reservationPurchaseOn As Nullable(Of DateTimeOffset) = Nothing, Optional splitProperties As ReservationSplitProperties = Nothing, Optional mergeProperties As ReservationMergeProperties = Nothing, Optional swapProperties As ReservationSwapProperties = Nothing, Optional appliedScopeProperties As AppliedScopeProperties = Nothing, Optional billingScopeId As ResourceIdentifier = Nothing, Optional isRenewEnabled As Nullable(Of Boolean) = Nothing, Optional renewSource As String = Nothing, Optional renewDestination As String = Nothing, Optional renewProperties As RenewProperties = Nothing, Optional term As Nullable(Of ReservationTerm) = Nothing, Optional userFriendlyAppliedScopeType As String = Nothing, Optional userFriendlyRenewState As String = Nothing, Optional utilization As ReservationPropertiesUtilization = Nothing) As ReservationProperties

Parameters

reservedResourceType
Nullable<ReservedResourceType>

The type of the resource that is being reserved.

instanceFlexibility
Nullable<InstanceFlexibility>

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

displayName
String

Friendly name for user to easily identify the reservation.

appliedScopes
IEnumerable<String>

The list of applied scopes.

appliedScopeType
Nullable<AppliedScopeType>

The applied scope type.

isArchived
Nullable<Boolean>

Indicates if the reservation is archived.

capabilities
String

Capabilities of the reservation.

quantity
Nullable<Int32>

Quantity of the skus that are part of the reservation.

provisioningState
Nullable<ReservationProvisioningState>

Current state of the reservation.

effectOn
Nullable<DateTimeOffset>

DateTime of the reservation starting when this version is effective from.

benefitStartOn
Nullable<DateTimeOffset>

This is the DateTime when the reservation benefit started.

lastUpdatedOn
Nullable<DateTimeOffset>

DateTime of the last time the reservation was updated.

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.

reviewOn
Nullable<DateTimeOffset>

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

skuDescription
String

Description of the sku in english.

extendedStatusInfo
ExtendedStatusInfo

The message giving detailed information about the status code.

billingPlan
Nullable<ReservationBillingPlan>

The billing plan options available for this sku.

displayProvisioningState
String

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

provisioningSubState
String

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

purchaseOn
Nullable<DateTimeOffset>

This is the date when the reservation was purchased.

reservationPurchaseOn
Nullable<DateTimeOffset>

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

splitProperties
ReservationSplitProperties

Properties of reservation split.

mergeProperties
ReservationMergeProperties

Properties of reservation merge.

swapProperties
ReservationSwapProperties

Properties of reservation swap.

appliedScopeProperties
AppliedScopeProperties

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

billingScopeId
ResourceIdentifier

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

isRenewEnabled
Nullable<Boolean>

Setting this to true will automatically purchase a new reservation on the expiration date time.

renewSource
String

Reservation Id of the reservation from which this reservation is renewed. Format of the resource Id is /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}.

renewDestination
String

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
RenewProperties

The renew properties for a reservation.

term
Nullable<ReservationTerm>

Represent the term of reservation.

userFriendlyAppliedScopeType
String

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

userFriendlyRenewState
String

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

utilization
ReservationPropertiesUtilization

Reservation utilization.

Returns

A new ReservationProperties instance for mocking.

Applies to