Policy Troubleshooter v3 API - Class ConditionContext.Types.EffectiveTag (1.0.0)

public sealed class ConditionContext.Types.EffectiveTag : IMessage<ConditionContext.Types.EffectiveTag>, IEquatable<ConditionContext.Types.EffectiveTag>, IDeepCloneable<ConditionContext.Types.EffectiveTag>, IBufferMessage, IMessage

Reference documentation and code samples for the Policy Troubleshooter v3 API class ConditionContext.Types.EffectiveTag.

A tag that applies to a resource during policy evaluation. Tags can be either directly bound to a resource or inherited from its ancestor. EffectiveTag contains the name and namespaced_name of the tag value and tag key, with additional fields of inherited to indicate the inheritance status of the effective tag.

Inheritance

object > ConditionContext.Types.EffectiveTag

Namespace

Google.Cloud.PolicyTroubleshooter.Iam.V3

Assembly

Google.Cloud.PolicyTroubleshooter.Iam.V3.dll

Constructors

EffectiveTag()

public EffectiveTag()

EffectiveTag(EffectiveTag)

public EffectiveTag(ConditionContext.Types.EffectiveTag other)
Parameter
NameDescription
otherConditionContextTypesEffectiveTag

Properties

Inherited

public bool Inherited { get; set; }

Output only. Indicates the inheritance status of a tag value attached to the given resource. If the tag value is inherited from one of the resource's ancestors, inherited will be true. If false, then the tag value is directly attached to the resource, inherited will be false.

Property Value
TypeDescription
bool

NamespacedTagKey

public string NamespacedTagKey { get; set; }

Output only. The namespaced name of the TagKey. Can be in the form {organization_id}/{tag_key_short_name} or {project_id}/{tag_key_short_name} or {project_number}/{tag_key_short_name}.

Property Value
TypeDescription
string

NamespacedTagValue

public string NamespacedTagValue { get; set; }

Output only. The namespaced name of the TagValue. Can be in the form {organization_id}/{tag_key_short_name}/{tag_value_short_name} or {project_id}/{tag_key_short_name}/{tag_value_short_name} or {project_number}/{tag_key_short_name}/{tag_value_short_name}.

Property Value
TypeDescription
string

TagKey

public string TagKey { get; set; }

Output only. The name of the TagKey, in the format tagKeys/{id}, such as tagKeys/123.

Property Value
TypeDescription
string

TagKeyParentName

public string TagKeyParentName { get; set; }

The parent name of the tag key. Must be in the format organizations/{organization_id} or projects/{project_number}

Property Value
TypeDescription
string

TagValue

public string TagValue { get; set; }

Output only. Resource name for TagValue in the format tagValues/456.

Property Value
TypeDescription
string