Skip to main content

akeyless_api/models/
update_zero_ssl_target.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/// UpdateZeroSslTarget : updateZeroSSLTarget is a command that updates an existing target. [Deprecated: Use target-update-zerossl command]
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct UpdateZeroSslTarget {
17    /// API Key of the ZeroSSLTarget account
18    #[serde(rename = "api-key")]
19    pub api_key: String,
20    /// Deprecated - use description
21    #[serde(rename = "comment", skip_serializing_if = "Option::is_none")]
22    pub comment: Option<String>,
23    /// Description of the object
24    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
25    pub description: Option<String>,
26    /// ImapFQDN of the IMAP service, FQDN or IPv4 address. Must be FQDN if the IMAP is using TLS
27    #[serde(rename = "imap-fqdn")]
28    pub imap_fqdn: String,
29    /// ImapPassword to access the IMAP service
30    #[serde(rename = "imap-password")]
31    pub imap_password: String,
32    /// ImapPort of the IMAP service
33    #[serde(rename = "imap-port", skip_serializing_if = "Option::is_none")]
34    pub imap_port: Option<String>,
35    /// ImapValidationEmail to use when asking ZeroSSL to send a validation email, if empty will user imap-username
36    #[serde(rename = "imap-target-email", skip_serializing_if = "Option::is_none")]
37    pub imap_target_email: Option<String>,
38    /// ImapUsername to access the IMAP service
39    #[serde(rename = "imap-username")]
40    pub imap_username: String,
41    /// Set output format to JSON
42    #[serde(rename = "json", skip_serializing_if = "Option::is_none")]
43    pub json: Option<bool>,
44    /// Whether to keep previous version [true/false]. If not set, use default according to account settings
45    #[serde(rename = "keep-prev-version", skip_serializing_if = "Option::is_none")]
46    pub keep_prev_version: Option<String>,
47    /// The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used)
48    #[serde(rename = "key", skip_serializing_if = "Option::is_none")]
49    pub key: Option<String>,
50    /// Set the maximum number of versions, limited by the account settings defaults.
51    #[serde(rename = "max-versions", skip_serializing_if = "Option::is_none")]
52    pub max_versions: Option<String>,
53    /// Target name
54    #[serde(rename = "name")]
55    pub name: String,
56    /// New target name
57    #[serde(rename = "new-name", skip_serializing_if = "Option::is_none")]
58    pub new_name: Option<String>,
59    /// Timeout waiting for certificate validation in Duration format (1h - 1 Hour, 20m - 20 Minutes, 33m3s - 33 Minutes and 3 Seconds), maximum 1h.
60    #[serde(rename = "timeout", skip_serializing_if = "Option::is_none")]
61    pub timeout: Option<String>,
62    /// Authentication token (see `/auth` and `/configure`)
63    #[serde(rename = "token", skip_serializing_if = "Option::is_none")]
64    pub token: Option<String>,
65    /// The universal identity token, Required only for universal_identity authentication
66    #[serde(rename = "uid-token", skip_serializing_if = "Option::is_none")]
67    pub uid_token: Option<String>,
68    /// Deprecated
69    #[serde(rename = "update-version", skip_serializing_if = "Option::is_none")]
70    pub update_version: Option<bool>,
71}
72
73impl UpdateZeroSslTarget {
74    /// updateZeroSSLTarget is a command that updates an existing target. [Deprecated: Use target-update-zerossl command]
75    pub fn new(api_key: String, imap_fqdn: String, imap_password: String, imap_username: String, name: String) -> UpdateZeroSslTarget {
76        UpdateZeroSslTarget {
77            api_key,
78            comment: None,
79            description: None,
80            imap_fqdn,
81            imap_password,
82            imap_port: None,
83            imap_target_email: None,
84            imap_username,
85            json: None,
86            keep_prev_version: None,
87            key: None,
88            max_versions: None,
89            name,
90            new_name: None,
91            timeout: None,
92            token: None,
93            uid_token: None,
94            update_version: None,
95        }
96    }
97}
98