#[non_exhaustive]pub struct NetworkConfig {
pub name: String,
pub id: String,
pub type: Type,
pub bandwidth: Bandwidth,
pub vlan_attachments: Vec<IntakeVlanAttachment>,
pub cidr: String,
pub service_cidr: ServiceCidr,
pub user_note: String,
pub gcp_service: String,
pub vlan_same_project: bool,
pub jumbo_frames_enabled: bool,
/* private fields */
}Expand description
Configuration parameters for a new network.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringOutput only. The name of the network config.
id: StringA transient unique identifier to identify a volume within an ProvisioningConfig request.
type: TypeThe type of this network, either Client or Private.
bandwidth: BandwidthInterconnect 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: StringCIDR range of the network.
service_cidr: ServiceCidrService CIDR, if any.
user_note: StringUser note field, it can be used by customers to add additional information for the BMS Ops team .
gcp_service: StringThe GCP service of the network. Available gcp_service are in https://cloud.google.com/bare-metal/docs/bms-planning.
vlan_same_project: boolWhether the VLAN attachment pair is located in the same project.
jumbo_frames_enabled: boolThe JumboFramesEnabled option for customer to set.
Implementations§
Source§impl NetworkConfig
impl NetworkConfig
pub fn new() -> Self
Sourcepub fn set_bandwidth<T: Into<Bandwidth>>(self, v: T) -> Self
pub fn set_bandwidth<T: Into<Bandwidth>>(self, v: T) -> Self
Sets the value of bandwidth.
Sourcepub fn set_vlan_attachments<T, V>(self, v: T) -> Self
pub fn set_vlan_attachments<T, V>(self, v: T) -> Self
Sets the value of vlan_attachments.
Sourcepub fn set_service_cidr<T: Into<ServiceCidr>>(self, v: T) -> Self
pub fn set_service_cidr<T: Into<ServiceCidr>>(self, v: T) -> Self
Sets the value of service_cidr.
Sourcepub fn set_user_note<T: Into<String>>(self, v: T) -> Self
pub fn set_user_note<T: Into<String>>(self, v: T) -> Self
Sets the value of user_note.
Sourcepub fn set_gcp_service<T: Into<String>>(self, v: T) -> Self
pub fn set_gcp_service<T: Into<String>>(self, v: T) -> Self
Sets the value of gcp_service.
Sourcepub fn set_vlan_same_project<T: Into<bool>>(self, v: T) -> Self
pub fn set_vlan_same_project<T: Into<bool>>(self, v: T) -> Self
Sets the value of vlan_same_project.
Sourcepub fn set_jumbo_frames_enabled<T: Into<bool>>(self, v: T) -> Self
pub fn set_jumbo_frames_enabled<T: Into<bool>>(self, v: T) -> Self
Sets the value of jumbo_frames_enabled.
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 more