Compute Engine v1 API - Class SchedulingNodeAffinity (2.6.0)

public sealed class SchedulingNodeAffinity : IMessage<SchedulingNodeAffinity>, IEquatable<SchedulingNodeAffinity>, IDeepCloneable<SchedulingNodeAffinity>, IBufferMessage, IMessage

Reference documentation and code samples for the Compute Engine v1 API class SchedulingNodeAffinity.

Node Affinity: the configuration of desired nodes onto which this Instance could be scheduled.

Inheritance

Object > SchedulingNodeAffinity

Namespace

Google.Cloud.Compute.V1

Assembly

Google.Cloud.Compute.V1.dll

Constructors

SchedulingNodeAffinity()

public SchedulingNodeAffinity()

SchedulingNodeAffinity(SchedulingNodeAffinity)

public SchedulingNodeAffinity(SchedulingNodeAffinity other)
Parameter
NameDescription
otherSchedulingNodeAffinity

Properties

HasKey

public bool HasKey { get; }

Gets whether the "key" field is set

Property Value
TypeDescription
Boolean

HasOperator

public bool HasOperator { get; }

Gets whether the "operator" field is set

Property Value
TypeDescription
Boolean

Key

public string Key { get; set; }

Corresponds to the label key of Node resource.

Property Value
TypeDescription
String

Operator

public string Operator { get; set; }

Defines the operation of node selection. Valid operators are IN for affinity and NOT_IN for anti-affinity. Check the Operator enum for the list of possible values.

Property Value
TypeDescription
String

Values

public RepeatedField<string> Values { get; }

Corresponds to the label values of Node resource.

Property Value
TypeDescription
RepeatedField<String>