Struct gcp_bigquery_client::model::audit_config::AuditConfig
source · [−]pub struct AuditConfig {
pub audit_log_configs: Option<Vec<AuditLogConfig>>,
pub service: Option<String>,
}
Expand description
AuditConfig : Specifies the audit configuration for a service. The configuration determines which permission types
are logged, and what identities, if any, are exempted from logging. An AuditConfig must have one or more
AuditLogConfigs. If there are AuditConfigs for both allServices
and a specific service, the union of the two
AuditConfigs is used for that service: the log_types specified in each AuditConfig are enabled, and the
exempted_members in each AuditLogConfig are exempted. Example Policy with multiple AuditConfigs:
{ "audit_configs": [ { "service": "allServices", "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:jose@example.com" ] }, { "log_type": "DATA_WRITE" }, { "log_type": "ADMIN_READ" } ] }, { "service": "sampleservice.googleapis.com", "audit_log_configs": [ { "log_type": "DATA_READ" }, { "log_type": "DATA_WRITE", "exempted_members": [ "user:aliya@example.com" ] } ] } ] }
For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts
jose@example.com from DATA_READ logging, and aliya@example.com from DATA_WRITE logging.
Fields
audit_log_configs: Option<Vec<AuditLogConfig>>
The configuration for logging of each type of permission.
service: Option<String>
Specifies a service that will be enabled for audit logging. For example, storage.googleapis.com
, cloudsql.googleapis.com
. allServices
is a special value that covers all services.
Trait Implementations
sourceimpl Clone for AuditConfig
impl Clone for AuditConfig
sourcefn clone(&self) -> AuditConfig
fn clone(&self) -> AuditConfig
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for AuditConfig
impl Debug for AuditConfig
sourceimpl Default for AuditConfig
impl Default for AuditConfig
sourcefn default() -> AuditConfig
fn default() -> AuditConfig
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for AuditConfig
impl<'de> Deserialize<'de> for AuditConfig
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Serialize for AuditConfig
impl Serialize for AuditConfig
Auto Trait Implementations
impl RefUnwindSafe for AuditConfig
impl Send for AuditConfig
impl Sync for AuditConfig
impl Unpin for AuditConfig
impl UnwindSafe for AuditConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more