Skip to main content

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