/*
 * Orvanta API
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 1.2.0
 * 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 GenerateOpenapiSpec {
    #[serde(rename = "info", skip_serializing_if = "Option::is_none")]
    pub info: Option<Box<models::OpenapiV3Info>>,
    #[serde(rename = "url", skip_serializing_if = "Option::is_none")]
    pub url: Option<String>,
    #[serde(rename = "openapi_spec_format", skip_serializing_if = "Option::is_none")]
    pub openapi_spec_format: Option<models::OpenapiSpecFormat>,
    #[serde(rename = "http_route_filters", skip_serializing_if = "Option::is_none")]
    pub http_route_filters: Option<Vec<models::OpenapiHttpRouteFilters>>,
    #[serde(rename = "webhook_filters", skip_serializing_if = "Option::is_none")]
    pub webhook_filters: Option<Vec<models::WebhookFilters>>,
}

impl GenerateOpenapiSpec {
    pub fn new() -> GenerateOpenapiSpec {
        GenerateOpenapiSpec {
            info: None,
            url: None,
            openapi_spec_format: None,
            http_route_filters: None,
            webhook_filters: None,
        }
    }
}

