Google Kubernetes Engine v1 API - Class ReservationAffinity (3.29.0)

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

Reference documentation and code samples for the Google Kubernetes Engine v1 API class ReservationAffinity.

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
Name Description
other ReservationAffinity

Properties

ConsumeReservationType

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

Corresponds to the type of reservation consumption.

Property Value
Type Description
ReservationAffinityTypesType

Key

public string Key { get; set; }

Corresponds to the label key of a reservation resource. To target a SPECIFIC_RESERVATION by name, specify "compute.googleapis.com/reservation-name" as the key and specify the name of your reservation as its value.

Property Value
Type Description
string

Values

public RepeatedField<string> Values { get; }

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

Property Value
Type Description
RepeatedFieldstring