Interface AuthorizationPoliciesClient


public interface AuthorizationPoliciesClient
An instance of this class provides access to all the operations defined in AuthorizationPoliciesClient.
  • Method Details

    • createOrUpdateWithResponse

      com.azure.core.http.rest.Response<AuthorizationPolicyResourceFormatInner> createOrUpdateWithResponse(String resourceGroupName, String hubName, String authorizationPolicyName, AuthorizationPolicyResourceFormatInner parameters, com.azure.core.util.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.
      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.
    • createOrUpdate

      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.
      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.
    • getWithResponse

      com.azure.core.http.rest.Response<AuthorizationPolicyResourceFormatInner> 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

      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.
      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<AuthorizationPolicyResourceFormatInner> 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<AuthorizationPolicyResourceFormatInner> 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<AuthorizationPolicyInner> 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

      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.
      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<AuthorizationPolicyInner> 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

      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.
      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.