Cloud Resource Manager v3 API - Class EffectiveTag (2.2.0)

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

Reference documentation and code samples for the Cloud Resource Manager v3 API class EffectiveTag.

An EffectiveTag represents 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 > EffectiveTag

Namespace

Google.Cloud.ResourceManager.V3

Assembly

Google.Cloud.ResourceManager.V3.dll

Constructors

EffectiveTag()

public EffectiveTag()

EffectiveTag(EffectiveTag)

public EffectiveTag(EffectiveTag other)
Parameter
NameDescription
otherEffectiveTag

Properties

Inherited

public bool Inherited { get; set; }

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; }

The namespaced_name of the TagKey. Now only supported in the format of {organization_id}/{tag_key_short_name}. Other formats will be supported when we add non-org parented tags.

Property Value
TypeDescription
string

NamespacedTagValue

public string NamespacedTagValue { get; set; }

Namespaced name of the TagValue. Now only supported in the format {organization_id}/{tag_key_short_name}/{tag_value_short_name}. Other formats will be supported when we add non-org parented tags.

Property Value
TypeDescription
string

TagKey

public string TagKey { get; set; }

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

Property Value
TypeDescription
string

TagKeyAsTagKeyName

public TagKeyName TagKeyAsTagKeyName { get; set; }

TagKeyName-typed view over the TagKey resource name property.

Property Value
TypeDescription
TagKeyName

TagKeyParentName

public string TagKeyParentName { get; set; }

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

Property Value
TypeDescription
string

TagValue

public string TagValue { get; set; }

Resource name for TagValue in the format tagValues/456.

Property Value
TypeDescription
string

TagValueAsTagValueName

public TagValueName TagValueAsTagValueName { get; set; }

TagValueName-typed view over the TagValue resource name property.

Property Value
TypeDescription
TagValueName