Skip to main content

akeyless_api/models/
target_update_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/// TargetUpdateSectigo : targetUpdateSectigo is a command that updates an existing Sectigo target
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct TargetUpdateSectigo {
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    /// Whether to keep previous version [true/false]. If not set, use default according to account settings
33    #[serde(rename = "keep-prev-version", skip_serializing_if = "Option::is_none")]
34    pub keep_prev_version: Option<String>,
35    /// The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used)
36    #[serde(rename = "key", skip_serializing_if = "Option::is_none")]
37    pub key: Option<String>,
38    /// Set the maximum number of versions, limited by the account settings defaults.
39    #[serde(rename = "max-versions", skip_serializing_if = "Option::is_none")]
40    pub max_versions: Option<String>,
41    /// Target name
42    #[serde(rename = "name")]
43    pub name: String,
44    /// New target name
45    #[serde(rename = "new-name", skip_serializing_if = "Option::is_none")]
46    pub new_name: Option<String>,
47    /// Organization ID in Sectigo account
48    #[serde(rename = "organization-id")]
49    pub organization_id: i64,
50    /// Password of the Sectigo account user
51    #[serde(rename = "password")]
52    pub password: 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 Sectigo account
63    #[serde(rename = "username")]
64    pub username: String,
65}
66
67impl TargetUpdateSectigo {
68    /// targetUpdateSectigo is a command that updates an existing Sectigo target
69    pub fn new(certificate_profile_id: i64, customer_uri: String, external_requester: String, name: String, organization_id: i64, password: String, username: String) -> TargetUpdateSectigo {
70        TargetUpdateSectigo {
71            certificate_profile_id,
72            customer_uri,
73            description: None,
74            external_requester,
75            json: None,
76            keep_prev_version: None,
77            key: None,
78            max_versions: None,
79            name,
80            new_name: None,
81            organization_id,
82            password,
83            timeout: None,
84            token: None,
85            uid_token: None,
86            username,
87        }
88    }
89}
90