Struct google_api_proto::google::cloud::baremetalsolution::v2::NetworkConfig
source · pub struct NetworkConfig {
pub name: String,
pub id: String,
pub type: i32,
pub bandwidth: i32,
pub vlan_attachments: Vec<IntakeVlanAttachment>,
pub cidr: String,
pub service_cidr: i32,
pub user_note: String,
pub gcp_service: String,
pub vlan_same_project: bool,
pub jumbo_frames_enabled: bool,
}
Expand description
Configuration parameters for a new network.
Fields§
§name: String
Output only. The name of the network config.
id: String
A transient unique identifier to identify a volume within an ProvisioningConfig request.
type: i32
The type of this network, either Client or Private.
bandwidth: i32
Interconnect bandwidth. Set only when type is CLIENT.
vlan_attachments: Vec<IntakeVlanAttachment>
List of VLAN attachments. As of now there are always 2 attachments, but it is going to change in the future (multi vlan).
cidr: String
CIDR range of the network.
service_cidr: i32
Service CIDR, if any.
user_note: String
User note field, it can be used by customers to add additional information for the BMS Ops team .
gcp_service: String
The GCP service of the network. Available gcp_service are in https://cloud.google.com/bare-metal/docs/bms-planning.
vlan_same_project: bool
Whether the VLAN attachment pair is located in the same project.
jumbo_frames_enabled: bool
The JumboFramesEnabled option for customer to set.
Implementations§
source§impl NetworkConfig
impl NetworkConfig
sourcepub fn type(&self) -> Type
pub fn type(&self) -> Type
Returns the enum value of type
, or the default if the field is set to an invalid enum value.
sourcepub fn bandwidth(&self) -> Bandwidth
pub fn bandwidth(&self) -> Bandwidth
Returns the enum value of bandwidth
, or the default if the field is set to an invalid enum value.
sourcepub fn set_bandwidth(&mut self, value: Bandwidth)
pub fn set_bandwidth(&mut self, value: Bandwidth)
Sets bandwidth
to the provided enum value.
sourcepub fn service_cidr(&self) -> ServiceCidr
pub fn service_cidr(&self) -> ServiceCidr
Returns the enum value of service_cidr
, or the default if the field is set to an invalid enum value.
sourcepub fn set_service_cidr(&mut self, value: ServiceCidr)
pub fn set_service_cidr(&mut self, value: ServiceCidr)
Sets service_cidr
to the provided enum value.
Trait Implementations§
source§impl Clone for NetworkConfig
impl Clone for NetworkConfig
source§fn clone(&self) -> NetworkConfig
fn clone(&self) -> NetworkConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for NetworkConfig
impl Debug for NetworkConfig
source§impl Default for NetworkConfig
impl Default for NetworkConfig
source§impl Message for NetworkConfig
impl Message for NetworkConfig
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 NetworkConfig
impl PartialEq for NetworkConfig
source§fn eq(&self, other: &NetworkConfig) -> bool
fn eq(&self, other: &NetworkConfig) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for NetworkConfig
Auto Trait Implementations§
impl Freeze for NetworkConfig
impl RefUnwindSafe for NetworkConfig
impl Send for NetworkConfig
impl Sync for NetworkConfig
impl Unpin for NetworkConfig
impl UnwindSafe for NetworkConfig
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