Skip to main content

akeyless_api/models/
target_create_ssh.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/// TargetCreateSsh : targetCreateSsh is a command that creates a new ssh target
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct TargetCreateSsh {
17    /// Description of the object
18    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
19    pub description: Option<String>,
20    /// SSH host name
21    #[serde(rename = "host", skip_serializing_if = "Option::is_none")]
22    pub host: Option<String>,
23    /// Set output format to JSON
24    #[serde(rename = "json", skip_serializing_if = "Option::is_none")]
25    pub json: Option<bool>,
26    /// The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used)
27    #[serde(rename = "key", skip_serializing_if = "Option::is_none")]
28    pub key: Option<String>,
29    /// Set the maximum number of versions, limited by the account settings defaults.
30    #[serde(rename = "max-versions", skip_serializing_if = "Option::is_none")]
31    pub max_versions: Option<String>,
32    /// Target name
33    #[serde(rename = "name")]
34    pub name: String,
35    /// SSH port
36    #[serde(rename = "port", skip_serializing_if = "Option::is_none")]
37    pub port: Option<String>,
38    /// SSH private key
39    #[serde(rename = "private-key", skip_serializing_if = "Option::is_none")]
40    pub private_key: Option<String>,
41    /// SSH private key password
42    #[serde(rename = "private-key-password", skip_serializing_if = "Option::is_none")]
43    pub private_key_password: Option<String>,
44    /// SSH password to rotate
45    #[serde(rename = "ssh-password", skip_serializing_if = "Option::is_none")]
46    pub ssh_password: Option<String>,
47    /// SSH username
48    #[serde(rename = "ssh-username", skip_serializing_if = "Option::is_none")]
49    pub ssh_username: Option<String>,
50    /// Authentication token (see `/auth` and `/configure`)
51    #[serde(rename = "token", skip_serializing_if = "Option::is_none")]
52    pub token: Option<String>,
53    /// The universal identity token, Required only for universal_identity authentication
54    #[serde(rename = "uid-token", skip_serializing_if = "Option::is_none")]
55    pub uid_token: Option<String>,
56}
57
58impl TargetCreateSsh {
59    /// targetCreateSsh is a command that creates a new ssh target
60    pub fn new(name: String) -> TargetCreateSsh {
61        TargetCreateSsh {
62            description: None,
63            host: None,
64            json: None,
65            key: None,
66            max_versions: None,
67            name,
68            port: None,
69            private_key: None,
70            private_key_password: None,
71            ssh_password: None,
72            ssh_username: None,
73            token: None,
74            uid_token: None,
75        }
76    }
77}
78