Struct openstack::compute::NewServer [−][src]
pub struct NewServer { /* fields omitted */ }A request to create a server.
Methods
impl NewServer[src]
impl NewServerpub fn create(self) -> Result<ServerCreationWaiter>[src]
pub fn create(self) -> Result<ServerCreationWaiter>Request creation of the server.
pub fn add_fixed_ip(&mut self, fixed_ip: Ipv4Addr)[src]
pub fn add_fixed_ip(&mut self, fixed_ip: Ipv4Addr)Add a virtual NIC with given fixed IP to the new server.
A shorthand for add_nic.
pub fn add_network<N>(&mut self, network: N) where
N: Into<NetworkRef>, [src]
pub fn add_network<N>(&mut self, network: N) where
N: Into<NetworkRef>, Add a virtual NIC from this network to the new server.
A shorthand for add_nic.
pub fn add_nic(&mut self, nic: ServerNIC)[src]
pub fn add_nic(&mut self, nic: ServerNIC)Add a virtual NIC to the new server.
pub fn add_port<P>(&mut self, port: P) where
P: Into<PortRef>, [src]
pub fn add_port<P>(&mut self, port: P) where
P: Into<PortRef>, Add a virtual NIC with this port to the new server.
A shorthand for add_nic.
pub fn set_image<I>(&mut self, image: I) where
I: Into<ImageRef>, [src]
pub fn set_image<I>(&mut self, image: I) where
I: Into<ImageRef>, Use this image as a source for the new server.
pub fn set_keypair<K>(&mut self, keypair: K) where
K: Into<KeyPairRef>, [src]
pub fn set_keypair<K>(&mut self, keypair: K) where
K: Into<KeyPairRef>, Use this key pair for the new server.
pub fn with_fixed_ip(self, fixed_ip: Ipv4Addr) -> NewServer[src]
pub fn with_fixed_ip(self, fixed_ip: Ipv4Addr) -> NewServerAdd a virtual NIC with given fixed IP to the new server.
pub fn with_image<I>(self, image: I) -> NewServer where
I: Into<ImageRef>, [src]
pub fn with_image<I>(self, image: I) -> NewServer where
I: Into<ImageRef>, Use this image as a source for the new server.
pub fn with_keypair<K>(self, keypair: K) -> NewServer where
K: Into<KeyPairRef>, [src]
pub fn with_keypair<K>(self, keypair: K) -> NewServer where
K: Into<KeyPairRef>, Use this key pair for the new server.
pub fn with_network<N>(self, network: N) -> NewServer where
N: Into<NetworkRef>, [src]
pub fn with_network<N>(self, network: N) -> NewServer where
N: Into<NetworkRef>, Add a virtual NIC from this network to the new server.
pub fn with_port<P>(self, port: P) -> NewServer where
P: Into<PortRef>, [src]
pub fn with_port<P>(self, port: P) -> NewServer where
P: Into<PortRef>, Add a virtual NIC with this port to the new server.
pub fn with_metadata<S1, S2>(self, key: S1, value: S2) -> NewServer where
S1: Into<String>,
S2: Into<String>, [src]
pub fn with_metadata<S1, S2>(self, key: S1, value: S2) -> NewServer where
S1: Into<String>,
S2: Into<String>, Add an arbitrary key/value metadata pair.