/*
 * Orvanta API
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 1.0.6
 * Contact: contact@orvanta.cloud
 * Generated by: https://openapi-generator.tech
 */

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

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ExecuteComponentRequestRawCode {
    #[serde(rename = "content")]
    pub content: String,
    #[serde(rename = "language")]
    pub language: String,
    #[serde(rename = "path", skip_serializing_if = "Option::is_none")]
    pub path: Option<String>,
    #[serde(rename = "lock", skip_serializing_if = "Option::is_none")]
    pub lock: Option<String>,
    #[serde(rename = "cache_ttl", skip_serializing_if = "Option::is_none")]
    pub cache_ttl: Option<i32>,
    #[serde(rename = "tag", skip_serializing_if = "Option::is_none")]
    pub tag: Option<String>,
}

impl ExecuteComponentRequestRawCode {
    pub fn new(content: String, language: String) -> ExecuteComponentRequestRawCode {
        ExecuteComponentRequestRawCode {
            content,
            language,
            path: None,
            lock: None,
            cache_ttl: None,
            tag: None,
        }
    }
}

