Interface AccountsClient
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addRootCollectionAdmin
(String resourceGroupName, String accountName, CollectionAdminUpdate collectionAdminUpdate) Add the administrator for root collection.com.azure.core.http.rest.Response<Void>
addRootCollectionAdminWithResponse
(String resourceGroupName, String accountName, CollectionAdminUpdate collectionAdminUpdate, com.azure.core.util.Context context) Add the administrator for root collection.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<AccountInner>,
AccountInner> beginCreateOrUpdate
(String resourceGroupName, String accountName, AccountInner account) Create or update an account resourcecom.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<AccountInner>,
AccountInner> beginCreateOrUpdate
(String resourceGroupName, String accountName, AccountInner account, com.azure.core.util.Context context) Create or update an account resourcebeginDelete
(String resourceGroupName, String accountName) Deletes the account resource.beginDelete
(String resourceGroupName, String accountName, com.azure.core.util.Context context) Deletes the account resource.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<AccountInner>,
AccountInner> beginUpdate
(String resourceGroupName, String accountName, AccountUpdateParameters accountUpdateParameters) Patches the account resource.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<AccountInner>,
AccountInner> beginUpdate
(String resourceGroupName, String accountName, AccountUpdateParameters accountUpdateParameters, com.azure.core.util.Context context) Patches the account resource.checkNameAvailability
(CheckNameAvailabilityRequest checkNameAvailabilityRequest) Checks the account name availability.com.azure.core.http.rest.Response<CheckNameAvailabilityResultInner>
checkNameAvailabilityWithResponse
(CheckNameAvailabilityRequest checkNameAvailabilityRequest, com.azure.core.util.Context context) Checks the account name availability.createOrUpdate
(String resourceGroupName, String accountName, AccountInner account) Create or update an account resourcecreateOrUpdate
(String resourceGroupName, String accountName, AccountInner account, com.azure.core.util.Context context) Create or update an account resourcevoid
Deletes the account resource.void
Deletes the account resource.getByResourceGroup
(String resourceGroupName, String accountName) Gets the account resource.com.azure.core.http.rest.Response<AccountInner>
getByResourceGroupWithResponse
(String resourceGroupName, String accountName, com.azure.core.util.Context context) Gets the account resource.com.azure.core.http.rest.PagedIterable<AccountInner>
list()
Gets the accounts resources by subscription.com.azure.core.http.rest.PagedIterable<AccountInner>
Gets the accounts resources by subscription.com.azure.core.http.rest.PagedIterable<AccountInner>
listByResourceGroup
(String resourceGroupName) Gets the accounts resources by resource group.com.azure.core.http.rest.PagedIterable<AccountInner>
listByResourceGroup
(String resourceGroupName, String skipToken, com.azure.core.util.Context context) Gets the accounts resources by resource group.Lists the keys asynchronous.com.azure.core.http.rest.Response<AccessKeysInner>
listKeysWithResponse
(String resourceGroupName, String accountName, com.azure.core.util.Context context) Lists the keys asynchronous.update
(String resourceGroupName, String accountName, AccountUpdateParameters accountUpdateParameters) Patches the account resource.update
(String resourceGroupName, String accountName, AccountUpdateParameters accountUpdateParameters, com.azure.core.util.Context context) Patches the account resource.
-
Method Details
-
listByResourceGroup
Gets the accounts resources by resource group.List accounts in ResourceGroup.
- Parameters:
resourceGroupName
- The resource group name.- Returns:
- paged list of account resources 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, String skipToken, com.azure.core.util.Context context) Gets the accounts resources by resource group.List accounts in ResourceGroup.
- Parameters:
resourceGroupName
- The resource group name.skipToken
- The skip token.context
- The context to associate with this operation.- Returns:
- paged list of account resources 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<AccountInner> list()Gets the accounts resources by subscription.List accounts in Subscription.
- Returns:
- paged list of account resources 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(String skipToken, com.azure.core.util.Context context) Gets the accounts resources by subscription.List accounts in Subscription.
- Parameters:
skipToken
- The skip token.context
- The context to associate with this operation.- Returns:
- paged list of account resources 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<AccountInner> getByResourceGroupWithResponse(String resourceGroupName, String accountName, com.azure.core.util.Context context) Gets the account resource.Get an account.
- Parameters:
resourceGroupName
- The resource group name.accountName
- The name of the account.context
- The context to associate with this operation.- Returns:
- an account 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
Gets the account resource.Get an account.
- Parameters:
resourceGroupName
- The resource group name.accountName
- The name of the account.- Returns:
- an account.
- 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.
-
beginCreateOrUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<AccountInner>,AccountInner> beginCreateOrUpdate(String resourceGroupName, String accountName, AccountInner account) Create or update an account resourceCreates or updates an account.
- Parameters:
resourceGroupName
- The resource group name.accountName
- The name of the account.account
- The account.- Returns:
- the
SyncPoller
for polling of account 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.
-
beginCreateOrUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<AccountInner>,AccountInner> beginCreateOrUpdate(String resourceGroupName, String accountName, AccountInner account, com.azure.core.util.Context context) Create or update an account resourceCreates or updates an account.
- Parameters:
resourceGroupName
- The resource group name.accountName
- The name of the account.account
- The account.context
- The context to associate with this operation.- Returns:
- the
SyncPoller
for polling of account 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.
-
createOrUpdate
Create or update an account resourceCreates or updates an account.
- Parameters:
resourceGroupName
- The resource group name.accountName
- The name of the account.account
- The account.- Returns:
- account 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.
-
createOrUpdate
AccountInner createOrUpdate(String resourceGroupName, String accountName, AccountInner account, com.azure.core.util.Context context) Create or update an account resourceCreates or updates an account.
- Parameters:
resourceGroupName
- The resource group name.accountName
- The name of the account.account
- The account.context
- The context to associate with this operation.- Returns:
- account 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.
-
beginDelete
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(String resourceGroupName, String accountName) Deletes the account resource.Deletes an account resource.
- Parameters:
resourceGroupName
- The resource group name.accountName
- The name of the account.- 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 the account resource.Deletes an account resource.
- Parameters:
resourceGroupName
- The resource group name.accountName
- The name of the account.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
Deletes the account resource.Deletes an account resource.
- Parameters:
resourceGroupName
- The resource group name.accountName
- The name of the account.- 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 account resource.Deletes an account resource.
- Parameters:
resourceGroupName
- The resource group name.accountName
- The name of the account.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, AccountUpdateParameters accountUpdateParameters) Patches the account resource.Updates an account.
- Parameters:
resourceGroupName
- The resource group name.accountName
- The name of the account.accountUpdateParameters
- The account update parameters.- Returns:
- the
SyncPoller
for polling of account 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.
-
beginUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<AccountInner>,AccountInner> beginUpdate(String resourceGroupName, String accountName, AccountUpdateParameters accountUpdateParameters, com.azure.core.util.Context context) Patches the account resource.Updates an account.
- Parameters:
resourceGroupName
- The resource group name.accountName
- The name of the account.accountUpdateParameters
- The account update parameters.context
- The context to associate with this operation.- Returns:
- the
SyncPoller
for polling of account 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.
-
update
AccountInner update(String resourceGroupName, String accountName, AccountUpdateParameters accountUpdateParameters) Patches the account resource.Updates an account.
- Parameters:
resourceGroupName
- The resource group name.accountName
- The name of the account.accountUpdateParameters
- The account update parameters.- Returns:
- account 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.
-
update
AccountInner update(String resourceGroupName, String accountName, AccountUpdateParameters accountUpdateParameters, com.azure.core.util.Context context) Patches the account resource.Updates an account.
- Parameters:
resourceGroupName
- The resource group name.accountName
- The name of the account.accountUpdateParameters
- The account update parameters.context
- The context to associate with this operation.- Returns:
- account 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.
-
listKeysWithResponse
com.azure.core.http.rest.Response<AccessKeysInner> listKeysWithResponse(String resourceGroupName, String accountName, com.azure.core.util.Context context) Lists the keys asynchronous.List the authorization keys associated with this account.
- Parameters:
resourceGroupName
- The resource group name.accountName
- The name of the account.context
- The context to associate with this operation.- Returns:
- the Account access keys 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.
-
listKeys
Lists the keys asynchronous.List the authorization keys associated with this account.
- Parameters:
resourceGroupName
- The resource group name.accountName
- The name of the account.- Returns:
- the Account access keys.
- 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.
-
addRootCollectionAdminWithResponse
com.azure.core.http.rest.Response<Void> addRootCollectionAdminWithResponse(String resourceGroupName, String accountName, CollectionAdminUpdate collectionAdminUpdate, com.azure.core.util.Context context) Add the administrator for root collection.Add the administrator for root collection associated with this account.
- Parameters:
resourceGroupName
- The resource group name.accountName
- The name of the account.collectionAdminUpdate
- The collection admin update payload.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.
-
addRootCollectionAdmin
void addRootCollectionAdmin(String resourceGroupName, String accountName, CollectionAdminUpdate collectionAdminUpdate) Add the administrator for root collection.Add the administrator for root collection associated with this account.
- Parameters:
resourceGroupName
- The resource group name.accountName
- The name of the account.collectionAdminUpdate
- The collection admin update payload.- 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.
-
checkNameAvailabilityWithResponse
com.azure.core.http.rest.Response<CheckNameAvailabilityResultInner> checkNameAvailabilityWithResponse(CheckNameAvailabilityRequest checkNameAvailabilityRequest, com.azure.core.util.Context context) Checks the account name availability.Checks if account name is available.
- Parameters:
checkNameAvailabilityRequest
- The check name availability request.context
- The context to associate with this operation.- Returns:
- the response payload for CheckNameAvailability API 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.
-
checkNameAvailability
CheckNameAvailabilityResultInner checkNameAvailability(CheckNameAvailabilityRequest checkNameAvailabilityRequest) Checks the account name availability.Checks if account name is available.
- Parameters:
checkNameAvailabilityRequest
- The check name availability request.- Returns:
- the response payload for CheckNameAvailability API.
- 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.
-