Struct google_api_proto::google::cloud::compute::v1::AllocationSpecificSkuReservation
source · 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.
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
Implementations§
source§impl AllocationSpecificSkuReservation
impl AllocationSpecificSkuReservation
sourcepub fn assured_count(&self) -> i64
pub fn assured_count(&self) -> i64
Returns the value of assured_count
, or the default value if assured_count
is unset.
sourcepub fn source_instance_template(&self) -> &str
pub fn source_instance_template(&self) -> &str
Returns the value of source_instance_template
, or the default value if source_instance_template
is unset.
sourcepub fn in_use_count(&self) -> i64
pub fn in_use_count(&self) -> i64
Returns the value of in_use_count
, or the default value if in_use_count
is unset.
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 Message for AllocationSpecificSkuReservation
impl Message for AllocationSpecificSkuReservation
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for AllocationSpecificSkuReservation
impl PartialEq for AllocationSpecificSkuReservation
source§fn eq(&self, other: &AllocationSpecificSkuReservation) -> bool
fn eq(&self, other: &AllocationSpecificSkuReservation) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq 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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request