Struct google_api_proto::google::cloud::compute::v1::AllocationSpecificSkuAllocationReservedInstanceProperties
source · pub struct AllocationSpecificSkuAllocationReservedInstanceProperties {
pub guest_accelerators: Vec<AcceleratorConfig>,
pub local_ssds: Vec<AllocationSpecificSkuAllocationAllocatedInstancePropertiesReservedDisk>,
pub location_hint: Option<String>,
pub machine_type: Option<String>,
pub min_cpu_platform: Option<String>,
}
Expand description
Properties of the SKU instances being reserved. Next ID: 9
Fields§
§guest_accelerators: Vec<AcceleratorConfig>
Specifies accelerator type and count.
local_ssds: Vec<AllocationSpecificSkuAllocationAllocatedInstancePropertiesReservedDisk>
Specifies amount of local ssd to reserve with each instance. The type of disk is local-ssd.
location_hint: Option<String>
An opaque location hint used to place the allocation close to other resources. This field is for use by internal tools that use the public API.
machine_type: Option<String>
Specifies type of machine (name only) which has fixed number of vCPUs and fixed amount of memory. This also includes specifying custom machine type following custom-NUMBER_OF_CPUS-AMOUNT_OF_MEMORY pattern.
min_cpu_platform: Option<String>
Minimum cpu platform the reservation.
Implementations§
source§impl AllocationSpecificSkuAllocationReservedInstanceProperties
impl AllocationSpecificSkuAllocationReservedInstanceProperties
sourcepub fn machine_type(&self) -> &str
pub fn machine_type(&self) -> &str
Returns the value of machine_type
, or the default value if machine_type
is unset.
sourcepub fn min_cpu_platform(&self) -> &str
pub fn min_cpu_platform(&self) -> &str
Returns the value of min_cpu_platform
, or the default value if min_cpu_platform
is unset.
sourcepub fn location_hint(&self) -> &str
pub fn location_hint(&self) -> &str
Returns the value of location_hint
, or the default value if location_hint
is unset.
Trait Implementations§
source§impl Clone for AllocationSpecificSkuAllocationReservedInstanceProperties
impl Clone for AllocationSpecificSkuAllocationReservedInstanceProperties
source§fn clone(&self) -> AllocationSpecificSkuAllocationReservedInstanceProperties
fn clone(&self) -> AllocationSpecificSkuAllocationReservedInstanceProperties
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Message for AllocationSpecificSkuAllocationReservedInstanceProperties
impl Message for AllocationSpecificSkuAllocationReservedInstanceProperties
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 AllocationSpecificSkuAllocationReservedInstanceProperties
impl PartialEq for AllocationSpecificSkuAllocationReservedInstanceProperties
source§fn eq(
&self,
other: &AllocationSpecificSkuAllocationReservedInstanceProperties,
) -> bool
fn eq( &self, other: &AllocationSpecificSkuAllocationReservedInstanceProperties, ) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AllocationSpecificSkuAllocationReservedInstanceProperties
Auto Trait Implementations§
impl Freeze for AllocationSpecificSkuAllocationReservedInstanceProperties
impl RefUnwindSafe for AllocationSpecificSkuAllocationReservedInstanceProperties
impl Send for AllocationSpecificSkuAllocationReservedInstanceProperties
impl Sync for AllocationSpecificSkuAllocationReservedInstanceProperties
impl Unpin for AllocationSpecificSkuAllocationReservedInstanceProperties
impl UnwindSafe for AllocationSpecificSkuAllocationReservedInstanceProperties
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