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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
/*
* Proxmox Virtual Environment API
*
* Generated from apidoc.js. NOT an official Proxmox specification. See https://pve.proxmox.com/pve-docs/api-viewer/ for the upstream documentation.
*
* The version of the OpenAPI document: 9.x
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ClusterJobsSyncjobIndexResponseDataInner {
/// A comment for the job.
#[serde(rename = "comment", skip_serializing_if = "Option::is_none")]
pub comment: Option<String>,
/// If the job is enabled or not.
#[serde(rename = "enabled")]
pub enabled: models::PveBoolean,
/// The ID of the entry.
#[serde(rename = "id")]
pub id: String,
/// Last execution time of the job in seconds since the beginning of the UNIX epoch
#[serde(rename = "last-run", skip_serializing_if = "Option::is_none")]
pub last_run: Option<i64>,
/// Next planned execution time of the job in seconds since the beginning of the UNIX epoch.
#[serde(rename = "next-run", skip_serializing_if = "Option::is_none")]
pub next_run: Option<i64>,
/// Authentication domain ID
#[serde(rename = "realm")]
pub realm: String,
/// A semicolon-separated list of things to remove when they or the user vanishes during a sync. The following values are possible: 'entry' removes the user/group when not returned from the sync. 'properties' removes the set properties on existing user/group that do not appear in the source (even custom ones). 'acl' removes acls when the user/group is not returned from the sync. Instead of a list it also can be 'none' (the default).
#[serde(rename = "remove-vanished")]
pub remove_vanished: String,
/// The configured sync schedule.
#[serde(rename = "schedule")]
pub schedule: String,
/// Select what to sync.
#[serde(rename = "scope")]
pub scope: models::PveScopeEnum,
}
impl ClusterJobsSyncjobIndexResponseDataInner {
pub fn new(enabled: models::PveBoolean, id: String, realm: String, remove_vanished: String, schedule: String, scope: models::PveScopeEnum) -> ClusterJobsSyncjobIndexResponseDataInner {
ClusterJobsSyncjobIndexResponseDataInner {
comment: None,
enabled,
id,
last_run: None,
next_run: None,
realm,
remove_vanished,
schedule,
scope,
}
}
}