Skip to main content

akeyless_api/models/
target_create_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 TargetCreateGodaddy {
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    /// The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used)
41    #[serde(rename = "key", skip_serializing_if = "Option::is_none")]
42    pub key: Option<String>,
43    /// Set the maximum number of versions, limited by the account settings defaults.
44    #[serde(rename = "max-versions", skip_serializing_if = "Option::is_none")]
45    pub max_versions: Option<String>,
46    /// Target name
47    #[serde(rename = "name")]
48    pub name: String,
49    /// Secret of the api credentials to the Godaddy account
50    #[serde(rename = "secret")]
51    pub secret: String,
52    /// Timeout waiting for certificate validation in Duration format (1h - 1 Hour, 20m - 20 Minutes, 33m3s - 33 Minutes and 3 Seconds), maximum 1h.
53    #[serde(rename = "timeout", skip_serializing_if = "Option::is_none")]
54    pub timeout: Option<String>,
55    /// Authentication token (see `/auth` and `/configure`)
56    #[serde(rename = "token", skip_serializing_if = "Option::is_none")]
57    pub token: Option<String>,
58    /// The universal identity token, Required only for universal_identity authentication
59    #[serde(rename = "uid-token", skip_serializing_if = "Option::is_none")]
60    pub uid_token: Option<String>,
61}
62
63impl TargetCreateGodaddy {
64    pub fn new(api_key: String, imap_fqdn: String, imap_password: String, imap_username: String, name: String, secret: String) -> TargetCreateGodaddy {
65        TargetCreateGodaddy {
66            api_key,
67            customer_id: None,
68            description: None,
69            imap_fqdn,
70            imap_password,
71            imap_port: None,
72            imap_username,
73            json: None,
74            key: None,
75            max_versions: None,
76            name,
77            secret,
78            timeout: None,
79            token: None,
80            uid_token: None,
81        }
82    }
83}
84