你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

QuotaByPeriodKeys Interface

Implements

com.microsoft.azure.arm.model.HasInner<com.microsoft.azure.management.apimanagement.v2019_01_01.implementation.QuotaByPeriodKeysInner>

public interface QuotaByPeriodKeys
extends com.microsoft.azure.arm.model.HasInner<com.microsoft.azure.management.apimanagement.v2019_01_01.implementation.QuotaByPeriodKeysInner>

Type representing QuotaByPeriodKeys.

Method Summary

Modifier and Type Method and Description
abstract rx.Observable<QuotaCounterContract> getAsync(String resourceGroupName, String serviceName, String quotaCounterKey, String quotaPeriodKey)

Gets the value of the quota counter associated with the counter-key in the policy for the specific period in service instance.

abstract rx.Completable updateAsync(String resourceGroupName, String serviceName, String quotaCounterKey, String quotaPeriodKey, QuotaCounterValueContractProperties parameters)

Updates an existing quota counter value in the specified service instance.

Method Details

getAsync

public abstract Observable<QuotaCounterContract> getAsync(String resourceGroupName, String serviceName, String quotaCounterKey, String quotaPeriodKey)

Gets the value of the quota counter associated with the counter-key in the policy for the specific period in service instance.

Parameters:

resourceGroupName - The name of the resource group.
serviceName - The name of the API Management service.
quotaCounterKey - Quota counter key identifier.This is the result of expression defined in counter-key attribute of the quota-by-key policy.For Example, if you specify counter-key="boo" in the policy, then it\u2019s accessible by "boo" counter key. But if it\u2019s defined as counter-key="@("b"+"a")" then it will be accessible by "ba" key
quotaPeriodKey - Quota period key identifier.

Returns:

the observable for the request

updateAsync

public abstract Completable updateAsync(String resourceGroupName, String serviceName, String quotaCounterKey, String quotaPeriodKey, QuotaCounterValueContractProperties parameters)

Updates an existing quota counter value in the specified service instance.

Parameters:

resourceGroupName - The name of the resource group.
serviceName - The name of the API Management service.
quotaCounterKey - Quota counter key identifier.This is the result of expression defined in counter-key attribute of the quota-by-key policy.For Example, if you specify counter-key="boo" in the policy, then it\u2019s accessible by "boo" counter key. But if it\u2019s defined as counter-key="@("b"+"a")" then it will be accessible by "ba" key
quotaPeriodKey - Quota period key identifier.
parameters - The value of the Quota counter to be applied on the specified period.

Returns:

the observable for the request

Applies to