Skip to main content

akeyless_api/models/
folder_get.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/// FolderGet : folderGet is a command that get folder
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct FolderGet {
17    /// for personal password manager
18    #[serde(rename = "accessibility", skip_serializing_if = "Option::is_none")]
19    pub accessibility: Option<String>,
20    /// Set output format to JSON
21    #[serde(rename = "json", skip_serializing_if = "Option::is_none")]
22    pub json: Option<bool>,
23    /// Folder name
24    #[serde(rename = "name")]
25    pub name: String,
26    /// Authentication token (see `/auth` and `/configure`)
27    #[serde(rename = "token", skip_serializing_if = "Option::is_none")]
28    pub token: Option<String>,
29    #[serde(rename = "type", skip_serializing_if = "Option::is_none")]
30    pub r#type: Option<String>,
31    /// The universal identity token, Required only for universal_identity authentication
32    #[serde(rename = "uid-token", skip_serializing_if = "Option::is_none")]
33    pub uid_token: Option<String>,
34}
35
36impl FolderGet {
37    /// folderGet is a command that get folder
38    pub fn new(name: String) -> FolderGet {
39        FolderGet {
40            accessibility: None,
41            json: None,
42            name,
43            token: None,
44            r#type: None,
45            uid_token: None,
46        }
47    }
48}
49