AuthorizationPoliciesClient Interface

public interface AuthorizationPoliciesClient

An instance of this class provides access to all the operations defined in AuthorizationPoliciesClient.

Method Summary

Modifier and Type Method and Description
abstract AuthorizationPolicyResourceFormatInner createOrUpdate(String resourceGroupName, String hubName, String authorizationPolicyName, AuthorizationPolicyResourceFormatInner parameters)

Creates an authorization policy or updates an existing authorization policy.

abstract Response<AuthorizationPolicyResourceFormatInner> createOrUpdateWithResponse(String resourceGroupName, String hubName, String authorizationPolicyName, AuthorizationPolicyResourceFormatInner parameters, Context context)

Creates an authorization policy or updates an existing authorization policy.

abstract AuthorizationPolicyResourceFormatInner get(String resourceGroupName, String hubName, String authorizationPolicyName)

Gets an authorization policy in the hub.

abstract Response<AuthorizationPolicyResourceFormatInner> getWithResponse(String resourceGroupName, String hubName, String authorizationPolicyName, Context context)

Gets an authorization policy in the hub.

abstract PagedIterable<AuthorizationPolicyResourceFormatInner> listByHub(String resourceGroupName, String hubName)

Gets all the authorization policies in a specified hub.

abstract PagedIterable<AuthorizationPolicyResourceFormatInner> listByHub(String resourceGroupName, String hubName, Context context)

Gets all the authorization policies in a specified hub.

abstract AuthorizationPolicyInner regeneratePrimaryKey(String resourceGroupName, String hubName, String authorizationPolicyName)

Regenerates the primary policy key of the specified authorization policy.

abstract Response<AuthorizationPolicyInner> regeneratePrimaryKeyWithResponse(String resourceGroupName, String hubName, String authorizationPolicyName, Context context)

Regenerates the primary policy key of the specified authorization policy.

abstract AuthorizationPolicyInner regenerateSecondaryKey(String resourceGroupName, String hubName, String authorizationPolicyName)

Regenerates the secondary policy key of the specified authorization policy.

abstract Response<AuthorizationPolicyInner> regenerateSecondaryKeyWithResponse(String resourceGroupName, String hubName, String authorizationPolicyName, Context context)

Regenerates the secondary policy key of the specified authorization policy.

Method Details

createOrUpdate

public abstract AuthorizationPolicyResourceFormatInner createOrUpdate(String resourceGroupName, String hubName, String authorizationPolicyName, AuthorizationPolicyResourceFormatInner parameters)

Creates an authorization policy or updates an existing authorization policy.

Parameters:

resourceGroupName - The name of the resource group.
hubName - The name of the hub.
authorizationPolicyName - The name of the policy.
parameters - Parameters supplied to the CreateOrUpdate authorization policy operation.

Returns:

the authorization policy resource format.

createOrUpdateWithResponse

public abstract Response createOrUpdateWithResponse(String resourceGroupName, String hubName, String authorizationPolicyName, AuthorizationPolicyResourceFormatInner parameters, Context context)

Creates an authorization policy or updates an existing authorization policy.

Parameters:

resourceGroupName - The name of the resource group.
hubName - The name of the hub.
authorizationPolicyName - The name of the policy.
parameters - Parameters supplied to the CreateOrUpdate authorization policy operation.
context - The context to associate with this operation.

Returns:

the authorization policy resource format along with Response<T>.

get

public abstract AuthorizationPolicyResourceFormatInner get(String resourceGroupName, String hubName, String authorizationPolicyName)

Gets an authorization policy in the hub.

Parameters:

resourceGroupName - The name of the resource group.
hubName - The name of the hub.
authorizationPolicyName - The name of the policy.

Returns:

an authorization policy in the hub.

getWithResponse

public abstract Response getWithResponse(String resourceGroupName, String hubName, String authorizationPolicyName, Context context)

Gets an authorization policy in the hub.

Parameters:

resourceGroupName - The name of the resource group.
hubName - The name of the hub.
authorizationPolicyName - The name of the policy.
context - The context to associate with this operation.

Returns:

an authorization policy in the hub along with Response<T>.

listByHub

public abstract PagedIterable listByHub(String resourceGroupName, String hubName)

Gets all the authorization policies in a specified hub.

Parameters:

resourceGroupName - The name of the resource group.
hubName - The name of the hub.

Returns:

all the authorization policies in a specified hub as paginated response with PagedIterable<T>.

listByHub

public abstract PagedIterable listByHub(String resourceGroupName, String hubName, Context context)

Gets all the authorization policies in a specified hub.

Parameters:

resourceGroupName - The name of the resource group.
hubName - The name of the hub.
context - The context to associate with this operation.

Returns:

all the authorization policies in a specified hub as paginated response with PagedIterable<T>.

regeneratePrimaryKey

public abstract AuthorizationPolicyInner regeneratePrimaryKey(String resourceGroupName, String hubName, String authorizationPolicyName)

Regenerates the primary policy key of the specified authorization policy.

Parameters:

resourceGroupName - The name of the resource group.
hubName - The name of the hub.
authorizationPolicyName - The name of the policy.

Returns:

the authorization policy.

regeneratePrimaryKeyWithResponse

public abstract Response regeneratePrimaryKeyWithResponse(String resourceGroupName, String hubName, String authorizationPolicyName, Context context)

Regenerates the primary policy key of the specified authorization policy.

Parameters:

resourceGroupName - The name of the resource group.
hubName - The name of the hub.
authorizationPolicyName - The name of the policy.
context - The context to associate with this operation.

Returns:

the authorization policy along with Response<T>.

regenerateSecondaryKey

public abstract AuthorizationPolicyInner regenerateSecondaryKey(String resourceGroupName, String hubName, String authorizationPolicyName)

Regenerates the secondary policy key of the specified authorization policy.

Parameters:

resourceGroupName - The name of the resource group.
hubName - The name of the hub.
authorizationPolicyName - The name of the policy.

Returns:

the authorization policy.

regenerateSecondaryKeyWithResponse

public abstract Response regenerateSecondaryKeyWithResponse(String resourceGroupName, String hubName, String authorizationPolicyName, Context context)

Regenerates the secondary policy key of the specified authorization policy.

Parameters:

resourceGroupName - The name of the resource group.
hubName - The name of the hub.
authorizationPolicyName - The name of the policy.
context - The context to associate with this operation.

Returns:

the authorization policy along with Response<T>.

Applies to