akeyless_api/models/reverse_rbac.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/// ReverseRbac : reverseRBAC is a command that shows which auth methods have access to a particular object.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct ReverseRbac {
17 /// Set output format to JSON
18 #[serde(rename = "json", skip_serializing_if = "Option::is_none")]
19 pub json: Option<bool>,
20 /// Path to an object
21 #[serde(rename = "path")]
22 pub path: String,
23 /// Authentication token (see `/auth` and `/configure`)
24 #[serde(rename = "token", skip_serializing_if = "Option::is_none")]
25 pub token: Option<String>,
26 /// Type of object (item, am, role)
27 #[serde(rename = "type")]
28 pub r#type: String,
29 /// The universal identity token, Required only for universal_identity authentication
30 #[serde(rename = "uid-token", skip_serializing_if = "Option::is_none")]
31 pub uid_token: Option<String>,
32}
33
34impl ReverseRbac {
35 /// reverseRBAC is a command that shows which auth methods have access to a particular object.
36 pub fn new(path: String, r#type: String) -> ReverseRbac {
37 ReverseRbac {
38 json: None,
39 path,
40 token: None,
41 r#type,
42 uid_token: None,
43 }
44 }
45}
46