ReservationAffinity class

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

Constructors

ReservationAffinity({Input<ReservationAffinityConsumeReservationType>? consumeReservationType, Input<String>? key, Input<List<String>>? values})
Creates a new ReservationAffinity. consumeReservationType Corresponds to the type of reservation consumption. key 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. values Corresponds to the label value(s) of reservation resource(s).
const
ReservationAffinity.fromMap(Map<String, dynamic> map)
factory

Properties

consumeReservationType → Input<ReservationAffinityConsumeReservationType>?
Corresponds to the type of reservation consumption.
final
hashCode → int
The hash code for this object.
no setterinherited
key → Input<String>?
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.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
values → Input<List<String>>?
Corresponds to the label value(s) of reservation resource(s).
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited