Google Cloud Asset V1 Client - Class EffectiveTagDetails (1.14.1)

Reference documentation and code samples for the Google Cloud Asset V1 Client class EffectiveTagDetails.

The effective tags and the ancestor resources from which they were inherited.

Generated from protobuf message google.cloud.asset.v1.EffectiveTagDetails

Namespace

Google \ Cloud \ Asset \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ attached_resource string

The full resource name of the ancestor from which an effective_tag is inherited, according to tag inheritance.

↳ effective_tags array<Google\Cloud\Asset\V1\Tag>

The effective tags inherited from the attached_resource. Note that tags with the same key but different values may attach to resources at a different hierarchy levels. The lower hierarchy tag value will overwrite the higher hierarchy tag value of the same tag key. In this case, the tag value at the higher hierarchy level will be removed. For more information, see tag inheritance.

getAttachedResource

The full resource name of the ancestor from which an effective_tag is inherited, according to tag inheritance.

Returns
TypeDescription
string

hasAttachedResource

clearAttachedResource

setAttachedResource

The full resource name of the ancestor from which an effective_tag is inherited, according to tag inheritance.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getEffectiveTags

The effective tags inherited from the attached_resource.

Note that tags with the same key but different values may attach to resources at a different hierarchy levels. The lower hierarchy tag value will overwrite the higher hierarchy tag value of the same tag key. In this case, the tag value at the higher hierarchy level will be removed. For more information, see tag inheritance.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setEffectiveTags

The effective tags inherited from the attached_resource.

Note that tags with the same key but different values may attach to resources at a different hierarchy levels. The lower hierarchy tag value will overwrite the higher hierarchy tag value of the same tag key. In this case, the tag value at the higher hierarchy level will be removed. For more information, see tag inheritance.

Parameter
NameDescription
var array<Google\Cloud\Asset\V1\Tag>
Returns
TypeDescription
$this