AccountsOperations Class
AccountsOperations async operations.
You should not instantiate this class directly. Instead, you should create a Client instance that instantiates it for you and attaches it as an attribute.
- Inheritance
-
builtins.objectAccountsOperations
Constructor
AccountsOperations(client, config, serializer, deserializer)
Parameters
- client
Client for service requests.
- config
Configuration of service client.
- serializer
An object model serializer.
- deserializer
An object model deserializer.
Variables
- models
Alias to model classes used in this operation group.
Methods
| create_or_update |
Create or update a Maps Account. A Maps Account holds the keys which allow access to the Maps REST APIs. |
| delete |
Delete a Maps Account. |
| get |
Get a Maps Account. |
| list_by_resource_group |
Get all Maps Accounts in a Resource Group. |
| list_by_subscription |
Get all Maps Accounts in a Subscription. |
| list_keys |
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. |
| regenerate_keys |
Regenerate either the primary or secondary key for use with the Maps APIs. The old key will stop working immediately. |
| update |
Updates a Maps Account. Only a subset of the parameters may be updated after creation, such as Sku, Tags, Properties. |
create_or_update
Create or update a Maps Account. A Maps Account holds the keys which allow access to the Maps REST APIs.
async create_or_update(resource_group_name: str, account_name: str, maps_account: azure.mgmt.maps.models._models_py3.MapsAccount, **kwargs) -> azure.mgmt.maps.models._models_py3.MapsAccount
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
MapsAccount, or the result of cls(response)
Return type
Exceptions
delete
Delete a Maps Account.
async delete(resource_group_name: str, account_name: str, **kwargs) -> None
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
None, or the result of cls(response)
Return type
Exceptions
get
Get a Maps Account.
async get(resource_group_name: str, account_name: str, **kwargs) -> azure.mgmt.maps.models._models_py3.MapsAccount
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
MapsAccount, or the result of cls(response)
Return type
Exceptions
list_by_resource_group
Get all Maps Accounts in a Resource Group.
list_by_resource_group(resource_group_name: str, **kwargs) -> AsyncIterable[azure.mgmt.maps.models._models_py3.MapsAccounts]
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
An iterator like instance of either MapsAccounts or the result of cls(response)
Return type
Exceptions
list_by_subscription
Get all Maps Accounts in a Subscription.
list_by_subscription(**kwargs) -> AsyncIterable[azure.mgmt.maps.models._models_py3.MapsAccounts]
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
An iterator like instance of either MapsAccounts or the result of cls(response)
Return type
Exceptions
list_keys
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.
async list_keys(resource_group_name: str, account_name: str, **kwargs) -> azure.mgmt.maps.models._models_py3.MapsAccountKeys
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
MapsAccountKeys, or the result of cls(response)
Return type
Exceptions
regenerate_keys
Regenerate either the primary or secondary key for use with the Maps APIs. The old key will stop working immediately.
async regenerate_keys(resource_group_name: str, account_name: str, key_specification: azure.mgmt.maps.models._models_py3.MapsKeySpecification, **kwargs) -> azure.mgmt.maps.models._models_py3.MapsAccountKeys
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
MapsAccountKeys, or the result of cls(response)
Return type
Exceptions
update
Updates a Maps Account. Only a subset of the parameters may be updated after creation, such as Sku, Tags, Properties.
async update(resource_group_name: str, account_name: str, maps_account_update_parameters: azure.mgmt.maps.models._models_py3.MapsAccountUpdateParameters, **kwargs) -> azure.mgmt.maps.models._models_py3.MapsAccount
Parameters
- maps_account_update_parameters
- MapsAccountUpdateParameters
The updated parameters for the Maps Account.
- cls
- callable
A custom type or function that will be passed the direct response
Returns
MapsAccount, or the result of cls(response)
Return type
Exceptions
Attributes
models
models = <module 'azure.mgmt.maps.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64\\lib\\site-packages\\azure\\mgmt\\maps\\models\\__init__.py'>
Feedback
Submit and view feedback for