Skip to main content

akeyless_api/models/
decrypt_file.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 DecryptFile {
16    #[serde(rename = "cyphertext-header", skip_serializing_if = "Option::is_none")]
17    pub cyphertext_header: Option<String>,
18    /// The display id of the key to use in the decryption process
19    #[serde(rename = "display-id", skip_serializing_if = "Option::is_none")]
20    pub display_id: Option<String>,
21    /// Path to the file to be decrypted. If not provided, the content will be taken from stdin
22    #[serde(rename = "in")]
23    pub r#in: String,
24    /// The item id of the key to use in the decryption process
25    #[serde(rename = "item-id", skip_serializing_if = "Option::is_none")]
26    pub item_id: Option<i64>,
27    /// Set output format to JSON
28    #[serde(rename = "json", skip_serializing_if = "Option::is_none")]
29    pub json: Option<bool>,
30    /// The name of the key to use in the decryption process
31    #[serde(rename = "key-name")]
32    pub key_name: String,
33    /// Path to the output file. If not provided, the output will be sent to stdout
34    #[serde(rename = "out", skip_serializing_if = "Option::is_none")]
35    pub out: Option<String>,
36    /// Authentication token (see `/auth` and `/configure`)
37    #[serde(rename = "token", skip_serializing_if = "Option::is_none")]
38    pub token: Option<String>,
39    /// The universal identity token, Required only for universal_identity authentication
40    #[serde(rename = "uid-token", skip_serializing_if = "Option::is_none")]
41    pub uid_token: Option<String>,
42    /// key version (relevant only for classic key)
43    #[serde(rename = "version", skip_serializing_if = "Option::is_none")]
44    pub version: Option<i32>,
45}
46
47impl DecryptFile {
48    pub fn new(r#in: String, key_name: String) -> DecryptFile {
49        DecryptFile {
50            cyphertext_header: None,
51            display_id: None,
52            r#in,
53            item_id: None,
54            json: None,
55            key_name,
56            out: None,
57            token: None,
58            uid_token: None,
59            version: None,
60        }
61    }
62}
63