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.
Implements
IMessageSchedulingNodeAffinity, IEquatableSchedulingNodeAffinity, IDeepCloneableSchedulingNodeAffinity, 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 |
bool |
HasOperator
public bool HasOperator { get; }
Gets whether the "operator" field is set
Property Value | |
---|---|
Type | Description |
bool |
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 |
RepeatedFieldstring |