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"]],[["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-03-21 UTC."],[[["The `TargetAttribute` class in the Google Cloud Deploy v1 API is used to define criteria for selecting specific deployment targets."],["This page provides documentation for the `TargetAttribute` 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."],["The `TargetAttribute` class allows filtering of targets based on an ID or labels, requiring the target resource to match all criteria for policy restrictions to apply."],["The `Id` property of the `TargetAttribute` class can specify a single target by its ID or all targets in a location using the wildcard \"\\*\"."],["The `Labels` property of the `TargetAttribute` class uses a map to define the key-value pairs of labels that a target resource must have in order to match."]]],[]]