Tag
Attributes
additional_info: Optionalis_community_tag_key: boolis_community_tag_value: boolis_propagable: boolkey: strorigins: TagOriginsvalue: UnionFunctions
__init__
Create a new tag
key :
str key of the tag
value :
Union value of the tag
is_propagable :
bool - False if True the tagwill be propagated in next resouces and views
origins :
TagOrigins origin of the tag
auto_parse :
bool - False if True the key and value will be parsed to validate tag format.
if False and tag is invalid, an exception will be raised
is_community_tag_key :
bool - False is_community_tag_value :
bool - False additional_info :
Dict get_str_value
Return type :
str get_value_format
Return type :
TagValueFormat origin_is_defined
Return type :
bool propagate
Return a new instance of tag with the new origin. Only the origin_type and origin_id are propagated
origin_type :
TagOriginType origin_id :
str Return type :
Tag set_external_lab_origin
Set the external lab origin for all origin if not already defined
external_lab_origin_id :
str to_dto
Return type :
TagDTO convert_str_value_to_type @staticmethod
value :
str value_format :
TagValueFormat Return type :
Union convert_value_to_str @staticmethod
value :
Union Return type :
str from_dto @staticmethod
dto :
TagDTO Return type :
Tag parse_tag @staticmethod
Parse a tag from a string
tag_str :
str Return type :
str validate_tag @staticmethod
tag_str :
str