AssociationsOperations Class
AssociationsOperations 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.objectAssociationsOperations
Constructor
AssociationsOperations(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
| 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: _models.Association, **kwargs: Any) -> LROPoller[_models.Association]
Parameters
- scope
- str
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.
- 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 PollingMethod
Pass in True if you'd like the ARMPolling 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 LROPoller that returns either Association or the result of cls(response)
Return type
Exceptions
begin_delete
Delete an association.
begin_delete(scope: str, association_name: str, **kwargs: Any) -> LROPoller[None]
Parameters
- 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 PollingMethod
Pass in True if you'd like the ARMPolling 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 LROPoller that returns either None or the result of cls(response)
Return type
Exceptions
get
Get an association.
get(scope: str, association_name: str, **kwargs: Any) -> _models.Association
Parameters
- 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
list_all
Gets all association for the given scope.
list_all(scope: str, **kwargs: Any) -> Iterable[_models.AssociationsList]
Parameters
- 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
Attributes
models
models = <module 'azure.mgmt.customproviders.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64\\lib\\site-packages\\azure\\mgmt\\customproviders\\models\\__init__.py'>
Feedback
Submit and view feedback for