Struct google_api_proto::google::cloud::compute::v1::MachineType
source · pub struct MachineType {Show 16 fields
pub accelerators: Vec<Accelerators>,
pub creation_timestamp: Option<String>,
pub deprecated: Option<DeprecationStatus>,
pub description: Option<String>,
pub guest_cpus: Option<i32>,
pub id: Option<u64>,
pub image_space_gb: Option<i32>,
pub is_shared_cpu: Option<bool>,
pub kind: Option<String>,
pub maximum_persistent_disks: Option<i32>,
pub maximum_persistent_disks_size_gb: Option<i64>,
pub memory_mb: Option<i32>,
pub name: Option<String>,
pub scratch_disks: Vec<ScratchDisks>,
pub self_link: Option<String>,
pub zone: Option<String>,
}
Expand description
Represents a Machine Type resource. You can use specific machine types for your VM instances based on performance and pricing requirements. For more information, read Machine Types.
Fields§
§accelerators: Vec<Accelerators>
[Output Only] A list of accelerator configurations assigned to this machine type.
creation_timestamp: Option<String>
[Output Only] Creation timestamp in RFC3339 text format.
deprecated: Option<DeprecationStatus>
[Output Only] The deprecation status associated with this machine type. Only applicable if the machine type is unavailable.
description: Option<String>
[Output Only] An optional textual description of the resource.
guest_cpus: Option<i32>
[Output Only] The number of virtual CPUs that are available to the instance.
id: Option<u64>
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
image_space_gb: Option<i32>
[Deprecated] This property is deprecated and will never be populated with any relevant values.
[Output Only] Whether this machine type has a shared CPU. See Shared-core machine types for more information.
kind: Option<String>
[Output Only] The type of the resource. Always compute#machineType for machine types.
maximum_persistent_disks: Option<i32>
[Output Only] Maximum persistent disks allowed.
maximum_persistent_disks_size_gb: Option<i64>
[Output Only] Maximum total persistent disks size (GB) allowed.
memory_mb: Option<i32>
[Output Only] The amount of physical memory available to the instance, defined in MB.
name: Option<String>
[Output Only] Name of the resource.
scratch_disks: Vec<ScratchDisks>
[Output Only] A list of extended scratch disks assigned to the instance.
self_link: Option<String>
[Output Only] Server-defined URL for the resource.
zone: Option<String>
[Output Only] The name of the zone where the machine type resides, such as us-central1-a.
Implementations§
source§impl MachineType
impl MachineType
sourcepub fn creation_timestamp(&self) -> &str
pub fn creation_timestamp(&self) -> &str
Returns the value of creation_timestamp
, or the default value if creation_timestamp
is unset.
sourcepub fn image_space_gb(&self) -> i32
pub fn image_space_gb(&self) -> i32
Returns the value of image_space_gb
, or the default value if image_space_gb
is unset.
sourcepub fn memory_mb(&self) -> i32
pub fn memory_mb(&self) -> i32
Returns the value of memory_mb
, or the default value if memory_mb
is unset.
sourcepub fn maximum_persistent_disks_size_gb(&self) -> i64
pub fn maximum_persistent_disks_size_gb(&self) -> i64
Returns the value of maximum_persistent_disks_size_gb
, or the default value if maximum_persistent_disks_size_gb
is unset.
sourcepub fn guest_cpus(&self) -> i32
pub fn guest_cpus(&self) -> i32
Returns the value of guest_cpus
, or the default value if guest_cpus
is unset.
sourcepub fn description(&self) -> &str
pub fn description(&self) -> &str
Returns the value of description
, or the default value if description
is unset.
sourcepub fn self_link(&self) -> &str
pub fn self_link(&self) -> &str
Returns the value of self_link
, or the default value if self_link
is unset.
sourcepub fn maximum_persistent_disks(&self) -> i32
pub fn maximum_persistent_disks(&self) -> i32
Returns the value of maximum_persistent_disks
, or the default value if maximum_persistent_disks
is unset.
Returns the value of is_shared_cpu
, or the default value if is_shared_cpu
is unset.
Trait Implementations§
source§impl Clone for MachineType
impl Clone for MachineType
source§fn clone(&self) -> MachineType
fn clone(&self) -> MachineType
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for MachineType
impl Debug for MachineType
source§impl Default for MachineType
impl Default for MachineType
source§impl Message for MachineType
impl Message for MachineType
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
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<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
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<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
self
. Read moresource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
self
.source§impl PartialEq for MachineType
impl PartialEq for MachineType
source§fn eq(&self, other: &MachineType) -> bool
fn eq(&self, other: &MachineType) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for MachineType
Auto Trait Implementations§
impl Freeze for MachineType
impl RefUnwindSafe for MachineType
impl Send for MachineType
impl Sync for MachineType
impl Unpin for MachineType
impl UnwindSafe for MachineType
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