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
values
parameter. -
#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.
1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 |
# File 'proto_docs/google/cloud/vmmigration/v1/vmmigration.rb', line 1886 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.
1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 |
# File 'proto_docs/google/cloud/vmmigration/v1/vmmigration.rb', line 1886 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.
1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 |
# File 'proto_docs/google/cloud/vmmigration/v1/vmmigration.rb', line 1886 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 |