Interface AccountsClient
public interface AccountsClient
An instance of this class provides access to all the operations defined in AccountsClient.
-
Method Summary
Modifier and TypeMethodDescriptioncom.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<AccountResourceInner>,AccountResourceInner> beginCreateAndUpdate(String resourceGroupName, String resourceName, AccountResourceInner accountResource) Create or update account resource.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<AccountResourceInner>,AccountResourceInner> beginCreateAndUpdate(String resourceGroupName, String resourceName, AccountResourceInner accountResource, com.azure.core.util.Context context) Create or update account resource.createAndUpdate(String resourceGroupName, String resourceName, AccountResourceInner accountResource) Create or update account resource.createAndUpdate(String resourceGroupName, String resourceName, AccountResourceInner accountResource, com.azure.core.util.Context context) Create or update account resource.voidDeletes a account resource.com.azure.core.http.rest.Response<Void>deleteWithResponse(String resourceGroupName, String resourceName, com.azure.core.util.Context context) Deletes a account resource.getByResourceGroup(String resourceGroupName, String resourceName) Returns account resource for a given name.com.azure.core.http.rest.Response<AccountResourceInner>getByResourceGroupWithResponse(String resourceGroupName, String resourceName, com.azure.core.util.Context context) Returns account resource for a given name.com.azure.core.http.rest.PagedIterable<AccountResourceInner>list()Returns list of accounts belonging to a subscription.com.azure.core.http.rest.PagedIterable<AccountResourceInner>list(com.azure.core.util.Context context) Returns list of accounts belonging to a subscription.com.azure.core.http.rest.PagedIterable<AccountResourceInner>listByResourceGroup(String resourceGroupName) Returns list of accounts apps.com.azure.core.http.rest.PagedIterable<AccountResourceInner>listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context) Returns list of accounts apps.update(String resourceGroupName, String resourceName, AccountPatchResource accountResource) Update account details.com.azure.core.http.rest.Response<AccountResourceInner>updateWithResponse(String resourceGroupName, String resourceName, AccountPatchResource accountResource, com.azure.core.util.Context context) Update account details.
-
Method Details
-
listByResourceGroup
com.azure.core.http.rest.PagedIterable<AccountResourceInner> listByResourceGroup(String resourceGroupName) Returns list of accounts apps.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.- Returns:
- the 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<AccountResourceInner> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context) Returns list of accounts apps.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.context- The context to associate with this operation.- Returns:
- the 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.
-
list
com.azure.core.http.rest.PagedIterable<AccountResourceInner> list()Returns list of accounts belonging to a subscription.- Returns:
- the 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
com.azure.core.http.rest.PagedIterable<AccountResourceInner> list(com.azure.core.util.Context context) Returns list of accounts belonging to a subscription.- Parameters:
context- The context to associate with this operation.- Returns:
- the 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.
-
getByResourceGroupWithResponse
com.azure.core.http.rest.Response<AccountResourceInner> getByResourceGroupWithResponse(String resourceGroupName, String resourceName, com.azure.core.util.Context context) Returns account resource for a given name.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.resourceName- The name of the resource.context- The context to associate with this operation.- Returns:
- 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.
-
getByResourceGroup
Returns account resource for a given name.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.resourceName- The name of the resource.- Returns:
- 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.
-
beginCreateAndUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<AccountResourceInner>,AccountResourceInner> beginCreateAndUpdate(String resourceGroupName, String resourceName, AccountResourceInner accountResource) Create or update account resource.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.resourceName- The name of the resource.accountResource- Account details.- Returns:
- the
SyncPollerfor polling of 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.
-
beginCreateAndUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<AccountResourceInner>,AccountResourceInner> beginCreateAndUpdate(String resourceGroupName, String resourceName, AccountResourceInner accountResource, com.azure.core.util.Context context) Create or update account resource.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.resourceName- The name of the resource.accountResource- Account details.context- The context to associate with this operation.- Returns:
- the
SyncPollerfor polling of 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.
-
createAndUpdate
AccountResourceInner createAndUpdate(String resourceGroupName, String resourceName, AccountResourceInner accountResource) Create or update account resource.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.resourceName- The name of the resource.accountResource- Account details.- Returns:
- 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.
-
createAndUpdate
AccountResourceInner createAndUpdate(String resourceGroupName, String resourceName, AccountResourceInner accountResource, com.azure.core.util.Context context) Create or update account resource.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.resourceName- The name of the resource.accountResource- Account details.context- The context to associate with this operation.- Returns:
- 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.
-
updateWithResponse
com.azure.core.http.rest.Response<AccountResourceInner> updateWithResponse(String resourceGroupName, String resourceName, AccountPatchResource accountResource, com.azure.core.util.Context context) Update account details.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.resourceName- The name of the resource.accountResource- Account patch details.context- The context to associate with this operation.- Returns:
- 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.
-
update
AccountResourceInner update(String resourceGroupName, String resourceName, AccountPatchResource accountResource) Update account details.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.resourceName- The name of the resource.accountResource- Account patch details.- Returns:
- 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.
-
deleteWithResponse
com.azure.core.http.rest.Response<Void> deleteWithResponse(String resourceGroupName, String resourceName, com.azure.core.util.Context context) Deletes a account resource.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.resourceName- The name of the resource.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.
-
delete
Deletes a account resource.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.resourceName- The name of the resource.- 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.
-