Skip to main content

akeyless_api/models/
folder_update.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/// FolderUpdate : folderUpdate is a command that updates folder
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct FolderUpdate {
17    /// for personal password manager
18    #[serde(rename = "accessibility", skip_serializing_if = "Option::is_none")]
19    pub accessibility: Option<String>,
20    /// List of the new tags that will be attached to this folder
21    #[serde(rename = "add-tag", skip_serializing_if = "Option::is_none")]
22    pub add_tag: Option<Vec<String>>,
23    /// Protection from accidental deletion of this object [true/false]
24    #[serde(rename = "delete_protection", skip_serializing_if = "Option::is_none")]
25    pub delete_protection: Option<String>,
26    /// Description of the object
27    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
28    pub description: Option<String>,
29    /// Set output format to JSON
30    #[serde(rename = "json", skip_serializing_if = "Option::is_none")]
31    pub json: Option<bool>,
32    /// Folder name
33    #[serde(rename = "name")]
34    pub name: String,
35    /// List of the existent tags that will be removed from this folder
36    #[serde(rename = "rm-tag", skip_serializing_if = "Option::is_none")]
37    pub rm_tag: Option<Vec<String>>,
38    /// Authentication token (see `/auth` and `/configure`)
39    #[serde(rename = "token", skip_serializing_if = "Option::is_none")]
40    pub token: Option<String>,
41    #[serde(rename = "type", skip_serializing_if = "Option::is_none")]
42    pub r#type: Option<String>,
43    /// The universal identity token, Required only for universal_identity authentication
44    #[serde(rename = "uid-token", skip_serializing_if = "Option::is_none")]
45    pub uid_token: Option<String>,
46}
47
48impl FolderUpdate {
49    /// folderUpdate is a command that updates folder
50    pub fn new(name: String) -> FolderUpdate {
51        FolderUpdate {
52            accessibility: None,
53            add_tag: None,
54            delete_protection: None,
55            description: None,
56            json: None,
57            name,
58            rm_tag: None,
59            token: None,
60            r#type: None,
61            uid_token: None,
62        }
63    }
64}
65