AccountsOperations Class

AccountsOperations 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

create_or_update

Creates an Automanage Account.

delete

Delete a Automanage account.

get

Get information about a Automanage account.

list_by_resource_group

Retrieve a list of Automanage accounts within a given resource group.

list_by_subscription

Retrieve a list of Automanage accounts within a subscription.

update

Updates an Automanage Account.

create_or_update

Creates an Automanage Account.

create_or_update(account_name: str, resource_group_name: str, parameters: models.Account, **kwargs: Any) -> models.Account

Parameters

account_name
str
Required

Name of the Automanage account.

resource_group_name
str
Required

The name of the resource group. The name is case insensitive.

parameters
<xref:automanage_client.models.Account>
Required

Parameters supplied to create or update Automanage 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

<xref:automanage_client.models.Account>

Exceptions

delete

Delete a Automanage account.

delete(resource_group_name: str, account_name: str, **kwargs: Any) -> None

Parameters

resource_group_name
str
Required

The name of the resource group. The name is case insensitive.

account_name
str
Required

Name of the Automanage account.

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 information about a Automanage account.

get(account_name: str, resource_group_name: str, **kwargs: Any) -> models.Account

Parameters

account_name
str
Required

The Automanage account name.

resource_group_name
str
Required

The name of the resource group. The name is case insensitive.

cls
callable

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

Returns

Account, or the result of cls(response)

Return type

<xref:automanage_client.models.Account>

Exceptions

list_by_resource_group

Retrieve a list of Automanage accounts within a given resource group.

list_by_resource_group(resource_group_name: str, **kwargs: Any) -> Iterable[models.AccountList]

Parameters

resource_group_name
str
Required

The name of the resource group. The name is case insensitive.

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

ItemPaged[<xref:automanage_client.models.AccountList>]

Exceptions

list_by_subscription

Retrieve a list of Automanage accounts within a subscription.

list_by_subscription(**kwargs: Any) -> Iterable[models.AccountList]

Parameters

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

ItemPaged[<xref:automanage_client.models.AccountList>]

Exceptions

update

Updates an Automanage Account.

update(account_name: str, resource_group_name: str, parameters: models.AccountUpdate, **kwargs: Any) -> models.Account

Parameters

account_name
str
Required

Name of the Automanage account.

resource_group_name
str
Required

The name of the resource group. The name is case insensitive.

parameters
<xref:automanage_client.models.AccountUpdate>
Required

Parameters supplied to update Automanage 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

<xref:automanage_client.models.Account>

Exceptions

Attributes

models

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