/// DeleteRequest
#[derive(serde::Serialize, serde::Deserialize, Debug, Default, Clone)]
pub struct DeleteRequest {
    /// Unique project name or the uuid
    pub api_name: String,
    /// Can be either the semantic version or a released type (like latest)
    pub api_version: crate::models::ApiVersion,
}
/// ListRequest
#[derive(serde::Serialize, serde::Deserialize, Debug, Default, Clone)]
pub struct ListRequest {
    /// Unique project name or the uuid
    pub api_name: String,
}
/// GetRequest
#[derive(serde::Serialize, serde::Deserialize, Debug, Default, Clone)]
pub struct GetRequest {
    /// Unique project name or the uuid
    pub api_name: String,
    /// Can be either the semantic version or a released type (like latest)
    pub api_version: crate::models::ApiVersion,
}
/// GetOpenapiRequest
#[derive(serde::Serialize, serde::Deserialize, Debug, Default, Clone)]
pub struct GetOpenapiRequest {
    /// Unique project name or the uuid
    pub api_name: String,
    /// Can be either the semantic version or a released type (like latest)
    pub api_version: crate::models::ApiVersion,
}
/// GetStatsRequest
#[derive(serde::Serialize, serde::Deserialize, Debug, Default, Clone)]
pub struct GetStatsRequest {
    /// Unique project name or the uuid
    pub api_name: String,
    /// Can be either the semantic version or a released type (like latest)
    pub api_version: crate::models::ApiVersion,
}
/// PatchRequest
#[derive(serde::Serialize, serde::Deserialize, Debug, Default, Clone)]
pub struct PatchRequest {
    /// Allow API spec to be updated with a new OpenAPI spec even if it has linting errors
    #[serde(skip_serializing_if = "Option::is_none")]
    pub allow_lint_errors: Option<bool>,
    /// Enable a public mock server requests for this API Specification
    #[serde(skip_serializing_if = "Option::is_none")]
    pub mock_server_enabled: Option<bool>,
    /// Text field to add any notes (comments, changelog, etc.) relevant to the version in html format
    #[serde(skip_serializing_if = "Option::is_none")]
    pub notes: Option<String>,
    /// An OpenAPI specification in YAML or JSON
    #[serde(skip_serializing_if = "Option::is_none")]
    pub openapi: Option<crate::UploadFile>,
    /// Semantic Version of the API
    #[serde(skip_serializing_if = "Option::is_none")]
    pub version: Option<String>,
    /// Unique project name or the uuid
    pub api_name: String,
    /// Can be either the semantic version or a released type (like latest)
    pub api_version: crate::models::ApiVersion,
}
/// CreateRequest
#[derive(serde::Serialize, serde::Deserialize, Debug, Default, Clone)]
pub struct CreateRequest {
    /// Allow API spec to be created even if it has linting errors
    #[serde(skip_serializing_if = "Option::is_none")]
    pub allow_lint_errors: Option<bool>,
    /// Enable a public mock server requests for this API Specification
    #[serde(skip_serializing_if = "Option::is_none")]
    pub mock_server_enabled: Option<bool>,
    /// Text field to add any notes (comments, changelog, etc.) relevant to the version in html format
    #[serde(skip_serializing_if = "Option::is_none")]
    pub notes: Option<String>,
    /// An OpenAPI specification in YAML or JSON
    pub openapi: crate::UploadFile,
    /// Semantic version (0.1.0) or a release type (major, minor, patch, rc)
    pub version: crate::models::VersionOrBump,
    /// Unique project name or the uuid
    pub api_name: String,
}
