ArmCognitiveServicesModelFactory.AbusePenalty 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 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.
- expiration
- Nullable<DateTimeOffset>
The datetime of expiration of the AbusePenalty.
Returns
A new AbusePenalty instance for mocking.