Skip to main content

akeyless_api/models/
target_create_hashi_vault.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 TargetCreateHashiVault {
16    /// Description of the object
17    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
18    pub description: Option<String>,
19    /// HashiCorp Vault API URL, e.g. https://vault-mgr01:8200
20    #[serde(rename = "hashi-url", skip_serializing_if = "Option::is_none")]
21    pub hashi_url: Option<String>,
22    /// Set output format to JSON
23    #[serde(rename = "json", skip_serializing_if = "Option::is_none")]
24    pub json: Option<bool>,
25    /// The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used)
26    #[serde(rename = "key", skip_serializing_if = "Option::is_none")]
27    pub key: Option<String>,
28    /// Set the maximum number of versions, limited by the account settings defaults.
29    #[serde(rename = "max-versions", skip_serializing_if = "Option::is_none")]
30    pub max_versions: Option<String>,
31    /// Target name
32    #[serde(rename = "name")]
33    pub name: String,
34    /// Comma-separated list of vault namespaces
35    #[serde(rename = "namespace", skip_serializing_if = "Option::is_none")]
36    pub namespace: Option<Vec<String>>,
37    /// Authentication token (see `/auth` and `/configure`)
38    #[serde(rename = "token", skip_serializing_if = "Option::is_none")]
39    pub token: Option<String>,
40    /// The universal identity token, Required only for universal_identity authentication
41    #[serde(rename = "uid-token", skip_serializing_if = "Option::is_none")]
42    pub uid_token: Option<String>,
43    /// Vault access token with sufficient permissions
44    #[serde(rename = "vault-token", skip_serializing_if = "Option::is_none")]
45    pub vault_token: Option<String>,
46}
47
48impl TargetCreateHashiVault {
49    pub fn new(name: String) -> TargetCreateHashiVault {
50        TargetCreateHashiVault {
51            description: None,
52            hashi_url: None,
53            json: None,
54            key: None,
55            max_versions: None,
56            name,
57            namespace: None,
58            token: None,
59            uid_token: None,
60            vault_token: None,
61        }
62    }
63}
64