akeyless_api/models/usc_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/// UscGet : uscGet is a command that gets the value and internal details of a secret from a Universal Secrets Connector
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct UscGet {
17 /// Set output format to JSON
18 #[serde(rename = "json", skip_serializing_if = "Option::is_none")]
19 pub json: Option<bool>,
20 /// The namespace (relevant for Hashi vault target)
21 #[serde(rename = "namespace", skip_serializing_if = "Option::is_none")]
22 pub namespace: Option<String>,
23 /// The secret id (or name, for AWS, Azure, K8s or Hashi vault targets) to get from the Universal Secrets Connector
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 /// Name of the Universal Secrets Connector item
33 #[serde(rename = "usc-name")]
34 pub usc_name: String,
35 /// The version id (if not specified, will retrieve the last version)
36 #[serde(rename = "version-id", skip_serializing_if = "Option::is_none")]
37 pub version_id: Option<String>,
38}
39
40impl UscGet {
41 /// uscGet is a command that gets the value and internal details of a secret from a Universal Secrets Connector
42 pub fn new(secret_id: String, usc_name: String) -> UscGet {
43 UscGet {
44 json: None,
45 namespace: None,
46 secret_id,
47 token: None,
48 uid_token: None,
49 usc_name,
50 version_id: None,
51 }
52 }
53}
54