Skip to main content

akeyless_api/models/
target_create_ping.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/// TargetCreatePing : targetCreatePing is a command that creates a new ping target
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct TargetCreatePing {
17    /// Ping Federate administrative port
18    #[serde(rename = "administrative-port", skip_serializing_if = "Option::is_none")]
19    pub administrative_port: Option<String>,
20    /// Ping Federate authorization port
21    #[serde(rename = "authorization-port", skip_serializing_if = "Option::is_none")]
22    pub authorization_port: Option<String>,
23    /// Description of the object
24    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
25    pub description: Option<String>,
26    /// Set output format to JSON
27    #[serde(rename = "json", skip_serializing_if = "Option::is_none")]
28    pub json: Option<bool>,
29    /// The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used)
30    #[serde(rename = "key", skip_serializing_if = "Option::is_none")]
31    pub key: Option<String>,
32    /// Set the maximum number of versions, limited by the account settings defaults.
33    #[serde(rename = "max-versions", skip_serializing_if = "Option::is_none")]
34    pub max_versions: Option<String>,
35    /// Target name
36    #[serde(rename = "name")]
37    pub name: String,
38    /// Ping Federate privileged user password
39    #[serde(rename = "password", skip_serializing_if = "Option::is_none")]
40    pub password: Option<String>,
41    /// Ping URL
42    #[serde(rename = "ping-url", skip_serializing_if = "Option::is_none")]
43    pub ping_url: Option<String>,
44    /// Ping Federate privileged user
45    #[serde(rename = "privileged-user", skip_serializing_if = "Option::is_none")]
46    pub privileged_user: Option<String>,
47    /// Authentication token (see `/auth` and `/configure`)
48    #[serde(rename = "token", skip_serializing_if = "Option::is_none")]
49    pub token: Option<String>,
50    /// The universal identity token, Required only for universal_identity authentication
51    #[serde(rename = "uid-token", skip_serializing_if = "Option::is_none")]
52    pub uid_token: Option<String>,
53}
54
55impl TargetCreatePing {
56    /// targetCreatePing is a command that creates a new ping target
57    pub fn new(name: String) -> TargetCreatePing {
58        TargetCreatePing {
59            administrative_port: None,
60            authorization_port: None,
61            description: None,
62            json: None,
63            key: None,
64            max_versions: None,
65            name,
66            password: None,
67            ping_url: None,
68            privileged_user: None,
69            token: None,
70            uid_token: None,
71        }
72    }
73}
74