Struct google_api_proto::google::cloud::baremetalsolution::v2::Lun
source · pub struct Lun {
pub name: String,
pub id: String,
pub state: i32,
pub size_gb: i64,
pub multiprotocol_type: i32,
pub storage_volume: String,
pub shareable: bool,
pub boot_lun: bool,
pub storage_type: i32,
pub wwid: String,
pub expire_time: Option<Timestamp>,
pub instances: Vec<String>,
}
Expand description
A storage volume logical unit number (LUN).
Fields§
§name: String
Output only. The name of the LUN.
id: String
An identifier for the LUN, generated by the backend.
state: i32
The state of this storage volume.
size_gb: i64
The size of this LUN, in gigabytes.
multiprotocol_type: i32
The LUN multiprotocol type ensures the characteristics of the LUN are optimized for each operating system.
storage_volume: String
Display the storage volume for this LUN.
Display if this LUN can be shared between multiple physical servers.
boot_lun: bool
Display if this LUN is a boot LUN.
storage_type: i32
The storage type for this LUN.
wwid: String
The WWID for this LUN.
expire_time: Option<Timestamp>
Output only. Time after which LUN will be fully deleted. It is filled only for LUNs in COOL_OFF state.
instances: Vec<String>
Output only. Instances this Lun is attached to.
Implementations§
source§impl Lun
impl Lun
sourcepub fn state(&self) -> State
pub fn state(&self) -> State
Returns the enum value of state
, or the default if the field is set to an invalid enum value.
sourcepub fn multiprotocol_type(&self) -> MultiprotocolType
pub fn multiprotocol_type(&self) -> MultiprotocolType
Returns the enum value of multiprotocol_type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_multiprotocol_type(&mut self, value: MultiprotocolType)
pub fn set_multiprotocol_type(&mut self, value: MultiprotocolType)
Sets multiprotocol_type
to the provided enum value.
sourcepub fn storage_type(&self) -> StorageType
pub fn storage_type(&self) -> StorageType
Returns the enum value of storage_type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_storage_type(&mut self, value: StorageType)
pub fn set_storage_type(&mut self, value: StorageType)
Sets storage_type
to the provided enum value.
Trait Implementations§
source§impl Message for Lun
impl Message for Lun
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
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(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
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(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.impl StructuralPartialEq for Lun
Auto Trait Implementations§
impl Freeze for Lun
impl RefUnwindSafe for Lun
impl Send for Lun
impl Sync for Lun
impl Unpin for Lun
impl UnwindSafe for Lun
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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