Skip to main content

akeyless_api/models/
gateway_update_cache.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/// GatewayUpdateCache : gatewayUpdateCache is a command that updates cache settings
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct GatewayUpdateCache {
17    /// Secure backup interval in minutes. To ensure service continuity in case of power cycle and network outage secrets will be backed up periodically per backup interval
18    #[serde(rename = "backup-interval", skip_serializing_if = "Option::is_none")]
19    pub backup_interval: Option<String>,
20    /// Enable cache [true/false]
21    #[serde(rename = "enable-cache", skip_serializing_if = "Option::is_none")]
22    pub enable_cache: Option<String>,
23    /// Enable proactive caching [true/false]
24    #[serde(rename = "enable-proactive", skip_serializing_if = "Option::is_none")]
25    pub enable_proactive: Option<String>,
26    /// Set output format to JSON
27    #[serde(rename = "json", skip_serializing_if = "Option::is_none")]
28    pub json: Option<bool>,
29    /// When using Cache or/and Proactive Cache, additional secrets will be fetched upon requesting a secret, based on the requestor's access policy. Define minimum fetching interval to avoid over fetching in a given time frame
30    #[serde(rename = "minimum-fetch-interval", skip_serializing_if = "Option::is_none")]
31    pub minimum_fetch_interval: Option<String>,
32    /// Stale timeout in minutes, cache entries which are not accessed within timeout will be removed from cache
33    #[serde(rename = "stale-timeout", skip_serializing_if = "Option::is_none")]
34    pub stale_timeout: Option<String>,
35    /// Authentication token (see `/auth` and `/configure`)
36    #[serde(rename = "token", skip_serializing_if = "Option::is_none")]
37    pub token: Option<String>,
38    /// The universal identity token, Required only for universal_identity authentication
39    #[serde(rename = "uid-token", skip_serializing_if = "Option::is_none")]
40    pub uid_token: Option<String>,
41}
42
43impl GatewayUpdateCache {
44    /// gatewayUpdateCache is a command that updates cache settings
45    pub fn new() -> GatewayUpdateCache {
46        GatewayUpdateCache {
47            backup_interval: None,
48            enable_cache: None,
49            enable_proactive: None,
50            json: None,
51            minimum_fetch_interval: None,
52            stale_timeout: None,
53            token: None,
54            uid_token: None,
55        }
56    }
57}
58