Interface AccountsClient
public interface AccountsClient
An instance of this class provides access to all the operations defined in AccountsClient.
-
Method Summary
Modifier and TypeMethodDescriptioncreateOrUpdate
(String resourceGroupName, String accountName, MapsAccountInner mapsAccount) Create or update a Maps Account.com.azure.core.http.rest.Response<MapsAccountInner>
createOrUpdateWithResponse
(String resourceGroupName, String accountName, MapsAccountInner mapsAccount, com.azure.core.util.Context context) Create or update a Maps Account.void
Delete a Maps Account.com.azure.core.http.rest.Response<Void>
deleteWithResponse
(String resourceGroupName, String accountName, com.azure.core.util.Context context) Delete a Maps Account.getByResourceGroup
(String resourceGroupName, String accountName) Get a Maps Account.com.azure.core.http.rest.Response<MapsAccountInner>
getByResourceGroupWithResponse
(String resourceGroupName, String accountName, com.azure.core.util.Context context) Get a Maps Account.com.azure.core.http.rest.PagedIterable<MapsAccountInner>
list()
Get all Maps Accounts in a Subscription.com.azure.core.http.rest.PagedIterable<MapsAccountInner>
list
(com.azure.core.util.Context context) Get all Maps Accounts in a Subscription.com.azure.core.http.rest.PagedIterable<MapsAccountInner>
listByResourceGroup
(String resourceGroupName) Get all Maps Accounts in a Resource Group.com.azure.core.http.rest.PagedIterable<MapsAccountInner>
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<MapsAccountKeysInner>
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<MapsAccountKeysInner>
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.update
(String resourceGroupName, String accountName, MapsAccountUpdateParameters mapsAccountUpdateParameters) Updates a Maps Account.com.azure.core.http.rest.Response<MapsAccountInner>
updateWithResponse
(String resourceGroupName, String accountName, MapsAccountUpdateParameters mapsAccountUpdateParameters, com.azure.core.util.Context context) Updates a Maps Account.
-
Method Details
-
createOrUpdateWithResponse
com.azure.core.http.rest.Response<MapsAccountInner> createOrUpdateWithResponse(String resourceGroupName, String accountName, MapsAccountInner mapsAccount, com.azure.core.util.Context context) Create or update a Maps Account. A Maps Account holds the keys which allow access to the Maps REST APIs.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.accountName
- The name of the Maps Account.mapsAccount
- The new or updated parameters for the Maps Account.context
- The context to associate with this operation.- Returns:
- an Azure resource which represents access to a suite of 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.
-
createOrUpdate
MapsAccountInner createOrUpdate(String resourceGroupName, String accountName, MapsAccountInner mapsAccount) Create or update a Maps Account. A Maps Account holds the keys which allow access to the Maps REST APIs.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.accountName
- The name of the Maps Account.mapsAccount
- The new or updated parameters for the Maps Account.- Returns:
- an Azure resource which represents access to a suite of 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.
-
updateWithResponse
com.azure.core.http.rest.Response<MapsAccountInner> updateWithResponse(String resourceGroupName, String accountName, MapsAccountUpdateParameters mapsAccountUpdateParameters, com.azure.core.util.Context context) Updates a Maps Account. Only a subset of the parameters may be updated after creation, such as Sku, Tags, Properties.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.accountName
- The name of the Maps Account.mapsAccountUpdateParameters
- The updated parameters for the Maps Account.context
- The context to associate with this operation.- Returns:
- an Azure resource which represents access to a suite of 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.
-
update
MapsAccountInner update(String resourceGroupName, String accountName, MapsAccountUpdateParameters mapsAccountUpdateParameters) Updates a Maps Account. Only a subset of the parameters may be updated after creation, such as Sku, Tags, Properties.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.accountName
- The name of the Maps Account.mapsAccountUpdateParameters
- The updated parameters for the Maps Account.- Returns:
- an Azure resource which represents access to a suite of 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.
-
deleteWithResponse
com.azure.core.http.rest.Response<Void> deleteWithResponse(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.
-
delete
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<MapsAccountInner> 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
com.azure.core.http.rest.PagedIterable<MapsAccountInner> listByResourceGroup(String resourceGroupName) 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<MapsAccountInner> 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<MapsAccountInner> 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<MapsAccountKeysInner> 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<MapsAccountKeysInner> 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
MapsAccountKeysInner 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.
-