/*
 * Orvanta API
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 1.0.2
 * 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 GetRunnable200Response {
    #[serde(rename = "workspace")]
    pub workspace: String,
    #[serde(rename = "endpoint_async")]
    pub endpoint_async: String,
    #[serde(rename = "endpoint_sync")]
    pub endpoint_sync: String,
    #[serde(rename = "summary")]
    pub summary: String,
    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
    pub description: Option<String>,
    #[serde(rename = "kind")]
    pub kind: String,
}

impl GetRunnable200Response {
    pub fn new(workspace: String, endpoint_async: String, endpoint_sync: String, summary: String, kind: String) -> GetRunnable200Response {
        GetRunnable200Response {
            workspace,
            endpoint_async,
            endpoint_sync,
            summary,
            description: None,
            kind,
        }
    }
}

