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.object
AccountsOperations

Constructor

AccountsOperations(client, config, serializer, deserializer)

Parameters

client
Required

Client for service requests.

config
Required

Configuration of service client.

serializer
Required

An object model serializer.

deserializer
Required

An object model deserializer.

Variables

models

Alias to model classes used in this operation group.

Methods

begin_create

Create an account in the given resource group.

Create an account.

begin_delete

Delete an account.

DeleteAccount.

get

Get an account under a resource group.

Get an account.

list_by_resource_group

List Accounts in a resource group.

List Accounts in ResourceGroup.

list_by_subscription

List Accounts in a subscription.

List Accounts in Subscription.

update

Patch a given account.

Patch an account.

begin_create

Create an account in the given resource group.

Create an account.

async begin_create(resource_group_name: str, account_name: str, account: azure.mgmt.datashare.models._models_py3.Account, **kwargs) -> azure.core.polling._async_poller.AsyncLROPoller[azure.mgmt.datashare.models._models_py3.Account]

Parameters

resource_group_name
str
Required

The resource group name.

account_name
str
Required

The name of the share account.

account
Account
Required

The account payload.

cls
callable

A custom type or function that will be passed the direct response

continuation_token
str

A continuation token to restart a poller from a saved state.

polling
bool or AsyncPollingMethod

Pass in True if you'd like the AsyncARMPolling polling method, False for no polling, or your own initialized polling object for a personal polling strategy.

polling_interval
int

Default waiting time between two polls for LRO operations if no Retry-After header is present.

Returns

An instance of AsyncLROPoller that returns either Account or the result of cls(response)

Return type

Exceptions

begin_delete

Delete an account.

DeleteAccount.

async begin_delete(resource_group_name: str, account_name: str, **kwargs) -> azure.core.polling._async_poller.AsyncLROPoller[azure.mgmt.datashare.models._models_py3.OperationResponse]

Parameters

resource_group_name
str
Required

The resource group name.

account_name
str
Required

The name of the share account.

cls
callable

A custom type or function that will be passed the direct response

continuation_token
str

A continuation token to restart a poller from a saved state.

polling
bool or AsyncPollingMethod

Pass in True if you'd like the AsyncARMPolling polling method, False for no polling, or your own initialized polling object for a personal polling strategy.

polling_interval
int

Default waiting time between two polls for LRO operations if no Retry-After header is present.

Returns

An instance of AsyncLROPoller that returns either OperationResponse or the result of cls(response)

Return type

Exceptions

get

Get an account under a resource group.

Get an account.

async get(resource_group_name: str, account_name: str, **kwargs) -> azure.mgmt.datashare.models._models_py3.Account

Parameters

resource_group_name
str
Required

The resource group name.

account_name
str
Required

The name of the share account.

cls
callable

A custom type or function that will be passed the direct response

Returns

Account, or the result of cls(response)

Return type

Exceptions

list_by_resource_group

List Accounts in a resource group.

List Accounts in ResourceGroup.

list_by_resource_group(resource_group_name: str, skip_token: Optional[str] = None, **kwargs) -> AsyncIterable[azure.mgmt.datashare.models._models_py3.AccountList]

Parameters

resource_group_name
str
Required

The resource group name.

skip_token
str
default value: None

Continuation token.

cls
callable

A custom type or function that will be passed the direct response

Returns

An iterator like instance of either AccountList or the result of cls(response)

Return type

Exceptions

list_by_subscription

List Accounts in a subscription.

List Accounts in Subscription.

list_by_subscription(skip_token: Optional[str] = None, **kwargs) -> AsyncIterable[azure.mgmt.datashare.models._models_py3.AccountList]

Parameters

skip_token
str
default value: None

Continuation token.

cls
callable

A custom type or function that will be passed the direct response

Returns

An iterator like instance of either AccountList or the result of cls(response)

Return type

Exceptions

update

Patch a given account.

Patch an account.

async update(resource_group_name: str, account_name: str, account_update_parameters: azure.mgmt.datashare.models._models_py3.AccountUpdateParameters, **kwargs) -> azure.mgmt.datashare.models._models_py3.Account

Parameters

resource_group_name
str
Required

The resource group name.

account_name
str
Required

The name of the share account.

account_update_parameters
AccountUpdateParameters
Required

The account update parameters.

cls
callable

A custom type or function that will be passed the direct response

Returns

Account, or the result of cls(response)

Return type

Exceptions

Attributes

models

models = <module 'azure.mgmt.datashare.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64\\lib\\site-packages\\azure\\mgmt\\datashare\\models\\__init__.py'>