Skip to main content

akeyless_api/models/
target_create_sectigo.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/// TargetCreateSectigo : targetCreateSectigo is a command that creates a new Sectigo target
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct TargetCreateSectigo {
17    /// Certificate Profile ID in Sectigo account
18    #[serde(rename = "certificate-profile-id")]
19    pub certificate_profile_id: i64,
20    /// Customer Uri of the Sectigo account
21    #[serde(rename = "customer-uri")]
22    pub customer_uri: String,
23    /// Description of the object
24    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
25    pub description: Option<String>,
26    /// External Requester - a comma separated list of emails
27    #[serde(rename = "external-requester")]
28    pub external_requester: String,
29    /// Set output format to JSON
30    #[serde(rename = "json", skip_serializing_if = "Option::is_none")]
31    pub json: Option<bool>,
32    /// The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used)
33    #[serde(rename = "key", skip_serializing_if = "Option::is_none")]
34    pub key: Option<String>,
35    /// Set the maximum number of versions, limited by the account settings defaults.
36    #[serde(rename = "max-versions", skip_serializing_if = "Option::is_none")]
37    pub max_versions: Option<String>,
38    /// Target name
39    #[serde(rename = "name")]
40    pub name: String,
41    /// Organization ID in Sectigo account
42    #[serde(rename = "organization-id")]
43    pub organization_id: i64,
44    /// Password of the Sectigo account user
45    #[serde(rename = "password")]
46    pub password: String,
47    /// Timeout waiting for certificate validation in Duration format (1h - 1 Hour, 20m - 20 Minutes, 33m3s - 33 Minutes and 3 Seconds), maximum 1h.
48    #[serde(rename = "timeout", skip_serializing_if = "Option::is_none")]
49    pub timeout: 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    /// Username of the Sectigo account
57    #[serde(rename = "username")]
58    pub username: String,
59}
60
61impl TargetCreateSectigo {
62    /// targetCreateSectigo is a command that creates a new Sectigo target
63    pub fn new(certificate_profile_id: i64, customer_uri: String, external_requester: String, name: String, organization_id: i64, password: String, username: String) -> TargetCreateSectigo {
64        TargetCreateSectigo {
65            certificate_profile_id,
66            customer_uri,
67            description: None,
68            external_requester,
69            json: None,
70            key: None,
71            max_versions: None,
72            name,
73            organization_id,
74            password,
75            timeout: None,
76            token: None,
77            uid_token: None,
78            username,
79        }
80    }
81}
82