TagsOperations Class
TagsOperations 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.objectTagsOperations
Constructor
TagsOperations(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
| 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.
async create_or_update(tag_name: str, **kwargs: Any) -> azure.mgmt.resource.resources.v2016_02_01.models._models_py3.TagDetails
Parameters
- 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.
async create_or_update_value(tag_name: str, tag_value: str, **kwargs: Any) -> azure.mgmt.resource.resources.v2016_02_01.models._models_py3.TagValue
Parameters
- 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.
async delete(tag_name: str, **kwargs: Any) -> None
Parameters
- 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.
async delete_value(tag_name: str, tag_value: str, **kwargs: Any) -> None
Parameters
- 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) -> AsyncIterable[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'>
Feedback
Submit and view feedback for