antimatter_api 2.0.13

Interact with the Antimatter Cloud API
Documentation
/*
 * Antimatter Public API
 *
 * Interact with the Antimatter Cloud API
 *
 * The version of the OpenAPI document: 2.0.13
 * Contact: support@antimatter.io
 * Generated by: https://openapi-generator.tech
 */

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

/// DomainControlLogEntry : Results for a domain control log query 
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct DomainControlLogEntry {
    /// A globally unique identifier for a domain
    #[serde(rename = "domain")]
    pub domain: String,
    /// A globally unique chronological identifier for a log record. If you sort by this identifier, your logs will be in chronological order 
    #[serde(rename = "id")]
    pub id: String,
    /// the time of an operation, in UTC
    #[serde(rename = "time")]
    pub time: String,
    /// An identifier for an authentication session
    #[serde(rename = "session")]
    pub session: String,
    #[serde(rename = "url")]
    pub url: String,
    #[serde(rename = "summary")]
    pub summary: String,
    #[serde(rename = "description")]
    pub description: std::collections::HashMap<String, String>,
    /// the principal's issuer
    #[serde(rename = "issuer")]
    pub issuer: String,
    /// the principal for this operation
    #[serde(rename = "principal")]
    pub principal: String,
}

impl DomainControlLogEntry {
    /// Results for a domain control log query 
    pub fn new(domain: String, id: String, time: String, session: String, url: String, summary: String, description: std::collections::HashMap<String, String>, issuer: String, principal: String) -> DomainControlLogEntry {
        DomainControlLogEntry {
            domain,
            id,
            time,
            session,
            url,
            summary,
            description,
            issuer,
            principal,
        }
    }
}