harbor_api/models/
replication_execution.rs

1/*
2 * Harbor API
3 *
4 * These APIs provide services for manipulating Harbor project.
5 *
6 * The version of the OpenAPI document: 2.0
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// ReplicationExecution : The replication execution
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct ReplicationExecution {
17    /// The ID of the execution
18    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
19    pub id: Option<i32>,
20    /// The ID if the policy that the execution belongs to
21    #[serde(rename = "policy_id", skip_serializing_if = "Option::is_none")]
22    pub policy_id: Option<i32>,
23    /// The status of the execution
24    #[serde(rename = "status", skip_serializing_if = "Option::is_none")]
25    pub status: Option<String>,
26    /// The trigger mode
27    #[serde(rename = "trigger", skip_serializing_if = "Option::is_none")]
28    pub trigger: Option<String>,
29    /// The start time
30    #[serde(rename = "start_time", skip_serializing_if = "Option::is_none")]
31    pub start_time: Option<String>,
32    /// The end time
33    #[serde(rename = "end_time", skip_serializing_if = "Option::is_none")]
34    pub end_time: Option<String>,
35    /// The status text
36    #[serde(rename = "status_text", skip_serializing_if = "Option::is_none")]
37    pub status_text: Option<String>,
38    /// The total count of all executions
39    #[serde(rename = "total", skip_serializing_if = "Option::is_none")]
40    pub total: Option<i32>,
41    /// The count of failed executions
42    #[serde(rename = "failed", skip_serializing_if = "Option::is_none")]
43    pub failed: Option<i32>,
44    /// The count of succeed executions
45    #[serde(rename = "succeed", skip_serializing_if = "Option::is_none")]
46    pub succeed: Option<i32>,
47    /// The count of in_progress executions
48    #[serde(rename = "in_progress", skip_serializing_if = "Option::is_none")]
49    pub in_progress: Option<i32>,
50    /// The count of stopped executions
51    #[serde(rename = "stopped", skip_serializing_if = "Option::is_none")]
52    pub stopped: Option<i32>,
53}
54
55impl ReplicationExecution {
56    /// The replication execution
57    pub fn new() -> ReplicationExecution {
58        ReplicationExecution {
59            id: None,
60            policy_id: None,
61            status: None,
62            trigger: None,
63            start_time: None,
64            end_time: None,
65            status_text: None,
66            total: None,
67            failed: None,
68            succeed: None,
69            in_progress: None,
70            stopped: None,
71        }
72    }
73}
74