Interface DeletedAccounts
public interface DeletedAccounts
Resource collection API of DeletedAccounts.
-
Method Summary
Modifier and TypeMethodDescriptionReturns a Cognitive Services account specified by the parameters.com.azure.core.http.rest.Response<Account>
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<Account>
list()
Returns all the resources of a particular type belonging to a subscription.com.azure.core.http.rest.PagedIterable<Account>
list
(com.azure.core.util.Context context) Returns all the resources of a particular type belonging to a subscription.void
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 Details
-
get
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<Account> 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.
-
purge
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<Account> 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
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.
-