Skip to main content

akeyless_api/models/
gw_update_remote_access_session_logs_sumologic.rs

1/*
2 * Akeyless API
3 *
4 * The purpose of this application is to provide access to Akeyless API.
5 *
6 * The version of the OpenAPI document: 3.0
7 * Contact: support@akeyless.io
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// GwUpdateRemoteAccessSessionLogsSumologic : gwUpdateRemoteAccessSessionLogsSumologic is a command that updates session log forwarding config (sumologic target)
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct GwUpdateRemoteAccessSessionLogsSumologic {
17    /// Enable Log Forwarding [true/false]
18    #[serde(rename = "enable", skip_serializing_if = "Option::is_none")]
19    pub enable: Option<String>,
20    /// Sumologic endpoint URL
21    #[serde(rename = "endpoint", skip_serializing_if = "Option::is_none")]
22    pub endpoint: Option<String>,
23    /// Sumologic host
24    #[serde(rename = "host", skip_serializing_if = "Option::is_none")]
25    pub host: Option<String>,
26    /// Set output format to JSON
27    #[serde(rename = "json", skip_serializing_if = "Option::is_none")]
28    pub json: Option<bool>,
29    /// Logs format [text/json]
30    #[serde(rename = "output-format", skip_serializing_if = "Option::is_none")]
31    pub output_format: Option<String>,
32    /// Pull interval in seconds
33    #[serde(rename = "pull-interval", skip_serializing_if = "Option::is_none")]
34    pub pull_interval: Option<String>,
35    /// A comma-separated list of Sumologic tags
36    #[serde(rename = "sumologic-tags", skip_serializing_if = "Option::is_none")]
37    pub sumologic_tags: Option<String>,
38    /// Authentication token (see `/auth` and `/configure`)
39    #[serde(rename = "token", skip_serializing_if = "Option::is_none")]
40    pub token: Option<String>,
41    /// The universal identity token, Required only for universal_identity authentication
42    #[serde(rename = "uid-token", skip_serializing_if = "Option::is_none")]
43    pub uid_token: Option<String>,
44}
45
46impl GwUpdateRemoteAccessSessionLogsSumologic {
47    /// gwUpdateRemoteAccessSessionLogsSumologic is a command that updates session log forwarding config (sumologic target)
48    pub fn new() -> GwUpdateRemoteAccessSessionLogsSumologic {
49        GwUpdateRemoteAccessSessionLogsSumologic {
50            enable: None,
51            endpoint: None,
52            host: None,
53            json: None,
54            output_format: None,
55            pull_interval: None,
56            sumologic_tags: None,
57            token: None,
58            uid_token: None,
59        }
60    }
61}
62