/*
 * 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 TestWebsocketConnectionRequest {
    #[serde(rename = "url")]
    pub url: String,
    /// The arguments to pass to the script or flow
    #[serde(rename = "url_runnable_args", skip_serializing_if = "Option::is_none")]
    pub url_runnable_args: Option<std::collections::HashMap<String, serde_json::Value>>,
    #[serde(rename = "can_return_message")]
    pub can_return_message: bool,
}

impl TestWebsocketConnectionRequest {
    pub fn new(url: String, can_return_message: bool) -> TestWebsocketConnectionRequest {
        TestWebsocketConnectionRequest {
            url,
            url_runnable_args: None,
            can_return_message,
        }
    }
}

