Interface StorageAccountsClient
public interface StorageAccountsClient
An instance of this class provides access to all the operations defined in StorageAccountsClient.
-
Method Summary
Modifier and TypeMethodDescriptioncom.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<StorageAccountInner>,
StorageAccountInner> beginCreateOrUpdate
(String deviceName, String storageAccountName, String resourceGroupName, StorageAccountInner storageAccount) Creates a new StorageAccount or updates an existing StorageAccount on the device.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<StorageAccountInner>,
StorageAccountInner> beginCreateOrUpdate
(String deviceName, String storageAccountName, String resourceGroupName, StorageAccountInner storageAccount, com.azure.core.util.Context context) Creates a new StorageAccount or updates an existing StorageAccount on the device.beginDelete
(String deviceName, String storageAccountName, String resourceGroupName) Deletes the StorageAccount on the Data Box Edge/Data Box Gateway device.beginDelete
(String deviceName, String storageAccountName, String resourceGroupName, com.azure.core.util.Context context) Deletes the StorageAccount on the Data Box Edge/Data Box Gateway device.createOrUpdate
(String deviceName, String storageAccountName, String resourceGroupName, StorageAccountInner storageAccount) Creates a new StorageAccount or updates an existing StorageAccount on the device.createOrUpdate
(String deviceName, String storageAccountName, String resourceGroupName, StorageAccountInner storageAccount, com.azure.core.util.Context context) Creates a new StorageAccount or updates an existing StorageAccount on the device.void
Deletes the StorageAccount on the Data Box Edge/Data Box Gateway device.void
delete
(String deviceName, String storageAccountName, String resourceGroupName, com.azure.core.util.Context context) Deletes the StorageAccount on the Data Box Edge/Data Box Gateway device.Gets a StorageAccount by name.com.azure.core.http.rest.Response<StorageAccountInner>
getWithResponse
(String deviceName, String storageAccountName, String resourceGroupName, com.azure.core.util.Context context) Gets a StorageAccount by name.com.azure.core.http.rest.PagedIterable<StorageAccountInner>
listByDataBoxEdgeDevice
(String deviceName, String resourceGroupName) Lists all the storage accounts in a Data Box Edge/Data Box Gateway device.com.azure.core.http.rest.PagedIterable<StorageAccountInner>
listByDataBoxEdgeDevice
(String deviceName, String resourceGroupName, com.azure.core.util.Context context) Lists all the storage accounts in a Data Box Edge/Data Box Gateway device.
-
Method Details
-
listByDataBoxEdgeDevice
com.azure.core.http.rest.PagedIterable<StorageAccountInner> listByDataBoxEdgeDevice(String deviceName, String resourceGroupName) Lists all the storage accounts in a Data Box Edge/Data Box Gateway device.- Parameters:
deviceName
- The device name.resourceGroupName
- The resource group name.- Returns:
- collection of all the Storage Accounts 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.
-
listByDataBoxEdgeDevice
com.azure.core.http.rest.PagedIterable<StorageAccountInner> listByDataBoxEdgeDevice(String deviceName, String resourceGroupName, com.azure.core.util.Context context) Lists all the storage accounts in a Data Box Edge/Data Box Gateway device.- Parameters:
deviceName
- The device name.resourceGroupName
- The resource group name.context
- The context to associate with this operation.- Returns:
- collection of all the Storage Accounts 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<StorageAccountInner> getWithResponse(String deviceName, String storageAccountName, String resourceGroupName, com.azure.core.util.Context context) Gets a StorageAccount by name.- Parameters:
deviceName
- The device name.storageAccountName
- The storage account name.resourceGroupName
- The resource group name.context
- The context to associate with this operation.- Returns:
- a StorageAccount 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
Gets a StorageAccount by name.- Parameters:
deviceName
- The device name.storageAccountName
- The storage account name.resourceGroupName
- The resource group name.- Returns:
- a StorageAccount 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<StorageAccountInner>,StorageAccountInner> beginCreateOrUpdate(String deviceName, String storageAccountName, String resourceGroupName, StorageAccountInner storageAccount) Creates a new StorageAccount or updates an existing StorageAccount on the device.- Parameters:
deviceName
- The device name.storageAccountName
- The StorageAccount name.resourceGroupName
- The resource group name.storageAccount
- The StorageAccount properties.- Returns:
- the
SyncPoller
for polling of represents a Storage Account 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<StorageAccountInner>,StorageAccountInner> beginCreateOrUpdate(String deviceName, String storageAccountName, String resourceGroupName, StorageAccountInner storageAccount, com.azure.core.util.Context context) Creates a new StorageAccount or updates an existing StorageAccount on the device.- Parameters:
deviceName
- The device name.storageAccountName
- The StorageAccount name.resourceGroupName
- The resource group name.storageAccount
- The StorageAccount properties.context
- The context to associate with this operation.- Returns:
- the
SyncPoller
for polling of represents a Storage Account 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
StorageAccountInner createOrUpdate(String deviceName, String storageAccountName, String resourceGroupName, StorageAccountInner storageAccount) Creates a new StorageAccount or updates an existing StorageAccount on the device.- Parameters:
deviceName
- The device name.storageAccountName
- The StorageAccount name.resourceGroupName
- The resource group name.storageAccount
- The StorageAccount properties.- Returns:
- represents a Storage Account 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
StorageAccountInner createOrUpdate(String deviceName, String storageAccountName, String resourceGroupName, StorageAccountInner storageAccount, com.azure.core.util.Context context) Creates a new StorageAccount or updates an existing StorageAccount on the device.- Parameters:
deviceName
- The device name.storageAccountName
- The StorageAccount name.resourceGroupName
- The resource group name.storageAccount
- The StorageAccount properties.context
- The context to associate with this operation.- Returns:
- represents a Storage Account 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 resourceGroupName) Deletes the StorageAccount on the Data Box Edge/Data Box Gateway device.- Parameters:
deviceName
- The device name.storageAccountName
- The StorageAccount 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 resourceGroupName, com.azure.core.util.Context context) Deletes the StorageAccount on the Data Box Edge/Data Box Gateway device.- Parameters:
deviceName
- The device name.storageAccountName
- The StorageAccount 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
Deletes the StorageAccount on the Data Box Edge/Data Box Gateway device.- Parameters:
deviceName
- The device name.storageAccountName
- The StorageAccount 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 resourceGroupName, com.azure.core.util.Context context) Deletes the StorageAccount on the Data Box Edge/Data Box Gateway device.- Parameters:
deviceName
- The device name.storageAccountName
- The StorageAccount 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.
-