pub struct ResizeBuilder<'a> { /* private fields */ }Expand description
Builder for Resize.
Implementations§
Source§impl<'a> ResizeBuilder<'a>
impl<'a> ResizeBuilder<'a>
Sourcepub fn flavor_ref<VALUE: Into<Cow<'a, str>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn flavor_ref<VALUE: Into<Cow<'a, str>>>( &mut self, value: VALUE, ) -> &mut Self
The flavor ID for resizing the server. The size of the disk in the flavor being resized to must be greater than or equal to the size of the disk in the current flavor.
If a specified flavor ID is the same as the current one of the server,
the request returns a Bad Request (400) response code.
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.
Trait Implementations§
Source§impl<'a> Clone for ResizeBuilder<'a>
impl<'a> Clone for ResizeBuilder<'a>
Source§fn clone(&self) -> ResizeBuilder<'a>
fn clone(&self) -> ResizeBuilder<'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 ResizeBuilder<'a>
impl<'a> RefUnwindSafe for ResizeBuilder<'a>
impl<'a> Send for ResizeBuilder<'a>
impl<'a> Sync for ResizeBuilder<'a>
impl<'a> Unpin for ResizeBuilder<'a>
impl<'a> UnwindSafe for ResizeBuilder<'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§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