public sealed class TargetAttribute : IMessage<TargetAttribute>, IEquatable<TargetAttribute>, IDeepCloneable<TargetAttribute>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Deploy v1 API class TargetAttribute.
Contains criteria for selecting Targets. Attributes provided must match the
target resource in order for policy restrictions to apply. E.g. if id "prod"
and labels "foo: bar" are given the target resource must match both that id
and have that label in order to be selected.
[[["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 latest version available for the Google Cloud Deploy v1 API's \u003ccode\u003eTargetAttribute\u003c/code\u003e class is 3.4.0, while the current page focuses on version 2.10.0.\u003c/p\u003e\n"],["\u003cp\u003eThis documentation provides reference and code samples for the \u003ccode\u003eTargetAttribute\u003c/code\u003e class within the Google Cloud Deploy v1 API.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eTargetAttribute\u003c/code\u003e class serves to select Targets by matching attributes like ID and labels, ensuring that resources adhere to specific criteria.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eTargetAttribute\u003c/code\u003e class has various implementations and inherited members from base classes, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe available versions for the TargetAttribute Class span from 1.0.0 up to the latest version 3.4.0.\u003c/p\u003e\n"]]],[],null,[]]