windmill_api/models/resolve_completed_jobs_request.rs
1/*
2 * Windmill API
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * The version of the OpenAPI document: 1.771.1
7 * Contact: contact@windmill.dev
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 ResolveCompletedJobsRequest {
16 #[serde(rename = "job_ids")]
17 pub job_ids: Vec<uuid::Uuid>,
18 /// a person's explanation of why the failure is considered handled. Enterprise-only: ignored outside enterprise
19 #[serde(rename = "note", skip_serializing_if = "Option::is_none")]
20 pub note: Option<String>,
21 /// 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
22 #[serde(rename = "superseded_by", skip_serializing_if = "Option::is_none")]
23 pub superseded_by: Option<uuid::Uuid>,
24}
25
26impl ResolveCompletedJobsRequest {
27 pub fn new(job_ids: Vec<uuid::Uuid>) -> ResolveCompletedJobsRequest {
28 ResolveCompletedJobsRequest {
29 job_ids,
30 note: None,
31 superseded_by: None,
32 }
33 }
34}
35