pub struct ReservationAffinity {
pub consume_reservation_type: Option<String>,
pub key: Option<String>,
pub values: Option<Vec<String>>,
}
Expand description
Specifies the reservations that this instance can consume from.
This type is not used in any activity, and only used as part of another schema.
Fields§
§consume_reservation_type: Option<String>
Specifies the type of reservation from which this instance can consume resources: ANY_RESERVATION (default), SPECIFIC_RESERVATION, or NO_RESERVATION. See Consuming reserved instances for examples.
key: Option<String>
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.
values: Option<Vec<String>>
Corresponds to the label values of a reservation resource. This can be either a name to a reservation in the same project or “projects/different-project/reservations/some-reservation-name” to target a shared reservation in the same zone but in a different project.
Trait Implementations§
Source§impl Clone for ReservationAffinity
impl Clone for ReservationAffinity
Source§fn clone(&self) -> ReservationAffinity
fn clone(&self) -> ReservationAffinity
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ReservationAffinity
impl Debug for ReservationAffinity
Source§impl Default for ReservationAffinity
impl Default for ReservationAffinity
Source§fn default() -> ReservationAffinity
fn default() -> ReservationAffinity
Source§impl<'de> Deserialize<'de> for ReservationAffinity
impl<'de> Deserialize<'de> for ReservationAffinity
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Serialize for ReservationAffinity
impl Serialize for ReservationAffinity
impl Part for ReservationAffinity
Auto Trait Implementations§
impl Freeze for ReservationAffinity
impl RefUnwindSafe for ReservationAffinity
impl Send for ReservationAffinity
impl Sync for ReservationAffinity
impl Unpin for ReservationAffinity
impl UnwindSafe for ReservationAffinity
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more