Interface Accounts
public interface Accounts
Resource collection API of Accounts.
-
Method Summary
Modifier and TypeMethodDescriptionBegins definition for a new Account resource.void
Deletes account.void
deleteById
(String id) Deletes account.void
deleteByIdWithResponse
(String id, com.azure.core.util.Context context) Deletes account.void
deleteByResourceGroup
(String resourceGroupName, String accountName) Deletes account.Returns account details for the given account name.com.azure.core.http.rest.Response<Account>
getByIdWithResponse
(String id, com.azure.core.util.Context context) Returns account details for the given account name.getByResourceGroup
(String resourceGroupName, String accountName) Returns account details for the given account name.com.azure.core.http.rest.Response<Account>
getByResourceGroupWithResponse
(String resourceGroupName, String accountName, com.azure.core.util.Context context) Returns account details for the given account name.void
Checks whether account exists.com.azure.core.http.rest.Response<Void>
headWithResponse
(String resourceGroupName, String accountName, com.azure.core.util.Context context) Checks whether account exists.com.azure.core.http.rest.PagedIterable<Account>
list()
Returns list of Accounts.com.azure.core.http.rest.PagedIterable<Account>
list
(com.azure.core.util.Context context) Returns list of Accounts.com.azure.core.http.rest.PagedIterable<Account>
listByResourceGroup
(String resourceGroupName) Returns list of Accounts.com.azure.core.http.rest.PagedIterable<Account>
listByResourceGroup
(String resourceGroupName, com.azure.core.util.Context context) Returns list of Accounts.
-
Method Details
-
list
com.azure.core.http.rest.PagedIterable<Account> list()Returns list of Accounts.- Returns:
- list of Accounts 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
Returns list of Accounts.- Parameters:
context
- The context to associate with this operation.- Returns:
- list of Accounts 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
Returns list of Accounts.- Parameters:
resourceGroupName
- The resource group name.- Returns:
- list of Accounts 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<Account> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context) Returns list of Accounts.- Parameters:
resourceGroupName
- The resource group name.context
- The context to associate with this operation.- Returns:
- list of Accounts 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.
-
getByResourceGroup
Returns account details for the given account name.- Parameters:
resourceGroupName
- The resource group name.accountName
- Account name.- Returns:
- device Update account details.
- 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<Account> getByResourceGroupWithResponse(String resourceGroupName, String accountName, com.azure.core.util.Context context) Returns account details for the given account name.- Parameters:
resourceGroupName
- The resource group name.accountName
- Account name.context
- The context to associate with this operation.- Returns:
- device Update account details 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.
-
head
Checks whether account exists.- Parameters:
resourceGroupName
- The resource group name.accountName
- Account 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.
-
headWithResponse
com.azure.core.http.rest.Response<Void> headWithResponse(String resourceGroupName, String accountName, com.azure.core.util.Context context) Checks whether account exists.- Parameters:
resourceGroupName
- The resource group name.accountName
- Account name.context
- The context to associate with this operation.- Returns:
- the
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.
-
deleteByResourceGroup
Deletes account.- Parameters:
resourceGroupName
- The resource group name.accountName
- Account 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 account.- Parameters:
resourceGroupName
- The resource group name.accountName
- Account 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
Returns account details for the given account name.- Parameters:
id
- the resource ID.- Returns:
- device Update account details 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<Account> getByIdWithResponse(String id, com.azure.core.util.Context context) Returns account details for the given account name.- Parameters:
id
- the resource ID.context
- The context to associate with this operation.- Returns:
- device Update account details 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 account.- 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 account.- 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 Account resource.- Parameters:
name
- resource name.- Returns:
- the first stage of the new Account definition.
-