Skip to main content

akeyless_api/models/
provision_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/// ProvisionCertificate : provisionCertificate is a command that provisions a certificate content to a target
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct ProvisionCertificate {
17    /// Certificate display ID
18    #[serde(rename = "display-id", skip_serializing_if = "Option::is_none")]
19    pub display_id: Option<String>,
20    /// Certificate item ID
21    #[serde(rename = "item-id", skip_serializing_if = "Option::is_none")]
22    pub item_id: Option<i64>,
23    /// Set output format to JSON
24    #[serde(rename = "json", skip_serializing_if = "Option::is_none")]
25    pub json: Option<bool>,
26    /// Certificate name
27    #[serde(rename = "name")]
28    pub name: String,
29    /// Authentication token (see `/auth` and `/configure`)
30    #[serde(rename = "token", skip_serializing_if = "Option::is_none")]
31    pub token: Option<String>,
32    /// The universal identity token, Required only for universal_identity authentication
33    #[serde(rename = "uid-token", skip_serializing_if = "Option::is_none")]
34    pub uid_token: Option<String>,
35}
36
37impl ProvisionCertificate {
38    /// provisionCertificate is a command that provisions a certificate content to a target
39    pub fn new(name: String) -> ProvisionCertificate {
40        ProvisionCertificate {
41            display_id: None,
42            item_id: None,
43            json: None,
44            name,
45            token: None,
46            uid_token: None,
47        }
48    }
49}
50