public sealed class TagHold : IMessage<TagHold>, IEquatable<TagHold>, IDeepCloneable<TagHold>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud Resource Manager v3 API class TagHold.
A TagHold represents the use of a TagValue that is not captured by
TagBindings. If a TagValue has any TagHolds, deletion will be blocked.
This resource is intended to be created in the same cloud location as the
holder.
Optional. A URL where an end user can learn more about removing this hold.
E.g.
https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing
Required. The name of the resource where the TagValue is being used. Must
be less than 200 characters. E.g.
//compute.googleapis.com/compute/projects/myproject/regions/us-east-1/instanceGroupManagers/instance-group
Output only. The resource name of a TagHold. This is a String of the form:
tagValues/{tag-value-id}/tagHolds/{tag-hold-id}
(e.g. tagValues/123/tagHolds/456). This resource name is generated by
the server.
Optional. An optional string representing the origin of this request. This
field should include human-understandable information to distinguish
origins from each other. Must be less than 200 characters. E.g.
migs-35678234
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eTagHold\u003c/code\u003e class in the Google Cloud Resource Manager v3 API represents a TagValue in use, preventing its deletion if any \u003ccode\u003eTagHolds\u003c/code\u003e are present.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eTagHold\u003c/code\u003e is a resource that is created in the same cloud location as the resource holding the TagValue.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eTagHold\u003c/code\u003e class has properties for \u003ccode\u003eCreateTime\u003c/code\u003e, \u003ccode\u003eHelpLink\u003c/code\u003e, \u003ccode\u003eHolder\u003c/code\u003e, \u003ccode\u003eName\u003c/code\u003e, \u003ccode\u003eOrigin\u003c/code\u003e, and \u003ccode\u003eTagHoldName\u003c/code\u003e, which are used to describe the TagHold instance.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of this api documentation is 2.5.0, which are part of the available versions listed for the class \u003ccode\u003eTagHold\u003c/code\u003e, with the documentation provided for version 2.3.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eTagHold\u003c/code\u003e class implements several interfaces, such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, and inherits members from the base \u003ccode\u003eobject\u003c/code\u003e class.\u003c/p\u003e\n"]]],[],null,[]]