pub struct NewPort { /* private fields */ }
Expand description
A request to create a port
Implementations§
source§impl NewPort
impl NewPort
sourcepub fn set_admin_state_up(&mut self, value: bool)
pub fn set_admin_state_up(&mut self, value: bool)
Set administrative status for the port.
sourcepub fn with_admin_state_up(self, value: bool) -> Self
pub fn with_admin_state_up(self, value: bool) -> Self
Set administrative status for the port.
sourcepub fn add_allowed_address_pair(&mut self, value: AllowedAddressPair)
pub fn add_allowed_address_pair(&mut self, value: AllowedAddressPair)
Set allowed addresses for the port.
sourcepub fn allowed_address_pairs(&mut self) -> &mut Vec<AllowedAddressPair> ⓘ
pub fn allowed_address_pairs(&mut self) -> &mut Vec<AllowedAddressPair> ⓘ
Set allowed addresses for the port.
sourcepub fn with_allowed_address_pair(self, value: AllowedAddressPair) -> Self
pub fn with_allowed_address_pair(self, value: AllowedAddressPair) -> Self
Set allowed addresses for the port.
sourcepub fn set_description<S: Into<String>>(&mut self, value: S)
pub fn set_description<S: Into<String>>(&mut self, value: S)
Set description of the port.
sourcepub fn with_description<S: Into<String>>(self, value: S) -> Self
pub fn with_description<S: Into<String>>(self, value: S) -> Self
Set description of the port.
sourcepub fn set_device_id<S: Into<String>>(&mut self, value: S)
pub fn set_device_id<S: Into<String>>(&mut self, value: S)
Set device ID of the port.
sourcepub fn with_device_id<S: Into<String>>(self, value: S) -> Self
pub fn with_device_id<S: Into<String>>(self, value: S) -> Self
Set device ID of the port.
sourcepub fn set_device_owner<S: Into<String>>(&mut self, value: S)
pub fn set_device_owner<S: Into<String>>(&mut self, value: S)
Set device owner of the port.
sourcepub fn with_device_owner<S: Into<String>>(self, value: S) -> Self
pub fn with_device_owner<S: Into<String>>(self, value: S) -> Self
Set device owner of the port.
sourcepub fn set_dns_domain<S: Into<String>>(&mut self, value: S)
pub fn set_dns_domain<S: Into<String>>(&mut self, value: S)
Set DNS domain for the port.
sourcepub fn with_dns_domain<S: Into<String>>(self, value: S) -> Self
pub fn with_dns_domain<S: Into<String>>(self, value: S) -> Self
Set DNS domain for the port.
sourcepub fn set_dns_name<S: Into<String>>(&mut self, value: S)
pub fn set_dns_name<S: Into<String>>(&mut self, value: S)
Set DNS name for the port.
sourcepub fn with_dns_name<S: Into<String>>(self, value: S) -> Self
pub fn with_dns_name<S: Into<String>>(self, value: S) -> Self
Set DNS name for the port.
sourcepub fn extra_dhcp_opts(&mut self) -> &mut Vec<PortExtraDhcpOption> ⓘ
pub fn extra_dhcp_opts(&mut self) -> &mut Vec<PortExtraDhcpOption> ⓘ
Extra DHCP options to configure on the port.
sourcepub fn set_extra_dhcp_opts(&mut self, value: Vec<PortExtraDhcpOption>)
pub fn set_extra_dhcp_opts(&mut self, value: Vec<PortExtraDhcpOption>)
Set extra DHCP options to configure on the port.
sourcepub fn with_extra_dhcp_opts(self, value: Vec<PortExtraDhcpOption>) -> Self
pub fn with_extra_dhcp_opts(self, value: Vec<PortExtraDhcpOption>) -> Self
Set extra DHCP options to configure on the port.
sourcepub fn add_fixed_ip(&mut self, request: PortIpRequest)
pub fn add_fixed_ip(&mut self, request: PortIpRequest)
Add a new fixed IP to the request.
sourcepub fn with_fixed_ip(self, request: PortIpRequest) -> Self
pub fn with_fixed_ip(self, request: PortIpRequest) -> Self
Add a new fixed IP to the request.
sourcepub fn set_mac_address(&mut self, value: MacAddress)
pub fn set_mac_address(&mut self, value: MacAddress)
Set MAC address for the port (generated otherwise).
sourcepub fn with_mac_address(self, value: MacAddress) -> Self
pub fn with_mac_address(self, value: MacAddress) -> Self
Set MAC address for the port (generated otherwise).
sourcepub fn add_security_group<S: Into<SecurityGroupRef>>(&mut self, value: S)
pub fn add_security_group<S: Into<SecurityGroupRef>>(&mut self, value: S)
Set security groups for the port.
sourcepub fn security_groups(&mut self) -> &mut Vec<SecurityGroupRef> ⓘ
pub fn security_groups(&mut self) -> &mut Vec<SecurityGroupRef> ⓘ
Set security groups for the port.
sourcepub fn with_security_group<S: Into<SecurityGroupRef>>(self, value: S) -> Self
pub fn with_security_group<S: Into<SecurityGroupRef>>(self, value: S) -> Self
Set security groups for the port.