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.
Implements
IMessageReservationAffinity, IEquatableReservationAffinity, IDeepCloneableReservationAffinity, IBufferMessage, IMessageNamespace
GoogleGoogle.CloudGoogle.Cloud.ContainerV1Assembly
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 |