Google Cloud Deploy v1 API - Class TargetAttribute (2.10.0)

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.

Inheritance

object > TargetAttribute

Namespace

Google.Cloud.Deploy.V1

Assembly

Google.Cloud.Deploy.V1.dll

Constructors

TargetAttribute()

public TargetAttribute()

TargetAttribute(TargetAttribute)

public TargetAttribute(TargetAttribute other)
Parameter
NameDescription
otherTargetAttribute

Properties

Id

public string Id { get; set; }

ID of the Target. The value of this field could be one of the following:

  • The last segment of a target name. It only needs the ID to determine which target is being referred to
  • "*", all targets in a location.
Property Value
TypeDescription
string

Labels

public MapField<string, string> Labels { get; }

Target labels.

Property Value
TypeDescription
MapFieldstringstring