Skip to main content

akeyless_api/models/
export_classic_key.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/// ExportClassicKey : ExportClassicKey is a command that returns the classic key material
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct ExportClassicKey {
17    /// for personal password manager
18    #[serde(rename = "accessibility", skip_serializing_if = "Option::is_none")]
19    pub accessibility: Option<String>,
20    /// Use this option to output only public key
21    #[serde(rename = "export-public-key", skip_serializing_if = "Option::is_none")]
22    pub export_public_key: Option<bool>,
23    /// Retrieve the Secret value without checking the Gateway's cache [true/false]. This flag is only relevant when using the RestAPI
24    #[serde(rename = "ignore-cache", skip_serializing_if = "Option::is_none")]
25    pub ignore_cache: Option<String>,
26    /// Set output format to JSON
27    #[serde(rename = "json", skip_serializing_if = "Option::is_none")]
28    pub json: Option<bool>,
29    /// ClassicKey name
30    #[serde(rename = "name")]
31    pub name: 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    /// Classic key version
39    #[serde(rename = "version", skip_serializing_if = "Option::is_none")]
40    pub version: Option<i32>,
41    /// Classic key name to wrap the key material with
42    #[serde(rename = "wrapping-key-name", skip_serializing_if = "Option::is_none")]
43    pub wrapping_key_name: Option<String>,
44}
45
46impl ExportClassicKey {
47    /// ExportClassicKey is a command that returns the classic key material
48    pub fn new(name: String) -> ExportClassicKey {
49        ExportClassicKey {
50            accessibility: None,
51            export_public_key: None,
52            ignore_cache: None,
53            json: None,
54            name,
55            token: None,
56            uid_token: None,
57            version: None,
58            wrapping_key_name: None,
59        }
60    }
61}
62