Skip to main content

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