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 within the Google Cloud Resource Manager v3 API represents a use of a \u003ccode\u003eTagValue\u003c/code\u003e that is not covered by \u003ccode\u003eTagBindings\u003c/code\u003e, preventing the deletion of said \u003ccode\u003eTagValue\u003c/code\u003e if it has any \u003ccode\u003eTagHolds\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eTagHold\u003c/code\u003e class can be constructed using a default constructor, or a constructor that copies properties from another \u003ccode\u003eTagHold\u003c/code\u003e object, as demonstrated with the \u003ccode\u003eTagHold()\u003c/code\u003e and \u003ccode\u003eTagHold(TagHold)\u003c/code\u003e constructors.\u003c/p\u003e\n"],["\u003cp\u003eSeveral properties are associated with the \u003ccode\u003eTagHold\u003c/code\u003e class, including \u003ccode\u003eCreateTime\u003c/code\u003e (when the hold was created), \u003ccode\u003eHelpLink\u003c/code\u003e (a URL for more information), \u003ccode\u003eHolder\u003c/code\u003e (the resource using the \u003ccode\u003eTagValue\u003c/code\u003e), \u003ccode\u003eName\u003c/code\u003e (the resource name of the \u003ccode\u003eTagHold\u003c/code\u003e), \u003ccode\u003eOrigin\u003c/code\u003e (origin of the request), and \u003ccode\u003eTagHoldName\u003c/code\u003e (a typed view over the name).\u003c/p\u003e\n"],["\u003cp\u003eThe current version for the provided documentation is 2.4.0 and the most recent version is 2.5.0, there are also 7 other versions available ranging from 2.3.0 to 1.0.0.\u003c/p\u003e\n"]]],[],null,[]]