Interface AuthorizationPolicies
public interface AuthorizationPolicies
Resource collection API of AuthorizationPolicies.
-
Method Summary
Modifier and TypeMethodDescriptionBegins definition for a new AuthorizationPolicyResourceFormat resource.Gets an authorization policy in the hub.Gets an authorization policy in the hub.com.azure.core.http.rest.Response<AuthorizationPolicyResourceFormat>
getByIdWithResponse
(String id, com.azure.core.util.Context context) Gets an authorization policy in the hub.com.azure.core.http.rest.Response<AuthorizationPolicyResourceFormat>
getWithResponse
(String resourceGroupName, String hubName, String authorizationPolicyName, com.azure.core.util.Context context) Gets an authorization policy in the hub.com.azure.core.http.rest.PagedIterable<AuthorizationPolicyResourceFormat>
Gets all the authorization policies in a specified hub.com.azure.core.http.rest.PagedIterable<AuthorizationPolicyResourceFormat>
Gets all the authorization policies in a specified hub.regeneratePrimaryKey
(String resourceGroupName, String hubName, String authorizationPolicyName) Regenerates the primary policy key of the specified authorization policy.com.azure.core.http.rest.Response<AuthorizationPolicy>
regeneratePrimaryKeyWithResponse
(String resourceGroupName, String hubName, String authorizationPolicyName, com.azure.core.util.Context context) Regenerates the primary policy key of the specified authorization policy.regenerateSecondaryKey
(String resourceGroupName, String hubName, String authorizationPolicyName) Regenerates the secondary policy key of the specified authorization policy.com.azure.core.http.rest.Response<AuthorizationPolicy>
regenerateSecondaryKeyWithResponse
(String resourceGroupName, String hubName, String authorizationPolicyName, com.azure.core.util.Context context) Regenerates the secondary policy key of the specified authorization policy.
-
Method Details
-
getWithResponse
com.azure.core.http.rest.Response<AuthorizationPolicyResourceFormat> getWithResponse(String resourceGroupName, String hubName, String authorizationPolicyName, com.azure.core.util.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
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
get
AuthorizationPolicyResourceFormat 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.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
listByHub
com.azure.core.http.rest.PagedIterable<AuthorizationPolicyResourceFormat> 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
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
listByHub
com.azure.core.http.rest.PagedIterable<AuthorizationPolicyResourceFormat> listByHub(String resourceGroupName, String hubName, com.azure.core.util.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
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
regeneratePrimaryKeyWithResponse
com.azure.core.http.rest.Response<AuthorizationPolicy> regeneratePrimaryKeyWithResponse(String resourceGroupName, String hubName, String authorizationPolicyName, com.azure.core.util.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
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
regeneratePrimaryKey
AuthorizationPolicy 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.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
regenerateSecondaryKeyWithResponse
com.azure.core.http.rest.Response<AuthorizationPolicy> regenerateSecondaryKeyWithResponse(String resourceGroupName, String hubName, String authorizationPolicyName, com.azure.core.util.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
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
regenerateSecondaryKey
AuthorizationPolicy 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.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getById
Gets an authorization policy in the hub.- Parameters:
id
- the resource ID.- Returns:
- an authorization policy in the hub along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getByIdWithResponse
com.azure.core.http.rest.Response<AuthorizationPolicyResourceFormat> getByIdWithResponse(String id, com.azure.core.util.Context context) Gets an authorization policy in the hub.- Parameters:
id
- the resource ID.context
- The context to associate with this operation.- Returns:
- an authorization policy in the hub along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
define
Begins definition for a new AuthorizationPolicyResourceFormat resource.- Parameters:
name
- resource name.- Returns:
- the first stage of the new AuthorizationPolicyResourceFormat definition.
-