Skip to main content

akeyless_api/models/
update_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/// UpdateGlobalSignTarget : updateGlobalSignTarget is a command that updates an existing target. [Deprecated: Use target-update-globalsign command]
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct UpdateGlobalSignTarget {
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    /// Whether to keep previous version [true/false]. If not set, use default according to account settings
39    #[serde(rename = "keep-prev-version", skip_serializing_if = "Option::is_none")]
40    pub keep_prev_version: Option<String>,
41    /// The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used)
42    #[serde(rename = "key", skip_serializing_if = "Option::is_none")]
43    pub key: Option<String>,
44    /// Set the maximum number of versions, limited by the account settings defaults.
45    #[serde(rename = "max-versions", skip_serializing_if = "Option::is_none")]
46    pub max_versions: Option<String>,
47    /// Target name
48    #[serde(rename = "name")]
49    pub name: String,
50    /// New target name
51    #[serde(rename = "new-name", skip_serializing_if = "Option::is_none")]
52    pub new_name: Option<String>,
53    /// Password of the GlobalSign GCC account
54    #[serde(rename = "password")]
55    pub password: String,
56    /// Profile ID of the GlobalSign GCC account
57    #[serde(rename = "profile-id")]
58    pub profile_id: String,
59    /// Timeout waiting for certificate validation in Duration format (1h - 1 Hour, 20m - 20 Minutes, 33m3s - 33 Minutes and 3 Seconds), maximum 1h.
60    #[serde(rename = "timeout", skip_serializing_if = "Option::is_none")]
61    pub timeout: Option<String>,
62    /// Authentication token (see `/auth` and `/configure`)
63    #[serde(rename = "token", skip_serializing_if = "Option::is_none")]
64    pub token: Option<String>,
65    /// The universal identity token, Required only for universal_identity authentication
66    #[serde(rename = "uid-token", skip_serializing_if = "Option::is_none")]
67    pub uid_token: Option<String>,
68    /// Deprecated
69    #[serde(rename = "update-version", skip_serializing_if = "Option::is_none")]
70    pub update_version: Option<bool>,
71    /// Username of the GlobalSign GCC account
72    #[serde(rename = "username")]
73    pub username: String,
74}
75
76impl UpdateGlobalSignTarget {
77    /// updateGlobalSignTarget is a command that updates an existing target. [Deprecated: Use target-update-globalsign command]
78    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) -> UpdateGlobalSignTarget {
79        UpdateGlobalSignTarget {
80            comment: None,
81            contact_email,
82            contact_first_name,
83            contact_last_name,
84            contact_phone,
85            description: None,
86            json: None,
87            keep_prev_version: None,
88            key: None,
89            max_versions: None,
90            name,
91            new_name: None,
92            password,
93            profile_id,
94            timeout: None,
95            token: None,
96            uid_token: None,
97            update_version: None,
98            username,
99        }
100    }
101}
102