
com.azure.resourcemanager.storagepool.fluent.DiskPoolsClient Maven / Gradle / Ivy
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.storagepool.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.storagepool.fluent.models.DiskPoolInner;
import com.azure.resourcemanager.storagepool.fluent.models.OutboundEnvironmentEndpointInner;
import com.azure.resourcemanager.storagepool.models.DiskPoolCreate;
import com.azure.resourcemanager.storagepool.models.DiskPoolUpdate;
/**
* An instance of this class provides access to all the operations defined in DiskPoolsClient.
*/
public interface DiskPoolsClient {
/**
* Gets a list of Disk Pools 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 Disk Pools in a subscription as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list();
/**
* Gets a list of Disk Pools 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 Disk Pools in a subscription as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(Context context);
/**
* Gets a list of DiskPools 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 DiskPools in a resource group as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName);
/**
* Gets a list of DiskPools 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 DiskPools in a resource group as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName, Context context);
/**
* Create or Update Disk pool. This create or update operation can take 15 minutes to complete. This is expected
* service behavior.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param diskPoolName The name of the Disk Pool.
* @param diskPoolCreatePayload Request payload for Disk Pool create 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 Disk Pool request.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, DiskPoolInner> beginCreateOrUpdate(String resourceGroupName,
String diskPoolName, DiskPoolCreate diskPoolCreatePayload);
/**
* Create or Update Disk pool. This create or update operation can take 15 minutes to complete. This is expected
* service behavior.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param diskPoolName The name of the Disk Pool.
* @param diskPoolCreatePayload Request payload for Disk Pool create 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 for Disk Pool request.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, DiskPoolInner> beginCreateOrUpdate(String resourceGroupName,
String diskPoolName, DiskPoolCreate diskPoolCreatePayload, Context context);
/**
* Create or Update Disk pool. This create or update operation can take 15 minutes to complete. This is expected
* service behavior.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param diskPoolName The name of the Disk Pool.
* @param diskPoolCreatePayload Request payload for Disk Pool create 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 Disk Pool request.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
DiskPoolInner createOrUpdate(String resourceGroupName, String diskPoolName, DiskPoolCreate diskPoolCreatePayload);
/**
* Create or Update Disk pool. This create or update operation can take 15 minutes to complete. This is expected
* service behavior.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param diskPoolName The name of the Disk Pool.
* @param diskPoolCreatePayload Request payload for Disk Pool create 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 for Disk Pool request.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
DiskPoolInner createOrUpdate(String resourceGroupName, String diskPoolName, DiskPoolCreate diskPoolCreatePayload,
Context context);
/**
* Update a Disk pool.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param diskPoolName The name of the Disk Pool.
* @param diskPoolUpdatePayload Request payload for Disk Pool update 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 Disk Pool request.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, DiskPoolInner> beginUpdate(String resourceGroupName, String diskPoolName,
DiskPoolUpdate diskPoolUpdatePayload);
/**
* Update a Disk pool.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param diskPoolName The name of the Disk Pool.
* @param diskPoolUpdatePayload Request payload for Disk Pool update 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 for Disk Pool request.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, DiskPoolInner> beginUpdate(String resourceGroupName, String diskPoolName,
DiskPoolUpdate diskPoolUpdatePayload, Context context);
/**
* Update a Disk pool.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param diskPoolName The name of the Disk Pool.
* @param diskPoolUpdatePayload Request payload for Disk Pool update 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 Disk Pool request.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
DiskPoolInner update(String resourceGroupName, String diskPoolName, DiskPoolUpdate diskPoolUpdatePayload);
/**
* Update a Disk pool.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param diskPoolName The name of the Disk Pool.
* @param diskPoolUpdatePayload Request payload for Disk Pool update 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 for Disk Pool request.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
DiskPoolInner update(String resourceGroupName, String diskPoolName, DiskPoolUpdate diskPoolUpdatePayload,
Context context);
/**
* Delete a Disk pool; attached disks are not affected. This delete operation can take 10 minutes to complete. This
* is expected service behavior.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param diskPoolName The name of the Disk Pool.
* @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 diskPoolName);
/**
* Delete a Disk pool; attached disks are not affected. This delete operation can take 10 minutes to complete. This
* is expected service behavior.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param diskPoolName The name of the Disk Pool.
* @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 diskPoolName, Context context);
/**
* Delete a Disk pool; attached disks are not affected. This delete operation can take 10 minutes to complete. This
* is expected service behavior.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param diskPoolName The name of the Disk Pool.
* @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 diskPoolName);
/**
* Delete a Disk pool; attached disks are not affected. This delete operation can take 10 minutes to complete. This
* is expected service behavior.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param diskPoolName The name of the Disk Pool.
* @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 diskPoolName, Context context);
/**
* Get a Disk pool.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param diskPoolName The name of the Disk Pool.
* @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 Disk pool along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getByResourceGroupWithResponse(String resourceGroupName, String diskPoolName,
Context context);
/**
* Get a Disk pool.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param diskPoolName The name of the Disk Pool.
* @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 Disk pool.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
DiskPoolInner getByResourceGroup(String resourceGroupName, String diskPoolName);
/**
* Gets the network endpoints of all outbound dependencies of a Disk Pool.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param diskPoolName The name of the Disk Pool.
* @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 network endpoints of all outbound dependencies of a Disk Pool as paginated response with
* {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listOutboundNetworkDependenciesEndpoints(String resourceGroupName,
String diskPoolName);
/**
* Gets the network endpoints of all outbound dependencies of a Disk Pool.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param diskPoolName The name of the Disk Pool.
* @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 network endpoints of all outbound dependencies of a Disk Pool as paginated response with
* {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listOutboundNetworkDependenciesEndpoints(String resourceGroupName,
String diskPoolName, Context context);
/**
* The operation to start a Disk Pool. This start operation can take 10 minutes to complete. This is expected
* service behavior.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param diskPoolName The name of the Disk Pool.
* @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> beginStart(String resourceGroupName, String diskPoolName);
/**
* The operation to start a Disk Pool. This start operation can take 10 minutes to complete. This is expected
* service behavior.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param diskPoolName The name of the Disk Pool.
* @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> beginStart(String resourceGroupName, String diskPoolName, Context context);
/**
* The operation to start a Disk Pool. This start operation can take 10 minutes to complete. This is expected
* service behavior.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param diskPoolName The name of the Disk Pool.
* @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 start(String resourceGroupName, String diskPoolName);
/**
* The operation to start a Disk Pool. This start operation can take 10 minutes to complete. This is expected
* service behavior.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param diskPoolName The name of the Disk Pool.
* @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 start(String resourceGroupName, String diskPoolName, Context context);
/**
* Shuts down the Disk Pool and releases the compute resources. You are not billed for the compute resources that
* this Disk Pool uses. This operation can take 10 minutes to complete. This is expected service behavior.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param diskPoolName The name of the Disk Pool.
* @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> beginDeallocate(String resourceGroupName, String diskPoolName);
/**
* Shuts down the Disk Pool and releases the compute resources. You are not billed for the compute resources that
* this Disk Pool uses. This operation can take 10 minutes to complete. This is expected service behavior.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param diskPoolName The name of the Disk Pool.
* @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> beginDeallocate(String resourceGroupName, String diskPoolName, Context context);
/**
* Shuts down the Disk Pool and releases the compute resources. You are not billed for the compute resources that
* this Disk Pool uses. This operation can take 10 minutes to complete. This is expected service behavior.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param diskPoolName The name of the Disk Pool.
* @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 deallocate(String resourceGroupName, String diskPoolName);
/**
* Shuts down the Disk Pool and releases the compute resources. You are not billed for the compute resources that
* this Disk Pool uses. This operation can take 10 minutes to complete. This is expected service behavior.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param diskPoolName The name of the Disk Pool.
* @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 deallocate(String resourceGroupName, String diskPoolName, Context context);
/**
* Upgrade replaces the underlying virtual machine hosts one at a time. This operation can take 10-15 minutes to
* complete. This is expected service behavior.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param diskPoolName The name of the Disk Pool.
* @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> beginUpgrade(String resourceGroupName, String diskPoolName);
/**
* Upgrade replaces the underlying virtual machine hosts one at a time. This operation can take 10-15 minutes to
* complete. This is expected service behavior.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param diskPoolName The name of the Disk Pool.
* @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> beginUpgrade(String resourceGroupName, String diskPoolName, Context context);
/**
* Upgrade replaces the underlying virtual machine hosts one at a time. This operation can take 10-15 minutes to
* complete. This is expected service behavior.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param diskPoolName The name of the Disk Pool.
* @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 upgrade(String resourceGroupName, String diskPoolName);
/**
* Upgrade replaces the underlying virtual machine hosts one at a time. This operation can take 10-15 minutes to
* complete. This is expected service behavior.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param diskPoolName The name of the Disk Pool.
* @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 upgrade(String resourceGroupName, String diskPoolName, Context context);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy