Skip to main content

clientapi_pve/models/
nodes_dns_update_dns_request.rs

1/*
2 * Proxmox Virtual Environment API
3 *
4 * Generated from apidoc.js. NOT an official Proxmox specification. See https://pve.proxmox.com/pve-docs/api-viewer/ for the upstream documentation.
5 *
6 * The version of the OpenAPI document: 9.x
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct NodesDnsUpdateDnsRequest {
16
17    /// First name server IP address.
18    #[serde(rename = "dns1", skip_serializing_if = "Option::is_none")]
19    pub dns1: Option<String>,
20
21    /// Second name server IP address.
22    #[serde(rename = "dns2", skip_serializing_if = "Option::is_none")]
23    pub dns2: Option<String>,
24
25    /// Third name server IP address.
26    #[serde(rename = "dns3", skip_serializing_if = "Option::is_none")]
27    pub dns3: Option<String>,
28
29    /// Search domain for host-name lookup.
30    #[serde(rename = "search")]
31    pub search: String,
32
33
34}
35
36impl NodesDnsUpdateDnsRequest {
37    pub fn new(search: String) -> NodesDnsUpdateDnsRequest {
38        NodesDnsUpdateDnsRequest {
39            
40            dns1: None,
41            
42            dns2: None,
43            
44            dns3: None,
45            
46            search,
47            
48        }
49    }
50}
51
52