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

/// DeleteSubnetFromNetworkRequest : Request for POST https://api.hetzner.cloud/v1/networks/{id}/actions/delete_subnet
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct DeleteSubnetFromNetworkRequest {
    /// IP range in CIDR block notation of the subnet to delete.
    #[serde(rename = "ip_range")]
    pub ip_range: String,
}

impl DeleteSubnetFromNetworkRequest {
    /// Request for POST https://api.hetzner.cloud/v1/networks/{id}/actions/delete_subnet
    pub fn new(ip_range: String) -> DeleteSubnetFromNetworkRequest {
        DeleteSubnetFromNetworkRequest { ip_range }
    }
}
