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
Inherited Members
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 |
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. |