Skip to main content

akeyless_api/models/
k8_s_auth.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 K8SAuth {
16    /// AuthMethodTokenExpiration is time in seconds of expiration of the Akeyless Kube Auth Method token
17    #[serde(rename = "am_token_expiration", skip_serializing_if = "Option::is_none")]
18    pub am_token_expiration: Option<i64>,
19    /// AuthMethodAccessId of the Kubernetes auth method
20    #[serde(rename = "auth_method_access_id", skip_serializing_if = "Option::is_none")]
21    pub auth_method_access_id: Option<String>,
22    /// AuthMethodSigningKey is the private key (in base64 of the PEM format) associated with the public key defined in the Kubernetes auth method, that used to sign the internal token for the Akeyless Kubernetes Auth Method
23    #[serde(rename = "auth_method_prv_key_pem", skip_serializing_if = "Option::is_none")]
24    pub auth_method_prv_key_pem: Option<String>,
25    /// ClusterApiType defines types of API access to cluster
26    #[serde(rename = "cluster_api_type", skip_serializing_if = "Option::is_none")]
27    pub cluster_api_type: Option<String>,
28    /// DisableISSValidation is optional parameter to disable ISS validation
29    #[serde(rename = "disable_iss_validation", skip_serializing_if = "Option::is_none")]
30    pub disable_iss_validation: Option<bool>,
31    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
32    pub id: Option<String>,
33    #[serde(rename = "k8s_auth_type", skip_serializing_if = "Option::is_none")]
34    pub k8s_auth_type: Option<String>,
35    /// K8SCACert is the CA Cert to use to call into the kubernetes API
36    #[serde(rename = "k8s_ca_cert", skip_serializing_if = "Option::is_none")]
37    pub k8s_ca_cert: Option<String>,
38    /// K8sClientCertData is the client certificate for k8s client certificate authentication
39    #[serde(rename = "k8s_client_cert_data", skip_serializing_if = "Option::is_none")]
40    pub k8s_client_cert_data: Option<String>,
41    /// K8sClientKeyData is the client key for k8s client certificate authentication
42    #[serde(rename = "k8s_client_key_data", skip_serializing_if = "Option::is_none")]
43    pub k8s_client_key_data: Option<String>,
44    /// K8SHost is the url string for the kubernetes API
45    #[serde(rename = "k8s_host", skip_serializing_if = "Option::is_none")]
46    pub k8s_host: Option<String>,
47    /// K8SIssuer is the claim that specifies who issued the Kubernetes token
48    #[serde(rename = "k8s_issuer", skip_serializing_if = "Option::is_none")]
49    pub k8s_issuer: Option<String>,
50    /// K8SPublicKeysPEM is the list of public key in PEM format
51    #[serde(rename = "k8s_pub_keys_pem", skip_serializing_if = "Option::is_none")]
52    pub k8s_pub_keys_pem: Option<Vec<String>>,
53    /// K8STokenReviewerJWT is the bearer for clusterApiTypeK8s, used during TokenReview API call
54    #[serde(rename = "k8s_token_reviewer_jwt", skip_serializing_if = "Option::is_none")]
55    pub k8s_token_reviewer_jwt: Option<String>,
56    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
57    pub name: Option<String>,
58    /// RancherApiKey the bear token for clusterApiTypeRancher
59    #[serde(rename = "rancher_api_key", skip_serializing_if = "Option::is_none")]
60    pub rancher_api_key: Option<String>,
61    /// RancherClusterId cluster id as define in rancher (in case of clusterApiTypeRancher)
62    #[serde(rename = "rancher_cluster_id", skip_serializing_if = "Option::is_none")]
63    pub rancher_cluster_id: Option<String>,
64    /// UseLocalCAJwt is an optional parameter to set defaulting to using the local service account when running in a Kubernetes pod
65    #[serde(rename = "use_local_ca_jwt", skip_serializing_if = "Option::is_none")]
66    pub use_local_ca_jwt: Option<bool>,
67}
68
69impl K8SAuth {
70    pub fn new() -> K8SAuth {
71        K8SAuth {
72            am_token_expiration: None,
73            auth_method_access_id: None,
74            auth_method_prv_key_pem: None,
75            cluster_api_type: None,
76            disable_iss_validation: None,
77            id: None,
78            k8s_auth_type: None,
79            k8s_ca_cert: None,
80            k8s_client_cert_data: None,
81            k8s_client_key_data: None,
82            k8s_host: None,
83            k8s_issuer: None,
84            k8s_pub_keys_pem: None,
85            k8s_token_reviewer_jwt: None,
86            name: None,
87            rancher_api_key: None,
88            rancher_cluster_id: None,
89            use_local_ca_jwt: None,
90        }
91    }
92}
93