pub struct NodeExpandVolumeRequest {
pub volume_id: String,
pub volume_path: String,
pub capacity_range: Option<CapacityRange>,
pub staging_target_path: String,
pub volume_capability: Option<VolumeCapability>,
}Fields§
§volume_id: StringThe ID of the volume. This field is REQUIRED.
volume_path: StringThe path on which volume is available. This field is REQUIRED.
capacity_range: Option<CapacityRange>This allows CO to specify the capacity requirements of the volume after expansion. If capacity_range is omitted then a plugin MAY inspect the file system of the volume to determine the maximum capacity to which the volume can be expanded. In such cases a plugin MAY expand the volume to its maximum capacity. This field is OPTIONAL.
staging_target_path: StringThe path where the volume is staged, if the plugin has the STAGE_UNSTAGE_VOLUME capability, otherwise empty. If not empty, it MUST be an absolute path in the root filesystem of the process serving this request. This field is OPTIONAL.
volume_capability: Option<VolumeCapability>Volume capability describing how the CO intends to use this volume. This allows SP to determine if volume is being used as a block device or mounted file system. For example - if volume is being used as a block device the SP MAY choose to skip expanding the filesystem in NodeExpandVolume implementation but still perform rest of the housekeeping needed for expanding the volume. If volume_capability is omitted the SP MAY determine access_type from given volume_path for the volume and perform node expansion. This is an OPTIONAL field.
Trait Implementations§
Source§impl Clone for NodeExpandVolumeRequest
impl Clone for NodeExpandVolumeRequest
Source§fn clone(&self) -> NodeExpandVolumeRequest
fn clone(&self) -> NodeExpandVolumeRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for NodeExpandVolumeRequest
impl Debug for NodeExpandVolumeRequest
Source§impl Default for NodeExpandVolumeRequest
impl Default for NodeExpandVolumeRequest
Source§impl Message for NodeExpandVolumeRequest
impl Message for NodeExpandVolumeRequest
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
self. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
self.Source§impl PartialEq for NodeExpandVolumeRequest
impl PartialEq for NodeExpandVolumeRequest
impl StructuralPartialEq for NodeExpandVolumeRequest
Auto Trait Implementations§
impl Freeze for NodeExpandVolumeRequest
impl RefUnwindSafe for NodeExpandVolumeRequest
impl Send for NodeExpandVolumeRequest
impl Sync for NodeExpandVolumeRequest
impl Unpin for NodeExpandVolumeRequest
impl UnwindSafe for NodeExpandVolumeRequest
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request