clientapi_pbs/models/access_domains_create_sync_request.rs
1/*
2 * Proxmox Backup Server API
3 *
4 * Generated from apidoc.js. NOT an official Proxmox specification. See https://pbs.proxmox.com/docs/api-viewer/ for the upstream documentation.
5 *
6 * The version of the OpenAPI document: 9.x
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct AccessDomainsCreateSyncRequest {
16
17 /// If set, do not create/delete anything
18 #[serde(rename = "dry-run", skip_serializing_if = "Option::is_none")]
19 pub dry_run: Option<bool>,
20
21 /// Enable newly synced users immediately
22 #[serde(rename = "enable-new", skip_serializing_if = "Option::is_none")]
23 pub enable_new: Option<bool>,
24
25 /// A semicolon-separated list of things to remove when they or the user vanishes during user synchronization. The following values are possible: ``entry`` removes the user when not returned from the sync; ``properties`` removes any properties on existing user that do not appear in the source. ``acl`` removes ACLs when the user is not returned from the sync.
26 #[serde(rename = "remove-vanished", skip_serializing_if = "Option::is_none")]
27 pub remove_vanished: Option<Box<models::PbsRemoveVanishedField>>,
28
29
30}
31
32impl AccessDomainsCreateSyncRequest {
33 pub fn new() -> AccessDomainsCreateSyncRequest {
34 AccessDomainsCreateSyncRequest {
35
36 dry_run: None,
37
38 enable_new: None,
39
40 remove_vanished: None,
41
42 }
43 }
44}
45
46