共用方式為


ArmApiManagementModelFactory.QuotaCounterContract Method

Definition

Initializes a new instance of QuotaCounterContract.

public static Azure.ResourceManager.ApiManagement.Models.QuotaCounterContract QuotaCounterContract (string counterKey = default, string periodKey = default, DateTimeOffset periodStartOn = default, DateTimeOffset periodEndOn = default, Azure.ResourceManager.ApiManagement.Models.QuotaCounterValueContractProperties value = default);
static member QuotaCounterContract : string * string * DateTimeOffset * DateTimeOffset * Azure.ResourceManager.ApiManagement.Models.QuotaCounterValueContractProperties -> Azure.ResourceManager.ApiManagement.Models.QuotaCounterContract
Public Shared Function QuotaCounterContract (Optional counterKey As String = Nothing, Optional periodKey As String = Nothing, Optional periodStartOn As DateTimeOffset = Nothing, Optional periodEndOn As DateTimeOffset = Nothing, Optional value As QuotaCounterValueContractProperties = Nothing) As QuotaCounterContract

Parameters

counterKey
String

The Key value of the Counter. Must not be empty.

periodKey
String

Identifier of the Period for which the counter was collected. Must not be empty.

periodStartOn
DateTimeOffset

The date of the start of Counter Period. The date conforms to the following format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard.

periodEndOn
DateTimeOffset

The date of the end of Counter Period. The date conforms to the following format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard.

value
QuotaCounterValueContractProperties

Quota Value Properties.

Returns

A new QuotaCounterContract instance for mocking.

Applies to