akeyless_api/models/usc_delete.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/// UscDelete : uscDelete is a command that deletes a secret from a Universal Secrets Connector
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct UscDelete {
17 /// Force delete objects that are soft deleted by default (relavent only for Azure target)
18 #[serde(rename = "force-delete", skip_serializing_if = "Option::is_none")]
19 pub force_delete: Option<bool>,
20 /// Set output format to JSON
21 #[serde(rename = "json", skip_serializing_if = "Option::is_none")]
22 pub json: Option<bool>,
23 /// The namespace (relevant for Hashi vault target)
24 #[serde(rename = "namespace", skip_serializing_if = "Option::is_none")]
25 pub namespace: Option<String>,
26 /// The universal secrets id (or name, for AWS, Azure, K8s or Hashi vault targets) to delete
27 #[serde(rename = "secret-id")]
28 pub secret_id: String,
29 /// Authentication token (see `/auth` and `/configure`)
30 #[serde(rename = "token", skip_serializing_if = "Option::is_none")]
31 pub token: Option<String>,
32 /// The universal identity token, Required only for universal_identity authentication
33 #[serde(rename = "uid-token", skip_serializing_if = "Option::is_none")]
34 pub uid_token: Option<String>,
35 /// Name of the Universal Secrets Connector item
36 #[serde(rename = "usc-name")]
37 pub usc_name: String,
38}
39
40impl UscDelete {
41 /// uscDelete is a command that deletes a secret from a Universal Secrets Connector
42 pub fn new(secret_id: String, usc_name: String) -> UscDelete {
43 UscDelete {
44 force_delete: None,
45 json: None,
46 namespace: None,
47 secret_id,
48 token: None,
49 uid_token: None,
50 usc_name,
51 }
52 }
53}
54