/*
* Hanzo Cloud API
*
* The Hanzo Cloud API as a customer calls it: every operation under /v1/ except the operator's admin product, relay routes, legacy spellings and capabilities still reached by flag. Tagged by product: the first path segment after /v1/.
*
* The version of the OpenAPI document: v1
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct LicensingPeriodVerifyRequest {
/// App overrides the app_id the token is expected to carry. Leave it empty and the token's own app_id is used — an online verify is informational, and it is the ENGINE that enforces the app at boot.
#[serde(rename = "app", skip_serializing_if = "Option::is_none")]
pub app: Option<String>,
/// Token is the license token to check.
#[serde(rename = "token")]
pub token: String,
}
impl LicensingPeriodVerifyRequest {
pub fn new(token: String) -> LicensingPeriodVerifyRequest {
LicensingPeriodVerifyRequest {
app: None,
token,
}
}
}