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 \u003ccode\u003eTargetAttribute\u003c/code\u003e class in the Google Cloud Deploy v1 API is used to define criteria for selecting specific deployment targets.\u003c/p\u003e\n"],["\u003cp\u003eThis page provides documentation for the \u003ccode\u003eTargetAttribute\u003c/code\u003e class, including its inheritance, implemented interfaces, constructors, and properties, across multiple versions of the API, starting from version 1.0.0 to the latest, 3.4.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eTargetAttribute\u003c/code\u003e class allows filtering of targets based on an ID or labels, requiring the target resource to match all criteria for policy restrictions to apply.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eId\u003c/code\u003e property of the \u003ccode\u003eTargetAttribute\u003c/code\u003e class can specify a single target by its ID or all targets in a location using the wildcard "*".\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eLabels\u003c/code\u003e property of the \u003ccode\u003eTargetAttribute\u003c/code\u003e class uses a map to define the key-value pairs of labels that a target resource must have in order to match.\u003c/p\u003e\n"]]],[],null,[]]