Skip to main content

akeyless_api/models/
import_passwords.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/// ImportPasswords : importPasswords is a command that import passwords
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct ImportPasswords {
17    /// for personal password manager
18    #[serde(rename = "accessibility", skip_serializing_if = "Option::is_none")]
19    pub accessibility: Option<String>,
20    /// Password format type [LastPass/Chrome/Firefox/1password/keeper/bitwarden/dashlane]
21    #[serde(rename = "format", skip_serializing_if = "Option::is_none")]
22    pub format: Option<String>,
23    /// File path
24    #[serde(rename = "import-path")]
25    pub import_path: String,
26    /// Set output format to JSON
27    #[serde(rename = "json", skip_serializing_if = "Option::is_none")]
28    pub json: Option<bool>,
29    /// The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used)
30    #[serde(rename = "protection_key", skip_serializing_if = "Option::is_none")]
31    pub protection_key: Option<String>,
32    /// Target folder for imported passwords
33    #[serde(rename = "target-folder", skip_serializing_if = "Option::is_none")]
34    pub target_folder: Option<String>,
35    /// Authentication token (see `/auth` and `/configure`)
36    #[serde(rename = "token", skip_serializing_if = "Option::is_none")]
37    pub token: Option<String>,
38    /// The universal identity token, Required only for universal_identity authentication
39    #[serde(rename = "uid-token", skip_serializing_if = "Option::is_none")]
40    pub uid_token: Option<String>,
41    #[serde(rename = "update-mode", skip_serializing_if = "Option::is_none")]
42    pub update_mode: Option<String>,
43}
44
45impl ImportPasswords {
46    /// importPasswords is a command that import passwords
47    pub fn new(import_path: String) -> ImportPasswords {
48        ImportPasswords {
49            accessibility: None,
50            format: None,
51            import_path,
52            json: None,
53            protection_key: None,
54            target_folder: None,
55            token: None,
56            uid_token: None,
57            update_mode: None,
58        }
59    }
60}
61