Skip to main content

akeyless_api/models/
target_create_artifactory.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 TargetCreateArtifactory {
16    /// Artifactory Admin Name
17    #[serde(rename = "artifactory-admin-name")]
18    pub artifactory_admin_name: String,
19    /// Artifactory Admin password
20    #[serde(rename = "artifactory-admin-pwd")]
21    pub artifactory_admin_pwd: String,
22    /// Base URL
23    #[serde(rename = "base-url")]
24    pub base_url: String,
25    /// Description of the object
26    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
27    pub description: 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 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 TargetCreateArtifactory {
49    pub fn new(artifactory_admin_name: String, artifactory_admin_pwd: String, base_url: String, name: String) -> TargetCreateArtifactory {
50        TargetCreateArtifactory {
51            artifactory_admin_name,
52            artifactory_admin_pwd,
53            base_url,
54            description: None,
55            json: None,
56            key: None,
57            max_versions: None,
58            name,
59            token: None,
60            uid_token: None,
61        }
62    }
63}
64