Interface VolumeGroups
public interface VolumeGroups
Resource collection API of VolumeGroups.
-
Method Summary
Modifier and TypeMethodDescriptionBegins definition for a new VolumeGroup resource.voidDelete an VolumeGroup.voiddelete(String resourceGroupName, String elasticSanName, String volumeGroupName, com.azure.core.util.Context context) Delete an VolumeGroup.voiddeleteById(String id) Delete an VolumeGroup.voiddeleteByIdWithResponse(String id, com.azure.core.util.Context context) Delete an VolumeGroup.Get an VolumeGroups.Get an VolumeGroups.com.azure.core.http.rest.Response<VolumeGroup> getByIdWithResponse(String id, com.azure.core.util.Context context) Get an VolumeGroups.com.azure.core.http.rest.Response<VolumeGroup> getWithResponse(String resourceGroupName, String elasticSanName, String volumeGroupName, com.azure.core.util.Context context) Get an VolumeGroups.com.azure.core.http.rest.PagedIterable<VolumeGroup> listByElasticSan(String resourceGroupName, String elasticSanName) List VolumeGroups.com.azure.core.http.rest.PagedIterable<VolumeGroup> listByElasticSan(String resourceGroupName, String elasticSanName, XMsAccessSoftDeletedResources xMsAccessSoftDeletedResources, com.azure.core.util.Context context) List VolumeGroups.
-
Method Details
-
listByElasticSan
com.azure.core.http.rest.PagedIterable<VolumeGroup> listByElasticSan(String resourceGroupName, String elasticSanName) List VolumeGroups.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.elasticSanName- The name of the ElasticSan.- Returns:
- list of Volume Groups as paginated response with
PagedIterable. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
listByElasticSan
com.azure.core.http.rest.PagedIterable<VolumeGroup> listByElasticSan(String resourceGroupName, String elasticSanName, XMsAccessSoftDeletedResources xMsAccessSoftDeletedResources, com.azure.core.util.Context context) List VolumeGroups.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.elasticSanName- The name of the ElasticSan.xMsAccessSoftDeletedResources- Optional, returns only soft deleted volume groups if set to true. If set to false or if not specified, returns only active volume groups.context- The context to associate with this operation.- Returns:
- list of Volume Groups as paginated response with
PagedIterable. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
delete
Delete an VolumeGroup.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.elasticSanName- The name of the ElasticSan.volumeGroupName- The name of the VolumeGroup.- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
delete
void delete(String resourceGroupName, String elasticSanName, String volumeGroupName, com.azure.core.util.Context context) Delete an VolumeGroup.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.elasticSanName- The name of the ElasticSan.volumeGroupName- The name of the VolumeGroup.context- The context to associate with this operation.- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
getWithResponse
com.azure.core.http.rest.Response<VolumeGroup> getWithResponse(String resourceGroupName, String elasticSanName, String volumeGroupName, com.azure.core.util.Context context) Get an VolumeGroups.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.elasticSanName- The name of the ElasticSan.volumeGroupName- The name of the VolumeGroup.context- The context to associate with this operation.- Returns:
- an VolumeGroups along with
Response. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
get
Get an VolumeGroups.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.elasticSanName- The name of the ElasticSan.volumeGroupName- The name of the VolumeGroup.- Returns:
- an VolumeGroups.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
getById
Get an VolumeGroups.- Parameters:
id- the resource ID.- Returns:
- an VolumeGroups along with
Response. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
getByIdWithResponse
com.azure.core.http.rest.Response<VolumeGroup> getByIdWithResponse(String id, com.azure.core.util.Context context) Get an VolumeGroups.- Parameters:
id- the resource ID.context- The context to associate with this operation.- Returns:
- an VolumeGroups along with
Response. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
deleteById
Delete an VolumeGroup.- Parameters:
id- the resource ID.- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
deleteByIdWithResponse
Delete an VolumeGroup.- Parameters:
id- the resource ID.context- The context to associate with this operation.- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
define
Begins definition for a new VolumeGroup resource.- Parameters:
name- resource name.- Returns:
- the first stage of the new VolumeGroup definition.
-