TagRulesOperations Class

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

Constructor

TagRulesOperations(client, config, serializer, deserializer)

Parameters

Name Description
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

Name Description
models

Alias to model classes used in this operation group.

Methods

begin_delete

Delete a tag rule set for a given monitor resource.

Delete a tag rule set for a given monitor resource.

create_or_update

Create or update a tag rule set for a given monitor resource.

Create or update a tag rule set for a given monitor resource.

get

Get a tag rule set for a given monitor resource.

Get a tag rule set for a given monitor resource.

list

List the tag rules for a given monitor resource.

List the tag rules for a given monitor resource.

begin_delete

Delete a tag rule set for a given monitor resource.

Delete a tag rule set for a given monitor resource.

async begin_delete(resource_group_name: str, monitor_name: str, rule_set_name: str, **kwargs: Any) -> AsyncLROPoller[None]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group to which the Elastic resource belongs.

monitor_name
Required
str

Monitor resource name.

rule_set_name
Required
str

Tag Rule Set resource name.

Keyword-Only Parameters

Name Description
cls

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

By default, your polling method will be AsyncARMPolling. Pass in False for this operation to not poll, or pass in 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

Type Description

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

Exceptions

Type Description

create_or_update

Create or update a tag rule set for a given monitor resource.

Create or update a tag rule set for a given monitor resource.

async create_or_update(resource_group_name: str, monitor_name: str, rule_set_name: str, body: MonitoringTagRules | None = None, **kwargs: Any) -> MonitoringTagRules

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group to which the Elastic resource belongs.

monitor_name
Required
str

Monitor resource name.

rule_set_name
Required
str

Tag Rule Set resource name.

body
Required

request body of MonitoringTagRules.

Default value: None

Keyword-Only Parameters

Name Description
cls

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

Returns

Type Description

MonitoringTagRules, or the result of cls(response)

Exceptions

Type Description

get

Get a tag rule set for a given monitor resource.

Get a tag rule set for a given monitor resource.

async get(resource_group_name: str, monitor_name: str, rule_set_name: str, **kwargs: Any) -> MonitoringTagRules

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group to which the Elastic resource belongs.

monitor_name
Required
str

Monitor resource name.

rule_set_name
Required
str

Tag Rule Set resource name.

Keyword-Only Parameters

Name Description
cls

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

Returns

Type Description

MonitoringTagRules, or the result of cls(response)

Exceptions

Type Description

list

List the tag rules for a given monitor resource.

List the tag rules for a given monitor resource.

list(resource_group_name: str, monitor_name: str, **kwargs: Any) -> AsyncIterable[MonitoringTagRulesListResponse]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group to which the Elastic resource belongs.

monitor_name
Required
str

Monitor resource name.

Keyword-Only Parameters

Name Description
cls

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

Returns

Type Description

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

Exceptions

Type Description

Attributes

models

models = <module 'azure.mgmt.elastic.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.11.9\\x64\\Lib\\site-packages\\azure\\mgmt\\elastic\\models\\__init__.py'>