nomad_client_rs/models/
node.rs1use serde::{Deserialize, Serialize};
2
3#[derive(Clone, Debug, Default, PartialEq, Serialize, Deserialize)]
4pub struct Node {
5 #[serde(rename = "Attributes", skip_serializing_if = "Option::is_none")]
6 pub attributes: Option<::std::collections::HashMap<String, String>>,
7 #[serde(
8 rename = "CSIControllerPlugins",
9 skip_serializing_if = "Option::is_none"
10 )]
11 pub csi_controller_plugins: Option<::std::collections::HashMap<String, crate::models::CsiInfo>>,
12 #[serde(rename = "CSINodePlugins", skip_serializing_if = "Option::is_none")]
13 pub csi_node_plugins: Option<::std::collections::HashMap<String, crate::models::CsiInfo>>,
14 #[serde(rename = "CgroupParent", skip_serializing_if = "Option::is_none")]
15 pub cgroup_parent: Option<String>,
16 #[serde(rename = "CreateIndex", skip_serializing_if = "Option::is_none")]
17 pub create_index: Option<i32>,
18 #[serde(rename = "Datacenter", skip_serializing_if = "Option::is_none")]
19 pub datacenter: Option<String>,
20 #[serde(rename = "Drain", skip_serializing_if = "Option::is_none")]
21 pub drain: Option<bool>,
22 #[serde(rename = "DrainStrategy", skip_serializing_if = "Option::is_none")]
23 pub drain_strategy: Option<crate::models::DrainStrategy>,
24 #[serde(rename = "Drivers", skip_serializing_if = "Option::is_none")]
25 pub drivers: Option<::std::collections::HashMap<String, crate::models::DriverInfo>>,
26 #[serde(rename = "Events", skip_serializing_if = "Option::is_none")]
27 pub events: Option<Vec<crate::models::NodeEvent>>,
28 #[serde(rename = "HTTPAddr", skip_serializing_if = "Option::is_none")]
29 pub http_addr: Option<String>,
30 #[serde(rename = "HostNetworks", skip_serializing_if = "Option::is_none")]
31 pub host_networks: Option<::std::collections::HashMap<String, crate::models::HostNetworkInfo>>,
32 #[serde(rename = "HostVolumes", skip_serializing_if = "Option::is_none")]
33 pub host_volumes: Option<::std::collections::HashMap<String, crate::models::HostVolumeInfo>>,
34 #[serde(rename = "ID", skip_serializing_if = "Option::is_none")]
35 pub id: Option<String>,
36 #[serde(rename = "LastDrain", skip_serializing_if = "Option::is_none")]
37 pub last_drain: Option<crate::models::DrainMetadata>,
38 #[serde(rename = "Links", skip_serializing_if = "Option::is_none")]
39 pub links: Option<::std::collections::HashMap<String, String>>,
40 #[serde(rename = "Meta", skip_serializing_if = "Option::is_none")]
41 pub meta: Option<::std::collections::HashMap<String, String>>,
42 #[serde(rename = "ModifyIndex", skip_serializing_if = "Option::is_none")]
43 pub modify_index: Option<i32>,
44 #[serde(rename = "Name", skip_serializing_if = "Option::is_none")]
45 pub name: Option<String>,
46 #[serde(rename = "NodeClass", skip_serializing_if = "Option::is_none")]
47 pub node_class: Option<String>,
48 #[serde(rename = "NodeResources", skip_serializing_if = "Option::is_none")]
49 pub node_resources: Option<crate::models::NodeResources>,
50 #[serde(rename = "Reserved", skip_serializing_if = "Option::is_none")]
51 pub reserved: Option<crate::models::Resources>,
52 #[serde(rename = "ReservedResources", skip_serializing_if = "Option::is_none")]
53 pub reserved_resources: Option<crate::models::NodeReservedResources>,
54 #[serde(rename = "Resources", skip_serializing_if = "Option::is_none")]
55 pub resources: Option<crate::models::Resources>,
56 #[serde(
57 rename = "SchedulingEligibility",
58 skip_serializing_if = "Option::is_none"
59 )]
60 pub scheduling_eligibility: Option<String>,
61 #[serde(rename = "Status", skip_serializing_if = "Option::is_none")]
62 pub status: Option<String>,
63 #[serde(rename = "StatusDescription", skip_serializing_if = "Option::is_none")]
64 pub status_description: Option<String>,
65 #[serde(rename = "StatusUpdatedAt", skip_serializing_if = "Option::is_none")]
66 pub status_updated_at: Option<i64>,
67 #[serde(rename = "TLSEnabled", skip_serializing_if = "Option::is_none")]
68 pub tls_enabled: Option<bool>,
69}