com.azure.resourcemanager.redis.fluent.PatchSchedulesClient 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.util.Context;
import com.azure.resourcemanager.redis.fluent.models.RedisPatchScheduleInner;
import com.azure.resourcemanager.redis.models.DefaultName;
import reactor.core.publisher.Mono;
/**
* An instance of this class provides access to all the operations defined in PatchSchedulesClient.
*/
public interface PatchSchedulesClient {
/**
* Gets all patch schedules in the specified redis cache (there is only one).
*
* @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 all patch schedules in the specified redis cache (there is only one) as paginated response with
* {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedFlux listByRedisResourceAsync(String resourceGroupName, String cacheName);
/**
* Gets all patch schedules in the specified redis cache (there is only one).
*
* @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 all patch schedules in the specified redis cache (there is only one) as paginated response with
* {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByRedisResource(String resourceGroupName, String cacheName);
/**
* Gets all patch schedules in the specified redis cache (there is only one).
*
* @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 all patch schedules in the specified redis cache (there is only one) as paginated response with
* {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByRedisResource(String resourceGroupName, String cacheName,
Context context);
/**
* Create or replace the patching schedule for Redis cache.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param name The name of the Redis cache.
* @param defaultParameter Default string modeled as parameter for auto generation to work correctly.
* @param parameters Parameters to set the patching schedule for 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 response to put/get patch schedules for Redis cache along with {@link Response} on successful completion
* of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono> createOrUpdateWithResponseAsync(String resourceGroupName, String name,
DefaultName defaultParameter, RedisPatchScheduleInner parameters);
/**
* Create or replace the patching schedule for Redis cache.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param name The name of the Redis cache.
* @param defaultParameter Default string modeled as parameter for auto generation to work correctly.
* @param parameters Parameters to set the patching schedule for 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 response to put/get patch schedules for Redis cache on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono createOrUpdateAsync(String resourceGroupName, String name,
DefaultName defaultParameter, RedisPatchScheduleInner parameters);
/**
* Create or replace the patching schedule for Redis cache.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param name The name of the Redis cache.
* @param defaultParameter Default string modeled as parameter for auto generation to work correctly.
* @param parameters Parameters to set the patching schedule for 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 response to put/get patch schedules for Redis cache along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response createOrUpdateWithResponse(String resourceGroupName, String name,
DefaultName defaultParameter, RedisPatchScheduleInner parameters, Context context);
/**
* Create or replace the patching schedule for Redis cache.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param name The name of the Redis cache.
* @param defaultParameter Default string modeled as parameter for auto generation to work correctly.
* @param parameters Parameters to set the patching schedule for 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 response to put/get patch schedules for Redis cache.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
RedisPatchScheduleInner createOrUpdate(String resourceGroupName, String name, DefaultName defaultParameter,
RedisPatchScheduleInner parameters);
/**
* Deletes the patching schedule of a redis cache.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param name The name of the redis cache.
* @param defaultParameter Default string modeled as parameter for auto generation to work correctly.
* @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 name, DefaultName defaultParameter);
/**
* Deletes the patching schedule of a redis cache.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param name The name of the redis cache.
* @param defaultParameter Default string modeled as parameter for auto generation to work correctly.
* @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 name, DefaultName defaultParameter);
/**
* Deletes the patching schedule of a redis cache.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param name The name of the redis cache.
* @param defaultParameter Default string modeled as parameter for auto generation to work correctly.
* @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 name, DefaultName defaultParameter,
Context context);
/**
* Deletes the patching schedule of a redis cache.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param name The name of the redis cache.
* @param defaultParameter Default string modeled as parameter for auto generation to work correctly.
* @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 name, DefaultName defaultParameter);
/**
* Gets the patching schedule of a redis cache.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param name The name of the redis cache.
* @param defaultParameter Default string modeled as parameter for auto generation to work correctly.
* @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 patching schedule of a redis cache along with {@link Response} on successful completion of
* {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono> getWithResponseAsync(String resourceGroupName, String name,
DefaultName defaultParameter);
/**
* Gets the patching schedule of a redis cache.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param name The name of the redis cache.
* @param defaultParameter Default string modeled as parameter for auto generation to work correctly.
* @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 patching schedule of a redis cache on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono getAsync(String resourceGroupName, String name, DefaultName defaultParameter);
/**
* Gets the patching schedule of a redis cache.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param name The name of the redis cache.
* @param defaultParameter Default string modeled as parameter for auto generation to work correctly.
* @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 patching schedule of a redis cache along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(String resourceGroupName, String name,
DefaultName defaultParameter, Context context);
/**
* Gets the patching schedule of a redis cache.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param name The name of the redis cache.
* @param defaultParameter Default string modeled as parameter for auto generation to work correctly.
* @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 patching schedule of a redis cache.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
RedisPatchScheduleInner get(String resourceGroupName, String name, DefaultName defaultParameter);
}