akeyless_api/models/esm_get.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/// EsmGet : esmGet is a command that gets the value and interal details of a secret from an External Secrets Manager
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct EsmGet {
17 /// Name of the External Secrets Manager item
18 #[serde(rename = "esm-name")]
19 pub esm_name: String,
20 /// Set output format to JSON
21 #[serde(rename = "json", skip_serializing_if = "Option::is_none")]
22 pub json: Option<bool>,
23 /// The secret id (or name, for AWS, Azure or K8s targets) to get from the External Secrets Manager
24 #[serde(rename = "secret-id")]
25 pub secret_id: String,
26 /// Authentication token (see `/auth` and `/configure`)
27 #[serde(rename = "token", skip_serializing_if = "Option::is_none")]
28 pub token: Option<String>,
29 /// The universal identity token, Required only for universal_identity authentication
30 #[serde(rename = "uid-token", skip_serializing_if = "Option::is_none")]
31 pub uid_token: Option<String>,
32}
33
34impl EsmGet {
35 /// esmGet is a command that gets the value and interal details of a secret from an External Secrets Manager
36 pub fn new(esm_name: String, secret_id: String) -> EsmGet {
37 EsmGet {
38 esm_name,
39 json: None,
40 secret_id,
41 token: None,
42 uid_token: None,
43 }
44 }
45}
46