Skip to main content

akeyless_api/models/
rotated_secret_get_value.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#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct RotatedSecretGetValue {
16    /// Get rotated secret value of specific Host (relevant only for Linked Target)
17    #[serde(rename = "host", skip_serializing_if = "Option::is_none")]
18    pub host: Option<String>,
19    /// Retrieve the Secret value without checking the Gateway's cache [true/false]. This flag is only relevant when using the RestAPI
20    #[serde(rename = "ignore-cache", skip_serializing_if = "Option::is_none")]
21    pub ignore_cache: Option<String>,
22    /// Set output format to JSON
23    #[serde(rename = "json", skip_serializing_if = "Option::is_none")]
24    pub json: Option<bool>,
25    /// Secret name
26    #[serde(rename = "name")]
27    pub name: String,
28    /// Authentication token (see `/auth` and `/configure`)
29    #[serde(rename = "token", skip_serializing_if = "Option::is_none")]
30    pub token: Option<String>,
31    /// The universal identity token, Required only for universal_identity authentication
32    #[serde(rename = "uid-token", skip_serializing_if = "Option::is_none")]
33    pub uid_token: Option<String>,
34    /// Secret version
35    #[serde(rename = "version", skip_serializing_if = "Option::is_none")]
36    pub version: Option<i32>,
37}
38
39impl RotatedSecretGetValue {
40    pub fn new(name: String) -> RotatedSecretGetValue {
41        RotatedSecretGetValue {
42            host: None,
43            ignore_cache: None,
44            json: None,
45            name,
46            token: None,
47            uid_token: None,
48            version: None,
49        }
50    }
51}
52