Skip to main content

akeyless_api/models/
target_create_global_sign_atlas.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 TargetCreateGlobalSignAtlas {
16    /// API Key of the GlobalSign Atlas account
17    #[serde(rename = "api-key")]
18    pub api_key: String,
19    /// API Secret of the GlobalSign Atlas account
20    #[serde(rename = "api-secret")]
21    pub api_secret: String,
22    /// Description of the object
23    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
24    pub description: Option<String>,
25    /// Set output format to JSON
26    #[serde(rename = "json", skip_serializing_if = "Option::is_none")]
27    pub json: Option<bool>,
28    /// The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used)
29    #[serde(rename = "key", skip_serializing_if = "Option::is_none")]
30    pub key: Option<String>,
31    /// Set the maximum number of versions, limited by the account settings defaults.
32    #[serde(rename = "max-versions", skip_serializing_if = "Option::is_none")]
33    pub max_versions: Option<String>,
34    /// 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
35    #[serde(rename = "mtls-cert-data-base64", skip_serializing_if = "Option::is_none")]
36    pub mtls_cert_data_base64: Option<String>,
37    /// Mutual TLS Key contents of the GlobalSign Atlas account encoded in base64, either mtls-key-file-path or mtls-data-base64 must be supplied
38    #[serde(rename = "mtls-key-data-base64", skip_serializing_if = "Option::is_none")]
39    pub mtls_key_data_base64: Option<String>,
40    /// Target name
41    #[serde(rename = "name")]
42    pub name: String,
43    /// Timeout waiting for certificate validation in Duration format (1h - 1 Hour, 20m - 20 Minutes, 33m3s - 33 Minutes and 3 Seconds), maximum 1h.
44    #[serde(rename = "timeout", skip_serializing_if = "Option::is_none")]
45    pub timeout: Option<String>,
46    /// Authentication token (see `/auth` and `/configure`)
47    #[serde(rename = "token", skip_serializing_if = "Option::is_none")]
48    pub token: Option<String>,
49    /// The universal identity token, Required only for universal_identity authentication
50    #[serde(rename = "uid-token", skip_serializing_if = "Option::is_none")]
51    pub uid_token: Option<String>,
52}
53
54impl TargetCreateGlobalSignAtlas {
55    pub fn new(api_key: String, api_secret: String, name: String) -> TargetCreateGlobalSignAtlas {
56        TargetCreateGlobalSignAtlas {
57            api_key,
58            api_secret,
59            description: None,
60            json: None,
61            key: None,
62            max_versions: None,
63            mtls_cert_data_base64: None,
64            mtls_key_data_base64: None,
65            name,
66            timeout: None,
67            token: None,
68            uid_token: None,
69        }
70    }
71}
72