Interface AccountOperationsClient


public interface AccountOperationsClient
An instance of this class provides access to all the operations defined in AccountOperationsClient.
  • Method Details

    • 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

      AccountResourceInner getByResourceGroup(String resourceGroupName, String resourceName)
      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 SyncPoller for 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 SyncPoller for 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

      void delete(String resourceGroupName, String resourceName)
      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.