Add support for reservationAffinity to Instance and InstanceTemplate

This commit is contained in:
Edward Samuel Pasaribu 2021-09-01 23:00:22 +08:00
commit 314bebe2e8
4 changed files with 211 additions and 0 deletions

View file

@ -468,6 +468,33 @@ resources:
should be specified.
returned: success
type: dict
reservationAffinity:
description:
- Specifies the reservations that this instance can consume from.
returned: success
type: complex
contains:
consumeReservationType:
description:
- 'Specifies the type of reservation from which this instance can consume
resources: ANY_RESERVATION (default), SPECIFIC_RESERVATION, or NO_RESERVATION.'
returned: success
type: str
key:
description:
- 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.
returned: success
type: str
values:
description:
- 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.
returned: success
type: list
scheduling:
description:
- Sets the scheduling options for this instance.