Reference documentation and code samples for the Google Cloud Resource Manager V3 Client class TagBinding.
A TagBinding represents a connection between a TagValue and a cloud
resource Once a TagBinding is created, the TagValue is applied to all the
descendants of the Google Cloud resource.
Generated from protobuf message google.cloud.resourcemanager.v3.TagBinding
Namespace
Google \ Cloud \ ResourceManager \ V3
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ name
string
Output only. The name of the TagBinding. This is a String of the form: tagBindings/{full-resource-name}/{tag-value-name} (e.g. tagBindings/%2F%2Fcloudresourcemanager.googleapis.com%2Fprojects%2F123/tagValues/456).
↳ parent
string
The full resource name of the resource the TagValue is bound to. E.g. //cloudresourcemanager.googleapis.com/projects/123
↳ tag_value
string
The TagValue of the TagBinding. Must be of the form tagValues/456.
↳ tag_value_namespaced_name
string
The namespaced name for the TagValue of the TagBinding. Must be in the format {parent_id}/{tag_key_short_name}/{short_name}. For methods that support TagValue namespaced name, only one of tag_value_namespaced_name or tag_value may be filled. Requests with both fields will be rejected.
getName
Output only. The name of the TagBinding. This is a String of the form:
tagBindings/{full-resource-name}/{tag-value-name} (e.g.
The full resource name of the resource the TagValue is bound to.
E.g. //cloudresourcemanager.googleapis.com/projects/123
Returns
Type
Description
string
setParent
The full resource name of the resource the TagValue is bound to.
E.g. //cloudresourcemanager.googleapis.com/projects/123
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getTagValue
The TagValue of the TagBinding.
Must be of the form tagValues/456.
Returns
Type
Description
string
setTagValue
The TagValue of the TagBinding.
Must be of the form tagValues/456.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getTagValueNamespacedName
The namespaced name for the TagValue of the TagBinding.
Must be in the format
{parent_id}/{tag_key_short_name}/{short_name}.
For methods that support TagValue namespaced name, only one of
tag_value_namespaced_name or tag_value may be filled. Requests with both
fields will be rejected.
Returns
Type
Description
string
setTagValueNamespacedName
The namespaced name for the TagValue of the TagBinding.
Must be in the format
{parent_id}/{tag_key_short_name}/{short_name}.
For methods that support TagValue namespaced name, only one of
tag_value_namespaced_name or tag_value may be filled. Requests with both
fields will be rejected.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Resource Manager V3 Client - Class TagBinding (1.0.4)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.4 (latest)](/php/docs/reference/cloud-resource-manager/latest/V3.TagBinding)\n- [1.0.3](/php/docs/reference/cloud-resource-manager/1.0.3/V3.TagBinding)\n- [0.8.5](/php/docs/reference/cloud-resource-manager/0.8.5/V3.TagBinding)\n- [0.7.2](/php/docs/reference/cloud-resource-manager/0.7.2/V3.TagBinding)\n- [0.6.1](/php/docs/reference/cloud-resource-manager/0.6.1/V3.TagBinding)\n- [0.5.0](/php/docs/reference/cloud-resource-manager/0.5.0/V3.TagBinding)\n- [0.4.1](/php/docs/reference/cloud-resource-manager/0.4.1/V3.TagBinding)\n- [0.3.9](/php/docs/reference/cloud-resource-manager/0.3.9/V3.TagBinding) \nReference documentation and code samples for the Google Cloud Resource Manager V3 Client class TagBinding.\n\nA TagBinding represents a connection between a TagValue and a cloud\nresource Once a TagBinding is created, the TagValue is applied to all the\ndescendants of the Google Cloud resource.\n\nGenerated from protobuf message `google.cloud.resourcemanager.v3.TagBinding`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ ResourceManager \\\\ V3\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getName\n\nOutput only. The name of the TagBinding. This is a String of the form:\n`tagBindings/{full-resource-name}/{tag-value-name}` (e.g.\n\n`tagBindings/%2F%2Fcloudresourcemanager.googleapis.com%2Fprojects%2F123/tagValues/456`).\n\n### setName\n\nOutput only. The name of the TagBinding. This is a String of the form:\n`tagBindings/{full-resource-name}/{tag-value-name}` (e.g.\n\n`tagBindings/%2F%2Fcloudresourcemanager.googleapis.com%2Fprojects%2F123/tagValues/456`).\n\n### getParent\n\nThe full resource name of the resource the TagValue is bound to.\n\nE.g. `//cloudresourcemanager.googleapis.com/projects/123`\n\n### setParent\n\nThe full resource name of the resource the TagValue is bound to.\n\nE.g. `//cloudresourcemanager.googleapis.com/projects/123`\n\n### getTagValue\n\nThe TagValue of the TagBinding.\n\nMust be of the form `tagValues/456`.\n\n### setTagValue\n\nThe TagValue of the TagBinding.\n\nMust be of the form `tagValues/456`.\n\n### getTagValueNamespacedName\n\nThe namespaced name for the TagValue of the TagBinding.\n\nMust be in the format\n`{parent_id}/{tag_key_short_name}/{short_name}`.\nFor methods that support TagValue namespaced name, only one of\ntag_value_namespaced_name or tag_value may be filled. Requests with both\nfields will be rejected.\n\n### setTagValueNamespacedName\n\nThe namespaced name for the TagValue of the TagBinding.\n\nMust be in the format\n`{parent_id}/{tag_key_short_name}/{short_name}`.\nFor methods that support TagValue namespaced name, only one of\ntag_value_namespaced_name or tag_value may be filled. Requests with both\nfields will be rejected."]]