Attribute
Attribute
Represents a key-value pair used for tagging entities.
Attributes:
Name | Type | Description |
---|---|---|
key |
str
|
The key of the attribute. |
value |
str
|
The value of the attribute. |
Methods:
Name | Description |
---|---|
to_dict |
Converts the attribute to a dictionary representation. |
Source code in zenaura/client/tags/attribute.py
__init__(key, value)
Initializes an Attribute object with the given key and value.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
key |
str
|
The key of the attribute. |
required |
value |
str
|
The value of the attribute. |
required |
to_dict()
Returns a dictionary representation of the attribute.
Returns:
Name | Type | Description |
---|---|---|
dict |
dict
|
A dictionary containing the key and value of the attribute. |