Volume

Struct Volume 

Source
pub struct Volume {
Show 24 fields pub attached: Option<bool>, pub auto_grown_size_gib: Option<i64>, pub boot_volume: Option<bool>, pub current_size_gib: Option<i64>, pub emergency_size_gib: Option<i64>, pub expire_time: Option<DateTime<Utc>>, pub id: Option<String>, pub instances: Option<Vec<String>>, pub labels: Option<HashMap<String, String>>, pub max_size_gib: Option<i64>, pub name: Option<String>, pub notes: Option<String>, pub originally_requested_size_gib: Option<i64>, pub performance_tier: Option<String>, pub pod: Option<String>, pub protocol: Option<String>, pub remaining_space_gib: Option<i64>, pub requested_size_gib: Option<i64>, pub snapshot_auto_delete_behavior: Option<String>, pub snapshot_enabled: Option<bool>, pub snapshot_reservation_detail: Option<SnapshotReservationDetail>, pub state: Option<String>, pub storage_type: Option<String>, pub workload_profile: Option<String>,
}
Expand description

A storage volume.

§Activities

This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).

Fields§

§attached: Option<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.

§auto_grown_size_gib: Option<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.

§boot_volume: Option<bool>

Output only. Whether this volume is a boot volume. A boot volume is one which contains a boot LUN.

§current_size_gib: Option<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: Option<i64>

Additional emergency size that was requested for this Volume, in GiB. current_size_gib includes this value.

§expire_time: Option<DateTime<Utc>>

Output only. Time after which volume will be fully deleted. It is filled only for volumes in COOLOFF state.

§id: Option<String>

An identifier for the Volume, generated by the backend.

§instances: Option<Vec<String>>

Output only. Instances this Volume is attached to. This field is set only in Get requests.

§labels: Option<HashMap<String, String>>

Labels as key value pairs.

§max_size_gib: Option<i64>

Maximum size volume can be expanded to in case of evergency, in GiB.

§name: Option<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}

§notes: Option<String>

Input only. User-specified notes for new Volume. Used to provision Volumes that require manual intervention.

§originally_requested_size_gib: Option<i64>

Originally requested size, in GiB.

§performance_tier: Option<String>

Immutable. Performance tier of the Volume. Default is SHARED.

§pod: Option<String>

Immutable. Pod name. Pod is an independent part of infrastructure. Volume can only be connected to the instances allocated in the same pod.

§protocol: Option<String>

Output only. Storage protocol for the Volume.

§remaining_space_gib: Option<i64>

The space remaining in the storage volume for new LUNs, in GiB, excluding space reserved for snapshots.

§requested_size_gib: Option<i64>

The requested size of this storage volume, in GiB.

§snapshot_auto_delete_behavior: Option<String>

The behavior to use when snapshot reserved space is full.

§snapshot_enabled: Option<bool>

Whether snapshots are enabled.

§snapshot_reservation_detail: Option<SnapshotReservationDetail>

Details about snapshot space reservation and usage on the storage volume.

§state: Option<String>

The state of this storage volume.

§storage_type: Option<String>

The storage type for this volume.

§workload_profile: Option<String>

The workload profile for the volume.

Trait Implementations§

Source§

impl Clone for Volume

Source§

fn clone(&self) -> Volume

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Volume

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Volume

Source§

fn default() -> Volume

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for Volume

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for Volume

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl RequestValue for Volume

Source§

impl ResponseResult 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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,