Interface AccountsClient


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

    • list

      com.azure.core.http.rest.PagedIterable<AccountInner> 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

      com.azure.core.http.rest.PagedIterable<AccountInner> list(com.azure.core.util.Context context)
      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

      com.azure.core.http.rest.PagedIterable<AccountInner> listByResourceGroup(String resourceGroupName)
      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<AccountInner> 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

      AccountInner getByResourceGroup(String resourceGroupName, String accountName)
      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<AccountInner> 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

      void head(String resourceGroupName, String accountName)
      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.
    • beginCreate

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<AccountInner>,AccountInner> beginCreate(String resourceGroupName, String accountName, AccountInner account)
      Creates or updates Account.
      Parameters:
      resourceGroupName - The resource group name.
      accountName - Account name.
      account - Account details.
      Returns:
      the SyncPoller for polling of 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.
    • beginCreate

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<AccountInner>,AccountInner> beginCreate(String resourceGroupName, String accountName, AccountInner account, com.azure.core.util.Context context)
      Creates or updates Account.
      Parameters:
      resourceGroupName - The resource group name.
      accountName - Account name.
      account - Account details.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of 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.
    • create

      AccountInner create(String resourceGroupName, String accountName, AccountInner account)
      Creates or updates Account.
      Parameters:
      resourceGroupName - The resource group name.
      accountName - Account name.
      account - Account details.
      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.
    • create

      AccountInner create(String resourceGroupName, String accountName, AccountInner account, com.azure.core.util.Context context)
      Creates or updates Account.
      Parameters:
      resourceGroupName - The resource group name.
      accountName - Account name.
      account - Account details.
      context - The context to associate with this operation.
      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.
    • beginDelete

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(String resourceGroupName, String accountName)
      Deletes account.
      Parameters:
      resourceGroupName - The resource group name.
      accountName - Account 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 resourceGroupName, String accountName, com.azure.core.util.Context context)
      Deletes account.
      Parameters:
      resourceGroupName - The resource group name.
      accountName - Account 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

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

      void delete(String resourceGroupName, String accountName, com.azure.core.util.Context context)
      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.
    • beginUpdate

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<AccountInner>,AccountInner> beginUpdate(String resourceGroupName, String accountName, AccountUpdate accountUpdatePayload)
      Updates account's patchable properties.
      Parameters:
      resourceGroupName - The resource group name.
      accountName - Account name.
      accountUpdatePayload - Updated Account.
      Returns:
      the SyncPoller for polling of 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.
    • beginUpdate

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<AccountInner>,AccountInner> beginUpdate(String resourceGroupName, String accountName, AccountUpdate accountUpdatePayload, com.azure.core.util.Context context)
      Updates account's patchable properties.
      Parameters:
      resourceGroupName - The resource group name.
      accountName - Account name.
      accountUpdatePayload - Updated Account.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of 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.
    • update

      AccountInner update(String resourceGroupName, String accountName, AccountUpdate accountUpdatePayload)
      Updates account's patchable properties.
      Parameters:
      resourceGroupName - The resource group name.
      accountName - Account name.
      accountUpdatePayload - Updated Account.
      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.
    • update

      AccountInner update(String resourceGroupName, String accountName, AccountUpdate accountUpdatePayload, com.azure.core.util.Context context)
      Updates account's patchable properties.
      Parameters:
      resourceGroupName - The resource group name.
      accountName - Account name.
      accountUpdatePayload - Updated Account.
      context - The context to associate with this operation.
      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.