Struct google_api_proto::google::cloud::baremetalsolution::v2::InstanceConfig
source · pub struct InstanceConfig {Show 13 fields
pub name: String,
pub id: String,
pub instance_type: String,
pub hyperthreading: bool,
pub os_image: String,
pub client_network: Option<NetworkAddress>,
pub private_network: Option<NetworkAddress>,
pub user_note: String,
pub account_networks_enabled: bool,
pub network_config: i32,
pub network_template: String,
pub logical_interfaces: Vec<LogicalInterface>,
pub ssh_key_names: Vec<String>,
}
Expand description
Configuration parameters for a new instance.
Fields§
§name: String
Output only. The name of the instance config.
id: String
A transient unique identifier to idenfity an instance within an ProvisioningConfig request.
instance_type: String
Instance type. Available types
hyperthreading: bool
Whether the instance should be provisioned with Hyperthreading enabled.
os_image: String
OS image to initialize the instance. Available images
client_network: Option<NetworkAddress>
Client network address. Filled if InstanceConfig.multivlan_config is false.
private_network: Option<NetworkAddress>
Private network address, if any. Filled if InstanceConfig.multivlan_config is false.
user_note: String
User note field, it can be used by customers to add additional information for the BMS Ops team .
account_networks_enabled: bool
If true networks can be from different projects of the same vendor account.
network_config: i32
The type of network configuration on the instance.
network_template: String
Server network template name. Filled if InstanceConfig.multivlan_config is true.
logical_interfaces: Vec<LogicalInterface>
List of logical interfaces for the instance. The number of logical interfaces will be the same as number of hardware bond/nic on the chosen network template. Filled if InstanceConfig.multivlan_config is true.
ssh_key_names: Vec<String>
List of names of ssh keys used to provision the instance.
Implementations§
source§impl InstanceConfig
impl InstanceConfig
sourcepub fn network_config(&self) -> NetworkConfig
pub fn network_config(&self) -> NetworkConfig
Returns the enum value of network_config
, or the default if the field is set to an invalid enum value.
sourcepub fn set_network_config(&mut self, value: NetworkConfig)
pub fn set_network_config(&mut self, value: NetworkConfig)
Sets network_config
to the provided enum value.
Trait Implementations§
source§impl Clone for InstanceConfig
impl Clone for InstanceConfig
source§fn clone(&self) -> InstanceConfig
fn clone(&self) -> InstanceConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for InstanceConfig
impl Debug for InstanceConfig
source§impl Default for InstanceConfig
impl Default for InstanceConfig
source§impl Message for InstanceConfig
impl Message for InstanceConfig
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 InstanceConfig
impl PartialEq for InstanceConfig
source§fn eq(&self, other: &InstanceConfig) -> bool
fn eq(&self, other: &InstanceConfig) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for InstanceConfig
Auto Trait Implementations§
impl Freeze for InstanceConfig
impl RefUnwindSafe for InstanceConfig
impl Send for InstanceConfig
impl Sync for InstanceConfig
impl Unpin for InstanceConfig
impl UnwindSafe for InstanceConfig
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