Struct openstack_sdk::api::block_storage::v3::volume::create_30::VolumeBuilder
source · pub struct VolumeBuilder<'a> { /* private fields */ }Expand description
Builder for Volume.
Implementations§
source§impl<'a> VolumeBuilder<'a>
impl<'a> VolumeBuilder<'a>
sourcepub fn name<VALUE: Into<Option<Cow<'a, str>>>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn name<VALUE: Into<Option<Cow<'a, str>>>>( &mut self, value: VALUE ) -> &mut Self
The volume name.
sourcepub fn description<VALUE: Into<Option<Cow<'a, str>>>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn description<VALUE: Into<Option<Cow<'a, str>>>>( &mut self, value: VALUE ) -> &mut Self
The volume description.
pub fn display_name<VALUE: Into<Option<Cow<'a, str>>>>( &mut self, value: VALUE ) -> &mut Self
pub fn display_description<VALUE: Into<Option<Cow<'a, str>>>>( &mut self, value: VALUE ) -> &mut Self
sourcepub fn volume_type<VALUE: Into<Option<Cow<'a, str>>>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn volume_type<VALUE: Into<Option<Cow<'a, str>>>>( &mut self, value: VALUE ) -> &mut Self
The volume type (either name or ID). To create an environment with
multiple-storage back ends, you must specify a volume type. Block
Storage volume back ends are spawned as children to cinder- volume,
and they are keyed from a unique queue. They are named
cinder- volume.HOST.BACKEND. For example,
cinder- volume.ubuntu.lvmdriver. When a volume is created, the
scheduler chooses an appropriate back end to handle the request based
on the volume type. Default is None. For information about how to use
volume types to create multiple- storage back ends, see
Configure multiple-storage back ends.
sourcepub fn snapshot_id<VALUE: Into<Option<Cow<'a, str>>>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn snapshot_id<VALUE: Into<Option<Cow<'a, str>>>>( &mut self, value: VALUE ) -> &mut Self
The UUID of the consistency group.
sourcepub fn source_volid<VALUE: Into<Option<Cow<'a, str>>>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn source_volid<VALUE: Into<Option<Cow<'a, str>>>>( &mut self, value: VALUE ) -> &mut Self
The UUID of the consistency group.
sourcepub fn consistencygroup_id<VALUE: Into<Option<Cow<'a, str>>>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn consistencygroup_id<VALUE: Into<Option<Cow<'a, str>>>>( &mut self, value: VALUE ) -> &mut Self
The UUID of the consistency group.
sourcepub fn size<VALUE: Into<Option<i32>>>(&mut self, value: VALUE) -> &mut Self
pub fn size<VALUE: Into<Option<i32>>>(&mut self, value: VALUE) -> &mut Self
The size of the volume, in gibibytes (GiB).
sourcepub fn availability_zone<VALUE: Into<Option<Cow<'a, str>>>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn availability_zone<VALUE: Into<Option<Cow<'a, str>>>>( &mut self, value: VALUE ) -> &mut Self
The name of the availability zone.
sourcepub fn multiattach<VALUE: Into<Option<bool>>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn multiattach<VALUE: Into<Option<bool>>>( &mut self, value: VALUE ) -> &mut Self
To enable this volume to attach to more than one server, set this value
to true. Default is false. Note that support for multiattach
volumes depends on the volume type being used. See
valid boolean values
pub fn image_id<VALUE: Into<Option<Cow<'a, str>>>>( &mut self, value: VALUE ) -> &mut Self
source§impl<'a> VolumeBuilder<'a>
impl<'a> VolumeBuilder<'a>
Trait Implementations§
source§impl<'a> Clone for VolumeBuilder<'a>
impl<'a> Clone for VolumeBuilder<'a>
source§fn clone(&self) -> VolumeBuilder<'a>
fn clone(&self) -> VolumeBuilder<'a>
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more