ArmBillingModelFactory.ReservationPurchaseRequest Method

Definition

Initializes a new instance of ReservationPurchaseRequest.

public static Azure.ResourceManager.Billing.Models.ReservationPurchaseRequest ReservationPurchaseRequest (string skuName = default, Azure.Core.AzureLocation? location = default, string reservedResourceType = default, string billingScopeId = default, string term = default, Azure.ResourceManager.Billing.Models.ReservationBillingPlan? billingPlan = default, int? quantity = default, string displayName = default, Azure.ResourceManager.Billing.Models.BillingAppliedScopeType? appliedScopeType = default, System.Collections.Generic.IEnumerable<string> appliedScopes = default, Azure.ResourceManager.Billing.Models.ReservationAppliedScopeProperties appliedScopeProperties = default, bool? isRenewed = default, Azure.ResourceManager.Billing.Models.InstanceFlexibility? instanceFlexibilityPropertiesInstanceFlexibility = default, DateTimeOffset? reviewOn = default, Azure.ResourceManager.Billing.Models.InstanceFlexibility? instanceFlexibilityPropertiesReservedResourcePropertiesInstanceFlexibility = default);
static member ReservationPurchaseRequest : string * Nullable<Azure.Core.AzureLocation> * string * string * string * Nullable<Azure.ResourceManager.Billing.Models.ReservationBillingPlan> * Nullable<int> * string * Nullable<Azure.ResourceManager.Billing.Models.BillingAppliedScopeType> * seq<string> * Azure.ResourceManager.Billing.Models.ReservationAppliedScopeProperties * Nullable<bool> * Nullable<Azure.ResourceManager.Billing.Models.InstanceFlexibility> * Nullable<DateTimeOffset> * Nullable<Azure.ResourceManager.Billing.Models.InstanceFlexibility> -> Azure.ResourceManager.Billing.Models.ReservationPurchaseRequest
Public Shared Function ReservationPurchaseRequest (Optional skuName As String = Nothing, Optional location As Nullable(Of AzureLocation) = Nothing, Optional reservedResourceType As String = Nothing, Optional billingScopeId As String = Nothing, Optional term As String = Nothing, Optional billingPlan As Nullable(Of ReservationBillingPlan) = Nothing, Optional quantity As Nullable(Of Integer) = Nothing, Optional displayName As String = Nothing, Optional appliedScopeType As Nullable(Of BillingAppliedScopeType) = Nothing, Optional appliedScopes As IEnumerable(Of String) = Nothing, Optional appliedScopeProperties As ReservationAppliedScopeProperties = Nothing, Optional isRenewed As Nullable(Of Boolean) = Nothing, Optional instanceFlexibilityPropertiesInstanceFlexibility As Nullable(Of InstanceFlexibility) = Nothing, Optional reviewOn As Nullable(Of DateTimeOffset) = Nothing, Optional instanceFlexibilityPropertiesReservedResourcePropertiesInstanceFlexibility As Nullable(Of InstanceFlexibility) = Nothing) As ReservationPurchaseRequest

Parameters

skuName
String

The name of sku.

location
Nullable<AzureLocation>

The Azure region where the reserved resource lives.

reservedResourceType
String

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

billingScopeId
String

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

term
String

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

billingPlan
Nullable<ReservationBillingPlan>

Represent the billing plans.

quantity
Nullable<Int32>

Quantity of the skus that are part of the reservation. Must be greater than zero.

displayName
String

Friendly name of the reservation.

appliedScopeType
Nullable<BillingAppliedScopeType>

Type of the Applied Scope.

appliedScopes
IEnumerable<String>

List of the subscriptions that the benefit will be applied. Do not specify if AppliedScopeType is Shared.

appliedScopeProperties
ReservationAppliedScopeProperties

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

isRenewed
Nullable<Boolean>

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

instanceFlexibilityPropertiesInstanceFlexibility
Nullable<InstanceFlexibility>

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

reviewOn
Nullable<DateTimeOffset>

This is the date-time when the Azure hybrid benefit needs to be reviewed.

instanceFlexibilityPropertiesReservedResourcePropertiesInstanceFlexibility
Nullable<InstanceFlexibility>

Turning this on will apply the reservation discount to other VMs in the same VM size group. Only specify for VirtualMachines reserved resource type.

Returns

A new ReservationPurchaseRequest instance for mocking.

Applies to