clientapi-pve 2026.5.24

Generated from apidoc.js. NOT an official Proxmox specification. See https://pve.proxmox.com/pve-docs/api-viewer/ for the upstream documentation.
Documentation
/*
 * Proxmox Virtual Environment API
 *
 * Generated from apidoc.js. NOT an official Proxmox specification. See https://pve.proxmox.com/pve-docs/api-viewer/ for the upstream documentation.
 *
 * The version of the OpenAPI document: 9.x
 * 
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct NodesSubscriptionGetSubscriptionResponseData {

    /// Timestamp of the last check done.
    #[serde(rename = "checktime", skip_serializing_if = "Option::is_none")]
    pub checktime: Option<i64>,

    /// The subscription key, if set and permitted to access.
    #[serde(rename = "key", skip_serializing_if = "Option::is_none")]
    pub key: Option<String>,

    /// A short code for the subscription level.
    #[serde(rename = "level", skip_serializing_if = "Option::is_none")]
    pub level: Option<String>,

    /// A more human readable status message.
    #[serde(rename = "message", skip_serializing_if = "Option::is_none")]
    pub message: Option<String>,

    /// Next due date of the set subscription.
    #[serde(rename = "nextduedate", skip_serializing_if = "Option::is_none")]
    pub nextduedate: Option<String>,

    /// Human readable productname of the set subscription.
    #[serde(rename = "productname", skip_serializing_if = "Option::is_none")]
    pub productname: Option<String>,

    /// Register date of the set subscription.
    #[serde(rename = "regdate", skip_serializing_if = "Option::is_none")]
    pub regdate: Option<String>,

    /// The server ID, if permitted to access.
    #[serde(rename = "serverid", skip_serializing_if = "Option::is_none")]
    pub serverid: Option<String>,

    /// Signature for offline keys
    #[serde(rename = "signature", skip_serializing_if = "Option::is_none")]
    pub signature: Option<String>,

    /// The number of sockets for this host.
    #[serde(rename = "sockets", skip_serializing_if = "Option::is_none")]
    pub sockets: Option<i64>,

    /// The current subscription status.
    #[serde(rename = "status")]
    pub status: models::PveNodesSubscriptionStatusEnum,

    /// URL to the web shop.
    #[serde(rename = "url", skip_serializing_if = "Option::is_none")]
    pub url: Option<String>,


}

impl NodesSubscriptionGetSubscriptionResponseData {
    pub fn new(status: models::PveNodesSubscriptionStatusEnum) -> NodesSubscriptionGetSubscriptionResponseData {
        NodesSubscriptionGetSubscriptionResponseData {
            
            checktime: None,
            
            key: None,
            
            level: None,
            
            message: None,
            
            nextduedate: None,
            
            productname: None,
            
            regdate: None,
            
            serverid: None,
            
            signature: None,
            
            sockets: None,
            
            status,
            
            url: None,
            
        }
    }
}