pub struct AllocationSpecificSKUReservation {
pub assured_count: Option<i64>,
pub count: Option<i64>,
pub in_use_count: Option<i64>,
pub instance_properties: Option<AllocationSpecificSKUAllocationReservedInstanceProperties>,
pub source_instance_template: Option<String>,
}
Expand description
This reservation type allows to pre allocate specific instance configuration.
This type is not used in any activity, and only used as part of another schema.
Fields§
§assured_count: Option<i64>
[Output Only] Indicates how many instances are actually usable currently.
count: Option<i64>
Specifies the number of resources that are allocated.
in_use_count: Option<i64>
[Output Only] Indicates how many instances are in use.
instance_properties: Option<AllocationSpecificSKUAllocationReservedInstanceProperties>
The instance properties for the reservation.
source_instance_template: Option<String>
Specifies the instance template to create the reservation. If you use this field, you must exclude the instanceProperties field. This field is optional, and it can be a full or partial URL. For example, the following are all valid URLs to an instance template: - https://www.googleapis.com/compute/v1/projects/project /global/instanceTemplates/instanceTemplate - projects/project/global/instanceTemplates/instanceTemplate - global/instanceTemplates/instanceTemplate
Trait Implementations§
Source§impl Clone for AllocationSpecificSKUReservation
impl Clone for AllocationSpecificSKUReservation
Source§fn clone(&self) -> AllocationSpecificSKUReservation
fn clone(&self) -> AllocationSpecificSKUReservation
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Default for AllocationSpecificSKUReservation
impl Default for AllocationSpecificSKUReservation
Source§fn default() -> AllocationSpecificSKUReservation
fn default() -> AllocationSpecificSKUReservation
Source§impl<'de> Deserialize<'de> for AllocationSpecificSKUReservation
impl<'de> Deserialize<'de> for AllocationSpecificSKUReservation
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>,
impl Part for AllocationSpecificSKUReservation
Auto Trait Implementations§
impl Freeze for AllocationSpecificSKUReservation
impl RefUnwindSafe for AllocationSpecificSKUReservation
impl Send for AllocationSpecificSKUReservation
impl Sync for AllocationSpecificSKUReservation
impl Unpin for AllocationSpecificSKUReservation
impl UnwindSafe for AllocationSpecificSKUReservation
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