Struct google_api_proto::google::cloud::baremetalsolution::v2::Volume
source · pub struct Volume {Show 24 fields
pub name: String,
pub id: String,
pub storage_type: i32,
pub state: i32,
pub requested_size_gib: i64,
pub originally_requested_size_gib: i64,
pub current_size_gib: i64,
pub emergency_size_gib: i64,
pub max_size_gib: i64,
pub auto_grown_size_gib: i64,
pub remaining_space_gib: i64,
pub snapshot_reservation_detail: Option<SnapshotReservationDetail>,
pub snapshot_auto_delete_behavior: i32,
pub labels: BTreeMap<String, String>,
pub snapshot_enabled: bool,
pub pod: String,
pub protocol: i32,
pub boot_volume: bool,
pub performance_tier: i32,
pub notes: String,
pub workload_profile: i32,
pub expire_time: Option<Timestamp>,
pub instances: Vec<String>,
pub attached: bool,
}
Expand description
A storage volume.
Fields§
§name: String
Output only. The resource name of this Volume
.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
Format:
projects/{project}/locations/{location}/volumes/{volume}
id: String
An identifier for the Volume
, generated by the backend.
storage_type: i32
The storage type for this volume.
state: i32
The state of this storage volume.
requested_size_gib: i64
The requested size of this storage volume, in GiB.
originally_requested_size_gib: i64
Originally requested size, in GiB.
current_size_gib: i64
The current size of this storage volume, in GiB, including space reserved for snapshots. This size might be different than the requested size if the storage volume has been configured with auto grow or auto shrink.
emergency_size_gib: i64
Additional emergency size that was requested for this Volume, in GiB. current_size_gib includes this value.
max_size_gib: i64
Maximum size volume can be expanded to in case of evergency, in GiB.
auto_grown_size_gib: i64
The size, in GiB, that this storage volume has expanded as a result of an auto grow policy. In the absence of auto-grow, the value is 0.
remaining_space_gib: i64
The space remaining in the storage volume for new LUNs, in GiB, excluding space reserved for snapshots.
snapshot_reservation_detail: Option<SnapshotReservationDetail>
Details about snapshot space reservation and usage on the storage volume.
snapshot_auto_delete_behavior: i32
The behavior to use when snapshot reserved space is full.
labels: BTreeMap<String, String>
Labels as key value pairs.
snapshot_enabled: bool
Whether snapshots are enabled.
pod: String
Immutable. Pod name.
protocol: i32
Output only. Storage protocol for the Volume.
boot_volume: bool
Output only. Whether this volume is a boot volume. A boot volume is one which contains a boot LUN.
performance_tier: i32
Immutable. Performance tier of the Volume. Default is SHARED.
notes: String
Input only. User-specified notes for new Volume. Used to provision Volumes that require manual intervention.
workload_profile: i32
The workload profile for the volume.
expire_time: Option<Timestamp>
Output only. Time after which volume will be fully deleted. It is filled only for volumes in COOLOFF state.
instances: Vec<String>
Output only. Instances this Volume is attached to. This field is set only in Get requests.
attached: bool
Output only. Is the Volume attached at at least one instance.
This field is a lightweight counterpart of instances
field.
It is filled in List responses as well.
Implementations§
source§impl Volume
impl Volume
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.
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 snapshot_auto_delete_behavior(&self) -> SnapshotAutoDeleteBehavior
pub fn snapshot_auto_delete_behavior(&self) -> SnapshotAutoDeleteBehavior
Returns the enum value of snapshot_auto_delete_behavior
, or the default if the field is set to an invalid enum value.
sourcepub fn set_snapshot_auto_delete_behavior(
&mut self,
value: SnapshotAutoDeleteBehavior,
)
pub fn set_snapshot_auto_delete_behavior( &mut self, value: SnapshotAutoDeleteBehavior, )
Sets snapshot_auto_delete_behavior
to the provided 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.
sourcepub fn workload_profile(&self) -> WorkloadProfile
pub fn workload_profile(&self) -> WorkloadProfile
Returns the enum value of workload_profile
, or the default if the field is set to an invalid enum value.
sourcepub fn set_workload_profile(&mut self, value: WorkloadProfile)
pub fn set_workload_profile(&mut self, value: WorkloadProfile)
Sets workload_profile
to the provided enum value.
Trait Implementations§
source§impl Message for Volume
impl Message for Volume
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 Volume
impl PartialEq for Volume
impl StructuralPartialEq for Volume
Auto Trait Implementations§
impl Freeze for Volume
impl RefUnwindSafe for Volume
impl Send for Volume
impl Sync for Volume
impl Unpin for Volume
impl UnwindSafe for Volume
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