Skip to main content

akeyless_api/models/
create_dockerhub_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/// CreateDockerhubTarget : createDockerhubTarget is a command that creates a new target. [Deprecated: Use target-create-dockerhub command]
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct CreateDockerhubTarget {
17    /// Deprecated - use description
18    #[serde(rename = "comment", skip_serializing_if = "Option::is_none")]
19    pub comment: Option<String>,
20    /// Description of the object
21    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
22    pub description: Option<String>,
23    /// Password for docker repository
24    #[serde(rename = "dockerhub-password", skip_serializing_if = "Option::is_none")]
25    pub dockerhub_password: Option<String>,
26    /// Username for docker repository
27    #[serde(rename = "dockerhub-username", skip_serializing_if = "Option::is_none")]
28    pub dockerhub_username: 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    /// Target name
39    #[serde(rename = "name")]
40    pub name: String,
41    /// Authentication token (see `/auth` and `/configure`)
42    #[serde(rename = "token", skip_serializing_if = "Option::is_none")]
43    pub token: Option<String>,
44    /// The universal identity token, Required only for universal_identity authentication
45    #[serde(rename = "uid-token", skip_serializing_if = "Option::is_none")]
46    pub uid_token: Option<String>,
47}
48
49impl CreateDockerhubTarget {
50    /// createDockerhubTarget is a command that creates a new target. [Deprecated: Use target-create-dockerhub command]
51    pub fn new(name: String) -> CreateDockerhubTarget {
52        CreateDockerhubTarget {
53            comment: None,
54            description: None,
55            dockerhub_password: None,
56            dockerhub_username: None,
57            json: None,
58            key: None,
59            max_versions: None,
60            name,
61            token: None,
62            uid_token: None,
63        }
64    }
65}
66