com.azure.resourcemanager.redis.fluent.PrivateEndpointConnectionsClient 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.PrivateEndpointConnectionInner;
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 PrivateEndpointConnectionsClient.
*/
public interface PrivateEndpointConnectionsClient {
/**
* List all the private endpoint connections associated with the 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 list of private endpoint connection associated with the specified storage account as paginated response
* with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedFlux listAsync(String resourceGroupName, String cacheName);
/**
* List all the private endpoint connections associated with the 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 list of private endpoint connection associated with the specified storage account as paginated response
* with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String cacheName);
/**
* List all the private endpoint connections associated with 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 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 list of private endpoint connection associated with the specified storage account as paginated response
* with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String cacheName, Context context);
/**
* Gets the specified private endpoint connection associated with 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 privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
* resource.
* @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 specified private endpoint connection associated with the redis cache along with {@link Response} on
* successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono> getWithResponseAsync(String resourceGroupName, String cacheName,
String privateEndpointConnectionName);
/**
* Gets the specified private endpoint connection associated with 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 privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
* resource.
* @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 specified private endpoint connection associated with the redis cache on successful completion of
* {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono getAsync(String resourceGroupName, String cacheName,
String privateEndpointConnectionName);
/**
* Gets the specified private endpoint connection associated with 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 privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
* resource.
* @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 specified private endpoint connection associated with the redis cache along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(String resourceGroupName, String cacheName,
String privateEndpointConnectionName, Context context);
/**
* Gets the specified private endpoint connection associated with 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 privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
* resource.
* @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 specified private endpoint connection associated with the redis cache.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
PrivateEndpointConnectionInner get(String resourceGroupName, String cacheName,
String privateEndpointConnectionName);
/**
* Update the state of specified private endpoint connection associated with 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 privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
* resource.
* @param properties The private endpoint connection properties.
* @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 Private Endpoint Connection resource along with {@link Response} on successful completion of
* {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono>> putWithResponseAsync(String resourceGroupName, String cacheName,
String privateEndpointConnectionName, PrivateEndpointConnectionInner properties);
/**
* Update the state of specified private endpoint connection associated with 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 privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
* resource.
* @param properties The private endpoint connection properties.
* @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 the Private Endpoint Connection resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
PollerFlux, PrivateEndpointConnectionInner> beginPutAsync(
String resourceGroupName, String cacheName, String privateEndpointConnectionName,
PrivateEndpointConnectionInner properties);
/**
* Update the state of specified private endpoint connection associated with 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 privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
* resource.
* @param properties The private endpoint connection properties.
* @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 the Private Endpoint Connection resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, PrivateEndpointConnectionInner> beginPut(
String resourceGroupName, String cacheName, String privateEndpointConnectionName,
PrivateEndpointConnectionInner properties);
/**
* Update the state of specified private endpoint connection associated with 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 privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
* resource.
* @param properties The private endpoint connection properties.
* @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 the Private Endpoint Connection resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, PrivateEndpointConnectionInner> beginPut(
String resourceGroupName, String cacheName, String privateEndpointConnectionName,
PrivateEndpointConnectionInner properties, Context context);
/**
* Update the state of specified private endpoint connection associated with 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 privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
* resource.
* @param properties The private endpoint connection properties.
* @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 Private Endpoint Connection resource on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono putAsync(String resourceGroupName, String cacheName,
String privateEndpointConnectionName, PrivateEndpointConnectionInner properties);
/**
* Update the state of specified private endpoint connection associated with 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 privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
* resource.
* @param properties The private endpoint connection properties.
* @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 Private Endpoint Connection resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
PrivateEndpointConnectionInner put(String resourceGroupName, String cacheName, String privateEndpointConnectionName,
PrivateEndpointConnectionInner properties);
/**
* Update the state of specified private endpoint connection associated with 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 privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
* resource.
* @param properties The private endpoint connection properties.
* @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 Private Endpoint Connection resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
PrivateEndpointConnectionInner put(String resourceGroupName, String cacheName, String privateEndpointConnectionName,
PrivateEndpointConnectionInner properties, Context context);
/**
* Deletes the specified private endpoint connection associated with 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 privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
* resource.
* @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 privateEndpointConnectionName);
/**
* Deletes the specified private endpoint connection associated with 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 privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
* resource.
* @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 privateEndpointConnectionName);
/**
* Deletes the specified private endpoint connection associated with 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 privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
* resource.
* @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 Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response deleteWithResponse(String resourceGroupName, String cacheName, String privateEndpointConnectionName,
Context context);
/**
* Deletes the specified private endpoint connection associated with 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 privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
* resource.
* @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 privateEndpointConnectionName);
}