pub struct NodeType {
pub cpu_platform: Option<String>,
pub creation_timestamp: Option<String>,
pub deprecated: Option<DeprecationStatus>,
pub description: Option<String>,
pub guest_cpus: Option<i32>,
pub id: Option<u64>,
pub kind: Option<String>,
pub local_ssd_gb: Option<i32>,
pub memory_mb: Option<i32>,
pub name: Option<String>,
pub self_link: Option<String>,
pub zone: Option<String>,
}
Expand description
Represent a sole-tenant Node Type resource. Each node within a node group must have a node type. A node type specifies the total amount of cores and memory for that node. Currently, the only available node type is n1-node-96-624 node type that has 96 vCPUs and 624 GB of memory, available in multiple zones. For more information read Node types.
Fields§
§cpu_platform: Option<String>
[Output Only] The CPU platform used by this node type.
creation_timestamp: Option<String>
[Output Only] Creation timestamp in RFC3339 text format.
deprecated: Option<DeprecationStatus>
[Output Only] The deprecation status associated with this node type.
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 node type.
id: Option<u64>
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
kind: Option<String>
[Output Only] The type of the resource. Always compute#nodeType for node types.
local_ssd_gb: Option<i32>
[Output Only] Local SSD available to the node type, defined in GB.
memory_mb: Option<i32>
[Output Only] The amount of physical memory available to the node type, defined in MB.
name: Option<String>
[Output Only] Name of the resource.
self_link: Option<String>
[Output Only] Server-defined URL for the resource.
zone: Option<String>
[Output Only] The name of the zone where the node type resides, such as us-central1-a.
Implementations§
source§impl NodeType
impl NodeType
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 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 local_ssd_gb(&self) -> i32
pub fn local_ssd_gb(&self) -> i32
Returns the value of local_ssd_gb
, or the default value if local_ssd_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 cpu_platform(&self) -> &str
pub fn cpu_platform(&self) -> &str
Returns the value of cpu_platform
, or the default value if cpu_platform
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.
Trait Implementations§
source§impl Message for NodeType
impl Message for NodeType
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 NodeType
impl PartialEq for NodeType
impl StructuralPartialEq for NodeType
Auto Trait Implementations§
impl Freeze for NodeType
impl RefUnwindSafe for NodeType
impl Send for NodeType
impl Sync for NodeType
impl Unpin for NodeType
impl UnwindSafe for NodeType
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