Interface VolumeGroups
public interface VolumeGroups
Resource collection API of VolumeGroups.
-
Method Summary
Modifier and TypeMethodDescriptionBegins definition for a new VolumeGroupDetails resource.voidDelete a volume group Delete the specified volume group only if there are no volumes under volume group.voiddelete(String resourceGroupName, String accountName, String volumeGroupName, com.azure.core.util.Context context) Delete a volume group Delete the specified volume group only if there are no volumes under volume group.voiddeleteById(String id) Delete a volume group Delete the specified volume group only if there are no volumes under volume group.voiddeleteByIdWithResponse(String id, com.azure.core.util.Context context) Delete a volume group Delete the specified volume group only if there are no volumes under volume group.Describe a Volume Group Get details of the specified volume group.Describe a Volume Group Get details of the specified volume group.com.azure.core.http.rest.Response<VolumeGroupDetails> getByIdWithResponse(String id, com.azure.core.util.Context context) Describe a Volume Group Get details of the specified volume group.com.azure.core.http.rest.Response<VolumeGroupDetails> getWithResponse(String resourceGroupName, String accountName, String volumeGroupName, com.azure.core.util.Context context) Describe a Volume Group Get details of the specified volume group.com.azure.core.http.rest.PagedIterable<VolumeGroup> listByNetAppAccount(String resourceGroupName, String accountName) Describe all volume groups List all volume groups for given account.com.azure.core.http.rest.PagedIterable<VolumeGroup> listByNetAppAccount(String resourceGroupName, String accountName, com.azure.core.util.Context context) Describe all volume groups List all volume groups for given account.
-
Method Details
-
listByNetAppAccount
com.azure.core.http.rest.PagedIterable<VolumeGroup> listByNetAppAccount(String resourceGroupName, String accountName) Describe all volume groups List all volume groups for given account.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.accountName- The name of the NetApp account.- Returns:
- list of volume group resources 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.
-
listByNetAppAccount
com.azure.core.http.rest.PagedIterable<VolumeGroup> listByNetAppAccount(String resourceGroupName, String accountName, com.azure.core.util.Context context) Describe all volume groups List all volume groups for given account.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.accountName- The name of the NetApp account.context- The context to associate with this operation.- Returns:
- list of volume group resources 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.
-
getWithResponse
com.azure.core.http.rest.Response<VolumeGroupDetails> getWithResponse(String resourceGroupName, String accountName, String volumeGroupName, com.azure.core.util.Context context) Describe a Volume Group Get details of the specified volume group.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.accountName- The name of the NetApp account.volumeGroupName- The name of the volumeGroup.context- The context to associate with this operation.- Returns:
- details of the specified volume group 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
Describe a Volume Group Get details of the specified volume group.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.accountName- The name of the NetApp account.volumeGroupName- The name of the volumeGroup.- Returns:
- details of the specified volume group.
- 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 a volume group Delete the specified volume group only if there are no volumes under volume group.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.accountName- The name of the NetApp account.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 accountName, String volumeGroupName, com.azure.core.util.Context context) Delete a volume group Delete the specified volume group only if there are no volumes under volume group.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.accountName- The name of the NetApp account.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.
-
getById
Describe a Volume Group Get details of the specified volume group.- Parameters:
id- the resource ID.- Returns:
- details of the specified volume group 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<VolumeGroupDetails> getByIdWithResponse(String id, com.azure.core.util.Context context) Describe a Volume Group Get details of the specified volume group.- Parameters:
id- the resource ID.context- The context to associate with this operation.- Returns:
- details of the specified volume group 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 a volume group Delete the specified volume group only if there are no volumes under volume group.- 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 a volume group Delete the specified volume group only if there are no volumes under volume group.- 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 VolumeGroupDetails resource.- Parameters:
name- resource name.- Returns:
- the first stage of the new VolumeGroupDetails definition.
-