Skip to main content

akeyless_api/models/
uid_rotate_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/// UidRotateToken : uidRotateToken is a command that rotates an Akeyless Universal Identity token.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct UidRotateToken {
17    /// Create a new child token with default parameters
18    #[serde(rename = "fork", skip_serializing_if = "Option::is_none")]
19    pub fork: Option<bool>,
20    /// Set output format to JSON
21    #[serde(rename = "json", skip_serializing_if = "Option::is_none")]
22    pub json: Option<bool>,
23    /// The new rotated token to send manual ack for (with uid-token=the-orig-token)
24    #[serde(rename = "send-manual-ack-token", skip_serializing_if = "Option::is_none")]
25    pub send_manual_ack_token: Option<String>,
26    /// The Universal identity token
27    #[serde(rename = "uid-token", skip_serializing_if = "Option::is_none")]
28    pub uid_token: Option<String>,
29    /// Disable automatic ack
30    #[serde(rename = "with-manual-ack", skip_serializing_if = "Option::is_none")]
31    pub with_manual_ack: Option<bool>,
32}
33
34impl UidRotateToken {
35    /// uidRotateToken is a command that rotates an Akeyless Universal Identity token.
36    pub fn new() -> UidRotateToken {
37        UidRotateToken {
38            fork: None,
39            json: None,
40            send_manual_ack_token: None,
41            uid_token: None,
42            with_manual_ack: None,
43        }
44    }
45}
46