/*
* 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 LicensingPeriodRevokeRequest {
/// Reason is the operator's note, echoed back by verify so a support agent can explain the refusal.
#[serde(rename = "reason", skip_serializing_if = "Option::is_none")]
pub reason: Option<String>,
/// Scope is what the revocation matches on: \"nonce\" kills one token, \"holder\" every token issued to one bearer, \"fingerprint\" every token bound to one device, and \"release\" every token scoped to one binary release.
#[serde(rename = "scope")]
pub scope: String,
/// Value is the concrete nonce, holder, fingerprint or release id to revoke.
#[serde(rename = "value")]
pub value: String,
}
impl LicensingPeriodRevokeRequest {
pub fn new(scope: String, value: String) -> LicensingPeriodRevokeRequest {
LicensingPeriodRevokeRequest {
reason: None,
scope,
value,
}
}
}