key = $key; } /** * @return string */ public function getKey() { return $this->key; } /** * Defines the operation of node selection. Valid operators areIN for affinity * and NOT_IN for anti-affinity. * * Accepted values: IN, NOT_IN, OPERATOR_UNSPECIFIED * * @param self::OPERATOR_* $operator */ public function setOperator($operator) { $this->operator = $operator; } /** * @return self::OPERATOR_* */ public function getOperator() { return $this->operator; } /** * Corresponds to the label values of Node resource. * * @param string[] $values */ public function setValues($values) { $this->values = $values; } /** * @return string[] */ public function getValues() { return $this->values; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(SchedulingNodeAffinity::class, 'Google_Service_Compute_SchedulingNodeAffinity');