1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct Deployment {
#[serde(rename = "ID", skip_serializing_if = "Option::is_none")]
pub ID: Option<String>,
#[serde(rename = "Namespace", skip_serializing_if = "Option::is_none")]
pub namespace: Option<String>,
#[serde(rename = "JobID", skip_serializing_if = "Option::is_none")]
pub job_id: Option<String>,
#[serde(rename = "JobVersion", skip_serializing_if = "Option::is_none")]
pub job_version: Option<i32>,
#[serde(rename = "JobModifyIndex", skip_serializing_if = "Option::is_none")]
pub job_modify_index: Option<i32>,
#[serde(rename = "JobSpecModifyIndex", skip_serializing_if = "Option::is_none")]
pub job_spec_modify_index: Option<i32>,
#[serde(rename = "JobCreateIndex", skip_serializing_if = "Option::is_none")]
pub job_create_index: Option<i32>,
#[serde(rename = "TaskGroups", skip_serializing_if = "Option::is_none")]
pub task_groups: Option<::std::collections::HashMap<String, crate::models::DeploymentState>>,
#[serde(rename = "Status", skip_serializing_if = "Option::is_none")]
pub status: Option<String>,
#[serde(rename = "StatusDescription", skip_serializing_if = "Option::is_none")]
pub status_description: Option<String>,
#[serde(rename = "CreateIndex", skip_serializing_if = "Option::is_none")]
pub create_index: Option<i32>,
#[serde(rename = "ModifyIndex", skip_serializing_if = "Option::is_none")]
pub modify_index: Option<i32>,
}
impl Deployment {
pub fn new() -> Deployment {
Deployment {
ID: None,
namespace: None,
job_id: None,
job_version: None,
job_modify_index: None,
job_spec_modify_index: None,
job_create_index: None,
task_groups: None,
status: None,
status_description: None,
create_index: None,
modify_index: None,
}
}
}