Skip to main content

akeyless_api/models/
rotated_secret_update_splunk.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/// RotatedSecretUpdateSplunk : rotatedSecretUpdateSplunk is a command that updates a rotated secret for a Splunk target. It reuses the rotator type chosen at create time.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct RotatedSecretUpdateSplunk {
17    /// List of the new tags that will be attached to this item
18    #[serde(rename = "add-tag", skip_serializing_if = "Option::is_none")]
19    pub add_tag: Option<Vec<String>>,
20    /// Token audience for Splunk token creation (relevant only for rotator-type=token)
21    #[serde(rename = "audience", skip_serializing_if = "Option::is_none")]
22    pub audience: Option<String>,
23    /// The credentials to connect with use-user-creds/use-target-creds
24    #[serde(rename = "authentication-credentials", skip_serializing_if = "Option::is_none")]
25    pub authentication_credentials: Option<String>,
26    /// Whether to automatically rotate every --rotation-interval days, or disable existing automatic rotation [true/false]
27    #[serde(rename = "auto-rotate", skip_serializing_if = "Option::is_none")]
28    pub auto_rotate: Option<String>,
29    /// Protection from accidental deletion of this object [true/false]
30    #[serde(rename = "delete_protection", skip_serializing_if = "Option::is_none")]
31    pub delete_protection: Option<String>,
32    /// Description of the object
33    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
34    pub description: Option<String>,
35    /// Token expiration date in YYYY-MM-DD format (relevant only for rotator-type=token when manual rotation is selected). Time will be set to 00:00 UTC.
36    #[serde(rename = "expiration-date", skip_serializing_if = "Option::is_none")]
37    pub expiration_date: Option<String>,
38    /// For rotator-type=hec-token, optionally set/replace the stored HEC token value.
39    #[serde(rename = "hec-token", skip_serializing_if = "Option::is_none")]
40    pub hec_token: Option<String>,
41    /// Additional custom fields to associate with the item
42    #[serde(rename = "item-custom-fields", skip_serializing_if = "Option::is_none")]
43    pub item_custom_fields: Option<std::collections::HashMap<String, String>>,
44    /// Set output format to JSON
45    #[serde(rename = "json", skip_serializing_if = "Option::is_none")]
46    pub json: Option<bool>,
47    /// Whether to keep previous version [true/false]. If not set, use default according to account settings
48    #[serde(rename = "keep-prev-version", skip_serializing_if = "Option::is_none")]
49    pub keep_prev_version: Option<String>,
50    /// The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used)
51    #[serde(rename = "key", skip_serializing_if = "Option::is_none")]
52    pub key: Option<String>,
53    /// Set the maximum number of versions, limited by the account settings defaults.
54    #[serde(rename = "max-versions", skip_serializing_if = "Option::is_none")]
55    pub max_versions: Option<String>,
56    /// Rotated secret name
57    #[serde(rename = "name")]
58    pub name: String,
59    /// New item name
60    #[serde(rename = "new-name", skip_serializing_if = "Option::is_none")]
61    pub new_name: Option<String>,
62    /// The length of the password to be generated
63    #[serde(rename = "password-length", skip_serializing_if = "Option::is_none")]
64    pub password_length: Option<String>,
65    /// List of the existent tags that will be removed from this item
66    #[serde(rename = "rm-tag", skip_serializing_if = "Option::is_none")]
67    pub rm_tag: Option<Vec<String>>,
68    /// How many days before the rotation of the item would you like to be notified
69    #[serde(rename = "rotation-event-in", skip_serializing_if = "Option::is_none")]
70    pub rotation_event_in: Option<Vec<String>>,
71    /// The Hour of the rotation in UTC
72    #[serde(rename = "rotation-hour", skip_serializing_if = "Option::is_none")]
73    pub rotation_hour: Option<i32>,
74    /// The number of days to wait between every automatic key rotation (1-365)
75    #[serde(rename = "rotation-interval", skip_serializing_if = "Option::is_none")]
76    pub rotation_interval: Option<String>,
77    /// For rotator-type=token, optionally set/replace the stored Splunk authentication token value.
78    #[serde(rename = "splunk-token", skip_serializing_if = "Option::is_none")]
79    pub splunk_token: Option<String>,
80    /// Authentication token (see `/auth` and `/configure`)
81    #[serde(rename = "token", skip_serializing_if = "Option::is_none")]
82    pub token: Option<String>,
83    /// For rotator-type=token, specify the Splunk username that the new token should be issued for. (Splunk 10 requires name=<token-owner> when creating auth tokens.)
84    #[serde(rename = "token-owner", skip_serializing_if = "Option::is_none")]
85    pub token_owner: Option<String>,
86    /// The universal identity token, Required only for universal_identity authentication
87    #[serde(rename = "uid-token", skip_serializing_if = "Option::is_none")]
88    pub uid_token: Option<String>,
89}
90
91impl RotatedSecretUpdateSplunk {
92    /// rotatedSecretUpdateSplunk is a command that updates a rotated secret for a Splunk target. It reuses the rotator type chosen at create time.
93    pub fn new(name: String) -> RotatedSecretUpdateSplunk {
94        RotatedSecretUpdateSplunk {
95            add_tag: None,
96            audience: None,
97            authentication_credentials: None,
98            auto_rotate: None,
99            delete_protection: None,
100            description: None,
101            expiration_date: None,
102            hec_token: None,
103            item_custom_fields: None,
104            json: None,
105            keep_prev_version: None,
106            key: None,
107            max_versions: None,
108            name,
109            new_name: None,
110            password_length: None,
111            rm_tag: None,
112            rotation_event_in: None,
113            rotation_hour: None,
114            rotation_interval: None,
115            splunk_token: None,
116            token: None,
117            token_owner: None,
118            uid_token: None,
119        }
120    }
121}
122