Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.elasticsan.fluent;
import com.azure.core.annotation.ReturnType;
import com.azure.core.annotation.ServiceMethod;
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.SyncPoller;
import com.azure.resourcemanager.elasticsan.fluent.models.ElasticSanInner;
import com.azure.resourcemanager.elasticsan.models.ElasticSanUpdate;
/**
* An instance of this class provides access to all the operations defined in ElasticSansClient.
*/
public interface ElasticSansClient {
/**
* Gets a list of ElasticSans in a subscription.
*
* @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 list of ElasticSans in a subscription as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list();
/**
* Gets a list of ElasticSans in a subscription.
*
* @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 a list of ElasticSans in a subscription as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(Context context);
/**
* Gets a list of ElasticSan in a resource group.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @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 list of ElasticSan in a resource group as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName);
/**
* Gets a list of ElasticSan in a resource group.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @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 a list of ElasticSan in a resource group as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName, Context context);
/**
* Create ElasticSan.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param elasticSanName The name of the ElasticSan.
* @param parameters Elastic San object.
* @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 for ElasticSan request.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ElasticSanInner> beginCreate(String resourceGroupName,
String elasticSanName, ElasticSanInner parameters);
/**
* Create ElasticSan.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param elasticSanName The name of the ElasticSan.
* @param parameters Elastic San object.
* @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 for ElasticSan request.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ElasticSanInner> beginCreate(String resourceGroupName,
String elasticSanName, ElasticSanInner parameters, Context context);
/**
* Create ElasticSan.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param elasticSanName The name of the ElasticSan.
* @param parameters Elastic San object.
* @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 for ElasticSan request.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
ElasticSanInner create(String resourceGroupName, String elasticSanName, ElasticSanInner parameters);
/**
* Create ElasticSan.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param elasticSanName The name of the ElasticSan.
* @param parameters Elastic San object.
* @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 for ElasticSan request.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
ElasticSanInner create(String resourceGroupName, String elasticSanName, ElasticSanInner parameters,
Context context);
/**
* Update a Elastic San.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param elasticSanName The name of the ElasticSan.
* @param parameters Elastic San object.
* @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 for ElasticSan request.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ElasticSanInner> beginUpdate(String resourceGroupName,
String elasticSanName, ElasticSanUpdate parameters);
/**
* Update a Elastic San.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param elasticSanName The name of the ElasticSan.
* @param parameters Elastic San object.
* @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 for ElasticSan request.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ElasticSanInner> beginUpdate(String resourceGroupName,
String elasticSanName, ElasticSanUpdate parameters, Context context);
/**
* Update a Elastic San.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param elasticSanName The name of the ElasticSan.
* @param parameters Elastic San object.
* @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 for ElasticSan request.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
ElasticSanInner update(String resourceGroupName, String elasticSanName, ElasticSanUpdate parameters);
/**
* Update a Elastic San.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param elasticSanName The name of the ElasticSan.
* @param parameters Elastic San object.
* @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 for ElasticSan request.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
ElasticSanInner update(String resourceGroupName, String elasticSanName, ElasticSanUpdate parameters,
Context context);
/**
* Delete a Elastic San.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param elasticSanName The name of the ElasticSan.
* @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 elasticSanName);
/**
* Delete a Elastic San.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param elasticSanName The name of the ElasticSan.
* @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 elasticSanName, Context context);
/**
* Delete a Elastic San.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param elasticSanName The name of the ElasticSan.
* @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 elasticSanName);
/**
* Delete a Elastic San.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param elasticSanName The name of the ElasticSan.
* @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 elasticSanName, Context context);
/**
* Get a ElasticSan.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param elasticSanName The name of the ElasticSan.
* @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 a ElasticSan along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getByResourceGroupWithResponse(String resourceGroupName, String elasticSanName,
Context context);
/**
* Get a ElasticSan.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param elasticSanName The name of the ElasticSan.
* @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 ElasticSan.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
ElasticSanInner getByResourceGroup(String resourceGroupName, String elasticSanName);
}