View Source GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ReservationAffinity (google_api_ai_platform v0.13.0)

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

  • key (type: String.t, default: nil) - 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.
  • reservationAffinityType (type: String.t, default: nil) - Required. Specifies the reservation affinity type.
  • values (type: list(String.t), default: nil) - Optional. Corresponds to the label values of a reservation resource. This must be the full resource name of the reservation.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() ::
  %GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ReservationAffinity{
    key: String.t() | nil,
    reservationAffinityType: String.t() | nil,
    values: [String.t()] | nil
  }

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.