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
/*
* 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 ClusterJobsUpdateJobRequest {
/// Description for the Job.
#[serde(rename = "comment", skip_serializing_if = "Option::is_none")]
pub comment: Option<String>,
/// A list of settings you want to delete.
#[serde(rename = "delete", skip_serializing_if = "Option::is_none")]
pub delete: Option<String>,
/// Enable newly synced users immediately.
#[serde(rename = "enable-new", skip_serializing_if = "Option::is_none")]
pub enable_new: Option<models::PveBoolean>,
/// Determines if the job is enabled.
#[serde(rename = "enabled", skip_serializing_if = "Option::is_none")]
pub enabled: Option<models::PveBoolean>,
/// 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", skip_serializing_if = "Option::is_none")]
pub remove_vanished: Option<String>,
/// Backup schedule. The format is a subset of `systemd` calendar events.
#[serde(rename = "schedule")]
pub schedule: String,
/// Select what to sync.
#[serde(rename = "scope", skip_serializing_if = "Option::is_none")]
pub scope: Option<models::PveScopeEnum>,
}
impl ClusterJobsUpdateJobRequest {
pub fn new(schedule: String) -> ClusterJobsUpdateJobRequest {
ClusterJobsUpdateJobRequest {
comment: None,
delete: None,
enable_new: None,
enabled: None,
remove_vanished: None,
schedule,
scope: None,
}
}
}