Interface StorageAccounts
public interface StorageAccounts
Resource collection API of StorageAccounts.
-
Method Summary
Modifier and TypeMethodDescriptionBegins definition for a new StorageAccount resource.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.void
deleteById
(String id) Deletes the StorageAccount on the Data Box Edge/Data Box Gateway device.void
deleteByIdWithResponse
(String id, com.azure.core.util.Context context) Deletes the StorageAccount on the Data Box Edge/Data Box Gateway device.Gets a StorageAccount by name.Gets a StorageAccount by name.com.azure.core.http.rest.Response<StorageAccount>
getByIdWithResponse
(String id, com.azure.core.util.Context context) Gets a StorageAccount by name.com.azure.core.http.rest.Response<StorageAccount>
getWithResponse
(String deviceName, String storageAccountName, String resourceGroupName, com.azure.core.util.Context context) Gets a StorageAccount by name.com.azure.core.http.rest.PagedIterable<StorageAccount>
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<StorageAccount>
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<StorageAccount> 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<StorageAccount> 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<StorageAccount> 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.
-
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.
-
getById
Gets a StorageAccount by name.- Parameters:
id
- the resource ID.- 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.
-
getByIdWithResponse
com.azure.core.http.rest.Response<StorageAccount> getByIdWithResponse(String id, com.azure.core.util.Context context) Gets a StorageAccount by name.- Parameters:
id
- the resource ID.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.
-
deleteById
Deletes the StorageAccount 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
Deletes the StorageAccount 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 StorageAccount resource.- Parameters:
name
- resource name.- Returns:
- the first stage of the new StorageAccount definition.
-