Skip to main content

akeyless_api/models/
target_create_gitlab.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 TargetCreateGitlab {
16    /// Description of the object
17    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
18    pub description: Option<String>,
19    /// Gitlab access token
20    #[serde(rename = "gitlab-access-token", skip_serializing_if = "Option::is_none")]
21    pub gitlab_access_token: Option<String>,
22    /// Gitlab tls certificate (base64 encoded)
23    #[serde(rename = "gitlab-certificate", skip_serializing_if = "Option::is_none")]
24    pub gitlab_certificate: Option<String>,
25    /// Gitlab base url
26    #[serde(rename = "gitlab-url", skip_serializing_if = "Option::is_none")]
27    pub gitlab_url: Option<String>,
28    /// Set output format to JSON
29    #[serde(rename = "json", skip_serializing_if = "Option::is_none")]
30    pub json: Option<bool>,
31    /// The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used)
32    #[serde(rename = "key", skip_serializing_if = "Option::is_none")]
33    pub key: Option<String>,
34    /// Set the maximum number of versions, limited by the account settings defaults.
35    #[serde(rename = "max-versions", skip_serializing_if = "Option::is_none")]
36    pub max_versions: Option<String>,
37    /// Target name
38    #[serde(rename = "name")]
39    pub name: String,
40    /// Authentication token (see `/auth` and `/configure`)
41    #[serde(rename = "token", skip_serializing_if = "Option::is_none")]
42    pub token: Option<String>,
43    /// The universal identity token, Required only for universal_identity authentication
44    #[serde(rename = "uid-token", skip_serializing_if = "Option::is_none")]
45    pub uid_token: Option<String>,
46}
47
48impl TargetCreateGitlab {
49    pub fn new(name: String) -> TargetCreateGitlab {
50        TargetCreateGitlab {
51            description: None,
52            gitlab_access_token: None,
53            gitlab_certificate: None,
54            gitlab_url: None,
55            json: None,
56            key: None,
57            max_versions: None,
58            name,
59            token: None,
60            uid_token: None,
61        }
62    }
63}
64