1use std::collections::HashMap;
2
3use serde::{Deserialize, Serialize};
4
5#[derive(Deserialize, Debug, Serialize)]
8pub struct MountResponse {
9 pub accessor: String,
10 pub config: MountConfigResponse,
11 pub description: String,
12 pub external_entropy_access: bool,
13 pub local: bool,
14 pub options: Option<HashMap<String, String>>,
15 pub seal_wrap: bool,
16 #[serde(rename = "type")]
17 pub mount_type: String,
18 pub uuid: String,
19}
20
21#[derive(Deserialize, Debug, Serialize)]
24pub struct MountConfigResponse {
25 pub default_lease_ttl: u64,
26 pub force_no_cache: bool,
27 pub max_lease_ttl: u64,
28}
29
30#[derive(Deserialize, Debug, Serialize)]
33pub struct GetConfigurationOfTheSecretEngineResponse {
34 pub accessor: String,
35 pub config: MountConfigResponse,
36 pub description: String,
37 pub external_entropy_access: bool,
38 pub local: bool,
39 pub options: Option<HashMap<String, String>>,
40 pub plugin_version: Option<String>,
41 pub running_plugin_version: Option<String>,
42 pub running_sha256: Option<String>,
43 pub seal_wrap: bool,
44 #[serde(rename = "type")]
45 pub mount_type: String,
46 pub uuid: String,
47}
48
49#[derive(Deserialize, Debug, Serialize)]
52pub struct AuthResponse {
53 pub accessor: String,
54 pub config: AuthConfigResponse,
55 pub description: String,
56 pub external_entropy_access: bool,
57 pub local: bool,
58 pub options: Option<HashMap<String, String>>,
59 pub seal_wrap: bool,
60 #[serde(rename = "type")]
61 pub mount_type: String,
62 pub uuid: String,
63}
64
65#[derive(Deserialize, Debug, Serialize)]
68pub struct AuthConfigResponse {
69 pub default_lease_ttl: u64,
70 pub force_no_cache: bool,
71 pub max_lease_ttl: u64,
72 pub token_type: String,
73}
74
75#[derive(Deserialize, Debug, Serialize)]
78pub struct RemountResponse {
79 pub migration_id: String,
80}
81
82#[derive(Deserialize, Debug, Serialize)]
85pub struct RemountStatusResponse {
86 pub migration_id: String,
87 pub migration_info: MigrationInfo,
88}
89
90#[derive(Deserialize, Debug, Serialize)]
91pub struct MigrationInfo {
92 pub source_mount: String,
93 pub target_mount: String,
94 pub status: String,
95}
96
97#[derive(Deserialize, Debug, Serialize)]
100pub struct WrappingLookupResponse {
101 pub creation_path: String,
102 pub creation_time: String,
103 pub creation_ttl: u64,
104}
105
106#[derive(Deserialize, Debug, Serialize)]
109pub struct ReadHealthResponse {
110 pub cluster_id: String,
111 pub cluster_name: String,
112 pub initialized: bool,
113 pub performance_standby: bool,
114 pub replication_dr_mode: Option<String>,
115 pub replication_perf_mode: Option<String>,
116 pub sealed: bool,
117 pub server_time_utc: u64,
118 pub standby: bool,
119 pub version: String,
120}
121
122#[derive(Deserialize, Debug, Serialize)]
125pub struct StartInitializationResponse {
126 pub keys: Vec<String>,
127 pub keys_base64: Vec<String>,
128 pub root_token: String,
129}
130
131#[derive(Deserialize, Debug, Serialize)]
134pub struct UnsealResponse {
135 pub sealed: bool,
136 #[serde(rename = "t")]
137 pub threshold: u64,
138 #[serde(rename = "n")]
139 pub n_shares: u64,
140 pub progress: u64,
141 pub version: String,
142 pub cluster_name: Option<String>,
143 pub cluster_id: Option<String>,
144}
145
146#[derive(Deserialize, Debug, Serialize)]
149pub struct ListPoliciesResponse {
150 pub policies: Vec<String>,
151}
152
153#[derive(Deserialize, Debug, Serialize)]
156pub struct ReadPolicyResponse {
157 pub name: String,
158 pub rules: String,
159}
160
161#[derive(Deserialize, Debug, Serialize)]
164pub struct RandomResponse {
165 pub random_bytes: String,
166}