Class ReservationAffinity (1.62.0)

ReservationAffinity(mapping=None, *, ignore_unknown_fields=False, **kwargs)

A ReservationAffinity can be used to configure a Vertex AI resource (e.g., a DeployedModel) to draw its Compute Engine resources from a Shared Reservation, or exclusively from on-demand capacity.

Attributes

Name Description
reservation_affinity_type google.cloud.aiplatform_v1.types.ReservationAffinity.Type
Required. Specifies the reservation affinity type.
key str
Optional. Corresponds to the label key of a reservation resource. To target a SPECIFIC_RESERVATION by name, use compute.googleapis.com/reservation-name as the key and specify the name of your reservation as its value.
values MutableSequence[str]
Optional. Corresponds to the label values of a reservation resource. This must be the full resource name of the reservation.

Classes

Type

Type(value)

Identifies a type of reservation affinity.

Methods

ReservationAffinity

ReservationAffinity(mapping=None, *, ignore_unknown_fields=False, **kwargs)

A ReservationAffinity can be used to configure a Vertex AI resource (e.g., a DeployedModel) to draw its Compute Engine resources from a Shared Reservation, or exclusively from on-demand capacity.