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

Policys Interface

Implements

com.microsoft.azure.arm.collection.SupportsCreating<Blank> com.microsoft.azure.arm.model.HasInner<com.microsoft.azure.management.apimanagement.v2019_01_01.implementation.PolicysInner>

public interface Policys
extends com.microsoft.azure.arm.collection.SupportsCreating<Blank>, com.microsoft.azure.arm.model.HasInner<com.microsoft.azure.management.apimanagement.v2019_01_01.implementation.PolicysInner>

Type representing Policys.

Method Summary

Modifier and Type Method and Description
abstract rx.Completable deleteAsync(String resourceGroupName, String serviceName, String ifMatch)

Deletes the global policy configuration of the Api Management Service.

abstract rx.Observable<OperationApiPolicyContract> getAsync(String resourceGroupName, String serviceName)

Get the Global policy definition of the Api Management service.

abstract rx.Completable getEntityTagAsync(String resourceGroupName, String serviceName)

Gets the entity state (Etag) version of the Global policy definition in the Api Management service.

abstract rx.Observable<PolicyCollection> listByServiceAsync(String resourceGroupName, String serviceName)

Lists all the Global Policy definitions of the Api Management service.

Method Details

deleteAsync

public abstract Completable deleteAsync(String resourceGroupName, String serviceName, String ifMatch)

Deletes the global policy configuration of the Api Management Service.

Parameters:

resourceGroupName - The name of the resource group.
serviceName - The name of the API Management service.
ifMatch - ETag of the Entity. ETag should match the current entity state from the header response of the GET request or it should be * for unconditional update.

Returns:

the observable for the request

getAsync

public abstract Observable<OperationApiPolicyContract> getAsync(String resourceGroupName, String serviceName)

Get the Global policy definition of the Api Management service.

Parameters:

resourceGroupName - The name of the resource group.
serviceName - The name of the API Management service.

Returns:

the observable for the request

getEntityTagAsync

public abstract Completable getEntityTagAsync(String resourceGroupName, String serviceName)

Gets the entity state (Etag) version of the Global policy definition in the Api Management service.

Parameters:

resourceGroupName - The name of the resource group.
serviceName - The name of the API Management service.

Returns:

the observable for the request

listByServiceAsync

public abstract Observable<PolicyCollection> listByServiceAsync(String resourceGroupName, String serviceName)

Lists all the Global Policy definitions of the Api Management service.

Parameters:

resourceGroupName - The name of the resource group.
serviceName - The name of the API Management service.

Returns:

the observable for the request

Applies to