Skip to main content

akeyless_api/models/
rotated_secret_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 RotatedSecretCreateDockerhub {
16    /// The credentials to connect with use-user-creds/use-target-creds
17    #[serde(rename = "authentication-credentials", skip_serializing_if = "Option::is_none")]
18    pub authentication_credentials: Option<String>,
19    /// Whether to automatically rotate every --rotation-interval days, or disable existing automatic rotation [true/false]
20    #[serde(rename = "auto-rotate", skip_serializing_if = "Option::is_none")]
21    pub auto_rotate: Option<String>,
22    /// Protection from accidental deletion of this object [true/false]
23    #[serde(rename = "delete_protection", skip_serializing_if = "Option::is_none")]
24    pub delete_protection: Option<String>,
25    /// Description of the object
26    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
27    pub description: Option<String>,
28    /// Additional custom fields to associate with the item
29    #[serde(rename = "item-custom-fields", skip_serializing_if = "Option::is_none")]
30    pub item_custom_fields: Option<std::collections::HashMap<String, String>>,
31    /// Set output format to JSON
32    #[serde(rename = "json", skip_serializing_if = "Option::is_none")]
33    pub json: Option<bool>,
34    /// The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used)
35    #[serde(rename = "key", skip_serializing_if = "Option::is_none")]
36    pub key: Option<String>,
37    /// Set the maximum number of versions, limited by the account settings defaults.
38    #[serde(rename = "max-versions", skip_serializing_if = "Option::is_none")]
39    pub max_versions: Option<String>,
40    /// Rotated secret name
41    #[serde(rename = "name")]
42    pub name: String,
43    /// The length of the password to be generated
44    #[serde(rename = "password-length", skip_serializing_if = "Option::is_none")]
45    pub password_length: Option<String>,
46    /// How many days before the rotation of the item would you like to be notified
47    #[serde(rename = "rotation-event-in", skip_serializing_if = "Option::is_none")]
48    pub rotation_event_in: Option<Vec<String>>,
49    /// The Hour of the rotation in UTC
50    #[serde(rename = "rotation-hour", skip_serializing_if = "Option::is_none")]
51    pub rotation_hour: Option<i32>,
52    /// The number of days to wait between every automatic key rotation (1-365)
53    #[serde(rename = "rotation-interval", skip_serializing_if = "Option::is_none")]
54    pub rotation_interval: Option<String>,
55    /// Add tags attached to this object
56    #[serde(rename = "tags", skip_serializing_if = "Option::is_none")]
57    pub tags: Option<Vec<String>>,
58    /// The target name to associate
59    #[serde(rename = "target-name")]
60    pub target_name: String,
61    /// Authentication token (see `/auth` and `/configure`)
62    #[serde(rename = "token", skip_serializing_if = "Option::is_none")]
63    pub token: Option<String>,
64    /// The universal identity token, Required only for universal_identity authentication
65    #[serde(rename = "uid-token", skip_serializing_if = "Option::is_none")]
66    pub uid_token: Option<String>,
67}
68
69impl RotatedSecretCreateDockerhub {
70    pub fn new(name: String, target_name: String) -> RotatedSecretCreateDockerhub {
71        RotatedSecretCreateDockerhub {
72            authentication_credentials: None,
73            auto_rotate: None,
74            delete_protection: None,
75            description: None,
76            item_custom_fields: None,
77            json: None,
78            key: None,
79            max_versions: None,
80            name,
81            password_length: None,
82            rotation_event_in: None,
83            rotation_hour: None,
84            rotation_interval: None,
85            tags: None,
86            target_name,
87            token: None,
88            uid_token: None,
89        }
90    }
91}
92