Interface ContainersClient
public interface ContainersClient
An instance of this class provides access to all the operations defined in ContainersClient.
-
Method Summary
Modifier and TypeMethodDescriptioncom.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ContainerInner>,
ContainerInner> beginCreateOrUpdate
(String deviceName, String storageAccountName, String containerName, String resourceGroupName, ContainerInner container) Creates a new container or updates an existing container on the device.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ContainerInner>,
ContainerInner> beginCreateOrUpdate
(String deviceName, String storageAccountName, String containerName, String resourceGroupName, ContainerInner container, com.azure.core.util.Context context) Creates a new container or updates an existing container on the device.beginDelete
(String deviceName, String storageAccountName, String containerName, String resourceGroupName) Deletes the container on the Data Box Edge/Data Box Gateway device.beginDelete
(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.beginRefresh
(String deviceName, String storageAccountName, String containerName, String resourceGroupName) Refreshes the container metadata with the data from the cloud.beginRefresh
(String deviceName, String storageAccountName, String containerName, String resourceGroupName, com.azure.core.util.Context context) Refreshes the container metadata with the data from the cloud.createOrUpdate
(String deviceName, String storageAccountName, String containerName, String resourceGroupName, ContainerInner container) Creates a new container or updates an existing container on the device.createOrUpdate
(String deviceName, String storageAccountName, String containerName, String resourceGroupName, ContainerInner container, com.azure.core.util.Context context) Creates a new container or updates an existing container on the device.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.Gets a container by name.com.azure.core.http.rest.Response<ContainerInner>
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<ContainerInner>
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<ContainerInner>
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<ContainerInner> 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<ContainerInner> 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<ContainerInner> 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
ContainerInner 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.
-
beginCreateOrUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ContainerInner>,ContainerInner> beginCreateOrUpdate(String deviceName, String storageAccountName, String containerName, String resourceGroupName, ContainerInner container) Creates a new container or updates an existing container on the device.- Parameters:
deviceName
- The device name.storageAccountName
- The Storage Account Name.containerName
- The container name.resourceGroupName
- The resource group name.container
- The container properties.- Returns:
- the
SyncPoller
for polling of represents a container on the Data Box Edge/Gateway device. - 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.
-
beginCreateOrUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ContainerInner>,ContainerInner> beginCreateOrUpdate(String deviceName, String storageAccountName, String containerName, String resourceGroupName, ContainerInner container, com.azure.core.util.Context context) Creates a new container or updates an existing container on the device.- Parameters:
deviceName
- The device name.storageAccountName
- The Storage Account Name.containerName
- The container name.resourceGroupName
- The resource group name.container
- The container properties.context
- The context to associate with this operation.- Returns:
- the
SyncPoller
for polling of represents a container on the Data Box Edge/Gateway device. - 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
ContainerInner createOrUpdate(String deviceName, String storageAccountName, String containerName, String resourceGroupName, ContainerInner container) Creates a new container or updates an existing container on the device.- Parameters:
deviceName
- The device name.storageAccountName
- The Storage Account Name.containerName
- The container name.resourceGroupName
- The resource group name.container
- The container properties.- Returns:
- represents a container on the Data Box Edge/Gateway device.
- 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
ContainerInner createOrUpdate(String deviceName, String storageAccountName, String containerName, String resourceGroupName, ContainerInner container, com.azure.core.util.Context context) Creates a new container or updates an existing container on the device.- Parameters:
deviceName
- The device name.storageAccountName
- The Storage Account Name.containerName
- The container name.resourceGroupName
- The resource group name.container
- The container properties.context
- The context to associate with this operation.- Returns:
- represents a container on the Data Box Edge/Gateway device.
- 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 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.- 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 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.- 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 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.
-
beginRefresh
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginRefresh(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.- 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.
-
beginRefresh
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginRefresh(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.- 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.
-
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.
-