Skip to main content

akeyless_api/models/
get_certificate_value.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 GetCertificateValue {
16    /// The parent PKI Certificate Issuer's name of the certificate, required when used with display-id and token
17    #[serde(rename = "cert-issuer-name", skip_serializing_if = "Option::is_none")]
18    pub cert_issuer_name: Option<String>,
19    /// Certificate display ID
20    #[serde(rename = "display-id", skip_serializing_if = "Option::is_none")]
21    pub display_id: Option<String>,
22    /// Retrieve the Secret value without checking the Gateway's cache [true/false]. This flag is only relevant when using the RestAPI
23    #[serde(rename = "ignore-cache", skip_serializing_if = "Option::is_none")]
24    pub ignore_cache: Option<String>,
25    /// Token for getting the issued certificate
26    #[serde(rename = "issuance-token", skip_serializing_if = "Option::is_none")]
27    pub issuance_token: Option<String>,
28    /// Set output format to JSON
29    #[serde(rename = "json", skip_serializing_if = "Option::is_none")]
30    pub json: Option<bool>,
31    /// Certificate name
32    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
33    pub name: 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    /// Certificate version
41    #[serde(rename = "version", skip_serializing_if = "Option::is_none")]
42    pub version: Option<i32>,
43}
44
45impl GetCertificateValue {
46    pub fn new() -> GetCertificateValue {
47        GetCertificateValue {
48            cert_issuer_name: None,
49            display_id: None,
50            ignore_cache: None,
51            issuance_token: None,
52            json: None,
53            name: None,
54            token: None,
55            uid_token: None,
56            version: None,
57        }
58    }
59}
60