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).
- locations volumes get projects (response)
- locations volumes patch projects (request)
- locations volumes rename projects (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.