Skip to main content

akeyless_api/models/
create_global_sign_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/// CreateGlobalSignTarget : createGlobalSignTarget is a command that creates a new target. [Deprecated: Use target-create-globalsign command]
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct CreateGlobalSignTarget {
17    /// Deprecated - use description
18    #[serde(rename = "comment", skip_serializing_if = "Option::is_none")]
19    pub comment: Option<String>,
20    /// Email of the GlobalSign GCC account contact
21    #[serde(rename = "contact-email")]
22    pub contact_email: String,
23    /// First name of the GlobalSign GCC account contact
24    #[serde(rename = "contact-first-name")]
25    pub contact_first_name: String,
26    /// Last name of the GlobalSign GCC account contact
27    #[serde(rename = "contact-last-name")]
28    pub contact_last_name: String,
29    /// Telephone of the GlobalSign GCC account contact
30    #[serde(rename = "contact-phone")]
31    pub contact_phone: String,
32    /// Description of the object
33    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
34    pub description: Option<String>,
35    /// Set output format to JSON
36    #[serde(rename = "json", skip_serializing_if = "Option::is_none")]
37    pub json: Option<bool>,
38    /// The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used)
39    #[serde(rename = "key", skip_serializing_if = "Option::is_none")]
40    pub key: Option<String>,
41    /// Set the maximum number of versions, limited by the account settings defaults.
42    #[serde(rename = "max-versions", skip_serializing_if = "Option::is_none")]
43    pub max_versions: Option<String>,
44    /// Target name
45    #[serde(rename = "name")]
46    pub name: String,
47    /// Password of the GlobalSign GCC account
48    #[serde(rename = "password")]
49    pub password: String,
50    /// Profile ID of the GlobalSign GCC account
51    #[serde(rename = "profile-id")]
52    pub profile_id: String,
53    /// Timeout waiting for certificate validation in Duration format (1h - 1 Hour, 20m - 20 Minutes, 33m3s - 33 Minutes and 3 Seconds), maximum 1h.
54    #[serde(rename = "timeout", skip_serializing_if = "Option::is_none")]
55    pub timeout: Option<String>,
56    /// Authentication token (see `/auth` and `/configure`)
57    #[serde(rename = "token", skip_serializing_if = "Option::is_none")]
58    pub token: Option<String>,
59    /// The universal identity token, Required only for universal_identity authentication
60    #[serde(rename = "uid-token", skip_serializing_if = "Option::is_none")]
61    pub uid_token: Option<String>,
62    /// Username of the GlobalSign GCC account
63    #[serde(rename = "username")]
64    pub username: String,
65}
66
67impl CreateGlobalSignTarget {
68    /// createGlobalSignTarget is a command that creates a new target. [Deprecated: Use target-create-globalsign command]
69    pub fn new(contact_email: String, contact_first_name: String, contact_last_name: String, contact_phone: String, name: String, password: String, profile_id: String, username: String) -> CreateGlobalSignTarget {
70        CreateGlobalSignTarget {
71            comment: None,
72            contact_email,
73            contact_first_name,
74            contact_last_name,
75            contact_phone,
76            description: None,
77            json: None,
78            key: None,
79            max_versions: None,
80            name,
81            password,
82            profile_id,
83            timeout: None,
84            token: None,
85            uid_token: None,
86            username,
87        }
88    }
89}
90