Vertex AI V1 API - Class Google::Cloud::AIPlatform::V1::ReservationAffinity (v0.50.0)

Reference documentation and code samples for the Vertex AI V1 API class Google::Cloud::AIPlatform::V1::ReservationAffinity.

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.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#key

def key() -> ::String
Returns
  • (::String) — 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.

#key=

def key=(value) -> ::String
Parameter
  • value (::String) — 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.
Returns
  • (::String) — 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.

#reservation_affinity_type

def reservation_affinity_type() -> ::Google::Cloud::AIPlatform::V1::ReservationAffinity::Type
Returns

#reservation_affinity_type=

def reservation_affinity_type=(value) -> ::Google::Cloud::AIPlatform::V1::ReservationAffinity::Type
Parameter
Returns

#values

def values() -> ::Array<::String>
Returns
  • (::Array<::String>) — Optional. Corresponds to the label values of a reservation resource. This must be the full resource name of the reservation.

#values=

def values=(value) -> ::Array<::String>
Parameter
  • value (::Array<::String>) — Optional. Corresponds to the label values of a reservation resource. This must be the full resource name of the reservation.
Returns
  • (::Array<::String>) — Optional. Corresponds to the label values of a reservation resource. This must be the full resource name of the reservation.