Class: Google::Apis::VmmigrationV1::SchedulingNodeAffinity

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/vmmigration_v1/classes.rb,
lib/google/apis/vmmigration_v1/representations.rb,
lib/google/apis/vmmigration_v1/representations.rb

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SchedulingNodeAffinity

Returns a new instance of SchedulingNodeAffinity.



2351
2352
2353
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 2351

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#keyString

The label key of Node resource to reference. Corresponds to the JSON property key

Returns:

  • (String)


2339
2340
2341
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 2339

def key
  @key
end

#operatorString

The operator to use for the node resources specified in the values parameter. Corresponds to the JSON property operator

Returns:

  • (String)


2344
2345
2346
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 2344

def operator
  @operator
end

#valuesArray<String>

Corresponds to the label values of Node resource. Corresponds to the JSON property values

Returns:

  • (Array<String>)


2349
2350
2351
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 2349

def values
  @values
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2356
2357
2358
2359
2360
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 2356

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