Skip to main content

akeyless_api/models/
target_create_dockerhub.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 TargetCreateDockerhub {
16    /// Description of the object
17    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
18    pub description: Option<String>,
19    /// Password for docker repository
20    #[serde(rename = "dockerhub-password", skip_serializing_if = "Option::is_none")]
21    pub dockerhub_password: Option<String>,
22    /// Username for docker repository
23    #[serde(rename = "dockerhub-username", skip_serializing_if = "Option::is_none")]
24    pub dockerhub_username: 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    /// Target name
35    #[serde(rename = "name")]
36    pub name: String,
37    /// Authentication token (see `/auth` and `/configure`)
38    #[serde(rename = "token", skip_serializing_if = "Option::is_none")]
39    pub token: Option<String>,
40    /// The universal identity token, Required only for universal_identity authentication
41    #[serde(rename = "uid-token", skip_serializing_if = "Option::is_none")]
42    pub uid_token: Option<String>,
43}
44
45impl TargetCreateDockerhub {
46    pub fn new(name: String) -> TargetCreateDockerhub {
47        TargetCreateDockerhub {
48            description: None,
49            dockerhub_password: None,
50            dockerhub_username: None,
51            json: None,
52            key: None,
53            max_versions: None,
54            name,
55            token: None,
56            uid_token: None,
57        }
58    }
59}
60