Class: Google::Cloud::VMMigration::V1::SchedulingNodeAffinity
- Inherits:
-
Object
- Object
- Google::Cloud::VMMigration::V1::SchedulingNodeAffinity
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/vmmigration/v1/vmmigration.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
Defined Under Namespace
Modules: Operator
Instance Attribute Summary collapse
-
#key ⇒ ::String
The label key of Node resource to reference.
-
#operator ⇒ ::Google::Cloud::VMMigration::V1::SchedulingNodeAffinity::Operator
The operator to use for the node resources specified in the
valuesparameter. -
#values ⇒ ::Array<::String>
Corresponds to the label values of Node resource.
Instance Attribute Details
#key ⇒ ::String
Returns The label key of Node resource to reference.
2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 |
# File 'proto_docs/google/cloud/vmmigration/v1/vmmigration.rb', line 2453 class SchedulingNodeAffinity include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Possible types of node selection operators. Valid operators are IN for # affinity and NOT_IN for anti-affinity. module Operator # An unknown, unexpected behavior. OPERATOR_UNSPECIFIED = 0 # The node resource group should be in these resources affinity. IN = 1 # The node resource group should not be in these resources affinity. NOT_IN = 2 end end |
#operator ⇒ ::Google::Cloud::VMMigration::V1::SchedulingNodeAffinity::Operator
Returns The operator to use for the node resources specified in the values
parameter.
2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 |
# File 'proto_docs/google/cloud/vmmigration/v1/vmmigration.rb', line 2453 class SchedulingNodeAffinity include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Possible types of node selection operators. Valid operators are IN for # affinity and NOT_IN for anti-affinity. module Operator # An unknown, unexpected behavior. OPERATOR_UNSPECIFIED = 0 # The node resource group should be in these resources affinity. IN = 1 # The node resource group should not be in these resources affinity. NOT_IN = 2 end end |
#values ⇒ ::Array<::String>
Returns Corresponds to the label values of Node resource.
2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 |
# File 'proto_docs/google/cloud/vmmigration/v1/vmmigration.rb', line 2453 class SchedulingNodeAffinity include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Possible types of node selection operators. Valid operators are IN for # affinity and NOT_IN for anti-affinity. module Operator # An unknown, unexpected behavior. OPERATOR_UNSPECIFIED = 0 # The node resource group should be in these resources affinity. IN = 1 # The node resource group should not be in these resources affinity. NOT_IN = 2 end end |