Reference documentation and code samples for the Google Cloud Resource Manager V3 Client class DeleteTagKeyRequest.
The request message for deleting a TagKey.
Generated from protobuf messagegoogle.cloud.resourcemanager.v3.DeleteTagKeyRequest
Namespace
Google \ Cloud \ ResourceManager \ V3
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ name
string
Required. The resource name of a TagKey to be deleted in the formattagKeys/123. The TagKey cannot be a parent of any existing TagValues or it will not be deleted successfully.
↳ validate_only
bool
Optional. Set as true to perform validations necessary for deletion, but not actually perform the action.
↳ etag
string
Optional. The etag known to the client for the expected state of the TagKey. This is to be used for optimistic concurrency.
getName
Required. The resource name of a TagKey to be deleted in the formattagKeys/123. The TagKey cannot be a parent of any existing TagValues or
it will not be deleted successfully.
Returns
Type
Description
string
setName
Required. The resource name of a TagKey to be deleted in the formattagKeys/123. The TagKey cannot be a parent of any existing TagValues or
it will not be deleted successfully.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getValidateOnly
Optional. Set as true to perform validations necessary for deletion, but
not actually perform the action.
Returns
Type
Description
bool
setValidateOnly
Optional. Set as true to perform validations necessary for deletion, but
not actually perform the action.
Parameter
Name
Description
var
bool
Returns
Type
Description
$this
getEtag
Optional. The etag known to the client for the expected state of the
TagKey. This is to be used for optimistic concurrency.
Returns
Type
Description
string
setEtag
Optional. The etag known to the client for the expected state of the
TagKey. This is to be used for optimistic concurrency.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
static::build
Parameter
Name
Description
name
string
Required. The resource name of a TagKey to be deleted in the formattagKeys/123. The TagKey cannot be a parent of any existing TagValues or
it will not be deleted successfully. Please seeTagKeysClient::tagKeyName()for help formatting this field.
[[["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 DeleteTagKeyRequest (1.0.4)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.4 (latest)](/php/docs/reference/cloud-resource-manager/latest/V3.DeleteTagKeyRequest)\n- [1.0.3](/php/docs/reference/cloud-resource-manager/1.0.3/V3.DeleteTagKeyRequest)\n- [0.8.5](/php/docs/reference/cloud-resource-manager/0.8.5/V3.DeleteTagKeyRequest)\n- [0.7.2](/php/docs/reference/cloud-resource-manager/0.7.2/V3.DeleteTagKeyRequest)\n- [0.6.1](/php/docs/reference/cloud-resource-manager/0.6.1/V3.DeleteTagKeyRequest)\n- [0.5.0](/php/docs/reference/cloud-resource-manager/0.5.0/V3.DeleteTagKeyRequest)\n- [0.4.1](/php/docs/reference/cloud-resource-manager/0.4.1/V3.DeleteTagKeyRequest)\n- [0.3.9](/php/docs/reference/cloud-resource-manager/0.3.9/V3.DeleteTagKeyRequest) \nReference documentation and code samples for the Google Cloud Resource Manager V3 Client class DeleteTagKeyRequest.\n\nThe request message for deleting a TagKey.\n\nGenerated from protobuf message `google.cloud.resourcemanager.v3.DeleteTagKeyRequest`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ ResourceManager \\\\ V3\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getName\n\nRequired. The resource name of a TagKey to be deleted in the format\n`tagKeys/123`. The TagKey cannot be a parent of any existing TagValues or\nit will not be deleted successfully.\n\n### setName\n\nRequired. The resource name of a TagKey to be deleted in the format\n`tagKeys/123`. The TagKey cannot be a parent of any existing TagValues or\nit will not be deleted successfully.\n\n### getValidateOnly\n\nOptional. Set as true to perform validations necessary for deletion, but\nnot actually perform the action.\n\n### setValidateOnly\n\nOptional. Set as true to perform validations necessary for deletion, but\nnot actually perform the action.\n\n### getEtag\n\nOptional. The etag known to the client for the expected state of the\nTagKey. This is to be used for optimistic concurrency.\n\n### setEtag\n\nOptional. The etag known to the client for the expected state of the\nTagKey. This is to be used for optimistic concurrency.\n\n### static::build"]]