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 \ V1Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
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 | |
---|---|
Type | Description |
string |
hasAttachedResource
clearAttachedResource
setAttachedResource
The full resource name of the ancestor from which an effective_tag is inherited, according to tag inheritance.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$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 | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
var |
array<Google\Cloud\Asset\V1\Tag>
|
Returns | |
---|---|
Type | Description |
$this |