consumeReservationType = $consumeReservationType; } /** * @return self::CONSUME_RESERVATION_TYPE_* */ public function getConsumeReservationType() { return $this->consumeReservationType; } /** * Corresponds to the label key of a reservation resource. To target * aSPECIFIC_RESERVATION by name, specifygoogleapis.com/reservation-name as * the key and specify the name of your reservation as its value. * * @param string $key */ public function setKey($key) { $this->key = $key; } /** * @return string */ public function getKey() { return $this->key; } /** * Corresponds to the label values of a reservation resource. This can be * either a name to a reservation in the same project or "projects/different- * project/reservations/some-reservation-name" to target a shared reservation * in the same zone but in a different project. * * @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(ReservationAffinity::class, 'Google_Service_Compute_ReservationAffinity');