class Google::Apis::VmmigrationV1::SchedulingNodeAffinity

Node Affinity: the configuration of desired nodes onto which this Instance could be scheduled. Based on cloud.google.com/compute/docs/reference/ rest/v1/instances/setScheduling

Attributes

key[RW]

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

operator[RW]

The operator to use for the node resources specified in the ‘values` parameter. 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/vmmigration_v1/classes.rb, line 1722
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/vmmigration_v1/classes.rb, line 1727
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