AssociationsOperations Class

AssociationsOperations 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
AssociationsOperations

Constructor

AssociationsOperations(client, config, serializer, deserializer) -> None

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_or_update

Create or update an association.

begin_delete

Delete an association.

get

Get an association.

list_all

Gets all association for the given scope.

begin_create_or_update

Create or update an association.

begin_create_or_update(scope: str, association_name: str, association: azure.mgmt.customproviders.models._models_py3.Association, **kwargs) -> azure.core.polling._async_poller.AsyncLROPoller[_ForwardRef('_models.Association')]

Parameters

scope
str
Required

The scope of the association. The scope can be any valid REST resource instance. For example, use '/subscriptions/{subscription-id}/resourceGroups/{resource-group- name}/providers/Microsoft.Compute/virtualMachines/{vm-name}' for a virtual machine resource.

association_name
str
Required

The name of the association.

association
Association
Required

The parameters required to create or update an association.

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 Association or the result of cls(response)

Return type

Exceptions

~azure.core.exceptions.HttpResponseError

begin_delete

Delete an association.

begin_delete(scope: str, association_name: str, **kwargs) -> azure.core.polling._async_poller.AsyncLROPoller[NoneType]

Parameters

scope
str
Required

The scope of the association.

association_name
str
Required

The name of the association.

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 None or the result of cls(response)

Return type

Exceptions

~azure.core.exceptions.HttpResponseError

get

Get an association.

get(scope: str, association_name: str, **kwargs) -> azure.mgmt.customproviders.models._models_py3.Association

Parameters

scope
str
Required

The scope of the association.

association_name
str
Required

The name of the association.

cls
callable

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

Returns

Association, or the result of cls(response)

Return type

Exceptions

~azure.core.exceptions.HttpResponseError

list_all

Gets all association for the given scope.

list_all(scope: str, **kwargs) -> typing.AsyncIterable[_ForwardRef('_models.AssociationsList')]

Parameters

scope
str
Required

The scope of the association.

cls
callable

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

Returns

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

Return type

Exceptions

~azure.core.exceptions.HttpResponseError

Attributes

models

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