Struct openstack_sdk::api::compute::v2::server::rebuild_20::RebuildBuilder
source · pub struct RebuildBuilder<'a> { /* private fields */ }Expand description
Builder for Rebuild.
Implementations§
source§impl<'a> RebuildBuilder<'a>
impl<'a> RebuildBuilder<'a>
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.
sourcepub fn access_ipv6<VALUE: Into<Cow<'a, str>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn access_ipv6<VALUE: Into<Cow<'a, str>>>( &mut self, value: VALUE, ) -> &mut Self
IPv6 address that should be used to access this server.
sourcepub fn admin_pass<VALUE: Into<Cow<'a, str>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn admin_pass<VALUE: Into<Cow<'a, str>>>( &mut self, value: VALUE, ) -> &mut Self
The administrative password of the server. If you omit this parameter, the operation generates a new password.
sourcepub fn image_ref<VALUE: Into<Cow<'a, str>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn image_ref<VALUE: Into<Cow<'a, str>>>( &mut self, value: VALUE, ) -> &mut Self
The UUID of the image to rebuild for your server instance. It must be a
valid UUID otherwise API will return 400. To rebuild a volume-backed
server with a new image, at least microversion 2.93 needs to be
provided in the request else the request will fall back to old
behaviour i.e. the API will return 400 (for an image different from the
image used when creating the volume). For non-volume-backed servers,
specifying a new image will result in validating that the image is
acceptable for the current compute host on which the server exists. If
the new image is not valid, the server will go into ERROR status.
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 personality<VALUE: Into<Vec<Personality<'a>>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn personality<VALUE: Into<Vec<Personality<'a>>>>( &mut self, value: VALUE, ) -> &mut Self
The file path and contents, text only, to inject into the server at launch. The maximum size of the file path data is 255 bytes. The maximum limit is the number of allowed bytes in the decoded, rather than encoded, data.
Available until version 2.56
sourcepub fn preserve_ephemeral(&mut self, value: bool) -> &mut Self
pub fn preserve_ephemeral(&mut self, value: bool) -> &mut Self
Indicates whether the server is rebuilt with the preservation of the
ephemeral partition (true).
Note
This only works with baremetal servers provided by Ironic. Passing it to any other server instance results in a fault and will prevent the rebuild from happening.
Trait Implementations§
source§impl<'a> Clone for RebuildBuilder<'a>
impl<'a> Clone for RebuildBuilder<'a>
source§fn clone(&self) -> RebuildBuilder<'a>
fn clone(&self) -> RebuildBuilder<'a>
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl<'a> Freeze for RebuildBuilder<'a>
impl<'a> RefUnwindSafe for RebuildBuilder<'a>
impl<'a> Send for RebuildBuilder<'a>
impl<'a> Sync for RebuildBuilder<'a>
impl<'a> Unpin for RebuildBuilder<'a>
impl<'a> UnwindSafe for RebuildBuilder<'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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more