Skip to main content

akeyless_api/models/
rotated_secret_update_redshift.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 RotatedSecretUpdateRedshift {
16    /// List of the new tags that will be attached to this item
17    #[serde(rename = "add-tag", skip_serializing_if = "Option::is_none")]
18    pub add_tag: Option<Vec<String>>,
19    /// The credentials to connect with use-user-creds/use-target-creds
20    #[serde(rename = "authentication-credentials", skip_serializing_if = "Option::is_none")]
21    pub authentication_credentials: Option<String>,
22    /// Whether to automatically rotate every --rotation-interval days, or disable existing automatic rotation [true/false]
23    #[serde(rename = "auto-rotate", skip_serializing_if = "Option::is_none")]
24    pub auto_rotate: Option<String>,
25    /// Protection from accidental deletion of this object [true/false]
26    #[serde(rename = "delete_protection", skip_serializing_if = "Option::is_none")]
27    pub delete_protection: Option<String>,
28    /// Description of the object
29    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
30    pub description: Option<String>,
31    /// Additional custom fields to associate with the item
32    #[serde(rename = "item-custom-fields", skip_serializing_if = "Option::is_none")]
33    pub item_custom_fields: Option<std::collections::HashMap<String, String>>,
34    /// Set output format to JSON
35    #[serde(rename = "json", skip_serializing_if = "Option::is_none")]
36    pub json: Option<bool>,
37    /// Whether to keep previous version [true/false]. If not set, use default according to account settings
38    #[serde(rename = "keep-prev-version", skip_serializing_if = "Option::is_none")]
39    pub keep_prev_version: Option<String>,
40    /// The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used)
41    #[serde(rename = "key", skip_serializing_if = "Option::is_none")]
42    pub key: Option<String>,
43    /// Set the maximum number of versions, limited by the account settings defaults.
44    #[serde(rename = "max-versions", skip_serializing_if = "Option::is_none")]
45    pub max_versions: Option<String>,
46    /// Rotated secret name
47    #[serde(rename = "name")]
48    pub name: String,
49    /// New item name
50    #[serde(rename = "new-name", skip_serializing_if = "Option::is_none")]
51    pub new_name: Option<String>,
52    /// The length of the password to be generated
53    #[serde(rename = "password-length", skip_serializing_if = "Option::is_none")]
54    pub password_length: Option<String>,
55    /// List of the existent tags that will be removed from this item
56    #[serde(rename = "rm-tag", skip_serializing_if = "Option::is_none")]
57    pub rm_tag: Option<Vec<String>>,
58    /// Rotate the value of the secret after SRA session ends [true/false]
59    #[serde(rename = "rotate-after-disconnect", skip_serializing_if = "Option::is_none")]
60    pub rotate_after_disconnect: Option<String>,
61    /// rotated-username password (relevant only for rotator-type=password)
62    #[serde(rename = "rotated-password", skip_serializing_if = "Option::is_none")]
63    pub rotated_password: Option<String>,
64    /// username to be rotated, if selected use-self-creds at rotator-creds-type, this username will try to rotate it's own password, if use-target-creds is selected, target credentials will be use to rotate the rotated-password (relevant only for rotator-type=password)
65    #[serde(rename = "rotated-username", skip_serializing_if = "Option::is_none")]
66    pub rotated_username: Option<String>,
67    /// How many days before the rotation of the item would you like to be notified
68    #[serde(rename = "rotation-event-in", skip_serializing_if = "Option::is_none")]
69    pub rotation_event_in: Option<Vec<String>>,
70    /// The Hour of the rotation in UTC
71    #[serde(rename = "rotation-hour", skip_serializing_if = "Option::is_none")]
72    pub rotation_hour: Option<i32>,
73    /// The number of days to wait between every automatic key rotation (1-365)
74    #[serde(rename = "rotation-interval", skip_serializing_if = "Option::is_none")]
75    pub rotation_interval: Option<String>,
76    /// The DB name (relevant only for DB Dynamic-Secret)
77    #[serde(rename = "secure-access-db-name", skip_serializing_if = "Option::is_none")]
78    pub secure_access_db_name: Option<String>,
79    /// Enable/Disable secure remote access [true/false]
80    #[serde(rename = "secure-access-enable", skip_serializing_if = "Option::is_none")]
81    pub secure_access_enable: Option<String>,
82    /// Target servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts - Relevant only for Dynamic Secrets/producers)
83    #[serde(rename = "secure-access-host", skip_serializing_if = "Option::is_none")]
84    pub secure_access_host: Option<Vec<String>>,
85    /// Authentication token (see `/auth` and `/configure`)
86    #[serde(rename = "token", skip_serializing_if = "Option::is_none")]
87    pub token: Option<String>,
88    /// The universal identity token, Required only for universal_identity authentication
89    #[serde(rename = "uid-token", skip_serializing_if = "Option::is_none")]
90    pub uid_token: Option<String>,
91}
92
93impl RotatedSecretUpdateRedshift {
94    pub fn new(name: String) -> RotatedSecretUpdateRedshift {
95        RotatedSecretUpdateRedshift {
96            add_tag: None,
97            authentication_credentials: None,
98            auto_rotate: None,
99            delete_protection: None,
100            description: None,
101            item_custom_fields: None,
102            json: None,
103            keep_prev_version: None,
104            key: None,
105            max_versions: None,
106            name,
107            new_name: None,
108            password_length: None,
109            rm_tag: None,
110            rotate_after_disconnect: None,
111            rotated_password: None,
112            rotated_username: None,
113            rotation_event_in: None,
114            rotation_hour: None,
115            rotation_interval: None,
116            secure_access_db_name: None,
117            secure_access_enable: None,
118            secure_access_host: None,
119            token: None,
120            uid_token: None,
121        }
122    }
123}
124