pub struct Network { /* private fields */ }
Expand description
Structure representing a single network.
Implementations§
source§impl Network
impl Network
sourcepub fn admin_state_up(&self) -> bool
pub fn admin_state_up(&self) -> bool
The administrative state of the network.
sourcepub fn set_admin_state_up(&mut self, value: bool)
pub fn set_admin_state_up(&mut self, value: bool)
Set the administrative state of the network.
sourcepub fn with_admin_state_up(self, value: bool) -> Self
pub fn with_admin_state_up(self, value: bool) -> Self
Set the administrative state of the network.
sourcepub fn availability_zones(&self) -> &Vec<String> ⓘ
pub fn availability_zones(&self) -> &Vec<String> ⓘ
The availability zones for the network (if available).
sourcepub fn created_at(&self) -> Option<DateTime<FixedOffset>>
pub fn created_at(&self) -> Option<DateTime<FixedOffset>>
Creation data and time (if available).
sourcepub fn description(&self) -> &Option<String>
pub fn description(&self) -> &Option<String>
Network description.
sourcepub fn set_description<S: Into<String>>(&mut self, value: S)
pub fn set_description<S: Into<String>>(&mut self, value: S)
Update the description.
sourcepub fn with_description<S: Into<String>>(self, value: S) -> Self
pub fn with_description<S: Into<String>>(self, value: S) -> Self
Update the description.
sourcepub fn dns_domain(&self) -> &Option<String>
pub fn dns_domain(&self) -> &Option<String>
DNS domain for the network (if available).
sourcepub fn set_dns_domain<S: Into<String>>(&mut self, value: S)
pub fn set_dns_domain<S: Into<String>>(&mut self, value: S)
Update the DNS domain.
sourcepub fn with_dns_domain<S: Into<String>>(self, value: S) -> Self
pub fn with_dns_domain<S: Into<String>>(self, value: S) -> Self
Update the DNS domain.
sourcepub fn set_external(&mut self, value: bool)
pub fn set_external(&mut self, value: bool)
Configure whether the network is external.
sourcepub fn with_external(self, value: bool) -> Self
pub fn with_external(self, value: bool) -> Self
Configure whether the network is external.
sourcepub fn is_default(&self) -> Option<bool>
pub fn is_default(&self) -> Option<bool>
Whether the network is the default pool (if available).
sourcepub fn set_default(&mut self, value: bool)
pub fn set_default(&mut self, value: bool)
Configure whether the network is the default pool.
sourcepub fn with_default(self, value: bool) -> Self
pub fn with_default(self, value: bool) -> Self
Configure whether the network is the default pool.
sourcepub fn l2_adjacency(&self) -> Option<bool>
pub fn l2_adjacency(&self) -> Option<bool>
Whether there is L2 connectivity throughout the Network.
sourcepub fn port_security_enabled(&self) -> Option<bool>
pub fn port_security_enabled(&self) -> Option<bool>
Whether port security is enabled by default.
sourcepub fn set_port_security_enabled(&mut self, value: bool)
pub fn set_port_security_enabled(&mut self, value: bool)
Configure whether port security is enabled by default.
sourcepub fn with_port_security_enabled(self, value: bool) -> Self
pub fn with_port_security_enabled(self, value: bool) -> Self
Configure whether port security is enabled by default.
Whether the network is shared.
Configure whether the network is shared.
Configure whether the network is shared.
sourcepub fn status(&self) -> NetworkStatus
pub fn status(&self) -> NetworkStatus
Status of the network.
sourcepub fn updated_at(&self) -> Option<DateTime<FixedOffset>>
pub fn updated_at(&self) -> Option<DateTime<FixedOffset>>
Last update data and time (if available).
sourcepub fn vlan_transparent(&self) -> Option<bool>
pub fn vlan_transparent(&self) -> Option<bool>
VLAN transparency mode of the network.
sourcepub async fn delete(self) -> Result<DeletionWaiter<Network>>
pub async fn delete(self) -> Result<DeletionWaiter<Network>>
Delete the network.