Skip to main content

akeyless_api/models/
usc_list.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/// UscList : uscList is a command that lists the secrets of a Universal Secrets Connector
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct UscList {
17    /// Set output format to JSON
18    #[serde(rename = "json", skip_serializing_if = "Option::is_none")]
19    pub json: Option<bool>,
20    #[serde(rename = "object-type", skip_serializing_if = "Option::is_none")]
21    pub object_type: Option<String>,
22    /// Authentication token (see `/auth` and `/configure`)
23    #[serde(rename = "token", skip_serializing_if = "Option::is_none")]
24    pub token: Option<String>,
25    /// The universal identity token, Required only for universal_identity authentication
26    #[serde(rename = "uid-token", skip_serializing_if = "Option::is_none")]
27    pub uid_token: Option<String>,
28    /// Name of the Universal Secrets Connector item
29    #[serde(rename = "usc-name")]
30    pub usc_name: String,
31}
32
33impl UscList {
34    /// uscList is a command that lists the secrets of a Universal Secrets Connector
35    pub fn new(usc_name: String) -> UscList {
36        UscList {
37            json: None,
38            object_type: None,
39            token: None,
40            uid_token: None,
41            usc_name,
42        }
43    }
44}
45