Reference documentation and code samples for the Google Cloud Resource Manager V3 Client class TagValue.
A TagValue is a child of a particular TagKey. This is used to group cloud resources for the purpose of controlling them using policies.
Generated from protobuf message google.cloud.resourcemanager.v3.TagValue
Namespace
Google \ Cloud \ ResourceManager \ V3Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ name
string
Immutable. Resource name for TagValue in the format tagValues/456
.
↳ parent
string
Immutable. The resource name of the new TagValue's parent TagKey. Must be of the form tagKeys/{tag_key_id}
.
↳ short_name
string
Required. Immutable. User-assigned short name for TagValue. The short name should be unique for TagValues within the same parent TagKey. The short name must be 63 characters or less, beginning and ending with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), underscores (_), dots (.), and alphanumerics between.
↳ namespaced_name
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}
.
↳ description
string
Optional. User-assigned description of the TagValue. Must not exceed 256 characters. Read-write.
↳ create_time
↳ update_time
↳ etag
string
Optional. Entity tag which users can pass to prevent race conditions. This field is always set in server responses. See UpdateTagValueRequest for details.
getName
Immutable. Resource name for TagValue in the format tagValues/456
.
string
setName
Immutable. Resource name for TagValue in the format tagValues/456
.
var
string
$this
getParent
Immutable. The resource name of the new TagValue's parent TagKey.
Must be of the form tagKeys/{tag_key_id}
.
string
setParent
Immutable. The resource name of the new TagValue's parent TagKey.
Must be of the form tagKeys/{tag_key_id}
.
var
string
$this
getShortName
Required. Immutable. User-assigned short name for TagValue. The short name should be unique for TagValues within the same parent TagKey.
The short name must be 63 characters or less, beginning and ending with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), underscores (_), dots (.), and alphanumerics between.
string
setShortName
Required. Immutable. User-assigned short name for TagValue. The short name should be unique for TagValues within the same parent TagKey.
The short name must be 63 characters or less, beginning and ending with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), underscores (_), dots (.), and alphanumerics between.
var
string
$this
getNamespacedName
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}
.
string
setNamespacedName
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}
.
var
string
$this
getDescription
Optional. User-assigned description of the TagValue.
Must not exceed 256 characters. Read-write.
string
setDescription
Optional. User-assigned description of the TagValue.
Must not exceed 256 characters. Read-write.
var
string
$this
getCreateTime
Output only. Creation time.
hasCreateTime
clearCreateTime
setCreateTime
Output only. Creation time.
$this
getUpdateTime
Output only. Update time.
hasUpdateTime
clearUpdateTime
setUpdateTime
Output only. Update time.
$this
getEtag
Optional. Entity tag which users can pass to prevent race conditions. This field is always set in server responses. See UpdateTagValueRequest for details.
string
setEtag
Optional. Entity tag which users can pass to prevent race conditions. This field is always set in server responses. See UpdateTagValueRequest for details.
var
string
$this