Class ReservationAffinity (2.4.0)

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

ReservationAffinity is the configuration of desired reservation which instances could take capacity from.

Inheritance

Object > ReservationAffinity

Namespace

Google.Cloud.Container.V1

Assembly

Google.Cloud.Container.V1.dll

Constructors

ReservationAffinity()

public ReservationAffinity()

ReservationAffinity(ReservationAffinity)

public ReservationAffinity(ReservationAffinity other)
Parameter
NameDescription
otherReservationAffinity

Properties

ConsumeReservationType

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

Corresponds to the type of reservation consumption.

Property Value
TypeDescription
ReservationAffinity.Types.Type

Key

public string Key { get; set; }

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.

Property Value
TypeDescription
String

Values

public RepeatedField<string> Values { get; }

Corresponds to the label value(s) of reservation resource(s).

Property Value
TypeDescription
RepeatedField<String>