Skip to main content

akeyless_api/models/
static_secret_sync.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 StaticSecretSync {
16    /// Delete the secret from remote secret manager (for association create/update)
17    #[serde(rename = "DeleteRemote", skip_serializing_if = "Option::is_none")]
18    pub delete_remote: Option<bool>,
19    /// JQ expression to filter or transform the secret value
20    #[serde(rename = "filter-secret-value", skip_serializing_if = "Option::is_none")]
21    pub filter_secret_value: Option<String>,
22    /// Set output format to JSON
23    #[serde(rename = "json", skip_serializing_if = "Option::is_none")]
24    pub json: Option<bool>,
25    /// Static secret name
26    #[serde(rename = "name")]
27    pub name: String,
28    /// Vault namespace, releavnt only for Hashicorp Vault Target
29    #[serde(rename = "namespace", skip_serializing_if = "Option::is_none")]
30    pub namespace: Option<String>,
31    /// Remote Secret Name that will be synced on the remote endpoint
32    #[serde(rename = "remote-secret-name", skip_serializing_if = "Option::is_none")]
33    pub remote_secret_name: Option<String>,
34    /// Authentication token (see `/auth` and `/configure`)
35    #[serde(rename = "token", skip_serializing_if = "Option::is_none")]
36    pub token: Option<String>,
37    /// The universal identity token, Required only for universal_identity authentication
38    #[serde(rename = "uid-token", skip_serializing_if = "Option::is_none")]
39    pub uid_token: Option<String>,
40    /// Universal Secret Connector name, If not provided all attached USC's will be synced
41    #[serde(rename = "usc-name", skip_serializing_if = "Option::is_none")]
42    pub usc_name: Option<String>,
43}
44
45impl StaticSecretSync {
46    pub fn new(name: String) -> StaticSecretSync {
47        StaticSecretSync {
48            delete_remote: None,
49            filter_secret_value: None,
50            json: None,
51            name,
52            namespace: None,
53            remote_secret_name: None,
54            token: None,
55            uid_token: None,
56            usc_name: None,
57        }
58    }
59}
60