Interface AccessPoliciesClient


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

    • createUpdateWithResponseAsync

      Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> createUpdateWithResponseAsync(String resourceGroupName, String cacheName, String accessPolicyName, RedisCacheAccessPolicyInner parameters)
      Adds an access policy to the redis cache.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      cacheName - The name of the Redis cache.
      accessPolicyName - The name of the access policy that is being added to the Redis cache.
      parameters - Parameters supplied to the Create Update Access Policy operation.
      Returns:
      response to get/put access policy along with Response on successful completion of Mono.
      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.
    • beginCreateUpdateAsync

      com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<RedisCacheAccessPolicyInner>,RedisCacheAccessPolicyInner> beginCreateUpdateAsync(String resourceGroupName, String cacheName, String accessPolicyName, RedisCacheAccessPolicyInner parameters)
      Adds an access policy to the redis cache.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      cacheName - The name of the Redis cache.
      accessPolicyName - The name of the access policy that is being added to the Redis cache.
      parameters - Parameters supplied to the Create Update Access Policy operation.
      Returns:
      the PollerFlux for polling of response to get/put access 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.
    • beginCreateUpdate

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<RedisCacheAccessPolicyInner>,RedisCacheAccessPolicyInner> beginCreateUpdate(String resourceGroupName, String cacheName, String accessPolicyName, RedisCacheAccessPolicyInner parameters)
      Adds an access policy to the redis cache.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      cacheName - The name of the Redis cache.
      accessPolicyName - The name of the access policy that is being added to the Redis cache.
      parameters - Parameters supplied to the Create Update Access Policy operation.
      Returns:
      the SyncPoller for polling of response to get/put access 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.
    • beginCreateUpdate

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<RedisCacheAccessPolicyInner>,RedisCacheAccessPolicyInner> beginCreateUpdate(String resourceGroupName, String cacheName, String accessPolicyName, RedisCacheAccessPolicyInner parameters, com.azure.core.util.Context context)
      Adds an access policy to the redis cache.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      cacheName - The name of the Redis cache.
      accessPolicyName - The name of the access policy that is being added to the Redis cache.
      parameters - Parameters supplied to the Create Update Access Policy operation.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of response to get/put access 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.
    • createUpdateAsync

      Mono<RedisCacheAccessPolicyInner> createUpdateAsync(String resourceGroupName, String cacheName, String accessPolicyName, RedisCacheAccessPolicyInner parameters)
      Adds an access policy to the redis cache.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      cacheName - The name of the Redis cache.
      accessPolicyName - The name of the access policy that is being added to the Redis cache.
      parameters - Parameters supplied to the Create Update Access Policy operation.
      Returns:
      response to get/put access policy on successful completion of Mono.
      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.
    • createUpdate

      RedisCacheAccessPolicyInner createUpdate(String resourceGroupName, String cacheName, String accessPolicyName, RedisCacheAccessPolicyInner parameters)
      Adds an access policy to the redis cache.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      cacheName - The name of the Redis cache.
      accessPolicyName - The name of the access policy that is being added to the Redis cache.
      parameters - Parameters supplied to the Create Update Access Policy operation.
      Returns:
      response to get/put access 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.
    • createUpdate

      RedisCacheAccessPolicyInner createUpdate(String resourceGroupName, String cacheName, String accessPolicyName, RedisCacheAccessPolicyInner parameters, com.azure.core.util.Context context)
      Adds an access policy to the redis cache.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      cacheName - The name of the Redis cache.
      accessPolicyName - The name of the access policy that is being added to the Redis cache.
      parameters - Parameters supplied to the Create Update Access Policy operation.
      context - The context to associate with this operation.
      Returns:
      response to get/put access 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.
    • deleteWithResponseAsync

      Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String cacheName, String accessPolicyName)
      Deletes the access policy from a redis cache.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      cacheName - The name of the Redis cache.
      accessPolicyName - The name of the access policy that is being added to the Redis cache.
      Returns:
      the Response on successful completion of Mono.
      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.
    • beginDeleteAsync

      com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>,Void> beginDeleteAsync(String resourceGroupName, String cacheName, String accessPolicyName)
      Deletes the access policy from a redis cache.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      cacheName - The name of the Redis cache.
      accessPolicyName - The name of the access policy that is being added to the Redis cache.
      Returns:
      the PollerFlux for polling of long-running operation.
      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.
    • beginDelete

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(String resourceGroupName, String cacheName, String accessPolicyName)
      Deletes the access policy from a redis cache.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      cacheName - The name of the Redis cache.
      accessPolicyName - The name of the access policy that is being added to the Redis cache.
      Returns:
      the SyncPoller for polling of long-running operation.
      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.
    • beginDelete

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(String resourceGroupName, String cacheName, String accessPolicyName, com.azure.core.util.Context context)
      Deletes the access policy from a redis cache.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      cacheName - The name of the Redis cache.
      accessPolicyName - The name of the access policy that is being added to the Redis cache.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of long-running operation.
      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.
    • deleteAsync

      Mono<Void> deleteAsync(String resourceGroupName, String cacheName, String accessPolicyName)
      Deletes the access policy from a redis cache.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      cacheName - The name of the Redis cache.
      accessPolicyName - The name of the access policy that is being added to the Redis cache.
      Returns:
      A Mono that completes when a successful response is received.
      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.
    • delete

      void delete(String resourceGroupName, String cacheName, String accessPolicyName)
      Deletes the access policy from a redis cache.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      cacheName - The name of the Redis cache.
      accessPolicyName - The name of the access policy that is being added to the Redis cache.
      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.
    • delete

      void delete(String resourceGroupName, String cacheName, String accessPolicyName, com.azure.core.util.Context context)
      Deletes the access policy from a redis cache.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      cacheName - The name of the Redis cache.
      accessPolicyName - The name of the access policy that is being added to the Redis cache.
      context - The context to associate with this operation.
      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.
    • getWithResponseAsync

      Mono<com.azure.core.http.rest.Response<RedisCacheAccessPolicyInner>> getWithResponseAsync(String resourceGroupName, String cacheName, String accessPolicyName)
      Gets the detailed information about an access policy of a redis cache.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      cacheName - The name of the Redis cache.
      accessPolicyName - The name of the access policy that is being added to the Redis cache.
      Returns:
      the detailed information about an access policy of a redis cache along with Response on successful completion of Mono.
      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.
    • getAsync

      Mono<RedisCacheAccessPolicyInner> getAsync(String resourceGroupName, String cacheName, String accessPolicyName)
      Gets the detailed information about an access policy of a redis cache.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      cacheName - The name of the Redis cache.
      accessPolicyName - The name of the access policy that is being added to the Redis cache.
      Returns:
      the detailed information about an access policy of a redis cache on successful completion of Mono.
      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<RedisCacheAccessPolicyInner> getWithResponse(String resourceGroupName, String cacheName, String accessPolicyName, com.azure.core.util.Context context)
      Gets the detailed information about an access policy of a redis cache.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      cacheName - The name of the Redis cache.
      accessPolicyName - The name of the access policy that is being added to the Redis cache.
      context - The context to associate with this operation.
      Returns:
      the detailed information about an access policy of a redis cache 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

      RedisCacheAccessPolicyInner get(String resourceGroupName, String cacheName, String accessPolicyName)
      Gets the detailed information about an access policy of a redis cache.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      cacheName - The name of the Redis cache.
      accessPolicyName - The name of the access policy that is being added to the Redis cache.
      Returns:
      the detailed information about an access policy of a redis cache.
      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.
    • listAsync

      com.azure.core.http.rest.PagedFlux<RedisCacheAccessPolicyInner> listAsync(String resourceGroupName, String cacheName)
      Gets the list of access policies associated with this redis cache.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      cacheName - The name of the Redis cache.
      Returns:
      the list of access policies associated with this redis cache as paginated response with PagedFlux.
      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.
    • list

      com.azure.core.http.rest.PagedIterable<RedisCacheAccessPolicyInner> list(String resourceGroupName, String cacheName)
      Gets the list of access policies associated with this redis cache.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      cacheName - The name of the Redis cache.
      Returns:
      the list of access policies associated with this redis cache 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.
    • list

      com.azure.core.http.rest.PagedIterable<RedisCacheAccessPolicyInner> list(String resourceGroupName, String cacheName, com.azure.core.util.Context context)
      Gets the list of access policies associated with this redis cache.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      cacheName - The name of the Redis cache.
      context - The context to associate with this operation.
      Returns:
      the list of access policies associated with this redis cache 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.