Skip to main content

akeyless_api/models/
verify_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 VerifyGpg {
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    /// Passphrase that was used to generate the key
29    #[serde(rename = "passphrase", skip_serializing_if = "Option::is_none")]
30    pub passphrase: Option<String>,
31    /// The signature to be verified in base64 format
32    #[serde(rename = "signature")]
33    pub signature: 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 VerifyGpg {
43    pub fn new(key_name: String, signature: String) -> VerifyGpg {
44        VerifyGpg {
45            display_id: None,
46            item_id: None,
47            json: None,
48            key_name,
49            passphrase: None,
50            signature,
51            token: None,
52            uid_token: None,
53        }
54    }
55}
56