Cloud AI Platform v1 API - Class ReservationAffinity (3.7.0)

public sealed class ReservationAffinity : IMessage<ReservationAffinity>, IEquatable<ReservationAffinity>, IDeepCloneable<ReservationAffinity>, IBufferMessage, IMessage

Reference documentation and code samples for the Cloud AI Platform v1 API class 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.

Inheritance

object > ReservationAffinity

Namespace

Google.Cloud.AIPlatform.V1

Assembly

Google.Cloud.AIPlatform.V1.dll

Constructors

ReservationAffinity()

public ReservationAffinity()

ReservationAffinity(ReservationAffinity)

public ReservationAffinity(ReservationAffinity other)
Parameter
Name Description
other ReservationAffinity

Properties

Key

public string Key { get; set; }

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.

Property Value
Type Description
string

ReservationAffinityType

public ReservationAffinity.Types.Type ReservationAffinityType { get; set; }

Required. Specifies the reservation affinity type.

Property Value
Type Description
ReservationAffinityTypesType

Values

public RepeatedField<string> Values { get; }

Optional. Corresponds to the label values of a reservation resource. This must be the full resource name of the reservation.

Property Value
Type Description
RepeatedFieldstring

ValuesAsReservationNames

public ResourceNameList<ReservationName> ValuesAsReservationNames { get; }

ReservationName-typed view over the Values resource name property.

Property Value
Type Description
ResourceNameListReservationName