Skip to main content

akeyless_api/models/
create_global_sign_atlas_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/// CreateGlobalSignAtlasTarget : createGlobalSignAtlasTarget is a command that creates a new target. [Deprecated: Use target-create-globalsign-atlas command]
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct CreateGlobalSignAtlasTarget {
17    /// API Key of the GlobalSign Atlas account
18    #[serde(rename = "api-key")]
19    pub api_key: String,
20    /// API Secret of the GlobalSign Atlas account
21    #[serde(rename = "api-secret")]
22    pub api_secret: String,
23    /// Deprecated - use description
24    #[serde(rename = "comment", skip_serializing_if = "Option::is_none")]
25    pub comment: Option<String>,
26    /// Description of the object
27    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
28    pub description: Option<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    /// Mutual TLS Certificate contents of the GlobalSign Atlas account encoded in base64, either mtls-cert-file-path or mtls-cert-data-base64 must be supplied
39    #[serde(rename = "mtls-cert-data-base64", skip_serializing_if = "Option::is_none")]
40    pub mtls_cert_data_base64: Option<String>,
41    /// Mutual TLS Key contents of the GlobalSign Atlas account encoded in base64, either mtls-key-file-path or mtls-data-base64 must be supplied
42    #[serde(rename = "mtls-key-data-base64", skip_serializing_if = "Option::is_none")]
43    pub mtls_key_data_base64: Option<String>,
44    /// Target name
45    #[serde(rename = "name")]
46    pub name: 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}
57
58impl CreateGlobalSignAtlasTarget {
59    /// createGlobalSignAtlasTarget is a command that creates a new target. [Deprecated: Use target-create-globalsign-atlas command]
60    pub fn new(api_key: String, api_secret: String, name: String) -> CreateGlobalSignAtlasTarget {
61        CreateGlobalSignAtlasTarget {
62            api_key,
63            api_secret,
64            comment: None,
65            description: None,
66            json: None,
67            key: None,
68            max_versions: None,
69            mtls_cert_data_base64: None,
70            mtls_key_data_base64: None,
71            name,
72            timeout: None,
73            token: None,
74            uid_token: None,
75        }
76    }
77}
78