windmill-api 1.771.0

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
Documentation
/*
 * Windmill API
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 1.771.0
 * Contact: contact@windmill.dev
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ResolveCompletedJobsRequest {
    #[serde(rename = "job_ids")]
    pub job_ids: Vec<uuid::Uuid>,
    /// a person's explanation of why the failure is considered handled. Enterprise-only: ignored outside enterprise
    #[serde(rename = "note", skip_serializing_if = "Option::is_none")]
    pub note: Option<String>,
    /// id of a later successful run of the same runnable that supersedes the failure. Verified server-side, and the resulting note is the server's own wording, so it is recorded regardless of licence. A claim that cannot be verified resolves nothing
    #[serde(rename = "superseded_by", skip_serializing_if = "Option::is_none")]
    pub superseded_by: Option<uuid::Uuid>,
}

impl ResolveCompletedJobsRequest {
    pub fn new(job_ids: Vec<uuid::Uuid>) -> ResolveCompletedJobsRequest {
        ResolveCompletedJobsRequest {
            job_ids,
            note: None,
            superseded_by: None,
        }
    }
}