Google Cloud Policy Troubleshooter Iam V3 Client - Class EffectiveTag (0.1.2)

Reference documentation and code samples for the Google Cloud Policy Troubleshooter Iam V3 Client class 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.

Generated from protobuf message google.cloud.policytroubleshooter.iam.v3.ConditionContext.EffectiveTag

Namespace

Google \ Cloud \ PolicyTroubleshooter \ Iam \ V3 \ ConditionContext

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ tag_value string

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

↳ namespaced_tag_value string

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

↳ tag_key string

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

↳ namespaced_tag_key string

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

↳ tag_key_parent_name string

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

↳ inherited bool

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.

getTagValue

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

Returns
TypeDescription
string

setTagValue

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getNamespacedTagValue

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

Returns
TypeDescription
string

setNamespacedTagValue

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getTagKey

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

Returns
TypeDescription
string

setTagKey

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getNamespacedTagKey

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

Returns
TypeDescription
string

setNamespacedTagKey

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getTagKeyParentName

The parent name of the tag key.

Must be in the format organizations/{organization_id} or projects/{project_number}

Returns
TypeDescription
string

setTagKeyParentName

The parent name of the tag key.

Must be in the format organizations/{organization_id} or projects/{project_number}

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getInherited

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.

Returns
TypeDescription
bool

setInherited

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.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this