Struct google_api_proto::google::cloud::baremetalsolution::v2::VolumeConfig
source · pub struct VolumeConfig {
pub name: String,
pub id: String,
pub snapshots_enabled: bool,
pub type: i32,
pub protocol: i32,
pub size_gb: i32,
pub lun_ranges: Vec<LunRange>,
pub machine_ids: Vec<String>,
pub nfs_exports: Vec<NfsExport>,
pub user_note: String,
pub gcp_service: String,
pub performance_tier: i32,
}
Expand description
Configuration parameters for a new volume.
Fields§
§name: String
Output only. The name of the volume config.
id: String
A transient unique identifier to identify a volume within an ProvisioningConfig request.
snapshots_enabled: bool
Whether snapshots should be enabled.
type: i32
The type of this Volume.
protocol: i32
Volume protocol.
size_gb: i32
The requested size of this volume, in GB.
lun_ranges: Vec<LunRange>
LUN ranges to be configured. Set only when protocol is PROTOCOL_FC.
machine_ids: Vec<String>
Machine ids connected to this volume. Set only when protocol is PROTOCOL_FC.
nfs_exports: Vec<NfsExport>
NFS exports. Set only when protocol is PROTOCOL_NFS.
user_note: String
User note field, it can be used by customers to add additional information for the BMS Ops team .
gcp_service: String
The GCP service of the storage volume. Available gcp_service are in https://cloud.google.com/bare-metal/docs/bms-planning.
performance_tier: i32
Performance tier of the Volume. Default is SHARED.
Implementations§
source§impl VolumeConfig
impl VolumeConfig
sourcepub fn type(&self) -> Type
pub fn type(&self) -> Type
Returns the enum value of type
, or the default if the field is set to an invalid enum value.
sourcepub fn protocol(&self) -> Protocol
pub fn protocol(&self) -> Protocol
Returns the enum value of protocol
, or the default if the field is set to an invalid enum value.
sourcepub fn set_protocol(&mut self, value: Protocol)
pub fn set_protocol(&mut self, value: Protocol)
Sets protocol
to the provided enum value.
sourcepub fn performance_tier(&self) -> VolumePerformanceTier
pub fn performance_tier(&self) -> VolumePerformanceTier
Returns the enum value of performance_tier
, or the default if the field is set to an invalid enum value.
sourcepub fn set_performance_tier(&mut self, value: VolumePerformanceTier)
pub fn set_performance_tier(&mut self, value: VolumePerformanceTier)
Sets performance_tier
to the provided enum value.
Trait Implementations§
source§impl Clone for VolumeConfig
impl Clone for VolumeConfig
source§fn clone(&self) -> VolumeConfig
fn clone(&self) -> VolumeConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for VolumeConfig
impl Debug for VolumeConfig
source§impl Default for VolumeConfig
impl Default for VolumeConfig
source§impl Message for VolumeConfig
impl Message for VolumeConfig
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
.source§impl PartialEq for VolumeConfig
impl PartialEq for VolumeConfig
source§fn eq(&self, other: &VolumeConfig) -> bool
fn eq(&self, other: &VolumeConfig) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for VolumeConfig
Auto Trait Implementations§
impl Freeze for VolumeConfig
impl RefUnwindSafe for VolumeConfig
impl Send for VolumeConfig
impl Sync for VolumeConfig
impl Unpin for VolumeConfig
impl UnwindSafe for VolumeConfig
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