Share via


ArmCognitiveServicesModelFactory.CommitmentPeriod Method

Definition

Initializes a new instance of CommitmentPeriod.

public static Azure.ResourceManager.CognitiveServices.Models.CommitmentPeriod CommitmentPeriod (string tier = default, int? count = default, Azure.ResourceManager.CognitiveServices.Models.CommitmentQuota quota = default, DateTimeOffset? startOn = default, DateTimeOffset? endOn = default);
static member CommitmentPeriod : string * Nullable<int> * Azure.ResourceManager.CognitiveServices.Models.CommitmentQuota * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> -> Azure.ResourceManager.CognitiveServices.Models.CommitmentPeriod
Public Shared Function CommitmentPeriod (Optional tier As String = Nothing, Optional count As Nullable(Of Integer) = Nothing, Optional quota As CommitmentQuota = Nothing, Optional startOn As Nullable(Of DateTimeOffset) = Nothing, Optional endOn As Nullable(Of DateTimeOffset) = Nothing) As CommitmentPeriod

Parameters

tier
String

Commitment period commitment tier.

count
Nullable<Int32>

Commitment period commitment count.

quota
CommitmentQuota

Cognitive Services account commitment quota.

startOn
Nullable<DateTimeOffset>

Commitment period start date.

endOn
Nullable<DateTimeOffset>

Commitment period end date.

Returns

A new CommitmentPeriod instance for mocking.

Applies to