Google Cloud Resource Manager V3 Client - Class TagBinding (0.7.2)

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

tagBindings/%2F%2Fcloudresourcemanager.googleapis.com%2Fprojects%2F123/tagValues/456).

Returns
TypeDescription
string

setName

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getParent

The full resource name of the resource the TagValue is bound to.

E.g. //cloudresourcemanager.googleapis.com/projects/123

Returns
TypeDescription
string

setParent

The full resource name of the resource the TagValue is bound to.

E.g. //cloudresourcemanager.googleapis.com/projects/123

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getTagValue

The TagValue of the TagBinding.

Must be of the form tagValues/456.

Returns
TypeDescription
string

setTagValue

The TagValue of the TagBinding.

Must be of the form tagValues/456.

Parameter
NameDescription
var string
Returns
TypeDescription
$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
TypeDescription
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.

Parameter
NameDescription
var string
Returns
TypeDescription
$this