com.azure.resourcemanager.redis.fluent.AccessPoliciesClient Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-resourcemanager-redis Show documentation
Show all versions of azure-resourcemanager-redis Show documentation
This package contains Microsoft Azure Redis Cache SDK.
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.redis.fluent;
import com.azure.core.annotation.ReturnType;
import com.azure.core.annotation.ServiceMethod;
import com.azure.core.http.rest.PagedFlux;
import com.azure.core.http.rest.PagedIterable;
import com.azure.core.http.rest.Response;
import com.azure.core.management.polling.PollResult;
import com.azure.core.util.Context;
import com.azure.core.util.polling.PollerFlux;
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.redis.fluent.models.RedisCacheAccessPolicyInner;
import java.nio.ByteBuffer;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
/**
* An instance of this class provides access to all the operations defined in AccessPoliciesClient.
*/
public interface AccessPoliciesClient {
/**
* Adds an access policy to the redis cache.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param cacheName The name of the Redis cache.
* @param accessPolicyName The name of the access policy that is being added to the Redis cache.
* @param parameters Parameters supplied to the Create Update Access Policy operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return response to get/put access policy along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono>> createUpdateWithResponseAsync(String resourceGroupName, String cacheName,
String accessPolicyName, RedisCacheAccessPolicyInner parameters);
/**
* Adds an access policy to the redis cache.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param cacheName The name of the Redis cache.
* @param accessPolicyName The name of the access policy that is being added to the Redis cache.
* @param parameters Parameters supplied to the Create Update Access Policy operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link PollerFlux} for polling of response to get/put access policy.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
PollerFlux, RedisCacheAccessPolicyInner> beginCreateUpdateAsync(
String resourceGroupName, String cacheName, String accessPolicyName, RedisCacheAccessPolicyInner parameters);
/**
* Adds an access policy to the redis cache.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param cacheName The name of the Redis cache.
* @param accessPolicyName The name of the access policy that is being added to the Redis cache.
* @param parameters Parameters supplied to the Create Update Access Policy operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link SyncPoller} for polling of response to get/put access policy.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, RedisCacheAccessPolicyInner> beginCreateUpdate(
String resourceGroupName, String cacheName, String accessPolicyName, RedisCacheAccessPolicyInner parameters);
/**
* Adds an access policy to the redis cache.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param cacheName The name of the Redis cache.
* @param accessPolicyName The name of the access policy that is being added to the Redis cache.
* @param parameters Parameters supplied to the Create Update Access Policy operation.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link SyncPoller} for polling of response to get/put access policy.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, RedisCacheAccessPolicyInner> beginCreateUpdate(
String resourceGroupName, String cacheName, String accessPolicyName, RedisCacheAccessPolicyInner parameters,
Context context);
/**
* Adds an access policy to the redis cache.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param cacheName The name of the Redis cache.
* @param accessPolicyName The name of the access policy that is being added to the Redis cache.
* @param parameters Parameters supplied to the Create Update Access Policy operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return response to get/put access policy on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono createUpdateAsync(String resourceGroupName, String cacheName,
String accessPolicyName, RedisCacheAccessPolicyInner parameters);
/**
* Adds an access policy to the redis cache.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param cacheName The name of the Redis cache.
* @param accessPolicyName The name of the access policy that is being added to the Redis cache.
* @param parameters Parameters supplied to the Create Update Access Policy operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return response to get/put access policy.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
RedisCacheAccessPolicyInner createUpdate(String resourceGroupName, String cacheName, String accessPolicyName,
RedisCacheAccessPolicyInner parameters);
/**
* Adds an access policy to the redis cache.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param cacheName The name of the Redis cache.
* @param accessPolicyName The name of the access policy that is being added to the Redis cache.
* @param parameters Parameters supplied to the Create Update Access Policy operation.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return response to get/put access policy.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
RedisCacheAccessPolicyInner createUpdate(String resourceGroupName, String cacheName, String accessPolicyName,
RedisCacheAccessPolicyInner parameters, Context context);
/**
* Deletes the access policy from a redis cache.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param cacheName The name of the Redis cache.
* @param accessPolicyName The name of the access policy that is being added to the Redis cache.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono>> deleteWithResponseAsync(String resourceGroupName, String cacheName,
String accessPolicyName);
/**
* Deletes the access policy from a redis cache.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param cacheName The name of the Redis cache.
* @param accessPolicyName The name of the access policy that is being added to the Redis cache.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link PollerFlux} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String cacheName,
String accessPolicyName);
/**
* Deletes the access policy from a redis cache.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param cacheName The name of the Redis cache.
* @param accessPolicyName The name of the access policy that is being added to the Redis cache.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(String resourceGroupName, String cacheName, String accessPolicyName);
/**
* Deletes the access policy from a redis cache.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param cacheName The name of the Redis cache.
* @param accessPolicyName The name of the access policy that is being added to the Redis cache.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(String resourceGroupName, String cacheName, String accessPolicyName,
Context context);
/**
* Deletes the access policy from a redis cache.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param cacheName The name of the Redis cache.
* @param accessPolicyName The name of the access policy that is being added to the Redis cache.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return A {@link Mono} that completes when a successful response is received.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono deleteAsync(String resourceGroupName, String cacheName, String accessPolicyName);
/**
* Deletes the access policy from a redis cache.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param cacheName The name of the Redis cache.
* @param accessPolicyName The name of the access policy that is being added to the Redis cache.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void delete(String resourceGroupName, String cacheName, String accessPolicyName);
/**
* Deletes the access policy from a redis cache.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param cacheName The name of the Redis cache.
* @param accessPolicyName The name of the access policy that is being added to the Redis cache.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void delete(String resourceGroupName, String cacheName, String accessPolicyName, Context context);
/**
* Gets the detailed information about an access policy of a redis cache.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param cacheName The name of the Redis cache.
* @param accessPolicyName The name of the access policy that is being added to the Redis cache.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the detailed information about an access policy of a redis cache along with {@link Response} on
* successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono> getWithResponseAsync(String resourceGroupName, String cacheName,
String accessPolicyName);
/**
* Gets the detailed information about an access policy of a redis cache.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param cacheName The name of the Redis cache.
* @param accessPolicyName The name of the access policy that is being added to the Redis cache.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the detailed information about an access policy of a redis cache on successful completion of
* {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono getAsync(String resourceGroupName, String cacheName, String accessPolicyName);
/**
* Gets the detailed information about an access policy of a redis cache.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param cacheName The name of the Redis cache.
* @param accessPolicyName The name of the access policy that is being added to the Redis cache.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the detailed information about an access policy of a redis cache along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(String resourceGroupName, String cacheName,
String accessPolicyName, Context context);
/**
* Gets the detailed information about an access policy of a redis cache.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param cacheName The name of the Redis cache.
* @param accessPolicyName The name of the access policy that is being added to the Redis cache.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the detailed information about an access policy of a redis cache.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
RedisCacheAccessPolicyInner get(String resourceGroupName, String cacheName, String accessPolicyName);
/**
* Gets the list of access policies associated with this redis cache.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param cacheName The name of the Redis cache.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the list of access policies associated with this redis cache as paginated response with
* {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedFlux listAsync(String resourceGroupName, String cacheName);
/**
* Gets the list of access policies associated with this redis cache.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param cacheName The name of the Redis cache.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the list of access policies associated with this redis cache as paginated response with
* {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String cacheName);
/**
* Gets the list of access policies associated with this redis cache.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param cacheName The name of the Redis cache.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the list of access policies associated with this redis cache as paginated response with
* {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String cacheName, Context context);
}