Struct google_api_proto::google::cloud::vmwareengine::v1::NodeType
source · pub struct NodeType {
pub name: String,
pub node_type_id: String,
pub display_name: String,
pub virtual_cpu_count: i32,
pub total_core_count: i32,
pub memory_gb: i32,
pub disk_size_gb: i32,
pub available_custom_core_counts: Vec<i32>,
pub kind: i32,
pub families: Vec<String>,
pub capabilities: Vec<i32>,
}
Expand description
Describes node type.
Fields§
§name: String
Output only. The resource name of this node type.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
projects/my-proj/locations/us-central1-a/nodeTypes/standard-72
node_type_id: String
Output only. The canonical identifier of the node type
(corresponds to the NodeType
). For example: standard-72.
display_name: String
Output only. The friendly name for this node type. For example: ve1-standard-72
virtual_cpu_count: i32
Output only. The total number of virtual CPUs in a single node.
total_core_count: i32
Output only. The total number of CPU cores in a single node.
memory_gb: i32
Output only. The amount of physical memory available, defined in GB.
disk_size_gb: i32
Output only. The amount of storage available, defined in GB.
available_custom_core_counts: Vec<i32>
Output only. List of possible values of custom core count.
kind: i32
Output only. The type of the resource.
families: Vec<String>
Output only. Families of the node type.
For node types to be in the same cluster
they must share at least one element in the families
.
capabilities: Vec<i32>
Output only. Capabilities of this node type.
Implementations§
source§impl NodeType
impl NodeType
sourcepub fn kind(&self) -> Kind
pub fn kind(&self) -> Kind
Returns the enum value of kind
, or the default if the field is set to an invalid enum value.
sourcepub fn capabilities(
&self
) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<Capability>>
pub fn capabilities( &self ) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<Capability>>
Returns an iterator which yields the valid enum values contained in capabilities
.
sourcepub fn push_capabilities(&mut self, value: Capability)
pub fn push_capabilities(&mut self, value: Capability)
Appends the provided enum value to capabilities
.
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