[−][src]Struct openstack::compute::NewServer
A request to create a server.
Implementations
impl NewServer
[src]
pub fn create(self) -> Result<ServerCreationWaiter>
[src]
Request creation of the server.
pub fn add_fixed_ip(&mut self, fixed_ip: Ipv4Addr)
[src]
Add a virtual NIC with given fixed IP to the new server.
pub fn add_network<N>(&mut self, network: N) where
N: Into<NetworkRef>,
[src]
N: Into<NetworkRef>,
Add a virtual NIC from this network to the new server.
pub fn add_port<P>(&mut self, port: P) where
P: Into<PortRef>,
[src]
P: Into<PortRef>,
Add a virtual NIC with this port to the new server.
pub fn metadata(&mut self) -> &mut HashMap<String, String>
[src]
Metadata assigned to this server.
pub fn nics(&mut self) -> &mut Vec<ServerNIC>
[src]
NICs to attach to this server.
pub fn block_devices(&mut self) -> &mut Vec<BlockDevice>
[src]
Block devices attached to the server.
pub fn set_image<I>(&mut self, image: I) where
I: Into<ImageRef>,
[src]
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]
K: Into<KeyPairRef>,
Use this key pair for the new server.
pub fn set_availability_zone<A>(&mut self, availability_zone: A) where
A: Into<String>,
[src]
A: Into<String>,
Use this availability_zone for the new server.
pub fn with_block_device(self, block_device: BlockDevice) -> Self
[src]
Add a block device to attach to the server.
pub fn with_boot_volume<V>(self, volume: V) -> Self where
V: Into<VolumeRef>,
[src]
V: Into<VolumeRef>,
Add a volume to boot from.
pub fn with_fixed_ip(self, fixed_ip: Ipv4Addr) -> NewServer
[src]
Add 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]
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]
K: Into<KeyPairRef>,
Use this key pair for the new server.
pub fn with_availability_zone<K>(self, availability_zone: K) -> NewServer where
K: Into<String>,
[src]
K: Into<String>,
Use this availability zone for the new server.
pub fn with_metadata<S1, S2>(self, key: S1, value: S2) -> NewServer where
S1: Into<String>,
S2: Into<String>,
[src]
S1: Into<String>,
S2: Into<String>,
Add an arbitrary key/value metadata pair.
pub fn with_network<N>(self, network: N) -> NewServer where
N: Into<NetworkRef>,
[src]
N: Into<NetworkRef>,
Add a virtual NIC from this network to the new server.
pub fn with_new_boot_volume<I>(self, image: I, size_gib: u32) -> Self where
I: Into<ImageRef>,
[src]
I: Into<ImageRef>,
Create a volume to boot from from an image.
pub fn with_port<P>(self, port: P) -> NewServer where
P: Into<PortRef>,
[src]
P: Into<PortRef>,
Add a virtual NIC with this port to the new server.
pub fn set_user_data<S: Into<String>>(&mut self, value: S)
[src]
Use this user-data for the new server.
pub fn with_user_data<S: Into<String>>(self, value: S) -> Self
[src]
Use this user-data for the new server.
pub fn set_config_drive(&mut self, value: bool)
[src]
Enable/disable config-drive for the new server.
pub fn with_config_drive(self, value: bool) -> Self
[src]
Enable/disable config-drive for the new server.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for NewServer
impl !Send for NewServer
impl !Sync for NewServer
impl Unpin for NewServer
impl !UnwindSafe for NewServer
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,