class Google::Apis::ComputeV1::SchedulingNodeAffinity

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

Attributes

key[RW]

Corresponds to the label key of Node resource. Corresponds to the JSON property `key` @return [String]

operator[RW]

Defines the operation of node selection. Valid operators are IN for affinity and NOT_IN for anti-affinity. Corresponds to the JSON property `operator` @return [String]

values[RW]

Corresponds to the label values of Node resource. Corresponds to the JSON property `values` @return [Array<String>]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/compute_v1/classes.rb, line 28921
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/compute_v1/classes.rb, line 28926
def update!(**args)
  @key = args[:key] if args.key?(:key)
  @operator = args[:operator] if args.key?(:operator)
  @values = args[:values] if args.key?(:values)
end