Interface DeletedAccountsClient
-
public interface DeletedAccountsClient
An instance of this class provides access to all the operations defined in DeletedAccountsClient.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void>
beginPurge(String location, String resourceGroupName, String accountName)
Deletes a Cognitive Services account from the resource group.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void>
beginPurge(String location, String resourceGroupName, String accountName, com.azure.core.util.Context context)
Deletes a Cognitive Services account from the resource group.AccountInner
get(String location, String resourceGroupName, String accountName)
Returns a Cognitive Services account specified by the parameters.com.azure.core.http.rest.Response<AccountInner>
getWithResponse(String location, String resourceGroupName, String accountName, com.azure.core.util.Context context)
Returns a Cognitive Services account specified by the parameters.com.azure.core.http.rest.PagedIterable<AccountInner>
list()
Returns all the resources of a particular type belonging to a subscription.com.azure.core.http.rest.PagedIterable<AccountInner>
list(com.azure.core.util.Context context)
Returns all the resources of a particular type belonging to a subscription.void
purge(String location, String resourceGroupName, String accountName)
Deletes a Cognitive Services account from the resource group.void
purge(String location, String resourceGroupName, String accountName, com.azure.core.util.Context context)
Deletes a Cognitive Services account from the resource group.
-
-
-
Method Detail
-
get
AccountInner get(String location, String resourceGroupName, String accountName)
Returns a Cognitive Services account specified by the parameters.- Parameters:
location
- Resource location.resourceGroupName
- The name of the resource group. The name is case insensitive.accountName
- The name of Cognitive Services account.- Returns:
- cognitive Services account is an Azure resource representing the provisioned account, it's type, location and SKU.
- 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.
-
getWithResponse
com.azure.core.http.rest.Response<AccountInner> getWithResponse(String location, String resourceGroupName, String accountName, com.azure.core.util.Context context)
Returns a Cognitive Services account specified by the parameters.- Parameters:
location
- Resource location.resourceGroupName
- The name of the resource group. The name is case insensitive.accountName
- The name of Cognitive Services account.context
- The context to associate with this operation.- Returns:
- cognitive Services account is an Azure resource representing the provisioned account, it's type, location
and SKU 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.
-
beginPurge
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginPurge(String location, String resourceGroupName, String accountName)
Deletes a Cognitive Services account from the resource group.- Parameters:
location
- Resource location.resourceGroupName
- The name of the resource group. The name is case insensitive.accountName
- The name of Cognitive Services 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.
-
beginPurge
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginPurge(String location, String resourceGroupName, String accountName, com.azure.core.util.Context context)
Deletes a Cognitive Services account from the resource group.- Parameters:
location
- Resource location.resourceGroupName
- The name of the resource group. The name is case insensitive.accountName
- The name of Cognitive Services 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.
-
purge
void purge(String location, String resourceGroupName, String accountName)
Deletes a Cognitive Services account from the resource group.- Parameters:
location
- Resource location.resourceGroupName
- The name of the resource group. The name is case insensitive.accountName
- The name of Cognitive Services 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.
-
purge
void purge(String location, String resourceGroupName, String accountName, com.azure.core.util.Context context)
Deletes a Cognitive Services account from the resource group.- Parameters:
location
- Resource location.resourceGroupName
- The name of the resource group. The name is case insensitive.accountName
- The name of Cognitive Services 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.
-
list
com.azure.core.http.rest.PagedIterable<AccountInner> list()
Returns all the resources of a particular type belonging to a subscription.- Returns:
- the list of cognitive services accounts operation response 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 all the resources of a particular type belonging to a subscription.- Parameters:
context
- The context to associate with this operation.- Returns:
- the list of cognitive services accounts operation response 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.
-
-