def __init__(__self__, *, consume_reservation_type: Optional[pulumi.Input['ReservationAffinityConsumeReservationType']]=None, key: Optional[pulumi.Input[str]]=None, values: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]=None):
    '\n        Specifies the reservations that this instance can consume from.\n        :param pulumi.Input[\'ReservationAffinityConsumeReservationType\'] consume_reservation_type: Specifies the type of reservation from which this instance can consume resources: ANY_RESERVATION (default), SPECIFIC_RESERVATION, or NO_RESERVATION. See Consuming reserved instances for examples.\n        :param pulumi.Input[str] key: Corresponds to the label key of a reservation resource. To target a SPECIFIC_RESERVATION by name, specify googleapis.com/reservation-name as the key and specify the name of your reservation as its value.\n        :param pulumi.Input[Sequence[pulumi.Input[str]]] values: 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.\n        '
    if (consume_reservation_type is not None):
        pulumi.set(__self__, 'consume_reservation_type', consume_reservation_type)
    if (key is not None):
        pulumi.set(__self__, 'key', key)
    if (values is not None):
        pulumi.set(__self__, 'values', values)
Specifies the reservations that this instance can consume from.
:param pulumi.Input['ReservationAffinityConsumeReservationType'] consume_reservation_type: Specifies the type of reservation from which this instance can consume resources: ANY_RESERVATION (default), SPECIFIC_RESERVATION, or NO_RESERVATION. See Consuming reserved instances for examples.
:param pulumi.Input[str] key: Corresponds to the label key of a reservation resource. To target a SPECIFIC_RESERVATION by name, specify googleapis.com/reservation-name as the key and specify the name of your reservation as its value.
:param pulumi.Input[Sequence[pulumi.Input[str]]] values: 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.
def __init__(__self__, *, consume_reservation_type: Optional[pulumi.Input['ReservationAffinityConsumeReservationType']]=None, key: Optional[pulumi.Input[str]]=None, values: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]=None):
    '\n        Specifies the reservations that this instance can consume from.\n        :param pulumi.Input[\'ReservationAffinityConsumeReservationType\'] consume_reservation_type: Specifies the type of reservation from which this instance can consume resources: ANY_RESERVATION (default), SPECIFIC_RESERVATION, or NO_RESERVATION. See Consuming reserved instances for examples.\n        :param pulumi.Input[str] key: Corresponds to the label key of a reservation resource. To target a SPECIFIC_RESERVATION by name, specify googleapis.com/reservation-name as the key and specify the name of your reservation as its value.\n        :param pulumi.Input[Sequence[pulumi.Input[str]]] values: 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.\n        '
    if (consume_reservation_type is not None):
        pulumi.set(__self__, 'consume_reservation_type', consume_reservation_type)
    if (key is not None):
        pulumi.set(__self__, 'key', key)
    if (values is not None):
        pulumi.set(__self__, 'values', values)