Interface Accounts
public interface Accounts
Resource collection API of Accounts.
-
Method Summary
Modifier and TypeMethodDescriptionBegins definition for a new MapsAccount resource.void
deleteById
(String id) Delete a Maps Account.com.azure.core.http.rest.Response<Void>
deleteByIdWithResponse
(String id, com.azure.core.util.Context context) Delete a Maps Account.void
deleteByResourceGroup
(String resourceGroupName, String accountName) Delete a Maps Account.com.azure.core.http.rest.Response<Void>
deleteByResourceGroupWithResponse
(String resourceGroupName, String accountName, com.azure.core.util.Context context) Delete a Maps Account.Get a Maps Account.com.azure.core.http.rest.Response<MapsAccount>
getByIdWithResponse
(String id, com.azure.core.util.Context context) Get a Maps Account.getByResourceGroup
(String resourceGroupName, String accountName) Get a Maps Account.com.azure.core.http.rest.Response<MapsAccount>
getByResourceGroupWithResponse
(String resourceGroupName, String accountName, com.azure.core.util.Context context) Get a Maps Account.com.azure.core.http.rest.PagedIterable<MapsAccount>
list()
Get all Maps Accounts in a Subscription.com.azure.core.http.rest.PagedIterable<MapsAccount>
list
(com.azure.core.util.Context context) Get all Maps Accounts in a Subscription.com.azure.core.http.rest.PagedIterable<MapsAccount>
listByResourceGroup
(String resourceGroupName) Get all Maps Accounts in a Resource Group.com.azure.core.http.rest.PagedIterable<MapsAccount>
listByResourceGroup
(String resourceGroupName, com.azure.core.util.Context context) Get all Maps Accounts in a Resource Group.Get the keys to use with the Maps APIs.com.azure.core.http.rest.Response<MapsAccountKeys>
listKeysWithResponse
(String resourceGroupName, String accountName, com.azure.core.util.Context context) Get the keys to use with the Maps APIs.regenerateKeys
(String resourceGroupName, String accountName, MapsKeySpecification keySpecification) Regenerate either the primary or secondary key for use with the Maps APIs.com.azure.core.http.rest.Response<MapsAccountKeys>
regenerateKeysWithResponse
(String resourceGroupName, String accountName, MapsKeySpecification keySpecification, com.azure.core.util.Context context) Regenerate either the primary or secondary key for use with the Maps APIs.
-
Method Details
-
deleteByResourceGroupWithResponse
com.azure.core.http.rest.Response<Void> deleteByResourceGroupWithResponse(String resourceGroupName, String accountName, com.azure.core.util.Context context) Delete a Maps Account.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.accountName
- The name of the Maps Account.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.
-
deleteByResourceGroup
Delete a Maps Account.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.accountName
- The name of the Maps 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.
-
getByResourceGroupWithResponse
com.azure.core.http.rest.Response<MapsAccount> getByResourceGroupWithResponse(String resourceGroupName, String accountName, com.azure.core.util.Context context) Get a Maps Account.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.accountName
- The name of the Maps Account.context
- The context to associate with this operation.- Returns:
- a Maps 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
Get a Maps Account.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.accountName
- The name of the Maps Account.- Returns:
- a Maps 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.
-
listByResourceGroup
Get all Maps Accounts in a Resource Group.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.- Returns:
- all Maps Accounts in a Resource Group 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<MapsAccount> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context) Get all Maps Accounts in a Resource Group.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.context
- The context to associate with this operation.- Returns:
- all Maps Accounts in a Resource Group 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<MapsAccount> list()Get all Maps Accounts in a Subscription.- Returns:
- all Maps Accounts in a Subscription 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
Get all Maps Accounts in a Subscription.- Parameters:
context
- The context to associate with this operation.- Returns:
- all Maps Accounts in a Subscription 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.
-
listKeysWithResponse
com.azure.core.http.rest.Response<MapsAccountKeys> listKeysWithResponse(String resourceGroupName, String accountName, com.azure.core.util.Context context) Get the keys to use with the Maps APIs. A key is used to authenticate and authorize access to the Maps REST APIs. Only one key is needed at a time; two are given to provide seamless key regeneration.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.accountName
- The name of the Maps Account.context
- The context to associate with this operation.- Returns:
- the keys to use with the Maps APIs 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
Get the keys to use with the Maps APIs. A key is used to authenticate and authorize access to the Maps REST APIs. Only one key is needed at a time; two are given to provide seamless key regeneration.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.accountName
- The name of the Maps Account.- Returns:
- the keys to use with the Maps APIs.
- 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.
-
regenerateKeysWithResponse
com.azure.core.http.rest.Response<MapsAccountKeys> regenerateKeysWithResponse(String resourceGroupName, String accountName, MapsKeySpecification keySpecification, com.azure.core.util.Context context) Regenerate either the primary or secondary key for use with the Maps APIs. The old key will stop working immediately.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.accountName
- The name of the Maps Account.keySpecification
- Which key to regenerate: primary or secondary.context
- The context to associate with this operation.- Returns:
- the set of keys which can be used to access the Maps REST APIs 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.
-
regenerateKeys
MapsAccountKeys regenerateKeys(String resourceGroupName, String accountName, MapsKeySpecification keySpecification) Regenerate either the primary or secondary key for use with the Maps APIs. The old key will stop working immediately.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.accountName
- The name of the Maps Account.keySpecification
- Which key to regenerate: primary or secondary.- Returns:
- the set of keys which can be used to access the Maps REST APIs.
- 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.
-
getById
Get a Maps Account.- Parameters:
id
- the resource ID.- Returns:
- a Maps 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.
-
getByIdWithResponse
com.azure.core.http.rest.Response<MapsAccount> getByIdWithResponse(String id, com.azure.core.util.Context context) Get a Maps Account.- Parameters:
id
- the resource ID.context
- The context to associate with this operation.- Returns:
- a Maps 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.
-
deleteById
Delete a Maps Account.- Parameters:
id
- the resource ID.- 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.
-
deleteByIdWithResponse
com.azure.core.http.rest.Response<Void> deleteByIdWithResponse(String id, com.azure.core.util.Context context) Delete a Maps Account.- Parameters:
id
- the resource ID.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.
-
define
Begins definition for a new MapsAccount resource.- Parameters:
name
- resource name.- Returns:
- the first stage of the new MapsAccount definition.
-