Skip to main content

akeyless_api/models/
gw_update_remote_access_session_logs_splunk.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/// GwUpdateRemoteAccessSessionLogsSplunk : gwUpdateRemoteAccessSessionLogsSplunk is a command that updates session log forwarding config (splunk target)
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct GwUpdateRemoteAccessSessionLogsSplunk {
17    /// Enable Log Forwarding [true/false]
18    #[serde(rename = "enable", skip_serializing_if = "Option::is_none")]
19    pub enable: Option<String>,
20    /// Enable batch forwarding [true/false]
21    #[serde(rename = "enable-batch", skip_serializing_if = "Option::is_none")]
22    pub enable_batch: Option<String>,
23    /// Enable tls
24    #[serde(rename = "enable-tls", skip_serializing_if = "Option::is_none")]
25    pub enable_tls: Option<bool>,
26    /// Splunk index
27    #[serde(rename = "index", skip_serializing_if = "Option::is_none")]
28    pub index: Option<String>,
29    /// Set output format to JSON
30    #[serde(rename = "json", skip_serializing_if = "Option::is_none")]
31    pub json: Option<bool>,
32    /// Logs format [text/json]
33    #[serde(rename = "output-format", skip_serializing_if = "Option::is_none")]
34    pub output_format: Option<String>,
35    /// Pull interval in seconds
36    #[serde(rename = "pull-interval", skip_serializing_if = "Option::is_none")]
37    pub pull_interval: Option<String>,
38    /// Splunk source
39    #[serde(rename = "source", skip_serializing_if = "Option::is_none")]
40    pub source: Option<String>,
41    /// Splunk source type
42    #[serde(rename = "source-type", skip_serializing_if = "Option::is_none")]
43    pub source_type: Option<String>,
44    /// Splunk token
45    #[serde(rename = "splunk-token", skip_serializing_if = "Option::is_none")]
46    pub splunk_token: Option<String>,
47    /// Splunk server URL
48    #[serde(rename = "splunk-url", skip_serializing_if = "Option::is_none")]
49    pub splunk_url: Option<String>,
50    /// Splunk tls certificate
51    #[serde(rename = "tls-certificate", skip_serializing_if = "Option::is_none")]
52    pub tls_certificate: Option<String>,
53    /// Authentication token (see `/auth` and `/configure`)
54    #[serde(rename = "token", skip_serializing_if = "Option::is_none")]
55    pub token: Option<String>,
56    /// The universal identity token, Required only for universal_identity authentication
57    #[serde(rename = "uid-token", skip_serializing_if = "Option::is_none")]
58    pub uid_token: Option<String>,
59}
60
61impl GwUpdateRemoteAccessSessionLogsSplunk {
62    /// gwUpdateRemoteAccessSessionLogsSplunk is a command that updates session log forwarding config (splunk target)
63    pub fn new() -> GwUpdateRemoteAccessSessionLogsSplunk {
64        GwUpdateRemoteAccessSessionLogsSplunk {
65            enable: None,
66            enable_batch: None,
67            enable_tls: None,
68            index: None,
69            json: None,
70            output_format: None,
71            pull_interval: None,
72            source: None,
73            source_type: None,
74            splunk_token: None,
75            splunk_url: None,
76            tls_certificate: None,
77            token: None,
78            uid_token: None,
79        }
80    }
81}
82