// Code generated by oagen. DO NOT EDIT.

#[allow(unused_imports)]
use super::*;
#[allow(unused_imports)]
use crate::enums::*;
use serde::{Deserialize, Serialize};
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct ApiCallInvocation {
    /// Artifact operation that determines the backing record type
    ///
    /// Defaults to `api_call_invocation`.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub operation: Option<String>,
    pub id: String,
    pub workflow_run_id: String,
    pub step_id: String,
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub attempts: Option<Vec<ApiCallAttempt>>,
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub error: Option<ErrorDetails>,
    /// When this artifact was written by the orchestrator.
    pub created_at: String,
}
