Skip to main content

akeyless_api/models/
create_esm.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/// CreateEsm : CreateESM is a command that creates an External Secrets Manager. [Deprecated: Use command create-usc]
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct CreateEsm {
17    /// Azure Key Vault name (Relevant only for Azure targets)
18    #[serde(rename = "azure-kv-name", skip_serializing_if = "Option::is_none")]
19    pub azure_kv_name: Option<String>,
20    /// Protection from accidental deletion of this object [true/false]
21    #[serde(rename = "delete_protection", skip_serializing_if = "Option::is_none")]
22    pub delete_protection: Option<String>,
23    /// Description of the External Secrets Manager
24    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
25    pub description: Option<String>,
26    /// GCP Project ID (Relevant only for GCP targets)
27    #[serde(rename = "gcp-project-id", skip_serializing_if = "Option::is_none")]
28    pub gcp_project_id: Option<String>,
29    /// Set output format to JSON
30    #[serde(rename = "json", skip_serializing_if = "Option::is_none")]
31    pub json: Option<bool>,
32    /// K8s namespace (Relevant to Kubernetes targets)
33    #[serde(rename = "k8s-namespace", skip_serializing_if = "Option::is_none")]
34    pub k8s_namespace: Option<String>,
35    /// External Secrets Manager name
36    #[serde(rename = "name")]
37    pub name: String,
38    /// List of the tags attached to this External Secrets Manager
39    #[serde(rename = "tags", skip_serializing_if = "Option::is_none")]
40    pub tags: Option<Vec<String>>,
41    /// Target External Secrets Manager to connect
42    #[serde(rename = "target-to-associate")]
43    pub target_to_associate: String,
44    /// Authentication token (see `/auth` and `/configure`)
45    #[serde(rename = "token", skip_serializing_if = "Option::is_none")]
46    pub token: Option<String>,
47    /// The universal identity token, Required only for universal_identity authentication
48    #[serde(rename = "uid-token", skip_serializing_if = "Option::is_none")]
49    pub uid_token: Option<String>,
50}
51
52impl CreateEsm {
53    /// CreateESM is a command that creates an External Secrets Manager. [Deprecated: Use command create-usc]
54    pub fn new(name: String, target_to_associate: String) -> CreateEsm {
55        CreateEsm {
56            azure_kv_name: None,
57            delete_protection: None,
58            description: None,
59            gcp_project_id: None,
60            json: None,
61            k8s_namespace: None,
62            name,
63            tags: None,
64            target_to_associate,
65            token: None,
66            uid_token: None,
67        }
68    }
69}
70