Struct openstack_sdk::api::compute::v2::server::set_20::ServerBuilder
source · pub struct ServerBuilder<'a> { /* private fields */ }Expand description
Builder for Server.
Implementations§
source§impl<'a> ServerBuilder<'a>
impl<'a> ServerBuilder<'a>
sourcepub fn os_dcf_disk_config(&mut self, value: OsDcfDiskConfig) -> &mut Self
pub fn os_dcf_disk_config(&mut self, value: OsDcfDiskConfig) -> &mut Self
Controls how the API partitions the disk when you create, rebuild, or
resize servers. A server inherits the OS-DCF:diskConfig value from
the image from which it was created, and an image inherits the
OS-DCF:diskConfig value from the server from which it was created. To
override the inherited setting, you can include this attribute in the
request body of a server create, rebuild, or resize request. If the
OS-DCF:diskConfig value for an image is MANUAL, you cannot create a
server from that image and set its OS-DCF:diskConfig value to AUTO.
A valid value is:
AUTO. The API builds the server with a single partition the size of the target flavor disk. The API automatically adjusts the file system to fit the entire partition.MANUAL. The API builds the server by using whatever partition scheme and file system is in the source image. If the target flavor disk is larger, the API does not partition the remaining disk space.
sourcepub fn access_ipv4<VALUE: Into<Cow<'a, str>>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn access_ipv4<VALUE: Into<Cow<'a, str>>>( &mut self, value: VALUE ) -> &mut Self
IPv4 address that should be used to access this server.
Trait Implementations§
source§impl<'a> Clone for ServerBuilder<'a>
impl<'a> Clone for ServerBuilder<'a>
source§fn clone(&self) -> ServerBuilder<'a>
fn clone(&self) -> ServerBuilder<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'a> RefUnwindSafe for ServerBuilder<'a>
impl<'a> Send for ServerBuilder<'a>
impl<'a> Sync for ServerBuilder<'a>
impl<'a> Unpin for ServerBuilder<'a>
impl<'a> UnwindSafe for ServerBuilder<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more