Google Cloud Resource Manager V3 Client - Class CreateTagKeyRequest (0.6.1)

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

The request message for creating a TagKey.

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

Namespace

Google \ Cloud \ ResourceManager \ V3

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ tag_key Google\Cloud\ResourceManager\V3\TagKey

Required. The TagKey to be created. Only fields short_name, description, and parent are considered during the creation request.

↳ validate_only bool

Optional. Set to true to perform validations necessary for creating the resource, but not actually perform the action.

getTagKey

Required. The TagKey to be created. Only fields short_name, description, and parent are considered during the creation request.

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

hasTagKey

clearTagKey

setTagKey

Required. The TagKey to be created. Only fields short_name, description, and parent are considered during the creation request.

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

getValidateOnly

Optional. Set to true to perform validations necessary for creating the resource, but not actually perform the action.

Returns
TypeDescription
bool

setValidateOnly

Optional. Set to true to perform validations necessary for creating the resource, but not actually perform the action.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

static::build

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

Required. The TagKey to be created. Only fields short_name, description, and parent are considered during the creation request.

Returns
TypeDescription
Google\Cloud\ResourceManager\V3\CreateTagKeyRequest