Google Cloud Asset V1 Client - Class Tag (1.13.2)

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

The key and value for a tag,

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

Namespace

Google \ Cloud \ Asset \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ tag_key string

TagKey namespaced name, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}.

↳ tag_value string

TagValue namespaced name, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}/{TAG_VALUE_SHORT_NAME}.

↳ tag_value_id string

TagValue ID, in the format of tagValues/{TAG_VALUE_ID}.

getTagKey

TagKey namespaced name, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}.

Returns
TypeDescription
string

hasTagKey

clearTagKey

setTagKey

TagKey namespaced name, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getTagValue

TagValue namespaced name, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}/{TAG_VALUE_SHORT_NAME}.

Returns
TypeDescription
string

hasTagValue

clearTagValue

setTagValue

TagValue namespaced name, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}/{TAG_VALUE_SHORT_NAME}.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getTagValueId

TagValue ID, in the format of tagValues/{TAG_VALUE_ID}.

Returns
TypeDescription
string

hasTagValueId

clearTagValueId

setTagValueId

TagValue ID, in the format of tagValues/{TAG_VALUE_ID}.

Parameter
NameDescription
var string
Returns
TypeDescription
$this