Skip to main content

akeyless_api/models/
create_gke_target.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/// CreateGkeTarget : createGKETarget is a command that creates a new target. [Deprecated: Use target-create-gke command]
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct CreateGkeTarget {
17    /// Deprecated - use description
18    #[serde(rename = "comment", skip_serializing_if = "Option::is_none")]
19    pub comment: Option<String>,
20    /// Description of the object
21    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
22    pub description: Option<String>,
23    /// GKE Service Account key file path
24    #[serde(rename = "gke-account-key", skip_serializing_if = "Option::is_none")]
25    pub gke_account_key: Option<String>,
26    /// GKE cluster CA certificate
27    #[serde(rename = "gke-cluster-cert", skip_serializing_if = "Option::is_none")]
28    pub gke_cluster_cert: Option<String>,
29    /// GKE cluster URL endpoint
30    #[serde(rename = "gke-cluster-endpoint", skip_serializing_if = "Option::is_none")]
31    pub gke_cluster_endpoint: Option<String>,
32    /// GKE cluster name
33    #[serde(rename = "gke-cluster-name", skip_serializing_if = "Option::is_none")]
34    pub gke_cluster_name: Option<String>,
35    /// GKE service account email
36    #[serde(rename = "gke-service-account-email", skip_serializing_if = "Option::is_none")]
37    pub gke_service_account_email: Option<String>,
38    /// Set output format to JSON
39    #[serde(rename = "json", skip_serializing_if = "Option::is_none")]
40    pub json: Option<bool>,
41    /// The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used)
42    #[serde(rename = "key", skip_serializing_if = "Option::is_none")]
43    pub key: Option<String>,
44    /// Set the maximum number of versions, limited by the account settings defaults.
45    #[serde(rename = "max-versions", skip_serializing_if = "Option::is_none")]
46    pub max_versions: Option<String>,
47    /// Target name
48    #[serde(rename = "name")]
49    pub name: String,
50    /// Authentication token (see `/auth` and `/configure`)
51    #[serde(rename = "token", skip_serializing_if = "Option::is_none")]
52    pub token: Option<String>,
53    /// The universal identity token, Required only for universal_identity authentication
54    #[serde(rename = "uid-token", skip_serializing_if = "Option::is_none")]
55    pub uid_token: Option<String>,
56    #[serde(rename = "use-gw-cloud-identity", skip_serializing_if = "Option::is_none")]
57    pub use_gw_cloud_identity: Option<bool>,
58}
59
60impl CreateGkeTarget {
61    /// createGKETarget is a command that creates a new target. [Deprecated: Use target-create-gke command]
62    pub fn new(name: String) -> CreateGkeTarget {
63        CreateGkeTarget {
64            comment: None,
65            description: None,
66            gke_account_key: None,
67            gke_cluster_cert: None,
68            gke_cluster_endpoint: None,
69            gke_cluster_name: None,
70            gke_service_account_email: None,
71            json: None,
72            key: None,
73            max_versions: None,
74            name,
75            token: None,
76            uid_token: None,
77            use_gw_cloud_identity: None,
78        }
79    }
80}
81