vaultrs/api/auth/kubernetes/
responses.rsuse serde::{Deserialize, Serialize};
#[derive(Deserialize, Debug, Serialize)]
pub struct ReadKubernetesAuthConfigResponse {
pub kubernetes_host: String,
pub kubernetes_ca_cert: Option<String>,
pub pem_keys: Option<Vec<String>>,
pub issuer: Option<String>,
pub disable_iss_validation: bool,
pub disable_local_ca_jwt: bool,
}
#[derive(Deserialize, Debug, Serialize)]
pub struct ListRolesResponse {
pub keys: Vec<String>,
}
#[derive(Deserialize, Debug, Serialize)]
pub struct ReadKubernetesRoleResponse {
pub bound_service_account_names: Vec<String>,
pub bound_service_account_namespaces: Vec<String>,
pub token_ttl: u64,
pub token_max_ttl: u64,
pub token_policies: Vec<String>,
pub token_bound_cidrs: Vec<String>,
pub token_explicit_max_ttl: u64,
pub token_no_default_policy: bool,
pub token_num_uses: u64,
pub token_period: u64,
pub token_type: String,
}