hanzo-client 8.5.156

Generated client for the Hanzo API — every service, one crate.
Documentation
/*
 * 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 O11yPeriodO11yApiKey {
    /// CreatedAt is when the key was minted.
    #[serde(rename = "createdAt", skip_serializing_if = "Option::is_none")]
    pub created_at: Option<String>,
    /// ExpiresAt is when the key stops working, as a unix timestamp in seconds; zero means never.
    #[serde(rename = "expiresAt", skip_serializing_if = "Option::is_none")]
    pub expires_at: Option<i32>,
    /// ID is the key id.
    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
    pub id: Option<String>,
    /// LastObservedAt is when the key was last seen authenticating.
    #[serde(rename = "lastObservedAt", skip_serializing_if = "Option::is_none")]
    pub last_observed_at: Option<String>,
    /// Name is the key's name.
    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    /// ServiceAccountID is the account the key belongs to.
    #[serde(rename = "serviceAccountId", skip_serializing_if = "Option::is_none")]
    pub service_account_id: Option<String>,
    /// UpdatedAt is when it last changed.
    #[serde(rename = "updatedAt", skip_serializing_if = "Option::is_none")]
    pub updated_at: Option<String>,
}

impl O11yPeriodO11yApiKey {
    pub fn new() -> O11yPeriodO11yApiKey {
        O11yPeriodO11yApiKey {
            created_at: None,
            expires_at: None,
            id: None,
            last_observed_at: None,
            name: None,
            service_account_id: None,
            updated_at: None,
        }
    }
}