1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
use serde::{Deserialize, Serialize};
#[derive(Debug, Default, Clone, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct AuditLogConfig {
#[serde(skip_serializing_if = "Option::is_none")]
pub exempted_members: Option<Vec<String>>,
#[serde(skip_serializing_if = "Option::is_none")]
pub log_type: Option<LogType>,
}
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum LogType {
#[serde(rename = "LOG_TYPE_UNSPECIFIED")]
LogTypeUnspecified,
#[serde(rename = "ADMIN_READ")]
AdminRead,
#[serde(rename = "DATA_WRITE")]
DataWrite,
#[serde(rename = "DATA_READ")]
DataRead,
}