Class: Google::Apis::VmmigrationV1::SchedulingNodeAffinity
- Inherits:
-
Object
- Object
- Google::Apis::VmmigrationV1::SchedulingNodeAffinity
- 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
-
#key ⇒ String
The label key of Node resource to reference.
-
#operator ⇒ String
The operator to use for the node resources specified in the
valuesparameter. -
#values ⇒ Array<String>
Corresponds to the label values of Node resource.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SchedulingNodeAffinity
constructor
A new instance of SchedulingNodeAffinity.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SchedulingNodeAffinity
Returns a new instance of SchedulingNodeAffinity.
2480 2481 2482 |
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 2480 def initialize(**args) update!(**args) end |
Instance Attribute Details
#key ⇒ String
The label key of Node resource to reference.
Corresponds to the JSON property key
2468 2469 2470 |
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 2468 def key @key end |
#operator ⇒ String
The operator to use for the node resources specified in the values parameter.
Corresponds to the JSON property operator
2473 2474 2475 |
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 2473 def operator @operator end |
#values ⇒ Array<String>
Corresponds to the label values of Node resource.
Corresponds to the JSON property values
2478 2479 2480 |
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 2478 def values @values end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2485 2486 2487 2488 2489 |
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 2485 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 |