public sealed class SchedulingNodeAffinity : IMessage<SchedulingNodeAffinity>, IEquatable<SchedulingNodeAffinity>, IDeepCloneable<SchedulingNodeAffinity>, IBufferMessage, IMessage
Node Affinity: the configuration of desired nodes onto which this Instance could be scheduled.
Implements
IMessage<SchedulingNodeAffinity>, IEquatable<SchedulingNodeAffinity>, IDeepCloneable<SchedulingNodeAffinity>, IBufferMessage, IMessageNamespace
Google.Cloud.Compute.V1Assembly
Google.Cloud.Compute.V1.dll
Constructors
SchedulingNodeAffinity()
public SchedulingNodeAffinity()
SchedulingNodeAffinity(SchedulingNodeAffinity)
public SchedulingNodeAffinity(SchedulingNodeAffinity other)
Parameter | |
---|---|
Name | Description |
other | SchedulingNodeAffinity |
Properties
HasKey
public bool HasKey { get; }
Gets whether the "key" field is set
Property Value | |
---|---|
Type | Description |
Boolean |
HasOperator
public bool HasOperator { get; }
Gets whether the "operator" field is set
Property Value | |
---|---|
Type | Description |
Boolean |
Key
public string Key { get; set; }
Corresponds to the label key of Node resource.
Property Value | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
String |
Values
public RepeatedField<string> Values { get; }
Corresponds to the label values of Node resource.
Property Value | |
---|---|
Type | Description |
RepeatedField<String> |