akeyless_api/models/uid_generate_token.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/// UidGenerateToken : uidGenerateToken is a command that generates a new token using Akeyless Universal Identity.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct UidGenerateToken {
17 /// The universal identity auth method name
18 #[serde(rename = "auth-method-name")]
19 pub auth_method_name: String,
20 /// Set output format to JSON
21 #[serde(rename = "json", skip_serializing_if = "Option::is_none")]
22 pub json: Option<bool>,
23 /// Authentication token (see `/auth` and `/configure`)
24 #[serde(rename = "token", skip_serializing_if = "Option::is_none")]
25 pub token: Option<String>,
26 /// The universal identity token, Required only for universal_identity authentication
27 #[serde(rename = "uid-token", skip_serializing_if = "Option::is_none")]
28 pub uid_token: Option<String>,
29}
30
31impl UidGenerateToken {
32 /// uidGenerateToken is a command that generates a new token using Akeyless Universal Identity.
33 pub fn new(auth_method_name: String) -> UidGenerateToken {
34 UidGenerateToken {
35 auth_method_name,
36 json: None,
37 token: None,
38 uid_token: None,
39 }
40 }
41}
42