pub struct VolumeAttachmentBuilder<'a> { /* private fields */ }Expand description
Builder for VolumeAttachment.
Implementations§
Source§impl<'a> VolumeAttachmentBuilder<'a>
impl<'a> VolumeAttachmentBuilder<'a>
Sourcepub fn delete_on_termination(&mut self, value: bool) -> &mut Self
pub fn delete_on_termination(&mut self, value: bool) -> &mut Self
To delete the attached volume when the server is destroyed, specify
true. Otherwise, specify false. Default: false
New in version 2.79
Sourcepub fn device<VALUE: Into<Option<Cow<'a, str>>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn device<VALUE: Into<Option<Cow<'a, str>>>>( &mut self, value: VALUE, ) -> &mut Self
Name of the device such as, /dev/vdb. Omit or set this parameter to
null for auto-assignment, if supported. If you specify this parameter,
the device must not exist in the guest operating system. Note that as
of the 12.0.0 Liberty release, the Nova libvirt driver no longer honors
a user-supplied device name. This is the same behavior as if the device
name parameter is not supplied on the request.
Sourcepub fn tag<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
pub fn tag<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
A device role tag that can be applied to a volume when attaching it to the VM. The guest OS of a server that has devices tagged in this manner can access hardware metadata about the tagged devices from the metadata API and on the config drive, if enabled.
Note
Tagged volume attachment is not supported for shelved-offloaded instances.
New in version 2.49
Sourcepub fn volume_id<VALUE: Into<Cow<'a, str>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn volume_id<VALUE: Into<Cow<'a, str>>>( &mut self, value: VALUE, ) -> &mut Self
The UUID of the volume to attach.
Sourcepub fn build(
&self,
) -> Result<VolumeAttachment<'a>, VolumeAttachmentBuilderError>
pub fn build( &self, ) -> Result<VolumeAttachment<'a>, VolumeAttachmentBuilderError>
Trait Implementations§
Source§impl<'a> Clone for VolumeAttachmentBuilder<'a>
impl<'a> Clone for VolumeAttachmentBuilder<'a>
Source§fn clone(&self) -> VolumeAttachmentBuilder<'a>
fn clone(&self) -> VolumeAttachmentBuilder<'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 VolumeAttachmentBuilder<'a>
impl<'a> RefUnwindSafe for VolumeAttachmentBuilder<'a>
impl<'a> Send for VolumeAttachmentBuilder<'a>
impl<'a> Sync for VolumeAttachmentBuilder<'a>
impl<'a> Unpin for VolumeAttachmentBuilder<'a>
impl<'a> UnwindSafe for VolumeAttachmentBuilder<'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