Skip to main content

akeyless_api/models/
static_secret_delete_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 StaticSecretDeleteSync {
16    /// Delete the secret from the remote target USC as well
17    #[serde(rename = "delete-from-usc", skip_serializing_if = "Option::is_none")]
18    pub delete_from_usc: Option<bool>,
19    /// Set output format to JSON
20    #[serde(rename = "json", skip_serializing_if = "Option::is_none")]
21    pub json: Option<bool>,
22    /// Static secret name
23    #[serde(rename = "name")]
24    pub name: String,
25    /// Remote Secret Name to disambiguate when multiple syncs exist under the same USC
26    #[serde(rename = "remote-secret-name", skip_serializing_if = "Option::is_none")]
27    pub remote_secret_name: Option<String>,
28    /// Authentication token (see `/auth` and `/configure`)
29    #[serde(rename = "token", skip_serializing_if = "Option::is_none")]
30    pub token: Option<String>,
31    /// The universal identity token, Required only for universal_identity authentication
32    #[serde(rename = "uid-token", skip_serializing_if = "Option::is_none")]
33    pub uid_token: Option<String>,
34    /// Universal Secret Connector name
35    #[serde(rename = "usc-name")]
36    pub usc_name: String,
37}
38
39impl StaticSecretDeleteSync {
40    pub fn new(name: String, usc_name: String) -> StaticSecretDeleteSync {
41        StaticSecretDeleteSync {
42            delete_from_usc: None,
43            json: None,
44            name,
45            remote_secret_name: None,
46            token: None,
47            uid_token: None,
48            usc_name,
49        }
50    }
51}
52