FreeFormTag¶
-
class
oci.os_management_hub.models.FreeFormTag(**kwargs)¶ Bases:
oci.os_management_hub.models.tag.TagFreeForm tag assigned to a resource.
Attributes
TYPE_DEFINEDstr(object=’’) -> str TYPE_FREEFORMstr(object=’’) -> str keyGets the key of this Tag. type[Required] Gets the type of this Tag. valueGets the value of this Tag. Methods
__init__(**kwargs)Initializes a new FreeFormTag object with values from keyword arguments. get_subtype(object_dictionary)Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype. -
TYPE_DEFINED= 'DEFINED'¶
-
TYPE_FREEFORM= 'FREEFORM'¶
-
__init__(**kwargs)¶ Initializes a new FreeFormTag object with values from keyword arguments. The default value of the
typeattribute of this class isFREEFORMand it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):Parameters: - type (str) – The value to assign to the type property of this FreeFormTag. Allowed values for this property are: “DEFINED”, “FREEFORM”
- key (str) – The value to assign to the key property of this FreeFormTag.
- value (str) – The value to assign to the value property of this FreeFormTag.
-
static
get_subtype(object_dictionary)¶ Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.
-
key¶ Gets the key of this Tag. The key of the tag.
Returns: The key of this Tag. Return type: str
-
type¶ [Required] Gets the type of this Tag. The type of the tag. Common values include defined or freeform.
Allowed values for this property are: “DEFINED”, “FREEFORM”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The type of this Tag. Return type: str
-
value¶ Gets the value of this Tag. The value associated with the tag key.
Returns: The value of this Tag. Return type: str
-