TagsOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

ResourceManagementClient's

<xref:tags> attribute.

Inheritance
builtins.object
TagsOperations

Constructor

TagsOperations(*args, **kwargs)

Methods

create_or_update

Create a subscription resource tag.

create_or_update_value

Create a subscription resource tag value.

delete

Delete a subscription resource tag.

delete_value

Delete a subscription resource tag value.

list

Get a list of subscription resource tags.

create_or_update

Create a subscription resource tag.

create_or_update(tag_name: str, **kwargs: Any) -> TagDetails

Parameters

Name Description
tag_name
Required
str

The name of the tag. Required.

Returns

Type Description

TagDetails or the result of cls(response)

Exceptions

Type Description

create_or_update_value

Create a subscription resource tag value.

create_or_update_value(tag_name: str, tag_value: str, **kwargs: Any) -> TagValue

Parameters

Name Description
tag_name
Required
str

The name of the tag. Required.

tag_value
Required
str

The value of the tag. Required.

Returns

Type Description

TagValue or the result of cls(response)

Exceptions

Type Description

delete

Delete a subscription resource tag.

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

Parameters

Name Description
tag_name
Required
str

The name of the tag. Required.

Returns

Type Description

None or the result of cls(response)

Exceptions

Type Description

delete_value

Delete a subscription resource tag value.

delete_value(tag_name: str, tag_value: str, **kwargs: Any) -> None

Parameters

Name Description
tag_name
Required
str

The name of the tag. Required.

tag_value
Required
str

The value of the tag. Required.

Returns

Type Description

None or the result of cls(response)

Exceptions

Type Description

list

Get a list of subscription resource tags.

list(**kwargs: Any) -> Iterable[TagDetails]

Returns

Type Description

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

Exceptions

Type Description

Attributes

models

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