Interface Containers


public interface Containers
Resource collection API of Containers.
  • Method Summary

    Modifier and Type
    Method
    Description
    define(String name)
    Begins definition for a new Container resource.
    void
    delete(String deviceName, String storageAccountName, String containerName, String resourceGroupName)
    Deletes the container on the Data Box Edge/Data Box Gateway device.
    void
    delete(String deviceName, String storageAccountName, String containerName, String resourceGroupName, com.azure.core.util.Context context)
    Deletes the container on the Data Box Edge/Data Box Gateway device.
    void
    Deletes the container on the Data Box Edge/Data Box Gateway device.
    void
    deleteByIdWithResponse(String id, com.azure.core.util.Context context)
    Deletes the container on the Data Box Edge/Data Box Gateway device.
    get(String deviceName, String storageAccountName, String containerName, String resourceGroupName)
    Gets a container by name.
    Gets a container by name.
    com.azure.core.http.rest.Response<Container>
    getByIdWithResponse(String id, com.azure.core.util.Context context)
    Gets a container by name.
    com.azure.core.http.rest.Response<Container>
    getWithResponse(String deviceName, String storageAccountName, String containerName, String resourceGroupName, com.azure.core.util.Context context)
    Gets a container by name.
    com.azure.core.http.rest.PagedIterable<Container>
    listByStorageAccount(String deviceName, String storageAccountName, String resourceGroupName)
    Lists all the containers of a storage Account in a Data Box Edge/Data Box Gateway device.
    com.azure.core.http.rest.PagedIterable<Container>
    listByStorageAccount(String deviceName, String storageAccountName, String resourceGroupName, com.azure.core.util.Context context)
    Lists all the containers of a storage Account in a Data Box Edge/Data Box Gateway device.
    void
    refresh(String deviceName, String storageAccountName, String containerName, String resourceGroupName)
    Refreshes the container metadata with the data from the cloud.
    void
    refresh(String deviceName, String storageAccountName, String containerName, String resourceGroupName, com.azure.core.util.Context context)
    Refreshes the container metadata with the data from the cloud.
  • Method Details

    • listByStorageAccount

      com.azure.core.http.rest.PagedIterable<Container> listByStorageAccount(String deviceName, String storageAccountName, String resourceGroupName)
      Lists all the containers of a storage Account in a Data Box Edge/Data Box Gateway device.
      Parameters:
      deviceName - The device name.
      storageAccountName - The storage Account name.
      resourceGroupName - The resource group name.
      Returns:
      collection of all the containers on the Data Box Edge/Gateway device 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.
    • listByStorageAccount

      com.azure.core.http.rest.PagedIterable<Container> listByStorageAccount(String deviceName, String storageAccountName, String resourceGroupName, com.azure.core.util.Context context)
      Lists all the containers of a storage Account in a Data Box Edge/Data Box Gateway device.
      Parameters:
      deviceName - The device name.
      storageAccountName - The storage Account name.
      resourceGroupName - The resource group name.
      context - The context to associate with this operation.
      Returns:
      collection of all the containers on the Data Box Edge/Gateway device 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<Container> getWithResponse(String deviceName, String storageAccountName, String containerName, String resourceGroupName, com.azure.core.util.Context context)
      Gets a container by name.
      Parameters:
      deviceName - The device name.
      storageAccountName - The Storage Account Name.
      containerName - The container Name.
      resourceGroupName - The resource group name.
      context - The context to associate with this operation.
      Returns:
      a container by name 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

      Container get(String deviceName, String storageAccountName, String containerName, String resourceGroupName)
      Gets a container by name.
      Parameters:
      deviceName - The device name.
      storageAccountName - The Storage Account Name.
      containerName - The container Name.
      resourceGroupName - The resource group name.
      Returns:
      a container by name.
      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 deviceName, String storageAccountName, String containerName, String resourceGroupName)
      Deletes the container on the Data Box Edge/Data Box Gateway device.
      Parameters:
      deviceName - The device name.
      storageAccountName - The Storage Account Name.
      containerName - The container name.
      resourceGroupName - The resource group name.
      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 deviceName, String storageAccountName, String containerName, String resourceGroupName, com.azure.core.util.Context context)
      Deletes the container on the Data Box Edge/Data Box Gateway device.
      Parameters:
      deviceName - The device name.
      storageAccountName - The Storage Account Name.
      containerName - The container name.
      resourceGroupName - The resource group name.
      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.
    • refresh

      void refresh(String deviceName, String storageAccountName, String containerName, String resourceGroupName)
      Refreshes the container metadata with the data from the cloud.
      Parameters:
      deviceName - The device name.
      storageAccountName - The Storage Account Name.
      containerName - The container name.
      resourceGroupName - The resource group name.
      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.
    • refresh

      void refresh(String deviceName, String storageAccountName, String containerName, String resourceGroupName, com.azure.core.util.Context context)
      Refreshes the container metadata with the data from the cloud.
      Parameters:
      deviceName - The device name.
      storageAccountName - The Storage Account Name.
      containerName - The container name.
      resourceGroupName - The resource group name.
      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

      Container getById(String id)
      Gets a container by name.
      Parameters:
      id - the resource ID.
      Returns:
      a container by name 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<Container> getByIdWithResponse(String id, com.azure.core.util.Context context)
      Gets a container by name.
      Parameters:
      id - the resource ID.
      context - The context to associate with this operation.
      Returns:
      a container by name 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 the container on the Data Box Edge/Data Box Gateway device.
      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 the container on the Data Box Edge/Data Box Gateway device.
      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 Container resource.
      Parameters:
      name - resource name.
      Returns:
      the first stage of the new Container definition.