# Migrate for Compute Engine V1 API - Class Google::Cloud::VMMigration::V1::SchedulingNodeAffinity (v2.9.0)

2.9.0 (latest) 2.8.0 2.7.0 2.6.0 2.5.1 2.4.0 2.3.0 2.2.0 2.1.1 2.0.0 1.3.0 1.2.0 1.1.0 1.0.2 0.9.0 0.8.2 0.7.0 0.6.1 0.5.0 0.4.0 0.3.0 0.2.0 0.1.1 Reference documentation and code samples for the Migrate for Compute Engine V1 API class Google::Cloud::VMMigration::V1::SchedulingNodeAffinity.

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>

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #key

    def key() -> ::String

**Returns**

- (::String) --- The label key of Node resource to reference.

### #key=

    def key=(value) -> ::String

**Parameter**

- **value** (::String) --- The label key of Node resource to reference.
**Returns**

- (::String) --- The label key of Node resource to reference.

### #operator

    def operator() -> ::Google::Cloud::VMMigration::V1::SchedulingNodeAffinity::Operator

**Returns**

- ([::Google::Cloud::VMMigration::V1::SchedulingNodeAffinity::Operator](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vm_migration-v1/latest/Google-Cloud-VMMigration-V1-SchedulingNodeAffinity-Operator)) --- The operator to use for the node resources specified in the `values` parameter.

### #operator=

    def operator=(value) -> ::Google::Cloud::VMMigration::V1::SchedulingNodeAffinity::Operator

**Parameter**

- **value** ([::Google::Cloud::VMMigration::V1::SchedulingNodeAffinity::Operator](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vm_migration-v1/latest/Google-Cloud-VMMigration-V1-SchedulingNodeAffinity-Operator)) --- The operator to use for the node resources specified in the `values` parameter.
**Returns**

- ([::Google::Cloud::VMMigration::V1::SchedulingNodeAffinity::Operator](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vm_migration-v1/latest/Google-Cloud-VMMigration-V1-SchedulingNodeAffinity-Operator)) --- The operator to use for the node resources specified in the `values` parameter.

### #values

    def values() -> ::Array<::String>

**Returns**

- (::Array\<::String\>) --- Corresponds to the label values of Node resource.

### #values=

    def values=(value) -> ::Array<::String>

**Parameter**

- **value** (::Array\<::String\>) --- Corresponds to the label values of Node resource.
**Returns**

- (::Array\<::String\>) --- Corresponds to the label values of Node resource.