TargetTag

class oci.optimizer.models.TargetTag(**kwargs)

Bases: object

A target tag with tag namespace, tag definition, tag value type, and tag values attached to the current profile override.

Attributes

TAG_VALUE_TYPE_ANY A constant which can be used with the tag_value_type property of a TargetTag.
TAG_VALUE_TYPE_VALUE A constant which can be used with the tag_value_type property of a TargetTag.
tag_definition_name [Required] Gets the tag_definition_name of this TargetTag.
tag_namespace_name [Required] Gets the tag_namespace_name of this TargetTag.
tag_value_type [Required] Gets the tag_value_type of this TargetTag.
tag_values Gets the tag_values of this TargetTag.

Methods

__init__(**kwargs) Initializes a new TargetTag object with values from keyword arguments.
TAG_VALUE_TYPE_ANY = 'ANY'

A constant which can be used with the tag_value_type property of a TargetTag. This constant has a value of “ANY”

TAG_VALUE_TYPE_VALUE = 'VALUE'

A constant which can be used with the tag_value_type property of a TargetTag. This constant has a value of “VALUE”

__init__(**kwargs)

Initializes a new TargetTag object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • tag_namespace_name (str) – The value to assign to the tag_namespace_name property of this TargetTag.
  • tag_definition_name (str) – The value to assign to the tag_definition_name property of this TargetTag.
  • tag_value_type (str) – The value to assign to the tag_value_type property of this TargetTag. Allowed values for this property are: “VALUE”, “ANY”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • tag_values (list[str]) – The value to assign to the tag_values property of this TargetTag.
tag_definition_name

[Required] Gets the tag_definition_name of this TargetTag. The name of the tag definition.

Returns:The tag_definition_name of this TargetTag.
Return type:str
tag_namespace_name

[Required] Gets the tag_namespace_name of this TargetTag. The name of the tag namespace.

Returns:The tag_namespace_name of this TargetTag.
Return type:str
tag_value_type

[Required] Gets the tag_value_type of this TargetTag. The tag value type.

Allowed values for this property are: “VALUE”, “ANY”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The tag_value_type of this TargetTag.
Return type:str
tag_values

Gets the tag_values of this TargetTag. The list of tag values.

Returns:The tag_values of this TargetTag.
Return type:list[str]