clientapi-pve 2026.5.24

Generated from apidoc.js. NOT an official Proxmox specification. See https://pve.proxmox.com/pve-docs/api-viewer/ for the upstream documentation.
Documentation
/*
 * 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 ClusterJobsCreateJobRequest {

    /// Description for the Job.
    #[serde(rename = "comment", skip_serializing_if = "Option::is_none")]
    pub comment: 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>,

    /// Authentication domain ID
    #[serde(rename = "realm", skip_serializing_if = "Option::is_none")]
    pub realm: Option<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", 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 ClusterJobsCreateJobRequest {
    pub fn new(schedule: String) -> ClusterJobsCreateJobRequest {
        ClusterJobsCreateJobRequest {
            
            comment: None,
            
            enable_new: None,
            
            enabled: None,
            
            realm: None,
            
            remove_vanished: None,
            
            schedule,
            
            scope: None,
            
        }
    }
}