Tag

class oci.os_management_hub.models.Tag(**kwargs)

Bases: object

Metadata tag assigned to a resource.

Attributes

TYPE_DEFINED A constant which can be used with the type property of a Tag.
TYPE_FREEFORM A constant which can be used with the type property of a Tag.
key Gets the key of this Tag.
type [Required] Gets the type of this Tag.
value Gets the value of this Tag.

Methods

__init__(**kwargs) Initializes a new Tag 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'

A constant which can be used with the type property of a Tag. This constant has a value of “DEFINED”

TYPE_FREEFORM = 'FREEFORM'

A constant which can be used with the type property of a Tag. This constant has a value of “FREEFORM”

__init__(**kwargs)

Initializes a new Tag object with values from keyword arguments. This class has the following subclasses and if you are using this class as input to a service operations then you should favor using a subclass over the base class:

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 Tag. 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’.
  • key (str) – The value to assign to the key property of this Tag.
  • value (str) – The value to assign to the value property of this Tag.
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