/*
* Hetzner Cloud API
*
* Copied from the official API documentation for the Public Hetzner Cloud.
*
* The version of the OpenAPI document: 0.28.0
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
/// ChangeZonesDefaultTtlRequest : Request for POST https://api.hetzner.cloud/v1/zones/{id_or_name}/actions/change_ttl
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ChangeZonesDefaultTtlRequest {
/// Default Time To Live (TTL) of the Zone. Must be in between 60s and 2147483647s. This TTL is used for RRSets that do not explicitly define a TTL.
#[serde(rename = "ttl")]
pub ttl: i32,
}
impl ChangeZonesDefaultTtlRequest {
/// Request for POST https://api.hetzner.cloud/v1/zones/{id_or_name}/actions/change_ttl
pub fn new(ttl: i32) -> ChangeZonesDefaultTtlRequest {
ChangeZonesDefaultTtlRequest { ttl }
}
}