TagsOperations Class

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

Constructor

TagsOperations(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_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) -> azure.mgmt.resource.resources.v2016_02_01.models._models_py3.TagDetails

Parameters

tag_name
str
Required

The name of the tag.

cls
callable

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

Returns

TagDetails, or the result of cls(response)

Return type

Exceptions

create_or_update_value

Create a subscription resource tag value.

create_or_update_value(tag_name: str, tag_value: str, **kwargs: Any) -> azure.mgmt.resource.resources.v2016_02_01.models._models_py3.TagValue

Parameters

tag_name
str
Required

The name of the tag.

tag_value
str
Required

The value of the tag.

cls
callable

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

Returns

TagValue, or the result of cls(response)

Return type

Exceptions

delete

Delete a subscription resource tag.

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

Parameters

tag_name
str
Required

The name of the tag.

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

delete_value

Delete a subscription resource tag value.

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

Parameters

tag_name
str
Required

The name of the tag.

tag_value
str
Required

The value of the tag.

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

list

Get a list of subscription resource tags.

list(**kwargs: Any) -> Iterable[azure.mgmt.resource.resources.v2016_02_01.models._models_py3.TagsListResult]

Parameters

cls
callable

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

Returns

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

Return type

Exceptions

Attributes

models

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