Interface StorageMovers


public interface StorageMovers
Resource collection API of StorageMovers.
  • 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

      com.azure.core.http.rest.PagedIterable<StorageMover> list(com.azure.core.util.Context context)
      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

      com.azure.core.http.rest.PagedIterable<StorageMover> listByResourceGroup(String resourceGroupName)
      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

      StorageMover getByResourceGroup(String resourceGroupName, String storageMoverName)
      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

      void deleteByResourceGroup(String resourceGroupName, String storageMoverName)
      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

      void delete(String resourceGroupName, String storageMoverName, com.azure.core.util.Context context)
      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

      StorageMover getById(String id)
      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

      void deleteById(String id)
      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

      void deleteByIdWithResponse(String id, com.azure.core.util.Context context)
      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.