Skip to main content

akeyless_api/models/
sign_gpg.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 SignGpg {
16    /// The display id of the key to use in the encryption process
17    #[serde(rename = "display-id", skip_serializing_if = "Option::is_none")]
18    pub display_id: Option<String>,
19    /// The item id of the key to use in the encryption process
20    #[serde(rename = "item-id", skip_serializing_if = "Option::is_none")]
21    pub item_id: Option<i64>,
22    /// Set output format to JSON
23    #[serde(rename = "json", skip_serializing_if = "Option::is_none")]
24    pub json: Option<bool>,
25    /// The name of the key to use in the encryption process
26    #[serde(rename = "key-name")]
27    pub key_name: String,
28    /// The message to be signed in base64 format
29    #[serde(rename = "message")]
30    pub message: String,
31    /// Passphrase that was used to generate the key
32    #[serde(rename = "passphrase", skip_serializing_if = "Option::is_none")]
33    pub passphrase: 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}
41
42impl SignGpg {
43    pub fn new(key_name: String, message: String) -> SignGpg {
44        SignGpg {
45            display_id: None,
46            item_id: None,
47            json: None,
48            key_name,
49            message,
50            passphrase: None,
51            token: None,
52            uid_token: None,
53        }
54    }
55}
56