Skip to main content

akeyless_api/models/
get_secret_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 GetSecretValue {
16    /// for personal password manager
17    #[serde(rename = "accessibility", skip_serializing_if = "Option::is_none")]
18    pub accessibility: 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 = "names")]
27    pub names: Vec<String>,
28    /// Print the secret value with json-pretty-print (not relevent to SDK)
29    #[serde(rename = "pretty-print", skip_serializing_if = "Option::is_none")]
30    pub pretty_print: Option<bool>,
31    /// Authentication token (see `/auth` and `/configure`)
32    #[serde(rename = "token", skip_serializing_if = "Option::is_none")]
33    pub token: Option<String>,
34    /// The universal identity token, Required only for universal_identity authentication
35    #[serde(rename = "uid-token", skip_serializing_if = "Option::is_none")]
36    pub uid_token: Option<String>,
37    /// Secret version, if negative value N is provided the last N versions will return (maximum 20)
38    #[serde(rename = "version", skip_serializing_if = "Option::is_none")]
39    pub version: Option<i32>,
40}
41
42impl GetSecretValue {
43    pub fn new(names: Vec<String>) -> GetSecretValue {
44        GetSecretValue {
45            accessibility: None,
46            ignore_cache: None,
47            json: None,
48            names,
49            pretty_print: None,
50            token: None,
51            uid_token: None,
52            version: None,
53        }
54    }
55}
56