Interface StorageMoversClient


public interface StorageMoversClient
An instance of this class provides access to all the operations defined in StorageMoversClient.
  • Method Details

    • list

      com.azure.core.http.rest.PagedIterable<StorageMoverInner> 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<StorageMoverInner> 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<StorageMoverInner> 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<StorageMoverInner> 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<StorageMoverInner> 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

      StorageMoverInner 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.
    • createOrUpdateWithResponse

      com.azure.core.http.rest.Response<StorageMoverInner> createOrUpdateWithResponse(String resourceGroupName, String storageMoverName, StorageMoverInner storageMover, com.azure.core.util.Context context)
      Creates or updates a top-level Storage Mover resource.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      storageMoverName - The name of the Storage Mover resource.
      storageMover - The storageMover parameter.
      context - The context to associate with this operation.
      Returns:
      the Storage Mover resource, which is a container for a group of Agents, Projects, and Endpoints 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.
    • createOrUpdate

      StorageMoverInner createOrUpdate(String resourceGroupName, String storageMoverName, StorageMoverInner storageMover)
      Creates or updates a top-level Storage Mover resource.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      storageMoverName - The name of the Storage Mover resource.
      storageMover - The storageMover parameter.
      Returns:
      the Storage Mover resource, which is a container for a group of Agents, Projects, and Endpoints.
      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.
    • updateWithResponse

      com.azure.core.http.rest.Response<StorageMoverInner> updateWithResponse(String resourceGroupName, String storageMoverName, StorageMoverUpdateParameters storageMover, com.azure.core.util.Context context)
      Updates properties for a Storage Mover resource. Properties not specified in the request body will be unchanged.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      storageMoverName - The name of the Storage Mover resource.
      storageMover - The storageMover parameter.
      context - The context to associate with this operation.
      Returns:
      the Storage Mover resource, which is a container for a group of Agents, Projects, and Endpoints 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.
    • update

      StorageMoverInner update(String resourceGroupName, String storageMoverName, StorageMoverUpdateParameters storageMover)
      Updates properties for a Storage Mover resource. Properties not specified in the request body will be unchanged.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      storageMoverName - The name of the Storage Mover resource.
      storageMover - The storageMover parameter.
      Returns:
      the Storage Mover resource, which is a container for a group of Agents, Projects, and Endpoints.
      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.
    • beginDelete

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(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.
      Returns:
      the SyncPoller for polling of long-running 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.
    • beginDelete

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(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.
      Returns:
      the SyncPoller for polling of long-running 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.
    • delete

      void delete(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.