ArmBillingBenefitsModelFactory.BillingBenefitsPurchaseContent Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of BillingBenefitsPurchaseContent.
public static Azure.ResourceManager.BillingBenefits.Models.BillingBenefitsPurchaseContent BillingBenefitsPurchaseContent (string skuName = default, string displayName = default, Azure.Core.ResourceIdentifier billingScopeId = default, Azure.ResourceManager.BillingBenefits.Models.BillingBenefitsTerm? term = default, Azure.ResourceManager.BillingBenefits.Models.BillingBenefitsBillingPlan? billingPlan = default, Azure.ResourceManager.BillingBenefits.Models.BillingBenefitsAppliedScopeType? appliedScopeType = default, Azure.ResourceManager.BillingBenefits.Models.BillingBenefitsCommitment commitment = default, DateTimeOffset? effectOn = default, bool? isRenewed = default, Azure.ResourceManager.BillingBenefits.Models.BillingBenefitsAppliedScopeProperties appliedScopeProperties = default);
static member BillingBenefitsPurchaseContent : string * string * Azure.Core.ResourceIdentifier * Nullable<Azure.ResourceManager.BillingBenefits.Models.BillingBenefitsTerm> * Nullable<Azure.ResourceManager.BillingBenefits.Models.BillingBenefitsBillingPlan> * Nullable<Azure.ResourceManager.BillingBenefits.Models.BillingBenefitsAppliedScopeType> * Azure.ResourceManager.BillingBenefits.Models.BillingBenefitsCommitment * Nullable<DateTimeOffset> * Nullable<bool> * Azure.ResourceManager.BillingBenefits.Models.BillingBenefitsAppliedScopeProperties -> Azure.ResourceManager.BillingBenefits.Models.BillingBenefitsPurchaseContent
Public Shared Function BillingBenefitsPurchaseContent (Optional skuName As String = Nothing, Optional displayName As String = Nothing, Optional billingScopeId As ResourceIdentifier = Nothing, Optional term As Nullable(Of BillingBenefitsTerm) = Nothing, Optional billingPlan As Nullable(Of BillingBenefitsBillingPlan) = Nothing, Optional appliedScopeType As Nullable(Of BillingBenefitsAppliedScopeType) = Nothing, Optional commitment As BillingBenefitsCommitment = Nothing, Optional effectOn As Nullable(Of DateTimeOffset) = Nothing, Optional isRenewed As Nullable(Of Boolean) = Nothing, Optional appliedScopeProperties As BillingBenefitsAppliedScopeProperties = Nothing) As BillingBenefitsPurchaseContent
Parameters
- skuName
- String
The SKU to be applied for this resource.
- displayName
- String
Friendly name of the savings plan.
- billingScopeId
- ResourceIdentifier
Subscription that will be charged for purchasing the benefit.
- term
- Nullable<BillingBenefitsTerm>
Represent benefit term in ISO 8601 format.
- billingPlan
- Nullable<BillingBenefitsBillingPlan>
Represents the billing plan in ISO 8601 format. Required only for monthly billing plans.
- appliedScopeType
- Nullable<BillingBenefitsAppliedScopeType>
Type of the Applied Scope.
- commitment
- BillingBenefitsCommitment
Commitment towards the benefit.
- effectOn
- Nullable<DateTimeOffset>
DateTime of the savings plan starts providing benefit from.
Setting this to true will automatically purchase a new benefit on the expiration date time.
- appliedScopeProperties
- BillingBenefitsAppliedScopeProperties
Properties specific to applied scope type. Not required if not applicable.
Returns
A new BillingBenefitsPurchaseContent instance for mocking.