Skip to main content

akeyless_api/models/
get_ssh_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 GetSshCertificate {
16    /// The name of the SSH certificate issuer
17    #[serde(rename = "cert-issuer-name")]
18    pub cert_issuer_name: String,
19    /// The username to sign in the SSH certificate
20    #[serde(rename = "cert-username")]
21    pub cert_username: String,
22    /// Set output format to JSON
23    #[serde(rename = "json", skip_serializing_if = "Option::is_none")]
24    pub json: Option<bool>,
25    /// Set this option to output legacy ('ssh-rsa-cert-v01@openssh.com') signing algorithm name in the certificate.
26    #[serde(rename = "legacy-signing-alg-name", skip_serializing_if = "Option::is_none")]
27    pub legacy_signing_alg_name: Option<bool>,
28    /// SSH public key file contents. If this option is used, the certificate will be printed to stdout
29    #[serde(rename = "public-key-data", skip_serializing_if = "Option::is_none")]
30    pub public_key_data: 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    /// Updated certificate lifetime in seconds (must be less than the Certificate Issuer default TTL)
35    #[serde(rename = "ttl", skip_serializing_if = "Option::is_none")]
36    pub ttl: Option<i64>,
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 GetSshCertificate {
43    pub fn new(cert_issuer_name: String, cert_username: String) -> GetSshCertificate {
44        GetSshCertificate {
45            cert_issuer_name,
46            cert_username,
47            json: None,
48            legacy_signing_alg_name: None,
49            public_key_data: None,
50            token: None,
51            ttl: None,
52            uid_token: None,
53        }
54    }
55}
56