Skip to main content

akeyless_api/models/
target_create_gemini.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/// TargetCreateGemini : targetCreateGemini is a command that creates a new gemini target
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct TargetCreateGemini {
17    /// API key for Gemini
18    #[serde(rename = "api-key", skip_serializing_if = "Option::is_none")]
19    pub api_key: Option<String>,
20    /// Description of the object
21    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
22    pub description: Option<String>,
23    /// Base URL of the Gemini API
24    #[serde(rename = "gemini-url", skip_serializing_if = "Option::is_none")]
25    pub gemini_url: 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    /// Authentication token (see `/auth` and `/configure`)
39    #[serde(rename = "token", skip_serializing_if = "Option::is_none")]
40    pub token: Option<String>,
41    /// The universal identity token, Required only for universal_identity authentication
42    #[serde(rename = "uid-token", skip_serializing_if = "Option::is_none")]
43    pub uid_token: Option<String>,
44}
45
46impl TargetCreateGemini {
47    /// targetCreateGemini is a command that creates a new gemini target
48    pub fn new(name: String) -> TargetCreateGemini {
49        TargetCreateGemini {
50            api_key: None,
51            description: None,
52            gemini_url: None,
53            json: None,
54            key: None,
55            max_versions: None,
56            name,
57            token: None,
58            uid_token: None,
59        }
60    }
61}
62