Google Cloud Resource Manager V3 Client - Class UpdateTagKeyRequest (0.5.0)

Reference documentation and code samples for the Google Cloud Resource Manager V3 Client class UpdateTagKeyRequest.

The request message for updating a TagKey.

Generated from protobuf message google.cloud.resourcemanager.v3.UpdateTagKeyRequest

Methods

build

Parameters
NameDescription
tagKey Google\Cloud\ResourceManager\V3\TagKey

Required. The new definition of the TagKey. Only the description and etag fields can be updated by this request. If the etag field is not empty, it must match the etag field of the existing tag key. Otherwise, ABORTED will be returned.

updateMask Google\Protobuf\FieldMask

Fields to be updated. The mask may only contain description or etag. If omitted entirely, both description and etag are assumed to be significant.

Returns
TypeDescription
Google\Cloud\ResourceManager\V3\UpdateTagKeyRequest

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ tag_key Google\Cloud\ResourceManager\V3\TagKey

Required. The new definition of the TagKey. Only the description and etag fields can be updated by this request. If the etag field is not empty, it must match the etag field of the existing tag key. Otherwise, ABORTED will be returned.

↳ update_mask Google\Protobuf\FieldMask

Fields to be updated. The mask may only contain description or etag. If omitted entirely, both description and etag are assumed to be significant.

↳ validate_only bool

Set as true to perform validations necessary for updating the resource, but not actually perform the action.

getTagKey

Required. The new definition of the TagKey. Only the description and etag fields can be updated by this request. If the etag field is not empty, it must match the etag field of the existing tag key. Otherwise, ABORTED will be returned.

Returns
TypeDescription
Google\Cloud\ResourceManager\V3\TagKey|null

hasTagKey

clearTagKey

setTagKey

Required. The new definition of the TagKey. Only the description and etag fields can be updated by this request. If the etag field is not empty, it must match the etag field of the existing tag key. Otherwise, ABORTED will be returned.

Parameter
NameDescription
var Google\Cloud\ResourceManager\V3\TagKey
Returns
TypeDescription
$this

getUpdateMask

Fields to be updated. The mask may only contain description or etag. If omitted entirely, both description and etag are assumed to be significant.

Returns
TypeDescription
Google\Protobuf\FieldMask|null

hasUpdateMask

clearUpdateMask

setUpdateMask

Fields to be updated. The mask may only contain description or etag. If omitted entirely, both description and etag are assumed to be significant.

Parameter
NameDescription
var Google\Protobuf\FieldMask
Returns
TypeDescription
$this

getValidateOnly

Set as true to perform validations necessary for updating the resource, but not actually perform the action.

Returns
TypeDescription
bool

setValidateOnly

Set as true to perform validations necessary for updating the resource, but not actually perform the action.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this