TargetTag

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

Bases: object

A tag key definition used in the current profile override, including the tag namespace, tag key, tag value type, and tag values. Only defined tags are supported. For more information about tagging, see Tagging Overview

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.

property tag_definition_name

[Required] Gets the tag_definition_name of this TargetTag. The name you use to refer to the tag, also known as the tag key.

Returns

The tag_definition_name of this TargetTag.

Return type

str

property 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

property tag_value_type

[Required] Gets the tag_value_type of this TargetTag. Specifies which tag value types in the tagValues field result in overrides of the recommendation criteria.

When the value for this field is ANY, the tagValues field should be empty, which enforces overrides to the recommendation for resources with any tag values attached to them.

When the value for this field value is VALUE, the tagValues field must include a specific value or list of values. Overrides to the recommendation criteria only occur for resources that match the values in the tagValues fields.

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

property tag_values

Gets the tag_values of this TargetTag. The list of tag values. The tag value is the value that the user applying the tag adds to the tag key.

Returns

The tag_values of this TargetTag.

Return type

list[str]