Skip to main content

akeyless_api/models/
renew_certificate.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 RenewCertificate {
16    /// The name of the PKI certificate issuer
17    #[serde(rename = "cert-issuer-name", skip_serializing_if = "Option::is_none")]
18    pub cert_issuer_name: Option<String>,
19    /// Generate a new key as part of the certificate renewal
20    #[serde(rename = "generate-key", skip_serializing_if = "Option::is_none")]
21    pub generate_key: Option<bool>,
22    /// Certificate item id
23    #[serde(rename = "item-id", skip_serializing_if = "Option::is_none")]
24    pub item_id: Option<i64>,
25    /// Set output format to JSON
26    #[serde(rename = "json", skip_serializing_if = "Option::is_none")]
27    pub json: Option<bool>,
28    /// Certificate name
29    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
30    pub name: Option<String>,
31    /// Authentication token (see `/auth` and `/configure`)
32    #[serde(rename = "token", skip_serializing_if = "Option::is_none")]
33    pub token: Option<String>,
34    /// The universal identity token, Required only for universal_identity authentication
35    #[serde(rename = "uid-token", skip_serializing_if = "Option::is_none")]
36    pub uid_token: Option<String>,
37}
38
39impl RenewCertificate {
40    pub fn new() -> RenewCertificate {
41        RenewCertificate {
42            cert_issuer_name: None,
43            generate_key: None,
44            item_id: None,
45            json: None,
46            name: None,
47            token: None,
48            uid_token: None,
49        }
50    }
51}
52