nomad_client_rs/models/
csi_plugin.rs

1use serde::{Deserialize, Serialize};
2
3#[derive(Clone, Debug, Default, PartialEq, Serialize, Deserialize)]
4pub struct CsiPlugin {
5    #[serde(rename = "Allocations", skip_serializing_if = "Option::is_none")]
6    pub allocations: Option<Vec<crate::models::AllocationListStub>>,
7    #[serde(rename = "ControllerRequired", skip_serializing_if = "Option::is_none")]
8    pub controller_required: Option<bool>,
9    #[serde(rename = "Controllers", skip_serializing_if = "Option::is_none")]
10    pub controllers: Option<::std::collections::HashMap<String, crate::models::CsiInfo>>,
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 = "ID", skip_serializing_if = "Option::is_none")]
21    pub id: Option<String>,
22    #[serde(rename = "ModifyIndex", skip_serializing_if = "Option::is_none")]
23    pub modify_index: Option<i32>,
24    #[serde(rename = "Nodes", skip_serializing_if = "Option::is_none")]
25    pub nodes: Option<::std::collections::HashMap<String, crate::models::CsiInfo>>,
26    #[serde(rename = "NodesExpected", skip_serializing_if = "Option::is_none")]
27    pub nodes_expected: Option<i32>,
28    #[serde(rename = "NodesHealthy", skip_serializing_if = "Option::is_none")]
29    pub nodes_healthy: Option<i32>,
30    #[serde(rename = "Provider", skip_serializing_if = "Option::is_none")]
31    pub provider: Option<String>,
32    #[serde(rename = "Version", skip_serializing_if = "Option::is_none")]
33    pub version: Option<String>,
34}