ArmCognitiveServicesModelFactory.AbusePenalty Method

Definition

Initializes a new instance of AbusePenalty.

public static Azure.ResourceManager.CognitiveServices.Models.AbusePenalty AbusePenalty (Azure.ResourceManager.CognitiveServices.Models.AbusePenaltyAction? action = default, float? rateLimitPercentage = default, DateTimeOffset? expiration = default);
static member AbusePenalty : Nullable<Azure.ResourceManager.CognitiveServices.Models.AbusePenaltyAction> * Nullable<single> * Nullable<DateTimeOffset> -> Azure.ResourceManager.CognitiveServices.Models.AbusePenalty
Public Shared Function AbusePenalty (Optional action As Nullable(Of AbusePenaltyAction) = Nothing, Optional rateLimitPercentage As Nullable(Of Single) = Nothing, Optional expiration As Nullable(Of DateTimeOffset) = Nothing) As AbusePenalty

Parameters

action
Nullable<AbusePenaltyAction>

The action of AbusePenalty.

rateLimitPercentage
Nullable<Single>

The percentage of rate limit.

expiration
Nullable<DateTimeOffset>

The datetime of expiration of the AbusePenalty.

Returns

A new AbusePenalty instance for mocking.

Applies to