/*
 * Hetzner Cloud API
 *
 * Copied from the official API documentation for the Public Hetzner Cloud.
 *
 * The version of the OpenAPI document: 4b3f595
 *
 * Generated by: https://openapi-generator.tech
 */

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

/// CreateFirewallResponse : Response to POST https://api.hetzner.cloud/v1/firewalls
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct CreateFirewallResponse {
    #[serde(rename = "actions", skip_serializing_if = "Option::is_none")]
    pub actions: Option<Vec<models::Action>>,
    #[serde(rename = "firewall", skip_serializing_if = "Option::is_none")]
    pub firewall: Option<Box<models::Firewall>>,
}

impl CreateFirewallResponse {
    /// Response to POST https://api.hetzner.cloud/v1/firewalls
    pub fn new() -> CreateFirewallResponse {
        CreateFirewallResponse {
            actions: None,
            firewall: None,
        }
    }
}
