podman_rest_client/v5/models/
cluster_volume_spec.rs

1use serde::{Deserialize, Serialize};
2#[derive(Default, Debug, Serialize, Deserialize)]
3/// ClusterVolumeSpec contains the spec used to create this volume.
4pub struct ClusterVolumeSpec {
5    #[serde(rename = "AccessMode")]
6    pub access_mode: Option<crate::v5::models::AccessMode>,
7    #[serde(rename = "AccessibilityRequirements")]
8    pub accessibility_requirements: Option<crate::v5::models::TopologyRequirement>,
9    #[serde(rename = "Availability")]
10    pub availability: Option<String>,
11    #[serde(rename = "CapacityRange")]
12    pub capacity_range: Option<crate::v5::models::CapacityRange>,
13    /// Group defines the volume group of this volume. Volumes belonging to the
14    /// same group can be referred to by group name when creating Services.
15    /// Referring to a volume by group instructs swarm to treat volumes in that
16    /// group interchangeably for the purpose of scheduling. Volumes with an
17    /// empty string for a group technically all belong to the same, emptystring
18    /// group.
19    #[serde(rename = "Group")]
20    pub group: Option<String>,
21    /// Secrets defines Swarm Secrets that are passed to the CSI storage plugin
22    /// when operating on this volume.
23    #[serde(rename = "Secrets")]
24    pub secrets: Option<Vec<crate::v5::models::Secret>>,
25}