Interface StorageMovers
public interface StorageMovers
Resource collection API of StorageMovers.
-
Method Summary
Modifier and TypeMethodDescriptionBegins definition for a new StorageMover resource.voidDeletes a Storage Mover resource.voiddeleteById(String id) Deletes a Storage Mover resource.voiddeleteByIdWithResponse(String id, com.azure.core.util.Context context) Deletes a Storage Mover resource.voiddeleteByResourceGroup(String resourceGroupName, String storageMoverName) Deletes a Storage Mover resource.Gets a Storage Mover resource.com.azure.core.http.rest.Response<StorageMover> getByIdWithResponse(String id, com.azure.core.util.Context context) Gets a Storage Mover resource.getByResourceGroup(String resourceGroupName, String storageMoverName) Gets a Storage Mover resource.com.azure.core.http.rest.Response<StorageMover> getByResourceGroupWithResponse(String resourceGroupName, String storageMoverName, com.azure.core.util.Context context) Gets a Storage Mover resource.com.azure.core.http.rest.PagedIterable<StorageMover> list()Lists all Storage Movers in a subscription.com.azure.core.http.rest.PagedIterable<StorageMover> list(com.azure.core.util.Context context) Lists all Storage Movers in a subscription.com.azure.core.http.rest.PagedIterable<StorageMover> listByResourceGroup(String resourceGroupName) Lists all Storage Movers in a resource group.com.azure.core.http.rest.PagedIterable<StorageMover> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context) Lists all Storage Movers in a resource group.
-
Method Details
-
list
com.azure.core.http.rest.PagedIterable<StorageMover> list()Lists all Storage Movers in a subscription.- Returns:
- list of Storage Movers as paginated response with
PagedIterable. - Throws:
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.
-
list
Lists all Storage Movers in a subscription.- Parameters:
context- The context to associate with this operation.- Returns:
- list of Storage Movers 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.
-
listByResourceGroup
Lists all Storage Movers in a resource group.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.- Returns:
- list of Storage Movers 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.
-
listByResourceGroup
com.azure.core.http.rest.PagedIterable<StorageMover> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context) Lists all Storage Movers in a resource group.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.context- The context to associate with this operation.- Returns:
- list of Storage Movers 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.
-
getByResourceGroupWithResponse
com.azure.core.http.rest.Response<StorageMover> getByResourceGroupWithResponse(String resourceGroupName, String storageMoverName, com.azure.core.util.Context context) Gets a Storage Mover resource.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.storageMoverName- The name of the Storage Mover resource.context- The context to associate with this operation.- Returns:
- a Storage Mover resource 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.
-
getByResourceGroup
Gets a Storage Mover resource.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.storageMoverName- The name of the Storage Mover resource.- Returns:
- a Storage Mover resource.
- 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.
-
deleteByResourceGroup
Deletes a Storage Mover resource.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.storageMoverName- The name of the Storage Mover resource.- 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
Deletes a Storage Mover resource.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.storageMoverName- The name of the Storage Mover resource.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
Gets a Storage Mover resource.- Parameters:
id- the resource ID.- Returns:
- a Storage Mover resource 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<StorageMover> getByIdWithResponse(String id, com.azure.core.util.Context context) Gets a Storage Mover resource.- Parameters:
id- the resource ID.context- The context to associate with this operation.- Returns:
- a Storage Mover resource 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
Deletes a Storage Mover resource.- 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
Deletes a Storage Mover resource.- 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 StorageMover resource.- Parameters:
name- resource name.- Returns:
- the first stage of the new StorageMover definition.
-