1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
#[allow(unused_imports)]
use serde_json::Value;

#[derive(Debug, Serialize, Deserialize)]
pub struct SyncJobCreateParams {
    /// The action to be taken by this job.
    #[serde(rename = "action")]
    pub action: Option<String>,
    /// The ID or Name of the policy
    #[serde(rename = "id")]
    pub id: String,
    /// Only valid for allow_write, and allow_write_revert; specify the desired logging level, will be stored in the logs for isi_migrate, defaults to 'info'.
    #[serde(rename = "log_level")]
    pub log_level: Option<String>,
    /// An optional snapshot to copy/sync from.
    #[serde(rename = "source_snapshot")]
    pub source_snapshot: Option<String>,
    /// Only valid for allow_write, and allow_write_revert; specify the desired workers per node, defaults to 3.
    #[serde(rename = "workers_per_node")]
    pub workers_per_node: Option<i32>,
}