Show / Hide Table of Contents

Class TargetTag

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

Inheritance
object
TargetTag
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Oci.OptimizerService.Models
Assembly: OCI.DotNetSDK.Optimizer.dll
Syntax
public class TargetTag

Properties

TagDefinitionName

Declaration
[Required(ErrorMessage = "TagDefinitionName is required.")]
[JsonProperty(PropertyName = "tagDefinitionName")]
public string TagDefinitionName { get; set; }
Property Value
Type Description
string

The name you use to refer to the tag, also known as the tag key.

Remarks

Required

TagNamespaceName

Declaration
[Required(ErrorMessage = "TagNamespaceName is required.")]
[JsonProperty(PropertyName = "tagNamespaceName")]
public string TagNamespaceName { get; set; }
Property Value
Type Description
string

The name of the tag namespace.

Remarks

Required

TagValueType

Declaration
[Required(ErrorMessage = "TagValueType is required.")]
[JsonProperty(PropertyName = "tagValueType")]
[JsonConverter(typeof(ResponseEnumConverter))]
public TagValueType? TagValueType { get; set; }
Property Value
Type Description
TagValueType?

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.

Remarks

Required

TagValues

Declaration
[JsonProperty(PropertyName = "tagValues")]
public List<string> TagValues { get; set; }
Property Value
Type Description
List<string>

The list of tag values. The tag value is the value that the user applying the tag adds to the tag key.

In this article
Back to top