Skip to main content

akeyless_api/models/
rotate_secret.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#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct RotateSecret {
16    #[serde(rename = "RotateAllServicesBoolean", skip_serializing_if = "Option::is_none")]
17    pub rotate_all_services_boolean: Option<bool>,
18    /// Set output format to JSON
19    #[serde(rename = "json", skip_serializing_if = "Option::is_none")]
20    pub json: Option<bool>,
21    /// Secret name (Rotated Secret or Custom Dynamic Secret)
22    #[serde(rename = "name")]
23    pub name: String,
24    /// Rotate all associated services
25    #[serde(rename = "rotate-all-services", skip_serializing_if = "Option::is_none")]
26    pub rotate_all_services: Option<String>,
27    /// Authentication token (see `/auth` and `/configure`)
28    #[serde(rename = "token", skip_serializing_if = "Option::is_none")]
29    pub token: Option<String>,
30    /// The universal identity token, Required only for universal_identity authentication
31    #[serde(rename = "uid-token", skip_serializing_if = "Option::is_none")]
32    pub uid_token: Option<String>,
33}
34
35impl RotateSecret {
36    pub fn new(name: String) -> RotateSecret {
37        RotateSecret {
38            rotate_all_services_boolean: None,
39            json: None,
40            name,
41            rotate_all_services: None,
42            token: None,
43            uid_token: None,
44        }
45    }
46}
47