Skip to main content

akeyless_api/models/
gateway_update_log_forwarding_azure_analytics.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/// GatewayUpdateLogForwardingAzureAnalytics : gatewayUpdateLogForwardingAzureAnalytics is a command that updates log forwarding config (azure-analytics target)
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct GatewayUpdateLogForwardingAzureAnalytics {
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    /// Set output format to JSON
24    #[serde(rename = "json", skip_serializing_if = "Option::is_none")]
25    pub json: Option<bool>,
26    /// Logs format [text/json]
27    #[serde(rename = "output-format", skip_serializing_if = "Option::is_none")]
28    pub output_format: Option<String>,
29    /// Pull interval in seconds
30    #[serde(rename = "pull-interval", skip_serializing_if = "Option::is_none")]
31    pub pull_interval: Option<String>,
32    /// Authentication token (see `/auth` and `/configure`)
33    #[serde(rename = "token", skip_serializing_if = "Option::is_none")]
34    pub token: Option<String>,
35    /// The universal identity token, Required only for universal_identity authentication
36    #[serde(rename = "uid-token", skip_serializing_if = "Option::is_none")]
37    pub uid_token: Option<String>,
38    /// Azure workspace id
39    #[serde(rename = "workspace-id", skip_serializing_if = "Option::is_none")]
40    pub workspace_id: Option<String>,
41    /// Azure workspace key
42    #[serde(rename = "workspace-key", skip_serializing_if = "Option::is_none")]
43    pub workspace_key: Option<String>,
44}
45
46impl GatewayUpdateLogForwardingAzureAnalytics {
47    /// gatewayUpdateLogForwardingAzureAnalytics is a command that updates log forwarding config (azure-analytics target)
48    pub fn new() -> GatewayUpdateLogForwardingAzureAnalytics {
49        GatewayUpdateLogForwardingAzureAnalytics {
50            enable: None,
51            enable_batch: None,
52            json: None,
53            output_format: None,
54            pull_interval: None,
55            token: None,
56            uid_token: None,
57            workspace_id: None,
58            workspace_key: None,
59        }
60    }
61}
62