Skip to main content

akeyless_api/models/
delete_roles.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 DeleteRoles {
16    /// Set output format to JSON
17    #[serde(rename = "json", skip_serializing_if = "Option::is_none")]
18    pub json: Option<bool>,
19    /// Path to delete the auth methods from
20    #[serde(rename = "path")]
21    pub path: 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}
29
30impl DeleteRoles {
31    pub fn new(path: String) -> DeleteRoles {
32        DeleteRoles {
33            json: None,
34            path,
35            token: None,
36            uid_token: None,
37        }
38    }
39}
40