nomad_client_rs/models/
csi_volume_list_stub.rs1use serde::{Deserialize, Serialize};
2
3#[derive(Clone, Debug, Default, PartialEq, Serialize, Deserialize)]
4pub struct CsiVolumeListStub {
5 #[serde(rename = "AccessMode", skip_serializing_if = "Option::is_none")]
6 pub access_mode: Option<String>,
7 #[serde(rename = "AttachmentMode", skip_serializing_if = "Option::is_none")]
8 pub attachment_mode: Option<String>,
9 #[serde(rename = "ControllerRequired", skip_serializing_if = "Option::is_none")]
10 pub controller_required: Option<bool>,
11 #[serde(
12 rename = "ControllersExpected",
13 skip_serializing_if = "Option::is_none"
14 )]
15 pub controllers_expected: Option<i32>,
16 #[serde(rename = "ControllersHealthy", skip_serializing_if = "Option::is_none")]
17 pub controllers_healthy: Option<i32>,
18 #[serde(rename = "CreateIndex", skip_serializing_if = "Option::is_none")]
19 pub create_index: Option<i32>,
20 #[serde(rename = "CurrentReaders", skip_serializing_if = "Option::is_none")]
21 pub current_readers: Option<i32>,
22 #[serde(rename = "CurrentWriters", skip_serializing_if = "Option::is_none")]
23 pub current_writers: Option<i32>,
24 #[serde(rename = "ExternalID", skip_serializing_if = "Option::is_none")]
25 pub external_id: Option<String>,
26 #[serde(rename = "ID", skip_serializing_if = "Option::is_none")]
27 pub id: Option<String>,
28 #[serde(rename = "ModifyIndex", skip_serializing_if = "Option::is_none")]
29 pub modify_index: Option<i32>,
30 #[serde(rename = "Name", skip_serializing_if = "Option::is_none")]
31 pub name: Option<String>,
32 #[serde(rename = "Namespace", skip_serializing_if = "Option::is_none")]
33 pub namespace: Option<String>,
34 #[serde(rename = "NodesExpected", skip_serializing_if = "Option::is_none")]
35 pub nodes_expected: Option<i32>,
36 #[serde(rename = "NodesHealthy", skip_serializing_if = "Option::is_none")]
37 pub nodes_healthy: Option<i32>,
38 #[serde(rename = "PluginID", skip_serializing_if = "Option::is_none")]
39 pub plugin_id: Option<String>,
40 #[serde(rename = "Provider", skip_serializing_if = "Option::is_none")]
41 pub provider: Option<String>,
42 #[serde(rename = "ResourceExhausted", skip_serializing_if = "Option::is_none")]
43 pub resource_exhausted: Option<String>,
44 #[serde(rename = "Schedulable", skip_serializing_if = "Option::is_none")]
45 pub schedulable: Option<bool>,
46 #[serde(rename = "Topologies", skip_serializing_if = "Option::is_none")]
47 pub topologies: Option<Vec<crate::models::CsiTopology>>,
48}