/*
 * 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};

/// ApplyToResourcesRequest : Request for POST https://api.hetzner.cloud/v1/firewalls/{id}/actions/apply_to_resources
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ApplyToResourcesRequest {
    /// Resources to apply the Firewall to.  Extends existing resources.
    #[serde(rename = "apply_to")]
    pub apply_to: Vec<models::FirewallResource>,
}

impl ApplyToResourcesRequest {
    /// Request for POST https://api.hetzner.cloud/v1/firewalls/{id}/actions/apply_to_resources
    pub fn new(apply_to: Vec<models::FirewallResource>) -> ApplyToResourcesRequest {
        ApplyToResourcesRequest { apply_to }
    }
}
