DataCollectionRuleAssociationsOperations Class

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

Constructor

DataCollectionRuleAssociationsOperations(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

Creates or updates an association.

Creates or updates an association.

delete

Deletes an association.

Deletes an association.

get

Returns the specified association.

Returns the specified association.

list_by_data_collection_endpoint

Lists associations for the specified data collection endpoint.

Lists associations for the specified data collection endpoint.

list_by_resource

Lists associations for the specified resource.

Lists associations for the specified resource.

list_by_rule

Lists associations for the specified data collection rule.

Lists associations for the specified data collection rule.

create

Creates or updates an association.

Creates or updates an association.

async create(resource_uri: str, association_name: str, body: Optional[azure.mgmt.monitor.v2022_02_01_preview.models._models_py3.DataCollectionRuleAssociationProxyOnlyResource] = None, **kwargs: Any) -> azure.mgmt.monitor.v2022_02_01_preview.models._models_py3.DataCollectionRuleAssociationProxyOnlyResource

Parameters

resource_uri
str
Required

The identifier of the resource.

association_name
str
Required

The name of the association. The name is case insensitive.

body
<xref:$>(<xref:python-base-namespace>)DataCollectionRuleAssociationProxyOnlyResource
Required

The payload.

cls
callable

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

Returns

DataCollectionRuleAssociationProxyOnlyResource, or the result of cls(response)

Return type

<xref:$>(<xref:python-base-namespace>)DataCollectionRuleAssociationProxyOnlyResource

Exceptions

delete

Deletes an association.

Deletes an association.

async delete(resource_uri: str, association_name: str, **kwargs: Any) -> None

Parameters

resource_uri
str
Required

The identifier of the resource.

association_name
str
Required

The name of the association. The name is case insensitive.

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

Returns the specified association.

Returns the specified association.

async get(resource_uri: str, association_name: str, **kwargs: Any) -> azure.mgmt.monitor.v2022_02_01_preview.models._models_py3.DataCollectionRuleAssociationProxyOnlyResource

Parameters

resource_uri
str
Required

The identifier of the resource.

association_name
str
Required

The name of the association. The name is case insensitive.

cls
callable

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

Returns

DataCollectionRuleAssociationProxyOnlyResource, or the result of cls(response)

Return type

<xref:$>(<xref:python-base-namespace>)DataCollectionRuleAssociationProxyOnlyResource

Exceptions

list_by_data_collection_endpoint

Lists associations for the specified data collection endpoint.

Lists associations for the specified data collection endpoint.

list_by_data_collection_endpoint(resource_group_name: str, data_collection_endpoint_name: str, **kwargs: Any) -> AsyncIterable[azure.mgmt.monitor.v2022_02_01_preview.models._models_py3.DataCollectionRuleAssociationProxyOnlyResourceListResult]

Parameters

resource_group_name
str
Required

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

data_collection_endpoint_name
str
Required

The name of the data collection endpoint. 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 DataCollectionRuleAssociationProxyOnlyResourceListResult or the result of cls(response)

Return type

Exceptions

list_by_resource

Lists associations for the specified resource.

Lists associations for the specified resource.

list_by_resource(resource_uri: str, **kwargs: Any) -> AsyncIterable[azure.mgmt.monitor.v2022_02_01_preview.models._models_py3.DataCollectionRuleAssociationProxyOnlyResourceListResult]

Parameters

resource_uri
str
Required

The identifier of the resource.

cls
callable

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

Returns

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

Return type

Exceptions

list_by_rule

Lists associations for the specified data collection rule.

Lists associations for the specified data collection rule.

list_by_rule(resource_group_name: str, data_collection_rule_name: str, **kwargs: Any) -> AsyncIterable[azure.mgmt.monitor.v2022_02_01_preview.models._models_py3.DataCollectionRuleAssociationProxyOnlyResourceListResult]

Parameters

resource_group_name
str
Required

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

data_collection_rule_name
str
Required

The name of the data collection rule. 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 DataCollectionRuleAssociationProxyOnlyResourceListResult or the result of cls(response)

Return type

Exceptions

Attributes

models

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