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 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,
            
        }
    }
}