Skip to main content

incus_client/models/
instance_state_os_info.rs

1/*
2 * Incus external REST API
3 *
4 * This is the REST API used by all Incus clients. Internal endpoints aren't included in this documentation.  The Incus API is available over both a local unix+http and remote https API. Authentication for local users relies on group membership and access to the unix socket. For remote users, the default authentication method is TLS client certificates.
5 *
6 * The version of the OpenAPI document: 1.0
7 * Contact: lxc-devel@lists.linuxcontainers.org
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 InstanceStateOsInfo {
16    /// FQDN of the instance.
17    #[serde(rename = "fqdn", skip_serializing_if = "Option::is_none")]
18    pub fqdn: Option<String>,
19    /// Hostname of the instance.
20    #[serde(rename = "hostname", skip_serializing_if = "Option::is_none")]
21    pub hostname: Option<String>,
22    /// Version of the kernel running in the instance.
23    #[serde(rename = "kernel_version", skip_serializing_if = "Option::is_none")]
24    pub kernel_version: Option<String>,
25    /// Operating system running in the instance.
26    #[serde(rename = "os", skip_serializing_if = "Option::is_none")]
27    pub os: Option<String>,
28    /// Version of the operating system.
29    #[serde(rename = "os_version", skip_serializing_if = "Option::is_none")]
30    pub os_version: Option<String>,
31}
32
33impl InstanceStateOsInfo {
34    pub fn new() -> InstanceStateOsInfo {
35        InstanceStateOsInfo {
36            fqdn: None,
37            hostname: None,
38            kernel_version: None,
39            os: None,
40            os_version: None,
41        }
42    }
43}
44